google-api-client 0.17.1 → 0.17.2

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 (77) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +33 -0
  3. data/generated/google/apis/admin_directory_v1.rb +1 -1
  4. data/generated/google/apis/admin_directory_v1/classes.rb +26 -0
  5. data/generated/google/apis/admin_directory_v1/representations.rb +14 -0
  6. data/generated/google/apis/admin_directory_v1/service.rb +90 -52
  7. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  8. data/generated/google/apis/androidenterprise_v1/classes.rb +150 -3
  9. data/generated/google/apis/androidenterprise_v1/representations.rb +65 -0
  10. data/generated/google/apis/androidenterprise_v1/service.rb +50 -4
  11. data/generated/google/apis/appengine_v1.rb +1 -1
  12. data/generated/google/apis/appengine_v1/classes.rb +45 -0
  13. data/generated/google/apis/appengine_v1/representations.rb +18 -0
  14. data/generated/google/apis/appengine_v1beta.rb +1 -1
  15. data/generated/google/apis/appengine_v1beta/classes.rb +8 -0
  16. data/generated/google/apis/appengine_v1beta/representations.rb +1 -0
  17. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  18. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +4 -4
  19. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  20. data/generated/google/apis/cloudbuild_v1/classes.rb +17 -0
  21. data/generated/google/apis/cloudbuild_v1/representations.rb +2 -0
  22. data/generated/google/apis/cloudiot_v1.rb +1 -1
  23. data/generated/google/apis/cloudiot_v1/classes.rb +5 -1
  24. data/generated/google/apis/cloudkms_v1.rb +1 -1
  25. data/generated/google/apis/cloudkms_v1/classes.rb +2 -1
  26. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  27. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +57 -61
  28. data/generated/google/apis/cloudtasks_v2beta2/representations.rb +1 -1
  29. data/generated/google/apis/cloudtasks_v2beta2/service.rb +20 -19
  30. data/generated/google/apis/compute_alpha.rb +1 -1
  31. data/generated/google/apis/compute_beta.rb +1 -1
  32. data/generated/google/apis/compute_v1.rb +1 -1
  33. data/generated/google/apis/container_v1.rb +1 -1
  34. data/generated/google/apis/container_v1/classes.rb +4 -6
  35. data/generated/google/apis/container_v1beta1.rb +1 -1
  36. data/generated/google/apis/container_v1beta1/classes.rb +4 -6
  37. data/generated/google/apis/customsearch_v1.rb +1 -1
  38. data/generated/google/apis/customsearch_v1/service.rb +140 -0
  39. data/generated/google/apis/dialogflow_v2beta1.rb +35 -0
  40. data/generated/google/apis/dialogflow_v2beta1/classes.rb +2536 -0
  41. data/generated/google/apis/dialogflow_v2beta1/representations.rb +1078 -0
  42. data/generated/google/apis/dialogflow_v2beta1/service.rb +1398 -0
  43. data/generated/google/apis/dlp_v2beta1.rb +1 -1
  44. data/generated/google/apis/genomics_v1alpha2.rb +1 -1
  45. data/generated/google/apis/genomics_v1alpha2/classes.rb +7 -5
  46. data/generated/google/apis/logging_v2.rb +1 -1
  47. data/generated/google/apis/logging_v2/classes.rb +4 -4
  48. data/generated/google/apis/logging_v2beta1.rb +1 -1
  49. data/generated/google/apis/logging_v2beta1/classes.rb +4 -4
  50. data/generated/google/apis/monitoring_v3.rb +1 -1
  51. data/generated/google/apis/monitoring_v3/classes.rb +55 -46
  52. data/generated/google/apis/monitoring_v3/representations.rb +19 -0
  53. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  54. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +16 -60
  55. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +1 -0
  56. data/generated/google/apis/script_v1.rb +1 -1
  57. data/generated/google/apis/script_v1/classes.rb +19 -21
  58. data/generated/google/apis/serviceconsumermanagement_v1.rb +38 -0
  59. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +3945 -0
  60. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +1235 -0
  61. data/generated/google/apis/serviceconsumermanagement_v1/service.rb +467 -0
  62. data/generated/google/apis/slides_v1.rb +1 -1
  63. data/generated/google/apis/slides_v1/classes.rb +16 -0
  64. data/generated/google/apis/slides_v1/representations.rb +2 -0
  65. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  66. data/generated/google/apis/sourcerepo_v1/classes.rb +3 -2
  67. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  68. data/generated/google/apis/storagetransfer_v1/classes.rb +4 -4
  69. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  70. data/generated/google/apis/toolresults_v1beta3/classes.rb +21 -21
  71. data/generated/google/apis/tpu_v1alpha1.rb +34 -0
  72. data/generated/google/apis/tpu_v1alpha1/classes.rb +530 -0
  73. data/generated/google/apis/tpu_v1alpha1/representations.rb +191 -0
  74. data/generated/google/apis/tpu_v1alpha1/service.rb +474 -0
  75. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  76. data/lib/google/apis/version.rb +1 -1
  77. metadata +14 -2
