Reference documentation and code samples for the Chronicle V1 API class Google::Cloud::Chronicle::V1::BigQueryExportService::Rest::Client.
REST client for the BigQueryExportService service.
Service for managing BigQuery export configurations for Chronicle instances.
Inherits
- Object
Methods
.configure
def self.configure() { |config| ... } -> Client::ConfigurationConfigure the BigQueryExportService Client class.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
# Modify the configuration for all BigQueryExportService clients ::Google::Cloud::Chronicle::V1::BigQueryExportService::Rest::Client.configure do |config| config.timeout = 10.0 end
#configure
def configure() { |config| ... } -> Client::ConfigurationConfigure the BigQueryExportService 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_big_query_export
def get_big_query_export(request, options = nil) -> ::Google::Cloud::Chronicle::V1::BigQueryExport
def get_big_query_export(name: nil) -> ::Google::Cloud::Chronicle::V1::BigQueryExportGet the BigQuery export configuration for a Chronicle instance.
def get_big_query_export(request, options = nil) -> ::Google::Cloud::Chronicle::V1::BigQueryExportget_big_query_export via a request object, either of type
GetBigQueryExportRequest or an equivalent Hash.
- request (::Google::Cloud::Chronicle::V1::GetBigQueryExportRequest, ::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_big_query_export(name: nil) -> ::Google::Cloud::Chronicle::V1::BigQueryExportget_big_query_export 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 BigqueryExport to retrieve. Format: projects/{project}/locations/{location}/instances/{instance}/bigQueryExport
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Chronicle::V1::BigQueryExport)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/chronicle/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Chronicle::V1::BigQueryExportService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Chronicle::V1::GetBigQueryExportRequest.new # Call the get_big_query_export method. result = client.get_big_query_export request # The returned object is of type Google::Cloud::Chronicle::V1::BigQueryExport. p result
#initialize
def initialize() { |config| ... } -> ClientCreate a new BigQueryExportService REST client object.
- (config) — Configure the BigQueryExportService client.
- config (Client::Configuration)
- (Client) — a new instance of Client
# Create a client using the default configuration client = ::Google::Cloud::Chronicle::V1::BigQueryExportService::Rest::Client.new # Create a client using a custom configuration client = ::Google::Cloud::Chronicle::V1::BigQueryExportService::Rest::Client.new do |config| config.timeout = 10.0 end
#logger
def logger() -> LoggerThe logger used for request/response debug logging.
- (Logger)
#provision_big_query_export
def provision_big_query_export(request, options = nil) -> ::Google::Cloud::Chronicle::V1::BigQueryExport
def provision_big_query_export(parent: nil) -> ::Google::Cloud::Chronicle::V1::BigQueryExportProvision the BigQuery export for a Chronicle instance. This will create {{gcp_name}} resources like {{storage_name}} buckets, BigQuery datasets and set default export settings for each data source.
def provision_big_query_export(request, options = nil) -> ::Google::Cloud::Chronicle::V1::BigQueryExportprovision_big_query_export via a request object, either of type
ProvisionBigQueryExportRequest or an equivalent Hash.
- request (::Google::Cloud::Chronicle::V1::ProvisionBigQueryExportRequest, ::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 provision_big_query_export(parent: nil) -> ::Google::Cloud::Chronicle::V1::BigQueryExportprovision_big_query_export 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 instance for which BigQuery export is being provisioned. Format: projects/{project}/locations/{location}/instances/{instance}
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Chronicle::V1::BigQueryExport)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/chronicle/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Chronicle::V1::BigQueryExportService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Chronicle::V1::ProvisionBigQueryExportRequest.new # Call the provision_big_query_export method. result = client.provision_big_query_export request # The returned object is of type Google::Cloud::Chronicle::V1::BigQueryExport. p result
#universe_domain
def universe_domain() -> StringThe effective universe domain
- (String)
#update_big_query_export
def update_big_query_export(request, options = nil) -> ::Google::Cloud::Chronicle::V1::BigQueryExport
def update_big_query_export(big_query_export: nil, update_mask: nil) -> ::Google::Cloud::Chronicle::V1::BigQueryExportUpdate the BigQuery export configuration for a Chronicle instance.
def update_big_query_export(request, options = nil) -> ::Google::Cloud::Chronicle::V1::BigQueryExportupdate_big_query_export via a request object, either of type
UpdateBigQueryExportRequest or an equivalent Hash.
- request (::Google::Cloud::Chronicle::V1::UpdateBigQueryExportRequest, ::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_big_query_export(big_query_export: nil, update_mask: nil) -> ::Google::Cloud::Chronicle::V1::BigQueryExportupdate_big_query_export 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).
- big_query_export (::Google::Cloud::Chronicle::V1::BigQueryExport, ::Hash) — Required. The BigQueryExport settings to update. Format: projects/{project}/locations/{location}/instances/{instance}/bigQueryExport
- update_mask (::Google::Protobuf::FieldMask, ::Hash) — Optional. The list of fields to update.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Chronicle::V1::BigQueryExport)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/chronicle/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Chronicle::V1::BigQueryExportService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Chronicle::V1::UpdateBigQueryExportRequest.new # Call the update_big_query_export method. result = client.update_big_query_export request # The returned object is of type Google::Cloud::Chronicle::V1::BigQueryExport. p result