Autogenerated update (2018-06-20)

Update:
- cloudresourcemanager_v2beta1
- cloudtasks_v2beta2
- speech_v1
- speech_v1beta1
This commit is contained in:
Google APIs 2018-06-20 00:36:57 +00:00
parent 99756c439d
commit 3c1caad9fe
11 changed files with 68 additions and 43 deletions

View File

@ -15426,6 +15426,8 @@
"/cloudresourcemanager:v2beta1/cloudresourcemanager.folders.testIamPermissions/resource": resource
"/cloudresourcemanager:v2beta1/cloudresourcemanager.folders.undelete": undelete_folder
"/cloudresourcemanager:v2beta1/cloudresourcemanager.folders.undelete/name": name
"/cloudresourcemanager:v2beta1/cloudresourcemanager.operations.get": get_operation
"/cloudresourcemanager:v2beta1/cloudresourcemanager.operations.get/name": name
"/cloudresourcemanager:v2beta1/fields": fields
"/cloudresourcemanager:v2beta1/key": key
"/cloudresourcemanager:v2beta1/quotaUser": quota_user
@ -24807,6 +24809,7 @@
"/compute:beta/NodeGroupNode/instances/instance": instance
"/compute:beta/NodeGroupNode/name": name
"/compute:beta/NodeGroupNode/nodeType": node_type
"/compute:beta/NodeGroupNode/status": status
"/compute:beta/NodeGroupsAddNodesRequest": node_groups_add_nodes_request
"/compute:beta/NodeGroupsAddNodesRequest/additionalNodeCount": additional_node_count
"/compute:beta/NodeGroupsDeleteNodesRequest": node_groups_delete_nodes_request

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/resource-manager
module CloudresourcemanagerV2beta1
VERSION = 'V2beta1'
REVISION = '20180606'
REVISION = '20180618'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -599,11 +599,11 @@ module Google
# Some example queries are:
# |Query | Description|
# |----- | -----------|
# |displayName=Test*|Folders whose display name starts with "Test".|
# |lifecycleState=ACTIVE|Folders whose lifecycleState is ACTIVE.|
# |parent=folders/123|Folders whose parent is "folders/123".|
# |parent=folders/123 AND lifecycleState=ACTIVE|Active folders whose parent is "
# folders/123".|
# |displayName=Test* | Folders whose display name starts with "Test".|
# |lifecycleState=ACTIVE | Folders whose lifecycleState is ACTIVE.|
# |parent=folders/123 | Folders whose parent is "folders/123".|
# |parent=folders/123 AND lifecycleState=ACTIVE | Active folders whose parent is
# "folders/123".|
# |displayName=\\"Test String\\"|Folders whose display name includes both "Test"
# and "String".|
# Corresponds to the JSON property `query`

View File

