Reference documentation and code samples for the Chronicle V1 API class Google::Cloud::Chronicle::V1::DataTableService::Rest::Client.
REST client for the DataTableService service.
DataTableManager provides an interface for managing data tables.
Inherits
- Object
Methods
.configure
def self.configure() { |config| ... } -> Client::ConfigurationConfigure the DataTableService Client class.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
# Modify the configuration for all DataTableService clients ::Google::Cloud::Chronicle::V1::DataTableService::Rest::Client.configure do |config| config.timeout = 10.0 end
#bulk_create_data_table_rows
def bulk_create_data_table_rows(request, options = nil) -> ::Google::Cloud::Chronicle::V1::BulkCreateDataTableRowsResponse
def bulk_create_data_table_rows(parent: nil, requests: nil) -> ::Google::Cloud::Chronicle::V1::BulkCreateDataTableRowsResponseCreate data table rows in bulk.
def bulk_create_data_table_rows(request, options = nil) -> ::Google::Cloud::Chronicle::V1::BulkCreateDataTableRowsResponsebulk_create_data_table_rows via a request object, either of type
BulkCreateDataTableRowsRequest or an equivalent Hash.
- request (::Google::Cloud::Chronicle::V1::BulkCreateDataTableRowsRequest, ::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 bulk_create_data_table_rows(parent: nil, requests: nil) -> ::Google::Cloud::Chronicle::V1::BulkCreateDataTableRowsResponsebulk_create_data_table_rows via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. The resource id of the data table. Format: /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}
- requests (::Array<::Google::Cloud::Chronicle::V1::CreateDataTableRowRequest, ::Hash>) — Required. Data table rows to create. A maximum of 1000 rows (for sync requests) or 2000 rows (for async requests) can be created in a single request. Total size of the rows should be less than 4MB.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Chronicle::V1::BulkCreateDataTableRowsResponse)
- 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::DataTableService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Chronicle::V1::BulkCreateDataTableRowsRequest.new # Call the bulk_create_data_table_rows method. result = client.bulk_create_data_table_rows request # The returned object is of type Google::Cloud::Chronicle::V1::BulkCreateDataTableRowsResponse. p result
#bulk_get_data_table_rows
def bulk_get_data_table_rows(request, options = nil) -> ::Google::Cloud::Chronicle::V1::BulkGetDataTableRowsResponse
def bulk_get_data_table_rows(parent: nil, requests: nil) -> ::Google::Cloud::Chronicle::V1::BulkGetDataTableRowsResponseGet data table rows in bulk.
def bulk_get_data_table_rows(request, options = nil) -> ::Google::Cloud::Chronicle::V1::BulkGetDataTableRowsResponsebulk_get_data_table_rows via a request object, either of type
BulkGetDataTableRowsRequest or an equivalent Hash.
- request (::Google::Cloud::Chronicle::V1::BulkGetDataTableRowsRequest, ::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 bulk_get_data_table_rows(parent: nil, requests: nil) -> ::Google::Cloud::Chronicle::V1::BulkGetDataTableRowsResponsebulk_get_data_table_rows via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. The resource id of the data table. Format: /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}
- requests (::Array<::Google::Cloud::Chronicle::V1::GetDataTableRowRequest, ::Hash>) — Required. Data table rows to get. At max 1,000 rows can be there in a request.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Chronicle::V1::BulkGetDataTableRowsResponse)
- 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::DataTableService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Chronicle::V1::BulkGetDataTableRowsRequest.new # Call the bulk_get_data_table_rows method. result = client.bulk_get_data_table_rows request # The returned object is of type Google::Cloud::Chronicle::V1::BulkGetDataTableRowsResponse. p result
#bulk_replace_data_table_rows
def bulk_replace_data_table_rows(request, options = nil) -> ::Google::Cloud::Chronicle::V1::BulkReplaceDataTableRowsResponse
def bulk_replace_data_table_rows(parent: nil, requests: nil) -> ::Google::Cloud::Chronicle::V1::BulkReplaceDataTableRowsResponseReplace all existing data table rows with new data table rows.
def bulk_replace_data_table_rows(request, options = nil) -> ::Google::Cloud::Chronicle::V1::BulkReplaceDataTableRowsResponsebulk_replace_data_table_rows via a request object, either of type
BulkReplaceDataTableRowsRequest or an equivalent Hash.
- request (::Google::Cloud::Chronicle::V1::BulkReplaceDataTableRowsRequest, ::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 bulk_replace_data_table_rows(parent: nil, requests: nil) -> ::Google::Cloud::Chronicle::V1::BulkReplaceDataTableRowsResponsebulk_replace_data_table_rows via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. The resource id of the data table. Format: /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}
- requests (::Array<::Google::Cloud::Chronicle::V1::CreateDataTableRowRequest, ::Hash>) — Required. Data table rows to replace the existing data table rows. A maximum of 1000 rows (for sync requests) or 2000 rows (for async requests) can be replaced in a single request. Total size of the rows should be less than 4MB.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Chronicle::V1::BulkReplaceDataTableRowsResponse)
- 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::DataTableService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Chronicle::V1::BulkReplaceDataTableRowsRequest.new # Call the bulk_replace_data_table_rows method. result = client.bulk_replace_data_table_rows request # The returned object is of type Google::Cloud::Chronicle::V1::BulkReplaceDataTableRowsResponse. p result
#bulk_update_data_table_rows
def bulk_update_data_table_rows(request, options = nil) -> ::Google::Cloud::Chronicle::V1::BulkUpdateDataTableRowsResponse
def bulk_update_data_table_rows(parent: nil, requests: nil) -> ::Google::Cloud::Chronicle::V1::BulkUpdateDataTableRowsResponseUpdate data table rows in bulk.
def bulk_update_data_table_rows(request, options = nil) -> ::Google::Cloud::Chronicle::V1::BulkUpdateDataTableRowsResponsebulk_update_data_table_rows via a request object, either of type
BulkUpdateDataTableRowsRequest or an equivalent Hash.
- request (::Google::Cloud::Chronicle::V1::BulkUpdateDataTableRowsRequest, ::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 bulk_update_data_table_rows(parent: nil, requests: nil) -> ::Google::Cloud::Chronicle::V1::BulkUpdateDataTableRowsResponsebulk_update_data_table_rows via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. The resource id of the data table. Format: /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}
- requests (::Array<::Google::Cloud::Chronicle::V1::UpdateDataTableRowRequest, ::Hash>) — Required. Data table rows to update. At max 1,000 rows (or rows with size less than 2MB) can be there in a request.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Chronicle::V1::BulkUpdateDataTableRowsResponse)
- 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::DataTableService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Chronicle::V1::BulkUpdateDataTableRowsRequest.new # Call the bulk_update_data_table_rows method. result = client.bulk_update_data_table_rows request # The returned object is of type Google::Cloud::Chronicle::V1::BulkUpdateDataTableRowsResponse. p result
#configure
def configure() { |config| ... } -> Client::ConfigurationConfigure the DataTableService 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_data_table
def create_data_table(request, options = nil) -> ::Google::Cloud::Chronicle::V1::DataTable
def create_data_table(parent: nil, data_table: nil, data_table_id: nil) -> ::Google::Cloud::Chronicle::V1::DataTableCreate a new data table.
def create_data_table(request, options = nil) -> ::Google::Cloud::Chronicle::V1::DataTablecreate_data_table via a request object, either of type
CreateDataTableRequest or an equivalent Hash.
- request (::Google::Cloud::Chronicle::V1::CreateDataTableRequest, ::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_data_table(parent: nil, data_table: nil, data_table_id: nil) -> ::Google::Cloud::Chronicle::V1::DataTablecreate_data_table 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 data table will be created. Format: projects/{project}/locations/{location}/instances/{instance}
- data_table (::Google::Cloud::Chronicle::V1::DataTable, ::Hash) — Required. The data table being created.
-
data_table_id (::String) —
Required. The ID to use for the data table. This is also the display name for the data table. It must satisfy the following requirements:
- Starts with letter.
- Contains only letters, numbers and underscore.
- Must be unique and has length < 256.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Chronicle::V1::DataTable)
- 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::DataTableService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Chronicle::V1::CreateDataTableRequest.new # Call the create_data_table method. result = client.create_data_table request # The returned object is of type Google::Cloud::Chronicle::V1::DataTable. p result
#create_data_table_row
def create_data_table_row(request, options = nil) -> ::Google::Cloud::Chronicle::V1::DataTableRow
def create_data_table_row(parent: nil, data_table_row: nil) -> ::Google::Cloud::Chronicle::V1::DataTableRowCreate a new data table row.
def create_data_table_row(request, options = nil) -> ::Google::Cloud::Chronicle::V1::DataTableRowcreate_data_table_row via a request object, either of type
CreateDataTableRowRequest or an equivalent Hash.
- request (::Google::Cloud::Chronicle::V1::CreateDataTableRowRequest, ::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_data_table_row(parent: nil, data_table_row: nil) -> ::Google::Cloud::Chronicle::V1::DataTableRowcreate_data_table_row via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. The resource id of the data table. Format: /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}
- data_table_row (::Google::Cloud::Chronicle::V1::DataTableRow, ::Hash) — Required. The data table row to create.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Chronicle::V1::DataTableRow)
- 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::DataTableService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Chronicle::V1::CreateDataTableRowRequest.new # Call the create_data_table_row method. result = client.create_data_table_row request # The returned object is of type Google::Cloud::Chronicle::V1::DataTableRow. p result
#delete_data_table
def delete_data_table(request, options = nil) -> ::Google::Protobuf::Empty
def delete_data_table(name: nil, force: nil) -> ::Google::Protobuf::EmptyDelete data table.
def delete_data_table(request, options = nil) -> ::Google::Protobuf::Emptydelete_data_table via a request object, either of type
Google::Cloud::Chronicle::V1::DeleteDataTableRequest or an equivalent Hash.
- request (::Google::Cloud::Chronicle::V1::DeleteDataTableRequest, ::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_data_table(name: nil, force: nil) -> ::Google::Protobuf::Emptydelete_data_table 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 data table to delete. Format projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table}
- force (::Boolean) — Optional. If set to true, any rows under this data table will also be deleted. (Otherwise, the request will only work if the data table has no rows.)
- (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/chronicle/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Chronicle::V1::DataTableService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Chronicle::V1::DeleteDataTableRequest.new # Call the delete_data_table method. result = client.delete_data_table request # The returned object is of type Google::Protobuf::Empty. p result
#delete_data_table_row
def delete_data_table_row(request, options = nil) -> ::Google::Protobuf::Empty
def delete_data_table_row(name: nil) -> ::Google::Protobuf::EmptyDelete data table row.
def delete_data_table_row(request, options = nil) -> ::Google::Protobuf::Emptydelete_data_table_row via a request object, either of type
Google::Cloud::Chronicle::V1::DeleteDataTableRowRequest or an equivalent Hash.
- request (::Google::Cloud::Chronicle::V1::DeleteDataTableRowRequest, ::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_data_table_row(name: nil) -> ::Google::Protobuf::Emptydelete_data_table_row 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 data table row i,e row_id. Format: projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}
- (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/chronicle/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Chronicle::V1::DataTableService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Chronicle::V1::DeleteDataTableRowRequest.new # Call the delete_data_table_row method. result = client.delete_data_table_row request # The returned object is of type Google::Protobuf::Empty. p result
#get_data_table
def get_data_table(request, options = nil) -> ::Google::Cloud::Chronicle::V1::DataTable
def get_data_table(name: nil) -> ::Google::Cloud::Chronicle::V1::DataTableGet data table info.
def get_data_table(request, options = nil) -> ::Google::Cloud::Chronicle::V1::DataTableget_data_table via a request object, either of type
GetDataTableRequest or an equivalent Hash.
- request (::Google::Cloud::Chronicle::V1::GetDataTableRequest, ::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_data_table(name: nil) -> ::Google::Cloud::Chronicle::V1::DataTableget_data_table 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 data table to retrieve. Format: projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table}
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Chronicle::V1::DataTable)
- 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::DataTableService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Chronicle::V1::GetDataTableRequest.new # Call the get_data_table method. result = client.get_data_table request # The returned object is of type Google::Cloud::Chronicle::V1::DataTable. p result
#get_data_table_operation_errors
def get_data_table_operation_errors(request, options = nil) -> ::Google::Cloud::Chronicle::V1::DataTableOperationErrors
def get_data_table_operation_errors(name: nil) -> ::Google::Cloud::Chronicle::V1::DataTableOperationErrorsGet the error for a data table operation.
def get_data_table_operation_errors(request, options = nil) -> ::Google::Cloud::Chronicle::V1::DataTableOperationErrorsget_data_table_operation_errors via a request object, either of type
GetDataTableOperationErrorsRequest or an equivalent Hash.
- request (::Google::Cloud::Chronicle::V1::GetDataTableOperationErrorsRequest, ::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_data_table_operation_errors(name: nil) -> ::Google::Cloud::Chronicle::V1::DataTableOperationErrorsget_data_table_operation_errors 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. Resource name for the data table operation errors. Format: projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors}
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Chronicle::V1::DataTableOperationErrors)
- 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::DataTableService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Chronicle::V1::GetDataTableOperationErrorsRequest.new # Call the get_data_table_operation_errors method. result = client.get_data_table_operation_errors request # The returned object is of type Google::Cloud::Chronicle::V1::DataTableOperationErrors. p result
#get_data_table_row
def get_data_table_row(request, options = nil) -> ::Google::Cloud::Chronicle::V1::DataTableRow
def get_data_table_row(name: nil) -> ::Google::Cloud::Chronicle::V1::DataTableRowGet data table row
def get_data_table_row(request, options = nil) -> ::Google::Cloud::Chronicle::V1::DataTableRowget_data_table_row via a request object, either of type
GetDataTableRowRequest or an equivalent Hash.
- request (::Google::Cloud::Chronicle::V1::GetDataTableRowRequest, ::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_data_table_row(name: nil) -> ::Google::Cloud::Chronicle::V1::DataTableRowget_data_table_row 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 data table row i,e row_id. Format: projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Chronicle::V1::DataTableRow)
- 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::DataTableService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Chronicle::V1::GetDataTableRowRequest.new # Call the get_data_table_row method. result = client.get_data_table_row request # The returned object is of type Google::Cloud::Chronicle::V1::DataTableRow. p result
#initialize
def initialize() { |config| ... } -> ClientCreate a new DataTableService REST client object.
- (config) — Configure the DataTableService client.
- config (Client::Configuration)
- (Client) — a new instance of Client
# Create a client using the default configuration client = ::Google::Cloud::Chronicle::V1::DataTableService::Rest::Client.new # Create a client using a custom configuration client = ::Google::Cloud::Chronicle::V1::DataTableService::Rest::Client.new do |config| config.timeout = 10.0 end
#list_data_table_rows
def list_data_table_rows(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Chronicle::V1::DataTableRow>
def list_data_table_rows(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Chronicle::V1::DataTableRow>List data table rows.
def list_data_table_rows(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Chronicle::V1::DataTableRow>list_data_table_rows via a request object, either of type
ListDataTableRowsRequest or an equivalent Hash.
- request (::Google::Cloud::Chronicle::V1::ListDataTableRowsRequest, ::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_data_table_rows(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Chronicle::V1::DataTableRow>list_data_table_rows via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. The resource id of the data table. Format: projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table}
- page_size (::Integer) — Optional. The maximum number of data table rows to return. The service may return fewer than this value. If unspecified, at most 100 data table rows 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
ListDataTableRowscall. - order_by (::String) — Optional. Configures ordering of DataTables in the response. Note: Our implementation currently supports order by "create_time asc" only
- filter (::String) — Optional. Filter facilitating search over data table rows. This filter performs a case-insensitive substring match on the row values.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::Chronicle::V1::DataTableRow>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::Chronicle::V1::DataTableRow>)
- (::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::DataTableService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Chronicle::V1::ListDataTableRowsRequest.new # Call the list_data_table_rows method. result = client.list_data_table_rows 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::Chronicle::V1::DataTableRow. p item end
#list_data_tables
def list_data_tables(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Chronicle::V1::DataTable>
def list_data_tables(parent: nil, page_size: nil, page_token: nil, order_by: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Chronicle::V1::DataTable>List data tables.
def list_data_tables(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Chronicle::V1::DataTable>list_data_tables via a request object, either of type
ListDataTablesRequest or an equivalent Hash.
- request (::Google::Cloud::Chronicle::V1::ListDataTablesRequest, ::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_data_tables(parent: nil, page_size: nil, page_token: nil, order_by: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Chronicle::V1::DataTable>list_data_tables 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 data table will be created. Format: projects/{project}/locations/{location}/instances/{instance}
- page_size (::Integer) — Optional. The maximum number of data tables to return. The service may return fewer than this value. If unspecified, at most 100 data tables 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
ListDataTablescall. Provide this to retrieve the subsequent page. When paginating, all other parameters provided toListDataTablesmust match the call that provided the page token. - order_by (::String) — Optional. Configures ordering of DataTables in the response. Note: Our implementation currently supports order by "create_time asc" only
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::Chronicle::V1::DataTable>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::Chronicle::V1::DataTable>)
- (::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::DataTableService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Chronicle::V1::ListDataTablesRequest.new # Call the list_data_tables method. result = client.list_data_tables 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::Chronicle::V1::DataTable. p item end
#logger
def logger() -> LoggerThe logger used for request/response debug logging.
- (Logger)
#universe_domain
def universe_domain() -> StringThe effective universe domain
- (String)
#update_data_table
def update_data_table(request, options = nil) -> ::Google::Cloud::Chronicle::V1::DataTable
def update_data_table(data_table: nil, update_mask: nil) -> ::Google::Cloud::Chronicle::V1::DataTableUpdate data table.
def update_data_table(request, options = nil) -> ::Google::Cloud::Chronicle::V1::DataTableupdate_data_table via a request object, either of type
UpdateDataTableRequest or an equivalent Hash.
- request (::Google::Cloud::Chronicle::V1::UpdateDataTableRequest, ::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_data_table(data_table: nil, update_mask: nil) -> ::Google::Cloud::Chronicle::V1::DataTableupdate_data_table 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).
- data_table (::Google::Cloud::Chronicle::V1::DataTable, ::Hash) — Required. This field is used to identify the datatable to update. Format: projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table}
-
update_mask (::Google::Protobuf::FieldMask, ::Hash) — Optional. The list of metadata fields to update. Currently data tables only
support updating the
description,row_time_to_liveandscope_infofields. When no field mask is supplied, all non-empty fields will be updated. A field mask of "*" will update all fields, whether empty or not.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Chronicle::V1::DataTable)
- 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::DataTableService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Chronicle::V1::UpdateDataTableRequest.new # Call the update_data_table method. result = client.update_data_table request # The returned object is of type Google::Cloud::Chronicle::V1::DataTable. p result
#update_data_table_row
def update_data_table_row(request, options = nil) -> ::Google::Cloud::Chronicle::V1::DataTableRow
def update_data_table_row(data_table_row: nil, update_mask: nil) -> ::Google::Cloud::Chronicle::V1::DataTableRowUpdate data table row
def update_data_table_row(request, options = nil) -> ::Google::Cloud::Chronicle::V1::DataTableRowupdate_data_table_row via a request object, either of type
UpdateDataTableRowRequest or an equivalent Hash.
- request (::Google::Cloud::Chronicle::V1::UpdateDataTableRowRequest, ::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_data_table_row(data_table_row: nil, update_mask: nil) -> ::Google::Cloud::Chronicle::V1::DataTableRowupdate_data_table_row 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).
- data_table_row (::Google::Cloud::Chronicle::V1::DataTableRow, ::Hash) — Required. Format: projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row}
-
update_mask (::Google::Protobuf::FieldMask, ::Hash) — Optional. The list of fields to update. Currently data table rows only
support updating the
valuesfield. When no field mask is supplied, all non-empty fields will be updated. A field mask of "*" will update all fields, whether empty or not.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Chronicle::V1::DataTableRow)
- 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::DataTableService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Chronicle::V1::UpdateDataTableRowRequest.new # Call the update_data_table_row method. result = client.update_data_table_row request # The returned object is of type Google::Cloud::Chronicle::V1::DataTableRow. p result