Class: Google::Apis::AlloydbV1beta::DnsConfig
- Inherits:
-
Object
- Object
- Google::Apis::AlloydbV1beta::DnsConfig
- 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
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.
1278 1279 1280 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 1278 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
1271 1272 1273 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 1271 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
1276 1277 1278 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 1276 def dns_record_type @dns_record_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1283 1284 1285 1286 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 1283 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 |