google-cloud-dataflow-v1beta3 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +169 -0
  4. data/LICENSE.md +201 -0
  5. data/README.md +139 -0
  6. data/lib/google-cloud-dataflow-v1beta3.rb +21 -0
  7. data/lib/google/cloud/dataflow/v1beta3.rb +43 -0
  8. data/lib/google/cloud/dataflow/v1beta3/flex_templates_service.rb +48 -0
  9. data/lib/google/cloud/dataflow/v1beta3/flex_templates_service/client.rb +376 -0
  10. data/lib/google/cloud/dataflow/v1beta3/flex_templates_service/credentials.rb +54 -0
  11. data/lib/google/cloud/dataflow/v1beta3/jobs.rb +49 -0
  12. data/lib/google/cloud/dataflow/v1beta3/jobs/client.rb +868 -0
  13. data/lib/google/cloud/dataflow/v1beta3/jobs/credentials.rb +54 -0
  14. data/lib/google/cloud/dataflow/v1beta3/messages.rb +49 -0
  15. data/lib/google/cloud/dataflow/v1beta3/messages/client.rb +399 -0
  16. data/lib/google/cloud/dataflow/v1beta3/messages/credentials.rb +54 -0
  17. data/lib/google/cloud/dataflow/v1beta3/metrics.rb +49 -0
  18. data/lib/google/cloud/dataflow/v1beta3/metrics/client.rb +560 -0
  19. data/lib/google/cloud/dataflow/v1beta3/metrics/credentials.rb +54 -0
  20. data/lib/google/cloud/dataflow/v1beta3/snapshots.rb +48 -0
  21. data/lib/google/cloud/dataflow/v1beta3/snapshots/client.rb +515 -0
  22. data/lib/google/cloud/dataflow/v1beta3/snapshots/credentials.rb +54 -0
  23. data/lib/google/cloud/dataflow/v1beta3/templates_service.rb +48 -0
  24. data/lib/google/cloud/dataflow/v1beta3/templates_service/client.rb +543 -0
  25. data/lib/google/cloud/dataflow/v1beta3/templates_service/credentials.rb +54 -0
  26. data/lib/google/cloud/dataflow/v1beta3/version.rb +28 -0
  27. data/lib/google/dataflow/v1beta3/environment_pb.rb +167 -0
  28. data/lib/google/dataflow/v1beta3/jobs_pb.rb +292 -0
  29. data/lib/google/dataflow/v1beta3/jobs_services_pb.rb +83 -0
  30. data/lib/google/dataflow/v1beta3/messages_pb.rb +83 -0
  31. data/lib/google/dataflow/v1beta3/messages_services_pb.rb +52 -0
  32. data/lib/google/dataflow/v1beta3/metrics_pb.rb +126 -0
  33. data/lib/google/dataflow/v1beta3/metrics_services_pb.rb +61 -0
  34. data/lib/google/dataflow/v1beta3/snapshots_pb.rb +75 -0
  35. data/lib/google/dataflow/v1beta3/snapshots_services_pb.rb +49 -0
  36. data/lib/google/dataflow/v1beta3/streaming_pb.rb +105 -0
  37. data/lib/google/dataflow/v1beta3/templates_pb.rb +213 -0
  38. data/lib/google/dataflow/v1beta3/templates_services_pb.rb +65 -0
  39. data/proto_docs/README.md +4 -0
  40. data/proto_docs/google/api/field_behavior.rb +65 -0
  41. data/proto_docs/google/api/resource.rb +283 -0
  42. data/proto_docs/google/dataflow/v1beta3/environment.rb +583 -0
  43. data/proto_docs/google/dataflow/v1beta3/jobs.rb +927 -0
  44. data/proto_docs/google/dataflow/v1beta3/messages.rb +226 -0
  45. data/proto_docs/google/dataflow/v1beta3/metrics.rb +367 -0
  46. data/proto_docs/google/dataflow/v1beta3/snapshots.rb +160 -0
  47. data/proto_docs/google/dataflow/v1beta3/streaming.rb +280 -0
  48. data/proto_docs/google/dataflow/v1beta3/templates.rb +669 -0
  49. data/proto_docs/google/protobuf/any.rb +141 -0
  50. data/proto_docs/google/protobuf/duration.rb +98 -0
  51. data/proto_docs/google/protobuf/struct.rb +96 -0
  52. data/proto_docs/google/protobuf/timestamp.rb +129 -0
  53. data/proto_docs/google/rpc/status.rb +46 -0
  54. metadata +243 -0
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 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
+ # This gem does not autoload during Bundler.require. To load this gem,
20
+ # issue explicit require statements for the packages desired, e.g.:
21
+ # require "google/cloud/dataflow/v1beta3"
@@ -0,0 +1,43 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 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/dataflow/v1beta3/snapshots"
20
+ require "google/cloud/dataflow/v1beta3/jobs"
21
+ require "google/cloud/dataflow/v1beta3/messages"
22
+ require "google/cloud/dataflow/v1beta3/metrics"
23
+ require "google/cloud/dataflow/v1beta3/templates_service"
24
+ require "google/cloud/dataflow/v1beta3/flex_templates_service"
25
+ require "google/cloud/dataflow/v1beta3/version"
26
+
27
+ module Google
28
+ module Cloud
29
+ module Dataflow
30
+ ##
31
+ # To load this package, including all its services, and instantiate a client:
32
+ #
33
+ # require "google/cloud/dataflow/v1beta3"
34
+ # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new
35
+ #
36
+ module V1beta3
37
+ end
38
+ end
39
+ end
40
+ end
41
+
42
+ helper_path = ::File.join __dir__, "v1beta3", "_helpers.rb"
43
+ require "google/cloud/dataflow/v1beta3/_helpers" if ::File.file? helper_path
@@ -0,0 +1,48 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 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 "gapic/common"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/dataflow/v1beta3/version"
24
+
25
+ require "google/cloud/dataflow/v1beta3/flex_templates_service/credentials"
26
+ require "google/cloud/dataflow/v1beta3/flex_templates_service/client"
27
+
28
+ module Google
29
+ module Cloud
30
+ module Dataflow
31
+ module V1beta3
32
+ ##
33
+ # Provides a service for Flex templates. This feature is not ready yet.
34
+ #
35
+ # To load this service and instantiate a client:
36
+ #
37
+ # require "google/cloud/dataflow/v1beta3/flex_templates_service"
38
+ # client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.new
39
+ #
40
+ module FlexTemplatesService
41
+ end
42
+ end
43
+ end
44
+ end
45
+ end
46
+
47
+ helper_path = ::File.join __dir__, "flex_templates_service", "helpers.rb"
48
+ require "google/cloud/dataflow/v1beta3/flex_templates_service/helpers" if ::File.file? helper_path
@@ -0,0 +1,376 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 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/templates_pb"
21
+
22
+ module Google
23
+ module Cloud
24
+ module Dataflow
25
+ module V1beta3
26
+ module FlexTemplatesService
27
+ ##
28
+ # Client for the FlexTemplatesService service.
29
+ #
30
+ # Provides a service for Flex templates. This feature is not ready yet.
31
+ #
32
+ class Client
33
+ # @private
34
+ attr_reader :flex_templates_service_stub
35
+
36
+ ##
37
+ # Configure the FlexTemplatesService Client class.
38
+ #
39
+ # See {::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client::Configuration}
40
+ # for a description of the configuration fields.
41
+ #
42
+ # ## Example
43
+ #
44
+ # To modify the configuration for all FlexTemplatesService clients:
45
+ #
46
+ # ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.configure do |config|
47
+ # config.timeout = 10.0
48
+ # end
49
+ #
50
+ # @yield [config] Configure the Client client.
51
+ # @yieldparam config [Client::Configuration]
52
+ #
53
+ # @return [Client::Configuration]
54
+ #
55
+ def self.configure
56
+ @configure ||= begin
57
+ namespace = ["Google", "Cloud", "Dataflow", "V1beta3"]
58
+ parent_config = while namespace.any?
59
+ parent_name = namespace.join "::"
60
+ parent_const = const_get parent_name
61
+ break parent_const.configure if parent_const.respond_to? :configure
62
+ namespace.pop
63
+ end
64
+ default_config = Client::Configuration.new parent_config
65
+
66
+ default_config
67
+ end
68
+ yield @configure if block_given?
69
+ @configure
70
+ end
71
+
72
+ ##
73
+ # Configure the FlexTemplatesService Client instance.
74
+ #
75
+ # The configuration is set to the derived mode, meaning that values can be changed,
76
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
77
+ # should be made on {Client.configure}.
78
+ #
79
+ # See {::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client::Configuration}
80
+ # for a description of the configuration fields.
81
+ #
82
+ # @yield [config] Configure the Client client.
83
+ # @yieldparam config [Client::Configuration]
84
+ #
85
+ # @return [Client::Configuration]
86
+ #
87
+ def configure
88
+ yield @config if block_given?
89
+ @config
90
+ end
91
+
92
+ ##
93
+ # Create a new FlexTemplatesService client object.
94
+ #
95
+ # ## Examples
96
+ #
97
+ # To create a new FlexTemplatesService client with the default
98
+ # configuration:
99
+ #
100
+ # client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.new
101
+ #
102
+ # To create a new FlexTemplatesService client with a custom
103
+ # configuration:
104
+ #
105
+ # client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.new do |config|
106
+ # config.timeout = 10.0
107
+ # end
108
+ #
109
+ # @yield [config] Configure the FlexTemplatesService client.
110
+ # @yieldparam config [Client::Configuration]
111
+ #
112
+ def initialize
113
+ # These require statements are intentionally placed here to initialize
114
+ # the gRPC module only when it's required.
115
+ # See https://github.com/googleapis/toolkit/issues/446
116
+ require "gapic/grpc"
117
+ require "google/dataflow/v1beta3/templates_services_pb"
118
+
119
+ # Create the configuration object
120
+ @config = Configuration.new Client.configure
121
+
122
+ # Yield the configuration if needed
123
+ yield @config if block_given?
124
+
125
+ # Create credentials
126
+ credentials = @config.credentials
127
+ # Use self-signed JWT if the scope and endpoint are unchanged from default,
128
+ # but only if the default endpoint does not have a region prefix.
129
+ enable_self_signed_jwt = @config.scope == Client.configure.scope &&
130
+ @config.endpoint == Client.configure.endpoint &&
131
+ !@config.endpoint.split(".").first.include?("-")
132
+ credentials ||= Credentials.default scope: @config.scope,
133
+ enable_self_signed_jwt: enable_self_signed_jwt
134
+ if credentials.is_a?(String) || credentials.is_a?(Hash)
135
+ credentials = Credentials.new credentials, scope: @config.scope
136
+ end
137
+ @quota_project_id = @config.quota_project
138
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
139
+
140
+ @flex_templates_service_stub = ::Gapic::ServiceStub.new(
141
+ ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Stub,
142
+ credentials: credentials,
143
+ endpoint: @config.endpoint,
144
+ channel_args: @config.channel_args,
145
+ interceptors: @config.interceptors
146
+ )
147
+ end
148
+
149
+ # Service calls
150
+
151
+ ##
152
+ # Launch a job with a FlexTemplate.
153
+ #
154
+ # @overload launch_flex_template(request, options = nil)
155
+ # Pass arguments to `launch_flex_template` via a request object, either of type
156
+ # {::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest} or an equivalent Hash.
157
+ #
158
+ # @param request [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest, ::Hash]
159
+ # A request object representing the call parameters. Required. To specify no
160
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
161
+ # @param options [::Gapic::CallOptions, ::Hash]
162
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
163
+ #
164
+ # @overload launch_flex_template(project_id: nil, launch_parameter: nil, location: nil, validate_only: nil)
165
+ # Pass arguments to `launch_flex_template` via keyword arguments. Note that at
166
+ # least one keyword argument is required. To specify no parameters, or to keep all
167
+ # the default parameter values, pass an empty Hash as a request object (see above).
168
+ #
169
+ # @param project_id [::String]
170
+ # Required. The ID of the Cloud Platform project that the job belongs to.
171
+ # @param launch_parameter [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateParameter, ::Hash]
172
+ # Required. Parameter to launch a job form Flex Template.
173
+ # @param location [::String]
174
+ # Required. The [regional endpoint]
175
+ # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to
176
+ # which to direct the request. E.g., us-central1, us-west1.
177
+ # @param validate_only [::Boolean]
178
+ # If true, the request is validated but not actually executed.
179
+ # Defaults to false.
180
+ #
181
+ # @yield [response, operation] Access the result along with the RPC operation
182
+ # @yieldparam response [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse]
183
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
184
+ #
185
+ # @return [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse]
186
+ #
187
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
188
+ #
189
+ def launch_flex_template request, options = nil
190
+ raise ::ArgumentError, "request must be provided" if request.nil?
191
+
192
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest
193
+
194
+ # Converts hash and nil to an options object
195
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
196
+
197
+ # Customize the options with defaults
198
+ metadata = @config.rpcs.launch_flex_template.metadata.to_h
199
+
200
+ # Set x-goog-api-client and x-goog-user-project headers
201
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
202
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
203
+ gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION
204
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
205
+
206
+ options.apply_defaults timeout: @config.rpcs.launch_flex_template.timeout,
207
+ metadata: metadata,
208
+ retry_policy: @config.rpcs.launch_flex_template.retry_policy
209
+ options.apply_defaults metadata: @config.metadata,
210
+ retry_policy: @config.retry_policy
211
+
212
+ @flex_templates_service_stub.call_rpc :launch_flex_template, request, options: options do |response, operation|
213
+ yield response, operation if block_given?
214
+ return response
215
+ end
216
+ rescue ::GRPC::BadStatus => e
217
+ raise ::Google::Cloud::Error.from_error(e)
218
+ end
219
+
220
+ ##
221
+ # Configuration class for the FlexTemplatesService API.
222
+ #
223
+ # This class represents the configuration for FlexTemplatesService,
224
+ # providing control over timeouts, retry behavior, logging, transport
225
+ # parameters, and other low-level controls. Certain parameters can also be
226
+ # applied individually to specific RPCs. See
227
+ # {::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client::Configuration::Rpcs}
228
+ # for a list of RPCs that can be configured independently.
229
+ #
230
+ # Configuration can be applied globally to all clients, or to a single client
231
+ # on construction.
232
+ #
233
+ # # Examples
234
+ #
235
+ # To modify the global config, setting the timeout for launch_flex_template
236
+ # to 20 seconds, and all remaining timeouts to 10 seconds:
237
+ #
238
+ # ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.configure do |config|
239
+ # config.timeout = 10.0
240
+ # config.rpcs.launch_flex_template.timeout = 20.0
241
+ # end
242
+ #
243
+ # To apply the above configuration only to a new client:
244
+ #
245
+ # client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.new do |config|
246
+ # config.timeout = 10.0
247
+ # config.rpcs.launch_flex_template.timeout = 20.0
248
+ # end
249
+ #
250
+ # @!attribute [rw] endpoint
251
+ # The hostname or hostname:port of the service endpoint.
252
+ # Defaults to `"dataflow.googleapis.com"`.
253
+ # @return [::String]
254
+ # @!attribute [rw] credentials
255
+ # Credentials to send with calls. You may provide any of the following types:
256
+ # * (`String`) The path to a service account key file in JSON format
257
+ # * (`Hash`) A service account key as a Hash
258
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
259
+ # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
260
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
261
+ # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
262
+ # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
263
+ # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
264
+ # * (`nil`) indicating no credentials
265
+ # @return [::Object]
266
+ # @!attribute [rw] scope
267
+ # The OAuth scopes
268
+ # @return [::Array<::String>]
269
+ # @!attribute [rw] lib_name
270
+ # The library name as recorded in instrumentation and logging
271
+ # @return [::String]
272
+ # @!attribute [rw] lib_version
273
+ # The library version as recorded in instrumentation and logging
274
+ # @return [::String]
275
+ # @!attribute [rw] channel_args
276
+ # Extra parameters passed to the gRPC channel. Note: this is ignored if a
277
+ # `GRPC::Core::Channel` object is provided as the credential.
278
+ # @return [::Hash]
279
+ # @!attribute [rw] interceptors
280
+ # An array of interceptors that are run before calls are executed.
281
+ # @return [::Array<::GRPC::ClientInterceptor>]
282
+ # @!attribute [rw] timeout
283
+ # The call timeout in seconds.
284
+ # @return [::Numeric]
285
+ # @!attribute [rw] metadata
286
+ # Additional gRPC headers to be sent with the call.
287
+ # @return [::Hash{::Symbol=>::String}]
288
+ # @!attribute [rw] retry_policy
289
+ # The retry policy. The value is a hash with the following keys:
290
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
291
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
292
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
293
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
294
+ # trigger a retry.
295
+ # @return [::Hash]
296
+ # @!attribute [rw] quota_project
297
+ # A separate project against which to charge quota.
298
+ # @return [::String]
299
+ #
300
+ class Configuration
301
+ extend ::Gapic::Config
302
+
303
+ config_attr :endpoint, "dataflow.googleapis.com", ::String
304
+ config_attr :credentials, nil do |value|
305
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
306
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
307
+ allowed.any? { |klass| klass === value }
308
+ end
309
+ config_attr :scope, nil, ::String, ::Array, nil
310
+ config_attr :lib_name, nil, ::String, nil
311
+ config_attr :lib_version, nil, ::String, nil
312
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
313
+ config_attr :interceptors, nil, ::Array, nil
314
+ config_attr :timeout, nil, ::Numeric, nil
315
+ config_attr :metadata, nil, ::Hash, nil
316
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
317
+ config_attr :quota_project, nil, ::String, nil
318
+
319
+ # @private
320
+ def initialize parent_config = nil
321
+ @parent_config = parent_config unless parent_config.nil?
322
+
323
+ yield self if block_given?
324
+ end
325
+
326
+ ##
327
+ # Configurations for individual RPCs
328
+ # @return [Rpcs]
329
+ #
330
+ def rpcs
331
+ @rpcs ||= begin
332
+ parent_rpcs = nil
333
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
334
+ Rpcs.new parent_rpcs
335
+ end
336
+ end
337
+
338
+ ##
339
+ # Configuration RPC class for the FlexTemplatesService API.
340
+ #
341
+ # Includes fields providing the configuration for each RPC in this service.
342
+ # Each configuration object is of type `Gapic::Config::Method` and includes
343
+ # the following configuration fields:
344
+ #
345
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
346
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
347
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
348
+ # include the following keys:
349
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
350
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
351
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
352
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
353
+ # trigger a retry.
354
+ #
355
+ class Rpcs
356
+ ##
357
+ # RPC-specific configuration for `launch_flex_template`
358
+ # @return [::Gapic::Config::Method]
359
+ #
360
+ attr_reader :launch_flex_template
361
+
362
+ # @private
363
+ def initialize parent_rpcs = nil
364
+ launch_flex_template_config = parent_rpcs.launch_flex_template if parent_rpcs.respond_to? :launch_flex_template
365
+ @launch_flex_template = ::Gapic::Config::Method.new launch_flex_template_config
366
+
367
+ yield self if block_given?
368
+ end
369
+ end
370
+ end
371
+ end
372
+ end
373
+ end
374
+ end
375
+ end
376
+ end