google-cloud-chronicle-v1 0.4.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +4 -4
- data/README.md +6 -6
- data/lib/google/cloud/chronicle/v1/big_query_export_pb.rb +34 -0
- data/lib/google/cloud/chronicle/v1/big_query_export_service/client.rb +682 -0
- data/lib/google/cloud/chronicle/v1/big_query_export_service/credentials.rb +49 -0
- data/lib/google/cloud/chronicle/v1/big_query_export_service/paths.rb +71 -0
- data/lib/google/cloud/chronicle/v1/big_query_export_service/rest/client.rb +618 -0
- data/lib/google/cloud/chronicle/v1/big_query_export_service/rest/service_stub.rb +266 -0
- data/lib/google/cloud/chronicle/v1/big_query_export_service/rest.rb +52 -0
- data/lib/google/cloud/chronicle/v1/big_query_export_service.rb +55 -0
- data/lib/google/cloud/chronicle/v1/big_query_export_services_pb.rb +51 -0
- data/lib/google/cloud/chronicle/v1/dashboard_chart_pb.rb +83 -0
- data/lib/google/cloud/chronicle/v1/dashboard_chart_service/client.rb +584 -0
- data/lib/google/cloud/chronicle/v1/dashboard_chart_service/credentials.rb +49 -0
- data/lib/google/cloud/chronicle/v1/dashboard_chart_service/paths.rb +73 -0
- data/lib/google/cloud/chronicle/v1/dashboard_chart_service/rest/client.rb +527 -0
- data/lib/google/cloud/chronicle/v1/dashboard_chart_service/rest/service_stub.rb +203 -0
- data/lib/google/cloud/chronicle/v1/dashboard_chart_service/rest.rb +52 -0
- data/lib/google/cloud/chronicle/v1/dashboard_chart_service.rb +55 -0
- data/lib/google/cloud/chronicle/v1/dashboard_chart_services_pb.rb +47 -0
- data/lib/google/cloud/chronicle/v1/dashboard_query_pb.rb +58 -0
- data/lib/google/cloud/chronicle/v1/dashboard_query_service/client.rb +589 -0
- data/lib/google/cloud/chronicle/v1/dashboard_query_service/credentials.rb +49 -0
- data/lib/google/cloud/chronicle/v1/dashboard_query_service/paths.rb +94 -0
- data/lib/google/cloud/chronicle/v1/dashboard_query_service/rest/client.rb +532 -0
- data/lib/google/cloud/chronicle/v1/dashboard_query_service/rest/service_stub.rb +204 -0
- data/lib/google/cloud/chronicle/v1/dashboard_query_service/rest.rb +52 -0
- data/lib/google/cloud/chronicle/v1/dashboard_query_service.rb +55 -0
- data/lib/google/cloud/chronicle/v1/dashboard_query_services_pb.rb +47 -0
- data/lib/google/cloud/chronicle/v1/data_table_pb.rb +57 -0
- data/lib/google/cloud/chronicle/v1/data_table_service/client.rb +1915 -0
- data/lib/google/cloud/chronicle/v1/data_table_service/credentials.rb +49 -0
- data/lib/google/cloud/chronicle/v1/data_table_service/paths.rb +138 -0
- data/lib/google/cloud/chronicle/v1/data_table_service/rest/client.rb +1767 -0
- data/lib/google/cloud/chronicle/v1/data_table_service/rest/service_stub.rb +1004 -0
- data/lib/google/cloud/chronicle/v1/data_table_service/rest.rb +52 -0
- data/lib/google/cloud/chronicle/v1/data_table_service.rb +55 -0
- data/lib/google/cloud/chronicle/v1/data_table_services_pb.rb +73 -0
- data/lib/google/cloud/chronicle/v1/featured_content_metadata_pb.rb +25 -0
- data/lib/google/cloud/chronicle/v1/featured_content_native_dashboard_pb.rb +33 -0
- data/lib/google/cloud/chronicle/v1/featured_content_native_dashboard_service/client.rb +717 -0
- data/lib/google/cloud/chronicle/v1/featured_content_native_dashboard_service/credentials.rb +49 -0
- data/lib/google/cloud/chronicle/v1/featured_content_native_dashboard_service/paths.rb +136 -0
- data/lib/google/cloud/chronicle/v1/featured_content_native_dashboard_service/rest/client.rb +653 -0
- data/lib/google/cloud/chronicle/v1/featured_content_native_dashboard_service/rest/service_stub.rb +265 -0
- data/lib/google/cloud/chronicle/v1/featured_content_native_dashboard_service/rest.rb +53 -0
- data/lib/google/cloud/chronicle/v1/featured_content_native_dashboard_service.rb +56 -0
- data/lib/google/cloud/chronicle/v1/featured_content_native_dashboard_services_pb.rb +50 -0
- data/lib/google/cloud/chronicle/v1/native_dashboard_pb.rb +61 -0
- data/lib/google/cloud/chronicle/v1/native_dashboard_service/client.rb +1611 -0
- data/lib/google/cloud/chronicle/v1/native_dashboard_service/credentials.rb +49 -0
- data/lib/google/cloud/chronicle/v1/native_dashboard_service/paths.rb +115 -0
- data/lib/google/cloud/chronicle/v1/native_dashboard_service/rest/client.rb +1484 -0
- data/lib/google/cloud/chronicle/v1/native_dashboard_service/rest/service_stub.rb +822 -0
- data/lib/google/cloud/chronicle/v1/native_dashboard_service/rest.rb +52 -0
- data/lib/google/cloud/chronicle/v1/native_dashboard_service.rb +55 -0
- data/lib/google/cloud/chronicle/v1/native_dashboard_services_pb.rb +67 -0
- data/lib/google/cloud/chronicle/v1/rest.rb +7 -1
- data/lib/google/cloud/chronicle/v1/version.rb +1 -1
- data/lib/google/cloud/chronicle/v1.rb +8 -2
- data/proto_docs/google/api/client.rb +149 -29
- data/proto_docs/google/cloud/chronicle/v1/big_query_export.rb +142 -0
- data/proto_docs/google/cloud/chronicle/v1/dashboard_chart.rb +923 -0
- data/proto_docs/google/cloud/chronicle/v1/dashboard_query.rb +653 -0
- data/proto_docs/google/cloud/chronicle/v1/data_table.rb +512 -0
- data/proto_docs/google/cloud/chronicle/v1/featured_content_metadata.rb +82 -0
- data/proto_docs/google/cloud/chronicle/v1/featured_content_native_dashboard.rb +141 -0
- data/proto_docs/google/cloud/chronicle/v1/native_dashboard.rb +502 -0
- data/proto_docs/google/type/date.rb +56 -0
- metadata +71 -9
|
@@ -0,0 +1,1767 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
require "google/cloud/errors"
|
|
20
|
+
require "google/cloud/chronicle/v1/data_table_pb"
|
|
21
|
+
require "google/cloud/chronicle/v1/data_table_service/rest/service_stub"
|
|
22
|
+
|
|
23
|
+
module Google
|
|
24
|
+
module Cloud
|
|
25
|
+
module Chronicle
|
|
26
|
+
module V1
|
|
27
|
+
module DataTableService
|
|
28
|
+
module Rest
|
|
29
|
+
##
|
|
30
|
+
# REST client for the DataTableService service.
|
|
31
|
+
#
|
|
32
|
+
# DataTableManager provides an interface for managing data tables.
|
|
33
|
+
#
|
|
34
|
+
class Client
|
|
35
|
+
# @private
|
|
36
|
+
API_VERSION = ""
|
|
37
|
+
|
|
38
|
+
# @private
|
|
39
|
+
DEFAULT_ENDPOINT_TEMPLATE = "chronicle.$UNIVERSE_DOMAIN$"
|
|
40
|
+
|
|
41
|
+
include Paths
|
|
42
|
+
|
|
43
|
+
# @private
|
|
44
|
+
attr_reader :data_table_service_stub
|
|
45
|
+
|
|
46
|
+
##
|
|
47
|
+
# Configure the DataTableService Client class.
|
|
48
|
+
#
|
|
49
|
+
# See {::Google::Cloud::Chronicle::V1::DataTableService::Rest::Client::Configuration}
|
|
50
|
+
# for a description of the configuration fields.
|
|
51
|
+
#
|
|
52
|
+
# @example
|
|
53
|
+
#
|
|
54
|
+
# # Modify the configuration for all DataTableService clients
|
|
55
|
+
# ::Google::Cloud::Chronicle::V1::DataTableService::Rest::Client.configure do |config|
|
|
56
|
+
# config.timeout = 10.0
|
|
57
|
+
# end
|
|
58
|
+
#
|
|
59
|
+
# @yield [config] Configure the Client client.
|
|
60
|
+
# @yieldparam config [Client::Configuration]
|
|
61
|
+
#
|
|
62
|
+
# @return [Client::Configuration]
|
|
63
|
+
#
|
|
64
|
+
def self.configure
|
|
65
|
+
@configure ||= begin
|
|
66
|
+
namespace = ["Google", "Cloud", "Chronicle", "V1"]
|
|
67
|
+
parent_config = while namespace.any?
|
|
68
|
+
parent_name = namespace.join "::"
|
|
69
|
+
parent_const = const_get parent_name
|
|
70
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
|
71
|
+
namespace.pop
|
|
72
|
+
end
|
|
73
|
+
default_config = Client::Configuration.new parent_config
|
|
74
|
+
|
|
75
|
+
default_config.rpcs.create_data_table.timeout = 600.0
|
|
76
|
+
|
|
77
|
+
default_config.rpcs.list_data_tables.timeout = 600.0
|
|
78
|
+
default_config.rpcs.list_data_tables.retry_policy = {
|
|
79
|
+
initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
default_config.rpcs.get_data_table.timeout = 600.0
|
|
83
|
+
default_config.rpcs.get_data_table.retry_policy = {
|
|
84
|
+
initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
default_config.rpcs.update_data_table.timeout = 600.0
|
|
88
|
+
|
|
89
|
+
default_config.rpcs.delete_data_table.timeout = 600.0
|
|
90
|
+
|
|
91
|
+
default_config.rpcs.create_data_table_row.timeout = 600.0
|
|
92
|
+
|
|
93
|
+
default_config.rpcs.update_data_table_row.timeout = 600.0
|
|
94
|
+
|
|
95
|
+
default_config.rpcs.list_data_table_rows.timeout = 600.0
|
|
96
|
+
default_config.rpcs.list_data_table_rows.retry_policy = {
|
|
97
|
+
initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
default_config.rpcs.get_data_table_row.timeout = 600.0
|
|
101
|
+
default_config.rpcs.get_data_table_row.retry_policy = {
|
|
102
|
+
initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
default_config.rpcs.delete_data_table_row.timeout = 600.0
|
|
106
|
+
|
|
107
|
+
default_config.rpcs.bulk_create_data_table_rows.timeout = 600.0
|
|
108
|
+
|
|
109
|
+
default_config.rpcs.bulk_get_data_table_rows.timeout = 600.0
|
|
110
|
+
default_config.rpcs.bulk_get_data_table_rows.retry_policy = {
|
|
111
|
+
initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
default_config.rpcs.bulk_replace_data_table_rows.timeout = 600.0
|
|
115
|
+
|
|
116
|
+
default_config.rpcs.bulk_update_data_table_rows.timeout = 600.0
|
|
117
|
+
|
|
118
|
+
default_config.rpcs.get_data_table_operation_errors.timeout = 600.0
|
|
119
|
+
default_config.rpcs.get_data_table_operation_errors.retry_policy = {
|
|
120
|
+
initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
default_config
|
|
124
|
+
end
|
|
125
|
+
yield @configure if block_given?
|
|
126
|
+
@configure
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
##
|
|
130
|
+
# Configure the DataTableService Client instance.
|
|
131
|
+
#
|
|
132
|
+
# The configuration is set to the derived mode, meaning that values can be changed,
|
|
133
|
+
# but structural changes (adding new fields, etc.) are not allowed. Structural changes
|
|
134
|
+
# should be made on {Client.configure}.
|
|
135
|
+
#
|
|
136
|
+
# See {::Google::Cloud::Chronicle::V1::DataTableService::Rest::Client::Configuration}
|
|
137
|
+
# for a description of the configuration fields.
|
|
138
|
+
#
|
|
139
|
+
# @yield [config] Configure the Client client.
|
|
140
|
+
# @yieldparam config [Client::Configuration]
|
|
141
|
+
#
|
|
142
|
+
# @return [Client::Configuration]
|
|
143
|
+
#
|
|
144
|
+
def configure
|
|
145
|
+
yield @config if block_given?
|
|
146
|
+
@config
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
##
|
|
150
|
+
# The effective universe domain
|
|
151
|
+
#
|
|
152
|
+
# @return [String]
|
|
153
|
+
#
|
|
154
|
+
def universe_domain
|
|
155
|
+
@data_table_service_stub.universe_domain
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
##
|
|
159
|
+
# Create a new DataTableService REST client object.
|
|
160
|
+
#
|
|
161
|
+
# @example
|
|
162
|
+
#
|
|
163
|
+
# # Create a client using the default configuration
|
|
164
|
+
# client = ::Google::Cloud::Chronicle::V1::DataTableService::Rest::Client.new
|
|
165
|
+
#
|
|
166
|
+
# # Create a client using a custom configuration
|
|
167
|
+
# client = ::Google::Cloud::Chronicle::V1::DataTableService::Rest::Client.new do |config|
|
|
168
|
+
# config.timeout = 10.0
|
|
169
|
+
# end
|
|
170
|
+
#
|
|
171
|
+
# @yield [config] Configure the DataTableService client.
|
|
172
|
+
# @yieldparam config [Client::Configuration]
|
|
173
|
+
#
|
|
174
|
+
def initialize
|
|
175
|
+
# Create the configuration object
|
|
176
|
+
@config = Configuration.new Client.configure
|
|
177
|
+
|
|
178
|
+
# Yield the configuration if needed
|
|
179
|
+
yield @config if block_given?
|
|
180
|
+
|
|
181
|
+
# Create credentials
|
|
182
|
+
credentials = @config.credentials
|
|
183
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
184
|
+
# but only if the default endpoint does not have a region prefix.
|
|
185
|
+
enable_self_signed_jwt = @config.endpoint.nil? ||
|
|
186
|
+
(@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
187
|
+
!@config.endpoint.split(".").first.include?("-"))
|
|
188
|
+
credentials ||= Credentials.default scope: @config.scope,
|
|
189
|
+
enable_self_signed_jwt: enable_self_signed_jwt
|
|
190
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
|
191
|
+
credentials = Credentials.new credentials, scope: @config.scope
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
@quota_project_id = @config.quota_project
|
|
195
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
|
196
|
+
|
|
197
|
+
@data_table_service_stub = ::Google::Cloud::Chronicle::V1::DataTableService::Rest::ServiceStub.new(
|
|
198
|
+
endpoint: @config.endpoint,
|
|
199
|
+
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
|
200
|
+
universe_domain: @config.universe_domain,
|
|
201
|
+
credentials: credentials,
|
|
202
|
+
logger: @config.logger
|
|
203
|
+
)
|
|
204
|
+
|
|
205
|
+
@data_table_service_stub.logger(stub: true)&.info do |entry|
|
|
206
|
+
entry.set_system_name
|
|
207
|
+
entry.set_service
|
|
208
|
+
entry.message = "Created client for #{entry.service}"
|
|
209
|
+
entry.set_credentials_fields credentials
|
|
210
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
|
211
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
|
212
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
|
213
|
+
end
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
##
|
|
217
|
+
# The logger used for request/response debug logging.
|
|
218
|
+
#
|
|
219
|
+
# @return [Logger]
|
|
220
|
+
#
|
|
221
|
+
def logger
|
|
222
|
+
@data_table_service_stub.logger
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
# Service calls
|
|
226
|
+
|
|
227
|
+
##
|
|
228
|
+
# Create a new data table.
|
|
229
|
+
#
|
|
230
|
+
# @overload create_data_table(request, options = nil)
|
|
231
|
+
# Pass arguments to `create_data_table` via a request object, either of type
|
|
232
|
+
# {::Google::Cloud::Chronicle::V1::CreateDataTableRequest} or an equivalent Hash.
|
|
233
|
+
#
|
|
234
|
+
# @param request [::Google::Cloud::Chronicle::V1::CreateDataTableRequest, ::Hash]
|
|
235
|
+
# A request object representing the call parameters. Required. To specify no
|
|
236
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
237
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
238
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
239
|
+
#
|
|
240
|
+
# @overload create_data_table(parent: nil, data_table: nil, data_table_id: nil)
|
|
241
|
+
# Pass arguments to `create_data_table` via keyword arguments. Note that at
|
|
242
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
243
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
244
|
+
#
|
|
245
|
+
# @param parent [::String]
|
|
246
|
+
# Required. The parent resource where this data table will be created.
|
|
247
|
+
# Format: projects/\\{project}/locations/\\{location}/instances/\\{instance}
|
|
248
|
+
# @param data_table [::Google::Cloud::Chronicle::V1::DataTable, ::Hash]
|
|
249
|
+
# Required. The data table being created.
|
|
250
|
+
# @param data_table_id [::String]
|
|
251
|
+
# Required. The ID to use for the data table. This is also the display name
|
|
252
|
+
# for the data table. It must satisfy the following requirements:
|
|
253
|
+
# - Starts with letter.
|
|
254
|
+
# - Contains only letters, numbers and underscore.
|
|
255
|
+
# - Must be unique and has length < 256.
|
|
256
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
257
|
+
# @yieldparam result [::Google::Cloud::Chronicle::V1::DataTable]
|
|
258
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
259
|
+
#
|
|
260
|
+
# @return [::Google::Cloud::Chronicle::V1::DataTable]
|
|
261
|
+
#
|
|
262
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
263
|
+
#
|
|
264
|
+
# @example Basic example
|
|
265
|
+
# require "google/cloud/chronicle/v1"
|
|
266
|
+
#
|
|
267
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
268
|
+
# client = Google::Cloud::Chronicle::V1::DataTableService::Rest::Client.new
|
|
269
|
+
#
|
|
270
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
271
|
+
# request = Google::Cloud::Chronicle::V1::CreateDataTableRequest.new
|
|
272
|
+
#
|
|
273
|
+
# # Call the create_data_table method.
|
|
274
|
+
# result = client.create_data_table request
|
|
275
|
+
#
|
|
276
|
+
# # The returned object is of type Google::Cloud::Chronicle::V1::DataTable.
|
|
277
|
+
# p result
|
|
278
|
+
#
|
|
279
|
+
def create_data_table request, options = nil
|
|
280
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
281
|
+
|
|
282
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Chronicle::V1::CreateDataTableRequest
|
|
283
|
+
|
|
284
|
+
# Converts hash and nil to an options object
|
|
285
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
286
|
+
|
|
287
|
+
# Customize the options with defaults
|
|
288
|
+
call_metadata = @config.rpcs.create_data_table.metadata.to_h
|
|
289
|
+
|
|
290
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
291
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
292
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
293
|
+
gapic_version: ::Google::Cloud::Chronicle::V1::VERSION,
|
|
294
|
+
transports_version_send: [:rest]
|
|
295
|
+
|
|
296
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
297
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
298
|
+
|
|
299
|
+
options.apply_defaults timeout: @config.rpcs.create_data_table.timeout,
|
|
300
|
+
metadata: call_metadata,
|
|
301
|
+
retry_policy: @config.rpcs.create_data_table.retry_policy
|
|
302
|
+
|
|
303
|
+
options.apply_defaults timeout: @config.timeout,
|
|
304
|
+
metadata: @config.metadata,
|
|
305
|
+
retry_policy: @config.retry_policy
|
|
306
|
+
|
|
307
|
+
@data_table_service_stub.create_data_table request, options do |result, operation|
|
|
308
|
+
yield result, operation if block_given?
|
|
309
|
+
end
|
|
310
|
+
rescue ::Gapic::Rest::Error => e
|
|
311
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
312
|
+
end
|
|
313
|
+
|
|
314
|
+
##
|
|
315
|
+
# List data tables.
|
|
316
|
+
#
|
|
317
|
+
# @overload list_data_tables(request, options = nil)
|
|
318
|
+
# Pass arguments to `list_data_tables` via a request object, either of type
|
|
319
|
+
# {::Google::Cloud::Chronicle::V1::ListDataTablesRequest} or an equivalent Hash.
|
|
320
|
+
#
|
|
321
|
+
# @param request [::Google::Cloud::Chronicle::V1::ListDataTablesRequest, ::Hash]
|
|
322
|
+
# A request object representing the call parameters. Required. To specify no
|
|
323
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
324
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
325
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
326
|
+
#
|
|
327
|
+
# @overload list_data_tables(parent: nil, page_size: nil, page_token: nil, order_by: nil)
|
|
328
|
+
# Pass arguments to `list_data_tables` via keyword arguments. Note that at
|
|
329
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
330
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
331
|
+
#
|
|
332
|
+
# @param parent [::String]
|
|
333
|
+
# Required. The parent resource where this data table will be created.
|
|
334
|
+
# Format: projects/\\{project}/locations/\\{location}/instances/\\{instance}
|
|
335
|
+
# @param page_size [::Integer]
|
|
336
|
+
# Optional. The maximum number of data tables to return. The service may
|
|
337
|
+
# return fewer than this value. If unspecified, at most 100 data tables will
|
|
338
|
+
# be returned. The maximum value is 1000; values above 1000 will be coerced
|
|
339
|
+
# to 1000.
|
|
340
|
+
# @param page_token [::String]
|
|
341
|
+
# Optional. A page token, received from a previous `ListDataTables` call.
|
|
342
|
+
# Provide this to retrieve the subsequent page.
|
|
343
|
+
# When paginating, all other parameters provided to
|
|
344
|
+
# `ListDataTables` must match the call that provided the page
|
|
345
|
+
# token.
|
|
346
|
+
# @param order_by [::String]
|
|
347
|
+
# Optional. Configures ordering of DataTables in the response.
|
|
348
|
+
# Note: Our implementation currently supports order by "create_time asc" only
|
|
349
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
350
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Chronicle::V1::DataTable>]
|
|
351
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
352
|
+
#
|
|
353
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Chronicle::V1::DataTable>]
|
|
354
|
+
#
|
|
355
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
356
|
+
#
|
|
357
|
+
# @example Basic example
|
|
358
|
+
# require "google/cloud/chronicle/v1"
|
|
359
|
+
#
|
|
360
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
361
|
+
# client = Google::Cloud::Chronicle::V1::DataTableService::Rest::Client.new
|
|
362
|
+
#
|
|
363
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
364
|
+
# request = Google::Cloud::Chronicle::V1::ListDataTablesRequest.new
|
|
365
|
+
#
|
|
366
|
+
# # Call the list_data_tables method.
|
|
367
|
+
# result = client.list_data_tables request
|
|
368
|
+
#
|
|
369
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
370
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
371
|
+
# result.each do |item|
|
|
372
|
+
# # Each element is of type ::Google::Cloud::Chronicle::V1::DataTable.
|
|
373
|
+
# p item
|
|
374
|
+
# end
|
|
375
|
+
#
|
|
376
|
+
def list_data_tables request, options = nil
|
|
377
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
378
|
+
|
|
379
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Chronicle::V1::ListDataTablesRequest
|
|
380
|
+
|
|
381
|
+
# Converts hash and nil to an options object
|
|
382
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
383
|
+
|
|
384
|
+
# Customize the options with defaults
|
|
385
|
+
call_metadata = @config.rpcs.list_data_tables.metadata.to_h
|
|
386
|
+
|
|
387
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
388
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
389
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
390
|
+
gapic_version: ::Google::Cloud::Chronicle::V1::VERSION,
|
|
391
|
+
transports_version_send: [:rest]
|
|
392
|
+
|
|
393
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
394
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
395
|
+
|
|
396
|
+
options.apply_defaults timeout: @config.rpcs.list_data_tables.timeout,
|
|
397
|
+
metadata: call_metadata,
|
|
398
|
+
retry_policy: @config.rpcs.list_data_tables.retry_policy
|
|
399
|
+
|
|
400
|
+
options.apply_defaults timeout: @config.timeout,
|
|
401
|
+
metadata: @config.metadata,
|
|
402
|
+
retry_policy: @config.retry_policy
|
|
403
|
+
|
|
404
|
+
@data_table_service_stub.list_data_tables request, options do |result, operation|
|
|
405
|
+
result = ::Gapic::Rest::PagedEnumerable.new @data_table_service_stub, :list_data_tables, "data_tables", request, result, options
|
|
406
|
+
yield result, operation if block_given?
|
|
407
|
+
throw :response, result
|
|
408
|
+
end
|
|
409
|
+
rescue ::Gapic::Rest::Error => e
|
|
410
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
411
|
+
end
|
|
412
|
+
|
|
413
|
+
##
|
|
414
|
+
# Get data table info.
|
|
415
|
+
#
|
|
416
|
+
# @overload get_data_table(request, options = nil)
|
|
417
|
+
# Pass arguments to `get_data_table` via a request object, either of type
|
|
418
|
+
# {::Google::Cloud::Chronicle::V1::GetDataTableRequest} or an equivalent Hash.
|
|
419
|
+
#
|
|
420
|
+
# @param request [::Google::Cloud::Chronicle::V1::GetDataTableRequest, ::Hash]
|
|
421
|
+
# A request object representing the call parameters. Required. To specify no
|
|
422
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
423
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
424
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
425
|
+
#
|
|
426
|
+
# @overload get_data_table(name: nil)
|
|
427
|
+
# Pass arguments to `get_data_table` via keyword arguments. Note that at
|
|
428
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
429
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
430
|
+
#
|
|
431
|
+
# @param name [::String]
|
|
432
|
+
# Required. The resource name of the data table to retrieve.
|
|
433
|
+
# Format:
|
|
434
|
+
# projects/\\{project}/locations/\\{location}/instances/\\{instances}/dataTables/\\{data_table}
|
|
435
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
436
|
+
# @yieldparam result [::Google::Cloud::Chronicle::V1::DataTable]
|
|
437
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
438
|
+
#
|
|
439
|
+
# @return [::Google::Cloud::Chronicle::V1::DataTable]
|
|
440
|
+
#
|
|
441
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
442
|
+
#
|
|
443
|
+
# @example Basic example
|
|
444
|
+
# require "google/cloud/chronicle/v1"
|
|
445
|
+
#
|
|
446
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
447
|
+
# client = Google::Cloud::Chronicle::V1::DataTableService::Rest::Client.new
|
|
448
|
+
#
|
|
449
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
450
|
+
# request = Google::Cloud::Chronicle::V1::GetDataTableRequest.new
|
|
451
|
+
#
|
|
452
|
+
# # Call the get_data_table method.
|
|
453
|
+
# result = client.get_data_table request
|
|
454
|
+
#
|
|
455
|
+
# # The returned object is of type Google::Cloud::Chronicle::V1::DataTable.
|
|
456
|
+
# p result
|
|
457
|
+
#
|
|
458
|
+
def get_data_table request, options = nil
|
|
459
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
460
|
+
|
|
461
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Chronicle::V1::GetDataTableRequest
|
|
462
|
+
|
|
463
|
+
# Converts hash and nil to an options object
|
|
464
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
465
|
+
|
|
466
|
+
# Customize the options with defaults
|
|
467
|
+
call_metadata = @config.rpcs.get_data_table.metadata.to_h
|
|
468
|
+
|
|
469
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
470
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
471
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
472
|
+
gapic_version: ::Google::Cloud::Chronicle::V1::VERSION,
|
|
473
|
+
transports_version_send: [:rest]
|
|
474
|
+
|
|
475
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
476
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
477
|
+
|
|
478
|
+
options.apply_defaults timeout: @config.rpcs.get_data_table.timeout,
|
|
479
|
+
metadata: call_metadata,
|
|
480
|
+
retry_policy: @config.rpcs.get_data_table.retry_policy
|
|
481
|
+
|
|
482
|
+
options.apply_defaults timeout: @config.timeout,
|
|
483
|
+
metadata: @config.metadata,
|
|
484
|
+
retry_policy: @config.retry_policy
|
|
485
|
+
|
|
486
|
+
@data_table_service_stub.get_data_table request, options do |result, operation|
|
|
487
|
+
yield result, operation if block_given?
|
|
488
|
+
end
|
|
489
|
+
rescue ::Gapic::Rest::Error => e
|
|
490
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
491
|
+
end
|
|
492
|
+
|
|
493
|
+
##
|
|
494
|
+
# Update data table.
|
|
495
|
+
#
|
|
496
|
+
# @overload update_data_table(request, options = nil)
|
|
497
|
+
# Pass arguments to `update_data_table` via a request object, either of type
|
|
498
|
+
# {::Google::Cloud::Chronicle::V1::UpdateDataTableRequest} or an equivalent Hash.
|
|
499
|
+
#
|
|
500
|
+
# @param request [::Google::Cloud::Chronicle::V1::UpdateDataTableRequest, ::Hash]
|
|
501
|
+
# A request object representing the call parameters. Required. To specify no
|
|
502
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
503
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
504
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
505
|
+
#
|
|
506
|
+
# @overload update_data_table(data_table: nil, update_mask: nil)
|
|
507
|
+
# Pass arguments to `update_data_table` via keyword arguments. Note that at
|
|
508
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
509
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
510
|
+
#
|
|
511
|
+
# @param data_table [::Google::Cloud::Chronicle::V1::DataTable, ::Hash]
|
|
512
|
+
# Required. This field is used to identify the datatable to update.
|
|
513
|
+
# Format:
|
|
514
|
+
# projects/\\{project}/locations/\\{locations}/instances/\\{instance}/dataTables/\\{data_table}
|
|
515
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
|
516
|
+
# Optional. The list of metadata fields to update. Currently data tables only
|
|
517
|
+
# support updating the `description`, `row_time_to_live` and `scope_info`
|
|
518
|
+
# fields. When no field mask is supplied, all non-empty fields will be
|
|
519
|
+
# updated. A field mask of "*" will update all fields, whether empty or not.
|
|
520
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
521
|
+
# @yieldparam result [::Google::Cloud::Chronicle::V1::DataTable]
|
|
522
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
523
|
+
#
|
|
524
|
+
# @return [::Google::Cloud::Chronicle::V1::DataTable]
|
|
525
|
+
#
|
|
526
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
527
|
+
#
|
|
528
|
+
# @example Basic example
|
|
529
|
+
# require "google/cloud/chronicle/v1"
|
|
530
|
+
#
|
|
531
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
532
|
+
# client = Google::Cloud::Chronicle::V1::DataTableService::Rest::Client.new
|
|
533
|
+
#
|
|
534
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
535
|
+
# request = Google::Cloud::Chronicle::V1::UpdateDataTableRequest.new
|
|
536
|
+
#
|
|
537
|
+
# # Call the update_data_table method.
|
|
538
|
+
# result = client.update_data_table request
|
|
539
|
+
#
|
|
540
|
+
# # The returned object is of type Google::Cloud::Chronicle::V1::DataTable.
|
|
541
|
+
# p result
|
|
542
|
+
#
|
|
543
|
+
def update_data_table request, options = nil
|
|
544
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
545
|
+
|
|
546
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Chronicle::V1::UpdateDataTableRequest
|
|
547
|
+
|
|
548
|
+
# Converts hash and nil to an options object
|
|
549
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
550
|
+
|
|
551
|
+
# Customize the options with defaults
|
|
552
|
+
call_metadata = @config.rpcs.update_data_table.metadata.to_h
|
|
553
|
+
|
|
554
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
555
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
556
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
557
|
+
gapic_version: ::Google::Cloud::Chronicle::V1::VERSION,
|
|
558
|
+
transports_version_send: [:rest]
|
|
559
|
+
|
|
560
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
561
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
562
|
+
|
|
563
|
+
options.apply_defaults timeout: @config.rpcs.update_data_table.timeout,
|
|
564
|
+
metadata: call_metadata,
|
|
565
|
+
retry_policy: @config.rpcs.update_data_table.retry_policy
|
|
566
|
+
|
|
567
|
+
options.apply_defaults timeout: @config.timeout,
|
|
568
|
+
metadata: @config.metadata,
|
|
569
|
+
retry_policy: @config.retry_policy
|
|
570
|
+
|
|
571
|
+
@data_table_service_stub.update_data_table request, options do |result, operation|
|
|
572
|
+
yield result, operation if block_given?
|
|
573
|
+
end
|
|
574
|
+
rescue ::Gapic::Rest::Error => e
|
|
575
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
576
|
+
end
|
|
577
|
+
|
|
578
|
+
##
|
|
579
|
+
# Delete data table.
|
|
580
|
+
#
|
|
581
|
+
# @overload delete_data_table(request, options = nil)
|
|
582
|
+
# Pass arguments to `delete_data_table` via a request object, either of type
|
|
583
|
+
# {::Google::Cloud::Chronicle::V1::DeleteDataTableRequest} or an equivalent Hash.
|
|
584
|
+
#
|
|
585
|
+
# @param request [::Google::Cloud::Chronicle::V1::DeleteDataTableRequest, ::Hash]
|
|
586
|
+
# A request object representing the call parameters. Required. To specify no
|
|
587
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
588
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
589
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
590
|
+
#
|
|
591
|
+
# @overload delete_data_table(name: nil, force: nil)
|
|
592
|
+
# Pass arguments to `delete_data_table` via keyword arguments. Note that at
|
|
593
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
594
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
595
|
+
#
|
|
596
|
+
# @param name [::String]
|
|
597
|
+
# Required. The resource name of the data table to delete.
|
|
598
|
+
# Format
|
|
599
|
+
# projects/\\{project}/locations/\\{location}/instances/\\{instances}/dataTables/\\{data_table}
|
|
600
|
+
# @param force [::Boolean]
|
|
601
|
+
# Optional. If set to true, any rows under this data table will also be
|
|
602
|
+
# deleted. (Otherwise, the request will only work if the data table has no
|
|
603
|
+
# rows.)
|
|
604
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
605
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
|
606
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
607
|
+
#
|
|
608
|
+
# @return [::Google::Protobuf::Empty]
|
|
609
|
+
#
|
|
610
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
611
|
+
#
|
|
612
|
+
# @example Basic example
|
|
613
|
+
# require "google/cloud/chronicle/v1"
|
|
614
|
+
#
|
|
615
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
616
|
+
# client = Google::Cloud::Chronicle::V1::DataTableService::Rest::Client.new
|
|
617
|
+
#
|
|
618
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
619
|
+
# request = Google::Cloud::Chronicle::V1::DeleteDataTableRequest.new
|
|
620
|
+
#
|
|
621
|
+
# # Call the delete_data_table method.
|
|
622
|
+
# result = client.delete_data_table request
|
|
623
|
+
#
|
|
624
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
|
625
|
+
# p result
|
|
626
|
+
#
|
|
627
|
+
def delete_data_table request, options = nil
|
|
628
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
629
|
+
|
|
630
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Chronicle::V1::DeleteDataTableRequest
|
|
631
|
+
|
|
632
|
+
# Converts hash and nil to an options object
|
|
633
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
634
|
+
|
|
635
|
+
# Customize the options with defaults
|
|
636
|
+
call_metadata = @config.rpcs.delete_data_table.metadata.to_h
|
|
637
|
+
|
|
638
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
639
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
640
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
641
|
+
gapic_version: ::Google::Cloud::Chronicle::V1::VERSION,
|
|
642
|
+
transports_version_send: [:rest]
|
|
643
|
+
|
|
644
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
645
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
646
|
+
|
|
647
|
+
options.apply_defaults timeout: @config.rpcs.delete_data_table.timeout,
|
|
648
|
+
metadata: call_metadata,
|
|
649
|
+
retry_policy: @config.rpcs.delete_data_table.retry_policy
|
|
650
|
+
|
|
651
|
+
options.apply_defaults timeout: @config.timeout,
|
|
652
|
+
metadata: @config.metadata,
|
|
653
|
+
retry_policy: @config.retry_policy
|
|
654
|
+
|
|
655
|
+
@data_table_service_stub.delete_data_table request, options do |result, operation|
|
|
656
|
+
yield result, operation if block_given?
|
|
657
|
+
end
|
|
658
|
+
rescue ::Gapic::Rest::Error => e
|
|
659
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
660
|
+
end
|
|
661
|
+
|
|
662
|
+
##
|
|
663
|
+
# Create a new data table row.
|
|
664
|
+
#
|
|
665
|
+
# @overload create_data_table_row(request, options = nil)
|
|
666
|
+
# Pass arguments to `create_data_table_row` via a request object, either of type
|
|
667
|
+
# {::Google::Cloud::Chronicle::V1::CreateDataTableRowRequest} or an equivalent Hash.
|
|
668
|
+
#
|
|
669
|
+
# @param request [::Google::Cloud::Chronicle::V1::CreateDataTableRowRequest, ::Hash]
|
|
670
|
+
# A request object representing the call parameters. Required. To specify no
|
|
671
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
672
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
673
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
674
|
+
#
|
|
675
|
+
# @overload create_data_table_row(parent: nil, data_table_row: nil)
|
|
676
|
+
# Pass arguments to `create_data_table_row` via keyword arguments. Note that at
|
|
677
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
678
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
679
|
+
#
|
|
680
|
+
# @param parent [::String]
|
|
681
|
+
# Required. The resource id of the data table.
|
|
682
|
+
# Format:
|
|
683
|
+
# /projects/\\{project}/locations/\\{location}/instances/\\{instance}/dataTables/\\{data_table}
|
|
684
|
+
# @param data_table_row [::Google::Cloud::Chronicle::V1::DataTableRow, ::Hash]
|
|
685
|
+
# Required. The data table row to create.
|
|
686
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
687
|
+
# @yieldparam result [::Google::Cloud::Chronicle::V1::DataTableRow]
|
|
688
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
689
|
+
#
|
|
690
|
+
# @return [::Google::Cloud::Chronicle::V1::DataTableRow]
|
|
691
|
+
#
|
|
692
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
693
|
+
#
|
|
694
|
+
# @example Basic example
|
|
695
|
+
# require "google/cloud/chronicle/v1"
|
|
696
|
+
#
|
|
697
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
698
|
+
# client = Google::Cloud::Chronicle::V1::DataTableService::Rest::Client.new
|
|
699
|
+
#
|
|
700
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
701
|
+
# request = Google::Cloud::Chronicle::V1::CreateDataTableRowRequest.new
|
|
702
|
+
#
|
|
703
|
+
# # Call the create_data_table_row method.
|
|
704
|
+
# result = client.create_data_table_row request
|
|
705
|
+
#
|
|
706
|
+
# # The returned object is of type Google::Cloud::Chronicle::V1::DataTableRow.
|
|
707
|
+
# p result
|
|
708
|
+
#
|
|
709
|
+
def create_data_table_row request, options = nil
|
|
710
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
711
|
+
|
|
712
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Chronicle::V1::CreateDataTableRowRequest
|
|
713
|
+
|
|
714
|
+
# Converts hash and nil to an options object
|
|
715
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
716
|
+
|
|
717
|
+
# Customize the options with defaults
|
|
718
|
+
call_metadata = @config.rpcs.create_data_table_row.metadata.to_h
|
|
719
|
+
|
|
720
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
721
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
722
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
723
|
+
gapic_version: ::Google::Cloud::Chronicle::V1::VERSION,
|
|
724
|
+
transports_version_send: [:rest]
|
|
725
|
+
|
|
726
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
727
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
728
|
+
|
|
729
|
+
options.apply_defaults timeout: @config.rpcs.create_data_table_row.timeout,
|
|
730
|
+
metadata: call_metadata,
|
|
731
|
+
retry_policy: @config.rpcs.create_data_table_row.retry_policy
|
|
732
|
+
|
|
733
|
+
options.apply_defaults timeout: @config.timeout,
|
|
734
|
+
metadata: @config.metadata,
|
|
735
|
+
retry_policy: @config.retry_policy
|
|
736
|
+
|
|
737
|
+
@data_table_service_stub.create_data_table_row request, options do |result, operation|
|
|
738
|
+
yield result, operation if block_given?
|
|
739
|
+
end
|
|
740
|
+
rescue ::Gapic::Rest::Error => e
|
|
741
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
742
|
+
end
|
|
743
|
+
|
|
744
|
+
##
|
|
745
|
+
# Update data table row
|
|
746
|
+
#
|
|
747
|
+
# @overload update_data_table_row(request, options = nil)
|
|
748
|
+
# Pass arguments to `update_data_table_row` via a request object, either of type
|
|
749
|
+
# {::Google::Cloud::Chronicle::V1::UpdateDataTableRowRequest} or an equivalent Hash.
|
|
750
|
+
#
|
|
751
|
+
# @param request [::Google::Cloud::Chronicle::V1::UpdateDataTableRowRequest, ::Hash]
|
|
752
|
+
# A request object representing the call parameters. Required. To specify no
|
|
753
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
754
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
755
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
756
|
+
#
|
|
757
|
+
# @overload update_data_table_row(data_table_row: nil, update_mask: nil)
|
|
758
|
+
# Pass arguments to `update_data_table_row` via keyword arguments. Note that at
|
|
759
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
760
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
761
|
+
#
|
|
762
|
+
# @param data_table_row [::Google::Cloud::Chronicle::V1::DataTableRow, ::Hash]
|
|
763
|
+
# Required. Format:
|
|
764
|
+
# projects/\\{project}/locations/\\{location}/instances/\\{instance}/dataTables/\\{data_table}/dataTableRows/\\{data_table_row}
|
|
765
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
|
766
|
+
# Optional. The list of fields to update. Currently data table rows only
|
|
767
|
+
# support updating the `values` field. When no field mask is supplied, all
|
|
768
|
+
# non-empty fields will be updated. A field mask of "*" will update all
|
|
769
|
+
# fields, whether empty or not.
|
|
770
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
771
|
+
# @yieldparam result [::Google::Cloud::Chronicle::V1::DataTableRow]
|
|
772
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
773
|
+
#
|
|
774
|
+
# @return [::Google::Cloud::Chronicle::V1::DataTableRow]
|
|
775
|
+
#
|
|
776
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
777
|
+
#
|
|
778
|
+
# @example Basic example
|
|
779
|
+
# require "google/cloud/chronicle/v1"
|
|
780
|
+
#
|
|
781
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
782
|
+
# client = Google::Cloud::Chronicle::V1::DataTableService::Rest::Client.new
|
|
783
|
+
#
|
|
784
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
785
|
+
# request = Google::Cloud::Chronicle::V1::UpdateDataTableRowRequest.new
|
|
786
|
+
#
|
|
787
|
+
# # Call the update_data_table_row method.
|
|
788
|
+
# result = client.update_data_table_row request
|
|
789
|
+
#
|
|
790
|
+
# # The returned object is of type Google::Cloud::Chronicle::V1::DataTableRow.
|
|
791
|
+
# p result
|
|
792
|
+
#
|
|
793
|
+
def update_data_table_row request, options = nil
|
|
794
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
795
|
+
|
|
796
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Chronicle::V1::UpdateDataTableRowRequest
|
|
797
|
+
|
|
798
|
+
# Converts hash and nil to an options object
|
|
799
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
800
|
+
|
|
801
|
+
# Customize the options with defaults
|
|
802
|
+
call_metadata = @config.rpcs.update_data_table_row.metadata.to_h
|
|
803
|
+
|
|
804
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
805
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
806
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
807
|
+
gapic_version: ::Google::Cloud::Chronicle::V1::VERSION,
|
|
808
|
+
transports_version_send: [:rest]
|
|
809
|
+
|
|
810
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
811
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
812
|
+
|
|
813
|
+
options.apply_defaults timeout: @config.rpcs.update_data_table_row.timeout,
|
|
814
|
+
metadata: call_metadata,
|
|
815
|
+
retry_policy: @config.rpcs.update_data_table_row.retry_policy
|
|
816
|
+
|
|
817
|
+
options.apply_defaults timeout: @config.timeout,
|
|
818
|
+
metadata: @config.metadata,
|
|
819
|
+
retry_policy: @config.retry_policy
|
|
820
|
+
|
|
821
|
+
@data_table_service_stub.update_data_table_row request, options do |result, operation|
|
|
822
|
+
yield result, operation if block_given?
|
|
823
|
+
end
|
|
824
|
+
rescue ::Gapic::Rest::Error => e
|
|
825
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
826
|
+
end
|
|
827
|
+
|
|
828
|
+
##
|
|
829
|
+
# List data table rows.
|
|
830
|
+
#
|
|
831
|
+
# @overload list_data_table_rows(request, options = nil)
|
|
832
|
+
# Pass arguments to `list_data_table_rows` via a request object, either of type
|
|
833
|
+
# {::Google::Cloud::Chronicle::V1::ListDataTableRowsRequest} or an equivalent Hash.
|
|
834
|
+
#
|
|
835
|
+
# @param request [::Google::Cloud::Chronicle::V1::ListDataTableRowsRequest, ::Hash]
|
|
836
|
+
# A request object representing the call parameters. Required. To specify no
|
|
837
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
838
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
839
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
840
|
+
#
|
|
841
|
+
# @overload list_data_table_rows(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil)
|
|
842
|
+
# Pass arguments to `list_data_table_rows` via keyword arguments. Note that at
|
|
843
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
844
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
845
|
+
#
|
|
846
|
+
# @param parent [::String]
|
|
847
|
+
# Required. The resource id of the data table.
|
|
848
|
+
# Format:
|
|
849
|
+
# projects/\\{project}/locations/\\{locations}/instances/\\{instance}/dataTables/\\{data_table}
|
|
850
|
+
# @param page_size [::Integer]
|
|
851
|
+
# Optional. The maximum number of data table rows to return. The service may
|
|
852
|
+
# return fewer than this value. If unspecified, at most 100 data table rows
|
|
853
|
+
# will be returned. The maximum value is 1000; values above 1000 will be
|
|
854
|
+
# coerced to 1000.
|
|
855
|
+
# @param page_token [::String]
|
|
856
|
+
# Optional. A page token, received from a previous `ListDataTableRows` call.
|
|
857
|
+
# @param order_by [::String]
|
|
858
|
+
# Optional. Configures ordering of DataTables in the response.
|
|
859
|
+
# Note: Our implementation currently supports order by "create_time asc" only
|
|
860
|
+
# @param filter [::String]
|
|
861
|
+
# Optional. Filter facilitating search over data table rows. This filter
|
|
862
|
+
# performs a case-insensitive substring match on the row values.
|
|
863
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
864
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Chronicle::V1::DataTableRow>]
|
|
865
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
866
|
+
#
|
|
867
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Chronicle::V1::DataTableRow>]
|
|
868
|
+
#
|
|
869
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
870
|
+
#
|
|
871
|
+
# @example Basic example
|
|
872
|
+
# require "google/cloud/chronicle/v1"
|
|
873
|
+
#
|
|
874
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
875
|
+
# client = Google::Cloud::Chronicle::V1::DataTableService::Rest::Client.new
|
|
876
|
+
#
|
|
877
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
878
|
+
# request = Google::Cloud::Chronicle::V1::ListDataTableRowsRequest.new
|
|
879
|
+
#
|
|
880
|
+
# # Call the list_data_table_rows method.
|
|
881
|
+
# result = client.list_data_table_rows request
|
|
882
|
+
#
|
|
883
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
884
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
885
|
+
# result.each do |item|
|
|
886
|
+
# # Each element is of type ::Google::Cloud::Chronicle::V1::DataTableRow.
|
|
887
|
+
# p item
|
|
888
|
+
# end
|
|
889
|
+
#
|
|
890
|
+
def list_data_table_rows request, options = nil
|
|
891
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
892
|
+
|
|
893
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Chronicle::V1::ListDataTableRowsRequest
|
|
894
|
+
|
|
895
|
+
# Converts hash and nil to an options object
|
|
896
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
897
|
+
|
|
898
|
+
# Customize the options with defaults
|
|
899
|
+
call_metadata = @config.rpcs.list_data_table_rows.metadata.to_h
|
|
900
|
+
|
|
901
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
902
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
903
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
904
|
+
gapic_version: ::Google::Cloud::Chronicle::V1::VERSION,
|
|
905
|
+
transports_version_send: [:rest]
|
|
906
|
+
|
|
907
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
908
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
909
|
+
|
|
910
|
+
options.apply_defaults timeout: @config.rpcs.list_data_table_rows.timeout,
|
|
911
|
+
metadata: call_metadata,
|
|
912
|
+
retry_policy: @config.rpcs.list_data_table_rows.retry_policy
|
|
913
|
+
|
|
914
|
+
options.apply_defaults timeout: @config.timeout,
|
|
915
|
+
metadata: @config.metadata,
|
|
916
|
+
retry_policy: @config.retry_policy
|
|
917
|
+
|
|
918
|
+
@data_table_service_stub.list_data_table_rows request, options do |result, operation|
|
|
919
|
+
result = ::Gapic::Rest::PagedEnumerable.new @data_table_service_stub, :list_data_table_rows, "data_table_rows", request, result, options
|
|
920
|
+
yield result, operation if block_given?
|
|
921
|
+
throw :response, result
|
|
922
|
+
end
|
|
923
|
+
rescue ::Gapic::Rest::Error => e
|
|
924
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
925
|
+
end
|
|
926
|
+
|
|
927
|
+
##
|
|
928
|
+
# Get data table row
|
|
929
|
+
#
|
|
930
|
+
# @overload get_data_table_row(request, options = nil)
|
|
931
|
+
# Pass arguments to `get_data_table_row` via a request object, either of type
|
|
932
|
+
# {::Google::Cloud::Chronicle::V1::GetDataTableRowRequest} or an equivalent Hash.
|
|
933
|
+
#
|
|
934
|
+
# @param request [::Google::Cloud::Chronicle::V1::GetDataTableRowRequest, ::Hash]
|
|
935
|
+
# A request object representing the call parameters. Required. To specify no
|
|
936
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
937
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
938
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
939
|
+
#
|
|
940
|
+
# @overload get_data_table_row(name: nil)
|
|
941
|
+
# Pass arguments to `get_data_table_row` via keyword arguments. Note that at
|
|
942
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
943
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
944
|
+
#
|
|
945
|
+
# @param name [::String]
|
|
946
|
+
# Required. The resource name of the data table row i,e row_id.
|
|
947
|
+
# Format:
|
|
948
|
+
# projects/\\{project}/locations/\\{location}/instances/\\{instance}/dataTables/\\{data_table}/dataTableRows/\\{data_table_row}
|
|
949
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
950
|
+
# @yieldparam result [::Google::Cloud::Chronicle::V1::DataTableRow]
|
|
951
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
952
|
+
#
|
|
953
|
+
# @return [::Google::Cloud::Chronicle::V1::DataTableRow]
|
|
954
|
+
#
|
|
955
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
956
|
+
#
|
|
957
|
+
# @example Basic example
|
|
958
|
+
# require "google/cloud/chronicle/v1"
|
|
959
|
+
#
|
|
960
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
961
|
+
# client = Google::Cloud::Chronicle::V1::DataTableService::Rest::Client.new
|
|
962
|
+
#
|
|
963
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
964
|
+
# request = Google::Cloud::Chronicle::V1::GetDataTableRowRequest.new
|
|
965
|
+
#
|
|
966
|
+
# # Call the get_data_table_row method.
|
|
967
|
+
# result = client.get_data_table_row request
|
|
968
|
+
#
|
|
969
|
+
# # The returned object is of type Google::Cloud::Chronicle::V1::DataTableRow.
|
|
970
|
+
# p result
|
|
971
|
+
#
|
|
972
|
+
def get_data_table_row request, options = nil
|
|
973
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
974
|
+
|
|
975
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Chronicle::V1::GetDataTableRowRequest
|
|
976
|
+
|
|
977
|
+
# Converts hash and nil to an options object
|
|
978
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
979
|
+
|
|
980
|
+
# Customize the options with defaults
|
|
981
|
+
call_metadata = @config.rpcs.get_data_table_row.metadata.to_h
|
|
982
|
+
|
|
983
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
984
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
985
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
986
|
+
gapic_version: ::Google::Cloud::Chronicle::V1::VERSION,
|
|
987
|
+
transports_version_send: [:rest]
|
|
988
|
+
|
|
989
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
990
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
991
|
+
|
|
992
|
+
options.apply_defaults timeout: @config.rpcs.get_data_table_row.timeout,
|
|
993
|
+
metadata: call_metadata,
|
|
994
|
+
retry_policy: @config.rpcs.get_data_table_row.retry_policy
|
|
995
|
+
|
|
996
|
+
options.apply_defaults timeout: @config.timeout,
|
|
997
|
+
metadata: @config.metadata,
|
|
998
|
+
retry_policy: @config.retry_policy
|
|
999
|
+
|
|
1000
|
+
@data_table_service_stub.get_data_table_row request, options do |result, operation|
|
|
1001
|
+
yield result, operation if block_given?
|
|
1002
|
+
end
|
|
1003
|
+
rescue ::Gapic::Rest::Error => e
|
|
1004
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1005
|
+
end
|
|
1006
|
+
|
|
1007
|
+
##
|
|
1008
|
+
# Delete data table row.
|
|
1009
|
+
#
|
|
1010
|
+
# @overload delete_data_table_row(request, options = nil)
|
|
1011
|
+
# Pass arguments to `delete_data_table_row` via a request object, either of type
|
|
1012
|
+
# {::Google::Cloud::Chronicle::V1::DeleteDataTableRowRequest} or an equivalent Hash.
|
|
1013
|
+
#
|
|
1014
|
+
# @param request [::Google::Cloud::Chronicle::V1::DeleteDataTableRowRequest, ::Hash]
|
|
1015
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1016
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1017
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1018
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1019
|
+
#
|
|
1020
|
+
# @overload delete_data_table_row(name: nil)
|
|
1021
|
+
# Pass arguments to `delete_data_table_row` via keyword arguments. Note that at
|
|
1022
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1023
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1024
|
+
#
|
|
1025
|
+
# @param name [::String]
|
|
1026
|
+
# Required. The resource name of the data table row i,e row_id.
|
|
1027
|
+
# Format:
|
|
1028
|
+
# projects/\\{project}/locations/\\{location}/instances/\\{instance}/dataTables/\\{data_table}/dataTableRows/\\{data_table_row}
|
|
1029
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1030
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
|
1031
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1032
|
+
#
|
|
1033
|
+
# @return [::Google::Protobuf::Empty]
|
|
1034
|
+
#
|
|
1035
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1036
|
+
#
|
|
1037
|
+
# @example Basic example
|
|
1038
|
+
# require "google/cloud/chronicle/v1"
|
|
1039
|
+
#
|
|
1040
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1041
|
+
# client = Google::Cloud::Chronicle::V1::DataTableService::Rest::Client.new
|
|
1042
|
+
#
|
|
1043
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1044
|
+
# request = Google::Cloud::Chronicle::V1::DeleteDataTableRowRequest.new
|
|
1045
|
+
#
|
|
1046
|
+
# # Call the delete_data_table_row method.
|
|
1047
|
+
# result = client.delete_data_table_row request
|
|
1048
|
+
#
|
|
1049
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
|
1050
|
+
# p result
|
|
1051
|
+
#
|
|
1052
|
+
def delete_data_table_row request, options = nil
|
|
1053
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1054
|
+
|
|
1055
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Chronicle::V1::DeleteDataTableRowRequest
|
|
1056
|
+
|
|
1057
|
+
# Converts hash and nil to an options object
|
|
1058
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1059
|
+
|
|
1060
|
+
# Customize the options with defaults
|
|
1061
|
+
call_metadata = @config.rpcs.delete_data_table_row.metadata.to_h
|
|
1062
|
+
|
|
1063
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1064
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1065
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1066
|
+
gapic_version: ::Google::Cloud::Chronicle::V1::VERSION,
|
|
1067
|
+
transports_version_send: [:rest]
|
|
1068
|
+
|
|
1069
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1070
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1071
|
+
|
|
1072
|
+
options.apply_defaults timeout: @config.rpcs.delete_data_table_row.timeout,
|
|
1073
|
+
metadata: call_metadata,
|
|
1074
|
+
retry_policy: @config.rpcs.delete_data_table_row.retry_policy
|
|
1075
|
+
|
|
1076
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1077
|
+
metadata: @config.metadata,
|
|
1078
|
+
retry_policy: @config.retry_policy
|
|
1079
|
+
|
|
1080
|
+
@data_table_service_stub.delete_data_table_row request, options do |result, operation|
|
|
1081
|
+
yield result, operation if block_given?
|
|
1082
|
+
end
|
|
1083
|
+
rescue ::Gapic::Rest::Error => e
|
|
1084
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1085
|
+
end
|
|
1086
|
+
|
|
1087
|
+
##
|
|
1088
|
+
# Create data table rows in bulk.
|
|
1089
|
+
#
|
|
1090
|
+
# @overload bulk_create_data_table_rows(request, options = nil)
|
|
1091
|
+
# Pass arguments to `bulk_create_data_table_rows` via a request object, either of type
|
|
1092
|
+
# {::Google::Cloud::Chronicle::V1::BulkCreateDataTableRowsRequest} or an equivalent Hash.
|
|
1093
|
+
#
|
|
1094
|
+
# @param request [::Google::Cloud::Chronicle::V1::BulkCreateDataTableRowsRequest, ::Hash]
|
|
1095
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1096
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1097
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1098
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1099
|
+
#
|
|
1100
|
+
# @overload bulk_create_data_table_rows(parent: nil, requests: nil)
|
|
1101
|
+
# Pass arguments to `bulk_create_data_table_rows` via keyword arguments. Note that at
|
|
1102
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1103
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1104
|
+
#
|
|
1105
|
+
# @param parent [::String]
|
|
1106
|
+
# Required. The resource id of the data table.
|
|
1107
|
+
# Format:
|
|
1108
|
+
# /projects/\\{project}/locations/\\{location}/instances/\\{instance}/dataTables/\\{data_table}
|
|
1109
|
+
# @param requests [::Array<::Google::Cloud::Chronicle::V1::CreateDataTableRowRequest, ::Hash>]
|
|
1110
|
+
# Required. Data table rows to create. A maximum of 1000 rows (for sync
|
|
1111
|
+
# requests) or 2000 rows (for async requests) can be created in a single
|
|
1112
|
+
# request. Total size of the rows should be less than 4MB.
|
|
1113
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1114
|
+
# @yieldparam result [::Google::Cloud::Chronicle::V1::BulkCreateDataTableRowsResponse]
|
|
1115
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1116
|
+
#
|
|
1117
|
+
# @return [::Google::Cloud::Chronicle::V1::BulkCreateDataTableRowsResponse]
|
|
1118
|
+
#
|
|
1119
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1120
|
+
#
|
|
1121
|
+
# @example Basic example
|
|
1122
|
+
# require "google/cloud/chronicle/v1"
|
|
1123
|
+
#
|
|
1124
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1125
|
+
# client = Google::Cloud::Chronicle::V1::DataTableService::Rest::Client.new
|
|
1126
|
+
#
|
|
1127
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1128
|
+
# request = Google::Cloud::Chronicle::V1::BulkCreateDataTableRowsRequest.new
|
|
1129
|
+
#
|
|
1130
|
+
# # Call the bulk_create_data_table_rows method.
|
|
1131
|
+
# result = client.bulk_create_data_table_rows request
|
|
1132
|
+
#
|
|
1133
|
+
# # The returned object is of type Google::Cloud::Chronicle::V1::BulkCreateDataTableRowsResponse.
|
|
1134
|
+
# p result
|
|
1135
|
+
#
|
|
1136
|
+
def bulk_create_data_table_rows request, options = nil
|
|
1137
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1138
|
+
|
|
1139
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Chronicle::V1::BulkCreateDataTableRowsRequest
|
|
1140
|
+
|
|
1141
|
+
# Converts hash and nil to an options object
|
|
1142
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1143
|
+
|
|
1144
|
+
# Customize the options with defaults
|
|
1145
|
+
call_metadata = @config.rpcs.bulk_create_data_table_rows.metadata.to_h
|
|
1146
|
+
|
|
1147
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1148
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1149
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1150
|
+
gapic_version: ::Google::Cloud::Chronicle::V1::VERSION,
|
|
1151
|
+
transports_version_send: [:rest]
|
|
1152
|
+
|
|
1153
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1154
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1155
|
+
|
|
1156
|
+
options.apply_defaults timeout: @config.rpcs.bulk_create_data_table_rows.timeout,
|
|
1157
|
+
metadata: call_metadata,
|
|
1158
|
+
retry_policy: @config.rpcs.bulk_create_data_table_rows.retry_policy
|
|
1159
|
+
|
|
1160
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1161
|
+
metadata: @config.metadata,
|
|
1162
|
+
retry_policy: @config.retry_policy
|
|
1163
|
+
|
|
1164
|
+
@data_table_service_stub.bulk_create_data_table_rows request, options do |result, operation|
|
|
1165
|
+
yield result, operation if block_given?
|
|
1166
|
+
end
|
|
1167
|
+
rescue ::Gapic::Rest::Error => e
|
|
1168
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1169
|
+
end
|
|
1170
|
+
|
|
1171
|
+
##
|
|
1172
|
+
# Get data table rows in bulk.
|
|
1173
|
+
#
|
|
1174
|
+
# @overload bulk_get_data_table_rows(request, options = nil)
|
|
1175
|
+
# Pass arguments to `bulk_get_data_table_rows` via a request object, either of type
|
|
1176
|
+
# {::Google::Cloud::Chronicle::V1::BulkGetDataTableRowsRequest} or an equivalent Hash.
|
|
1177
|
+
#
|
|
1178
|
+
# @param request [::Google::Cloud::Chronicle::V1::BulkGetDataTableRowsRequest, ::Hash]
|
|
1179
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1180
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1181
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1182
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1183
|
+
#
|
|
1184
|
+
# @overload bulk_get_data_table_rows(parent: nil, requests: nil)
|
|
1185
|
+
# Pass arguments to `bulk_get_data_table_rows` via keyword arguments. Note that at
|
|
1186
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1187
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1188
|
+
#
|
|
1189
|
+
# @param parent [::String]
|
|
1190
|
+
# Required. The resource id of the data table.
|
|
1191
|
+
# Format:
|
|
1192
|
+
# /projects/\\{project}/locations/\\{location}/instances/\\{instance}/dataTables/\\{data_table}
|
|
1193
|
+
# @param requests [::Array<::Google::Cloud::Chronicle::V1::GetDataTableRowRequest, ::Hash>]
|
|
1194
|
+
# Required. Data table rows to get. At max 1,000 rows can be there in a
|
|
1195
|
+
# request.
|
|
1196
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1197
|
+
# @yieldparam result [::Google::Cloud::Chronicle::V1::BulkGetDataTableRowsResponse]
|
|
1198
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1199
|
+
#
|
|
1200
|
+
# @return [::Google::Cloud::Chronicle::V1::BulkGetDataTableRowsResponse]
|
|
1201
|
+
#
|
|
1202
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1203
|
+
#
|
|
1204
|
+
# @example Basic example
|
|
1205
|
+
# require "google/cloud/chronicle/v1"
|
|
1206
|
+
#
|
|
1207
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1208
|
+
# client = Google::Cloud::Chronicle::V1::DataTableService::Rest::Client.new
|
|
1209
|
+
#
|
|
1210
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1211
|
+
# request = Google::Cloud::Chronicle::V1::BulkGetDataTableRowsRequest.new
|
|
1212
|
+
#
|
|
1213
|
+
# # Call the bulk_get_data_table_rows method.
|
|
1214
|
+
# result = client.bulk_get_data_table_rows request
|
|
1215
|
+
#
|
|
1216
|
+
# # The returned object is of type Google::Cloud::Chronicle::V1::BulkGetDataTableRowsResponse.
|
|
1217
|
+
# p result
|
|
1218
|
+
#
|
|
1219
|
+
def bulk_get_data_table_rows request, options = nil
|
|
1220
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1221
|
+
|
|
1222
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Chronicle::V1::BulkGetDataTableRowsRequest
|
|
1223
|
+
|
|
1224
|
+
# Converts hash and nil to an options object
|
|
1225
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1226
|
+
|
|
1227
|
+
# Customize the options with defaults
|
|
1228
|
+
call_metadata = @config.rpcs.bulk_get_data_table_rows.metadata.to_h
|
|
1229
|
+
|
|
1230
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1231
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1232
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1233
|
+
gapic_version: ::Google::Cloud::Chronicle::V1::VERSION,
|
|
1234
|
+
transports_version_send: [:rest]
|
|
1235
|
+
|
|
1236
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1237
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1238
|
+
|
|
1239
|
+
options.apply_defaults timeout: @config.rpcs.bulk_get_data_table_rows.timeout,
|
|
1240
|
+
metadata: call_metadata,
|
|
1241
|
+
retry_policy: @config.rpcs.bulk_get_data_table_rows.retry_policy
|
|
1242
|
+
|
|
1243
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1244
|
+
metadata: @config.metadata,
|
|
1245
|
+
retry_policy: @config.retry_policy
|
|
1246
|
+
|
|
1247
|
+
@data_table_service_stub.bulk_get_data_table_rows request, options do |result, operation|
|
|
1248
|
+
yield result, operation if block_given?
|
|
1249
|
+
end
|
|
1250
|
+
rescue ::Gapic::Rest::Error => e
|
|
1251
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1252
|
+
end
|
|
1253
|
+
|
|
1254
|
+
##
|
|
1255
|
+
# Replace all existing data table rows with new data table rows.
|
|
1256
|
+
#
|
|
1257
|
+
# @overload bulk_replace_data_table_rows(request, options = nil)
|
|
1258
|
+
# Pass arguments to `bulk_replace_data_table_rows` via a request object, either of type
|
|
1259
|
+
# {::Google::Cloud::Chronicle::V1::BulkReplaceDataTableRowsRequest} or an equivalent Hash.
|
|
1260
|
+
#
|
|
1261
|
+
# @param request [::Google::Cloud::Chronicle::V1::BulkReplaceDataTableRowsRequest, ::Hash]
|
|
1262
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1263
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1264
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1265
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1266
|
+
#
|
|
1267
|
+
# @overload bulk_replace_data_table_rows(parent: nil, requests: nil)
|
|
1268
|
+
# Pass arguments to `bulk_replace_data_table_rows` via keyword arguments. Note that at
|
|
1269
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1270
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1271
|
+
#
|
|
1272
|
+
# @param parent [::String]
|
|
1273
|
+
# Required. The resource id of the data table.
|
|
1274
|
+
# Format:
|
|
1275
|
+
# /projects/\\{project}/locations/\\{location}/instances/\\{instance}/dataTables/\\{data_table}
|
|
1276
|
+
# @param requests [::Array<::Google::Cloud::Chronicle::V1::CreateDataTableRowRequest, ::Hash>]
|
|
1277
|
+
# Required. Data table rows to replace the existing data table rows. A
|
|
1278
|
+
# maximum of 1000 rows (for sync requests) or 2000 rows (for async requests)
|
|
1279
|
+
# can be replaced in a single request. Total size of the rows should be less
|
|
1280
|
+
# than 4MB.
|
|
1281
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1282
|
+
# @yieldparam result [::Google::Cloud::Chronicle::V1::BulkReplaceDataTableRowsResponse]
|
|
1283
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1284
|
+
#
|
|
1285
|
+
# @return [::Google::Cloud::Chronicle::V1::BulkReplaceDataTableRowsResponse]
|
|
1286
|
+
#
|
|
1287
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1288
|
+
#
|
|
1289
|
+
# @example Basic example
|
|
1290
|
+
# require "google/cloud/chronicle/v1"
|
|
1291
|
+
#
|
|
1292
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1293
|
+
# client = Google::Cloud::Chronicle::V1::DataTableService::Rest::Client.new
|
|
1294
|
+
#
|
|
1295
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1296
|
+
# request = Google::Cloud::Chronicle::V1::BulkReplaceDataTableRowsRequest.new
|
|
1297
|
+
#
|
|
1298
|
+
# # Call the bulk_replace_data_table_rows method.
|
|
1299
|
+
# result = client.bulk_replace_data_table_rows request
|
|
1300
|
+
#
|
|
1301
|
+
# # The returned object is of type Google::Cloud::Chronicle::V1::BulkReplaceDataTableRowsResponse.
|
|
1302
|
+
# p result
|
|
1303
|
+
#
|
|
1304
|
+
def bulk_replace_data_table_rows request, options = nil
|
|
1305
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1306
|
+
|
|
1307
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Chronicle::V1::BulkReplaceDataTableRowsRequest
|
|
1308
|
+
|
|
1309
|
+
# Converts hash and nil to an options object
|
|
1310
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1311
|
+
|
|
1312
|
+
# Customize the options with defaults
|
|
1313
|
+
call_metadata = @config.rpcs.bulk_replace_data_table_rows.metadata.to_h
|
|
1314
|
+
|
|
1315
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1316
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1317
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1318
|
+
gapic_version: ::Google::Cloud::Chronicle::V1::VERSION,
|
|
1319
|
+
transports_version_send: [:rest]
|
|
1320
|
+
|
|
1321
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1322
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1323
|
+
|
|
1324
|
+
options.apply_defaults timeout: @config.rpcs.bulk_replace_data_table_rows.timeout,
|
|
1325
|
+
metadata: call_metadata,
|
|
1326
|
+
retry_policy: @config.rpcs.bulk_replace_data_table_rows.retry_policy
|
|
1327
|
+
|
|
1328
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1329
|
+
metadata: @config.metadata,
|
|
1330
|
+
retry_policy: @config.retry_policy
|
|
1331
|
+
|
|
1332
|
+
@data_table_service_stub.bulk_replace_data_table_rows request, options do |result, operation|
|
|
1333
|
+
yield result, operation if block_given?
|
|
1334
|
+
end
|
|
1335
|
+
rescue ::Gapic::Rest::Error => e
|
|
1336
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1337
|
+
end
|
|
1338
|
+
|
|
1339
|
+
##
|
|
1340
|
+
# Update data table rows in bulk.
|
|
1341
|
+
#
|
|
1342
|
+
# @overload bulk_update_data_table_rows(request, options = nil)
|
|
1343
|
+
# Pass arguments to `bulk_update_data_table_rows` via a request object, either of type
|
|
1344
|
+
# {::Google::Cloud::Chronicle::V1::BulkUpdateDataTableRowsRequest} or an equivalent Hash.
|
|
1345
|
+
#
|
|
1346
|
+
# @param request [::Google::Cloud::Chronicle::V1::BulkUpdateDataTableRowsRequest, ::Hash]
|
|
1347
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1348
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1349
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1350
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1351
|
+
#
|
|
1352
|
+
# @overload bulk_update_data_table_rows(parent: nil, requests: nil)
|
|
1353
|
+
# Pass arguments to `bulk_update_data_table_rows` via keyword arguments. Note that at
|
|
1354
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1355
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1356
|
+
#
|
|
1357
|
+
# @param parent [::String]
|
|
1358
|
+
# Required. The resource id of the data table.
|
|
1359
|
+
# Format:
|
|
1360
|
+
# /projects/\\{project}/locations/\\{location}/instances/\\{instance}/dataTables/\\{data_table}
|
|
1361
|
+
# @param requests [::Array<::Google::Cloud::Chronicle::V1::UpdateDataTableRowRequest, ::Hash>]
|
|
1362
|
+
# Required. Data table rows to update. At max 1,000 rows (or rows with size
|
|
1363
|
+
# less than 2MB) can be there in a request.
|
|
1364
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1365
|
+
# @yieldparam result [::Google::Cloud::Chronicle::V1::BulkUpdateDataTableRowsResponse]
|
|
1366
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1367
|
+
#
|
|
1368
|
+
# @return [::Google::Cloud::Chronicle::V1::BulkUpdateDataTableRowsResponse]
|
|
1369
|
+
#
|
|
1370
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1371
|
+
#
|
|
1372
|
+
# @example Basic example
|
|
1373
|
+
# require "google/cloud/chronicle/v1"
|
|
1374
|
+
#
|
|
1375
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1376
|
+
# client = Google::Cloud::Chronicle::V1::DataTableService::Rest::Client.new
|
|
1377
|
+
#
|
|
1378
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1379
|
+
# request = Google::Cloud::Chronicle::V1::BulkUpdateDataTableRowsRequest.new
|
|
1380
|
+
#
|
|
1381
|
+
# # Call the bulk_update_data_table_rows method.
|
|
1382
|
+
# result = client.bulk_update_data_table_rows request
|
|
1383
|
+
#
|
|
1384
|
+
# # The returned object is of type Google::Cloud::Chronicle::V1::BulkUpdateDataTableRowsResponse.
|
|
1385
|
+
# p result
|
|
1386
|
+
#
|
|
1387
|
+
def bulk_update_data_table_rows request, options = nil
|
|
1388
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1389
|
+
|
|
1390
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Chronicle::V1::BulkUpdateDataTableRowsRequest
|
|
1391
|
+
|
|
1392
|
+
# Converts hash and nil to an options object
|
|
1393
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1394
|
+
|
|
1395
|
+
# Customize the options with defaults
|
|
1396
|
+
call_metadata = @config.rpcs.bulk_update_data_table_rows.metadata.to_h
|
|
1397
|
+
|
|
1398
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1399
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1400
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1401
|
+
gapic_version: ::Google::Cloud::Chronicle::V1::VERSION,
|
|
1402
|
+
transports_version_send: [:rest]
|
|
1403
|
+
|
|
1404
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1405
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1406
|
+
|
|
1407
|
+
options.apply_defaults timeout: @config.rpcs.bulk_update_data_table_rows.timeout,
|
|
1408
|
+
metadata: call_metadata,
|
|
1409
|
+
retry_policy: @config.rpcs.bulk_update_data_table_rows.retry_policy
|
|
1410
|
+
|
|
1411
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1412
|
+
metadata: @config.metadata,
|
|
1413
|
+
retry_policy: @config.retry_policy
|
|
1414
|
+
|
|
1415
|
+
@data_table_service_stub.bulk_update_data_table_rows request, options do |result, operation|
|
|
1416
|
+
yield result, operation if block_given?
|
|
1417
|
+
end
|
|
1418
|
+
rescue ::Gapic::Rest::Error => e
|
|
1419
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1420
|
+
end
|
|
1421
|
+
|
|
1422
|
+
##
|
|
1423
|
+
# Get the error for a data table operation.
|
|
1424
|
+
#
|
|
1425
|
+
# @overload get_data_table_operation_errors(request, options = nil)
|
|
1426
|
+
# Pass arguments to `get_data_table_operation_errors` via a request object, either of type
|
|
1427
|
+
# {::Google::Cloud::Chronicle::V1::GetDataTableOperationErrorsRequest} or an equivalent Hash.
|
|
1428
|
+
#
|
|
1429
|
+
# @param request [::Google::Cloud::Chronicle::V1::GetDataTableOperationErrorsRequest, ::Hash]
|
|
1430
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1431
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1432
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1433
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1434
|
+
#
|
|
1435
|
+
# @overload get_data_table_operation_errors(name: nil)
|
|
1436
|
+
# Pass arguments to `get_data_table_operation_errors` via keyword arguments. Note that at
|
|
1437
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1438
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1439
|
+
#
|
|
1440
|
+
# @param name [::String]
|
|
1441
|
+
# Required. Resource name for the data table operation errors.
|
|
1442
|
+
# Format:
|
|
1443
|
+
# projects/\\{project}/locations/\\{location}/instances/\\{instance}/dataTableOperationErrors/\\{data_table_operation_errors}
|
|
1444
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1445
|
+
# @yieldparam result [::Google::Cloud::Chronicle::V1::DataTableOperationErrors]
|
|
1446
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1447
|
+
#
|
|
1448
|
+
# @return [::Google::Cloud::Chronicle::V1::DataTableOperationErrors]
|
|
1449
|
+
#
|
|
1450
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1451
|
+
#
|
|
1452
|
+
# @example Basic example
|
|
1453
|
+
# require "google/cloud/chronicle/v1"
|
|
1454
|
+
#
|
|
1455
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1456
|
+
# client = Google::Cloud::Chronicle::V1::DataTableService::Rest::Client.new
|
|
1457
|
+
#
|
|
1458
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1459
|
+
# request = Google::Cloud::Chronicle::V1::GetDataTableOperationErrorsRequest.new
|
|
1460
|
+
#
|
|
1461
|
+
# # Call the get_data_table_operation_errors method.
|
|
1462
|
+
# result = client.get_data_table_operation_errors request
|
|
1463
|
+
#
|
|
1464
|
+
# # The returned object is of type Google::Cloud::Chronicle::V1::DataTableOperationErrors.
|
|
1465
|
+
# p result
|
|
1466
|
+
#
|
|
1467
|
+
def get_data_table_operation_errors request, options = nil
|
|
1468
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1469
|
+
|
|
1470
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Chronicle::V1::GetDataTableOperationErrorsRequest
|
|
1471
|
+
|
|
1472
|
+
# Converts hash and nil to an options object
|
|
1473
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1474
|
+
|
|
1475
|
+
# Customize the options with defaults
|
|
1476
|
+
call_metadata = @config.rpcs.get_data_table_operation_errors.metadata.to_h
|
|
1477
|
+
|
|
1478
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1479
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1480
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1481
|
+
gapic_version: ::Google::Cloud::Chronicle::V1::VERSION,
|
|
1482
|
+
transports_version_send: [:rest]
|
|
1483
|
+
|
|
1484
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1485
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1486
|
+
|
|
1487
|
+
options.apply_defaults timeout: @config.rpcs.get_data_table_operation_errors.timeout,
|
|
1488
|
+
metadata: call_metadata,
|
|
1489
|
+
retry_policy: @config.rpcs.get_data_table_operation_errors.retry_policy
|
|
1490
|
+
|
|
1491
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1492
|
+
metadata: @config.metadata,
|
|
1493
|
+
retry_policy: @config.retry_policy
|
|
1494
|
+
|
|
1495
|
+
@data_table_service_stub.get_data_table_operation_errors request, options do |result, operation|
|
|
1496
|
+
yield result, operation if block_given?
|
|
1497
|
+
end
|
|
1498
|
+
rescue ::Gapic::Rest::Error => e
|
|
1499
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1500
|
+
end
|
|
1501
|
+
|
|
1502
|
+
##
|
|
1503
|
+
# Configuration class for the DataTableService REST API.
|
|
1504
|
+
#
|
|
1505
|
+
# This class represents the configuration for DataTableService REST,
|
|
1506
|
+
# providing control over timeouts, retry behavior, logging, transport
|
|
1507
|
+
# parameters, and other low-level controls. Certain parameters can also be
|
|
1508
|
+
# applied individually to specific RPCs. See
|
|
1509
|
+
# {::Google::Cloud::Chronicle::V1::DataTableService::Rest::Client::Configuration::Rpcs}
|
|
1510
|
+
# for a list of RPCs that can be configured independently.
|
|
1511
|
+
#
|
|
1512
|
+
# Configuration can be applied globally to all clients, or to a single client
|
|
1513
|
+
# on construction.
|
|
1514
|
+
#
|
|
1515
|
+
# @example
|
|
1516
|
+
#
|
|
1517
|
+
# # Modify the global config, setting the timeout for
|
|
1518
|
+
# # create_data_table to 20 seconds,
|
|
1519
|
+
# # and all remaining timeouts to 10 seconds.
|
|
1520
|
+
# ::Google::Cloud::Chronicle::V1::DataTableService::Rest::Client.configure do |config|
|
|
1521
|
+
# config.timeout = 10.0
|
|
1522
|
+
# config.rpcs.create_data_table.timeout = 20.0
|
|
1523
|
+
# end
|
|
1524
|
+
#
|
|
1525
|
+
# # Apply the above configuration only to a new client.
|
|
1526
|
+
# client = ::Google::Cloud::Chronicle::V1::DataTableService::Rest::Client.new do |config|
|
|
1527
|
+
# config.timeout = 10.0
|
|
1528
|
+
# config.rpcs.create_data_table.timeout = 20.0
|
|
1529
|
+
# end
|
|
1530
|
+
#
|
|
1531
|
+
# @!attribute [rw] endpoint
|
|
1532
|
+
# A custom service endpoint, as a hostname or hostname:port. The default is
|
|
1533
|
+
# nil, indicating to use the default endpoint in the current universe domain.
|
|
1534
|
+
# @return [::String,nil]
|
|
1535
|
+
# @!attribute [rw] credentials
|
|
1536
|
+
# Credentials to send with calls. You may provide any of the following types:
|
|
1537
|
+
# * (`String`) The path to a service account key file in JSON format
|
|
1538
|
+
# * (`Hash`) A service account key as a Hash
|
|
1539
|
+
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
1540
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
1541
|
+
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
1542
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
|
1543
|
+
# * (`nil`) indicating no credentials
|
|
1544
|
+
#
|
|
1545
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
|
1546
|
+
# external source for authentication to Google Cloud, you must validate it before
|
|
1547
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
|
1548
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
|
1549
|
+
# For more information, refer to [Validate credential configurations from external
|
|
1550
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
|
1551
|
+
# @return [::Object]
|
|
1552
|
+
# @!attribute [rw] scope
|
|
1553
|
+
# The OAuth scopes
|
|
1554
|
+
# @return [::Array<::String>]
|
|
1555
|
+
# @!attribute [rw] lib_name
|
|
1556
|
+
# The library name as recorded in instrumentation and logging
|
|
1557
|
+
# @return [::String]
|
|
1558
|
+
# @!attribute [rw] lib_version
|
|
1559
|
+
# The library version as recorded in instrumentation and logging
|
|
1560
|
+
# @return [::String]
|
|
1561
|
+
# @!attribute [rw] timeout
|
|
1562
|
+
# The call timeout in seconds.
|
|
1563
|
+
# @return [::Numeric]
|
|
1564
|
+
# @!attribute [rw] metadata
|
|
1565
|
+
# Additional headers to be sent with the call.
|
|
1566
|
+
# @return [::Hash{::Symbol=>::String}]
|
|
1567
|
+
# @!attribute [rw] retry_policy
|
|
1568
|
+
# The retry policy. The value is a hash with the following keys:
|
|
1569
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
1570
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
1571
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
1572
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
1573
|
+
# trigger a retry.
|
|
1574
|
+
# @return [::Hash]
|
|
1575
|
+
# @!attribute [rw] quota_project
|
|
1576
|
+
# A separate project against which to charge quota.
|
|
1577
|
+
# @return [::String]
|
|
1578
|
+
# @!attribute [rw] universe_domain
|
|
1579
|
+
# The universe domain within which to make requests. This determines the
|
|
1580
|
+
# default endpoint URL. The default value of nil uses the environment
|
|
1581
|
+
# universe (usually the default "googleapis.com" universe).
|
|
1582
|
+
# @return [::String,nil]
|
|
1583
|
+
# @!attribute [rw] logger
|
|
1584
|
+
# A custom logger to use for request/response debug logging, or the value
|
|
1585
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
|
1586
|
+
# explicitly disable logging.
|
|
1587
|
+
# @return [::Logger,:default,nil]
|
|
1588
|
+
#
|
|
1589
|
+
class Configuration
|
|
1590
|
+
extend ::Gapic::Config
|
|
1591
|
+
|
|
1592
|
+
# @private
|
|
1593
|
+
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
|
1594
|
+
DEFAULT_ENDPOINT = "chronicle.googleapis.com"
|
|
1595
|
+
|
|
1596
|
+
config_attr :endpoint, nil, ::String, nil
|
|
1597
|
+
config_attr :credentials, nil do |value|
|
|
1598
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
|
1599
|
+
allowed.any? { |klass| klass === value }
|
|
1600
|
+
end
|
|
1601
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
|
1602
|
+
config_attr :lib_name, nil, ::String, nil
|
|
1603
|
+
config_attr :lib_version, nil, ::String, nil
|
|
1604
|
+
config_attr :timeout, nil, ::Numeric, nil
|
|
1605
|
+
config_attr :metadata, nil, ::Hash, nil
|
|
1606
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
|
1607
|
+
config_attr :quota_project, nil, ::String, nil
|
|
1608
|
+
config_attr :universe_domain, nil, ::String, nil
|
|
1609
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
|
1610
|
+
|
|
1611
|
+
# @private
|
|
1612
|
+
def initialize parent_config = nil
|
|
1613
|
+
@parent_config = parent_config unless parent_config.nil?
|
|
1614
|
+
|
|
1615
|
+
yield self if block_given?
|
|
1616
|
+
end
|
|
1617
|
+
|
|
1618
|
+
##
|
|
1619
|
+
# Configurations for individual RPCs
|
|
1620
|
+
# @return [Rpcs]
|
|
1621
|
+
#
|
|
1622
|
+
def rpcs
|
|
1623
|
+
@rpcs ||= begin
|
|
1624
|
+
parent_rpcs = nil
|
|
1625
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
|
1626
|
+
Rpcs.new parent_rpcs
|
|
1627
|
+
end
|
|
1628
|
+
end
|
|
1629
|
+
|
|
1630
|
+
##
|
|
1631
|
+
# Configuration RPC class for the DataTableService API.
|
|
1632
|
+
#
|
|
1633
|
+
# Includes fields providing the configuration for each RPC in this service.
|
|
1634
|
+
# Each configuration object is of type `Gapic::Config::Method` and includes
|
|
1635
|
+
# the following configuration fields:
|
|
1636
|
+
#
|
|
1637
|
+
# * `timeout` (*type:* `Numeric`) - The call timeout in seconds
|
|
1638
|
+
# * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
|
|
1639
|
+
# * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
|
|
1640
|
+
# include the following keys:
|
|
1641
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
1642
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
1643
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
1644
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
1645
|
+
# trigger a retry.
|
|
1646
|
+
#
|
|
1647
|
+
class Rpcs
|
|
1648
|
+
##
|
|
1649
|
+
# RPC-specific configuration for `create_data_table`
|
|
1650
|
+
# @return [::Gapic::Config::Method]
|
|
1651
|
+
#
|
|
1652
|
+
attr_reader :create_data_table
|
|
1653
|
+
##
|
|
1654
|
+
# RPC-specific configuration for `list_data_tables`
|
|
1655
|
+
# @return [::Gapic::Config::Method]
|
|
1656
|
+
#
|
|
1657
|
+
attr_reader :list_data_tables
|
|
1658
|
+
##
|
|
1659
|
+
# RPC-specific configuration for `get_data_table`
|
|
1660
|
+
# @return [::Gapic::Config::Method]
|
|
1661
|
+
#
|
|
1662
|
+
attr_reader :get_data_table
|
|
1663
|
+
##
|
|
1664
|
+
# RPC-specific configuration for `update_data_table`
|
|
1665
|
+
# @return [::Gapic::Config::Method]
|
|
1666
|
+
#
|
|
1667
|
+
attr_reader :update_data_table
|
|
1668
|
+
##
|
|
1669
|
+
# RPC-specific configuration for `delete_data_table`
|
|
1670
|
+
# @return [::Gapic::Config::Method]
|
|
1671
|
+
#
|
|
1672
|
+
attr_reader :delete_data_table
|
|
1673
|
+
##
|
|
1674
|
+
# RPC-specific configuration for `create_data_table_row`
|
|
1675
|
+
# @return [::Gapic::Config::Method]
|
|
1676
|
+
#
|
|
1677
|
+
attr_reader :create_data_table_row
|
|
1678
|
+
##
|
|
1679
|
+
# RPC-specific configuration for `update_data_table_row`
|
|
1680
|
+
# @return [::Gapic::Config::Method]
|
|
1681
|
+
#
|
|
1682
|
+
attr_reader :update_data_table_row
|
|
1683
|
+
##
|
|
1684
|
+
# RPC-specific configuration for `list_data_table_rows`
|
|
1685
|
+
# @return [::Gapic::Config::Method]
|
|
1686
|
+
#
|
|
1687
|
+
attr_reader :list_data_table_rows
|
|
1688
|
+
##
|
|
1689
|
+
# RPC-specific configuration for `get_data_table_row`
|
|
1690
|
+
# @return [::Gapic::Config::Method]
|
|
1691
|
+
#
|
|
1692
|
+
attr_reader :get_data_table_row
|
|
1693
|
+
##
|
|
1694
|
+
# RPC-specific configuration for `delete_data_table_row`
|
|
1695
|
+
# @return [::Gapic::Config::Method]
|
|
1696
|
+
#
|
|
1697
|
+
attr_reader :delete_data_table_row
|
|
1698
|
+
##
|
|
1699
|
+
# RPC-specific configuration for `bulk_create_data_table_rows`
|
|
1700
|
+
# @return [::Gapic::Config::Method]
|
|
1701
|
+
#
|
|
1702
|
+
attr_reader :bulk_create_data_table_rows
|
|
1703
|
+
##
|
|
1704
|
+
# RPC-specific configuration for `bulk_get_data_table_rows`
|
|
1705
|
+
# @return [::Gapic::Config::Method]
|
|
1706
|
+
#
|
|
1707
|
+
attr_reader :bulk_get_data_table_rows
|
|
1708
|
+
##
|
|
1709
|
+
# RPC-specific configuration for `bulk_replace_data_table_rows`
|
|
1710
|
+
# @return [::Gapic::Config::Method]
|
|
1711
|
+
#
|
|
1712
|
+
attr_reader :bulk_replace_data_table_rows
|
|
1713
|
+
##
|
|
1714
|
+
# RPC-specific configuration for `bulk_update_data_table_rows`
|
|
1715
|
+
# @return [::Gapic::Config::Method]
|
|
1716
|
+
#
|
|
1717
|
+
attr_reader :bulk_update_data_table_rows
|
|
1718
|
+
##
|
|
1719
|
+
# RPC-specific configuration for `get_data_table_operation_errors`
|
|
1720
|
+
# @return [::Gapic::Config::Method]
|
|
1721
|
+
#
|
|
1722
|
+
attr_reader :get_data_table_operation_errors
|
|
1723
|
+
|
|
1724
|
+
# @private
|
|
1725
|
+
def initialize parent_rpcs = nil
|
|
1726
|
+
create_data_table_config = parent_rpcs.create_data_table if parent_rpcs.respond_to? :create_data_table
|
|
1727
|
+
@create_data_table = ::Gapic::Config::Method.new create_data_table_config
|
|
1728
|
+
list_data_tables_config = parent_rpcs.list_data_tables if parent_rpcs.respond_to? :list_data_tables
|
|
1729
|
+
@list_data_tables = ::Gapic::Config::Method.new list_data_tables_config
|
|
1730
|
+
get_data_table_config = parent_rpcs.get_data_table if parent_rpcs.respond_to? :get_data_table
|
|
1731
|
+
@get_data_table = ::Gapic::Config::Method.new get_data_table_config
|
|
1732
|
+
update_data_table_config = parent_rpcs.update_data_table if parent_rpcs.respond_to? :update_data_table
|
|
1733
|
+
@update_data_table = ::Gapic::Config::Method.new update_data_table_config
|
|
1734
|
+
delete_data_table_config = parent_rpcs.delete_data_table if parent_rpcs.respond_to? :delete_data_table
|
|
1735
|
+
@delete_data_table = ::Gapic::Config::Method.new delete_data_table_config
|
|
1736
|
+
create_data_table_row_config = parent_rpcs.create_data_table_row if parent_rpcs.respond_to? :create_data_table_row
|
|
1737
|
+
@create_data_table_row = ::Gapic::Config::Method.new create_data_table_row_config
|
|
1738
|
+
update_data_table_row_config = parent_rpcs.update_data_table_row if parent_rpcs.respond_to? :update_data_table_row
|
|
1739
|
+
@update_data_table_row = ::Gapic::Config::Method.new update_data_table_row_config
|
|
1740
|
+
list_data_table_rows_config = parent_rpcs.list_data_table_rows if parent_rpcs.respond_to? :list_data_table_rows
|
|
1741
|
+
@list_data_table_rows = ::Gapic::Config::Method.new list_data_table_rows_config
|
|
1742
|
+
get_data_table_row_config = parent_rpcs.get_data_table_row if parent_rpcs.respond_to? :get_data_table_row
|
|
1743
|
+
@get_data_table_row = ::Gapic::Config::Method.new get_data_table_row_config
|
|
1744
|
+
delete_data_table_row_config = parent_rpcs.delete_data_table_row if parent_rpcs.respond_to? :delete_data_table_row
|
|
1745
|
+
@delete_data_table_row = ::Gapic::Config::Method.new delete_data_table_row_config
|
|
1746
|
+
bulk_create_data_table_rows_config = parent_rpcs.bulk_create_data_table_rows if parent_rpcs.respond_to? :bulk_create_data_table_rows
|
|
1747
|
+
@bulk_create_data_table_rows = ::Gapic::Config::Method.new bulk_create_data_table_rows_config
|
|
1748
|
+
bulk_get_data_table_rows_config = parent_rpcs.bulk_get_data_table_rows if parent_rpcs.respond_to? :bulk_get_data_table_rows
|
|
1749
|
+
@bulk_get_data_table_rows = ::Gapic::Config::Method.new bulk_get_data_table_rows_config
|
|
1750
|
+
bulk_replace_data_table_rows_config = parent_rpcs.bulk_replace_data_table_rows if parent_rpcs.respond_to? :bulk_replace_data_table_rows
|
|
1751
|
+
@bulk_replace_data_table_rows = ::Gapic::Config::Method.new bulk_replace_data_table_rows_config
|
|
1752
|
+
bulk_update_data_table_rows_config = parent_rpcs.bulk_update_data_table_rows if parent_rpcs.respond_to? :bulk_update_data_table_rows
|
|
1753
|
+
@bulk_update_data_table_rows = ::Gapic::Config::Method.new bulk_update_data_table_rows_config
|
|
1754
|
+
get_data_table_operation_errors_config = parent_rpcs.get_data_table_operation_errors if parent_rpcs.respond_to? :get_data_table_operation_errors
|
|
1755
|
+
@get_data_table_operation_errors = ::Gapic::Config::Method.new get_data_table_operation_errors_config
|
|
1756
|
+
|
|
1757
|
+
yield self if block_given?
|
|
1758
|
+
end
|
|
1759
|
+
end
|
|
1760
|
+
end
|
|
1761
|
+
end
|
|
1762
|
+
end
|
|
1763
|
+
end
|
|
1764
|
+
end
|
|
1765
|
+
end
|
|
1766
|
+
end
|
|
1767
|
+
end
|