google-cloud-dataflow-v1beta3 0.5.0 → 0.7.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 (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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 62d601b8ada8a63bf56004bcc7a5e95297400e0ac94774cefb8a13e593f3a74b
4
- data.tar.gz: 70628efad8dc91093b273989c334514f3e56e8b96e84ba819a3451d9d9a89686
3
+ metadata.gz: aac45754ceeb7b28c97bb2316ecc1641170275974260f79e17a2c881b4f5e4b2
4
+ data.tar.gz: 58c6b4c7b1081e04d740087ae215017ec59fde042e2e0eff963e7fdcc2b33699
5
5
  SHA512:
6
- metadata.gz: 9293307cba131f8ab55171b11365a220846f87811193ef0a8fff9aafd3af756b3e4de0dfda800e2f059c8b173ff834ce2ba59197515ffec5643feb5f39390688
7
- data.tar.gz: 64d2fa9e3195596785d349429d56a1b0564087114c1c9677262f3ce1b4bdab3418d9f98565dc5aeee1b69410dfa7dd06ccc7c16421e075daa0b85297d98b4eb0
6
+ metadata.gz: c278af553319fea37823484ec531529c49b4087fb73865d4614447d4016db27dcfa3366ecb2127b8f9b71d01ab795b937147736fd422e1ae0898e4c93713f7e9
7
+ data.tar.gz: ebec15a0de7022b7e946142c1fc49d319504ef7fc4afd7209f30faa9b4241dd20a7475391282eb9f5294de7d20c44de1afa2980ea5e3f28319b962c91e13f78a
data/README.md CHANGED
@@ -47,7 +47,7 @@ for general usage information.
47
47
 
48
48
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
49
49
  The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
50
- or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
50
+ or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
51
51
  that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
52
52
  and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
53
53
 
@@ -121,7 +121,7 @@ module Google
121
121
  credentials = @config.credentials
122
122
  # Use self-signed JWT if the endpoint is unchanged from default,
123
123
  # but only if the default endpoint does not have a region prefix.
124
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
124
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
125
125
  !@config.endpoint.split(".").first.include?("-")
126
126
  credentials ||= Credentials.default scope: @config.scope,
127
127
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -136,7 +136,8 @@ module Google
136
136
  credentials: credentials,
137
137
  endpoint: @config.endpoint,
138
138
  channel_args: @config.channel_args,
139
- interceptors: @config.interceptors
139
+ interceptors: @config.interceptors,
140
+ channel_pool_config: @config.channel_pool
140
141
  )
141
142
  end
142
143
 
@@ -277,9 +278,9 @@ module Google
277
278
  # * (`String`) The path to a service account key file in JSON format
278
279
  # * (`Hash`) A service account key as a Hash
279
280
  # * (`Google::Auth::Credentials`) A googleauth credentials object
280
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
281
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
281
282
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
282
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
283
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
283
284
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
284
285
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
285
286
  # * (`nil`) indicating no credentials
@@ -321,7 +322,9 @@ module Google
321
322
  class Configuration
322
323
  extend ::Gapic::Config
323
324
 
324
- config_attr :endpoint, "dataflow.googleapis.com", ::String
325
+ DEFAULT_ENDPOINT = "dataflow.googleapis.com"
326
+
327
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
325
328
  config_attr :credentials, nil do |value|
326
329
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
327
330
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -356,6 +359,14 @@ module Google
356
359
  end
357
360
  end
358
361
 
362
+ ##
363
+ # Configuration for the channel pool
364
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
365
+ #
366
+ def channel_pool
367
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
368
+ end
369
+
359
370
  ##
360
371
  # Configuration RPC class for the FlexTemplatesService API.
361
372
  #
@@ -117,7 +117,7 @@ module Google
117
117
  credentials = @config.credentials
118
118
  # Use self-signed JWT if the endpoint is unchanged from default,
119
119
  # but only if the default endpoint does not have a region prefix.
120
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
120
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
121
121
  !@config.endpoint.split(".").first.include?("-")
122
122
  credentials ||= Credentials.default scope: @config.scope,
123
123
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -169,6 +169,22 @@ module Google
169
169
  # @return [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse]
170
170
  #
