google-cloud-scheduler-v1 1.1.0 → 1.2.1

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: 5a670fe099688ff8f1eaaae7dc3871e0071cb8d8eeda3c420feb881999271c41
4
- data.tar.gz: be274e137f0b6f2e0d6896680b4ce9ee0f0bb58f846376039ca103be61d11c59
3
+ metadata.gz: c0d513e0796e6fae8c255d68e3873e8d7b631fd9cf212846e28957879d830bcc
4
+ data.tar.gz: 1d9c5666984e3a0f5f96fc3dfeffd498d1694bb2f87fb0a3d47307cf950c7b38
5
5
  SHA512:
6
- metadata.gz: 6393d56f83d81321921a3db8096e35240be168ed45b0acbca2c2ebf21f381bf9afaa68787b10295333ba6bab88e733c2bee65a3092cb613ec3831df42a376c53
7
- data.tar.gz: 9f13222658fc385c2daf78355330bc21c36efd6a9ed18d95b4600d1a3794265a328654900eb7b337abff437947c35011ab24e1bbb9032393845af0af1d14ce47
6
+ metadata.gz: 9640973a374dfca4e78e47e988e7054834e6adffc51adacfddf118d906909d1d0a3fa09ee6e6439ddaf8e3935c73949b0ee7b3fcdd4636f852179ec69c22cdf6
7
+ data.tar.gz: 0035d93bb1b7418f978d5d407de58af6fa1e7b396bef639a5e8734ed82a47022f3c14f60ec9d6f6dc33490cdd550c204c92fe8efcf50fb5b01bc63de39b0ccbf
data/README.md CHANGED
@@ -86,7 +86,7 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
86
86
 
87
87
  ## Supported Ruby Versions
88
88
 
89
- This library is supported on Ruby 2.7+.
89
+ This library is supported on Ruby 3.0+.
90
90
 
91
91
  Google provides official support for Ruby versions that are actively supported
92
92
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
@@ -259,11 +259,7 @@ module Google
259
259
  # request the next page of results, page_token must be the value of
260
260
  # {::Google::Cloud::Scheduler::V1::ListJobsResponse#next_page_token next_page_token}
261
261
  # returned from the previous call to
262
- # {::Google::Cloud::Scheduler::V1::CloudScheduler::Client#list_jobs ListJobs}. It is an
263
- # error to switch the value of
264
- # [filter][google.cloud.scheduler.v1.ListJobsRequest.filter] or
265
- # [order_by][google.cloud.scheduler.v1.ListJobsRequest.order_by] while
266
- # iterating through pages.
262
+ # {::Google::Cloud::Scheduler::V1::CloudScheduler::Client#list_jobs ListJobs}.
267
263
  #
268
264
  # @yield [response, operation] Access the result along with the RPC operation
269
265
  # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Scheduler::V1::Job>]
@@ -1022,6 +1018,13 @@ module Google
1022
1018
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1023
1019
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1024
1020
  # * (`nil`) indicating no credentials
1021
+ #
1022
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
1023
+ # external source for authentication to Google Cloud, you must validate it before
1024
+ # providing it to a Google API client library. Providing an unvalidated credential
1025
+ # configuration to Google APIs can compromise the security of your systems and data.
1026
+ # For more information, refer to [Validate credential configurations from external
1027
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
1025
1028
  # @return [::Object]
1026
1029
  # @!attribute [rw] scope
1027
1030
  # The OAuth scopes
@@ -1076,8 +1079,8 @@ module Google
1076
1079
 
1077
1080
  config_attr :endpoint, nil, ::String, nil
1078
1081
  config_attr :credentials, nil do |value|
1079
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1080
- allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
1082
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
1083
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
1081
1084
  allowed.any? { |klass| klass === value }
1082
1085
  end
1083
1086
  config_attr :scope, nil, ::String, ::Array, nil
@@ -253,11 +253,7 @@ module Google
253
253
  # request the next page of results, page_token must be the value of
254
254
  # {::Google::Cloud::Scheduler::V1::ListJobsResponse#next_page_token next_page_token}
255
255
  # returned from the previous call to
