google-api-client 0.19.4 → 0.19.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +35 -0
  3. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  4. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +3 -3
  5. data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +4 -3
  6. data/generated/google/apis/appengine_v1beta.rb +1 -1
  7. data/generated/google/apis/appengine_v1beta/classes.rb +53 -0
  8. data/generated/google/apis/appengine_v1beta/representations.rb +19 -0
  9. data/generated/google/apis/appsactivity_v1.rb +1 -13
  10. data/generated/google/apis/bigquery_v2.rb +1 -1
  11. data/generated/google/apis/bigquery_v2/classes.rb +4 -4
  12. data/generated/google/apis/cloudiot_v1.rb +1 -1
  13. data/generated/google/apis/cloudiot_v1/classes.rb +0 -136
  14. data/generated/google/apis/cloudiot_v1/representations.rb +0 -33
  15. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  16. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1 -1
  17. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  18. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +1 -1
  19. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  20. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +1 -1
  21. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  22. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +197 -165
  23. data/generated/google/apis/cloudtasks_v2beta2/service.rb +86 -75
  24. data/generated/google/apis/content_v2.rb +1 -1
  25. data/generated/google/apis/content_v2/classes.rb +194 -2
  26. data/generated/google/apis/content_v2/representations.rb +72 -0
  27. data/generated/google/apis/content_v2/service.rb +35 -0
  28. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  29. data/generated/google/apis/dataproc_v1beta2/service.rb +22 -28
  30. data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
  31. data/generated/google/apis/deploymentmanager_alpha/classes.rb +8 -5
  32. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  33. data/generated/google/apis/deploymentmanager_v2/classes.rb +8 -5
  34. data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
  35. data/generated/google/apis/deploymentmanager_v2beta/classes.rb +8 -5
  36. data/generated/google/apis/dlp_v2beta2.rb +1 -1
  37. data/generated/google/apis/dlp_v2beta2/service.rb +25 -13
  38. data/generated/google/apis/dns_v1beta2.rb +1 -1
  39. data/generated/google/apis/dns_v1beta2/classes.rb +6 -0
  40. data/generated/google/apis/dns_v1beta2/representations.rb +1 -0
  41. data/generated/google/apis/drive_v2.rb +1 -1
  42. data/generated/google/apis/drive_v2/classes.rb +7 -0
  43. data/generated/google/apis/drive_v2/representations.rb +1 -0
  44. data/generated/google/apis/drive_v3.rb +1 -1
  45. data/generated/google/apis/drive_v3/classes.rb +7 -0
  46. data/generated/google/apis/drive_v3/representations.rb +1 -0
  47. data/generated/google/apis/firebaseremoteconfig_v1.rb +1 -1
  48. data/generated/google/apis/firebaseremoteconfig_v1/classes.rb +1 -1
  49. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  50. data/generated/google/apis/gmail_v1.rb +1 -1
  51. data/generated/google/apis/gmail_v1/classes.rb +52 -0
  52. data/generated/google/apis/gmail_v1/representations.rb +16 -0
  53. data/generated/google/apis/iam_v1.rb +1 -1
  54. data/generated/google/apis/iam_v1/classes.rb +69 -0
  55. data/generated/google/apis/iam_v1/representations.rb +41 -0
  56. data/generated/google/apis/iam_v1/service.rb +31 -0
  57. data/generated/google/apis/ml_v1.rb +1 -1
  58. data/generated/google/apis/ml_v1/classes.rb +7 -0
  59. data/generated/google/apis/ml_v1/representations.rb +1 -0
  60. data/generated/google/apis/monitoring_v3.rb +1 -1
  61. data/generated/google/apis/monitoring_v3/service.rb +5 -5
  62. data/generated/google/apis/partners_v2.rb +1 -1
  63. data/generated/google/apis/partners_v2/classes.rb +0 -31
  64. data/generated/google/apis/partners_v2/representations.rb +0 -15
  65. data/generated/google/apis/partners_v2/service.rb +0 -55
  66. data/generated/google/apis/safebrowsing_v4.rb +1 -1
  67. data/generated/google/apis/safebrowsing_v4/classes.rb +7 -0
  68. data/generated/google/apis/safebrowsing_v4/representations.rb +1 -0
  69. data/generated/google/apis/sheets_v4.rb +1 -1
  70. data/generated/google/apis/speech_v1.rb +1 -1
  71. data/generated/google/apis/speech_v1/classes.rb +14 -7
  72. data/generated/google/apis/speech_v1/representations.rb +1 -0
  73. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  74. data/generated/google/apis/tpu_v1alpha1/classes.rb +95 -11
  75. data/generated/google/apis/tpu_v1alpha1/representations.rb +54 -0
  76. data/generated/google/apis/tpu_v1alpha1/service.rb +139 -1
  77. data/generated/google/apis/vision_v1.rb +1 -1
  78. data/generated/google/apis/vision_v1/classes.rb +128 -0
  79. data/generated/google/apis/vision_v1/representations.rb +43 -0
  80. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  81. data/generated/google/apis/youtube_v3.rb +1 -1
  82. data/generated/google/apis/youtube_v3/classes.rb +0 -2
  83. data/lib/google/apis/version.rb +1 -1
  84. metadata +2 -2
@@ -22,18 +22,6 @@ module Google
22
22
  module Apis
23
23
  module CloudiotV1
24
24
 
25
- class AuditConfig
26
- class Representation < Google::Apis::Core::JsonRepresentation; end
27
-
28
- include Google::Apis::Core::JsonObjectSupport
29
- end
30
-
31
- class AuditLogConfig
32
- class Representation < Google::Apis::Core::JsonRepresentation; end
33
-
34
- include Google::Apis::Core::JsonObjectSupport
35
- end
36
-
37
25
  class Binding
