google-cloud-tasks-v2beta3 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +169 -0
- data/LICENSE.md +203 -0
- data/README.md +71 -0
- data/lib/google-cloud-tasks-v2beta3.rb +21 -0
- data/lib/google/cloud/common_resources_pb.rb +15 -0
- data/lib/google/cloud/tasks/v2beta3.rb +35 -0
- data/lib/google/cloud/tasks/v2beta3/cloud_tasks.rb +50 -0
- data/lib/google/cloud/tasks/v2beta3/cloud_tasks/client.rb +1849 -0
- data/lib/google/cloud/tasks/v2beta3/cloud_tasks/credentials.rb +51 -0
- data/lib/google/cloud/tasks/v2beta3/cloud_tasks/paths.rb +90 -0
- data/lib/google/cloud/tasks/v2beta3/cloudtasks_pb.rb +102 -0
- data/lib/google/cloud/tasks/v2beta3/cloudtasks_services_pb.rb +202 -0
- data/lib/google/cloud/tasks/v2beta3/queue_pb.rb +60 -0
- data/lib/google/cloud/tasks/v2beta3/target_pb.rb +70 -0
- data/lib/google/cloud/tasks/v2beta3/task_pb.rb +53 -0
- data/lib/google/cloud/tasks/v2beta3/version.rb +28 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/field_behavior.rb +59 -0
- data/proto_docs/google/api/resource.rb +247 -0
- data/proto_docs/google/cloud/tasks/v2beta3/cloudtasks.rb +361 -0
- data/proto_docs/google/cloud/tasks/v2beta3/queue.rb +358 -0
- data/proto_docs/google/cloud/tasks/v2beta3/target.rb +471 -0
- data/proto_docs/google/cloud/tasks/v2beta3/task.rb +187 -0
- data/proto_docs/google/iam/v1/iam_policy.rb +80 -0
- data/proto_docs/google/iam/v1/options.rb +40 -0
- data/proto_docs/google/iam/v1/policy.rb +248 -0
- data/proto_docs/google/protobuf/any.rb +138 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +36 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +120 -0
- data/proto_docs/google/rpc/status.rb +46 -0
- data/proto_docs/google/type/expr.rb +52 -0
- metadata +211 -0
@@ -0,0 +1,471 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module Tasks
|
23
|
+
module V2beta3
|
24
|
+
# HTTP request.
|
25
|
+
#
|
26
|
+
# The task will be pushed to the worker as an HTTP request. If the worker
|
27
|
+
# or the redirected worker acknowledges the task by returning a successful HTTP
|
28
|
+
# response code ([`200` - `299`]), the task will be removed from the queue. If
|
29
|
+
# any other HTTP response code is returned or no response is received, the
|
30
|
+
# task will be retried according to the following:
|
31
|
+
#
|
32
|
+
# * User-specified throttling: {::Google::Cloud::Tasks::V2beta3::Queue#retry_config retry configuration},
|
33
|
+
# {::Google::Cloud::Tasks::V2beta3::Queue#rate_limits rate limits}, and the [queue's state][google.cloud.tasks.v2beta3.Queue.state].
|
34
|
+
#
|
35
|
+
# * System throttling: To prevent the worker from overloading, Cloud Tasks may
|
36
|
+
# temporarily reduce the queue's effective rate. User-specified settings
|
37
|
+
# will not be changed.
|
38
|
+
#
|
39
|
+
# System throttling happens because:
|
40
|
+
#
|
41
|
+
# * Cloud Tasks backs off on all errors. Normally the backoff specified in
|
42
|
+
# {::Google::Cloud::Tasks::V2beta3::Queue#rate_limits rate limits} will be used. But if the worker returns
|
43
|
+
# `429` (Too Many Requests), `503` (Service Unavailable), or the rate of
|
44
|
+
# errors is high, Cloud Tasks will use a higher backoff rate. The retry
|
45
|
+
# specified in the `Retry-After` HTTP response header is considered.
|
46
|
+
#
|
47
|
+
# * To prevent traffic spikes and to smooth sudden increases in traffic,
|
48
|
+
# dispatches ramp up slowly when the queue is newly created or idle and
|
49
|
+
# if large numbers of tasks suddenly become available to dispatch (due to
|
50
|
+
# spikes in create task rates, the queue being unpaused, or many tasks
|
51
|
+
# that are scheduled at the same time).
|
52
|
+
# @!attribute [rw] url
|
53
|
+
# @return [::String]
|
54
|
+
# Required. The full url path that the request will be sent to.
|
55
|
+
#
|
56
|
+
# This string must begin with either "http://" or "https://". Some examples
|
57
|
+
# are: `http://acme.com` and `https://acme.com/sales:8080`. Cloud Tasks will
|
58
|
+
# encode some characters for safety and compatibility. The maximum allowed
|
59
|
+
# URL length is 2083 characters after encoding.
|
60
|
+
#
|
61
|
+
# The `Location` header response from a redirect response [`300` - `399`]
|
62
|
+
# may be followed. The redirect is not counted as a separate attempt.
|
63
|
+
# @!attribute [rw] http_method
|
64
|
+
# @return [::Google::Cloud::Tasks::V2beta3::HttpMethod]
|
65
|
+
# The HTTP method to use for the request. The default is POST.
|
66
|
+
# @!attribute [rw] headers
|
67
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
68
|
+
# HTTP request headers.
|
69
|
+
#
|
70
|
+
# This map contains the header field names and values.
|
71
|
+
# Headers can be set when the
|
72
|
+
# {::Google::Cloud::Tasks::V2beta3::CloudTasks::Client#create_task task is created}.
|
73
|
+
#
|
74
|
+
# These headers represent a subset of the headers that will accompany the
|
75
|
+
# task's HTTP request. Some HTTP request headers will be ignored or replaced.
|
76
|
+
#
|
77
|
+
# A partial list of headers that will be ignored or replaced is:
|
78
|
+
#
|
79
|
+
# * Host: This will be computed by Cloud Tasks and derived from
|
80
|
+
# {::Google::Cloud::Tasks::V2beta3::HttpRequest#url HttpRequest.url}.
|
81
|
+
# * Content-Length: This will be computed by Cloud Tasks.
|
82
|
+
# * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
|
83
|
+
# * X-Google-*: Google use only.
|
84
|
+
# * X-AppEngine-*: Google use only.
|
85
|
+
#
|
86
|
+
# `Content-Type` won't be set by Cloud Tasks. You can explicitly set
|
87
|
+
# `Content-Type` to a media type when the
|
88
|
+
# {::Google::Cloud::Tasks::V2beta3::CloudTasks::Client#create_task task is created}.
|
89
|
+
# For example, `Content-Type` can be set to `"application/octet-stream"` or
|
90
|
+
# `"application/json"`.
|
91
|
+
#
|
92
|
+
# Headers which can have multiple values (according to RFC2616) can be
|
93
|
+
# specified using comma-separated values.
|
94
|
+
#
|
95
|
+
# The size of the headers must be less than 80KB.
|
96
|
+
# @!attribute [rw] body
|
97
|
+
# @return [::String]
|
98
|
+
# HTTP request body.
|
99
|
+
#
|
100
|
+
# A request body is allowed only if the
|
101
|
+
# {::Google::Cloud::Tasks::V2beta3::HttpRequest#http_method HTTP method} is POST, PUT, or PATCH. It is an
|
102
|
+
# error to set body on a task with an incompatible {::Google::Cloud::Tasks::V2beta3::HttpMethod HttpMethod}.
|
103
|
+
# @!attribute [rw] oauth_token
|
104
|
+
# @return [::Google::Cloud::Tasks::V2beta3::OAuthToken]
|
105
|
+
# If specified, an
|
106
|
+
# [OAuth token](https://developers.google.com/identity/protocols/OAuth2)
|
107
|
+
# will be generated and attached as an `Authorization` header in the HTTP
|
108
|
+
# request.
|
109
|
+
#
|
110
|
+
# This type of authorization should generally only be used when calling
|
111
|
+
# Google APIs hosted on *.googleapis.com.
|
112
|
+
# @!attribute [rw] oidc_token
|
113
|
+
# @return [::Google::Cloud::Tasks::V2beta3::OidcToken]
|
114
|
+
# If specified, an
|
115
|
+
# [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
|
116
|
+
# token will be generated and attached as an `Authorization` header in the
|
117
|
+
# HTTP request.
|
118
|
+
#
|
119
|
+
# This type of authorization can be used for many scenarios, including
|
120
|
+
# calling Cloud Run, or endpoints where you intend to validate the token
|
121
|
+
# yourself.
|
122
|
+
class HttpRequest
|
123
|
+
include ::Google::Protobuf::MessageExts
|
124
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
125
|
+
|
126
|
+
# @!attribute [rw] key
|
127
|
+
# @return [::String]
|
128
|
+
# @!attribute [rw] value
|
129
|
+
# @return [::String]
|
130
|
+
class HeadersEntry
|
131
|
+
include ::Google::Protobuf::MessageExts
|
132
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
136
|
+
# App Engine HTTP queue.
|
137
|
+
#
|
138
|
+
# The task will be delivered to the App Engine application hostname
|
139
|
+
# specified by its {::Google::Cloud::Tasks::V2beta3::AppEngineHttpQueue AppEngineHttpQueue} and {::Google::Cloud::Tasks::V2beta3::AppEngineHttpRequest AppEngineHttpRequest}.
|
140
|
+
# The documentation for {::Google::Cloud::Tasks::V2beta3::AppEngineHttpRequest AppEngineHttpRequest} explains how the
|
141
|
+
# task's host URL is constructed.
|
142
|
+
#
|
143
|
+
# Using {::Google::Cloud::Tasks::V2beta3::AppEngineHttpQueue AppEngineHttpQueue} requires
|
144
|
+
# [`appengine.applications.get`](https://cloud.google.com/appengine/docs/admin-api/access-control)
|
145
|
+
# Google IAM permission for the project
|
146
|
+
# and the following scope:
|
147
|
+
#
|
148
|
+
# `https://www.googleapis.com/auth/cloud-platform`
|
149
|
+
# @!attribute [rw] app_engine_routing_override
|
150
|
+
# @return [::Google::Cloud::Tasks::V2beta3::AppEngineRouting]
|
151
|
+
# Overrides for the
|
152
|
+
# {::Google::Cloud::Tasks::V2beta3::AppEngineHttpRequest#app_engine_routing task-level app_engine_routing}.
|
153
|
+
#
|
154
|
+
# If set, `app_engine_routing_override` is used for all tasks in
|
155
|
+
# the queue, no matter what the setting is for the
|
156
|
+
# {::Google::Cloud::Tasks::V2beta3::AppEngineHttpRequest#app_engine_routing task-level app_engine_routing}.
|
157
|
+
class AppEngineHttpQueue
|
158
|
+
include ::Google::Protobuf::MessageExts
|
159
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
160
|
+
end
|
161
|
+
|
162
|
+
# App Engine HTTP request.
|
163
|
+
#
|
164
|
+
# The message defines the HTTP request that is sent to an App Engine app when
|
165
|
+
# the task is dispatched.
|
166
|
+
#
|
167
|
+
# Using {::Google::Cloud::Tasks::V2beta3::AppEngineHttpRequest AppEngineHttpRequest} requires
|
168
|
+
# [`appengine.applications.get`](https://cloud.google.com/appengine/docs/admin-api/access-control)
|
169
|
+
# Google IAM permission for the project
|
170
|
+
# and the following scope:
|
171
|
+
#
|
172
|
+
# `https://www.googleapis.com/auth/cloud-platform`
|
173
|
+
#
|
174
|
+
# The task will be delivered to the App Engine app which belongs to the same
|
175
|
+
# project as the queue. For more information, see
|
176
|
+
# [How Requests are
|
177
|
+
# Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
|
178
|
+
# and how routing is affected by
|
179
|
+
# [dispatch
|
180
|
+
# files](https://cloud.google.com/appengine/docs/python/config/dispatchref).
|
181
|
+
# Traffic is encrypted during transport and never leaves Google datacenters.
|
182
|
+
# Because this traffic is carried over a communication mechanism internal to
|
183
|
+
# Google, you cannot explicitly set the protocol (for example, HTTP or HTTPS).
|
184
|
+
# The request to the handler, however, will appear to have used the HTTP
|
185
|
+
# protocol.
|
186
|
+
#
|
187
|
+
# The {::Google::Cloud::Tasks::V2beta3::AppEngineRouting AppEngineRouting} used to construct the URL that the task is
|
188
|
+
# delivered to can be set at the queue-level or task-level:
|
189
|
+
#
|
190
|
+
# * If set,
|
191
|
+
# {::Google::Cloud::Tasks::V2beta3::AppEngineHttpQueue#app_engine_routing_override app_engine_routing_override}
|
192
|
+
# is used for all tasks in the queue, no matter what the setting
|
193
|
+
# is for the
|
194
|
+
# {::Google::Cloud::Tasks::V2beta3::AppEngineHttpRequest#app_engine_routing task-level app_engine_routing}.
|
195
|
+
#
|
196
|
+
#
|
197
|
+
# The `url` that the task will be sent to is:
|
198
|
+
#
|
199
|
+
# * `url =` {::Google::Cloud::Tasks::V2beta3::AppEngineRouting#host host} `+`
|
200
|
+
# {::Google::Cloud::Tasks::V2beta3::AppEngineHttpRequest#relative_uri relative_uri}
|
201
|
+
#
|
202
|
+
# Tasks can be dispatched to secure app handlers, unsecure app handlers, and
|
203
|
+
# URIs restricted with
|
204
|
+
# [`login:
|
205
|
+
# admin`](https://cloud.google.com/appengine/docs/standard/python/config/appref).
|
206
|
+
# Because tasks are not run as any user, they cannot be dispatched to URIs
|
207
|
+
# restricted with
|
208
|
+
# [`login:
|
209
|
+
# required`](https://cloud.google.com/appengine/docs/standard/python/config/appref)
|
210
|
+
# Task dispatches also do not follow redirects.
|
211
|
+
#
|
212
|
+
# The task attempt has succeeded if the app's request handler returns an HTTP
|
213
|
+
# response code in the range [`200` - `299`]. The task attempt has failed if
|
214
|
+
# the app's handler returns a non-2xx response code or Cloud Tasks does
|
215
|
+
# not receive response before the {::Google::Cloud::Tasks::V2beta3::Task#dispatch_deadline deadline}. Failed
|
216
|
+
# tasks will be retried according to the
|
217
|
+
# {::Google::Cloud::Tasks::V2beta3::Queue#retry_config retry configuration}. `503` (Service Unavailable) is
|
218
|
+
# considered an App Engine system error instead of an application error and
|
219
|
+
# will cause Cloud Tasks' traffic congestion control to temporarily throttle
|
220
|
+
# the queue's dispatches. Unlike other types of task targets, a `429` (Too Many
|
221
|
+
# Requests) response from an app handler does not cause traffic congestion
|
222
|
+
# control to throttle the queue.
|
223
|
+
# @!attribute [rw] http_method
|
224
|
+
# @return [::Google::Cloud::Tasks::V2beta3::HttpMethod]
|
225
|
+
# The HTTP method to use for the request. The default is POST.
|
226
|
+
#
|
227
|
+
# The app's request handler for the task's target URL must be able to handle
|
228
|
+
# HTTP requests with this http_method, otherwise the task attempt will fail
|
229
|
+
# with error code 405 (Method Not Allowed). See
|
230
|
+
# [Writing a push task request
|
231
|
+
# handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler)
|
232
|
+
# and the documentation for the request handlers in the language your app is
|
233
|
+
# written in e.g.
|
234
|
+
# [Python Request
|
235
|
+
# Handler](https://cloud.google.com/appengine/docs/python/tools/webapp/requesthandlerclass).
|
236
|
+
# @!attribute [rw] app_engine_routing
|
237
|
+
# @return [::Google::Cloud::Tasks::V2beta3::AppEngineRouting]
|
238
|
+
# Task-level setting for App Engine routing.
|
239
|
+
#
|
240
|
+
# If set,
|
241
|
+
# {::Google::Cloud::Tasks::V2beta3::AppEngineHttpQueue#app_engine_routing_override app_engine_routing_override}
|
242
|
+
# is used for all tasks in the queue, no matter what the setting is for the
|
243
|
+
# {::Google::Cloud::Tasks::V2beta3::AppEngineHttpRequest#app_engine_routing task-level app_engine_routing}.
|
244
|
+
# @!attribute [rw] relative_uri
|
245
|
+
# @return [::String]
|
246
|
+
# The relative URI.
|
247
|
+
#
|
248
|
+
# The relative URI must begin with "/" and must be a valid HTTP relative URI.
|
249
|
+
# It can contain a path and query string arguments.
|
250
|
+
# If the relative URI is empty, then the root path "/" will be used.
|
251
|
+
# No spaces are allowed, and the maximum length allowed is 2083 characters.
|
252
|
+
# @!attribute [rw] headers
|
253
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
254
|
+
# HTTP request headers.
|
255
|
+
#
|
256
|
+
# This map contains the header field names and values.
|
257
|
+
# Headers can be set when the
|
258
|
+
# {::Google::Cloud::Tasks::V2beta3::CloudTasks::Client#create_task task is created}.
|
259
|
+
# Repeated headers are not supported but a header value can contain commas.
|
260
|
+
#
|
261
|
+
# Cloud Tasks sets some headers to default values:
|
262
|
+
#
|
263
|
+
# * `User-Agent`: By default, this header is
|
264
|
+
# `"AppEngine-Google; (+http://code.google.com/appengine)"`.
|
265
|
+
# This header can be modified, but Cloud Tasks will append
|
266
|
+
# `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
|
267
|
+
# modified `User-Agent`.
|
268
|
+
#
|
269
|
+
# If the task has a {::Google::Cloud::Tasks::V2beta3::AppEngineHttpRequest#body body}, Cloud
|
270
|
+
# Tasks sets the following headers:
|
271
|
+
#
|
272
|
+
# * `Content-Type`: By default, the `Content-Type` header is set to
|
273
|
+
# `"application/octet-stream"`. The default can be overridden by explicitly
|
274
|
+
# setting `Content-Type` to a particular media type when the
|
275
|
+
# {::Google::Cloud::Tasks::V2beta3::CloudTasks::Client#create_task task is created}.
|
276
|
+
# For example, `Content-Type` can be set to `"application/json"`.
|
277
|
+
# * `Content-Length`: This is computed by Cloud Tasks. This value is
|
278
|
+
# output only. It cannot be changed.
|
279
|
+
#
|
280
|
+
# The headers below cannot be set or overridden:
|
281
|
+
#
|
282
|
+
# * `Host`
|
283
|
+
# * `X-Google-*`
|
284
|
+
# * `X-AppEngine-*`
|
285
|
+
#
|
286
|
+
# In addition, Cloud Tasks sets some headers when the task is dispatched,
|
287
|
+
# such as headers containing information about the task; see
|
288
|
+
# [request
|
289
|
+
# headers](https://cloud.google.com/tasks/docs/creating-appengine-handlers#reading_request_headers).
|
290
|
+
# These headers are set only when the task is dispatched, so they are not
|
291
|
+
# visible when the task is returned in a Cloud Tasks response.
|
292
|
+
#
|
293
|
+
# Although there is no specific limit for the maximum number of headers or
|
294
|
+
# the size, there is a limit on the maximum size of the {::Google::Cloud::Tasks::V2beta3::Task Task}. For more
|
295
|
+
# information, see the {::Google::Cloud::Tasks::V2beta3::CloudTasks::Client#create_task CreateTask} documentation.
|
296
|
+
# @!attribute [rw] body
|
297
|
+
# @return [::String]
|
298
|
+
# HTTP request body.
|
299
|
+
#
|
300
|
+
# A request body is allowed only if the HTTP method is POST or PUT. It is
|
301
|
+
# an error to set a body on a task with an incompatible {::Google::Cloud::Tasks::V2beta3::HttpMethod HttpMethod}.
|
302
|
+
class AppEngineHttpRequest
|
303
|
+
include ::Google::Protobuf::MessageExts
|
304
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
305
|
+
|
306
|
+
# @!attribute [rw] key
|
307
|
+
# @return [::String]
|
308
|
+
# @!attribute [rw] value
|
309
|
+
# @return [::String]
|
310
|
+
class HeadersEntry
|
311
|
+
include ::Google::Protobuf::MessageExts
|
312
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
313
|
+
end
|
314
|
+
end
|
315
|
+
|
316
|
+
# App Engine Routing.
|
317
|
+
#
|
318
|
+
# Defines routing characteristics specific to App Engine - service, version,
|
319
|
+
# and instance.
|
320
|
+
#
|
321
|
+
# For more information about services, versions, and instances see
|
322
|
+
# [An Overview of App
|
323
|
+
# Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine),
|
324
|
+
# [Microservices Architecture on Google App
|
325
|
+
# Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app-engine),
|
326
|
+
# [App Engine Standard request
|
327
|
+
# routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed),
|
328
|
+
# and [App Engine Flex request
|
329
|
+
# routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
|
330
|
+
# @!attribute [rw] service
|
331
|
+
# @return [::String]
|
332
|
+
# App service.
|
333
|
+
#
|
334
|
+
# By default, the task is sent to the service which is the default
|
335
|
+
# service when the task is attempted.
|
336
|
+
#
|
337
|
+
# For some queues or tasks which were created using the App Engine
|
338
|
+
# Task Queue API, {::Google::Cloud::Tasks::V2beta3::AppEngineRouting#host host} is not parsable
|
339
|
+
# into {::Google::Cloud::Tasks::V2beta3::AppEngineRouting#service service},
|
340
|
+
# {::Google::Cloud::Tasks::V2beta3::AppEngineRouting#version version}, and
|
341
|
+
# {::Google::Cloud::Tasks::V2beta3::AppEngineRouting#instance instance}. For example, some tasks
|
342
|
+
# which were created using the App Engine SDK use a custom domain
|
343
|
+
# name; custom domains are not parsed by Cloud Tasks. If
|
344
|
+
# {::Google::Cloud::Tasks::V2beta3::AppEngineRouting#host host} is not parsable, then
|
345
|
+
# {::Google::Cloud::Tasks::V2beta3::AppEngineRouting#service service},
|
346
|
+
# {::Google::Cloud::Tasks::V2beta3::AppEngineRouting#version version}, and
|
347
|
+
# {::Google::Cloud::Tasks::V2beta3::AppEngineRouting#instance instance} are the empty string.
|
348
|
+
# @!attribute [rw] version
|
349
|
+
# @return [::String]
|
350
|
+
# App version.
|
351
|
+
#
|
352
|
+
# By default, the task is sent to the version which is the default
|
353
|
+
# version when the task is attempted.
|
354
|
+
#
|
355
|
+
# For some queues or tasks which were created using the App Engine
|
356
|
+
# Task Queue API, {::Google::Cloud::Tasks::V2beta3::AppEngineRouting#host host} is not parsable
|
357
|
+
# into {::Google::Cloud::Tasks::V2beta3::AppEngineRouting#service service},
|
358
|
+
# {::Google::Cloud::Tasks::V2beta3::AppEngineRouting#version version}, and
|
359
|
+
# {::Google::Cloud::Tasks::V2beta3::AppEngineRouting#instance instance}. For example, some tasks
|
360
|
+
# which were created using the App Engine SDK use a custom domain
|
361
|
+
# name; custom domains are not parsed by Cloud Tasks. If
|
362
|
+
# {::Google::Cloud::Tasks::V2beta3::AppEngineRouting#host host} is not parsable, then
|
363
|
+
# {::Google::Cloud::Tasks::V2beta3::AppEngineRouting#service service},
|
364
|
+
# {::Google::Cloud::Tasks::V2beta3::AppEngineRouting#version version}, and
|
365
|
+
# {::Google::Cloud::Tasks::V2beta3::AppEngineRouting#instance instance} are the empty string.
|
366
|
+
# @!attribute [rw] instance
|
367
|
+
# @return [::String]
|
368
|
+
# App instance.
|
369
|
+
#
|
370
|
+
# By default, the task is sent to an instance which is available when
|
371
|
+
# the task is attempted.
|
372
|
+
#
|
373
|
+
# Requests can only be sent to a specific instance if
|
374
|
+
# [manual scaling is used in App Engine
|
375
|
+
# Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
|
376
|
+
# App Engine Flex does not support instances. For more information, see
|
377
|
+
# [App Engine Standard request
|
378
|
+
# routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
|
379
|
+
# and [App Engine Flex request
|
380
|
+
# routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
|
381
|
+
# @!attribute [rw] host
|
382
|
+
# @return [::String]
|
383
|
+
# Output only. The host that the task is sent to.
|
384
|
+
#
|
385
|
+
# The host is constructed from the domain name of the app associated with
|
386
|
+
# the queue's project ID (for example <app-id>.appspot.com), and the
|
387
|
+
# {::Google::Cloud::Tasks::V2beta3::AppEngineRouting#service service}, {::Google::Cloud::Tasks::V2beta3::AppEngineRouting#version version},
|
388
|
+
# and {::Google::Cloud::Tasks::V2beta3::AppEngineRouting#instance instance}. Tasks which were created using
|
389
|
+
# the App Engine SDK might have a custom domain name.
|
390
|
+
#
|
391
|
+
# For more information, see
|
392
|
+
# [How Requests are
|
393
|
+
# Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
|
394
|
+
class AppEngineRouting
|
395
|
+
include ::Google::Protobuf::MessageExts
|
396
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
397
|
+
end
|
398
|
+
|
399
|
+
# Contains information needed for generating an
|
400
|
+
# [OAuth token](https://developers.google.com/identity/protocols/OAuth2).
|
401
|
+
# This type of authorization should generally only be used when calling Google
|
402
|
+
# APIs hosted on *.googleapis.com.
|
403
|
+
# @!attribute [rw] service_account_email
|
404
|
+
# @return [::String]
|
405
|
+
# [Service account email](https://cloud.google.com/iam/docs/service-accounts)
|
406
|
+
# to be used for generating OAuth token.
|
407
|
+
# The service account must be within the same project as the queue. The
|
408
|
+
# caller must have iam.serviceAccounts.actAs permission for the service
|
409
|
+
# account.
|
410
|
+
# @!attribute [rw] scope
|
411
|
+
# @return [::String]
|
412
|
+
# OAuth scope to be used for generating OAuth access token.
|
413
|
+
# If not specified, "https://www.googleapis.com/auth/cloud-platform"
|
414
|
+
# will be used.
|
415
|
+
class OAuthToken
|
416
|
+
include ::Google::Protobuf::MessageExts
|
417
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
418
|
+
end
|
419
|
+
|
420
|
+
# Contains information needed for generating an
|
421
|
+
# [OpenID Connect
|
422
|
+
# token](https://developers.google.com/identity/protocols/OpenIDConnect).
|
423
|
+
# This type of authorization can be used for many scenarios, including
|
424
|
+
# calling Cloud Run, or endpoints where you intend to validate the token
|
425
|
+
# yourself.
|
426
|
+
# @!attribute [rw] service_account_email
|
427
|
+
# @return [::String]
|
428
|
+
# [Service account email](https://cloud.google.com/iam/docs/service-accounts)
|
429
|
+
# to be used for generating OIDC token.
|
430
|
+
# The service account must be within the same project as the queue. The
|
431
|
+
# caller must have iam.serviceAccounts.actAs permission for the service
|
432
|
+
# account.
|
433
|
+
# @!attribute [rw] audience
|
434
|
+
# @return [::String]
|
435
|
+
# Audience to be used when generating OIDC token. If not specified, the URI
|
436
|
+
# specified in target will be used.
|
437
|
+
class OidcToken
|
438
|
+
include ::Google::Protobuf::MessageExts
|
439
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
440
|
+
end
|
441
|
+
|
442
|
+
# The HTTP method used to execute the task.
|
443
|
+
module HttpMethod
|
444
|
+
# HTTP method unspecified
|
445
|
+
HTTP_METHOD_UNSPECIFIED = 0
|
446
|
+
|
447
|
+
# HTTP POST
|
448
|
+
POST = 1
|
449
|
+
|
450
|
+
# HTTP GET
|
451
|
+
GET = 2
|
452
|
+
|
453
|
+
# HTTP HEAD
|
454
|
+
HEAD = 3
|
455
|
+
|
456
|
+
# HTTP PUT
|
457
|
+
PUT = 4
|
458
|
+
|
459
|
+
# HTTP DELETE
|
460
|
+
DELETE = 5
|
461
|
+
|
462
|
+
# HTTP PATCH
|
463
|
+
PATCH = 6
|
464
|
+
|
465
|
+
# HTTP OPTIONS
|
466
|
+
OPTIONS = 7
|
467
|
+
end
|
468
|
+
end
|
469
|
+
end
|
470
|
+
end
|
471
|
+
end
|