Class: Google::Apis::DnsV1::ResponsePolicy
- Inherits:
-
Object
- Object
- Google::Apis::DnsV1::ResponsePolicy
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dns_v1/classes.rb,
lib/google/apis/dns_v1/representations.rb,
lib/google/apis/dns_v1/representations.rb
Overview
A Response Policy is a collection of selectors that apply to queries made against one or more Virtual Private Cloud networks.
Instance Attribute Summary collapse
-
#description ⇒ String
User-provided description for this Response Policy.
-
#id ⇒ Fixnum
Unique identifier for the resource; defined by the server (output only).
-
#kind ⇒ String
Corresponds to the JSON property
kind. -
#networks ⇒ Array<Google::Apis::DnsV1::ResponsePolicyNetwork>
List of network names specifying networks to which this policy is applied.
-
#response_policy_name ⇒ String
User assigned name for this Response Policy.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ResponsePolicy
constructor
A new instance of ResponsePolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ResponsePolicy
Returns a new instance of ResponsePolicy.
2487 2488 2489 |
# File 'lib/google/apis/dns_v1/classes.rb', line 2487 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
User-provided description for this Response Policy.
Corresponds to the JSON property description
2465 2466 2467 |
# File 'lib/google/apis/dns_v1/classes.rb', line 2465 def description @description end |
#id ⇒ Fixnum
Unique identifier for the resource; defined by the server (output only).
Corresponds to the JSON property id
2470 2471 2472 |
# File 'lib/google/apis/dns_v1/classes.rb', line 2470 def id @id end |
#kind ⇒ String
Corresponds to the JSON property kind
2475 2476 2477 |
# File 'lib/google/apis/dns_v1/classes.rb', line 2475 def kind @kind end |
#networks ⇒ Array<Google::Apis::DnsV1::ResponsePolicyNetwork>
List of network names specifying networks to which this policy is applied.
Corresponds to the JSON property networks
2480 2481 2482 |
# File 'lib/google/apis/dns_v1/classes.rb', line 2480 def networks @networks end |
#response_policy_name ⇒ String
User assigned name for this Response Policy.
Corresponds to the JSON property responsePolicyName
2485 2486 2487 |
# File 'lib/google/apis/dns_v1/classes.rb', line 2485 def response_policy_name @response_policy_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2492 2493 2494 2495 2496 2497 2498 |
# File 'lib/google/apis/dns_v1/classes.rb', line 2492 def update!(**args) @description = args[:description] if args.key?(:description) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @networks = args[:networks] if args.key?(:networks) @response_policy_name = args[:response_policy_name] if args.key?(:response_policy_name) end |