Class: Google::Apis::AlloydbV1alpha::DnsConfig
- Inherits:
-
Object
- Object
- Google::Apis::AlloydbV1alpha::DnsConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/alloydb_v1alpha/classes.rb,
lib/google/apis/alloydb_v1alpha/representations.rb,
lib/google/apis/alloydb_v1alpha/representations.rb
Overview
The DNS config for the endpoint, containing the DNS record name, type and targets.
Instance Attribute Summary collapse
-
#dns_name ⇒ String
The fully qualified domain name (FQDN) of the DNS record, e.g., ".location.
-
#dns_record_type ⇒ String
The type of the DNS record, e.g., "A", "AAAA", "CNAME".
Instance Method Summary collapse
-
#initialize(**args) ⇒ DnsConfig
constructor
A new instance of DnsConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DnsConfig
Returns a new instance of DnsConfig.
1305 1306 1307 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 1305 def initialize(**args) update!(**args) end |
Instance Attribute Details
#dns_name ⇒ String
The fully qualified domain name (FQDN) of the DNS record, e.g., ".location.
alloydb-psa.goog".
Corresponds to the JSON property dnsName
1298 1299 1300 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 1298 def dns_name @dns_name end |
#dns_record_type ⇒ String
The type of the DNS record, e.g., "A", "AAAA", "CNAME".
Corresponds to the JSON property dnsRecordType
1303 1304 1305 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 1303 def dns_record_type @dns_record_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1310 1311 1312 1313 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 1310 def update!(**args) @dns_name = args[:dns_name] if args.key?(:dns_name) @dns_record_type = args[:dns_record_type] if args.key?(:dns_record_type) end |