google-api-client 0.23.7 → 0.23.8

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.
Files changed (89) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +32 -0
  3. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  4. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  5. data/generated/google/apis/androidpublisher_v2/classes.rb +1 -0
  6. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  7. data/generated/google/apis/androidpublisher_v3/classes.rb +1 -0
  8. data/generated/google/apis/appengine_v1.rb +1 -1
  9. data/generated/google/apis/appengine_v1/classes.rb +5 -3
  10. data/generated/google/apis/appengine_v1beta.rb +1 -1
  11. data/generated/google/apis/appengine_v1beta/classes.rb +31 -3
  12. data/generated/google/apis/appengine_v1beta/representations.rb +15 -0
  13. data/generated/google/apis/appengine_v1beta4.rb +1 -1
  14. data/generated/google/apis/appengine_v1beta4/classes.rb +5 -3
  15. data/generated/google/apis/appengine_v1beta5.rb +1 -1
  16. data/generated/google/apis/appengine_v1beta5/classes.rb +5 -3
  17. data/generated/google/apis/bigquery_v2.rb +1 -1
  18. data/generated/google/apis/bigquery_v2/classes.rb +27 -22
  19. data/generated/google/apis/bigquery_v2/representations.rb +1 -0
  20. data/generated/google/apis/cloudkms_v1.rb +1 -1
  21. data/generated/google/apis/{mybusiness_v3.rb → cloudtasks_v2beta3.rb} +12 -10
  22. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +1405 -0
  23. data/generated/google/apis/cloudtasks_v2beta3/representations.rb +421 -0
  24. data/generated/google/apis/cloudtasks_v2beta3/service.rb +855 -0
  25. data/generated/google/apis/compute_alpha/classes.rb +178 -135
  26. data/generated/google/apis/compute_alpha/representations.rb +82 -52
  27. data/generated/google/apis/compute_alpha/service.rb +57 -4
  28. data/generated/google/apis/compute_beta/classes.rb +125 -125
  29. data/generated/google/apis/compute_beta/representations.rb +51 -51
  30. data/generated/google/apis/compute_beta/service.rb +4 -4
  31. data/generated/google/apis/content_v2.rb +1 -1
  32. data/generated/google/apis/content_v2/classes.rb +152 -0
  33. data/generated/google/apis/content_v2/representations.rb +77 -0
  34. data/generated/google/apis/content_v2/service.rb +40 -0
  35. data/generated/google/apis/content_v2sandbox.rb +1 -1
  36. data/generated/google/apis/content_v2sandbox/classes.rb +39 -0
  37. data/generated/google/apis/content_v2sandbox/representations.rb +26 -0
  38. data/generated/google/apis/content_v2sandbox/service.rb +40 -0
  39. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  40. data/generated/google/apis/dataproc_v1.rb +1 -1
  41. data/generated/google/apis/dataproc_v1/classes.rb +299 -0
  42. data/generated/google/apis/dataproc_v1/representations.rb +115 -0
  43. data/generated/google/apis/dataproc_v1/service.rb +540 -0
  44. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  45. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  46. data/generated/google/apis/dialogflow_v2beta1/classes.rb +0 -3
  47. data/generated/google/apis/dialogflow_v2beta1/service.rb +226 -0
  48. data/generated/google/apis/dlp_v2.rb +1 -1
  49. data/generated/google/apis/dlp_v2/service.rb +54 -6
  50. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  51. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +85 -0
  52. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +32 -0
  53. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +30 -0
  54. data/generated/google/apis/iamcredentials_v1.rb +1 -1
  55. data/generated/google/apis/iamcredentials_v1/classes.rb +97 -0
  56. data/generated/google/apis/iamcredentials_v1/representations.rb +28 -0
  57. data/generated/google/apis/iamcredentials_v1/service.rb +37 -0
  58. data/generated/google/apis/language_v1beta2.rb +1 -1
  59. data/generated/google/apis/language_v1beta2/classes.rb +8 -0
  60. data/generated/google/apis/redis_v1beta1.rb +1 -1
  61. data/generated/google/apis/redis_v1beta1/classes.rb +9 -0
  62. data/generated/google/apis/redis_v1beta1/representations.rb +1 -0
  63. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  64. data/generated/google/apis/servicecontrol_v1/classes.rb +12 -0
  65. data/generated/google/apis/servicecontrol_v1/representations.rb +1 -0
  66. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  67. data/generated/google/apis/servicemanagement_v1/classes.rb +1 -1
  68. data/generated/google/apis/servicemanagement_v1/service.rb +4 -0
  69. data/generated/google/apis/serviceuser_v1.rb +1 -1
  70. data/generated/google/apis/serviceuser_v1/classes.rb +1 -1
  71. data/generated/google/apis/spanner_v1.rb +1 -1
  72. data/generated/google/apis/spanner_v1/classes.rb +56 -1
  73. data/generated/google/apis/spanner_v1/representations.rb +18 -0
  74. data/generated/google/apis/spanner_v1/service.rb +9 -3
  75. data/generated/google/apis/speech_v1.rb +1 -1
  76. data/generated/google/apis/speech_v1/classes.rb +11 -8
  77. data/generated/google/apis/storage_v1.rb +1 -1
  78. data/generated/google/apis/storage_v1/classes.rb +11 -1
  79. data/generated/google/apis/storage_v1/representations.rb +1 -0
  80. data/generated/google/apis/storage_v1/service.rb +1 -2
  81. data/generated/google/apis/testing_v1.rb +1 -1
  82. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  83. data/generated/google/apis/toolresults_v1beta3/classes.rb +14 -14
  84. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  85. data/lib/google/apis/version.rb +1 -1
  86. metadata +6 -6
  87. data/generated/google/apis/mybusiness_v3/classes.rb +0 -1864
  88. data/generated/google/apis/mybusiness_v3/representations.rb +0 -741
  89. data/generated/google/apis/mybusiness_v3/service.rb +0 -961
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 29e90be823db1c95d0227f0b1cd3b19565dccf00
4
- data.tar.gz: 1c55ebef8b4443c3d184df591402bd06e69ed00d
3
+ metadata.gz: 4078089dd0f5e203b6e3edc95907e8da15a90308
4
+ data.tar.gz: 668d82570f2ce637ef2b61cc6ab6f940ff767031
5
5
  SHA512:
6
- metadata.gz: 0e0ef7f8dfd7851252e15f0ba6e5f6efa3e2d16e636ed8dfeaf86e237ae76bdbfde8870d7630bc79fd53ab6d536ce5b06b65c424103f0732b038030933e0f33c
7
- data.tar.gz: 8c26817a0cb214de04288d4f52ba1b6b6f8f2be4735b4acd1a6b3e49d88adeae93a53bf2f8e925814d7a0a4589d97c36bf01d5756ca67e114c94ab2d18c1d3da
6
+ metadata.gz: 24c2ef0efbb3506a4935b1c58129aaae4e93519884012df6b7a5de0526eeeeee2d9de10ce4c550c47707497643bf0655d9b68fbc7ed3786700f0a34fb2ad9a1c
7
+ data.tar.gz: efb5a21cafef4b06f76f0ef9bb36ecf728fb77f5726f034bf8cde2c1a538ce4fabb5902584caa3ef2734702943549ed9be41e17a8d66671e80dcdccd27a0a27e
@@ -1,3 +1,35 @@
1
+ # 0.23.8
2
+ * Backwards compatible changes:
3
+ * Updated `adexchangebuyer2_v2beta1`
4
+ * Updated `androidpublisher_v2`
5
+ * Updated `androidpublisher_v3`
6
+ * Updated `appengine_v1`
7
+ * Updated `appengine_v1beta`
8
+ * Updated `appengine_v1beta4`
9
+ * Updated `appengine_v1beta5`
10
+ * Updated `bigquery_v2`
11
+ * Updated `cloudkms_v1`
12
+ * Updated `content_v2`
13
+ * Updated `content_v2sandbox`
14
+ * Updated `dataflow_v1b3`
15
+ * Updated `dataproc_v1`
16
+ * Updated `dataproc_v1beta2`
17
+ * Updated `dialogflow_v2beta1`
18
+ * Updated `dlp_v2`
19
+ * Updated `firebasedynamiclinks_v1`
20
+ * Updated `iamcredentials_v1`
21
+ * Updated `language_v1beta2`
22
+ * Updated `redis_v1beta1`
23
+ * Updated `servicecontrol_v1`
24
+ * Updated `servicemanagement_v1`
25
+ * Updated `serviceuser_v1`
26
+ * Updated `spanner_v1`
27
+ * Updated `speech_v1`
28
+ * Updated `storage_v1`
29
+ * Updated `testing_v1`
30
+ * Updated `toolresults_v1beta3`
31
+ * Updated `youtube_partner_v1`
32
+
1
33
  # 0.23.7
2
34
  * Backwards compatible changes:
3
35
  * Updated `adexchangebuyer_v1_4`
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/ad-exchange/buyer-rest/reference/rest/
27
27
  module Adexchangebuyer2V2beta1
28
28
  VERSION = 'V2beta1'
29
- REVISION = '20180820'
29
+ REVISION = '20180830'
30
30
 
31
31
  # Manage your Ad Exchange buyer account configuration
32
32
  AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/android-publisher
26
26
  module AndroidpublisherV2
27
27
  VERSION = 'V2'
28
- REVISION = '20180807'
28
+ REVISION = '20180827'
29
29
 
30
30
  # View and manage your Google Play Developer account
31
31
  AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
@@ -1509,6 +1509,7 @@ module Google
1509
1509
  # - Payment pending
1510
1510
  # - Payment received
1511
1511
  # - Free trial
1512
+ # - Pending deferred upgrade/downgrade
1512
1513
  # Corresponds to the JSON property `paymentState`
1513
1514
  # @return [Fixnum]
1514
1515
  attr_accessor :payment_state
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/android-publisher
26
26
  module AndroidpublisherV3
27
27
  VERSION = 'V3'
28
- REVISION = '20180807'
28
+ REVISION = '20180827'
29
29
 
30
30
  # View and manage your Google Play Developer account
31
31
  AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
@@ -1483,6 +1483,7 @@ module Google
1483
1483
  # - Payment pending
1484
1484
  # - Payment received
1485
1485
  # - Free trial
1486
+ # - Pending deferred upgrade/downgrade
1486
1487
  # Corresponds to the JSON property `paymentState`
1487
1488
  # @return [Fixnum]
1488
1489
  attr_accessor :payment_state
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/appengine/docs/admin-api/
27
27
  module AppengineV1
28
28
  VERSION = 'V1'
29
- REVISION = '20180726'
29
+ REVISION = '20180823'
30
30
 
31
31
  # View and manage your applications deployed on Google App Engine
32
32
  AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'
@@ -310,9 +310,11 @@ module Google
310
310
  class AutomaticScaling
311
311
  include Google::Apis::Core::Hashable
312
312
 
