google-api-client 0.14.5 → 0.15.0

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 +34 -0
  3. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  4. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +11 -0
  5. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +1 -0
  6. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  7. data/generated/google/apis/androidenterprise_v1/classes.rb +63 -0
  8. data/generated/google/apis/androidenterprise_v1/representations.rb +18 -0
  9. data/generated/google/apis/bigquery_v2.rb +1 -1
  10. data/generated/google/apis/bigquery_v2/classes.rb +14 -0
  11. data/generated/google/apis/bigquery_v2/representations.rb +2 -0
  12. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  13. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +28 -50
  14. data/generated/google/apis/classroom_v1.rb +1 -1
  15. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  16. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +116 -111
  17. data/generated/google/apis/cloudtasks_v2beta2/representations.rb +17 -17
  18. data/generated/google/apis/cloudtasks_v2beta2/service.rb +8 -0
  19. data/generated/google/apis/cloudtrace_v2.rb +1 -1
  20. data/generated/google/apis/cloudtrace_v2/classes.rb +51 -58
  21. data/generated/google/apis/cloudtrace_v2/representations.rb +14 -15
  22. data/generated/google/apis/compute_alpha.rb +1 -1
  23. data/generated/google/apis/compute_alpha/classes.rb +157 -17
  24. data/generated/google/apis/compute_alpha/representations.rb +52 -0
  25. data/generated/google/apis/compute_alpha/service.rb +57 -0
  26. data/generated/google/apis/compute_beta.rb +1 -1
  27. data/generated/google/apis/compute_beta/classes.rb +46 -17
  28. data/generated/google/apis/compute_beta/representations.rb +2 -0
  29. data/generated/google/apis/compute_beta/service.rb +10 -1
  30. data/generated/google/apis/compute_v1.rb +1 -1
  31. data/generated/google/apis/compute_v1/classes.rb +4767 -337
  32. data/generated/google/apis/compute_v1/representations.rb +2044 -27
  33. data/generated/google/apis/compute_v1/service.rb +111 -0
  34. data/generated/google/apis/container_v1.rb +1 -1
  35. data/generated/google/apis/container_v1/classes.rb +1 -1
  36. data/generated/google/apis/container_v1beta1.rb +1 -1
  37. data/generated/google/apis/container_v1beta1/classes.rb +34 -1
  38. data/generated/google/apis/container_v1beta1/representations.rb +17 -0
  39. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  40. data/generated/google/apis/dataflow_v1b3/classes.rb +0 -2
  41. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  42. data/generated/google/apis/dataproc_v1beta2/service.rb +5 -1
  43. data/generated/google/apis/{ml_v1beta1.rb → firestore_v1beta1.rb} +11 -8
  44. data/generated/google/apis/firestore_v1beta1/classes.rb +2115 -0
  45. data/generated/google/apis/firestore_v1beta1/representations.rb +899 -0
  46. data/generated/google/apis/firestore_v1beta1/service.rb +734 -0
  47. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  48. data/generated/google/apis/identitytoolkit_v3/classes.rb +93 -0
  49. data/generated/google/apis/identitytoolkit_v3/representations.rb +35 -0
  50. data/generated/google/apis/identitytoolkit_v3/service.rb +35 -0
  51. data/generated/google/apis/logging_v2.rb +1 -1
  52. data/generated/google/apis/logging_v2/classes.rb +4 -9
  53. data/generated/google/apis/logging_v2beta1.rb +1 -1
  54. data/generated/google/apis/logging_v2beta1/classes.rb +4 -9
  55. data/generated/google/apis/ml_v1.rb +1 -1
  56. data/generated/google/apis/ml_v1/service.rb +102 -0
  57. data/generated/google/apis/monitoring_v3.rb +1 -1
  58. data/generated/google/apis/monitoring_v3/classes.rb +4 -9
  59. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  60. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +17 -0
  61. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +1 -0
  62. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  63. data/generated/google/apis/servicecontrol_v1/classes.rb +5 -11
  64. data/generated/google/apis/servicecontrol_v1/representations.rb +1 -1
  65. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  66. data/generated/google/apis/serviceuser_v1.rb +1 -1
  67. data/generated/google/apis/sheets_v4.rb +1 -1
  68. data/generated/google/apis/sheets_v4/classes.rb +81 -26
  69. data/generated/google/apis/sheets_v4/representations.rb +23 -0
  70. data/generated/google/apis/sheets_v4/service.rb +5 -5
  71. data/generated/google/apis/streetviewpublish_v1.rb +1 -1
  72. data/generated/google/apis/streetviewpublish_v1/classes.rb +97 -0
  73. data/generated/google/apis/streetviewpublish_v1/representations.rb +18 -0
  74. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  75. data/generated/google/apis/toolresults_v1beta3/classes.rb +121 -0
  76. data/generated/google/apis/toolresults_v1beta3/representations.rb +41 -0
  77. data/generated/google/apis/vision_v1.rb +1 -1
  78. data/generated/google/apis/vision_v1/classes.rb +4 -2
  79. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  80. data/lib/google/apis/version.rb +1 -1
  81. metadata +6 -6
  82. data/generated/google/apis/ml_v1beta1/classes.rb +0 -2396
  83. data/generated/google/apis/ml_v1beta1/representations.rb +0 -755
  84. data/generated/google/apis/ml_v1beta1/service.rb +0 -975
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/classroom/
26
26
  module ClassroomV1
