google-cloud-dataflow-v1beta3 0.5.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/dataflow/v1beta3/flex_templates_service/client.rb +16 -5
  4. data/lib/google/cloud/dataflow/v1beta3/flex_templates_service/rest/client.rb +22 -4
  5. data/lib/google/cloud/dataflow/v1beta3/flex_templates_service/rest/service_stub.rb +1 -1
  6. data/lib/google/cloud/dataflow/v1beta3/jobs/client.rb +16 -5
  7. data/lib/google/cloud/dataflow/v1beta3/jobs/rest/client.rb +110 -4
  8. data/lib/google/cloud/dataflow/v1beta3/jobs/rest/service_stub.rb +6 -6
  9. data/lib/google/cloud/dataflow/v1beta3/messages/client.rb +16 -5
  10. data/lib/google/cloud/dataflow/v1beta3/messages/rest/client.rb +26 -4
  11. data/lib/google/cloud/dataflow/v1beta3/messages/rest/service_stub.rb +1 -1
  12. data/lib/google/cloud/dataflow/v1beta3/metrics/client.rb +16 -5
  13. data/lib/google/cloud/dataflow/v1beta3/metrics/rest/client.rb +62 -4
  14. data/lib/google/cloud/dataflow/v1beta3/metrics/rest/service_stub.rb +3 -3
  15. data/lib/google/cloud/dataflow/v1beta3/snapshots/client.rb +16 -5
  16. data/lib/google/cloud/dataflow/v1beta3/snapshots/rest/client.rb +54 -4
  17. data/lib/google/cloud/dataflow/v1beta3/snapshots/rest/service_stub.rb +3 -3
  18. data/lib/google/cloud/dataflow/v1beta3/templates_service/client.rb +16 -5
  19. data/lib/google/cloud/dataflow/v1beta3/templates_service/rest/client.rb +54 -4
  20. data/lib/google/cloud/dataflow/v1beta3/templates_service/rest/service_stub.rb +3 -3
  21. data/lib/google/cloud/dataflow/v1beta3/version.rb +1 -1
  22. data/lib/google/dataflow/v1beta3/environment_pb.rb +26 -132
  23. data/lib/google/dataflow/v1beta3/jobs_pb.rb +28 -234
  24. data/lib/google/dataflow/v1beta3/messages_pb.rb +26 -54
  25. data/lib/google/dataflow/v1beta3/metrics_pb.rb +26 -91
  26. data/lib/google/dataflow/v1beta3/snapshots_pb.rb +26 -46
  27. data/lib/google/dataflow/v1beta3/streaming_pb.rb +24 -74
  28. data/lib/google/dataflow/v1beta3/templates_pb.rb +26 -173
  29. data/proto_docs/google/api/client.rb +67 -4
  30. data/proto_docs/google/api/field_behavior.rb +14 -0
  31. data/proto_docs/google/protobuf/any.rb +7 -4
  32. data/proto_docs/google/protobuf/struct.rb +1 -1
  33. data/proto_docs/google/protobuf/timestamp.rb +1 -3
  34. metadata +5 -5
@@ -120,7 +120,7 @@ module Google
120
120
  credentials = @config.credentials
121
121
  # Use self-signed JWT if the endpoint is unchanged from default,
122
122
  # but only if the default endpoint does not have a region prefix.
123
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
123
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
124
124
  !@config.endpoint.split(".").first.include?("-")
125
125
  credentials ||= Credentials.default scope: @config.scope,
126
126
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -178,6 +178,22 @@ module Google
178
178
  # @return [::Google::Cloud::Dataflow::V1beta3::JobMetrics]
179
179
  #
180
180
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
181
+ #
182
+ # @example Basic example
183
+ # require "google/cloud/dataflow/v1beta3"
184
+ #
185
+ # # Create a client object. The client can be reused for multiple calls.
186
+ # client = Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.new
187
+ #
188
+ # # Create a request. To set request fields, pass in keyword arguments.
189
+ # request = Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest.new
190
+ #
191
+ # # Call the get_job_metrics method.
192
+ # result = client.get_job_metrics request
193
+ #
194
+ # # The returned object is of type Google::Cloud::Dataflow::V1beta3::JobMetrics.
195
+ # p result
196
+ #
181
197
  def get_job_metrics request, options = nil