@@ -352,6 +352,12 @@ module Google
352
352
  include Google::Apis::Core::JsonObjectSupport
353
353
  end
354
354
 
355
+ class StandardSchedulerSettings
356
+ class Representation < Google::Apis::Core::JsonRepresentation; end
357
+
358
+ include Google::Apis::Core::JsonObjectSupport
359
+ end
360
+
355
361
  class StaticFilesHandler
356
362
  class Representation < Google::Apis::Core::JsonRepresentation; end
357
363
 
@@ -482,6 +488,8 @@ module Google
482
488
 
483
489
  property :request_utilization, as: 'requestUtilization', class: Google::Apis::AppengineV1::RequestUtilization, decorator: Google::Apis::AppengineV1::RequestUtilization::Representation
484
490
 
491
+ property :standard_scheduler_settings, as: 'standardSchedulerSettings', class: Google::Apis::AppengineV1::StandardSchedulerSettings, decorator: Google::Apis::AppengineV1::StandardSchedulerSettings::Representation
492
+
485
493
  end
486
494
  end
487
495
 
@@ -959,6 +967,16 @@ module Google
959
967
  end
960
968
  end
961
969
 
970
+ class StandardSchedulerSettings
971
+ # @private
972
+ class Representation < Google::Apis::Core::JsonRepresentation
973
+ property :max_instances, as: 'maxInstances'
974
+ property :min_instances, as: 'minInstances'
975
+ property :target_cpu_utilization, as: 'targetCpuUtilization'
976
+ property :target_throughput_utilization, as: 'targetThroughputUtilization'
977
+ end
978
+ end
979
+
962
980
  class StaticFilesHandler
963
981
  # @private
964
982
  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 AppengineV1beta
28
28
  VERSION = 'V1beta'
29
- REVISION = '20171026'
29
+ REVISION = '20171109'
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'
@@ -808,6 +808,13 @@ module Google
808
808
  attr_accessor :split_health_checks
809
809
  alias_method :split_health_checks?, :split_health_checks
810
810
 
811
+ # If true, use Container-Optimized OS (https://cloud.google.com/container-
812
+ # optimized-os/) base image for VMs, rather than a base Debian image.
813
+ # Corresponds to the JSON property `useContainerOptimizedOs`
814
+ # @return [Boolean]
815
+ attr_accessor :use_container_optimized_os
816
+ alias_method :use_container_optimized_os?, :use_container_optimized_os
817
+
811
818
  def initialize(**args)
812
819
  update!(**args)
813
820
  end
@@ -815,6 +822,7 @@ module Google
815
822
  # Update properties of this object
816
823
  def update!(**args)
817
824
  @split_health_checks = args[:split_health_checks] if args.key?(:split_health_checks)
