google-cloud-scheduler-v1 0.8.1 → 0.9.1

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: 7093c20f89ca31140c4aff921f517966ae9bdd35c6041e2737c0b4f98a5f7cf3
4
- data.tar.gz: 3f080f5e93af8ffae73aa05475b389fbaa66fa50cbffc822d0cda3f911bdcfac
3
+ metadata.gz: fba56dc1b5a71b643754a8793884fbe2ce730482ca4acf6aed6568323e5683a1
4
+ data.tar.gz: 7fff709ac98c4e245f92e3f419ae91f15f4b81d415cb521b933bbe1d0260bf82
5
5
  SHA512:
6
- metadata.gz: 60463955592458c8c8335be04c94224b45a5cf6aa9fcc735dc5b7a6056fff313894c84d64237b3bcaaa9815d61de8e66c68e0b041ec8eb1e9359fb43e369c889
7
- data.tar.gz: 90882b30cf1d9e43e62ee38704fbfd025de5f930b46171430a4768b38d58e4079acd4599fe2f2c7f5c8030267a7d861bc6c7cb4fd8750f89e9c60c43135b5cd2
6
+ metadata.gz: df56119d92a4a63fdfd26918a66892109d4a51f12b04b27cdf7ac0a27bd0bb788a4a95b39eeabd167cecb823cc1bd425003117ef72381ab7403d9b1d6911d927
7
+ data.tar.gz: 715b27b8d7aa65e81037fbd6215522db4569780d57f7b75c73e5adc400f1957aa310eee3f1308013121b5d91b005c4f90824376b6fb95e5a383471868e00c932
@@ -171,7 +171,8 @@ module Google
171
171
  credentials: credentials,
172
172
  endpoint: @config.endpoint,
173
173
  channel_args: @config.channel_args,
174
- interceptors: @config.interceptors
174
+ interceptors: @config.interceptors,
175
+ channel_pool_config: @config.channel_pool
175
176
  )
176
177
  end
177
178
 
@@ -1055,6 +1056,14 @@ module Google
1055
1056
  end
1056
1057
  end
1057
1058
 
1059
+ ##
1060
+ # Configuration for the channel pool
1061
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
1062
+ #
1063
+ def channel_pool
1064
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
1065
+ end
1066
+
1058
1067
  ##
1059
1068
  # Configuration RPC class for the CloudScheduler API.
1060
1069
  #
@@ -222,6 +222,26 @@ module Google
222
222
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Scheduler::V1::Job>]
223
223
  #
224
224
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
225
+ #
226
+ # @example Basic example
227
+ # require "google/cloud/scheduler/v1"
228
+ #
229
+ # # Create a client object. The client can be reused for multiple calls.
230
+ # client = Google::Cloud::Scheduler::V1::CloudScheduler::Rest::Client.new
231
+ #
232
+ # # Create a request. To set request fields, pass in keyword arguments.
233
+ # request = Google::Cloud::Scheduler::V1::ListJobsRequest.new
234
+ #
235
+ # # Call the list_jobs method.
236
+ # result = client.list_jobs request
237
+ #
238
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
239
+ # # over elements, and API calls will be issued to fetch pages as needed.
240
+ # result.each do |item|
241
+ # # Each element is of type ::Google::Cloud::Scheduler::V1::Job.
242
+ # p item
243
+ # end
244
+ #
225
245
  def list_jobs request, options = nil
226
246
  raise ::ArgumentError, "request must be provided" if request.nil?
227
247
 
@@ -286,6 +306,22 @@ module Google
286
306
  # @return [::Google::Cloud::Scheduler::V1::Job]
287
307
  #
288
308
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
309
+ #
310
+ # @example Basic example
311
+ # require "google/cloud/scheduler/v1"
312
+ #
313
+ # # Create a client object. The client can be reused for multiple calls.
314
+ # client = Google::Cloud::Scheduler::V1::CloudScheduler::Rest::Client.new
315
+ #
316
+ # # Create a request. To set request fields, pass in keyword arguments.
317
+ # request = Google::Cloud::Scheduler::V1::GetJobRequest.new
318
+ #
319
+ # # Call the get_job method.
320
+ # result = client.get_job request
321
+ #
322
+ # # The returned object is of type Google::Cloud::Scheduler::V1::Job.
323
+ # p result
324
+ #
289
325
  def get_job request, options = nil
290
326
  raise ::ArgumentError, "request must be provided" if request.nil?
291
327
 
