google-cloud-scheduler-v1 0.8.0 → 0.9.0
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/v1/cloud_scheduler/client.rb +14 -3
- data/lib/google/cloud/scheduler/v1/cloud_scheduler/rest/client.rb +136 -2
- data/lib/google/cloud/scheduler/v1/cloud_scheduler/rest/service_stub.rb +8 -8
- data/lib/google/cloud/scheduler/v1/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +14 -0
- 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: 1b8a4835e6c0a08deafb78bd053fcf66a4ce3accab32b75e50408c45d029372c
|
4
|
+
data.tar.gz: 9e69b49dd1b5f43525759ba2450228484824c0ffa713ce309ee35da10cff32eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc56c66ead7c5334ec0c4dbfcb8afbcd0871a47a1f90e1bc8aaa53404cc1aebb389438d7170b103e7548180632b443e6e6097a2c5dd8d8bd843b6709d0b7bb52
|
7
|
+
data.tar.gz: fdfc1eaad0e330e1d10e078a18fdf93555b824ae79afb59d4f5245e746daa9c9805024681033b578a92056952f1f4b3f012c0e42310713ec99b749d19b676225
|
@@ -150,7 +150,7 @@ module Google
|
|
150
150
|
credentials = @config.credentials
|
151
151
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
152
152
|
# but only if the default endpoint does not have a region prefix.
|
153
|
-
enable_self_signed_jwt = @config.endpoint ==
|
153
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
154
154
|
!@config.endpoint.split(".").first.include?("-")
|
155
155
|
credentials ||= Credentials.default scope: @config.scope,
|
156
156
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -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
|
|
@@ -1018,7 +1019,9 @@ module Google
|
|
1018
1019
|
class Configuration
|
1019
1020
|
extend ::Gapic::Config
|
1020
1021
|
|
1021
|
-
|
1022
|
+
DEFAULT_ENDPOINT = "cloudscheduler.googleapis.com"
|
1023
|
+
|
1024
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
1022
1025
|
config_attr :credentials, nil do |value|
|
1023
1026
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1024
1027
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -1053,6 +1056,14 @@ module Google
|
|
1053
1056
|
end
|
1054
1057
|
end
|
1055
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
|
+
|
1056
1067
|
##
|
1057
1068
|
# Configuration RPC class for the CloudScheduler API.
|
1058
1069
|
#
|
@@ -146,7 +146,7 @@ module Google
|
|
146
146
|
credentials = @config.credentials
|
147
147
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
148
148
|
# but only if the default endpoint does not have a region prefix.
|
149
|
-
enable_self_signed_jwt = @config.endpoint ==
|
149
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
150
150
|
!@config.endpoint.split(".").first.include?("-")
|
151
151
|
credentials ||= Credentials.default scope: @config.scope,
|
152
152
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -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
|
|
@@ -813,7 +945,9 @@ module Google
|
|
813
945
|
class Configuration
|
814
946
|
extend ::Gapic::Config
|
815
947
|
|
816
|
-
|
948
|
+
DEFAULT_ENDPOINT = "cloudscheduler.googleapis.com"
|
949
|
+
|
950
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
817
951
|
config_attr :credentials, nil do |value|
|
818
952
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
819
953
|
allowed.any? { |klass| klass === value }
|
@@ -59,7 +59,7 @@ module Google
|
|
59
59
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_jobs_request request_pb
|
61
61
|
query_string_params = if query_string_params.any?
|
62
|
-
query_string_params.to_h { |p| p.split
|
62
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
63
63
|
else
|
64
64
|
{}
|
65
65
|
end
|
@@ -97,7 +97,7 @@ module Google
|
|
97
97
|
|
98
98
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_job_request request_pb
|
99
99
|
query_string_params = if query_string_params.any?
|
100
|
-
query_string_params.to_h { |p| p.split
|
100
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
101
101
|
else
|
102
102
|
{}
|
103
103
|
end
|
@@ -135,7 +135,7 @@ module Google
|
|
135
135
|
|
136
136
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_job_request request_pb
|
137
137
|
query_string_params = if query_string_params.any?
|
138
|
-
query_string_params.to_h { |p| p.split
|
138
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
139
139
|
else
|
140
140
|
{}
|
141
141
|
end
|
@@ -173,7 +173,7 @@ module Google
|
|
173
173
|
|
174
174
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_job_request request_pb
|
175
175
|
query_string_params = if query_string_params.any?
|
176
|
-
query_string_params.to_h { |p| p.split
|
176
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
177
177
|
else
|
178
178
|
{}
|
179
179
|
end
|
@@ -211,7 +211,7 @@ module Google
|
|
211
211
|
|
212
212
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_job_request request_pb
|
213
213
|
query_string_params = if query_string_params.any?
|
214
|
-
query_string_params.to_h { |p| p.split
|
214
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
215
215
|
else
|
216
216
|
{}
|
217
217
|
end
|
@@ -249,7 +249,7 @@ module Google
|
|
249
249
|
|
250
250
|
verb, uri, query_string_params, body = ServiceStub.transcode_pause_job_request request_pb
|
251
251
|
query_string_params = if query_string_params.any?
|
252
|
-
query_string_params.to_h { |p| p.split
|
252
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
253
253
|
else
|
254
254
|
{}
|
255
255
|
end
|
@@ -287,7 +287,7 @@ module Google
|
|
287
287
|
|
288
288
|
verb, uri, query_string_params, body = ServiceStub.transcode_resume_job_request request_pb
|
289
289
|
query_string_params = if query_string_params.any?
|
290
|
-
query_string_params.to_h { |p| p.split
|
290
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
291
291
|
else
|
292
292
|
{}
|
293
293
|
end
|
@@ -325,7 +325,7 @@ module Google
|
|
325
325
|
|
326
326
|
verb, uri, query_string_params, body = ServiceStub.transcode_run_job_request request_pb
|
327
327
|
query_string_params = if query_string_params.any?
|
328
|
-
query_string_params.to_h { |p| p.split
|
328
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
329
329
|
else
|
330
330
|
{}
|
331
331
|
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
|
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
|
+
version: 0.9.0
|
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-09-12 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.
|