27
27
  VERSION = 'V1'
28
- REVISION = '20170926'
28
+ REVISION = '20171004'
29
29
 
30
30
  # View and manage announcements in Google Classroom
31
31
  AUTH_CLASSROOM_ANNOUNCEMENTS = 'https://www.googleapis.com/auth/classroom.announcements'
@@ -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 = '20170926'
29
+ REVISION = '20171005'
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'
@@ -129,7 +129,7 @@ module Google
129
129
  # The HTTP method to use for the request. The default is POST.
130
130
  # The app's request handler for the task's target URL must be able to handle
131
131
  # HTTP requests with this http_method, otherwise the task attempt will fail
132
- # with error code 405 "Method Not Allowed" because "the method specified in
132
+ # with error code 405 (Method Not Allowed). See
133
133
  # the Request-Line is not allowed for the resource identified by the
134
134
  # Request-URI". See
135
135
  # [Writing a push task request handler](/appengine/docs/java/taskqueue/push/
@@ -154,7 +154,7 @@ module Google
154
154
 
155
155
  # The relative URL.
156
156
  # The relative URL must begin with "/" and must be a valid HTTP relative URL.
157
- # It can contain a path, query string arguments, and `#` fragments.
157
+ # It can contain a path and query string arguments.
158
158
  # If the relative URL is empty, then the root path "/" will be used.
159
159
  # No spaces are allowed, and the maximum length allowed is 2083 characters.
160
160
  # Corresponds to the JSON property `relativeUrl`
@@ -930,17 +930,12 @@ module Google
930
930
  # `filter` can be used to specify a subset of tasks to lease.
931
931
  # When `filter` is set to `tag=<my-tag>` then the
932
932
  # PullTasksResponse will contain only tasks whose
933
- # PullMessage.tag is equal to `<my-tag>`. `<my-tag>` can be
934
- # a bytes encoded as a string and must be less than 500 bytes.
935
- # If `<my-tag>` includes whitespace or special characters (characters which
936
- # aren't letters, numbers, or underscores), then it must be double-quoted.
937
- # Double quotes and backslashes in quoted strings must be escaped by
938
- # preceding it with a backslash (`\`).
939
- # When `filter` is set to `tag=oldest_tag()`, only tasks which have the same
940
- # tag as the task with the oldest schedule_time will be returned.
933
+ # PullMessage.tag is equal to `<my-tag>`. `<my-tag>` must be less than
934
+ # 500 bytes.
935
+ # When `filter` is set to `tag_function=oldest_tag()`, only tasks which have
936
+ # the same tag as the task with the oldest schedule_time will be returned.
941
937
  # Grammar Syntax:
942
- # * `filter = "tag=" comparable`
943
- # * `comparable = tag | function`
938
+ # * `filter = "tag=" tag | "tag_function=" function`
944
939
  # * `tag = string | bytes`
945
940
  # * `function = "oldest_tag()"`
946
941
  # The `oldest_tag()` function returns tasks which have the same tag as the
@@ -1108,23 +1103,19 @@ module Google
1108
1103
  # @return [String]
1109
1104
  attr_accessor :queue_state
1110
1105
 
1106
+ # Rate limits.
1107
+ # This message determines the maximum rate that tasks can be dispatched by a
1108
+ # queue, regardless of whether the dispatch is a first task attempt or a retry.
1109
+ # Corresponds to the JSON property `rateLimits`
1110
+ # @return [Google::Apis::CloudtasksV2beta2::RateLimits]
1111
+ attr_accessor :rate_limits
1112
+
1111
1113
  # Retry config.
1112
- # These settings determine retry behavior.
1113
- # If a task does not complete successfully, meaning that an
1114
- # acknowledgement is not received from the handler before the
1115
- # [deadline](/appengine/docs/python/taskqueue/push/#the_task_deadline),
1116
- # then it will be retried with exponential backoff according to the
1117
- # settings in RetryConfig.
1114
+ # These settings determine how a failed task attempt is retried.
1118
1115
  # Corresponds to the JSON property `retryConfig`
