Reference documentation and code samples for the Dataplex V1 API class Google::Cloud::Dataplex::V1::DataTaxonomyService::Client.
Client for the DataTaxonomyService service.
DataTaxonomyService enables attribute-based governance. The resources currently offered include DataTaxonomy and DataAttribute.
Inherits
- Object
Methods
.configure
def self.configure() { |config| ... } -> Client::Configuration
Configure the DataTaxonomyService Client class.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
# Modify the configuration for all DataTaxonomyService clients ::Google::Cloud::Dataplex::V1::DataTaxonomyService::Client.configure do |config| config.timeout = 10.0 end
#configure
def configure() { |config| ... } -> Client::Configuration
Configure the DataTaxonomyService 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_data_attribute
def create_data_attribute(request, options = nil) -> ::Gapic::Operation
def create_data_attribute(parent: nil, data_attribute_id: nil, data_attribute: nil, validate_only: nil) -> ::Gapic::Operation
Create a DataAttribute resource.
def create_data_attribute(request, options = nil) -> ::Gapic::Operation
create_data_attribute
via a request object, either of type
CreateDataAttributeRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::CreateDataAttributeRequest, ::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_data_attribute(parent: nil, data_attribute_id: nil, data_attribute: nil, validate_only: nil) -> ::Gapic::Operation
create_data_attribute
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. The resource name of the parent data taxonomy projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id}
-
data_attribute_id (::String) —
Required. DataAttribute identifier.
- Must contain only lowercase letters, numbers and hyphens.
- Must start with a letter.
- Must be between 1-63 characters.
- Must end with a number or a letter.
- Must be unique within the DataTaxonomy.
- data_attribute (::Google::Cloud::Dataplex::V1::DataAttribute, ::Hash) — Required. DataAttribute resource.
- validate_only (::Boolean) — Optional. Only validate the request, but do not perform mutations. The default is false.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/dataplex/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Dataplex::V1::DataTaxonomyService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::CreateDataAttributeRequest.new # Call the create_data_attribute method. result = client.create_data_attribute request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#create_data_attribute_binding
def create_data_attribute_binding(request, options = nil) -> ::Gapic::Operation
def create_data_attribute_binding(parent: nil, data_attribute_binding_id: nil, data_attribute_binding: nil, validate_only: nil) -> ::Gapic::Operation
Create a DataAttributeBinding resource.
def create_data_attribute_binding(request, options = nil) -> ::Gapic::Operation
create_data_attribute_binding
via a request object, either of type
CreateDataAttributeBindingRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::CreateDataAttributeBindingRequest, ::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_data_attribute_binding(parent: nil, data_attribute_binding_id: nil, data_attribute_binding: nil, validate_only: nil) -> ::Gapic::Operation
create_data_attribute_binding
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. The resource name of the parent data taxonomy projects/{project_number}/locations/{location_id}
-
data_attribute_binding_id (::String) —
Required. DataAttributeBinding identifier.
- Must contain only lowercase letters, numbers and hyphens.
- Must start with a letter.
- Must be between 1-63 characters.
- Must end with a number or a letter.
- Must be unique within the Location.
- data_attribute_binding (::Google::Cloud::Dataplex::V1::DataAttributeBinding, ::Hash) — Required. DataAttributeBinding resource.
- validate_only (::Boolean) — Optional. Only validate the request, but do not perform mutations. The default is false.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/dataplex/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Dataplex::V1::DataTaxonomyService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::CreateDataAttributeBindingRequest.new # Call the create_data_attribute_binding method. result = client.create_data_attribute_binding request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#create_data_taxonomy
def create_data_taxonomy(request, options = nil) -> ::Gapic::Operation
def create_data_taxonomy(parent: nil, data_taxonomy_id: nil, data_taxonomy: nil, validate_only: nil) -> ::Gapic::Operation
Create a DataTaxonomy resource.
def create_data_taxonomy(request, options = nil) -> ::Gapic::Operation
create_data_taxonomy
via a request object, either of type
CreateDataTaxonomyRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::CreateDataTaxonomyRequest, ::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_data_taxonomy(parent: nil, data_taxonomy_id: nil, data_taxonomy: nil, validate_only: nil) -> ::Gapic::Operation
create_data_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. The resource name of the data taxonomy location, of the form:
projects/{project_number}/locations/{location_id}
where
location_id
refers to a GCP region. -
data_taxonomy_id (::String) —
Required. DataTaxonomy identifier.
- Must contain only lowercase letters, numbers and hyphens.
- Must start with a letter.
- Must be between 1-63 characters.
- Must end with a number or a letter.
- Must be unique within the Project.
- data_taxonomy (::Google::Cloud::Dataplex::V1::DataTaxonomy, ::Hash) — Required. DataTaxonomy resource.
- validate_only (::Boolean) — Optional. Only validate the request, but do not perform mutations. The default is false.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/dataplex/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Dataplex::V1::DataTaxonomyService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::CreateDataTaxonomyRequest.new # Call the create_data_taxonomy method. result = client.create_data_taxonomy request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#delete_data_attribute
def delete_data_attribute(request, options = nil) -> ::Gapic::Operation
def delete_data_attribute(name: nil, etag: nil) -> ::Gapic::Operation
Deletes a Data Attribute resource.
def delete_data_attribute(request, options = nil) -> ::Gapic::Operation
delete_data_attribute
via a request object, either of type
Google::Cloud::Dataplex::V1::DeleteDataAttributeRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::DeleteDataAttributeRequest, ::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_data_attribute(name: nil, etag: nil) -> ::Gapic::Operation
delete_data_attribute
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. The resource name of the DataAttribute: projects/{project_number}/locations/{location_id}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id}
- etag (::String) — Optional. If the client provided etag value does not match the current etag value, the DeleteDataAttribute method returns an ABORTED error response.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/dataplex/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Dataplex::V1::DataTaxonomyService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::DeleteDataAttributeRequest.new # Call the delete_data_attribute method. result = client.delete_data_attribute request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#delete_data_attribute_binding
def delete_data_attribute_binding(request, options = nil) -> ::Gapic::Operation
def delete_data_attribute_binding(name: nil, etag: nil) -> ::Gapic::Operation
Deletes a DataAttributeBinding resource. All attributes within the DataAttributeBinding must be deleted before the DataAttributeBinding can be deleted.
def delete_data_attribute_binding(request, options = nil) -> ::Gapic::Operation
delete_data_attribute_binding
via a request object, either of type
Google::Cloud::Dataplex::V1::DeleteDataAttributeBindingRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::DeleteDataAttributeBindingRequest, ::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_data_attribute_binding(name: nil, etag: nil) -> ::Gapic::Operation
delete_data_attribute_binding
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. The resource name of the DataAttributeBinding: projects/{project_number}/locations/{location_id}/dataAttributeBindings/{data_attribute_binding_id}
- etag (::String) — Required. If the client provided etag value does not match the current etag value, the DeleteDataAttributeBindingRequest method returns an ABORTED error response. Etags must be used when calling the DeleteDataAttributeBinding.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/dataplex/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Dataplex::V1::DataTaxonomyService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::DeleteDataAttributeBindingRequest.new # Call the delete_data_attribute_binding method. result = client.delete_data_attribute_binding request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#delete_data_taxonomy
def delete_data_taxonomy(request, options = nil) -> ::Gapic::Operation
def delete_data_taxonomy(name: nil, etag: nil) -> ::Gapic::Operation
Deletes a DataTaxonomy resource. All attributes within the DataTaxonomy must be deleted before the DataTaxonomy can be deleted.
def delete_data_taxonomy(request, options = nil) -> ::Gapic::Operation
delete_data_taxonomy
via a request object, either of type
Google::Cloud::Dataplex::V1::DeleteDataTaxonomyRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::DeleteDataTaxonomyRequest, ::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_data_taxonomy(name: nil, etag: nil) -> ::Gapic::Operation
delete_data_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. The resource name of the DataTaxonomy: projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id}
- etag (::String) — Optional. If the client provided etag value does not match the current etag value,the DeleteDataTaxonomy method returns an ABORTED error.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/dataplex/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Dataplex::V1::DataTaxonomyService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::DeleteDataTaxonomyRequest.new # Call the delete_data_taxonomy method. result = client.delete_data_taxonomy request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#get_data_attribute
def get_data_attribute(request, options = nil) -> ::Google::Cloud::Dataplex::V1::DataAttribute
def get_data_attribute(name: nil) -> ::Google::Cloud::Dataplex::V1::DataAttribute
Retrieves a Data Attribute resource.
def get_data_attribute(request, options = nil) -> ::Google::Cloud::Dataplex::V1::DataAttribute
get_data_attribute
via a request object, either of type
GetDataAttributeRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::GetDataAttributeRequest, ::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_data_attribute(name: nil) -> ::Google::Cloud::Dataplex::V1::DataAttribute
get_data_attribute
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. The resource name of the dataAttribute: projects/{project_number}/locations/{location_id}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id}
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::Dataplex::V1::DataAttribute)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/dataplex/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Dataplex::V1::DataTaxonomyService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::GetDataAttributeRequest.new # Call the get_data_attribute method. result = client.get_data_attribute request # The returned object is of type Google::Cloud::Dataplex::V1::DataAttribute. p result
#get_data_attribute_binding
def get_data_attribute_binding(request, options = nil) -> ::Google::Cloud::Dataplex::V1::DataAttributeBinding
def get_data_attribute_binding(name: nil) -> ::Google::Cloud::Dataplex::V1::DataAttributeBinding
Retrieves a DataAttributeBinding resource.
def get_data_attribute_binding(request, options = nil) -> ::Google::Cloud::Dataplex::V1::DataAttributeBinding
get_data_attribute_binding
via a request object, either of type
GetDataAttributeBindingRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::GetDataAttributeBindingRequest, ::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_data_attribute_binding(name: nil) -> ::Google::Cloud::Dataplex::V1::DataAttributeBinding
get_data_attribute_binding
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. The resource name of the DataAttributeBinding: projects/{project_number}/locations/{location_id}/dataAttributeBindings/{data_attribute_binding_id}
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::Dataplex::V1::DataAttributeBinding)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/dataplex/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Dataplex::V1::DataTaxonomyService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::GetDataAttributeBindingRequest.new # Call the get_data_attribute_binding method. result = client.get_data_attribute_binding request # The returned object is of type Google::Cloud::Dataplex::V1::DataAttributeBinding. p result
#get_data_taxonomy
def get_data_taxonomy(request, options = nil) -> ::Google::Cloud::Dataplex::V1::DataTaxonomy
def get_data_taxonomy(name: nil) -> ::Google::Cloud::Dataplex::V1::DataTaxonomy
Retrieves a DataTaxonomy resource.
def get_data_taxonomy(request, options = nil) -> ::Google::Cloud::Dataplex::V1::DataTaxonomy
get_data_taxonomy
via a request object, either of type
GetDataTaxonomyRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::GetDataTaxonomyRequest, ::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_data_taxonomy(name: nil) -> ::Google::Cloud::Dataplex::V1::DataTaxonomy
get_data_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. The resource name of the DataTaxonomy: projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id}
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::Dataplex::V1::DataTaxonomy)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/dataplex/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Dataplex::V1::DataTaxonomyService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::GetDataTaxonomyRequest.new # Call the get_data_taxonomy method. result = client.get_data_taxonomy request # The returned object is of type Google::Cloud::Dataplex::V1::DataTaxonomy. p result
#iam_policy_client
def iam_policy_client() -> Google::Iam::V1::IAMPolicy::Client
Get the associated client for mix-in of the IAMPolicy.
- (Google::Iam::V1::IAMPolicy::Client)
#initialize
def initialize() { |config| ... } -> Client
Create a new DataTaxonomyService client object.
- (config) — Configure the DataTaxonomyService client.
- config (Client::Configuration)
- (Client) — a new instance of Client
# Create a client using the default configuration client = ::Google::Cloud::Dataplex::V1::DataTaxonomyService::Client.new # Create a client using a custom configuration client = ::Google::Cloud::Dataplex::V1::DataTaxonomyService::Client.new do |config| config.timeout = 10.0 end
#list_data_attribute_bindings
def list_data_attribute_bindings(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dataplex::V1::DataAttributeBinding>
def list_data_attribute_bindings(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dataplex::V1::DataAttributeBinding>
Lists DataAttributeBinding resources in a project and location.
def list_data_attribute_bindings(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dataplex::V1::DataAttributeBinding>
list_data_attribute_bindings
via a request object, either of type
ListDataAttributeBindingsRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::ListDataAttributeBindingsRequest, ::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_data_attribute_bindings(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dataplex::V1::DataAttributeBinding>
list_data_attribute_bindings
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. The resource name of the Location: projects/{project_number}/locations/{location_id}
- page_size (::Integer) — Optional. Maximum number of DataAttributeBindings to return. The service may return fewer than this value. If unspecified, at most 10 DataAttributeBindings will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
-
page_token (::String) — Optional. Page token received from a previous
ListDataAttributeBindings
call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided toListDataAttributeBindings
must match the call that provided the page token. - filter (::String) — Optional. Filter request. Filter using resource: filter=resource:"resource-name" Filter using attribute: filter=attributes:"attribute-name" Filter using attribute in paths list: filter=paths.attributes:"attribute-name"
- order_by (::String) — Optional. Order by fields for the result.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::Dataplex::V1::DataAttributeBinding>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::Dataplex::V1::DataAttributeBinding>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/dataplex/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Dataplex::V1::DataTaxonomyService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::ListDataAttributeBindingsRequest.new # Call the list_data_attribute_bindings method. result = client.list_data_attribute_bindings 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::Dataplex::V1::DataAttributeBinding. p item end
#list_data_attributes
def list_data_attributes(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dataplex::V1::DataAttribute>
def list_data_attributes(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dataplex::V1::DataAttribute>
Lists Data Attribute resources in a DataTaxonomy.
def list_data_attributes(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dataplex::V1::DataAttribute>
list_data_attributes
via a request object, either of type
ListDataAttributesRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::ListDataAttributesRequest, ::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_data_attributes(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dataplex::V1::DataAttribute>
list_data_attributes
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. The resource name of the DataTaxonomy: projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id}
- page_size (::Integer) — Optional. Maximum number of DataAttributes to return. The service may return fewer than this value. If unspecified, at most 10 dataAttributes will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
-
page_token (::String) — Optional. Page token received from a previous
ListDataAttributes
call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided toListDataAttributes
must match the call that provided the page token. - filter (::String) — Optional. Filter request.
- order_by (::String) — Optional. Order by fields for the result.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::Dataplex::V1::DataAttribute>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::Dataplex::V1::DataAttribute>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/dataplex/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Dataplex::V1::DataTaxonomyService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::ListDataAttributesRequest.new # Call the list_data_attributes method. result = client.list_data_attributes 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::Dataplex::V1::DataAttribute. p item end
#list_data_taxonomies
def list_data_taxonomies(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dataplex::V1::DataTaxonomy>
def list_data_taxonomies(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dataplex::V1::DataTaxonomy>
Lists DataTaxonomy resources in a project and location.
def list_data_taxonomies(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dataplex::V1::DataTaxonomy>
list_data_taxonomies
via a request object, either of type
ListDataTaxonomiesRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::ListDataTaxonomiesRequest, ::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_data_taxonomies(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dataplex::V1::DataTaxonomy>
list_data_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. The resource name of the DataTaxonomy location, of the form:
projects/{project_number}/locations/{location_id}
where
location_id
refers to a GCP region. - page_size (::Integer) — Optional. Maximum number of DataTaxonomies to return. The service may return fewer than this value. If unspecified, at most 10 DataTaxonomies will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
-
page_token (::String) — Optional. Page token received from a previous
ListDataTaxonomies
call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided toListDataTaxonomies
must match the call that provided the page token. - filter (::String) — Optional. Filter request.
- order_by (::String) — Optional. Order by fields for the result.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::Dataplex::V1::DataTaxonomy>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::Dataplex::V1::DataTaxonomy>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/dataplex/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Dataplex::V1::DataTaxonomyService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::ListDataTaxonomiesRequest.new # Call the list_data_taxonomies method. result = client.list_data_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::Dataplex::V1::DataTaxonomy. p item end
#location_client
def location_client() -> Google::Cloud::Location::Locations::Client
Get the associated client for mix-in of the Locations.
- (Google::Cloud::Location::Locations::Client)
#operations_client
def operations_client() -> ::Google::Cloud::Dataplex::V1::DataTaxonomyService::Operations
Get the associated client for long-running operations.
#universe_domain
def universe_domain() -> String
The effective universe domain
- (String)
#update_data_attribute
def update_data_attribute(request, options = nil) -> ::Gapic::Operation
def update_data_attribute(update_mask: nil, data_attribute: nil, validate_only: nil) -> ::Gapic::Operation
Updates a DataAttribute resource.
def update_data_attribute(request, options = nil) -> ::Gapic::Operation
update_data_attribute
via a request object, either of type
UpdateDataAttributeRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::UpdateDataAttributeRequest, ::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_data_attribute(update_mask: nil, data_attribute: nil, validate_only: nil) -> ::Gapic::Operation
update_data_attribute
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).
- update_mask (::Google::Protobuf::FieldMask, ::Hash) — Required. Mask of fields to update.
-
data_attribute (::Google::Cloud::Dataplex::V1::DataAttribute, ::Hash) — Required. Only fields specified in
update_mask
are updated. - validate_only (::Boolean) — Optional. Only validate the request, but do not perform mutations. The default is false.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/dataplex/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Dataplex::V1::DataTaxonomyService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::UpdateDataAttributeRequest.new # Call the update_data_attribute method. result = client.update_data_attribute request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#update_data_attribute_binding
def update_data_attribute_binding(request, options = nil) -> ::Gapic::Operation
def update_data_attribute_binding(update_mask: nil, data_attribute_binding: nil, validate_only: nil) -> ::Gapic::Operation
Updates a DataAttributeBinding resource.
def update_data_attribute_binding(request, options = nil) -> ::Gapic::Operation
update_data_attribute_binding
via a request object, either of type
UpdateDataAttributeBindingRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::UpdateDataAttributeBindingRequest, ::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_data_attribute_binding(update_mask: nil, data_attribute_binding: nil, validate_only: nil) -> ::Gapic::Operation
update_data_attribute_binding
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).
- update_mask (::Google::Protobuf::FieldMask, ::Hash) — Required. Mask of fields to update.
-
data_attribute_binding (::Google::Cloud::Dataplex::V1::DataAttributeBinding, ::Hash) — Required. Only fields specified in
update_mask
are updated. - validate_only (::Boolean) — Optional. Only validate the request, but do not perform mutations. The default is false.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/dataplex/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Dataplex::V1::DataTaxonomyService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::UpdateDataAttributeBindingRequest.new # Call the update_data_attribute_binding method. result = client.update_data_attribute_binding request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#update_data_taxonomy
def update_data_taxonomy(request, options = nil) -> ::Gapic::Operation
def update_data_taxonomy(update_mask: nil, data_taxonomy: nil, validate_only: nil) -> ::Gapic::Operation
Updates a DataTaxonomy resource.
def update_data_taxonomy(request, options = nil) -> ::Gapic::Operation
update_data_taxonomy
via a request object, either of type
UpdateDataTaxonomyRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::UpdateDataTaxonomyRequest, ::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_data_taxonomy(update_mask: nil, data_taxonomy: nil, validate_only: nil) -> ::Gapic::Operation
update_data_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).
- update_mask (::Google::Protobuf::FieldMask, ::Hash) — Required. Mask of fields to update.
-
data_taxonomy (::Google::Cloud::Dataplex::V1::DataTaxonomy, ::Hash) — Required. Only fields specified in
update_mask
are updated. - validate_only (::Boolean) — Optional. Only validate the request, but do not perform mutations. The default is false.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/dataplex/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Dataplex::V1::DataTaxonomyService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::UpdateDataTaxonomyRequest.new # Call the update_data_taxonomy method. result = client.update_data_taxonomy request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end