google-cloud-scheduler-v1beta1 0.4.5 → 0.6.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: bbe85aa3a8ebe270539e72c6bb31ab8464c671ae7aea35f93103d0af98510536
4
- data.tar.gz: 7b9e75b9e93ee25be1fc5810787a3092a8b890281cfed91b5980ec212b634f01
3
+ metadata.gz: 501a441332a8fc230e77a49ccf0868488717063acde66f7d7848de56868f7eca
4
+ data.tar.gz: 54a8b7266e244ed451174909e698c878f8704f44a0ae2d49d4e27c6aaaba1943
5
5
  SHA512:
6
- metadata.gz: 94deb997fa529348a9c675ef272a2fccf9ec0e9ca13bc8e54b25229fc9745cbbbd856dcc78151b6d6b4966b0e25c2eff600169688eb3b36c5514be2498034ac1
7
- data.tar.gz: 41fa2139aaa3be051422ffe71a4dc27dcd585ea06aee0211f696f158c352006ab3d477db828c56d781172950f54a22f0eb4cbf2a8f209da7679f301494a23742
6
+ metadata.gz: f0da5e60e24246003452d31d98a32c2187d4919cde0d9cb8651d34da3dd471ba058c20da0db2eed50fbcbe956e36906850de609d5f02ab82161946bec232c0dd
7
+ data.tar.gz: 73eb8205d6147fa454621c6f41d683fc091dd7137a0d6e959f5b19f555e01e5052da2a111c10576828f66c00dd816e52032323a165bdf0a92a59175adb8f9f69
data/AUTHENTICATION.md CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
114
114
  To configure your system for this, simply:
115
115
 
116
116
  1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
117
- 2. Authenticate using OAuth 2.0 `$ gcloud auth login`
117
+ 2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
118
118
  3. Write code as if already authenticated.
119
119
 
120
120
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
data/README.md CHANGED
@@ -37,7 +37,7 @@ request = ::Google::Cloud::Scheduler::V1beta1::ListJobsRequest.new # (request fi
37
37
  response = client.list_jobs request
38
38
  ```
39
39
 
40
- View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-scheduler-v1beta1/latest)
40
+ View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-scheduler-v1beta1/latest)
41
41
  for class and method documentation.
42
42
 
43
43
  See also the [Product Documentation](https://cloud.google.com/scheduler)
@@ -46,7 +46,7 @@ for general usage information.
46
46
  ## Enabling Logging
47
47
 
48
48
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
49
- The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
49
+ The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
50
50
  or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
51
51
  that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
52
52
  and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
@@ -69,16 +69,21 @@ module GRPC
69
69
  end
70
70
  ```
71
71
 
72
+
73
+ ## Google Cloud Samples
74
+
75
+ To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
76
+
72
77
  ## Supported Ruby Versions
73
78
 
74
- This library is supported on Ruby 2.5+.
79
+ This library is supported on Ruby 2.6+.
75
80
 
76
81
  Google provides official support for Ruby versions that are actively supported
77
82
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
78
- in security maintenance, and not end of life. Currently, this means Ruby 2.5
79
- and later. Older versions of Ruby _may_ still work, but are unsupported and not
80
- recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
81
- about the Ruby support schedule.
83
+ in security maintenance, and not end of life. Older versions of Ruby _may_
84
+ still work, but are unsupported and not recommended. See
85
+ https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
86
+ support schedule.
82
87
 
83
88
  ## Which client should I use?
84
89
 
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/scheduler/v1beta1/cloudscheduler_pb"
21
+ require "google/cloud/location"
21
22
 
22
23
  module Google
23
24
  module Cloud
@@ -165,6 +166,12 @@ module Google
165
166
  @quota_project_id = @config.quota_project
166
167
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
167
168
 
169
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
170
+ config.credentials = credentials
171
+ config.quota_project = @quota_project_id
172
+ config.endpoint = @config.endpoint
173
+ end
174
+
168
175
  @cloud_scheduler_stub = ::Gapic::ServiceStub.new(
169
176
  ::Google::Cloud::Scheduler::V1beta1::CloudScheduler::Stub,
170
177
  credentials: credentials,
@@ -174,6 +181,13 @@ module Google
174
181
  )
175
182
  end
176
183
 
184
+ ##
185
+ # Get the associated client for mix-in of the Locations.
186
+ #
187
+ # @return [Google::Cloud::Location::Locations::Client]
188
+ #
189
+ attr_reader :location_client
190
+
177
191
  # Service calls
178
192
 
179
193
  ##
@@ -189,7 +203,7 @@ module Google
189
203
  # @param options [::Gapic::CallOptions, ::Hash]
190
204
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
191
205
  #
192
- # @overload list_jobs(parent: nil, page_size: nil, page_token: nil)
206
+ # @overload list_jobs(parent: nil, filter: nil, page_size: nil, page_token: nil, legacy_app_engine_cron: nil)
193
207
  # Pass arguments to `list_jobs` via keyword arguments. Note that at
194
208
  # least one keyword argument is required. To specify no parameters, or to keep all
195
209
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -197,6 +211,15 @@ module Google
197
211
  # @param parent [::String]
198
212
  # Required. The location name. For example:
199
213
  # `projects/PROJECT_ID/locations/LOCATION_ID`.
214
+ # @param filter [::String]
215
+ # `filter` can be used to specify a subset of jobs.
216
+ #
217
+ # If `filter` equals `target_config="HttpConfig"`, then the http
218
+ # target jobs are retrieved. If `filter` equals
219
+ # `target_config="PubSubConfig"`, then the Pub/Sub target jobs are
220
+ # retrieved. If `filter` equals `labels.foo=value1
221
+ # labels.foo=value2` then only jobs which are labeled with
222
+ # foo=value1 AND foo=value2 will be returned.
200
223
  # @param page_size [::Integer]
201
224
  # Requested page size.
202
225
  #
@@ -208,10 +231,17 @@ module Google
208
231
  # A token identifying a page of results the server will return. To
209
232
  # request the first page results, page_token must be empty. To
210
233
  # request the next page of results, page_token must be the value of
211
- # {::Google::Cloud::Scheduler::V1beta1::ListJobsResponse#next_page_token next_page_token} returned from
212
- # the previous call to {::Google::Cloud::Scheduler::V1beta1::CloudScheduler::Client#list_jobs ListJobs}. It is an error to
213
- # switch the value of [filter][google.cloud.scheduler.v1beta1.ListJobsRequest.filter] or
214
- # [order_by][google.cloud.scheduler.v1beta1.ListJobsRequest.order_by] while iterating through pages.
234
+ # {::Google::Cloud::Scheduler::V1beta1::ListJobsResponse#next_page_token next_page_token}
235
+ # returned from the previous call to
236
+ # {::Google::Cloud::Scheduler::V1beta1::CloudScheduler::Client#list_jobs ListJobs}. It is
237
+ # an error to switch the value of
238
+ # {::Google::Cloud::Scheduler::V1beta1::ListJobsRequest#filter filter} or
239
+ # [order_by][google.cloud.scheduler.v1beta1.ListJobsRequest.order_by] while
240
+ # iterating through pages.
241
+ # @param legacy_app_engine_cron [::Boolean]
242
+ # This field is used to manage the legacy App Engine Cron jobs using the
243
+ # Cloud Scheduler API. If the field is set to true, the jobs in the __cron
244
+ # queue will be listed instead.
215
245
  #
216
246
  # @yield [response, operation] Access the result along with the RPC operation
217
247
  # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Scheduler::V1beta1::Job>]
@@ -393,7 +423,8 @@ module Google
393
423
  # `projects/PROJECT_ID/locations/LOCATION_ID`.
394
424
  # @param job [::Google::Cloud::Scheduler::V1beta1::Job, ::Hash]
395
425
  # Required. The job to add. The user can optionally specify a name for the
396
- # job in {::Google::Cloud::Scheduler::V1beta1::Job#name name}. {::Google::Cloud::Scheduler::V1beta1::Job#name name} cannot be the same as an
426
+ # job in {::Google::Cloud::Scheduler::V1beta1::Job#name name}.
427
+ # {::Google::Cloud::Scheduler::V1beta1::Job#name name} cannot be the same as an
397
428
  # existing job. If a name is not specified then the system will
398
429
  # generate a random unique name that will be returned
399
430
  # ({::Google::Cloud::Scheduler::V1beta1::Job#name name}) in the response.
@@ -465,13 +496,14 @@ module Google
465
496
  ##
466
497
  # Updates a job.
467
498
  #
468
- # If successful, the updated {::Google::Cloud::Scheduler::V1beta1::Job Job} is returned. If the job does
469
- # not exist, `NOT_FOUND` is returned.
499
+ # If successful, the updated {::Google::Cloud::Scheduler::V1beta1::Job Job} is
500
+ # returned. If the job does not exist, `NOT_FOUND` is returned.
470
501
  #
471
502
  # If UpdateJob does not successfully return, it is possible for the
472
- # job to be in an {::Google::Cloud::Scheduler::V1beta1::Job::State::UPDATE_FAILED Job.State.UPDATE_FAILED} state. A job in this state may
473
- # not be executed. If this happens, retry the UpdateJob request
474
- # until a successful response is received.
503
+ # job to be in an
504
+ # {::Google::Cloud::Scheduler::V1beta1::Job::State::UPDATE_FAILED Job.State.UPDATE_FAILED}
505
+ # state. A job in this state may not be executed. If this happens, retry the
506
+ # UpdateJob request until a successful response is received.
475
507
  #
476
508
  # @overload update_job(request, options = nil)
477
509
  # Pass arguments to `update_job` via a request object, either of type
@@ -489,7 +521,8 @@ module Google
489
521
  # the default parameter values, pass an empty Hash as a request object (see above).
490
522
  #
491
523
  # @param job [::Google::Cloud::Scheduler::V1beta1::Job, ::Hash]
492
- # Required. The new job properties. {::Google::Cloud::Scheduler::V1beta1::Job#name name} must be specified.
524
+ # Required. The new job properties.
525
+ # {::Google::Cloud::Scheduler::V1beta1::Job#name name} must be specified.
493
526
  #
494
527
  # Output only fields cannot be modified using UpdateJob.
495
528
  # Any value specified for an output only field will be ignored.
@@ -573,7 +606,7 @@ module Google
573
606
  # @param options [::Gapic::CallOptions, ::Hash]
574
607
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
575
608
  #
576
- # @overload delete_job(name: nil)
609
+ # @overload delete_job(name: nil, legacy_app_engine_cron: nil)
577
610
  # Pass arguments to `delete_job` via keyword arguments. Note that at
578
611
  # least one keyword argument is required. To specify no parameters, or to keep all
579
612
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -581,6 +614,10 @@ module Google
581
614
  # @param name [::String]
582
615
  # Required. The job name. For example:
583
616
  # `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
617
+ # @param legacy_app_engine_cron [::Boolean]
618
+ # This field is used to manage the legacy App Engine Cron jobs using the
619
+ # Cloud Scheduler API. If the field is set to true, the job in the __cron
620
+ # queue with the corresponding name will be deleted instead.
584
621
  #
585
622
  # @yield [response, operation] Access the result along with the RPC operation
586
623
  # @yieldparam response [::Google::Protobuf::Empty]
@@ -650,10 +687,14 @@ module Google
650
687
  # Pauses a job.
651
688
  #
652
689
  # If a job is paused then the system will stop executing the job
653
- # until it is re-enabled via {::Google::Cloud::Scheduler::V1beta1::CloudScheduler::Client#resume_job ResumeJob}. The
654
- # state of the job is stored in {::Google::Cloud::Scheduler::V1beta1::Job#state state}; if paused it
655
- # 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}
656
- # to be paused.
690
+ # until it is re-enabled via
691
+ # {::Google::Cloud::Scheduler::V1beta1::CloudScheduler::Client#resume_job ResumeJob}. The
692
+ # state of the job is stored in
693
+ # {::Google::Cloud::Scheduler::V1beta1::Job#state state}; if paused it will be set
694
+ # to {::Google::Cloud::Scheduler::V1beta1::Job::State::PAUSED Job.State.PAUSED}. A
695
+ # job must be in
696
+ # {::Google::Cloud::Scheduler::V1beta1::Job::State::ENABLED Job.State.ENABLED} to be
697
+ # paused.
657
698
  #
