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

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ NodeGroupNode

Returns a new instance of NodeGroupNode.



17454
17455
17456
# File 'generated/google/apis/compute_v1/classes.rb', line 17454

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

Instance Attribute Details

#instancesArray<String>

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

Returns:

  • (Array<String>)


17427
17428
17429
# File 'generated/google/apis/compute_v1/classes.rb', line 17427

def instances
  @instances
end

#nameString

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

Returns:

  • (String)


17432
17433
17434
# File 'generated/google/apis/compute_v1/classes.rb', line 17432

def name
  @name
end

#node_typeString

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

Returns:

  • (String)


17437
17438
17439
# File 'generated/google/apis/compute_v1/classes.rb', line 17437

def node_type
  @node_type
end

#server_bindingGoogle::Apis::ComputeV1::ServerBinding

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



17442
17443
17444
# File 'generated/google/apis/compute_v1/classes.rb', line 17442

def server_binding
  @server_binding
end

#server_idString

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

Returns:

  • (String)


17447
17448
17449
# File 'generated/google/apis/compute_v1/classes.rb', line 17447

def server_id
  @server_id
end

#statusString

Corresponds to the JSON property status

Returns:

  • (String)


17452
17453
17454
# File 'generated/google/apis/compute_v1/classes.rb', line 17452

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



17459
17460
17461
17462
17463
17464
17465
17466
# File 'generated/google/apis/compute_v1/classes.rb', line 17459

def update!(**args)
  @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