Reference documentation and code samples for the Data Lineage V1 API class Google::Cloud::DataCatalog::Lineage::ConfigManagement::V1::ConfigManagementService::Rest::Client.
REST client for the ConfigManagementService service.
Lineage Config Management service. Config Management service is used to manage the configuration for Data Lineage. These Configs define different configuration options for Lineage customers to control behaviour of lineage systems.
Inherits
- Object
Methods
.configure
def self.configure() { |config| ... } -> Client::ConfigurationConfigure the ConfigManagementService Client class.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
# Modify the configuration for all ConfigManagementService clients ::Google::Cloud::DataCatalog::Lineage::ConfigManagement::V1::ConfigManagementService::Rest::Client.configure do |config| config.timeout = 10.0 end
#configure
def configure() { |config| ... } -> Client::ConfigurationConfigure the ConfigManagementService 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)
#get_config
def get_config(request, options = nil) -> ::Google::Cloud::DataCatalog::Lineage::ConfigManagement::V1::Config
def get_config(name: nil) -> ::Google::Cloud::DataCatalog::Lineage::ConfigManagement::V1::ConfigGet the Config for a given resource.
def get_config(request, options = nil) -> ::Google::Cloud::DataCatalog::Lineage::ConfigManagement::V1::Configget_config via a request object, either of type
GetConfigRequest or an equivalent Hash.
- request (::Google::Cloud::DataCatalog::Lineage::ConfigManagement::V1::GetConfigRequest, ::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_config(name: nil) -> ::Google::Cloud::DataCatalog::Lineage::ConfigManagement::V1::Configget_config 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. REQUIRED: The resource name of the config to be fetched.
Format:
organizations/{organization_id}/locations/global/configfolders/{folder_id}/locations/global/configprojects/{project_id}/locations/global/configprojects/{project_number}/locations/global/config
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::DataCatalog::Lineage::ConfigManagement::V1::Config)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/data_catalog/lineage/config_management/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DataCatalog::Lineage::ConfigManagement::V1::ConfigManagementService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DataCatalog::Lineage::ConfigManagement::V1::GetConfigRequest.new # Call the get_config method. result = client.get_config request # The returned object is of type Google::Cloud::DataCatalog::Lineage::ConfigManagement::V1::Config. p result
#initialize
def initialize() { |config| ... } -> ClientCreate a new ConfigManagementService REST client object.
- (config) — Configure the ConfigManagementService client.
- config (Client::Configuration)
- (Client) — a new instance of Client
# Create a client using the default configuration client = ::Google::Cloud::DataCatalog::Lineage::ConfigManagement::V1::ConfigManagementService::Rest::Client.new # Create a client using a custom configuration client = ::Google::Cloud::DataCatalog::Lineage::ConfigManagement::V1::ConfigManagementService::Rest::Client.new do |config| config.timeout = 10.0 end
#logger
def logger() -> LoggerThe logger used for request/response debug logging.
- (Logger)
#universe_domain
def universe_domain() -> StringThe effective universe domain
- (String)
#update_config
def update_config(request, options = nil) -> ::Google::Cloud::DataCatalog::Lineage::ConfigManagement::V1::Config
def update_config(config: nil) -> ::Google::Cloud::DataCatalog::Lineage::ConfigManagement::V1::ConfigUpdate the Config for a given resource.
def update_config(request, options = nil) -> ::Google::Cloud::DataCatalog::Lineage::ConfigManagement::V1::Configupdate_config via a request object, either of type
UpdateConfigRequest or an equivalent Hash.
- request (::Google::Cloud::DataCatalog::Lineage::ConfigManagement::V1::UpdateConfigRequest, ::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_config(config: nil) -> ::Google::Cloud::DataCatalog::Lineage::ConfigManagement::V1::Configupdate_config 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).
- config (::Google::Cloud::DataCatalog::Lineage::ConfigManagement::V1::Config, ::Hash) — Required. REQUIRED: The config to be applied to the resource and all its descendants.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::DataCatalog::Lineage::ConfigManagement::V1::Config)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/data_catalog/lineage/config_management/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DataCatalog::Lineage::ConfigManagement::V1::ConfigManagementService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DataCatalog::Lineage::ConfigManagement::V1::UpdateConfigRequest.new # Call the update_config method. result = client.update_config request # The returned object is of type Google::Cloud::DataCatalog::Lineage::ConfigManagement::V1::Config. p result