Class: Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1Product

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 readonly representation of a product computed with a given resource context.

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) ⇒ 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_typeString

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 property assetType

Returns:

  • (String)


81
82
83
# File 'generated/google/apis/cloudprivatecatalog_v1beta1/classes.rb', line 81

def asset_type
  @asset_type
end

#create_timeString

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

Returns:

  • (String)


86
87
88
# File 'generated/google/apis/cloudprivatecatalog_v1beta1/classes.rb', line 86

def create_time
  @create_time
end

#display_metadataHash<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

Returns:

  • (Hash<String,Object>)


193
194
195
# File 'generated/google/apis/cloudprivatecatalog_v1beta1/classes.rb', line 193

def 
  @display_metadata
end

#icon_uriString

Output only. The icon URI of the product. Corresponds to the JSON property iconUri

Returns:

  • (String)


198
199
200
# File 'generated/google/apis/cloudprivatecatalog_v1beta1/classes.rb', line 198

def icon_uri
  @icon_uri
end

#nameString

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 propertyname`

Returns:

  • (String)


205
206
207
# File 'generated/google/apis/cloudprivatecatalog_v1beta1/classes.rb', line 205

def name
  @name
end

#update_timeString

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

Returns:

  • (String)


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