825
+ @use_container_optimized_os = args[:use_container_optimized_os] if args.key?(:use_container_optimized_os)
818
826
  end
819
827
  end
820
828
 
@@ -631,6 +631,7 @@ module Google
631
631
  # @private
632
632
  class Representation < Google::Apis::Core::JsonRepresentation
633
633
  property :split_health_checks, as: 'splitHealthChecks'
634
+ property :use_container_optimized_os, as: 'useContainerOptimizedOs'
634
635
  end
635
636
  end
636
637
 
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/bigquery/
27
27
  module BigquerydatatransferV1
28
28
  VERSION = 'V1'
29
- REVISION = '20171106'
29
+ REVISION = '20171113'
30
30
 
31
31
  # View and manage your data in Google BigQuery
32
32
  AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
@@ -519,7 +519,7 @@ module Google
519
519
  # @param [String] authorization_code
520
520
  # Optional OAuth2 authorization code to use with this transfer configuration.
521
521
  # If it is provided, the transfer configuration will be associated with the
522
- # gaia id of the authorizing user.
522
+ # authorizing user.
523
523
  # In order to obtain authorization_code, please make a
524
524
  # request to
525
525
  # https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=<
@@ -566,7 +566,7 @@ module Google
566
566
  execute_or_queue_command(command, &block)
567
567
  end
568
568
 
569
- # Creates transfer runs for a time range [range_start_time, range_end_time].
569
+ # Creates transfer runs for a time range [start_time, end_time].
570
570
  # For each date - or whatever granularity the data source supports - in the
571
571
  # range, one transfer run is created.
572
572
  # Note that runs are created per UTC time in the time range.
@@ -934,7 +934,7 @@ module Google
934
934
  # @param [String] authorization_code
935
935
  # Optional OAuth2 authorization code to use with this transfer configuration.
936
936
  # If it is provided, the transfer configuration will be associated with the
937
- # gaia id of the authorizing user.
937
+ # authorizing user.
938
938
  # In order to obtain authorization_code, please make a
939
939
  # request to
940
940
  # https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=<
@@ -981,7 +981,7 @@ module Google
981
981
  execute_or_queue_command(command, &block)
982
982
  end
983
983
 
984
- # Creates transfer runs for a time range [range_start_time, range_end_time].
984
+ # Creates transfer runs for a time range [start_time, end_time].
985
985
  # For each date - or whatever granularity the data source supports - in the
986
986
  # range, one transfer run is created.
987
987
  # Note that runs are created per UTC time in the time range.
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/container-builder/docs/
26
26
  module CloudbuildV1
27
27
  VERSION = 'V1'
28
- REVISION = '20171031'
28
+ REVISION = '20171115'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -230,12 +230,27 @@ module Google
230
230
  class BuildOptions
231
231
  include Google::Apis::Core::Hashable
232
232
 
233
+ # Requested disk size for the VM that runs the build. Note that this is *NOT*
234
+ # "disk free"; some of the space will be used by the operating system and
235
+ # build utilities. Also note that this is the minimum disk size that will be
236
+ # allocated for the build -- the build may run with a larger disk than
237
+ # requested. At present, the maximum disk size is 1000GB; builds that request
238
+ # more than the maximum are rejected with an error.
239
+ # Corresponds to the JSON property `diskSizeGb`
240
+ # @return [Fixnum]
241
+ attr_accessor :disk_size_gb
242
+
233
243
  # LogStreamingOption to define build log streaming behavior to Google Cloud
234
244
  # Storage.
235
245
  # Corresponds to the JSON property `logStreamingOption`
236
246
  # @return [String]
237
247
  attr_accessor :log_streaming_option
238
248
 
249
+ # GCE VM size to run the build on.
250
+ # Corresponds to the JSON property `machineType`
251
+ # @return [String]
252
+ attr_accessor :machine_type
253
+
239
254
  # Requested verifiability options.
