pub struct HostedZone {
pub name: String,
pub dns_name: String,
pub visibility: i32,
pub state: i32,
pub name_servers: Vec<String>,
pub challenge: Option<OwnershipChallenge>,
pub create_time: Option<Timestamp>,
pub creator: String,
pub tags: BTreeMap<String, String>,
}Expand description
A domain a project’s records are answered for.
Fields§
§name: StringThe zone’s resource name.
dns_name: StringThe domain, such as example.com, without the final dot; answered in
lowercase. A public zone’s has at least two labels and at most 235
characters, so its challenge name fits, and isn’t a special-use domain
or below one, as none is delegated on the internet: test,
localhost, invalid, example, local, onion, alt, internal
and home.arpa. A private zone’s may have one
label, but isn’t internal or a name below it, which answer each
instance’s own name. Neither is one of the platform’s own domains or a
name below one.
visibility: i32Where the zone is answered.
state: i32Whether the zone is answered.
name_servers: Vec<String>The name servers to delegate a public zone to at its registrar, as NS records of its name. They are the zone’s own: no other zone is given them, so a delegation to them proves control of the name and verifies the zone, as the challenge does. Fixed when the zone is created. Empty for a private zone.
challenge: Option<OwnershipChallenge>How a public zone proves control of its name, and how it went. Unset for a private zone.
create_time: Option<Timestamp>When the zone was created.
creator: StringThe principal that created the zone, 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.
Implementations§
Source§impl HostedZone
impl HostedZone
Sourcepub fn visibility(&self) -> Visibility
pub fn visibility(&self) -> Visibility
Returns the enum value of visibility, or the default if the field is set to an invalid enum value.
Sourcepub fn set_visibility(&mut self, value: Visibility)
pub fn set_visibility(&mut self, value: Visibility)
Sets visibility to the provided enum value.
Trait Implementations§
Source§impl Clone for HostedZone
impl Clone for HostedZone
Source§impl Debug for HostedZone
impl Debug for HostedZone
Source§impl Default for HostedZone
impl Default for HostedZone
Source§impl<'de> Deserialize<'de> for HostedZone
impl<'de> Deserialize<'de> for HostedZone
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 HostedZone
impl Message for HostedZone
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.