google-cloud-scheduler 0.2.0 → 0.3.0

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: 40535fd3bb0b1a972cac6044a10771898e7f700f0fa7a588e867e4e34cb655bc
4
- data.tar.gz: 497ecf5db252daf856cb42a158aa44c5c3f8fa9dbea4b07fe3fb478bc955dd01
3
+ metadata.gz: f20bbe0d8d58a50d0cbf0b92b7300551c022919a1ac35d1c52bd7982fc9cd425
4
+ data.tar.gz: 360aa1fe396195e90a076dd6d1e2ed0df85106ffbc0f6fc4b0c7737a007d82b0
5
5
  SHA512:
6
- metadata.gz: da833db8d170a82abe24c146619d99778509b8330a8e3df876274d2925bf0f8503dd14d520e4bac60b4c2c1801b803da4d46c19170ab0c0781b3dcaa27415ad3
7
- data.tar.gz: d78330651185eb5631c05a66527f1ab4e0f0c6d2772f7fcb8fa3227f936d7b63319b3b0d9e2d74fe08795c426421d4e59330eb7818a61f3e3288925320997471
6
+ metadata.gz: fe66dffbee6eecc65cd02a7d05a7a60fbb2875a469722c0bfe3adc3385361185349325563d2e8c7b6933f1caecb46f0eeac0de88ea820eb0fb9340e5ed502719
7
+ data.tar.gz: 2f976cbc860cf953fdb3bc3a8346e4a2f78fd6264149b7375afb7586f2b0c8313e5c558566ddfa4cc213fa272ee4d1433be8d6101a6fb54a35956cf2cdce2417
@@ -225,42 +225,66 @@ module Google
225
225
  @list_jobs = Google::Gax.create_api_call(
226
226
  @cloud_scheduler_stub.method(:list_jobs),
227
227
  defaults["list_jobs"],
228
- exception_transformer: exception_transformer
228
+ exception_transformer: exception_transformer,
229
+ params_extractor: proc do |request|
230
+ {'parent' => request.parent}
231
+ end
229
232
  )
230
233
  @get_job = Google::Gax.create_api_call(
231
234
  @cloud_scheduler_stub.method(:get_job),
232
235
  defaults["get_job"],
233
- exception_transformer: exception_transformer
236
+ exception_transformer: exception_transformer,
237
+ params_extractor: proc do |request|
238
+ {'name' => request.name}
239
+ end
234
240
  )
235
241
  @create_job = Google::Gax.create_api_call(
236
242
  @cloud_scheduler_stub.method(:create_job),
237
243
  defaults["create_job"],
238
- exception_transformer: exception_transformer
244
+ exception_transformer: exception_transformer,
245
+ params_extractor: proc do |request|
246
+ {'parent' => request.parent}
247
+ end
239
248
  )
240
249
  @update_job = Google::Gax.create_api_call(
241
250
  @cloud_scheduler_stub.method(:update_job),
242
251
  defaults["update_job"],
243
- exception_transformer: exception_transformer
252
+ exception_transformer: exception_transformer,
253
+ params_extractor: proc do |request|
254
+ {'job.name' => request.job.name}
255
+ end
244
256
  )
245
257
  @delete_job = Google::Gax.create_api_call(
246
258
  @cloud_scheduler_stub.method(:delete_job),
247
259
  defaults["delete_job"],
248
- exception_transformer: exception_transformer
260
+ exception_transformer: exception_transformer,
261
+ params_extractor: proc do |request|
262
+ {'name' => request.name}
263
+ end
249
264
  )
250
265
  @pause_job = Google::Gax.create_api_call(
251
266
  @cloud_scheduler_stub.method(:pause_job),
252
267
  defaults["pause_job"],
253
- exception_transformer: exception_transformer
268
+ exception_transformer: exception_transformer,
269
+ params_extractor: proc do |request|
270
+ {'name' => request.name}
271
+ end
254
272
  )
255
273
  @resume_job = Google::Gax.create_api_call(
256
274
  @cloud_scheduler_stub.method(:resume_job),
257
275
  defaults["resume_job"],
258
- exception_transformer: exception_transformer
276
+ exception_transformer: exception_transformer,
277
+ params_extractor: proc do |request|
278
+ {'name' => request.name}
279
+ end
259
280
  )
260
281
  @run_job = Google::Gax.create_api_call(
261
282
  @cloud_scheduler_stub.method(:run_job),
262
283
  defaults["run_job"],
263
- exception_transformer: exception_transformer
284
+ exception_transformer: exception_transformer,
285
+ params_extractor: proc do |request|
286
+ {'name' => request.name}
287
+ end
264
288
  )
265
289
  end
266
290
 
@@ -225,42 +225,66 @@ module Google
225
225
  @list_jobs = Google::Gax.create_api_call(
226
226
  @cloud_scheduler_stub.method(:list_jobs),
227
227
  defaults["list_jobs"],
228
- exception_transformer: exception_transformer
228
+ exception_transformer: exception_transformer,
229
+ params_extractor: proc do |request|
230
+ {'parent' => request.parent}
231
+ end
229
232
  )
230
233
  @get_job = Google::Gax.create_api_call(
231
234
  @cloud_scheduler_stub.method(:get_job),
232
235
  defaults["get_job"],
233
- exception_transformer: exception_transformer
236
+ exception_transformer: exception_transformer,
237
+ params_extractor: proc do |request|
238
+ {'name' => request.name}
239
+ end
234
240
  )
235
241
  @create_job = Google::Gax.create_api_call(
236
242
  @cloud_scheduler_stub.method(:create_job),
237
243
  defaults["create_job"],
238
- exception_transformer: exception_transformer
244
+ exception_transformer: exception_transformer,
245
+ params_extractor: proc do |request|
246
+ {'parent' => request.parent}
247
+ end
239
248
  )
240
249
  @update_job = Google::Gax.create_api_call(
241
250
  @cloud_scheduler_stub.method(:update_job),
242
251
  defaults["update_job"],
243
- exception_transformer: exception_transformer
252
+ exception_transformer: exception_transformer,
253
+ params_extractor: proc do |request|
254
+ {'job.name' => request.job.name}
255
+ end
244
256
  )
245
257
  @delete_job = Google::Gax.create_api_call(
246
258
  @cloud_scheduler_stub.method(:delete_job),
247
259
  defaults["delete_job"],
248
- exception_transformer: exception_transformer
260
+ exception_transformer: exception_transformer,
261
+ params_extractor: proc do |request|
262
+ {'name' => request.name}
263
+ end
249
264
  )
