Class: Google::Apis::RedisV1::Endpoint
- Inherits:
-
Object
- Object
- Google::Apis::RedisV1::Endpoint
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/redis_v1/classes.rb,
lib/google/apis/redis_v1/representations.rb,
lib/google/apis/redis_v1/representations.rb
Overview
An endpoint exposed by a cluster. In the future we will add an enum to identify whether this endpoint is read/write or read-only when the feature is ready.
Instance Attribute Summary collapse
-
#host ⇒ String
Output only.
-
#port ⇒ Fixnum
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Endpoint
constructor
A new instance of Endpoint.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Endpoint
Returns a new instance of Endpoint.
190 191 192 |
# File 'lib/google/apis/redis_v1/classes.rb', line 190 def initialize(**args) update!(**args) end |
Instance Attribute Details
#host ⇒ String
Output only. Hostname or IP address of the exposed Redis endpoint used by
clients to connect to the service.
Corresponds to the JSON property host
183 184 185 |
# File 'lib/google/apis/redis_v1/classes.rb', line 183 def host @host end |
#port ⇒ Fixnum
Output only. The port number of the exposed Redis endpoint.
Corresponds to the JSON property port
188 189 190 |
# File 'lib/google/apis/redis_v1/classes.rb', line 188 def port @port end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
195 196 197 198 |
# File 'lib/google/apis/redis_v1/classes.rb', line 195 def update!(**args) @host = args[:host] if args.key?(:host) @port = args[:port] if args.key?(:port) end |