1119
1116
  # @return [Google::Apis::CloudtasksV2beta2::RetryConfig]
1120
1117
  attr_accessor :retry_config
1121
1118
 
1122
- # Throttle config.
1123
- # These settings determine the throttling behavior.
1124
- # Corresponds to the JSON property `throttleConfig`
1125
- # @return [Google::Apis::CloudtasksV2beta2::ThrottleConfig]
1126
- attr_accessor :throttle_config
1127
-
1128
1119
  def initialize(**args)
1129
1120
  update!(**args)
1130
1121
  end
@@ -1138,8 +1129,74 @@ module Google
1138
1129
  @pull_target = args[:pull_target] if args.key?(:pull_target)
1139
1130
  @purge_time = args[:purge_time] if args.key?(:purge_time)
1140
1131
  @queue_state = args[:queue_state] if args.key?(:queue_state)
1132
+ @rate_limits = args[:rate_limits] if args.key?(:rate_limits)
1141
1133
  @retry_config = args[:retry_config] if args.key?(:retry_config)
1142
- @throttle_config = args[:throttle_config] if args.key?(:throttle_config)
1134
+ end
1135
+ end
1136
+
1137
+ # Rate limits.
1138
+ # This message determines the maximum rate that tasks can be dispatched by a
1139
+ # queue, regardless of whether the dispatch is a first task attempt or a retry.
1140
+ class RateLimits
1141
+ include Google::Apis::Core::Hashable
1142
+
1143
+ # Output only.
1144
+ # The max burst size limits how fast the queue is processed when
1145
+ # many tasks are in the queue and the rate is high. This field
1146
+ # allows the queue to have a high rate so processing starts shortly
1147
+ # after a task is enqueued, but still limits resource usage when
1148
+ # many tasks are enqueued in a short period of time.
1149
+ # * For App Engine queues, if
1150
+ # RateLimits.max_tasks_dispatched_per_second is 1, this
1151
+ # field is 10; otherwise this field is
1152
+ # RateLimits.max_tasks_dispatched_per_second / 5.
1153
+ # * For pull queues, this field is output only and always 10,000.
1154
+ # Note: For App Engine queues that were created through
1155
+ # `queue.yaml/xml`, `max_burst_size` might not have the same
1156
+ # settings as specified above; CloudTasks.UpdateQueue can be
1157
+ # used to set `max_burst_size` only to the values specified above.
1158
+ # This field has the same meaning as
1159
+ # [bucket_size in queue.yaml](/appengine/docs/standard/python/config/queueref#
1160
+ # bucket_size).
1161
+ # Corresponds to the JSON property `maxBurstSize`
1162
+ # @return [Fixnum]
1163
+ attr_accessor :max_burst_size
1164
+
1165
+ # The maximum number of concurrent tasks that Cloud Tasks allows
1166
+ # to be dispatched for this queue. After this threshold has been
1167
+ # reached, Cloud Tasks stops dispatching tasks until the number of
1168
+ # concurrent requests decreases.
1169
+ # The maximum allowed value is 5,000.
1170
+ # * For App Engine queues, this field is 10 by default.
1171
+ # * For pull queues, this field is output only and always -1, which
1172
+ # indicates no limit.
1173
+ # This field has the same meaning as
1174
+ # [max_concurrent_requests in queue.yaml](/appengine/docs/standard/python/config/
1175
+ # queueref#max_concurrent_requests).
1176
+ # Corresponds to the JSON property `maxConcurrentTasks`
1177
+ # @return [Fixnum]
1178
+ attr_accessor :max_concurrent_tasks
1179
+
1180
+ # The maximum rate at which tasks are dispatched from this
1181
+ # queue.
1182
+ # The maximum allowed value is 500.
1183
+ # * For App Engine queues, this field is 1 by default.
1184
+ # * For pull queues, this field is output only and always 10,000.
1185
+ # This field has the same meaning as
1186
+ # [rate in queue.yaml](/appengine/docs/standard/python/config/queueref#rate).
1187
+ # Corresponds to the JSON property `maxTasksDispatchedPerSecond`
1188
+ # @return [Float]
1189
+ attr_accessor :max_tasks_dispatched_per_second
1190
+
1191
+ def initialize(**args)
1192
+ update!(**args)
1193
+ end
1194
+
1195
+ # Update properties of this object
1196
+ def update!(**args)
1197
+ @max_burst_size = args[:max_burst_size] if args.key?(:max_burst_size)
1198
+ @max_concurrent_tasks = args[:max_concurrent_tasks] if args.key?(:max_concurrent_tasks)
1199
+ @max_tasks_dispatched_per_second = args[:max_tasks_dispatched_per_second] if args.key?(:max_tasks_dispatched_per_second)
1143
1200
  end