250
265
  @pause_job = Google::Gax.create_api_call(
251
266
  @cloud_scheduler_stub.method(:pause_job),
252
267
  defaults["pause_job"],
253
- exception_transformer: exception_transformer
268
+ exception_transformer: exception_transformer,
269
+ params_extractor: proc do |request|
270
+ {'name' => request.name}
271
+ end
254
272
  )
255
273
  @resume_job = Google::Gax.create_api_call(
256
274
  @cloud_scheduler_stub.method(:resume_job),
257
275
  defaults["resume_job"],
258
- exception_transformer: exception_transformer
276
+ exception_transformer: exception_transformer,
277
+ params_extractor: proc do |request|
278
+ {'name' => request.name}
279
+ end
259
280
  )
260
281
  @run_job = Google::Gax.create_api_call(
261
282
  @cloud_scheduler_stub.method(:run_job),
262
283
  defaults["run_job"],
263
- exception_transformer: exception_transformer
284
+ exception_transformer: exception_transformer,
285
+ params_extractor: proc do |request|
286
+ {'name' => request.name}
287
+ end
264
288
  )
265
289
  end
266
290
 
@@ -367,8 +391,7 @@ module Google
367
391
  # Required.
368
392
  #
369
393
  # The job to add. The user can optionally specify a name for the
370
- # job in {Google::Cloud::Scheduler::V1beta1::Job#name name}.
371
- # {Google::Cloud::Scheduler::V1beta1::Job#name name} cannot be the same as an
394
+ # job in {Google::Cloud::Scheduler::V1beta1::Job#name name}. {Google::Cloud::Scheduler::V1beta1::Job#name name} cannot be the same as an
372
395
  # existing job. If a name is not specified then the system will
373
396
  # generate a random unique name that will be returned
374
397
  # ({Google::Cloud::Scheduler::V1beta1::Job#name name}) in the response.
@@ -407,20 +430,18 @@ module Google
407
430
 
408
431
  # Updates a job.
409
432
  #
410
- # If successful, the updated {Google::Cloud::Scheduler::V1beta1::Job Job} is
411
- # returned. If the job does not exist, `NOT_FOUND` is returned.
433
+ # If successful, the updated {Google::Cloud::Scheduler::V1beta1::Job Job} is returned. If the job does
434
+ # not exist, `NOT_FOUND` is returned.
412
435
  #
413
436
  # If UpdateJob does not successfully return, it is possible for the
414
- # job to be in an
415
- # {Google::Cloud::Scheduler::V1beta1::Job::State::UPDATE_FAILED Job::State::UPDATE_FAILED}
416
- # state. A job in this state may not be executed. If this happens, retry the
417
- # UpdateJob request until a successful response is received.
437
+ # job to be in an {Google::Cloud::Scheduler::V1beta1::Job::State::UPDATE_FAILED Job::State::UPDATE_FAILED} state. A job in this state may
438
+ # not be executed. If this happens, retry the UpdateJob request
439
+ # until a successful response is received.
418
440
  #
419
441
  # @param job [Google::Cloud::Scheduler::V1beta1::Job | Hash]
420
442
  # Required.
421
443
  #
422
- # The new job properties. {Google::Cloud::Scheduler::V1beta1::Job#name name}
423
- # must be specified.
444
+ # The new job properties. {Google::Cloud::Scheduler::V1beta1::Job#name name} must be specified.
424
445
  #
425
446
  # Output only fields cannot be modified using UpdateJob.
426
447
  # Any value specified for an output only field will be ignored.
@@ -496,14 +517,10 @@ module Google
496
517
  # Pauses a job.
497
518
  #
498
519
  # If a job is paused then the system will stop executing the job
499
- # until it is re-enabled via
500
- # {Google::Cloud::Scheduler::V1beta1::CloudScheduler::ResumeJob ResumeJob}. The
501
- # state of the job is stored in
502
- # {Google::Cloud::Scheduler::V1beta1::Job#state state}; if paused it will be set
503
- # to {Google::Cloud::Scheduler::V1beta1::Job::State::PAUSED Job::State::PAUSED}. A
504
- # job must be in
505
- # {Google::Cloud::Scheduler::V1beta1::Job::State::ENABLED Job::State::ENABLED} to be
506
- # paused.
520
+ # until it is re-enabled via {Google::Cloud::Scheduler::V1beta1::CloudScheduler::ResumeJob ResumeJob}. The
521
+ # state of the job is stored in {Google::Cloud::Scheduler::V1beta1::Job#state state}; if paused it
522
+ # will be set to {Google::Cloud::Scheduler::V1beta1::Job::State::PAUSED Job::State::PAUSED}. A job must be in {Google::Cloud::Scheduler::V1beta1::Job::State::ENABLED Job::State::ENABLED}
523
+ # to be paused.
507
524
  #
508
525
  # @param name [String]
509
526
  # Required.
@@ -538,15 +555,10 @@ module Google
538
555
 
539
556
  # Resume a job.
540
557
  #
541
- # This method reenables a job after it has been
542
- # {Google::Cloud::Scheduler::V1beta1::Job::State::PAUSED Job::State::PAUSED}. The
543
- # state of a job is stored in
544
- # {Google::Cloud::Scheduler::V1beta1::Job#state Job#state}; after calling this
545
- # method it will be set to
546
- # {Google::Cloud::Scheduler::V1beta1::Job::State::ENABLED Job::State::ENABLED}. A
547
- # job must be in
548
- # {Google::Cloud::Scheduler::V1beta1::Job::State::PAUSED Job::State::PAUSED} to be
549
- # resumed.
558
+ # This method reenables a job after it has been {Google::Cloud::Scheduler::V1beta1::Job::State::PAUSED Job::State::PAUSED}. The
559
+ # state of a job is stored in {Google::Cloud::Scheduler::V1beta1::Job#state Job#state}; after calling this method it
560
+ # will be set to {Google::Cloud::Scheduler::V1beta1::Job::State::ENABLED Job::State::ENABLED}. A job must be in
561
+ # {Google::Cloud::Scheduler::V1beta1::Job::State::PAUSED Job::State::PAUSED} to be resumed.
550
562
  #
551
563
  # @param name [String]
552
564
  # Required.