38
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
27
 
@@ -196,24 +184,6 @@ module Google
196
184
  include Google::Apis::Core::JsonObjectSupport
197
185
  end
198
186
 
199
- class AuditConfig
200
- # @private
201
- class Representation < Google::Apis::Core::JsonRepresentation
202
- collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::CloudiotV1::AuditLogConfig, decorator: Google::Apis::CloudiotV1::AuditLogConfig::Representation
203
-
204
- collection :exempted_members, as: 'exemptedMembers'
205
- property :service, as: 'service'
206
- end
207
- end
208
-
209
- class AuditLogConfig
210
- # @private
211
- class Representation < Google::Apis::Core::JsonRepresentation
212
- collection :exempted_members, as: 'exemptedMembers'
213
- property :log_type, as: 'logType'
214
- end
215
- end
216
-
217
187
  class Binding
218
188
  # @private
219
189
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -382,12 +352,9 @@ module Google
382
352
  class Policy
383
353
  # @private
384
354
  class Representation < Google::Apis::Core::JsonRepresentation
385
- collection :audit_configs, as: 'auditConfigs', class: Google::Apis::CloudiotV1::AuditConfig, decorator: Google::Apis::CloudiotV1::AuditConfig::Representation
386
-
387
355
  collection :bindings, as: 'bindings', class: Google::Apis::CloudiotV1::Binding, decorator: Google::Apis::CloudiotV1::Binding::Representation
388
356
 
389
357
  property :etag, :base64 => true, as: 'etag'
390
- property :iam_owned, as: 'iamOwned'
391
358
  property :version, as: 'version'
392
359
  end
393
360
  end
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/resource-manager
27
27
  module CloudresourcemanagerV1
28
28
  VERSION = 'V1'
29
- REVISION = '20180103'
29
+ REVISION = '20180122'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -51,7 +51,7 @@ module Google
51
51
  # If there are AuditConfigs for both `allServices` and a specific service,
52
52
  # the union of the two AuditConfigs is used for that service: the log_types
53
53
  # specified in each AuditConfig are enabled, and the exempted_members in each
54
- # AuditConfig are exempted.
54
+ # AuditLogConfig are exempted.
55
55
  # Example Policy with multiple AuditConfigs:
56
56
  # `
57
57
  # "audit_configs": [
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/resource-manager
27
27
  module CloudresourcemanagerV1beta1
28
28
  VERSION = 'V1beta1'
29
- REVISION = '20180103'
29
+ REVISION = '20180122'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -51,7 +51,7 @@ module Google
51
51
  # If there are AuditConfigs for both `allServices` and a specific service,
52
52
  # the union of the two AuditConfigs is used for that service: the log_types
53
53
  # specified in each AuditConfig are enabled, and the exempted_members in each
54
- # AuditConfig are exempted.
54
+ # AuditLogConfig are exempted.
55
55
  # Example Policy with multiple AuditConfigs:
56
56
  # `
57
57
  # "audit_configs": [
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/resource-manager
27
27
  module CloudresourcemanagerV2beta1
28
28
  VERSION = 'V2beta1'
29
- REVISION = '20180103'
29
+ REVISION = '20180122'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -29,7 +29,7 @@ module Google
29
29
  # If there are AuditConfigs for both `allServices` and a specific service,
30
30
  # the union of the two AuditConfigs is used for that service: the log_types
31
31
  # specified in each AuditConfig are enabled, and the exempted_members in each
32
- # AuditConfig are exempted.
32
+ # AuditLogConfig are exempted.
33
33
  # Example Policy with multiple AuditConfigs:
34
34
  # `
35
35
  # "audit_configs": [
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/cloud-tasks/
27
27
  module CloudtasksV2beta2
28
28
  VERSION = 'V2beta2'
29
- REVISION = '20180120'
29
+ REVISION = '20180123'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -23,15 +23,16 @@ module Google
23
23
  module CloudtasksV2beta2
24
24
 
25
25
  # Request message for acknowledging a task using
26
- # CloudTasks.AcknowledgeTask.
26
+ # AcknowledgeTask.
27
27
  class AcknowledgeTaskRequest
28
28
  include Google::Apis::Core::Hashable
29
29
 
30
30
  # Required.
31
- # The task's current schedule time, available in the Task.schedule_time
32
- # returned in LeaseTasksResponse.tasks or
33
- # CloudTasks.RenewLease. This restriction is to ensure that your
34
- # worker currently holds the lease.
31
+ # The task's current schedule time, available in the
32
+ # schedule_time returned by
33
+ # LeaseTasks response or
34
+ # RenewLease response. This restriction is
35
+ # to ensure that your worker currently holds the lease.
35
36
  # Corresponds to the JSON property `scheduleTime`
36
37
  # @return [String]
37
38
  attr_accessor :schedule_time
@@ -50,7 +51,7 @@ module Google
50
51
  # The message defines the HTTP request that is sent to an App Engine app when
51
52
  # the task is dispatched.
52
53
  # This proto can only be used for tasks in a queue which has
53
- # Queue.app_engine_http_target set.
54
+ # app_engine_http_target set.
54
55
  # Using AppEngineHttpRequest requires
55
56
  # [`appengine.applications.get`](/appengine/docs/admin-api/access-control)
56
57
  # Google IAM permission for the project
@@ -64,11 +65,14 @@ module Google
64
65
  # [dispatch files](/appengine/docs/python/config/dispatchref).
65
66
  # The AppEngineRouting used to construct the URL that the task is
66
67
  # delivered to can be set at the queue-level or task-level:
67
- # * If set, AppEngineHttpTarget.app_engine_routing_override is used for
68
- # all tasks in the queue, no matter what the setting is for the
68
+ # * If set,
69
+ # app_engine_routing_override
70
+ # is used for all tasks in the queue, no matter what the setting
71
+ # is for the
69
72
  # task-level app_engine_routing.
