Reference documentation and code samples for the Dataplex V1 API class Google::Cloud::Dataplex::V1::DataTaxonomyService::Rest::Client.
REST 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::ConfigurationConfigure 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::Rest::Client.configure do |config| config.timeout = 10.0 end
#configure
def configure() { |config| ... } -> Client::ConfigurationConfigure 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::OperationCreate a DataAttribute resource.
def create_data_attribute(request, options = nil) -> ::Gapic::Operationcreate_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::Operationcreate_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.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::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::OperationCreate a DataAttributeBinding resource.
def create_data_attribute_binding(request, options = nil) -> ::Gapic::Operationcreate_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::Operationcreate_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.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::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::OperationCreate a DataTaxonomy resource.
def create_data_taxonomy(request, options = nil) -> ::Gapic::Operationcreate_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::Operationcreate_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)
-
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.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::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::OperationDeletes a Data Attribute resource.
def delete_data_attribute(request, options = nil) -> ::Gapic::Operationdelete_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::Operationdelete_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.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::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::OperationDeletes 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::Operationdelete_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::Operationdelete_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.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::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::OperationDeletes 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::Operationdelete_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::Operationdelete_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.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::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::DataAttributeRetrieves a Data Attribute resource.
def get_data_attribute(request, options = nil) -> ::Google::Cloud::Dataplex::V1::DataAttributeget_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::DataAttributeget_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}
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Dataplex::V1::DataAttribute)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::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::DataAttributeBindingRetrieves a DataAttributeBinding resource.
def get_data_attribute_binding(request, options = nil) -> ::Google::Cloud::Dataplex::V1::DataAttributeBindingget_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::DataAttributeBindingget_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}
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Dataplex::V1::DataAttributeBinding)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::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::DataTaxonomyRetrieves a DataTaxonomy resource.
def get_data_taxonomy(request, options = nil) -> ::Google::Cloud::Dataplex::V1::DataTaxonomyget_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::DataTaxonomyget_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)
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Dataplex::V1::DataTaxonomy)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::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::Rest::ClientGet the associated client for mix-in of the IAMPolicy.
- (Google::Iam::V1::IAMPolicy::Rest::Client)
#initialize
def initialize() { |config| ... } -> ClientCreate a new DataTaxonomyService REST 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::Rest::Client.new # Create a client using a custom configuration client = ::Google::Cloud::Dataplex::V1::DataTaxonomyService::Rest::Client.new do |config| config.timeout = 10.0 end
#list_data_attribute_bindings
def list_data_attribute_bindings(request, options = nil) -> ::Gapic::Rest::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::Rest::PagedEnumerable<::Google::Cloud::Dataplex::V1::DataAttributeBinding>Lists DataAttributeBinding resources in a project and location.
def list_data_attribute_bindings(request, options = nil) -> ::Gapic::Rest::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::Rest::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
ListDataAttributeBindingscall. Provide this to retrieve the subsequent page. When paginating, all other parameters provided toListDataAttributeBindingsmust 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.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataplex::V1::DataAttributeBinding>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataplex::V1::DataAttributeBinding>)
- (::Google::Cloud::Error) — if the REST call 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::Rest::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::Rest::PagedEnumerable<::Google::Cloud::Dataplex::V1::DataAttribute>
def list_data_attributes(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataplex::V1::DataAttribute>Lists Data Attribute resources in a DataTaxonomy.
def list_data_attributes(request, options = nil) -> ::Gapic::Rest::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::Rest::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
ListDataAttributescall. Provide this to retrieve the subsequent page. When paginating, all other parameters provided toListDataAttributesmust match the call that provided the page token. - filter (::String) — Optional. Filter request.
- order_by (::String) — Optional. Order by fields for the result.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataplex::V1::DataAttribute>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataplex::V1::DataAttribute>)
- (::Google::Cloud::Error) — if the REST call 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::Rest::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::Rest::PagedEnumerable<::Google::Cloud::Dataplex::V1::DataTaxonomy>
def list_data_taxonomies(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataplex::V1::DataTaxonomy>Lists DataTaxonomy resources in a project and location.
def list_data_taxonomies(request, options = nil) -> ::Gapic::Rest::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::Rest::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_idrefers to a Google Cloud 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
ListDataTaxonomiescall. Provide this to retrieve the subsequent page. When paginating, all other parameters provided toListDataTaxonomiesmust match the call that provided the page token. - filter (::String) — Optional. Filter request.
- order_by (::String) — Optional. Order by fields for the result.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataplex::V1::DataTaxonomy>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataplex::V1::DataTaxonomy>)
- (::Google::Cloud::Error) — if the REST call 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::Rest::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::Rest::ClientGet the associated client for mix-in of the Locations.
- (Google::Cloud::Location::Locations::Rest::Client)
#logger
def logger() -> LoggerThe logger used for request/response debug logging.
- (Logger)
#operations_client
def operations_client() -> ::Google::Cloud::Dataplex::V1::DataTaxonomyService::Rest::OperationsGet the associated client for long-running operations.
#universe_domain
def universe_domain() -> StringThe 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::OperationUpdates a DataAttribute resource.
def update_data_attribute(request, options = nil) -> ::Gapic::Operationupdate_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::Operationupdate_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_maskare updated. - validate_only (::Boolean) — Optional. Only validate the request, but do not perform mutations. The default is false.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::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::OperationUpdates a DataAttributeBinding resource.
def update_data_attribute_binding(request, options = nil) -> ::Gapic::Operationupdate_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::Operationupdate_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_maskare updated. - validate_only (::Boolean) — Optional. Only validate the request, but do not perform mutations. The default is false.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::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::OperationUpdates a DataTaxonomy resource.
def update_data_taxonomy(request, options = nil) -> ::Gapic::Operationupdate_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::Operationupdate_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_maskare updated. - validate_only (::Boolean) — Optional. Only validate the request, but do not perform mutations. The default is false.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::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