Autogenerated update (2018-08-29)
Update: - androidpublisher_v2 - androidpublisher_v3 - cloudkms_v1 - speech_v1 - toolresults_v1beta3
This commit is contained in:
parent
ba62ee5e34
commit
52597513a9
|
@ -16192,6 +16192,162 @@
|
||||||
"/cloudtasks:v2beta2/fields": fields
|
"/cloudtasks:v2beta2/fields": fields
|
||||||
"/cloudtasks:v2beta2/key": key
|
"/cloudtasks:v2beta2/key": key
|
||||||
"/cloudtasks:v2beta2/quotaUser": quota_user
|
"/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/Empty": empty
|
||||||
"/cloudtrace:v1/ListTracesResponse": list_traces_response
|
"/cloudtrace:v1/ListTracesResponse": list_traces_response
|
||||||
"/cloudtrace:v1/ListTracesResponse/nextPageToken": next_page_token
|
"/cloudtrace:v1/ListTracesResponse/nextPageToken": next_page_token
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/android-publisher
|
# @see https://developers.google.com/android-publisher
|
||||||
module AndroidpublisherV2
|
module AndroidpublisherV2
|
||||||
VERSION = 'V2'
|
VERSION = 'V2'
|
||||||
REVISION = '20180807'
|
REVISION = '20180827'
|
||||||
|
|
||||||
# View and manage your Google Play Developer account
|
# View and manage your Google Play Developer account
|
||||||
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
|
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
|
||||||
|
|
|
@ -1509,6 +1509,7 @@ module Google
|
||||||
# - Payment pending
|
# - Payment pending
|
||||||
# - Payment received
|
# - Payment received
|
||||||
# - Free trial
|
# - Free trial
|
||||||
|
# - Pending deferred upgrade/downgrade
|
||||||
# Corresponds to the JSON property `paymentState`
|
# Corresponds to the JSON property `paymentState`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :payment_state
|
attr_accessor :payment_state
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/android-publisher
|
# @see https://developers.google.com/android-publisher
|
||||||
module AndroidpublisherV3
|
module AndroidpublisherV3
|
||||||
VERSION = 'V3'
|
VERSION = 'V3'
|
||||||
REVISION = '20180807'
|
REVISION = '20180827'
|
||||||
|
|
||||||
# View and manage your Google Play Developer account
|
# View and manage your Google Play Developer account
|
||||||
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
|
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
|
||||||
|
|
|
@ -1483,6 +1483,7 @@ module Google
|
||||||
# - Payment pending
|
# - Payment pending
|
||||||
# - Payment received
|
# - Payment received
|
||||||
# - Free trial
|
# - Free trial
|
||||||
|
# - Pending deferred upgrade/downgrade
|
||||||
# Corresponds to the JSON property `paymentState`
|
# Corresponds to the JSON property `paymentState`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :payment_state
|
attr_accessor :payment_state
|
||||||
|
|
|
@ -29,7 +29,7 @@ module Google
|
||||||
# @see https://cloud.google.com/kms/
|
# @see https://cloud.google.com/kms/
|
||||||
module CloudkmsV1
|
module CloudkmsV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20180821'
|
REVISION = '20180823'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -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
|
File diff suppressed because it is too large
Load Diff
|
@ -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
|
|
@ -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
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/speech-to-text/docs/quickstart-protocol
|
# @see https://cloud.google.com/speech-to-text/docs/quickstart-protocol
|
||||||
module SpeechV1
|
module SpeechV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20180629'
|
REVISION = '20180823'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -30,7 +30,7 @@ module Google
|
||||||
# Contains audio data in the encoding specified in the `RecognitionConfig`.
|
# Contains audio data in the encoding specified in the `RecognitionConfig`.
|
||||||
# Either `content` or `uri` must be supplied. Supplying both or neither
|
# Either `content` or `uri` must be supplied. Supplying both or neither
|
||||||
# returns google.rpc.Code.INVALID_ARGUMENT. See
|
# 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`
|
# Corresponds to the JSON property `audio`
|
||||||
# @return [Google::Apis::SpeechV1::RecognitionAudio]
|
# @return [Google::Apis::SpeechV1::RecognitionAudio]
|
||||||
attr_accessor :audio
|
attr_accessor :audio
|
||||||
|
@ -152,7 +152,7 @@ module Google
|
||||||
# Contains audio data in the encoding specified in the `RecognitionConfig`.
|
# Contains audio data in the encoding specified in the `RecognitionConfig`.
|
||||||
# Either `content` or `uri` must be supplied. Supplying both or neither
|
# Either `content` or `uri` must be supplied. Supplying both or neither
|
||||||
# returns google.rpc.Code.INVALID_ARGUMENT. See
|
# 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
|
class RecognitionAudio
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -165,7 +165,8 @@ module Google
|
||||||
attr_accessor :content
|
attr_accessor :content
|
||||||
|
|
||||||
# URI that points to a file that contains audio data bytes as specified in
|
# 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:
|
# supported, which must be specified in the following format:
|
||||||
# `gs://bucket_name/object_name` (other URI formats return
|
# `gs://bucket_name/object_name` (other URI formats return
|
||||||
# google.rpc.Code.INVALID_ARGUMENT). For more information, see
|
# google.rpc.Code.INVALID_ARGUMENT). For more information, see
|
||||||
|
@ -209,7 +210,7 @@ module Google
|
||||||
# *Required* The language of the supplied audio as a
|
# *Required* The language of the supplied audio as a
|
||||||
# [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
|
# [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
|
||||||
# Example: "en-US".
|
# 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.
|
# for a list of the currently supported language codes.
|
||||||
# Corresponds to the JSON property `languageCode`
|
# Corresponds to the JSON property `languageCode`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
|
@ -245,7 +246,9 @@ module Google
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :sample_rate_hertz
|
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`
|
# Corresponds to the JSON property `speechContexts`
|
||||||
# @return [Array<Google::Apis::SpeechV1::SpeechContext>]
|
# @return [Array<Google::Apis::SpeechV1::SpeechContext>]
|
||||||
attr_accessor :speech_contexts
|
attr_accessor :speech_contexts
|
||||||
|
@ -273,7 +276,7 @@ module Google
|
||||||
# Contains audio data in the encoding specified in the `RecognitionConfig`.
|
# Contains audio data in the encoding specified in the `RecognitionConfig`.
|
||||||
# Either `content` or `uri` must be supplied. Supplying both or neither
|
# Either `content` or `uri` must be supplied. Supplying both or neither
|
||||||
# returns google.rpc.Code.INVALID_ARGUMENT. See
|
# 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`
|
# Corresponds to the JSON property `audio`
|
||||||
# @return [Google::Apis::SpeechV1::RecognitionAudio]
|
# @return [Google::Apis::SpeechV1::RecognitionAudio]
|
||||||
attr_accessor :audio
|
attr_accessor :audio
|
||||||
|
@ -327,7 +330,7 @@ module Google
|
||||||
# to improve the accuracy for specific words and phrases, for example, if
|
# 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
|
# specific commands are typically spoken by the user. This can also be used
|
||||||
# to add additional words to the vocabulary of the recognizer. See
|
# 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`
|
# Corresponds to the JSON property `phrases`
|
||||||
# @return [Array<String>]
|
# @return [Array<String>]
|
||||||
attr_accessor :phrases
|
attr_accessor :phrases
|
||||||
|
@ -363,7 +366,7 @@ module Google
|
||||||
attr_accessor :transcript
|
attr_accessor :transcript
|
||||||
|
|
||||||
# Output only. A list of word-specific information for each recognized word.
|
# 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.
|
# from the beginning of the audio.
|
||||||
# Corresponds to the JSON property `words`
|
# Corresponds to the JSON property `words`
|
||||||
# @return [Array<Google::Apis::SpeechV1::WordInfo>]
|
# @return [Array<Google::Apis::SpeechV1::WordInfo>]
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://firebase.google.com/docs/test-lab/
|
# @see https://firebase.google.com/docs/test-lab/
|
||||||
module ToolresultsV1beta3
|
module ToolresultsV1beta3
|
||||||
VERSION = 'V1beta3'
|
VERSION = 'V1beta3'
|
||||||
REVISION = '20180820'
|
REVISION = '20180827'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -593,8 +593,8 @@ module Google
|
||||||
# https://docs.python.org/2/library/time.html#time.strftime) with the time
|
# 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
|
# 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/
|
# Time's [`ISODateTimeFormat.dateTime()`]( http://www.joda.org/joda-time/apidocs/
|
||||||
# org/joda/time/format/ISODateTimeFormat.html#dateTime-- ) to obtain a formatter
|
# org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D ) to obtain a
|
||||||
# capable of generating timestamps in this format.
|
# formatter capable of generating timestamps in this format.
|
||||||
# Corresponds to the JSON property `completionTime`
|
# Corresponds to the JSON property `completionTime`
|
||||||
# @return [Google::Apis::ToolresultsV1beta3::Timestamp]
|
# @return [Google::Apis::ToolresultsV1beta3::Timestamp]
|
||||||
attr_accessor :completion_time
|
attr_accessor :completion_time
|
||||||
|
@ -649,8 +649,8 @@ module Google
|
||||||
# https://docs.python.org/2/library/time.html#time.strftime) with the time
|
# 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
|
# 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/
|
# Time's [`ISODateTimeFormat.dateTime()`]( http://www.joda.org/joda-time/apidocs/
|
||||||
# org/joda/time/format/ISODateTimeFormat.html#dateTime-- ) to obtain a formatter
|
# org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D ) to obtain a
|
||||||
# capable of generating timestamps in this format.
|
# formatter capable of generating timestamps in this format.
|
||||||
# Corresponds to the JSON property `creationTime`
|
# Corresponds to the JSON property `creationTime`
|
||||||
# @return [Google::Apis::ToolresultsV1beta3::Timestamp]
|
# @return [Google::Apis::ToolresultsV1beta3::Timestamp]
|
||||||
attr_accessor :creation_time
|
attr_accessor :creation_time
|
||||||
|
@ -1446,8 +1446,8 @@ module Google
|
||||||
# https://docs.python.org/2/library/time.html#time.strftime) with the time
|
# 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
|
# 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/
|
# Time's [`ISODateTimeFormat.dateTime()`]( http://www.joda.org/joda-time/apidocs/
|
||||||
# org/joda/time/format/ISODateTimeFormat.html#dateTime-- ) to obtain a formatter
|
# org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D ) to obtain a
|
||||||
# capable of generating timestamps in this format.
|
# formatter capable of generating timestamps in this format.
|
||||||
# Corresponds to the JSON property `sampleTime`
|
# Corresponds to the JSON property `sampleTime`
|
||||||
# @return [Google::Apis::ToolresultsV1beta3::Timestamp]
|
# @return [Google::Apis::ToolresultsV1beta3::Timestamp]
|
||||||
attr_accessor :sample_time
|
attr_accessor :sample_time
|
||||||
|
@ -1856,8 +1856,8 @@ module Google
|
||||||
# https://docs.python.org/2/library/time.html#time.strftime) with the time
|
# 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
|
# 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/
|
# Time's [`ISODateTimeFormat.dateTime()`]( http://www.joda.org/joda-time/apidocs/
|
||||||
# org/joda/time/format/ISODateTimeFormat.html#dateTime-- ) to obtain a formatter
|
# org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D ) to obtain a
|
||||||
# capable of generating timestamps in this format.
|
# formatter capable of generating timestamps in this format.
|
||||||
# Corresponds to the JSON property `completionTime`
|
# Corresponds to the JSON property `completionTime`
|
||||||
# @return [Google::Apis::ToolresultsV1beta3::Timestamp]
|
# @return [Google::Apis::ToolresultsV1beta3::Timestamp]
|
||||||
attr_accessor :completion_time
|
attr_accessor :completion_time
|
||||||
|
@ -1912,8 +1912,8 @@ module Google
|
||||||
# https://docs.python.org/2/library/time.html#time.strftime) with the time
|
# 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
|
# 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/
|
# Time's [`ISODateTimeFormat.dateTime()`]( http://www.joda.org/joda-time/apidocs/
|
||||||
# org/joda/time/format/ISODateTimeFormat.html#dateTime-- ) to obtain a formatter
|
# org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D ) to obtain a
|
||||||
# capable of generating timestamps in this format.
|
# formatter capable of generating timestamps in this format.
|
||||||
# Corresponds to the JSON property `creationTime`
|
# Corresponds to the JSON property `creationTime`
|
||||||
# @return [Google::Apis::ToolresultsV1beta3::Timestamp]
|
# @return [Google::Apis::ToolresultsV1beta3::Timestamp]
|
||||||
attr_accessor :creation_time
|
attr_accessor :creation_time
|
||||||
|
@ -2550,8 +2550,8 @@ module Google
|
||||||
# https://docs.python.org/2/library/time.html#time.strftime) with the time
|
# 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
|
# 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/
|
# Time's [`ISODateTimeFormat.dateTime()`]( http://www.joda.org/joda-time/apidocs/
|
||||||
# org/joda/time/format/ISODateTimeFormat.html#dateTime-- ) to obtain a formatter
|
# org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D ) to obtain a
|
||||||
# capable of generating timestamps in this format.
|
# formatter capable of generating timestamps in this format.
|
||||||
class Timestamp
|
class Timestamp
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -2725,8 +2725,8 @@ module Google
|
||||||
# https://docs.python.org/2/library/time.html#time.strftime) with the time
|
# 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
|
# 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/
|
# Time's [`ISODateTimeFormat.dateTime()`]( http://www.joda.org/joda-time/apidocs/
|
||||||
# org/joda/time/format/ISODateTimeFormat.html#dateTime-- ) to obtain a formatter
|
# org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D ) to obtain a
|
||||||
# capable of generating timestamps in this format.
|
# formatter capable of generating timestamps in this format.
|
||||||
# Corresponds to the JSON property `creationTime`
|
# Corresponds to the JSON property `creationTime`
|
||||||
# @return [Google::Apis::ToolresultsV1beta3::Timestamp]
|
# @return [Google::Apis::ToolresultsV1beta3::Timestamp]
|
||||||
attr_accessor :creation_time
|
attr_accessor :creation_time
|
||||||
|
|
Loading…
Reference in New Issue