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

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

getDescription

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

Returns
TypeDescription
string

setDescription

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

Parameter
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var Google\Protobuf\Struct
Returns
TypeDescription
$this

getCreateTime

Output only. The time when the version was created.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. The time when the version was created.

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

getUpdateTime

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

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

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

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