google-cloud-dataflow-v1beta3 0.4.0 → 0.5.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 (37) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +1 -1
  3. data/README.md +2 -2
  4. data/lib/google/cloud/dataflow/v1beta3/flex_templates_service/rest/client.rb +351 -0
  5. data/lib/google/cloud/dataflow/v1beta3/flex_templates_service/rest/service_stub.rb +109 -0
  6. data/lib/google/cloud/dataflow/v1beta3/flex_templates_service/rest.rb +51 -0
  7. data/lib/google/cloud/dataflow/v1beta3/flex_templates_service.rb +7 -1
  8. data/lib/google/cloud/dataflow/v1beta3/jobs/client.rb +8 -12
  9. data/lib/google/cloud/dataflow/v1beta3/jobs/rest/client.rb +784 -0
  10. data/lib/google/cloud/dataflow/v1beta3/jobs/rest/service_stub.rb +454 -0
  11. data/lib/google/cloud/dataflow/v1beta3/jobs/rest.rb +52 -0
  12. data/lib/google/cloud/dataflow/v1beta3/jobs.rb +7 -1
  13. data/lib/google/cloud/dataflow/v1beta3/messages/client.rb +4 -6
  14. data/lib/google/cloud/dataflow/v1beta3/messages/rest/client.rb +373 -0
  15. data/lib/google/cloud/dataflow/v1beta3/messages/rest/service_stub.rb +117 -0
  16. data/lib/google/cloud/dataflow/v1beta3/messages/rest.rb +52 -0
  17. data/lib/google/cloud/dataflow/v1beta3/messages.rb +7 -1
  18. data/lib/google/cloud/dataflow/v1beta3/metrics/client.rb +8 -12
  19. data/lib/google/cloud/dataflow/v1beta3/metrics/rest/client.rb +539 -0
  20. data/lib/google/cloud/dataflow/v1beta3/metrics/rest/service_stub.rb +240 -0
  21. data/lib/google/cloud/dataflow/v1beta3/metrics/rest.rb +52 -0
  22. data/lib/google/cloud/dataflow/v1beta3/metrics.rb +7 -1
  23. data/lib/google/cloud/dataflow/v1beta3/rest.rb +42 -0
  24. data/lib/google/cloud/dataflow/v1beta3/snapshots/rest/client.rb +494 -0
  25. data/lib/google/cloud/dataflow/v1beta3/snapshots/rest/service_stub.rb +261 -0
  26. data/lib/google/cloud/dataflow/v1beta3/snapshots/rest.rb +51 -0
  27. data/lib/google/cloud/dataflow/v1beta3/snapshots.rb +7 -1
  28. data/lib/google/cloud/dataflow/v1beta3/templates_service/rest/client.rb +522 -0
  29. data/lib/google/cloud/dataflow/v1beta3/templates_service/rest/service_stub.rb +253 -0
  30. data/lib/google/cloud/dataflow/v1beta3/templates_service/rest.rb +51 -0
  31. data/lib/google/cloud/dataflow/v1beta3/templates_service.rb +7 -1
  32. data/lib/google/cloud/dataflow/v1beta3/version.rb +1 -1
  33. data/lib/google/cloud/dataflow/v1beta3.rb +7 -2
  34. data/proto_docs/google/api/client.rb +318 -0
  35. data/proto_docs/google/api/launch_stage.rb +71 -0
  36. data/proto_docs/google/rpc/status.rb +4 -2
  37. metadata +29 -8