182
198
  raise ::ArgumentError, "request must be provided" if request.nil?
183
199
 
@@ -256,6 +272,26 @@ module Google
256
272
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::StageSummary>]
257
273
  #
258
274
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
275
+ #
276
+ # @example Basic example
277
+ # require "google/cloud/dataflow/v1beta3"
278
+ #
279
+ # # Create a client object. The client can be reused for multiple calls.
280
+ # client = Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.new
281
+ #
282
+ # # Create a request. To set request fields, pass in keyword arguments.
283
+ # request = Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest.new
284
+ #
285
+ # # Call the get_job_execution_details method.
286
+ # result = client.get_job_execution_details request
287
+ #
288
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
289
+ # # over elements, and API calls will be issued to fetch pages as needed.
290
+ # result.each do |item|
291
+ # # Each element is of type ::Google::Cloud::Dataflow::V1beta3::StageSummary.
292
+ # p item
293
+ # end
294
+ #
259
295
  def get_job_execution_details request, options = nil
260
296
  raise ::ArgumentError, "request must be provided" if request.nil?
261
297
 
@@ -342,6 +378,26 @@ module Google
342
378
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::WorkerDetails>]
343
379
  #
344
380
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
381
+ #
382
+ # @example Basic example
383
+ # require "google/cloud/dataflow/v1beta3"
384
+ #
385
+ # # Create a client object. The client can be reused for multiple calls.
386
+ # client = Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.new
387
+ #
388
+ # # Create a request. To set request fields, pass in keyword arguments.
389
+ # request = Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest.new
390
+ #
391
+ # # Call the get_stage_execution_details method.
392
+ # result = client.get_stage_execution_details request
393
+ #
394
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
395
+ # # over elements, and API calls will be issued to fetch pages as needed.
396
+ # result.each do |item|
397
+ # # Each element is of type ::Google::Cloud::Dataflow::V1beta3::WorkerDetails.
398
+ # p item
399
+ # end
400
+ #
345
401
  def get_stage_execution_details request, options = nil
346
402
  raise ::ArgumentError, "request must be provided" if request.nil?
347
403
 
@@ -416,9 +472,9 @@ module Google
416
472
  # * (`String`) The path to a service account key file in JSON format
417
473
  # * (`Hash`) A service account key as a Hash
418
474
  # * (`Google::Auth::Credentials`) A googleauth credentials object
419
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
475
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
420
476
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
421
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
477
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
422
478
  # * (`nil`) indicating no credentials
423
479
  # @return [::Object]
424
480
  # @!attribute [rw] scope
@@ -451,7 +507,9 @@ module Google
451
507
  class Configuration
452
508
  extend ::Gapic::Config
453
509
 
454
- config_attr :endpoint, "dataflow.googleapis.com", ::String
510
+ DEFAULT_ENDPOINT = "dataflow.googleapis.com"
511
+
512
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
455
513
  config_attr :credentials, nil do |value|
456
514
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
457
515
  allowed.any? { |klass| klass === value }
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_get_job_metrics_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -97,7 +97,7 @@ module Google
97
97
 
98
98
  verb, uri, query_string_params, body = ServiceStub.transcode_get_job_execution_details_request request_pb
99
99
  query_string_params = if query_string_params.any?
100
- query_string_params.to_h { |p| p.split("=", 2) }
100
+ query_string_params.to_h { |p| p.split "=", 2 }
101
101
  else
102
102
  {}
103
103
  end
@@ -135,7 +135,7 @@ module Google
135
135
 
136
136
  verb, uri, query_string_params, body = ServiceStub.transcode_get_stage_execution_details_request request_pb
137
137
  query_string_params = if query_string_params.any?
138
- query_string_params.to_h { |p| p.split("=", 2) }
138
+ query_string_params.to_h { |p| p.split "=", 2 }
139
139
  else
140
140
  {}
141
141
  end
@@ -123,7 +123,7 @@ module Google
123
123
  credentials = @config.credentials
124
124
  # Use self-signed JWT if the endpoint is unchanged from default,
125
125
  # but only if the default endpoint does not have a region prefix.
126
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
126
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
127
127
  !@config.endpoint.split(".").first.include?("-")
128
128
  credentials ||= Credentials.default scope: @config.scope,
