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