Policy class

A policy is a collection of DNS rules applied to one or more Virtual Private Cloud resources.

Constructors

Policy()
Policy.fromJson(Map _json)

Properties

alternativeNameServerConfig 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.
read / write
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.
read / write
enableInboundForwarding bool
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.
read / write
enableLogging bool
Controls whether logging is enabled for the networks bound to this policy. Defaults to no logging if not set.
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
id String
Unique identifier for the resource; defined by the server (output only).
read / write
kind String
Identifies what kind of resource this is. Value: the fixed string "dns#policy".
read / write
name String
User assigned name for this policy.
read / write
networks List<PolicyNetwork>
List of network names specifying networks to which this policy is applied.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, Object>
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited