Google Cloud Sql Admin V1beta4 Client - Class Operation (0.6.0)

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

Namespace

Google \ Cloud \ Sql \ V1beta4

Methods

__construct

Constructor.

Parameters
NameDescription
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 Google\Cloud\Sql\V1beta4\ImportContext

The context for import operation, if applicable.

↳ export_context Google\Cloud\Sql\V1beta4\ExportContext

The context for export operation, if applicable.

↳ backup_context Google\Cloud\Sql\V1beta4\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
TypeDescription
string

setKind

This is always sql#operation.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

Generated from protobuf field string target_link = 2;

Returns
TypeDescription
string

Generated from protobuf field string target_link = 2;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getStatus

The status of an operation.

Returns
TypeDescription
int

setStatus

The status of an operation.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getUser

The email address of the user who initiated this operation.

Returns
TypeDescription
string

setUser

The email address of the user who initiated this operation.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getInsertTime

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

Returns
TypeDescription
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
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getStartTime

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

Returns
TypeDescription
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
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getEndTime

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

Returns
TypeDescription
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
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getError

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

Returns
TypeDescription
Google\Cloud\Sql\V1beta4\OperationErrors|null

hasError

clearError

setError

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

Parameter
NameDescription
var Google\Cloud\Sql\V1beta4\OperationErrors
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var int
Returns
TypeDescription
$this

getImportContext

The context for import operation, if applicable.

Returns
TypeDescription
Google\Cloud\Sql\V1beta4\ImportContext|null

hasImportContext

clearImportContext

setImportContext

The context for import operation, if applicable.

Parameter
NameDescription
var Google\Cloud\Sql\V1beta4\ImportContext
Returns
TypeDescription
$this

getExportContext

The context for export operation, if applicable.

Returns
TypeDescription
Google\Cloud\Sql\V1beta4\ExportContext|null

hasExportContext

clearExportContext

setExportContext

The context for export operation, if applicable.

Parameter
NameDescription
var Google\Cloud\Sql\V1beta4\ExportContext
Returns
TypeDescription
$this

getBackupContext

The context for backup operation, if applicable.

Returns
TypeDescription
Google\Cloud\Sql\V1beta4\BackupContext|null

hasBackupContext

clearBackupContext

setBackupContext

The context for backup operation, if applicable.

Parameter
NameDescription
var Google\Cloud\Sql\V1beta4\BackupContext
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this

getTargetId

Name of the database instance related to this operation.

Returns
TypeDescription
string

setTargetId

Name of the database instance related to this operation.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

The URI of this resource.

Returns
TypeDescription
string

The URI of this resource.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getTargetProject

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

Returns
TypeDescription
string

setTargetProject

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this