Reference documentation and code samples for the Google Cloud Data Catalog V1BETA1 API class Google::Cloud::DataCatalog::V1beta1::PolicyTagManagerSerialization::Rest::Client.
REST client for the PolicyTagManagerSerialization service.
Policy tag manager serialization API service allows clients to manipulate their taxonomies and policy tags data with serialized format.
Inherits
- Object
Methods
.configure
def self.configure() { |config| ... } -> Client::Configuration
Configure the PolicyTagManagerSerialization Client class.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
# Modify the configuration for all PolicyTagManagerSerialization clients ::Google::Cloud::DataCatalog::V1beta1::PolicyTagManagerSerialization::Rest::Client.configure do |config| config.timeout = 10.0 end
#configure
def configure() { |config| ... } -> Client::Configuration
Configure the PolicyTagManagerSerialization 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)
#export_taxonomies
def export_taxonomies(request, options = nil) -> ::Google::Cloud::DataCatalog::V1beta1::ExportTaxonomiesResponse
def export_taxonomies(parent: nil, taxonomies: nil, serialized_taxonomies: nil) -> ::Google::Cloud::DataCatalog::V1beta1::ExportTaxonomiesResponse
Exports all taxonomies and their policy tags in a project.
This method generates SerializedTaxonomy protos with nested policy tags that can be used as an input for future ImportTaxonomies calls.
def export_taxonomies(request, options = nil) -> ::Google::Cloud::DataCatalog::V1beta1::ExportTaxonomiesResponse
export_taxonomies
via a request object, either of type
ExportTaxonomiesRequest or an equivalent Hash.
- request (::Google::Cloud::DataCatalog::V1beta1::ExportTaxonomiesRequest, ::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 export_taxonomies(parent: nil, taxonomies: nil, serialized_taxonomies: nil) -> ::Google::Cloud::DataCatalog::V1beta1::ExportTaxonomiesResponse
export_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 that taxonomies to be exported will share.
- taxonomies (::Array<::String>) — Required. Resource names of the taxonomies to be exported.
- serialized_taxonomies (::Boolean) — Export taxonomies as serialized taxonomies.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::DataCatalog::V1beta1::ExportTaxonomiesResponse)
- 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::PolicyTagManagerSerialization::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DataCatalog::V1beta1::ExportTaxonomiesRequest.new # Call the export_taxonomies method. result = client.export_taxonomies request # The returned object is of type Google::Cloud::DataCatalog::V1beta1::ExportTaxonomiesResponse. p result
#iam_policy_client
def iam_policy_client() -> Google::Iam::V1::IAMPolicy::Rest::Client
Get the associated client for mix-in of the IAMPolicy.
- (Google::Iam::V1::IAMPolicy::Rest::Client)
#import_taxonomies
def import_taxonomies(request, options = nil) -> ::Google::Cloud::DataCatalog::V1beta1::ImportTaxonomiesResponse
def import_taxonomies(parent: nil, inline_source: nil) -> ::Google::Cloud::DataCatalog::V1beta1::ImportTaxonomiesResponse
Imports all taxonomies and their policy tags to a project as new taxonomies.
This method provides a bulk taxonomy / policy tag creation using nested proto structure.
def import_taxonomies(request, options = nil) -> ::Google::Cloud::DataCatalog::V1beta1::ImportTaxonomiesResponse
import_taxonomies
via a request object, either of type
ImportTaxonomiesRequest or an equivalent Hash.
- request (::Google::Cloud::DataCatalog::V1beta1::ImportTaxonomiesRequest, ::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 import_taxonomies(parent: nil, inline_source: nil) -> ::Google::Cloud::DataCatalog::V1beta1::ImportTaxonomiesResponse
import_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 project that the imported taxonomies will belong to.
- inline_source (::Google::Cloud::DataCatalog::V1beta1::InlineSource, ::Hash) — Inline source used for taxonomies to be imported.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::DataCatalog::V1beta1::ImportTaxonomiesResponse)
- 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::PolicyTagManagerSerialization::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DataCatalog::V1beta1::ImportTaxonomiesRequest.new # Call the import_taxonomies method. result = client.import_taxonomies request # The returned object is of type Google::Cloud::DataCatalog::V1beta1::ImportTaxonomiesResponse. p result
#initialize
def initialize() { |config| ... } -> Client
Create a new PolicyTagManagerSerialization REST client object.
- (config) — Configure the PolicyTagManagerSerialization client.
- config (Client::Configuration)
- (Client) — a new instance of Client
# Create a client using the default configuration client = ::Google::Cloud::DataCatalog::V1beta1::PolicyTagManagerSerialization::Rest::Client.new # Create a client using a custom configuration client = ::Google::Cloud::DataCatalog::V1beta1::PolicyTagManagerSerialization::Rest::Client.new do |config| config.timeout = 10.0 end
#universe_domain
def universe_domain() -> String
The effective universe domain
- (String)