70
73
  # The `url` that the task will be sent to is:
71
- # * `url =` AppEngineRouting.host `+` AppEngineHttpRequest.relative_url
74
+ # * `url =` host `+`
75
+ # relative_url
72
76
  # The task attempt has succeeded if the app's request handler returns
73
77
  # an HTTP response code in the range [`200` - `299`]. `503` is
74
78
  # considered an App Engine system error instead of an application
@@ -103,15 +107,15 @@ module Google
103
107
  # This header can be modified, but Cloud Tasks will append
104
108
  # `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
105
109
  # modified `User-Agent`.
106
- # If the task has an AppEngineHttpRequest.payload, Cloud Tasks sets the
107
- # following headers:
110
+ # If the task has a payload, Cloud
111
+ # Tasks sets the following headers:
108
112
  # * `Content-Type`: By default, the `Content-Type` header is set to
109
- # `"application/octet-stream"`. The default can be overridden by explictly
113
+ # `"application/octet-stream"`. The default can be overridden by explicitly
110
114
  # setting `Content-Type` to a particular media type when the
111
115
  # [task is created](google.cloud.tasks.v2beta2.CloudTasks.CreateTask).
112
116
  # For example, `Content-Type` can be set to `"application/json"`.
113
117
  # * `Content-Length`: This is computed by Cloud Tasks. This value is
114
- # output only. It cannot be changed.
118
+ # output only. It cannot be changed.
115
119
  # The headers below cannot be set or overridden:
116
120
  # * `Host`
117
121
  # * `X-Google-*`
@@ -124,7 +128,7 @@ module Google
124
128
  # visible when the task is returned in a Cloud Tasks response.
125
129
  # Although there is no specific limit for the maximum number of headers or
126
130
  # the size, there is a limit on the maximum size of the Task. For more
127
- # information, see the CloudTasks.CreateTask documentation.
131
+ # information, see the CreateTask documentation.
128
132
  # Corresponds to the JSON property `headers`
129
133
  # @return [Hash<String,String>]
130
134
  attr_accessor :headers
@@ -241,31 +245,39 @@ module Google
241
245
  # example <app-id>.appspot.com, which is associated with the
242
246
  # queue's project ID. Some tasks which were created using the App Engine
243
247
  # SDK use a custom domain name.
244
- # * `service =` AppEngineRouting.service
245
- # * `version =` AppEngineRouting.version
248
+ # * `service =` service
249
+ # * `version =` version
246
250
  # * `version_dot_service =`
247
- # AppEngineRouting.version `+ '.' +` AppEngineRouting.service
248
- # * `instance =` AppEngineRouting.instance
251
+ # version `+ '.' +`
252
+ # service
253
+ # * `instance =` instance
249
254
  # * `instance_dot_service =`
250
- # AppEngineRouting.instance `+ '.' +` AppEngineRouting.service
255
+ # instance `+ '.' +`
256
+ # service
251
257
  # * `instance_dot_version =`
252
- # AppEngineRouting.instance `+ '.' +` AppEngineRouting.version
258
+ # instance `+ '.' +`
259
+ # version
253
260
  # * `instance_dot_version_dot_service =`
254
- # AppEngineRouting.instance `+ '.' +`
255
- # AppEngineRouting.version `+ '.' +` AppEngineRouting.service
256
- # If AppEngineRouting.service is empty, then the task will be sent
261
+ # instance `+ '.' +`
262
+ # version `+ '.' +`
263
+ # service
264
+ # If service is empty, then the task will be sent
257
265
  # to the service which is the default service when the task is attempted.
258
- # If AppEngineRouting.version is empty, then the task will be sent
266
+ # If version is empty, then the task will be sent
259
267
  # to the version which is the default version when the task is attempted.
260
- # If AppEngineRouting.instance is empty, then the task will be sent
261
- # to an instance which is available when the task is attempted.
262
- # When AppEngineRouting.service is "default",
263
- # AppEngineRouting.version is "default", and
264
- # AppEngineRouting.instance is empty, AppEngineRouting.host is
265
- # shortened to just the `application_domain_name`.
266
- # If AppEngineRouting.service, AppEngineRouting.version, or
267
- # AppEngineRouting.instance is invalid, then the task will be sent
268
- # to the default version of the default service when the task is attempted.
268
+ # If instance is empty, then the task
269
+ # will be sent to an instance which is available when the task is
270
+ # attempted.
271
+ # When service is "default",
272
+ # version is "default", and
273
+ # instance is empty,
274
+ # host is shortened to just the
275
+ # `application_domain_name`.
276
+ # If service,
277
+ # version, or
278
+ # instance is invalid, then the task
279
+ # will be sent to the default version of the default service when
280
+ # the task is attempted.
269
281
  # Corresponds to the JSON property `host`
270
282
  # @return [String]
271
283
  attr_accessor :host
@@ -288,14 +300,17 @@ module Google
288
300
  # App service.
289
301
  # By default, the task is sent to the service which is the default
290
302
  # service when the task is attempted ("default").
291
- # For some queues or tasks which were created using the App Engine Task Queue
292
- # API, AppEngineRouting.host is not parsable into
293
- # AppEngineRouting.service, AppEngineRouting.version, and
294
- # AppEngineRouting.instance. For example, some tasks which were created
295
- # using the App Engine SDK use a custom domain name; custom domains are not
296
- # parsed by Cloud Tasks. If AppEngineRouting.host is not parsable, then
297
- # AppEngineRouting.service, AppEngineRouting.version, and
298
- # AppEngineRouting.instance are the empty string.
303
+ # For some queues or tasks which were created using the App Engine
304
+ # Task Queue API, host is not parsable
305
+ # into service,
306
+ # version, and
307
+ # instance. For example, some tasks
308
+ # which were created using the App Engine SDK use a custom domain
309
+ # name; custom domains are not parsed by Cloud Tasks. If
310
+ # host is not parsable, then
311
+ # service,
312
+ # version, and
313
+ # instance are the empty string.
299
314
  # Corresponds to the JSON property `service`