313
- # Amount of time that the Autoscaler (https://cloud.google.com/compute/docs/
314
- # autoscaler/) should wait between changes to the number of virtual machines.
315
- # Only applicable in the App Engine flexible environment.
313
+ # The time period that the Autoscaler (https://cloud.google.com/compute/docs/
314
+ # autoscaler/) should wait before it starts collecting information from a new
315
+ # instance. This prevents the autoscaler from collecting information when the
316
+ # instance is initializing, during which the collected usage would not be
317
+ # reliable. Only applicable in the App Engine flexible environment.
316
318
  # Corresponds to the JSON property `coolDownPeriod`
317
319
  # @return [String]
318
320
  attr_accessor :cool_down_period
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/appengine/docs/admin-api/
27
27
  module AppengineV1beta
28
28
  VERSION = 'V1beta'
29
- REVISION = '20180726'
29
+ REVISION = '20180823'
30
30
 
31
31
  # View and manage your applications deployed on Google App Engine
32
32
  AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'
@@ -310,9 +310,11 @@ module Google
310
310
  class AutomaticScaling
311
311
  include Google::Apis::Core::Hashable
312
312
 
313
- # Amount of time that the Autoscaler (https://cloud.google.com/compute/docs/
314
- # autoscaler/) should wait between changes to the number of virtual machines.
315
- # Only applicable in the App Engine flexible environment.
313
+ # The time period that the Autoscaler (https://cloud.google.com/compute/docs/
314
+ # autoscaler/) should wait before it starts collecting information from a new
315
+ # instance. This prevents the autoscaler from collecting information when the
316
+ # instance is initializing, during which the collected usage would not be
317
+ # reliable. Only applicable in the App Engine flexible environment.
316
318
  # Corresponds to the JSON property `coolDownPeriod`
317
319
  # @return [String]
318
320
  attr_accessor :cool_down_period
@@ -3077,6 +3079,11 @@ module Google
3077
3079
  attr_accessor :vm
3078
3080
  alias_method :vm?, :vm
3079
3081
 
3082
+ # VPC access connector specification.
3083
+ # Corresponds to the JSON property `vpcAccessConnector`
3084
+ # @return [Google::Apis::AppengineV1beta::VpcAccessConnector]
3085
+ attr_accessor :vpc_access_connector
3086
+
3080
3087
  # The Google Compute Engine zones that are supported by this version in the App
3081
3088
  # Engine flexible environment.
3082
3089
  # Corresponds to the JSON property `zones`
@@ -3123,6 +3130,7 @@ module Google
3123
3130
  @threadsafe = args[:threadsafe] if args.key?(:threadsafe)
3124
3131
  @version_url = args[:version_url] if args.key?(:version_url)
3125
3132
  @vm = args[:vm] if args.key?(:vm)
3133
+ @vpc_access_connector = args[:vpc_access_connector] if args.key?(:vpc_access_connector)
3126
3134
  @zones = args[:zones] if args.key?(:zones)
3127
3135
  end
3128
3136
  end
@@ -3159,6 +3167,26 @@ module Google
3159
3167
  end
3160
3168
  end
3161
3169
 
3170
+ # VPC access connector specification.
3171
+ class VpcAccessConnector
3172
+ include Google::Apis::Core::Hashable
3173
+
3174
+ # Full Serverless VPC Access Connector name e.g. /projects/my-project/locations/
3175
+ # us-central1/connectors/c1.
3176
+ # Corresponds to the JSON property `name`
3177
+ # @return [String]
3178
+ attr_accessor :name
3179
+
3180
+ def initialize(**args)
3181
+ update!(**args)
3182
+ end
3183
+
3184
+ # Update properties of this object
3185
+ def update!(**args)
3186
+ @name = args[:name] if args.key?(:name)
3187
+ end
3188
+ end
3189
+
3162
3190
  # The zip file information for a zip deployment.
3163
3191
  class ZipInfo
3164
3192
  include Google::Apis::Core::Hashable
@@ -454,6 +454,12 @@ module Google
454
454
  include Google::Apis::Core::JsonObjectSupport
455
455
  end
456
456
 
457
+ class VpcAccessConnector
458
+ class Representation < Google::Apis::Core::JsonRepresentation; end
459
+
460
+ include Google::Apis::Core::JsonObjectSupport
461
+ end
462
+
457
463
  class ZipInfo
458
464
  class Representation < Google::Apis::Core::JsonRepresentation; end
459
465
 
@@ -1233,6 +1239,8 @@ module Google
1233
1239
  property :threadsafe, as: 'threadsafe'
1234
1240
  property :version_url, as: 'versionUrl'
1235
1241
  property :vm, as: 'vm'
1242
+ property :vpc_access_connector, as: 'vpcAccessConnector', class: Google::Apis::AppengineV1beta::VpcAccessConnector, decorator: Google::Apis::AppengineV1beta::VpcAccessConnector::Representation
1243
+
1236
1244
  collection :zones, as: 'zones'
1237
1245
  end
1238
1246
  end
@@ -1246,6 +1254,13 @@ module Google
1246
1254
  end
1247
1255
  end
1248
1256
 
1257
+ class VpcAccessConnector
1258
+ # @private
1259
+ class Representation < Google::Apis::Core::JsonRepresentation
1260
+ property :name, as: 'name'
1261
+ end
1262
+ end
1263
+
1249
1264
  class ZipInfo
1250
1265
  # @private
1251
1266
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/appengine/docs/admin-api/
27
27
  module AppengineV1beta4
28
28
  VERSION = 'V1beta4'
29
- REVISION = '20180707'
29
+ REVISION = '20180823'
30
30
 
31
31
  # View and manage your applications deployed on Google App Engine
32
32
  AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'
@@ -176,9 +176,11 @@ module Google
176
176
  class AutomaticScaling
177
177
  include Google::Apis::Core::Hashable
178
178
 
179
- # Amount of time that the Autoscaler (https://cloud.google.com/compute/docs/
180
- # autoscaler/) should wait between changes to the number of virtual machines.
181
- # Only applicable for VM runtimes.
179
+ # The time period that the Autoscaler (https://cloud.google.com/compute/docs/
180
+ # autoscaler/) should wait before it starts collecting information from a new
181
+ # instance. This prevents the autoscaler from collecting information when the
182
+ # instance is initializing, during which the collected usage would not be
183
+ # reliable. Only applicable in the App Engine flexible environment.
182
184
  # Corresponds to the JSON property `coolDownPeriod`
183
185
  # @return [String]
184
186
  attr_accessor :cool_down_period
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/appengine/docs/admin-api/
27
27
  module AppengineV1beta5
28
28
  VERSION = 'V1beta5'
29
- REVISION = '20180707'
29
+ REVISION = '20180823'
30
30
 
31
31
  # View and manage your applications deployed on Google App Engine
32
32
  AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'
@@ -176,9 +176,11 @@ module Google
176
176
  class AutomaticScaling
177
177
  include Google::Apis::Core::Hashable
178
178
 
179
- # Amount of time that the Autoscaler (https://cloud.google.com/compute/docs/
180
- # autoscaler/) should wait between changes to the number of virtual machines.
181
- # Only applicable for VM runtimes.
179
+ # The time period that the Autoscaler (https://cloud.google.com/compute/docs/
180
+ # autoscaler/) should wait before it starts collecting information from a new
181
+ # instance. This prevents the autoscaler from collecting information when the
182
+ # instance is initializing, during which the collected usage would not be
183
+ # reliable. Only applicable in the App Engine flexible environment.
182
184
  # Corresponds to the JSON property `coolDownPeriod`
183
185
  # @return [String]
184
186
  attr_accessor :cool_down_period
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/bigquery/
26
26
  module BigqueryV2
27
27
  VERSION = 'V2'
28
- REVISION = '20180809'
28
+ REVISION = '20180826'
29
29
 
30
30
  # View and manage your data in Google BigQuery
31
31
  AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
@@ -1367,6 +1367,12 @@ module Google
1367
1367
  # @return [Fixnum]
1368
1368
  attr_accessor :job_timeout_ms
1369
1369
 
1370
+ # [Output-only] The type of the job. Can be QUERY, LOAD, EXTRACT, COPY or
1371
+ # UNKNOWN.
1372
+ # Corresponds to the JSON property `jobType`
1373
+ # @return [String]
1374
+ attr_accessor :job_type
1375
+
1370
1376
  # The labels associated with this job. You can use these to organize and group
1371
1377
  # your jobs. Label keys and values can be no longer than 63 characters, can only
1372
1378
  # contain lowercase letters, numeric characters, underscores and dashes.
@@ -1396,6 +1402,7 @@ module Google
1396
1402
  @dry_run = args[:dry_run] if args.key?(:dry_run)
1397
1403
  @extract = args[:extract] if args.key?(:extract)
1398
1404
  @job_timeout_ms = args[:job_timeout_ms] if args.key?(:job_timeout_ms)
1405
+ @job_type = args[:job_type] if args.key?(:job_type)
1399
1406
  @labels = args[:labels] if args.key?(:labels)
1400
1407
  @load = args[:load] if args.key?(:load)
1401
1408
  @query = args[:query] if args.key?(:query)
@@ -1733,7 +1740,7 @@ module Google
1733
1740
  attr_accessor :create_disposition
1734
1741
 
1735
1742
  # [Optional] Specifies the default dataset to use for unqualified table names in
1736
- # the query.
1743
+ # the query. Note that this does not alter behavior of unqualified dataset names.
1737
1744
  # Corresponds to the JSON property `defaultDataset`
1738
1745
  # @return [Google::Apis::BigqueryV2::DatasetReference]
1739
1746
  attr_accessor :default_dataset
@@ -2184,20 +2191,18 @@ module Google
2184
2191
  attr_accessor :cache_hit
2185
2192
  alias_method :cache_hit?, :cache_hit
2186
2193
 
2187
- # [Output-only, Beta] The DDL operation performed, possibly dependent on the pre-
2188
- # existence of the DDL target. Possible values (new values might be added in the
2189
- # future): "CREATE": The query created the DDL target. "SKIP": No-op. Example
2190
- # cases: the query is CREATE TABLE IF NOT EXISTS while the table already exists,
2191
- # or the query is DROP TABLE IF EXISTS while the table does not exist. "REPLACE":
2192
- # The query replaced the DDL target. Example case: the query is CREATE OR
2193
- # REPLACE TABLE, and the table already exists. "DROP": The query deleted the DDL
2194
- # target.
2194
+ # The DDL operation performed, possibly dependent on the pre-existence of the
2195
+ # DDL target. Possible values (new values might be added in the future): "CREATE"
2196
+ # : The query created the DDL target. "SKIP": No-op. Example cases: the query is
2197
+ # CREATE TABLE IF NOT EXISTS while the table already exists, or the query is
2198
+ # DROP TABLE IF EXISTS while the table does not exist. "REPLACE": The query
2199
+ # replaced the DDL target. Example case: the query is CREATE OR REPLACE TABLE,
2200
+ # and the table already exists. "DROP": The query deleted the DDL target.
2195
2201
  # Corresponds to the JSON property `ddlOperationPerformed`