@@ -5,6 +5,7 @@
5
5
  require 'google/protobuf'
6
6
 
7
7
  require 'google/api/annotations_pb'
8
+ require 'google/api/resource_pb'
8
9
  require 'google/cloud/scheduler/v1beta1/job_pb'
9
10
  require 'google/protobuf/empty_pb'
10
11
  require 'google/protobuf/field_mask_pb'
@@ -1,7 +1,7 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # Source: google/cloud/scheduler/v1beta1/cloudscheduler.proto for package 'google.cloud.scheduler.v1beta1'
3
3
  # Original file comments:
4
- # Copyright 2018 Google LLC.
4
+ # Copyright 2019 Google LLC.
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
7
7
  # you may not use this file except in compliance with the License.
@@ -44,40 +44,30 @@ module Google
44
44
  rpc :CreateJob, CreateJobRequest, Job
45
45
  # Updates a job.
46
46
  #
47
- # If successful, the updated [Job][google.cloud.scheduler.v1beta1.Job] is
48
- # returned. If the job does not exist, `NOT_FOUND` is returned.
47
+ # If successful, the updated [Job][google.cloud.scheduler.v1beta1.Job] is returned. If the job does
48
+ # not exist, `NOT_FOUND` is returned.
49
49
  #
50
50
  # If UpdateJob does not successfully return, it is possible for the
51
- # job to be in an
52
- # [Job.State.UPDATE_FAILED][google.cloud.scheduler.v1beta1.Job.State.UPDATE_FAILED]
53
- # state. A job in this state may not be executed. If this happens, retry the
54
- # UpdateJob request until a successful response is received.
51
+ # job to be in an [Job.State.UPDATE_FAILED][google.cloud.scheduler.v1beta1.Job.State.UPDATE_FAILED] state. A job in this state may
52
+ # not be executed. If this happens, retry the UpdateJob request
53
+ # until a successful response is received.
55
54
  rpc :UpdateJob, UpdateJobRequest, Job
56
55
  # Deletes a job.
57
56
  rpc :DeleteJob, DeleteJobRequest, Google::Protobuf::Empty
58
57
  # Pauses a job.
59
58
  #
60
59
  # If a job is paused then the system will stop executing the job
61
- # until it is re-enabled via
62
- # [ResumeJob][google.cloud.scheduler.v1beta1.CloudScheduler.ResumeJob]. The
63
- # state of the job is stored in
64
- # [state][google.cloud.scheduler.v1beta1.Job.state]; if paused it will be set
65
- # to [Job.State.PAUSED][google.cloud.scheduler.v1beta1.Job.State.PAUSED]. A
66
- # job must be in
67
- # [Job.State.ENABLED][google.cloud.scheduler.v1beta1.Job.State.ENABLED] to be
68
- # paused.
60
+ # until it is re-enabled via [ResumeJob][google.cloud.scheduler.v1beta1.CloudScheduler.ResumeJob]. The
61
+ # state of the job is stored in [state][google.cloud.scheduler.v1beta1.Job.state]; if paused it
62
+ # will be set to [Job.State.PAUSED][google.cloud.scheduler.v1beta1.Job.State.PAUSED]. A job must be in [Job.State.ENABLED][google.cloud.scheduler.v1beta1.Job.State.ENABLED]
63
+ # to be paused.
69
64
  rpc :PauseJob, PauseJobRequest, Job
70
65
  # Resume a job.
71
66
  #
72
- # This method reenables a job after it has been
73
- # [Job.State.PAUSED][google.cloud.scheduler.v1beta1.Job.State.PAUSED]. The
74
- # state of a job is stored in
75
- # [Job.state][google.cloud.scheduler.v1beta1.Job.state]; after calling this
76
- # method it will be set to
77
- # [Job.State.ENABLED][google.cloud.scheduler.v1beta1.Job.State.ENABLED]. A
78
- # job must be in
79
- # [Job.State.PAUSED][google.cloud.scheduler.v1beta1.Job.State.PAUSED] to be
80
- # resumed.
67
+ # This method reenables a job after it has been [Job.State.PAUSED][google.cloud.scheduler.v1beta1.Job.State.PAUSED]. The
68
+ # state of a job is stored in [Job.state][google.cloud.scheduler.v1beta1.Job.state]; after calling this method it
69
+ # will be set to [Job.State.ENABLED][google.cloud.scheduler.v1beta1.Job.State.ENABLED]. A job must be in
70
+ # [Job.State.PAUSED][google.cloud.scheduler.v1beta1.Job.State.PAUSED] to be resumed.
81
71
  rpc :ResumeJob, ResumeJobRequest, Job
82
72
  # Forces a job to run now.
83
73
  #
@@ -17,8 +17,7 @@ module Google
17
17
  module Cloud
18
18
  module Scheduler
19
19
  module V1beta1
20
- # Request message for listing jobs using
21
- # {Google::Cloud::Scheduler::V1beta1::CloudScheduler::ListJobs ListJobs}.
20
+ # Request message for listing jobs using {Google::Cloud::Scheduler::V1beta1::CloudScheduler::ListJobs ListJobs}.
22
21
  # @!attribute [rw] parent
23
22
  # @return [String]
24
23
  # Required.
@@ -38,34 +37,28 @@ module Google
38
37
  # A token identifying a page of results the server will return. To
39
38
  # request the first page results, page_token must be empty. To
40
39
  # request the next page of results, page_token must be the value of
41
- # {Google::Cloud::Scheduler::V1beta1::ListJobsResponse#next_page_token next_page_token}
42
- # returned from the previous call to
43
- # {Google::Cloud::Scheduler::V1beta1::CloudScheduler::ListJobs ListJobs}. It is
44
- # an error to switch the value of
45
- # {Google::Cloud::Scheduler::V1beta1::ListJobsRequest#filter filter} or
46
- # {Google::Cloud::Scheduler::V1beta1::ListJobsRequest#order_by order_by} while
47
- # iterating through pages.
40
+ # {Google::Cloud::Scheduler::V1beta1::ListJobsResponse#next_page_token next_page_token} returned from
41
+ # the previous call to {Google::Cloud::Scheduler::V1beta1::CloudScheduler::ListJobs ListJobs}. It is an error to
42
+ # switch the value of {Google::Cloud::Scheduler::V1beta1::ListJobsRequest#filter filter} or
43
+ # {Google::Cloud::Scheduler::V1beta1::ListJobsRequest#order_by order_by} while iterating through pages.
48
44
  class ListJobsRequest; end