300
315
  # @return [String]
301
316
  attr_accessor :service
@@ -303,14 +318,17 @@ module Google
303
318
  # App version.
304
319
  # By default, the task is sent to the version which is the default
305
320
  # version when the task is attempted ("default").
306
- # For some queues or tasks which were created using the App Engine Task Queue
307
- # API, AppEngineRouting.host is not parsable into
308
- # AppEngineRouting.service, AppEngineRouting.version, and
309
- # AppEngineRouting.instance. For example, some tasks which were created
310
- # using the App Engine SDK use a custom domain name; custom domains are not
311
- # parsed by Cloud Tasks. If AppEngineRouting.host is not parsable, then
312
- # AppEngineRouting.service, AppEngineRouting.version, and
313
- # AppEngineRouting.instance are the empty string.
321
+ # For some queues or tasks which were created using the App Engine
322
+ # Task Queue API, host is not parsable
323
+ # into service,
324
+ # version, and
325
+ # instance. For example, some tasks
326
+ # which were created using the App Engine SDK use a custom domain
327
+ # name; custom domains are not parsed by Cloud Tasks. If
328
+ # host is not parsable, then
329
+ # service,
330
+ # version, and
331
+ # instance are the empty string.
314
332
  # Corresponds to the JSON property `version`
315
333
  # @return [String]
316
334
  attr_accessor :version
@@ -447,29 +465,30 @@ module Google
447
465
  end
448
466
 
449
467
  # Request message for canceling a lease using
450
- # CloudTasks.CancelLease.
468
+ # CancelLease.
451
469
  class CancelLeaseRequest
452
470
  include Google::Apis::Core::Hashable
453
471
 
454
472
  # The response_view specifies which subset of the Task will be
455
473
  # returned.
456
- # By default response_view is Task.View.BASIC; not all
474
+ # By default response_view is BASIC; not all
457
475
  # information is retrieved by default because some data, such as
458
476
  # payloads, might be desirable to return only when needed because
459
477
  # of its large size or because of the sensitivity of data that it
460
478
  # contains.
461
- # Authorization for Task.View.FULL requires `cloudtasks.tasks.fullView`
462
- # [Google IAM](/iam/) permission on the
463
- # Task.name resource.
479
+ # Authorization for FULL requires
480
+ # `cloudtasks.tasks.fullView` [Google IAM](/iam/) permission on the
481
+ # Task resource.
464
482
  # Corresponds to the JSON property `responseView`
465
483
  # @return [String]
466
484
  attr_accessor :response_view
467
485
 
468
486
  # Required.
469
- # The task's current schedule time, available in the Task.schedule_time
470
- # returned in LeaseTasksResponse.tasks or
471
- # CloudTasks.RenewLease. This restriction is to ensure that your
472
- # worker currently holds the lease.
487
+ # The task's current schedule time, available in the
488
+ # schedule_time returned by
489
+ # LeaseTasks response or
490
+ # RenewLease response. This restriction is
491
+ # to ensure that your worker currently holds the lease.
473
492
  # Corresponds to the JSON property `scheduleTime`
474
493
  # @return [String]
475
494
  attr_accessor :schedule_time
@@ -485,20 +504,20 @@ module Google
485
504
  end
486
505
  end
487
506
 
488
- # Request message for CloudTasks.CreateTask.
507
+ # Request message for CreateTask.
489
508
  class CreateTaskRequest
490
509
  include Google::Apis::Core::Hashable
491
510
 
492
511
  # The response_view specifies which subset of the Task will be
493
512
  # returned.
494
- # By default response_view is Task.View.BASIC; not all
513
+ # By default response_view is BASIC; not all
495
514
  # information is retrieved by default because some data, such as
496
515
  # payloads, might be desirable to return only when needed because
497
516
  # of its large size or because of the sensitivity of data that it
498
517
  # contains.
499
- # Authorization for Task.View.FULL requires `cloudtasks.tasks.fullView`
500
- # [Google IAM](/iam/) permission on the
501
- # Task.name resource.
518
+ # Authorization for FULL requires
519
+ # `cloudtasks.tasks.fullView` [Google IAM](/iam/) permission on the
520
+ # Task resource.
502
521
  # Corresponds to the JSON property `responseView`
503
522
  # @return [String]
504
523
  attr_accessor :response_view
@@ -551,14 +570,14 @@ module Google
551
570
  end
552
571
  end
553
572
 
554
- # Request message for leasing tasks using CloudTasks.LeaseTasks.
573
+ # Request message for leasing tasks using LeaseTasks.
555
574
  class LeaseTasksRequest
556
575
  include Google::Apis::Core::Hashable
557
576
 
558
577
  # `filter` can be used to specify a subset of tasks to lease.
559
578
  # When `filter` is set to `tag=<my-tag>` then the
560
- # LeaseTasksResponse will contain only tasks whose
561
- # PullMessage.tag is equal to `<my-tag>`. `<my-tag>` must be
579
+ # response will contain only tasks whose
580
+ # tag is equal to `<my-tag>`. `<my-tag>` must be
562
581
  # less than 500 characters.
563
582
  # When `filter` is set to `tag_function=oldest_tag()`, only tasks which have
564
583
  # the same tag as the task with the oldest schedule_time will be returned.
@@ -569,29 +588,23 @@ module Google
569
588
  # The `oldest_tag()` function returns tasks which have the same tag as the
