Class: Google::Apis::ComputeBeta::NodeGroupNode

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NodeGroupNode

Returns a new instance of NodeGroupNode.



25511
25512
25513
# File 'lib/google/apis/compute_beta/classes.rb', line 25511

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

Instance Attribute Details

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

Accelerators for this node. Corresponds to the JSON property accelerators



25448
25449
25450
# File 'lib/google/apis/compute_beta/classes.rb', line 25448

def accelerators
  @accelerators
end

#consumed_resourcesGoogle::Apis::ComputeBeta::InstanceConsumptionInfo

Node resources that are reserved by all instances. Corresponds to the JSON property consumedResources



25453
25454
25455
# File 'lib/google/apis/compute_beta/classes.rb', line 25453

def consumed_resources
  @consumed_resources
end

#cpu_overcommit_typeString

CPU overcommit. Corresponds to the JSON property cpuOvercommitType

Returns:

  • (String)


25458
25459
25460
# File 'lib/google/apis/compute_beta/classes.rb', line 25458

def cpu_overcommit_type
  @cpu_overcommit_type
end

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

Local disk configurations. Corresponds to the JSON property disks



25463
25464
25465
# File 'lib/google/apis/compute_beta/classes.rb', line 25463

def disks
  @disks
end

#instance_consumption_dataArray<Google::Apis::ComputeBeta::InstanceConsumptionData>

Instance data that shows consumed resources on the node. Corresponds to the JSON property instanceConsumptionData



25468
25469
25470
# File 'lib/google/apis/compute_beta/classes.rb', line 25468

def instance_consumption_data
  @instance_consumption_data
end

#instancesArray<String>

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

Returns:

  • (Array<String>)


25473
25474
25475
# File 'lib/google/apis/compute_beta/classes.rb', line 25473

def instances
  @instances
end

#nameString

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

Returns:

  • (String)


25478
25479
25480
# File 'lib/google/apis/compute_beta/classes.rb', line 25478

def name
  @name
end

#node_typeString

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

Returns:

  • (String)


25483
25484
25485
# File 'lib/google/apis/compute_beta/classes.rb', line 25483

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)


25488
25489
25490
# File 'lib/google/apis/compute_beta/classes.rb', line 25488

def satisfies_pzs
  @satisfies_pzs
end

#server_bindingGoogle::Apis::ComputeBeta::ServerBinding

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



25494
25495
25496
# File 'lib/google/apis/compute_beta/classes.rb', line 25494

def server_binding
  @server_binding
end

#server_idString

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

Returns:

  • (String)


25499
25500
25501
# File 'lib/google/apis/compute_beta/classes.rb', line 25499

def server_id
  @server_id
end

#statusString

Corresponds to the JSON property status

Returns:

  • (String)


25504
25505
25506
# File 'lib/google/apis/compute_beta/classes.rb', line 25504

def status
  @status
end

#total_resourcesGoogle::Apis::ComputeBeta::InstanceConsumptionInfo

Total amount of available resources on the node. Corresponds to the JSON property totalResources



25509
25510
25511
# File 'lib/google/apis/compute_beta/classes.rb', line 25509

def total_resources
  @total_resources
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



25516
25517
25518
25519
25520
25521
25522
25523
25524
25525
25526
25527
25528
25529
25530
# File 'lib/google/apis/compute_beta/classes.rb', line 25516

def update!(**args)
  @accelerators = args[:accelerators] if args.key?(:accelerators)
  @consumed_resources = args[:consumed_resources] if args.key?(:consumed_resources)
  @cpu_overcommit_type = args[:cpu_overcommit_type] if args.key?(:cpu_overcommit_type)
  @disks = args[:disks] if args.key?(:disks)
  @instance_consumption_data = args[:instance_consumption_data] if args.key?(:instance_consumption_data)
  @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)
  @total_resources = args[:total_resources] if args.key?(:total_resources)
end