Class: Google::Apis::DnsV1beta2::ResponsePolicyRulesPatchResponse

Inherits:
Object
  • Object
show all
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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ResponsePolicyRulesPatchResponse

Returns a new instance of ResponsePolicyRulesPatchResponse.



2554
2555
2556
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 2554

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#headerGoogle::Apis::DnsV1beta2::ResponseHeader

Elements common to every response. Corresponds to the JSON property header



2543
2544
2545
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 2543

def header
  @header
end

#response_policy_ruleGoogle::Apis::DnsV1beta2::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. Corresponds to the JSON property responsePolicyRule



2552
2553
2554
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 2552

def response_policy_rule
  @response_policy_rule
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2559
2560
2561
2562
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 2559

def update!(**args)
  @header = args[:header] if args.key?(:header)
  @response_policy_rule = args[:response_policy_rule] if args.key?(:response_policy_rule)
end