2196
2202
  # @return [String]
2197
2203
  attr_accessor :ddl_operation_performed
2198
2204
 
2199
- # [Output-only, Beta] The DDL target table. Present only for CREATE/DROP TABLE/
2200
- # VIEW queries.
2205
+ # The DDL target table. Present only for CREATE/DROP TABLE/VIEW queries.
2201
2206
  # Corresponds to the JSON property `ddlTargetTable`
2202
2207
  # @return [Google::Apis::BigqueryV2::TableReference]
2203
2208
  attr_accessor :ddl_target_table
@@ -2250,15 +2255,15 @@ module Google
2250
2255
  # @return [Google::Apis::BigqueryV2::TableSchema]
2251
2256
  attr_accessor :schema
2252
2257
 
2253
- # [Output-only, Beta] The type of query statement, if valid. Possible values (
2254
- # new values might be added in the future): "SELECT": SELECT query. "INSERT":
2255
- # INSERT query; see https://cloud.google.com/bigquery/docs/reference/standard-
2256
- # sql/data-manipulation-language "UPDATE": UPDATE query; see https://cloud.
2257
- # google.com/bigquery/docs/reference/standard-sql/data-manipulation-language "
2258
- # DELETE": DELETE query; see https://cloud.google.com/bigquery/docs/reference/
2259
- # standard-sql/data-manipulation-language "MERGE": MERGE query; see https://
2260
- # cloud.google.com/bigquery/docs/reference/standard-sql/data-manipulation-
2261
- # language "CREATE_TABLE": CREATE [OR REPLACE] TABLE without AS SELECT. "
2258
+ # The type of query statement, if valid. Possible values (new values might be
2259
+ # added in the future): "SELECT": SELECT query. "INSERT": INSERT query; see
2260
+ # https://cloud.google.com/bigquery/docs/reference/standard-sql/data-
2261
+ # manipulation-language "UPDATE": UPDATE query; see https://cloud.google.com/
2262
+ # bigquery/docs/reference/standard-sql/data-manipulation-language "DELETE":
2263
+ # DELETE query; see https://cloud.google.com/bigquery/docs/reference/standard-
2264
+ # sql/data-manipulation-language "MERGE": MERGE query; see https://cloud.google.
2265
+ # com/bigquery/docs/reference/standard-sql/data-manipulation-language "
2266
+ # CREATE_TABLE": CREATE [OR REPLACE] TABLE without AS SELECT. "
2262
2267
  # CREATE_TABLE_AS_SELECT": CREATE [OR REPLACE] TABLE ... AS SELECT ... "
2263
2268
  # DROP_TABLE": DROP TABLE query. "CREATE_VIEW": CREATE [OR REPLACE] VIEW ... AS
2264
2269
  # SELECT ... "DROP_VIEW": DROP VIEW query.
@@ -2292,8 +2297,8 @@ module Google
2292
2297
  # @return [Fixnum]
2293
2298
  attr_accessor :total_slot_ms
2294
2299
 
2295
- # [Output-only, Beta] Standard SQL only: list of undeclared query parameters
2296
- # detected during a dry run validation.
2300
+ # Standard SQL only: list of undeclared query parameters detected during a dry
2301
+ # run validation.
2297
2302
  # Corresponds to the JSON property `undeclaredQueryParameters`
2298
2303
  # @return [Array<Google::Apis::BigqueryV2::QueryParameter>]
2299
2304
  attr_accessor :undeclared_query_parameters
@@ -739,6 +739,7 @@ module Google
739
739
  property :extract, as: 'extract', class: Google::Apis::BigqueryV2::JobConfigurationExtract, decorator: Google::Apis::BigqueryV2::JobConfigurationExtract::Representation
740
740
 
741
741
  property :job_timeout_ms, :numeric_string => true, as: 'jobTimeoutMs'
742
+ property :job_type, as: 'jobType'
742
743
  hash :labels, as: 'labels'
743
744
  property :load, as: 'load', class: Google::Apis::BigqueryV2::JobConfigurationLoad, decorator: Google::Apis::BigqueryV2::JobConfigurationLoad::Representation
744
745
 
@@ -29,7 +29,7 @@ module Google
29
29
  # @see https://cloud.google.com/kms/
30
30
  module CloudkmsV1
31
31
  VERSION = 'V1'
32
- REVISION = '20180821'
32
+ REVISION = '20180823'
33
33
 
34
34
  # View and manage your data across Google Cloud Platform services
35
35
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -12,21 +12,23 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
- require 'google/apis/mybusiness_v3/service.rb'
16
- require 'google/apis/mybusiness_v3/classes.rb'
17
- require 'google/apis/mybusiness_v3/representations.rb'
15
+ require 'google/apis/cloudtasks_v2beta3/service.rb'
16
+ require 'google/apis/cloudtasks_v2beta3/classes.rb'
17
+ require 'google/apis/cloudtasks_v2beta3/representations.rb'
18
18
 
19
19
  module Google
20
20
  module Apis
21
- # Google My Business API
21
+ # Cloud Tasks API
22
22
  #
23
- # The Google My Business API provides an interface for managing business
24
- # location information on Google.
23
+ # Manages the execution of large numbers of distributed requests.
25
24
  #
26
- # @see https://developers.google.com/my-business/
27
- module MybusinessV3
28
- VERSION = 'V3'
29
- REVISION = '0'
25
+ # @see https://cloud.google.com/tasks/
26
+ module CloudtasksV2beta3
27
+ VERSION = 'V2beta3'
28
+ REVISION = '20180830'
29
+
30
+ # View and manage your data across Google Cloud Platform services
31
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
30
32
  end
31
33
  end
32
34
  end