1144
1201
  end
1145
1202
 
@@ -1204,12 +1261,7 @@ module Google
1204
1261
  end
1205
1262
 
1206
1263
  # Retry config.
1207
- # These settings determine retry behavior.
1208
- # If a task does not complete successfully, meaning that an
1209
- # acknowledgement is not received from the handler before the
1210
- # [deadline](/appengine/docs/python/taskqueue/push/#the_task_deadline),
1211
- # then it will be retried with exponential backoff according to the
1212
- # settings in RetryConfig.
1264
+ # These settings determine how a failed task attempt is retried.
1213
1265
  class RetryConfig
1214
1266
  include Google::Apis::Core::Hashable
1215
1267
 
@@ -1228,22 +1280,47 @@ module Google
1228
1280
  # * For [pull queues](google.cloud.tasks.v2beta2.PullTarget), this field
1229
1281
  # is output only and always 0.
1230
1282
  # `max_backoff` will be truncated to the nearest second.
1283
+ # This field has the same meaning as
1284
+ # [max_backoff_seconds in queue.yaml](/appengine/docs/standard/python/config/
1285
+ # queueref#retry_parameters).
1231
1286
  # Corresponds to the JSON property `maxBackoff`
1232
1287
  # @return [String]
1233
1288
  attr_accessor :max_backoff
1234
1289
 
1235
- # The maximum number of times that the interval between failed task
1236
- # retries will be doubled before the increase becomes constant. The
1237
- # constant is: 2**(max_doublings - 1) *
1238
- # RetryConfig.min_backoff.
1290
+ # The time between retries increases exponentially `max_doublings` times.
1291
+ # `max_doublings` is maximum number of times that the interval between failed
1292
+ # task retries will be doubled before the interval increases linearly.
1293
+ # After max_doublings intervals, the retry interval will be
1294
+ # 2^(max_doublings - 1) * RetryConfig.min_backoff.
1239
1295
  # * For [App Engine queues](google.cloud.tasks.v2beta2.AppEngineHttpTarget),
1240
1296
  # this field is 16 by default.
1241
1297
  # * For [pull queues](google.cloud.tasks.v2beta2.PullTarget), this field
1242
1298
  # is output only and always 0.
1299
+ # This field has the same meaning as
1300
+ # [max_doublings in queue.yaml](/appengine/docs/standard/python/config/queueref#
1301
+ # retry_parameters).
1243
1302
  # Corresponds to the JSON property `maxDoublings`
1244
1303
  # @return [Fixnum]
1245
1304
  attr_accessor :max_doublings
1246
1305
 
1306
+ # If positive, `max_retry_duration` specifies the time limit for retrying a
1307
+ # failed task, measured from when the task was first attempted. Once
1308
+ # `max_retry_duration` time has passed *and* the task has been attempted
1309
+ # RetryConfig.max_attempts times, no further attempts will be made and
1310
+ # the task will be deleted.
1311
+ # If zero, then the task age is unlimited.
1312
+ # * For [App Engine queues](google.cloud.tasks.v2beta2.AppEngineHttpTarget),
1313
+ # this field is 0 seconds by default.
1314
+ # * For [pull queues](google.cloud.tasks.v2beta2.PullTarget), this
1315
+ # field is output only and always 0.
1316
+ # `max_retry_duration` will be truncated to the nearest second.
1317
+ # This field has the same meaning as
1318
+ # [task_age_limit in queue.yaml](/appengine/docs/standard/python/config/queueref#
1319
+ # retry_parameters).
1320
+ # Corresponds to the JSON property `maxRetryDuration`
1321
+ # @return [String]
1322
+ attr_accessor :max_retry_duration
1323
+
1247
1324
  # The minimum amount of time to wait before retrying a task after
1248
1325
  # it fails.
1249
1326
  # * For [App Engine queues](google.cloud.tasks.v2beta2.AppEngineHttpTarget),
@@ -1251,20 +1328,13 @@ module Google
1251
1328
  # * For [pull queues](google.cloud.tasks.v2beta2.PullTarget), this
1252
1329
  # field is output only and always 0.
1253
1330
  # `min_backoff` will be truncated to the nearest second.
1331
+ # This field has the same meaning as
1332
+ # [min_backoff_seconds in queue.yaml](/appengine/docs/standard/python/config/
1333
+ # queueref#retry_parameters).
1254
1334
  # Corresponds to the JSON property `minBackoff`
