Struct google_dns1::api::Policy
source · pub struct Policy {
pub alternative_name_server_config: Option<PolicyAlternativeNameServerConfig>,
pub description: Option<String>,
pub enable_inbound_forwarding: Option<bool>,
pub enable_logging: Option<bool>,
pub id: Option<u64>,
pub kind: Option<String>,
pub name: Option<String>,
pub networks: Option<Vec<PolicyNetwork>>,
}
Expand description
A policy is a collection of DNS rules applied to one or more Virtual Private Cloud resources.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- create policies (request|response)
- get policies (response)
- patch policies (request)
- update policies (request)
Fields§
§alternative_name_server_config: Option<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.
description: Option<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.
enable_inbound_forwarding: Option<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 is allocated from each of the subnetworks that are bound to this policy.
enable_logging: Option<bool>
Controls whether logging is enabled for the networks bound to this policy. Defaults to no logging if not set.
id: Option<u64>
Unique identifier for the resource; defined by the server (output only).
kind: Option<String>
no description provided
name: Option<String>
User-assigned name for this policy.
networks: Option<Vec<PolicyNetwork>>
List of network names specifying networks to which this policy is applied.