google-cloud-scheduler-v1beta1 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 +4 -4
- data/lib/google/cloud/scheduler/v1beta1/cloud_scheduler/client.rb +10 -1
- data/lib/google/cloud/scheduler/v1beta1/cloud_scheduler/rest/client.rb +132 -0
- data/lib/google/cloud/scheduler/v1beta1/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +14 -0
- data/proto_docs/google/cloud/scheduler/v1beta1/target.rb +4 -4
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df7a1d31152c0dad34584629c83f92b7a7a1ffa2b0e4fd0ce99574d1f64649ab
|
4
|
+
data.tar.gz: d85c8e8fb8c8041b99bc53d48fdaf5f5ada49b991de21470db9f547a4da5e50a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c4d8fc5e6a504ff79b198cfeb783eafb5863b3b6700e726328197c5cdaebe4dab6f2a2e9ab6b38164a0699be10ea3ff2ae49657dafb55434f3b80130b4cc3c2
|
7
|
+
data.tar.gz: c0e58bff6862a8cad5de79ae6b996bfb635fb4050833dd40452ce8e61ef952ec499e6820668df71ed36a8aa5813f0e4c5f3832ca13ba60b0aa9bc77f1ae2bbf1
|
@@ -177,7 +177,8 @@ module Google
|
|
177
177
|
credentials: credentials,
|
178
178
|
endpoint: @config.endpoint,
|
179
179
|
channel_args: @config.channel_args,
|
180
|
-
interceptors: @config.interceptors
|
180
|
+
interceptors: @config.interceptors,
|
181
|
+
channel_pool_config: @config.channel_pool
|
181
182
|
)
|
182
183
|
end
|
183
184
|
|
@@ -1085,6 +1086,14 @@ module Google
|
|
1085
1086
|
end
|
1086
1087
|
end
|
1087
1088
|
|
1089
|
+
##
|
1090
|
+
# Configuration for the channel pool
|
1091
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
1092
|
+
#
|
1093
|
+
def channel_pool
|
1094
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
1095
|
+
end
|
1096
|
+
|
1088
1097
|
##
|
1089
1098
|
# Configuration RPC class for the CloudScheduler API.
|
1090
1099
|
#
|
@@ -241,6 +241,26 @@ module Google
|
|
241
241
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Scheduler::V1beta1::Job>]
|
242
242
|
#
|
243
243
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
244
|
+
#
|
245
|
+
# @example Basic example
|
246
|
+
# require "google/cloud/scheduler/v1beta1"
|
247
|
+
#
|
248
|
+
# # Create a client object. The client can be reused for multiple calls.
|
249
|
+
# client = Google::Cloud::Scheduler::V1beta1::CloudScheduler::Rest::Client.new
|
250
|
+
#
|
251
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
252
|
+
# request = Google::Cloud::Scheduler::V1beta1::ListJobsRequest.new
|
253
|
+
#
|
254
|
+
# # Call the list_jobs method.
|
255
|
+
# result = client.list_jobs request
|
256
|
+
#
|
257
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
258
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
259
|
+
# result.each do |item|
|
260
|
+
# # Each element is of type ::Google::Cloud::Scheduler::V1beta1::Job.
|
261
|
+
# p item
|
262
|
+
# end
|
263
|
+
#
|
244
264
|
def list_jobs request, options = nil
|
245
265
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
246
266
|
|
@@ -305,6 +325,22 @@ module Google
|
|
305
325
|
# @return [::Google::Cloud::Scheduler::V1beta1::Job]
|
306
326
|
#
|
307
327
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
328
|
+
#
|
329
|
+
# @example Basic example
|
330
|
+
# require "google/cloud/scheduler/v1beta1"
|
331
|
+
#
|
332
|
+
# # Create a client object. The client can be reused for multiple calls.
|
333
|
+
# client = Google::Cloud::Scheduler::V1beta1::CloudScheduler::Rest::Client.new
|
334
|
+
#
|
335
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
336
|
+
# request = Google::Cloud::Scheduler::V1beta1::GetJobRequest.new
|
337
|
+
#
|
338
|
+
# # Call the get_job method.
|
339
|
+
# result = client.get_job request
|
340
|
+
#
|
341
|
+
# # The returned object is of type Google::Cloud::Scheduler::V1beta1::Job.
|
342
|
+
# p result
|
343
|
+
#
|
308
344
|
def get_job request, options = nil
|
309
345
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
310
346
|
|
@@ -375,6 +411,22 @@ module Google
|
|
375
411
|
# @return [::Google::Cloud::Scheduler::V1beta1::Job]
|
376
412
|
#
|
377
413
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
414
|
+
#
|
415
|
+
# @example Basic example
|
416
|
+
# require "google/cloud/scheduler/v1beta1"
|
417
|
+
#
|
418
|
+
# # Create a client object. The client can be reused for multiple calls.
|
419
|
+
# client = Google::Cloud::Scheduler::V1beta1::CloudScheduler::Rest::Client.new
|
420
|
+
#
|
421
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
422
|
+
# request = Google::Cloud::Scheduler::V1beta1::CreateJobRequest.new
|
423
|
+
#
|
424
|
+
# # Call the create_job method.
|
425
|
+
# result = client.create_job request
|
426
|
+
#
|
427
|
+
# # The returned object is of type Google::Cloud::Scheduler::V1beta1::Job.
|
428
|
+
# p result
|
429
|
+
#
|
378
430
|
def create_job request, options = nil
|
379
431
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
380
432
|
|
@@ -452,6 +504,22 @@ module Google
|
|
452
504
|
# @return [::Google::Cloud::Scheduler::V1beta1::Job]
|
453
505
|
#
|
454
506
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
507
|
+
#
|
508
|
+
# @example Basic example
|
509
|
+
# require "google/cloud/scheduler/v1beta1"
|
510
|
+
#
|
511
|
+
# # Create a client object. The client can be reused for multiple calls.
|
512
|
+
# client = Google::Cloud::Scheduler::V1beta1::CloudScheduler::Rest::Client.new
|
513
|
+
#
|
514
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
515
|
+
# request = Google::Cloud::Scheduler::V1beta1::UpdateJobRequest.new
|
516
|
+
#
|
517
|
+
# # Call the update_job method.
|
518
|
+
# result = client.update_job request
|
519
|
+
#
|
520
|
+
# # The returned object is of type Google::Cloud::Scheduler::V1beta1::Job.
|
521
|
+
# p result
|
522
|
+
#
|
455
523
|
def update_job request, options = nil
|
456
524
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
457
525
|
|
@@ -519,6 +587,22 @@ module Google
|
|
519
587
|
# @return [::Google::Protobuf::Empty]
|
520
588
|
#
|
521
589
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
590
|
+
#
|
591
|
+
# @example Basic example
|
592
|
+
# require "google/cloud/scheduler/v1beta1"
|
593
|
+
#
|
594
|
+
# # Create a client object. The client can be reused for multiple calls.
|
595
|
+
# client = Google::Cloud::Scheduler::V1beta1::CloudScheduler::Rest::Client.new
|
596
|
+
#
|
597
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
598
|
+
# request = Google::Cloud::Scheduler::V1beta1::DeleteJobRequest.new
|
599
|
+
#
|
600
|
+
# # Call the delete_job method.
|
601
|
+
# result = client.delete_job request
|
602
|
+
#
|
603
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
604
|
+
# p result
|
605
|
+
#
|
522
606
|
def delete_job request, options = nil
|
523
607
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
524
608
|
|
@@ -592,6 +676,22 @@ module Google
|
|
592
676
|
# @return [::Google::Cloud::Scheduler::V1beta1::Job]
|
593
677
|
#
|
594
678
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
679
|
+
#
|
680
|
+
# @example Basic example
|
681
|
+
# require "google/cloud/scheduler/v1beta1"
|
682
|
+
#
|
683
|
+
# # Create a client object. The client can be reused for multiple calls.
|
684
|
+
# client = Google::Cloud::Scheduler::V1beta1::CloudScheduler::Rest::Client.new
|
685
|
+
#
|
686
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
687
|
+
# request = Google::Cloud::Scheduler::V1beta1::PauseJobRequest.new
|
688
|
+
#
|
689
|
+
# # Call the pause_job method.
|
690
|
+
# result = client.pause_job request
|
691
|
+
#
|
692
|
+
# # The returned object is of type Google::Cloud::Scheduler::V1beta1::Job.
|
693
|
+
# p result
|
694
|
+
#
|
595
695
|
def pause_job request, options = nil
|
596
696
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
597
697
|
|
@@ -665,6 +765,22 @@ module Google
|
|
665
765
|
# @return [::Google::Cloud::Scheduler::V1beta1::Job]
|
666
766
|
#
|
667
767
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
768
|
+
#
|
769
|
+
# @example Basic example
|
770
|
+
# require "google/cloud/scheduler/v1beta1"
|
771
|
+
#
|
772
|
+
# # Create a client object. The client can be reused for multiple calls.
|
773
|
+
# client = Google::Cloud::Scheduler::V1beta1::CloudScheduler::Rest::Client.new
|
774
|
+
#
|
775
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
776
|
+
# request = Google::Cloud::Scheduler::V1beta1::ResumeJobRequest.new
|
777
|
+
#
|
778
|
+
# # Call the resume_job method.
|
779
|
+
# result = client.resume_job request
|
780
|
+
#
|
781
|
+
# # The returned object is of type Google::Cloud::Scheduler::V1beta1::Job.
|
782
|
+
# p result
|
783
|
+
#
|
668
784
|
def resume_job request, options = nil
|
669
785
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
670
786
|
|
@@ -735,6 +851,22 @@ module Google
|
|
735
851
|
# @return [::Google::Cloud::Scheduler::V1beta1::Job]
|
736
852
|
#
|
737
853
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
854
|
+
#
|
855
|
+
# @example Basic example
|
856
|
+
# require "google/cloud/scheduler/v1beta1"
|
857
|
+
#
|
858
|
+
# # Create a client object. The client can be reused for multiple calls.
|
859
|
+
# client = Google::Cloud::Scheduler::V1beta1::CloudScheduler::Rest::Client.new
|
860
|
+
#
|
861
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
862
|
+
# request = Google::Cloud::Scheduler::V1beta1::RunJobRequest.new
|
863
|
+
#
|
864
|
+
# # Call the run_job method.
|
865
|
+
# result = client.run_job request
|
866
|
+
#
|
867
|
+
# # The returned object is of type Google::Cloud::Scheduler::V1beta1::Job.
|
868
|
+
# p result
|
869
|
+
#
|
738
870
|
def run_job request, options = nil
|
739
871
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
740
872
|
|
@@ -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
|
61
|
-
#
|
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
|
@@ -140,8 +140,8 @@ module Google
|
|
140
140
|
# * `X-CloudScheduler`: This header will be set to true.
|
141
141
|
# * `X-CloudScheduler-JobName`: This header will contain the job name.
|
142
142
|
# * `X-CloudScheduler-ScheduleTime`: For Cloud Scheduler jobs specified in
|
143
|
-
# the unix-cron format, this header will contain the job schedule
|
144
|
-
#
|
143
|
+
# the unix-cron format, this header will contain the job schedule as an
|
144
|
+
# offset of UTC parsed according to RFC3339.
|
145
145
|
#
|
146
146
|
# If the job has an
|
147
147
|
# {::Google::Cloud::Scheduler::V1beta1::AppEngineHttpTarget#body body}, Cloud
|
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
|
+
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-
|
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
|
+
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.
|
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.
|
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.
|