Class: Google::Apis::RedisV1::Endpoint

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#hostString

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

Returns:

  • (String)


183
184
185
# File 'lib/google/apis/redis_v1/classes.rb', line 183

def host
  @host
end

#portFixnum

Output only. The port number of the exposed Redis endpoint. Corresponds to the JSON property port

Returns:

  • (Fixnum)


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