google-cloud-dataflow-v1beta3 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a0299b0c563aa840eab26272d9ea29068660a7fd67640674ed01b050f6acc1e4
4
- data.tar.gz: b461bbc3c5e1093ba01240e1f95a354b78a7dbc86f05a1cfd0892e73e6fc2c11
3
+ metadata.gz: 9e04dca8e549f652f1d79a66773f63be03fdfa9d30538c0d4b12e312d581bbbf
4
+ data.tar.gz: 10e53747d8d5de0e7a494215ea02d36251780f4f6d618790a915d893ccc6fb0e
5
5
  SHA512:
6
- metadata.gz: 675fba6ddaeed3019f26ebf96688cdd815f78c1e2975605fe5a8cd8ff94ec06544601ac9c4afe3f75e23a9b6585570aef8fd412dd419443467ad6024f22ad4ee
7
- data.tar.gz: a13c264c1472334087e67cd89c4ef7b07611d5c78880d989848f2ac286aaf7082caf21f46bbd51d7a5ed0ce8813b11c7fa7ad9d134a0f15d44baab4f6352ae22
6
+ metadata.gz: 40024b550b3c9f9338967672e3dd23a3ec17b96a9ed95c9036a91e1366ec4123ce5262eb19e941cd4dc34418e133d3375e57e51d62471f6233a9906efb314cfd
7
+ data.tar.gz: a77899fefc48c50c8ef79a9b0a9f06f3c22eab65d2ec911dc433607d85a5fec98cd657abc9ae5af090cd540baeb1e6659768abeba16caef8dfc8aba7a0a9b1df
@@ -39,13 +39,12 @@ module Google
39
39
  # See {::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client::Configuration}
40
40
  # for a description of the configuration fields.
41
41
  #
42
- # ## Example
42
+ # @example
43
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
44
+ # # Modify the configuration for all FlexTemplatesService clients
45
+ # ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.configure do |config|
46
+ # config.timeout = 10.0
47
+ # end
49
48
  #
50
49
  # @yield [config] Configure the Client client.
51
50
  # @yieldparam config [Client::Configuration]
@@ -92,19 +91,15 @@ module Google
92
91
  ##
93
92
  # Create a new FlexTemplatesService client object.
94
93
  #
95
- # ## Examples
96
- #
97
- # To create a new FlexTemplatesService client with the default
98
- # configuration:
94
+ # @example
99
95
  #
100
- # client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.new
96
+ # # Create a client using the default configuration
97
+ # client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.new
101
98
  #
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
99
+ # # Create a client using a custom configuration
100
+ # client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.new do |config|
101
+ # config.timeout = 10.0
102
+ # end
108
103
  #
109
104
  # @yield [config] Configure the FlexTemplatesService client.
110
105
  # @yieldparam config [Client::Configuration]
@@ -124,10 +119,9 @@ module Google
124
119
 
125
120
  # Create credentials
126
121
  credentials = @config.credentials
127
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
122
+ # Use self-signed JWT if the endpoint is unchanged from default,
128
123
  # 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 &&
124
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
131
125
  !@config.endpoint.split(".").first.include?("-")
132
126
  credentials ||= Credentials.default scope: @config.scope,
133
127
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -206,7 +200,9 @@ module Google
206
200
  options.apply_defaults timeout: @config.rpcs.launch_flex_template.timeout,
207
201
  metadata: metadata,
208
202
  retry_policy: @config.rpcs.launch_flex_template.retry_policy
209
- options.apply_defaults metadata: @config.metadata,
203
+
204
+ options.apply_defaults timeout: @config.timeout,
205
+ metadata: @config.metadata,
210
206
  retry_policy: @config.retry_policy
211
207
 
212
208
  @flex_templates_service_stub.call_rpc :launch_flex_template, request, options: options do |response, operation|
@@ -230,22 +226,21 @@ module Google
230
226
  # Configuration can be applied globally to all clients, or to a single client
231
227
  # on construction.
