Class: Google::Apis::DnsV1::ResponsePolicy

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ResponsePolicy

Returns a new instance of ResponsePolicy.



2597
2598
2599
# File 'lib/google/apis/dns_v1/classes.rb', line 2597

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

Instance Attribute Details

#descriptionString

User-provided description for this Response Policy. Corresponds to the JSON property description

Returns:

  • (String)


2564
2565
2566
# File 'lib/google/apis/dns_v1/classes.rb', line 2564

def description
  @description
end

#gke_clustersArray<Google::Apis::DnsV1::ResponsePolicyGkeCluster>

The list of Google Kubernetes Engine clusters to which this response policy is applied. Corresponds to the JSON property gkeClusters



2570
2571
2572
# File 'lib/google/apis/dns_v1/classes.rb', line 2570

def gke_clusters
  @gke_clusters
end

#idFixnum

Unique identifier for the resource; defined by the server (output only). Corresponds to the JSON property id

Returns:

  • (Fixnum)


2575
2576
2577
# File 'lib/google/apis/dns_v1/classes.rb', line 2575

def id
  @id
end

#kindString

Corresponds to the JSON property kind

Returns:

  • (String)


2580
2581
2582
# File 'lib/google/apis/dns_v1/classes.rb', line 2580

def kind
  @kind
end

#labelsHash<String,String>

User labels. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


2585
2586
2587
# File 'lib/google/apis/dns_v1/classes.rb', line 2585

def labels
  @labels
end

#networksArray<Google::Apis::DnsV1::ResponsePolicyNetwork>

List of network names specifying networks to which this policy is applied. Corresponds to the JSON property networks



2590
2591
2592
# File 'lib/google/apis/dns_v1/classes.rb', line 2590

def networks
  @networks
end

#response_policy_nameString

User assigned name for this Response Policy. Corresponds to the JSON property responsePolicyName

Returns:

  • (String)


2595
2596
2597
# File 'lib/google/apis/dns_v1/classes.rb', line 2595

def response_policy_name
  @response_policy_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2602
2603
2604
2605
2606
2607
2608
2609
2610
# File 'lib/google/apis/dns_v1/classes.rb', line 2602

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