Class: Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1Product
- Inherits:
-
Object
- Object
- Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1Product
- 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 readonly representation of a product computed with a given resource context.
Instance Attribute Summary collapse
-
#asset_type ⇒ String
Output only.
-
#create_time ⇒ String
Output only.
-
#display_metadata ⇒ Hash<String,Object>
Output only.
-
#icon_uri ⇒ String
Output only.
-
#name ⇒ String
Output only.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudPrivatecatalogV1beta1Product
constructor
A new instance of GoogleCloudPrivatecatalogV1beta1Product.
-
#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) ⇒ GoogleCloudPrivatecatalogV1beta1Product
Returns a new instance of GoogleCloudPrivatecatalogV1beta1Product.
212 213 214 |
# File 'generated/google/apis/cloudprivatecatalog_v1beta1/classes.rb', line 212 def initialize(**args) update!(**args) end |
Instance Attribute Details
#asset_type ⇒ String
Output only. The type of the product asset. It can be one of the following values:
google.deploymentmanager.Template
google.cloudprivatecatalog.ListingOnly
Corresponds to the JSON propertyassetType
81 82 83 |
# File 'generated/google/apis/cloudprivatecatalog_v1beta1/classes.rb', line 81 def asset_type @asset_type end |
#create_time ⇒ String
Output only. The time when the product was created.
Corresponds to the JSON property createTime
86 87 88 |
# File 'generated/google/apis/cloudprivatecatalog_v1beta1/classes.rb', line 86 def create_time @create_time end |
#display_metadata ⇒ Hash<String,Object>
Output only. The display metadata to describe the product.
The JSON schema of the metadata differs by Product.asset_type.
When the type is google.deploymentmanager.Template
, the schema is as
follows:
"$schema": http://json-schema.org/draft-04/schema#
type: object
properties:
name:
type: string
minLength: 1
maxLength: 64
description:
type: string
minLength: 1
maxLength: 2048
tagline:
type: string
minLength: 1
maxLength: 100
support_info:
type: string
minLength: 1
maxLength: 2048
creator:
type: string
minLength: 1
maxLength: 100
documentation:
type: array
items:
type: object
properties:
url:
type: string
pattern:
"^(https?)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]"
title:
type: string
minLength: 1
maxLength: 64
description:
type: string
minLength: 1
maxLength: 2048
required:
- name
- description
additionalProperties: false
When the asset type is google.cloudprivatecatalog.ListingOnly
, the schema
is as follows:
"$schema": http://json-schema.org/draft-04/schema#
type: object
properties:
name:
type: string
minLength: 1
maxLength: 64
description:
type: string
minLength: 1
maxLength: 2048
tagline:
type: string
minLength: 1
maxLength: 100
support_info:
type: string
minLength: 1
maxLength: 2048
creator:
type: string
minLength: 1
maxLength: 100
documentation:
type: array
items:
type: object
properties:
url:
type: string
pattern:
"^(https?)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]"
title:
type: string
minLength: 1
maxLength: 64
description:
type: string
minLength: 1
maxLength: 2048
signup_url:
type: string
pattern:
"^(https?)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]"
required:
- name
- description
- signup_url
additionalProperties: false
Corresponds to the JSON property displayMetadata
193 194 195 |
# File 'generated/google/apis/cloudprivatecatalog_v1beta1/classes.rb', line 193 def @display_metadata end |
#icon_uri ⇒ String
Output only. The icon URI of the product.
Corresponds to the JSON property iconUri
198 199 200 |
# File 'generated/google/apis/cloudprivatecatalog_v1beta1/classes.rb', line 198 def icon_uri @icon_uri end |
#name ⇒ String
Output only. The resource name of the target product, in the format of
products/a-z*[a-z0-9]'.
A unique identifier for the product under a catalog.
Corresponds to the JSON property
name`
205 206 207 |
# File 'generated/google/apis/cloudprivatecatalog_v1beta1/classes.rb', line 205 def name @name end |
#update_time ⇒ String
Output only. The time when the product was last updated.
Corresponds to the JSON property updateTime
210 211 212 |
# File 'generated/google/apis/cloudprivatecatalog_v1beta1/classes.rb', line 210 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
217 218 219 220 221 222 223 224 |
# File 'generated/google/apis/cloudprivatecatalog_v1beta1/classes.rb', line 217 def update!(**args) @asset_type = args[:asset_type] if args.key?(:asset_type) @create_time = args[:create_time] if args.key?(:create_time) @display_metadata = args[:display_metadata] if args.key?(:display_metadata) @icon_uri = args[:icon_uri] if args.key?(:icon_uri) @name = args[:name] if args.key?(:name) @update_time = args[:update_time] if args.key?(:update_time) end |