Class: Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Association

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

An association tuple that pairs a Catalog to a resource that can use the Catalog. After association, a google.cloud.privatecatalog.v1beta1.Catalog becomes available to consumers under specified Association.resource and all of its child nodes. Users who have the cloudprivatecatalog.targets.get permission on any of the resource nodes can access the catalog and child products under the node. For example, suppose the cloud resource hierarchy is as follows:

  • organizations/example.com
  • folders/team
  • projects/test After creating an association with organizations/example.com, the catalog catalogs/1 is accessible from the following paths:
  • organizations/example.com
  • folders/team
  • projects/test Users can access them by google.cloud.v1beta1.PrivateCatalog.SearchCatalogs action.

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

Returns a new instance of GoogleCloudPrivatecatalogproducerV1beta1Association.



69
70
71
# File 'generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb', line 69

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

Instance Attribute Details

#create_timeString

The creation time of the association. Corresponds to the JSON property createTime

Returns:

  • (String)


49
50
51
# File 'generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb', line 49

def create_time
  @create_time
end

#nameString

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

Returns:

  • (String)


57
58
59
# File 'generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb', line 57

def name
  @name
end

#resourceString

Required. The user-supplied fully qualified name of the Resource associated to the Catalog. It supports Organization, Folder, and Project. Values are of the form

  • //cloudresourcemanager.googleapis.com/projects/product_number``
  • //cloudresourcemanager.googleapis.com/folders/folder_id``
  • //cloudresourcemanager.googleapis.com/organizations/organization_id` Corresponds to the JSON propertyresource`

Returns:

  • (String)


67
68
69
# File 'generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb', line 67

def resource
  @resource
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



74
75
76
77
78
# File 'generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb', line 74

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @name = args[:name] if args.key?(:name)
  @resource = args[:resource] if args.key?(:resource)
end