Class: Google::Apis::MemcacheV1::Node

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/memcache_v1/classes.rb,
lib/google/apis/memcache_v1/representations.rb,
lib/google/apis/memcache_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Node

Returns a new instance of Node.



1230
1231
1232
# File 'lib/google/apis/memcache_v1/classes.rb', line 1230

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#hostString

Output only. Hostname or IP address of the Memcached node used by the clients to connect to the Memcached server on this node. Corresponds to the JSON property host

Returns:

  • (String)


1202
1203
1204
# File 'lib/google/apis/memcache_v1/classes.rb', line 1202

def host
  @host
end

#node_idString

Output only. Identifier of the Memcached node. The node id does not include project or location like the Memcached instance name. Corresponds to the JSON property nodeId

Returns:

  • (String)


1208
1209
1210
# File 'lib/google/apis/memcache_v1/classes.rb', line 1208

def node_id
  @node_id
end

#parametersGoogle::Apis::MemcacheV1::MemcacheParameters

User defined parameters currently applied to the node. Corresponds to the JSON property parameters



1213
1214
1215
# File 'lib/google/apis/memcache_v1/classes.rb', line 1213

def parameters
  @parameters
end

#portFixnum

Output only. The port number of the Memcached server on this node. Corresponds to the JSON property port

Returns:

  • (Fixnum)


1218
1219
1220
# File 'lib/google/apis/memcache_v1/classes.rb', line 1218

def port
  @port
end

#stateString

Output only. Current state of the Memcached node. Corresponds to the JSON property state

Returns:

  • (String)


1223
1224
1225
# File 'lib/google/apis/memcache_v1/classes.rb', line 1223

def state
  @state
end

#zoneString

Output only. Location (GCP Zone) for the Memcached node. Corresponds to the JSON property zone

Returns:

  • (String)


1228
1229
1230
# File 'lib/google/apis/memcache_v1/classes.rb', line 1228

def zone
  @zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1235
1236
1237
1238
1239
1240
1241
1242
# File 'lib/google/apis/memcache_v1/classes.rb', line 1235

def update!(**args)
  @host = args[:host] if args.key?(:host)
  @node_id = args[:node_id] if args.key?(:node_id)
  @parameters = args[:parameters] if args.key?(:parameters)
  @port = args[:port] if args.key?(:port)
  @state = args[:state] if args.key?(:state)
  @zone = args[:zone] if args.key?(:zone)
end