google-apis-cloudtasks_v2beta2 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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 CloudtasksV2beta2
18
+ # Version of the google-apis-cloudtasks_v2beta2 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 = "20201202"
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,572 @@
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 CloudtasksV2beta2
24
+
25
+ class AcknowledgeTaskRequest
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class AppEngineHttpRequest
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class AppEngineHttpTarget
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class AppEngineRouting
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class AttemptStatus
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class Binding
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class CancelLeaseRequest
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class CreateTaskRequest
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class Empty
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class Expr
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class GetIamPolicyRequest
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class GetPolicyOptions
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class LeaseTasksRequest
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class LeaseTasksResponse
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class ListLocationsResponse
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class ListQueuesResponse
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class ListTasksResponse
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class Location
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class PauseQueueRequest
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class Policy
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class PullMessage
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class PullTarget
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class PurgeQueueRequest
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class Queue
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class QueueStats
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
175
+ class RateLimits
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
181
+ class RenewLeaseRequest
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
187
+ class ResumeQueueRequest
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
193
+ class RetryConfig
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
199
+ class RunTaskRequest
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
205
+ class SetIamPolicyRequest
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
211
+ class Status
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
217
+ class Task
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
223
+ class TaskStatus
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
229
+ class TestIamPermissionsRequest
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
235
+ class TestIamPermissionsResponse
236
+ class Representation < Google::Apis::Core::JsonRepresentation; end
237
+
238
+ include Google::Apis::Core::JsonObjectSupport
239
+ end
240
+
241
+ class AcknowledgeTaskRequest
242
+ # @private
243
+ class Representation < Google::Apis::Core::JsonRepresentation
244
+ property :schedule_time, as: 'scheduleTime'
245
+ end
246
+ end
247
+
248
+ class AppEngineHttpRequest
249
+ # @private
250
+ class Representation < Google::Apis::Core::JsonRepresentation
251
+ property :app_engine_routing, as: 'appEngineRouting', class: Google::Apis::CloudtasksV2beta2::AppEngineRouting, decorator: Google::Apis::CloudtasksV2beta2::AppEngineRouting::Representation
252
+
253
+ hash :headers, as: 'headers'
254
+ property :http_method, as: 'httpMethod'
255
+ property :payload, :base64 => true, as: 'payload'
256
+ property :relative_url, as: 'relativeUrl'
257
+ end
258
+ end
259
+
260
+ class AppEngineHttpTarget
261
+ # @private
262
+ class Representation < Google::Apis::Core::JsonRepresentation
263
+ property :app_engine_routing_override, as: 'appEngineRoutingOverride', class: Google::Apis::CloudtasksV2beta2::AppEngineRouting, decorator: Google::Apis::CloudtasksV2beta2::AppEngineRouting::Representation
264
+
265
+ end
266
+ end
267
+
268
+ class AppEngineRouting
269
+ # @private
270
+ class Representation < Google::Apis::Core::JsonRepresentation
271
+ property :host, as: 'host'
272
+ property :instance, as: 'instance'
273
+ property :service, as: 'service'
274
+ property :version, as: 'version'
275
+ end
276
+ end
277
+
278
+ class AttemptStatus
279
+ # @private
280
+ class Representation < Google::Apis::Core::JsonRepresentation
281
+ property :dispatch_time, as: 'dispatchTime'
282
+ property :response_status, as: 'responseStatus', class: Google::Apis::CloudtasksV2beta2::Status, decorator: Google::Apis::CloudtasksV2beta2::Status::Representation
283
+
284
+ property :response_time, as: 'responseTime'
285
+ property :schedule_time, as: 'scheduleTime'
286
+ end
287
+ end
288
+
289
+ class Binding
290
+ # @private
291
+ class Representation < Google::Apis::Core::JsonRepresentation
292
+ property :condition, as: 'condition', class: Google::Apis::CloudtasksV2beta2::Expr, decorator: Google::Apis::CloudtasksV2beta2::Expr::Representation
293
+
294
+ collection :members, as: 'members'
295
+ property :role, as: 'role'
296
+ end
297
+ end
298
+
299
+ class CancelLeaseRequest
300
+ # @private
301
+ class Representation < Google::Apis::Core::JsonRepresentation
302
+ property :response_view, as: 'responseView'
303
+ property :schedule_time, as: 'scheduleTime'
304
+ end
305
+ end
306
+
307
+ class CreateTaskRequest
308
+ # @private
309
+ class Representation < Google::Apis::Core::JsonRepresentation
310
+ property :response_view, as: 'responseView'
311
+ property :task, as: 'task', class: Google::Apis::CloudtasksV2beta2::Task, decorator: Google::Apis::CloudtasksV2beta2::Task::Representation
312
+
313
+ end
314
+ end
315
+
316
+ class Empty
317
+ # @private
318
+ class Representation < Google::Apis::Core::JsonRepresentation
319
+ end
320
+ end
321
+
322
+ class Expr
323
+ # @private
324
+ class Representation < Google::Apis::Core::JsonRepresentation
325
+ property :description, as: 'description'
326
+ property :expression, as: 'expression'
327
+ property :location, as: 'location'
328
+ property :title, as: 'title'
329
+ end
330
+ end
331
+
332
+ class GetIamPolicyRequest
333
+ # @private
334
+ class Representation < Google::Apis::Core::JsonRepresentation
335
+ property :options, as: 'options', class: Google::Apis::CloudtasksV2beta2::GetPolicyOptions, decorator: Google::Apis::CloudtasksV2beta2::GetPolicyOptions::Representation
336
+
337
+ end
338
+ end
339
+
340
+ class GetPolicyOptions
341
+ # @private
342
+ class Representation < Google::Apis::Core::JsonRepresentation
343
+ property :requested_policy_version, as: 'requestedPolicyVersion'
344
+ end
345
+ end
346
+
347
+ class LeaseTasksRequest
348
+ # @private
349
+ class Representation < Google::Apis::Core::JsonRepresentation
350
+ property :filter, as: 'filter'
351
+ property :lease_duration, as: 'leaseDuration'
352
+ property :max_tasks, as: 'maxTasks'
353
+ property :response_view, as: 'responseView'
354
+ end
355
+ end
356
+
357
+ class LeaseTasksResponse
358
+ # @private
359
+ class Representation < Google::Apis::Core::JsonRepresentation
360
+ collection :tasks, as: 'tasks', class: Google::Apis::CloudtasksV2beta2::Task, decorator: Google::Apis::CloudtasksV2beta2::Task::Representation
361
+
362
+ end
363
+ end
364
+
365
+ class ListLocationsResponse
366
+ # @private
367
+ class Representation < Google::Apis::Core::JsonRepresentation
368
+ collection :locations, as: 'locations', class: Google::Apis::CloudtasksV2beta2::Location, decorator: Google::Apis::CloudtasksV2beta2::Location::Representation
369
+
370
+ property :next_page_token, as: 'nextPageToken'
371
+ end
372
+ end
373
+
374
+ class ListQueuesResponse
375
+ # @private
376
+ class Representation < Google::Apis::Core::JsonRepresentation
377
+ property :next_page_token, as: 'nextPageToken'
378
+ collection :queues, as: 'queues', class: Google::Apis::CloudtasksV2beta2::Queue, decorator: Google::Apis::CloudtasksV2beta2::Queue::Representation
379
+
380
+ end
381
+ end
382
+
383
+ class ListTasksResponse
384
+ # @private
385
+ class Representation < Google::Apis::Core::JsonRepresentation
386
+ property :next_page_token, as: 'nextPageToken'
387
+ collection :tasks, as: 'tasks', class: Google::Apis::CloudtasksV2beta2::Task, decorator: Google::Apis::CloudtasksV2beta2::Task::Representation
388
+
389
+ end
390
+ end
391
+
392
+ class Location
393
+ # @private
394
+ class Representation < Google::Apis::Core::JsonRepresentation
395
+ property :display_name, as: 'displayName'
396
+ hash :labels, as: 'labels'
397
+ property :location_id, as: 'locationId'
398
+ hash :metadata, as: 'metadata'
399
+ property :name, as: 'name'
400
+ end
401
+ end
402
+
403
+ class PauseQueueRequest
404
+ # @private
405
+ class Representation < Google::Apis::Core::JsonRepresentation
406
+ end
407
+ end
408
+
409
+ class Policy
410
+ # @private
411
+ class Representation < Google::Apis::Core::JsonRepresentation
412
+ collection :bindings, as: 'bindings', class: Google::Apis::CloudtasksV2beta2::Binding, decorator: Google::Apis::CloudtasksV2beta2::Binding::Representation
413
+
414
+ property :etag, :base64 => true, as: 'etag'
415
+ property :version, as: 'version'
416
+ end
417
+ end
418
+
419
+ class PullMessage
420
+ # @private
421
+ class Representation < Google::Apis::Core::JsonRepresentation
422
+ property :payload, :base64 => true, as: 'payload'
423
+ property :tag, as: 'tag'
424
+ end
425
+ end
426
+
427
+ class PullTarget
428
+ # @private
429
+ class Representation < Google::Apis::Core::JsonRepresentation
430
+ end
431
+ end
432
+
433
+ class PurgeQueueRequest
434
+ # @private
435
+ class Representation < Google::Apis::Core::JsonRepresentation
436
+ end
437
+ end
438
+
439
+ class Queue
440
+ # @private
441
+ class Representation < Google::Apis::Core::JsonRepresentation
442
+ property :app_engine_http_target, as: 'appEngineHttpTarget', class: Google::Apis::CloudtasksV2beta2::AppEngineHttpTarget, decorator: Google::Apis::CloudtasksV2beta2::AppEngineHttpTarget::Representation
443
+
444
+ property :name, as: 'name'
445
+ property :pull_target, as: 'pullTarget', class: Google::Apis::CloudtasksV2beta2::PullTarget, decorator: Google::Apis::CloudtasksV2beta2::PullTarget::Representation
446
+
447
+ property :purge_time, as: 'purgeTime'
448
+ property :rate_limits, as: 'rateLimits', class: Google::Apis::CloudtasksV2beta2::RateLimits, decorator: Google::Apis::CloudtasksV2beta2::RateLimits::Representation
449
+
450
+ property :retry_config, as: 'retryConfig', class: Google::Apis::CloudtasksV2beta2::RetryConfig, decorator: Google::Apis::CloudtasksV2beta2::RetryConfig::Representation
451
+
452
+ property :state, as: 'state'
453
+ property :stats, as: 'stats', class: Google::Apis::CloudtasksV2beta2::QueueStats, decorator: Google::Apis::CloudtasksV2beta2::QueueStats::Representation
454
+
455
+ end
456
+ end
457
+
458
+ class QueueStats
459
+ # @private
460
+ class Representation < Google::Apis::Core::JsonRepresentation
461
+ property :concurrent_dispatches_count, :numeric_string => true, as: 'concurrentDispatchesCount'
462
+ property :effective_execution_rate, as: 'effectiveExecutionRate'
463
+ property :executed_last_minute_count, :numeric_string => true, as: 'executedLastMinuteCount'
464
+ property :oldest_estimated_arrival_time, as: 'oldestEstimatedArrivalTime'
465
+ property :tasks_count, :numeric_string => true, as: 'tasksCount'
466
+ end
467
+ end
468
+
469
+ class RateLimits
470
+ # @private
471
+ class Representation < Google::Apis::Core::JsonRepresentation
472
+ property :max_burst_size, as: 'maxBurstSize'
473
+ property :max_concurrent_tasks, as: 'maxConcurrentTasks'
474
+ property :max_tasks_dispatched_per_second, as: 'maxTasksDispatchedPerSecond'
475
+ end
476
+ end
477
+
478
+ class RenewLeaseRequest
479
+ # @private
480
+ class Representation < Google::Apis::Core::JsonRepresentation
481
+ property :lease_duration, as: 'leaseDuration'
482
+ property :response_view, as: 'responseView'
483
+ property :schedule_time, as: 'scheduleTime'
484
+ end
485
+ end
486
+
487
+ class ResumeQueueRequest
488
+ # @private
489
+ class Representation < Google::Apis::Core::JsonRepresentation
490
+ end
491
+ end
492
+
493
+ class RetryConfig
494
+ # @private
495
+ class Representation < Google::Apis::Core::JsonRepresentation
496
+ property :max_attempts, as: 'maxAttempts'
497
+ property :max_backoff, as: 'maxBackoff'
498
+ property :max_doublings, as: 'maxDoublings'
499
+ property :max_retry_duration, as: 'maxRetryDuration'
500
+ property :min_backoff, as: 'minBackoff'
501
+ property :unlimited_attempts, as: 'unlimitedAttempts'
502
+ end
503
+ end
504
+
505
+ class RunTaskRequest
506
+ # @private
507
+ class Representation < Google::Apis::Core::JsonRepresentation
508
+ property :response_view, as: 'responseView'
509
+ end
510
+ end
511
+
512
+ class SetIamPolicyRequest
513
+ # @private
514
+ class Representation < Google::Apis::Core::JsonRepresentation
515
+ property :policy, as: 'policy', class: Google::Apis::CloudtasksV2beta2::Policy, decorator: Google::Apis::CloudtasksV2beta2::Policy::Representation
516
+
517
+ end
518
+ end
519
+
520
+ class Status
521
+ # @private
522
+ class Representation < Google::Apis::Core::JsonRepresentation
523
+ property :code, as: 'code'
524
+ collection :details, as: 'details'
525
+ property :message, as: 'message'
526
+ end
527
+ end
528
+
529
+ class Task
530
+ # @private
531
+ class Representation < Google::Apis::Core::JsonRepresentation
532
+ property :app_engine_http_request, as: 'appEngineHttpRequest', class: Google::Apis::CloudtasksV2beta2::AppEngineHttpRequest, decorator: Google::Apis::CloudtasksV2beta2::AppEngineHttpRequest::Representation
533
+
534
+ property :create_time, as: 'createTime'
535
+ property :name, as: 'name'
536
+ property :pull_message, as: 'pullMessage', class: Google::Apis::CloudtasksV2beta2::PullMessage, decorator: Google::Apis::CloudtasksV2beta2::PullMessage::Representation
537
+
538
+ property :schedule_time, as: 'scheduleTime'
539
+ property :status, as: 'status', class: Google::Apis::CloudtasksV2beta2::TaskStatus, decorator: Google::Apis::CloudtasksV2beta2::TaskStatus::Representation
540
+
541
+ property :view, as: 'view'
542
+ end
543
+ end
544
+
545
+ class TaskStatus
546
+ # @private
547
+ class Representation < Google::Apis::Core::JsonRepresentation
548
+ property :attempt_dispatch_count, as: 'attemptDispatchCount'
549
+ property :attempt_response_count, as: 'attemptResponseCount'
550
+ property :first_attempt_status, as: 'firstAttemptStatus', class: Google::Apis::CloudtasksV2beta2::AttemptStatus, decorator: Google::Apis::CloudtasksV2beta2::AttemptStatus::Representation
551
+
552
+ property :last_attempt_status, as: 'lastAttemptStatus', class: Google::Apis::CloudtasksV2beta2::AttemptStatus, decorator: Google::Apis::CloudtasksV2beta2::AttemptStatus::Representation
553
+
554
+ end
555
+ end
556
+
557
+ class TestIamPermissionsRequest
558
+ # @private
559
+ class Representation < Google::Apis::Core::JsonRepresentation
560
+ collection :permissions, as: 'permissions'
561
+ end
562
+ end
563
+
564
+ class TestIamPermissionsResponse
565
+ # @private
566
+ class Representation < Google::Apis::Core::JsonRepresentation
567
+ collection :permissions, as: 'permissions'
568
+ end
569
+ end
570
+ end
571
+ end
572
+ end