@@ -356,6 +392,22 @@ module Google
356
392
  # @return [::Google::Cloud::Scheduler::V1::Job]
357
393
  #
358
394
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
395
+ #
396
+ # @example Basic example
397
+ # require "google/cloud/scheduler/v1"
398
+ #
399
+ # # Create a client object. The client can be reused for multiple calls.
400
+ # client = Google::Cloud::Scheduler::V1::CloudScheduler::Rest::Client.new
401
+ #
402
+ # # Create a request. To set request fields, pass in keyword arguments.
403
+ # request = Google::Cloud::Scheduler::V1::CreateJobRequest.new
404
+ #
405
+ # # Call the create_job method.
406
+ # result = client.create_job request
407
+ #
408
+ # # The returned object is of type Google::Cloud::Scheduler::V1::Job.
409
+ # p result
410
+ #
359
411
  def create_job request, options = nil
360
412
  raise ::ArgumentError, "request must be provided" if request.nil?
361
413
 
@@ -433,6 +485,22 @@ module Google
433
485
  # @return [::Google::Cloud::Scheduler::V1::Job]
434
486
  #
435
487
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
488
+ #
489
+ # @example Basic example
490
+ # require "google/cloud/scheduler/v1"
491
+ #
492
+ # # Create a client object. The client can be reused for multiple calls.
493
+ # client = Google::Cloud::Scheduler::V1::CloudScheduler::Rest::Client.new
494
+ #
495
+ # # Create a request. To set request fields, pass in keyword arguments.
496
+ # request = Google::Cloud::Scheduler::V1::UpdateJobRequest.new
497
+ #
498
+ # # Call the update_job method.
499
+ # result = client.update_job request
500
+ #
501
+ # # The returned object is of type Google::Cloud::Scheduler::V1::Job.
502
+ # p result
503
+ #
436
504
  def update_job request, options = nil
437
505
  raise ::ArgumentError, "request must be provided" if request.nil?
438
506
 
@@ -496,6 +564,22 @@ module Google
496
564
  # @return [::Google::Protobuf::Empty]
497
565
  #
498
566
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
567
+ #
568
+ # @example Basic example
569
+ # require "google/cloud/scheduler/v1"
570
+ #
571
+ # # Create a client object. The client can be reused for multiple calls.
572
+ # client = Google::Cloud::Scheduler::V1::CloudScheduler::Rest::Client.new
573
+ #
574
+ # # Create a request. To set request fields, pass in keyword arguments.
575
+ # request = Google::Cloud::Scheduler::V1::DeleteJobRequest.new
576
+ #
577
+ # # Call the delete_job method.
578
+ # result = client.delete_job request
579
+ #
580
+ # # The returned object is of type Google::Protobuf::Empty.
581
+ # p result
582
+ #
499
583
  def delete_job request, options = nil
500
584
  raise ::ArgumentError, "request must be provided" if request.nil?
501
585
 
@@ -568,6 +652,22 @@ module Google
568
652
  # @return [::Google::Cloud::Scheduler::V1::Job]
569
653
  #
570
654
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
655
+ #
656
+ # @example Basic example
657
+ # require "google/cloud/scheduler/v1"
658
+ #
659
+ # # Create a client object. The client can be reused for multiple calls.
660
+ # client = Google::Cloud::Scheduler::V1::CloudScheduler::Rest::Client.new
661
+ #
662
+ # # Create a request. To set request fields, pass in keyword arguments.
663
+ # request = Google::Cloud::Scheduler::V1::PauseJobRequest.new
664
+ #
665
+ # # Call the pause_job method.
666
+ # result = client.pause_job request
667
+ #
668
+ # # The returned object is of type Google::Cloud::Scheduler::V1::Job.
669
+ # p result
670
+ #
571
671
  def pause_job request, options = nil
572
672
  raise ::ArgumentError, "request must be provided" if request.nil?
573
673
 
@@ -639,6 +739,22 @@ module Google
639
739
  # @return [::Google::Cloud::Scheduler::V1::Job]
640
740
  #
641
741
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
742
+ #
743
+ # @example Basic example
744
+ # require "google/cloud/scheduler/v1"
745
+ #
746
+ # # Create a client object. The client can be reused for multiple calls.
747
+ # client = Google::Cloud::Scheduler::V1::CloudScheduler::Rest::Client.new
748
+ #
749
+ # # Create a request. To set request fields, pass in keyword arguments.
750
+ # request = Google::Cloud::Scheduler::V1::ResumeJobRequest.new
751
+ #
752
+ # # Call the resume_job method.
753
+ # result = client.resume_job request
754
+ #
755
+ # # The returned object is of type Google::Cloud::Scheduler::V1::Job.
756
+ # p result
757
+ #
642
758
  def resume_job request, options = nil
