Reference documentation and code samples for the Storage Insights V1 API class Google::Cloud::StorageInsights::V1::StorageInsights::Rest::Client.
REST client for the StorageInsights service.
Service describing handlers for resources
Inherits
- Object
Methods
.configure
def self.configure() { |config| ... } -> Client::Configuration
Configure the StorageInsights Client class.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
# Modify the configuration for all StorageInsights clients ::Google::Cloud::StorageInsights::V1::StorageInsights::Rest::Client.configure do |config| config.timeout = 10.0 end
#configure
def configure() { |config| ... } -> Client::Configuration
Configure the StorageInsights 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_dataset_config
def create_dataset_config(request, options = nil) -> ::Gapic::Operation
def create_dataset_config(parent: nil, dataset_config_id: nil, dataset_config: nil, request_id: nil) -> ::Gapic::Operation
Creates a dataset configuration in a given project for a given location.
def create_dataset_config(request, options = nil) -> ::Gapic::Operation
create_dataset_config
via a request object, either of type
CreateDatasetConfigRequest or an equivalent Hash.
- request (::Google::Cloud::StorageInsights::V1::CreateDatasetConfigRequest, ::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_dataset_config(parent: nil, dataset_config_id: nil, dataset_config: nil, request_id: nil) -> ::Gapic::Operation
create_dataset_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).
- parent (::String) — Required. Value for parent.
-
dataset_config_id (::String) — Required. ID of the requesting object.
If auto-generating ID is enabled on the server-side, remove this field and
dataset_config_id
from the method_signature of Create RPC Note: The value should not contain any hyphens. - dataset_config (::Google::Cloud::StorageInsights::V1::DatasetConfig, ::Hash) — Required. The resource being created
-
request_id (::String) — Optional. A unique identifier for your request.
Specify the request ID if you need to retry the request.
If you retry the request with the same ID within 60 minutes, the server
ignores the request if it has already completed the original request.
For example, if your initial request times out and you retry the request using the same request ID, the server recognizes the original request and does not process the new request.
The request ID must be a valid UUID and cannot be a zero UUID (00000000-0000-0000-0000-000000000000).
- (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/storage_insights/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::StorageInsights::V1::StorageInsights::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::StorageInsights::V1::CreateDatasetConfigRequest.new # Call the create_dataset_config method. result = client.create_dataset_config 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_report_config
def create_report_config(request, options = nil) -> ::Google::Cloud::StorageInsights::V1::ReportConfig
def create_report_config(parent: nil, report_config: nil, request_id: nil) -> ::Google::Cloud::StorageInsights::V1::ReportConfig
Creates a new ReportConfig in a given project and location.
def create_report_config(request, options = nil) -> ::Google::Cloud::StorageInsights::V1::ReportConfig
create_report_config
via a request object, either of type
CreateReportConfigRequest or an equivalent Hash.
- request (::Google::Cloud::StorageInsights::V1::CreateReportConfigRequest, ::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_report_config(parent: nil, report_config: nil, request_id: nil) -> ::Google::Cloud::StorageInsights::V1::ReportConfig
create_report_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).
- parent (::String) — Required. Value for parent.
- report_config (::Google::Cloud::StorageInsights::V1::ReportConfig, ::Hash) — Required. The resource being created
-
request_id (::String) — Optional. An optional request ID to identify requests. Specify a unique
request ID so that if you must retry your request, the server will know to
ignore the request if it has already been completed. The server will
guarantee that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::StorageInsights::V1::ReportConfig)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/storage_insights/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::StorageInsights::V1::StorageInsights::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::StorageInsights::V1::CreateReportConfigRequest.new # Call the create_report_config method. result = client.create_report_config request # The returned object is of type Google::Cloud::StorageInsights::V1::ReportConfig. p result
#delete_dataset_config
def delete_dataset_config(request, options = nil) -> ::Gapic::Operation
def delete_dataset_config(name: nil, request_id: nil) -> ::Gapic::Operation
Deletes a dataset configuration in a given project for a given location.
def delete_dataset_config(request, options = nil) -> ::Gapic::Operation
delete_dataset_config
via a request object, either of type
DeleteDatasetConfigRequest or an equivalent Hash.
- request (::Google::Cloud::StorageInsights::V1::DeleteDatasetConfigRequest, ::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_dataset_config(name: nil, request_id: nil) -> ::Gapic::Operation
delete_dataset_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. Name of the resource
-
request_id (::String) — Optional. A unique identifier for your request.
Specify the request ID if you need to retry the request.
If you retry the request with the same ID within 60 minutes, the server
ignores the request if it has already completed the original request.
For example, if your initial request times out and you retry the request using the same request ID, the server recognizes the original request and does not process the new request.
The request ID must be a valid UUID and cannot be a zero UUID (00000000-0000-0000-0000-000000000000).
- (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/storage_insights/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::StorageInsights::V1::StorageInsights::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::StorageInsights::V1::DeleteDatasetConfigRequest.new # Call the delete_dataset_config method. result = client.delete_dataset_config 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_report_config
def delete_report_config(request, options = nil) -> ::Google::Protobuf::Empty
def delete_report_config(name: nil, force: nil, request_id: nil) -> ::Google::Protobuf::Empty
Deletes a single ReportConfig.
def delete_report_config(request, options = nil) -> ::Google::Protobuf::Empty
delete_report_config
via a request object, either of type
DeleteReportConfigRequest or an equivalent Hash.
- request (::Google::Cloud::StorageInsights::V1::DeleteReportConfigRequest, ::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_report_config(name: nil, force: nil, request_id: nil) -> ::Google::Protobuf::Empty
delete_report_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. Name of the resource
- force (::Boolean) — Optional. If set, all ReportDetails for this ReportConfig will be deleted.
-
request_id (::String) — Optional. An optional request ID to identify requests. Specify a unique
request ID so that if you must retry your request, the server will know to
ignore the request if it has already been completed. The server will
guarantee that for at least 60 minutes after the first request.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- (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/storage_insights/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::StorageInsights::V1::StorageInsights::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::StorageInsights::V1::DeleteReportConfigRequest.new # Call the delete_report_config method. result = client.delete_report_config request # The returned object is of type Google::Protobuf::Empty. p result
#get_dataset_config
def get_dataset_config(request, options = nil) -> ::Google::Cloud::StorageInsights::V1::DatasetConfig
def get_dataset_config(name: nil) -> ::Google::Cloud::StorageInsights::V1::DatasetConfig
Gets the dataset configuration in a given project for a given location.
def get_dataset_config(request, options = nil) -> ::Google::Cloud::StorageInsights::V1::DatasetConfig
get_dataset_config
via a request object, either of type
GetDatasetConfigRequest or an equivalent Hash.
- request (::Google::Cloud::StorageInsights::V1::GetDatasetConfigRequest, ::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_dataset_config(name: nil) -> ::Google::Cloud::StorageInsights::V1::DatasetConfig
get_dataset_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. Name of the resource
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::StorageInsights::V1::DatasetConfig)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/storage_insights/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::StorageInsights::V1::StorageInsights::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::StorageInsights::V1::GetDatasetConfigRequest.new # Call the get_dataset_config method. result = client.get_dataset_config request # The returned object is of type Google::Cloud::StorageInsights::V1::DatasetConfig. p result
#get_report_config
def get_report_config(request, options = nil) -> ::Google::Cloud::StorageInsights::V1::ReportConfig
def get_report_config(name: nil) -> ::Google::Cloud::StorageInsights::V1::ReportConfig
Gets details of a single ReportConfig.
def get_report_config(request, options = nil) -> ::Google::Cloud::StorageInsights::V1::ReportConfig
get_report_config
via a request object, either of type
GetReportConfigRequest or an equivalent Hash.
- request (::Google::Cloud::StorageInsights::V1::GetReportConfigRequest, ::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_report_config(name: nil) -> ::Google::Cloud::StorageInsights::V1::ReportConfig
get_report_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. Name of the resource
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::StorageInsights::V1::ReportConfig)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/storage_insights/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::StorageInsights::V1::StorageInsights::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::StorageInsights::V1::GetReportConfigRequest.new # Call the get_report_config method. result = client.get_report_config request # The returned object is of type Google::Cloud::StorageInsights::V1::ReportConfig. p result
#get_report_detail
def get_report_detail(request, options = nil) -> ::Google::Cloud::StorageInsights::V1::ReportDetail
def get_report_detail(name: nil) -> ::Google::Cloud::StorageInsights::V1::ReportDetail
Gets details of a single ReportDetail.
def get_report_detail(request, options = nil) -> ::Google::Cloud::StorageInsights::V1::ReportDetail
get_report_detail
via a request object, either of type
GetReportDetailRequest or an equivalent Hash.
- request (::Google::Cloud::StorageInsights::V1::GetReportDetailRequest, ::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_report_detail(name: nil) -> ::Google::Cloud::StorageInsights::V1::ReportDetail
get_report_detail
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. Name of the resource
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::StorageInsights::V1::ReportDetail)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/storage_insights/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::StorageInsights::V1::StorageInsights::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::StorageInsights::V1::GetReportDetailRequest.new # Call the get_report_detail method. result = client.get_report_detail request # The returned object is of type Google::Cloud::StorageInsights::V1::ReportDetail. p result
#initialize
def initialize() { |config| ... } -> Client
Create a new StorageInsights REST client object.
- (config) — Configure the StorageInsights client.
- config (Client::Configuration)
- (Client) — a new instance of Client
# Create a client using the default configuration client = ::Google::Cloud::StorageInsights::V1::StorageInsights::Rest::Client.new # Create a client using a custom configuration client = ::Google::Cloud::StorageInsights::V1::StorageInsights::Rest::Client.new do |config| config.timeout = 10.0 end
#link_dataset
def link_dataset(request, options = nil) -> ::Gapic::Operation
def link_dataset(name: nil) -> ::Gapic::Operation
Links a dataset to BigQuery in a given project for a given location.
def link_dataset(request, options = nil) -> ::Gapic::Operation
link_dataset
via a request object, either of type
LinkDatasetRequest or an equivalent Hash.
- request (::Google::Cloud::StorageInsights::V1::LinkDatasetRequest, ::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 link_dataset(name: nil) -> ::Gapic::Operation
link_dataset
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. Name of the resource
- (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/storage_insights/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::StorageInsights::V1::StorageInsights::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::StorageInsights::V1::LinkDatasetRequest.new # Call the link_dataset method. result = client.link_dataset 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
#list_dataset_configs
def list_dataset_configs(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::StorageInsights::V1::DatasetConfig>
def list_dataset_configs(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::StorageInsights::V1::DatasetConfig>
Lists the dataset configurations in a given project for a given location.
def list_dataset_configs(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::StorageInsights::V1::DatasetConfig>
list_dataset_configs
via a request object, either of type
ListDatasetConfigsRequest or an equivalent Hash.
- request (::Google::Cloud::StorageInsights::V1::ListDatasetConfigsRequest, ::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_dataset_configs(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::StorageInsights::V1::DatasetConfig>
list_dataset_configs
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. Parent value for ListDatasetConfigsRequest
- page_size (::Integer) — Requested page size. Server might return fewer items than requested. If unspecified, server picks an appropriate default.
- page_token (::String) — A token identifying a page of results the server should return.
- filter (::String) — Filtering results
- order_by (::String) — Hint for how to order the results
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::StorageInsights::V1::DatasetConfig>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::StorageInsights::V1::DatasetConfig>)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/storage_insights/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::StorageInsights::V1::StorageInsights::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::StorageInsights::V1::ListDatasetConfigsRequest.new # Call the list_dataset_configs method. result = client.list_dataset_configs 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::StorageInsights::V1::DatasetConfig. p item end
#list_report_configs
def list_report_configs(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::StorageInsights::V1::ReportConfig>
def list_report_configs(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::StorageInsights::V1::ReportConfig>
Lists ReportConfigs in a given project and location.
def list_report_configs(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::StorageInsights::V1::ReportConfig>
list_report_configs
via a request object, either of type
ListReportConfigsRequest or an equivalent Hash.
- request (::Google::Cloud::StorageInsights::V1::ListReportConfigsRequest, ::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_report_configs(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::StorageInsights::V1::ReportConfig>
list_report_configs
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. Parent value for ListReportConfigsRequest
- page_size (::Integer) — Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
- page_token (::String) — A token identifying a page of results the server should return.
- filter (::String) — Filtering results
- order_by (::String) — Hint for how to order the results
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::StorageInsights::V1::ReportConfig>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::StorageInsights::V1::ReportConfig>)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/storage_insights/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::StorageInsights::V1::StorageInsights::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::StorageInsights::V1::ListReportConfigsRequest.new # Call the list_report_configs method. result = client.list_report_configs 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::StorageInsights::V1::ReportConfig. p item end
#list_report_details
def list_report_details(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::StorageInsights::V1::ReportDetail>
def list_report_details(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::StorageInsights::V1::ReportDetail>
Lists ReportDetails in a given project and location.
def list_report_details(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::StorageInsights::V1::ReportDetail>
list_report_details
via a request object, either of type
ListReportDetailsRequest or an equivalent Hash.
- request (::Google::Cloud::StorageInsights::V1::ListReportDetailsRequest, ::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_report_details(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::StorageInsights::V1::ReportDetail>
list_report_details
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. Parent value for ListReportDetailsRequest
- page_size (::Integer) — Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
- page_token (::String) — A token identifying a page of results the server should return.
- filter (::String) — Filtering results
- order_by (::String) — Hint for how to order the results
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::StorageInsights::V1::ReportDetail>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::StorageInsights::V1::ReportDetail>)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/storage_insights/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::StorageInsights::V1::StorageInsights::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::StorageInsights::V1::ListReportDetailsRequest.new # Call the list_report_details method. result = client.list_report_details 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::StorageInsights::V1::ReportDetail. 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::StorageInsights::V1::StorageInsights::Rest::Operations
Get the associated client for long-running operations.
#universe_domain
def universe_domain() -> String
The effective universe domain
- (String)
#unlink_dataset
def unlink_dataset(request, options = nil) -> ::Gapic::Operation
def unlink_dataset(name: nil) -> ::Gapic::Operation
Unlinks a dataset from BigQuery in a given project for a given location.
def unlink_dataset(request, options = nil) -> ::Gapic::Operation
unlink_dataset
via a request object, either of type
UnlinkDatasetRequest or an equivalent Hash.
- request (::Google::Cloud::StorageInsights::V1::UnlinkDatasetRequest, ::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 unlink_dataset(name: nil) -> ::Gapic::Operation
unlink_dataset
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. Name of the resource
- (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/storage_insights/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::StorageInsights::V1::StorageInsights::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::StorageInsights::V1::UnlinkDatasetRequest.new # Call the unlink_dataset method. result = client.unlink_dataset 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_dataset_config
def update_dataset_config(request, options = nil) -> ::Gapic::Operation
def update_dataset_config(update_mask: nil, dataset_config: nil, request_id: nil) -> ::Gapic::Operation
Updates a dataset configuration in a given project for a given location.
def update_dataset_config(request, options = nil) -> ::Gapic::Operation
update_dataset_config
via a request object, either of type
UpdateDatasetConfigRequest or an equivalent Hash.
- request (::Google::Cloud::StorageInsights::V1::UpdateDatasetConfigRequest, ::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_dataset_config(update_mask: nil, dataset_config: nil, request_id: nil) -> ::Gapic::Operation
update_dataset_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).
-
update_mask (::Google::Protobuf::FieldMask, ::Hash) — Required. Field mask is used to specify the fields to be overwritten in the
DatasetConfig
resource by the update. The fields specified in theupdate_mask
are relative to the resource, not the full request. A field is overwritten if it is in the mask. If the user does not provide a mask then it returns an "Invalid Argument" error. - dataset_config (::Google::Cloud::StorageInsights::V1::DatasetConfig, ::Hash) — Required. The resource being updated
-
request_id (::String) — Optional. A unique identifier for your request.
Specify the request ID if you need to retry the request.
If you retry the request with the same ID within 60 minutes, the server
ignores the request if it has already completed the original request.
For example, if your initial request times out and you retry the request using the same request ID, the server recognizes the original request and does not process the new request.
The request ID must be a valid UUID and cannot be a zero UUID (00000000-0000-0000-0000-000000000000).
- (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/storage_insights/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::StorageInsights::V1::StorageInsights::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::StorageInsights::V1::UpdateDatasetConfigRequest.new # Call the update_dataset_config method. result = client.update_dataset_config 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_report_config
def update_report_config(request, options = nil) -> ::Google::Cloud::StorageInsights::V1::ReportConfig
def update_report_config(update_mask: nil, report_config: nil, request_id: nil) -> ::Google::Cloud::StorageInsights::V1::ReportConfig
Updates the parameters of a single ReportConfig.
def update_report_config(request, options = nil) -> ::Google::Cloud::StorageInsights::V1::ReportConfig
update_report_config
via a request object, either of type
UpdateReportConfigRequest or an equivalent Hash.
- request (::Google::Cloud::StorageInsights::V1::UpdateReportConfigRequest, ::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_report_config(update_mask: nil, report_config: nil, request_id: nil) -> ::Google::Cloud::StorageInsights::V1::ReportConfig
update_report_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).
- update_mask (::Google::Protobuf::FieldMask, ::Hash) — Required. Field mask is used to specify the fields to be overwritten in the ReportConfig resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.
- report_config (::Google::Cloud::StorageInsights::V1::ReportConfig, ::Hash) — Required. The resource being updated
-
request_id (::String) — Optional. An optional request ID to identify requests. Specify a unique
request ID so that if you must retry your request, the server will know to
ignore the request if it has already been completed. The server will
guarantee that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::StorageInsights::V1::ReportConfig)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/storage_insights/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::StorageInsights::V1::StorageInsights::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::StorageInsights::V1::UpdateReportConfigRequest.new # Call the update_report_config method. result = client.update_report_config request # The returned object is of type Google::Cloud::StorageInsights::V1::ReportConfig. p result