256
- # {::Google::Cloud::Scheduler::V1::CloudScheduler::Rest::Client#list_jobs ListJobs}. It is an
257
- # error to switch the value of
258
- # [filter][google.cloud.scheduler.v1.ListJobsRequest.filter] or
259
- # [order_by][google.cloud.scheduler.v1.ListJobsRequest.order_by] while
260
- # iterating through pages.
256
+ # {::Google::Cloud::Scheduler::V1::CloudScheduler::Rest::Client#list_jobs ListJobs}.
261
257
  # @yield [result, operation] Access the result along with the TransportOperation object
262
258
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Scheduler::V1::Job>]
263
259
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -958,6 +954,13 @@ module Google
958
954
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
959
955
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
960
956
  # * (`nil`) indicating no credentials
957
+ #
958
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
959
+ # external source for authentication to Google Cloud, you must validate it before
960
+ # providing it to a Google API client library. Providing an unvalidated credential
961
+ # configuration to Google APIs can compromise the security of your systems and data.
962
+ # For more information, refer to [Validate credential configurations from external
963
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
961
964
  # @return [::Object]
962
965
  # @!attribute [rw] scope
963
966
  # The OAuth scopes
@@ -1005,7 +1008,7 @@ module Google
1005
1008
 
1006
1009
  config_attr :endpoint, nil, ::String, nil
1007
1010
  config_attr :credentials, nil do |value|
1008
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1011
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
1009
1012
  allowed.any? { |klass| klass === value }
1010
1013
  end
1011
1014
  config_attr :scope, nil, ::String, ::Array, nil
@@ -4,6 +4,7 @@
4
4
 
5
5
  require 'google/protobuf'
6
6
 
7
+ require 'google/api/field_behavior_pb'
7
8
  require 'google/api/resource_pb'
8
9
  require 'google/cloud/scheduler/v1/target_pb'
9
10
  require 'google/protobuf/duration_pb'
@@ -11,7 +12,7 @@ require 'google/protobuf/timestamp_pb'
11
12
  require 'google/rpc/status_pb'
12
13
 
13
14
 
