diff --git a/generated/google/apis/oslogin_v1alpha.rb b/generated/google/apis/oslogin_v1alpha.rb index 5b7f07d61..3d9264331 100644 --- a/generated/google/apis/oslogin_v1alpha.rb +++ b/generated/google/apis/oslogin_v1alpha.rb @@ -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' diff --git a/generated/google/apis/oslogin_v1alpha/service.rb b/generated/google/apis/oslogin_v1alpha/service.rb index 0f9045e6c..84942831e 100644 --- a/generated/google/apis/oslogin_v1alpha/service.rb +++ b/generated/google/apis/oslogin_v1alpha/service.rb @@ -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' diff --git a/generated/google/apis/oslogin_v1beta.rb b/generated/google/apis/oslogin_v1beta.rb index 6e2446f6a..1a6da8d91 100644 --- a/generated/google/apis/oslogin_v1beta.rb +++ b/generated/google/apis/oslogin_v1beta.rb @@ -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' diff --git a/generated/google/apis/oslogin_v1beta/service.rb b/generated/google/apis/oslogin_v1beta/service.rb index d4db56059..c44885757 100644 --- a/generated/google/apis/oslogin_v1beta/service.rb +++ b/generated/google/apis/oslogin_v1beta/service.rb @@ -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' diff --git a/generated/google/apis/redis_v1beta1.rb b/generated/google/apis/redis_v1beta1.rb index 596cd316f..e8def23cd 100644 --- a/generated/google/apis/redis_v1beta1.rb +++ b/generated/google/apis/redis_v1beta1.rb @@ -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' diff --git a/generated/google/apis/redis_v1beta1/classes.rb b/generated/google/apis/redis_v1beta1/classes.rb index 31a6b8ee2..7953465de 100644 --- a/generated/google/apis/redis_v1beta1/classes.rb +++ b/generated/google/apis/redis_v1beta1/classes.rb @@ -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 diff --git a/generated/google/apis/redis_v1beta1/representations.rb b/generated/google/apis/redis_v1beta1/representations.rb index 15faf5597..a542be98c 100644 --- a/generated/google/apis/redis_v1beta1/representations.rb +++ b/generated/google/apis/redis_v1beta1/representations.rb @@ -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 diff --git a/generated/google/apis/redis_v1beta1/service.rb b/generated/google/apis/redis_v1beta1/service.rb index 2c93f61fa..189a38570 100644 --- a/generated/google/apis/redis_v1beta1/service.rb +++ b/generated/google/apis/redis_v1beta1/service.rb @@ -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