Class: Google::Apis::ComputeV1::NodeGroupNode

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NodeGroupNode

Returns a new instance of NodeGroupNode.



20281
20282
20283
# File 'lib/google/apis/compute_v1/classes.rb', line 20281

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

Instance Attribute Details

#acceleratorsArray<Google::Apis::ComputeV1::AcceleratorConfig>

Accelerators for this node. Corresponds to the JSON property accelerators



20233
20234
20235
# File 'lib/google/apis/compute_v1/classes.rb', line 20233

def accelerators
  @accelerators
end

#cpu_overcommit_typeString

CPU overcommit. Corresponds to the JSON property cpuOvercommitType

Returns:

  • (String)


20238
20239
20240
# File 'lib/google/apis/compute_v1/classes.rb', line 20238

def cpu_overcommit_type
  @cpu_overcommit_type
end

#disksArray<Google::Apis::ComputeV1::LocalDisk>

Local disk configurations. Corresponds to the JSON property disks



20243
20244
20245
# File 'lib/google/apis/compute_v1/classes.rb', line 20243

def disks
  @disks
end

#instancesArray<String>

Instances scheduled on this node. Corresponds to the JSON property instances

Returns:

  • (Array<String>)


20248
20249
20250
# File 'lib/google/apis/compute_v1/classes.rb', line 20248

def instances
  @instances
end

#nameString

The name of the node. Corresponds to the JSON property name

Returns:

  • (String)


20253
20254
20255
# File 'lib/google/apis/compute_v1/classes.rb', line 20253

def name
  @name
end

#node_typeString

The type of this node. Corresponds to the JSON property nodeType

Returns:

  • (String)


20258
20259
20260
# File 'lib/google/apis/compute_v1/classes.rb', line 20258

def node_type
  @node_type
end

#satisfies_pzsBoolean Also known as: satisfies_pzs?

[Output Only] Reserved for future use. Corresponds to the JSON property satisfiesPzs

Returns:

  • (Boolean)


20263
20264
20265
# File 'lib/google/apis/compute_v1/classes.rb', line 20263

def satisfies_pzs
  @satisfies_pzs
end

#server_bindingGoogle::Apis::ComputeV1::ServerBinding

Binding properties for the physical server. Corresponds to the JSON property serverBinding



20269
20270
20271
# File 'lib/google/apis/compute_v1/classes.rb', line 20269

def server_binding
  @server_binding
end

#server_idString

Server ID associated with this node. Corresponds to the JSON property serverId

Returns:

  • (String)


20274
20275
20276
# File 'lib/google/apis/compute_v1/classes.rb', line 20274

def server_id
  @server_id
end

#statusString

Corresponds to the JSON property status

Returns:

  • (String)


20279
20280
20281
# File 'lib/google/apis/compute_v1/classes.rb', line 20279

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



20286
20287
20288
20289
20290
20291
20292
20293
20294
20295
20296
20297
# File 'lib/google/apis/compute_v1/classes.rb', line 20286

def update!(**args)
  @accelerators = args[:accelerators] if args.key?(:accelerators)
  @cpu_overcommit_type = args[:cpu_overcommit_type] if args.key?(:cpu_overcommit_type)
  @disks = args[:disks] if args.key?(:disks)
  @instances = args[:instances] if args.key?(:instances)
  @name = args[:name] if args.key?(:name)
  @node_type = args[:node_type] if args.key?(:node_type)
  @satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
  @server_binding = args[:server_binding] if args.key?(:server_binding)
  @server_id = args[:server_id] if args.key?(:server_id)
  @status = args[:status] if args.key?(:status)
end