14
- descriptor_data = "\n#google/cloud/scheduler/v1/job.proto\x12\x19google.cloud.scheduler.v1\x1a\x19google/api/resource.proto\x1a&google/cloud/scheduler/v1/target.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\xcb\x06\n\x03Job\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12@\n\rpubsub_target\x18\x04 \x01(\x0b\x32\'.google.cloud.scheduler.v1.PubsubTargetH\x00\x12P\n\x16\x61pp_engine_http_target\x18\x05 \x01(\x0b\x32..google.cloud.scheduler.v1.AppEngineHttpTargetH\x00\x12<\n\x0bhttp_target\x18\x06 \x01(\x0b\x32%.google.cloud.scheduler.v1.HttpTargetH\x00\x12\x10\n\x08schedule\x18\x14 \x01(\t\x12\x11\n\ttime_zone\x18\x15 \x01(\t\x12\x34\n\x10user_update_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x33\n\x05state\x18\n \x01(\x0e\x32$.google.cloud.scheduler.v1.Job.State\x12\"\n\x06status\x18\x0b \x01(\x0b\x32\x12.google.rpc.Status\x12\x31\n\rschedule_time\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x35\n\x11last_attempt_time\x18\x12 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12<\n\x0cretry_config\x18\x13 \x01(\x0b\x32&.google.cloud.scheduler.v1.RetryConfig\x12\x33\n\x10\x61ttempt_deadline\x18\x16 \x01(\x0b\x32\x19.google.protobuf.Duration\"X\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x45NABLED\x10\x01\x12\n\n\x06PAUSED\x10\x02\x12\x0c\n\x08\x44ISABLED\x10\x03\x12\x11\n\rUPDATE_FAILED\x10\x04:Z\xea\x41W\n!cloudscheduler.googleapis.com/Job\x12\x32projects/{project}/locations/{location}/jobs/{job}B\x08\n\x06target\"\xe2\x01\n\x0bRetryConfig\x12\x13\n\x0bretry_count\x18\x01 \x01(\x05\x12\x35\n\x12max_retry_duration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14min_backoff_duration\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14max_backoff_duration\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x15\n\rmax_doublings\x18\x05 \x01(\x05\x42h\n\x1d\x63om.google.cloud.scheduler.v1B\x08JobProtoP\x01Z;cloud.google.com/go/scheduler/apiv1/schedulerpb;schedulerpbb\x06proto3"
15
+ descriptor_data = "\n#google/cloud/scheduler/v1/job.proto\x12\x19google.cloud.scheduler.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a&google/cloud/scheduler/v1/target.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\xef\x06\n\x03Job\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12@\n\rpubsub_target\x18\x04 \x01(\x0b\x32\'.google.cloud.scheduler.v1.PubsubTargetH\x00\x12P\n\x16\x61pp_engine_http_target\x18\x05 \x01(\x0b\x32..google.cloud.scheduler.v1.AppEngineHttpTargetH\x00\x12<\n\x0bhttp_target\x18\x06 \x01(\x0b\x32%.google.cloud.scheduler.v1.HttpTargetH\x00\x12\x10\n\x08schedule\x18\x14 \x01(\t\x12\x11\n\ttime_zone\x18\x15 \x01(\t\x12\x39\n\x10user_update_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x38\n\x05state\x18\n \x01(\x0e\x32$.google.cloud.scheduler.v1.Job.StateB\x03\xe0\x41\x03\x12\'\n\x06status\x18\x0b \x01(\x0b\x32\x12.google.rpc.StatusB\x03\xe0\x41\x03\x12\x36\n\rschedule_time\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12:\n\x11last_attempt_time\x18\x12 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12<\n\x0cretry_config\x18\x13 \x01(\x0b\x32&.google.cloud.scheduler.v1.RetryConfig\x12\x33\n\x10\x61ttempt_deadline\x18\x16 \x01(\x0b\x32\x19.google.protobuf.Duration\"X\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x45NABLED\x10\x01\x12\n\n\x06PAUSED\x10\x02\x12\x0c\n\x08\x44ISABLED\x10\x03\x12\x11\n\rUPDATE_FAILED\x10\x04:e\xea\x41\x62\n!cloudscheduler.googleapis.com/Job\x12\x32projects/{project}/locations/{location}/jobs/{job}*\x04jobs2\x03jobB\x08\n\x06target\"\xe2\x01\n\x0bRetryConfig\x12\x13\n\x0bretry_count\x18\x01 \x01(\x05\x12\x35\n\x12max_retry_duration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14min_backoff_duration\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14max_backoff_duration\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x15\n\rmax_doublings\x18\x05 \x01(\x05\x42h\n\x1d\x63om.google.cloud.scheduler.v1B\x08JobProtoP\x01Z;cloud.google.com/go/scheduler/apiv1/schedulerpb;schedulerpbb\x06proto3"
15
16
 
16
17
  pool = Google::Protobuf::DescriptorPool.generated_pool
17
18
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Scheduler
23
23
  module V1
24
- VERSION = "1.1.0"
24
+ VERSION = "1.2.1"
25
25
  end
26
26
  end
27
27
  end
@@ -221,6 +221,12 @@ module Google
221
221
  # Pythonic which are included in `protobuf>=5.29.x`. This feature will be
222
222
  # enabled by default 1 month after launching the feature in preview
223
223
  # packages.
224
+ # @!attribute [rw] unversioned_package_disabled
225
+ # @return [::Boolean]
226
+ # Disables generation of an unversioned Python package for this client
227
+ # library. This means that the module names will need to be versioned in
228
+ # import statements. For example `import google.cloud.library_v2` instead
229
+ # of `import google.cloud.library`.
224
230
  class ExperimentalFeatures
225
231
  include ::Google::Protobuf::MessageExts
226
232
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -409,6 +415,14 @@ module Google
409
415
  # @return [::Array<::String>]
410
416
  # An allowlist of the fully qualified names of RPCs that should be included
411
417
  # on public client surfaces.
418
+ # @!attribute [rw] generate_omitted_as_internal
419
+ # @return [::Boolean]
420
+ # Setting this to true indicates to the client generators that methods
421
+ # that would be excluded from the generation should instead be generated
422
+ # in a way that indicates these methods should not be consumed by
423
+ # end users. How this is expressed is up to individual language
424
+ # implementations to decide. Some examples may be: added annotations,
425
+ # obfuscated identifiers, or other language idiomatic patterns.
412
426
  class SelectiveGapicGeneration
