Reference documentation and code samples for the Google Cloud Sql Admin V1beta4 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.v1beta4.Operation
Methods
__construct
Constructor.
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.
↳ 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\V1beta4\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
↳ export_context
↳ backup_context
↳ 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
.
string
setKind
This is always sql#operation
.
var
string
$this
getTargetLink
Generated from protobuf field string target_link = 2;
string
setTargetLink
Generated from protobuf field string target_link = 2;
var
string
$this
getStatus
The status of an operation.
int
setStatus
The status of an operation.
var
int
$this
getUser
The email address of the user who initiated this operation.
string
setUser
The email address of the user who initiated this operation.
var
string
$this
getInsertTime
The time this operation was enqueued in UTC timezone in RFC 3339
format, for example 2012-11-15T16:19:00.094Z
.
hasInsertTime
clearInsertTime
setInsertTime
The time this operation was enqueued in UTC timezone in RFC 3339
format, for example 2012-11-15T16:19:00.094Z
.
$this
getStartTime
The time this operation actually started in UTC timezone in RFC 3339
format, for example 2012-11-15T16:19:00.094Z
.
hasStartTime
clearStartTime
setStartTime
The time this operation actually started in UTC timezone in RFC 3339
format, for example 2012-11-15T16:19:00.094Z
.
$this
getEndTime
The time this operation finished in UTC timezone in RFC 3339
format, for example 2012-11-15T16:19:00.094Z
.
hasEndTime
clearEndTime
setEndTime
The time this operation finished in UTC timezone in RFC 3339
format, for example 2012-11-15T16:19:00.094Z
.
$this
getError
If errors occurred during processing of this operation, this field will be populated.
hasError
clearError
setError
If errors occurred during processing of this operation, this field will be populated.
$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
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
var
int
$this
getImportContext
The context for import operation, if applicable.
hasImportContext
clearImportContext
setImportContext
The context for import operation, if applicable.
$this
getExportContext
The context for export operation, if applicable.
hasExportContext
clearExportContext
setExportContext
The context for export operation, if applicable.
$this
getBackupContext
The context for backup operation, if applicable.
hasBackupContext
clearBackupContext
setBackupContext
The context for backup operation, if applicable.
$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.
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.
var
string
$this
getTargetId
Name of the database instance related to this operation.
string
setTargetId
Name of the database instance related to this operation.
var
string
$this
getSelfLink
The URI of this resource.
string
setSelfLink
The URI of this resource.
var
string
$this
getTargetProject
The project ID of the target instance related to this operation.
string
setTargetProject
The project ID of the target instance related to this operation.
var
string
$this