Google Anthos Multi Cloud V1 Client - Class OperationMetadata (0.6.1)

Reference documentation and code samples for the Google Anthos Multi Cloud V1 Client class OperationMetadata.

Metadata about a long-running operation.

Generated from protobuf message google.cloud.gkemulticloud.v1.OperationMetadata

Namespace

Google \ Cloud \ GkeMultiCloud \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ create_time Google\Protobuf\Timestamp

Output only. The time at which this operation was created.

↳ end_time Google\Protobuf\Timestamp

Output only. The time at which this operation was completed.

↳ target string

Output only. The name of the resource associated to this operation.

↳ status_detail string

Output only. Human-readable status of the operation, if any.

↳ error_detail string

Output only. Human-readable status of any error that occurred during the operation.

↳ verb string

Output only. The verb associated with the API method which triggered this operation. Possible values are "create", "delete", "update" and "import".

↳ requested_cancellation bool

Output only. Identifies whether it has been requested cancellation for the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.

getCreateTime

Output only. The time at which this operation was created.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. The time at which this operation was created.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getEndTime

Output only. The time at which this operation was completed.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasEndTime

clearEndTime

setEndTime

Output only. The time at which this operation was completed.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getTarget

Output only. The name of the resource associated to this operation.

Returns
Type Description
string

setTarget

Output only. The name of the resource associated to this operation.

Parameter
Name Description
var string
Returns
Type Description
$this

getStatusDetail

Output only. Human-readable status of the operation, if any.

Returns
Type Description
string

setStatusDetail

Output only. Human-readable status of the operation, if any.

Parameter
Name Description
var string
Returns
Type Description
$this

getErrorDetail

Output only. Human-readable status of any error that occurred during the operation.

Returns
Type Description
string

setErrorDetail

Output only. Human-readable status of any error that occurred during the operation.

Parameter
Name Description
var string
Returns
Type Description
$this

getVerb

Output only. The verb associated with the API method which triggered this operation. Possible values are "create", "delete", "update" and "import".

Returns
Type Description
string

setVerb

Output only. The verb associated with the API method which triggered this operation. Possible values are "create", "delete", "update" and "import".

Parameter
Name Description
var string
Returns
Type Description
$this

getRequestedCancellation

Output only. Identifies whether it has been requested cancellation for the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.

Returns
Type Description
bool

setRequestedCancellation

Output only. Identifies whether it has been requested cancellation for the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.

Parameter
Name Description
var bool
Returns
Type Description
$this