Google Cloud Private Catalog V1beta1 Client - Class Version (0.4.2)

Reference documentation and code samples for the Google Cloud Private Catalog V1beta1 Client class Version.

The consumer representation of a version which is a child resource under a Product with asset data.

Generated from protobuf message google.cloud.privatecatalog.v1beta1.Version

Namespace

Google \ Cloud \ PrivateCatalog \ V1beta1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Output only. The resource name of the version, in the format `catalogs/{catalog}/products/{product}/versions/[a-z][-a-z0-9]*[a-z0-9]'. A unique identifier for the version under a product.

↳ description string

Output only. The user-supplied description of the version. Maximum of 256 characters.

↳ asset Google\Protobuf\Struct

Output only. The asset which has been validated and is ready to be provisioned. See google.cloud.privatecatalogproducer.v1beta.Version.asset for details.

↳ create_time Google\Protobuf\Timestamp

Output only. The time when the version was created.

↳ update_time Google\Protobuf\Timestamp

Output only. The time when the version was last updated.

getName

Output only. The resource name of the version, in the format `catalogs/{catalog}/products/{product}/versions/[a-z][-a-z0-9]*[a-z0-9]'.

A unique identifier for the version under a product.

Returns
Type Description
string

setName

Output only. The resource name of the version, in the format `catalogs/{catalog}/products/{product}/versions/[a-z][-a-z0-9]*[a-z0-9]'.

A unique identifier for the version under a product.

Parameter
Name Description
var string
Returns
Type Description
$this

getDescription

Output only. The user-supplied description of the version. Maximum of 256 characters.

Returns
Type Description
string

setDescription

Output only. The user-supplied description of the version. Maximum of 256 characters.

Parameter
Name Description
var string
Returns
Type Description
$this

getAsset

Output only. The asset which has been validated and is ready to be provisioned. See google.cloud.privatecatalogproducer.v1beta.Version.asset for details.

Returns
Type Description
Google\Protobuf\Struct|null

hasAsset

clearAsset

setAsset

Output only. The asset which has been validated and is ready to be provisioned. See google.cloud.privatecatalogproducer.v1beta.Version.asset for details.

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

getCreateTime

Output only. The time when the version was created.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. The time when the version was created.

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

getUpdateTime

Output only. The time when the version was last updated.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. The time when the version was last updated.

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