Reference documentation and code samples for the Dataplex V1 API class Google::Cloud::Dataplex::V1::CatalogService::Rest::Client.
REST client for the CatalogService service.
The primary resources offered by this service are EntryGroups, EntryTypes, AspectTypes, and Entries. They collectively let data administrators organize, manage, secure, and catalog data located across cloud projects in their organization in a variety of storage systems, including Cloud Storage and BigQuery.
Inherits
- Object
Methods
.configure
def self.configure() { |config| ... } -> Client::Configuration
Configure the CatalogService Client class.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
# Modify the configuration for all CatalogService clients ::Google::Cloud::Dataplex::V1::CatalogService::Rest::Client.configure do |config| config.timeout = 10.0 end
#cancel_metadata_job
def cancel_metadata_job(request, options = nil) -> ::Google::Protobuf::Empty
def cancel_metadata_job(name: nil) -> ::Google::Protobuf::Empty
Cancels a metadata job.
If you cancel a metadata import job that is in progress, the changes in the job might be partially applied. We recommend that you reset the state of the entry groups in your project by running another metadata job that reverts the changes from the canceled job.
def cancel_metadata_job(request, options = nil) -> ::Google::Protobuf::Empty
cancel_metadata_job
via a request object, either of type
Google::Cloud::Dataplex::V1::CancelMetadataJobRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::CancelMetadataJobRequest, ::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 cancel_metadata_job(name: nil) -> ::Google::Protobuf::Empty
cancel_metadata_job
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 job, in the format
projects/{project_id_or_number}/locations/{location_id}/metadataJobs/{metadata_job_id}
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Protobuf::Empty)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/dataplex/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Dataplex::V1::CatalogService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::CancelMetadataJobRequest.new # Call the cancel_metadata_job method. result = client.cancel_metadata_job request # The returned object is of type Google::Protobuf::Empty. p result
#configure
def configure() { |config| ... } -> Client::Configuration
Configure the CatalogService 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_aspect_type
def create_aspect_type(request, options = nil) -> ::Gapic::Operation
def create_aspect_type(parent: nil, aspect_type_id: nil, aspect_type: nil, validate_only: nil) -> ::Gapic::Operation
Creates an AspectType.
def create_aspect_type(request, options = nil) -> ::Gapic::Operation
create_aspect_type
via a request object, either of type
Google::Cloud::Dataplex::V1::CreateAspectTypeRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::CreateAspectTypeRequest, ::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_aspect_type(parent: nil, aspect_type_id: nil, aspect_type: nil, validate_only: nil) -> ::Gapic::Operation
create_aspect_type
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 AspectType, of the form:
projects/{project_number}/locations/{location_id}
where
location_id
refers to a Google Cloud region. - aspect_type_id (::String) — Required. AspectType identifier.
- aspect_type (::Google::Cloud::Dataplex::V1::AspectType, ::Hash) — Required. AspectType Resource.
- validate_only (::Boolean) — Optional. The service validates the request without performing any 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::CatalogService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::CreateAspectTypeRequest.new # Call the create_aspect_type method. result = client.create_aspect_type 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_entry
def create_entry(request, options = nil) -> ::Google::Cloud::Dataplex::V1::Entry
def create_entry(parent: nil, entry_id: nil, entry: nil) -> ::Google::Cloud::Dataplex::V1::Entry
Creates an Entry.
def create_entry(request, options = nil) -> ::Google::Cloud::Dataplex::V1::Entry
create_entry
via a request object, either of type
Google::Cloud::Dataplex::V1::CreateEntryRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::CreateEntryRequest, ::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_entry(parent: nil, entry_id: nil, entry: nil) -> ::Google::Cloud::Dataplex::V1::Entry
create_entry
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 Entry Group:
projects/{project}/locations/{location}/entryGroups/{entry_group}
. -
entry_id (::String) — Required. Entry identifier. It has to be unique within an Entry Group.
Entries corresponding to Google Cloud resources use an Entry ID format based on full resource names. The format is a full resource name of the resource without the prefix double slashes in the API service name part of the full resource name. This allows retrieval of entries using their associated resource name.
For example, if the full resource name of a resource is
//library.googleapis.com/shelves/shelf1/books/book2
, then the suggested entry_id islibrary.googleapis.com/shelves/shelf1/books/book2
.It is also suggested to follow the same convention for entries corresponding to resources from providers or systems other than Google Cloud.
The maximum size of the field is 4000 characters.
- entry (::Google::Cloud::Dataplex::V1::Entry, ::Hash) — Required. Entry resource.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Dataplex::V1::Entry)
- 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::CatalogService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::CreateEntryRequest.new # Call the create_entry method. result = client.create_entry request # The returned object is of type Google::Cloud::Dataplex::V1::Entry. p result
#create_entry_group
def create_entry_group(request, options = nil) -> ::Gapic::Operation
def create_entry_group(parent: nil, entry_group_id: nil, entry_group: nil, validate_only: nil) -> ::Gapic::Operation
Creates an EntryGroup.
def create_entry_group(request, options = nil) -> ::Gapic::Operation
create_entry_group
via a request object, either of type
Google::Cloud::Dataplex::V1::CreateEntryGroupRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::CreateEntryGroupRequest, ::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_entry_group(parent: nil, entry_group_id: nil, entry_group: nil, validate_only: nil) -> ::Gapic::Operation
create_entry_group
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 entryGroup, of the form:
projects/{project_number}/locations/{location_id}
where
location_id
refers to a GCP region. - entry_group_id (::String) — Required. EntryGroup identifier.
- entry_group (::Google::Cloud::Dataplex::V1::EntryGroup, ::Hash) — Required. EntryGroup Resource.
- validate_only (::Boolean) — Optional. The service validates the request without performing any 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::CatalogService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::CreateEntryGroupRequest.new # Call the create_entry_group method. result = client.create_entry_group 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_entry_type
def create_entry_type(request, options = nil) -> ::Gapic::Operation
def create_entry_type(parent: nil, entry_type_id: nil, entry_type: nil, validate_only: nil) -> ::Gapic::Operation
Creates an EntryType.
def create_entry_type(request, options = nil) -> ::Gapic::Operation
create_entry_type
via a request object, either of type
Google::Cloud::Dataplex::V1::CreateEntryTypeRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::CreateEntryTypeRequest, ::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_entry_type(parent: nil, entry_type_id: nil, entry_type: nil, validate_only: nil) -> ::Gapic::Operation
create_entry_type
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 EntryType, of the form:
projects/{project_number}/locations/{location_id}
where
location_id
refers to a Google Cloud region. - entry_type_id (::String) — Required. EntryType identifier.
- entry_type (::Google::Cloud::Dataplex::V1::EntryType, ::Hash) — Required. EntryType Resource.
- validate_only (::Boolean) — Optional. The service validates the request without performing any 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::CatalogService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::CreateEntryTypeRequest.new # Call the create_entry_type method. result = client.create_entry_type 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_metadata_job
def create_metadata_job(request, options = nil) -> ::Gapic::Operation
def create_metadata_job(parent: nil, metadata_job: nil, metadata_job_id: nil, validate_only: nil) -> ::Gapic::Operation
Creates a metadata job. For example, use a metadata job to import Dataplex Catalog entries and aspects from a third-party system into Dataplex.
def create_metadata_job(request, options = nil) -> ::Gapic::Operation
create_metadata_job
via a request object, either of type
Google::Cloud::Dataplex::V1::CreateMetadataJobRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::CreateMetadataJobRequest, ::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_metadata_job(parent: nil, metadata_job: nil, metadata_job_id: nil, validate_only: nil) -> ::Gapic::Operation
create_metadata_job
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 location, in the format
projects/{project_id_or_number}/locations/{location_id}
- metadata_job (::Google::Cloud::Dataplex::V1::MetadataJob, ::Hash) — Required. The metadata job resource.
-
metadata_job_id (::String) — Optional. The metadata job ID. If not provided, a unique ID is generated
with the prefix
metadata-job-
. - validate_only (::Boolean) — Optional. The service validates the request without performing any 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::CatalogService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::CreateMetadataJobRequest.new # Call the create_metadata_job method. result = client.create_metadata_job 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_aspect_type
def delete_aspect_type(request, options = nil) -> ::Gapic::Operation
def delete_aspect_type(name: nil, etag: nil) -> ::Gapic::Operation
Deletes an AspectType.
def delete_aspect_type(request, options = nil) -> ::Gapic::Operation
delete_aspect_type
via a request object, either of type
DeleteAspectTypeRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::DeleteAspectTypeRequest, ::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_aspect_type(name: nil, etag: nil) -> ::Gapic::Operation
delete_aspect_type
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 AspectType:
projects/{project_number}/locations/{location_id}/aspectTypes/{aspect_type_id}
. - etag (::String) — Optional. If the client provided etag value does not match the current etag value, the DeleteAspectTypeRequest 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::CatalogService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::DeleteAspectTypeRequest.new # Call the delete_aspect_type method. result = client.delete_aspect_type 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_entry
def delete_entry(request, options = nil) -> ::Google::Cloud::Dataplex::V1::Entry
def delete_entry(name: nil) -> ::Google::Cloud::Dataplex::V1::Entry
Deletes an Entry.
def delete_entry(request, options = nil) -> ::Google::Cloud::Dataplex::V1::Entry
delete_entry
via a request object, either of type
DeleteEntryRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::DeleteEntryRequest, ::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_entry(name: nil) -> ::Google::Cloud::Dataplex::V1::Entry
delete_entry
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 Entry:
projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}
.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Dataplex::V1::Entry)
- 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::CatalogService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::DeleteEntryRequest.new # Call the delete_entry method. result = client.delete_entry request # The returned object is of type Google::Cloud::Dataplex::V1::Entry. p result
#delete_entry_group
def delete_entry_group(request, options = nil) -> ::Gapic::Operation
def delete_entry_group(name: nil, etag: nil) -> ::Gapic::Operation
Deletes an EntryGroup.
def delete_entry_group(request, options = nil) -> ::Gapic::Operation
delete_entry_group
via a request object, either of type
DeleteEntryGroupRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::DeleteEntryGroupRequest, ::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_entry_group(name: nil, etag: nil) -> ::Gapic::Operation
delete_entry_group
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 EntryGroup:
projects/{project_number}/locations/{location_id}/entryGroups/{entry_group_id}
. - etag (::String) — Optional. If the client provided etag value does not match the current etag value, the DeleteEntryGroupRequest 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::CatalogService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::DeleteEntryGroupRequest.new # Call the delete_entry_group method. result = client.delete_entry_group 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_entry_type
def delete_entry_type(request, options = nil) -> ::Gapic::Operation
def delete_entry_type(name: nil, etag: nil) -> ::Gapic::Operation
Deletes an EntryType.
def delete_entry_type(request, options = nil) -> ::Gapic::Operation
delete_entry_type
via a request object, either of type
DeleteEntryTypeRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::DeleteEntryTypeRequest, ::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_entry_type(name: nil, etag: nil) -> ::Gapic::Operation
delete_entry_type
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 EntryType:
projects/{project_number}/locations/{location_id}/entryTypes/{entry_type_id}
. - etag (::String) — Optional. If the client provided etag value does not match the current etag value, the DeleteEntryTypeRequest 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::CatalogService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::DeleteEntryTypeRequest.new # Call the delete_entry_type method. result = client.delete_entry_type 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_aspect_type
def get_aspect_type(request, options = nil) -> ::Google::Cloud::Dataplex::V1::AspectType
def get_aspect_type(name: nil) -> ::Google::Cloud::Dataplex::V1::AspectType
Gets an AspectType.
def get_aspect_type(request, options = nil) -> ::Google::Cloud::Dataplex::V1::AspectType
get_aspect_type
via a request object, either of type
GetAspectTypeRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::GetAspectTypeRequest, ::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_aspect_type(name: nil) -> ::Google::Cloud::Dataplex::V1::AspectType
get_aspect_type
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 AspectType:
projects/{project_number}/locations/{location_id}/aspectTypes/{aspect_type_id}
.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Dataplex::V1::AspectType)
- 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::CatalogService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::GetAspectTypeRequest.new # Call the get_aspect_type method. result = client.get_aspect_type request # The returned object is of type Google::Cloud::Dataplex::V1::AspectType. p result
#get_entry
def get_entry(request, options = nil) -> ::Google::Cloud::Dataplex::V1::Entry
def get_entry(name: nil, view: nil, aspect_types: nil, paths: nil) -> ::Google::Cloud::Dataplex::V1::Entry
Gets an Entry.
Caution: The BigQuery metadata that is stored in Dataplex Catalog is changing. For more information, see Changes to BigQuery metadata stored in Dataplex Catalog.
def get_entry(request, options = nil) -> ::Google::Cloud::Dataplex::V1::Entry
get_entry
via a request object, either of type
GetEntryRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::GetEntryRequest, ::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_entry(name: nil, view: nil, aspect_types: nil, paths: nil) -> ::Google::Cloud::Dataplex::V1::Entry
get_entry
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 Entry:
projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}
. - view (::Google::Cloud::Dataplex::V1::EntryView) — Optional. View to control which parts of an entry the service should return.
- aspect_types (::Array<::String>) — Optional. Limits the aspects returned to the provided aspect types. It only works for CUSTOM view.
- paths (::Array<::String>) — Optional. Limits the aspects returned to those associated with the provided paths within the Entry. It only works for CUSTOM view.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Dataplex::V1::Entry)
- 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::CatalogService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::GetEntryRequest.new # Call the get_entry method. result = client.get_entry request # The returned object is of type Google::Cloud::Dataplex::V1::Entry. p result
#get_entry_group
def get_entry_group(request, options = nil) -> ::Google::Cloud::Dataplex::V1::EntryGroup
def get_entry_group(name: nil) -> ::Google::Cloud::Dataplex::V1::EntryGroup
Gets an EntryGroup.
def get_entry_group(request, options = nil) -> ::Google::Cloud::Dataplex::V1::EntryGroup
get_entry_group
via a request object, either of type
GetEntryGroupRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::GetEntryGroupRequest, ::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_entry_group(name: nil) -> ::Google::Cloud::Dataplex::V1::EntryGroup
get_entry_group
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 EntryGroup:
projects/{project_number}/locations/{location_id}/entryGroups/{entry_group_id}
.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Dataplex::V1::EntryGroup)
- 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::CatalogService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::GetEntryGroupRequest.new # Call the get_entry_group method. result = client.get_entry_group request # The returned object is of type Google::Cloud::Dataplex::V1::EntryGroup. p result
#get_entry_type
def get_entry_type(request, options = nil) -> ::Google::Cloud::Dataplex::V1::EntryType
def get_entry_type(name: nil) -> ::Google::Cloud::Dataplex::V1::EntryType
Gets an EntryType.
def get_entry_type(request, options = nil) -> ::Google::Cloud::Dataplex::V1::EntryType
get_entry_type
via a request object, either of type
GetEntryTypeRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::GetEntryTypeRequest, ::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_entry_type(name: nil) -> ::Google::Cloud::Dataplex::V1::EntryType
get_entry_type
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 EntryType:
projects/{project_number}/locations/{location_id}/entryTypes/{entry_type_id}
.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Dataplex::V1::EntryType)
- 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::CatalogService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::GetEntryTypeRequest.new # Call the get_entry_type method. result = client.get_entry_type request # The returned object is of type Google::Cloud::Dataplex::V1::EntryType. p result
#get_metadata_job
def get_metadata_job(request, options = nil) -> ::Google::Cloud::Dataplex::V1::MetadataJob
def get_metadata_job(name: nil) -> ::Google::Cloud::Dataplex::V1::MetadataJob
Gets a metadata job.
def get_metadata_job(request, options = nil) -> ::Google::Cloud::Dataplex::V1::MetadataJob
get_metadata_job
via a request object, either of type
GetMetadataJobRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::GetMetadataJobRequest, ::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_metadata_job(name: nil) -> ::Google::Cloud::Dataplex::V1::MetadataJob
get_metadata_job
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 metadata job, in the format
projects/{project_id_or_number}/locations/{location_id}/metadataJobs/{metadata_job_id}
.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Dataplex::V1::MetadataJob)
- 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::CatalogService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::GetMetadataJobRequest.new # Call the get_metadata_job method. result = client.get_metadata_job request # The returned object is of type Google::Cloud::Dataplex::V1::MetadataJob. 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)
#initialize
def initialize() { |config| ... } -> Client
Create a new CatalogService REST client object.
- (config) — Configure the CatalogService client.
- config (Client::Configuration)
- (Client) — a new instance of Client
# Create a client using the default configuration client = ::Google::Cloud::Dataplex::V1::CatalogService::Rest::Client.new # Create a client using a custom configuration client = ::Google::Cloud::Dataplex::V1::CatalogService::Rest::Client.new do |config| config.timeout = 10.0 end
#list_aspect_types
def list_aspect_types(request, options = nil) -> ::Google::Cloud::Dataplex::V1::ListAspectTypesResponse
def list_aspect_types(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Google::Cloud::Dataplex::V1::ListAspectTypesResponse
Lists AspectType resources in a project and location.
def list_aspect_types(request, options = nil) -> ::Google::Cloud::Dataplex::V1::ListAspectTypesResponse
list_aspect_types
via a request object, either of type
ListAspectTypesRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::ListAspectTypesRequest, ::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_aspect_types(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Google::Cloud::Dataplex::V1::ListAspectTypesResponse
list_aspect_types
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 AspectType location, of the form:
projects/{project_number}/locations/{location_id}
wherelocation_id
refers to a Google Cloud region. - page_size (::Integer) — Optional. Maximum number of AspectTypes to return. The service may return fewer than this value. If unspecified, the service returns at most 10 AspectTypes. The maximum value is 1000; values above 1000 will be coerced to 1000.
-
page_token (::String) — Optional. Page token received from a previous
ListAspectTypes
call. Provide this to retrieve the subsequent page. When paginating, all other parameters you provide toListAspectTypes
must match the call that provided the page token. -
filter (::String) — Optional. Filter request. Filters are case-sensitive.
The service supports the following formats:
- labels.key1 = "value1"
- labels:key1
- name = "value"
These restrictions can be conjoined with AND, OR, and NOT conjunctions.
-
order_by (::String) — Optional. Orders the result by
name
orcreate_time
fields. If not specified, the ordering is undefined.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Dataplex::V1::ListAspectTypesResponse)
- 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::CatalogService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::ListAspectTypesRequest.new # Call the list_aspect_types method. result = client.list_aspect_types 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::AspectType. p item end
#list_entries
def list_entries(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataplex::V1::Entry>
def list_entries(parent: nil, page_size: nil, page_token: nil, filter: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataplex::V1::Entry>
Lists Entries within an EntryGroup.
def list_entries(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataplex::V1::Entry>
list_entries
via a request object, either of type
ListEntriesRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::ListEntriesRequest, ::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_entries(parent: nil, page_size: nil, page_token: nil, filter: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataplex::V1::Entry>
list_entries
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 Entry Group:
projects/{project}/locations/{location}/entryGroups/{entry_group}
. - page_size (::Integer) — Optional. Number of items to return per page. If there are remaining results, the service returns a next_page_token. If unspecified, the service returns at most 10 Entries. The maximum value is 100; values above 100 will be coerced to 100.
-
page_token (::String) — Optional. Page token received from a previous
ListEntries
call. Provide this to retrieve the subsequent page. -
filter (::String) —
Optional. A filter on the entries to return. Filters are case-sensitive. You can filter the request by the following fields:
- entry_type
- entry_source.display_name
The comparison operators are =, !=, <, >, <=, >=. The service compares strings according to lexical order.
You can use the logical operators AND, OR, NOT in the filter.
You can use Wildcard "*", but for entry_type you need to provide the full project id or number.
Example filter expressions:
- "entry_source.display_name=AnExampleDisplayName"
- "entry_type=projects/example-project/locations/global/entryTypes/example-entry_type"
- "entry_type=projects/example-project/locations/us/entryTypes/a* OR entry_type=projects/another-project/locations/*"
- "NOT entry_source.display_name=AnotherExampleDisplayName"
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataplex::V1::Entry>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataplex::V1::Entry>)
- (::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::CatalogService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::ListEntriesRequest.new # Call the list_entries method. result = client.list_entries 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::Entry. p item end
#list_entry_groups
def list_entry_groups(request, options = nil) -> ::Google::Cloud::Dataplex::V1::ListEntryGroupsResponse
def list_entry_groups(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Google::Cloud::Dataplex::V1::ListEntryGroupsResponse
Lists EntryGroup resources in a project and location.
def list_entry_groups(request, options = nil) -> ::Google::Cloud::Dataplex::V1::ListEntryGroupsResponse
list_entry_groups
via a request object, either of type
ListEntryGroupsRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::ListEntryGroupsRequest, ::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_entry_groups(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Google::Cloud::Dataplex::V1::ListEntryGroupsResponse
list_entry_groups
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 entryGroup location, of the form:
projects/{project_number}/locations/{location_id}
wherelocation_id
refers to a Google Cloud region. - page_size (::Integer) — Optional. Maximum number of EntryGroups to return. The service may return fewer than this value. If unspecified, the service returns at most 10 EntryGroups. The maximum value is 1000; values above 1000 will be coerced to 1000.
-
page_token (::String) — Optional. Page token received from a previous
ListEntryGroups
call. Provide this to retrieve the subsequent page. When paginating, all other parameters you provide toListEntryGroups
must 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 (::Google::Cloud::Dataplex::V1::ListEntryGroupsResponse)
- 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::CatalogService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::ListEntryGroupsRequest.new # Call the list_entry_groups method. result = client.list_entry_groups 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::EntryGroup. p item end
#list_entry_types
def list_entry_types(request, options = nil) -> ::Google::Cloud::Dataplex::V1::ListEntryTypesResponse
def list_entry_types(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Google::Cloud::Dataplex::V1::ListEntryTypesResponse
Lists EntryType resources in a project and location.
def list_entry_types(request, options = nil) -> ::Google::Cloud::Dataplex::V1::ListEntryTypesResponse
list_entry_types
via a request object, either of type
ListEntryTypesRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::ListEntryTypesRequest, ::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_entry_types(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Google::Cloud::Dataplex::V1::ListEntryTypesResponse
list_entry_types
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 EntryType location, of the form:
projects/{project_number}/locations/{location_id}
wherelocation_id
refers to a Google Cloud region. - page_size (::Integer) — Optional. Maximum number of EntryTypes to return. The service may return fewer than this value. If unspecified, the service returns at most 10 EntryTypes. The maximum value is 1000; values above 1000 will be coerced to 1000.
-
page_token (::String) — Optional. Page token received from a previous
ListEntryTypes
call. Provide this to retrieve the subsequent page. When paginating, all other parameters you provided toListEntryTypes
must match the call that provided the page token. -
filter (::String) — Optional. Filter request. Filters are case-sensitive.
The service supports the following formats:
- labels.key1 = "value1"
- labels:key1
- name = "value"
These restrictions can be conjoined with AND, OR, and NOT conjunctions.
-
order_by (::String) — Optional. Orders the result by
name
orcreate_time
fields. If not specified, the ordering is undefined.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Dataplex::V1::ListEntryTypesResponse)
- 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::CatalogService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::ListEntryTypesRequest.new # Call the list_entry_types method. result = client.list_entry_types 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::EntryType. p item end
#list_metadata_jobs
def list_metadata_jobs(request, options = nil) -> ::Google::Cloud::Dataplex::V1::ListMetadataJobsResponse
def list_metadata_jobs(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Google::Cloud::Dataplex::V1::ListMetadataJobsResponse
Lists metadata jobs.
def list_metadata_jobs(request, options = nil) -> ::Google::Cloud::Dataplex::V1::ListMetadataJobsResponse
list_metadata_jobs
via a request object, either of type
ListMetadataJobsRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::ListMetadataJobsRequest, ::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_metadata_jobs(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Google::Cloud::Dataplex::V1::ListMetadataJobsResponse
list_metadata_jobs
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 location, in the format
projects/{project_id_or_number}/locations/{location_id}
- page_size (::Integer) — Optional. The maximum number of metadata jobs to return. The service might return fewer jobs than this value. If unspecified, at most 10 jobs are returned. The maximum value is 1,000.
-
page_token (::String) — Optional. The page token received from a previous
ListMetadataJobs
call. Provide this token to retrieve the subsequent page of results. When paginating, all other parameters that are provided to theListMetadataJobs
request must match the call that provided the page token. -
filter (::String) — Optional. Filter request. Filters are case-sensitive.
The service supports the following formats:
labels.key1 = "value1"
labels:key1
name = "value"
You can combine filters with
AND
,OR
, andNOT
operators. -
order_by (::String) — Optional. The field to sort the results by, either
name
orcreate_time
. If not specified, the ordering is undefined.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Dataplex::V1::ListMetadataJobsResponse)
- 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::CatalogService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::ListMetadataJobsRequest.new # Call the list_metadata_jobs method. result = client.list_metadata_jobs 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::MetadataJob. p item end
#location_client
def location_client() -> Google::Cloud::Location::Locations::Rest::Client
Get the associated client for mix-in of the Locations.
- (Google::Cloud::Location::Locations::Rest::Client)
#logger
def logger() -> Logger
The logger used for request/response debug logging.
- (Logger)
#lookup_entry
def lookup_entry(request, options = nil) -> ::Google::Cloud::Dataplex::V1::Entry
def lookup_entry(name: nil, view: nil, aspect_types: nil, paths: nil, entry: nil) -> ::Google::Cloud::Dataplex::V1::Entry
Looks up a single Entry by name using the permission on the source system.
Caution: The BigQuery metadata that is stored in Dataplex Catalog is changing. For more information, see Changes to BigQuery metadata stored in Dataplex Catalog.
def lookup_entry(request, options = nil) -> ::Google::Cloud::Dataplex::V1::Entry
lookup_entry
via a request object, either of type
LookupEntryRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::LookupEntryRequest, ::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 lookup_entry(name: nil, view: nil, aspect_types: nil, paths: nil, entry: nil) -> ::Google::Cloud::Dataplex::V1::Entry
lookup_entry
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 project to which the request should be attributed in the
following form:
projects/{project}/locations/{location}
. - view (::Google::Cloud::Dataplex::V1::EntryView) — Optional. View to control which parts of an entry the service should return.
- aspect_types (::Array<::String>) — Optional. Limits the aspects returned to the provided aspect types. It only works for CUSTOM view.
- paths (::Array<::String>) — Optional. Limits the aspects returned to those associated with the provided paths within the Entry. It only works for CUSTOM view.
-
entry (::String) — Required. The resource name of the Entry:
projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}
.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Dataplex::V1::Entry)
- 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::CatalogService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::LookupEntryRequest.new # Call the lookup_entry method. result = client.lookup_entry request # The returned object is of type Google::Cloud::Dataplex::V1::Entry. p result
#operations_client
def operations_client() -> ::Google::Cloud::Dataplex::V1::CatalogService::Rest::Operations
Get the associated client for long-running operations.
#search_entries
def search_entries(request, options = nil) -> ::Google::Cloud::Dataplex::V1::SearchEntriesResponse
def search_entries(name: nil, query: nil, page_size: nil, page_token: nil, order_by: nil, scope: nil) -> ::Google::Cloud::Dataplex::V1::SearchEntriesResponse
Searches for Entries matching the given query and scope.
def search_entries(request, options = nil) -> ::Google::Cloud::Dataplex::V1::SearchEntriesResponse
search_entries
via a request object, either of type
SearchEntriesRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::SearchEntriesRequest, ::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 search_entries(name: nil, query: nil, page_size: nil, page_token: nil, order_by: nil, scope: nil) -> ::Google::Cloud::Dataplex::V1::SearchEntriesResponse
search_entries
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 project to which the request should be attributed in the
following form:
projects/{project}/locations/{location}
. - query (::String) — Required. The query against which entries in scope should be matched.
- page_size (::Integer) — Optional. Number of results in the search page. If <=0, then defaults to 10. Max limit for page_size is 1000. Throws an invalid argument for page_size > 1000.
-
page_token (::String) — Optional. Page token received from a previous
SearchEntries
call. Provide this to retrieve the subsequent page. - order_by (::String) — Optional. Specifies the ordering of results.
-
scope (::String) — Optional. The scope under which the search should be operating. It must
either be
organizations/<org_id>
orprojects/<project_ref>
. If it is unspecified, it defaults to the organization where the project provided inname
is located.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Dataplex::V1::SearchEntriesResponse)
- 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::CatalogService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::SearchEntriesRequest.new # Call the search_entries method. result = client.search_entries 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::SearchEntriesResult. p item end
#universe_domain
def universe_domain() -> String
The effective universe domain
- (String)
#update_aspect_type
def update_aspect_type(request, options = nil) -> ::Gapic::Operation
def update_aspect_type(aspect_type: nil, update_mask: nil, validate_only: nil) -> ::Gapic::Operation
Updates an AspectType.
def update_aspect_type(request, options = nil) -> ::Gapic::Operation
update_aspect_type
via a request object, either of type
UpdateAspectTypeRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::UpdateAspectTypeRequest, ::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_aspect_type(aspect_type: nil, update_mask: nil, validate_only: nil) -> ::Gapic::Operation
update_aspect_type
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).
- aspect_type (::Google::Cloud::Dataplex::V1::AspectType, ::Hash) — Required. AspectType Resource
- update_mask (::Google::Protobuf::FieldMask, ::Hash) — Required. Mask of fields to update.
- 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::CatalogService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::UpdateAspectTypeRequest.new # Call the update_aspect_type method. result = client.update_aspect_type 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_entry
def update_entry(request, options = nil) -> ::Google::Cloud::Dataplex::V1::Entry
def update_entry(entry: nil, update_mask: nil, allow_missing: nil, delete_missing_aspects: nil, aspect_keys: nil) -> ::Google::Cloud::Dataplex::V1::Entry
Updates an Entry.
def update_entry(request, options = nil) -> ::Google::Cloud::Dataplex::V1::Entry
update_entry
via a request object, either of type
UpdateEntryRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::UpdateEntryRequest, ::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_entry(entry: nil, update_mask: nil, allow_missing: nil, delete_missing_aspects: nil, aspect_keys: nil) -> ::Google::Cloud::Dataplex::V1::Entry
update_entry
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).
- entry (::Google::Cloud::Dataplex::V1::Entry, ::Hash) — Required. Entry resource.
-
update_mask (::Google::Protobuf::FieldMask, ::Hash) — Optional. Mask of fields to update. To update Aspects, the update_mask must
contain the value "aspects".
If the update_mask is empty, the service will update all modifiable fields present in the request.
- allow_missing (::Boolean) — Optional. If set to true and the entry doesn't exist, the service will create it.
- delete_missing_aspects (::Boolean) — Optional. If set to true and the aspect_keys specify aspect ranges, the service deletes any existing aspects from that range that weren't provided in the request.
-
aspect_keys (::Array<::String>) — Optional. The map keys of the Aspects which the service should modify. It
supports the following syntaxes:
<aspect_type_reference>
- matches an aspect of the given type and empty path.<aspect_type_reference>@path
- matches an aspect of the given type and specified path. For example, to attach an aspect to a field that is specified by theschema
aspect, the path should have the formatSchema.<field_name>
.<aspect_type_reference>*
- matches aspects of the given type for all paths.*@path
- matches aspects of all types on the given path.
The service will not remove existing aspects matching the syntax unless
delete_missing_aspects
is set to true.If this field is left empty, the service treats it as specifying exactly those Aspects present in the request.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Dataplex::V1::Entry)
- 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::CatalogService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::UpdateEntryRequest.new # Call the update_entry method. result = client.update_entry request # The returned object is of type Google::Cloud::Dataplex::V1::Entry. p result
#update_entry_group
def update_entry_group(request, options = nil) -> ::Gapic::Operation
def update_entry_group(entry_group: nil, update_mask: nil, validate_only: nil) -> ::Gapic::Operation
Updates an EntryGroup.
def update_entry_group(request, options = nil) -> ::Gapic::Operation
update_entry_group
via a request object, either of type
UpdateEntryGroupRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::UpdateEntryGroupRequest, ::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_entry_group(entry_group: nil, update_mask: nil, validate_only: nil) -> ::Gapic::Operation
update_entry_group
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).
- entry_group (::Google::Cloud::Dataplex::V1::EntryGroup, ::Hash) — Required. EntryGroup Resource.
- update_mask (::Google::Protobuf::FieldMask, ::Hash) — Required. Mask of fields to update.
- validate_only (::Boolean) — Optional. The service validates the request, without performing any 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::CatalogService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::UpdateEntryGroupRequest.new # Call the update_entry_group method. result = client.update_entry_group 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_entry_type
def update_entry_type(request, options = nil) -> ::Gapic::Operation
def update_entry_type(entry_type: nil, update_mask: nil, validate_only: nil) -> ::Gapic::Operation
Updates an EntryType.
def update_entry_type(request, options = nil) -> ::Gapic::Operation
update_entry_type
via a request object, either of type
UpdateEntryTypeRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::UpdateEntryTypeRequest, ::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_entry_type(entry_type: nil, update_mask: nil, validate_only: nil) -> ::Gapic::Operation
update_entry_type
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).
- entry_type (::Google::Cloud::Dataplex::V1::EntryType, ::Hash) — Required. EntryType Resource.
- update_mask (::Google::Protobuf::FieldMask, ::Hash) — Required. Mask of fields to update.
- validate_only (::Boolean) — Optional. The service validates the request without performing any 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::CatalogService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::UpdateEntryTypeRequest.new # Call the update_entry_type method. result = client.update_entry_type 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