Class: Google::Apis::DnsV1beta2::ResponsePolicy

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

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.



1889
1890
1891
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1889

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)


1861
1862
1863
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1861

def description
  @description
end

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

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



1867
1868
1869
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1867

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)


1872
1873
1874
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1872

def id
  @id
end

#kindString

Corresponds to the JSON property kind

Returns:

  • (String)


1877
1878
1879
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1877

def kind
  @kind
end

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

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



1882
1883
1884
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1882

def networks
  @networks
end

#response_policy_nameString

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

Returns:

  • (String)


1887
1888
1889
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1887

def response_policy_name
  @response_policy_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1894
1895
1896
1897
1898
1899
1900
1901
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1894

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