Class: Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Catalog

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 catalog which is a curated collection of solutions that can be managed, controlled, and shared by cloud admins.

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

Returns a new instance of GoogleCloudPrivatecatalogproducerV1beta1Catalog.



124
125
126
# File 'generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb', line 124

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

Instance Attribute Details

#create_timeString

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

Returns:

  • (String)


89
90
91
# File 'generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb', line 89

def create_time
  @create_time
end

#descriptionString

Required. The user-supplied description of the catalog. Maximum of 512 characters. Corresponds to the JSON property description

Returns:

  • (String)


95
96
97
# File 'generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb', line 95

def description
  @description
end

#display_nameString

Required. The user-supplied descriptive name of the catalog as it appears in UIs. Maximum 256 characters in length. Corresponds to the JSON property displayName

Returns:

  • (String)


101
102
103
# File 'generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb', line 101

def display_name
  @display_name
end

#nameString

Output only. The resource name of the catalog, in the format catalogs/catalog_id'. A unique identifier for the catalog, which is generated by catalog service. Corresponds to the JSON propertyname`

Returns:

  • (String)


109
110
111
# File 'generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb', line 109

def name
  @name
end

#parentString

Required. The parent resource name of the catalog, which can't be changed after a catalog is created. It can only be an organization. Values are of the form //cloudresourcemanager.googleapis.com/organizations/<id>. Maximum 256 characters in length. Corresponds to the JSON property parent

Returns:

  • (String)


117
118
119
# File 'generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb', line 117

def parent
  @parent
end

#update_timeString

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

Returns:

  • (String)


122
123
124
# File 'generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb', line 122

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



129
130
131
132
133
134
135
136
# File 'generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb', line 129

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