49
45
 
50
- # Response message for listing jobs using
51
- # {Google::Cloud::Scheduler::V1beta1::CloudScheduler::ListJobs ListJobs}.
46
+ # Response message for listing jobs using {Google::Cloud::Scheduler::V1beta1::CloudScheduler::ListJobs ListJobs}.
52
47
  # @!attribute [rw] jobs
53
48
  # @return [Array<Google::Cloud::Scheduler::V1beta1::Job>]
54
49
  # The list of jobs.
55
50
  # @!attribute [rw] next_page_token
56
51
  # @return [String]
57
52
  # A token to retrieve next page of results. Pass this value in the
58
- # {Google::Cloud::Scheduler::V1beta1::ListJobsRequest#page_token page_token}
59
- # field in the subsequent call to
60
- # {Google::Cloud::Scheduler::V1beta1::CloudScheduler::ListJobs ListJobs} to
61
- # retrieve the next page of results. If this is empty it indicates that there
62
- # are no more results through which to paginate.
53
+ # {Google::Cloud::Scheduler::V1beta1::ListJobsRequest#page_token page_token} field in the subsequent call to
54
+ # {Google::Cloud::Scheduler::V1beta1::CloudScheduler::ListJobs ListJobs} to retrieve the next page of results.
55
+ # If this is empty it indicates that there are no more results
56
+ # through which to paginate.
63
57
  #
64
58
  # The page token is valid for only 2 hours.
65
59
  class ListJobsResponse; end
66
60
 
67
- # Request message for
68
- # {Google::Cloud::Scheduler::V1beta1::CloudScheduler::GetJob GetJob}.
61
+ # Request message for {Google::Cloud::Scheduler::V1beta1::CloudScheduler::GetJob GetJob}.
69
62
  # @!attribute [rw] name
70
63
  # @return [String]
71
64
  # Required.
@@ -74,8 +67,7 @@ module Google
74
67
  # `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
75
68
  class GetJobRequest; end
76
69
 
77
- # Request message for
78
- # {Google::Cloud::Scheduler::V1beta1::CloudScheduler::CreateJob CreateJob}.
70
+ # Request message for {Google::Cloud::Scheduler::V1beta1::CloudScheduler::CreateJob CreateJob}.
79
71
  # @!attribute [rw] parent
80
72
  # @return [String]
81
73
  # Required.
@@ -87,21 +79,18 @@ module Google
87
79
  # Required.
88
80
  #
89
81
  # The job to add. The user can optionally specify a name for the
90
- # job in {Google::Cloud::Scheduler::V1beta1::Job#name name}.
91
- # {Google::Cloud::Scheduler::V1beta1::Job#name name} cannot be the same as an
82
+ # job in {Google::Cloud::Scheduler::V1beta1::Job#name name}. {Google::Cloud::Scheduler::V1beta1::Job#name name} cannot be the same as an
92
83
  # existing job. If a name is not specified then the system will
93
84
  # generate a random unique name that will be returned
94
85
  # ({Google::Cloud::Scheduler::V1beta1::Job#name name}) in the response.
95
86
  class CreateJobRequest; end
96
87
 
97
- # Request message for
98
- # {Google::Cloud::Scheduler::V1beta1::CloudScheduler::UpdateJob UpdateJob}.
88
+ # Request message for {Google::Cloud::Scheduler::V1beta1::CloudScheduler::UpdateJob UpdateJob}.
99
89
  # @!attribute [rw] job
100
90
  # @return [Google::Cloud::Scheduler::V1beta1::Job]
101
91
  # Required.
102
92
  #
103
- # The new job properties. {Google::Cloud::Scheduler::V1beta1::Job#name name}
104
- # must be specified.
93
+ # The new job properties. {Google::Cloud::Scheduler::V1beta1::Job#name name} must be specified.
105
94
  #
106
95
  # Output only fields cannot be modified using UpdateJob.
107
96
  # Any value specified for an output only field will be ignored.
@@ -120,8 +109,7 @@ module Google
120
109
  # `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
121
110
  class DeleteJobRequest; end
122
111
 
123
- # Request message for
124
- # {Google::Cloud::Scheduler::V1beta1::CloudScheduler::PauseJob PauseJob}.
112
+ # Request message for {Google::Cloud::Scheduler::V1beta1::CloudScheduler::PauseJob PauseJob}.
125
113
  # @!attribute [rw] name
126
114
  # @return [String]
127
115
  # Required.
@@ -130,8 +118,7 @@ module Google
130
118
  # `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
131
119
  class PauseJobRequest; end
132
120
 
133
- # Request message for
134
- # {Google::Cloud::Scheduler::V1beta1::CloudScheduler::ResumeJob ResumeJob}.
121
+ # Request message for {Google::Cloud::Scheduler::V1beta1::CloudScheduler::ResumeJob ResumeJob}.
135
122
  # @!attribute [rw] name
136
123
  # @return [String]
137
124
  # Required.
@@ -21,6 +21,9 @@ module Google
21
21
  # The maximum allowed size for a job is 100KB.
22
22
  # @!attribute [rw] name
23
23
  # @return [String]
24
+ # Optionally caller-specified in {Google::Cloud::Scheduler::V1beta1::CloudScheduler::CreateJob CreateJob}, after
25
+ # which it becomes output only.
26
+ #
24
27
  # The job name. For example:
25
28
  # `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
26
29
  #
@@ -37,6 +40,9 @@ module Google
37
40
  # hyphens (-), or underscores (_). The maximum length is 500 characters.
38
41
  # @!attribute [rw] description
39
42
  # @return [String]
43
+ # Optionally caller-specified in {Google::Cloud::Scheduler::V1beta1::CloudScheduler::CreateJob CreateJob} or
44
+ # {Google::Cloud::Scheduler::V1beta1::CloudScheduler::UpdateJob UpdateJob}.
45
+ #
40
46
  # A human-readable description for the job. This string must not contain
41
47
  # more than 500 characters.
42
48
  # @!attribute [rw] pubsub_target
@@ -50,10 +56,16 @@ module Google
50
56
  # HTTP target.
51
57
  # @!attribute [rw] schedule
52
58
  # @return [String]
53
- # Required.
59
+ # Required, except when used with {Google::Cloud::Scheduler::V1beta1::CloudScheduler::UpdateJob UpdateJob}.
54
60
  #