232
228
  #
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
229
+ # @example
230
+ #
231
+ # # Modify the global config, setting the timeout for
232
+ # # launch_flex_template to 20 seconds,
233
+ # # and all remaining timeouts to 10 seconds.
234
+ # ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.configure do |config|
235
+ # config.timeout = 10.0
236
+ # config.rpcs.launch_flex_template.timeout = 20.0
237
+ # end
238
+ #
239
+ # # Apply the above configuration only to a new client.
240
+ # client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.new do |config|
241
+ # config.timeout = 10.0
242
+ # config.rpcs.launch_flex_template.timeout = 20.0
243
+ # end
249
244
  #
250
245
  # @!attribute [rw] endpoint
251
246
  # The hostname or hostname:port of the service endpoint.
@@ -40,13 +40,12 @@ module Google
40
40
  # See {::Google::Cloud::Dataflow::V1beta3::Jobs::Client::Configuration}
41
41
  # for a description of the configuration fields.
42
42
  #
43
- # ## Example
43
+ # @example
44
44
  #
45
- # To modify the configuration for all Jobs clients:
46
- #
47
- # ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.configure do |config|
48
- # config.timeout = 10.0
49
- # end
45
+ # # Modify the configuration for all Jobs clients
46
+ # ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.configure do |config|
47
+ # config.timeout = 10.0
48
+ # end
50
49
  #
51
50
  # @yield [config] Configure the Client client.
52
51
  # @yieldparam config [Client::Configuration]
@@ -95,19 +94,15 @@ module Google
95
94
  ##
96
95
  # Create a new Jobs client object.
97
96
  #
98
- # ## Examples
99
- #
100
- # To create a new Jobs client with the default
101
- # configuration:
97
+ # @example
102
98
  #
103
- # client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new
99
+ # # Create a client using the default configuration
100
+ # client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new
104
101
  #
105
- # To create a new Jobs client with a custom
106
- # configuration:
107
- #
108
- # client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new do |config|
109
- # config.timeout = 10.0
110
- # end
102
+ # # Create a client using a custom configuration
103
+ # client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new do |config|
104
+ # config.timeout = 10.0
105
+ # end
111
106
  #
112
107
  # @yield [config] Configure the Jobs client.
113
108
  # @yieldparam config [Client::Configuration]
@@ -127,10 +122,9 @@ module Google
127
122
 
128
123
  # Create credentials
129
124
  credentials = @config.credentials
130
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
125
+ # Use self-signed JWT if the endpoint is unchanged from default,
131
126
  # but only if the default endpoint does not have a region prefix.
132
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
133
- @config.endpoint == Client.configure.endpoint &&
127
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
134
128
  !@config.endpoint.split(".").first.include?("-")
135
129
  credentials ||= Credentials.default scope: @config.scope,
136
130
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -216,7 +210,9 @@ module Google
216
210
  options.apply_defaults timeout: @config.rpcs.create_job.timeout,
217
211
  metadata: metadata,
218
212
  retry_policy: @config.rpcs.create_job.retry_policy
219
- options.apply_defaults metadata: @config.metadata,
213
+
214
+ options.apply_defaults timeout: @config.timeout,
215
+ metadata: @config.metadata,
220
216
  retry_policy: @config.retry_policy
221
217
 
222
218
  @jobs_stub.call_rpc :create_job, request, options: options do |response, operation|
@@ -290,7 +286,9 @@ module Google
290
286
  options.apply_defaults timeout: @config.rpcs.get_job.timeout,
291
287
  metadata: metadata,
292
288
  retry_policy: @config.rpcs.get_job.retry_policy
293
- options.apply_defaults metadata: @config.metadata,
289
+
290
+ options.apply_defaults timeout: @config.timeout,
291
+ metadata: @config.metadata,
294
292
  retry_policy: @config.retry_policy
295
293
 
296
294
  @jobs_stub.call_rpc :get_job, request, options: options do |response, operation|
@@ -365,7 +363,9 @@ module Google
365
363
  options.apply_defaults timeout: @config.rpcs.update_job.timeout,
366
364
  metadata: metadata,
367
365
  retry_policy: @config.rpcs.update_job.retry_policy
368
- options.apply_defaults metadata: @config.metadata,
366
+
367
+ options.apply_defaults timeout: @config.timeout,
368
+ metadata: @config.metadata,
369
369
  retry_policy: @config.retry_policy
