Google Cloud Api Hub V1 Client - Class ApiOperation (0.2.0)

Reference documentation and code samples for the Google Cloud Api Hub V1 Client class ApiOperation.

Represents an operation contained in an API version in the API Hub.

An operation is added/updated/deleted in an API version when a new spec is added or an existing spec is updated/deleted in a version. Currently, an operation will be created only corresponding to OpenAPI spec as parsing is supported for OpenAPI spec.

Generated from protobuf message google.cloud.apihub.v1.ApiOperation

Namespace

Google \ Cloud \ ApiHub \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ namestring

Identifier. The name of the operation. Format: projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}

↳ specstring

Output only. The name of the spec from where the operation was parsed. Format is projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}

↳ detailsOperationDetails

Output only. Operation details.

↳ create_timeGoogle\Protobuf\Timestamp

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

↳ update_timeGoogle\Protobuf\Timestamp

Output only. The time at which the operation was last updated.

↳ attributesarray|Google\Protobuf\Internal\MapField

Optional. The list of user defined attributes associated with the API operation resource. The key is the attribute name. It will be of the format: projects/{project}/locations/{location}/attributes/{attribute}. The value is the attribute values associated with the resource.

getName

Identifier. The name of the operation.

Format: projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}

Returns
TypeDescription
string

setName

Identifier. The name of the operation.

Format: projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getSpec

Output only. The name of the spec from where the operation was parsed.

Format is projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}

Returns
TypeDescription
string

setSpec

Output only. The name of the spec from where the operation was parsed.

Format is projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getDetails

Output only. Operation details.

Returns
TypeDescription
OperationDetails|null

hasDetails

clearDetails

setDetails

Output only. Operation details.

Parameter
NameDescription
varOperationDetails
Returns
TypeDescription
$this

getCreateTime

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

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

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

Parameter
NameDescription
varGoogle\Protobuf\Timestamp
Returns
TypeDescription
$this

getUpdateTime

Output only. The time at which the operation was last updated.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. The time at which the operation was last updated.

Parameter
NameDescription
varGoogle\Protobuf\Timestamp
Returns
TypeDescription
$this

getAttributes

Optional. The list of user defined attributes associated with the API operation resource. The key is the attribute name. It will be of the format: projects/{project}/locations/{location}/attributes/{attribute}.

The value is the attribute values associated with the resource.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setAttributes

Optional. The list of user defined attributes associated with the API operation resource. The key is the attribute name. It will be of the format: projects/{project}/locations/{location}/attributes/{attribute}.

The value is the attribute values associated with the resource.

Parameter
NameDescription
vararray|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this