240
255
  # Corresponds to the JSON property `requestedVerifyOption`
241
256
  # @return [String]
@@ -257,7 +272,9 @@ module Google
257
272
 
258
273
  # Update properties of this object
259
274
  def update!(**args)
275
+ @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
260
276
  @log_streaming_option = args[:log_streaming_option] if args.key?(:log_streaming_option)
277
+ @machine_type = args[:machine_type] if args.key?(:machine_type)
261
278
  @requested_verify_option = args[:requested_verify_option] if args.key?(:requested_verify_option)
262
279
  @source_provenance_hash = args[:source_provenance_hash] if args.key?(:source_provenance_hash)
263
280
  @substitution_option = args[:substitution_option] if args.key?(:substitution_option)
@@ -209,7 +209,9 @@ module Google
209
209
  class BuildOptions
210
210
  # @private
211
211
  class Representation < Google::Apis::Core::JsonRepresentation
212
+ property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb'
212
213
  property :log_streaming_option, as: 'logStreamingOption'
214
+ property :machine_type, as: 'machineType'
213
215
  property :requested_verify_option, as: 'requestedVerifyOption'
214
216
  collection :source_provenance_hash, as: 'sourceProvenanceHash'
215
217
  property :substitution_option, as: 'substitutionOption'
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/iot
27
27
  module CloudiotV1
28
28
  VERSION = 'V1'
29
- REVISION = '20171024'
29
+ REVISION = '20171110'
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'
@@ -466,7 +466,11 @@ module Google
466
466
  # The configuration for notification of telemetry events received from the
467
467
  # device. All telemetry events that were successfully published by the
468
468
  # device and acknowledged by Cloud IoT Core are guaranteed to be
469
- # delivered to Cloud Pub/Sub. Only the first configuration is used.
469
+ # delivered to Cloud Pub/Sub. Only the first configuration is used. If you
470
+ # try to publish a device telemetry event using MQTT without specifying a
471
+ # Cloud Pub/Sub topic for the device's registry, the connection closes
472
+ # automatically. If you try to do so using an HTTP connection, an error
473
+ # is returned.
470
474
  # Corresponds to the JSON property `eventNotificationConfigs`
471
475
  # @return [Array<Google::Apis::CloudiotV1::EventNotificationConfig>]
472
476
  attr_accessor :event_notification_configs
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/kms/
27
27
  module CloudkmsV1
28
28
  VERSION = 'V1'
29
- REVISION = '20170829'
29
+ REVISION = '20171114'
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'
@@ -206,7 +206,8 @@ module Google
206
206
  # @return [String]
207
207
  attr_accessor :create_time
208
208
 
209
- # Labels with user defined metadata.
209
+ # Labels with user-defined metadata. For more information, see
210
+ # [Labeling CryptoKeys](/kms/docs/labeling-keys).
210
211
  # Corresponds to the JSON property `labels`
211
212
  # @return [Hash<String,String>]
212
213
  attr_accessor :labels
@@ -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 = '20171106'
29
+ REVISION = '20171117'
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'
@@ -130,8 +130,6 @@ module Google
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
132
  # with error code 405 (Method Not Allowed). See
133
- # the Request-Line is not allowed for the resource identified by the
134
- # Request-URI". See
135
133
  # [Writing a push task request handler](/appengine/docs/java/taskqueue/push/
136
134
  # creating-handlers#writing_a_push_task_request_handler)
137
135
  # and the documentation for the request handlers in the language your app is
@@ -250,8 +248,8 @@ module Google
250
248
  class AppEngineRouting
251
249
  include Google::Apis::Core::Hashable
252
250
 
253
- # Output only.
254
- # The host that the task is sent to. For more information, see
251
+ # Output only. The host that the task is sent to.
252
+ # For more information, see
255
253
  # [How Requests are Routed](/appengine/docs/standard/python/how-requests-are-
256
254
  # routed).
257
255
  # The host is constructed as:
