google-cloud-scheduler-v1beta1 0.4.2 → 0.4.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b851ebbb4d60b2c946c975ea888227d00055a82666095d05dc1d42717062c783
4
- data.tar.gz: 989228d38192e1db03513c3fc9fb803e9c14e8e0e117852b221bbb7689bafbd6
3
+ metadata.gz: 71ef6de9b6fd95a897106da010722f4a6b1a0b80041c51b67943a11fab24cf39
4
+ data.tar.gz: 3c625e380b058dbb4195ead824fa196f65aea1e14ff2a06be7c0af521bb3379e
5
5
  SHA512:
6
- metadata.gz: 0a6fdc7d5687092d2e0f25a577ea9471ded0dbab1095382f8176ab54af841ee198a869a8483b0bea7f881b58813eac39a14b45a8c859e7572dc16efe16693bbc
7
- data.tar.gz: c5733a9751f56538421d9879802f7d725263367d27fce1b50f534a5eebd46695595420614f3cbbffd75583bb17d0005a0aab1d0ef72263c70bcb22af70721c57
6
+ metadata.gz: ce39041f1955a2f80eeacf9b70d07963882698ab705b2eeb90886a47b043d3f3ed8219e90287541f48b8c37b4de869711d7b62ed5db016e454151a2a5d602ad5
7
+ data.tar.gz: fefb265875bc621150a4564dcaa46ff45403710bdbb3a9d08c5654f03a1032efcb7bea75608a974ee634d7d23e2c02a08def267d8f6d89ca44b5d9506c51d866
@@ -42,13 +42,12 @@ module Google
42
42
  # See {::Google::Cloud::Scheduler::V1beta1::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::V1beta1::CloudScheduler::Client.configure do |config|
50
- # config.timeout = 10.0
51
- # end
47
+ # # Modify the configuration for all CloudScheduler clients
48
+ # ::Google::Cloud::Scheduler::V1beta1::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]
@@ -126,19 +125,15 @@ module Google
126
125
  ##
127
126
  # Create a new CloudScheduler client object.
128
127
  #
129
- # ## Examples
130
- #
131
- # To create a new CloudScheduler client with the default
132
- # configuration:
128
+ # @example
133
129
  #
134
- # client = ::Google::Cloud::Scheduler::V1beta1::CloudScheduler::Client.new
130
+ # # Create a client using the default configuration
131
+ # client = ::Google::Cloud::Scheduler::V1beta1::CloudScheduler::Client.new
135
132
  #
136
- # To create a new CloudScheduler client with a custom
137
- # configuration:
138
- #
139
- # client = ::Google::Cloud::Scheduler::V1beta1::CloudScheduler::Client.new do |config|
140
- # config.timeout = 10.0
141
- # end
133
+ # # Create a client using a custom configuration
134
+ # client = ::Google::Cloud::Scheduler::V1beta1::CloudScheduler::Client.new do |config|
135
+ # config.timeout = 10.0
136
+ # end
142
137
  #
143
138
  # @yield [config] Configure the CloudScheduler client.
144
139
  # @yieldparam config [Client::Configuration]
@@ -158,10 +153,9 @@ module Google
158
153
 
159
154
  # Create credentials
160
155
  credentials = @config.credentials
161
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
156
+ # Use self-signed JWT if the endpoint is unchanged from default,
162
157
  # but only if the default endpoint does not have a region prefix.
163
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
164
- @config.endpoint == Client.configure.endpoint &&
158
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
165
159
  !@config.endpoint.split(".").first.include?("-")
166
160
  credentials ||= Credentials.default scope: @config.scope,
167
161
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -253,7 +247,9 @@ module Google
253
247
  options.apply_defaults timeout: @config.rpcs.list_jobs.timeout,
254
248
  metadata: metadata,
255
249
  retry_policy: @config.rpcs.list_jobs.retry_policy
256
- options.apply_defaults metadata: @config.metadata,
250
+
251
+ options.apply_defaults timeout: @config.timeout,
252
+ metadata: @config.metadata,
257
253
  retry_policy: @config.retry_policy
258
254
 
259
255
  @cloud_scheduler_stub.call_rpc :list_jobs, request, options: options do |response, operation|
@@ -321,7 +317,9 @@ module Google
321
317
  options.apply_defaults timeout: @config.rpcs.get_job.timeout,
322
318
  metadata: metadata,
323
319
  retry_policy: @config.rpcs.get_job.retry_policy
324
- options.apply_defaults metadata: @config.metadata,
320
+
321
+ options.apply_defaults timeout: @config.timeout,
322
+ metadata: @config.metadata,
325
323
  retry_policy: @config.retry_policy
326
324
 
327
325
  @cloud_scheduler_stub.call_rpc :get_job, request, options: options do |response, operation|
@@ -394,7 +392,9 @@ module Google
394
392
  options.apply_defaults timeout: @config.rpcs.create_job.timeout,
395
393
  metadata: metadata,
396
394
  retry_policy: @config.rpcs.create_job.retry_policy