171
171
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
172
+ #
173
+ # @example Basic example
174
+ # require "google/cloud/dataflow/v1beta3"
175
+ #
176
+ # # Create a client object. The client can be reused for multiple calls.
177
+ # client = Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client.new
178
+ #
179
+ # # Create a request. To set request fields, pass in keyword arguments.
180
+ # request = Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest.new
181
+ #
182
+ # # Call the launch_flex_template method.
183
+ # result = client.launch_flex_template request
184
+ #
185
+ # # The returned object is of type Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse.
186
+ # p result
187
+ #
172
188
  def launch_flex_template request, options = nil
173
189
  raise ::ArgumentError, "request must be provided" if request.nil?
174
190
 
@@ -242,9 +258,9 @@ module Google
242
258
  # * (`String`) The path to a service account key file in JSON format
243
259
  # * (`Hash`) A service account key as a Hash
244
260
  # * (`Google::Auth::Credentials`) A googleauth credentials object
245
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
261
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
246
262
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
247
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
263
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
248
264
  # * (`nil`) indicating no credentials
249
265
  # @return [::Object]
250
266
  # @!attribute [rw] scope
@@ -277,7 +293,9 @@ module Google
277
293
  class Configuration
278
294
  extend ::Gapic::Config
279
295
 
280
- config_attr :endpoint, "dataflow.googleapis.com", ::String
296
+ DEFAULT_ENDPOINT = "dataflow.googleapis.com"
297
+
298
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
281
299
  config_attr :credentials, nil do |value|
282
300
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
283
301
  allowed.any? { |klass| klass === value }
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_launch_flex_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
@@ -124,7 +124,7 @@ module Google
124
124
  credentials = @config.credentials
125
125
  # Use self-signed JWT if the endpoint is unchanged from default,
126
126
  # but only if the default endpoint does not have a region prefix.
127
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
127
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
128
128
  !@config.endpoint.split(".").first.include?("-")
129
129
  credentials ||= Credentials.default scope: @config.scope,
130
130
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -139,7 +139,8 @@ module Google
139
139
  credentials: credentials,
140
140
  endpoint: @config.endpoint,
141
141
  channel_args: @config.channel_args,
142
- interceptors: @config.interceptors
142
+ interceptors: @config.interceptors,
143
+ channel_pool_config: @config.channel_pool
143
144
  )
144
145
  end
145
146
 
@@ -898,9 +899,9 @@ module Google
898
899
  # * (`String`) The path to a service account key file in JSON format
899
900
  # * (`Hash`) A service account key as a Hash
900
901
  # * (`Google::Auth::Credentials`) A googleauth credentials object
901
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
902
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
902
903
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
903
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
904
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
904
905
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
905
906
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
906
907
  # * (`nil`) indicating no credentials
@@ -942,7 +943,9 @@ module Google
942
943
  class Configuration
943
944
  extend ::Gapic::Config
944
945
 
945
- config_attr :endpoint, "dataflow.googleapis.com", ::String
946
+ DEFAULT_ENDPOINT = "dataflow.googleapis.com"
947
+
948
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
946
949
  config_attr :credentials, nil do |value|
947
950
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
948
951
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -977,6 +980,14 @@ module Google
977
980
  end
978
981
  end
979
982
 
983
+ ##
984
+ # Configuration for the channel pool
985
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
986
+ #
987
+ def channel_pool
988
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
989
+ end
990
+
980
991
  ##
981
992
  # Configuration RPC class for the Jobs API.
982
993
  #
@@ -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
@@ -179,6 +179,22 @@ module Google
179
179
  # @return [::Google::Cloud::Dataflow::V1beta3::Job]
180
180
  #
181
181
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
182
+ #
183
+ # @example Basic example
184
+ # require "google/cloud/dataflow/v1beta3"
185
+ #
186
+ # # Create a client object. The client can be reused for multiple calls.
187
+ # client = Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new
188
+ #
189
+ # # Create a request. To set request fields, pass in keyword arguments.
190
+ # request = Google::Cloud::Dataflow::V1beta3::CreateJobRequest.new
191
+ #
192
+ # # Call the create_job method.
193
+ # result = client.create_job request
194
+ #
195
+ # # The returned object is of type Google::Cloud::Dataflow::V1beta3::Job.
196
+ # p result
197
+ #
182
198
  def create_job request, options = nil