@@ -410,8 +408,7 @@ module Google
410
408
  class AttemptStatus
411
409
  include Google::Apis::Core::Hashable
412
410
 
413
- # Output only.
414
- # The time that this attempt was dispatched.
411
+ # Output only. The time that this attempt was dispatched.
415
412
  # `dispatch_time` will be truncated to the nearest microsecond.
416
413
  # Corresponds to the JSON property `dispatchTime`
417
414
  # @return [String]
@@ -460,15 +457,13 @@ module Google
460
457
  # @return [Google::Apis::CloudtasksV2beta2::Status]
461
458
  attr_accessor :response_status
462
459
 
463
- # Output only.
464
- # The time that this attempt response was received.
460
+ # Output only. The time that this attempt response was received.
465
461
  # `response_time` will be truncated to the nearest microsecond.
466
462
  # Corresponds to the JSON property `responseTime`
467
463
  # @return [String]
468
464
  attr_accessor :response_time
469
465
 
470
- # Output only.
471
- # The time that this attempt was scheduled.
466
+ # Output only. The time that this attempt was scheduled.
472
467
  # `schedule_time` will be truncated to the nearest microsecond.
473
468
  # Corresponds to the JSON property `scheduleTime`
474
469
  # @return [String]
@@ -848,9 +843,14 @@ module Google
848
843
  # @return [String]
849
844
  attr_accessor :payload
850
845
 
851
- # A meta-data tag for this task.
852
- # This value is used by CloudTasks.PullTasks calls when
853
- # PullTasksRequest.filter is `tag=<tag>`.
846
+ # The task's tag.
847
+ # Tags allow similar tasks to be processed in a batch. If you label
848
+ # tasks with a tag, your task worker can pull tasks
849
+ # with the same tag using PullTasksRequest.filter. For example,
850
+ # if you want to aggregate the events associated with a specific
851
+ # user once a day, you could tag tasks with the user ID.
852
+ # The task's tag can only be set when the
853
+ # task is created.
854
854
  # The tag must be less than 500 bytes.
855
855
  # Corresponds to the JSON property `tag`
856
856
  # NOTE: Values are automatically base64 encoded/decoded in the client library.
@@ -1055,13 +1055,10 @@ module Google
1055
1055
  # The queue name.
1056
1056
  # The queue name must have the following format:
1057
1057
  # `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
1058
- # * `PROJECT_ID` can contain uppercase and lowercase letters,
1059
- # numbers, hyphens, colons, and periods; that is, it must match
1060
- # the regular expression: `[a-zA-Z\\d-:\\.]+`.
1061
- # * `QUEUE_ID` can contain uppercase and lowercase letters,
1062
- # numbers, and hyphens; that is, it must match the regular
1063
- # expression: `[a-zA-Z\\d-]+`. The maximum length is 100
1064
- # characters.
1058
+ # * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
1059
+ # hyphens (-), colons (:), or periods (.).
1060
+ # * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
1061
+ # hyphens (-). The maximum length is 100 characters.
1065
1062
  # Caller-specified and required in CreateQueueRequest, after which
1066
1063
  # it becomes output only.
1067
1064
  # Corresponds to the JSON property `name`
@@ -1078,9 +1075,9 @@ module Google
1078
1075
  # @return [Google::Apis::CloudtasksV2beta2::PullTarget]
1079
1076
  attr_accessor :pull_target
1080
1077
 
1081
- # Output only.
1082
- # The last time this queue was purged. All tasks that were
1083
- # created before this time were purged.
1078
+ # Output only. The last time this queue was purged.
1079
+ # All tasks that were created before this time
1080
+ # were purged.
1084
1081
  # A queue can be purged using CloudTasks.PurgeQueue, the
1085
1082
  # [App Engine Task Queue SDK, or the Cloud Console](/appengine/docs/standard/
1086
1083
  # python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue)
@@ -1091,8 +1088,7 @@ module Google
1091
1088
  # @return [String]
