Class: Google::Apis::SqladminV1::PoolNodeConfig
- Inherits:
-
Object
- Object
- Google::Apis::SqladminV1::PoolNodeConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/sqladmin_v1/classes.rb,
lib/google/apis/sqladmin_v1/representations.rb,
lib/google/apis/sqladmin_v1/representations.rb
Overview
Details of a single read pool node of a read pool.
Instance Attribute Summary collapse
-
#dns_name ⇒ String
Output only.
-
#dns_names ⇒ Array<Google::Apis::SqladminV1::DnsNameMapping>
Output only.
-
#gce_zone ⇒ String
Output only.
-
#ip_addresses ⇒ Array<Google::Apis::SqladminV1::IpMapping>
Output only.
-
#name ⇒ String
Output only.
-
#state ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PoolNodeConfig
constructor
A new instance of PoolNodeConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PoolNodeConfig
Returns a new instance of PoolNodeConfig.
4481 4482 4483 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 4481 def initialize(**args) update!(**args) end |
Instance Attribute Details
#dns_name ⇒ String
Output only. The DNS name of the read pool node.
Corresponds to the JSON property dnsName
4452 4453 4454 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 4452 def dns_name @dns_name end |
#dns_names ⇒ Array<Google::Apis::SqladminV1::DnsNameMapping>
Output only. The list of DNS names used by this read pool node.
Corresponds to the JSON property dnsNames
4457 4458 4459 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 4457 def dns_names @dns_names end |
#gce_zone ⇒ String
Output only. The zone of the read pool node.
Corresponds to the JSON property gceZone
4462 4463 4464 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 4462 def gce_zone @gce_zone end |
#ip_addresses ⇒ Array<Google::Apis::SqladminV1::IpMapping>
Output only. Mappings containing IP addresses that can be used to connect to
the read pool node.
Corresponds to the JSON property ipAddresses
4468 4469 4470 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 4468 def ip_addresses @ip_addresses end |
#name ⇒ String
Output only. The name of the read pool node, to be used for retrieving metrics
and logs.
Corresponds to the JSON property name
4474 4475 4476 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 4474 def name @name end |
#state ⇒ String
Output only. The current state of the read pool node.
Corresponds to the JSON property state
4479 4480 4481 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 4479 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4486 4487 4488 4489 4490 4491 4492 4493 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 4486 def update!(**args) @dns_name = args[:dns_name] if args.key?(:dns_name) @dns_names = args[:dns_names] if args.key?(:dns_names) @gce_zone = args[:gce_zone] if args.key?(:gce_zone) @ip_addresses = args[:ip_addresses] if args.key?(:ip_addresses) @name = args[:name] if args.key?(:name) @state = args[:state] if args.key?(:state) end |