google-cloud-scheduler-v1beta1 0.4.3 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 71ef6de9b6fd95a897106da010722f4a6b1a0b80041c51b67943a11fab24cf39
4
- data.tar.gz: 3c625e380b058dbb4195ead824fa196f65aea1e14ff2a06be7c0af521bb3379e
3
+ metadata.gz: bd067375a1add1e8790bc70489e7ff4fee16df690c2383abebe4411ef63d5999
4
+ data.tar.gz: 29fa207e7759e9aa65bfcd002f987b1eab0689462ba899abe40689c5a5ebe590
5
5
  SHA512:
6
- metadata.gz: ce39041f1955a2f80eeacf9b70d07963882698ab705b2eeb90886a47b043d3f3ed8219e90287541f48b8c37b4de869711d7b62ed5db016e454151a2a5d602ad5
7
- data.tar.gz: fefb265875bc621150a4564dcaa46ff45403710bdbb3a9d08c5654f03a1032efcb7bea75608a974ee634d7d23e2c02a08def267d8f6d89ca44b5d9506c51d866
6
+ metadata.gz: 5fa6b5bdf913193d5b1313ac42ea9e1b2a1e1d780c9c11540343da70fb984232573ca86075f40797cacd2c0e92aae4e7359e0ff85cbbff347863eb6a655b5813
7
+ data.tar.gz: ff33594f8b76a59eba604a5ebfc5e9fdab09aeb9e76178f0523887efb93b1ac61e0498bd9c8e47a4fe8367a9af6ecd9ed249bdd6255f7450dcbb17cf06898c23
@@ -221,6 +221,27 @@ module Google
221
221
  #
222
222
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
223
223
  #
224
+ # @example Basic example
225
+ # require "google/cloud/scheduler/v1beta1"
226
+ #
227
+ # # Create a client object. The client can be reused for multiple calls.
228
+ # client = Google::Cloud::Scheduler::V1beta1::CloudScheduler::Client.new
229
+ #
230
+ # # Create a request. To set request fields, pass in keyword arguments.
231
+ # request = Google::Cloud::Scheduler::V1beta1::ListJobsRequest.new
232
+ #
233
+ # # Call the list_jobs method.
234
+ # result = client.list_jobs request
235
+ #
236
+ # # The returned object is of type Gapic::PagedEnumerable. You can
237
+ # # iterate over all elements by calling #each, and the enumerable
238
+ # # will lazily make API calls to fetch subsequent pages. Other
239
+ # # methods are also available for managing paging directly.
240
+ # result.each do |response|
241
+ # # Each element is of type ::Google::Cloud::Scheduler::V1beta1::Job.
242
+ # p response
243
+ # end
244
+ #
224
245
  def list_jobs request, options = nil
225
246
  raise ::ArgumentError, "request must be provided" if request.nil?
226
247
 
@@ -238,9 +259,11 @@ module Google
238
259
  gapic_version: ::Google::Cloud::Scheduler::V1beta1::VERSION
239
260
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
240
261
 
241
- header_params = {
242
- "parent" => request.parent
243
- }
262
+ header_params = {}
263
+ if request.parent
264
+ header_params["parent"] = request.parent
265
+ end
266
+
244
267
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
245
268
  metadata[:"x-goog-request-params"] ||= request_params_header
246
269
 
@@ -291,6 +314,21 @@ module Google
291
314
  #
292
315
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
293
316
  #
317
+ # @example Basic example
318
+ # require "google/cloud/scheduler/v1beta1"
319
+ #
320
+ # # Create a client object. The client can be reused for multiple calls.
321
+ # client = Google::Cloud::Scheduler::V1beta1::CloudScheduler::Client.new
322
+ #
323
+ # # Create a request. To set request fields, pass in keyword arguments.
324
+ # request = Google::Cloud::Scheduler::V1beta1::GetJobRequest.new
325
+ #
326
+ # # Call the get_job method.
327
+ # result = client.get_job request
328
+ #
329
+ # # The returned object is of type Google::Cloud::Scheduler::V1beta1::Job.
330
+ # p result
331
+ #
294
332
  def get_job request, options = nil
295
333
  raise ::ArgumentError, "request must be provided" if request.nil?
296
334
 
@@ -308,9 +346,11 @@ module Google
308
346
  gapic_version: ::Google::Cloud::Scheduler::V1beta1::VERSION
309
347
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
310
348
 
311
- header_params = {
312
- "name" => request.name
313
- }
349
+ header_params = {}
350
+ if request.name
351
+ header_params["name"] = request.name
352
+ end
353
+
314
354
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
315
355
  metadata[:"x-goog-request-params"] ||= request_params_header
316
356
 
@@ -366,6 +406,21 @@ module Google
366
406
  #
367
407
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
368
408
  #
409
+ # @example Basic example
410
+ # require "google/cloud/scheduler/v1beta1"
411
+ #
412
+ # # Create a client object. The client can be reused for multiple calls.
413
+ # client = Google::Cloud::Scheduler::V1beta1::CloudScheduler::Client.new
414
+ #
415
+ # # Create a request. To set request fields, pass in keyword arguments.
416
+ # request = Google::Cloud::Scheduler::V1beta1::CreateJobRequest.new
417
+ #
418
+ # # Call the create_job method.
419
+ # result = client.create_job request
420
+ #
421
+ # # The returned object is of type Google::Cloud::Scheduler::V1beta1::Job.
422
+ # p result
423
+ #
369
424
  def create_job request, options = nil
370
425
  raise ::ArgumentError, "request must be provided" if request.nil?
371
426
 
@@ -383,9 +438,11 @@ module Google
383
438
  gapic_version: ::Google::Cloud::Scheduler::V1beta1::VERSION
384
439
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
385
440
 
386
- header_params = {
387
- "parent" => request.parent
388
- }
441
+ header_params = {}
442
+ if request.parent
443
+ header_params["parent"] = request.parent
444
+ end
445
+
389
446
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
390
447
  metadata[:"x-goog-request-params"] ||= request_params_header
391
448
 
@@ -447,6 +504,21 @@ module Google
447
504
  #
448
505
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
449
506
  #
507
+ # @example Basic example
508
+ # require "google/cloud/scheduler/v1beta1"
509
+ #
510
+ # # Create a client object. The client can be reused for multiple calls.
511
+ # client = Google::Cloud::Scheduler::V1beta1::CloudScheduler::Client.new
512
+ #
513
+ # # Create a request. To set request fields, pass in keyword arguments.
514
+ # request = Google::Cloud::Scheduler::V1beta1::UpdateJobRequest.new
515
+ #
516
+ # # Call the update_job method.
517
+ # result = client.update_job request
518
+ #
519
+ # # The returned object is of type Google::Cloud::Scheduler::V1beta1::Job.
520
+ # p result
521
+ #
450
522
  def update_job request, options = nil
451
523
  raise ::ArgumentError, "request must be provided" if request.nil?
452
524
 
@@ -464,9 +536,11 @@ module Google
464
536
  gapic_version: ::Google::Cloud::Scheduler::V1beta1::VERSION
465
537
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
466
538
 
467
- header_params = {
468
- "job.name" => request.job.name
469
- }
539
+ header_params = {}
540
+ if request.job&.name
541
+ header_params["job.name"] = request.job.name
542
+ end
543
+
470
544
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
471
545
  metadata[:"x-goog-request-params"] ||= request_params_header
472
546
 
@@ -516,6 +590,21 @@ module Google
516
590
  #
517
591
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
518
592
  #
593
+ # @example Basic example
594
+ # require "google/cloud/scheduler/v1beta1"
595
+ #
596
+ # # Create a client object. The client can be reused for multiple calls.
597
+ # client = Google::Cloud::Scheduler::V1beta1::CloudScheduler::Client.new
598
+ #
599
+ # # Create a request. To set request fields, pass in keyword arguments.
600
+ # request = Google::Cloud::Scheduler::V1beta1::DeleteJobRequest.new
601
+ #
602
+ # # Call the delete_job method.
603
+ # result = client.delete_job request
604
+ #
605
+ # # The returned object is of type Google::Protobuf::Empty.
606
+ # p result
607
+ #
519
608
  def delete_job request, options = nil
520
609
  raise ::ArgumentError, "request must be provided" if request.nil?
521
610
 
@@ -533,9 +622,11 @@ module Google
533
622
  gapic_version: ::Google::Cloud::Scheduler::V1beta1::VERSION
534
623
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
535
624
 
536
- header_params = {
537
- "name" => request.name
538
- }
625
+ header_params = {}
626
+ if request.name
627
+ header_params["name"] = request.name
628
+ end
629
+
539
630
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
540
631
  metadata[:"x-goog-request-params"] ||= request_params_header
541
632
 
@@ -591,6 +682,21 @@ module Google
591
682
  #
592
683
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
593
684
  #
685
+ # @example Basic example
686
+ # require "google/cloud/scheduler/v1beta1"
687
+ #
688
+ # # Create a client object. The client can be reused for multiple calls.
689
+ # client = Google::Cloud::Scheduler::V1beta1::CloudScheduler::Client.new
690
+ #
691
+ # # Create a request. To set request fields, pass in keyword arguments.
692
+ # request = Google::Cloud::Scheduler::V1beta1::PauseJobRequest.new
693
+ #
694
+ # # Call the pause_job method.
695
+ # result = client.pause_job request
696
+ #
697
+ # # The returned object is of type Google::Cloud::Scheduler::V1beta1::Job.
698
+ # p result
699
+ #
594
700
  def pause_job request, options = nil
595
701
  raise ::ArgumentError, "request must be provided" if request.nil?
596
702
 
@@ -608,9 +714,11 @@ module Google
608
714
  gapic_version: ::Google::Cloud::Scheduler::V1beta1::VERSION
609
715
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
610
716
 
611
- header_params = {
612
- "name" => request.name
613
- }
717
+ header_params = {}
718
+ if request.name
719
+ header_params["name"] = request.name
720
+ end
721
+
614
722
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
615
723
  metadata[:"x-goog-request-params"] ||= request_params_header
