pub struct ResolverPolicy {
pub name: String,
pub project_default: bool,
pub relay_enabled: bool,
pub upstream_servers: Vec<String>,
pub create_time: Option<Timestamp>,
pub creator: String,
pub tags: BTreeMap<String, String>,
}Expand description
How a VPC’s resolver answers names outside the platform’s own.
Fields§
§name: StringThe policy’s resource name.
project_default: boolWhether this is the project’s default policy in its region, which a
VPC without a resolver policy association relays through. Change it with
SetDefaultResolverPolicy.
relay_enabled: boolWhether the resolver relays names it can’t answer itself to
upstream_servers. Off, it answers only the platform’s own names.
upstream_servers: Vec<String>The resolvers to relay to, at most 5 IPv4 or IPv6 addresses, tried in
order. At least one while relay_enabled is on.
create_time: Option<Timestamp>When the resolver policy was created.
creator: StringThe principal that created the resolver policy, by its full name on iam:
//iam.origincloudapis.eu/users/{user},
//iam.origincloudapis.eu/organizations/{organization}/serviceAccounts/{service_account},
or a platform service agent’s or service’s name when the platform did.
Labels of your own, at most 50. The origin:name tag is the name the
console shows.
Trait Implementations§
Source§impl Clone for ResolverPolicy
impl Clone for ResolverPolicy
Source§impl Debug for ResolverPolicy
impl Debug for ResolverPolicy
Source§impl Default for ResolverPolicy
impl Default for ResolverPolicy
Source§impl<'de> Deserialize<'de> for ResolverPolicy
impl<'de> Deserialize<'de> for ResolverPolicy
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Source§impl Message for ResolverPolicy
impl Message for ResolverPolicy
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.