183
199
  raise ::ArgumentError, "request must be provided" if request.nil?
184
200
 
@@ -255,6 +271,22 @@ module Google
255
271
  # @return [::Google::Cloud::Dataflow::V1beta3::Job]
256
272
  #
257
273
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
274
+ #
275
+ # @example Basic example
276
+ # require "google/cloud/dataflow/v1beta3"
277
+ #
278
+ # # Create a client object. The client can be reused for multiple calls.
279
+ # client = Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new
280
+ #
281
+ # # Create a request. To set request fields, pass in keyword arguments.
282
+ # request = Google::Cloud::Dataflow::V1beta3::GetJobRequest.new
283
+ #
284
+ # # Call the get_job method.
285
+ # result = client.get_job request
286
+ #
287
+ # # The returned object is of type Google::Cloud::Dataflow::V1beta3::Job.
288
+ # p result
289
+ #
258
290
  def get_job request, options = nil
259
291
  raise ::ArgumentError, "request must be provided" if request.nil?
260
292
 
@@ -332,6 +364,22 @@ module Google
332
364
  # @return [::Google::Cloud::Dataflow::V1beta3::Job]
333
365
  #
334
366
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
367
+ #
368
+ # @example Basic example
369
+ # require "google/cloud/dataflow/v1beta3"
370
+ #
371
+ # # Create a client object. The client can be reused for multiple calls.
372
+ # client = Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new
373
+ #
374
+ # # Create a request. To set request fields, pass in keyword arguments.
375
+ # request = Google::Cloud::Dataflow::V1beta3::UpdateJobRequest.new
376
+ #
377
+ # # Call the update_job method.
378
+ # result = client.update_job request
379
+ #
380
+ # # The returned object is of type Google::Cloud::Dataflow::V1beta3::Job.
381
+ # p result
382
+ #
335
383
  def update_job request, options = nil
336
384
  raise ::ArgumentError, "request must be provided" if request.nil?
337
385
 
@@ -417,6 +465,26 @@ module Google
417
465
  # @return [::Google::Cloud::Dataflow::V1beta3::ListJobsResponse]
418
466
  #
419
467
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
468
+ #
469
+ # @example Basic example
470
+ # require "google/cloud/dataflow/v1beta3"
471
+ #
472
+ # # Create a client object. The client can be reused for multiple calls.
473
+ # client = Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new
474
+ #
475
+ # # Create a request. To set request fields, pass in keyword arguments.
476
+ # request = Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new
477
+ #
478
+ # # Call the list_jobs method.
479
+ # result = client.list_jobs request
480
+ #
481
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
482
+ # # over elements, and API calls will be issued to fetch pages as needed.
483
+ # result.each do |item|
484
+ # # Each element is of type ::Google::Cloud::Dataflow::V1beta3::Job.
485
+ # p item
486
+ # end
487
+ #
420
488
  def list_jobs request, options = nil
421
489
  raise ::ArgumentError, "request must be provided" if request.nil?
422
490
 
@@ -495,6 +563,26 @@ module Google
495
563
  # @return [::Google::Cloud::Dataflow::V1beta3::ListJobsResponse]
496
564
  #
497
565
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
566
+ #
567
+ # @example Basic example
568
+ # require "google/cloud/dataflow/v1beta3"
569
+ #
570
+ # # Create a client object. The client can be reused for multiple calls.
571
+ # client = Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new
572
+ #
573
+ # # Create a request. To set request fields, pass in keyword arguments.
574
+ # request = Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new
575
+ #
576
+ # # Call the aggregated_list_jobs method.
577
+ # result = client.aggregated_list_jobs request
578
+ #
579
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
580
+ # # over elements, and API calls will be issued to fetch pages as needed.
581
+ # result.each do |item|
582
+ # # Each element is of type ::Google::Cloud::Dataflow::V1beta3::Job.
583
+ # p item
584
+ # end
585
+ #
498
586
  def aggregated_list_jobs request, options = nil
499
587
  raise ::ArgumentError, "request must be provided" if request.nil?
500
588
 
@@ -567,6 +655,22 @@ module Google
567
655
  # @return [::Google::Cloud::Dataflow::V1beta3::Snapshot]
568
656
  #