1092
1089
  attr_accessor :purge_time
1093
1090
 
1094
- # Output only.
1095
- # The state of the queue.
1091
+ # Output only. The state of the queue.
1096
1092
  # `queue_state` can only be changed by called
1097
1093
  # CloudTasks.PauseQueue, CloudTasks.ResumeQueue, or uploading
1098
1094
  # [queue.yaml](/appengine/docs/python/config/queueref).
@@ -1138,12 +1134,12 @@ module Google
1138
1134
  class RateLimits
1139
1135
  include Google::Apis::Core::Hashable
1140
1136
 
1141
- # Output only.
1142
- # The max burst size limits how fast the queue is processed when
1143
- # many tasks are in the queue and the rate is high. This field
1144
- # allows the queue to have a high rate so processing starts shortly
1145
- # after a task is enqueued, but still limits resource usage when
1146
- # many tasks are enqueued in a short period of time.
1137
+ # Output only. The max burst size.
1138
+ # Max burst size limits how fast the queue is processed when many
1139
+ # tasks are in the queue and the rate is high. This field allows
1140
+ # the queue to have a high rate so processing starts shortly after
1141
+ # a task is enqueued, but still limits resource usage when many
1142
+ # tasks are enqueued in a short period of time.
1147
1143
  # * For App Engine queues, if
1148
1144
  # RateLimits.max_tasks_dispatched_per_second is 1, this
1149
1145
  # field is 10; otherwise this field is
@@ -1205,10 +1201,10 @@ module Google
1205
1201
  # Required.
1206
1202
  # The desired new lease duration, starting from now.
1207
1203
  # The maximum lease duration is 1 week.
1208
- # `new_lease_duration` will be truncated to the nearest second.
1209
- # Corresponds to the JSON property `newLeaseDuration`
1204
+ # `lease_duration` will be truncated to the nearest second.
1205
+ # Corresponds to the JSON property `leaseDuration`
1210
1206
  # @return [String]
1211
- attr_accessor :new_lease_duration
1207
+ attr_accessor :lease_duration
1212
1208
 
1213
1209
  # The response_view specifies which subset of the Task will be
1214
1210
  # returned.
@@ -1239,7 +1235,7 @@ module Google
1239
1235
 
1240
1236
  # Update properties of this object
1241
1237
  def update!(**args)
1242
- @new_lease_duration = args[:new_lease_duration] if args.key?(:new_lease_duration)
1238
+ @lease_duration = args[:lease_duration] if args.key?(:lease_duration)
1243
1239
  @response_view = args[:response_view] if args.key?(:response_view)
1244
1240
  @schedule_time = args[:schedule_time] if args.key?(:schedule_time)
1245
1241
  end
@@ -1285,11 +1281,19 @@ module Google
1285
1281
  # @return [String]
1286
1282
  attr_accessor :max_backoff
1287
1283
 
1288
- # The time between retries increases exponentially `max_doublings` times.
1289
- # `max_doublings` is maximum number of times that the interval between failed
1290
- # task retries will be doubled before the interval increases linearly.
1291
- # After max_doublings intervals, the retry interval will be
1292
- # 2^(max_doublings - 1) * RetryConfig.min_backoff.
1284
+ # The time between retries will double `max_doublings` times.
1285
+ # A task's retry interval starts at RetryConfig.min_backoff,
1286
+ # then doubles `max_doublings` times, then increases linearly, and
1287
+ # finally retries retries at intervals of
1288
+ # RetryConfig.max_backoff up to max_attempts times.
1289
+ # For example, if RetryConfig.min_backoff is 10s,
1290
+ # RetryConfig.max_backoff is 300s, and `max_doublings` is 3,
1291
+ # then the a task will first be retried in 10s. The retry interval
1292
+ # will double three times, and then increase linearly by 2^3 * 10s.
1293
+ # Finally, the task will retry at intervals of
1294
+ # RetryConfig.max_backoff until the task has been attempted
1295
+ # `max_attempts` times. Thus, the requests will retry at 10s, 20s,
1296
+ # 40s, 80s, 160s, 240s, 300s, 300s, ....
1293
1297
  # * For [App Engine queues](google.cloud.tasks.v2beta2.AppEngineHttpTarget),