@@ -0,0 +1,494 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 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/dataflow/v1beta3/snapshots_pb"
21
+ require "google/cloud/dataflow/v1beta3/snapshots/rest/service_stub"
22
+
23
+ module Google
24
+ module Cloud
25
+ module Dataflow
26
+ module V1beta3
27
+ module Snapshots
28
+ module Rest
29
+ ##
30
+ # REST client for the Snapshots service.
31
+ #
32
+ # Provides methods to manage snapshots of Google Cloud Dataflow jobs.
33
+ #
34
+ class Client
35
+ # @private
36
+ attr_reader :snapshots_stub
37
+
38
+ ##
39
+ # Configure the Snapshots Client class.
40
+ #
41
+ # See {::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client::Configuration}
42
+ # for a description of the configuration fields.
43
+ #
44
+ # @example
45
+ #
46
+ # # Modify the configuration for all Snapshots clients
47
+ # ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.configure do |config|
48
+ # config.timeout = 10.0
49
+ # end
50
+ #
51
+ # @yield [config] Configure the Client client.
52
+ # @yieldparam config [Client::Configuration]
53
+ #
54
+ # @return [Client::Configuration]
55
+ #
56
+ def self.configure
57
+ @configure ||= begin
58
+ namespace = ["Google", "Cloud", "Dataflow", "V1beta3"]
59
+ parent_config = while namespace.any?
60
+ parent_name = namespace.join "::"
61
+ parent_const = const_get parent_name
62
+ break parent_const.configure if parent_const.respond_to? :configure
63
+ namespace.pop
64
+ end
65
+ default_config = Client::Configuration.new parent_config
66
+
67
+ default_config.timeout = 60.0
68
+
69
+ default_config
70
+ end
71
+ yield @configure if block_given?
72
+ @configure
73
+ end
74
+
75
+ ##
76
+ # Configure the Snapshots Client instance.
77
+ #
78
+ # The configuration is set to the derived mode, meaning that values can be changed,
79
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
80
+ # should be made on {Client.configure}.
81
+ #
82
+ # See {::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client::Configuration}
83
+ # for a description of the configuration fields.
84
+ #
85
+ # @yield [config] Configure the Client client.
86
+ # @yieldparam config [Client::Configuration]
87
+ #
88
+ # @return [Client::Configuration]
89
+ #
90
+ def configure
91
+ yield @config if block_given?
92
+ @config
93
+ end
94
+
95
+ ##
96
+ # Create a new Snapshots REST client object.
97
+ #
98
+ # @example
99
+ #
100
+ # # Create a client using the default configuration
101
+ # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new
102
+ #
103
+ # # Create a client using a custom configuration
104
+ # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new do |config|
105
+ # config.timeout = 10.0
106
+ # end
107
+ #
108
+ # @yield [config] Configure the Snapshots client.
109
+ # @yieldparam config [Client::Configuration]
110
+ #
111
+ def initialize
112
+ # Create the configuration object
113
+ @config = Configuration.new Client.configure
114
+
115
+ # Yield the configuration if needed
116
+ yield @config if block_given?
117
+
118
+ # Create credentials
119
+ credentials = @config.credentials
120
+ # Use self-signed JWT if the endpoint is unchanged from default,
121
+ # but only if the default endpoint does not have a region prefix.
122
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
123
+ !@config.endpoint.split(".").first.include?("-")
124
+ credentials ||= Credentials.default scope: @config.scope,
125
+ enable_self_signed_jwt: enable_self_signed_jwt
126
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
127
+ credentials = Credentials.new credentials, scope: @config.scope
128
+ end
129
+
130
+ @quota_project_id = @config.quota_project
131
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
132
+
133
+ @snapshots_stub = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
134
+ end
135
+
136
+ # Service calls
137
+
138
+ ##
139
+ # Gets information about a snapshot.
140
+ #
141
+ # @overload get_snapshot(request, options = nil)
142
+ # Pass arguments to `get_snapshot` via a request object, either of type
143
+ # {::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest} or an equivalent Hash.
144
+ #
145
+ # @param request [::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest, ::Hash]
146
+ # A request object representing the call parameters. Required. To specify no
147
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
148
+ # @param options [::Gapic::CallOptions, ::Hash]
149
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
150
+ #
151
+ # @overload get_snapshot(project_id: nil, snapshot_id: nil, location: nil)
152
+ # Pass arguments to `get_snapshot` via keyword arguments. Note that at
153
+ # least one keyword argument is required. To specify no parameters, or to keep all
154
+ # the default parameter values, pass an empty Hash as a request object (see above).
155
+ #
156
+ # @param project_id [::String]
157
+ # The ID of the Cloud Platform project that the snapshot belongs to.
158
+ # @param snapshot_id [::String]
159
+ # The ID of the snapshot.
160
+ # @param location [::String]
161
+ # The location that contains this snapshot.
162
+ # @yield [result, operation] Access the result along with the TransportOperation object
163
+ # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::Snapshot]
164
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
165
+ #
166
+ # @return [::Google::Cloud::Dataflow::V1beta3::Snapshot]
167
+ #
168
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
169
+ def get_snapshot request, options = nil
170
+ raise ::ArgumentError, "request must be provided" if request.nil?
171
+
172
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest
173
+
174
+ # Converts hash and nil to an options object
175
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
176
+
177
+ # Customize the options with defaults
178
+ call_metadata = @config.rpcs.get_snapshot.metadata.to_h
179
+
180
+ # Set x-goog-api-client and x-goog-user-project headers
181
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
182
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
183
+ gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION,
184
+ transports_version_send: [:rest]
185
+
186
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
187
+
188
+ options.apply_defaults timeout: @config.rpcs.get_snapshot.timeout,
189
+ metadata: call_metadata,
190
+ retry_policy: @config.rpcs.get_snapshot.retry_policy
191
+
192
+ options.apply_defaults timeout: @config.timeout,
193
+ metadata: @config.metadata,
194
+ retry_policy: @config.retry_policy
195
+
196
+ @snapshots_stub.get_snapshot request, options do |result, operation|
197
+ yield result, operation if block_given?
198
+ return result
199
+ end
200
+ rescue ::Gapic::Rest::Error => e
201
+ raise ::Google::Cloud::Error.from_error(e)
202
+ end
203
+
204
+ ##
205
+ # Deletes a snapshot.
206
+ #
207
+ # @overload delete_snapshot(request, options = nil)
208
+ # Pass arguments to `delete_snapshot` via a request object, either of type
209
+ # {::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest} or an equivalent Hash.
210
+ #
211
+ # @param request [::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest, ::Hash]
212
+ # A request object representing the call parameters. Required. To specify no
213
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
214
+ # @param options [::Gapic::CallOptions, ::Hash]
215
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
216
+ #
217
+ # @overload delete_snapshot(project_id: nil, snapshot_id: nil, location: nil)
218
+ # Pass arguments to `delete_snapshot` via keyword arguments. Note that at
219
+ # least one keyword argument is required. To specify no parameters, or to keep all
220
+ # the default parameter values, pass an empty Hash as a request object (see above).
221
+ #
222
+ # @param project_id [::String]
223
+ # The ID of the Cloud Platform project that the snapshot belongs to.
224
+ # @param snapshot_id [::String]
225
+ # The ID of the snapshot.
226
+ # @param location [::String]
227
+ # The location that contains this snapshot.
228
+ # @yield [result, operation] Access the result along with the TransportOperation object
229
+ # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse]
230
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
231
+ #
232
+ # @return [::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse]
233
+ #
234
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
235
+ def delete_snapshot request, options = nil
236
+ raise ::ArgumentError, "request must be provided" if request.nil?
237
+
238
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest
239
+
240
+ # Converts hash and nil to an options object
241
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
242
+
243
+ # Customize the options with defaults
244
+ call_metadata = @config.rpcs.delete_snapshot.metadata.to_h
245
+
246
+ # Set x-goog-api-client and x-goog-user-project headers
247
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
248
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
249
+ gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION,
250
+ transports_version_send: [:rest]
251
+
252
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
253
+
254
+ options.apply_defaults timeout: @config.rpcs.delete_snapshot.timeout,
255
+ metadata: call_metadata,
256
+ retry_policy: @config.rpcs.delete_snapshot.retry_policy
257
+
258
+ options.apply_defaults timeout: @config.timeout,
259
+ metadata: @config.metadata,
260
+ retry_policy: @config.retry_policy
261
+
262
+ @snapshots_stub.delete_snapshot request, options do |result, operation|
263
+ yield result, operation if block_given?
264
+ return result
265
+ end
266
+ rescue ::Gapic::Rest::Error => e
267
+ raise ::Google::Cloud::Error.from_error(e)
268
+ end
269
+
270
+ ##
271
+ # Lists snapshots.
272
+ #
273
+ # @overload list_snapshots(request, options = nil)
274
+ # Pass arguments to `list_snapshots` via a request object, either of type
275
+ # {::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest} or an equivalent Hash.
276
+ #
277
+ # @param request [::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest, ::Hash]
278
+ # A request object representing the call parameters. Required. To specify no
279
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
280
+ # @param options [::Gapic::CallOptions, ::Hash]
281
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
282
+ #
283
+ # @overload list_snapshots(project_id: nil, job_id: nil, location: nil)
284
+ # Pass arguments to `list_snapshots` via keyword arguments. Note that at
285
+ # least one keyword argument is required. To specify no parameters, or to keep all
286
+ # the default parameter values, pass an empty Hash as a request object (see above).
287
+ #
288
+ # @param project_id [::String]
289
+ # The project ID to list snapshots for.
290
+ # @param job_id [::String]
291
+ # If specified, list snapshots created from this job.
292
+ # @param location [::String]
293
+ # The location to list snapshots in.
294
+ # @yield [result, operation] Access the result along with the TransportOperation object
295
+ # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse]
296
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
297
+ #
298
+ # @return [::Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse]
299
+ #
300
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
301
+ def list_snapshots request, options = nil
302
+ raise ::ArgumentError, "request must be provided" if request.nil?
303
+
304
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest
305
+
306
+ # Converts hash and nil to an options object
307
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
308
+
309
+ # Customize the options with defaults
310
+ call_metadata = @config.rpcs.list_snapshots.metadata.to_h
311
+
312
+ # Set x-goog-api-client and x-goog-user-project headers
313
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
314
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
315
+ gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION,
316
+ transports_version_send: [:rest]
317
+
318
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
319
+
320
+ options.apply_defaults timeout: @config.rpcs.list_snapshots.timeout,
321
+ metadata: call_metadata,
322
+ retry_policy: @config.rpcs.list_snapshots.retry_policy
323
+
324
+ options.apply_defaults timeout: @config.timeout,
325
+ metadata: @config.metadata,
326
+ retry_policy: @config.retry_policy
327
+
328
+ @snapshots_stub.list_snapshots request, options do |result, operation|
329
+ yield result, operation if block_given?
330
+ return result
331
+ end
332
+ rescue ::Gapic::Rest::Error => e
333
+ raise ::Google::Cloud::Error.from_error(e)
334
+ end
335
+
336
+ ##
337
+ # Configuration class for the Snapshots REST API.
338
+ #
339
+ # This class represents the configuration for Snapshots REST,
340
+ # providing control over timeouts, retry behavior, logging, transport
341
+ # parameters, and other low-level controls. Certain parameters can also be
342
+ # applied individually to specific RPCs. See
343
+ # {::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client::Configuration::Rpcs}
344
+ # for a list of RPCs that can be configured independently.
345
+ #
346
+ # Configuration can be applied globally to all clients, or to a single client
347
+ # on construction.
348
+ #
349
+ # @example
350
+ #
351
+ # # Modify the global config, setting the timeout for
352
+ # # get_snapshot to 20 seconds,
353
+ # # and all remaining timeouts to 10 seconds.
354
+ # ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.configure do |config|
355
+ # config.timeout = 10.0
356
+ # config.rpcs.get_snapshot.timeout = 20.0
357
+ # end
358
+ #
359
+ # # Apply the above configuration only to a new client.
360
+ # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new do |config|
361
+ # config.timeout = 10.0
362
+ # config.rpcs.get_snapshot.timeout = 20.0
363
+ # end
364
+ #
365
+ # @!attribute [rw] endpoint
366
+ # The hostname or hostname:port of the service endpoint.
367
+ # Defaults to `"dataflow.googleapis.com"`.
368
+ # @return [::String]
369
+ # @!attribute [rw] credentials
370
+ # Credentials to send with calls. You may provide any of the following types:
371
+ # * (`String`) The path to a service account key file in JSON format
372
+ # * (`Hash`) A service account key as a Hash
373
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
374
+ # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
375
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
376
+ # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
377
+ # * (`nil`) indicating no credentials
378
+ # @return [::Object]
379
+ # @!attribute [rw] scope
380
+ # The OAuth scopes
381
+ # @return [::Array<::String>]
382
+ # @!attribute [rw] lib_name
383
+ # The library name as recorded in instrumentation and logging
384
+ # @return [::String]
385
+ # @!attribute [rw] lib_version
386
+ # The library version as recorded in instrumentation and logging
387
+ # @return [::String]
388
+ # @!attribute [rw] timeout
389
+ # The call timeout in seconds.
390
+ # @return [::Numeric]
391
+ # @!attribute [rw] metadata
392
+ # Additional headers to be sent with the call.
393
+ # @return [::Hash{::Symbol=>::String}]
394
+ # @!attribute [rw] retry_policy
395
+ # The retry policy. The value is a hash with the following keys:
396
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
397
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
398
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
399
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
400
+ # trigger a retry.
401
+ # @return [::Hash]
402
+ # @!attribute [rw] quota_project
403
+ # A separate project against which to charge quota.
404
+ # @return [::String]
405
+ #
406
+ class Configuration
407
+ extend ::Gapic::Config
408
+
409
+ config_attr :endpoint, "dataflow.googleapis.com", ::String
410
+ config_attr :credentials, nil do |value|
411
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
412
+ allowed.any? { |klass| klass === value }
413
+ end
414
+ config_attr :scope, nil, ::String, ::Array, nil
415
+ config_attr :lib_name, nil, ::String, nil
416
+ config_attr :lib_version, nil, ::String, nil
417
+ config_attr :timeout, nil, ::Numeric, nil
418
+ config_attr :metadata, nil, ::Hash, nil
419
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
420
+ config_attr :quota_project, nil, ::String, nil
421
+
422
+ # @private
423
+ def initialize parent_config = nil
424
+ @parent_config = parent_config unless parent_config.nil?
425
+
426
+ yield self if block_given?
427
+ end
428
+
429
+ ##
430
+ # Configurations for individual RPCs
431
+ # @return [Rpcs]
432
+ #
433
+ def rpcs
434
+ @rpcs ||= begin
435
+ parent_rpcs = nil
436
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
437
+ Rpcs.new parent_rpcs
438
+ end
439
+ end
440
+
441
+ ##
442
+ # Configuration RPC class for the Snapshots API.
443
+ #
444
+ # Includes fields providing the configuration for each RPC in this service.
445
+ # Each configuration object is of type `Gapic::Config::Method` and includes
446
+ # the following configuration fields:
447
+ #
448
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
449
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
450
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
451
+ # include the following keys:
452
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
453
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
454
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
455
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
456
+ # trigger a retry.
457
+ #
458
+ class Rpcs
459
+ ##
460
+ # RPC-specific configuration for `get_snapshot`
461
+ # @return [::Gapic::Config::Method]
462
+ #
463
+ attr_reader :get_snapshot
464
+ ##
465
+ # RPC-specific configuration for `delete_snapshot`
466
+ # @return [::Gapic::Config::Method]
467
+ #
468
+ attr_reader :delete_snapshot
469
+ ##
470
+ # RPC-specific configuration for `list_snapshots`
471
+ # @return [::Gapic::Config::Method]
472
+ #
473
+ attr_reader :list_snapshots
474
+
475
+ # @private
476
+ def initialize parent_rpcs = nil
477
+ get_snapshot_config = parent_rpcs.get_snapshot if parent_rpcs.respond_to? :get_snapshot
478
+ @get_snapshot = ::Gapic::Config::Method.new get_snapshot_config
479
+ delete_snapshot_config = parent_rpcs.delete_snapshot if parent_rpcs.respond_to? :delete_snapshot
480
+ @delete_snapshot = ::Gapic::Config::Method.new delete_snapshot_config
481
+ list_snapshots_config = parent_rpcs.list_snapshots if parent_rpcs.respond_to? :list_snapshots
482
+ @list_snapshots = ::Gapic::Config::Method.new list_snapshots_config
483
+
484
+ yield self if block_given?
485
+ end
486
+ end
487
+ end
488
+ end
489
+ end
490
+ end
491
+ end
492
+ end
493
+ end
494
+ end