Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Operation

import type { Operation } from "https://googleapis.deno.dev/v1/sqladmin:v1.ts";

An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.

interface Operation {
acquireSsrsLeaseContext?: AcquireSsrsLeaseContext;
apiWarning?: ApiWarning;
backupContext?: BackupContext;
endTime?: Date;
exportContext?: ExportContext;
importContext?: ImportContext;
insertTime?: Date;
kind?: string;
name?: string;
operationType?:
| "SQL_OPERATION_TYPE_UNSPECIFIED"
| "IMPORT"
| "EXPORT"
| "CREATE"
| "UPDATE"
| "DELETE"
| "RESTART"
| "BACKUP"
| "SNAPSHOT"
| "BACKUP_VOLUME"
| "DELETE_VOLUME"
| "RESTORE_VOLUME"
| "INJECT_USER"
| "CLONE"
| "STOP_REPLICA"
| "START_REPLICA"
| "PROMOTE_REPLICA"
| "CREATE_REPLICA"
| "CREATE_USER"
| "DELETE_USER"
| "UPDATE_USER"
| "CREATE_DATABASE"
| "DELETE_DATABASE"
| "UPDATE_DATABASE"
| "FAILOVER"
| "DELETE_BACKUP"
| "RECREATE_REPLICA"
| "TRUNCATE_LOG"
| "DEMOTE_MASTER"
| "MAINTENANCE"
| "ENABLE_PRIVATE_IP"
| "DEFER_MAINTENANCE"
| "CREATE_CLONE"
| "RESCHEDULE_MAINTENANCE"
| "START_EXTERNAL_SYNC"
| "LOG_CLEANUP"
| "AUTO_RESTART"
| "REENCRYPT"
| "SWITCHOVER"
| "ACQUIRE_SSRS_LEASE"
| "RELEASE_SSRS_LEASE"
| "RECONFIGURE_OLD_PRIMARY";
selfLink?: string;
startTime?: Date;
status?:
| "SQL_OPERATION_STATUS_UNSPECIFIED"
| "PENDING"
| "RUNNING"
| "DONE";
targetId?: string;
targetLink?: string;
targetProject?: string;
user?: string;
}

§Properties

§
acquireSsrsLeaseContext?: AcquireSsrsLeaseContext
[src]

The context for acquire SSRS lease operation, if applicable.

§
apiWarning?: ApiWarning
[src]

An Admin API warning message.

§
backupContext?: BackupContext
[src]

The context for backup operation, if applicable.

§
endTime?: Date
[src]

The time this operation finished in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.

§

If errors occurred during processing of this operation, this field will be populated.

§
exportContext?: ExportContext
[src]

The context for export operation, if applicable.

§
importContext?: ImportContext
[src]

The context for import operation, if applicable.

§
insertTime?: Date
[src]

The time this operation was enqueued in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.

§
kind?: string
[src]

This is always sql#operation.

§
name?: string
[src]

An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation.

§
operationType?: "SQL_OPERATION_TYPE_UNSPECIFIED" | "IMPORT" | "EXPORT" | "CREATE" | "UPDATE" | "DELETE" | "RESTART" | "BACKUP" | "SNAPSHOT" | "BACKUP_VOLUME" | "DELETE_VOLUME" | "RESTORE_VOLUME" | "INJECT_USER" | "CLONE" | "STOP_REPLICA" | "START_REPLICA" | "PROMOTE_REPLICA" | "CREATE_REPLICA" | "CREATE_USER" | "DELETE_USER" | "UPDATE_USER" | "CREATE_DATABASE" | "DELETE_DATABASE" | "UPDATE_DATABASE" | "FAILOVER" | "DELETE_BACKUP" | "RECREATE_REPLICA" | "TRUNCATE_LOG" | "DEMOTE_MASTER" | "MAINTENANCE" | "ENABLE_PRIVATE_IP" | "DEFER_MAINTENANCE" | "CREATE_CLONE" | "RESCHEDULE_MAINTENANCE" | "START_EXTERNAL_SYNC" | "LOG_CLEANUP" | "AUTO_RESTART" | "REENCRYPT" | "SWITCHOVER" | "ACQUIRE_SSRS_LEASE" | "RELEASE_SSRS_LEASE" | "RECONFIGURE_OLD_PRIMARY"
[src]

The type of the operation. Valid values are: * CREATE * DELETE * UPDATE * RESTART * IMPORT * EXPORT * BACKUP_VOLUME * RESTORE_VOLUME * CREATE_USER * DELETE_USER * CREATE_DATABASE * DELETE_DATABASE

§
startTime?: Date
[src]

The time this operation actually started in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.

§
status?: "SQL_OPERATION_STATUS_UNSPECIFIED" | "PENDING" | "RUNNING" | "DONE"
[src]

The status of an operation.

§
targetId?: string
[src]

Name of the database instance related to this operation.

§
targetProject?: string
[src]

The project ID of the target instance related to this operation.

§
user?: string
[src]

The email address of the user who initiated this operation.