0.1.4 (latest) 0.1.3

    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` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-sql/latest/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` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-sql/latest/google.cloud.sqladmin_v1.types.OperationErrors` If errors occurred during processing of this operation, this field will be populated. |
| `api_warning` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-sql/latest/google.cloud.sqladmin_v1.types.ApiWarning` An Admin API warning message. |
| `operation_type` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-sql/latest/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` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-sql/latest/google.cloud.sqladmin_v1.types.ImportContext` The context for import operation, if applicable. |
| `export_context` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-sql/latest/google.cloud.sqladmin_v1.types.ExportContext` The context for export operation, if applicable. |
| `backup_context` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-sql/latest/google.cloud.sqladmin_v1.types.BackupContext` The context for backup operation, if applicable. |
| `pre_check_major_version_upgrade_context` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-sql/latest/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). |
| `start_workload_capture_context` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-sql/latest/google.cloud.sqladmin_v1.types.StartWorkloadCaptureContext` The context for the `StartWorkloadCapture` operation, which contains details to start recording the workload (SQL queries) on a Cloud SQL instance. |
| `stop_workload_capture_context` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-sql/latest/google.cloud.sqladmin_v1.types.StopWorkloadCaptureContext` The context for the `StopWorkloadCapture` operation, which contains details to stop recording the workload (SQL queries) on a Cloud SQL instance. |
| `start_workload_replay_context` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-sql/latest/google.cloud.sqladmin_v1.types.StartWorkloadReplayContext` The context for the `StartWorkloadReplay` operation, which contains details about starting the execution of a captured workload (recorded read and write SQL queries) on a replay instance (the Cloud SQL instance where the recorded SQL queries are executed). |
| `stop_workload_replay_context` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-sql/latest/google.cloud.sqladmin_v1.types.StopWorkloadReplayContext` The context for the `StopWorkloadReplay` operation, which contains details about stopping the execution of a captured workload (recorded read and write SQL queries) on a replay instance. |
| `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` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-sql/latest/google.cloud.sqladmin_v1.types.AcquireSsrsLeaseContext` The context for acquire SSRS lease operation, if applicable. |
| `sub_operation_type` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-sql/latest/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.