google-cloud-tasks 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -21,7 +21,7 @@ module Google
21
21
  #
22
22
  # Warning: This is an [alpha](https://cloud.google.com/terms/launch-stages)
23
23
  # feature. If you haven't already joined, you can [use this form to sign
24
- # up](https://docs.google.com/forms/d/e/1FAIpQLSfc4uEy9CBHKYUSdnY1hdhKDCX7julVZHy3imOiR-XrU7bUNQ/viewform?usp=sf_link).
24
+ # up](https://docs.google.com/forms/d/e/1FAIpQLSfc4uEy9CBHKYUSdnY1hdhKDCX7julVZHy3imOiR-XrU7bUNQ/viewform).
25
25
  #
26
26
  # The task will be pushed to the worker as an HTTP request. If the worker
27
27
  # or the redirected worker acknowledges the task by returning a successful HTTP
@@ -30,8 +30,7 @@ module Google
30
30
  # task will be retried according to the following:
31
31
  #
32
32
  # * User-specified throttling: {Queue::RetryConfig retry configuration},
33
- # {Queue::RateLimits rate limits}, and the [queue's
34
- # state][google.cloud.tasks.v2beta3.Queue.state].
33
+ # {Queue::RateLimits rate limits}, and the {Google::Cloud::Tasks::V2beta3::Queue#state queue's state}.
35
34
  #
36
35
  # * System throttling: To prevent the worker from overloading, Cloud Tasks may
37
36
  # temporarily reduce the queue's effective rate. User-specified settings
@@ -99,23 +98,36 @@ module Google
99
98
  # HTTP request body.
100
99
  #
101
100
  # A request body is allowed only if the
102
- # {Google::Cloud::Tasks::V2beta3::HttpRequest#http_method HTTP method} is POST,
103
- # PUT, or PATCH. It is an error to set body on a task with an incompatible
104
- # {Google::Cloud::Tasks::V2beta3::HttpMethod HttpMethod}.
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 be used when sending requests to a GCP
111
+ # endpoint.
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 should be used when sending requests to third
120
+ # party endpoints.
105
121
  class HttpRequest; end
106
122
 
107
123
  # App Engine HTTP queue.
108
124
  #
109
125
  # The task will be delivered to the App Engine application hostname
110
- # specified by its
111
- # {Google::Cloud::Tasks::V2beta3::AppEngineHttpQueue AppEngineHttpQueue} and
112
- # {Google::Cloud::Tasks::V2beta3::AppEngineHttpRequest AppEngineHttpRequest}. The
113
- # documentation for
114
- # {Google::Cloud::Tasks::V2beta3::AppEngineHttpRequest AppEngineHttpRequest}
115
- # explains how the task's host URL is constructed.
116
- #
117
- # Using {Google::Cloud::Tasks::V2beta3::AppEngineHttpQueue AppEngineHttpQueue}
118
- # requires
126
+ # specified by its {Google::Cloud::Tasks::V2beta3::AppEngineHttpQueue AppEngineHttpQueue} and {Google::Cloud::Tasks::V2beta3::AppEngineHttpRequest AppEngineHttpRequest}.
127
+ # The documentation for {Google::Cloud::Tasks::V2beta3::AppEngineHttpRequest AppEngineHttpRequest} explains how the
128
+ # task's host URL is constructed.
129
+ #
130
+ # Using {Google::Cloud::Tasks::V2beta3::AppEngineHttpQueue AppEngineHttpQueue} requires
119
131
  # [`appengine.applications.get`](https://cloud.google.com/appengine/docs/admin-api/access-control)
120
132
  # Google IAM permission for the project
121
133
  # and the following scope:
@@ -124,13 +136,11 @@ module Google
124
136
  # @!attribute [rw] app_engine_routing_override
125
137
  # @return [Google::Cloud::Tasks::V2beta3::AppEngineRouting]
126
138
  # Overrides for the