643
759
  raise ::ArgumentError, "request must be provided" if request.nil?
644
760
 
@@ -705,6 +821,22 @@ module Google
705
821
  # @return [::Google::Cloud::Scheduler::V1::Job]
706
822
  #
707
823
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
824
+ #
825
+ # @example Basic example
826
+ # require "google/cloud/scheduler/v1"
827
+ #
828
+ # # Create a client object. The client can be reused for multiple calls.
829
+ # client = Google::Cloud::Scheduler::V1::CloudScheduler::Rest::Client.new
830
+ #
831
+ # # Create a request. To set request fields, pass in keyword arguments.
832
+ # request = Google::Cloud::Scheduler::V1::RunJobRequest.new
833
+ #
834
+ # # Call the run_job method.
835
+ # result = client.run_job request
836
+ #
837
+ # # The returned object is of type Google::Cloud::Scheduler::V1::Job.
838
+ # p result
839
+ #
708
840
  def run_job request, options = nil
709
841
  raise ::ArgumentError, "request must be provided" if request.nil?
710
842
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Scheduler
23
23
  module V1
24
- VERSION = "0.8.1"
24
+ VERSION = "0.9.1"
25
25
  end
26
26
  end
27
27
  end
@@ -66,6 +66,20 @@ module Google
66
66
  # a non-empty value will be returned. The user will not be aware of what
67
67
  # non-empty value to expect.
68
68
  NON_EMPTY_DEFAULT = 7
69
+
70
+ # Denotes that the field in a resource (a message annotated with
71
+ # google.api.resource) is used in the resource name to uniquely identify the
72
+ # resource. For AIP-compliant APIs, this should only be applied to the
73
+ # `name` field on the resource.
74
+ #
75
+ # This behavior should not be applied to references to other resources within
76
+ # the message.
77
+ #
78
+ # The identifier field of resources often have different field behavior
79
+ # depending on the request it is embedded in (e.g. for Create methods name
80
+ # is optional and unused, while for Update methods it is required). Instead
81
+ # of method-specific annotations, only `IDENTIFIER` is required.
82
+ IDENTIFIER = 8
69
83
  end
70
84
  end
71
85
  end
@@ -57,8 +57,8 @@ module Google
57
57
  # * `X-CloudScheduler`: This header will be set to true.
58
58
  # * `X-CloudScheduler-JobName`: This header will contain the job name.
59
59
  # * `X-CloudScheduler-ScheduleTime`: For Cloud Scheduler jobs specified in
60
- # the unix-cron format, this header will contain the job schedule time in
61
- # RFC3339 UTC "Zulu" format.
60
+ # the unix-cron format, this header will contain the job schedule as an
61
+ # offset of UTC parsed according to RFC3339.
62
62
  #
63
63
  # The total size of headers must be less than 80KB.
64
64
  # @!attribute [rw] body
@@ -141,8 +141,8 @@ module Google
141
141
  # * `X-CloudScheduler`: This header will be set to true.
142
142
  # * `X-CloudScheduler-JobName`: This header will contain the job name.
143
143
  # * `X-CloudScheduler-ScheduleTime`: For Cloud Scheduler jobs specified in
144
- # the unix-cron format, this header will contain the job schedule time in
145
- # RFC3339 UTC "Zulu" format.
144
+ # the unix-cron format, this header will contain the job schedule as an
145
+ # offset of UTC parsed according to RFC3339.
146
146
  #
147
147
  # If the job has an
148
148
  # {::Google::Cloud::Scheduler::V1::AppEngineHttpTarget#body body}, Cloud Scheduler
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.8.1
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-06 00:00:00.000000000 Z
11
+ date: 2023-11-20 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.1
19
+ version: 0.20.0
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.19.1
29
+ version: 0.20.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -242,7 +242,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
242
242
  - !ruby/object:Gem::Version
243
243
  version: '0'
244
244
  requirements: []
245
- rubygems_version: 3.4.2
245
+ rubygems_version: 3.4.19
246
246
  signing_key:
247
247
  specification_version: 4
248
248
  summary: Creates and manages jobs run on a regular recurring schedule.