129
129
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -138,7 +138,8 @@ module Google
138
138
  credentials: credentials,
139
139
  endpoint: @config.endpoint,
140
140
  channel_args: @config.channel_args,
141
- interceptors: @config.interceptors
141
+ interceptors: @config.interceptors,
142
+ channel_pool_config: @config.channel_pool
142
143
  )
143
144
  end
144
145
 
@@ -467,9 +468,9 @@ module Google
467
468
  # * (`String`) The path to a service account key file in JSON format
468
469
  # * (`Hash`) A service account key as a Hash
469
470
  # * (`Google::Auth::Credentials`) A googleauth credentials object
470
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
471
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
471
472
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
472
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
473
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
473
474
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
474
475
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
475
476
  # * (`nil`) indicating no credentials
@@ -511,7 +512,9 @@ module Google
511
512
  class Configuration
512
513
  extend ::Gapic::Config
513
514
 
514
- config_attr :endpoint, "dataflow.googleapis.com", ::String
515
+ DEFAULT_ENDPOINT = "dataflow.googleapis.com"
516
+
517
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
515
518
  config_attr :credentials, nil do |value|
516
519
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
517
520
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -546,6 +549,14 @@ module Google
546
549
  end
547
550
  end
548
551
 
552
+ ##
553
+ # Configuration for the channel pool
554
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
555
+ #
556
+ def channel_pool
557
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
558
+ end
559
+
549
560
  ##
550
561
  # Configuration RPC class for the Snapshots API.
551
562
  #
@@ -119,7 +119,7 @@ module Google
119
119
  credentials = @config.credentials
120
120
  # Use self-signed JWT if the endpoint is unchanged from default,
121
121
  # but only if the default endpoint does not have a region prefix.
122
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
122
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
123
123
  !@config.endpoint.split(".").first.include?("-")
124
124
  credentials ||= Credentials.default scope: @config.scope,
125
125
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -166,6 +166,22 @@ module Google
166
166
  # @return [::Google::Cloud::Dataflow::V1beta3::Snapshot]
167
167
  #
168
168
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
169
+ #
170
+ # @example Basic example
171
+ # require "google/cloud/dataflow/v1beta3"
172
+ #
173
+ # # Create a client object. The client can be reused for multiple calls.
174
+ # client = Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new
175
+ #
176
+ # # Create a request. To set request fields, pass in keyword arguments.
177
+ # request = Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest.new
178
+ #
179
+ # # Call the get_snapshot method.
180
+ # result = client.get_snapshot request
181
+ #
182
+ # # The returned object is of type Google::Cloud::Dataflow::V1beta3::Snapshot.
183
+ # p result
184
+ #
169
185
  def get_snapshot request, options = nil
170
186
  raise ::ArgumentError, "request must be provided" if request.nil?
171
187
 
@@ -232,6 +248,22 @@ module Google
232
248
  # @return [::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse]
233
249
  #
234
250
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
251
+ #
252
+ # @example Basic example
253
+ # require "google/cloud/dataflow/v1beta3"
254
+ #
255
+ # # Create a client object. The client can be reused for multiple calls.
256
+ # client = Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new
257
+ #
258
+ # # Create a request. To set request fields, pass in keyword arguments.
259
+ # request = Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest.new
260
+ #
261
+ # # Call the delete_snapshot method.
262
+ # result = client.delete_snapshot request
263
+ #
264
+ # # The returned object is of type Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse.
265
+ # p result
266
+ #
235
267
  def delete_snapshot request, options = nil
236
268
  raise ::ArgumentError, "request must be provided" if request.nil?
237
269
 
@@ -298,6 +330,22 @@ module Google
298
330
  # @return [::Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse]
299
331
  #
300
332
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
333
+ #
334
+ # @example Basic example
335
+ # require "google/cloud/dataflow/v1beta3"
336
+ #
337
+ # # Create a client object. The client can be reused for multiple calls.
338
+ # client = Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new
339
+ #
340
+ # # Create a request. To set request fields, pass in keyword arguments.
341
+ # request = Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest.new
342
+ #
343
+ # # Call the list_snapshots method.
344
+ # result = client.list_snapshots request
345
+ #
346
+ # # The returned object is of type Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse.
347
+ # p result
348
+ #
301
349
  def list_snapshots request, options = nil
