Class: Google::Apis::SqladminV1::ConnectPoolNodeConfig
- Inherits:
-
Object
- Object
- Google::Apis::SqladminV1::ConnectPoolNodeConfig
- 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.
-
#ip_addresses ⇒ Array<Google::Apis::SqladminV1::IpMapping>
Output only.
-
#name ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ConnectPoolNodeConfig
constructor
A new instance of ConnectPoolNodeConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ConnectPoolNodeConfig
Returns a new instance of ConnectPoolNodeConfig.
860 861 862 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 860 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
842 843 844 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 842 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
847 848 849 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 847 def dns_names @dns_names 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
853 854 855 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 853 def ip_addresses @ip_addresses end |
#name ⇒ String
Output only. The name of the read pool node. Doesn't include the project ID.
Corresponds to the JSON property name
858 859 860 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 858 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
865 866 867 868 869 870 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 865 def update!(**args) @dns_name = args[:dns_name] if args.key?(:dns_name) @dns_names = args[:dns_names] if args.key?(:dns_names) @ip_addresses = args[:ip_addresses] if args.key?(:ip_addresses) @name = args[:name] if args.key?(:name) end |