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

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/compute_v1/classes.rb,
generated/google/apis/compute_v1/representations.rb,
generated/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.



18977
18978
18979
# File 'generated/google/apis/compute_v1/classes.rb', line 18977

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

Instance Attribute Details

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

Accelerators for this node. Corresponds to the JSON property accelerators



18935
18936
18937
# File 'generated/google/apis/compute_v1/classes.rb', line 18935

def accelerators
  @accelerators
end

#cpu_overcommit_typeString

CPU overcommit. Corresponds to the JSON property cpuOvercommitType

Returns:

  • (String)


18940
18941
18942
# File 'generated/google/apis/compute_v1/classes.rb', line 18940

def cpu_overcommit_type
  @cpu_overcommit_type
end

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

Local disk configurations. Corresponds to the JSON property disks



18945
18946
18947
# File 'generated/google/apis/compute_v1/classes.rb', line 18945

def disks
  @disks
end

#instancesArray<String>

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

Returns:

  • (Array<String>)


18950
18951
18952
# File 'generated/google/apis/compute_v1/classes.rb', line 18950

def instances
  @instances
end

#nameString

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

Returns:

  • (String)


18955
18956
18957
# File 'generated/google/apis/compute_v1/classes.rb', line 18955

def name
  @name
end

#node_typeString

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

Returns:

  • (String)


18960
18961
18962
# File 'generated/google/apis/compute_v1/classes.rb', line 18960

def node_type
  @node_type
end

#server_bindingGoogle::Apis::ComputeV1::ServerBinding

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



18965
18966
18967
# File 'generated/google/apis/compute_v1/classes.rb', line 18965

def server_binding
  @server_binding
end

#server_idString

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

Returns:

  • (String)


18970
18971
18972
# File 'generated/google/apis/compute_v1/classes.rb', line 18970

def server_id
  @server_id
end

#statusString

Corresponds to the JSON property status

Returns:

  • (String)


18975
18976
18977
# File 'generated/google/apis/compute_v1/classes.rb', line 18975

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18982
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992
# File 'generated/google/apis/compute_v1/classes.rb', line 18982

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)
  @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