127
- # [task-level
128
- # app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing].
139
+ # {Google::Cloud::Tasks::V2beta3::AppEngineHttpRequest#app_engine_routing task-level app_engine_routing}.
129
140
  #
130
141
  # If set, `app_engine_routing_override` is used for all tasks in
131
142
  # the queue, no matter what the setting is for the
132
- # [task-level
133
- # app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing].
143
+ # {Google::Cloud::Tasks::V2beta3::AppEngineHttpRequest#app_engine_routing task-level app_engine_routing}.
134
144
  class AppEngineHttpQueue; end
135
145
 
136
146
  # App Engine HTTP request.
@@ -139,11 +149,9 @@ module Google
139
149
  # the task is dispatched.
140
150
  #
141
151
  # This proto can only be used for tasks in a queue which has
142
- # {Google::Cloud::Tasks::V2beta3::Queue#app_engine_http_queue app_engine_http_queue}
143
- # set.
152
+ # {Google::Cloud::Tasks::V2beta3::Queue#app_engine_http_queue app_engine_http_queue} set.
144
153
  #
145
- # Using {Google::Cloud::Tasks::V2beta3::AppEngineHttpRequest AppEngineHttpRequest}
146
- # requires
154
+ # Using {Google::Cloud::Tasks::V2beta3::AppEngineHttpRequest AppEngineHttpRequest} requires
147
155
  # [`appengine.applications.get`](https://cloud.google.com/appengine/docs/admin-api/access-control)
148
156
  # Google IAM permission for the project
149
157
  # and the following scope:
@@ -163,16 +171,14 @@ module Google
163
171
  # The request to the handler, however, will appear to have used the HTTP
164
172
  # protocol.
165
173
  #
166
- # The {Google::Cloud::Tasks::V2beta3::AppEngineRouting AppEngineRouting} used to
167
- # construct the URL that the task is delivered to can be set at the queue-level
168
- # or task-level:
174
+ # The {Google::Cloud::Tasks::V2beta3::AppEngineRouting AppEngineRouting} used to construct the URL that the task is
175
+ # delivered to can be set at the queue-level or task-level:
169
176
  #
170
177
  # * If set,
171
178
  # {Google::Cloud::Tasks::V2beta3::AppEngineHttpQueue#app_engine_routing_override app_engine_routing_override}
172
179
  # is used for all tasks in the queue, no matter what the setting
173
180
  # is for the
174
- # [task-level
175
- # app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing].
181
+ # {Google::Cloud::Tasks::V2beta3::AppEngineHttpRequest#app_engine_routing task-level app_engine_routing}.
176
182
  #
177
183
  #
178
184
  # The `url` that the task will be sent to is:
@@ -217,8 +223,7 @@ module Google
217
223
  # If set,
218
224
  # {Google::Cloud::Tasks::V2beta3::AppEngineHttpQueue#app_engine_routing_override app_engine_routing_override}
219
225
  # is used for all tasks in the queue, no matter what the setting is for the
220
- # [task-level
221
- # app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing].
226
+ # {Google::Cloud::Tasks::V2beta3::AppEngineHttpRequest#app_engine_routing task-level app_engine_routing}.
222
227
  # @!attribute [rw] relative_uri
223
228
  # @return [String]
224
229
  # The relative URI.
@@ -244,9 +249,8 @@ module Google
244
249
  # `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
245
250
  # modified `User-Agent`.
246
251
  #
247
- # If the task has a
248
- # {Google::Cloud::Tasks::V2beta3::AppEngineHttpRequest#body body}, Cloud Tasks
249
- # sets the following headers:
252
+ # If the task has a {Google::Cloud::Tasks::V2beta3::AppEngineHttpRequest#body body}, Cloud
253
+ # Tasks sets the following headers:
250
254
  #
251
255
  # * `Content-Type`: By default, the `Content-Type` header is set to
252
256
  # `"application/octet-stream"`. The default can be overridden by explicitly
