Google Cloud Network Management V1 Client - Class OperationMetadata (1.0.5)

Reference documentation and code samples for the Google Cloud Network Management V1 Client class OperationMetadata.

Metadata describing an Operation

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ create_time Google\Protobuf\Timestamp

The time the operation was created.

↳ end_time Google\Protobuf\Timestamp

The time the operation finished running.

↳ target string

Target of the operation - for example projects/project-1/locations/global/connectivityTests/test-1

↳ verb string

Name of the verb executed by the operation.

↳ status_detail string

Human-readable status of the operation, if any.

↳ cancel_requested bool

Specifies if cancellation was requested for the operation.

↳ api_version string

API version.

getCreateTime

The time the operation was created.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

The time the operation was created.

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

getEndTime

The time the operation finished running.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasEndTime

clearEndTime

setEndTime

The time the operation finished running.

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

getTarget

Target of the operation - for example projects/project-1/locations/global/connectivityTests/test-1

Returns
TypeDescription
string

setTarget

Target of the operation - for example projects/project-1/locations/global/connectivityTests/test-1

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getVerb

Name of the verb executed by the operation.

Returns
TypeDescription
string

setVerb

Name of the verb executed by the operation.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getStatusDetail

Human-readable status of the operation, if any.

Returns
TypeDescription
string

setStatusDetail

Human-readable status of the operation, if any.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCancelRequested

Specifies if cancellation was requested for the operation.

Returns
TypeDescription
bool

setCancelRequested

Specifies if cancellation was requested for the operation.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getApiVersion

API version.

Returns
TypeDescription
string

setApiVersion

API version.

Parameter
NameDescription
var string
Returns
TypeDescription
$this