Class: Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1Version

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/cloudprivatecatalog_v1beta1/classes.rb,
generated/google/apis/cloudprivatecatalog_v1beta1/representations.rb,
generated/google/apis/cloudprivatecatalog_v1beta1/representations.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudPrivatecatalogV1beta1Version

Returns a new instance of GoogleCloudPrivatecatalogV1beta1Version.



343
344
345
# File 'generated/google/apis/cloudprivatecatalog_v1beta1/classes.rb', line 343

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#assetHash<String,Object>

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

Returns:

  • (Hash<String,Object>)


318
319
320
# File 'generated/google/apis/cloudprivatecatalog_v1beta1/classes.rb', line 318

def asset
  @asset
end

#create_timeString

Output only. The time when the version was created. Corresponds to the JSON property createTime

Returns:

  • (String)


323
324
325
# File 'generated/google/apis/cloudprivatecatalog_v1beta1/classes.rb', line 323

def create_time
  @create_time
end

#descriptionString

Output only. The user-supplied description of the version. Maximum of 256 characters. Corresponds to the JSON property description

Returns:

  • (String)


329
330
331
# File 'generated/google/apis/cloudprivatecatalog_v1beta1/classes.rb', line 329

def description
  @description
end

#nameString

Output only. The resource name of the version, in the format catalogs/catalog_id/products/product_id/versions/a-z*[a-z0-9]'. A unique identifier for the version under a product. Corresponds to the JSON propertyname`

Returns:

  • (String)


336
337
338
# File 'generated/google/apis/cloudprivatecatalog_v1beta1/classes.rb', line 336

def name
  @name
end

#update_timeString

Output only. The time when the version was last updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


341
342
343
# File 'generated/google/apis/cloudprivatecatalog_v1beta1/classes.rb', line 341

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



348
349
350
351
352
353
354
# File 'generated/google/apis/cloudprivatecatalog_v1beta1/classes.rb', line 348

def update!(**args)
  @asset = args[:asset] if args.key?(:asset)
  @create_time = args[:create_time] if args.key?(:create_time)
  @description = args[:description] if args.key?(:description)
  @name = args[:name] if args.key?(:name)
  @update_time = args[:update_time] if args.key?(:update_time)
end