@@ -270,17 +274,14 @@ module Google
270
274
  # visible when the task is returned in a Cloud Tasks response.
271
275
  #
272
276
  # Although there is no specific limit for the maximum number of headers or
273
- # the size, there is a limit on the maximum size of the
274
- # {Google::Cloud::Tasks::V2beta3::Task Task}. For more information, see the
275
- # {Google::Cloud::Tasks::V2beta3::CloudTasks::CreateTask CreateTask}
276
- # documentation.
277
+ # the size, there is a limit on the maximum size of the {Google::Cloud::Tasks::V2beta3::Task Task}. For more
278
+ # information, see the {Google::Cloud::Tasks::V2beta3::CloudTasks::CreateTask CreateTask} documentation.
277
279
  # @!attribute [rw] body
278
280
  # @return [String]
279
281
  # HTTP request body.
280
282
  #
281
283
  # A request body is allowed only if the HTTP method is POST or PUT. It is
282
- # an error to set a body on a task with an incompatible
283
- # {Google::Cloud::Tasks::V2beta3::HttpMethod HttpMethod}.
284
+ # an error to set a body on a task with an incompatible {Google::Cloud::Tasks::V2beta3::HttpMethod HttpMethod}.
284
285
  class AppEngineHttpRequest; end
285
286
 
286
287
  # App Engine Routing.
@@ -305,18 +306,16 @@ module Google
305
306
  # service when the task is attempted.
306
307
  #
307
308
  # For some queues or tasks which were created using the App Engine
308
- # Task Queue API, {Google::Cloud::Tasks::V2beta3::AppEngineRouting#host host} is
309
- # not parsable into
310
- # {Google::Cloud::Tasks::V2beta3::AppEngineRouting#service service},
309
+ # Task Queue API, {Google::Cloud::Tasks::V2beta3::AppEngineRouting#host host} is not parsable
310
+ # into {Google::Cloud::Tasks::V2beta3::AppEngineRouting#service service},
311
311
  # {Google::Cloud::Tasks::V2beta3::AppEngineRouting#version version}, and
312
- # {Google::Cloud::Tasks::V2beta3::AppEngineRouting#instance instance}. For
313
- # example, some tasks which were created using the App Engine SDK use a
314
- # custom domain name; custom domains are not parsed by Cloud Tasks. If
315
- # {Google::Cloud::Tasks::V2beta3::AppEngineRouting#host host} is not parsable,
316
- # then {Google::Cloud::Tasks::V2beta3::AppEngineRouting#service service},
312
+ # {Google::Cloud::Tasks::V2beta3::AppEngineRouting#instance instance}. For example, some tasks
313
+ # which were created using the App Engine SDK use a custom domain
314
+ # name; custom domains are not parsed by Cloud Tasks. If
315
+ # {Google::Cloud::Tasks::V2beta3::AppEngineRouting#host host} is not parsable, then
316
+ # {Google::Cloud::Tasks::V2beta3::AppEngineRouting#service service},
317
317
  # {Google::Cloud::Tasks::V2beta3::AppEngineRouting#version version}, and
318
- # {Google::Cloud::Tasks::V2beta3::AppEngineRouting#instance instance} are the
319
- # empty string.
318
+ # {Google::Cloud::Tasks::V2beta3::AppEngineRouting#instance instance} are the empty string.
320
319
  # @!attribute [rw] version
321
320
  # @return [String]
322
321
  # App version.
@@ -325,18 +324,16 @@ module Google
325
324
  # version when the task is attempted.
326
325
  #
327
326
  # For some queues or tasks which were created using the App Engine
328
- # Task Queue API, {Google::Cloud::Tasks::V2beta3::AppEngineRouting#host host} is
329
- # not parsable into
330
- # {Google::Cloud::Tasks::V2beta3::AppEngineRouting#service service},
327
+ # Task Queue API, {Google::Cloud::Tasks::V2beta3::AppEngineRouting#host host} is not parsable
328
+ # into {Google::Cloud::Tasks::V2beta3::AppEngineRouting#service service},
331
329
  # {Google::Cloud::Tasks::V2beta3::AppEngineRouting#version version}, and
