From 52597513a98d55b4a3cb8169b1d84582f4351e89 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Wed, 29 Aug 2018 00:36:37 +0000 Subject: [PATCH] Autogenerated update (2018-08-29) Update: - androidpublisher_v2 - androidpublisher_v3 - cloudkms_v1 - speech_v1 - toolresults_v1beta3 --- api_names_out.yaml | 156 ++ generated/google/apis/androidpublisher_v2.rb | 2 +- .../apis/androidpublisher_v2/classes.rb | 1 + generated/google/apis/androidpublisher_v3.rb | 2 +- .../apis/androidpublisher_v3/classes.rb | 1 + generated/google/apis/cloudkms_v1.rb | 2 +- generated/google/apis/cloudtasks_v2beta3.rb | 34 + .../google/apis/cloudtasks_v2beta3/classes.rb | 1409 +++++++++++++++++ .../cloudtasks_v2beta3/representations.rb | 422 +++++ .../google/apis/cloudtasks_v2beta3/service.rb | 855 ++++++++++ generated/google/apis/speech_v1.rb | 2 +- generated/google/apis/speech_v1/classes.rb | 19 +- generated/google/apis/toolresults_v1beta3.rb | 2 +- .../apis/toolresults_v1beta3/classes.rb | 28 +- 14 files changed, 2908 insertions(+), 27 deletions(-) create mode 100644 generated/google/apis/cloudtasks_v2beta3.rb create mode 100644 generated/google/apis/cloudtasks_v2beta3/classes.rb create mode 100644 generated/google/apis/cloudtasks_v2beta3/representations.rb create mode 100644 generated/google/apis/cloudtasks_v2beta3/service.rb diff --git a/api_names_out.yaml b/api_names_out.yaml index 2bdb71674..7651f756f 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -16192,6 +16192,162 @@ "/cloudtasks:v2beta2/fields": fields "/cloudtasks:v2beta2/key": key "/cloudtasks:v2beta2/quotaUser": quota_user +"/cloudtasks:v2beta3/AppEngineHttpQueue": app_engine_http_queue +"/cloudtasks:v2beta3/AppEngineHttpQueue/appEngineRoutingOverride": app_engine_routing_override +"/cloudtasks:v2beta3/AppEngineHttpRequest": app_engine_http_request +"/cloudtasks:v2beta3/AppEngineHttpRequest/appEngineRouting": app_engine_routing +"/cloudtasks:v2beta3/AppEngineHttpRequest/body": body +"/cloudtasks:v2beta3/AppEngineHttpRequest/headers": headers +"/cloudtasks:v2beta3/AppEngineHttpRequest/headers/header": header +"/cloudtasks:v2beta3/AppEngineHttpRequest/httpMethod": http_method +"/cloudtasks:v2beta3/AppEngineHttpRequest/relativeUri": relative_uri +"/cloudtasks:v2beta3/AppEngineRouting": app_engine_routing +"/cloudtasks:v2beta3/AppEngineRouting/host": host +"/cloudtasks:v2beta3/AppEngineRouting/instance": instance +"/cloudtasks:v2beta3/AppEngineRouting/service": service +"/cloudtasks:v2beta3/AppEngineRouting/version": version +"/cloudtasks:v2beta3/Attempt": attempt +"/cloudtasks:v2beta3/Attempt/dispatchTime": dispatch_time +"/cloudtasks:v2beta3/Attempt/responseStatus": response_status +"/cloudtasks:v2beta3/Attempt/responseTime": response_time +"/cloudtasks:v2beta3/Attempt/scheduleTime": schedule_time +"/cloudtasks:v2beta3/Binding": binding +"/cloudtasks:v2beta3/Binding/condition": condition +"/cloudtasks:v2beta3/Binding/members": members +"/cloudtasks:v2beta3/Binding/members/member": member +"/cloudtasks:v2beta3/Binding/role": role +"/cloudtasks:v2beta3/CreateTaskRequest": create_task_request +"/cloudtasks:v2beta3/CreateTaskRequest/responseView": response_view +"/cloudtasks:v2beta3/CreateTaskRequest/task": task +"/cloudtasks:v2beta3/Empty": empty +"/cloudtasks:v2beta3/Expr": expr +"/cloudtasks:v2beta3/Expr/description": description +"/cloudtasks:v2beta3/Expr/expression": expression +"/cloudtasks:v2beta3/Expr/location": location +"/cloudtasks:v2beta3/Expr/title": title +"/cloudtasks:v2beta3/GetIamPolicyRequest": get_iam_policy_request +"/cloudtasks:v2beta3/ListLocationsResponse": list_locations_response +"/cloudtasks:v2beta3/ListLocationsResponse/locations": locations +"/cloudtasks:v2beta3/ListLocationsResponse/locations/location": location +"/cloudtasks:v2beta3/ListLocationsResponse/nextPageToken": next_page_token +"/cloudtasks:v2beta3/ListQueuesResponse": list_queues_response +"/cloudtasks:v2beta3/ListQueuesResponse/nextPageToken": next_page_token +"/cloudtasks:v2beta3/ListQueuesResponse/queues": queues +"/cloudtasks:v2beta3/ListQueuesResponse/queues/queue": queue +"/cloudtasks:v2beta3/ListTasksResponse": list_tasks_response +"/cloudtasks:v2beta3/ListTasksResponse/nextPageToken": next_page_token +"/cloudtasks:v2beta3/ListTasksResponse/tasks": tasks +"/cloudtasks:v2beta3/ListTasksResponse/tasks/task": task +"/cloudtasks:v2beta3/Location": location +"/cloudtasks:v2beta3/Location/displayName": display_name +"/cloudtasks:v2beta3/Location/labels": labels +"/cloudtasks:v2beta3/Location/labels/label": label +"/cloudtasks:v2beta3/Location/locationId": location_id +"/cloudtasks:v2beta3/Location/metadata": metadata +"/cloudtasks:v2beta3/Location/metadata/metadatum": metadatum +"/cloudtasks:v2beta3/Location/name": name +"/cloudtasks:v2beta3/PauseQueueRequest": pause_queue_request +"/cloudtasks:v2beta3/Policy": policy +"/cloudtasks:v2beta3/Policy/bindings": bindings +"/cloudtasks:v2beta3/Policy/bindings/binding": binding +"/cloudtasks:v2beta3/Policy/etag": etag +"/cloudtasks:v2beta3/Policy/version": version +"/cloudtasks:v2beta3/PurgeQueueRequest": purge_queue_request +"/cloudtasks:v2beta3/Queue": queue +"/cloudtasks:v2beta3/Queue/appEngineHttpQueue": app_engine_http_queue +"/cloudtasks:v2beta3/Queue/name": name +"/cloudtasks:v2beta3/Queue/purgeTime": purge_time +"/cloudtasks:v2beta3/Queue/rateLimits": rate_limits +"/cloudtasks:v2beta3/Queue/retryConfig": retry_config +"/cloudtasks:v2beta3/Queue/state": state +"/cloudtasks:v2beta3/RateLimits": rate_limits +"/cloudtasks:v2beta3/RateLimits/maxBurstSize": max_burst_size +"/cloudtasks:v2beta3/RateLimits/maxConcurrentDispatches": max_concurrent_dispatches +"/cloudtasks:v2beta3/RateLimits/maxDispatchesPerSecond": max_dispatches_per_second +"/cloudtasks:v2beta3/ResumeQueueRequest": resume_queue_request +"/cloudtasks:v2beta3/RetryConfig": retry_config +"/cloudtasks:v2beta3/RetryConfig/maxAttempts": max_attempts +"/cloudtasks:v2beta3/RetryConfig/maxBackoff": max_backoff +"/cloudtasks:v2beta3/RetryConfig/maxDoublings": max_doublings +"/cloudtasks:v2beta3/RetryConfig/maxRetryDuration": max_retry_duration +"/cloudtasks:v2beta3/RetryConfig/minBackoff": min_backoff +"/cloudtasks:v2beta3/RetryConfig/unlimitedAttempts": unlimited_attempts +"/cloudtasks:v2beta3/RunTaskRequest": run_task_request +"/cloudtasks:v2beta3/RunTaskRequest/responseView": response_view +"/cloudtasks:v2beta3/SetIamPolicyRequest": set_iam_policy_request +"/cloudtasks:v2beta3/SetIamPolicyRequest/policy": policy +"/cloudtasks:v2beta3/Status": status +"/cloudtasks:v2beta3/Status/code": code +"/cloudtasks:v2beta3/Status/details": details +"/cloudtasks:v2beta3/Status/details/detail": detail +"/cloudtasks:v2beta3/Status/details/detail/detail": detail +"/cloudtasks:v2beta3/Status/message": message +"/cloudtasks:v2beta3/Task": task +"/cloudtasks:v2beta3/Task/appEngineHttpRequest": app_engine_http_request +"/cloudtasks:v2beta3/Task/createTime": create_time +"/cloudtasks:v2beta3/Task/dispatchCount": dispatch_count +"/cloudtasks:v2beta3/Task/firstAttempt": first_attempt +"/cloudtasks:v2beta3/Task/lastAttempt": last_attempt +"/cloudtasks:v2beta3/Task/name": name +"/cloudtasks:v2beta3/Task/responseCount": response_count +"/cloudtasks:v2beta3/Task/scheduleTime": schedule_time +"/cloudtasks:v2beta3/Task/view": view +"/cloudtasks:v2beta3/TestIamPermissionsRequest": test_iam_permissions_request +"/cloudtasks:v2beta3/TestIamPermissionsRequest/permissions": permissions +"/cloudtasks:v2beta3/TestIamPermissionsRequest/permissions/permission": permission +"/cloudtasks:v2beta3/TestIamPermissionsResponse": test_iam_permissions_response +"/cloudtasks:v2beta3/TestIamPermissionsResponse/permissions": permissions +"/cloudtasks:v2beta3/TestIamPermissionsResponse/permissions/permission": permission +"/cloudtasks:v2beta3/cloudtasks.projects.locations.get": get_project_location +"/cloudtasks:v2beta3/cloudtasks.projects.locations.get/name": name +"/cloudtasks:v2beta3/cloudtasks.projects.locations.list": list_project_locations +"/cloudtasks:v2beta3/cloudtasks.projects.locations.list/filter": filter +"/cloudtasks:v2beta3/cloudtasks.projects.locations.list/name": name +"/cloudtasks:v2beta3/cloudtasks.projects.locations.list/pageSize": page_size +"/cloudtasks:v2beta3/cloudtasks.projects.locations.list/pageToken": page_token +"/cloudtasks:v2beta3/cloudtasks.projects.locations.queues.create": create_project_location_queue +"/cloudtasks:v2beta3/cloudtasks.projects.locations.queues.create/parent": parent +"/cloudtasks:v2beta3/cloudtasks.projects.locations.queues.delete": delete_project_location_queue +"/cloudtasks:v2beta3/cloudtasks.projects.locations.queues.delete/name": name +"/cloudtasks:v2beta3/cloudtasks.projects.locations.queues.get": get_project_location_queue +"/cloudtasks:v2beta3/cloudtasks.projects.locations.queues.get/name": name +"/cloudtasks:v2beta3/cloudtasks.projects.locations.queues.getIamPolicy": get_queue_iam_policy +"/cloudtasks:v2beta3/cloudtasks.projects.locations.queues.getIamPolicy/resource": resource +"/cloudtasks:v2beta3/cloudtasks.projects.locations.queues.list": list_project_location_queues +"/cloudtasks:v2beta3/cloudtasks.projects.locations.queues.list/filter": filter +"/cloudtasks:v2beta3/cloudtasks.projects.locations.queues.list/pageSize": page_size +"/cloudtasks:v2beta3/cloudtasks.projects.locations.queues.list/pageToken": page_token +"/cloudtasks:v2beta3/cloudtasks.projects.locations.queues.list/parent": parent +"/cloudtasks:v2beta3/cloudtasks.projects.locations.queues.patch": patch_project_location_queue +"/cloudtasks:v2beta3/cloudtasks.projects.locations.queues.patch/name": name +"/cloudtasks:v2beta3/cloudtasks.projects.locations.queues.patch/updateMask": update_mask +"/cloudtasks:v2beta3/cloudtasks.projects.locations.queues.pause": pause_queue +"/cloudtasks:v2beta3/cloudtasks.projects.locations.queues.pause/name": name +"/cloudtasks:v2beta3/cloudtasks.projects.locations.queues.purge": purge_queue +"/cloudtasks:v2beta3/cloudtasks.projects.locations.queues.purge/name": name +"/cloudtasks:v2beta3/cloudtasks.projects.locations.queues.resume": resume_queue +"/cloudtasks:v2beta3/cloudtasks.projects.locations.queues.resume/name": name +"/cloudtasks:v2beta3/cloudtasks.projects.locations.queues.setIamPolicy": set_queue_iam_policy +"/cloudtasks:v2beta3/cloudtasks.projects.locations.queues.setIamPolicy/resource": resource +"/cloudtasks:v2beta3/cloudtasks.projects.locations.queues.tasks.create": create_task +"/cloudtasks:v2beta3/cloudtasks.projects.locations.queues.tasks.create/parent": parent +"/cloudtasks:v2beta3/cloudtasks.projects.locations.queues.tasks.delete": delete_project_location_queue_task +"/cloudtasks:v2beta3/cloudtasks.projects.locations.queues.tasks.delete/name": name +"/cloudtasks:v2beta3/cloudtasks.projects.locations.queues.tasks.get": get_project_location_queue_task +"/cloudtasks:v2beta3/cloudtasks.projects.locations.queues.tasks.get/name": name +"/cloudtasks:v2beta3/cloudtasks.projects.locations.queues.tasks.get/responseView": response_view +"/cloudtasks:v2beta3/cloudtasks.projects.locations.queues.tasks.list": list_project_location_queue_tasks +"/cloudtasks:v2beta3/cloudtasks.projects.locations.queues.tasks.list/pageSize": page_size +"/cloudtasks:v2beta3/cloudtasks.projects.locations.queues.tasks.list/pageToken": page_token +"/cloudtasks:v2beta3/cloudtasks.projects.locations.queues.tasks.list/parent": parent +"/cloudtasks:v2beta3/cloudtasks.projects.locations.queues.tasks.list/responseView": response_view +"/cloudtasks:v2beta3/cloudtasks.projects.locations.queues.tasks.run": run_task +"/cloudtasks:v2beta3/cloudtasks.projects.locations.queues.tasks.run/name": name +"/cloudtasks:v2beta3/cloudtasks.projects.locations.queues.testIamPermissions": test_queue_iam_permissions +"/cloudtasks:v2beta3/cloudtasks.projects.locations.queues.testIamPermissions/resource": resource +"/cloudtasks:v2beta3/fields": fields +"/cloudtasks:v2beta3/key": key +"/cloudtasks:v2beta3/quotaUser": quota_user "/cloudtrace:v1/Empty": empty "/cloudtrace:v1/ListTracesResponse": list_traces_response "/cloudtrace:v1/ListTracesResponse/nextPageToken": next_page_token diff --git a/generated/google/apis/androidpublisher_v2.rb b/generated/google/apis/androidpublisher_v2.rb index ba3ad600d..a2725eeeb 100644 --- a/generated/google/apis/androidpublisher_v2.rb +++ b/generated/google/apis/androidpublisher_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/android-publisher module AndroidpublisherV2 VERSION = 'V2' - REVISION = '20180807' + REVISION = '20180827' # View and manage your Google Play Developer account AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher' diff --git a/generated/google/apis/androidpublisher_v2/classes.rb b/generated/google/apis/androidpublisher_v2/classes.rb index 56073e2b4..af87c5463 100644 --- a/generated/google/apis/androidpublisher_v2/classes.rb +++ b/generated/google/apis/androidpublisher_v2/classes.rb @@ -1509,6 +1509,7 @@ module Google # - Payment pending # - Payment received # - Free trial + # - Pending deferred upgrade/downgrade # Corresponds to the JSON property `paymentState` # @return [Fixnum] attr_accessor :payment_state diff --git a/generated/google/apis/androidpublisher_v3.rb b/generated/google/apis/androidpublisher_v3.rb index 90caa7a93..088724774 100644 --- a/generated/google/apis/androidpublisher_v3.rb +++ b/generated/google/apis/androidpublisher_v3.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/android-publisher module AndroidpublisherV3 VERSION = 'V3' - REVISION = '20180807' + REVISION = '20180827' # View and manage your Google Play Developer account AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher' diff --git a/generated/google/apis/androidpublisher_v3/classes.rb b/generated/google/apis/androidpublisher_v3/classes.rb index 813c9a3d6..ee292e3f7 100644 --- a/generated/google/apis/androidpublisher_v3/classes.rb +++ b/generated/google/apis/androidpublisher_v3/classes.rb @@ -1483,6 +1483,7 @@ module Google # - Payment pending # - Payment received # - Free trial + # - Pending deferred upgrade/downgrade # Corresponds to the JSON property `paymentState` # @return [Fixnum] attr_accessor :payment_state diff --git a/generated/google/apis/cloudkms_v1.rb b/generated/google/apis/cloudkms_v1.rb index 7037bd9ed..3ad3ac54c 100644 --- a/generated/google/apis/cloudkms_v1.rb +++ b/generated/google/apis/cloudkms_v1.rb @@ -29,7 +29,7 @@ module Google # @see https://cloud.google.com/kms/ module CloudkmsV1 VERSION = 'V1' - REVISION = '20180821' + REVISION = '20180823' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/cloudtasks_v2beta3.rb b/generated/google/apis/cloudtasks_v2beta3.rb new file mode 100644 index 000000000..16aa3b0e1 --- /dev/null +++ b/generated/google/apis/cloudtasks_v2beta3.rb @@ -0,0 +1,34 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/cloudtasks_v2beta3/service.rb' +require 'google/apis/cloudtasks_v2beta3/classes.rb' +require 'google/apis/cloudtasks_v2beta3/representations.rb' + +module Google + module Apis + # Cloud Tasks API + # + # Manages the execution of large numbers of distributed requests. + # + # @see https://cloud.google.com/tasks/ + module CloudtasksV2beta3 + VERSION = 'V2beta3' + REVISION = '20180827' + + # View and manage your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + end + end +end diff --git a/generated/google/apis/cloudtasks_v2beta3/classes.rb b/generated/google/apis/cloudtasks_v2beta3/classes.rb new file mode 100644 index 000000000..ff4992adf --- /dev/null +++ b/generated/google/apis/cloudtasks_v2beta3/classes.rb @@ -0,0 +1,1409 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module CloudtasksV2beta3 + + # App Engine HTTP queue. + # The task will be delivered to the App Engine application hostname + # specified by its AppEngineHttpQueue and AppEngineHttpRequest. + # The documentation for AppEngineHttpRequest explains how the + # task's host URL is constructed. + # Using AppEngineHttpQueue requires + # [`appengine.applications.get`](https://cloud.google.com/appengine/docs/admin- + # api/access-control) + # Google IAM permission for the project + # and the following scope: + # `https://www.googleapis.com/auth/cloud-platform` + class AppEngineHttpQueue + include Google::Apis::Core::Hashable + + # App Engine Routing. + # Specifies the target URI. Since this target type dispatches tasks to secure + # app handlers, unsecure app handlers, and URIs restricted with + # [`login: admin`](https://cloud.google.com/appengine/docs/standard/python/ + # config/appref) + # the protocol (for example, HTTP or HTTPS) cannot be explictly specified. + # Task dispatches do not follow redirects and cannot target URI paths + # restricted with + # [`login: required`](https://cloud.google.com/appengine/docs/standard/python/ + # config/appref) + # because tasks are not run as any user. + # For more information about services, versions, and instances see + # [An Overview of App Engine](https://cloud.google.com/appengine/docs/python/an- + # overview-of-app-engine), + # [Microservices Architecture on Google App Engine](https://cloud.google.com/ + # appengine/docs/python/microservices-on-app-engine), + # [App Engine Standard request routing](https://cloud.google.com/appengine/docs/ + # standard/python/how-requests-are-routed), + # and [App Engine Flex request routing](https://cloud.google.com/appengine/docs/ + # flexible/python/how-requests-are-routed). + # Corresponds to the JSON property `appEngineRoutingOverride` + # @return [Google::Apis::CloudtasksV2beta3::AppEngineRouting] + attr_accessor :app_engine_routing_override + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @app_engine_routing_override = args[:app_engine_routing_override] if args.key?(:app_engine_routing_override) + end + end + + # App Engine HTTP request. + # The message defines the HTTP request that is sent to an App Engine app when + # the task is dispatched. + # This proto can only be used for tasks in a queue which has + # app_engine_http_queue set. + # Using AppEngineHttpRequest requires + # [`appengine.applications.get`](https://cloud.google.com/appengine/docs/admin- + # api/access-control) + # Google IAM permission for the project + # and the following scope: + # `https://www.googleapis.com/auth/cloud-platform` + # The task will be delivered to the App Engine app which belongs to the same + # project as the queue. For more information, see + # [How Requests are + # Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests- + # are-routed) + # and how routing is affected by + # [dispatch + # files](https://cloud.google.com/appengine/docs/python/config/dispatchref). + # The AppEngineRouting used to construct the URL that the task is + # delivered to can be set at the queue-level or task-level: + # * If set, + # app_engine_routing_override + # is used for all tasks in the queue, no matter what the setting + # is for the + # task-level app_engine_routing. + # The `url` that the task will be sent to is: + # * `url =` host `+` + # relative_uri + # The task attempt has succeeded if the app's request handler returns + # an HTTP response code in the range [`200` - `299`]. `503` is + # considered an App Engine system error instead of an application + # error. Requests returning error `503` will be retried regardless of + # retry configuration and not counted against retry counts. + # Any other response code or a failure to receive a response before the + # deadline is a failed attempt. + class AppEngineHttpRequest + include Google::Apis::Core::Hashable + + # App Engine Routing. + # Specifies the target URI. Since this target type dispatches tasks to secure + # app handlers, unsecure app handlers, and URIs restricted with + # [`login: admin`](https://cloud.google.com/appengine/docs/standard/python/ + # config/appref) + # the protocol (for example, HTTP or HTTPS) cannot be explictly specified. + # Task dispatches do not follow redirects and cannot target URI paths + # restricted with + # [`login: required`](https://cloud.google.com/appengine/docs/standard/python/ + # config/appref) + # because tasks are not run as any user. + # For more information about services, versions, and instances see + # [An Overview of App Engine](https://cloud.google.com/appengine/docs/python/an- + # overview-of-app-engine), + # [Microservices Architecture on Google App Engine](https://cloud.google.com/ + # appengine/docs/python/microservices-on-app-engine), + # [App Engine Standard request routing](https://cloud.google.com/appengine/docs/ + # standard/python/how-requests-are-routed), + # and [App Engine Flex request routing](https://cloud.google.com/appengine/docs/ + # flexible/python/how-requests-are-routed). + # Corresponds to the JSON property `appEngineRouting` + # @return [Google::Apis::CloudtasksV2beta3::AppEngineRouting] + attr_accessor :app_engine_routing + + # HTTP request body. + # A request body is allowed only if the HTTP method is POST or PUT. It is + # an error to set a body on a task with an incompatible HttpMethod. + # Corresponds to the JSON property `body` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :body + + # HTTP request headers. + # This map contains the header field names and values. + # Headers can be set when the + # task is created. + # Repeated headers are not supported but a header value can contain commas. + # Cloud Tasks sets some headers to default values: + # * `User-Agent`: By default, this header is + # `"AppEngine-Google; (+http://code.google.com/appengine)"`. + # This header can be modified, but Cloud Tasks will append + # `"AppEngine-Google; (+http://code.google.com/appengine)"` to the + # modified `User-Agent`. + # If the task has a body, Cloud + # Tasks sets the following headers: + # * `Content-Type`: By default, the `Content-Type` header is set to + # `"application/octet-stream"`. The default can be overridden by explicitly + # setting `Content-Type` to a particular media type when the + # task is created. + # For example, `Content-Type` can be set to `"application/json"`. + # * `Content-Length`: This is computed by Cloud Tasks. This value is + # output only. It cannot be changed. + # The headers below cannot be set or overridden: + # * `Host` + # * `X-Google-*` + # * `X-AppEngine-*` + # In addition, Cloud Tasks sets some headers when the task is dispatched, + # such as headers containing information about the task; see + # [request + # headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/ + # creating-handlers#reading_request_headers). + # These headers are set only when the task is dispatched, so they are not + # visible when the task is returned in a Cloud Tasks response. + # Although there is no specific limit for the maximum number of headers or + # the size, there is a limit on the maximum size of the Task. For more + # information, see the CreateTask documentation. + # Corresponds to the JSON property `headers` + # @return [Hash] + attr_accessor :headers + + # The HTTP method to use for the request. The default is POST. + # The app's request handler for the task's target URL must be able to handle + # HTTP requests with this http_method, otherwise the task attempt will fail + # with error code 405 (Method Not Allowed). See + # [Writing a push task request handler](https://cloud.google.com/appengine/docs/ + # java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler) + # and the documentation for the request handlers in the language your app is + # written in e.g. + # [Python Request Handler](https://cloud.google.com/appengine/docs/python/tools/ + # webapp/requesthandlerclass). + # Corresponds to the JSON property `httpMethod` + # @return [String] + attr_accessor :http_method + + # The relative URI. + # The relative URI must begin with "/" and must be a valid HTTP relative URI. + # It can contain a path and query string arguments. + # If the relative URI is empty, then the root path "/" will be used. + # No spaces are allowed, and the maximum length allowed is 2083 characters. + # Corresponds to the JSON property `relativeUri` + # @return [String] + attr_accessor :relative_uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @app_engine_routing = args[:app_engine_routing] if args.key?(:app_engine_routing) + @body = args[:body] if args.key?(:body) + @headers = args[:headers] if args.key?(:headers) + @http_method = args[:http_method] if args.key?(:http_method) + @relative_uri = args[:relative_uri] if args.key?(:relative_uri) + end + end + + # App Engine Routing. + # Specifies the target URI. Since this target type dispatches tasks to secure + # app handlers, unsecure app handlers, and URIs restricted with + # [`login: admin`](https://cloud.google.com/appengine/docs/standard/python/ + # config/appref) + # the protocol (for example, HTTP or HTTPS) cannot be explictly specified. + # Task dispatches do not follow redirects and cannot target URI paths + # restricted with + # [`login: required`](https://cloud.google.com/appengine/docs/standard/python/ + # config/appref) + # because tasks are not run as any user. + # For more information about services, versions, and instances see + # [An Overview of App Engine](https://cloud.google.com/appengine/docs/python/an- + # overview-of-app-engine), + # [Microservices Architecture on Google App Engine](https://cloud.google.com/ + # appengine/docs/python/microservices-on-app-engine), + # [App Engine Standard request routing](https://cloud.google.com/appengine/docs/ + # standard/python/how-requests-are-routed), + # and [App Engine Flex request routing](https://cloud.google.com/appengine/docs/ + # flexible/python/how-requests-are-routed). + class AppEngineRouting + include Google::Apis::Core::Hashable + + # Output only. The host that the task is sent to. + # The host is constructed from the domain name of the app associated with + # the queue's project ID (for example .appspot.com), and the + # service, version, + # and instance. Tasks which were created using + # the App Engine SDK might have a custom domain name. + # For more information, see + # [How Requests are Routed](https://cloud.google.com/appengine/docs/standard/ + # python/how-requests-are-routed). + # Corresponds to the JSON property `host` + # @return [String] + attr_accessor :host + + # App instance. + # By default, the task is sent to an instance which is available when + # the task is attempted. + # Requests can only be sent to a specific instance if + # [manual scaling is used in App Engine Standard](https://cloud.google.com/ + # appengine/docs/python/an-overview-of-app-engine?hl=en_US# + # scaling_types_and_instance_classes). + # App Engine Flex does not support instances. For more information, see + # [App Engine Standard request routing](https://cloud.google.com/appengine/docs/ + # standard/python/how-requests-are-routed) + # and [App Engine Flex request routing](https://cloud.google.com/appengine/docs/ + # flexible/python/how-requests-are-routed). + # Corresponds to the JSON property `instance` + # @return [String] + attr_accessor :instance + + # App service. + # By default, the task is sent to the service which is the default + # service when the task is attempted. + # For some queues or tasks which were created using the App Engine + # Task Queue API, host is not parsable + # into service, + # version, and + # instance. For example, some tasks + # which were created using the App Engine SDK use a custom domain + # name; custom domains are not parsed by Cloud Tasks. If + # host is not parsable, then + # service, + # version, and + # instance are the empty string. + # Corresponds to the JSON property `service` + # @return [String] + attr_accessor :service + + # App version. + # By default, the task is sent to the version which is the default + # version when the task is attempted. + # For some queues or tasks which were created using the App Engine + # Task Queue API, host is not parsable + # into service, + # version, and + # instance. For example, some tasks + # which were created using the App Engine SDK use a custom domain + # name; custom domains are not parsed by Cloud Tasks. If + # host is not parsable, then + # service, + # version, and + # instance are the empty string. + # Corresponds to the JSON property `version` + # @return [String] + attr_accessor :version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @host = args[:host] if args.key?(:host) + @instance = args[:instance] if args.key?(:instance) + @service = args[:service] if args.key?(:service) + @version = args[:version] if args.key?(:version) + end + end + + # The status of a task attempt. + class Attempt + include Google::Apis::Core::Hashable + + # Output only. The time that this attempt was dispatched. + # `dispatch_time` will be truncated to the nearest microsecond. + # Corresponds to the JSON property `dispatchTime` + # @return [String] + attr_accessor :dispatch_time + + # The `Status` type defines a logical error model that is suitable for different + # programming environments, including REST APIs and RPC APIs. It is used by + # [gRPC](https://github.com/grpc). The error model is designed to be: + # - Simple to use and understand for most users + # - Flexible enough to meet unexpected needs + # # Overview + # The `Status` message contains three pieces of data: error code, error message, + # and error details. The error code should be an enum value of + # google.rpc.Code, but it may accept additional error codes if needed. The + # error message should be a developer-facing English message that helps + # developers *understand* and *resolve* the error. If a localized user-facing + # error message is needed, put the localized message in the error details or + # localize it in the client. The optional error details may contain arbitrary + # information about the error. There is a predefined set of error detail types + # in the package `google.rpc` that can be used for common error conditions. + # # Language mapping + # The `Status` message is the logical representation of the error model, but it + # is not necessarily the actual wire format. When the `Status` message is + # exposed in different client libraries and different wire protocols, it can be + # mapped differently. For example, it will likely be mapped to some exceptions + # in Java, but more likely mapped to some error codes in C. + # # Other uses + # The error model and the `Status` message can be used in a variety of + # environments, either with or without APIs, to provide a + # consistent developer experience across different environments. + # Example uses of this error model include: + # - Partial errors. If a service needs to return partial errors to the client, + # it may embed the `Status` in the normal response to indicate the partial + # errors. + # - Workflow errors. A typical workflow has multiple steps. Each step may + # have a `Status` message for error reporting. + # - Batch operations. If a client uses batch request and batch response, the + # `Status` message should be used directly inside batch response, one for + # each error sub-response. + # - Asynchronous operations. If an API call embeds asynchronous operation + # results in its response, the status of those operations should be + # represented directly using the `Status` message. + # - Logging. If some API errors are stored in logs, the message `Status` could + # be used directly after any stripping needed for security/privacy reasons. + # Corresponds to the JSON property `responseStatus` + # @return [Google::Apis::CloudtasksV2beta3::Status] + attr_accessor :response_status + + # Output only. The time that this attempt response was received. + # `response_time` will be truncated to the nearest microsecond. + # Corresponds to the JSON property `responseTime` + # @return [String] + attr_accessor :response_time + + # Output only. The time that this attempt was scheduled. + # `schedule_time` will be truncated to the nearest microsecond. + # Corresponds to the JSON property `scheduleTime` + # @return [String] + attr_accessor :schedule_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dispatch_time = args[:dispatch_time] if args.key?(:dispatch_time) + @response_status = args[:response_status] if args.key?(:response_status) + @response_time = args[:response_time] if args.key?(:response_time) + @schedule_time = args[:schedule_time] if args.key?(:schedule_time) + end + end + + # Associates `members` with a `role`. + class Binding + include Google::Apis::Core::Hashable + + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + # Corresponds to the JSON property `condition` + # @return [Google::Apis::CloudtasksV2beta3::Expr] + attr_accessor :condition + + # Specifies the identities requesting access for a Cloud Platform resource. + # `members` can have the following values: + # * `allUsers`: A special identifier that represents anyone who is + # on the internet; with or without a Google account. + # * `allAuthenticatedUsers`: A special identifier that represents anyone + # who is authenticated with a Google account or a service account. + # * `user:`emailid``: An email address that represents a specific Google + # account. For example, `alice@gmail.com` . + # * `serviceAccount:`emailid``: An email address that represents a service + # account. For example, `my-other-app@appspot.gserviceaccount.com`. + # * `group:`emailid``: An email address that represents a Google group. + # For example, `admins@example.com`. + # * `domain:`domain``: A Google Apps domain name that represents all the + # users of that domain. For example, `google.com` or `example.com`. + # Corresponds to the JSON property `members` + # @return [Array] + attr_accessor :members + + # Role that is assigned to `members`. + # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + # Corresponds to the JSON property `role` + # @return [String] + attr_accessor :role + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @condition = args[:condition] if args.key?(:condition) + @members = args[:members] if args.key?(:members) + @role = args[:role] if args.key?(:role) + end + end + + # Request message for CreateTask. + class CreateTaskRequest + include Google::Apis::Core::Hashable + + # The response_view specifies which subset of the Task will be + # returned. + # By default response_view is BASIC; not all + # information is retrieved by default because some data, such as + # payloads, might be desirable to return only when needed because + # of its large size or because of the sensitivity of data that it + # contains. + # Authorization for FULL requires + # `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) + # permission on the Task resource. + # Corresponds to the JSON property `responseView` + # @return [String] + attr_accessor :response_view + + # A unit of scheduled work. + # Corresponds to the JSON property `task` + # @return [Google::Apis::CloudtasksV2beta3::Task] + attr_accessor :task + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @response_view = args[:response_view] if args.key?(:response_view) + @task = args[:task] if args.key?(:task) + end + end + + # A generic empty message that you can re-use to avoid defining duplicated + # empty messages in your APIs. A typical example is to use it as the request + # or the response type of an API method. For instance: + # service Foo ` + # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); + # ` + # The JSON representation for `Empty` is empty JSON object ````. + class Empty + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + class Expr + include Google::Apis::Core::Hashable + + # An optional description of the expression. This is a longer text which + # describes the expression, e.g. when hovered over it in a UI. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Textual representation of an expression in + # Common Expression Language syntax. + # The application context of the containing message determines which + # well-known feature set of CEL is supported. + # Corresponds to the JSON property `expression` + # @return [String] + attr_accessor :expression + + # An optional string indicating the location of the expression for error + # reporting, e.g. a file name and a position in the file. + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + + # An optional title for the expression, i.e. a short string describing + # its purpose. This can be used e.g. in UIs which allow to enter the + # expression. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @expression = args[:expression] if args.key?(:expression) + @location = args[:location] if args.key?(:location) + @title = args[:title] if args.key?(:title) + end + end + + # Request message for `GetIamPolicy` method. + class GetIamPolicyRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # The response message for Locations.ListLocations. + class ListLocationsResponse + include Google::Apis::Core::Hashable + + # A list of locations that matches the specified filter in the request. + # Corresponds to the JSON property `locations` + # @return [Array] + attr_accessor :locations + + # The standard List next-page token. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @locations = args[:locations] if args.key?(:locations) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Response message for ListQueues. + class ListQueuesResponse + include Google::Apis::Core::Hashable + + # A token to retrieve next page of results. + # To return the next page of results, call + # ListQueues with this value as the + # page_token. + # If the next_page_token is empty, there are no more results. + # The page token is valid for only 2 hours. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The list of queues. + # Corresponds to the JSON property `queues` + # @return [Array] + attr_accessor :queues + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @queues = args[:queues] if args.key?(:queues) + end + end + + # Response message for listing tasks using ListTasks. + class ListTasksResponse + include Google::Apis::Core::Hashable + + # A token to retrieve next page of results. + # To return the next page of results, call + # ListTasks with this value as the + # page_token. + # If the next_page_token is empty, there are no more results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The list of tasks. + # Corresponds to the JSON property `tasks` + # @return [Array] + attr_accessor :tasks + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @tasks = args[:tasks] if args.key?(:tasks) + end + end + + # A resource that represents Google Cloud Platform location. + class Location + include Google::Apis::Core::Hashable + + # The friendly name for this location, typically a nearby city name. + # For example, "Tokyo". + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Cross-service attributes for the location. For example + # `"cloud.googleapis.com/region": "us-east1"` + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # The canonical id for this location. For example: `"us-east1"`. + # Corresponds to the JSON property `locationId` + # @return [String] + attr_accessor :location_id + + # Service-specific metadata. For example the available capacity at the given + # location. + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata + + # Resource name for the location, which may vary between implementations. + # For example: `"projects/example-project/locations/us-east1"` + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @display_name = args[:display_name] if args.key?(:display_name) + @labels = args[:labels] if args.key?(:labels) + @location_id = args[:location_id] if args.key?(:location_id) + @metadata = args[:metadata] if args.key?(:metadata) + @name = args[:name] if args.key?(:name) + end + end + + # Request message for PauseQueue. + class PauseQueueRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Defines an Identity and Access Management (IAM) policy. It is used to + # specify access control policies for Cloud Platform resources. + # A `Policy` consists of a list of `bindings`. A `binding` binds a list of + # `members` to a `role`, where the members can be user accounts, Google groups, + # Google domains, and service accounts. A `role` is a named list of permissions + # defined by IAM. + # **JSON Example** + # ` + # "bindings": [ + # ` + # "role": "roles/owner", + # "members": [ + # "user:mike@example.com", + # "group:admins@example.com", + # "domain:google.com", + # "serviceAccount:my-other-app@appspot.gserviceaccount.com" + # ] + # `, + # ` + # "role": "roles/viewer", + # "members": ["user:sean@example.com"] + # ` + # ] + # ` + # **YAML Example** + # bindings: + # - members: + # - user:mike@example.com + # - group:admins@example.com + # - domain:google.com + # - serviceAccount:my-other-app@appspot.gserviceaccount.com + # role: roles/owner + # - members: + # - user:sean@example.com + # role: roles/viewer + # For a description of IAM and its features, see the + # [IAM developer's guide](https://cloud.google.com/iam/docs). + class Policy + include Google::Apis::Core::Hashable + + # Associates a list of `members` to a `role`. + # `bindings` with no members will result in an error. + # Corresponds to the JSON property `bindings` + # @return [Array] + attr_accessor :bindings + + # `etag` is used for optimistic concurrency control as a way to help + # prevent simultaneous updates of a policy from overwriting each other. + # It is strongly suggested that systems make use of the `etag` in the + # read-modify-write cycle to perform policy updates in order to avoid race + # conditions: An `etag` is returned in the response to `getIamPolicy`, and + # systems are expected to put that etag in the request to `setIamPolicy` to + # ensure that their change will be applied to the same version of the policy. + # If no `etag` is provided in the call to `setIamPolicy`, then the existing + # policy is overwritten blindly. + # Corresponds to the JSON property `etag` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :etag + + # Deprecated. + # Corresponds to the JSON property `version` + # @return [Fixnum] + attr_accessor :version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bindings = args[:bindings] if args.key?(:bindings) + @etag = args[:etag] if args.key?(:etag) + @version = args[:version] if args.key?(:version) + end + end + + # Request message for PurgeQueue. + class PurgeQueueRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # A queue is a container of related tasks. Queues are configured to manage + # how those tasks are dispatched. Configurable properties include rate limits, + # retry options, queue types, and others. + class Queue + include Google::Apis::Core::Hashable + + # App Engine HTTP queue. + # The task will be delivered to the App Engine application hostname + # specified by its AppEngineHttpQueue and AppEngineHttpRequest. + # The documentation for AppEngineHttpRequest explains how the + # task's host URL is constructed. + # Using AppEngineHttpQueue requires + # [`appengine.applications.get`](https://cloud.google.com/appengine/docs/admin- + # api/access-control) + # Google IAM permission for the project + # and the following scope: + # `https://www.googleapis.com/auth/cloud-platform` + # Corresponds to the JSON property `appEngineHttpQueue` + # @return [Google::Apis::CloudtasksV2beta3::AppEngineHttpQueue] + attr_accessor :app_engine_http_queue + + # Caller-specified and required in CreateQueue, + # after which it becomes output only. + # The queue name. + # The queue name must have the following format: + # `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + # * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), + # hyphens (-), colons (:), or periods (.). + # For more information, see + # [Identifying projects](https://cloud.google.com/resource-manager/docs/ + # creating-managing-projects#identifying_projects) + # * `LOCATION_ID` is the canonical ID for the queue's location. + # The list of available locations can be obtained by calling + # ListLocations. + # For more information, see https://cloud.google.com/about/locations/. + # * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or + # hyphens (-). The maximum length is 100 characters. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Output only. The last time this queue was purged. + # All tasks that were created before this time + # were purged. + # A queue can be purged using PurgeQueue, the + # [App Engine Task Queue SDK, or the Cloud Console](https://cloud.google.com/ + # appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues# + # purging_all_tasks_from_a_queue). + # Purge time will be truncated to the nearest microsecond. Purge + # time will be unset if the queue has never been purged. + # Corresponds to the JSON property `purgeTime` + # @return [String] + attr_accessor :purge_time + + # Rate limits. + # This message determines the maximum rate that tasks can be dispatched by a + # queue, regardless of whether the dispatch is a first task attempt or a retry. + # Note: The debugging command, RunTask, will run a task + # even if the queue has reached its RateLimits. + # Corresponds to the JSON property `rateLimits` + # @return [Google::Apis::CloudtasksV2beta3::RateLimits] + attr_accessor :rate_limits + + # Retry config. + # These settings determine when a failed task attempt is retried. + # Corresponds to the JSON property `retryConfig` + # @return [Google::Apis::CloudtasksV2beta3::RetryConfig] + attr_accessor :retry_config + + # Output only. The state of the queue. + # `state` can only be changed by called + # PauseQueue, + # ResumeQueue, or uploading + # [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/ + # queueref). + # UpdateQueue cannot be used to change `state`. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @app_engine_http_queue = args[:app_engine_http_queue] if args.key?(:app_engine_http_queue) + @name = args[:name] if args.key?(:name) + @purge_time = args[:purge_time] if args.key?(:purge_time) + @rate_limits = args[:rate_limits] if args.key?(:rate_limits) + @retry_config = args[:retry_config] if args.key?(:retry_config) + @state = args[:state] if args.key?(:state) + end + end + + # Rate limits. + # This message determines the maximum rate that tasks can be dispatched by a + # queue, regardless of whether the dispatch is a first task attempt or a retry. + # Note: The debugging command, RunTask, will run a task + # even if the queue has reached its RateLimits. + class RateLimits + include Google::Apis::Core::Hashable + + # Output only. The max burst size. + # Max burst size limits how fast tasks in queue are processed when + # many tasks are in the queue and the rate is high. This field + # allows the queue to have a high rate so processing starts shortly + # after a task is enqueued, but still limits resource usage when + # many tasks are enqueued in a short period of time. + # The [token bucket](https://wikipedia.org/wiki/Token_Bucket) + # algorithm is used to control the rate of task dispatches. Each + # queue has a token bucket that holds tokens, up to the maximum + # specified by `max_burst_size`. Each time a task is dispatched, a + # token is removed from the bucket. Tasks will be dispatched until + # the queue's bucket runs out of tokens. The bucket will be + # continuously refilled with new tokens based on + # max_tasks_dispatched_per_second. + # Cloud Tasks will pick the value of `max_burst_size` based on the + # value of + # max_tasks_dispatched_per_second. + # For App Engine queues that were created or updated using + # `queue.yaml/xml`, `max_burst_size` is equal to + # [bucket_size](https://cloud.google.com/appengine/docs/standard/python/config/ + # queueref#bucket_size). + # Since `max_burst_size` is output only, if + # UpdateQueue is called on a queue + # created by `queue.yaml/xml`, `max_burst_size` will be reset based + # on the value of + # max_tasks_dispatched_per_second, + # regardless of whether + # max_tasks_dispatched_per_second + # is updated. + # Corresponds to the JSON property `maxBurstSize` + # @return [Fixnum] + attr_accessor :max_burst_size + + # The maximum number of concurrent tasks that Cloud Tasks allows + # to be dispatched for this queue. After this threshold has been + # reached, Cloud Tasks stops dispatching tasks until the number of + # concurrent requests decreases. + # If unspecified when the queue is created, Cloud Tasks will pick the + # default. + # The maximum allowed value is 5,000. + # This field has the same meaning as + # [max_concurrent_requests in queue.yaml/xml](https://cloud.google.com/appengine/ + # docs/standard/python/config/queueref#max_concurrent_requests). + # Corresponds to the JSON property `maxConcurrentDispatches` + # @return [Fixnum] + attr_accessor :max_concurrent_dispatches + + # The maximum rate at which tasks are dispatched from this queue. + # If unspecified when the queue is created, Cloud Tasks will pick the + # default. + # * For App Engine queues, the maximum allowed value + # is 500. + # This field has the same meaning as + # [rate in queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/ + # python/config/queueref#rate). + # Corresponds to the JSON property `maxDispatchesPerSecond` + # @return [Float] + attr_accessor :max_dispatches_per_second + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @max_burst_size = args[:max_burst_size] if args.key?(:max_burst_size) + @max_concurrent_dispatches = args[:max_concurrent_dispatches] if args.key?(:max_concurrent_dispatches) + @max_dispatches_per_second = args[:max_dispatches_per_second] if args.key?(:max_dispatches_per_second) + end + end + + # Request message for ResumeQueue. + class ResumeQueueRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Retry config. + # These settings determine when a failed task attempt is retried. + class RetryConfig + include Google::Apis::Core::Hashable + + # The maximum number of attempts for a task. + # Cloud Tasks will attempt the task `max_attempts` times (that + # is, if the first attempt fails, then there will be + # `max_attempts - 1` retries). Must be > 0. + # Corresponds to the JSON property `maxAttempts` + # @return [Fixnum] + attr_accessor :max_attempts + + # A task will be scheduled for retry between + # min_backoff and + # max_backoff duration after it fails, + # if the queue's RetryConfig specifies that the task should be + # retried. + # If unspecified when the queue is created, Cloud Tasks will pick the + # default. + # `max_backoff` will be truncated to the nearest second. + # This field has the same meaning as + # [max_backoff_seconds in queue.yaml/xml](https://cloud.google.com/appengine/ + # docs/standard/python/config/queueref#retry_parameters). + # Corresponds to the JSON property `maxBackoff` + # @return [String] + attr_accessor :max_backoff + + # The time between retries will double `max_doublings` times. + # A task's retry interval starts at + # min_backoff, then doubles + # `max_doublings` times, then increases linearly, and finally + # retries retries at intervals of + # max_backoff up to + # max_attempts times. + # For example, if min_backoff is 10s, + # max_backoff is 300s, and + # `max_doublings` is 3, then the a task will first be retried in + # 10s. The retry interval will double three times, and then + # increase linearly by 2^3 * 10s. Finally, the task will retry at + # intervals of max_backoff until the + # task has been attempted max_attempts + # times. Thus, the requests will retry at 10s, 20s, 40s, 80s, 160s, + # 240s, 300s, 300s, .... + # If unspecified when the queue is created, Cloud Tasks will pick the + # default. + # This field has the same meaning as + # [max_doublings in queue.yaml/xml](https://cloud.google.com/appengine/docs/ + # standard/python/config/queueref#retry_parameters). + # Corresponds to the JSON property `maxDoublings` + # @return [Fixnum] + attr_accessor :max_doublings + + # If positive, `max_retry_duration` specifies the time limit for + # retrying a failed task, measured from when the task was first + # attempted. Once `max_retry_duration` time has passed *and* the + # task has been attempted max_attempts + # times, no further attempts will be made and the task will be + # deleted. + # If zero, then the task age is unlimited. + # If unspecified when the queue is created, Cloud Tasks will pick the + # default. + # `max_retry_duration` will be truncated to the nearest second. + # This field has the same meaning as + # [task_age_limit in queue.yaml/xml](https://cloud.google.com/appengine/docs/ + # standard/python/config/queueref#retry_parameters). + # Corresponds to the JSON property `maxRetryDuration` + # @return [String] + attr_accessor :max_retry_duration + + # A task will be scheduled for retry between + # min_backoff and + # max_backoff duration after it fails, + # if the queue's RetryConfig specifies that the task should be + # retried. + # If unspecified when the queue is created, Cloud Tasks will pick the + # default. + # `min_backoff` will be truncated to the nearest second. + # This field has the same meaning as + # [min_backoff_seconds in queue.yaml/xml](https://cloud.google.com/appengine/ + # docs/standard/python/config/queueref#retry_parameters). + # Corresponds to the JSON property `minBackoff` + # @return [String] + attr_accessor :min_backoff + + # If true, then the number of attempts is unlimited. + # Corresponds to the JSON property `unlimitedAttempts` + # @return [Boolean] + attr_accessor :unlimited_attempts + alias_method :unlimited_attempts?, :unlimited_attempts + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @max_attempts = args[:max_attempts] if args.key?(:max_attempts) + @max_backoff = args[:max_backoff] if args.key?(:max_backoff) + @max_doublings = args[:max_doublings] if args.key?(:max_doublings) + @max_retry_duration = args[:max_retry_duration] if args.key?(:max_retry_duration) + @min_backoff = args[:min_backoff] if args.key?(:min_backoff) + @unlimited_attempts = args[:unlimited_attempts] if args.key?(:unlimited_attempts) + end + end + + # Request message for forcing a task to run now using + # RunTask. + class RunTaskRequest + include Google::Apis::Core::Hashable + + # The response_view specifies which subset of the Task will be + # returned. + # By default response_view is BASIC; not all + # information is retrieved by default because some data, such as + # payloads, might be desirable to return only when needed because + # of its large size or because of the sensitivity of data that it + # contains. + # Authorization for FULL requires + # `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) + # permission on the Task resource. + # Corresponds to the JSON property `responseView` + # @return [String] + attr_accessor :response_view + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @response_view = args[:response_view] if args.key?(:response_view) + end + end + + # Request message for `SetIamPolicy` method. + class SetIamPolicyRequest + include Google::Apis::Core::Hashable + + # Defines an Identity and Access Management (IAM) policy. It is used to + # specify access control policies for Cloud Platform resources. + # A `Policy` consists of a list of `bindings`. A `binding` binds a list of + # `members` to a `role`, where the members can be user accounts, Google groups, + # Google domains, and service accounts. A `role` is a named list of permissions + # defined by IAM. + # **JSON Example** + # ` + # "bindings": [ + # ` + # "role": "roles/owner", + # "members": [ + # "user:mike@example.com", + # "group:admins@example.com", + # "domain:google.com", + # "serviceAccount:my-other-app@appspot.gserviceaccount.com" + # ] + # `, + # ` + # "role": "roles/viewer", + # "members": ["user:sean@example.com"] + # ` + # ] + # ` + # **YAML Example** + # bindings: + # - members: + # - user:mike@example.com + # - group:admins@example.com + # - domain:google.com + # - serviceAccount:my-other-app@appspot.gserviceaccount.com + # role: roles/owner + # - members: + # - user:sean@example.com + # role: roles/viewer + # For a description of IAM and its features, see the + # [IAM developer's guide](https://cloud.google.com/iam/docs). + # Corresponds to the JSON property `policy` + # @return [Google::Apis::CloudtasksV2beta3::Policy] + attr_accessor :policy + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @policy = args[:policy] if args.key?(:policy) + end + end + + # The `Status` type defines a logical error model that is suitable for different + # programming environments, including REST APIs and RPC APIs. It is used by + # [gRPC](https://github.com/grpc). The error model is designed to be: + # - Simple to use and understand for most users + # - Flexible enough to meet unexpected needs + # # Overview + # The `Status` message contains three pieces of data: error code, error message, + # and error details. The error code should be an enum value of + # google.rpc.Code, but it may accept additional error codes if needed. The + # error message should be a developer-facing English message that helps + # developers *understand* and *resolve* the error. If a localized user-facing + # error message is needed, put the localized message in the error details or + # localize it in the client. The optional error details may contain arbitrary + # information about the error. There is a predefined set of error detail types + # in the package `google.rpc` that can be used for common error conditions. + # # Language mapping + # The `Status` message is the logical representation of the error model, but it + # is not necessarily the actual wire format. When the `Status` message is + # exposed in different client libraries and different wire protocols, it can be + # mapped differently. For example, it will likely be mapped to some exceptions + # in Java, but more likely mapped to some error codes in C. + # # Other uses + # The error model and the `Status` message can be used in a variety of + # environments, either with or without APIs, to provide a + # consistent developer experience across different environments. + # Example uses of this error model include: + # - Partial errors. If a service needs to return partial errors to the client, + # it may embed the `Status` in the normal response to indicate the partial + # errors. + # - Workflow errors. A typical workflow has multiple steps. Each step may + # have a `Status` message for error reporting. + # - Batch operations. If a client uses batch request and batch response, the + # `Status` message should be used directly inside batch response, one for + # each error sub-response. + # - Asynchronous operations. If an API call embeds asynchronous operation + # results in its response, the status of those operations should be + # represented directly using the `Status` message. + # - Logging. If some API errors are stored in logs, the message `Status` could + # be used directly after any stripping needed for security/privacy reasons. + class Status + include Google::Apis::Core::Hashable + + # The status code, which should be an enum value of google.rpc.Code. + # Corresponds to the JSON property `code` + # @return [Fixnum] + attr_accessor :code + + # A list of messages that carry the error details. There is a common set of + # message types for APIs to use. + # Corresponds to the JSON property `details` + # @return [Array>] + attr_accessor :details + + # A developer-facing error message, which should be in English. Any + # user-facing error message should be localized and sent in the + # google.rpc.Status.details field, or localized by the client. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @details = args[:details] if args.key?(:details) + @message = args[:message] if args.key?(:message) + end + end + + # A unit of scheduled work. + class Task + include Google::Apis::Core::Hashable + + # App Engine HTTP request. + # The message defines the HTTP request that is sent to an App Engine app when + # the task is dispatched. + # This proto can only be used for tasks in a queue which has + # app_engine_http_queue set. + # Using AppEngineHttpRequest requires + # [`appengine.applications.get`](https://cloud.google.com/appengine/docs/admin- + # api/access-control) + # Google IAM permission for the project + # and the following scope: + # `https://www.googleapis.com/auth/cloud-platform` + # The task will be delivered to the App Engine app which belongs to the same + # project as the queue. For more information, see + # [How Requests are + # Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests- + # are-routed) + # and how routing is affected by + # [dispatch + # files](https://cloud.google.com/appengine/docs/python/config/dispatchref). + # The AppEngineRouting used to construct the URL that the task is + # delivered to can be set at the queue-level or task-level: + # * If set, + # app_engine_routing_override + # is used for all tasks in the queue, no matter what the setting + # is for the + # task-level app_engine_routing. + # The `url` that the task will be sent to is: + # * `url =` host `+` + # relative_uri + # The task attempt has succeeded if the app's request handler returns + # an HTTP response code in the range [`200` - `299`]. `503` is + # considered an App Engine system error instead of an application + # error. Requests returning error `503` will be retried regardless of + # retry configuration and not counted against retry counts. + # Any other response code or a failure to receive a response before the + # deadline is a failed attempt. + # Corresponds to the JSON property `appEngineHttpRequest` + # @return [Google::Apis::CloudtasksV2beta3::AppEngineHttpRequest] + attr_accessor :app_engine_http_request + + # Output only. The time that the task was created. + # `create_time` will be truncated to the nearest second. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Output only. The number of attempts dispatched. + # This count includes tasks which have been dispatched but haven't + # received a response. + # Corresponds to the JSON property `dispatchCount` + # @return [Fixnum] + attr_accessor :dispatch_count + + # The status of a task attempt. + # Corresponds to the JSON property `firstAttempt` + # @return [Google::Apis::CloudtasksV2beta3::Attempt] + attr_accessor :first_attempt + + # The status of a task attempt. + # Corresponds to the JSON property `lastAttempt` + # @return [Google::Apis::CloudtasksV2beta3::Attempt] + attr_accessor :last_attempt + + # Optionally caller-specified in CreateTask. + # The task name. + # The task name must have the following format: + # `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` + # * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), + # hyphens (-), colons (:), or periods (.). + # For more information, see + # [Identifying projects](https://cloud.google.com/resource-manager/docs/ + # creating-managing-projects#identifying_projects) + # * `LOCATION_ID` is the canonical ID for the task's location. + # The list of available locations can be obtained by calling + # ListLocations. + # For more information, see https://cloud.google.com/about/locations/. + # * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or + # hyphens (-). The maximum length is 100 characters. + # * `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]), + # hyphens (-), or underscores (_). The maximum length is 500 characters. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Output only. The number of attempts which have received a response. + # Corresponds to the JSON property `responseCount` + # @return [Fixnum] + attr_accessor :response_count + + # The time when the task is scheduled to be attempted. + # For App Engine queues, this is when the task will be attempted or retried. + # `schedule_time` will be truncated to the nearest microsecond. + # Corresponds to the JSON property `scheduleTime` + # @return [String] + attr_accessor :schedule_time + + # Output only. The view specifies which subset of the Task has + # been returned. + # Corresponds to the JSON property `view` + # @return [String] + attr_accessor :view + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @app_engine_http_request = args[:app_engine_http_request] if args.key?(:app_engine_http_request) + @create_time = args[:create_time] if args.key?(:create_time) + @dispatch_count = args[:dispatch_count] if args.key?(:dispatch_count) + @first_attempt = args[:first_attempt] if args.key?(:first_attempt) + @last_attempt = args[:last_attempt] if args.key?(:last_attempt) + @name = args[:name] if args.key?(:name) + @response_count = args[:response_count] if args.key?(:response_count) + @schedule_time = args[:schedule_time] if args.key?(:schedule_time) + @view = args[:view] if args.key?(:view) + end + end + + # Request message for `TestIamPermissions` method. + class TestIamPermissionsRequest + include Google::Apis::Core::Hashable + + # The set of permissions to check for the `resource`. Permissions with + # wildcards (such as '*' or 'storage.*') are not allowed. For more + # information see + # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + # Corresponds to the JSON property `permissions` + # @return [Array] + attr_accessor :permissions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @permissions = args[:permissions] if args.key?(:permissions) + end + end + + # Response message for `TestIamPermissions` method. + class TestIamPermissionsResponse + include Google::Apis::Core::Hashable + + # A subset of `TestPermissionsRequest.permissions` that the caller is + # allowed. + # Corresponds to the JSON property `permissions` + # @return [Array] + attr_accessor :permissions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @permissions = args[:permissions] if args.key?(:permissions) + end + end + end + end +end diff --git a/generated/google/apis/cloudtasks_v2beta3/representations.rb b/generated/google/apis/cloudtasks_v2beta3/representations.rb new file mode 100644 index 000000000..9f6b4d5b6 --- /dev/null +++ b/generated/google/apis/cloudtasks_v2beta3/representations.rb @@ -0,0 +1,422 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module CloudtasksV2beta3 + + class AppEngineHttpQueue + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AppEngineHttpRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AppEngineRouting + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Attempt + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Binding + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CreateTaskRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Empty + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Expr + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GetIamPolicyRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListLocationsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListQueuesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListTasksResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Location + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PauseQueueRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Policy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PurgeQueueRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Queue + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RateLimits + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ResumeQueueRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RetryConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RunTaskRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SetIamPolicyRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Status + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Task + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TestIamPermissionsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TestIamPermissionsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AppEngineHttpQueue + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :app_engine_routing_override, as: 'appEngineRoutingOverride', class: Google::Apis::CloudtasksV2beta3::AppEngineRouting, decorator: Google::Apis::CloudtasksV2beta3::AppEngineRouting::Representation + + end + end + + class AppEngineHttpRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :app_engine_routing, as: 'appEngineRouting', class: Google::Apis::CloudtasksV2beta3::AppEngineRouting, decorator: Google::Apis::CloudtasksV2beta3::AppEngineRouting::Representation + + property :body, :base64 => true, as: 'body' + hash :headers, as: 'headers' + property :http_method, as: 'httpMethod' + property :relative_uri, as: 'relativeUri' + end + end + + class AppEngineRouting + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :host, as: 'host' + property :instance, as: 'instance' + property :service, as: 'service' + property :version, as: 'version' + end + end + + class Attempt + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :dispatch_time, as: 'dispatchTime' + property :response_status, as: 'responseStatus', class: Google::Apis::CloudtasksV2beta3::Status, decorator: Google::Apis::CloudtasksV2beta3::Status::Representation + + property :response_time, as: 'responseTime' + property :schedule_time, as: 'scheduleTime' + end + end + + class Binding + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :condition, as: 'condition', class: Google::Apis::CloudtasksV2beta3::Expr, decorator: Google::Apis::CloudtasksV2beta3::Expr::Representation + + collection :members, as: 'members' + property :role, as: 'role' + end + end + + class CreateTaskRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :response_view, as: 'responseView' + property :task, as: 'task', class: Google::Apis::CloudtasksV2beta3::Task, decorator: Google::Apis::CloudtasksV2beta3::Task::Representation + + end + end + + class Empty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class Expr + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :expression, as: 'expression' + property :location, as: 'location' + property :title, as: 'title' + end + end + + class GetIamPolicyRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class ListLocationsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :locations, as: 'locations', class: Google::Apis::CloudtasksV2beta3::Location, decorator: Google::Apis::CloudtasksV2beta3::Location::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class ListQueuesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :queues, as: 'queues', class: Google::Apis::CloudtasksV2beta3::Queue, decorator: Google::Apis::CloudtasksV2beta3::Queue::Representation + + end + end + + class ListTasksResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :tasks, as: 'tasks', class: Google::Apis::CloudtasksV2beta3::Task, decorator: Google::Apis::CloudtasksV2beta3::Task::Representation + + end + end + + class Location + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :display_name, as: 'displayName' + hash :labels, as: 'labels' + property :location_id, as: 'locationId' + hash :metadata, as: 'metadata' + property :name, as: 'name' + end + end + + class PauseQueueRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class Policy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :bindings, as: 'bindings', class: Google::Apis::CloudtasksV2beta3::Binding, decorator: Google::Apis::CloudtasksV2beta3::Binding::Representation + + property :etag, :base64 => true, as: 'etag' + property :version, as: 'version' + end + end + + class PurgeQueueRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class Queue + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :app_engine_http_queue, as: 'appEngineHttpQueue', class: Google::Apis::CloudtasksV2beta3::AppEngineHttpQueue, decorator: Google::Apis::CloudtasksV2beta3::AppEngineHttpQueue::Representation + + property :name, as: 'name' + property :purge_time, as: 'purgeTime' + property :rate_limits, as: 'rateLimits', class: Google::Apis::CloudtasksV2beta3::RateLimits, decorator: Google::Apis::CloudtasksV2beta3::RateLimits::Representation + + property :retry_config, as: 'retryConfig', class: Google::Apis::CloudtasksV2beta3::RetryConfig, decorator: Google::Apis::CloudtasksV2beta3::RetryConfig::Representation + + property :state, as: 'state' + end + end + + class RateLimits + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :max_burst_size, as: 'maxBurstSize' + property :max_concurrent_dispatches, as: 'maxConcurrentDispatches' + property :max_dispatches_per_second, as: 'maxDispatchesPerSecond' + end + end + + class ResumeQueueRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class RetryConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :max_attempts, as: 'maxAttempts' + property :max_backoff, as: 'maxBackoff' + property :max_doublings, as: 'maxDoublings' + property :max_retry_duration, as: 'maxRetryDuration' + property :min_backoff, as: 'minBackoff' + property :unlimited_attempts, as: 'unlimitedAttempts' + end + end + + class RunTaskRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :response_view, as: 'responseView' + end + end + + class SetIamPolicyRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :policy, as: 'policy', class: Google::Apis::CloudtasksV2beta3::Policy, decorator: Google::Apis::CloudtasksV2beta3::Policy::Representation + + end + end + + class Status + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :details, as: 'details' + property :message, as: 'message' + end + end + + class Task + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :app_engine_http_request, as: 'appEngineHttpRequest', class: Google::Apis::CloudtasksV2beta3::AppEngineHttpRequest, decorator: Google::Apis::CloudtasksV2beta3::AppEngineHttpRequest::Representation + + property :create_time, as: 'createTime' + property :dispatch_count, as: 'dispatchCount' + property :first_attempt, as: 'firstAttempt', class: Google::Apis::CloudtasksV2beta3::Attempt, decorator: Google::Apis::CloudtasksV2beta3::Attempt::Representation + + property :last_attempt, as: 'lastAttempt', class: Google::Apis::CloudtasksV2beta3::Attempt, decorator: Google::Apis::CloudtasksV2beta3::Attempt::Representation + + property :name, as: 'name' + property :response_count, as: 'responseCount' + property :schedule_time, as: 'scheduleTime' + property :view, as: 'view' + end + end + + class TestIamPermissionsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :permissions, as: 'permissions' + end + end + + class TestIamPermissionsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :permissions, as: 'permissions' + end + end + end + end +end diff --git a/generated/google/apis/cloudtasks_v2beta3/service.rb b/generated/google/apis/cloudtasks_v2beta3/service.rb new file mode 100644 index 000000000..cda13b8bc --- /dev/null +++ b/generated/google/apis/cloudtasks_v2beta3/service.rb @@ -0,0 +1,855 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module CloudtasksV2beta3 + # Cloud Tasks API + # + # Manages the execution of large numbers of distributed requests. + # + # @example + # require 'google/apis/cloudtasks_v2beta3' + # + # Cloudtasks = Google::Apis::CloudtasksV2beta3 # Alias the module + # service = Cloudtasks::CloudTasksService.new + # + # @see https://cloud.google.com/tasks/ + class CloudTasksService < Google::Apis::Core::BaseService + # @return [String] + # API key. Your API key identifies your project and provides you with API access, + # quota, and reports. Required unless you provide an OAuth 2.0 token. + attr_accessor :key + + # @return [String] + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + attr_accessor :quota_user + + def initialize + super('https://cloudtasks.googleapis.com/', '') + @batch_path = 'batch' + end + + # Gets information about a location. + # @param [String] name + # Resource name for the location. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudtasksV2beta3::Location] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudtasksV2beta3::Location] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta3/{+name}', options) + command.response_representation = Google::Apis::CloudtasksV2beta3::Location::Representation + command.response_class = Google::Apis::CloudtasksV2beta3::Location + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists information about the supported locations for this service. + # @param [String] name + # The resource that owns the locations collection, if applicable. + # @param [String] filter + # The standard list filter. + # @param [Fixnum] page_size + # The standard list page size. + # @param [String] page_token + # The standard list page token. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudtasksV2beta3::ListLocationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudtasksV2beta3::ListLocationsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta3/{+name}/locations', options) + command.response_representation = Google::Apis::CloudtasksV2beta3::ListLocationsResponse::Representation + command.response_class = Google::Apis::CloudtasksV2beta3::ListLocationsResponse + command.params['name'] = name unless name.nil? + command.query['filter'] = filter unless filter.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates a queue. + # Queues created with this method allow tasks to live for a maximum of 31 + # days. After a task is 31 days old, the task will be deleted regardless of + # whether + # it was dispatched or not. + # WARNING: Using this method may have unintended side effects if you are + # using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. + # Read + # [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/ + # docs/queue-yaml) + # before using this method. + # @param [String] parent + # Required. + # The location name in which the queue will be created. + # For example: `projects/PROJECT_ID/locations/LOCATION_ID` + # The list of allowed locations can be obtained by calling Cloud + # Tasks' implementation of + # ListLocations. + # @param [Google::Apis::CloudtasksV2beta3::Queue] queue_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudtasksV2beta3::Queue] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudtasksV2beta3::Queue] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_project_location_queue(parent, queue_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta3/{+parent}/queues', options) + command.request_representation = Google::Apis::CloudtasksV2beta3::Queue::Representation + command.request_object = queue_object + command.response_representation = Google::Apis::CloudtasksV2beta3::Queue::Representation + command.response_class = Google::Apis::CloudtasksV2beta3::Queue + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a queue. + # This command will delete the queue even if it has tasks in it. + # Note: If you delete a queue, a queue with the same name can't be created + # for 7 days. + # WARNING: Using this method may have unintended side effects if you are + # using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. + # Read + # [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/ + # docs/queue-yaml) + # before using this method. + # @param [String] name + # Required. + # The queue name. For example: + # `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudtasksV2beta3::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudtasksV2beta3::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_location_queue(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v2beta3/{+name}', options) + command.response_representation = Google::Apis::CloudtasksV2beta3::Empty::Representation + command.response_class = Google::Apis::CloudtasksV2beta3::Empty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets a queue. + # @param [String] name + # Required. + # The resource name of the queue. For example: + # `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudtasksV2beta3::Queue] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudtasksV2beta3::Queue] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_queue(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta3/{+name}', options) + command.response_representation = Google::Apis::CloudtasksV2beta3::Queue::Representation + command.response_class = Google::Apis::CloudtasksV2beta3::Queue + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the access control policy for a Queue. + # Returns an empty policy if the resource exists and does not have a policy + # set. + # Authorization requires the following + # [Google IAM](https://cloud.google.com/iam) permission on the specified + # resource parent: + # * `cloudtasks.queues.getIamPolicy` + # @param [String] resource + # REQUIRED: The resource for which the policy is being requested. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::CloudtasksV2beta3::GetIamPolicyRequest] get_iam_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudtasksV2beta3::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudtasksV2beta3::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_queue_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta3/{+resource}:getIamPolicy', options) + command.request_representation = Google::Apis::CloudtasksV2beta3::GetIamPolicyRequest::Representation + command.request_object = get_iam_policy_request_object + command.response_representation = Google::Apis::CloudtasksV2beta3::Policy::Representation + command.response_class = Google::Apis::CloudtasksV2beta3::Policy + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists queues. + # Queues are returned in lexicographical order. + # @param [String] parent + # Required. + # The location name. + # For example: `projects/PROJECT_ID/locations/LOCATION_ID` + # @param [String] filter + # `filter` can be used to specify a subset of queues. Any Queue + # field can be used as a filter and several operators as supported. + # For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as + # described in + # [Stackdriver's Advanced Logs Filters](https://cloud.google.com/logging/docs/ + # view/advanced_filters). + # Sample filter "state: PAUSED". + # Note that using filters might cause fewer queues than the + # requested page_size to be returned. + # @param [Fixnum] page_size + # Requested page size. + # The maximum page size is 9800. If unspecified, the page size will + # be the maximum. Fewer queues than requested might be returned, + # even if more queues exist; use the + # next_page_token in the + # response to determine if more queues exist. + # @param [String] page_token + # A token identifying the page of results to return. + # To request the first page results, page_token must be empty. To + # request the next page of results, page_token must be the value of + # next_page_token returned + # from the previous call to ListQueues + # method. It is an error to switch the value of the + # filter while iterating through pages. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudtasksV2beta3::ListQueuesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudtasksV2beta3::ListQueuesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_location_queues(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta3/{+parent}/queues', options) + command.response_representation = Google::Apis::CloudtasksV2beta3::ListQueuesResponse::Representation + command.response_class = Google::Apis::CloudtasksV2beta3::ListQueuesResponse + command.params['parent'] = parent unless parent.nil? + command.query['filter'] = filter unless filter.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates a queue. + # This method creates the queue if it does not exist and updates + # the queue if it does exist. + # Queues created with this method allow tasks to live for a maximum of 31 + # days. After a task is 31 days old, the task will be deleted regardless of + # whether + # it was dispatched or not. + # WARNING: Using this method may have unintended side effects if you are + # using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. + # Read + # [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/ + # docs/queue-yaml) + # before using this method. + # @param [String] name + # Caller-specified and required in CreateQueue, + # after which it becomes output only. + # The queue name. + # The queue name must have the following format: + # `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + # * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), + # hyphens (-), colons (:), or periods (.). + # For more information, see + # [Identifying projects](https://cloud.google.com/resource-manager/docs/ + # creating-managing-projects#identifying_projects) + # * `LOCATION_ID` is the canonical ID for the queue's location. + # The list of available locations can be obtained by calling + # ListLocations. + # For more information, see https://cloud.google.com/about/locations/. + # * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or + # hyphens (-). The maximum length is 100 characters. + # @param [Google::Apis::CloudtasksV2beta3::Queue] queue_object + # @param [String] update_mask + # A mask used to specify which fields of the queue are being updated. + # If empty, then all fields will be updated. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudtasksV2beta3::Queue] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudtasksV2beta3::Queue] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_project_location_queue(name, queue_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v2beta3/{+name}', options) + command.request_representation = Google::Apis::CloudtasksV2beta3::Queue::Representation + command.request_object = queue_object + command.response_representation = Google::Apis::CloudtasksV2beta3::Queue::Representation + command.response_class = Google::Apis::CloudtasksV2beta3::Queue + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Pauses the queue. + # If a queue is paused then the system will stop dispatching tasks + # until the queue is resumed via + # ResumeQueue. Tasks can still be added + # when the queue is paused. A queue is paused if its + # state is PAUSED. + # @param [String] name + # Required. + # The queue name. For example: + # `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` + # @param [Google::Apis::CloudtasksV2beta3::PauseQueueRequest] pause_queue_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudtasksV2beta3::Queue] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudtasksV2beta3::Queue] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def pause_queue(name, pause_queue_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta3/{+name}:pause', options) + command.request_representation = Google::Apis::CloudtasksV2beta3::PauseQueueRequest::Representation + command.request_object = pause_queue_request_object + command.response_representation = Google::Apis::CloudtasksV2beta3::Queue::Representation + command.response_class = Google::Apis::CloudtasksV2beta3::Queue + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Purges a queue by deleting all of its tasks. + # All tasks created before this method is called are permanently deleted. + # Purge operations can take up to one minute to take effect. Tasks + # might be dispatched before the purge takes effect. A purge is irreversible. + # @param [String] name + # Required. + # The queue name. For example: + # `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` + # @param [Google::Apis::CloudtasksV2beta3::PurgeQueueRequest] purge_queue_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudtasksV2beta3::Queue] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudtasksV2beta3::Queue] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def purge_queue(name, purge_queue_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta3/{+name}:purge', options) + command.request_representation = Google::Apis::CloudtasksV2beta3::PurgeQueueRequest::Representation + command.request_object = purge_queue_request_object + command.response_representation = Google::Apis::CloudtasksV2beta3::Queue::Representation + command.response_class = Google::Apis::CloudtasksV2beta3::Queue + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Resume a queue. + # This method resumes a queue after it has been + # PAUSED or + # DISABLED. The state of a queue is stored + # in the queue's state; after calling this method it + # will be set to RUNNING. + # WARNING: Resuming many high-QPS queues at the same time can + # lead to target overloading. If you are resuming high-QPS + # queues, follow the 500/50/5 pattern described in + # [Managing Cloud Tasks Scaling Risks](https://cloud.google.com/tasks/docs/ + # manage-cloud-task-scaling). + # @param [String] name + # Required. + # The queue name. For example: + # `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` + # @param [Google::Apis::CloudtasksV2beta3::ResumeQueueRequest] resume_queue_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudtasksV2beta3::Queue] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudtasksV2beta3::Queue] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def resume_queue(name, resume_queue_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta3/{+name}:resume', options) + command.request_representation = Google::Apis::CloudtasksV2beta3::ResumeQueueRequest::Representation + command.request_object = resume_queue_request_object + command.response_representation = Google::Apis::CloudtasksV2beta3::Queue::Representation + command.response_class = Google::Apis::CloudtasksV2beta3::Queue + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Sets the access control policy for a Queue. Replaces any existing + # policy. + # Note: The Cloud Console does not check queue-level IAM permissions yet. + # Project-level permissions are required to use the Cloud Console. + # Authorization requires the following + # [Google IAM](https://cloud.google.com/iam) permission on the specified + # resource parent: + # * `cloudtasks.queues.setIamPolicy` + # @param [String] resource + # REQUIRED: The resource for which the policy is being specified. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::CloudtasksV2beta3::SetIamPolicyRequest] set_iam_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudtasksV2beta3::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudtasksV2beta3::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def set_queue_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta3/{+resource}:setIamPolicy', options) + command.request_representation = Google::Apis::CloudtasksV2beta3::SetIamPolicyRequest::Representation + command.request_object = set_iam_policy_request_object + command.response_representation = Google::Apis::CloudtasksV2beta3::Policy::Representation + command.response_class = Google::Apis::CloudtasksV2beta3::Policy + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns permissions that a caller has on a Queue. + # If the resource does not exist, this will return an empty set of + # permissions, not a NOT_FOUND error. + # Note: This operation is designed to be used for building permission-aware + # UIs and command-line tools, not for authorization checking. This operation + # may "fail open" without warning. + # @param [String] resource + # REQUIRED: The resource for which the policy detail is being requested. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::CloudtasksV2beta3::TestIamPermissionsRequest] test_iam_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudtasksV2beta3::TestIamPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudtasksV2beta3::TestIamPermissionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def test_queue_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta3/{+resource}:testIamPermissions', options) + command.request_representation = Google::Apis::CloudtasksV2beta3::TestIamPermissionsRequest::Representation + command.request_object = test_iam_permissions_request_object + command.response_representation = Google::Apis::CloudtasksV2beta3::TestIamPermissionsResponse::Representation + command.response_class = Google::Apis::CloudtasksV2beta3::TestIamPermissionsResponse + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates a task and adds it to a queue. + # Tasks cannot be updated after creation; there is no UpdateTask command. + # * For App Engine queues, the maximum task size is + # 100KB. + # @param [String] parent + # Required. + # The queue name. For example: + # `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + # The queue must already exist. + # @param [Google::Apis::CloudtasksV2beta3::CreateTaskRequest] create_task_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudtasksV2beta3::Task] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudtasksV2beta3::Task] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_task(parent, create_task_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta3/{+parent}/tasks', options) + command.request_representation = Google::Apis::CloudtasksV2beta3::CreateTaskRequest::Representation + command.request_object = create_task_request_object + command.response_representation = Google::Apis::CloudtasksV2beta3::Task::Representation + command.response_class = Google::Apis::CloudtasksV2beta3::Task + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a task. + # A task can be deleted if it is scheduled or dispatched. A task + # cannot be deleted if it has executed successfully or permanently + # failed. + # @param [String] name + # Required. + # The task name. For example: + # `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudtasksV2beta3::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudtasksV2beta3::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_location_queue_task(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v2beta3/{+name}', options) + command.response_representation = Google::Apis::CloudtasksV2beta3::Empty::Representation + command.response_class = Google::Apis::CloudtasksV2beta3::Empty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets a task. + # @param [String] name + # Required. + # The task name. For example: + # `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` + # @param [String] response_view + # The response_view specifies which subset of the Task will be + # returned. + # By default response_view is BASIC; not all + # information is retrieved by default because some data, such as + # payloads, might be desirable to return only when needed because + # of its large size or because of the sensitivity of data that it + # contains. + # Authorization for FULL requires + # `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) + # permission on the Task resource. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudtasksV2beta3::Task] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudtasksV2beta3::Task] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_queue_task(name, response_view: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta3/{+name}', options) + command.response_representation = Google::Apis::CloudtasksV2beta3::Task::Representation + command.response_class = Google::Apis::CloudtasksV2beta3::Task + command.params['name'] = name unless name.nil? + command.query['responseView'] = response_view unless response_view.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists the tasks in a queue. + # By default, only the BASIC view is retrieved + # due to performance considerations; + # response_view controls the + # subset of information which is returned. + # The tasks may be returned in any order. The ordering may change at any + # time. + # @param [String] parent + # Required. + # The queue name. For example: + # `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + # @param [Fixnum] page_size + # Requested page size. Fewer tasks than requested might be returned. + # The maximum page size is 1000. If unspecified, the page size will + # be the maximum. Fewer tasks than requested might be returned, + # even if more tasks exist; use + # next_page_token in the + # response to determine if more tasks exist. + # @param [String] page_token + # A token identifying the page of results to return. + # To request the first page results, page_token must be empty. To + # request the next page of results, page_token must be the value of + # next_page_token returned + # from the previous call to ListTasks + # method. + # The page token is valid for only 2 hours. + # @param [String] response_view + # The response_view specifies which subset of the Task will be + # returned. + # By default response_view is BASIC; not all + # information is retrieved by default because some data, such as + # payloads, might be desirable to return only when needed because + # of its large size or because of the sensitivity of data that it + # contains. + # Authorization for FULL requires + # `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) + # permission on the Task resource. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudtasksV2beta3::ListTasksResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudtasksV2beta3::ListTasksResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_location_queue_tasks(parent, page_size: nil, page_token: nil, response_view: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta3/{+parent}/tasks', options) + command.response_representation = Google::Apis::CloudtasksV2beta3::ListTasksResponse::Representation + command.response_class = Google::Apis::CloudtasksV2beta3::ListTasksResponse + command.params['parent'] = parent unless parent.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['responseView'] = response_view unless response_view.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Forces a task to run now. + # When this method is called, Cloud Tasks will dispatch the task, even if + # the task is already running, the queue has reached its RateLimits or + # is PAUSED. + # This command is meant to be used for manual debugging. For + # example, RunTask can be used to retry a failed + # task after a fix has been made or to manually force a task to be + # dispatched now. + # The dispatched task is returned. That is, the task that is returned + # contains the status after the task is dispatched but + # before the task is received by its target. + # If Cloud Tasks receives a successful response from the task's + # target, then the task will be deleted; otherwise the task's + # schedule_time will be reset to the time that + # RunTask was called plus the retry delay specified + # in the queue's RetryConfig. + # RunTask returns + # NOT_FOUND when it is called on a + # task that has already succeeded or permanently failed. + # @param [String] name + # Required. + # The task name. For example: + # `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` + # @param [Google::Apis::CloudtasksV2beta3::RunTaskRequest] run_task_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudtasksV2beta3::Task] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudtasksV2beta3::Task] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def run_task(name, run_task_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta3/{+name}:run', options) + command.request_representation = Google::Apis::CloudtasksV2beta3::RunTaskRequest::Representation + command.request_object = run_task_request_object + command.response_representation = Google::Apis::CloudtasksV2beta3::Task::Representation + command.response_class = Google::Apis::CloudtasksV2beta3::Task + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + protected + + def apply_command_defaults(command) + command.query['key'] = key unless key.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + end + end + end + end +end diff --git a/generated/google/apis/speech_v1.rb b/generated/google/apis/speech_v1.rb index 49df07c6a..53eec0e3a 100644 --- a/generated/google/apis/speech_v1.rb +++ b/generated/google/apis/speech_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/speech-to-text/docs/quickstart-protocol module SpeechV1 VERSION = 'V1' - REVISION = '20180629' + REVISION = '20180823' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/speech_v1/classes.rb b/generated/google/apis/speech_v1/classes.rb index c5df0c047..e27cbed8d 100644 --- a/generated/google/apis/speech_v1/classes.rb +++ b/generated/google/apis/speech_v1/classes.rb @@ -30,7 +30,7 @@ module Google # Contains audio data in the encoding specified in the `RecognitionConfig`. # Either `content` or `uri` must be supplied. Supplying both or neither # returns google.rpc.Code.INVALID_ARGUMENT. See - # [audio limits](https://cloud.google.com/speech/limits#content). + # [content limits](/speech-to-text/quotas#content). # Corresponds to the JSON property `audio` # @return [Google::Apis::SpeechV1::RecognitionAudio] attr_accessor :audio @@ -152,7 +152,7 @@ module Google # Contains audio data in the encoding specified in the `RecognitionConfig`. # Either `content` or `uri` must be supplied. Supplying both or neither # returns google.rpc.Code.INVALID_ARGUMENT. See - # [audio limits](https://cloud.google.com/speech/limits#content). + # [content limits](/speech-to-text/quotas#content). class RecognitionAudio include Google::Apis::Core::Hashable @@ -165,7 +165,8 @@ module Google attr_accessor :content # URI that points to a file that contains audio data bytes as specified in - # `RecognitionConfig`. Currently, only Google Cloud Storage URIs are + # `RecognitionConfig`. The file must not be compressed (for example, gzip). + # Currently, only Google Cloud Storage URIs are # supported, which must be specified in the following format: # `gs://bucket_name/object_name` (other URI formats return # google.rpc.Code.INVALID_ARGUMENT). For more information, see @@ -209,7 +210,7 @@ module Google # *Required* The language of the supplied audio as a # [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. # Example: "en-US". - # See [Language Support](https://cloud.google.com/speech/docs/languages) + # See [Language Support](/speech-to-text/docs/languages) # for a list of the currently supported language codes. # Corresponds to the JSON property `languageCode` # @return [String] @@ -245,7 +246,9 @@ module Google # @return [Fixnum] attr_accessor :sample_rate_hertz - # *Optional* A means to provide context to assist the speech recognition. + # *Optional* array of SpeechContext. + # A means to provide context to assist the speech recognition. For more + # information, see [Phrase Hints](/speech-to-text/docs/basics#phrase-hints). # Corresponds to the JSON property `speechContexts` # @return [Array] attr_accessor :speech_contexts @@ -273,7 +276,7 @@ module Google # Contains audio data in the encoding specified in the `RecognitionConfig`. # Either `content` or `uri` must be supplied. Supplying both or neither # returns google.rpc.Code.INVALID_ARGUMENT. See - # [audio limits](https://cloud.google.com/speech/limits#content). + # [content limits](/speech-to-text/quotas#content). # Corresponds to the JSON property `audio` # @return [Google::Apis::SpeechV1::RecognitionAudio] attr_accessor :audio @@ -327,7 +330,7 @@ module Google # to improve the accuracy for specific words and phrases, for example, if # specific commands are typically spoken by the user. This can also be used # to add additional words to the vocabulary of the recognizer. See - # [usage limits](https://cloud.google.com/speech/limits#content). + # [usage limits](/speech-to-text/quotas#content). # Corresponds to the JSON property `phrases` # @return [Array] attr_accessor :phrases @@ -363,7 +366,7 @@ module Google attr_accessor :transcript # Output only. A list of word-specific information for each recognized word. - # Note: When enable_speaker_diarization is true, you will see all the words + # Note: When `enable_speaker_diarization` is true, you will see all the words # from the beginning of the audio. # Corresponds to the JSON property `words` # @return [Array] diff --git a/generated/google/apis/toolresults_v1beta3.rb b/generated/google/apis/toolresults_v1beta3.rb index 4ab1e56c3..ab8ec9eca 100644 --- a/generated/google/apis/toolresults_v1beta3.rb +++ b/generated/google/apis/toolresults_v1beta3.rb @@ -25,7 +25,7 @@ module Google # @see https://firebase.google.com/docs/test-lab/ module ToolresultsV1beta3 VERSION = 'V1beta3' - REVISION = '20180820' + REVISION = '20180827' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/toolresults_v1beta3/classes.rb b/generated/google/apis/toolresults_v1beta3/classes.rb index 999f31785..e9affab32 100644 --- a/generated/google/apis/toolresults_v1beta3/classes.rb +++ b/generated/google/apis/toolresults_v1beta3/classes.rb @@ -593,8 +593,8 @@ module Google # https://docs.python.org/2/library/time.html#time.strftime) with the time # format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use the Joda # Time's [`ISODateTimeFormat.dateTime()`]( http://www.joda.org/joda-time/apidocs/ - # org/joda/time/format/ISODateTimeFormat.html#dateTime-- ) to obtain a formatter - # capable of generating timestamps in this format. + # org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D ) to obtain a + # formatter capable of generating timestamps in this format. # Corresponds to the JSON property `completionTime` # @return [Google::Apis::ToolresultsV1beta3::Timestamp] attr_accessor :completion_time @@ -649,8 +649,8 @@ module Google # https://docs.python.org/2/library/time.html#time.strftime) with the time # format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use the Joda # Time's [`ISODateTimeFormat.dateTime()`]( http://www.joda.org/joda-time/apidocs/ - # org/joda/time/format/ISODateTimeFormat.html#dateTime-- ) to obtain a formatter - # capable of generating timestamps in this format. + # org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D ) to obtain a + # formatter capable of generating timestamps in this format. # Corresponds to the JSON property `creationTime` # @return [Google::Apis::ToolresultsV1beta3::Timestamp] attr_accessor :creation_time @@ -1446,8 +1446,8 @@ module Google # https://docs.python.org/2/library/time.html#time.strftime) with the time # format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use the Joda # Time's [`ISODateTimeFormat.dateTime()`]( http://www.joda.org/joda-time/apidocs/ - # org/joda/time/format/ISODateTimeFormat.html#dateTime-- ) to obtain a formatter - # capable of generating timestamps in this format. + # org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D ) to obtain a + # formatter capable of generating timestamps in this format. # Corresponds to the JSON property `sampleTime` # @return [Google::Apis::ToolresultsV1beta3::Timestamp] attr_accessor :sample_time @@ -1856,8 +1856,8 @@ module Google # https://docs.python.org/2/library/time.html#time.strftime) with the time # format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use the Joda # Time's [`ISODateTimeFormat.dateTime()`]( http://www.joda.org/joda-time/apidocs/ - # org/joda/time/format/ISODateTimeFormat.html#dateTime-- ) to obtain a formatter - # capable of generating timestamps in this format. + # org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D ) to obtain a + # formatter capable of generating timestamps in this format. # Corresponds to the JSON property `completionTime` # @return [Google::Apis::ToolresultsV1beta3::Timestamp] attr_accessor :completion_time @@ -1912,8 +1912,8 @@ module Google # https://docs.python.org/2/library/time.html#time.strftime) with the time # format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use the Joda # Time's [`ISODateTimeFormat.dateTime()`]( http://www.joda.org/joda-time/apidocs/ - # org/joda/time/format/ISODateTimeFormat.html#dateTime-- ) to obtain a formatter - # capable of generating timestamps in this format. + # org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D ) to obtain a + # formatter capable of generating timestamps in this format. # Corresponds to the JSON property `creationTime` # @return [Google::Apis::ToolresultsV1beta3::Timestamp] attr_accessor :creation_time @@ -2550,8 +2550,8 @@ module Google # https://docs.python.org/2/library/time.html#time.strftime) with the time # format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use the Joda # Time's [`ISODateTimeFormat.dateTime()`]( http://www.joda.org/joda-time/apidocs/ - # org/joda/time/format/ISODateTimeFormat.html#dateTime-- ) to obtain a formatter - # capable of generating timestamps in this format. + # org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D ) to obtain a + # formatter capable of generating timestamps in this format. class Timestamp include Google::Apis::Core::Hashable @@ -2725,8 +2725,8 @@ module Google # https://docs.python.org/2/library/time.html#time.strftime) with the time # format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use the Joda # Time's [`ISODateTimeFormat.dateTime()`]( http://www.joda.org/joda-time/apidocs/ - # org/joda/time/format/ISODateTimeFormat.html#dateTime-- ) to obtain a formatter - # capable of generating timestamps in this format. + # org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D ) to obtain a + # formatter capable of generating timestamps in this format. # Corresponds to the JSON property `creationTime` # @return [Google::Apis::ToolresultsV1beta3::Timestamp] attr_accessor :creation_time