Class: Google::Apis::DnsV1::PolicyAlternativeNameServerConfig
- Inherits:
-
Object
- Object
- Google::Apis::DnsV1::PolicyAlternativeNameServerConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dns_v1/classes.rb,
lib/google/apis/dns_v1/representations.rb,
lib/google/apis/dns_v1/representations.rb
Instance Attribute Summary collapse
-
#kind ⇒ String
Corresponds to the JSON property
kind. -
#target_name_servers ⇒ Array<Google::Apis::DnsV1::PolicyAlternativeNameServerConfigTargetNameServer>
Sets an alternative name server for the associated networks.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PolicyAlternativeNameServerConfig
constructor
A new instance of PolicyAlternativeNameServerConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PolicyAlternativeNameServerConfig
Returns a new instance of PolicyAlternativeNameServerConfig.
1190 1191 1192 |
# File 'lib/google/apis/dns_v1/classes.rb', line 1190 def initialize(**args) update!(**args) end |
Instance Attribute Details
#kind ⇒ String
Corresponds to the JSON property kind
1181 1182 1183 |
# File 'lib/google/apis/dns_v1/classes.rb', line 1181 def kind @kind end |
#target_name_servers ⇒ Array<Google::Apis::DnsV1::PolicyAlternativeNameServerConfigTargetNameServer>
Sets an alternative name server for the associated networks. When specified,
all DNS queries are forwarded to a name server that you choose. Names such as .
internal are not available when an alternative name server is specified.
Corresponds to the JSON property targetNameServers
1188 1189 1190 |
# File 'lib/google/apis/dns_v1/classes.rb', line 1188 def target_name_servers @target_name_servers end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1195 1196 1197 1198 |
# File 'lib/google/apis/dns_v1/classes.rb', line 1195 def update!(**args) @kind = args[:kind] if args.key?(:kind) @target_name_servers = args[:target_name_servers] if args.key?(:target_name_servers) end |