1255
1335
  # @return [String]
1256
1336
  attr_accessor :min_backoff
1257
1337
 
1258
- # If positive, task_age_limit specifies the time limit for retrying a failed
1259
- # task, measured from when the task was first run. If specified with
1260
- # RetryConfig.max_attempts, the task will be retried until both
1261
- # limits are reached.
1262
- # If zero, then the task age is unlimited. This field is zero by default.
1263
- # `task_age_limit` will be truncated to the nearest second.
1264
- # Corresponds to the JSON property `taskAgeLimit`
1265
- # @return [String]
1266
- attr_accessor :task_age_limit
1267
-
1268
1338
  # If true, then the number of attempts is unlimited.
1269
1339
  # Corresponds to the JSON property `unlimitedAttempts`
1270
1340
  # @return [Boolean]
@@ -1280,8 +1350,8 @@ module Google
1280
1350
  @max_attempts = args[:max_attempts] if args.key?(:max_attempts)
1281
1351
  @max_backoff = args[:max_backoff] if args.key?(:max_backoff)
1282
1352
  @max_doublings = args[:max_doublings] if args.key?(:max_doublings)
1353
+ @max_retry_duration = args[:max_retry_duration] if args.key?(:max_retry_duration)
1283
1354
  @min_backoff = args[:min_backoff] if args.key?(:min_backoff)
1284
- @task_age_limit = args[:task_age_limit] if args.key?(:task_age_limit)
1285
1355
  @unlimited_attempts = args[:unlimited_attempts] if args.key?(:unlimited_attempts)
1286
1356
  end
1287
1357
  end
@@ -1639,71 +1709,6 @@ module Google
1639
1709
  @permissions = args[:permissions] if args.key?(:permissions)
1640
1710
  end
1641
1711
  end
1642
-
1643
- # Throttle config.
1644
- # These settings determine the throttling behavior.
1645
- class ThrottleConfig
1646
- include Google::Apis::Core::Hashable
1647
-
1648
- # Output only.
1649
- # The max burst size limits how fast the queue is processed when
1650
- # many tasks are in the queue and the rate is high. This field
1651
- # allows the queue to have a high rate so processing starts shortly
1652
- # after a task is enqueued, but still limits resource usage when
1653
- # many tasks are enqueued in a short period of time.
1654
- # * For App Engine queues, if
1655
- # ThrottleConfig.max_tasks_dispatched_per_second is 1, this
1656
- # field is 10; otherwise this field is
1657
- # ThrottleConfig.max_tasks_dispatched_per_second / 5.
1658
- # * For pull queues, this field is output only and always 10,000.
1659
- # Note: For App Engine queues that were created through
1660
- # `queue.yaml/xml`, `max_burst_size` might not have the same
1661
- # settings as specified above; CloudTasks.UpdateQueue can be
1662
- # used to set `max_burst_size` only to the values specified above.
1663
- # This field has the same meaning as
1664
- # [bucket_size in queue.yaml](/appengine/docs/standard/python/config/queueref#
1665
- # bucket_size).
1666
- # Corresponds to the JSON property `maxBurstSize`
1667
- # @return [Fixnum]
1668
- attr_accessor :max_burst_size
1669
-
1670
- # The maximum number of outstanding tasks that Cloud Tasks allows
1671
- # to be dispatched for this queue. After this threshold has been
1672
- # reached, Cloud Tasks stops dispatching tasks until the number of
1673
- # outstanding requests decreases.
1674
- # The maximum allowed value is 5,000.
1675
- # * For App Engine queues, this field is 10 by default.
1676
- # * For pull queues, this field is output only and always -1, which
1677
- # indicates no limit.
1678
- # This field has the same meaning as
1679
- # [max_concurrent_requests in queue.yaml](/appengine/docs/standard/python/config/
1680
- # queueref#max_concurrent_requests).
1681
- # Corresponds to the JSON property `maxOutstandingTasks`
1682
- # @return [Fixnum]
1683
- attr_accessor :max_outstanding_tasks
1684
-
1685
- # The maximum rate at which tasks are dispatched from this
1686
- # queue.
1687
- # The maximum allowed value is 500.
1688
- # * For App Engine queues, this field is 1 by default.
1689
- # * For pull queues, this field is output only and always 10,000.
1690
- # This field has the same meaning as
1691
- # [rate in queue.yaml](/appengine/docs/standard/python/config/queueref#rate).
1692
- # Corresponds to the JSON property `maxTasksDispatchedPerSecond`
1693
- # @return [Float]
1694
- attr_accessor :max_tasks_dispatched_per_second
1695
-
1696
- def initialize(**args)
1697
- update!(**args)
1698
- end
1699
-
1700
- # Update properties of this object
1701
- def update!(**args)
1702
- @max_burst_size = args[:max_burst_size] if args.key?(:max_burst_size)
1703
- @max_outstanding_tasks = args[:max_outstanding_tasks] if args.key?(:max_outstanding_tasks)
1704
- @max_tasks_dispatched_per_second = args[:max_tasks_dispatched_per_second] if args.key?(:max_tasks_dispatched_per_second)
1705
- end
1706
- end
1707
1712
  end