570
589
  # oldest task (ordered by schedule time).
571
590
  # SDK compatibility: Although the SDK allows tags to be either
572
- # string or [bytes](/appengine/docs/standard/java/javadoc/com/google/appengine/
573
- # api/taskqueue/TaskOptions.html#tag-byte:A-),
574
- # only UTF-8 encoded tags can be used in Cloud Tasks. Tag which aren't UTF-8
575
- # encoded can't be used in LeaseTasksRequest.filter and won't display in
576
- # PullMessage.tag.
591
+ # string or
592
+ # [bytes](/appengine/docs/standard/java/javadoc/com/google/appengine/api/
593
+ # taskqueue/TaskOptions.html#tag-byte:A-),
594
+ # only UTF-8 encoded tags can be used in Cloud Tasks. Tag which
595
+ # aren't UTF-8 encoded can't be used in the
596
+ # filter and the task's
597
+ # tag will be displayed as empty in Cloud Tasks.
577
598
  # Corresponds to the JSON property `filter`
578
599
  # @return [String]
579
600
  attr_accessor :filter
580
601
 
581
- # The duration of the lease.
582
- # Each task returned in the LeaseTasksResponse will have its
583
- # Task.schedule_time set to the current time plus the
584
- # `lease_duration`. A task that has been returned in a
585
- # LeaseTasksResponse is leased -- that task will not be
586
- # returned in a different LeaseTasksResponse before the
587
- # Task.schedule_time.
588
- # After the worker has successfully finished the work
589
- # associated with the task, the worker must call
590
- # CloudTasks.AcknowledgeTask. If the task is not acknowledged
591
- # via CloudTasks.AcknowledgeTask before the
592
- # Task.schedule_time then it will be returned in a later
593
- # LeaseTasksResponse so that another worker can process
594
- # it.
602
+ # After the worker has successfully finished the work associated
603
+ # with the task, the worker must call via
604
+ # AcknowledgeTask before the
605
+ # schedule_time. Otherwise the task will be
606
+ # returned to a later LeaseTasks call so
607
+ # that another worker can retry it.
595
608
  # The maximum lease duration is 1 week.
596
609
  # `lease_duration` will be truncated to the nearest second.
597
610
  # Corresponds to the JSON property `leaseDuration`
@@ -606,13 +619,14 @@ module Google
606
619
 
607
620
  # The response_view specifies which subset of the Task will be
608
621
  # returned.
609
- # By default response_view is Task.View.BASIC; not all
622
+ # By default response_view is BASIC; not all
610
623
  # information is retrieved by default because some data, such as
611
624
  # payloads, might be desirable to return only when needed because
612
625
  # of its large size or because of the sensitivity of data that it
613
626
  # contains.
614
- # Authorization for Task.View.FULL requires `cloudtasks.tasks.fullView`
615
- # [Google IAM](/iam/) permission on the Task.name resource.
627
+ # Authorization for FULL requires
628
+ # `cloudtasks.tasks.fullView` [Google IAM](/iam/) permission on the
629
+ # Task resource.
616
630
  # Corresponds to the JSON property `responseView`
617
631
  # @return [String]
618
632
  attr_accessor :response_view
@@ -630,7 +644,7 @@ module Google
630
644
  end
631
645
  end
632
646
 
633
- # Response message for leasing tasks using CloudTasks.LeaseTasks.
647
+ # Response message for leasing tasks using LeaseTasks.
634
648
  class LeaseTasksResponse
635
649
  include Google::Apis::Core::Hashable
636
650
 
@@ -674,14 +688,14 @@ module Google
674
688
  end
675
689
  end
676
690
 
677
- # Response message for CloudTasks.ListQueues.
691
+ # Response message for ListQueues.
678
692
  class ListQueuesResponse
679
693
  include Google::Apis::Core::Hashable
680
694
 
681
695
  # A token to retrieve next page of results.
682
696
  # To return the next page of results, call
683
- # CloudTasks.ListQueues with this value as the
684
- # ListQueuesRequest.page_token.
697
+ # ListQueues with this value as the
698
+ # page_token.
685
699
  # If the next_page_token is empty, there are no more results.
686
700
  # The page token is valid for only 2 hours.
687
701
  # Corresponds to the JSON property `nextPageToken`
@@ -704,14 +718,14 @@ module Google
704
718
  end
705
719
  end
706
720
 
707
- # Response message for listing tasks using CloudTasks.ListTasks.
721
+ # Response message for listing tasks using ListTasks.
708
722
  class ListTasksResponse
709
723
  include Google::Apis::Core::Hashable
710
724
 
711
725
  # A token to retrieve next page of results.
712
726
  # To return the next page of results, call
713
- # CloudTasks.ListTasks with this value as the
714
- # ListTasksRequest.page_token.
727
+ # ListTasks with this value as the
728
+ # page_token.
715
729
  # If the next_page_token is empty, there are no more results.
716
730
  # Corresponds to the JSON property `nextPageToken`
717
731
  # @return [String]
@@ -773,7 +787,7 @@ module Google
773
787
  end
774
788
  end
775
789
 
776
- # Request message for CloudTasks.PauseQueue.
790
+ # Request message for PauseQueue.
777
791
  class PauseQueueRequest
778
792
  include Google::Apis::Core::Hashable
779
793
 
@@ -853,9 +867,9 @@ module Google
853
867
  end
854
868
 
855
869
  # The pull message contains data that can be used by the caller of
856
- # CloudTasks.LeaseTasks to process the task.
870
+ # LeaseTasks to process the task.
857
871
  # This proto can only be used for tasks in a queue which has
858
- # Queue.pull_target set.
872
+ # pull_target set.
859
873
  class PullMessage
860
874
  include Google::Apis::Core::Hashable
861
875
 
