Class: Google::Apis::DnsV1beta2::ResponsePolicyRule
- Inherits:
-
Object
- Object
- Google::Apis::DnsV1beta2::ResponsePolicyRule
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dns_v1beta2/classes.rb,
lib/google/apis/dns_v1beta2/representations.rb,
lib/google/apis/dns_v1beta2/representations.rb
Overview
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.
Instance Attribute Summary collapse
-
#behavior ⇒ String
Answer this query with a behavior rather than DNS data.
-
#dns_name ⇒ String
The DNS name (wildcard or exact) to apply this rule to.
-
#kind ⇒ String
Corresponds to the JSON property
kind
. -
#local_data ⇒ Google::Apis::DnsV1beta2::ResponsePolicyRuleLocalData
Answer this query directly with DNS data.
-
#rule_name ⇒ String
An identifier for this rule.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ResponsePolicyRule
constructor
A new instance of ResponsePolicyRule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ResponsePolicyRule
Returns a new instance of ResponsePolicyRule.
2658 2659 2660 |
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 2658 def initialize(**args) update!(**args) end |
Instance Attribute Details
#behavior ⇒ String
Answer this query with a behavior rather than DNS data.
Corresponds to the JSON property behavior
2632 2633 2634 |
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 2632 def behavior @behavior end |
#dns_name ⇒ 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
2638 2639 2640 |
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 2638 def dns_name @dns_name end |
#kind ⇒ String
Corresponds to the JSON property kind
2643 2644 2645 |
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 2643 def kind @kind end |
#local_data ⇒ Google::Apis::DnsV1beta2::ResponsePolicyRuleLocalData
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
2651 2652 2653 |
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 2651 def local_data @local_data end |
#rule_name ⇒ String
An identifier for this rule. Must be unique with the ResponsePolicy.
Corresponds to the JSON property ruleName
2656 2657 2658 |
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 2656 def rule_name @rule_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2663 2664 2665 2666 2667 2668 2669 |
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 2663 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 |