370
370
 
371
371
  @jobs_stub.call_rpc :update_job, request, options: options do |response, operation|
@@ -448,7 +448,9 @@ module Google
448
448
  options.apply_defaults timeout: @config.rpcs.list_jobs.timeout,
449
449
  metadata: metadata,
450
450
  retry_policy: @config.rpcs.list_jobs.retry_policy
451
- options.apply_defaults metadata: @config.metadata,
451
+
452
+ options.apply_defaults timeout: @config.timeout,
453
+ metadata: @config.metadata,
452
454
  retry_policy: @config.retry_policy
453
455
 
454
456
  @jobs_stub.call_rpc :list_jobs, request, options: options do |response, operation|
@@ -525,7 +527,9 @@ module Google
525
527
  options.apply_defaults timeout: @config.rpcs.aggregated_list_jobs.timeout,
526
528
  metadata: metadata,
527
529
  retry_policy: @config.rpcs.aggregated_list_jobs.retry_policy
528
- options.apply_defaults metadata: @config.metadata,
530
+
531
+ options.apply_defaults timeout: @config.timeout,
532
+ metadata: @config.metadata,
529
533
  retry_policy: @config.retry_policy
530
534
 
531
535
  @jobs_stub.call_rpc :aggregated_list_jobs, request, options: options do |response, operation|
@@ -586,7 +590,9 @@ module Google
586
590
  options.apply_defaults timeout: @config.rpcs.check_active_jobs.timeout,
587
591
  metadata: metadata,
588
592
  retry_policy: @config.rpcs.check_active_jobs.retry_policy
589
- options.apply_defaults metadata: @config.metadata,
593
+
594
+ options.apply_defaults timeout: @config.timeout,
595
+ metadata: @config.metadata,
590
596
  retry_policy: @config.retry_policy
591
597
 
592
598
  @jobs_stub.call_rpc :check_active_jobs, request, options: options do |response, operation|
@@ -656,7 +662,9 @@ module Google
656
662
  options.apply_defaults timeout: @config.rpcs.snapshot_job.timeout,
657
663
  metadata: metadata,
658
664
  retry_policy: @config.rpcs.snapshot_job.retry_policy
659
- options.apply_defaults metadata: @config.metadata,
665
+
666
+ options.apply_defaults timeout: @config.timeout,
667
+ metadata: @config.metadata,
660
668
  retry_policy: @config.retry_policy
661
669
 
662
670
  @jobs_stub.call_rpc :snapshot_job, request, options: options do |response, operation|
@@ -680,22 +688,21 @@ module Google
680
688
  # Configuration can be applied globally to all clients, or to a single client
681
689
  # on construction.
682
690
  #
683
- # # Examples
684
- #
685
- # To modify the global config, setting the timeout for create_job
686
- # to 20 seconds, and all remaining timeouts to 10 seconds:
687
- #
688
- # ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.configure do |config|
689
- # config.timeout = 10.0
690
- # config.rpcs.create_job.timeout = 20.0
691
- # end
692
- #
693
- # To apply the above configuration only to a new client:
694
- #
695
- # client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new do |config|
696
- # config.timeout = 10.0
697
- # config.rpcs.create_job.timeout = 20.0
698
- # end
691
+ # @example
692
+ #
693
+ # # Modify the global config, setting the timeout for
694
+ # # create_job to 20 seconds,
695
+ # # and all remaining timeouts to 10 seconds.
696
+ # ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.configure do |config|
697
+ # config.timeout = 10.0
698
+ # config.rpcs.create_job.timeout = 20.0
699
+ # end
700
+ #
701
+ # # Apply the above configuration only to a new client.
702
+ # client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new do |config|
703
+ # config.timeout = 10.0
704
+ # config.rpcs.create_job.timeout = 20.0
705
+ # end
699
706
  #
700
707
  # @!attribute [rw] endpoint
701
708
  # The hostname or hostname:port of the service endpoint.
@@ -40,13 +40,12 @@ module Google
40
40
  # See {::Google::Cloud::Dataflow::V1beta3::Messages::Client::Configuration}