302
350
  raise ::ArgumentError, "request must be provided" if request.nil?
303
351
 
@@ -371,9 +419,9 @@ module Google
371
419
  # * (`String`) The path to a service account key file in JSON format
372
420
  # * (`Hash`) A service account key as a Hash
373
421
  # * (`Google::Auth::Credentials`) A googleauth credentials object
374
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
422
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
375
423
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
376
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
424
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
377
425
  # * (`nil`) indicating no credentials
378
426
  # @return [::Object]
379
427
  # @!attribute [rw] scope
@@ -406,7 +454,9 @@ module Google
406
454
  class Configuration
407
455
  extend ::Gapic::Config
408
456
 
409
- config_attr :endpoint, "dataflow.googleapis.com", ::String
457
+ DEFAULT_ENDPOINT = "dataflow.googleapis.com"
458
+
459
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
410
460
  config_attr :credentials, nil do |value|
411
461
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
412
462
  allowed.any? { |klass| klass === value }
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_get_snapshot_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -97,7 +97,7 @@ module Google
97
97
 
98
98
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_snapshot_request request_pb
99
99
  query_string_params = if query_string_params.any?
100
- query_string_params.to_h { |p| p.split("=", 2) }
100
+ query_string_params.to_h { |p| p.split "=", 2 }
101
101
  else
102
102
  {}
103
103
  end
@@ -135,7 +135,7 @@ module Google
135
135
 
136
136
  verb, uri, query_string_params, body = ServiceStub.transcode_list_snapshots_request request_pb
137
137
  query_string_params = if query_string_params.any?
138
- query_string_params.to_h { |p| p.split("=", 2) }
138
+ query_string_params.to_h { |p| p.split "=", 2 }
139
139
  else
140
140
  {}
141
141
  end
@@ -123,7 +123,7 @@ module Google
123
123
  credentials = @config.credentials
124
124
  # Use self-signed JWT if the endpoint is unchanged from default,
125
125
  # but only if the default endpoint does not have a region prefix.
126
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
126
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
127
127
  !@config.endpoint.split(".").first.include?("-")
128
128
  credentials ||= Credentials.default scope: @config.scope,
129
129
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -138,7 +138,8 @@ module Google
138
138
  credentials: credentials,
139
139
  endpoint: @config.endpoint,
140
140
  channel_args: @config.channel_args,
141
- interceptors: @config.interceptors
141
+ interceptors: @config.interceptors,
142
+ channel_pool_config: @config.channel_pool
142
143
  )
143
144
  end
144
145
 
@@ -486,9 +487,9 @@ module Google
486
487
  # * (`String`) The path to a service account key file in JSON format
487
488
  # * (`Hash`) A service account key as a Hash
488
489
  # * (`Google::Auth::Credentials`) A googleauth credentials object
489
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
490
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
490
491
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
491
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
492
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
492
493
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
493
494
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
494
495
  # * (`nil`) indicating no credentials
@@ -530,7 +531,9 @@ module Google
530
531
  class Configuration
531
532
  extend ::Gapic::Config
532
533
 
533
- config_attr :endpoint, "dataflow.googleapis.com", ::String
534
+ DEFAULT_ENDPOINT = "dataflow.googleapis.com"
535
+
536
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
534
537
  config_attr :credentials, nil do |value|
535
538
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
536
539
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -565,6 +568,14 @@ module Google
565
568
  end
566
569
  end
567
570
 
571
+ ##
572
+ # Configuration for the channel pool
573
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
574
+ #
575
+ def channel_pool
576
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
577
+ end
578
+
568
579
  ##
569
580
  # Configuration RPC class for the TemplatesService API.
570
581
  #
@@ -119,7 +119,7 @@ module Google
119
119
  credentials = @config.credentials
120
120
  # Use self-signed JWT if the endpoint is unchanged from default,
121
121
  # but only if the default endpoint does not have a region prefix.
122
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
122
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
123
123
  !@config.endpoint.split(".").first.include?("-")
124
124
  credentials ||= Credentials.default scope: @config.scope,
125
125
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -176,6 +176,22 @@ module Google
176
176
  # @return [::Google::Cloud::Dataflow::V1beta3::Job]
177
177
  #
