Autogenerated update (2020-01-26)

Update:
- oslogin_v1alpha
- oslogin_v1beta
- redis_v1beta1
This commit is contained in:
Google APIs 2020-01-26 00:37:40 +00:00
parent a92f643d80
commit c949695078
8 changed files with 71 additions and 7 deletions

View File

@ -21,12 +21,11 @@ module Google
# Cloud OS Login API
#
# You can use OS Login to manage access to your VM instances using IAM roles.
# For more information, read [OS Login](/compute/docs/oslogin/).
#
# @see https://cloud.google.com/compute/docs/oslogin/
module OsloginV1alpha
VERSION = 'V1alpha'
REVISION = '20190921'
REVISION = '20200120'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -23,7 +23,6 @@ module Google
# Cloud OS Login API
#
# You can use OS Login to manage access to your VM instances using IAM roles.
# For more information, read [OS Login](/compute/docs/oslogin/).
#
# @example
# require 'google/apis/oslogin_v1alpha'

View File

@ -21,12 +21,11 @@ module Google
# Cloud OS Login API
#
# You can use OS Login to manage access to your VM instances using IAM roles.
# For more information, read [OS Login](/compute/docs/oslogin/).
#
# @see https://cloud.google.com/compute/docs/oslogin/
module OsloginV1beta
VERSION = 'V1beta'
REVISION = '20191018'
REVISION = '20200120'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -23,7 +23,6 @@ module Google
# Cloud OS Login API
#
# You can use OS Login to manage access to your VM instances using IAM roles.
# For more information, read [OS Login](/compute/docs/oslogin/).
#
# @example
# require 'google/apis/oslogin_v1beta'

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/memorystore/docs/redis/
module RedisV1beta1
VERSION = 'V1beta1'
REVISION = '20200107'
REVISION = '20200124'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -686,6 +686,25 @@ module Google
@message = args[:message] if args.key?(:message)
end
end
# Request for UpgradeInstance.
class UpgradeInstanceRequest
include Google::Apis::Core::Hashable
# Required. Specifies the target version of Redis software to upgrade to.
# Corresponds to the JSON property `redisVersion`
# @return [String]
attr_accessor :redis_version
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@redis_version = args[:redis_version] if args.key?(:redis_version)
end
end
end
end
end

View File

@ -130,6 +130,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class UpgradeInstanceRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Empty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -299,6 +305,13 @@ module Google
property :message, as: 'message'
end
end
class UpgradeInstanceRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :redis_version, as: 'redisVersion'
end
end
end
end
end

View File

@ -448,6 +448,42 @@ module Google
execute_or_queue_command(command, &block)
end
# Upgrades Redis instance to the newer Redis version specified in the
# request.
# @param [String] name
# Required. Redis instance resource name using the form:
# `projects/`project_id`/locations/`location_id`/instances/`instance_id``
# where `location_id` refers to a GCP region.
# @param [Google::Apis::RedisV1beta1::UpgradeInstanceRequest] upgrade_instance_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::RedisV1beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RedisV1beta1::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 upgrade_instance(name, upgrade_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+name}:upgrade', options)
command.request_representation = Google::Apis::RedisV1beta1::UpgradeInstanceRequest::Representation
command.request_object = upgrade_instance_request_object
command.response_representation = Google::Apis::RedisV1beta1::Operation::Representation
command.response_class = Google::Apis::RedisV1beta1::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
# Starts asynchronous cancellation on a long-running operation. The server
# makes a best effort to cancel the operation, but success is not
# guaranteed. If the server doesn't support this method, it returns