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

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

Methods

__construct

Constructor.

Parameters
NameDescription
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
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

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

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getEndTime

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

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasEndTime

clearEndTime

setEndTime

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

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getTarget

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

Returns
TypeDescription
string

setTarget

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getStatusDetail

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

Returns
TypeDescription
string

setStatusDetail

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getErrorDetail

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

Returns
TypeDescription
string

setErrorDetail

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getVerb

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

Returns
TypeDescription
string

setVerb

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

Parameter
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var bool
Returns
TypeDescription
$this