Class Policy
A policy is a collection of DNS rules applied to one or more Virtual Private Cloud resources.
Inheritance
Implements
Inherited Members
Namespace: Google.Apis.Dns.v2.Data
Assembly: Google.Apis.Dns.v2.dll
Syntax
public class Policy : IDirectResponseSchema
Properties
AlternativeNameServerConfig
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.
Declaration
[JsonProperty("alternativeNameServerConfig")]
public virtual PolicyAlternativeNameServerConfig AlternativeNameServerConfig { get; set; }
Property Value
Type | Description |
---|---|
PolicyAlternativeNameServerConfig |
Description
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.
Declaration
[JsonProperty("description")]
public virtual string Description { get; set; }
Property Value
Type | Description |
---|---|
System.String |
EnableInboundForwarding
Allows networks bound to this policy to receive DNS queries sent by VMs or applications over VPN connections. When enabled, a virtual IP address is allocated from each of the subnetworks that are bound to this policy.
Declaration
[JsonProperty("enableInboundForwarding")]
public virtual bool? EnableInboundForwarding { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
EnableLogging
Controls whether logging is enabled for the networks bound to this policy. Defaults to no logging if not set.
Declaration
[JsonProperty("enableLogging")]
public virtual bool? EnableLogging { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Id
Unique identifier for the resource; defined by the server (output only).
Declaration
[JsonProperty("id")]
public virtual ulong? Id { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> |
Kind
Declaration
[JsonProperty("kind")]
public virtual string Kind { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Name
User-assigned name for this policy.
Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Networks
List of network names specifying networks to which this policy is applied.
Declaration
[JsonProperty("networks")]
public virtual IList<PolicyNetwork> Networks { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<PolicyNetwork> |