google-cloud-scheduler-v1 0.11.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/scheduler/v1/cloud_scheduler/client.rb +19 -8
- data/lib/google/cloud/scheduler/v1/cloud_scheduler/rest/client.rb +19 -8
- data/lib/google/cloud/scheduler/v1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +35 -10
- data/proto_docs/google/api/resource.rb +7 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3178873197895614553a4d03a1aecbd2c52f30dcf23c1d9ec59dc960eb326d93
|
4
|
+
data.tar.gz: f3ac838ee9f50e89a0dae687797deabfe35afdb8897846d316ae7bf7b00e3818
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 278e6ef9d07f63d727ecf71dc31955732e1388525328b294299d7947b108fff6236495288a230d0e210432c7aa2c8bb073779eff9fa8f02a189c82cf1bbf43b1
|
7
|
+
data.tar.gz: 1cd0dc222a39343edfd6e709aceecf867e71fc412d0293365b15c401578d65899a9a56bb05f6033dc86309d8bc60ad51e095e4d9fe0cc1c6acb4045648b28e5a
|
@@ -32,6 +32,9 @@ module Google
|
|
32
32
|
# schedule asynchronous jobs.
|
33
33
|
#
|
34
34
|
class Client
|
35
|
+
# @private
|
36
|
+
API_VERSION = ""
|
37
|
+
|
35
38
|
# @private
|
36
39
|
DEFAULT_ENDPOINT_TEMPLATE = "cloudscheduler.$UNIVERSE_DOMAIN$"
|
37
40
|
|
@@ -279,10 +282,11 @@ module Google
|
|
279
282
|
# Customize the options with defaults
|
280
283
|
metadata = @config.rpcs.list_jobs.metadata.to_h
|
281
284
|
|
282
|
-
# Set x-goog-api-client
|
285
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
283
286
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
284
287
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
285
288
|
gapic_version: ::Google::Cloud::Scheduler::V1::VERSION
|
289
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
286
290
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
287
291
|
|
288
292
|
header_params = {}
|
@@ -366,10 +370,11 @@ module Google
|
|
366
370
|
# Customize the options with defaults
|
367
371
|
metadata = @config.rpcs.get_job.metadata.to_h
|
368
372
|
|
369
|
-
# Set x-goog-api-client
|
373
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
370
374
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
371
375
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
372
376
|
gapic_version: ::Google::Cloud::Scheduler::V1::VERSION
|
377
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
373
378
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
374
379
|
|
375
380
|
header_params = {}
|
@@ -459,10 +464,11 @@ module Google
|
|
459
464
|
# Customize the options with defaults
|
460
465
|
metadata = @config.rpcs.create_job.metadata.to_h
|
461
466
|
|
462
|
-
# Set x-goog-api-client
|
467
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
463
468
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
464
469
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
465
470
|
gapic_version: ::Google::Cloud::Scheduler::V1::VERSION
|
471
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
466
472
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
467
473
|
|
468
474
|
header_params = {}
|
@@ -559,10 +565,11 @@ module Google
|
|
559
565
|
# Customize the options with defaults
|
560
566
|
metadata = @config.rpcs.update_job.metadata.to_h
|
561
567
|
|
562
|
-
# Set x-goog-api-client
|
568
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
563
569
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
564
570
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
565
571
|
gapic_version: ::Google::Cloud::Scheduler::V1::VERSION
|
572
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
566
573
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
567
574
|
|
568
575
|
header_params = {}
|
@@ -645,10 +652,11 @@ module Google
|
|
645
652
|
# Customize the options with defaults
|
646
653
|
metadata = @config.rpcs.delete_job.metadata.to_h
|
647
654
|
|
648
|
-
# Set x-goog-api-client
|
655
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
649
656
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
650
657
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
651
658
|
gapic_version: ::Google::Cloud::Scheduler::V1::VERSION
|
659
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
652
660
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
653
661
|
|
654
662
|
header_params = {}
|
@@ -740,10 +748,11 @@ module Google
|
|
740
748
|
# Customize the options with defaults
|
741
749
|
metadata = @config.rpcs.pause_job.metadata.to_h
|
742
750
|
|
743
|
-
# Set x-goog-api-client
|
751
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
744
752
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
745
753
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
746
754
|
gapic_version: ::Google::Cloud::Scheduler::V1::VERSION
|
755
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
747
756
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
748
757
|
|
749
758
|
header_params = {}
|
@@ -834,10 +843,11 @@ module Google
|
|
834
843
|
# Customize the options with defaults
|
835
844
|
metadata = @config.rpcs.resume_job.metadata.to_h
|
836
845
|
|
837
|
-
# Set x-goog-api-client
|
846
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
838
847
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
839
848
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
840
849
|
gapic_version: ::Google::Cloud::Scheduler::V1::VERSION
|
850
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
841
851
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
842
852
|
|
843
853
|
header_params = {}
|
@@ -923,10 +933,11 @@ module Google
|
|
923
933
|
# Customize the options with defaults
|
924
934
|
metadata = @config.rpcs.run_job.metadata.to_h
|
925
935
|
|
926
|
-
# Set x-goog-api-client
|
936
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
927
937
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
928
938
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
929
939
|
gapic_version: ::Google::Cloud::Scheduler::V1::VERSION
|
940
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
930
941
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
931
942
|
|
932
943
|
header_params = {}
|
@@ -34,6 +34,9 @@ module Google
|
|
34
34
|
# schedule asynchronous jobs.
|
35
35
|
#
|
36
36
|
class Client
|
37
|
+
# @private
|
38
|
+
API_VERSION = ""
|
39
|
+
|
37
40
|
# @private
|
38
41
|
DEFAULT_ENDPOINT_TEMPLATE = "cloudscheduler.$UNIVERSE_DOMAIN$"
|
39
42
|
|
@@ -272,12 +275,13 @@ module Google
|
|
272
275
|
# Customize the options with defaults
|
273
276
|
call_metadata = @config.rpcs.list_jobs.metadata.to_h
|
274
277
|
|
275
|
-
# Set x-goog-api-client
|
278
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
276
279
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
277
280
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
278
281
|
gapic_version: ::Google::Cloud::Scheduler::V1::VERSION,
|
279
282
|
transports_version_send: [:rest]
|
280
283
|
|
284
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
281
285
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
282
286
|
|
283
287
|
options.apply_defaults timeout: @config.rpcs.list_jobs.timeout,
|
@@ -352,12 +356,13 @@ module Google
|
|
352
356
|
# Customize the options with defaults
|
353
357
|
call_metadata = @config.rpcs.get_job.metadata.to_h
|
354
358
|
|
355
|
-
# Set x-goog-api-client
|
359
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
356
360
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
357
361
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
358
362
|
gapic_version: ::Google::Cloud::Scheduler::V1::VERSION,
|
359
363
|
transports_version_send: [:rest]
|
360
364
|
|
365
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
361
366
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
362
367
|
|
363
368
|
options.apply_defaults timeout: @config.rpcs.get_job.timeout,
|
@@ -438,12 +443,13 @@ module Google
|
|
438
443
|
# Customize the options with defaults
|
439
444
|
call_metadata = @config.rpcs.create_job.metadata.to_h
|
440
445
|
|
441
|
-
# Set x-goog-api-client
|
446
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
442
447
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
443
448
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
444
449
|
gapic_version: ::Google::Cloud::Scheduler::V1::VERSION,
|
445
450
|
transports_version_send: [:rest]
|
446
451
|
|
452
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
447
453
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
448
454
|
|
449
455
|
options.apply_defaults timeout: @config.rpcs.create_job.timeout,
|
@@ -531,12 +537,13 @@ module Google
|
|
531
537
|
# Customize the options with defaults
|
532
538
|
call_metadata = @config.rpcs.update_job.metadata.to_h
|
533
539
|
|
534
|
-
# Set x-goog-api-client
|
540
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
535
541
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
536
542
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
537
543
|
gapic_version: ::Google::Cloud::Scheduler::V1::VERSION,
|
538
544
|
transports_version_send: [:rest]
|
539
545
|
|
546
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
540
547
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
541
548
|
|
542
549
|
options.apply_defaults timeout: @config.rpcs.update_job.timeout,
|
@@ -610,12 +617,13 @@ module Google
|
|
610
617
|
# Customize the options with defaults
|
611
618
|
call_metadata = @config.rpcs.delete_job.metadata.to_h
|
612
619
|
|
613
|
-
# Set x-goog-api-client
|
620
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
614
621
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
615
622
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
616
623
|
gapic_version: ::Google::Cloud::Scheduler::V1::VERSION,
|
617
624
|
transports_version_send: [:rest]
|
618
625
|
|
626
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
619
627
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
620
628
|
|
621
629
|
options.apply_defaults timeout: @config.rpcs.delete_job.timeout,
|
@@ -698,12 +706,13 @@ module Google
|
|
698
706
|
# Customize the options with defaults
|
699
707
|
call_metadata = @config.rpcs.pause_job.metadata.to_h
|
700
708
|
|
701
|
-
# Set x-goog-api-client
|
709
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
702
710
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
703
711
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
704
712
|
gapic_version: ::Google::Cloud::Scheduler::V1::VERSION,
|
705
713
|
transports_version_send: [:rest]
|
706
714
|
|
715
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
707
716
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
708
717
|
|
709
718
|
options.apply_defaults timeout: @config.rpcs.pause_job.timeout,
|
@@ -785,12 +794,13 @@ module Google
|
|
785
794
|
# Customize the options with defaults
|
786
795
|
call_metadata = @config.rpcs.resume_job.metadata.to_h
|
787
796
|
|
788
|
-
# Set x-goog-api-client
|
797
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
789
798
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
790
799
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
791
800
|
gapic_version: ::Google::Cloud::Scheduler::V1::VERSION,
|
792
801
|
transports_version_send: [:rest]
|
793
802
|
|
803
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
794
804
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
795
805
|
|
796
806
|
options.apply_defaults timeout: @config.rpcs.resume_job.timeout,
|
@@ -867,12 +877,13 @@ module Google
|
|
867
877
|
# Customize the options with defaults
|
868
878
|
call_metadata = @config.rpcs.run_job.metadata.to_h
|
869
879
|
|
870
|
-
# Set x-goog-api-client
|
880
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
871
881
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
872
882
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
873
883
|
gapic_version: ::Google::Cloud::Scheduler::V1::VERSION,
|
874
884
|
transports_version_send: [:rest]
|
875
885
|
|
886
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
876
887
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
877
888
|
|
878
889
|
options.apply_defaults timeout: @config.rpcs.run_job.timeout,
|
@@ -118,6 +118,10 @@ module Google
|
|
118
118
|
# @return [::String]
|
119
119
|
# Optional link to proto reference documentation. Example:
|
120
120
|
# https://cloud.google.com/pubsub/lite/docs/reference/rpc
|
121
|
+
# @!attribute [rw] rest_reference_documentation_uri
|
122
|
+
# @return [::String]
|
123
|
+
# Optional link to REST reference documentation. Example:
|
124
|
+
# https://cloud.google.com/pubsub/lite/docs/reference/rest
|
121
125
|
class Publishing
|
122
126
|
include ::Google::Protobuf::MessageExts
|
123
127
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -192,9 +196,26 @@ module Google
|
|
192
196
|
# @!attribute [rw] common
|
193
197
|
# @return [::Google::Api::CommonLanguageSettings]
|
194
198
|
# Some settings.
|
199
|
+
# @!attribute [rw] experimental_features
|
200
|
+
# @return [::Google::Api::PythonSettings::ExperimentalFeatures]
|
201
|
+
# Experimental features to be included during client library generation.
|
195
202
|
class PythonSettings
|
196
203
|
include ::Google::Protobuf::MessageExts
|
197
204
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
205
|
+
|
206
|
+
# Experimental features to be included during client library generation.
|
207
|
+
# These fields will be deprecated once the feature graduates and is enabled
|
208
|
+
# by default.
|
209
|
+
# @!attribute [rw] rest_async_io_enabled
|
210
|
+
# @return [::Boolean]
|
211
|
+
# Enables generation of asynchronous REST clients if `rest` transport is
|
212
|
+
# enabled. By default, asynchronous REST clients will not be generated.
|
213
|
+
# This feature will be enabled by default 1 month after launching the
|
214
|
+
# feature in preview packages.
|
215
|
+
class ExperimentalFeatures
|
216
|
+
include ::Google::Protobuf::MessageExts
|
217
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
218
|
+
end
|
198
219
|
end
|
199
220
|
|
200
221
|
# Settings for Node client libraries.
|
@@ -286,6 +307,13 @@ module Google
|
|
286
307
|
# @return [::String]
|
287
308
|
# The fully qualified name of the method, for which the options below apply.
|
288
309
|
# This is used to find the method to apply the options.
|
310
|
+
#
|
311
|
+
# Example:
|
312
|
+
#
|
313
|
+
# publishing:
|
314
|
+
# method_settings:
|
315
|
+
# - selector: google.storage.control.v2.StorageControl.CreateFolder
|
316
|
+
# # method settings for CreateFolder...
|
289
317
|
# @!attribute [rw] long_running
|
290
318
|
# @return [::Google::Api::MethodSettings::LongRunning]
|
291
319
|
# Describes settings to use for long-running operations when generating
|
@@ -294,17 +322,14 @@ module Google
|
|
294
322
|
#
|
295
323
|
# Example of a YAML configuration::
|
296
324
|
#
|
297
|
-
#
|
298
|
-
#
|
325
|
+
# publishing:
|
326
|
+
# method_settings:
|
299
327
|
# - selector: google.cloud.speech.v2.Speech.BatchRecognize
|
300
328
|
# long_running:
|
301
|
-
# initial_poll_delay:
|
302
|
-
# seconds: 60 # 1 minute
|
329
|
+
# initial_poll_delay: 60s # 1 minute
|
303
330
|
# poll_delay_multiplier: 1.5
|
304
|
-
# max_poll_delay:
|
305
|
-
#
|
306
|
-
# total_poll_timeout:
|
307
|
-
# seconds: 54000 # 90 minutes
|
331
|
+
# max_poll_delay: 360s # 6 minutes
|
332
|
+
# total_poll_timeout: 54000s # 90 minutes
|
308
333
|
# @!attribute [rw] auto_populated_fields
|
309
334
|
# @return [::Array<::String>]
|
310
335
|
# List of top-level fields of the request message, that should be
|
@@ -313,8 +338,8 @@ module Google
|
|
313
338
|
#
|
314
339
|
# Example of a YAML configuration:
|
315
340
|
#
|
316
|
-
#
|
317
|
-
#
|
341
|
+
# publishing:
|
342
|
+
# method_settings:
|
318
343
|
# - selector: google.example.v1.ExampleService.CreateExample
|
319
344
|
# auto_populated_fields:
|
320
345
|
# - request_id
|
@@ -124,8 +124,13 @@ module Google
|
|
124
124
|
# @return [::String]
|
125
125
|
# The plural name used in the resource name and permission names, such as
|
126
126
|
# 'projects' for the resource name of 'projects/\\{project}' and the permission
|
127
|
-
# name of 'cloudresourcemanager.googleapis.com/projects.get'.
|
128
|
-
#
|
127
|
+
# name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception
|
128
|
+
# to this is for Nested Collections that have stuttering names, as defined
|
129
|
+
# in [AIP-122](https://google.aip.dev/122#nested-collections), where the
|
130
|
+
# collection ID in the resource name pattern does not necessarily directly
|
131
|
+
# match the `plural` value.
|
132
|
+
#
|
133
|
+
# It is the same concept of the `plural` field in k8s CRD spec
|
129
134
|
# https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
|
130
135
|
#
|
131
136
|
# Note: The plural form is required even for singleton resources. See
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-scheduler-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|