397
- options.apply_defaults metadata: @config.metadata,
395
+
396
+ options.apply_defaults timeout: @config.timeout,
397
+ metadata: @config.metadata,
398
398
  retry_policy: @config.retry_policy
399
399
 
400
400
  @cloud_scheduler_stub.call_rpc :create_job, request, options: options do |response, operation|
@@ -473,7 +473,9 @@ module Google
473
473
  options.apply_defaults timeout: @config.rpcs.update_job.timeout,
474
474
  metadata: metadata,
475
475
  retry_policy: @config.rpcs.update_job.retry_policy
476
- options.apply_defaults metadata: @config.metadata,
476
+
477
+ options.apply_defaults timeout: @config.timeout,
478
+ metadata: @config.metadata,
477
479
  retry_policy: @config.retry_policy
478
480
 
479
481
  @cloud_scheduler_stub.call_rpc :update_job, request, options: options do |response, operation|
@@ -540,7 +542,9 @@ module Google
540
542
  options.apply_defaults timeout: @config.rpcs.delete_job.timeout,
541
543
  metadata: metadata,
542
544
  retry_policy: @config.rpcs.delete_job.retry_policy
543
- options.apply_defaults metadata: @config.metadata,
545
+
546
+ options.apply_defaults timeout: @config.timeout,
547
+ metadata: @config.metadata,
544
548
  retry_policy: @config.retry_policy
545
549
 
546
550
  @cloud_scheduler_stub.call_rpc :delete_job, request, options: options do |response, operation|
@@ -613,7 +617,9 @@ module Google
613
617
  options.apply_defaults timeout: @config.rpcs.pause_job.timeout,
614
618
  metadata: metadata,
615
619
  retry_policy: @config.rpcs.pause_job.retry_policy
616
- options.apply_defaults metadata: @config.metadata,
620
+
621
+ options.apply_defaults timeout: @config.timeout,
622
+ metadata: @config.metadata,
617
623
  retry_policy: @config.retry_policy
618
624
 
619
625
  @cloud_scheduler_stub.call_rpc :pause_job, request, options: options do |response, operation|
@@ -685,7 +691,9 @@ module Google
685
691
  options.apply_defaults timeout: @config.rpcs.resume_job.timeout,
686
692
  metadata: metadata,
687
693
  retry_policy: @config.rpcs.resume_job.retry_policy
688
- options.apply_defaults metadata: @config.metadata,
694
+
695
+ options.apply_defaults timeout: @config.timeout,
696
+ metadata: @config.metadata,
689
697
  retry_policy: @config.retry_policy
690
698
 
691
699
  @cloud_scheduler_stub.call_rpc :resume_job, request, options: options do |response, operation|
@@ -755,7 +763,9 @@ module Google
755
763
  options.apply_defaults timeout: @config.rpcs.run_job.timeout,
756
764
  metadata: metadata,
757
765
  retry_policy: @config.rpcs.run_job.retry_policy
758
- options.apply_defaults metadata: @config.metadata,
766
+
767
+ options.apply_defaults timeout: @config.timeout,
768
+ metadata: @config.metadata,
759
769
  retry_policy: @config.retry_policy
760
770
 
761
771
  @cloud_scheduler_stub.call_rpc :run_job, request, options: options do |response, operation|
@@ -779,22 +789,21 @@ module Google
779
789
  # Configuration can be applied globally to all clients, or to a single client
780
790
  # on construction.
781
791
  #
782
- # # Examples
783
- #
784
- # To modify the global config, setting the timeout for list_jobs
785
- # to 20 seconds, and all remaining timeouts to 10 seconds:
786
- #
787
- # ::Google::Cloud::Scheduler::V1beta1::CloudScheduler::Client.configure do |config|
788
- # config.timeout = 10.0
789
- # config.rpcs.list_jobs.timeout = 20.0
790
- # end
791
- #
792
- # To apply the above configuration only to a new client:
793
- #
794
- # client = ::Google::Cloud::Scheduler::V1beta1::CloudScheduler::Client.new do |config|
795
- # config.timeout = 10.0
796
- # config.rpcs.list_jobs.timeout = 20.0
797
- # end
792
+ # @example
793
+ #
794
+ # # Modify the global config, setting the timeout for
795
+ # # list_jobs to 20 seconds,
796
+ # # and all remaining timeouts to 10 seconds.
797
+ # ::Google::Cloud::Scheduler::V1beta1::CloudScheduler::Client.configure do |config|
798
+ # config.timeout = 10.0
799
+ # config.rpcs.list_jobs.timeout = 20.0
800
+ # end
801
+ #
802
+ # # Apply the above configuration only to a new client.
803
+ # client = ::Google::Cloud::Scheduler::V1beta1::CloudScheduler::Client.new do |config|
804
+ # config.timeout = 10.0
805
+ # config.rpcs.list_jobs.timeout = 20.0
806
+ # end
798
807
  #
799
808
  # @!attribute [rw] endpoint
800
809
  # 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 V1beta1
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-v1beta1
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