@@ -0,0 +1,1405 @@
1
+ # Copyright 2015 Google Inc.
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
+ # App Engine HTTP queue.
26
+ # The task will be delivered to the App Engine application hostname
27
+ # specified by its AppEngineHttpQueue and AppEngineHttpRequest.
28
+ # The documentation for AppEngineHttpRequest explains how the
29
+ # task's host URL is constructed.
30
+ # Using AppEngineHttpQueue requires
31
+ # [`appengine.applications.get`](https://cloud.google.com/appengine/docs/admin-
32
+ # api/access-control)
33
+ # Google IAM permission for the project
34
+ # and the following scope:
35
+ # `https://www.googleapis.com/auth/cloud-platform`
36
+ class AppEngineHttpQueue
37
+ include Google::Apis::Core::Hashable
38
+
39
+ # App Engine Routing.
40
+ # Specifies the target URI. Since this target type dispatches tasks to secure
41
+ # app handlers, unsecure app handlers, and URIs restricted with
42
+ # [`login: admin`](https://cloud.google.com/appengine/docs/standard/python/
43
+ # config/appref)
44
+ # the protocol (for example, HTTP or HTTPS) cannot be explictly specified.
45
+ # Task dispatches do not follow redirects and cannot target URI paths
46
+ # restricted with
47
+ # [`login: required`](https://cloud.google.com/appengine/docs/standard/python/
48
+ # config/appref)
49
+ # because tasks are not run as any user.
50
+ # For more information about services, versions, and instances see
51
+ # [An Overview of App Engine](https://cloud.google.com/appengine/docs/python/an-
52
+ # overview-of-app-engine),
53
+ # [Microservices Architecture on Google App Engine](https://cloud.google.com/
54
+ # appengine/docs/python/microservices-on-app-engine),
55
+ # [App Engine Standard request routing](https://cloud.google.com/appengine/docs/
56
+ # standard/python/how-requests-are-routed),
57
+ # and [App Engine Flex request routing](https://cloud.google.com/appengine/docs/
58
+ # flexible/python/how-requests-are-routed).
59
+ # Corresponds to the JSON property `appEngineRoutingOverride`
60
+ # @return [Google::Apis::CloudtasksV2beta3::AppEngineRouting]
61
+ attr_accessor :app_engine_routing_override
62
+
63
+ def initialize(**args)
64
+ update!(**args)
65
+ end
66
+
67
+ # Update properties of this object
68
+ def update!(**args)
69
+ @app_engine_routing_override = args[:app_engine_routing_override] if args.key?(:app_engine_routing_override)
70
+ end
71
+ end
72
+
73
+ # App Engine HTTP request.
74
+ # The message defines the HTTP request that is sent to an App Engine app when
75
+ # the task is dispatched.
76
+ # This proto can only be used for tasks in a queue which has
77
+ # app_engine_http_queue set.
78
+ # Using AppEngineHttpRequest requires
79
+ # [`appengine.applications.get`](https://cloud.google.com/appengine/docs/admin-
80
+ # api/access-control)
81
+ # Google IAM permission for the project
82
+ # and the following scope:
83
+ # `https://www.googleapis.com/auth/cloud-platform`
84
+ # The task will be delivered to the App Engine app which belongs to the same
85
+ # project as the queue. For more information, see
86
+ # [How Requests are Routed](https://cloud.google.com/appengine/docs/standard/
87
+ # python/how-requests-are-routed)
88
+ # and how routing is affected by
89
+ # [dispatch files](https://cloud.google.com/appengine/docs/python/config/
90
+ # dispatchref).
91
+ # The AppEngineRouting used to construct the URL that the task is
92
+ # delivered to can be set at the queue-level or task-level:
93
+ # * If set,
94
+ # app_engine_routing_override
95
+ # is used for all tasks in the queue, no matter what the setting
96
+ # is for the
97
+ # task-level app_engine_routing.
98
+ # The `url` that the task will be sent to is:
99
+ # * `url =` host `+`
100
+ # relative_uri
101
+ # The task attempt has succeeded if the app's request handler returns
102
+ # an HTTP response code in the range [`200` - `299`]. `503` is
103
+ # considered an App Engine system error instead of an application
104
+ # error. Requests returning error `503` will be retried regardless of
105
+ # retry configuration and not counted against retry counts.
106
+ # Any other response code or a failure to receive a response before the
107
+ # deadline is a failed attempt.
108
+ class AppEngineHttpRequest
109
+ include Google::Apis::Core::Hashable
110
+
111
+ # App Engine Routing.
112
+ # Specifies the target URI. Since this target type dispatches tasks to secure
113
+ # app handlers, unsecure app handlers, and URIs restricted with
114
+ # [`login: admin`](https://cloud.google.com/appengine/docs/standard/python/
115
+ # config/appref)
116
+ # the protocol (for example, HTTP or HTTPS) cannot be explictly specified.
117
+ # Task dispatches do not follow redirects and cannot target URI paths
118
+ # restricted with
119
+ # [`login: required`](https://cloud.google.com/appengine/docs/standard/python/
120
+ # config/appref)
121
+ # because tasks are not run as any user.
122
+ # For more information about services, versions, and instances see
123
+ # [An Overview of App Engine](https://cloud.google.com/appengine/docs/python/an-
124
+ # overview-of-app-engine),
125
+ # [Microservices Architecture on Google App Engine](https://cloud.google.com/
126
+ # appengine/docs/python/microservices-on-app-engine),
127
+ # [App Engine Standard request routing](https://cloud.google.com/appengine/docs/
128
+ # standard/python/how-requests-are-routed),
129
+ # and [App Engine Flex request routing](https://cloud.google.com/appengine/docs/
130
+ # flexible/python/how-requests-are-routed).
131
+ # Corresponds to the JSON property `appEngineRouting`
132
+ # @return [Google::Apis::CloudtasksV2beta3::AppEngineRouting]
133
+ attr_accessor :app_engine_routing
134
+
135
+ # HTTP request body.
136
+ # A request body is allowed only if the HTTP method is POST or PUT. It is
137
+ # an error to set a body on a task with an incompatible HttpMethod.
138
+ # Corresponds to the JSON property `body`
139
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
140
+ # @return [String]
141
+ attr_accessor :body
142
+
143
+ # HTTP request headers.
144
+ # This map contains the header field names and values.
145
+ # Headers can be set when the
146
+ # task is created.
147
+ # Repeated headers are not supported but a header value can contain commas.
148
+ # Cloud Tasks sets some headers to default values:
149
+ # * `User-Agent`: By default, this header is
150
+ # `"AppEngine-Google; (+http://code.google.com/appengine)"`.
151
+ # This header can be modified, but Cloud Tasks will append
152
+ # `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
153
+ # modified `User-Agent`.
154
+ # If the task has a body, Cloud
155
+ # Tasks sets the following headers:
156
+ # * `Content-Type`: By default, the `Content-Type` header is set to
157
+ # `"application/octet-stream"`. The default can be overridden by explicitly
158
+ # setting `Content-Type` to a particular media type when the
159
+ # task is created.
160
+ # For example, `Content-Type` can be set to `"application/json"`.
161
+ # * `Content-Length`: This is computed by Cloud Tasks. This value is
162
+ # output only. It cannot be changed.
163
+ # The headers below cannot be set or overridden:
164
+ # * `Host`
165
+ # * `X-Google-*`
166
+ # * `X-AppEngine-*`
167
+ # In addition, Cloud Tasks sets some headers when the task is dispatched,
168
+ # such as headers containing information about the task; see
169
+ # [request headers](https://cloud.google.com/appengine/docs/python/taskqueue/
170
+ # push/creating-handlers#reading_request_headers).
171
+ # These headers are set only when the task is dispatched, so they are not
172
+ # visible when the task is returned in a Cloud Tasks response.
173
+ # Although there is no specific limit for the maximum number of headers or
174
+ # the size, there is a limit on the maximum size of the Task. For more
175
+ # information, see the CreateTask documentation.
176
+ # Corresponds to the JSON property `headers`
177
+ # @return [Hash<String,String>]
178
+ attr_accessor :headers
179
+
180
+ # The HTTP method to use for the request. The default is POST.
181
+ # The app's request handler for the task's target URL must be able to handle
182
+ # HTTP requests with this http_method, otherwise the task attempt will fail
183
+ # with error code 405 (Method Not Allowed). See
184
+ # [Writing a push task request handler](https://cloud.google.com/appengine/docs/
185
+ # java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler)
186
+ # and the documentation for the request handlers in the language your app is
187
+ # written in e.g.
188
+ # [Python Request Handler](https://cloud.google.com/appengine/docs/python/tools/
189
+ # webapp/requesthandlerclass).
190
+ # Corresponds to the JSON property `httpMethod`
191
+ # @return [String]
192
+ attr_accessor :http_method
193
+
194
+ # The relative URI.
195
+ # The relative URI must begin with "/" and must be a valid HTTP relative URI.
196
+ # It can contain a path and query string arguments.
197
+ # If the relative URI is empty, then the root path "/" will be used.
198
+ # No spaces are allowed, and the maximum length allowed is 2083 characters.
199
+ # Corresponds to the JSON property `relativeUri`
200
+ # @return [String]
201
+ attr_accessor :relative_uri
202
+
203
+ def initialize(**args)
204
+ update!(**args)
205
+ end
206
+
207
+ # Update properties of this object
208
+ def update!(**args)
209
+ @app_engine_routing = args[:app_engine_routing] if args.key?(:app_engine_routing)
210
+ @body = args[:body] if args.key?(:body)
211
+ @headers = args[:headers] if args.key?(:headers)
212
+ @http_method = args[:http_method] if args.key?(:http_method)
213
+ @relative_uri = args[:relative_uri] if args.key?(:relative_uri)
214
+ end
215
+ end
216
+
217
+ # App Engine Routing.
218
+ # Specifies the target URI. Since this target type dispatches tasks to secure
219
+ # app handlers, unsecure app handlers, and URIs restricted with
220
+ # [`login: admin`](https://cloud.google.com/appengine/docs/standard/python/
221
+ # config/appref)
222
+ # the protocol (for example, HTTP or HTTPS) cannot be explictly specified.
223
+ # Task dispatches do not follow redirects and cannot target URI paths
224
+ # restricted with
225
+ # [`login: required`](https://cloud.google.com/appengine/docs/standard/python/
226
+ # config/appref)
227
+ # because tasks are not run as any user.
228
+ # For more information about services, versions, and instances see
229
+ # [An Overview of App Engine](https://cloud.google.com/appengine/docs/python/an-
230
+ # overview-of-app-engine),
231
+ # [Microservices Architecture on Google App Engine](https://cloud.google.com/
232
+ # appengine/docs/python/microservices-on-app-engine),
233
+ # [App Engine Standard request routing](https://cloud.google.com/appengine/docs/
234
+ # standard/python/how-requests-are-routed),
235
+ # and [App Engine Flex request routing](https://cloud.google.com/appengine/docs/
236
+ # flexible/python/how-requests-are-routed).
237
+ class AppEngineRouting
238
+ include Google::Apis::Core::Hashable
239
+
240
+ # Output only. The host that the task is sent to.
241
+ # The host is constructed from the domain name of the app associated with
242
+ # the queue's project ID (for example <app-id>.appspot.com), and the
243
+ # service, version,
244
+ # and instance. Tasks which were created using
245
+ # the App Engine SDK might have a custom domain name.
246
+ # For more information, see
247
+ # [How Requests are Routed](https://cloud.google.com/appengine/docs/standard/
248
+ # python/how-requests-are-routed).
249
+ # Corresponds to the JSON property `host`
250
+ # @return [String]
251
+ attr_accessor :host
252
+
253
+ # App instance.
254
+ # By default, the task is sent to an instance which is available when
255
+ # the task is attempted.
256
+ # Requests can only be sent to a specific instance if
257
+ # [manual scaling is used in App Engine Standard](https://cloud.google.com/
258
+ # appengine/docs/python/an-overview-of-app-engine?hl=en_US#
259
+ # scaling_types_and_instance_classes).
260
+ # App Engine Flex does not support instances. For more information, see
261
+ # [App Engine Standard request routing](https://cloud.google.com/appengine/docs/
262
+ # standard/python/how-requests-are-routed)
263
+ # and [App Engine Flex request routing](https://cloud.google.com/appengine/docs/
264
+ # flexible/python/how-requests-are-routed).
265
+ # Corresponds to the JSON property `instance`
266
+ # @return [String]
267
+ attr_accessor :instance
268
+
269
+ # App service.
270
+ # By default, the task is sent to the service which is the default
271
+ # service when the task is attempted.
272
+ # For some queues or tasks which were created using the App Engine
273
+ # Task Queue API, host is not parsable
274
+ # into service,
275
+ # version, and
276
+ # instance. For example, some tasks
277
+ # which were created using the App Engine SDK use a custom domain
278
+ # name; custom domains are not parsed by Cloud Tasks. If
279
+ # host is not parsable, then
280
+ # service,
281
+ # version, and
282
+ # instance are the empty string.
283
+ # Corresponds to the JSON property `service`
284
+ # @return [String]
285
+ attr_accessor :service
286
+
287
+ # App version.
288
+ # By default, the task is sent to the version which is the default
289
+ # version when the task is attempted.
290
+ # For some queues or tasks which were created using the App Engine
291
+ # Task Queue API, host is not parsable
292
+ # into service,
293
+ # version, and
294
+ # instance. For example, some tasks
295
+ # which were created using the App Engine SDK use a custom domain
296
+ # name; custom domains are not parsed by Cloud Tasks. If
297
+ # host is not parsable, then
298
+ # service,
299
+ # version, and
300
+ # instance are the empty string.
301
+ # Corresponds to the JSON property `version`
302
+ # @return [String]
303
+ attr_accessor :version
304
+
305
+ def initialize(**args)
306
+ update!(**args)
307
+ end
308
+
309
+ # Update properties of this object
310
+ def update!(**args)
311
+ @host = args[:host] if args.key?(:host)
312
+ @instance = args[:instance] if args.key?(:instance)
313
+ @service = args[:service] if args.key?(:service)
314
+ @version = args[:version] if args.key?(:version)
315
+ end
316
+ end
317
+
318
+ # The status of a task attempt.
319
+ class Attempt
320
+ include Google::Apis::Core::Hashable
321
+
322
+ # Output only. The time that this attempt was dispatched.
323
+ # `dispatch_time` will be truncated to the nearest microsecond.
324
+ # Corresponds to the JSON property `dispatchTime`
325
+ # @return [String]
326
+ attr_accessor :dispatch_time
327
+
328
+ # The `Status` type defines a logical error model that is suitable for different
329
+ # programming environments, including REST APIs and RPC APIs. It is used by
330
+ # [gRPC](https://github.com/grpc). The error model is designed to be:
331
+ # - Simple to use and understand for most users
332
+ # - Flexible enough to meet unexpected needs
333
+ # # Overview
334
+ # The `Status` message contains three pieces of data: error code, error message,
335
+ # and error details. The error code should be an enum value of
336
+ # google.rpc.Code, but it may accept additional error codes if needed. The
337
+ # error message should be a developer-facing English message that helps
338
+ # developers *understand* and *resolve* the error. If a localized user-facing
339
+ # error message is needed, put the localized message in the error details or
340
+ # localize it in the client. The optional error details may contain arbitrary
341
+ # information about the error. There is a predefined set of error detail types
342
+ # in the package `google.rpc` that can be used for common error conditions.
343
+ # # Language mapping
344
+ # The `Status` message is the logical representation of the error model, but it
345
+ # is not necessarily the actual wire format. When the `Status` message is
346
+ # exposed in different client libraries and different wire protocols, it can be
347
+ # mapped differently. For example, it will likely be mapped to some exceptions
348
+ # in Java, but more likely mapped to some error codes in C.
349
+ # # Other uses
350
+ # The error model and the `Status` message can be used in a variety of
351
+ # environments, either with or without APIs, to provide a
352
+ # consistent developer experience across different environments.
353
+ # Example uses of this error model include:
354
+ # - Partial errors. If a service needs to return partial errors to the client,
355
+ # it may embed the `Status` in the normal response to indicate the partial
356
+ # errors.
357
+ # - Workflow errors. A typical workflow has multiple steps. Each step may
358
+ # have a `Status` message for error reporting.
359
+ # - Batch operations. If a client uses batch request and batch response, the
360
+ # `Status` message should be used directly inside batch response, one for
361
+ # each error sub-response.
362
+ # - Asynchronous operations. If an API call embeds asynchronous operation
363
+ # results in its response, the status of those operations should be
364
+ # represented directly using the `Status` message.
365
+ # - Logging. If some API errors are stored in logs, the message `Status` could
366
+ # be used directly after any stripping needed for security/privacy reasons.
367
+ # Corresponds to the JSON property `responseStatus`
368
+ # @return [Google::Apis::CloudtasksV2beta3::Status]
369
+ attr_accessor :response_status
370
+
371
+ # Output only. The time that this attempt response was received.
372
+ # `response_time` will be truncated to the nearest microsecond.
373
+ # Corresponds to the JSON property `responseTime`
374
+ # @return [String]
375
+ attr_accessor :response_time
376
+
377
+ # Output only. The time that this attempt was scheduled.
378
+ # `schedule_time` will be truncated to the nearest microsecond.
379
+ # Corresponds to the JSON property `scheduleTime`
380
+ # @return [String]
381
+ attr_accessor :schedule_time
382
+
383
+ def initialize(**args)
384
+ update!(**args)
385
+ end
386
+
387
+ # Update properties of this object
388
+ def update!(**args)
389
+ @dispatch_time = args[:dispatch_time] if args.key?(:dispatch_time)
390
+ @response_status = args[:response_status] if args.key?(:response_status)
391
+ @response_time = args[:response_time] if args.key?(:response_time)
392
+ @schedule_time = args[:schedule_time] if args.key?(:schedule_time)
393
+ end
394
+ end
395
+
396
+ # Associates `members` with a `role`.
397
+ class Binding
398
+ include Google::Apis::Core::Hashable
399
+
400
+ # Represents an expression text. Example:
401
+ # title: "User account presence"
402
+ # description: "Determines whether the request has a user account"
403
+ # expression: "size(request.user) > 0"
404
+ # Corresponds to the JSON property `condition`
405
+ # @return [Google::Apis::CloudtasksV2beta3::Expr]
406
+ attr_accessor :condition
407
+
408
+ # Specifies the identities requesting access for a Cloud Platform resource.
409
+ # `members` can have the following values:
410
+ # * `allUsers`: A special identifier that represents anyone who is
411
+ # on the internet; with or without a Google account.
412
+ # * `allAuthenticatedUsers`: A special identifier that represents anyone
413
+ # who is authenticated with a Google account or a service account.
414
+ # * `user:`emailid``: An email address that represents a specific Google
415
+ # account. For example, `alice@gmail.com` .
416
+ # * `serviceAccount:`emailid``: An email address that represents a service
417
+ # account. For example, `my-other-app@appspot.gserviceaccount.com`.
418
+ # * `group:`emailid``: An email address that represents a Google group.
419
+ # For example, `admins@example.com`.
420
+ # * `domain:`domain``: A Google Apps domain name that represents all the
421
+ # users of that domain. For example, `google.com` or `example.com`.
422
+ # Corresponds to the JSON property `members`
423
+ # @return [Array<String>]
424
+ attr_accessor :members
425
+
426
+ # Role that is assigned to `members`.
427
+ # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
428
+ # Corresponds to the JSON property `role`
429
+ # @return [String]
430
+ attr_accessor :role
431
+
432
+ def initialize(**args)
433
+ update!(**args)
434
+ end
435
+
436
+ # Update properties of this object
437
+ def update!(**args)
438
+ @condition = args[:condition] if args.key?(:condition)
439
+ @members = args[:members] if args.key?(:members)
440
+ @role = args[:role] if args.key?(:role)
441
+ end
442
+ end
443
+
444
+ # Request message for CreateTask.
445
+ class CreateTaskRequest
446
+ include Google::Apis::Core::Hashable
447
+
448
+ # The response_view specifies which subset of the Task will be
449
+ # returned.
450
+ # By default response_view is BASIC; not all
451
+ # information is retrieved by default because some data, such as
452
+ # payloads, might be desirable to return only when needed because
453
+ # of its large size or because of the sensitivity of data that it
454
+ # contains.
455
+ # Authorization for FULL requires
456
+ # `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
457
+ # permission on the Task resource.
458
+ # Corresponds to the JSON property `responseView`
459
+ # @return [String]
460
+ attr_accessor :response_view
461
+
462
+ # A unit of scheduled work.
463
+ # Corresponds to the JSON property `task`
464
+ # @return [Google::Apis::CloudtasksV2beta3::Task]
465
+ attr_accessor :task
466
+
467
+ def initialize(**args)
468
+ update!(**args)
469
+ end
470
+
471
+ # Update properties of this object
472
+ def update!(**args)
473
+ @response_view = args[:response_view] if args.key?(:response_view)
474
+ @task = args[:task] if args.key?(:task)
475
+ end
476
+ end
477
+
478
+ # A generic empty message that you can re-use to avoid defining duplicated
479
+ # empty messages in your APIs. A typical example is to use it as the request
480
+ # or the response type of an API method. For instance:
481
+ # service Foo `
482
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
483
+ # `
484
+ # The JSON representation for `Empty` is empty JSON object ````.
485
+ class Empty
486
+ include Google::Apis::Core::Hashable
487
+
488
+ def initialize(**args)
489
+ update!(**args)
490
+ end
491
+
492
+ # Update properties of this object
493
+ def update!(**args)
494
+ end
495
+ end
496
+
497
+ # Represents an expression text. Example:
498
+ # title: "User account presence"
499
+ # description: "Determines whether the request has a user account"
500
+ # expression: "size(request.user) > 0"
501
+ class Expr
502
+ include Google::Apis::Core::Hashable
503
+
504
+ # An optional description of the expression. This is a longer text which
505
+ # describes the expression, e.g. when hovered over it in a UI.
506
+ # Corresponds to the JSON property `description`
507
+ # @return [String]
508
+ attr_accessor :description
509
+
510
+ # Textual representation of an expression in
511
+ # Common Expression Language syntax.
512
+ # The application context of the containing message determines which
513
+ # well-known feature set of CEL is supported.
514
+ # Corresponds to the JSON property `expression`
515
+ # @return [String]
516
+ attr_accessor :expression
517
+
518
+ # An optional string indicating the location of the expression for error
519
+ # reporting, e.g. a file name and a position in the file.
520
+ # Corresponds to the JSON property `location`
521
+ # @return [String]
522
+ attr_accessor :location
523
+
524
+ # An optional title for the expression, i.e. a short string describing
525
+ # its purpose. This can be used e.g. in UIs which allow to enter the
526
+ # expression.
527
+ # Corresponds to the JSON property `title`
528
+ # @return [String]
529
+ attr_accessor :title
530
+
531
+ def initialize(**args)
532
+ update!(**args)
533
+ end
534
+
535
+ # Update properties of this object
536
+ def update!(**args)
537
+ @description = args[:description] if args.key?(:description)
538
+ @expression = args[:expression] if args.key?(:expression)
539
+ @location = args[:location] if args.key?(:location)
540
+ @title = args[:title] if args.key?(:title)
541
+ end
542
+ end
543
+
544
+ # Request message for `GetIamPolicy` method.
545
+ class GetIamPolicyRequest
546
+ include Google::Apis::Core::Hashable
547
+
548
+ def initialize(**args)
549
+ update!(**args)
550
+ end
551
+
552
+ # Update properties of this object
553
+ def update!(**args)
554
+ end
555
+ end
556
+
557
+ # The response message for Locations.ListLocations.
558
+ class ListLocationsResponse
559
+ include Google::Apis::Core::Hashable
560
+
561
+ # A list of locations that matches the specified filter in the request.
562
+ # Corresponds to the JSON property `locations`
563
+ # @return [Array<Google::Apis::CloudtasksV2beta3::Location>]
564
+ attr_accessor :locations
565
+
566
+ # The standard List next-page token.
567
+ # Corresponds to the JSON property `nextPageToken`
568
+ # @return [String]
569
+ attr_accessor :next_page_token
570
+
571
+ def initialize(**args)
572
+ update!(**args)
573
+ end
574
+
575
+ # Update properties of this object
576
+ def update!(**args)
577
+ @locations = args[:locations] if args.key?(:locations)
578
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
579
+ end
580
+ end
581
+
582
+ # Response message for ListQueues.
583
+ class ListQueuesResponse
584
+ include Google::Apis::Core::Hashable
585
+
586
+ # A token to retrieve next page of results.
587
+ # To return the next page of results, call
588
+ # ListQueues with this value as the
589
+ # page_token.
590
+ # If the next_page_token is empty, there are no more results.
591
+ # The page token is valid for only 2 hours.
592
+ # Corresponds to the JSON property `nextPageToken`
593
+ # @return [String]
594
+ attr_accessor :next_page_token
595
+
596
+ # The list of queues.
597
+ # Corresponds to the JSON property `queues`
598
+ # @return [Array<Google::Apis::CloudtasksV2beta3::Queue>]
599
+ attr_accessor :queues
600
+
601
+ def initialize(**args)
602
+ update!(**args)
603
+ end
604
+
605
+ # Update properties of this object
606
+ def update!(**args)
607
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
608
+ @queues = args[:queues] if args.key?(:queues)
609
+ end
610
+ end
611
+
612
+ # Response message for listing tasks using ListTasks.
613
+ class ListTasksResponse
614
+ include Google::Apis::Core::Hashable
615
+
616
+ # A token to retrieve next page of results.
617
+ # To return the next page of results, call
618
+ # ListTasks with this value as the
619
+ # page_token.
620
+ # If the next_page_token is empty, there are no more results.
621
+ # Corresponds to the JSON property `nextPageToken`
622
+ # @return [String]
623
+ attr_accessor :next_page_token
624
+
625
+ # The list of tasks.
626
+ # Corresponds to the JSON property `tasks`
627
+ # @return [Array<Google::Apis::CloudtasksV2beta3::Task>]
628
+ attr_accessor :tasks
629
+
630
+ def initialize(**args)
631
+ update!(**args)
632
+ end
633
+
634
+ # Update properties of this object
635
+ def update!(**args)
636
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
637
+ @tasks = args[:tasks] if args.key?(:tasks)
638
+ end
639
+ end
640
+
641
+ # A resource that represents Google Cloud Platform location.
642
+ class Location
643
+ include Google::Apis::Core::Hashable
644
+
645
+ # The friendly name for this location, typically a nearby city name.
646
+ # For example, "Tokyo".
647
+ # Corresponds to the JSON property `displayName`
648
+ # @return [String]
649
+ attr_accessor :display_name
650
+
651
+ # Cross-service attributes for the location. For example
652
+ # `"cloud.googleapis.com/region": "us-east1"`
653
+ # Corresponds to the JSON property `labels`
654
+ # @return [Hash<String,String>]
655
+ attr_accessor :labels
656
+
657
+ # The canonical id for this location. For example: `"us-east1"`.
658
+ # Corresponds to the JSON property `locationId`
659
+ # @return [String]
660
+ attr_accessor :location_id
661
+
662
+ # Service-specific metadata. For example the available capacity at the given
663
+ # location.
664
+ # Corresponds to the JSON property `metadata`
665
+ # @return [Hash<String,Object>]
666
+ attr_accessor :metadata
667
+
668
+ # Resource name for the location, which may vary between implementations.
669
+ # For example: `"projects/example-project/locations/us-east1"`
670
+ # Corresponds to the JSON property `name`
671
+ # @return [String]
672
+ attr_accessor :name
673
+
674
+ def initialize(**args)
675
+ update!(**args)
676
+ end
677
+
678
+ # Update properties of this object
679
+ def update!(**args)
680
+ @display_name = args[:display_name] if args.key?(:display_name)
681
+ @labels = args[:labels] if args.key?(:labels)
682
+ @location_id = args[:location_id] if args.key?(:location_id)
683
+ @metadata = args[:metadata] if args.key?(:metadata)
684
+ @name = args[:name] if args.key?(:name)
685
+ end
686
+ end
687
+
688
+ # Request message for PauseQueue.
689
+ class PauseQueueRequest
690
+ include Google::Apis::Core::Hashable
691
+
692
+ def initialize(**args)
693
+ update!(**args)
694
+ end
695
+
696
+ # Update properties of this object
697
+ def update!(**args)
698
+ end
699
+ end
700
+
701
+ # Defines an Identity and Access Management (IAM) policy. It is used to
702
+ # specify access control policies for Cloud Platform resources.
703
+ # A `Policy` consists of a list of `bindings`. A `binding` binds a list of
704
+ # `members` to a `role`, where the members can be user accounts, Google groups,
705
+ # Google domains, and service accounts. A `role` is a named list of permissions
706
+ # defined by IAM.
707
+ # **JSON Example**
708
+ # `
709
+ # "bindings": [
710
+ # `
711
+ # "role": "roles/owner",
712
+ # "members": [
713
+ # "user:mike@example.com",
714
+ # "group:admins@example.com",
715
+ # "domain:google.com",
716
+ # "serviceAccount:my-other-app@appspot.gserviceaccount.com"
717
+ # ]
718
+ # `,
719
+ # `
720
+ # "role": "roles/viewer",
721
+ # "members": ["user:sean@example.com"]
722
+ # `
723
+ # ]
724
+ # `
725
+ # **YAML Example**
726
+ # bindings:
727
+ # - members:
728
+ # - user:mike@example.com
729
+ # - group:admins@example.com
730
+ # - domain:google.com
731
+ # - serviceAccount:my-other-app@appspot.gserviceaccount.com
732
+ # role: roles/owner
733
+ # - members:
734
+ # - user:sean@example.com
735
+ # role: roles/viewer
736
+ # For a description of IAM and its features, see the
737
+ # [IAM developer's guide](https://cloud.google.com/iam/docs).
738
+ class Policy
739
+ include Google::Apis::Core::Hashable
740
+
741
+ # Associates a list of `members` to a `role`.
742
+ # `bindings` with no members will result in an error.
743
+ # Corresponds to the JSON property `bindings`
744
+ # @return [Array<Google::Apis::CloudtasksV2beta3::Binding>]
745
+ attr_accessor :bindings
746
+
747
+ # `etag` is used for optimistic concurrency control as a way to help
748
+ # prevent simultaneous updates of a policy from overwriting each other.
749
+ # It is strongly suggested that systems make use of the `etag` in the
750
+ # read-modify-write cycle to perform policy updates in order to avoid race
751
+ # conditions: An `etag` is returned in the response to `getIamPolicy`, and
752
+ # systems are expected to put that etag in the request to `setIamPolicy` to
753
+ # ensure that their change will be applied to the same version of the policy.
754
+ # If no `etag` is provided in the call to `setIamPolicy`, then the existing
755
+ # policy is overwritten blindly.
756
+ # Corresponds to the JSON property `etag`
757
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
758
+ # @return [String]
759
+ attr_accessor :etag
760
+
761
+ # Deprecated.
762
+ # Corresponds to the JSON property `version`
763
+ # @return [Fixnum]
764
+ attr_accessor :version
765
+
766
+ def initialize(**args)
767
+ update!(**args)
768
+ end
769
+
770
+ # Update properties of this object
771
+ def update!(**args)
772
+ @bindings = args[:bindings] if args.key?(:bindings)
773
+ @etag = args[:etag] if args.key?(:etag)
774
+ @version = args[:version] if args.key?(:version)
775
+ end
776
+ end
777
+
778
+ # Request message for PurgeQueue.
779
+ class PurgeQueueRequest
780
+ include Google::Apis::Core::Hashable
781
+
782
+ def initialize(**args)
783
+ update!(**args)
784
+ end
785
+
786
+ # Update properties of this object
787
+ def update!(**args)
788
+ end
789
+ end
790
+
791
+ # A queue is a container of related tasks. Queues are configured to manage
792
+ # how those tasks are dispatched. Configurable properties include rate limits,
793
+ # retry options, queue types, and others.
794
+ class Queue
795
+ include Google::Apis::Core::Hashable
796
+
797
+ # App Engine HTTP queue.
798
+ # The task will be delivered to the App Engine application hostname
799
+ # specified by its AppEngineHttpQueue and AppEngineHttpRequest.
800
+ # The documentation for AppEngineHttpRequest explains how the
801
+ # task's host URL is constructed.
802
+ # Using AppEngineHttpQueue requires
803
+ # [`appengine.applications.get`](https://cloud.google.com/appengine/docs/admin-
804
+ # api/access-control)
805
+ # Google IAM permission for the project
806
+ # and the following scope:
807
+ # `https://www.googleapis.com/auth/cloud-platform`
808
+ # Corresponds to the JSON property `appEngineHttpQueue`
809
+ # @return [Google::Apis::CloudtasksV2beta3::AppEngineHttpQueue]
810
+ attr_accessor :app_engine_http_queue
811
+
812
+ # Caller-specified and required in CreateQueue,
813
+ # after which it becomes output only.
814
+ # The queue name.
815
+ # The queue name must have the following format:
816
+ # `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
817
+ # * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
818
+ # hyphens (-), colons (:), or periods (.).
819
+ # For more information, see
820
+ # [Identifying projects](https://cloud.google.com/resource-manager/docs/
821
+ # creating-managing-projects#identifying_projects)
822
+ # * `LOCATION_ID` is the canonical ID for the queue's location.
823
+ # The list of available locations can be obtained by calling
824
+ # ListLocations.
825
+ # For more information, see https://cloud.google.com/about/locations/.
826
+ # * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
827
+ # hyphens (-). The maximum length is 100 characters.
828
+ # Corresponds to the JSON property `name`
829
+ # @return [String]
830
+ attr_accessor :name
831
+
832
+ # Output only. The last time this queue was purged.
833
+ # All tasks that were created before this time
834
+ # were purged.
835
+ # A queue can be purged using PurgeQueue, the
836
+ # [App Engine Task Queue SDK, or the Cloud Console](https://cloud.google.com/
837
+ # appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#
838
+ # purging_all_tasks_from_a_queue).
839
+ # Purge time will be truncated to the nearest microsecond. Purge
840
+ # time will be unset if the queue has never been purged.
841
+ # Corresponds to the JSON property `purgeTime`
842
+ # @return [String]
843
+ attr_accessor :purge_time
844
+
845
+ # Rate limits.
846
+ # This message determines the maximum rate that tasks can be dispatched by a
847
+ # queue, regardless of whether the dispatch is a first task attempt or a retry.
848
+ # Note: The debugging command, RunTask, will run a task
849
+ # even if the queue has reached its RateLimits.
850
+ # Corresponds to the JSON property `rateLimits`
851
+ # @return [Google::Apis::CloudtasksV2beta3::RateLimits]
852
+ attr_accessor :rate_limits
853
+
854
+ # Retry config.
855
+ # These settings determine when a failed task attempt is retried.
856
+ # Corresponds to the JSON property `retryConfig`
857
+ # @return [Google::Apis::CloudtasksV2beta3::RetryConfig]
858
+ attr_accessor :retry_config
859
+
860
+ # Output only. The state of the queue.
861
+ # `state` can only be changed by called
862
+ # PauseQueue,
863
+ # ResumeQueue, or uploading
864
+ # [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/
865
+ # queueref).
866
+ # UpdateQueue cannot be used to change `state`.
867
+ # Corresponds to the JSON property `state`
868
+ # @return [String]
869
+ attr_accessor :state
870
+
871
+ def initialize(**args)
872
+ update!(**args)
873
+ end
874
+
875
+ # Update properties of this object
876
+ def update!(**args)
877
+ @app_engine_http_queue = args[:app_engine_http_queue] if args.key?(:app_engine_http_queue)
878
+ @name = args[:name] if args.key?(:name)
879
+ @purge_time = args[:purge_time] if args.key?(:purge_time)
880
+ @rate_limits = args[:rate_limits] if args.key?(:rate_limits)
881
+ @retry_config = args[:retry_config] if args.key?(:retry_config)
882
+ @state = args[:state] if args.key?(:state)
883
+ end
884
+ end
885
+
886
+ # Rate limits.
887
+ # This message determines the maximum rate that tasks can be dispatched by a
888
+ # queue, regardless of whether the dispatch is a first task attempt or a retry.
889
+ # Note: The debugging command, RunTask, will run a task
890
+ # even if the queue has reached its RateLimits.
891
+ class RateLimits
892
+ include Google::Apis::Core::Hashable
893
+
894
+ # Output only. The max burst size.
895
+ # Max burst size limits how fast tasks in queue are processed when
896
+ # many tasks are in the queue and the rate is high. This field
897
+ # allows the queue to have a high rate so processing starts shortly
898
+ # after a task is enqueued, but still limits resource usage when
899
+ # many tasks are enqueued in a short period of time.
900
+ # The [token bucket](https://wikipedia.org/wiki/Token_Bucket)
901
+ # algorithm is used to control the rate of task dispatches. Each
902
+ # queue has a token bucket that holds tokens, up to the maximum
903
+ # specified by `max_burst_size`. Each time a task is dispatched, a
904
+ # token is removed from the bucket. Tasks will be dispatched until
905
+ # the queue's bucket runs out of tokens. The bucket will be
906
+ # continuously refilled with new tokens based on
907
+ # max_dispatches_per_second.
908
+ # Cloud Tasks will pick the value of `max_burst_size` based on the
909
+ # value of
910
+ # max_dispatches_per_second.
911
+ # For App Engine queues that were created or updated using
912
+ # `queue.yaml/xml`, `max_burst_size` is equal to
913
+ # [bucket_size](https://cloud.google.com/appengine/docs/standard/python/config/
914
+ # queueref#bucket_size).
915
+ # Since `max_burst_size` is output only, if
916
+ # UpdateQueue is called on a queue
917
+ # created by `queue.yaml/xml`, `max_burst_size` will be reset based
918
+ # on the value of
919
+ # max_dispatches_per_second,
920
+ # regardless of whether
921
+ # max_dispatches_per_second
922
+ # is updated.
923
+ # Corresponds to the JSON property `maxBurstSize`
924
+ # @return [Fixnum]
925
+ attr_accessor :max_burst_size
926
+
927
+ # The maximum number of concurrent tasks that Cloud Tasks allows
928
+ # to be dispatched for this queue. After this threshold has been
929
+ # reached, Cloud Tasks stops dispatching tasks until the number of
930
+ # concurrent requests decreases.
931
+ # If unspecified when the queue is created, Cloud Tasks will pick the
932
+ # default.
933
+ # The maximum allowed value is 5,000.
934
+ # This field has the same meaning as
935
+ # [max_concurrent_requests in queue.yaml/xml](https://cloud.google.com/appengine/
936
+ # docs/standard/python/config/queueref#max_concurrent_requests).
937
+ # Corresponds to the JSON property `maxConcurrentDispatches`
938
+ # @return [Fixnum]
939
+ attr_accessor :max_concurrent_dispatches
940
+
941
+ # The maximum rate at which tasks are dispatched from this queue.
942
+ # If unspecified when the queue is created, Cloud Tasks will pick the
943
+ # default.
944
+ # * For App Engine queues, the maximum allowed value
945
+ # is 500.
946
+ # This field has the same meaning as
947
+ # [rate in queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/
948
+ # python/config/queueref#rate).
949
+ # Corresponds to the JSON property `maxDispatchesPerSecond`
950
+ # @return [Float]
951
+ attr_accessor :max_dispatches_per_second
952
+
953
+ def initialize(**args)
954
+ update!(**args)
955
+ end
956
+
957
+ # Update properties of this object
958
+ def update!(**args)
959
+ @max_burst_size = args[:max_burst_size] if args.key?(:max_burst_size)
960
+ @max_concurrent_dispatches = args[:max_concurrent_dispatches] if args.key?(:max_concurrent_dispatches)
961
+ @max_dispatches_per_second = args[:max_dispatches_per_second] if args.key?(:max_dispatches_per_second)
962
+ end
963
+ end
964
+
965
+ # Request message for ResumeQueue.
966
+ class ResumeQueueRequest
967
+ include Google::Apis::Core::Hashable
968
+
969
+ def initialize(**args)
970
+ update!(**args)
971
+ end
972
+
973
+ # Update properties of this object
974
+ def update!(**args)
975
+ end
976
+ end
977
+
978
+ # Retry config.
979
+ # These settings determine when a failed task attempt is retried.
980
+ class RetryConfig
981
+ include Google::Apis::Core::Hashable
982
+
983
+ # Number of attempts per task.
984
+ # Cloud Tasks will attempt the task `max_attempts` times (that is, if the
985
+ # first attempt fails, then there will be `max_attempts - 1` retries). Must
986
+ # be >= -1.
987
+ # If unspecified when the queue is created, Cloud Tasks will pick the
988
+ # default.
989
+ # -1 indicates unlimited attempts.
990
+ # This field has the same meaning as
991
+ # [task_retry_limit in queue.yaml/xml](https://cloud.google.com/appengine/docs/
992
+ # standard/python/config/queueref#retry_parameters).
993
+ # Corresponds to the JSON property `maxAttempts`
994
+ # @return [Fixnum]
995
+ attr_accessor :max_attempts
996
+
997
+ # A task will be scheduled for retry between
998
+ # min_backoff and
999
+ # max_backoff duration after it fails,
1000
+ # if the queue's RetryConfig specifies that the task should be
1001
+ # retried.
1002
+ # If unspecified when the queue is created, Cloud Tasks will pick the
1003
+ # default.
1004
+ # `max_backoff` will be truncated to the nearest second.
1005
+ # This field has the same meaning as
1006
+ # [max_backoff_seconds in queue.yaml/xml](https://cloud.google.com/appengine/
1007
+ # docs/standard/python/config/queueref#retry_parameters).
1008
+ # Corresponds to the JSON property `maxBackoff`
1009
+ # @return [String]
1010
+ attr_accessor :max_backoff
1011
+
1012
+ # The time between retries will double `max_doublings` times.
1013
+ # A task's retry interval starts at
1014
+ # min_backoff, then doubles
1015
+ # `max_doublings` times, then increases linearly, and finally
1016
+ # retries retries at intervals of
1017
+ # max_backoff up to
1018
+ # max_attempts times.
1019
+ # For example, if min_backoff is 10s,
1020
+ # max_backoff is 300s, and
1021
+ # `max_doublings` is 3, then the a task will first be retried in
1022
+ # 10s. The retry interval will double three times, and then
1023
+ # increase linearly by 2^3 * 10s. Finally, the task will retry at
1024
+ # intervals of max_backoff until the
1025
+ # task has been attempted max_attempts
1026
+ # times. Thus, the requests will retry at 10s, 20s, 40s, 80s, 160s,
1027
+ # 240s, 300s, 300s, ....
1028
+ # If unspecified when the queue is created, Cloud Tasks will pick the
1029
+ # default.
1030
+ # This field has the same meaning as
1031
+ # [max_doublings in queue.yaml/xml](https://cloud.google.com/appengine/docs/
1032
+ # standard/python/config/queueref#retry_parameters).
1033
+ # Corresponds to the JSON property `maxDoublings`
1034
+ # @return [Fixnum]
1035
+ attr_accessor :max_doublings
1036
+
1037
+ # If positive, `max_retry_duration` specifies the time limit for
1038
+ # retrying a failed task, measured from when the task was first
1039
+ # attempted. Once `max_retry_duration` time has passed *and* the
1040
+ # task has been attempted max_attempts
1041
+ # times, no further attempts will be made and the task will be
1042
+ # deleted.
1043
+ # If zero, then the task age is unlimited.
1044
+ # If unspecified when the queue is created, Cloud Tasks will pick the
1045
+ # default.
1046
+ # `max_retry_duration` will be truncated to the nearest second.
1047
+ # This field has the same meaning as
1048
+ # [task_age_limit in queue.yaml/xml](https://cloud.google.com/appengine/docs/
1049
+ # standard/python/config/queueref#retry_parameters).
1050
+ # Corresponds to the JSON property `maxRetryDuration`
1051
+ # @return [String]
1052
+ attr_accessor :max_retry_duration
1053
+
1054
+ # A task will be scheduled for retry between
1055
+ # min_backoff and
1056
+ # max_backoff duration after it fails,
1057
+ # if the queue's RetryConfig specifies that the task should be
1058
+ # retried.
1059
+ # If unspecified when the queue is created, Cloud Tasks will pick the
1060
+ # default.
1061
+ # `min_backoff` will be truncated to the nearest second.
1062
+ # This field has the same meaning as
1063
+ # [min_backoff_seconds in queue.yaml/xml](https://cloud.google.com/appengine/
1064
+ # docs/standard/python/config/queueref#retry_parameters).
1065
+ # Corresponds to the JSON property `minBackoff`
1066
+ # @return [String]
1067
+ attr_accessor :min_backoff
1068
+
1069
+ def initialize(**args)
1070
+ update!(**args)
1071
+ end
1072
+
1073
+ # Update properties of this object
1074
+ def update!(**args)
1075
+ @max_attempts = args[:max_attempts] if args.key?(:max_attempts)
1076
+ @max_backoff = args[:max_backoff] if args.key?(:max_backoff)
1077
+ @max_doublings = args[:max_doublings] if args.key?(:max_doublings)
1078
+ @max_retry_duration = args[:max_retry_duration] if args.key?(:max_retry_duration)
1079
+ @min_backoff = args[:min_backoff] if args.key?(:min_backoff)
1080
+ end
1081
+ end
1082
+
1083
+ # Request message for forcing a task to run now using
1084
+ # RunTask.
1085
+ class RunTaskRequest
1086
+ include Google::Apis::Core::Hashable
1087
+
1088
+ # The response_view specifies which subset of the Task will be
1089
+ # returned.
1090
+ # By default response_view is BASIC; not all
1091
+ # information is retrieved by default because some data, such as
1092
+ # payloads, might be desirable to return only when needed because
1093
+ # of its large size or because of the sensitivity of data that it
1094
+ # contains.
1095
+ # Authorization for FULL requires
1096
+ # `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
1097
+ # permission on the Task resource.
1098
+ # Corresponds to the JSON property `responseView`
1099
+ # @return [String]
1100
+ attr_accessor :response_view
1101
+
1102
+ def initialize(**args)
1103
+ update!(**args)
1104
+ end
1105
+
1106
+ # Update properties of this object
1107
+ def update!(**args)
1108
+ @response_view = args[:response_view] if args.key?(:response_view)
1109
+ end
1110
+ end
1111
+
1112
+ # Request message for `SetIamPolicy` method.
1113
+ class SetIamPolicyRequest
1114
+ include Google::Apis::Core::Hashable
1115
+
1116
+ # Defines an Identity and Access Management (IAM) policy. It is used to
1117
+ # specify access control policies for Cloud Platform resources.
1118
+ # A `Policy` consists of a list of `bindings`. A `binding` binds a list of
1119
+ # `members` to a `role`, where the members can be user accounts, Google groups,
1120
+ # Google domains, and service accounts. A `role` is a named list of permissions
1121
+ # defined by IAM.
1122
+ # **JSON Example**
1123
+ # `
1124
+ # "bindings": [
1125
+ # `
1126
+ # "role": "roles/owner",
1127
+ # "members": [
1128
+ # "user:mike@example.com",
1129
+ # "group:admins@example.com",
1130
+ # "domain:google.com",
1131
+ # "serviceAccount:my-other-app@appspot.gserviceaccount.com"
1132
+ # ]
1133
+ # `,
1134
+ # `
1135
+ # "role": "roles/viewer",
1136
+ # "members": ["user:sean@example.com"]
1137
+ # `
1138
+ # ]
1139
+ # `
1140
+ # **YAML Example**
1141
+ # bindings:
1142
+ # - members:
1143
+ # - user:mike@example.com
1144
+ # - group:admins@example.com
1145
+ # - domain:google.com
1146
+ # - serviceAccount:my-other-app@appspot.gserviceaccount.com
1147
+ # role: roles/owner
1148
+ # - members:
1149
+ # - user:sean@example.com
1150
+ # role: roles/viewer
1151
+ # For a description of IAM and its features, see the
1152
+ # [IAM developer's guide](https://cloud.google.com/iam/docs).
1153
+ # Corresponds to the JSON property `policy`
1154
+ # @return [Google::Apis::CloudtasksV2beta3::Policy]
1155
+ attr_accessor :policy
1156
+
1157
+ def initialize(**args)
1158
+ update!(**args)
1159
+ end
1160
+
1161
+ # Update properties of this object
1162
+ def update!(**args)
1163
+ @policy = args[:policy] if args.key?(:policy)
1164
+ end
1165
+ end
1166
+
1167
+ # The `Status` type defines a logical error model that is suitable for different
1168
+ # programming environments, including REST APIs and RPC APIs. It is used by
1169
+ # [gRPC](https://github.com/grpc). The error model is designed to be:
1170
+ # - Simple to use and understand for most users
1171
+ # - Flexible enough to meet unexpected needs
1172
+ # # Overview
1173
+ # The `Status` message contains three pieces of data: error code, error message,
1174
+ # and error details. The error code should be an enum value of
1175
+ # google.rpc.Code, but it may accept additional error codes if needed. The
1176
+ # error message should be a developer-facing English message that helps
1177
+ # developers *understand* and *resolve* the error. If a localized user-facing
1178
+ # error message is needed, put the localized message in the error details or
1179
+ # localize it in the client. The optional error details may contain arbitrary
1180
+ # information about the error. There is a predefined set of error detail types
1181
+ # in the package `google.rpc` that can be used for common error conditions.
1182
+ # # Language mapping
1183
+ # The `Status` message is the logical representation of the error model, but it
1184
+ # is not necessarily the actual wire format. When the `Status` message is
1185
+ # exposed in different client libraries and different wire protocols, it can be
1186
+ # mapped differently. For example, it will likely be mapped to some exceptions
1187
+ # in Java, but more likely mapped to some error codes in C.
1188
+ # # Other uses
1189
+ # The error model and the `Status` message can be used in a variety of
1190
+ # environments, either with or without APIs, to provide a
1191
+ # consistent developer experience across different environments.
1192
+ # Example uses of this error model include:
1193
+ # - Partial errors. If a service needs to return partial errors to the client,
1194
+ # it may embed the `Status` in the normal response to indicate the partial
1195
+ # errors.
1196
+ # - Workflow errors. A typical workflow has multiple steps. Each step may
1197
+ # have a `Status` message for error reporting.
1198
+ # - Batch operations. If a client uses batch request and batch response, the
1199
+ # `Status` message should be used directly inside batch response, one for
1200
+ # each error sub-response.
1201
+ # - Asynchronous operations. If an API call embeds asynchronous operation
1202
+ # results in its response, the status of those operations should be
1203
+ # represented directly using the `Status` message.
1204
+ # - Logging. If some API errors are stored in logs, the message `Status` could
1205
+ # be used directly after any stripping needed for security/privacy reasons.
1206
+ class Status
1207
+ include Google::Apis::Core::Hashable
1208
+
1209
+ # The status code, which should be an enum value of google.rpc.Code.
1210
+ # Corresponds to the JSON property `code`
1211
+ # @return [Fixnum]
1212
+ attr_accessor :code
1213
+
1214
+ # A list of messages that carry the error details. There is a common set of
1215
+ # message types for APIs to use.
1216
+ # Corresponds to the JSON property `details`
1217
+ # @return [Array<Hash<String,Object>>]
1218
+ attr_accessor :details
1219
+
1220
+ # A developer-facing error message, which should be in English. Any
1221
+ # user-facing error message should be localized and sent in the
1222
+ # google.rpc.Status.details field, or localized by the client.
1223
+ # Corresponds to the JSON property `message`
1224
+ # @return [String]
1225
+ attr_accessor :message
1226
+
1227
+ def initialize(**args)
1228
+ update!(**args)
1229
+ end
1230
+
1231
+ # Update properties of this object
1232
+ def update!(**args)
1233
+ @code = args[:code] if args.key?(:code)
1234
+ @details = args[:details] if args.key?(:details)
1235
+ @message = args[:message] if args.key?(:message)
1236
+ end
1237
+ end
1238
+
1239
+ # A unit of scheduled work.
1240
+ class Task
1241
+ include Google::Apis::Core::Hashable
1242
+
1243
+ # App Engine HTTP request.
1244
+ # The message defines the HTTP request that is sent to an App Engine app when
1245
+ # the task is dispatched.
1246
+ # This proto can only be used for tasks in a queue which has
1247
+ # app_engine_http_queue set.
1248
+ # Using AppEngineHttpRequest requires
1249
+ # [`appengine.applications.get`](https://cloud.google.com/appengine/docs/admin-
1250
+ # api/access-control)
1251
+ # Google IAM permission for the project
1252
+ # and the following scope:
1253
+ # `https://www.googleapis.com/auth/cloud-platform`
1254
+ # The task will be delivered to the App Engine app which belongs to the same
1255
+ # project as the queue. For more information, see
1256
+ # [How Requests are Routed](https://cloud.google.com/appengine/docs/standard/
1257
+ # python/how-requests-are-routed)
1258
+ # and how routing is affected by
1259
+ # [dispatch files](https://cloud.google.com/appengine/docs/python/config/
1260
+ # dispatchref).
1261
+ # The AppEngineRouting used to construct the URL that the task is
1262
+ # delivered to can be set at the queue-level or task-level:
1263
+ # * If set,
1264
+ # app_engine_routing_override
1265
+ # is used for all tasks in the queue, no matter what the setting
1266
+ # is for the
1267
+ # task-level app_engine_routing.
1268
+ # The `url` that the task will be sent to is:
1269
+ # * `url =` host `+`
1270
+ # relative_uri
1271
+ # The task attempt has succeeded if the app's request handler returns
1272
+ # an HTTP response code in the range [`200` - `299`]. `503` is
1273
+ # considered an App Engine system error instead of an application
1274
+ # error. Requests returning error `503` will be retried regardless of
1275
+ # retry configuration and not counted against retry counts.
1276
+ # Any other response code or a failure to receive a response before the
1277
+ # deadline is a failed attempt.
1278
+ # Corresponds to the JSON property `appEngineHttpRequest`
1279
+ # @return [Google::Apis::CloudtasksV2beta3::AppEngineHttpRequest]
1280
+ attr_accessor :app_engine_http_request
1281
+
1282
+ # Output only. The time that the task was created.
1283
+ # `create_time` will be truncated to the nearest second.
1284
+ # Corresponds to the JSON property `createTime`
1285
+ # @return [String]
1286
+ attr_accessor :create_time
1287
+
1288
+ # Output only. The number of attempts dispatched.
1289
+ # This count includes tasks which have been dispatched but haven't
1290
+ # received a response.
1291
+ # Corresponds to the JSON property `dispatchCount`
1292
+ # @return [Fixnum]
1293
+ attr_accessor :dispatch_count
1294
+
1295
+ # The status of a task attempt.
1296
+ # Corresponds to the JSON property `firstAttempt`
1297
+ # @return [Google::Apis::CloudtasksV2beta3::Attempt]
1298
+ attr_accessor :first_attempt
1299
+
1300
+ # The status of a task attempt.
1301
+ # Corresponds to the JSON property `lastAttempt`
1302
+ # @return [Google::Apis::CloudtasksV2beta3::Attempt]
1303
+ attr_accessor :last_attempt
1304
+
1305
+ # Optionally caller-specified in CreateTask.
1306
+ # The task name.
1307
+ # The task name must have the following format:
1308
+ # `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
1309
+ # * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
1310
+ # hyphens (-), colons (:), or periods (.).
1311
+ # For more information, see
1312
+ # [Identifying projects](https://cloud.google.com/resource-manager/docs/
1313
+ # creating-managing-projects#identifying_projects)
1314
+ # * `LOCATION_ID` is the canonical ID for the task's location.
1315
+ # The list of available locations can be obtained by calling
1316
+ # ListLocations.
1317
+ # For more information, see https://cloud.google.com/about/locations/.
1318
+ # * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
1319
+ # hyphens (-). The maximum length is 100 characters.
1320
+ # * `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
1321
+ # hyphens (-), or underscores (_). The maximum length is 500 characters.
1322
+ # Corresponds to the JSON property `name`
1323
+ # @return [String]
1324
+ attr_accessor :name
1325
+
1326
+ # Output only. The number of attempts which have received a response.
1327
+ # Corresponds to the JSON property `responseCount`
1328
+ # @return [Fixnum]
1329
+ attr_accessor :response_count
1330
+
1331
+ # The time when the task is scheduled to be attempted.
1332
+ # For App Engine queues, this is when the task will be attempted or retried.
1333
+ # `schedule_time` will be truncated to the nearest microsecond.
1334
+ # Corresponds to the JSON property `scheduleTime`
1335
+ # @return [String]
1336
+ attr_accessor :schedule_time
1337
+
1338
+ # Output only. The view specifies which subset of the Task has
1339
+ # been returned.
1340
+ # Corresponds to the JSON property `view`
1341
+ # @return [String]
1342
+ attr_accessor :view
1343
+
1344
+ def initialize(**args)
1345
+ update!(**args)
1346
+ end
1347
+
1348
+ # Update properties of this object
1349
+ def update!(**args)
1350
+ @app_engine_http_request = args[:app_engine_http_request] if args.key?(:app_engine_http_request)
1351
+ @create_time = args[:create_time] if args.key?(:create_time)
1352
+ @dispatch_count = args[:dispatch_count] if args.key?(:dispatch_count)
1353
+ @first_attempt = args[:first_attempt] if args.key?(:first_attempt)
1354
+ @last_attempt = args[:last_attempt] if args.key?(:last_attempt)
1355
+ @name = args[:name] if args.key?(:name)
1356
+ @response_count = args[:response_count] if args.key?(:response_count)
1357
+ @schedule_time = args[:schedule_time] if args.key?(:schedule_time)
1358
+ @view = args[:view] if args.key?(:view)
1359
+ end
1360
+ end
1361
+
1362
+ # Request message for `TestIamPermissions` method.
1363
+ class TestIamPermissionsRequest
1364
+ include Google::Apis::Core::Hashable
1365
+
1366
+ # The set of permissions to check for the `resource`. Permissions with
1367
+ # wildcards (such as '*' or 'storage.*') are not allowed. For more
1368
+ # information see
1369
+ # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
1370
+ # Corresponds to the JSON property `permissions`
1371
+ # @return [Array<String>]
1372
+ attr_accessor :permissions
1373
+
1374
+ def initialize(**args)
1375
+ update!(**args)
1376
+ end
1377
+
1378
+ # Update properties of this object
1379
+ def update!(**args)
1380
+ @permissions = args[:permissions] if args.key?(:permissions)
1381
+ end
1382
+ end
1383
+
1384
+ # Response message for `TestIamPermissions` method.
1385
+ class TestIamPermissionsResponse
1386
+ include Google::Apis::Core::Hashable
1387
+
1388
+ # A subset of `TestPermissionsRequest.permissions` that the caller is
1389
+ # allowed.
1390
+ # Corresponds to the JSON property `permissions`
1391
+ # @return [Array<String>]
1392
+ attr_accessor :permissions
1393
+
1394
+ def initialize(**args)
1395
+ update!(**args)
1396
+ end
1397
+
1398
+ # Update properties of this object
1399
+ def update!(**args)
1400
+ @permissions = args[:permissions] if args.key?(:permissions)
1401
+ end
1402
+ end
1403
+ end
1404
+ end
1405
+ end