413
427
  include ::Google::Protobuf::MessageExts
414
428
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -42,11 +42,7 @@ module Google
42
42
  # request the next page of results, page_token must be the value of
43
43
  # {::Google::Cloud::Scheduler::V1::ListJobsResponse#next_page_token next_page_token}
44
44
  # returned from the previous call to
45
- # {::Google::Cloud::Scheduler::V1::CloudScheduler::Client#list_jobs ListJobs}. It is an
46
- # error to switch the value of
47
- # [filter][google.cloud.scheduler.v1.ListJobsRequest.filter] or
48
- # [order_by][google.cloud.scheduler.v1.ListJobsRequest.order_by] while
49
- # iterating through pages.
45
+ # {::Google::Cloud::Scheduler::V1::CloudScheduler::Client#list_jobs ListJobs}.
50
46
  class ListJobsRequest
51
47
  include ::Google::Protobuf::MessageExts
52
48
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -54,12 +54,18 @@ module Google
54
54
  # @!attribute [rw] pubsub_target
55
55
  # @return [::Google::Cloud::Scheduler::V1::PubsubTarget]
56
56
  # Pub/Sub target.
57
+ #
58
+ # Note: The following fields are mutually exclusive: `pubsub_target`, `app_engine_http_target`, `http_target`. If a field in that set is populated, all other fields in the set will automatically be cleared.
57
59
  # @!attribute [rw] app_engine_http_target
58
60
  # @return [::Google::Cloud::Scheduler::V1::AppEngineHttpTarget]
59
61
  # App Engine HTTP target.
62
+ #
63
+ # Note: The following fields are mutually exclusive: `app_engine_http_target`, `pubsub_target`, `http_target`. If a field in that set is populated, all other fields in the set will automatically be cleared.
60
64
  # @!attribute [rw] http_target
61
65
  # @return [::Google::Cloud::Scheduler::V1::HttpTarget]
62
66
  # HTTP target.
67
+ #
68
+ # Note: The following fields are mutually exclusive: `http_target`, `pubsub_target`, `app_engine_http_target`. If a field in that set is populated, all other fields in the set will automatically be cleared.
63
69
  # @!attribute [rw] schedule
64
70
  # @return [::String]
65
71
  # Required, except when used with
@@ -85,7 +91,11 @@ module Google
85
91
  # If {::Google::Cloud::Scheduler::V1::RetryConfig#retry_count retry_count} > 0 and
86
92
  # a job attempt fails, the job will be tried a total of
87
93
  # {::Google::Cloud::Scheduler::V1::RetryConfig#retry_count retry_count} times,
88
- # with exponential backoff, until the next scheduled start time.
94
+ # with exponential backoff, until the next scheduled start time. If
95
+ # retry_count is 0, a job attempt will not be retried if it fails. Instead
96
+ # the Cloud Scheduler system will wait for the next scheduled execution time.
97
+ # Setting retry_count to 0 does not prevent failed jobs from running
98
+ # according to schedule after the failure.
89
99
  # @!attribute [rw] time_zone
90
100
  # @return [::String]
91
101
  # Specifies the time zone to be used in interpreting
@@ -98,21 +108,21 @@ module Google
98
108
  # determined by the chosen tz. For UTC use the string "utc". If a
99
109
  # time zone is not specified, the default will be in UTC (also known
100
110
  # as GMT).
101
- # @!attribute [rw] user_update_time
111
+ # @!attribute [r] user_update_time
102
112
  # @return [::Google::Protobuf::Timestamp]
103
113
  # Output only. The creation time of the job.
104
- # @!attribute [rw] state
114
+ # @!attribute [r] state
105
115
  # @return [::Google::Cloud::Scheduler::V1::Job::State]
106
116
  # Output only. State of the job.
107
- # @!attribute [rw] status
117
+ # @!attribute [r] status
108
118
  # @return [::Google::Rpc::Status]
109
119
  # Output only. The response from the target for the last attempted execution.
110
- # @!attribute [rw] schedule_time
120
+ # @!attribute [r] schedule_time
111
121
  # @return [::Google::Protobuf::Timestamp]