1708
1713
  end
1709
1714
  end
@@ -178,6 +178,12 @@ module Google
178
178
  include Google::Apis::Core::JsonObjectSupport
179
179
  end
180
180
 
181
+ class RateLimits
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
181
187
  class RenewLeaseRequest
182
188
  class Representation < Google::Apis::Core::JsonRepresentation; end
183
189
 
@@ -238,12 +244,6 @@ module Google
238
244
  include Google::Apis::Core::JsonObjectSupport
239
245
  end
240
246
 
241
- class ThrottleConfig
242
- class Representation < Google::Apis::Core::JsonRepresentation; end
243
-
244
- include Google::Apis::Core::JsonObjectSupport
245
- end
246
-
247
247
  class AcknowledgeTaskRequest
248
248
  # @private
249
249
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -468,10 +468,19 @@ module Google
468
468
 
469
469
  property :purge_time, as: 'purgeTime'
470
470
  property :queue_state, as: 'queueState'
471
+ property :rate_limits, as: 'rateLimits', class: Google::Apis::CloudtasksV2beta2::RateLimits, decorator: Google::Apis::CloudtasksV2beta2::RateLimits::Representation
472
+
471
473
  property :retry_config, as: 'retryConfig', class: Google::Apis::CloudtasksV2beta2::RetryConfig, decorator: Google::Apis::CloudtasksV2beta2::RetryConfig::Representation
472
474
 
473
- property :throttle_config, as: 'throttleConfig', class: Google::Apis::CloudtasksV2beta2::ThrottleConfig, decorator: Google::Apis::CloudtasksV2beta2::ThrottleConfig::Representation
475
+ end
476
+ end
474
477
 
478
+ class RateLimits
479
+ # @private
480
+ class Representation < Google::Apis::Core::JsonRepresentation
481
+ property :max_burst_size, as: 'maxBurstSize'
482
+ property :max_concurrent_tasks, as: 'maxConcurrentTasks'
483
+ property :max_tasks_dispatched_per_second, as: 'maxTasksDispatchedPerSecond'
475
484
  end
476
485
  end
477
486
 
@@ -496,8 +505,8 @@ module Google
496
505
  property :max_attempts, as: 'maxAttempts'
497
506
  property :max_backoff, as: 'maxBackoff'
498
507
  property :max_doublings, as: 'maxDoublings'
508
+ property :max_retry_duration, as: 'maxRetryDuration'
499
509
  property :min_backoff, as: 'minBackoff'
500
- property :task_age_limit, as: 'taskAgeLimit'
501
510
  property :unlimited_attempts, as: 'unlimitedAttempts'
502
511
  end
503
512
  end
@@ -571,15 +580,6 @@ module Google
571
580
  collection :permissions, as: 'permissions'
572
581
  end
573
582
  end
574
-
575
- class ThrottleConfig
576
- # @private
577
- class Representation < Google::Apis::Core::JsonRepresentation
578
- property :max_burst_size, as: 'maxBurstSize'
579
- property :max_outstanding_tasks, as: 'maxOutstandingTasks'
580
- property :max_tasks_dispatched_per_second, as: 'maxTasksDispatchedPerSecond'
581
- end
582
- end
583
583
  end
584
584
  end
585
585
  end
@@ -684,6 +684,10 @@ module Google
684
684
  # or the batching documentation for your client library, for example
685
685
  # https://developers.google.com/api-client-library/python/guide/batch.
686
686
  # Tasks cannot be updated after creation; there is no UpdateTask command.
687
+ # * For [App Engine queues](google.cloud.tasks.v2beta2.AppEngineHttpTarget),
688
+ # the maximum task size is 100KB.
689
+ # * For [pull queues](google.cloud.tasks.v2beta2.PullTarget), this
690
+ # the maximum task size is 1MB.
687
691
  # @param [String] parent
688
692
  # Required.
689
693
  # The queue name. For example:
@@ -878,6 +882,10 @@ module Google
878
882
  # to perform the work associated with the task. To return the
879
883
  # payloads in the PullTasksResponse, set
880
884
  # PullTasksRequest.response_view to Task.View.FULL.
