Google Cloud Functions V1 Client - Class OperationMetadataV1 (1.1.2)

Reference documentation and code samples for the Google Cloud Functions V1 Client class OperationMetadataV1.

Metadata describing an Operation

Generated from protobuf message google.cloud.functions.v1.OperationMetadataV1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ target string

Target of the operation - for example projects/project-1/locations/region-1/functions/function-1

↳ type int

Type of operation.

↳ request Google\Protobuf\Any

The original request that started the operation.

↳ version_id int|string

Version id of the function created or updated by an API call. This field is only populated for Create and Update operations.

↳ update_time Google\Protobuf\Timestamp

The last update timestamp of the operation.

↳ build_id string

The Cloud Build ID of the function created or updated by an API call. This field is only populated for Create and Update operations.

↳ source_token string

An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.

↳ build_name string

The Cloud Build Name of the function deployment. This field is only populated for Create and Update operations. projects/<project-number>/locations/<region>/builds/<build-id>.

getTarget

Target of the operation - for example projects/project-1/locations/region-1/functions/function-1

Returns
TypeDescription
string

setTarget

Target of the operation - for example projects/project-1/locations/region-1/functions/function-1

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getType

Type of operation.

Returns
TypeDescription
int

setType

Type of operation.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getRequest

The original request that started the operation.

Returns
TypeDescription
Google\Protobuf\Any|null

hasRequest

clearRequest

setRequest

The original request that started the operation.

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

getVersionId

Version id of the function created or updated by an API call.

This field is only populated for Create and Update operations.

Returns
TypeDescription
int|string

setVersionId

Version id of the function created or updated by an API call.

This field is only populated for Create and Update operations.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getUpdateTime

The last update timestamp of the operation.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

The last update timestamp of the operation.

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

getBuildId

The Cloud Build ID of the function created or updated by an API call.

This field is only populated for Create and Update operations.

Returns
TypeDescription
string

setBuildId

The Cloud Build ID of the function created or updated by an API call.

This field is only populated for Create and Update operations.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSourceToken

An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.

Returns
TypeDescription
string

setSourceToken

An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getBuildName

The Cloud Build Name of the function deployment.

This field is only populated for Create and Update operations. projects/<project-number>/locations/<region>/builds/<build-id>.

Returns
TypeDescription
string

setBuildName

The Cloud Build Name of the function deployment.

This field is only populated for Create and Update operations. projects/<project-number>/locations/<region>/builds/<build-id>.

Parameter
NameDescription
var string
Returns
TypeDescription
$this