Class: Google::Apis::DnsV1beta2::ResponsePolicy
- Inherits:
-
Object
- Object
- Google::Apis::DnsV1beta2::ResponsePolicy
- 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 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.
-
#gke_clusters ⇒ Array<Google::Apis::DnsV1beta2::ResponsePolicyGkeCluster>
The list of Google Kubernetes Engine clusters to which this response policy is applied.
-
#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::DnsV1beta2::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.
2375 2376 2377 |
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 2375 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
User-provided description for this Response Policy.
Corresponds to the JSON property description
2347 2348 2349 |
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 2347 def description @description end |
#gke_clusters ⇒ Array<Google::Apis::DnsV1beta2::ResponsePolicyGkeCluster>
The list of Google Kubernetes Engine clusters to which this response policy is
applied.
Corresponds to the JSON property gkeClusters
2353 2354 2355 |
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 2353 def gke_clusters @gke_clusters end |
#id ⇒ Fixnum
Unique identifier for the resource; defined by the server (output only).
Corresponds to the JSON property id
2358 2359 2360 |
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 2358 def id @id end |
#kind ⇒ String
Corresponds to the JSON property kind
2363 2364 2365 |
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 2363 def kind @kind end |
#networks ⇒ Array<Google::Apis::DnsV1beta2::ResponsePolicyNetwork>
List of network names specifying networks to which this policy is applied.
Corresponds to the JSON property networks
2368 2369 2370 |
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 2368 def networks @networks end |
#response_policy_name ⇒ String
User assigned name for this Response Policy.
Corresponds to the JSON property responsePolicyName
2373 2374 2375 |
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 2373 def response_policy_name @response_policy_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2380 2381 2382 2383 2384 2385 2386 2387 |
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 2380 def update!(**args) @description = args[:description] if args.key?(:description) @gke_clusters = args[:gke_clusters] if args.key?(:gke_clusters) @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 |