658
699
  # @overload pause_job(request, options = nil)
659
700
  # Pass arguments to `pause_job` via a request object, either of type
@@ -741,10 +782,15 @@ module Google
741
782
  ##
742
783
  # Resume a job.
743
784
  #
744
- # This method reenables a job after it has been {::Google::Cloud::Scheduler::V1beta1::Job::State::PAUSED Job.State.PAUSED}. The
745
- # state of a job is stored in {::Google::Cloud::Scheduler::V1beta1::Job#state Job.state}; after calling this method it
746
- # will be set to {::Google::Cloud::Scheduler::V1beta1::Job::State::ENABLED Job.State.ENABLED}. A job must be in
747
- # {::Google::Cloud::Scheduler::V1beta1::Job::State::PAUSED Job.State.PAUSED} to be resumed.
785
+ # This method reenables a job after it has been
786
+ # {::Google::Cloud::Scheduler::V1beta1::Job::State::PAUSED Job.State.PAUSED}. The
787
+ # state of a job is stored in
788
+ # {::Google::Cloud::Scheduler::V1beta1::Job#state Job.state}; after calling this
789
+ # method it will be set to
790
+ # {::Google::Cloud::Scheduler::V1beta1::Job::State::ENABLED Job.State.ENABLED}. A
791
+ # job must be in
792
+ # {::Google::Cloud::Scheduler::V1beta1::Job::State::PAUSED Job.State.PAUSED} to be
793
+ # resumed.
748
794
  #
749
795
  # @overload resume_job(request, options = nil)
750
796
  # Pass arguments to `resume_job` via a request object, either of type
@@ -845,7 +891,7 @@ module Google
845
891
  # @param options [::Gapic::CallOptions, ::Hash]
846
892
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
847
893
  #
848
- # @overload run_job(name: nil)
894
+ # @overload run_job(name: nil, legacy_app_engine_cron: nil)
849
895
  # Pass arguments to `run_job` via keyword arguments. Note that at
850
896
  # least one keyword argument is required. To specify no parameters, or to keep all
851
897
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -853,6 +899,10 @@ module Google
853
899
  # @param name [::String]
854
900
  # Required. The job name. For example:
855
901
  # `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
902
+ # @param legacy_app_engine_cron [::Boolean]
903
+ # This field is used to manage the legacy App Engine Cron jobs using the
904
+ # Cloud Scheduler API. If the field is set to true, the job in the __cron
905
+ # queue with the corresponding name will be forced to run instead.
856
906
  #
857
907
  # @yield [response, operation] Access the result along with the RPC operation
858
908
  # @yieldparam response [::Google::Cloud::Scheduler::V1beta1::Job]
@@ -1,6 +1,8 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/scheduler/v1beta1/cloudscheduler.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/annotations_pb'
5
7
  require 'google/api/client_pb'
6
8
  require 'google/api/field_behavior_pb'
@@ -8,14 +10,15 @@ require 'google/api/resource_pb'
8
10
  require 'google/cloud/scheduler/v1beta1/job_pb'
9
11
  require 'google/protobuf/empty_pb'
10
12
  require 'google/protobuf/field_mask_pb'
11
- require 'google/protobuf'
12
13
 
13
14
  Google::Protobuf::DescriptorPool.generated_pool.build do
14
15
  add_file("google/cloud/scheduler/v1beta1/cloudscheduler.proto", :syntax => :proto3) do
15
16
  add_message "google.cloud.scheduler.v1beta1.ListJobsRequest" do
16
17
  optional :parent, :string, 1
18
+ optional :filter, :string, 4
17
19
  optional :page_size, :int32, 5