@@ -867,10 +881,11 @@ module Google
867
881
 
868
882
  # The task's tag.
869
883
  # Tags allow similar tasks to be processed in a batch. If you label
870
- # tasks with a tag, your worker can lease tasks
871
- # with the same tag using LeaseTasksRequest.filter. For example,
872
- # if you want to aggregate the events associated with a specific
873
- # user once a day, you could tag tasks with the user ID.
884
+ # tasks with a tag, your worker can
885
+ # lease tasks with the same tag using
886
+ # filter. For example, if you want to
887
+ # aggregate the events associated with a specific user once a day,
888
+ # you could tag tasks with the user ID.
874
889
  # The task's tag can only be set when the
875
890
  # task is created.
876
891
  # The tag must be less than 500 characters.
@@ -907,7 +922,7 @@ module Google
907
922
  end
908
923
  end
909
924
 
910
- # Request message for CloudTasks.PurgeQueue.
925
+ # Request message for PurgeQueue.
911
926
  class PurgeQueueRequest
912
927
  include Google::Apis::Core::Hashable
913
928
 
@@ -950,12 +965,12 @@ module Google
950
965
  # identifying_projects)
951
966
  # * `LOCATION_ID` is the canonical ID for the queue's location.
952
967
  # The list of available locations can be obtained by calling
953
- # google.cloud.location.Locations.ListLocations.
968
+ # ListLocations.
954
969
  # For more information, see https://cloud.google.com/about/locations/.
955
970
  # * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
956
971
  # hyphens (-). The maximum length is 100 characters.
957
- # Caller-specified and required in CreateQueueRequest, after which
958
- # it becomes output only.
972
+ # Caller-specified and required in CreateQueue,
973
+ # after which it becomes output only.
959
974
  # Corresponds to the JSON property `name`
960
975
  # @return [String]
961
976
  attr_accessor :name
@@ -968,7 +983,7 @@ module Google
968
983
  # Output only. The last time this queue was purged.
969
984
  # All tasks that were created before this time
970
985
  # were purged.
971
- # A queue can be purged using CloudTasks.PurgeQueue, the
986
+ # A queue can be purged using PurgeQueue, the
972
987
  # [App Engine Task Queue SDK, or the Cloud Console](/appengine/docs/standard/
973
988
  # python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue)
974
989
  # .
@@ -993,9 +1008,10 @@ module Google
993
1008
 
994
1009
  # Output only. The state of the queue.
995
1010
  # `state` can only be changed by called
996
- # CloudTasks.PauseQueue, CloudTasks.ResumeQueue, or uploading
1011
+ # PauseQueue,
1012
+ # ResumeQueue, or uploading
997
1013
  # [queue.yaml/xml](/appengine/docs/python/config/queueref).
998
- # CloudTasks.UpdateQueue cannot be used to change `state`.
1014
+ # UpdateQueue cannot be used to change `state`.
999
1015
  # Corresponds to the JSON property `state`
1000
1016
  # @return [String]
1001
1017
  attr_accessor :state
@@ -1035,17 +1051,21 @@ module Google
1035
1051
  # token is removed from the bucket. Tasks will be dispatched until
1036
1052
  # the queue's bucket runs out of tokens. The bucket will be
1037
1053
  # continuously refilled with new tokens based on
1038
- # RateLimits.max_tasks_dispatched_per_second.
1039
- # Cloud Tasks will pick the value of `max_burst_size` based on the value of
1040
- # RateLimits.max_tasks_dispatched_per_second.
1054
+ # max_tasks_dispatched_per_second.
1055
+ # Cloud Tasks will pick the value of `max_burst_size` based on the
1056
+ # value of
1057
+ # max_tasks_dispatched_per_second.
1041
1058
  # For App Engine queues that were created or updated using
1042
1059
  # `queue.yaml/xml`, `max_burst_size` is equal to
1043
1060
  # [bucket_size](/appengine/docs/standard/python/config/queueref#bucket_size).
1044
- # Since `max_burst_size` is output only, if CloudTasks.UpdateQueue is
1045
- # called on a queue created by `queue.yaml/xml`, `max_burst_size` will be
1046
- # reset based on the value of RateLimits.max_tasks_dispatched_per_second,
1047
- # regardless of whether RateLimits.max_tasks_dispatched_per_second is
1048
- # updated.
1061
+ # Since `max_burst_size` is output only, if
1062
+ # UpdateQueue is called on a queue
1063
+ # created by `queue.yaml/xml`, `max_burst_size` will be reset based
1064
+ # on the value of
1065
+ # max_tasks_dispatched_per_second,
1066
+ # regardless of whether
1067
+ # max_tasks_dispatched_per_second
1068
+ # is updated.
1049
1069
  # Corresponds to the JSON property `maxBurstSize`
1050
1070
  # @return [Fixnum]
1051
1071
  attr_accessor :max_burst_size
@@ -1071,9 +1091,10 @@ module Google
1071
1091
  # default.
1072
1092
  # * For App Engine queues, the maximum allowed value is 500.
1073
1093
  # * This field is output only for [pull queues](google.cloud.tasks.v2beta2.
1074
- # PullTarget).
1075
- # In addition to the `max_tasks_dispatched_per_second` limit, a maximum of
1076
- # 10 QPS of CloudTasks.LeaseTasks requests are allowed per pull queue.
1094
+ # PullTarget). In
1095
+ # addition to the `max_tasks_dispatched_per_second` limit, a
1096
+ # maximum of 10 QPS of LeaseTasks
1097
+ # requests are allowed per pull queue.
1077
1098
  # This field has the same meaning as
1078
1099
  # [rate in queue.yaml/xml](/appengine/docs/standard/python/config/queueref#rate).
1079
1100
  # Corresponds to the JSON property `maxTasksDispatchedPerSecond`
