Class: Google::Apis::AlloydbV1beta::Node

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

Overview

Details of a single node in the instance. Nodes in an AlloyDB instance are ephemereal, they can change during update, failover, autohealing and resize operations.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Node

Returns a new instance of Node.



1627
1628
1629
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 1627

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

Instance Attribute Details

#idString

The identifier of the VM e.g. "test-read-0601-407e52be-ms3l". Corresponds to the JSON property id

Returns:

  • (String)


1607
1608
1609
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 1607

def id
  @id
end

#ipString

The private IP address of the VM e.g. "10.57.0.34". Corresponds to the JSON property ip

Returns:

  • (String)


1612
1613
1614
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 1612

def ip
  @ip
end

#stateString

Determined by state of the compute VM and postgres-service health. Compute VM state can have values listed in https://cloud.google.com/compute/docs/ instances/instance-life-cycle and postgres-service health can have values: HEALTHY and UNHEALTHY. Corresponds to the JSON property state

Returns:

  • (String)


1620
1621
1622
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 1620

def state
  @state
end

#zone_idString

The Compute Engine zone of the VM e.g. "us-central1-b". Corresponds to the JSON property zoneId

Returns:

  • (String)


1625
1626
1627
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 1625

def zone_id
  @zone_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1632
1633
1634
1635
1636
1637
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 1632

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @ip = args[:ip] if args.key?(:ip)
  @state = args[:state] if args.key?(:state)
  @zone_id = args[:zone_id] if args.key?(:zone_id)
end