55
61
  # Describes the schedule on which the job will be executed.
56
62
  #
63
+ # The schedule can be either of the following types:
64
+ #
65
+ # * [Crontab](http://en.wikipedia.org/wiki/Cron#Overview)
66
+ # * English-like
67
+ # [schedule](https://cloud.google.com/scheduler/docs/configuring/cron-job-schedules)
68
+ #
57
69
  # As a general rule, execution `n + 1` of a job will not begin
58
70
  # until execution `n` has finished. Cloud Scheduler will never
59
71
  # allow two simultaneously outstanding executions. For example,
@@ -63,23 +75,15 @@ module Google
63
75
  # A scheduled start time will be delayed if the previous
64
76
  # execution has not ended when its scheduled time occurs.
65
77
  #
66
- # If {Google::Cloud::Scheduler::V1beta1::RetryConfig#retry_count retry_count} >
67
- # 0 and a job attempt fails, the job will be tried a total of
68
- # {Google::Cloud::Scheduler::V1beta1::RetryConfig#retry_count retry_count}
78
+ # If {Google::Cloud::Scheduler::V1beta1::RetryConfig#retry_count retry_count} > 0 and a job attempt fails,
79
+ # the job will be tried a total of {Google::Cloud::Scheduler::V1beta1::RetryConfig#retry_count retry_count}
69
80
  # times, with exponential backoff, until the next scheduled start
70
81
  # time.
71
- #
72
- # The schedule can be either of the following types:
73
- #
74
- # * [Crontab](http://en.wikipedia.org/wiki/Cron#Overview)
75
- # * English-like
76
- # [schedule](https://cloud.google.com/scheduler/docs/configuring/cron-job-schedules)
77
82
  # @!attribute [rw] time_zone
78
83
  # @return [String]
79
84
  # Specifies the time zone to be used in interpreting
80
- # {Google::Cloud::Scheduler::V1beta1::Job#schedule schedule}. The value of this
81
- # field must be a time zone name from the [tz
82
- # database](http://en.wikipedia.org/wiki/Tz_database).
85
+ # {Google::Cloud::Scheduler::V1beta1::Job#schedule schedule}. The value of this field must be a time
86
+ # zone name from the [tz database](http://en.wikipedia.org/wiki/Tz_database).
83
87
  #
84
88
  # Note that some time zones include a provision for
85
89
  # daylight savings time. The rules for daylight saving time are
@@ -106,6 +110,20 @@ module Google
106
110
  # @!attribute [rw] retry_config
107
111
  # @return [Google::Cloud::Scheduler::V1beta1::RetryConfig]
108
112
  # Settings that determine the retry behavior.
113
+ # @!attribute [rw] attempt_deadline
114
+ # @return [Google::Protobuf::Duration]
115
+ # The deadline for job attempts. If the request handler does not respond by
116
+ # this deadline then the request is cancelled and the attempt is marked as a
117
+ # `DEADLINE_EXCEEDED` failure. The failed attempt can be viewed in
118
+ # execution logs. Cloud Scheduler will retry the job according
119
+ # to the {Google::Cloud::Scheduler::V1beta1::RetryConfig RetryConfig}.
120
+ #
121
+ # The allowed duration for this deadline is:
122
+ #
123
+ # * For {Google::Cloud::Scheduler::V1beta1::Job#http_target HTTP targets}, between 15 seconds and 30 minutes.
124
+ # * For {Google::Cloud::Scheduler::V1beta1::Job#app_engine_http_target App Engine HTTP targets}, between 15
125
+ # seconds and 24 hours.
126
+ # * For {Google::Cloud::Scheduler::V1beta1::Job#pubsub_target PubSub targets}, this field is ignored.
109
127
  class Job
110
128
  # State of the job.
111
129
  module State
@@ -124,11 +142,9 @@ module Google
124
142
  # cannot directly set a job to be disabled.
125
143
  DISABLED = 3
126
144
 
127
- # The job state resulting from a failed
128
- # {Google::Cloud::Scheduler::V1beta1::CloudScheduler::UpdateJob CloudScheduler::UpdateJob}
145
+ # The job state resulting from a failed {Google::Cloud::Scheduler::V1beta1::CloudScheduler::UpdateJob CloudScheduler::UpdateJob}
129
146
  # operation. To recover a job from this state, retry
130
- # {Google::Cloud::Scheduler::V1beta1::CloudScheduler::UpdateJob CloudScheduler::UpdateJob}
131
- # until a successful response is received.
147
+ # {Google::Cloud::Scheduler::V1beta1::CloudScheduler::UpdateJob CloudScheduler::UpdateJob} until a successful response is received.
132
148
  UPDATE_FAILED = 4
133
149
  end
134
150
  end
@@ -137,8 +153,7 @@ module Google
137
153
  #
138
154
  # By default, if a job does not complete successfully (meaning that
139
155
  # an acknowledgement is not received from the handler, then it will be retried
140
- # with exponential backoff according to the settings in
141
- # {Google::Cloud::Scheduler::V1beta1::RetryConfig RetryConfig}.
156
+ # with exponential backoff according to the settings in {Google::Cloud::Scheduler::V1beta1::RetryConfig RetryConfig}.
142
157
  # @!attribute [rw] retry_count
143
158
  # @return [Integer]
144
159
  # The number of attempts that the system will make to run a job using the
@@ -161,8 +176,8 @@ module Google
161
176
  # @return [Google::Protobuf::Duration]
162
177
  # The time limit for retrying a failed job, measured from time when an
163
178
  # execution was first attempted. If specified with
164
- # {Google::Cloud::Scheduler::V1beta1::RetryConfig#retry_count retry_count}, the
165
- # job will be retried until both limits are reached.
179
+ # {Google::Cloud::Scheduler::V1beta1::RetryConfig#retry_count retry_count}, the job will be retried until both
180
+ # limits are reached.
166
181
  #
167
182
  # The default value for max_retry_duration is zero, which means retry
168
183
  # duration is unlimited.
@@ -183,25 +198,20 @@ module Google
183
198
  # The time between retries will double `max_doublings` times.
184
199
  #
185
200
  # A job's retry interval starts at