112
122
  # Output only. The next time the job is scheduled. Note that this may be a
113
123
  # retry of a previously failed attempt or the next execution time
114
124
  # according to the schedule.
115
- # @!attribute [rw] last_attempt_time
125
+ # @!attribute [r] last_attempt_time
116
126
  # @return [::Google::Protobuf::Timestamp]
117
127
  # Output only. The time the last job attempt started.
118
128
  # @!attribute [rw] retry_config
@@ -186,9 +196,10 @@ module Google
186
196
  #
187
197
  # The default value of retry_count is zero.
188
198
  #
189
- # If retry_count is zero, a job attempt will *not* be retried if
199
+ # If retry_count is 0, a job attempt will not be retried if
190
200
  # it fails. Instead the Cloud Scheduler system will wait for the
191
- # next scheduled execution time.
201
+ # next scheduled execution time. Setting retry_count to 0 does not prevent
202
+ # failed jobs from running according to schedule after the failure.
192
203
  #
193
204
  # If retry_count is set to a non-zero number then Cloud Scheduler
194
205
  # will retry failed attempts, using exponential backoff,
@@ -233,7 +244,7 @@ module Google
233
244
  # {::Google::Cloud::Scheduler::V1::RetryConfig#min_backoff_duration min_backoff_duration}
234
245
  # is 10s,
235
246
  # {::Google::Cloud::Scheduler::V1::RetryConfig#max_backoff_duration max_backoff_duration}
236
- # is 300s, and `max_doublings` is 3, then the a job will first be retried in
247
+ # is 300s, and `max_doublings` is 3, then the job will first be retried in
237
248
  # 10s. The retry interval will double three times, and then increase linearly
238
249
  # by 2^3 * 10s. Finally, the job will retry at intervals of
239
250
  # {::Google::Cloud::Scheduler::V1::RetryConfig#max_backoff_duration max_backoff_duration}
@@ -41,14 +41,20 @@ module Google
41
41
  # Which HTTP method to use for the request.
42
42
  # @!attribute [rw] headers
43
43
  # @return [::Google::Protobuf::Map{::String => ::String}]
44
+ # HTTP request headers.
45
+ #
46
+ # This map contains the header field names and values.
47
+ #
44
48
  # The user can specify HTTP request headers to send with the job's
45
- # HTTP request. This map contains the header field names and
46
- # values. Repeated headers are not supported, but a header value can
47
- # contain commas. These headers represent a subset of the headers
48
- # that will accompany the job's HTTP request. Some HTTP request
49
- # headers will be ignored or replaced. A partial list of headers that
50
- # will be ignored or replaced is below:
51
- # - Host: This will be computed by Cloud Scheduler and derived from
49
+ # HTTP request. Repeated headers are not supported, but a header value can
50
+ # contain commas.
51
+ #
52
+ # The following headers represent a subset of the headers
53
+ # that accompany the job's HTTP request. Some HTTP request
54
+ # headers are ignored or replaced. A partial list of headers that
55
+ # are ignored or replaced is below:
56
+ #
57
+ # * Host: This will be computed by Cloud Scheduler and derived from
52
58
  # {::Google::Cloud::Scheduler::V1::HttpTarget#uri uri}.
53
59
  # * `Content-Length`: This will be computed by Cloud Scheduler.
54
60
  # * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`.
@@ -60,6 +66,15 @@ module Google
60
66
  # the unix-cron format, this header will contain the job schedule as an
61
67
  # offset of UTC parsed according to RFC3339.
62
68
  #
69
+ # If the job has a {::Google::Cloud::Scheduler::V1::HttpTarget#body body} and the
70
+ # following headers are not set by the user, Cloud Scheduler sets default
71
+ # values:
72
+ #
73
+ # * `Content-Type`: This will be set to `"application/octet-stream"`. You
74
+ # can override this default by explicitly setting `Content-Type` to a
75
+ # particular media type when creating the job. For example, you can set
76
+ # `Content-Type` to `"application/json"`.
77
+ #
63
78
  # The total size of headers must be less than 80KB.
64
79
  # @!attribute [rw] body
65
80
  # @return [::String]
@@ -75,6 +90,8 @@ module Google
75
90
  #
76
91
  # This type of authorization should generally only be used when calling