569
657
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
658
+ #
659
+ # @example Basic example
660
+ # require "google/cloud/dataflow/v1beta3"
661
+ #
662
+ # # Create a client object. The client can be reused for multiple calls.
663
+ # client = Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new
664
+ #
665
+ # # Create a request. To set request fields, pass in keyword arguments.
666
+ # request = Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest.new
667
+ #
668
+ # # Call the snapshot_job method.
669
+ # result = client.snapshot_job request
670
+ #
671
+ # # The returned object is of type Google::Cloud::Dataflow::V1beta3::Snapshot.
672
+ # p result
673
+ #
570
674
  def snapshot_job request, options = nil
571
675
  raise ::ArgumentError, "request must be provided" if request.nil?
572
676
 
@@ -640,9 +744,9 @@ module Google
640
744
  # * (`String`) The path to a service account key file in JSON format
641
745
  # * (`Hash`) A service account key as a Hash
642
746
  # * (`Google::Auth::Credentials`) A googleauth credentials object
643
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
747
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
644
748
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
645
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
749
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
646
750
  # * (`nil`) indicating no credentials
647
751
  # @return [::Object]
648
752
  # @!attribute [rw] scope
@@ -675,7 +779,9 @@ module Google
675
779
  class Configuration
676
780
  extend ::Gapic::Config
677
781
 
678
- config_attr :endpoint, "dataflow.googleapis.com", ::String
782
+ DEFAULT_ENDPOINT = "dataflow.googleapis.com"
783
+
784
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
679
785
  config_attr :credentials, nil do |value|
680
786
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
681
787
  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_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_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_update_job_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
@@ -173,7 +173,7 @@ module Google
173
173
 
174
174
  verb, uri, query_string_params, body = ServiceStub.transcode_list_jobs_request request_pb
175
175
  query_string_params = if query_string_params.any?
176
- query_string_params.to_h { |p| p.split("=", 2) }
176
+ query_string_params.to_h { |p| p.split "=", 2 }
177
177
  else
178
178
  {}
179
179
  end
@@ -211,7 +211,7 @@ module Google
211
211
 
212
212
  verb, uri, query_string_params, body = ServiceStub.transcode_aggregated_list_jobs_request request_pb
213
213
  query_string_params = if query_string_params.any?
214
- query_string_params.to_h { |p| p.split("=", 2) }
214
+ query_string_params.to_h { |p| p.split "=", 2 }
215
215
  else
216
216
  {}
217
217
  end
@@ -249,7 +249,7 @@ module Google
249
249
 
250
250
  verb, uri, query_string_params, body = ServiceStub.transcode_snapshot_job_request request_pb
251
251
  query_string_params = if query_string_params.any?
252
- query_string_params.to_h { |p| p.split("=", 2) }
252
+ query_string_params.to_h { |p| p.split "=", 2 }
253
253
  else
254
254
  {}
255
255
  end
@@ -124,7 +124,7 @@ module Google
124
124
  credentials = @config.credentials
125
125
  # Use self-signed JWT if the endpoint is unchanged from default,
126
126
  # but only if the default endpoint does not have a region prefix.
127
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
127
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
128
128
  !@config.endpoint.split(".").first.include?("-")
129
129
  credentials ||= Credentials.default scope: @config.scope,
130
130
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -139,7 +139,8 @@ module Google
139
139
  credentials: credentials,
140
140
  endpoint: @config.endpoint,
141
141
  channel_args: @config.channel_args,
142
- interceptors: @config.interceptors
142
+ interceptors: @config.interceptors,
143
+ channel_pool_config: @config.channel_pool
143
144
  )
144
145
  end
145
146
 
@@ -307,9 +308,9 @@ module Google
307
308
  # * (`String`) The path to a service account key file in JSON format
308
309
  # * (`Hash`) A service account key as a Hash
309
310
  # * (`Google::Auth::Credentials`) A googleauth credentials object
310
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
311
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
311
312
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
312
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
313
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
313
314
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
314
315
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
315
316
  # * (`nil`) indicating no credentials
@@ -351,7 +352,9 @@ module Google
351
352
  class Configuration
352
353
  extend ::Gapic::Config
353
354
 
354
- config_attr :endpoint, "dataflow.googleapis.com", ::String
355
+ DEFAULT_ENDPOINT = "dataflow.googleapis.com"
356
+
357
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
355
358
  config_attr :credentials, nil do |value|