186
- # {Google::Cloud::Scheduler::V1beta1::RetryConfig#min_backoff_duration min_backoff_duration},
187
- # then doubles `max_doublings` times, then increases linearly, and finally
201
+ # {Google::Cloud::Scheduler::V1beta1::RetryConfig#min_backoff_duration min_backoff_duration}, then doubles
202
+ # `max_doublings` times, then increases linearly, and finally
188
203
  # retries retries at intervals of
189
- # {Google::Cloud::Scheduler::V1beta1::RetryConfig#max_backoff_duration max_backoff_duration}
190
- # up to {Google::Cloud::Scheduler::V1beta1::RetryConfig#retry_count retry_count}
191
- # times.
192
- #
193
- # For example, if
194
- # {Google::Cloud::Scheduler::V1beta1::RetryConfig#min_backoff_duration min_backoff_duration}
195
- # is 10s,
196
- # {Google::Cloud::Scheduler::V1beta1::RetryConfig#max_backoff_duration max_backoff_duration}
197
- # is 300s, and `max_doublings` is 3, then the a job will first be retried in
198
- # 10s. The retry interval will double three times, and then increase linearly
199
- # by 2^3 * 10s. Finally, the job will retry at intervals of
200
- # {Google::Cloud::Scheduler::V1beta1::RetryConfig#max_backoff_duration max_backoff_duration}
201
- # until the job has been attempted
202
- # {Google::Cloud::Scheduler::V1beta1::RetryConfig#retry_count retry_count}
203
- # times. Thus, the requests will retry at 10s, 20s, 40s, 80s, 160s, 240s,
204
- # 300s, 300s, ....
204
+ # {Google::Cloud::Scheduler::V1beta1::RetryConfig#max_backoff_duration max_backoff_duration} up to
205
+ # {Google::Cloud::Scheduler::V1beta1::RetryConfig#retry_count retry_count} times.
206
+ #
207
+ # For example, if {Google::Cloud::Scheduler::V1beta1::RetryConfig#min_backoff_duration min_backoff_duration} is
208
+ # 10s, {Google::Cloud::Scheduler::V1beta1::RetryConfig#max_backoff_duration max_backoff_duration} is 300s, and
209
+ # `max_doublings` is 3, then the a job will first be retried in 10s. The
210
+ # retry interval will double three times, and then increase linearly by
211
+ # 2^3 * 10s. Finally, the job will retry at intervals of
212
+ # {Google::Cloud::Scheduler::V1beta1::RetryConfig#max_backoff_duration max_backoff_duration} until the job has
213
+ # been attempted {Google::Cloud::Scheduler::V1beta1::RetryConfig#retry_count retry_count} times. Thus, the
214
+ # requests will retry at 10s, 20s, 40s, 80s, 160s, 240s, 300s, 300s, ....
205
215
  #
206
216
  # The default value of this field is 5.
207
217
  class RetryConfig; end
@@ -18,9 +18,8 @@ module Google
18
18
  module Scheduler
19
19
  module V1beta1
20
20
  # Http target. The job will be pushed to the job handler by means of
21
- # an HTTP request via an
22
- # {Google::Cloud::Scheduler::V1beta1::HttpTarget#http_method http_method} such as
23
- # HTTP POST, HTTP GET, etc. The job is acknowledged by means of an HTTP
21
+ # an HTTP request via an {Google::Cloud::Scheduler::V1beta1::HttpTarget#http_method http_method} such as HTTP
22
+ # POST, HTTP GET, etc. The job is acknowledged by means of an HTTP
24
23
  # response code in the range [200 - 299]. A failure to receive a response
25
24
  # constitutes a failed execution. For a redirected request, the response
26
25
  # returned by the redirected request is considered.
@@ -59,17 +58,35 @@ module Google
59
58
  # HTTP request body. A request body is allowed only if the HTTP
60
59
  # method is POST, PUT, or PATCH. It is an error to set body on a job with an
61
60
  # incompatible {Google::Cloud::Scheduler::V1beta1::HttpMethod HttpMethod}.
61
+ # @!attribute [rw] oauth_token
62
+ # @return [Google::Cloud::Scheduler::V1beta1::OAuthToken]
63
+ # If specified, an
64
+ # [OAuth token](https://developers.google.com/identity/protocols/OAuth2)
65
+ # will be generated and attached as an `Authorization` header in the HTTP
66
+ # request.
67
+ #
68
+ # This type of authorization should be used when sending requests to a GCP
69
+ # endpoint.
70
+ # @!attribute [rw] oidc_token
71
+ # @return [Google::Cloud::Scheduler::V1beta1::OidcToken]
72
+ # If specified, an
73
+ # [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
74
+ # token will be generated and attached as an `Authorization` header in the
75
+ # HTTP request.
76
+ #
77
+ # This type of authorization should be used when sending requests to third
78
+ # party endpoints.
62
79
  class HttpTarget; end
63
80
 
64
81
  # App Engine target. The job will be pushed to a job handler by means
65
- # of an HTTP request via an
66
- # {Google::Cloud::Scheduler::V1beta1::AppEngineHttpTarget#http_method http_method}
67
- # such as HTTP POST, HTTP GET, etc. The job is acknowledged by means of an HTTP
68
- # response code in the range [200 - 299]. Error 503 is considered an App Engine
69
- # system error instead of an application error. Requests returning error 503
70
- # will be retried regardless of retry configuration and not counted against
71
- # retry counts. Any other response code, or a failure to receive a response
72
- # before the deadline, constitutes a failed attempt.
82
+ # of an HTTP request via an {Google::Cloud::Scheduler::V1beta1::AppEngineHttpTarget#http_method http_method} such
83
+ # as HTTP POST, HTTP GET, etc. The job is acknowledged by means of an
84
+ # HTTP response code in the range [200 - 299]. Error 503 is
85
+ # considered an App Engine system error instead of an application
86
+ # error. Requests returning error 503 will be retried regardless of
87
+ # retry configuration and not counted against retry counts. Any other
88
+ # response code, or a failure to receive a response before the
89
+ # deadline, constitutes a failed attempt.
73
90
  # @!attribute [rw] http_method
74
91
  # @return [Google::Cloud::Scheduler::V1beta1::HttpMethod]
75
92
  # The HTTP method to use for the request. PATCH and OPTIONS are not
@@ -99,10 +116,10 @@ module Google
99
116
  # This header can be modified, but Cloud Scheduler will append
100
117
  # `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
101
118
  # modified `User-Agent`.
119
+ # * `X-CloudScheduler`: This header will be set to true.
102
120
  #
