google-apis-cloudtasks_v2 0.1.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.
@@ -0,0 +1,28 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ module Google
16
+ module Apis
17
+ module CloudtasksV2
18
+ # Version of the google-apis-cloudtasks_v2 gem
19
+ GEM_VERSION = "0.1.0"
20
+
21
+ # Version of the code generator used to generate this client
22
+ GENERATOR_VERSION = "0.1.1"
23
+
24
+ # Revision of the discovery document this client was generated from
25
+ REVISION = "20201111"
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,488 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module CloudtasksV2
24
+
25
+ class AppEngineHttpRequest
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class AppEngineRouting
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class Attempt
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class Binding
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class CreateTaskRequest
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class Empty
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class Expr
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class GetIamPolicyRequest
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class GetPolicyOptions
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class HttpRequest
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class ListLocationsResponse
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class ListQueuesResponse
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class ListTasksResponse
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class Location
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class OAuthToken
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class OidcToken
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class PauseQueueRequest
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class Policy
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class PurgeQueueRequest
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class Queue
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class RateLimits
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class ResumeQueueRequest
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class RetryConfig
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class RunTaskRequest
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class SetIamPolicyRequest
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
175
+ class StackdriverLoggingConfig
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
181
+ class Status
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
187
+ class Task
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
193
+ class TestIamPermissionsRequest
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
199
+ class TestIamPermissionsResponse
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
205
+ class AppEngineHttpRequest
206
+ # @private
207
+ class Representation < Google::Apis::Core::JsonRepresentation
208
+ property :app_engine_routing, as: 'appEngineRouting', class: Google::Apis::CloudtasksV2::AppEngineRouting, decorator: Google::Apis::CloudtasksV2::AppEngineRouting::Representation
209
+
210
+ property :body, :base64 => true, as: 'body'
211
+ hash :headers, as: 'headers'
212
+ property :http_method, as: 'httpMethod'
213
+ property :relative_uri, as: 'relativeUri'
214
+ end
215
+ end
216
+
217
+ class AppEngineRouting
218
+ # @private
219
+ class Representation < Google::Apis::Core::JsonRepresentation
220
+ property :host, as: 'host'
221
+ property :instance, as: 'instance'
222
+ property :service, as: 'service'
223
+ property :version, as: 'version'
224
+ end
225
+ end
226
+
227
+ class Attempt
228
+ # @private
229
+ class Representation < Google::Apis::Core::JsonRepresentation
230
+ property :dispatch_time, as: 'dispatchTime'
231
+ property :response_status, as: 'responseStatus', class: Google::Apis::CloudtasksV2::Status, decorator: Google::Apis::CloudtasksV2::Status::Representation
232
+
233
+ property :response_time, as: 'responseTime'
234
+ property :schedule_time, as: 'scheduleTime'
235
+ end
236
+ end
237
+
238
+ class Binding
239
+ # @private
240
+ class Representation < Google::Apis::Core::JsonRepresentation
241
+ property :condition, as: 'condition', class: Google::Apis::CloudtasksV2::Expr, decorator: Google::Apis::CloudtasksV2::Expr::Representation
242
+
243
+ collection :members, as: 'members'
244
+ property :role, as: 'role'
245
+ end
246
+ end
247
+
248
+ class CreateTaskRequest
249
+ # @private
250
+ class Representation < Google::Apis::Core::JsonRepresentation
251
+ property :response_view, as: 'responseView'
252
+ property :task, as: 'task', class: Google::Apis::CloudtasksV2::Task, decorator: Google::Apis::CloudtasksV2::Task::Representation
253
+
254
+ end
255
+ end
256
+
257
+ class Empty
258
+ # @private
259
+ class Representation < Google::Apis::Core::JsonRepresentation
260
+ end
261
+ end
262
+
263
+ class Expr
264
+ # @private
265
+ class Representation < Google::Apis::Core::JsonRepresentation
266
+ property :description, as: 'description'
267
+ property :expression, as: 'expression'
268
+ property :location, as: 'location'
269
+ property :title, as: 'title'
270
+ end
271
+ end
272
+
273
+ class GetIamPolicyRequest
274
+ # @private
275
+ class Representation < Google::Apis::Core::JsonRepresentation
276
+ property :options, as: 'options', class: Google::Apis::CloudtasksV2::GetPolicyOptions, decorator: Google::Apis::CloudtasksV2::GetPolicyOptions::Representation
277
+
278
+ end
279
+ end
280
+
281
+ class GetPolicyOptions
282
+ # @private
283
+ class Representation < Google::Apis::Core::JsonRepresentation
284
+ property :requested_policy_version, as: 'requestedPolicyVersion'
285
+ end
286
+ end
287
+
288
+ class HttpRequest
289
+ # @private
290
+ class Representation < Google::Apis::Core::JsonRepresentation
291
+ property :body, :base64 => true, as: 'body'
292
+ hash :headers, as: 'headers'
293
+ property :http_method, as: 'httpMethod'
294
+ property :oauth_token, as: 'oauthToken', class: Google::Apis::CloudtasksV2::OAuthToken, decorator: Google::Apis::CloudtasksV2::OAuthToken::Representation
295
+
296
+ property :oidc_token, as: 'oidcToken', class: Google::Apis::CloudtasksV2::OidcToken, decorator: Google::Apis::CloudtasksV2::OidcToken::Representation
297
+
298
+ property :url, as: 'url'
299
+ end
300
+ end
301
+
302
+ class ListLocationsResponse
303
+ # @private
304
+ class Representation < Google::Apis::Core::JsonRepresentation
305
+ collection :locations, as: 'locations', class: Google::Apis::CloudtasksV2::Location, decorator: Google::Apis::CloudtasksV2::Location::Representation
306
+
307
+ property :next_page_token, as: 'nextPageToken'
308
+ end
309
+ end
310
+
311
+ class ListQueuesResponse
312
+ # @private
313
+ class Representation < Google::Apis::Core::JsonRepresentation
314
+ property :next_page_token, as: 'nextPageToken'
315
+ collection :queues, as: 'queues', class: Google::Apis::CloudtasksV2::Queue, decorator: Google::Apis::CloudtasksV2::Queue::Representation
316
+
317
+ end
318
+ end
319
+
320
+ class ListTasksResponse
321
+ # @private
322
+ class Representation < Google::Apis::Core::JsonRepresentation
323
+ property :next_page_token, as: 'nextPageToken'
324
+ collection :tasks, as: 'tasks', class: Google::Apis::CloudtasksV2::Task, decorator: Google::Apis::CloudtasksV2::Task::Representation
325
+
326
+ end
327
+ end
328
+
329
+ class Location
330
+ # @private
331
+ class Representation < Google::Apis::Core::JsonRepresentation
332
+ property :display_name, as: 'displayName'
333
+ hash :labels, as: 'labels'
334
+ property :location_id, as: 'locationId'
335
+ hash :metadata, as: 'metadata'
336
+ property :name, as: 'name'
337
+ end
338
+ end
339
+
340
+ class OAuthToken
341
+ # @private
342
+ class Representation < Google::Apis::Core::JsonRepresentation
343
+ property :scope, as: 'scope'
344
+ property :service_account_email, as: 'serviceAccountEmail'
345
+ end
346
+ end
347
+
348
+ class OidcToken
349
+ # @private
350
+ class Representation < Google::Apis::Core::JsonRepresentation
351
+ property :audience, as: 'audience'
352
+ property :service_account_email, as: 'serviceAccountEmail'
353
+ end
354
+ end
355
+
356
+ class PauseQueueRequest
357
+ # @private
358
+ class Representation < Google::Apis::Core::JsonRepresentation
359
+ end
360
+ end
361
+
362
+ class Policy
363
+ # @private
364
+ class Representation < Google::Apis::Core::JsonRepresentation
365
+ collection :bindings, as: 'bindings', class: Google::Apis::CloudtasksV2::Binding, decorator: Google::Apis::CloudtasksV2::Binding::Representation
366
+
367
+ property :etag, :base64 => true, as: 'etag'
368
+ property :version, as: 'version'
369
+ end
370
+ end
371
+
372
+ class PurgeQueueRequest
373
+ # @private
374
+ class Representation < Google::Apis::Core::JsonRepresentation
375
+ end
376
+ end
377
+
378
+ class Queue
379
+ # @private
380
+ class Representation < Google::Apis::Core::JsonRepresentation
381
+ property :app_engine_routing_override, as: 'appEngineRoutingOverride', class: Google::Apis::CloudtasksV2::AppEngineRouting, decorator: Google::Apis::CloudtasksV2::AppEngineRouting::Representation
382
+
383
+ property :name, as: 'name'
384
+ property :purge_time, as: 'purgeTime'
385
+ property :rate_limits, as: 'rateLimits', class: Google::Apis::CloudtasksV2::RateLimits, decorator: Google::Apis::CloudtasksV2::RateLimits::Representation
386
+
387
+ property :retry_config, as: 'retryConfig', class: Google::Apis::CloudtasksV2::RetryConfig, decorator: Google::Apis::CloudtasksV2::RetryConfig::Representation
388
+
389
+ property :stackdriver_logging_config, as: 'stackdriverLoggingConfig', class: Google::Apis::CloudtasksV2::StackdriverLoggingConfig, decorator: Google::Apis::CloudtasksV2::StackdriverLoggingConfig::Representation
390
+
391
+ property :state, as: 'state'
392
+ end
393
+ end
394
+
395
+ class RateLimits
396
+ # @private
397
+ class Representation < Google::Apis::Core::JsonRepresentation
398
+ property :max_burst_size, as: 'maxBurstSize'
399
+ property :max_concurrent_dispatches, as: 'maxConcurrentDispatches'
400
+ property :max_dispatches_per_second, as: 'maxDispatchesPerSecond'
401
+ end
402
+ end
403
+
404
+ class ResumeQueueRequest
405
+ # @private
406
+ class Representation < Google::Apis::Core::JsonRepresentation
407
+ end
408
+ end
409
+
410
+ class RetryConfig
411
+ # @private
412
+ class Representation < Google::Apis::Core::JsonRepresentation
413
+ property :max_attempts, as: 'maxAttempts'
414
+ property :max_backoff, as: 'maxBackoff'
415
+ property :max_doublings, as: 'maxDoublings'
416
+ property :max_retry_duration, as: 'maxRetryDuration'
417
+ property :min_backoff, as: 'minBackoff'
418
+ end
419
+ end
420
+
421
+ class RunTaskRequest
422
+ # @private
423
+ class Representation < Google::Apis::Core::JsonRepresentation
424
+ property :response_view, as: 'responseView'
425
+ end
426
+ end
427
+
428
+ class SetIamPolicyRequest
429
+ # @private
430
+ class Representation < Google::Apis::Core::JsonRepresentation
431
+ property :policy, as: 'policy', class: Google::Apis::CloudtasksV2::Policy, decorator: Google::Apis::CloudtasksV2::Policy::Representation
432
+
433
+ end
434
+ end
435
+
436
+ class StackdriverLoggingConfig
437
+ # @private
438
+ class Representation < Google::Apis::Core::JsonRepresentation
439
+ property :sampling_ratio, as: 'samplingRatio'
440
+ end
441
+ end
442
+
443
+ class Status
444
+ # @private
445
+ class Representation < Google::Apis::Core::JsonRepresentation
446
+ property :code, as: 'code'
447
+ collection :details, as: 'details'
448
+ property :message, as: 'message'
449
+ end
450
+ end
451
+
452
+ class Task
453
+ # @private
454
+ class Representation < Google::Apis::Core::JsonRepresentation
455
+ property :app_engine_http_request, as: 'appEngineHttpRequest', class: Google::Apis::CloudtasksV2::AppEngineHttpRequest, decorator: Google::Apis::CloudtasksV2::AppEngineHttpRequest::Representation
456
+
457
+ property :create_time, as: 'createTime'
458
+ property :dispatch_count, as: 'dispatchCount'
459
+ property :dispatch_deadline, as: 'dispatchDeadline'
460
+ property :first_attempt, as: 'firstAttempt', class: Google::Apis::CloudtasksV2::Attempt, decorator: Google::Apis::CloudtasksV2::Attempt::Representation
461
+
462
+ property :http_request, as: 'httpRequest', class: Google::Apis::CloudtasksV2::HttpRequest, decorator: Google::Apis::CloudtasksV2::HttpRequest::Representation
463
+
464
+ property :last_attempt, as: 'lastAttempt', class: Google::Apis::CloudtasksV2::Attempt, decorator: Google::Apis::CloudtasksV2::Attempt::Representation
465
+
466
+ property :name, as: 'name'
467
+ property :response_count, as: 'responseCount'
468
+ property :schedule_time, as: 'scheduleTime'
469
+ property :view, as: 'view'
470
+ end
471
+ end
472
+
473
+ class TestIamPermissionsRequest
474
+ # @private
475
+ class Representation < Google::Apis::Core::JsonRepresentation
476
+ collection :permissions, as: 'permissions'
477
+ end
478
+ end
479
+
480
+ class TestIamPermissionsResponse
481
+ # @private
482
+ class Representation < Google::Apis::Core::JsonRepresentation
483
+ collection :permissions, as: 'permissions'
484
+ end
485
+ end
486
+ end
487
+ end
488
+ end