google-cloud-scheduler-v1 0.4.2 → 0.4.3

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: bde4c645a92a4be16386a4bf621c73a5b743d338be62d6f944a7d2784711ca0e
4
- data.tar.gz: fbff09bcc7a6aab9192f04f1d139146511b22e543c68058a3311eea0049cde3a
3
+ metadata.gz: ab2d2b74cf9bb7d79ced744b428d82668ab2bd6b0a0229a414f489ec73cf7995
4
+ data.tar.gz: 867a6cf76c9633cf07f368fa8aec04231b3e2317196dd75d0eea6067fb03d7b5
5
5
  SHA512:
6
- metadata.gz: 974b5f4a967290427fc644217db60ba63bcb78ecccbf478a2f0e69efcedf6179b9c47dc6be644d8cf3aa546923da55b87191b482f661eb7f0402409d826d35ba
7
- data.tar.gz: 46abcdad6aec3262ecf38efd2b0a29c5f533703972419f2daeba2d2b4ad40044fd1c73b345b4c742987cfb2a6564222c477efd9a46e66aad7d3a171c54c18585
6
+ metadata.gz: f924030b083b02b5ac3275cbcb2cc8df223ab4d23c9c5e84551fdc9fc4a0de666f45304192a3a94621a6f476d8bfc16eeb8460bc327eb10bcd9f7f11b48fe543
7
+ data.tar.gz: b79ca880631a7142677d50e0990294bcf41f60f27ba428868dfc696bf7df4a268b8790c959959339f5bf5fb56720ed787b72a61fb36fd7dc214d12d69c7fa110
@@ -42,13 +42,12 @@ module Google
42
42
  # See {::Google::Cloud::Scheduler::V1::CloudScheduler::Client::Configuration}
43
43
  # for a description of the configuration fields.
44
44
  #
45
- # ## Example
45
+ # @example
46
46
  #
47
- # To modify the configuration for all CloudScheduler clients:
48
- #
49
- # ::Google::Cloud::Scheduler::V1::CloudScheduler::Client.configure do |config|
50
- # config.timeout = 10.0
51
- # end
47
+ # # Modify the configuration for all CloudScheduler clients
48
+ # ::Google::Cloud::Scheduler::V1::CloudScheduler::Client.configure do |config|
49
+ # config.timeout = 10.0
50
+ # end
52
51
  #
53
52
  # @yield [config] Configure the Client client.
54
53
  # @yieldparam config [Client::Configuration]
@@ -120,19 +119,15 @@ module Google
120
119
  ##
121
120
  # Create a new CloudScheduler client object.
122
121
  #
123
- # ## Examples
124
- #
125
- # To create a new CloudScheduler client with the default
126
- # configuration:
122
+ # @example
127
123
  #
128
- # client = ::Google::Cloud::Scheduler::V1::CloudScheduler::Client.new
124
+ # # Create a client using the default configuration
125
+ # client = ::Google::Cloud::Scheduler::V1::CloudScheduler::Client.new
129
126
  #
130
- # To create a new CloudScheduler client with a custom
131
- # configuration:
132
- #
133
- # client = ::Google::Cloud::Scheduler::V1::CloudScheduler::Client.new do |config|
134
- # config.timeout = 10.0
135
- # end
127
+ # # Create a client using a custom configuration
128
+ # client = ::Google::Cloud::Scheduler::V1::CloudScheduler::Client.new do |config|
129
+ # config.timeout = 10.0
130
+ # end
136
131
  #
137
132
  # @yield [config] Configure the CloudScheduler client.
138
133
  # @yieldparam config [Client::Configuration]
@@ -152,10 +147,9 @@ module Google
152
147
 
153
148
  # Create credentials
154
149
  credentials = @config.credentials
155
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
150
+ # Use self-signed JWT if the endpoint is unchanged from default,
156
151
  # but only if the default endpoint does not have a region prefix.
157
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
158
- @config.endpoint == Client.configure.endpoint &&
152
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
159
153
  !@config.endpoint.split(".").first.include?("-")
160
154
  credentials ||= Credentials.default scope: @config.scope,
161
155
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -247,7 +241,9 @@ module Google
247
241
  options.apply_defaults timeout: @config.rpcs.list_jobs.timeout,
248
242
  metadata: metadata,
249
243
  retry_policy: @config.rpcs.list_jobs.retry_policy
250
- options.apply_defaults metadata: @config.metadata,
244
+
245
+ options.apply_defaults timeout: @config.timeout,
246
+ metadata: @config.metadata,
251
247
  retry_policy: @config.retry_policy
252
248
 
253
249
  @cloud_scheduler_stub.call_rpc :list_jobs, request, options: options do |response, operation|
@@ -315,7 +311,9 @@ module Google
315
311
  options.apply_defaults timeout: @config.rpcs.get_job.timeout,
316
312
  metadata: metadata,
317
313
  retry_policy: @config.rpcs.get_job.retry_policy
318
- options.apply_defaults metadata: @config.metadata,
314
+
315
+ options.apply_defaults timeout: @config.timeout,
316
+ metadata: @config.metadata,
319
317
  retry_policy: @config.retry_policy
320
318
 
321
319
  @cloud_scheduler_stub.call_rpc :get_job, request, options: options do |response, operation|