332
- # {Google::Cloud::Tasks::V2beta3::AppEngineRouting#instance instance}. For
333
- # example, some tasks which were created using the App Engine SDK use a
334
- # custom domain name; custom domains are not parsed by Cloud Tasks. If
335
- # {Google::Cloud::Tasks::V2beta3::AppEngineRouting#host host} is not parsable,
336
- # then {Google::Cloud::Tasks::V2beta3::AppEngineRouting#service service},
330
+ # {Google::Cloud::Tasks::V2beta3::AppEngineRouting#instance instance}. For example, some tasks
331
+ # which were created using the App Engine SDK use a custom domain
332
+ # name; custom domains are not parsed by Cloud Tasks. If
333
+ # {Google::Cloud::Tasks::V2beta3::AppEngineRouting#host host} is not parsable, then
334
+ # {Google::Cloud::Tasks::V2beta3::AppEngineRouting#service service},
337
335
  # {Google::Cloud::Tasks::V2beta3::AppEngineRouting#version version}, and
338
- # {Google::Cloud::Tasks::V2beta3::AppEngineRouting#instance instance} are the
339
- # empty string.
336
+ # {Google::Cloud::Tasks::V2beta3::AppEngineRouting#instance instance} are the empty string.
340
337
  # @!attribute [rw] instance
341
338
  # @return [String]
342
339
  # App instance.
@@ -358,17 +355,51 @@ module Google
358
355
  #
359
356
  # The host is constructed from the domain name of the app associated with
360
357
  # the queue's project ID (for example <app-id>.appspot.com), and the
361
- # {Google::Cloud::Tasks::V2beta3::AppEngineRouting#service service},
362
- # {Google::Cloud::Tasks::V2beta3::AppEngineRouting#version version}, and
363
- # {Google::Cloud::Tasks::V2beta3::AppEngineRouting#instance instance}. Tasks
364
- # which were created using the App Engine SDK might have a custom domain
365
- # name.
358
+ # {Google::Cloud::Tasks::V2beta3::AppEngineRouting#service service}, {Google::Cloud::Tasks::V2beta3::AppEngineRouting#version version},
359
+ # and {Google::Cloud::Tasks::V2beta3::AppEngineRouting#instance instance}. Tasks which were created using
360
+ # the App Engine SDK might have a custom domain name.
366
361
  #
367
362
  # For more information, see
368
363
  # [How Requests are
369
364
  # Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
370
365
  class AppEngineRouting; end
371
366
 
367
+ # Contains information needed for generating an
368
+ # [OAuth token](https://developers.google.com/identity/protocols/OAuth2).
369
+ # This type of authorization should be used when sending requests to a GCP
370
+ # endpoint.
371
+ # @!attribute [rw] service_account_email
372
+ # @return [String]
373
+ # [Service account email](https://cloud.google.com/iam/docs/service-accounts)
374
+ # to be used for generating OAuth token.
375
+ # The service account must be within the same project as the queue. The
376
+ # caller must have iam.serviceAccounts.actAs permission for the service
377
+ # account.
378
+ # @!attribute [rw] scope
379
+ # @return [String]
380
+ # OAuth scope to be used for generating OAuth access token.
381
+ # If not specified, "https://www.googleapis.com/auth/cloud-platform"
382
+ # will be used.
383
+ class OAuthToken; end
384
+
385
+ # Contains information needed for generating an
386
+ # [OpenID Connect
387
+ # token](https://developers.google.com/identity/protocols/OpenIDConnect). This
388
+ # type of authorization should be used when sending requests to third party
389
+ # endpoints.
390
+ # @!attribute [rw] service_account_email
391
+ # @return [String]
392
+ # [Service account email](https://cloud.google.com/iam/docs/service-accounts)
393
+ # to be used for generating OIDC token.
394
+ # The service account must be within the same project as the queue. The
395
+ # caller must have iam.serviceAccounts.actAs permission for the service
396
+ # account.
397
+ # @!attribute [rw] audience
398
+ # @return [String]
399
+ # Audience to be used when generating OIDC token. If not specified, the URI
400
+ # specified in target will be used.
401
+ class OidcToken; end
402
+
372
403
  # The HTTP method used to execute the task.
373
404
  module HttpMethod
374
405
  # HTTP method unspecified
@@ -20,8 +20,7 @@ module Google
20
20
  # A unit of scheduled work.
21
21
  # @!attribute [rw] name
22
22
  # @return [String]
23
- # Optionally caller-specified in
24
- # {Google::Cloud::Tasks::V2beta3::CloudTasks::CreateTask CreateTask}.
23
+ # Optionally caller-specified in {Google::Cloud::Tasks::V2beta3::CloudTasks::CreateTask CreateTask}.
25
24
  #
26
25
  # The task name.
27
26
  #
@@ -45,19 +44,16 @@ module Google
45
44
  # @return [Google::Cloud::Tasks::V2beta3::AppEngineHttpRequest]
46
45
  # HTTP request that is sent to the App Engine app handler.
47
46
  #
48
- # An App Engine task is a task that has
49
- # {Google::Cloud::Tasks::V2beta3::AppEngineHttpRequest AppEngineHttpRequest}
50
- # set.
47
+ # An App Engine task is a task that has {Google::Cloud::Tasks::V2beta3::AppEngineHttpRequest AppEngineHttpRequest} set.
51
48
  # @!attribute [rw] http_request
52
49
  # @return [Google::Cloud::Tasks::V2beta3::HttpRequest]
53
50
  # HTTP request that is sent to the task's target.
54
51
  #
55
52
  # Warning: This is an [alpha](https://cloud.google.com/terms/launch-stages)
56
53
  # feature. If you haven't already joined, you can [use this form to sign
57
- # up](https://docs.google.com/forms/d/e/1FAIpQLSfc4uEy9CBHKYUSdnY1hdhKDCX7julVZHy3imOiR-XrU7bUNQ/viewform?usp=sf_link).
54
+ # up](https://docs.google.com/forms/d/e/1FAIpQLSfc4uEy9CBHKYUSdnY1hdhKDCX7julVZHy3imOiR-XrU7bUNQ/viewform).
58
55
  #
59
- # An HTTP task is a task that has
60
- # {Google::Cloud::Tasks::V2beta3::HttpRequest HttpRequest} set.
56
+ # An HTTP task is a task that has {Google::Cloud::Tasks::V2beta3::HttpRequest HttpRequest} set.
61
57
  # @!attribute [rw] schedule_time
62
58
  # @return [Google::Protobuf::Timestamp]
63
59
  # The time when the task is scheduled to be attempted.
@@ -75,8 +71,7 @@ module Google
75
71
  # The deadline for requests sent to the worker. If the worker does not
76
72
  # respond by this deadline then the request is cancelled and the attempt
77
73
  # is marked as a `DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the
78
- # task according to the
79
- # {Google::Cloud::Tasks::V2beta3::RetryConfig RetryConfig}.
74
+ # task according to the {Google::Cloud::Tasks::V2beta3::RetryConfig RetryConfig}.
80
75
  #
81
76
  # Note that when the request is cancelled, Cloud Tasks will stop listing for
82
77
  # the response, but whether the worker stops processing depends on the
@@ -85,12 +80,10 @@ module Google
85
80
  #
86
81
  # The default and maximum values depend on the type of request:
87
82
  #
