Data Catalog V1 API - Class Google::Cloud::DataCatalog::V1::PolicyTagManager::Rest::ServiceStub (v0.23.0)

Reference documentation and code samples for the Data Catalog V1 API class Google::Cloud::DataCatalog::V1::PolicyTagManager::Rest::ServiceStub.

REST service stub for the PolicyTagManager service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.

Inherits

  • Object

Methods

#create_policy_tag

def create_policy_tag(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::DataCatalog::V1::PolicyTag

Baseline implementation for the create_policy_tag REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_taxonomy

def create_taxonomy(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::DataCatalog::V1::Taxonomy

Baseline implementation for the create_taxonomy REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_policy_tag

def delete_policy_tag(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty

Baseline implementation for the delete_policy_tag REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_taxonomy

def delete_taxonomy(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty

Baseline implementation for the delete_taxonomy REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#endpoint

def endpoint() -> String

The effective endpoint

Returns
  • (String)

#get_iam_policy

def get_iam_policy(request_pb, options = nil) { |result, operation| ... } -> ::Google::Iam::V1::Policy

Baseline implementation for the get_iam_policy REST call

Parameters
  • request_pb (::Google::Iam::V1::GetIamPolicyRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
  • result (::Google::Iam::V1::Policy)
  • operation (::Gapic::Rest::TransportOperation)
Returns
  • (::Google::Iam::V1::Policy) — A result object deserialized from the server's reply
Raises
  • (::ArgumentError)

#get_policy_tag

def get_policy_tag(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::DataCatalog::V1::PolicyTag

Baseline implementation for the get_policy_tag REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_taxonomy

def get_taxonomy(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::DataCatalog::V1::Taxonomy

Baseline implementation for the get_taxonomy REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#initialize

def initialize(endpoint:, endpoint_template:, universe_domain:, credentials:) -> ServiceStub
Returns

#list_policy_tags

def list_policy_tags(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::DataCatalog::V1::ListPolicyTagsResponse

Baseline implementation for the list_policy_tags REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_taxonomies

def list_taxonomies(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::DataCatalog::V1::ListTaxonomiesResponse

Baseline implementation for the list_taxonomies REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#set_iam_policy

def set_iam_policy(request_pb, options = nil) { |result, operation| ... } -> ::Google::Iam::V1::Policy

Baseline implementation for the set_iam_policy REST call

Parameters
  • request_pb (::Google::Iam::V1::SetIamPolicyRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
  • result (::Google::Iam::V1::Policy)
  • operation (::Gapic::Rest::TransportOperation)
Returns
  • (::Google::Iam::V1::Policy) — A result object deserialized from the server's reply
Raises
  • (::ArgumentError)

#test_iam_permissions

def test_iam_permissions(request_pb, options = nil) { |result, operation| ... } -> ::Google::Iam::V1::TestIamPermissionsResponse

Baseline implementation for the test_iam_permissions REST call

Parameters
  • request_pb (::Google::Iam::V1::TestIamPermissionsRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
  • result (::Google::Iam::V1::TestIamPermissionsResponse)
  • operation (::Gapic::Rest::TransportOperation)
Returns
  • (::Google::Iam::V1::TestIamPermissionsResponse) — A result object deserialized from the server's reply
Raises
  • (::ArgumentError)

#universe_domain

def universe_domain() -> String

The effective universe domain

Returns
  • (String)

#update_policy_tag

def update_policy_tag(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::DataCatalog::V1::PolicyTag

Baseline implementation for the update_policy_tag REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#update_taxonomy

def update_taxonomy(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::DataCatalog::V1::Taxonomy

Baseline implementation for the update_taxonomy REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)