77
92
  # Google APIs hosted on *.googleapis.com.
93
+ #
94
+ # Note: The following fields are mutually exclusive: `oauth_token`, `oidc_token`. If a field in that set is populated, all other fields in the set will automatically be cleared.
78
95
  # @!attribute [rw] oidc_token
79
96
  # @return [::Google::Cloud::Scheduler::V1::OidcToken]
80
97
  # If specified, an
@@ -85,6 +102,8 @@ module Google
85
102
  # This type of authorization can be used for many scenarios, including
86
103
  # calling Cloud Run, or endpoints where you intend to validate the token
87
104
  # yourself.
105
+ #
106
+ # Note: The following fields are mutually exclusive: `oidc_token`, `oauth_token`. If a field in that set is populated, all other fields in the set will automatically be cleared.
88
107
  class HttpTarget
89
108
  include ::Google::Protobuf::MessageExts
90
109
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -144,20 +163,18 @@ module Google
144
163
  # the unix-cron format, this header will contain the job schedule as an
145
164
  # offset of UTC parsed according to RFC3339.
146
165
  #
147
- # If the job has an
148
- # {::Google::Cloud::Scheduler::V1::AppEngineHttpTarget#body body}, Cloud Scheduler
149
- # sets the following headers:
166
+ # If the job has a {::Google::Cloud::Scheduler::V1::AppEngineHttpTarget#body body}
167
+ # and the following headers are not set by the user, Cloud Scheduler sets
168
+ # default values:
150
169
  #
151
- # * `Content-Type`: By default, the `Content-Type` header is set to
152
- # `"application/octet-stream"`. The default can be overridden by explictly
153
- # setting `Content-Type` to a particular media type when the job is
154
- # created.
155
- # For example, `Content-Type` can be set to `"application/json"`.
156
- # * `Content-Length`: This is computed by Cloud Scheduler. This value is
157
- # output only. It cannot be changed.
170
+ # * `Content-Type`: This will be set to `"application/octet-stream"`. You
171
+ # can override this default by explicitly setting `Content-Type` to a
172
+ # particular media type when creating the job. For example, you can set
173
+ # `Content-Type` to `"application/json"`.
158
174
  #
159
175
  # The headers below are output only. They cannot be set or overridden:
160
176
  #
177
+ # * `Content-Length`: This is computed by Cloud Scheduler.
161
178
  # * `X-Google-*`: For Google internal use only.
162
179
  # * `X-AppEngine-*`: For Google internal use only.
163
180
  #
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-scheduler-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-12-10 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: gapic-common
@@ -16,7 +15,7 @@ dependencies:
16
15
  requirements:
17
16
  - - ">="
18
17
  - !ruby/object:Gem::Version
19
- version: 0.24.0
18
+ version: 0.25.0
20
19
  - - "<"
21
20
  - !ruby/object:Gem::Version
22
21
  version: 2.a
@@ -26,7 +25,7 @@ dependencies:
26
25
  requirements:
27
26
  - - ">="
28
27
  - !ruby/object:Gem::Version
29
- version: 0.24.0
28
+ version: 0.25.0
30
29
  - - "<"
31
30
  - !ruby/object:Gem::Version
32
31
  version: 2.a
@@ -115,7 +114,6 @@ homepage: https://github.com/googleapis/google-cloud-ruby
115
114
  licenses:
116
115
  - Apache-2.0
117
116
  metadata: {}
118
- post_install_message:
119
117
  rdoc_options: []
120
118
  require_paths:
121
119
  - lib
@@ -123,15 +121,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
123
121
  requirements:
124
122
  - - ">="
125
123
  - !ruby/object:Gem::Version
126
- version: '2.7'
124
+ version: '3.0'
127
125
  required_rubygems_version: !ruby/object:Gem::Requirement
128
126
  requirements:
129
127
  - - ">="
130
128
  - !ruby/object:Gem::Version
131
129
  version: '0'
132
130
  requirements: []
133
- rubygems_version: 3.5.23
134
- signing_key:
131
+ rubygems_version: 3.6.8
135
132
  specification_version: 4
136
133
  summary: Creates and manages jobs run on a regular recurring schedule.
137
134
  test_files: []