@@ -1092,7 +1113,8 @@ module Google
1092
1113
  end
1093
1114
  end
1094
1115
 
1095
- # Request message for renewing a lease using CloudTasks.RenewLease.
1116
+ # Request message for renewing a lease using
1117
+ # RenewLease.
1096
1118
  class RenewLeaseRequest
1097
1119
  include Google::Apis::Core::Hashable
1098
1120
 
@@ -1106,23 +1128,24 @@ module Google
1106
1128
 
1107
1129
  # The response_view specifies which subset of the Task will be
1108
1130
  # returned.
1109
- # By default response_view is Task.View.BASIC; not all
1131
+ # By default response_view is BASIC; not all
1110
1132
  # information is retrieved by default because some data, such as
1111
1133
  # payloads, might be desirable to return only when needed because
1112
1134
  # of its large size or because of the sensitivity of data that it
1113
1135
  # contains.
1114
- # Authorization for Task.View.FULL requires `cloudtasks.tasks.fullView`
1115
- # [Google IAM](/iam/) permission on the
1116
- # Task.name resource.
1136
+ # Authorization for FULL requires
1137
+ # `cloudtasks.tasks.fullView` [Google IAM](/iam/) permission on the
1138
+ # Task resource.
1117
1139
  # Corresponds to the JSON property `responseView`
1118
1140
  # @return [String]
1119
1141
  attr_accessor :response_view
1120
1142
 
1121
1143
  # Required.
1122
- # The task's current schedule time, available in the Task.schedule_time
1123
- # returned in LeaseTasksResponse.tasks or
1124
- # CloudTasks.RenewLease. This restriction is to ensure that your
1125
- # worker currently holds the lease.
1144
+ # The task's current schedule time, available in the
1145
+ # schedule_time returned by
1146
+ # LeaseTasks response or
1147
+ # RenewLease response. This restriction is
1148
+ # to ensure that your worker currently holds the lease.
1126
1149
  # Corresponds to the JSON property `scheduleTime`
1127
1150
  # @return [String]
1128
1151
  attr_accessor :schedule_time
@@ -1139,7 +1162,7 @@ module Google
1139
1162
  end
1140
1163
  end
1141
1164
 
1142
- # Request message for CloudTasks.ResumeQueue.
1165
+ # Request message for ResumeQueue.
1143
1166
  class ResumeQueueRequest
1144
1167
  include Google::Apis::Core::Hashable
1145
1168
 
@@ -1166,8 +1189,9 @@ module Google
1166
1189
  attr_accessor :max_attempts
1167
1190
 
1168
1191
  # A task will be [scheduled](Task.schedule_time) for retry between
1169
- # RetryConfig.min_backoff and RetryConfig.max_backoff duration after
1170
- # it fails, if the queue's RetryConfig specifies that the task should be
1192
+ # min_backoff and
1193
+ # max_backoff duration after it fails,
1194
+ # if the queue's RetryConfig specifies that the task should be
1171
1195
  # retried.
1172
1196
  # If unspecified when the queue is created, Cloud Tasks will pick the
1173
1197
  # default.
@@ -1182,18 +1206,21 @@ module Google
1182
1206
  attr_accessor :max_backoff
1183
1207
 
1184
1208
  # The time between retries will double `max_doublings` times.
1185
- # A task's retry interval starts at RetryConfig.min_backoff,
1186
- # then doubles `max_doublings` times, then increases linearly, and
1187
- # finally retries retries at intervals of
1188
- # RetryConfig.max_backoff up to max_attempts times.
1189
- # For example, if RetryConfig.min_backoff is 10s,
1190
- # RetryConfig.max_backoff is 300s, and `max_doublings` is 3,
1191
- # then the a task will first be retried in 10s. The retry interval
1192
- # will double three times, and then increase linearly by 2^3 * 10s.
1193
- # Finally, the task will retry at intervals of
1194
- # RetryConfig.max_backoff until the task has been attempted
1195
- # `max_attempts` times. Thus, the requests will retry at 10s, 20s,
1196
- # 40s, 80s, 160s, 240s, 300s, 300s, ....
1209
+ # A task's retry interval starts at
1210
+ # min_backoff, then doubles
1211
+ # `max_doublings` times, then increases linearly, and finally
1212
+ # retries retries at intervals of
1213
+ # max_backoff up to
1214
+ # max_attempts times.
1215
+ # For example, if min_backoff is 10s,
1216
+ # max_backoff is 300s, and
1217
+ # `max_doublings` is 3, then the a task will first be retried in
1218
+ # 10s. The retry interval will double three times, and then
1219
+ # increase linearly by 2^3 * 10s. Finally, the task will retry at
1220
+ # intervals of max_backoff until the
1221
+ # task has been attempted max_attempts
1222
+ # times. Thus, the requests will retry at 10s, 20s, 40s, 80s, 160s,
1223
+ # 240s, 300s, 300s, ....
1197
1224
  # If unspecified when the queue is created, Cloud Tasks will pick the
1198
1225
  # default.
1199
1226
  # This field is output only for
@@ -1205,11 +1232,12 @@ module Google
1205
1232
  # @return [Fixnum]
1206
1233
  attr_accessor :max_doublings
1207
1234
 
1208
- # If positive, `max_retry_duration` specifies the time limit for retrying a
1209
- # failed task, measured from when the task was first attempted. Once
1210
- # `max_retry_duration` time has passed *and* the task has been attempted
1211
- # RetryConfig.max_attempts times, no further attempts will be made and
1212
- # the task will be deleted.
1235
+ # If positive, `max_retry_duration` specifies the time limit for
1236
+ # retrying a failed task, measured from when the task was first
1237
+ # attempted. Once `max_retry_duration` time has passed *and* the
1238
+ # task has been attempted max_attempts
1239
+ # times, no further attempts will be made and the task will be
1240
+ # deleted.
1213
1241
  # If zero, then the task age is unlimited.