41
41
  # for a description of the configuration fields.
42
42
  #
43
- # ## Example
43
+ # @example
44
44
  #
45
- # To modify the configuration for all Messages clients:
46
- #
47
- # ::Google::Cloud::Dataflow::V1beta3::Messages::Client.configure do |config|
48
- # config.timeout = 10.0
49
- # end
45
+ # # Modify the configuration for all Messages clients
46
+ # ::Google::Cloud::Dataflow::V1beta3::Messages::Client.configure do |config|
47
+ # config.timeout = 10.0
48
+ # end
50
49
  #
51
50
  # @yield [config] Configure the Client client.
52
51
  # @yieldparam config [Client::Configuration]
@@ -95,19 +94,15 @@ module Google
95
94
  ##
96
95
  # Create a new Messages client object.
97
96
  #
98
- # ## Examples
99
- #
100
- # To create a new Messages client with the default
101
- # configuration:
97
+ # @example
102
98
  #
103
- # client = ::Google::Cloud::Dataflow::V1beta3::Messages::Client.new
99
+ # # Create a client using the default configuration
100
+ # client = ::Google::Cloud::Dataflow::V1beta3::Messages::Client.new
104
101
  #
105
- # To create a new Messages client with a custom
106
- # configuration:
107
- #
108
- # client = ::Google::Cloud::Dataflow::V1beta3::Messages::Client.new do |config|
109
- # config.timeout = 10.0
110
- # end
102
+ # # Create a client using a custom configuration
103
+ # client = ::Google::Cloud::Dataflow::V1beta3::Messages::Client.new do |config|
104
+ # config.timeout = 10.0
105
+ # end
111
106
  #
112
107
  # @yield [config] Configure the Messages client.
113
108
  # @yieldparam config [Client::Configuration]
@@ -127,10 +122,9 @@ module Google
127
122
 
128
123
  # Create credentials
129
124
  credentials = @config.credentials
130
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
125
+ # Use self-signed JWT if the endpoint is unchanged from default,
131
126
  # but only if the default endpoint does not have a region prefix.
132
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
133
- @config.endpoint == Client.configure.endpoint &&
127
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
134
128
  !@config.endpoint.split(".").first.include?("-")
135
129
  credentials ||= Credentials.default scope: @config.scope,
136
130
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -228,7 +222,9 @@ module Google
228
222
  options.apply_defaults timeout: @config.rpcs.list_job_messages.timeout,
229
223
  metadata: metadata,
230
224
  retry_policy: @config.rpcs.list_job_messages.retry_policy
231
- options.apply_defaults metadata: @config.metadata,
225
+
226
+ options.apply_defaults timeout: @config.timeout,
227
+ metadata: @config.metadata,
232
228
  retry_policy: @config.retry_policy
233
229
 
234
230
  @messages_stub.call_rpc :list_job_messages, request, options: options do |response, operation|
@@ -253,22 +249,21 @@ module Google
253
249
  # Configuration can be applied globally to all clients, or to a single client
254
250
  # on construction.
255
251
  #
256
- # # Examples
257
- #
258
- # To modify the global config, setting the timeout for list_job_messages
259
- # to 20 seconds, and all remaining timeouts to 10 seconds:
260
- #
261
- # ::Google::Cloud::Dataflow::V1beta3::Messages::Client.configure do |config|
262
- # config.timeout = 10.0
263
- # config.rpcs.list_job_messages.timeout = 20.0
264
- # end
265
- #
266
- # To apply the above configuration only to a new client:
267
- #
268
- # client = ::Google::Cloud::Dataflow::V1beta3::Messages::Client.new do |config|
269
- # config.timeout = 10.0
270
- # config.rpcs.list_job_messages.timeout = 20.0
271
- # end
252
+ # @example
253
+ #
254
+ # # Modify the global config, setting the timeout for
255
+ # # list_job_messages to 20 seconds,
256
+ # # and all remaining timeouts to 10 seconds.
257
+ # ::Google::Cloud::Dataflow::V1beta3::Messages::Client.configure do |config|
258
+ # config.timeout = 10.0
259
+ # config.rpcs.list_job_messages.timeout = 20.0
260
+ # end
261
+ #
262
+ # # Apply the above configuration only to a new client.
263
+ # client = ::Google::Cloud::Dataflow::V1beta3::Messages::Client.new do |config|
264
+ # config.timeout = 10.0
265
+ # config.rpcs.list_job_messages.timeout = 20.0
266
+ # end
272
267
  #
