Class: Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Version
- Inherits:
-
Object
- Object
- Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Version
- 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
-
#asset ⇒ Hash<String,Object>
Output only.
-
#create_time ⇒ String
Output only.
-
#description ⇒ String
The user-supplied description of the version.
-
#name ⇒ String
Required.
-
#original_asset ⇒ Hash<String,Object>
The user-supplied asset payload.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudPrivatecatalogproducerV1beta1Version
constructor
A new instance of GoogleCloudPrivatecatalogproducerV1beta1Version.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
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
#asset ⇒ Hash<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
515 516 517 |
# File 'generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb', line 515 def asset @asset end |
#create_time ⇒ String
Output only. The time when the version was created.
Corresponds to the JSON property createTime
520 521 522 |
# File 'generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb', line 520 def create_time @create_time end |
#description ⇒ String
The user-supplied description of the version. Maximum of 256 characters.
Corresponds to the JSON property description
525 526 527 |
# File 'generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb', line 525 def description @description end |
#name ⇒ String
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 property
name`
534 535 536 |
# File 'generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb', line 534 def name @name end |
#original_asset ⇒ Hash<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
562 563 564 |
# File 'generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb', line 562 def original_asset @original_asset end |
#update_time ⇒ String
Output only. The time when the version was last updated.
Corresponds to the JSON property updateTime
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 |