18
20
  optional :page_token, :string, 6
21
+ optional :legacy_app_engine_cron, :bool, 7
19
22
  end
20
23
  add_message "google.cloud.scheduler.v1beta1.ListJobsResponse" do
21
24
  repeated :jobs, :message, 1, "google.cloud.scheduler.v1beta1.Job"
@@ -34,6 +37,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
34
37
  end
35
38
  add_message "google.cloud.scheduler.v1beta1.DeleteJobRequest" do
36
39
  optional :name, :string, 1
40
+ optional :legacy_app_engine_cron, :bool, 2
37
41
  end
38
42
  add_message "google.cloud.scheduler.v1beta1.PauseJobRequest" do
39
43
  optional :name, :string, 1
@@ -43,6 +47,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
43
47
  end
44
48
  add_message "google.cloud.scheduler.v1beta1.RunJobRequest" do
45
49
  optional :name, :string, 1
50
+ optional :legacy_app_engine_cron, :bool, 2
46
51
  end
47
52
  end
48
53
  end
@@ -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 2019 Google LLC.
4
+ # Copyright 2022 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.
@@ -15,7 +15,6 @@
15
15
  # See the License for the specific language governing permissions and
16
16
  # limitations under the License.
17
17
  #
18
- #
19
18
 
20
19
  require 'grpc'
21
20
  require 'google/cloud/scheduler/v1beta1/cloudscheduler_pb'
@@ -43,30 +42,40 @@ module Google
43
42
  rpc :CreateJob, ::Google::Cloud::Scheduler::V1beta1::CreateJobRequest, ::Google::Cloud::Scheduler::V1beta1::Job
44
43
  # Updates a job.
45
44
  #
46
- # If successful, the updated [Job][google.cloud.scheduler.v1beta1.Job] is returned. If the job does
47
- # not exist, `NOT_FOUND` is returned.
45
+ # If successful, the updated [Job][google.cloud.scheduler.v1beta1.Job] is
46
+ # returned. If the job does not exist, `NOT_FOUND` is returned.
48
47
  #
49
48
  # If UpdateJob does not successfully return, it is possible for the
50
- # job to be in an [Job.State.UPDATE_FAILED][google.cloud.scheduler.v1beta1.Job.State.UPDATE_FAILED] state. A job in this state may
51
- # not be executed. If this happens, retry the UpdateJob request
52
- # until a successful response is received.
49
+ # job to be in an
50
+ # [Job.State.UPDATE_FAILED][google.cloud.scheduler.v1beta1.Job.State.UPDATE_FAILED]
51
+ # state. A job in this state may not be executed. If this happens, retry the
52
+ # UpdateJob request until a successful response is received.
53
53
  rpc :UpdateJob, ::Google::Cloud::Scheduler::V1beta1::UpdateJobRequest, ::Google::Cloud::Scheduler::V1beta1::Job
54
54
  # Deletes a job.
55
55
  rpc :DeleteJob, ::Google::Cloud::Scheduler::V1beta1::DeleteJobRequest, ::Google::Protobuf::Empty
56
56
  # Pauses a job.
57
57
  #
58
58
  # If a job is paused then the system will stop executing the job
59
- # until it is re-enabled via [ResumeJob][google.cloud.scheduler.v1beta1.CloudScheduler.ResumeJob]. The
60
- # state of the job is stored in [state][google.cloud.scheduler.v1beta1.Job.state]; if paused it
61
- # 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]
62
- # to be paused.
59
+ # until it is re-enabled via
60
+ # [ResumeJob][google.cloud.scheduler.v1beta1.CloudScheduler.ResumeJob]. The
61
+ # state of the job is stored in
62
+ # [state][google.cloud.scheduler.v1beta1.Job.state]; if paused it will be set
63
+ # to [Job.State.PAUSED][google.cloud.scheduler.v1beta1.Job.State.PAUSED]. A
64
+ # job must be in
65
+ # [Job.State.ENABLED][google.cloud.scheduler.v1beta1.Job.State.ENABLED] to be
66
+ # paused.
63
67
  rpc :PauseJob, ::Google::Cloud::Scheduler::V1beta1::PauseJobRequest, ::Google::Cloud::Scheduler::V1beta1::Job