@@ -388,7 +386,9 @@ module Google
388
386
  options.apply_defaults timeout: @config.rpcs.create_job.timeout,
389
387
  metadata: metadata,
390
388
  retry_policy: @config.rpcs.create_job.retry_policy
391
- options.apply_defaults metadata: @config.metadata,
389
+
390
+ options.apply_defaults timeout: @config.timeout,
391
+ metadata: @config.metadata,
392
392
  retry_policy: @config.retry_policy
393
393
 
394
394
  @cloud_scheduler_stub.call_rpc :create_job, request, options: options do |response, operation|
@@ -467,7 +467,9 @@ module Google
467
467
  options.apply_defaults timeout: @config.rpcs.update_job.timeout,
468
468
  metadata: metadata,
469
469
  retry_policy: @config.rpcs.update_job.retry_policy
470
- options.apply_defaults metadata: @config.metadata,
470
+
471
+ options.apply_defaults timeout: @config.timeout,
472
+ metadata: @config.metadata,
471
473
  retry_policy: @config.retry_policy
472
474
 
473
475
  @cloud_scheduler_stub.call_rpc :update_job, request, options: options do |response, operation|
@@ -534,7 +536,9 @@ module Google
534
536
  options.apply_defaults timeout: @config.rpcs.delete_job.timeout,
535
537
  metadata: metadata,
536
538
  retry_policy: @config.rpcs.delete_job.retry_policy
537
- options.apply_defaults metadata: @config.metadata,
539
+
540
+ options.apply_defaults timeout: @config.timeout,
541
+ metadata: @config.metadata,
538
542
  retry_policy: @config.retry_policy
539
543
 
540
544
  @cloud_scheduler_stub.call_rpc :delete_job, request, options: options do |response, operation|
@@ -607,7 +611,9 @@ module Google
607
611
  options.apply_defaults timeout: @config.rpcs.pause_job.timeout,
608
612
  metadata: metadata,
609
613
  retry_policy: @config.rpcs.pause_job.retry_policy
610
- options.apply_defaults metadata: @config.metadata,
614
+
615
+ options.apply_defaults timeout: @config.timeout,
616
+ metadata: @config.metadata,
611
617
  retry_policy: @config.retry_policy
612
618
 
613
619
  @cloud_scheduler_stub.call_rpc :pause_job, request, options: options do |response, operation|
@@ -679,7 +685,9 @@ module Google
679
685
  options.apply_defaults timeout: @config.rpcs.resume_job.timeout,
680
686
  metadata: metadata,
681
687
  retry_policy: @config.rpcs.resume_job.retry_policy
682
- options.apply_defaults metadata: @config.metadata,
688
+
689
+ options.apply_defaults timeout: @config.timeout,
690
+ metadata: @config.metadata,
683
691
  retry_policy: @config.retry_policy
684
692
 
685
693
  @cloud_scheduler_stub.call_rpc :resume_job, request, options: options do |response, operation|
@@ -749,7 +757,9 @@ module Google
749
757
  options.apply_defaults timeout: @config.rpcs.run_job.timeout,
750
758
  metadata: metadata,
751
759
  retry_policy: @config.rpcs.run_job.retry_policy
752
- options.apply_defaults metadata: @config.metadata,
760
+
761
+ options.apply_defaults timeout: @config.timeout,
762
+ metadata: @config.metadata,
753
763
  retry_policy: @config.retry_policy
754
764
 
755
765
  @cloud_scheduler_stub.call_rpc :run_job, request, options: options do |response, operation|
@@ -773,22 +783,21 @@ module Google
773
783
  # Configuration can be applied globally to all clients, or to a single client
774
784
  # on construction.
775
785
  #
776
- # # Examples
777
- #
778
- # To modify the global config, setting the timeout for list_jobs
779
- # to 20 seconds, and all remaining timeouts to 10 seconds:
780
- #
781
- # ::Google::Cloud::Scheduler::V1::CloudScheduler::Client.configure do |config|
782
- # config.timeout = 10.0
783
- # config.rpcs.list_jobs.timeout = 20.0
784
- # end
785
- #
786
- # To apply the above configuration only to a new client:
787
- #
788
- # client = ::Google::Cloud::Scheduler::V1::CloudScheduler::Client.new do |config|
789
- # config.timeout = 10.0
790
- # config.rpcs.list_jobs.timeout = 20.0
791
- # end
786
+ # @example
787
+ #
788
+ # # Modify the global config, setting the timeout for
789
+ # # list_jobs to 20 seconds,
790
+ # # and all remaining timeouts to 10 seconds.
791
+ # ::Google::Cloud::Scheduler::V1::CloudScheduler::Client.configure do |config|
792
+ # config.timeout = 10.0
793
+ # config.rpcs.list_jobs.timeout = 20.0
794
+ # end
795
+ #
796
+ # # Apply the above configuration only to a new client.
797
+ # client = ::Google::Cloud::Scheduler::V1::CloudScheduler::Client.new do |config|
798
+ # config.timeout = 10.0
799
+ # config.rpcs.list_jobs.timeout = 20.0
800
+ # end
792
801
  #
793
802
  # @!attribute [rw] endpoint
794
803
  # The hostname or hostname:port of the service endpoint.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Scheduler
23
23
  module V1
24
- VERSION = "0.4.2"
24
+ VERSION = "0.4.3"
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-scheduler-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
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