Class: Google::Apis::DnsV1beta2::Policy
- Inherits:
-
Object
- Object
- Google::Apis::DnsV1beta2::Policy
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dns_v1beta2/classes.rb,
generated/google/apis/dns_v1beta2/representations.rb,
generated/google/apis/dns_v1beta2/representations.rb
Overview
A policy is a collection of rules applied to one or more networks that specify forwarding behavior for that network.
Instance Attribute Summary collapse
-
#alternative_name_server_config ⇒ Google::Apis::DnsV1beta2::PolicyAlternativeNameServerConfig
Sets an alternative name server for the associated networks.
-
#description ⇒ String
A mutable string of at most 1024 characters associated with this resource for the user's convenience.
-
#enable_inbound_forwarding ⇒ Boolean
(also: #enable_inbound_forwarding?)
Allows networks bound to this policy to receive DNS queries sent by VMs or applications over VPN connections.
-
#id ⇒ Fixnum
Unique identifier for the resource; defined by the server (output only).
-
#kind ⇒ String
Identifies what kind of resource this is.
-
#name ⇒ String
User assigned name for this policy.
-
#networks ⇒ Array<Google::Apis::DnsV1beta2::PolicyNetwork>
List of network names specifying networks to which this policy is applied.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Policy
constructor
A new instance of Policy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Policy
Returns a new instance of Policy
947 948 949 |
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 947 def initialize(**args) update!(**args) end |
Instance Attribute Details
#alternative_name_server_config ⇒ Google::Apis::DnsV1beta2::PolicyAlternativeNameServerConfig
Sets an alternative name server for the associated networks. When specified,
all DNS queries are forwarded to a name server that you choose. Names such as .
internal are not available when an alternative name server is specified.
Corresponds to the JSON property alternativeNameServerConfig
911 912 913 |
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 911 def alternative_name_server_config @alternative_name_server_config end |
#description ⇒ String
A mutable string of at most 1024 characters associated with this resource for
the user's convenience. Has no effect on the policy's function.
Corresponds to the JSON property description
917 918 919 |
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 917 def description @description end |
#enable_inbound_forwarding ⇒ Boolean Also known as: enable_inbound_forwarding?
Allows networks bound to this policy to receive DNS queries sent by VMs or
applications over VPN connections. When enabled, a virtual IP address will be
allocated from each of the sub-networks that are bound to this policy.
Corresponds to the JSON property enableInboundForwarding
924 925 926 |
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 924 def enable_inbound_forwarding @enable_inbound_forwarding end |
#id ⇒ Fixnum
Unique identifier for the resource; defined by the server (output only).
Corresponds to the JSON property id
930 931 932 |
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 930 def id @id end |
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "dns#policy".
Corresponds to the JSON property kind
935 936 937 |
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 935 def kind @kind end |
#name ⇒ String
User assigned name for this policy.
Corresponds to the JSON property name
940 941 942 |
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 940 def name @name end |
#networks ⇒ Array<Google::Apis::DnsV1beta2::PolicyNetwork>
List of network names specifying networks to which this policy is applied.
Corresponds to the JSON property networks
945 946 947 |
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 945 def networks @networks end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
952 953 954 955 956 957 958 959 960 |
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 952 def update!(**args) @alternative_name_server_config = args[:alternative_name_server_config] if args.key?(:alternative_name_server_config) @description = args[:description] if args.key?(:description) @enable_inbound_forwarding = args[:enable_inbound_forwarding] if args.key?(:enable_inbound_forwarding) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @networks = args[:networks] if args.key?(:networks) end |