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