Reference documentation and code samples for the Dataplex V1 API class Google::Cloud::Dataplex::V1::BusinessGlossaryService::Rest::Client.
REST client for the BusinessGlossaryService service.
BusinessGlossaryService provides APIs for managing business glossary resources for enterprise customers. The resources currently supported in Business Glossary are:
- Glossary
- GlossaryCategory
- GlossaryTerm
Inherits
- Object
Methods
.configure
def self.configure() { |config| ... } -> Client::Configuration
Configure the BusinessGlossaryService Client class.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
# Modify the configuration for all BusinessGlossaryService clients ::Google::Cloud::Dataplex::V1::BusinessGlossaryService::Rest::Client.configure do |config| config.timeout = 10.0 end
#configure
def configure() { |config| ... } -> Client::Configuration
Configure the BusinessGlossaryService 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_glossary
def create_glossary(request, options = nil) -> ::Gapic::Operation
def create_glossary(parent: nil, glossary_id: nil, glossary: nil, validate_only: nil) -> ::Gapic::Operation
Creates a new Glossary resource.
def create_glossary(request, options = nil) -> ::Gapic::Operation
create_glossary
via a request object, either of type
CreateGlossaryRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::CreateGlossaryRequest, ::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_glossary(parent: nil, glossary_id: nil, glossary: nil, validate_only: nil) -> ::Gapic::Operation
create_glossary
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 parent resource where this Glossary will be created.
Format: projects/{project_id_or_number}/locations/{location_id}
where
location_id
refers to a Google Cloud region. - glossary_id (::String) — Required. Glossary ID: Glossary identifier.
- glossary (::Google::Cloud::Dataplex::V1::Glossary, ::Hash) — Required. The Glossary to create.
- validate_only (::Boolean) — Optional. Validates the request without actually creating the Glossary. Default: 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::BusinessGlossaryService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::CreateGlossaryRequest.new # Call the create_glossary method. result = client.create_glossary 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_glossary_category
def create_glossary_category(request, options = nil) -> ::Google::Cloud::Dataplex::V1::GlossaryCategory
def create_glossary_category(parent: nil, category_id: nil, category: nil) -> ::Google::Cloud::Dataplex::V1::GlossaryCategory
Creates a new GlossaryCategory resource.
def create_glossary_category(request, options = nil) -> ::Google::Cloud::Dataplex::V1::GlossaryCategory
create_glossary_category
via a request object, either of type
CreateGlossaryCategoryRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::CreateGlossaryCategoryRequest, ::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_glossary_category(parent: nil, category_id: nil, category: nil) -> ::Google::Cloud::Dataplex::V1::GlossaryCategory
create_glossary_category
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 parent resource where this GlossaryCategory will be created.
Format:
projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}
where
locationId
refers to a Google Cloud region. - category_id (::String) — Required. GlossaryCategory identifier.
- category (::Google::Cloud::Dataplex::V1::GlossaryCategory, ::Hash) — Required. The GlossaryCategory to create.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Dataplex::V1::GlossaryCategory)
- 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::BusinessGlossaryService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::CreateGlossaryCategoryRequest.new # Call the create_glossary_category method. result = client.create_glossary_category request # The returned object is of type Google::Cloud::Dataplex::V1::GlossaryCategory. p result
#create_glossary_term
def create_glossary_term(request, options = nil) -> ::Google::Cloud::Dataplex::V1::GlossaryTerm
def create_glossary_term(parent: nil, term_id: nil, term: nil) -> ::Google::Cloud::Dataplex::V1::GlossaryTerm
Creates a new GlossaryTerm resource.
def create_glossary_term(request, options = nil) -> ::Google::Cloud::Dataplex::V1::GlossaryTerm
create_glossary_term
via a request object, either of type
CreateGlossaryTermRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::CreateGlossaryTermRequest, ::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_glossary_term(parent: nil, term_id: nil, term: nil) -> ::Google::Cloud::Dataplex::V1::GlossaryTerm
create_glossary_term
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 parent resource where the GlossaryTerm will be created.
Format:
projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}
where
location_id
refers to a Google Cloud region. - term_id (::String) — Required. GlossaryTerm identifier.
- term (::Google::Cloud::Dataplex::V1::GlossaryTerm, ::Hash) — Required. The GlossaryTerm to create.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Dataplex::V1::GlossaryTerm)
- 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::BusinessGlossaryService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::CreateGlossaryTermRequest.new # Call the create_glossary_term method. result = client.create_glossary_term request # The returned object is of type Google::Cloud::Dataplex::V1::GlossaryTerm. p result
#delete_glossary
def delete_glossary(request, options = nil) -> ::Gapic::Operation
def delete_glossary(name: nil, etag: nil) -> ::Gapic::Operation
Deletes a Glossary resource. All the categories and terms within the Glossary must be deleted before the Glossary can be deleted.
def delete_glossary(request, options = nil) -> ::Gapic::Operation
delete_glossary
via a request object, either of type
DeleteGlossaryRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::DeleteGlossaryRequest, ::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_glossary(name: nil, etag: nil) -> ::Gapic::Operation
delete_glossary
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 name of the Glossary to delete. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}
- etag (::String) — Optional. The etag of the Glossary. If this is provided, it must match the server's etag. If the etag is provided and does not match the server-computed etag, the request must fail with a ABORTED error code.
- (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::BusinessGlossaryService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::DeleteGlossaryRequest.new # Call the delete_glossary method. result = client.delete_glossary 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_glossary_category
def delete_glossary_category(request, options = nil) -> ::Google::Protobuf::Empty
def delete_glossary_category(name: nil) -> ::Google::Protobuf::Empty
Deletes a GlossaryCategory resource. All the GlossaryCategories and GlossaryTerms nested directly under the specified GlossaryCategory will be moved one level up to the parent in the hierarchy.
def delete_glossary_category(request, options = nil) -> ::Google::Protobuf::Empty
delete_glossary_category
via a request object, either of type
DeleteGlossaryCategoryRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::DeleteGlossaryCategoryRequest, ::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_glossary_category(name: nil) -> ::Google::Protobuf::Empty
delete_glossary_category
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 name of the GlossaryCategory to delete. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_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::BusinessGlossaryService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::DeleteGlossaryCategoryRequest.new # Call the delete_glossary_category method. result = client.delete_glossary_category request # The returned object is of type Google::Protobuf::Empty. p result
#delete_glossary_term
def delete_glossary_term(request, options = nil) -> ::Google::Protobuf::Empty
def delete_glossary_term(name: nil) -> ::Google::Protobuf::Empty
Deletes a GlossaryTerm resource.
def delete_glossary_term(request, options = nil) -> ::Google::Protobuf::Empty
delete_glossary_term
via a request object, either of type
DeleteGlossaryTermRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::DeleteGlossaryTermRequest, ::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_glossary_term(name: nil) -> ::Google::Protobuf::Empty
delete_glossary_term
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 name of the GlossaryTerm to delete. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_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::BusinessGlossaryService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::DeleteGlossaryTermRequest.new # Call the delete_glossary_term method. result = client.delete_glossary_term request # The returned object is of type Google::Protobuf::Empty. p result
#get_glossary
def get_glossary(request, options = nil) -> ::Google::Cloud::Dataplex::V1::Glossary
def get_glossary(name: nil) -> ::Google::Cloud::Dataplex::V1::Glossary
Gets a Glossary resource.
def get_glossary(request, options = nil) -> ::Google::Cloud::Dataplex::V1::Glossary
get_glossary
via a request object, either of type
GetGlossaryRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::GetGlossaryRequest, ::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_glossary(name: nil) -> ::Google::Cloud::Dataplex::V1::Glossary
get_glossary
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 name of the Glossary to retrieve. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Dataplex::V1::Glossary)
- 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::BusinessGlossaryService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::GetGlossaryRequest.new # Call the get_glossary method. result = client.get_glossary request # The returned object is of type Google::Cloud::Dataplex::V1::Glossary. p result
#get_glossary_category
def get_glossary_category(request, options = nil) -> ::Google::Cloud::Dataplex::V1::GlossaryCategory
def get_glossary_category(name: nil) -> ::Google::Cloud::Dataplex::V1::GlossaryCategory
Gets a GlossaryCategory resource.
def get_glossary_category(request, options = nil) -> ::Google::Cloud::Dataplex::V1::GlossaryCategory
get_glossary_category
via a request object, either of type
GetGlossaryCategoryRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::GetGlossaryCategoryRequest, ::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_glossary_category(name: nil) -> ::Google::Cloud::Dataplex::V1::GlossaryCategory
get_glossary_category
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 name of the GlossaryCategory to retrieve. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id}
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Dataplex::V1::GlossaryCategory)
- 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::BusinessGlossaryService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::GetGlossaryCategoryRequest.new # Call the get_glossary_category method. result = client.get_glossary_category request # The returned object is of type Google::Cloud::Dataplex::V1::GlossaryCategory. p result
#get_glossary_term
def get_glossary_term(request, options = nil) -> ::Google::Cloud::Dataplex::V1::GlossaryTerm
def get_glossary_term(name: nil) -> ::Google::Cloud::Dataplex::V1::GlossaryTerm
Gets a GlossaryTerm resource.
def get_glossary_term(request, options = nil) -> ::Google::Cloud::Dataplex::V1::GlossaryTerm
get_glossary_term
via a request object, either of type
GetGlossaryTermRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::GetGlossaryTermRequest, ::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_glossary_term(name: nil) -> ::Google::Cloud::Dataplex::V1::GlossaryTerm
get_glossary_term
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 name of the GlossaryTerm to retrieve. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id}
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Dataplex::V1::GlossaryTerm)
- 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::BusinessGlossaryService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::GetGlossaryTermRequest.new # Call the get_glossary_term method. result = client.get_glossary_term request # The returned object is of type Google::Cloud::Dataplex::V1::GlossaryTerm. 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 BusinessGlossaryService REST client object.
- (config) — Configure the BusinessGlossaryService client.
- config (Client::Configuration)
- (Client) — a new instance of Client
# Create a client using the default configuration client = ::Google::Cloud::Dataplex::V1::BusinessGlossaryService::Rest::Client.new # Create a client using a custom configuration client = ::Google::Cloud::Dataplex::V1::BusinessGlossaryService::Rest::Client.new do |config| config.timeout = 10.0 end
#list_glossaries
def list_glossaries(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataplex::V1::Glossary>
def list_glossaries(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataplex::V1::Glossary>
Lists Glossary resources in a project and location.
def list_glossaries(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataplex::V1::Glossary>
list_glossaries
via a request object, either of type
ListGlossariesRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::ListGlossariesRequest, ::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_glossaries(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataplex::V1::Glossary>
list_glossaries
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 parent, which has this collection of Glossaries.
Format: projects/{project_id_or_number}/locations/{location_id}
where
location_id
refers to a Google Cloud region. - page_size (::Integer) — Optional. The maximum number of Glossaries to return. The service may return fewer than this value. If unspecified, at most 50 Glossaries will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
-
page_token (::String) — Optional. A page token, received from a previous
ListGlossaries
call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided toListGlossaries
must match the call that provided the page token. -
filter (::String) —
Optional. Filter expression that filters Glossaries listed in the response. Filters on proto fields of Glossary are supported. Examples of using a filter are:
display_name="my-glossary"
categoryCount=1
termCount=0
-
order_by (::String) — Optional. Order by expression that orders Glossaries listed in the
response. Order by fields are:
name
orcreate_time
for the result. If not specified, the ordering is undefined.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataplex::V1::Glossary>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataplex::V1::Glossary>)
- (::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::BusinessGlossaryService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::ListGlossariesRequest.new # Call the list_glossaries method. result = client.list_glossaries 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::Glossary. p item end
#list_glossary_categories
def list_glossary_categories(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataplex::V1::GlossaryCategory>
def list_glossary_categories(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataplex::V1::GlossaryCategory>
Lists GlossaryCategory resources in a Glossary.
def list_glossary_categories(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataplex::V1::GlossaryCategory>
list_glossary_categories
via a request object, either of type
ListGlossaryCategoriesRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::ListGlossaryCategoriesRequest, ::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_glossary_categories(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataplex::V1::GlossaryCategory>
list_glossary_categories
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 parent, which has this collection of GlossaryCategories. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} Location is the Google Cloud region.
- page_size (::Integer) — Optional. The maximum number of GlossaryCategories to return. The service may return fewer than this value. If unspecified, at most 50 GlossaryCategories will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
-
page_token (::String) — Optional. A page token, received from a previous
ListGlossaryCategories
call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided toListGlossaryCategories
must match the call that provided the page token. -
filter (::String) — Optional. Filter expression that filters GlossaryCategories listed in the
response. Filters are supported on the following fields:
- immediate_parent
Examples of using a filter are: -
immediate_parent="projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}"
-immediate_parent="projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id}"
This will only return the GlossaryCategories that are directly nested under the specified parent.
-
order_by (::String) — Optional. Order by expression that orders GlossaryCategories listed in the
response. Order by fields are:
name
orcreate_time
for the result. If not specified, the ordering is undefined.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataplex::V1::GlossaryCategory>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataplex::V1::GlossaryCategory>)
- (::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::BusinessGlossaryService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::ListGlossaryCategoriesRequest.new # Call the list_glossary_categories method. result = client.list_glossary_categories 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::GlossaryCategory. p item end
#list_glossary_terms
def list_glossary_terms(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataplex::V1::GlossaryTerm>
def list_glossary_terms(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataplex::V1::GlossaryTerm>
Lists GlossaryTerm resources in a Glossary.
def list_glossary_terms(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataplex::V1::GlossaryTerm>
list_glossary_terms
via a request object, either of type
ListGlossaryTermsRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::ListGlossaryTermsRequest, ::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_glossary_terms(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataplex::V1::GlossaryTerm>
list_glossary_terms
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 parent, which has this collection of GlossaryTerms.
Format:
projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}
where
location_id
refers to a Google Cloud region. - page_size (::Integer) — Optional. The maximum number of GlossaryTerms to return. The service may return fewer than this value. If unspecified, at most 50 GlossaryTerms will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
-
page_token (::String) — Optional. A page token, received from a previous
ListGlossaryTerms
call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided toListGlossaryTerms
must match the call that provided the page token. -
filter (::String) — Optional. Filter expression that filters GlossaryTerms listed in the
response. Filters are supported on the following fields:
- immediate_parent
Examples of using a filter are: -
immediate_parent="projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}"
-immediate_parent="projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id}"
This will only return the GlossaryTerms that are directly nested under the specified parent.
-
order_by (::String) — Optional. Order by expression that orders GlossaryTerms listed in the
response. Order by fields are:
name
orcreate_time
for the result. If not specified, the ordering is undefined.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataplex::V1::GlossaryTerm>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataplex::V1::GlossaryTerm>)
- (::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::BusinessGlossaryService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::ListGlossaryTermsRequest.new # Call the list_glossary_terms method. result = client.list_glossary_terms 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::GlossaryTerm. 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)
#operations_client
def operations_client() -> ::Google::Cloud::Dataplex::V1::BusinessGlossaryService::Rest::Operations
Get the associated client for long-running operations.
#universe_domain
def universe_domain() -> String
The effective universe domain
- (String)
#update_glossary
def update_glossary(request, options = nil) -> ::Gapic::Operation
def update_glossary(glossary: nil, update_mask: nil, validate_only: nil) -> ::Gapic::Operation
Updates a Glossary resource.
def update_glossary(request, options = nil) -> ::Gapic::Operation
update_glossary
via a request object, either of type
UpdateGlossaryRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::UpdateGlossaryRequest, ::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_glossary(glossary: nil, update_mask: nil, validate_only: nil) -> ::Gapic::Operation
update_glossary
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).
-
glossary (::Google::Cloud::Dataplex::V1::Glossary, ::Hash) — Required. The Glossary to update.
The Glossary's
name
field is used to identify the Glossary to update. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} - update_mask (::Google::Protobuf::FieldMask, ::Hash) — Required. The list of fields to update.
- validate_only (::Boolean) — Optional. Validates the request without actually updating the Glossary. Default: 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::BusinessGlossaryService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::UpdateGlossaryRequest.new # Call the update_glossary method. result = client.update_glossary 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_glossary_category
def update_glossary_category(request, options = nil) -> ::Google::Cloud::Dataplex::V1::GlossaryCategory
def update_glossary_category(category: nil, update_mask: nil) -> ::Google::Cloud::Dataplex::V1::GlossaryCategory
Updates a GlossaryCategory resource.
def update_glossary_category(request, options = nil) -> ::Google::Cloud::Dataplex::V1::GlossaryCategory
update_glossary_category
via a request object, either of type
UpdateGlossaryCategoryRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::UpdateGlossaryCategoryRequest, ::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_glossary_category(category: nil, update_mask: nil) -> ::Google::Cloud::Dataplex::V1::GlossaryCategory
update_glossary_category
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).
-
category (::Google::Cloud::Dataplex::V1::GlossaryCategory, ::Hash) — Required. The GlossaryCategory to update.
The GlossaryCategory's
name
field is used to identify the GlossaryCategory to update. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} - update_mask (::Google::Protobuf::FieldMask, ::Hash) — Required. The list of fields to update.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Dataplex::V1::GlossaryCategory)
- 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::BusinessGlossaryService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::UpdateGlossaryCategoryRequest.new # Call the update_glossary_category method. result = client.update_glossary_category request # The returned object is of type Google::Cloud::Dataplex::V1::GlossaryCategory. p result
#update_glossary_term
def update_glossary_term(request, options = nil) -> ::Google::Cloud::Dataplex::V1::GlossaryTerm
def update_glossary_term(term: nil, update_mask: nil) -> ::Google::Cloud::Dataplex::V1::GlossaryTerm
Updates a GlossaryTerm resource.
def update_glossary_term(request, options = nil) -> ::Google::Cloud::Dataplex::V1::GlossaryTerm
update_glossary_term
via a request object, either of type
UpdateGlossaryTermRequest or an equivalent Hash.
- request (::Google::Cloud::Dataplex::V1::UpdateGlossaryTermRequest, ::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_glossary_term(term: nil, update_mask: nil) -> ::Google::Cloud::Dataplex::V1::GlossaryTerm
update_glossary_term
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).
-
term (::Google::Cloud::Dataplex::V1::GlossaryTerm, ::Hash) — Required. The GlossaryTerm to update.
The GlossaryTerm's
name
field is used to identify the GlossaryTerm to update. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id} - update_mask (::Google::Protobuf::FieldMask, ::Hash) — Required. The list of fields to update.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Dataplex::V1::GlossaryTerm)
- 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::BusinessGlossaryService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dataplex::V1::UpdateGlossaryTermRequest.new # Call the update_glossary_term method. result = client.update_glossary_term request # The returned object is of type Google::Cloud::Dataplex::V1::GlossaryTerm. p result