273
268
  # @!attribute [rw] endpoint
274
269
  # The hostname or hostname:port of the service endpoint.
@@ -40,13 +40,12 @@ module Google
40
40
  # See {::Google::Cloud::Dataflow::V1beta3::Metrics::Client::Configuration}
41
41
  # for a description of the configuration fields.
42
42
  #
43
- # ## Example
43
+ # @example
44
44
  #
45
- # To modify the configuration for all Metrics clients:
46
- #
47
- # ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.configure do |config|
48
- # config.timeout = 10.0
49
- # end
45
+ # # Modify the configuration for all Metrics clients
46
+ # ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.configure do |config|
47
+ # config.timeout = 10.0
48
+ # end
50
49
  #
51
50
  # @yield [config] Configure the Client client.
52
51
  # @yieldparam config [Client::Configuration]
@@ -95,19 +94,15 @@ module Google
95
94
  ##
96
95
  # Create a new Metrics client object.
97
96
  #
98
- # ## Examples
99
- #
100
- # To create a new Metrics client with the default
101
- # configuration:
102
- #
103
- # client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.new
97
+ # @example
104
98
  #
105
- # To create a new Metrics client with a custom
106
- # configuration:
99
+ # # Create a client using the default configuration
100
+ # client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.new
107
101
  #
108
- # client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.new do |config|
109
- # config.timeout = 10.0
110
- # end
102
+ # # Create a client using a custom configuration
103
+ # client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.new do |config|
104
+ # config.timeout = 10.0
105
+ # end
111
106
  #
112
107
  # @yield [config] Configure the Metrics client.
113
108
  # @yieldparam config [Client::Configuration]
@@ -127,10 +122,9 @@ module Google
127
122
 
128
123
  # Create credentials
129
124
  credentials = @config.credentials
130
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
125
+ # Use self-signed JWT if the endpoint is unchanged from default,
131
126
  # but only if the default endpoint does not have a region prefix.
132
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
133
- @config.endpoint == Client.configure.endpoint &&
127
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
134
128
  !@config.endpoint.split(".").first.include?("-")
135
129
  credentials ||= Credentials.default scope: @config.scope,
136
130
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -215,7 +209,9 @@ module Google
215
209
  options.apply_defaults timeout: @config.rpcs.get_job_metrics.timeout,
216
210
  metadata: metadata,
217
211
  retry_policy: @config.rpcs.get_job_metrics.retry_policy
218
- options.apply_defaults metadata: @config.metadata,
212
+
213
+ options.apply_defaults timeout: @config.timeout,
214
+ metadata: @config.metadata,
219
215
  retry_policy: @config.retry_policy
220
216
 
221
217
  @metrics_stub.call_rpc :get_job_metrics, request, options: options do |response, operation|
@@ -291,7 +287,9 @@ module Google
291
287
  options.apply_defaults timeout: @config.rpcs.get_job_execution_details.timeout,
292
288
  metadata: metadata,
293
289
  retry_policy: @config.rpcs.get_job_execution_details.retry_policy
294
- options.apply_defaults metadata: @config.metadata,
290
+
291
+ options.apply_defaults timeout: @config.timeout,
292
+ metadata: @config.metadata,
295
293
  retry_policy: @config.retry_policy
296
294
 
297
295
  @metrics_stub.call_rpc :get_job_execution_details, request, options: options do |response, operation|
@@ -375,7 +373,9 @@ module Google
375
373
  options.apply_defaults timeout: @config.rpcs.get_stage_execution_details.timeout,
376
374
  metadata: metadata,
377
375
  retry_policy: @config.rpcs.get_stage_execution_details.retry_policy
378
- options.apply_defaults metadata: @config.metadata,
376
+
377
+ options.apply_defaults timeout: @config.timeout,
378
+ metadata: @config.metadata,
379
379
  retry_policy: @config.retry_policy
