Class: Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Version

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

Overview

The producer 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) ⇒ GoogleCloudPrivatecatalogproducerV1beta1Version

Returns a new instance of GoogleCloudPrivatecatalogproducerV1beta1Version.



569
570
571
# File 'generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb', line 569

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 Version.original_asset for the schema. Corresponds to the JSON property asset

Returns:

  • (Hash<String,Object>)


515
516
517
# File 'generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb', line 515

def asset
  @asset
end

#create_timeString

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

Returns:

  • (String)


520
521
522
# File 'generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb', line 520

def create_time
  @create_time
end

#descriptionString

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

Returns:

  • (String)


525
526
527
# File 'generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb', line 525

def description
  @description
end

#nameString

Required. 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, which can't be changed after the version is created. The final segment of the name must between 1 and 63 characters in length. Corresponds to the JSON propertyname`

Returns:

  • (String)


534
535
536
# File 'generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb', line 534

def name
  @name
end

#original_assetHash<String,Object>

The user-supplied asset payload. The maximum size of the payload is 2MB. The JSON schema of the payload is defined as:

type: object
properties:
mainTemplate:
type: string
description: The file name of the main template and name prefix of
schema file. The content of the main template should be set in the
imports list. The schema file name is expected to be
<mainTemplate>.schema in the imports list. required: true
imports:
type: array
description: Import template and schema file contents. Required to have
both <mainTemplate> and <mainTemplate>.schema files. required: true
minItems: 2
items:
type: object
properties:
name:
type: string
content:
type: string

Corresponds to the JSON property originalAsset

Returns:

  • (Hash<String,Object>)


562
563
564
# File 'generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb', line 562

def original_asset
  @original_asset
end

#update_timeString

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

Returns:

  • (String)


567
568
569
# File 'generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb', line 567

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



574
575
576
577
578
579
580
581
# File 'generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb', line 574

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)
  @original_asset = args[:original_asset] if args.key?(:original_asset)
  @update_time = args[:update_time] if args.key?(:update_time)
end