1294
1298
  # this field is 16 by default.
1295
1299
  # * For [pull queues](google.cloud.tasks.v2beta2.PullTarget), this field
@@ -1544,8 +1548,7 @@ module Google
1544
1548
  # @return [Google::Apis::CloudtasksV2beta2::AppEngineTaskTarget]
1545
1549
  attr_accessor :app_engine_task_target
1546
1550
 
1547
- # Output only.
1548
- # The time that the task was created.
1551
+ # Output only. The time that the task was created.
1549
1552
  # `create_time` will be truncated to the nearest second.
1550
1553
  # Corresponds to the JSON property `createTime`
1551
1554
  # @return [String]
@@ -1554,17 +1557,12 @@ module Google
1554
1557
  # The task name.
1555
1558
  # The task name must have the following format:
1556
1559
  # `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
1557
- # * `PROJECT_ID` can contain uppercase and lowercase letters,
1558
- # numbers, hyphens, colons, and periods; that is, it must match
1559
- # the regular expression: `[a-zA-Z\\d-:\\.]+`.
1560
- # * `QUEUE_ID` can contain uppercase and lowercase letters,
1561
- # numbers, and hyphens; that is, it must match the regular
1562
- # expression: `[a-zA-Z\\d-]+`. The maximum length is 100
1563
- # characters.
1564
- # * `TASK_ID` contain uppercase and lowercase letters, numbers,
1565
- # underscores, and hyphens; that is, it must match the regular
1566
- # expression: `[a-zA-Z\\d_-]+`. The maximum length is 500
1567
- # characters.
1560
+ # * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
1561
+ # hyphens (-), colons (:), or periods (.).
1562
+ # * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
1563
+ # hyphens (-). The maximum length is 100 characters.
1564
+ # * `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
1565
+ # hyphens (-), or underscores (_). The maximum length is 500 characters.
1568
1566
  # Optionally caller-specified in CreateTaskRequest.
1569
1567
  # Corresponds to the JSON property `name`
1570
1568
  # @return [String]
@@ -1599,9 +1597,8 @@ module Google
1599
1597
  # @return [Google::Apis::CloudtasksV2beta2::TaskStatus]
1600
1598
  attr_accessor :task_status
1601
1599
 
1602
- # Output only.
1603
- # The view specifies which subset of the Task has been
1604
- # returned.
1600
+ # Output only. The view specifies which subset of the Task has
1601
+ # been returned.
1605
1602
  # Corresponds to the JSON property `view`
1606
1603
  # @return [String]
1607
1604
  attr_accessor :view
@@ -1628,15 +1625,14 @@ module Google
1628
1625
  class TaskStatus
1629
1626
  include Google::Apis::Core::Hashable
1630
1627
 
1631
- # Output only.
1632
- # The number of attempts dispatched. This count includes tasks which have
1633
- # been dispatched but haven't received a response.
1628
+ # Output only. The number of attempts dispatched.
1629
+ # This count includes tasks which have been dispatched but haven't
1630
+ # received a response.
1634
1631
  # Corresponds to the JSON property `attemptDispatchCount`
1635
1632
  # @return [Fixnum]
1636
1633
  attr_accessor :attempt_dispatch_count
1637
1634
 
1638
- # Output only.
1639
- # The number of attempts which have received a response.
1635
+ # Output only. The number of attempts which have received a response.
1640
1636
  # This field is not calculated for
1641
1637
  # [pull tasks](google.cloud.tasks.v2beta2.PullTaskTarget).
1642
1638
  # Corresponds to the JSON property `attemptResponseCount`