lib/google/cloud/redis.rb in google-cloud-redis-1.4.0 vs lib/google/cloud/redis.rb in google-cloud-redis-1.5.0
- old
+ new
@@ -27,29 +27,30 @@
require "google/cloud" unless defined? ::Google::Cloud.new
require "google/cloud/config"
# Set the default configuration
::Google::Cloud.configure.add_config! :redis do |config|
- config.add_field! :endpoint, "redis.googleapis.com", match: ::String
+ config.add_field! :endpoint, nil, match: ::String
config.add_field! :credentials, nil, match: [::String, ::Hash, ::Google::Auth::Credentials]
config.add_field! :scope, nil, match: [::Array, ::String]
config.add_field! :lib_name, nil, match: ::String
config.add_field! :lib_version, nil, match: ::String
config.add_field! :interceptors, nil, match: ::Array
config.add_field! :timeout, nil, match: ::Numeric
config.add_field! :metadata, nil, match: ::Hash
config.add_field! :retry_policy, nil, match: [::Hash, ::Proc]
config.add_field! :quota_project, nil, match: ::String
+ config.add_field! :universe_domain, nil, match: ::String
end
module Google
module Cloud
module Redis
##
# Create a new client object for CloudRedis.
#
# By default, this returns an instance of
- # [Google::Cloud::Redis::V1::CloudRedis::Client](https://googleapis.dev/ruby/google-cloud-redis-v1/latest/Google/Cloud/Redis/V1/CloudRedis/Client.html)
+ # [Google::Cloud::Redis::V1::CloudRedis::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-redis-v1/latest/Google-Cloud-Redis-V1-CloudRedis-Client)
# for a gRPC client for version V1 of the API.
# However, you can specify a different API version by passing it in the
# `version` parameter. If the CloudRedis service is
# supported by that API version, and the corresponding gem is available, the
# appropriate versioned client will be returned.