616
724
 
@@ -665,6 +773,21 @@ module Google
665
773
  #
666
774
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
667
775
  #
776
+ # @example Basic example
777
+ # require "google/cloud/scheduler/v1beta1"
778
+ #
779
+ # # Create a client object. The client can be reused for multiple calls.
780
+ # client = Google::Cloud::Scheduler::V1beta1::CloudScheduler::Client.new
781
+ #
782
+ # # Create a request. To set request fields, pass in keyword arguments.
783
+ # request = Google::Cloud::Scheduler::V1beta1::ResumeJobRequest.new
784
+ #
785
+ # # Call the resume_job method.
786
+ # result = client.resume_job request
787
+ #
788
+ # # The returned object is of type Google::Cloud::Scheduler::V1beta1::Job.
789
+ # p result
790
+ #
668
791
  def resume_job request, options = nil
669
792
  raise ::ArgumentError, "request must be provided" if request.nil?
670
793
 
@@ -682,9 +805,11 @@ module Google
682
805
  gapic_version: ::Google::Cloud::Scheduler::V1beta1::VERSION
683
806
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
684
807
 
685
- header_params = {
686
- "name" => request.name
687
- }
808
+ header_params = {}
809
+ if request.name
810
+ header_params["name"] = request.name
811
+ end
812
+
688
813
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
689
814
  metadata[:"x-goog-request-params"] ||= request_params_header
690
815
 
@@ -737,6 +862,21 @@ module Google
737
862
  #
738
863
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
739
864
  #
865
+ # @example Basic example
866
+ # require "google/cloud/scheduler/v1beta1"
867
+ #
868
+ # # Create a client object. The client can be reused for multiple calls.
869
+ # client = Google::Cloud::Scheduler::V1beta1::CloudScheduler::Client.new
870
+ #
871
+ # # Create a request. To set request fields, pass in keyword arguments.
872
+ # request = Google::Cloud::Scheduler::V1beta1::RunJobRequest.new
873
+ #
874
+ # # Call the run_job method.
875
+ # result = client.run_job request
876
+ #
877
+ # # The returned object is of type Google::Cloud::Scheduler::V1beta1::Job.
878
+ # p result
879
+ #
740
880
  def run_job request, options = nil
741
881
  raise ::ArgumentError, "request must be provided" if request.nil?
742
882
 
@@ -754,9 +894,11 @@ module Google
754
894
  gapic_version: ::Google::Cloud::Scheduler::V1beta1::VERSION
755
895
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
756
896
 
757
- header_params = {
758
- "name" => request.name
759
- }
897
+ header_params = {}
898
+ if request.name
899
+ header_params["name"] = request.name
900
+ end
901
+
760
902
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
761
903
  metadata[:"x-goog-request-params"] ||= request_params_header
762
904
 
@@ -1,8 +1,6 @@
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
-
6
4
  require 'google/api/annotations_pb'
7
5
  require 'google/api/client_pb'
8
6
  require 'google/api/field_behavior_pb'
@@ -10,6 +8,8 @@ require 'google/api/resource_pb'
10
8
  require 'google/cloud/scheduler/v1beta1/job_pb'
11
9
  require 'google/protobuf/empty_pb'
12
10
  require 'google/protobuf/field_mask_pb'
11
+ require 'google/protobuf'
12
+
13
13
  Google::Protobuf::DescriptorPool.generated_pool.build do
14
14
  add_file("google/cloud/scheduler/v1beta1/cloudscheduler.proto", :syntax => :proto3) do
15
15
  add_message "google.cloud.scheduler.v1beta1.ListJobsRequest" do
@@ -29,7 +29,7 @@ module Google
29
29
  # schedule asynchronous jobs.
30
30
  class Service
31
31
 
32
- include GRPC::GenericService
32
+ include ::GRPC::GenericService
33
33
 
34
34
  self.marshal_class_method = :encode
35
35
  self.unmarshal_class_method = :decode
@@ -1,14 +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
4
  require 'google/api/resource_pb'
7
5
  require 'google/cloud/scheduler/v1beta1/target_pb'
8
6
  require 'google/protobuf/duration_pb'
9
7
  require 'google/protobuf/timestamp_pb'
10
8
  require 'google/rpc/status_pb'
11
9
  require 'google/api/annotations_pb'
10
+ require 'google/protobuf'
11
+
12
12
  Google::Protobuf::DescriptorPool.generated_pool.build do
13
13
  add_file("google/cloud/scheduler/v1beta1/job.proto", :syntax => :proto3) do
14
14
  add_message "google.cloud.scheduler.v1beta1.Job" do
@@ -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/protobuf'
5
-
6
4
  require 'google/api/resource_pb'
7
5
  require 'google/api/annotations_pb'
6
+ require 'google/protobuf'
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.3"
24
+ VERSION = "0.4.4"
25
25
  end
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-scheduler-v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-11 00:00:00.000000000 Z
11
+ date: 2021-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common