380
380
 
381
381
  @metrics_stub.call_rpc :get_stage_execution_details, request, options: options do |response, operation|
@@ -400,22 +400,21 @@ module Google
400
400
  # Configuration can be applied globally to all clients, or to a single client
401
401
  # on construction.
402
402
  #
403
- # # Examples
404
- #
405
- # To modify the global config, setting the timeout for get_job_metrics
406
- # to 20 seconds, and all remaining timeouts to 10 seconds:
407
- #
408
- # ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.configure do |config|
409
- # config.timeout = 10.0
410
- # config.rpcs.get_job_metrics.timeout = 20.0
411
- # end
412
- #
413
- # To apply the above configuration only to a new client:
414
- #
415
- # client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.new do |config|
416
- # config.timeout = 10.0
417
- # config.rpcs.get_job_metrics.timeout = 20.0
418
- # end
403
+ # @example
404
+ #
405
+ # # Modify the global config, setting the timeout for
406
+ # # get_job_metrics to 20 seconds,
407
+ # # and all remaining timeouts to 10 seconds.
408
+ # ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.configure do |config|
409
+ # config.timeout = 10.0
410
+ # config.rpcs.get_job_metrics.timeout = 20.0
411
+ # end
412
+ #
413
+ # # Apply the above configuration only to a new client.
414
+ # client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.new do |config|
415
+ # config.timeout = 10.0
416
+ # config.rpcs.get_job_metrics.timeout = 20.0
417
+ # end
419
418
  #
420
419
  # @!attribute [rw] endpoint
421
420
  # The hostname or hostname:port of the service endpoint.
@@ -39,13 +39,12 @@ module Google
39
39
  # See {::Google::Cloud::Dataflow::V1beta3::Snapshots::Client::Configuration}
40
40
  # for a description of the configuration fields.
41
41
  #
42
- # ## Example
42
+ # @example
43
43
  #
44
- # To modify the configuration for all Snapshots clients:
45
- #
46
- # ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.configure do |config|
47
- # config.timeout = 10.0
48
- # end
44
+ # # Modify the configuration for all Snapshots clients
45
+ # ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.configure do |config|
46
+ # config.timeout = 10.0
47
+ # end
49
48
  #
50
49
  # @yield [config] Configure the Client client.
51
50
  # @yieldparam config [Client::Configuration]
@@ -94,19 +93,15 @@ module Google
94
93
  ##
95
94
  # Create a new Snapshots client object.
96
95
  #
97
- # ## Examples
98
- #
99
- # To create a new Snapshots client with the default
100
- # configuration:
101
- #
102
- # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new
96
+ # @example
103
97
  #
104
- # To create a new Snapshots client with a custom
105
- # configuration:
98
+ # # Create a client using the default configuration
99
+ # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new
106
100
  #
107
- # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new do |config|
108
- # config.timeout = 10.0
109
- # end
101
+ # # Create a client using a custom configuration
102
+ # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new do |config|
103
+ # config.timeout = 10.0
104
+ # end
110
105
  #
111
106
  # @yield [config] Configure the Snapshots client.
112
107
  # @yieldparam config [Client::Configuration]
@@ -126,10 +121,9 @@ module Google
126
121
 
127
122
  # Create credentials
128
123
  credentials = @config.credentials
129
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
124
+ # Use self-signed JWT if the endpoint is unchanged from default,
130
125
  # but only if the default endpoint does not have a region prefix.
131
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
132
- @config.endpoint == Client.configure.endpoint &&
126
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
133
127
  !@config.endpoint.split(".").first.include?("-")
134
128
  credentials ||= Credentials.default scope: @config.scope,
135
129
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -203,7 +197,9 @@ module Google
203
197
  options.apply_defaults timeout: @config.rpcs.get_snapshot.timeout,
204
198
  metadata: metadata,
205
199
  retry_policy: @config.rpcs.get_snapshot.retry_policy
206
- options.apply_defaults metadata: @config.metadata,
200
+
201
+ options.apply_defaults timeout: @config.timeout,
202
+ metadata: @config.metadata,
207
203
  retry_policy: @config.retry_policy
