Class: Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Association
- Inherits:
-
Object
- Object
- Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Association
- 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 catalogcatalogs/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
-
#create_time ⇒ String
The creation time of the association.
-
#name ⇒ String
Output only.
-
#resource ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudPrivatecatalogproducerV1beta1Association
constructor
A new instance of GoogleCloudPrivatecatalogproducerV1beta1Association.
-
#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) ⇒ 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_time ⇒ String
The creation time of the association.
Corresponds to the JSON property createTime
49 50 51 |
# File 'generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb', line 49 def create_time @create_time end |
#name ⇒ String
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 property
name`
57 58 59 |
# File 'generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb', line 57 def name @name end |
#resource ⇒ String
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 property
resource`
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 |