Reference documentation and code samples for the Google Cloud Sql Admin V1 Client class Operation.
An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
Generated from protobuf message google.cloud.sql.v1.Operation
Namespace
Google \ Cloud \ Sql \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ kind |
string
This is always sql#operation. |
↳ target_link |
string
|
↳ status |
int
The status of an operation. Valid values are: * PENDING * RUNNING * DONE * SQL_OPERATION_STATUS_UNSPECIFIED |
↳ user |
string
The email address of the user who initiated this operation. |
↳ insert_time |
Google\Protobuf\Timestamp
The time this operation was enqueued in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. |
↳ start_time |
Google\Protobuf\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
The time this operation finished in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. |
↳ error |
Google\Cloud\Sql\V1\OperationErrors
If errors occurred during processing of this operation, this field will be populated. |
↳ operation_type |
int
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\Sql\V1\ImportContext
The context for import operation, if applicable. |
↳ export_context |
Google\Cloud\Sql\V1\ExportContext
The context for export operation, if applicable. |
↳ backup_context |
Google\Cloud\Sql\V1\BackupContext
The context for backup operation, if applicable. |
↳ name |
string
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 |
string
Name of the database instance related to this operation. |
↳ self_link |
string
The URI of this resource. |
↳ target_project |
string
The project ID of the target instance related to this operation. |
getKind
This is always sql#operation.
Returns | |
---|---|
Type | Description |
string |
setKind
This is always sql#operation.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getTargetLink
Generated from protobuf field string target_link = 2;
Returns | |
---|---|
Type | Description |
string |
setTargetLink
Generated from protobuf field string target_link = 2;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getStatus
The status of an operation. Valid values are:
- PENDING
- RUNNING
- DONE
- SQL_OPERATION_STATUS_UNSPECIFIED
Returns | |
---|---|
Type | Description |
int |
setStatus
The status of an operation. Valid values are:
- PENDING
- RUNNING
- DONE
- SQL_OPERATION_STATUS_UNSPECIFIED
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getUser
The email address of the user who initiated this operation.
Returns | |
---|---|
Type | Description |
string |
setUser
The email address of the user who initiated this operation.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getInsertTime
The time this operation was enqueued in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Timestamp|null |
hasInsertTime
clearInsertTime
setInsertTime
The time this operation was enqueued in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\Timestamp
|
Returns | |
---|---|
Type | Description |
$this |
getStartTime
The time this operation actually started in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Timestamp|null |
hasStartTime
clearStartTime
setStartTime
The time this operation actually started in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\Timestamp
|
Returns | |
---|---|
Type | Description |
$this |
getEndTime
The time this operation finished in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Timestamp|null |
hasEndTime
clearEndTime
setEndTime
The time this operation finished in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\Timestamp
|
Returns | |
---|---|
Type | Description |
$this |
getError
If errors occurred during processing of this operation, this field will be populated.
Returns | |
---|---|
Type | Description |
Google\Cloud\Sql\V1\OperationErrors|null |
hasError
clearError
setError
If errors occurred during processing of this operation, this field will be populated.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Sql\V1\OperationErrors
|
Returns | |
---|---|
Type | Description |
$this |
getOperationType
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
Returns | |
---|---|
Type | Description |
int |
setOperationType
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
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getImportContext
The context for import operation, if applicable.
Returns | |
---|---|
Type | Description |
Google\Cloud\Sql\V1\ImportContext|null |
hasImportContext
clearImportContext
setImportContext
The context for import operation, if applicable.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Sql\V1\ImportContext
|
Returns | |
---|---|
Type | Description |
$this |
getExportContext
The context for export operation, if applicable.
Returns | |
---|---|
Type | Description |
Google\Cloud\Sql\V1\ExportContext|null |
hasExportContext
clearExportContext
setExportContext
The context for export operation, if applicable.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Sql\V1\ExportContext
|
Returns | |
---|---|
Type | Description |
$this |
getBackupContext
The context for backup operation, if applicable.
Returns | |
---|---|
Type | Description |
Google\Cloud\Sql\V1\BackupContext|null |
hasBackupContext
clearBackupContext
setBackupContext
The context for backup operation, if applicable.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Sql\V1\BackupContext
|
Returns | |
---|---|
Type | Description |
$this |
getName
An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation.
Returns | |
---|---|
Type | Description |
string |
setName
An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getTargetId
Name of the database instance related to this operation.
Returns | |
---|---|
Type | Description |
string |
setTargetId
Name of the database instance related to this operation.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getSelfLink
The URI of this resource.
Returns | |
---|---|
Type | Description |
string |
setSelfLink
The URI of this resource.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getTargetProject
The project ID of the target instance related to this operation.
Returns | |
---|---|
Type | Description |
string |
setTargetProject
The project ID of the target instance related to this operation.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |