google-apis-cloudscheduler_v1 0.41.0 → 0.43.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 +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/cloudscheduler_v1/classes.rb +64 -32
- data/lib/google/apis/cloudscheduler_v1/gem_version.rb +2 -2
- data/lib/google/apis/cloudscheduler_v1/representations.rb +14 -0
- data/lib/google/apis/cloudscheduler_v1/service.rb +84 -13
- 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: 8f13dbbed1e05c07e5520a2857972e8556597670acc3c9dc9467b3cd4fe2bee2
|
|
4
|
+
data.tar.gz: 150d3be5aff4588ceda8c738da1e118c220c3044d7b6a5638ea72432659c2b92
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ae53ac0d879fa4000abde6fc1cced60da9c6a4864e3d37efc2c204210611f3dd6a9a4ccdb0ce870a5919e8f69d125db0f3bfb688e63497f2cb8e2b58a77568ea
|
|
7
|
+
data.tar.gz: 506efecc9fffdcbea9ba139583a70973ff897f501069b4b81675e45054186bba1b1af576aa5e5b1c573caa2a1e145f1a7001ab86cb9a09ea0fe677d082ef068b
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Release history for google-apis-cloudscheduler_v1
|
|
2
2
|
|
|
3
|
+
### v0.43.0 (2025-12-14)
|
|
4
|
+
|
|
5
|
+
* Regenerated from discovery document revision 20251205
|
|
6
|
+
|
|
7
|
+
### v0.42.0 (2025-11-02)
|
|
8
|
+
|
|
9
|
+
* Regenerated from discovery document revision 20251022
|
|
10
|
+
|
|
3
11
|
### v0.41.0 (2025-10-05)
|
|
4
12
|
|
|
5
13
|
* Regenerated from discovery document revision 20250925
|
|
@@ -190,6 +190,36 @@ module Google
|
|
|
190
190
|
end
|
|
191
191
|
end
|
|
192
192
|
|
|
193
|
+
# Describes the project/location configuration of Cloud Scheduler Resources.
|
|
194
|
+
class CmekConfig
|
|
195
|
+
include Google::Apis::Core::Hashable
|
|
196
|
+
|
|
197
|
+
# Optional. Resource name of the Cloud KMS key, of the form `projects/PROJECT_ID/
|
|
198
|
+
# locations/LOCATION_ID/keyRings/KEY_RING_ID/cryptoKeys/KEY_ID`, that will be
|
|
199
|
+
# used to encrypt Jobs in the region. Setting this as blank will turn off CMEK
|
|
200
|
+
# encryption.
|
|
201
|
+
# Corresponds to the JSON property `kmsKeyName`
|
|
202
|
+
# @return [String]
|
|
203
|
+
attr_accessor :kms_key_name
|
|
204
|
+
|
|
205
|
+
# Identifier. The config resource name which includes the project and location
|
|
206
|
+
# and must end in 'cmekConfig', in the format projects/PROJECT_ID/locations/
|
|
207
|
+
# LOCATION_ID/cmekConfig`
|
|
208
|
+
# Corresponds to the JSON property `name`
|
|
209
|
+
# @return [String]
|
|
210
|
+
attr_accessor :name
|
|
211
|
+
|
|
212
|
+
def initialize(**args)
|
|
213
|
+
update!(**args)
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
# Update properties of this object
|
|
217
|
+
def update!(**args)
|
|
218
|
+
@kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
|
|
219
|
+
@name = args[:name] if args.key?(:name)
|
|
220
|
+
end
|
|
221
|
+
end
|
|
222
|
+
|
|
193
223
|
# A generic empty message that you can re-use to avoid defining duplicated empty
|
|
194
224
|
# messages in your APIs. A typical example is to use it as the request or the
|
|
195
225
|
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
|
@@ -344,12 +374,13 @@ module Google
|
|
|
344
374
|
# The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/
|
|
345
375
|
# JOB_ID`. * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
|
|
346
376
|
# hyphens (-), colons (:), or periods (.). For more information, see [
|
|
347
|
-
# Identifying projects](
|
|
348
|
-
#
|
|
349
|
-
#
|
|
350
|
-
#
|
|
351
|
-
#
|
|
352
|
-
#
|
|
377
|
+
# Identifying projects](/resource-manager/docs/creating-managing-projects#
|
|
378
|
+
# identifying_projects) * `LOCATION_ID` is the canonical ID for the job's
|
|
379
|
+
# location. The list of available locations can be obtained by calling [
|
|
380
|
+
# locations.list](/scheduler/docs/reference/rest/v1/projects.locations/list).
|
|
381
|
+
# For more information, see [Cloud Scheduler locations](/scheduler/docs/
|
|
382
|
+
# locations). * `JOB_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
|
|
383
|
+
# hyphens (-), or underscores (_). The maximum length is 500 characters.
|
|
353
384
|
# Corresponds to the JSON property `name`
|
|
354
385
|
# @return [String]
|
|
355
386
|
attr_accessor :name
|
|
@@ -361,10 +392,10 @@ module Google
|
|
|
361
392
|
attr_accessor :pubsub_target
|
|
362
393
|
|
|
363
394
|
# Settings that determine the retry behavior. For more information, see [Retry
|
|
364
|
-
# jobs](
|
|
365
|
-
#
|
|
366
|
-
#
|
|
367
|
-
#
|
|
395
|
+
# jobs](/scheduler/docs/configuring/retry-jobs). By default, if a job does not
|
|
396
|
+
# complete successfully (meaning that an acknowledgement is not received from
|
|
397
|
+
# the handler, then it will be retried with exponential backoff according to the
|
|
398
|
+
# settings in RetryConfig.
|
|
368
399
|
# Corresponds to the JSON property `retryConfig`
|
|
369
400
|
# @return [Google::Apis::CloudschedulerV1::RetryConfig]
|
|
370
401
|
attr_accessor :retry_config
|
|
@@ -379,19 +410,19 @@ module Google
|
|
|
379
410
|
# Required, except when used with UpdateJob. Describes the schedule on which the
|
|
380
411
|
# job will be executed. The schedule can be either of the following types: * [
|
|
381
412
|
# Crontab](https://en.wikipedia.org/wiki/Cron#Overview) * English-like [schedule]
|
|
382
|
-
# (
|
|
383
|
-
#
|
|
384
|
-
#
|
|
385
|
-
#
|
|
386
|
-
#
|
|
387
|
-
#
|
|
388
|
-
#
|
|
389
|
-
#
|
|
390
|
-
#
|
|
391
|
-
#
|
|
392
|
-
#
|
|
393
|
-
#
|
|
394
|
-
#
|
|
413
|
+
# (/scheduler/docs/configuring/cron-job-schedules) As a general rule, execution `
|
|
414
|
+
# n + 1` of a job will not begin until execution `n` has finished. Cloud
|
|
415
|
+
# Scheduler will never allow two simultaneously outstanding executions. For
|
|
416
|
+
# example, this implies that if the `n+1`th execution is scheduled to run at 16:
|
|
417
|
+
# 00 but the `n`th execution takes until 16:15, the `n+1`th execution will not
|
|
418
|
+
# start until `16:15`. A scheduled start time will be delayed if the previous
|
|
419
|
+
# execution has not ended when its scheduled time occurs. If retry_count > 0 and
|
|
420
|
+
# a job attempt fails, the job will be tried a total of retry_count times, with
|
|
421
|
+
# exponential backoff, until the next scheduled start time. If retry_count is 0,
|
|
422
|
+
# a job attempt will not be retried if it fails. Instead the Cloud Scheduler
|
|
423
|
+
# system will wait for the next scheduled execution time. Setting retry_count to
|
|
424
|
+
# 0 does not prevent failed jobs from running according to schedule after the
|
|
425
|
+
# failure.
|
|
395
426
|
# Corresponds to the JSON property `schedule`
|
|
396
427
|
# @return [String]
|
|
397
428
|
attr_accessor :schedule
|
|
@@ -525,8 +556,9 @@ module Google
|
|
|
525
556
|
attr_accessor :operations
|
|
526
557
|
|
|
527
558
|
# Unordered list. Unreachable resources. Populated when the request sets `
|
|
528
|
-
# ListOperationsRequest.return_partial_success` and reads across collections
|
|
529
|
-
# when attempting to list all resources across all supported
|
|
559
|
+
# ListOperationsRequest.return_partial_success` and reads across collections.
|
|
560
|
+
# For example, when attempting to list all resources across all supported
|
|
561
|
+
# locations.
|
|
530
562
|
# Corresponds to the JSON property `unreachable`
|
|
531
563
|
# @return [Array<String>]
|
|
532
564
|
attr_accessor :unreachable
|
|
@@ -905,10 +937,10 @@ module Google
|
|
|
905
937
|
end
|
|
906
938
|
|
|
907
939
|
# Settings that determine the retry behavior. For more information, see [Retry
|
|
908
|
-
# jobs](
|
|
909
|
-
#
|
|
910
|
-
#
|
|
911
|
-
#
|
|
940
|
+
# jobs](/scheduler/docs/configuring/retry-jobs). By default, if a job does not
|
|
941
|
+
# complete successfully (meaning that an acknowledgement is not received from
|
|
942
|
+
# the handler, then it will be retried with exponential backoff according to the
|
|
943
|
+
# settings in RetryConfig.
|
|
912
944
|
class RetryConfig
|
|
913
945
|
include Google::Apis::Core::Hashable
|
|
914
946
|
|
|
@@ -921,9 +953,9 @@ module Google
|
|
|
921
953
|
# The time between retries will double `max_doublings` times. A job's retry
|
|
922
954
|
# interval starts at min_backoff_duration, then doubles `max_doublings` times,
|
|
923
955
|
# then increases linearly, and finally retries at intervals of
|
|
924
|
-
# max_backoff_duration up to retry_count times. For examples, see [Retry jobs](
|
|
925
|
-
#
|
|
926
|
-
#
|
|
956
|
+
# max_backoff_duration up to retry_count times. For examples, see [Retry jobs](/
|
|
957
|
+
# scheduler/docs/configuring/retry-jobs#max-doublings). The default value of
|
|
958
|
+
# this field is 5.
|
|
927
959
|
# Corresponds to the JSON property `maxDoublings`
|
|
928
960
|
# @return [Fixnum]
|
|
929
961
|
attr_accessor :max_doublings
|
|
@@ -16,13 +16,13 @@ module Google
|
|
|
16
16
|
module Apis
|
|
17
17
|
module CloudschedulerV1
|
|
18
18
|
# Version of the google-apis-cloudscheduler_v1 gem
|
|
19
|
-
GEM_VERSION = "0.
|
|
19
|
+
GEM_VERSION = "0.43.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
22
|
GENERATOR_VERSION = "0.18.0"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20251205"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -40,6 +40,12 @@ module Google
|
|
|
40
40
|
include Google::Apis::Core::JsonObjectSupport
|
|
41
41
|
end
|
|
42
42
|
|
|
43
|
+
class CmekConfig
|
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
45
|
+
|
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
47
|
+
end
|
|
48
|
+
|
|
43
49
|
class Empty
|
|
44
50
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
45
51
|
|
|
@@ -176,6 +182,14 @@ module Google
|
|
|
176
182
|
end
|
|
177
183
|
end
|
|
178
184
|
|
|
185
|
+
class CmekConfig
|
|
186
|
+
# @private
|
|
187
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
188
|
+
property :kms_key_name, as: 'kmsKeyName'
|
|
189
|
+
property :name, as: 'name'
|
|
190
|
+
end
|
|
191
|
+
end
|
|
192
|
+
|
|
179
193
|
class Empty
|
|
180
194
|
# @private
|
|
181
195
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -81,12 +81,43 @@ module Google
|
|
|
81
81
|
execute_or_queue_command(command, &block)
|
|
82
82
|
end
|
|
83
83
|
|
|
84
|
+
# Gets the Scheduler config in the project/region.
|
|
85
|
+
# @param [String] name
|
|
86
|
+
# Required. The config name. For example: projects/PROJECT_ID/locations/
|
|
87
|
+
# LOCATION_ID/cmekConfig
|
|
88
|
+
# @param [String] fields
|
|
89
|
+
# Selector specifying which fields to include in a partial response.
|
|
90
|
+
# @param [String] quota_user
|
|
91
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
92
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
93
|
+
# @param [Google::Apis::RequestOptions] options
|
|
94
|
+
# Request-specific options
|
|
95
|
+
#
|
|
96
|
+
# @yield [result, err] Result & error if block supplied
|
|
97
|
+
# @yieldparam result [Google::Apis::CloudschedulerV1::CmekConfig] parsed result object
|
|
98
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
99
|
+
#
|
|
100
|
+
# @return [Google::Apis::CloudschedulerV1::CmekConfig]
|
|
101
|
+
#
|
|
102
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
103
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
104
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
105
|
+
def get_project_location_cmek_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
106
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
107
|
+
command.response_representation = Google::Apis::CloudschedulerV1::CmekConfig::Representation
|
|
108
|
+
command.response_class = Google::Apis::CloudschedulerV1::CmekConfig
|
|
109
|
+
command.params['name'] = name unless name.nil?
|
|
110
|
+
command.query['fields'] = fields unless fields.nil?
|
|
111
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
112
|
+
execute_or_queue_command(command, &block)
|
|
113
|
+
end
|
|
114
|
+
|
|
84
115
|
# Lists information about the supported locations for this service.
|
|
85
116
|
# @param [String] name
|
|
86
117
|
# The resource that owns the locations collection, if applicable.
|
|
87
118
|
# @param [Array<String>, String] extra_location_types
|
|
88
|
-
# Optional.
|
|
89
|
-
#
|
|
119
|
+
# Optional. Do not use this field. It is unsupported and is ignored unless
|
|
120
|
+
# explicitly documented otherwise. This is primarily for internal usage.
|
|
90
121
|
# @param [String] filter
|
|
91
122
|
# A filter to narrow down results to a preferred subset. The filtering language
|
|
92
123
|
# accepts strings like `"displayName=tokyo"`, and is documented in more detail
|
|
@@ -128,6 +159,44 @@ module Google
|
|
|
128
159
|
execute_or_queue_command(command, &block)
|
|
129
160
|
end
|
|
130
161
|
|
|
162
|
+
# Initializes or Updates the a scheduler config.
|
|
163
|
+
# @param [String] name
|
|
164
|
+
# Identifier. The config resource name which includes the project and location
|
|
165
|
+
# and must end in 'cmekConfig', in the format projects/PROJECT_ID/locations/
|
|
166
|
+
# LOCATION_ID/cmekConfig`
|
|
167
|
+
# @param [Google::Apis::CloudschedulerV1::CmekConfig] cmek_config_object
|
|
168
|
+
# @param [String] update_mask
|
|
169
|
+
# Optional. List of fields to be updated in this request.
|
|
170
|
+
# @param [String] fields
|
|
171
|
+
# Selector specifying which fields to include in a partial response.
|
|
172
|
+
# @param [String] quota_user
|
|
173
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
174
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
175
|
+
# @param [Google::Apis::RequestOptions] options
|
|
176
|
+
# Request-specific options
|
|
177
|
+
#
|
|
178
|
+
# @yield [result, err] Result & error if block supplied
|
|
179
|
+
# @yieldparam result [Google::Apis::CloudschedulerV1::Operation] parsed result object
|
|
180
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
181
|
+
#
|
|
182
|
+
# @return [Google::Apis::CloudschedulerV1::Operation]
|
|
183
|
+
#
|
|
184
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
185
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
186
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
187
|
+
def update_project_location_cmek_config(name, cmek_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
188
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
|
189
|
+
command.request_representation = Google::Apis::CloudschedulerV1::CmekConfig::Representation
|
|
190
|
+
command.request_object = cmek_config_object
|
|
191
|
+
command.response_representation = Google::Apis::CloudschedulerV1::Operation::Representation
|
|
192
|
+
command.response_class = Google::Apis::CloudschedulerV1::Operation
|
|
193
|
+
command.params['name'] = name unless name.nil?
|
|
194
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
195
|
+
command.query['fields'] = fields unless fields.nil?
|
|
196
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
197
|
+
execute_or_queue_command(command, &block)
|
|
198
|
+
end
|
|
199
|
+
|
|
131
200
|
# Creates a job.
|
|
132
201
|
# @param [String] parent
|
|
133
202
|
# Required. The location name. For example: `projects/PROJECT_ID/locations/
|
|
@@ -276,12 +345,13 @@ module Google
|
|
|
276
345
|
# The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/
|
|
277
346
|
# JOB_ID`. * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
|
|
278
347
|
# hyphens (-), colons (:), or periods (.). For more information, see [
|
|
279
|
-
# Identifying projects](
|
|
280
|
-
#
|
|
281
|
-
#
|
|
282
|
-
#
|
|
283
|
-
#
|
|
284
|
-
#
|
|
348
|
+
# Identifying projects](/resource-manager/docs/creating-managing-projects#
|
|
349
|
+
# identifying_projects) * `LOCATION_ID` is the canonical ID for the job's
|
|
350
|
+
# location. The list of available locations can be obtained by calling [
|
|
351
|
+
# locations.list](/scheduler/docs/reference/rest/v1/projects.locations/list).
|
|
352
|
+
# For more information, see [Cloud Scheduler locations](/scheduler/docs/
|
|
353
|
+
# locations). * `JOB_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
|
|
354
|
+
# hyphens (-), or underscores (_). The maximum length is 500 characters.
|
|
285
355
|
# @param [Google::Apis::CloudschedulerV1::Job] job_object
|
|
286
356
|
# @param [String] update_mask
|
|
287
357
|
# A mask used to specify which fields of the job are being updated.
|
|
@@ -539,11 +609,12 @@ module Google
|
|
|
539
609
|
# The standard list page token.
|
|
540
610
|
# @param [Boolean] return_partial_success
|
|
541
611
|
# When set to `true`, operations that are reachable are returned as normal, and
|
|
542
|
-
# those that are unreachable are returned in the
|
|
543
|
-
# unreachable
|
|
544
|
-
#
|
|
545
|
-
# by default
|
|
546
|
-
# explicitly documented otherwise in service or product specific
|
|
612
|
+
# those that are unreachable are returned in the ListOperationsResponse.
|
|
613
|
+
# unreachable field. This can only be `true` when reading across collections.
|
|
614
|
+
# For example, when `parent` is set to `"projects/example/locations/-"`. This
|
|
615
|
+
# field is not supported by default and will result in an `UNIMPLEMENTED` error
|
|
616
|
+
# if set unless explicitly documented otherwise in service or product specific
|
|
617
|
+
# documentation.
|
|
547
618
|
# @param [String] fields
|
|
548
619
|
# Selector specifying which fields to include in a partial response.
|
|
549
620
|
# @param [String] quota_user
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-apis-cloudscheduler_v1
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.43.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -57,7 +57,7 @@ licenses:
|
|
|
57
57
|
metadata:
|
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudscheduler_v1/CHANGELOG.md
|
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudscheduler_v1/v0.
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudscheduler_v1/v0.43.0
|
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudscheduler_v1
|
|
62
62
|
rdoc_options: []
|
|
63
63
|
require_paths:
|