1214
1242
  # If unspecified when the queue is created, Cloud Tasks will pick the
1215
1243
  # default.
@@ -1224,8 +1252,9 @@ module Google
1224
1252
  attr_accessor :max_retry_duration
1225
1253
 
1226
1254
  # A task will be [scheduled](Task.schedule_time) for retry between
1227
- # RetryConfig.min_backoff and RetryConfig.max_backoff duration after
1228
- # it fails, if the queue's RetryConfig specifies that the task should be
1255
+ # min_backoff and
1256
+ # max_backoff duration after it fails,
1257
+ # if the queue's RetryConfig specifies that the task should be
1229
1258
  # retried.
1230
1259
  # If unspecified when the queue is created, Cloud Tasks will pick the
1231
1260
  # default.
@@ -1261,20 +1290,20 @@ module Google
1261
1290
  end
1262
1291
 
1263
1292
  # Request message for forcing a task to run now using
1264
- # CloudTasks.RunTask.
1293
+ # RunTask.
1265
1294
  class RunTaskRequest
1266
1295
  include Google::Apis::Core::Hashable
1267
1296
 
1268
1297
  # The response_view specifies which subset of the Task will be
1269
1298
  # returned.
1270
- # By default response_view is Task.View.BASIC; not all
1299
+ # By default response_view is BASIC; not all
1271
1300
  # information is retrieved by default because some data, such as
1272
1301
  # payloads, might be desirable to return only when needed because
1273
1302
  # of its large size or because of the sensitivity of data that it
1274
1303
  # contains.
1275
- # Authorization for Task.View.FULL requires `cloudtasks.tasks.fullView`
1276
- # [Google IAM](/iam/) permission on the
1277
- # Task.name resource.
1304
+ # Authorization for FULL requires
1305
+ # `cloudtasks.tasks.fullView` [Google IAM](/iam/) permission on the
1306
+ # Task resource.
1278
1307
  # Corresponds to the JSON property `responseView`
1279
1308
  # @return [String]
1280
1309
  attr_accessor :response_view
@@ -1413,7 +1442,7 @@ module Google
1413
1442
  # The message defines the HTTP request that is sent to an App Engine app when
1414
1443
  # the task is dispatched.
1415
1444
  # This proto can only be used for tasks in a queue which has
1416
- # Queue.app_engine_http_target set.
1445
+ # app_engine_http_target set.
1417
1446
  # Using AppEngineHttpRequest requires
1418
1447
  # [`appengine.applications.get`](/appengine/docs/admin-api/access-control)
1419
1448
  # Google IAM permission for the project
@@ -1427,11 +1456,14 @@ module Google
1427
1456
  # [dispatch files](/appengine/docs/python/config/dispatchref).
1428
1457
  # The AppEngineRouting used to construct the URL that the task is
1429
1458
  # delivered to can be set at the queue-level or task-level:
1430
- # * If set, AppEngineHttpTarget.app_engine_routing_override is used for
1431
- # all tasks in the queue, no matter what the setting is for the
1459
+ # * If set,
1460
+ # app_engine_routing_override
1461
+ # is used for all tasks in the queue, no matter what the setting
1462
+ # is for the
1432
1463
  # task-level app_engine_routing.
1433
1464
  # The `url` that the task will be sent to is:
1434
- # * `url =` AppEngineRouting.host `+` AppEngineHttpRequest.relative_url
1465
+ # * `url =` host `+`
1466
+ # relative_url
1435
1467
  # The task attempt has succeeded if the app's request handler returns
1436
1468
  # an HTTP response code in the range [`200` - `299`]. `503` is
1437
1469
  # considered an App Engine system error instead of an application
@@ -1459,21 +1491,21 @@ module Google
1459
1491
  # identifying_projects)
1460
1492
  # * `LOCATION_ID` is the canonical ID for the task's location.
1461
1493
  # The list of available locations can be obtained by calling
1462
- # google.cloud.location.Locations.ListLocations.
1494
+ # ListLocations.
1463
1495
  # For more information, see https://cloud.google.com/about/locations/.
1464
1496
  # * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
1465
1497
  # hyphens (-). The maximum length is 100 characters.
1466
1498
  # * `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
1467
1499
  # hyphens (-), or underscores (_). The maximum length is 500 characters.
1468
- # Optionally caller-specified in CreateTaskRequest.
1500
+ # Optionally caller-specified in CreateTask.
1469
1501
  # Corresponds to the JSON property `name`
1470
1502
  # @return [String]
1471
1503
  attr_accessor :name
1472
1504
 
1473
1505
  # The pull message contains data that can be used by the caller of
1474
- # CloudTasks.LeaseTasks to process the task.
1506
+ # LeaseTasks to process the task.
1475
1507
  # This proto can only be used for tasks in a queue which has
1476
- # Queue.pull_target set.
1508
+ # pull_target set.
1477
1509
  # Corresponds to the JSON property `pullMessage`
1478
1510
  # @return [Google::Apis::CloudtasksV2beta2::PullMessage]
1479
1511
  attr_accessor :pull_message
@@ -1483,7 +1515,7 @@ module Google
1483
1515
  # For pull queues, this is the time when the task is available to
1484
1516
  # be leased; if a task is currently leased, this is the time when
1485
1517
  # the current lease expires, that is, the time that the task was
1486
- # leased plus the LeaseTasksRequest.lease_duration.
1518
+ # leased plus the lease_duration.
1487
1519
  # `schedule_time` will be truncated to the nearest microsecond.
1488
1520
  # Corresponds to the JSON property `scheduleTime`
1489
1521
  # @return [String]