64
68
  # Resume a job.
65
69
  #
66
- # This method reenables a job after it has been [Job.State.PAUSED][google.cloud.scheduler.v1beta1.Job.State.PAUSED]. The
67
- # state of a job is stored in [Job.state][google.cloud.scheduler.v1beta1.Job.state]; after calling this method it
68
- # will be set to [Job.State.ENABLED][google.cloud.scheduler.v1beta1.Job.State.ENABLED]. A job must be in
69
- # [Job.State.PAUSED][google.cloud.scheduler.v1beta1.Job.State.PAUSED] to be resumed.
70
+ # This method reenables a job after it has been
71
+ # [Job.State.PAUSED][google.cloud.scheduler.v1beta1.Job.State.PAUSED]. The
72
+ # state of a job is stored in
73
+ # [Job.state][google.cloud.scheduler.v1beta1.Job.state]; after calling this
74
+ # method it will be set to
75
+ # [Job.State.ENABLED][google.cloud.scheduler.v1beta1.Job.State.ENABLED]. A
76
+ # job must be in
77
+ # [Job.State.PAUSED][google.cloud.scheduler.v1beta1.Job.State.PAUSED] to be
78
+ # resumed.
70
79
  rpc :ResumeJob, ::Google::Cloud::Scheduler::V1beta1::ResumeJobRequest, ::Google::Cloud::Scheduler::V1beta1::Job
71
80
  # Forces a job to run now.
72
81
  #
@@ -1,13 +1,14 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/scheduler/v1beta1/job.proto
3
3
 
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/field_behavior_pb'
4
7
  require 'google/api/resource_pb'
5
8
  require 'google/cloud/scheduler/v1beta1/target_pb'
6
9
  require 'google/protobuf/duration_pb'
7
10
  require 'google/protobuf/timestamp_pb'
8
11
  require 'google/rpc/status_pb'
9
- require 'google/api/annotations_pb'
10
- require 'google/protobuf'
11
12
 
12
13
  Google::Protobuf::DescriptorPool.generated_pool.build do
13
14
  add_file("google/cloud/scheduler/v1beta1/job.proto", :syntax => :proto3) do
@@ -23,6 +24,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
23
24
  optional :last_attempt_time, :message, 18, "google.protobuf.Timestamp"
24
25
  optional :retry_config, :message, 19, "google.cloud.scheduler.v1beta1.RetryConfig"
25
26
  optional :attempt_deadline, :message, 22, "google.protobuf.Duration"
27
+ optional :legacy_app_engine_cron, :bool, 23
26
28
  oneof :target do
27
29
  optional :pubsub_target, :message, 4, "google.cloud.scheduler.v1beta1.PubsubTarget"
28
30
  optional :app_engine_http_target, :message, 5, "google.cloud.scheduler.v1beta1.AppEngineHttpTarget"
@@ -1,10 +1,10 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/scheduler/v1beta1/target.proto
3
3
 
4
- require 'google/api/resource_pb'
5
- require 'google/api/annotations_pb'
6
4
  require 'google/protobuf'
7
5
 
6
+ require 'google/api/resource_pb'
7
+
8
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
9
  add_file("google/cloud/scheduler/v1beta1/target.proto", :syntax => :proto3) do
10
10
  add_message "google.cloud.scheduler.v1beta1.HttpTarget" do
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Scheduler
23
23
  module V1beta1
24
- VERSION = "0.4.5"
24
+ VERSION = "0.6.0"
25
25
  end
26
26
  end
27
27
  end
@@ -25,6 +25,8 @@ module Google
25
25
  ##
26
26
  # To load this package, including all its services, and instantiate a client:
27
27
  #
28
+ # @example
29
+ #
28
30
  # require "google/cloud/scheduler/v1beta1"
29
31
  # client = ::Google::Cloud::Scheduler::V1beta1::CloudScheduler::Client.new
30
32
  #