Class Operation (0.1.1)

Operation(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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

Attributes

Name Description
kind str
This is always sql#operation.
status google.cloud.sqladmin_v1.types.Operation.SqlOperationStatus
The status of an operation.
user str
The email address of the user who initiated this operation.
insert_time google.protobuf.timestamp_pb2.Timestamp
The time this operation was enqueued in UTC timezone in `RFC 3339
start_time google.protobuf.timestamp_pb2.Timestamp
The time this operation actually started in UTC timezone in RFC 3339 __ format, for example 2012-11-15T16:19:00.094Z.
end_time google.protobuf.timestamp_pb2.Timestamp
The time this operation finished in UTC timezone in `RFC 3339
error google.cloud.sqladmin_v1.types.OperationErrors
If errors occurred during processing of this operation, this field will be populated.
api_warning google.cloud.sqladmin_v1.types.ApiWarning
An Admin API warning message.
operation_type google.cloud.sqladmin_v1.types.Operation.SqlOperationType
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
import_context google.cloud.sqladmin_v1.types.ImportContext
The context for import operation, if applicable.
export_context google.cloud.sqladmin_v1.types.ExportContext
The context for export operation, if applicable.
backup_context google.cloud.sqladmin_v1.types.BackupContext
The context for backup operation, if applicable.
pre_check_major_version_upgrade_context google.cloud.sqladmin_v1.types.PreCheckMajorVersionUpgradeContext
This field is only populated when the operation_type is PRE_CHECK_MAJOR_VERSION_UPGRADE. The PreCheckMajorVersionUpgradeContext message itself contains the details for that pre-check, such as the target database version for the upgrade and the results of the check (including any warnings or errors found).
name str
An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation.
target_id str
Name of the resource on which this operation runs.
self_link str
The URI of this resource.
target_project str
The project ID of the target instance related to this operation.
acquire_ssrs_lease_context google.cloud.sqladmin_v1.types.AcquireSsrsLeaseContext
The context for acquire SSRS lease operation, if applicable.
sub_operation_type google.cloud.sqladmin_v1.types.SqlSubOperationType
Optional. The sub operation based on the operation type.

Classes

SqlOperationStatus

SqlOperationStatus(value)

The status of an operation.

SqlOperationType

SqlOperationType(value)

The type of Cloud SQL operation.