208
204
 
209
205
  @snapshots_stub.call_rpc :get_snapshot, request, options: options do |response, operation|
@@ -267,7 +263,9 @@ module Google
267
263
  options.apply_defaults timeout: @config.rpcs.delete_snapshot.timeout,
268
264
  metadata: metadata,
269
265
  retry_policy: @config.rpcs.delete_snapshot.retry_policy
270
- options.apply_defaults metadata: @config.metadata,
266
+
267
+ options.apply_defaults timeout: @config.timeout,
268
+ metadata: @config.metadata,
271
269
  retry_policy: @config.retry_policy
272
270
 
273
271
  @snapshots_stub.call_rpc :delete_snapshot, request, options: options do |response, operation|
@@ -331,7 +329,9 @@ module Google
331
329
  options.apply_defaults timeout: @config.rpcs.list_snapshots.timeout,
332
330
  metadata: metadata,
333
331
  retry_policy: @config.rpcs.list_snapshots.retry_policy
334
- options.apply_defaults metadata: @config.metadata,
332
+
333
+ options.apply_defaults timeout: @config.timeout,
334
+ metadata: @config.metadata,
335
335
  retry_policy: @config.retry_policy
336
336
 
337
337
  @snapshots_stub.call_rpc :list_snapshots, request, options: options do |response, operation|
@@ -355,22 +355,21 @@ module Google
355
355
  # Configuration can be applied globally to all clients, or to a single client
356
356
  # on construction.
357
357
  #
358
- # # Examples
359
- #
360
- # To modify the global config, setting the timeout for get_snapshot
361
- # to 20 seconds, and all remaining timeouts to 10 seconds:
362
- #
363
- # ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.configure do |config|
364
- # config.timeout = 10.0
365
- # config.rpcs.get_snapshot.timeout = 20.0
366
- # end
367
- #
368
- # To apply the above configuration only to a new client:
369
- #
370
- # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new do |config|
371
- # config.timeout = 10.0
372
- # config.rpcs.get_snapshot.timeout = 20.0
373
- # end
358
+ # @example
359
+ #
360
+ # # Modify the global config, setting the timeout for
361
+ # # get_snapshot to 20 seconds,
362
+ # # and all remaining timeouts to 10 seconds.
363
+ # ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.configure do |config|
364
+ # config.timeout = 10.0
365
+ # config.rpcs.get_snapshot.timeout = 20.0
366
+ # end
367
+ #
368
+ # # Apply the above configuration only to a new client.
369
+ # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new do |config|
370
+ # config.timeout = 10.0
371
+ # config.rpcs.get_snapshot.timeout = 20.0
372
+ # end
374
373
  #
375
374
  # @!attribute [rw] endpoint
376
375
  # The hostname or hostname:port of the service endpoint.
@@ -39,13 +39,12 @@ module Google
39
39
  # See {::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client::Configuration}
40
40
  # for a description of the configuration fields.
41
41
  #
42
- # ## Example
42
+ # @example
43
43
  #
44
- # To modify the configuration for all TemplatesService clients:
45
- #
46
- # ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.configure do |config|
47
- # config.timeout = 10.0
48
- # end
44
+ # # Modify the configuration for all TemplatesService clients
45
+ # ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.configure do |config|
46
+ # config.timeout = 10.0
47
+ # end
49
48
  #
50
49
  # @yield [config] Configure the Client client.
51
50
  # @yieldparam config [Client::Configuration]
@@ -94,19 +93,15 @@ module Google
94
93
  ##
95
94
  # Create a new TemplatesService client object.
96
95
  #
97
- # ## Examples
98
- #
99
- # To create a new TemplatesService client with the default
100
- # configuration:
101
- #
102
- # client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new
96
+ # @example
103
97
  #
104
- # To create a new TemplatesService client with a custom
105
- # configuration:
98
+ # # Create a client using the default configuration
99
+ # client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new
106
100
  #
107
- # client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new do |config|
108
- # config.timeout = 10.0
109
- # end
101
+ # # Create a client using a custom configuration
102
+ # client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new do |config|
103
+ # config.timeout = 10.0
104
+ # end
110
105
  #