178
178
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
179
+ #
180
+ # @example Basic example
181
+ # require "google/cloud/dataflow/v1beta3"
182
+ #
183
+ # # Create a client object. The client can be reused for multiple calls.
184
+ # client = Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.new
185
+ #
186
+ # # Create a request. To set request fields, pass in keyword arguments.
187
+ # request = Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest.new
188
+ #
189
+ # # Call the create_job_from_template method.
190
+ # result = client.create_job_from_template request
191
+ #
192
+ # # The returned object is of type Google::Cloud::Dataflow::V1beta3::Job.
193
+ # p result
194
+ #
179
195
  def create_job_from_template request, options = nil
180
196
  raise ::ArgumentError, "request must be provided" if request.nil?
181
197
 
@@ -254,6 +270,22 @@ module Google
254
270
  # @return [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse]
255
271
  #
256
272
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
273
+ #
274
+ # @example Basic example
275
+ # require "google/cloud/dataflow/v1beta3"
276
+ #
277
+ # # Create a client object. The client can be reused for multiple calls.
278
+ # client = Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.new
279
+ #
280
+ # # Create a request. To set request fields, pass in keyword arguments.
281
+ # request = Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest.new
282
+ #
283
+ # # Call the launch_template method.
284
+ # result = client.launch_template request
285
+ #
286
+ # # The returned object is of type Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse.
287
+ # p result
288
+ #
257
289
  def launch_template request, options = nil
258
290
  raise ::ArgumentError, "request must be provided" if request.nil?
259
291
 
@@ -326,6 +358,22 @@ module Google
326
358
  # @return [::Google::Cloud::Dataflow::V1beta3::GetTemplateResponse]
327
359
  #
328
360
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
361
+ #
362
+ # @example Basic example
363
+ # require "google/cloud/dataflow/v1beta3"
364
+ #
365
+ # # Create a client object. The client can be reused for multiple calls.
366
+ # client = Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.new
367
+ #
368
+ # # Create a request. To set request fields, pass in keyword arguments.
369
+ # request = Google::Cloud::Dataflow::V1beta3::GetTemplateRequest.new
370
+ #
371
+ # # Call the get_template method.
372
+ # result = client.get_template request
373
+ #
374
+ # # The returned object is of type Google::Cloud::Dataflow::V1beta3::GetTemplateResponse.
375
+ # p result
376
+ #
329
377
  def get_template request, options = nil
330
378
  raise ::ArgumentError, "request must be provided" if request.nil?
331
379
 
@@ -399,9 +447,9 @@ module Google
399
447
  # * (`String`) The path to a service account key file in JSON format
400
448
  # * (`Hash`) A service account key as a Hash
401
449
  # * (`Google::Auth::Credentials`) A googleauth credentials object
402
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
450
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
403
451
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
404
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
452
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
405
453
  # * (`nil`) indicating no credentials
406
454
  # @return [::Object]
407
455
  # @!attribute [rw] scope
@@ -434,7 +482,9 @@ module Google
434
482
  class Configuration
435
483
  extend ::Gapic::Config
436
484
 
437
- config_attr :endpoint, "dataflow.googleapis.com", ::String
485
+ DEFAULT_ENDPOINT = "dataflow.googleapis.com"
486
+
487
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
438
488
  config_attr :credentials, nil do |value|
439
489
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
440
490
  allowed.any? { |klass| klass === value }
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_create_job_from_template_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -97,7 +97,7 @@ module Google
97
97
 
98
98
  verb, uri, query_string_params, body = ServiceStub.transcode_launch_template_request request_pb
99
99
  query_string_params = if query_string_params.any?
100
- query_string_params.to_h { |p| p.split("=", 2) }
100
+ query_string_params.to_h { |p| p.split "=", 2 }
101
101
  else
102
102
  {}
103
103
  end
@@ -135,7 +135,7 @@ module Google
135
135
 
136
136
  verb, uri, query_string_params, body = ServiceStub.transcode_get_template_request request_pb
137
137
  query_string_params = if query_string_params.any?
138
- query_string_params.to_h { |p| p.split("=", 2) }
138
+ query_string_params.to_h { |p| p.split "=", 2 }
139
139
  else
140
140
  {}
141
141
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Dataflow
23
23
  module V1beta3
24
- VERSION = "0.5.0"
24
+ VERSION = "0.7.0"
25
25
  end
26
26
  end
27
27
  end