356
359
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
357
360
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -386,6 +389,14 @@ module Google
386
389
  end
387
390
  end
388
391
 
392
+ ##
393
+ # Configuration for the channel pool
394
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
395
+ #
396
+ def channel_pool
397
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
398
+ end
399
+
389
400
  ##
390
401
  # Configuration RPC class for the Messages API.
391
402
  #
@@ -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
@@ -191,6 +191,26 @@ module Google
191
191
  # @return [::Google::Cloud::Dataflow::V1beta3::ListJobMessagesResponse]
192
192
  #
193
193
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
194
+ #
195
+ # @example Basic example
196
+ # require "google/cloud/dataflow/v1beta3"
197
+ #
198
+ # # Create a client object. The client can be reused for multiple calls.
199
+ # client = Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.new
200
+ #
201
+ # # Create a request. To set request fields, pass in keyword arguments.
202
+ # request = Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest.new
203
+ #
204
+ # # Call the list_job_messages method.
205
+ # result = client.list_job_messages request
206
+ #
207
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
208
+ # # over elements, and API calls will be issued to fetch pages as needed.
209
+ # result.each do |item|
210
+ # # Each element is of type ::Google::Cloud::Dataflow::V1beta3::JobMessage.
211
+ # p item
212
+ # end
213
+ #
194
214
  def list_job_messages request, options = nil
195
215
  raise ::ArgumentError, "request must be provided" if request.nil?
196
216
 
@@ -264,9 +284,9 @@ module Google
264
284
  # * (`String`) The path to a service account key file in JSON format
265
285
  # * (`Hash`) A service account key as a Hash
266
286
  # * (`Google::Auth::Credentials`) A googleauth credentials object
267
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
287
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
268
288
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
269
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
289
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
270
290
  # * (`nil`) indicating no credentials
271
291
  # @return [::Object]
272
292
  # @!attribute [rw] scope
@@ -299,7 +319,9 @@ module Google
299
319
  class Configuration
300
320
  extend ::Gapic::Config
301
321
 
302
- config_attr :endpoint, "dataflow.googleapis.com", ::String
322
+ DEFAULT_ENDPOINT = "dataflow.googleapis.com"
323
+
324
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
303
325
  config_attr :credentials, nil do |value|
304
326
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
305
327
  allowed.any? { |klass| klass === value }
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_list_job_messages_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
@@ -124,7 +124,7 @@ module Google
124
124
  credentials = @config.credentials
125
125
  # Use self-signed JWT if the endpoint is unchanged from default,
126
126
  # but only if the default endpoint does not have a region prefix.
127
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
127
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
128
128
  !@config.endpoint.split(".").first.include?("-")
129
129
  credentials ||= Credentials.default scope: @config.scope,
130
130
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -139,7 +139,8 @@ module Google
139
139
  credentials: credentials,
140
140
  endpoint: @config.endpoint,
141
141
  channel_args: @config.channel_args,
142
- interceptors: @config.interceptors
142
+ interceptors: @config.interceptors,
143
+ channel_pool_config: @config.channel_pool
143
144
  )
144
145
  end
145
146
 
@@ -523,9 +524,9 @@ module Google
523
524
  # * (`String`) The path to a service account key file in JSON format
524
525
  # * (`Hash`) A service account key as a Hash
525
526
  # * (`Google::Auth::Credentials`) A googleauth credentials object
526
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
527
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
527
528
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
528
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
529
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
529
530
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
530
531
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
531
532
  # * (`nil`) indicating no credentials
@@ -567,7 +568,9 @@ module Google
567
568
  class Configuration
568
569
  extend ::Gapic::Config
569
570
 
570
- config_attr :endpoint, "dataflow.googleapis.com", ::String
571
+ DEFAULT_ENDPOINT = "dataflow.googleapis.com"
572
+
573
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
571
574
  config_attr :credentials, nil do |value|
572
575
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
573
576
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -602,6 +605,14 @@ module Google
602
605
  end
603
606
  end
604
607
 
608
+ ##
609
+ # Configuration for the channel pool
610
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
611
+ #
612
+ def channel_pool
613
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
614
+ end
615
+
605
616
  ##
606
617
  # Configuration RPC class for the Metrics API.
607
618
  #