111
106
  # @yield [config] Configure the TemplatesService client.
112
107
  # @yieldparam config [Client::Configuration]
@@ -126,10 +121,9 @@ module Google
126
121
 
127
122
  # Create credentials
128
123
  credentials = @config.credentials
129
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
124
+ # Use self-signed JWT if the endpoint is unchanged from default,
130
125
  # but only if the default endpoint does not have a region prefix.
131
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
132
- @config.endpoint == Client.configure.endpoint &&
126
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
133
127
  !@config.endpoint.split(".").first.include?("-")
134
128
  credentials ||= Credentials.default scope: @config.scope,
135
129
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -213,7 +207,9 @@ module Google
213
207
  options.apply_defaults timeout: @config.rpcs.create_job_from_template.timeout,
214
208
  metadata: metadata,
215
209
  retry_policy: @config.rpcs.create_job_from_template.retry_policy
216
- options.apply_defaults metadata: @config.metadata,
210
+
211
+ options.apply_defaults timeout: @config.timeout,
212
+ metadata: @config.metadata,
217
213
  retry_policy: @config.retry_policy
218
214
 
219
215
  @templates_service_stub.call_rpc :create_job_from_template, request, options: options do |response, operation|
@@ -289,7 +285,9 @@ module Google
289
285
  options.apply_defaults timeout: @config.rpcs.launch_template.timeout,
290
286
  metadata: metadata,
291
287
  retry_policy: @config.rpcs.launch_template.retry_policy
292
- options.apply_defaults metadata: @config.metadata,
288
+
289
+ options.apply_defaults timeout: @config.timeout,
290
+ metadata: @config.metadata,
293
291
  retry_policy: @config.retry_policy
294
292
 
295
293
  @templates_service_stub.call_rpc :launch_template, request, options: options do |response, operation|
@@ -359,7 +357,9 @@ module Google
359
357
  options.apply_defaults timeout: @config.rpcs.get_template.timeout,
360
358
  metadata: metadata,
361
359
  retry_policy: @config.rpcs.get_template.retry_policy
362
- options.apply_defaults metadata: @config.metadata,
360
+
361
+ options.apply_defaults timeout: @config.timeout,
362
+ metadata: @config.metadata,
363
363
  retry_policy: @config.retry_policy
364
364
 
365
365
  @templates_service_stub.call_rpc :get_template, request, options: options do |response, operation|
@@ -383,22 +383,21 @@ module Google
383
383
  # Configuration can be applied globally to all clients, or to a single client
384
384
  # on construction.
385
385
  #
386
- # # Examples
387
- #
388
- # To modify the global config, setting the timeout for create_job_from_template
389
- # to 20 seconds, and all remaining timeouts to 10 seconds:
390
- #
391
- # ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.configure do |config|
392
- # config.timeout = 10.0
393
- # config.rpcs.create_job_from_template.timeout = 20.0
394
- # end
395
- #
396
- # To apply the above configuration only to a new client:
397
- #
398
- # client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new do |config|
399
- # config.timeout = 10.0
400
- # config.rpcs.create_job_from_template.timeout = 20.0
401
- # end
386
+ # @example
387
+ #
388
+ # # Modify the global config, setting the timeout for
389
+ # # create_job_from_template to 20 seconds,
390
+ # # and all remaining timeouts to 10 seconds.
391
+ # ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.configure do |config|
392
+ # config.timeout = 10.0
393
+ # config.rpcs.create_job_from_template.timeout = 20.0
394
+ # end
395
+ #
396
+ # # Apply the above configuration only to a new client.
397
+ # client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new do |config|
398
+ # config.timeout = 10.0
399
+ # config.rpcs.create_job_from_template.timeout = 20.0
400
+ # end
402
401
  #
403
402
  # @!attribute [rw] endpoint
404
403
  # The hostname or hostname:port of the service endpoint.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Dataflow
23
23
  module V1beta3
24
- VERSION = "0.1.1"
24
+ VERSION = "0.1.2"
25
25
  end
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-dataflow-v1beta3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-12 00:00:00.000000000 Z
11
+ date: 2021-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.5'
19
+ version: '0.7'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.5'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a