Class: Google::Apis::AlloydbV1::Node
- Inherits:
-
Object
- Object
- Google::Apis::AlloydbV1::Node
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/alloydb_v1/classes.rb,
lib/google/apis/alloydb_v1/representations.rb,
lib/google/apis/alloydb_v1/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
-
#id ⇒ String
The identifier of the VM e.g.
-
#ip ⇒ String
The private IP address of the VM e.g.
-
#state ⇒ String
Determined by state of the compute VM and postgres-service health.
-
#zone_id ⇒ String
The Compute Engine zone of the VM e.g.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Node
constructor
A new instance of Node.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Node
Returns a new instance of Node.
1469 1470 1471 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 1469 def initialize(**args) update!(**args) end |
Instance Attribute Details
#id ⇒ String
The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".
Corresponds to the JSON property id
1449 1450 1451 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 1449 def id @id end |
#ip ⇒ String
The private IP address of the VM e.g. "10.57.0.34".
Corresponds to the JSON property ip
1454 1455 1456 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 1454 def ip @ip end |
#state ⇒ String
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
1462 1463 1464 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 1462 def state @state end |
#zone_id ⇒ String
The Compute Engine zone of the VM e.g. "us-central1-b".
Corresponds to the JSON property zoneId
1467 1468 1469 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 1467 def zone_id @zone_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1474 1475 1476 1477 1478 1479 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 1474 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 |