@ -63,12 +63,12 @@ module Google
# moving folders that contain deleted folders.
# + The addition of the Folder must not cause the total number of Folders
# under its parent to exceed 100.
# If the operation fails due to a folder constraint violation,
# a PreconditionFailure explaining the violation will be returned.
# If the failure occurs synchronously then the PreconditionFailure
# will be returned via the Status.details field and if it occurs
# asynchronously then the PreconditionFailure will be returned
# via the the Operation.error field.
# If the operation fails due to a folder constraint violation, some errors
# may be returned by the CreateFolder request, with status code
# FAILED_PRECONDITION and an error description. Other folder constraint
# violations will be communicated in the Operation, with the specific
# PreconditionFailure returned via the details list in the Operation.error
# field.
# The caller must have `resourcemanager.folders.create` permission on the
# identified parent.
# @param [Google::Apis::CloudresourcemanagerV2beta1::Folder] folder_object
@ -93,7 +93,7 @@ module Google
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_folder(folder_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2beta1/folders', options)
command = make_simple_command(:post, 'v2/folders', options)
command.request_representation = Google::Apis::CloudresourcemanagerV2beta1::Folder::Representation
command.request_object = folder_object
command.response_representation = Google::Apis::CloudresourcemanagerV2beta1::Operation::Representation
@ -134,7 +134,7 @@ module Google
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_folder(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v2beta1/{+name}', options)
command = make_simple_command(:delete, 'v2/{+name}', options)
command.response_representation = Google::Apis::CloudresourcemanagerV2beta1::Folder::Representation
command.response_class = Google::Apis::CloudresourcemanagerV2beta1::Folder
command.params['name'] = name unless name.nil?
@ -169,7 +169,7 @@ module Google
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_folder(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2beta1/{+name}', options)
command = make_simple_command(:get, 'v2/{+name}', options)
command.response_representation = Google::Apis::CloudresourcemanagerV2beta1::Folder::Representation
command.response_class = Google::Apis::CloudresourcemanagerV2beta1::Folder
command.params['name'] = name unless name.nil?
@ -205,7 +205,7 @@ module Google
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_folder_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2beta1/{+resource}:getIamPolicy', options)
command = make_simple_command(:post, 'v2/{+resource}:getIamPolicy', options)
command.request_representation = Google::Apis::CloudresourcemanagerV2beta1::GetIamPolicyRequest::Representation
command.request_object = get_iam_policy_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV2beta1::Policy::Representation
@ -258,7 +258,7 @@ module Google
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_folders(page_size: nil, page_token: nil, parent: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2beta1/folders', options)
command = make_simple_command(:get, 'v2/folders', options)
command.response_representation = Google::Apis::CloudresourcemanagerV2beta1::ListFoldersResponse::Representation
command.response_class = Google::Apis::CloudresourcemanagerV2beta1::ListFoldersResponse
command.query['pageSize'] = page_size unless page_size.nil?
@ -309,7 +309,7 @@ module Google
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def move_folder(name, move_folder_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2beta1/{+name}:move', options)
command = make_simple_command(:post, 'v2/{+name}:move', options)
command.request_representation = Google::Apis::CloudresourcemanagerV2beta1::MoveFolderRequest::Representation
command.request_object = move_folder_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV2beta1::Operation::Representation
@ -322,8 +322,8 @@ module Google
# Updates a Folder, changing its display_name.
# Changes to the folder display_name will be rejected if they violate either
# the display_name formatting rules or naming constraints described in the
# CreateFolder documentation.
# the display_name formatting rules or naming constraints described in
# the CreateFolder documentation.
# The Folder's display name must start and end with a letter or digit,
# may contain letters, digits, spaces, hyphens and underscores and can be
# no longer than 30 characters. This is captured by the regular expression:
@ -358,7 +358,7 @@ module Google
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_folder(name, folder_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v2beta1/{+name}', options)
command = make_simple_command(:patch, 'v2/{+name}', options)
command.request_representation = Google::Apis::CloudresourcemanagerV2beta1::Folder::Representation
command.request_object = folder_object
command.response_representation = Google::Apis::CloudresourcemanagerV2beta1::Folder::Representation
@ -394,7 +394,7 @@ module Google
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def search_folders(search_folders_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2beta1/folders:search', options)
command = make_simple_command(:post, 'v2/folders:search', options)
command.request_representation = Google::Apis::CloudresourcemanagerV2beta1::SearchFoldersRequest::Representation
command.request_object = search_folders_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV2beta1::SearchFoldersResponse::Representation
@ -431,7 +431,7 @@ module Google
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def set_folder_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2beta1/{+resource}:setIamPolicy', options)
command = make_simple_command(:post, 'v2/{+resource}:setIamPolicy', options)
command.request_representation = Google::Apis::CloudresourcemanagerV2beta1::SetIamPolicyRequest::Representation
command.request_object = set_iam_policy_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV2beta1::Policy::Representation
@ -468,7 +468,7 @@ module Google
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def test_folder_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2beta1/{+resource}:testIamPermissions', options)
command = make_simple_command(:post, 'v2/{+resource}:testIamPermissions', options)
command.request_representation = Google::Apis::CloudresourcemanagerV2beta1::TestIamPermissionsRequest::Representation
command.request_object = test_iam_permissions_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV2beta1::TestIamPermissionsResponse::Representation
@ -511,7 +511,7 @@ module Google
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def undelete_folder(name, undelete_folder_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2beta1/{+name}:undelete', options)
command = make_simple_command(:post, 'v2/{+name}:undelete', options)
command.request_representation = Google::Apis::CloudresourcemanagerV2beta1::UndeleteFolderRequest::Representation
command.request_object = undelete_folder_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV2beta1::Folder::Representation
@ -521,6 +521,38 @@ module Google
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets the latest state of a long-running operation. Clients can use this
# method to poll the operation result at intervals as recommended by the API
# service.
# @param [String] name
# The name of the operation 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::CloudresourcemanagerV2beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV2beta1::Operation]
#
# @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_operation(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::CloudresourcemanagerV2beta1::Operation::Representation
command.response_class = Google::Apis::CloudresourcemanagerV2beta1::Operation
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

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/cloud-tasks/
module CloudtasksV2beta2
VERSION = 'V2beta2'
REVISION = '20180613'
REVISION = '20180618'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -976,6 +976,8 @@ module Google
# @return [Google::Apis::CloudtasksV2beta2::AppEngineHttpTarget]
attr_accessor :app_engine_http_target
# 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`
@ -990,8 +992,6 @@ module Google
# 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.
# Caller-specified and required in CreateQueue,
# after which it becomes output only.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
@ -1519,6 +1519,7 @@ module Google
# @return [String]
attr_accessor :create_time
# Optionally caller-specified in CreateTask.
# The task name.
# The task name must have the following format:
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
@ -1535,7 +1536,6 @@ module Google
# hyphens (-). The maximum length is 100 characters.
# * `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
# hyphens (-), or underscores (_). The maximum length is 500 characters.
# Optionally caller-specified in CreateTask.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name

View File

@ -347,6 +347,8 @@ module Google
# [Overview of Queue Management and queue.yaml](/cloud-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`
@ -361,8 +363,6 @@ module Google
# 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.
# Caller-specified and required in CreateQueue,
# after which it becomes output only.
# @param [Google::Apis::CloudtasksV2beta2::Queue] queue_object
# @param [String] update_mask
# A mask used to specify which fields of the queue are being updated.

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/speech/
module SpeechV1
VERSION = 'V1'
REVISION = '20180601'
REVISION = '20180614'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -322,14 +322,6 @@ module Google
class SpeechContext
include Google::Apis::Core::Hashable
# Strength of biasing to use (strong, medium or weak). If you use strong
# biasing option then more likely to see those phrases in the results. If
# biasing streangth is not specified then by default medium biasing would be
# used.
# Corresponds to the JSON property `biasingStrength`
# @return [String]
attr_accessor :biasing_strength
# *Optional* A list of strings containing words and phrases "hints" so that
# the speech recognition is more likely to recognize them. This can be used
# to improve the accuracy for specific words and phrases, for example, if
@ -346,7 +338,6 @@ module Google
# Update properties of this object
def update!(**args)
@biasing_strength = args[:biasing_strength] if args.key?(:biasing_strength)
@phrases = args[:phrases] if args.key?(:phrases)
end
end

View File

@ -153,7 +153,6 @@ module Google
class SpeechContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :biasing_strength, as: 'biasingStrength'
collection :phrases, as: 'phrases'
end
end

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/speech/
module SpeechV1beta1
VERSION = 'V1beta1'
REVISION = '20180312'
REVISION = '20180614'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'