google-cloud-scheduler 1.1.1 → 1.1.2
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 +4 -4
- data/lib/google/cloud/scheduler/v1/cloud_scheduler_client.rb +9 -27
- data/lib/google/cloud/scheduler/v1/cloudscheduler_pb.rb +2 -0
- data/lib/google/cloud/scheduler/v1/doc/google/cloud/scheduler/v1/cloudscheduler.rb +9 -27
- data/lib/google/cloud/scheduler/v1/doc/google/cloud/scheduler/v1/target.rb +13 -15
- data/lib/google/cloud/scheduler/v1/doc/google/protobuf/timestamp.rb +6 -4
- data/lib/google/cloud/scheduler/v1/job_pb.rb +1 -1
- data/lib/google/cloud/scheduler/v1/target_pb.rb +1 -1
- data/lib/google/cloud/scheduler/v1beta1/doc/google/protobuf/timestamp.rb +6 -4
- data/lib/google/cloud/scheduler/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '09a8f1f1466402fdcb543f5d9d00c9cf45779917a706d049805d6a3cdf1e32b9'
|
4
|
+
data.tar.gz: b1ff0efbbda0a91af89b206a61094c69ebaa32e5684e8502723d30ffd24a991d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae4e71f1c3b33da692b76efab9011fe3a944926d1d6604ebca2728453acdfde294902230077f6e1b69dd03ed0a8ed1f025f41299f8ae3e7604fc3a2da6060f62
|
7
|
+
data.tar.gz: 749c7abcd44186048ccf32a19372f7bc734ad732d230d8942e76842cbce3dd6b4ed646b81960e8cfc114d88f7abd46553c1a647eb88ecbe1f5ce4f0ae9f8a08b
|
@@ -300,9 +300,7 @@ module Google
|
|
300
300
|
# Lists jobs.
|
301
301
|
#
|
302
302
|
# @param parent [String]
|
303
|
-
# Required.
|
304
|
-
#
|
305
|
-
# The location name. For example:
|
303
|
+
# Required. The location name. For example:
|
306
304
|
# `projects/PROJECT_ID/locations/LOCATION_ID`.
|
307
305
|
# @param page_size [Integer]
|
308
306
|
# The maximum number of resources contained in the underlying API
|
@@ -357,9 +355,7 @@ module Google
|
|
357
355
|
# Gets a job.
|
358
356
|
#
|
359
357
|
# @param name [String]
|
360
|
-
# Required.
|
361
|
-
#
|
362
|
-
# The job name. For example:
|
358
|
+
# Required. The job name. For example:
|
363
359
|
# `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
|
364
360
|
# @param options [Google::Gax::CallOptions]
|
365
361
|
# Overrides the default settings for this call, e.g, timeout,
|
@@ -390,14 +386,10 @@ module Google
|
|
390
386
|
# Creates a job.
|
391
387
|
#
|
392
388
|
# @param parent [String]
|
393
|
-
# Required.
|
394
|
-
#
|
395
|
-
# The location name. For example:
|
389
|
+
# Required. The location name. For example:
|
396
390
|
# `projects/PROJECT_ID/locations/LOCATION_ID`.
|
397
391
|
# @param job [Google::Cloud::Scheduler::V1::Job | Hash]
|
398
|
-
# Required.
|
399
|
-
#
|
400
|
-
# The job to add. The user can optionally specify a name for the
|
392
|
+
# Required. The job to add. The user can optionally specify a name for the
|
401
393
|
# job in {Google::Cloud::Scheduler::V1::Job#name name}. {Google::Cloud::Scheduler::V1::Job#name name} cannot be the same as an
|
402
394
|
# existing job. If a name is not specified then the system will
|
403
395
|
# generate a random unique name that will be returned
|
@@ -446,9 +438,7 @@ module Google
|
|
446
438
|
# until a successful response is received.
|
447
439
|
#
|
448
440
|
# @param job [Google::Cloud::Scheduler::V1::Job | Hash]
|
449
|
-
# Required.
|
450
|
-
#
|
451
|
-
# The new job properties. {Google::Cloud::Scheduler::V1::Job#name name} must be specified.
|
441
|
+
# Required. The new job properties. {Google::Cloud::Scheduler::V1::Job#name name} must be specified.
|
452
442
|
#
|
453
443
|
# Output only fields cannot be modified using UpdateJob.
|
454
444
|
# Any value specified for an output only field will be ignored.
|
@@ -494,9 +484,7 @@ module Google
|
|
494
484
|
# Deletes a job.
|
495
485
|
#
|
496
486
|
# @param name [String]
|
497
|
-
# Required.
|
498
|
-
#
|
499
|
-
# The job name. For example:
|
487
|
+
# Required. The job name. For example:
|
500
488
|
# `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
|
501
489
|
# @param options [Google::Gax::CallOptions]
|
502
490
|
# Overrides the default settings for this call, e.g, timeout,
|
@@ -533,9 +521,7 @@ module Google
|
|
533
521
|
# to be paused.
|
534
522
|
#
|
535
523
|
# @param name [String]
|
536
|
-
# Required.
|
537
|
-
#
|
538
|
-
# The job name. For example:
|
524
|
+
# Required. The job name. For example:
|
539
525
|
# `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
|
540
526
|
# @param options [Google::Gax::CallOptions]
|
541
527
|
# Overrides the default settings for this call, e.g, timeout,
|
@@ -571,9 +557,7 @@ module Google
|
|
571
557
|
# {Google::Cloud::Scheduler::V1::Job::State::PAUSED Job::State::PAUSED} to be resumed.
|
572
558
|
#
|
573
559
|
# @param name [String]
|
574
|
-
# Required.
|
575
|
-
#
|
576
|
-
# The job name. For example:
|
560
|
+
# Required. The job name. For example:
|
577
561
|
# `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
|
578
562
|
# @param options [Google::Gax::CallOptions]
|
579
563
|
# Overrides the default settings for this call, e.g, timeout,
|
@@ -607,9 +591,7 @@ module Google
|
|
607
591
|
# if the job is already running.
|
608
592
|
#
|
609
593
|
# @param name [String]
|
610
|
-
# Required.
|
611
|
-
#
|
612
|
-
# The job name. For example:
|
594
|
+
# Required. The job name. For example:
|
613
595
|
# `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
|
614
596
|
# @param options [Google::Gax::CallOptions]
|
615
597
|
# Overrides the default settings for this call, e.g, timeout,
|
@@ -20,9 +20,7 @@ module Google
|
|
20
20
|
# Request message for listing jobs using {Google::Cloud::Scheduler::V1::CloudScheduler::ListJobs ListJobs}.
|
21
21
|
# @!attribute [rw] parent
|
22
22
|
# @return [String]
|
23
|
-
# Required.
|
24
|
-
#
|
25
|
-
# The location name. For example:
|
23
|
+
# Required. The location name. For example:
|
26
24
|
# `projects/PROJECT_ID/locations/LOCATION_ID`.
|
27
25
|
# @!attribute [rw] page_size
|
28
26
|
# @return [Integer]
|
@@ -61,24 +59,18 @@ module Google
|
|
61
59
|
# Request message for {Google::Cloud::Scheduler::V1::CloudScheduler::GetJob GetJob}.
|
62
60
|
# @!attribute [rw] name
|
63
61
|
# @return [String]
|
64
|
-
# Required.
|
65
|
-
#
|
66
|
-
# The job name. For example:
|
62
|
+
# Required. The job name. For example:
|
67
63
|
# `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
|
68
64
|
class GetJobRequest; end
|
69
65
|
|
70
66
|
# Request message for {Google::Cloud::Scheduler::V1::CloudScheduler::CreateJob CreateJob}.
|
71
67
|
# @!attribute [rw] parent
|
72
68
|
# @return [String]
|
73
|
-
# Required.
|
74
|
-
#
|
75
|
-
# The location name. For example:
|
69
|
+
# Required. The location name. For example:
|
76
70
|
# `projects/PROJECT_ID/locations/LOCATION_ID`.
|
77
71
|
# @!attribute [rw] job
|
78
72
|
# @return [Google::Cloud::Scheduler::V1::Job]
|
79
|
-
# Required.
|
80
|
-
#
|
81
|
-
# The job to add. The user can optionally specify a name for the
|
73
|
+
# Required. The job to add. The user can optionally specify a name for the
|
82
74
|
# job in {Google::Cloud::Scheduler::V1::Job#name name}. {Google::Cloud::Scheduler::V1::Job#name name} cannot be the same as an
|
83
75
|
# existing job. If a name is not specified then the system will
|
84
76
|
# generate a random unique name that will be returned
|
@@ -88,9 +80,7 @@ module Google
|
|
88
80
|
# Request message for {Google::Cloud::Scheduler::V1::CloudScheduler::UpdateJob UpdateJob}.
|
89
81
|
# @!attribute [rw] job
|
90
82
|
# @return [Google::Cloud::Scheduler::V1::Job]
|
91
|
-
# Required.
|
92
|
-
#
|
93
|
-
# The new job properties. {Google::Cloud::Scheduler::V1::Job#name name} must be specified.
|
83
|
+
# Required. The new job properties. {Google::Cloud::Scheduler::V1::Job#name name} must be specified.
|
94
84
|
#
|
95
85
|
# Output only fields cannot be modified using UpdateJob.
|
96
86
|
# Any value specified for an output only field will be ignored.
|
@@ -103,27 +93,21 @@ module Google
|
|
103
93
|
# {Google::Cloud::Scheduler::V1::CloudScheduler::DeleteJob DeleteJob}.
|
104
94
|
# @!attribute [rw] name
|
105
95
|
# @return [String]
|
106
|
-
# Required.
|
107
|
-
#
|
108
|
-
# The job name. For example:
|
96
|
+
# Required. The job name. For example:
|
109
97
|
# `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
|
110
98
|
class DeleteJobRequest; end
|
111
99
|
|
112
100
|
# Request message for {Google::Cloud::Scheduler::V1::CloudScheduler::PauseJob PauseJob}.
|
113
101
|
# @!attribute [rw] name
|
114
102
|
# @return [String]
|
115
|
-
# Required.
|
116
|
-
#
|
117
|
-
# The job name. For example:
|
103
|
+
# Required. The job name. For example:
|
118
104
|
# `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
|
119
105
|
class PauseJobRequest; end
|
120
106
|
|
121
107
|
# Request message for {Google::Cloud::Scheduler::V1::CloudScheduler::ResumeJob ResumeJob}.
|
122
108
|
# @!attribute [rw] name
|
123
109
|
# @return [String]
|
124
|
-
# Required.
|
125
|
-
#
|
126
|
-
# The job name. For example:
|
110
|
+
# Required. The job name. For example:
|
127
111
|
# `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
|
128
112
|
class ResumeJobRequest; end
|
129
113
|
|
@@ -131,9 +115,7 @@ module Google
|
|
131
115
|
# {Google::Cloud::Scheduler::V1::CloudScheduler::RunJob RunJob}.
|
132
116
|
# @!attribute [rw] name
|
133
117
|
# @return [String]
|
134
|
-
# Required.
|
135
|
-
#
|
136
|
-
# The job name. For example:
|
118
|
+
# Required. The job name. For example:
|
137
119
|
# `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
|
138
120
|
class RunJobRequest; end
|
139
121
|
end
|
@@ -25,9 +25,7 @@ module Google
|
|
25
25
|
# returned by the redirected request is considered.
|
26
26
|
# @!attribute [rw] uri
|
27
27
|
# @return [String]
|
28
|
-
# Required.
|
29
|
-
#
|
30
|
-
# The full URI path that the request will be sent to. This string
|
28
|
+
# Required. The full URI path that the request will be sent to. This string
|
31
29
|
# must begin with either "http://" or "https://". Some examples of
|
32
30
|
# valid values for {Google::Cloud::Scheduler::V1::HttpTarget#uri uri} are:
|
33
31
|
# `http://acme.com` and `https://acme.com/sales:8080`. Cloud Scheduler will
|
@@ -65,8 +63,8 @@ module Google
|
|
65
63
|
# will be generated and attached as an `Authorization` header in the HTTP
|
66
64
|
# request.
|
67
65
|
#
|
68
|
-
# This type of authorization should be used when
|
69
|
-
#
|
66
|
+
# This type of authorization should generally only be used when calling
|
67
|
+
# Google APIs hosted on *.googleapis.com.
|
70
68
|
# @!attribute [rw] oidc_token
|
71
69
|
# @return [Google::Cloud::Scheduler::V1::OidcToken]
|
72
70
|
# If specified, an
|
@@ -74,8 +72,9 @@ module Google
|
|
74
72
|
# token will be generated and attached as an `Authorization` header in the
|
75
73
|
# HTTP request.
|
76
74
|
#
|
77
|
-
# This type of authorization
|
78
|
-
#
|
75
|
+
# This type of authorization can be used for many scenarios, including
|
76
|
+
# calling Cloud Run, or endpoints where you intend to validate the token
|
77
|
+
# yourself.
|
79
78
|
class HttpTarget; end
|
80
79
|
|
81
80
|
# App Engine target. The job will be pushed to a job handler by means
|
@@ -149,9 +148,7 @@ module Google
|
|
149
148
|
# the given Pub/Sub topic.
|
150
149
|
# @!attribute [rw] topic_name
|
151
150
|
# @return [String]
|
152
|
-
# Required.
|
153
|
-
#
|
154
|
-
# The name of the Cloud Pub/Sub topic to which messages will
|
151
|
+
# Required. The name of the Cloud Pub/Sub topic to which messages will
|
155
152
|
# be published when a job is delivered. The topic name must be in the
|
156
153
|
# same format as required by PubSub's
|
157
154
|
# [PublishRequest.name](https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#publishrequest),
|
@@ -274,8 +271,8 @@ module Google
|
|
274
271
|
|
275
272
|
# Contains information needed for generating an
|
276
273
|
# [OAuth token](https://developers.google.com/identity/protocols/OAuth2).
|
277
|
-
# This type of authorization should be used when
|
278
|
-
#
|
274
|
+
# This type of authorization should generally only be used when calling Google
|
275
|
+
# APIs hosted on *.googleapis.com.
|
279
276
|
# @!attribute [rw] service_account_email
|
280
277
|
# @return [String]
|
281
278
|
# [Service account email](https://cloud.google.com/iam/docs/service-accounts)
|
@@ -291,9 +288,10 @@ module Google
|
|
291
288
|
|
292
289
|
# Contains information needed for generating an
|
293
290
|
# [OpenID Connect
|
294
|
-
# token](https://developers.google.com/identity/protocols/OpenIDConnect).
|
295
|
-
# type of authorization
|
296
|
-
#
|
291
|
+
# token](https://developers.google.com/identity/protocols/OpenIDConnect).
|
292
|
+
# This type of authorization can be used for many scenarios, including
|
293
|
+
# calling Cloud Run, or endpoints where you intend to validate the token
|
294
|
+
# yourself.
|
297
295
|
# @!attribute [rw] service_account_email
|
298
296
|
# @return [String]
|
299
297
|
# [Service account email](https://cloud.google.com/iam/docs/service-accounts)
|
@@ -88,11 +88,13 @@ module Google
|
|
88
88
|
# 01:30 UTC on January 15, 2017.
|
89
89
|
#
|
90
90
|
# In JavaScript, one can convert a Date object to this format using the
|
91
|
-
# standard
|
91
|
+
# standard
|
92
|
+
# [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
|
92
93
|
# method. In Python, a standard `datetime.datetime` object can be converted
|
93
|
-
# to this format using
|
94
|
-
#
|
95
|
-
#
|
94
|
+
# to this format using
|
95
|
+
# [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
|
96
|
+
# the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
97
|
+
# the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
96
98
|
# http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
|
97
99
|
# ) to obtain a formatter capable of generating timestamps in this format.
|
98
100
|
# @!attribute [rw] seconds
|
@@ -4,12 +4,12 @@
|
|
4
4
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
|
-
require 'google/api/annotations_pb'
|
8
7
|
require 'google/api/resource_pb'
|
9
8
|
require 'google/cloud/scheduler/v1/target_pb'
|
10
9
|
require 'google/protobuf/duration_pb'
|
11
10
|
require 'google/protobuf/timestamp_pb'
|
12
11
|
require 'google/rpc/status_pb'
|
12
|
+
require 'google/api/annotations_pb'
|
13
13
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
14
14
|
add_message "google.cloud.scheduler.v1.Job" do
|
15
15
|
optional :name, :string, 1
|
@@ -4,8 +4,8 @@
|
|
4
4
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
|
+
require 'google/api/resource_pb'
|
7
8
|
require 'google/api/annotations_pb'
|
8
|
-
require 'google/protobuf/any_pb'
|
9
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
10
|
add_message "google.cloud.scheduler.v1.HttpTarget" do
|
11
11
|
optional :uri, :string, 1
|
@@ -88,11 +88,13 @@ module Google
|
|
88
88
|
# 01:30 UTC on January 15, 2017.
|
89
89
|
#
|
90
90
|
# In JavaScript, one can convert a Date object to this format using the
|
91
|
-
# standard
|
91
|
+
# standard
|
92
|
+
# [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
|
92
93
|
# method. In Python, a standard `datetime.datetime` object can be converted
|
93
|
-
# to this format using
|
94
|
-
#
|
95
|
-
#
|
94
|
+
# to this format using
|
95
|
+
# [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
|
96
|
+
# the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
97
|
+
# the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
96
98
|
# http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
|
97
99
|
# ) to obtain a formatter capable of generating timestamps in this format.
|
98
100
|
# @!attribute [rw] seconds
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-scheduler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-gax
|
@@ -181,7 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
181
181
|
- !ruby/object:Gem::Version
|
182
182
|
version: '0'
|
183
183
|
requirements: []
|
184
|
-
rubygems_version: 3.0.
|
184
|
+
rubygems_version: 3.0.6
|
185
185
|
signing_key:
|
186
186
|
specification_version: 4
|
187
187
|
summary: API Client library for Cloud Scheduler API
|