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.



41319
41320
41321
# File 'lib/google/apis/compute_beta/classes.rb', line 41319

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

Instance Attribute Details

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

Accelerators for this node. Corresponds to the JSON property accelerators



41251
41252
41253
# File 'lib/google/apis/compute_beta/classes.rb', line 41251

def accelerators
  @accelerators
end

#consumed_resourcesGoogle::Apis::ComputeBeta::InstanceConsumptionInfo

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



41256
41257
41258
# File 'lib/google/apis/compute_beta/classes.rb', line 41256

def consumed_resources
  @consumed_resources
end

#cpu_overcommit_typeString

CPU overcommit. Corresponds to the JSON property cpuOvercommitType

Returns:

  • (String)


41261
41262
41263
# File 'lib/google/apis/compute_beta/classes.rb', line 41261

def cpu_overcommit_type
  @cpu_overcommit_type
end

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

Local disk configurations. Corresponds to the JSON property disks



41266
41267
41268
# File 'lib/google/apis/compute_beta/classes.rb', line 41266

def disks
  @disks
end

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

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



41271
41272
41273
# File 'lib/google/apis/compute_beta/classes.rb', line 41271

def instance_consumption_data
  @instance_consumption_data
end

#instancesArray<String>

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

Returns:

  • (Array<String>)


41276
41277
41278
# File 'lib/google/apis/compute_beta/classes.rb', line 41276

def instances
  @instances
end

#nameString

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

Returns:

  • (String)


41281
41282
41283
# File 'lib/google/apis/compute_beta/classes.rb', line 41281

def name
  @name
end

#node_typeString

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

Returns:

  • (String)


41286
41287
41288
# File 'lib/google/apis/compute_beta/classes.rb', line 41286

def node_type
  @node_type
end

#satisfies_pzsBoolean Also known as: satisfies_pzs?

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

Returns:

  • (Boolean)


41291
41292
41293
# File 'lib/google/apis/compute_beta/classes.rb', line 41291

def satisfies_pzs
  @satisfies_pzs
end

#server_bindingGoogle::Apis::ComputeBeta::ServerBinding

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



41297
41298
41299
# File 'lib/google/apis/compute_beta/classes.rb', line 41297

def server_binding
  @server_binding
end

#server_idString

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

Returns:

  • (String)


41302
41303
41304
# File 'lib/google/apis/compute_beta/classes.rb', line 41302

def server_id
  @server_id
end

#statusString

Corresponds to the JSON property status

Returns:

  • (String)


41307
41308
41309
# File 'lib/google/apis/compute_beta/classes.rb', line 41307

def status
  @status
end

#total_resourcesGoogle::Apis::ComputeBeta::InstanceConsumptionInfo

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



41312
41313
41314
# File 'lib/google/apis/compute_beta/classes.rb', line 41312

def total_resources
  @total_resources
end

#upcoming_maintenanceGoogle::Apis::ComputeBeta::UpcomingMaintenance

Upcoming Maintenance notification information. Corresponds to the JSON property upcomingMaintenance



41317
41318
41319
# File 'lib/google/apis/compute_beta/classes.rb', line 41317

def upcoming_maintenance
  @upcoming_maintenance
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



41324
41325
41326
41327
41328
41329
41330
41331
41332
41333
41334
41335
41336
41337
41338
41339
# File 'lib/google/apis/compute_beta/classes.rb', line 41324

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)
  @upcoming_maintenance = args[:upcoming_maintenance] if args.key?(:upcoming_maintenance)
end