class Google::Apis::DnsV1::ResponsePolicyRule
A Response Policy
Rule is a selector that applies its behavior to queries that match the selector. Selectors are DNS names, which may be wildcards or exact matches. Each DNS query subject to a Response Policy
matches at most one ResponsePolicyRule
, as identified by the dns_name
field with the longest matching suffix.
Attributes
Answer this query with a behavior rather than DNS data. Corresponds to the JSON property `behavior` @return [String]
The DNS name (wildcard or exact) to apply this rule to. Must be unique within the Response Policy
Rule. Corresponds to the JSON property `dnsName` @return [String]
Corresponds to the JSON property `kind` @return [String]
Answer this query directly with DNS data. These ResourceRecordSets override any other DNS behavior for the matched name; in particular they override private zones, the public internet, and GCP internal DNS. No SOA nor NS types are allowed. Corresponds to the JSON property `localData` @return [Google::Apis::DnsV1::ResponsePolicyRuleLocalData]
An identifier for this rule. Must be unique with the ResponsePolicy
. Corresponds to the JSON property `ruleName` @return [String]
Public Class Methods
# File lib/google/apis/dns_v1/classes.rb, line 2642 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/dns_v1/classes.rb, line 2647 def update!(**args) @behavior = args[:behavior] if args.key?(:behavior) @dns_name = args[:dns_name] if args.key?(:dns_name) @kind = args[:kind] if args.key?(:kind) @local_data = args[:local_data] if args.key?(:local_data) @rule_name = args[:rule_name] if args.key?(:rule_name) end