103
- # If the job has an
104
- # {Google::Cloud::Scheduler::V1beta1::AppEngineHttpTarget#body body}, Cloud
105
- # Scheduler sets the following headers:
121
+ # If the job has an {Google::Cloud::Scheduler::V1beta1::AppEngineHttpTarget#body body}, Cloud Scheduler sets
122
+ # the following headers:
106
123
  #
107
124
  # * `Content-Type`: By default, the `Content-Type` header is set to
108
125
  # `"application/octet-stream"`. The default can be overridden by explictly
@@ -115,22 +132,17 @@ module Google
115
132
  # The headers below are output only. They cannot be set or overridden:
116
133
  #
117
134
  # * `X-Google-*`: For Google internal use only.
118
- # * `X-AppEngine-*`: For Google internal use only. See
119
- # [Reading request
120
- # headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers).
135
+ # * `X-AppEngine-*`: For Google internal use only.
121
136
  #
122
137
  # In addition, some App Engine headers, which contain
123
- # job-specific information, are also be sent to the job handler; see
124
- # [request
125
- # headers](https://cloud.google.com/appengine/docs/standard/python/config/cron#securing_urls_for_cron).
138
+ # job-specific information, are also be sent to the job handler.
126
139
  # @!attribute [rw] body
127
140
  # @return [String]
128
141
  # Body.
129
142
  #
130
143
  # HTTP request body. A request body is allowed only if the HTTP method is
131
144
  # POST or PUT. It will result in invalid argument error to set a body on a
132
- # job with an incompatible
133
- # {Google::Cloud::Scheduler::V1beta1::HttpMethod HttpMethod}.
145
+ # job with an incompatible {Google::Cloud::Scheduler::V1beta1::HttpMethod HttpMethod}.
134
146
  class AppEngineHttpTarget; end
135
147
 
136
148
  # Pub/Sub target. The job will be delivered by publishing a message to
@@ -221,53 +233,79 @@ module Google
221
233
  # example <app-id>.appspot.com, which is associated with the
222
234
  # job's project ID.
223
235
  #
224
- # * `service =`
225
- # {Google::Cloud::Scheduler::V1beta1::AppEngineRouting#service service}
236
+ # * `service =` {Google::Cloud::Scheduler::V1beta1::AppEngineRouting#service service}
226
237
  #
227
- # * `version =`
228
- # {Google::Cloud::Scheduler::V1beta1::AppEngineRouting#version version}
238
+ # * `version =` {Google::Cloud::Scheduler::V1beta1::AppEngineRouting#version version}
229
239
  #
230
240
  # * `version_dot_service =`
231
- # {Google::Cloud::Scheduler::V1beta1::AppEngineRouting#version version} `+ '.'
232
- # +` {Google::Cloud::Scheduler::V1beta1::AppEngineRouting#service service}
241
+ # {Google::Cloud::Scheduler::V1beta1::AppEngineRouting#version version} `+ '.' +`
242
+ # {Google::Cloud::Scheduler::V1beta1::AppEngineRouting#service service}
233
243
  #
234
- # * `instance =`
235
- # {Google::Cloud::Scheduler::V1beta1::AppEngineRouting#instance instance}
244
+ # * `instance =` {Google::Cloud::Scheduler::V1beta1::AppEngineRouting#instance instance}
236
245
  #
237
246
  # * `instance_dot_service =`
238
- # {Google::Cloud::Scheduler::V1beta1::AppEngineRouting#instance instance} `+
239
- # '.' +` {Google::Cloud::Scheduler::V1beta1::AppEngineRouting#service service}
247
+ # {Google::Cloud::Scheduler::V1beta1::AppEngineRouting#instance instance} `+ '.' +`
248
+ # {Google::Cloud::Scheduler::V1beta1::AppEngineRouting#service service}
240
249
  #
241
250
  # * `instance_dot_version =`
242
- # {Google::Cloud::Scheduler::V1beta1::AppEngineRouting#instance instance} `+
243
- # '.' +` {Google::Cloud::Scheduler::V1beta1::AppEngineRouting#version version}
251
+ # {Google::Cloud::Scheduler::V1beta1::AppEngineRouting#instance instance} `+ '.' +`
252
+ # {Google::Cloud::Scheduler::V1beta1::AppEngineRouting#version version}
244
253
  #
245
254
  # * `instance_dot_version_dot_service =`
246
- # {Google::Cloud::Scheduler::V1beta1::AppEngineRouting#instance instance} `+
247
- # '.' +` {Google::Cloud::Scheduler::V1beta1::AppEngineRouting#version version}
248
- # `+ '.' +`
255
+ # {Google::Cloud::Scheduler::V1beta1::AppEngineRouting#instance instance} `+ '.' +`
256
+ # {Google::Cloud::Scheduler::V1beta1::AppEngineRouting#version version} `+ '.' +`
249
257
  # {Google::Cloud::Scheduler::V1beta1::AppEngineRouting#service service}
250
258
  #
251
259
  #
252
- # If {Google::Cloud::Scheduler::V1beta1::AppEngineRouting#service service} is
253
- # empty, then the job will be sent to the service which is the default
254
- # service when the job is attempted.
260
+ # If {Google::Cloud::Scheduler::V1beta1::AppEngineRouting#service service} is empty, then the job will be sent
261
+ # to the service which is the default service when the job is attempted.
255
262
  #
256
- # If {Google::Cloud::Scheduler::V1beta1::AppEngineRouting#version version} is
257
- # empty, then the job will be sent to the version which is the default
258
- # version when the job is attempted.
263
+ # If {Google::Cloud::Scheduler::V1beta1::AppEngineRouting#version version} is empty, then the job will be sent
264
+ # to the version which is the default version when the job is attempted.
259
265
  #
260
- # If {Google::Cloud::Scheduler::V1beta1::AppEngineRouting#instance instance} is
261
- # empty, then the job will be sent to an instance which is available when the
262
- # job is attempted.
266
+ # If {Google::Cloud::Scheduler::V1beta1::AppEngineRouting#instance instance} is empty, then the job will be
267
+ # sent to an instance which is available when the job is attempted.
263
268
  #
264
269
  # If {Google::Cloud::Scheduler::V1beta1::AppEngineRouting#service service},
265
270
  # {Google::Cloud::Scheduler::V1beta1::AppEngineRouting#version version}, or
