Class: Google::Apis::DnsV1beta2::PolicyAlternativeNameServerConfig
- Inherits:
-
Object
- Object
- Google::Apis::DnsV1beta2::PolicyAlternativeNameServerConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dns_v1beta2/classes.rb,
generated/google/apis/dns_v1beta2/representations.rb,
generated/google/apis/dns_v1beta2/representations.rb
Instance Attribute Summary collapse
-
#kind ⇒ String
Identifies what kind of resource this is.
-
#target_name_servers ⇒ Array<Google::Apis::DnsV1beta2::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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ PolicyAlternativeNameServerConfig
Returns a new instance of PolicyAlternativeNameServerConfig
989 990 991 |
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 989 def initialize(**args) update!(**args) end |
Instance Attribute Details
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "dns#
policyAlternativeNameServerConfig".
Corresponds to the JSON property kind
980 981 982 |
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 980 def kind @kind end |
#target_name_servers ⇒ Array<Google::Apis::DnsV1beta2::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
987 988 989 |
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 987 def target_name_servers @target_name_servers end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
994 995 996 997 |
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 994 def update!(**args) @kind = args[:kind] if args.key?(:kind) @target_name_servers = args[:target_name_servers] if args.key?(:target_name_servers) end |