diff --git a/api_names_out.yaml b/api_names_out.yaml index ecb90d440..f551dbb3c 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -125949,6 +125949,7 @@ "/redis:v1/InputConfig/gcsSource": gcs_source "/redis:v1/Instance": instance "/redis:v1/Instance/alternativeLocationId": alternative_location_id +"/redis:v1/Instance/authEnabled": auth_enabled "/redis:v1/Instance/authorizedNetwork": authorized_network "/redis:v1/Instance/connectMode": connect_mode "/redis:v1/Instance/createTime": create_time @@ -125969,6 +125970,8 @@ "/redis:v1/Instance/state": state "/redis:v1/Instance/statusMessage": status_message "/redis:v1/Instance/tier": tier +"/redis:v1/InstanceAuthString": instance_auth_string +"/redis:v1/InstanceAuthString/authString": auth_string "/redis:v1/ListInstancesResponse": list_instances_response "/redis:v1/ListInstancesResponse/instances": instances "/redis:v1/ListInstancesResponse/instances/instance": instance @@ -126025,6 +126028,8 @@ "/redis:v1/redis.projects.locations.instances.failover/name": name "/redis:v1/redis.projects.locations.instances.get": get_project_location_instance "/redis:v1/redis.projects.locations.instances.get/name": name +"/redis:v1/redis.projects.locations.instances.getAuthString": get_project_location_instance_auth_string +"/redis:v1/redis.projects.locations.instances.getAuthString/name": name "/redis:v1/redis.projects.locations.instances.import": import_instance "/redis:v1/redis.projects.locations.instances.import/name": name "/redis:v1/redis.projects.locations.instances.list": list_project_location_instances diff --git a/generated/google/apis/redis_v1.rb b/generated/google/apis/redis_v1.rb index 5b77ede02..2289b883a 100644 --- a/generated/google/apis/redis_v1.rb +++ b/generated/google/apis/redis_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/memorystore/docs/redis/ module RedisV1 VERSION = 'V1' - REVISION = '20200928' + REVISION = '20201104' # 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_v1/classes.rb b/generated/google/apis/redis_v1/classes.rb index 34aad006c..84998976d 100644 --- a/generated/google/apis/redis_v1/classes.rb +++ b/generated/google/apis/redis_v1/classes.rb @@ -260,6 +260,14 @@ module Google # @return [String] attr_accessor :alternative_location_id + # Optional. Indicates whether OSS Redis AUTH is enabled for the instance. If set + # to "true" AUTH is enabled on the instance. Default value is "false" meaning + # AUTH is disabled. + # Corresponds to the JSON property `authEnabled` + # @return [Boolean] + attr_accessor :auth_enabled + alias_method :auth_enabled?, :auth_enabled + # Optional. The full name of the Google Compute Engine [network](https://cloud. # google.com/vpc/docs/vpc) to which the instance is connected. If left # unspecified, the `default` network will be used. @@ -388,6 +396,7 @@ module Google # Update properties of this object def update!(**args) @alternative_location_id = args[:alternative_location_id] if args.key?(:alternative_location_id) + @auth_enabled = args[:auth_enabled] if args.key?(:auth_enabled) @authorized_network = args[:authorized_network] if args.key?(:authorized_network) @connect_mode = args[:connect_mode] if args.key?(:connect_mode) @create_time = args[:create_time] if args.key?(:create_time) @@ -409,6 +418,25 @@ module Google end end + # Instance AUTH string details. + class InstanceAuthString + include Google::Apis::Core::Hashable + + # AUTH string set on the instance. + # Corresponds to the JSON property `authString` + # @return [String] + attr_accessor :auth_string + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @auth_string = args[:auth_string] if args.key?(:auth_string) + end + end + # Response for ListInstances. class ListInstancesResponse include Google::Apis::Core::Hashable diff --git a/generated/google/apis/redis_v1/representations.rb b/generated/google/apis/redis_v1/representations.rb index 56d7108eb..7a7b95033 100644 --- a/generated/google/apis/redis_v1/representations.rb +++ b/generated/google/apis/redis_v1/representations.rb @@ -88,6 +88,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class InstanceAuthString + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListInstancesResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -218,6 +224,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :alternative_location_id, as: 'alternativeLocationId' + property :auth_enabled, as: 'authEnabled' property :authorized_network, as: 'authorizedNetwork' property :connect_mode, as: 'connectMode' property :create_time, as: 'createTime' @@ -239,6 +246,13 @@ module Google end end + class InstanceAuthString + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :auth_string, as: 'authString' + end + end + class ListInstancesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/redis_v1/service.rb b/generated/google/apis/redis_v1/service.rb index 97fd19f1d..470d1ebed 100644 --- a/generated/google/apis/redis_v1/service.rb +++ b/generated/google/apis/redis_v1/service.rb @@ -303,6 +303,40 @@ module Google execute_or_queue_command(command, &block) end + # Gets the AUTH string for a Redis instance. If AUTH is not enabled for the + # instance the response will be empty. This information is not included in the + # details returned to GetInstance. + # @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 [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::RedisV1::InstanceAuthString] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RedisV1::InstanceAuthString] + # + # @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_instance_auth_string(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}/authString', options) + command.response_representation = Google::Apis::RedisV1::InstanceAuthString::Representation + command.response_class = Google::Apis::RedisV1::InstanceAuthString + 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 + # Import a Redis RDB snapshot file from Cloud Storage into a Redis instance. # Redis may stop serving during this operation. Instance state will be IMPORTING # for entire operation. When complete, the instance will contain only data from diff --git a/generated/google/apis/redis_v1/synth.metadata b/generated/google/apis/redis_v1/synth.metadata index 429012f74..67e32ead4 100644 --- a/generated/google/apis/redis_v1/synth.metadata +++ b/generated/google/apis/redis_v1/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/google-api-ruby-client.git", - "sha": "c98c719bbab68d0890524d53f8b629d7858af9c2" + "sha": "a809d40f1f8e6f1f7a5c4aeb8c329af63cecbbfc" } } ]