266
- # {Google::Cloud::Scheduler::V1beta1::AppEngineRouting#instance instance} is
267
- # invalid, then the job will be sent to the default version of the default
268
- # service when the job is attempted.
271
+ # {Google::Cloud::Scheduler::V1beta1::AppEngineRouting#instance instance} is invalid, then the job will be sent
272
+ # to the default version of the default service when the job is attempted.
269
273
  class AppEngineRouting; end
270
274
 
275
+ # Contains information needed for generating an
276
+ # [OAuth token](https://developers.google.com/identity/protocols/OAuth2).
277
+ # This type of authorization should be used when sending requests to a GCP
278
+ # endpoint.
279
+ # @!attribute [rw] service_account_email
280
+ # @return [String]
281
+ # [Service account email](https://cloud.google.com/iam/docs/service-accounts)
282
+ # to be used for generating OAuth token.
283
+ # The service account must be within the same project as the job. The caller
284
+ # must have iam.serviceAccounts.actAs permission for the service account.
285
+ # @!attribute [rw] scope
286
+ # @return [String]
287
+ # OAuth scope to be used for generating OAuth access token.
288
+ # If not specified, "https://www.googleapis.com/auth/cloud-platform"
289
+ # will be used.
290
+ class OAuthToken; end
291
+
292
+ # Contains information needed for generating an
293
+ # [OpenID Connect
294
+ # token](https://developers.google.com/identity/protocols/OpenIDConnect). This
295
+ # type of authorization should be used when sending requests to third party
296
+ # endpoints.
297
+ # @!attribute [rw] service_account_email
298
+ # @return [String]
299
+ # [Service account email](https://cloud.google.com/iam/docs/service-accounts)
300
+ # to be used for generating OIDC token.
301
+ # The service account must be within the same project as the job. The caller
302
+ # must have iam.serviceAccounts.actAs permission for the service account.
303
+ # @!attribute [rw] audience
304
+ # @return [String]
305
+ # Audience to be used when generating OIDC token. If not specified, the URI
306
+ # specified in target will be used.
307
+ class OidcToken; end
308
+
271
309
  # The HTTP method used to execute the job.
272
310
  module HttpMethod
273
311
  # HTTP method unspecified. Defaults to POST.
@@ -5,6 +5,7 @@
5
5
  require 'google/protobuf'
6
6
 
7
7
  require 'google/api/annotations_pb'
8
+ require 'google/api/resource_pb'
8
9
  require 'google/cloud/scheduler/v1beta1/target_pb'
9
10
  require 'google/protobuf/duration_pb'
10
11
  require 'google/protobuf/timestamp_pb'
@@ -21,6 +22,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
21
22
  optional :schedule_time, :message, 17, "google.protobuf.Timestamp"
22
23
  optional :last_attempt_time, :message, 18, "google.protobuf.Timestamp"
23
24
  optional :retry_config, :message, 19, "google.cloud.scheduler.v1beta1.RetryConfig"
25
+ optional :attempt_deadline, :message, 22, "google.protobuf.Duration"
24
26
  oneof :target do
25
27
  optional :pubsub_target, :message, 4, "google.cloud.scheduler.v1beta1.PubsubTarget"
26
28
  optional :app_engine_http_target, :message, 5, "google.cloud.scheduler.v1beta1.AppEngineHttpTarget"
@@ -12,6 +12,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
12
12
  optional :http_method, :enum, 2, "google.cloud.scheduler.v1beta1.HttpMethod"
13
13
  map :headers, :string, :string, 3
14
14
  optional :body, :bytes, 4
15
+ oneof :authorization_header do
16
+ optional :oauth_token, :message, 5, "google.cloud.scheduler.v1beta1.OAuthToken"
17
+ optional :oidc_token, :message, 6, "google.cloud.scheduler.v1beta1.OidcToken"
18
+ end
15
19
  end
16
20
  add_message "google.cloud.scheduler.v1beta1.AppEngineHttpTarget" do
17
21
  optional :http_method, :enum, 1, "google.cloud.scheduler.v1beta1.HttpMethod"
@@ -31,6 +35,14 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
31
35
  optional :instance, :string, 3
32
36
  optional :host, :string, 4
33
37
  end
38
+ add_message "google.cloud.scheduler.v1beta1.OAuthToken" do
39
+ optional :service_account_email, :string, 1
40
+ optional :scope, :string, 2
41
+ end
42
+ add_message "google.cloud.scheduler.v1beta1.OidcToken" do
43
+ optional :service_account_email, :string, 1
44
+ optional :audience, :string, 2
45
+ end
34
46
  add_enum "google.cloud.scheduler.v1beta1.HttpMethod" do
35
47
  value :HTTP_METHOD_UNSPECIFIED, 0
36
48
  value :POST, 1
@@ -51,6 +63,8 @@ module Google
51
63
  AppEngineHttpTarget = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.scheduler.v1beta1.AppEngineHttpTarget").msgclass
52
64
  PubsubTarget = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.scheduler.v1beta1.PubsubTarget").msgclass
53
65
  AppEngineRouting = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.scheduler.v1beta1.AppEngineRouting").msgclass
66
+ OAuthToken = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.scheduler.v1beta1.OAuthToken").msgclass
67
+ OidcToken = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.scheduler.v1beta1.OidcToken").msgclass
54
68
  HttpMethod = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.scheduler.v1beta1.HttpMethod").enummodule
55
69
  end
56
70
  end
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: 0.2.0
4
+ version: 0.3.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: 2019-03-12 00:00:00.000000000 Z
11
+ date: 2019-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-gax
@@ -24,6 +24,26 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: googleapis-common-protos
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 1.3.9
34
+ - - "<"
35
+ - !ruby/object:Gem::Version
36
+ version: '2.0'
37
+ type: :runtime
38
+ prerelease: false
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: 1.3.9
44
+ - - "<"
45
+ - !ruby/object:Gem::Version
46
+ version: '2.0'
27
47
  - !ruby/object:Gem::Dependency
28
48
  name: minitest
29
49
  requirement: !ruby/object:Gem::Requirement
@@ -159,8 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
159
179
  - !ruby/object:Gem::Version
160
180
  version: '0'
161
181
  requirements: []
162
- rubyforge_project:
163
- rubygems_version: 2.7.6
182
+ rubygems_version: 3.0.3
164
183
  signing_key:
165
184
  specification_version: 4
166
185
  summary: API Client library for Cloud Scheduler API