88
- # * For {Google::Cloud::Tasks::V2beta3::HttpRequest HTTP tasks}, the default is
89
- # 10 minutes.
90
- # The deadline must be in the interval [15 seconds, 30 minutes].
83
+ # * For {Google::Cloud::Tasks::V2beta3::HttpRequest HTTP tasks}, the default is 10 minutes. The deadline
84
+ # must be in the interval [15 seconds, 30 minutes].
91
85
  #
92
- # * For {Google::Cloud::Tasks::V2beta3::AppEngineHttpRequest App Engine tasks},
93
- # 0 indicates that the
86
+ # * For {Google::Cloud::Tasks::V2beta3::AppEngineHttpRequest App Engine tasks}, 0 indicates that the
94
87
  # request has the default deadline. The default deadline depends on the
95
88
  # [scaling
96
89
  # type](https://cloud.google.com/appengine/docs/standard/go/how-instances-are-managed#instance_scaling)
@@ -119,19 +112,17 @@ module Google
119
112
  # @return [Google::Cloud::Tasks::V2beta3::Attempt]
120
113
  # Output only. The status of the task's first attempt.
121
114
  #
122
- # Only {Google::Cloud::Tasks::V2beta3::Attempt#dispatch_time dispatch_time} will
123
- # be set. The other {Google::Cloud::Tasks::V2beta3::Attempt Attempt} information
124
- # is not retained by Cloud Tasks.
115
+ # Only {Google::Cloud::Tasks::V2beta3::Attempt#dispatch_time dispatch_time} will be set.
116
+ # The other {Google::Cloud::Tasks::V2beta3::Attempt Attempt} information is not retained by Cloud Tasks.
125
117
  # @!attribute [rw] last_attempt
126
118
  # @return [Google::Cloud::Tasks::V2beta3::Attempt]
127
119
  # Output only. The status of the task's last attempt.
128
120
  # @!attribute [rw] view
129
121
  # @return [Google::Cloud::Tasks::V2beta3::Task::View]
130
- # Output only. The view specifies which subset of the
131
- # {Google::Cloud::Tasks::V2beta3::Task Task} has been returned.
122
+ # Output only. The view specifies which subset of the {Google::Cloud::Tasks::V2beta3::Task Task} has
123
+ # been returned.
132
124
  class Task
133
- # The view specifies a subset of {Google::Cloud::Tasks::V2beta3::Task Task}
134
- # data.
125
+ # The view specifies a subset of {Google::Cloud::Tasks::V2beta3::Task Task} data.
135
126
  #
136
127
  # When a task is returned in a response, not all
137
128
  # information is retrieved by default because some data, such as
@@ -146,8 +137,7 @@ module Google
146
137
  # sensitive data.
147
138
  #
148
139
  # This view does not include the
149
- # [body in
150
- # AppEngineHttpRequest][google.cloud.tasks.v2beta3.AppEngineHttpRequest.body].
140
+ # {Google::Cloud::Tasks::V2beta3::AppEngineHttpRequest#body body in AppEngineHttpRequest}.
151
141
  # Bodies are desirable to return only when needed, because they
152
142
  # can be large and because of the sensitivity of the data that you
153
143
  # choose to store in it.
@@ -155,10 +145,9 @@ module Google
155
145
 
156
146
  # All information is returned.
157
147
  #
158
- # Authorization for {Google::Cloud::Tasks::V2beta3::Task::View::FULL FULL}
159
- # requires `cloudtasks.tasks.fullView` [Google
160
- # IAM](https://cloud.google.com/iam/) permission on the
161
- # {Google::Cloud::Tasks::V2beta3::Queue Queue} resource.
148
+ # Authorization for {Google::Cloud::Tasks::V2beta3::Task::View::FULL FULL} requires
149
+ # `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
150
+ # permission on the {Google::Cloud::Tasks::V2beta3::Queue Queue} resource.
162
151
  FULL = 2
163
152
  end
164
153
  end
@@ -5,6 +5,7 @@
5
5
  require 'google/protobuf'
6
6
 
7
7
  require 'google/api/annotations_pb'
8
+ require 'google/api/resource_pb'
8
9
  require 'google/cloud/tasks/v2beta3/target_pb'
9
10
  require 'google/protobuf/duration_pb'
10
11
  require 'google/protobuf/timestamp_pb'
@@ -15,6 +16,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
15
16
  optional :retry_config, :message, 5, "google.cloud.tasks.v2beta3.RetryConfig"
16
17
  optional :state, :enum, 6, "google.cloud.tasks.v2beta3.Queue.State"
17
18
  optional :purge_time, :message, 7, "google.protobuf.Timestamp"
19
+ optional :log_sampling_ratio, :double, 10
18
20
  oneof :queue_type do
19
21
  optional :app_engine_http_queue, :message, 3, "google.cloud.tasks.v2beta3.AppEngineHttpQueue"
20
22
  end
@@ -11,6 +11,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
11
11
  optional :http_method, :enum, 2, "google.cloud.tasks.v2beta3.HttpMethod"
12
12
  map :headers, :string, :string, 3
13
13
  optional :body, :bytes, 4
14
+ oneof :authorization_header do
15
+ optional :oauth_token, :message, 5, "google.cloud.tasks.v2beta3.OAuthToken"
16
+ optional :oidc_token, :message, 6, "google.cloud.tasks.v2beta3.OidcToken"
17
+ end
14
18
  end
15
19
  add_message "google.cloud.tasks.v2beta3.AppEngineHttpQueue" do
16
20
  optional :app_engine_routing_override, :message, 1, "google.cloud.tasks.v2beta3.AppEngineRouting"
@@ -28,6 +32,14 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
28
32
  optional :instance, :string, 3
29
33
  optional :host, :string, 4
30
34
  end
35
+ add_message "google.cloud.tasks.v2beta3.OAuthToken" do
36
+ optional :service_account_email, :string, 1
37
+ optional :scope, :string, 2
38
+ end
39
+ add_message "google.cloud.tasks.v2beta3.OidcToken" do
40
+ optional :service_account_email, :string, 1
41
+ optional :audience, :string, 2
42
+ end
31
43
  add_enum "google.cloud.tasks.v2beta3.HttpMethod" do
32
44
  value :HTTP_METHOD_UNSPECIFIED, 0
33
45
  value :POST, 1
@@ -48,6 +60,8 @@ module Google
48
60
  AppEngineHttpQueue = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.AppEngineHttpQueue").msgclass
49
61
  AppEngineHttpRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.AppEngineHttpRequest").msgclass
50
62
  AppEngineRouting = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.AppEngineRouting").msgclass
63
+ OAuthToken = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.OAuthToken").msgclass
64
+ OidcToken = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.OidcToken").msgclass
51
65
  HttpMethod = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.HttpMethod").enummodule
52
66
  end
53
67
  end
@@ -5,6 +5,7 @@
5
5
  require 'google/protobuf'
6
6
 
7
7
  require 'google/api/annotations_pb'
8
+ require 'google/api/resource_pb'
8
9
  require 'google/cloud/tasks/v2beta3/target_pb'
9
10
  require 'google/protobuf/duration_pb'
10
11
  require 'google/protobuf/timestamp_pb'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-tasks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.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: 2019-03-28 00:00:00.000000000 Z
11
+ date: 2019-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-gax
@@ -24,6 +24,26 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: googleapis-common-protos
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 1.3.9
34
+ - - "<"
35
+ - !ruby/object:Gem::Version
36
+ version: '2.0'
37
+ type: :runtime
38
+ prerelease: false
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: 1.3.9
44
+ - - "<"
45
+ - !ruby/object:Gem::Version
46
+ version: '2.0'
27
47
  - !ruby/object:Gem::Dependency
28
48
  name: grpc-google-iam-v1
29
49
  requirement: !ruby/object:Gem::Requirement