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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab2d2b74cf9bb7d79ced744b428d82668ab2bd6b0a0229a414f489ec73cf7995
|
4
|
+
data.tar.gz: 867a6cf76c9633cf07f368fa8aec04231b3e2317196dd75d0eea6067fb03d7b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
#
|
45
|
+
# @example
|
46
46
|
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
#
|
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
|
-
#
|
124
|
-
#
|
125
|
-
# To create a new CloudScheduler client with the default
|
126
|
-
# configuration:
|
122
|
+
# @example
|
127
123
|
#
|
128
|
-
#
|
124
|
+
# # Create a client using the default configuration
|
125
|
+
# client = ::Google::Cloud::Scheduler::V1::CloudScheduler::Client.new
|
129
126
|
#
|
130
|
-
#
|
131
|
-
#
|
132
|
-
#
|
133
|
-
#
|
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
|
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.
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
#
|
777
|
-
#
|
778
|
-
#
|
779
|
-
# to 20 seconds,
|
780
|
-
#
|
781
|
-
#
|
782
|
-
#
|
783
|
-
#
|
784
|
-
#
|
785
|
-
#
|
786
|
-
#
|
787
|
-
#
|
788
|
-
#
|
789
|
-
#
|
790
|
-
#
|
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.
|
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.
|
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-
|
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.
|
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.
|
29
|
+
version: '0.7'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|