lib/google/cloud/redis.rb in google-cloud-redis-0.2.1 vs lib/google/cloud/redis.rb in google-cloud-redis-0.2.2
- old
+ new
@@ -88,11 +88,11 @@
.map { |dir| File.basename(dir) }
##
# Configures and manages Cloud Memorystore for Redis instances
#
- # Google Cloud Memorystore for Redis v1beta1
+ # Google Cloud Memorystore for Redis v1
#
# The +redis.googleapis.com+ service implements the Google Cloud Memorystore
# for Redis API and defines the following resource model for managing Redis
# instances:
# * The service works with a collection of cloud projects, named: +/projects/*+
@@ -103,11 +103,11 @@
#
# Note that location_id must be refering to a GCP +region+; for example:
# * +projects/redpepper-1290/locations/us-central1/instances/my-redis+
#
# @param version [Symbol, String]
- # The major version of the service to be used. By default :v1beta1
+ # The major version of the service to be used. By default :v1
# is used.
# @overload new(version:, credentials:, scopes:, client_config:, timeout:)
# @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
# Provides the means for authenticating requests made by the client. This parameter can
# be many types.
@@ -135,10 +135,10 @@
# @param metadata [Hash]
# Default metadata to be sent with each request. This can be overridden on a per call basis.
# @param exception_transformer [Proc]
# An optional proc that intercepts any exceptions raised during an API call to inject
# custom error handling.
- def self.new(*args, version: :v1beta1, **kwargs)
+ def self.new(*args, version: :v1, **kwargs)
unless AVAILABLE_VERSIONS.include?(version.to_s.downcase)
raise "The version: #{version} is not available. The available versions " \
"are: [#{AVAILABLE_VERSIONS.join(", ")}]"
end