885
+ # A maximum of 10 qps of CloudTasks.PullTasks requests are allowed per
886
+ # queue. google.rpc.Code.RESOURCE_EXHAUSTED is returned when this limit
887
+ # is exceeded. google.rpc.Code.RESOURCE_EXHAUSTED is also returned when
888
+ # RateLimits.max_tasks_dispatched_per_second is exceeded.
881
889
  # @param [String] name
882
890
  # Required.
883
891
  # The queue name. For example:
@@ -28,7 +28,7 @@ module Google
28
28
  # @see https://cloud.google.com/trace
29
29
  module CloudtraceV2
30
30
  VERSION = 'V2'
31
- REVISION = '20170927'
31
+ REVISION = '20171003'
32
32
 
33
33
  # View and manage your data across Google Cloud Platform services
34
34
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -217,19 +217,31 @@ module Google
217
217
  end
218
218
  end
219
219
 
220
- # Binary module.
221
- class Module
220
+ # An event describing a message sent/received between Spans.
221
+ class MessageEvent
222
222
  include Google::Apis::Core::Hashable
223
223
 
224
- # Represents a string that might be shortened to a specified length.
225
- # Corresponds to the JSON property `buildId`
226
- # @return [Google::Apis::CloudtraceV2::TruncatableString]
227
- attr_accessor :build_id
224
+ # The number of compressed bytes sent or received. If missing assumed to
225
+ # be the same size as uncompressed.
226
+ # Corresponds to the JSON property `compressedSize`
227
+ # @return [Fixnum]
228
+ attr_accessor :compressed_size
228
229
 
229
- # Represents a string that might be shortened to a specified length.
230
- # Corresponds to the JSON property `module`
231
- # @return [Google::Apis::CloudtraceV2::TruncatableString]
232
- attr_accessor :module
230
+ # An identifier for the message, which must be unique in this span.
231
+ # Corresponds to the JSON property `id`
232
+ # @return [Fixnum]
233
+ attr_accessor :id
234
+
235
+ # Type of MessageEvent. Indicates whether the message was sent or
236
+ # received.
237
+ # Corresponds to the JSON property `type`
238
+ # @return [String]
239
+ attr_accessor :type
240
+
241
+ # The number of uncompressed bytes sent or received.
242
+ # Corresponds to the JSON property `uncompressedSize`
243
+ # @return [Fixnum]
244
+ attr_accessor :uncompressed_size
233
245
 
234
246
  def initialize(**args)
235
247
  update!(**args)
@@ -237,42 +249,26 @@ module Google
237
249
 
238
250
  # Update properties of this object
239
251
  def update!(**args)
240
- @build_id = args[:build_id] if args.key?(:build_id)
241
- @module = args[:module] if args.key?(:module)
252
+ @compressed_size = args[:compressed_size] if args.key?(:compressed_size)
253
+ @id = args[:id] if args.key?(:id)
254
+ @type = args[:type] if args.key?(:type)
255
+ @uncompressed_size = args[:uncompressed_size] if args.key?(:uncompressed_size)
242
256
  end
243
257
  end
244
258
 
245
- # An event describing an RPC message sent or received on the network.
246
- class NetworkEvent
259
+ # Binary module.
260
+ class Module
247
261
  include Google::Apis::Core::Hashable
248
262
 
249
- # The number of compressed bytes sent or received.
250
- # Corresponds to the JSON property `compressedMessageSize`
251
- # @return [Fixnum]
252
- attr_accessor :compressed_message_size
253
-
254
- # An identifier for the message, which must be unique in this span.
255
- # Corresponds to the JSON property `messageId`
256
- # @return [Fixnum]
257
- attr_accessor :message_id
258
-
259
- # For sent messages, this is the time at which the first bit was sent.
260
- # For received messages, this is the time at which the last bit was
261
- # received.
262
- # Corresponds to the JSON property `time`
263
- # @return [String]
264
- attr_accessor :time
265
-
266
- # Type of NetworkEvent. Indicates whether the RPC message was sent or
267
- # received.
268
- # Corresponds to the JSON property `type`
269
- # @return [String]
270
- attr_accessor :type
263
+ # Represents a string that might be shortened to a specified length.
264
+ # Corresponds to the JSON property `buildId`
265
+ # @return [Google::Apis::CloudtraceV2::TruncatableString]
266
+ attr_accessor :build_id
271
267
 
272
- # The number of uncompressed bytes sent or received.
273
- # Corresponds to the JSON property `uncompressedMessageSize`
274
- # @return [Fixnum]
275
- attr_accessor :uncompressed_message_size
268
+ # Represents a string that might be shortened to a specified length.
269
+ # Corresponds to the JSON property `module`
270
+ # @return [Google::Apis::CloudtraceV2::TruncatableString]
271
+ attr_accessor :module
276
272
 
