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.
2684 2685 2686 |
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 2684 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
2658 2659 2660 |
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 2658 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
2664 2665 2666 |
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 2664 def dns_name @dns_name end |
#kind ⇒ String
Corresponds to the JSON property kind
2669 2670 2671 |
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 2669 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
2677 2678 2679 |
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 2677 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
2682 2683 2684 |
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 2682 def rule_name @rule_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2689 2690 2691 2692 2693 2694 2695 |
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 2689 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 |