class Google::Apis::DnsV1::ResponsePolicy

A Response Policy is a collection of selectors that apply to queries made against one or more Virtual Private Cloud networks.

Attributes

description[RW]

User-provided description for this Response Policy. Corresponds to the JSON property `description` @return [String]

gke_clusters[RW]

The list of Google Kubernetes Engine clusters to which this response policy is applied. Corresponds to the JSON property `gkeClusters` @return [Array<Google::Apis::DnsV1::ResponsePolicyGkeCluster>]

id[RW]

Unique identifier for the resource; defined by the server (output only). Corresponds to the JSON property `id` @return [Fixnum]

kind[RW]

Corresponds to the JSON property `kind` @return [String]

labels[RW]

User labels. Corresponds to the JSON property `labels` @return [Hash<String,String>]

networks[RW]

List of network names specifying networks to which this policy is applied. Corresponds to the JSON property `networks` @return [Array<Google::Apis::DnsV1::ResponsePolicyNetwork>]

response_policy_name[RW]

User assigned name for this Response Policy. Corresponds to the JSON property `responsePolicyName` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/dns_v1/classes.rb, line 2534
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/dns_v1/classes.rb, line 2539
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)
  @labels = args[:labels] if args.key?(:labels)
  @networks = args[:networks] if args.key?(:networks)
  @response_policy_name = args[:response_policy_name] if args.key?(:response_policy_name)
end