Class Policy
A policy is a collection of DNS rules applied to one or more Virtual Private Cloud resources.
Implements
Inherited Members
Namespace: Google.Apis.Dns.v1beta2.Data
Assembly: Google.Apis.Dns.v1beta2.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 |
---|---|
string |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
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 |
---|---|
bool? |
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 |
---|---|
bool? |
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 |
---|---|
ulong? |
Kind
Declaration
[JsonProperty("kind")]
public virtual string Kind { get; set; }
Property Value
Type | Description |
---|---|
string |
Name
User-assigned name for this policy.
Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
Type | Description |
---|---|
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 |
---|---|
IList<PolicyNetwork> |