277
273
  def initialize(**args)
278
274
  update!(**args)
@@ -280,11 +276,8 @@ module Google
280
276
 
281
277
  # Update properties of this object
282
278
  def update!(**args)
283
- @compressed_message_size = args[:compressed_message_size] if args.key?(:compressed_message_size)
284
- @message_id = args[:message_id] if args.key?(:message_id)
285
- @time = args[:time] if args.key?(:time)
286
- @type = args[:type] if args.key?(:type)
287
- @uncompressed_message_size = args[:uncompressed_message_size] if args.key?(:uncompressed_message_size)
279
+ @build_id = args[:build_id] if args.key?(:build_id)
280
+ @module = args[:module] if args.key?(:module)
288
281
  end
289
282
  end
290
283
 
@@ -411,7 +404,7 @@ module Google
411
404
 
412
405
  # A collection of `TimeEvent`s. A `TimeEvent` is a time-stamped annotation
413
406
  # on the span, consisting of either user-supplied key:value pairs, or
414
- # details of an RPC message sent/received on the network.
407
+ # details of a message sent/received between Spans.
415
408
  # Corresponds to the JSON property `timeEvents`
416
409
  # @return [Google::Apis::CloudtraceV2::TimeEvents]
417
410
  attr_accessor :time_events
@@ -624,7 +617,7 @@ module Google
624
617
  end
625
618
  end
626
619
 
627
- # A time-stamped annotation or network event in the Span.
620
+ # A time-stamped annotation or message event in the Span.
628
621
  class TimeEvent
629
622
  include Google::Apis::Core::Hashable
630
623
 
@@ -633,10 +626,10 @@ module Google
633
626
  # @return [Google::Apis::CloudtraceV2::Annotation]
634
627
  attr_accessor :annotation
635
628
 
636
- # An event describing an RPC message sent or received on the network.
637
- # Corresponds to the JSON property `networkEvent`
638
- # @return [Google::Apis::CloudtraceV2::NetworkEvent]
639
- attr_accessor :network_event
629
+ # An event describing a message sent/received between Spans.
630
+ # Corresponds to the JSON property `messageEvent`
631
+ # @return [Google::Apis::CloudtraceV2::MessageEvent]
632
+ attr_accessor :message_event
640
633
 
641
634
  # The timestamp indicating the time the event occurred.
642
635
  # Corresponds to the JSON property `time`
@@ -650,14 +643,14 @@ module Google
650
643
  # Update properties of this object
651
644
  def update!(**args)
652
645
  @annotation = args[:annotation] if args.key?(:annotation)
653
- @network_event = args[:network_event] if args.key?(:network_event)
646
+ @message_event = args[:message_event] if args.key?(:message_event)
654
647
  @time = args[:time] if args.key?(:time)
655
648
  end
656
649
  end
657
650
 
658
651
  # A collection of `TimeEvent`s. A `TimeEvent` is a time-stamped annotation
659
652
  # on the span, consisting of either user-supplied key:value pairs, or
660
- # details of an RPC message sent/received on the network.
653
+ # details of a message sent/received between Spans.
661
654
  class TimeEvents
662
655
  include Google::Apis::Core::Hashable
663
656
 
@@ -667,11 +660,11 @@ module Google
667
660
  # @return [Fixnum]
668
661
  attr_accessor :dropped_annotations_count
669
662
 
670
- # The number of dropped network events in all the included time events.
671
- # If the value is 0, then no network events were dropped.
672
- # Corresponds to the JSON property `droppedNetworkEventsCount`
663
+ # The number of dropped message events in all the included time events.
664
+ # If the value is 0, then no message events were dropped.
665
+ # Corresponds to the JSON property `droppedMessageEventsCount`
673
666
  # @return [Fixnum]
674
- attr_accessor :dropped_network_events_count
667
+ attr_accessor :dropped_message_events_count
675
668
 
676
669
  # A collection of `TimeEvent`s.
677
670
  # Corresponds to the JSON property `timeEvent`
@@ -685,7 +678,7 @@ module Google
685
678
  # Update properties of this object
686
679
  def update!(**args)
687
680
  @dropped_annotations_count = args[:dropped_annotations_count] if args.key?(:dropped_annotations_count)
688
- @dropped_network_events_count = args[:dropped_network_events_count] if args.key?(:dropped_network_events_count)
681
+ @dropped_message_events_count = args[:dropped_message_events_count] if args.key?(:dropped_message_events_count)
689
682
  @time_event = args[:time_event] if args.key?(:time_event)
690
683
  end
691
684
  end