Reference documentation and code samples for the Google Cloud Data Catalog V1BETA1 API class Google::Cloud::DataCatalog::V1beta1::PolicyTagManager::Rest::Client.
REST client for the PolicyTagManager service.
The policy tag manager API service allows clients to manage their taxonomies and policy tags.
Inherits
- Object
Methods
.configure
def self.configure() { |config| ... } -> Client::ConfigurationConfigure the PolicyTagManager Client class.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
# Modify the configuration for all PolicyTagManager clients ::Google::Cloud::DataCatalog::V1beta1::PolicyTagManager::Rest::Client.configure do |config| config.timeout = 10.0 end
#configure
def configure() { |config| ... } -> Client::ConfigurationConfigure the PolicyTagManager Client instance.
The configuration is set to the derived mode, meaning that values can be changed, but structural changes (adding new fields, etc.) are not allowed. Structural changes should be made on Client.configure.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
#create_policy_tag
def create_policy_tag(request, options = nil) -> ::Google::Cloud::DataCatalog::V1beta1::PolicyTag
def create_policy_tag(parent: nil, policy_tag: nil) -> ::Google::Cloud::DataCatalog::V1beta1::PolicyTagCreates a policy tag in the specified taxonomy.
def create_policy_tag(request, options = nil) -> ::Google::Cloud::DataCatalog::V1beta1::PolicyTagcreate_policy_tag via a request object, either of type
CreatePolicyTagRequest or an equivalent Hash.
- request (::Google::Cloud::DataCatalog::V1beta1::CreatePolicyTagRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def create_policy_tag(parent: nil, policy_tag: nil) -> ::Google::Cloud::DataCatalog::V1beta1::PolicyTagcreate_policy_tag via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. Resource name of the taxonomy that the policy tag will belong to.
- policy_tag (::Google::Cloud::DataCatalog::V1beta1::PolicyTag, ::Hash) — The policy tag to be created.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::DataCatalog::V1beta1::PolicyTag)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/data_catalog/v1beta1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DataCatalog::V1beta1::PolicyTagManager::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DataCatalog::V1beta1::CreatePolicyTagRequest.new # Call the create_policy_tag method. result = client.create_policy_tag request # The returned object is of type Google::Cloud::DataCatalog::V1beta1::PolicyTag. p result
#create_taxonomy
def create_taxonomy(request, options = nil) -> ::Google::Cloud::DataCatalog::V1beta1::Taxonomy
def create_taxonomy(parent: nil, taxonomy: nil) -> ::Google::Cloud::DataCatalog::V1beta1::TaxonomyCreates a taxonomy in the specified project.
def create_taxonomy(request, options = nil) -> ::Google::Cloud::DataCatalog::V1beta1::Taxonomycreate_taxonomy via a request object, either of type
CreateTaxonomyRequest or an equivalent Hash.
- request (::Google::Cloud::DataCatalog::V1beta1::CreateTaxonomyRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def create_taxonomy(parent: nil, taxonomy: nil) -> ::Google::Cloud::DataCatalog::V1beta1::Taxonomycreate_taxonomy via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. Resource name of the project that the taxonomy will belong to.
- taxonomy (::Google::Cloud::DataCatalog::V1beta1::Taxonomy, ::Hash) — The taxonomy to be created.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::DataCatalog::V1beta1::Taxonomy)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/data_catalog/v1beta1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DataCatalog::V1beta1::PolicyTagManager::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DataCatalog::V1beta1::CreateTaxonomyRequest.new # Call the create_taxonomy method. result = client.create_taxonomy request # The returned object is of type Google::Cloud::DataCatalog::V1beta1::Taxonomy. p result
#delete_policy_tag
def delete_policy_tag(request, options = nil) -> ::Google::Protobuf::Empty
def delete_policy_tag(name: nil) -> ::Google::Protobuf::EmptyDeletes a policy tag. Also deletes all of its descendant policy tags.
def delete_policy_tag(request, options = nil) -> ::Google::Protobuf::Emptydelete_policy_tag via a request object, either of type
DeletePolicyTagRequest or an equivalent Hash.
- request (::Google::Cloud::DataCatalog::V1beta1::DeletePolicyTagRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def delete_policy_tag(name: nil) -> ::Google::Protobuf::Emptydelete_policy_tag via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. Resource name of the policy tag to be deleted. All of its descendant policy tags will also be deleted.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Protobuf::Empty)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/data_catalog/v1beta1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DataCatalog::V1beta1::PolicyTagManager::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DataCatalog::V1beta1::DeletePolicyTagRequest.new # Call the delete_policy_tag method. result = client.delete_policy_tag request # The returned object is of type Google::Protobuf::Empty. p result
#delete_taxonomy
def delete_taxonomy(request, options = nil) -> ::Google::Protobuf::Empty
def delete_taxonomy(name: nil) -> ::Google::Protobuf::EmptyDeletes a taxonomy. This operation will also delete all policy tags in this taxonomy along with their associated policies.
def delete_taxonomy(request, options = nil) -> ::Google::Protobuf::Emptydelete_taxonomy via a request object, either of type
DeleteTaxonomyRequest or an equivalent Hash.
- request (::Google::Cloud::DataCatalog::V1beta1::DeleteTaxonomyRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def delete_taxonomy(name: nil) -> ::Google::Protobuf::Emptydelete_taxonomy via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. Resource name of the taxonomy to be deleted. All policy tags in this taxonomy will also be deleted.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Protobuf::Empty)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/data_catalog/v1beta1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DataCatalog::V1beta1::PolicyTagManager::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DataCatalog::V1beta1::DeleteTaxonomyRequest.new # Call the delete_taxonomy method. result = client.delete_taxonomy request # The returned object is of type Google::Protobuf::Empty. p result
#get_iam_policy
def get_iam_policy(request, options = nil) -> ::Google::Iam::V1::Policy
def get_iam_policy(resource: nil, options: nil) -> ::Google::Iam::V1::PolicyGets the IAM policy for a taxonomy or a policy tag.
def get_iam_policy(request, options = nil) -> ::Google::Iam::V1::Policyget_iam_policy via a request object, either of type
Iam::V1::GetIamPolicyRequest or an equivalent Hash.
- request (::Google::Iam::V1::GetIamPolicyRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def get_iam_policy(resource: nil, options: nil) -> ::Google::Iam::V1::Policyget_iam_policy via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- resource (::String) — REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.
-
options (::Google::Iam::V1::GetPolicyOptions, ::Hash) — OPTIONAL: A
GetPolicyOptionsobject for specifying options toGetIamPolicy.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Iam::V1::Policy)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Iam::V1::Policy)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/data_catalog/v1beta1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DataCatalog::V1beta1::PolicyTagManager::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Iam::V1::GetIamPolicyRequest.new # Call the get_iam_policy method. result = client.get_iam_policy request # The returned object is of type Google::Iam::V1::Policy. p result
#get_policy_tag
def get_policy_tag(request, options = nil) -> ::Google::Cloud::DataCatalog::V1beta1::PolicyTag
def get_policy_tag(name: nil) -> ::Google::Cloud::DataCatalog::V1beta1::PolicyTagGets a policy tag.
def get_policy_tag(request, options = nil) -> ::Google::Cloud::DataCatalog::V1beta1::PolicyTagget_policy_tag via a request object, either of type
GetPolicyTagRequest or an equivalent Hash.
- request (::Google::Cloud::DataCatalog::V1beta1::GetPolicyTagRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def get_policy_tag(name: nil) -> ::Google::Cloud::DataCatalog::V1beta1::PolicyTagget_policy_tag via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. Resource name of the requested policy tag.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::DataCatalog::V1beta1::PolicyTag)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/data_catalog/v1beta1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DataCatalog::V1beta1::PolicyTagManager::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DataCatalog::V1beta1::GetPolicyTagRequest.new # Call the get_policy_tag method. result = client.get_policy_tag request # The returned object is of type Google::Cloud::DataCatalog::V1beta1::PolicyTag. p result
#get_taxonomy
def get_taxonomy(request, options = nil) -> ::Google::Cloud::DataCatalog::V1beta1::Taxonomy
def get_taxonomy(name: nil) -> ::Google::Cloud::DataCatalog::V1beta1::TaxonomyGets a taxonomy.
def get_taxonomy(request, options = nil) -> ::Google::Cloud::DataCatalog::V1beta1::Taxonomyget_taxonomy via a request object, either of type
GetTaxonomyRequest or an equivalent Hash.
- request (::Google::Cloud::DataCatalog::V1beta1::GetTaxonomyRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def get_taxonomy(name: nil) -> ::Google::Cloud::DataCatalog::V1beta1::Taxonomyget_taxonomy via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. Resource name of the requested taxonomy.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::DataCatalog::V1beta1::Taxonomy)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/data_catalog/v1beta1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DataCatalog::V1beta1::PolicyTagManager::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DataCatalog::V1beta1::GetTaxonomyRequest.new # Call the get_taxonomy method. result = client.get_taxonomy request # The returned object is of type Google::Cloud::DataCatalog::V1beta1::Taxonomy. p result
#iam_policy_client
def iam_policy_client() -> Google::Iam::V1::IAMPolicy::Rest::ClientGet the associated client for mix-in of the IAMPolicy.
- (Google::Iam::V1::IAMPolicy::Rest::Client)
#initialize
def initialize() { |config| ... } -> ClientCreate a new PolicyTagManager REST client object.
- (config) — Configure the PolicyTagManager client.
- config (Client::Configuration)
- (Client) — a new instance of Client
# Create a client using the default configuration client = ::Google::Cloud::DataCatalog::V1beta1::PolicyTagManager::Rest::Client.new # Create a client using a custom configuration client = ::Google::Cloud::DataCatalog::V1beta1::PolicyTagManager::Rest::Client.new do |config| config.timeout = 10.0 end
#list_policy_tags
def list_policy_tags(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::DataCatalog::V1beta1::PolicyTag>
def list_policy_tags(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::DataCatalog::V1beta1::PolicyTag>Lists all policy tags in a taxonomy.
def list_policy_tags(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::DataCatalog::V1beta1::PolicyTag>list_policy_tags via a request object, either of type
ListPolicyTagsRequest or an equivalent Hash.
- request (::Google::Cloud::DataCatalog::V1beta1::ListPolicyTagsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_policy_tags(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::DataCatalog::V1beta1::PolicyTag>list_policy_tags via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. Resource name of the taxonomy to list the policy tags of.
- page_size (::Integer) — The maximum number of items to return. Must be a value between 1 and 1000. If not set, defaults to 50.
- page_token (::String) — The next_page_token value returned from a previous List request, if any. If not set, defaults to an empty string.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::DataCatalog::V1beta1::PolicyTag>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::DataCatalog::V1beta1::PolicyTag>)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/data_catalog/v1beta1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DataCatalog::V1beta1::PolicyTagManager::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DataCatalog::V1beta1::ListPolicyTagsRequest.new # Call the list_policy_tags method. result = client.list_policy_tags request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::DataCatalog::V1beta1::PolicyTag. p item end
#list_taxonomies
def list_taxonomies(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::DataCatalog::V1beta1::Taxonomy>
def list_taxonomies(parent: nil, page_size: nil, page_token: nil, filter: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::DataCatalog::V1beta1::Taxonomy>Lists all taxonomies in a project in a particular location that the caller has permission to view.
def list_taxonomies(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::DataCatalog::V1beta1::Taxonomy>list_taxonomies via a request object, either of type
ListTaxonomiesRequest or an equivalent Hash.
- request (::Google::Cloud::DataCatalog::V1beta1::ListTaxonomiesRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_taxonomies(parent: nil, page_size: nil, page_token: nil, filter: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::DataCatalog::V1beta1::Taxonomy>list_taxonomies via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. Resource name of the project to list the taxonomies of.
- page_size (::Integer) — The maximum number of items to return. Must be a value between 1 and 1000. If not set, defaults to 50.
- page_token (::String) — The next_page_token value returned from a previous list request, if any. If not set, defaults to an empty string.
- filter (::String) — Supported field for filter is 'service' and value is 'dataplex'. Eg: service=dataplex.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::DataCatalog::V1beta1::Taxonomy>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::DataCatalog::V1beta1::Taxonomy>)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/data_catalog/v1beta1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DataCatalog::V1beta1::PolicyTagManager::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DataCatalog::V1beta1::ListTaxonomiesRequest.new # Call the list_taxonomies method. result = client.list_taxonomies request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::DataCatalog::V1beta1::Taxonomy. p item end
#logger
def logger() -> LoggerThe logger used for request/response debug logging.
- (Logger)
#set_iam_policy
def set_iam_policy(request, options = nil) -> ::Google::Iam::V1::Policy
def set_iam_policy(resource: nil, policy: nil, update_mask: nil) -> ::Google::Iam::V1::PolicySets the IAM policy for a taxonomy or a policy tag.
def set_iam_policy(request, options = nil) -> ::Google::Iam::V1::Policyset_iam_policy via a request object, either of type
Iam::V1::SetIamPolicyRequest or an equivalent Hash.
- request (::Google::Iam::V1::SetIamPolicyRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def set_iam_policy(resource: nil, policy: nil, update_mask: nil) -> ::Google::Iam::V1::Policyset_iam_policy via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- resource (::String) — REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.
-
policy (::Google::Iam::V1::Policy, ::Hash) — REQUIRED: The complete policy to be applied to the
resource. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them. -
update_mask (::Google::Protobuf::FieldMask, ::Hash) — OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
the fields in the mask will be modified. If no mask is provided, the
following default mask is used:
paths: "bindings, etag"
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Iam::V1::Policy)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Iam::V1::Policy)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/data_catalog/v1beta1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DataCatalog::V1beta1::PolicyTagManager::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Iam::V1::SetIamPolicyRequest.new # Call the set_iam_policy method. result = client.set_iam_policy request # The returned object is of type Google::Iam::V1::Policy. p result
#test_iam_permissions
def test_iam_permissions(request, options = nil) -> ::Google::Iam::V1::TestIamPermissionsResponse
def test_iam_permissions(resource: nil, permissions: nil) -> ::Google::Iam::V1::TestIamPermissionsResponseReturns the permissions that a caller has on the specified taxonomy or policy tag.
def test_iam_permissions(request, options = nil) -> ::Google::Iam::V1::TestIamPermissionsResponsetest_iam_permissions via a request object, either of type
Iam::V1::TestIamPermissionsRequest or an equivalent Hash.
- request (::Google::Iam::V1::TestIamPermissionsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def test_iam_permissions(resource: nil, permissions: nil) -> ::Google::Iam::V1::TestIamPermissionsResponsetest_iam_permissions via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- resource (::String) — REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.
-
permissions (::Array<::String>) — The set of permissions to check for the
resource. Permissions with wildcards (such as '' or 'storage.') are not allowed. For more information see IAM Overview.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Iam::V1::TestIamPermissionsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Iam::V1::TestIamPermissionsResponse)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/data_catalog/v1beta1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DataCatalog::V1beta1::PolicyTagManager::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Iam::V1::TestIamPermissionsRequest.new # Call the test_iam_permissions method. result = client.test_iam_permissions request # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse. p result
#universe_domain
def universe_domain() -> StringThe effective universe domain
- (String)
#update_policy_tag
def update_policy_tag(request, options = nil) -> ::Google::Cloud::DataCatalog::V1beta1::PolicyTag
def update_policy_tag(policy_tag: nil, update_mask: nil) -> ::Google::Cloud::DataCatalog::V1beta1::PolicyTagUpdates a policy tag.
def update_policy_tag(request, options = nil) -> ::Google::Cloud::DataCatalog::V1beta1::PolicyTagupdate_policy_tag via a request object, either of type
UpdatePolicyTagRequest or an equivalent Hash.
- request (::Google::Cloud::DataCatalog::V1beta1::UpdatePolicyTagRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def update_policy_tag(policy_tag: nil, update_mask: nil) -> ::Google::Cloud::DataCatalog::V1beta1::PolicyTagupdate_policy_tag via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- policy_tag (::Google::Cloud::DataCatalog::V1beta1::PolicyTag, ::Hash) — The policy tag to update. Only the description, display_name, and parent_policy_tag fields can be updated.
-
update_mask (::Google::Protobuf::FieldMask, ::Hash) — The update mask applies to the resource. Only display_name, description and
parent_policy_tag can be updated and thus can be listed in the mask. If
update_mask is not provided, all allowed fields (i.e. display_name,
description and parent) will be updated. For more information including the
FieldMaskdefinition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If not set, defaults to all of the fields that are allowed to update.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::DataCatalog::V1beta1::PolicyTag)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/data_catalog/v1beta1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DataCatalog::V1beta1::PolicyTagManager::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DataCatalog::V1beta1::UpdatePolicyTagRequest.new # Call the update_policy_tag method. result = client.update_policy_tag request # The returned object is of type Google::Cloud::DataCatalog::V1beta1::PolicyTag. p result
#update_taxonomy
def update_taxonomy(request, options = nil) -> ::Google::Cloud::DataCatalog::V1beta1::Taxonomy
def update_taxonomy(taxonomy: nil, update_mask: nil) -> ::Google::Cloud::DataCatalog::V1beta1::TaxonomyUpdates a taxonomy.
def update_taxonomy(request, options = nil) -> ::Google::Cloud::DataCatalog::V1beta1::Taxonomyupdate_taxonomy via a request object, either of type
UpdateTaxonomyRequest or an equivalent Hash.
- request (::Google::Cloud::DataCatalog::V1beta1::UpdateTaxonomyRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def update_taxonomy(taxonomy: nil, update_mask: nil) -> ::Google::Cloud::DataCatalog::V1beta1::Taxonomyupdate_taxonomy via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- taxonomy (::Google::Cloud::DataCatalog::V1beta1::Taxonomy, ::Hash) — The taxonomy to update. Only description, display_name, and activated policy types can be updated.
-
update_mask (::Google::Protobuf::FieldMask, ::Hash) — The update mask applies to the resource. For the
FieldMaskdefinition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If not set, defaults to all of the fields that are allowed to update.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::DataCatalog::V1beta1::Taxonomy)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/data_catalog/v1beta1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DataCatalog::V1beta1::PolicyTagManager::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DataCatalog::V1beta1::UpdateTaxonomyRequest.new # Call the update_taxonomy method. result = client.update_taxonomy request # The returned object is of type Google::Cloud::DataCatalog::V1beta1::Taxonomy. p result