Class: Google::Apis::WorkloadmanagerV1::Cluster

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

Overview

The cluster for sqlserver

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Cluster

Returns a new instance of Cluster.



214
215
216
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 214

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

Instance Attribute Details

#nodesArray<String>

Output only. The nodes Corresponds to the JSON property nodes

Returns:

  • (Array<String>)


207
208
209
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 207

def nodes
  @nodes
end

#witness_serverString

Output only. The witness server Corresponds to the JSON property witnessServer

Returns:

  • (String)


212
213
214
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 212

def witness_server
  @witness_server
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



219
220
221
222
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 219

def update!(**args)
  @nodes = args[:nodes] if args.key?(:nodes)
  @witness_server = args[:witness_server] if args.key?(:witness_server)
end