google-cloud-scheduler-v1beta1 0.8.0 → 0.9.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: 012fd1d08b506cd8ef316ab83b07fb91e7ffa87332d831ce982a585ceda672cf
4
- data.tar.gz: ae5654f89d96303af6501b771c402388f33a7e0c3f73f8de9a74080ebad2fa73
3
+ metadata.gz: 442715c65bc307f440c84808cfd838f00132111578ed264cecd35b01c0fed460
4
+ data.tar.gz: 977b5c2e98eaf404f727e95f72c140a0696842fee769ad84567efe6e784230de
5
5
  SHA512:
6
- metadata.gz: a6749b453ea5535d2ae2b727b4fad1328f8a18592a88774e8a5c1e9bd7a8d62dcc5bc44ad968b426d4a267c06cff5b14bec9f5add59f746db8154a062f3f8594
7
- data.tar.gz: 034ee1872b055d6a0ec25f9d652b0e7024e7f2a94a40bb4b0b05849927d8f435991e9af8cdd51da5b8d5042a91477e6a5cca4d42d0947c6f3eab9049db8bccb9
6
+ metadata.gz: c6fa29402906bd79a597b830f678fd736a5a1461616d6fc5821809a7efa3df40bc22b41eb34943073636e8b15c568bcd4cecac46fda86766c940dcb5cf8855bf
7
+ data.tar.gz: 5c19e0b6ade1c33ed0e21c367bb3f111de463a62abc36821890a61da766aacc7638ea2c027da9d9573329f7fbbe953bfe11a4c265163c3e43ddf392890592e51
@@ -156,7 +156,7 @@ module Google
156
156
  credentials = @config.credentials
157
157
  # Use self-signed JWT if the endpoint is unchanged from default,
158
158
  # but only if the default endpoint does not have a region prefix.
159
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
159
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
160
160
  !@config.endpoint.split(".").first.include?("-")
161
161
  credentials ||= Credentials.default scope: @config.scope,
162
162
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -177,7 +177,8 @@ module Google
177
177
  credentials: credentials,
178
178
  endpoint: @config.endpoint,
179
179
  channel_args: @config.channel_args,
180
- interceptors: @config.interceptors
180
+ interceptors: @config.interceptors,
181
+ channel_pool_config: @config.channel_pool
181
182
  )
182
183
  end
183
184
 
@@ -1048,7 +1049,9 @@ module Google
1048
1049
  class Configuration
1049
1050
  extend ::Gapic::Config
1050
1051
 
1051
- config_attr :endpoint, "cloudscheduler.googleapis.com", ::String
1052
+ DEFAULT_ENDPOINT = "cloudscheduler.googleapis.com"
1053
+
1054
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1052
1055
  config_attr :credentials, nil do |value|
1053
1056
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1054
1057
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -1083,6 +1086,14 @@ module Google
1083
1086
  end
1084
1087
  end
1085
1088
 
1089
+ ##
1090
+ # Configuration for the channel pool
1091
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
1092
+ #
1093
+ def channel_pool
1094
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
1095
+ end
1096
+
1086
1097
  ##
1087
1098
  # Configuration RPC class for the CloudScheduler API.
1088
1099
  #
@@ -152,7 +152,7 @@ module Google
152
152
  credentials = @config.credentials
153
153
  # Use self-signed JWT if the endpoint is unchanged from default,
154
154
  # but only if the default endpoint does not have a region prefix.
155
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
155
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
156
156
  !@config.endpoint.split(".").first.include?("-")
157
157
  credentials ||= Credentials.default scope: @config.scope,
158
158
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -241,6 +241,26 @@ module Google
241
241
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Scheduler::V1beta1::Job>]
242
242
  #
243
243
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
244
+ #
245
+ # @example Basic example
246
+ # require "google/cloud/scheduler/v1beta1"
247
+ #
248
+ # # Create a client object. The client can be reused for multiple calls.
249
+ # client = Google::Cloud::Scheduler::V1beta1::CloudScheduler::Rest::Client.new
250
+ #
251
+ # # Create a request. To set request fields, pass in keyword arguments.
252
+ # request = Google::Cloud::Scheduler::V1beta1::ListJobsRequest.new
253
+ #
254
+ # # Call the list_jobs method.
255
+ # result = client.list_jobs request
256
+ #
257
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
258
+ # # over elements, and API calls will be issued to fetch pages as needed.
259
+ # result.each do |item|
260
+ # # Each element is of type ::Google::Cloud::Scheduler::V1beta1::Job.
261
+ # p item
262
+ # end
263
+ #
244
264
  def list_jobs request, options = nil
245
265
  raise ::ArgumentError, "request must be provided" if request.nil?
246
266
 
@@ -305,6 +325,22 @@ module Google
305
325
  # @return [::Google::Cloud::Scheduler::V1beta1::Job]
306
326
  #
307
327
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
328
+ #
329
+ # @example Basic example
330
+ # require "google/cloud/scheduler/v1beta1"
331
+ #
332
+ # # Create a client object. The client can be reused for multiple calls.
333
+ # client = Google::Cloud::Scheduler::V1beta1::CloudScheduler::Rest::Client.new
334
+ #
335
+ # # Create a request. To set request fields, pass in keyword arguments.
336
+ # request = Google::Cloud::Scheduler::V1beta1::GetJobRequest.new
337
+ #
338
+ # # Call the get_job method.
339
+ # result = client.get_job request
340
+ #
341
+ # # The returned object is of type Google::Cloud::Scheduler::V1beta1::Job.
342
+ # p result
343
+ #
308
344
  def get_job request, options = nil
309
345
  raise ::ArgumentError, "request must be provided" if request.nil?
310
346
 
@@ -375,6 +411,22 @@ module Google
375
411
  # @return [::Google::Cloud::Scheduler::V1beta1::Job]
376
412
  #
377
413
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
414
+ #
415
+ # @example Basic example
416
+ # require "google/cloud/scheduler/v1beta1"
417
+ #
418
+ # # Create a client object. The client can be reused for multiple calls.
419
+ # client = Google::Cloud::Scheduler::V1beta1::CloudScheduler::Rest::Client.new
420
+ #
421
+ # # Create a request. To set request fields, pass in keyword arguments.
422
+ # request = Google::Cloud::Scheduler::V1beta1::CreateJobRequest.new
423
+ #
424
+ # # Call the create_job method.
425
+ # result = client.create_job request
426
+ #
427
+ # # The returned object is of type Google::Cloud::Scheduler::V1beta1::Job.
428
+ # p result
429
+ #
378
430
  def create_job request, options = nil
379
431
  raise ::ArgumentError, "request must be provided" if request.nil?
380
432
 
@@ -452,6 +504,22 @@ module Google
452
504
  # @return [::Google::Cloud::Scheduler::V1beta1::Job]
453
505
  #
454
506
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
507
+ #
508
+ # @example Basic example
509
+ # require "google/cloud/scheduler/v1beta1"
510
+ #
511
+ # # Create a client object. The client can be reused for multiple calls.
512
+ # client = Google::Cloud::Scheduler::V1beta1::CloudScheduler::Rest::Client.new
513
+ #
514
+ # # Create a request. To set request fields, pass in keyword arguments.
515
+ # request = Google::Cloud::Scheduler::V1beta1::UpdateJobRequest.new
516
+ #
517
+ # # Call the update_job method.
518
+ # result = client.update_job request
519
+ #
520
+ # # The returned object is of type Google::Cloud::Scheduler::V1beta1::Job.
521
+ # p result
522
+ #
455
523
  def update_job request, options = nil
456
524
  raise ::ArgumentError, "request must be provided" if request.nil?
457
525
 
@@ -519,6 +587,22 @@ module Google
519
587
  # @return [::Google::Protobuf::Empty]
520
588
  #
521
589
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
590
+ #
591
+ # @example Basic example
592
+ # require "google/cloud/scheduler/v1beta1"
593
+ #
594
+ # # Create a client object. The client can be reused for multiple calls.
595
+ # client = Google::Cloud::Scheduler::V1beta1::CloudScheduler::Rest::Client.new
596
+ #
597
+ # # Create a request. To set request fields, pass in keyword arguments.
598
+ # request = Google::Cloud::Scheduler::V1beta1::DeleteJobRequest.new
599
+ #
600
+ # # Call the delete_job method.
601
+ # result = client.delete_job request
602
+ #
603
+ # # The returned object is of type Google::Protobuf::Empty.
604
+ # p result
605
+ #
522
606
  def delete_job request, options = nil
523
607
  raise ::ArgumentError, "request must be provided" if request.nil?
524
608
 
@@ -592,6 +676,22 @@ module Google
592
676
  # @return [::Google::Cloud::Scheduler::V1beta1::Job]
593
677
  #
594
678
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
679
+ #
680
+ # @example Basic example
681
+ # require "google/cloud/scheduler/v1beta1"
682
+ #
683
+ # # Create a client object. The client can be reused for multiple calls.
684
+ # client = Google::Cloud::Scheduler::V1beta1::CloudScheduler::Rest::Client.new
685
+ #
686
+ # # Create a request. To set request fields, pass in keyword arguments.
687
+ # request = Google::Cloud::Scheduler::V1beta1::PauseJobRequest.new
688
+ #
689
+ # # Call the pause_job method.
690
+ # result = client.pause_job request
691
+ #
692
+ # # The returned object is of type Google::Cloud::Scheduler::V1beta1::Job.
693
+ # p result
694
+ #
595
695
  def pause_job request, options = nil
596
696
  raise ::ArgumentError, "request must be provided" if request.nil?
597
697
 
@@ -665,6 +765,22 @@ module Google
665
765
  # @return [::Google::Cloud::Scheduler::V1beta1::Job]
666
766
  #
667
767
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
768
+ #
769
+ # @example Basic example
770
+ # require "google/cloud/scheduler/v1beta1"
771
+ #
772
+ # # Create a client object. The client can be reused for multiple calls.
773
+ # client = Google::Cloud::Scheduler::V1beta1::CloudScheduler::Rest::Client.new
774
+ #
775
+ # # Create a request. To set request fields, pass in keyword arguments.
776
+ # request = Google::Cloud::Scheduler::V1beta1::ResumeJobRequest.new
777
+ #
778
+ # # Call the resume_job method.
779
+ # result = client.resume_job request
780
+ #
781
+ # # The returned object is of type Google::Cloud::Scheduler::V1beta1::Job.
782
+ # p result
783
+ #
668
784
  def resume_job request, options = nil
669
785
  raise ::ArgumentError, "request must be provided" if request.nil?
670
786
 
@@ -735,6 +851,22 @@ module Google
735
851
  # @return [::Google::Cloud::Scheduler::V1beta1::Job]
736
852
  #
737
853
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
854
+ #
855
+ # @example Basic example
856
+ # require "google/cloud/scheduler/v1beta1"
857
+ #
858
+ # # Create a client object. The client can be reused for multiple calls.
859
+ # client = Google::Cloud::Scheduler::V1beta1::CloudScheduler::Rest::Client.new
860
+ #
861
+ # # Create a request. To set request fields, pass in keyword arguments.
862
+ # request = Google::Cloud::Scheduler::V1beta1::RunJobRequest.new
863
+ #
864
+ # # Call the run_job method.
865
+ # result = client.run_job request
866
+ #
867
+ # # The returned object is of type Google::Cloud::Scheduler::V1beta1::Job.
868
+ # p result
869
+ #
738
870
  def run_job request, options = nil
739
871
  raise ::ArgumentError, "request must be provided" if request.nil?
740
872
 
@@ -843,7 +975,9 @@ module Google
843
975
  class Configuration
844
976
  extend ::Gapic::Config
845
977
 
846
- config_attr :endpoint, "cloudscheduler.googleapis.com", ::String
978
+ DEFAULT_ENDPOINT = "cloudscheduler.googleapis.com"
979
+
980
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
847
981
  config_attr :credentials, nil do |value|
848
982
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
849
983
  allowed.any? { |klass| klass === value }
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_list_jobs_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -97,7 +97,7 @@ module Google
97
97
 
98
98
  verb, uri, query_string_params, body = ServiceStub.transcode_get_job_request request_pb
99
99
  query_string_params = if query_string_params.any?
100
- query_string_params.to_h { |p| p.split("=", 2) }
100
+ query_string_params.to_h { |p| p.split "=", 2 }
101
101
  else
102
102
  {}
103
103
  end
@@ -135,7 +135,7 @@ module Google
135
135
 
136
136
  verb, uri, query_string_params, body = ServiceStub.transcode_create_job_request request_pb
137
137
  query_string_params = if query_string_params.any?
138
- query_string_params.to_h { |p| p.split("=", 2) }
138
+ query_string_params.to_h { |p| p.split "=", 2 }
139
139
  else
140
140
  {}
141
141
  end
@@ -173,7 +173,7 @@ module Google
173
173
 
174
174
  verb, uri, query_string_params, body = ServiceStub.transcode_update_job_request request_pb
175
175
  query_string_params = if query_string_params.any?
176
- query_string_params.to_h { |p| p.split("=", 2) }
176
+ query_string_params.to_h { |p| p.split "=", 2 }
177
177
  else
178
178
  {}
179
179
  end
@@ -211,7 +211,7 @@ module Google
211
211
 
212
212
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_job_request request_pb
213
213
  query_string_params = if query_string_params.any?
214
- query_string_params.to_h { |p| p.split("=", 2) }
214
+ query_string_params.to_h { |p| p.split "=", 2 }
215
215
  else
216
216
  {}
217
217
  end
@@ -249,7 +249,7 @@ module Google
249
249
 
250
250
  verb, uri, query_string_params, body = ServiceStub.transcode_pause_job_request request_pb
251
251
  query_string_params = if query_string_params.any?
252
- query_string_params.to_h { |p| p.split("=", 2) }
252
+ query_string_params.to_h { |p| p.split "=", 2 }
253
253
  else
254
254
  {}
255
255
  end
@@ -287,7 +287,7 @@ module Google
287
287
 
288
288
  verb, uri, query_string_params, body = ServiceStub.transcode_resume_job_request request_pb
289
289
  query_string_params = if query_string_params.any?
290
- query_string_params.to_h { |p| p.split("=", 2) }
290
+ query_string_params.to_h { |p| p.split "=", 2 }
291
291
  else
292
292
  {}
293
293
  end
@@ -325,7 +325,7 @@ module Google
325
325
 
326
326
  verb, uri, query_string_params, body = ServiceStub.transcode_run_job_request request_pb
327
327
  query_string_params = if query_string_params.any?
328
- query_string_params.to_h { |p| p.split("=", 2) }
328
+ query_string_params.to_h { |p| p.split "=", 2 }
329
329
  else
330
330
  {}
331
331
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Scheduler
23
23
  module V1beta1
24
- VERSION = "0.8.0"
24
+ VERSION = "0.9.0"
25
25
  end
26
26
  end
27
27
  end
@@ -66,6 +66,20 @@ module Google
66
66
  # a non-empty value will be returned. The user will not be aware of what
67
67
  # non-empty value to expect.
68
68
  NON_EMPTY_DEFAULT = 7
69
+
70
+ # Denotes that the field in a resource (a message annotated with
71
+ # google.api.resource) is used in the resource name to uniquely identify the
72
+ # resource. For AIP-compliant APIs, this should only be applied to the
73
+ # `name` field on the resource.
74
+ #
75
+ # This behavior should not be applied to references to other resources within
76
+ # the message.
77
+ #
78
+ # The identifier field of resources often have different field behavior
79
+ # depending on the request it is embedded in (e.g. for Create methods name
80
+ # is optional and unused, while for Update methods it is required). Instead
81
+ # of method-specific annotations, only `IDENTIFIER` is required.
82
+ IDENTIFIER = 8
69
83
  end
70
84
  end
71
85
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-scheduler-v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-31 00:00:00.000000000 Z
11
+ date: 2023-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.19.0
19
+ version: 0.20.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.19.0
29
+ version: 0.20.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -242,7 +242,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
242
242
  - !ruby/object:Gem::Version
243
243
  version: '0'
244
244
  requirements: []
245
- rubygems_version: 3.4.2
245
+ rubygems_version: 3.4.19
246
246
  signing_key:
247
247
  specification_version: 4
248
248
  summary: Creates and manages jobs run on a regular recurring schedule.