Struct google_api_proto::google::cloud::domains::v1alpha2::Registration
source · pub struct Registration {
pub name: String,
pub domain_name: String,
pub create_time: Option<Timestamp>,
pub expire_time: Option<Timestamp>,
pub state: i32,
pub issues: Vec<i32>,
pub labels: BTreeMap<String, String>,
pub management_settings: Option<ManagementSettings>,
pub dns_settings: Option<DnsSettings>,
pub contact_settings: Option<ContactSettings>,
pub pending_contact_settings: Option<ContactSettings>,
pub supported_privacy: Vec<i32>,
}Expand description
The Registration resource facilitates managing and configuring domain name
registrations.
There are several ways to create a new Registration resource:
To create a new Registration resource, find a suitable domain name by
calling the SearchDomains method with a query to see available domain name
options. After choosing a name, call RetrieveRegisterParameters to
ensure availability and obtain information like pricing, which is needed to
build a call to RegisterDomain.
Another way to create a new Registration is to transfer an existing
domain from another registrar. First, go to the current registrar to unlock
the domain for transfer and retrieve the domain’s transfer authorization
code. Then call RetrieveTransferParameters to confirm that the domain is
unlocked and to get values needed to build a call to TransferDomain.
Fields§
§name: StringOutput only. Name of the Registration resource, in the format
projects/*/locations/*/registrations/<domain_name>.
domain_name: StringRequired. Immutable. The domain name. Unicode domain names must be expressed in Punycode format.
create_time: Option<Timestamp>Output only. The creation timestamp of the Registration resource.
expire_time: Option<Timestamp>Output only. The expiration timestamp of the Registration.
state: i32Output only. The state of the Registration
issues: Vec<i32>Output only. The set of issues with the Registration that require attention.
labels: BTreeMap<String, String>Set of labels associated with the Registration.
management_settings: Option<ManagementSettings>Settings for management of the Registration, including renewal, billing,
and transfer. You cannot update these with the UpdateRegistration
method. To update these settings, use the ConfigureManagementSettings
method.
dns_settings: Option<DnsSettings>Settings controlling the DNS configuration of the Registration. You
cannot update these with the UpdateRegistration method. To update these
settings, use the ConfigureDnsSettings method.
contact_settings: Option<ContactSettings>Required. Settings for contact information linked to the Registration. You cannot
update these with the UpdateRegistration method. To update these
settings, use the ConfigureContactSettings method.
pending_contact_settings: Option<ContactSettings>Output only. Pending contact settings for the Registration. Updates to the
contact_settings field that change its registrant_contact or privacy
fields require email confirmation by the registrant_contact
before taking effect. This field is set only if there are pending updates
to the contact_settings that have not been confirmed. To confirm the
changes, the registrant_contact must follow the instructions in the
email they receive.
supported_privacy: Vec<i32>Output only. Set of options for the contact_settings.privacy field that this
Registration supports.
Implementations§
source§impl Registration
impl Registration
sourcepub fn state(&self) -> State
pub fn state(&self) -> State
Returns the enum value of state, or the default if the field is set to an invalid enum value.
sourcepub fn issues(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<Issue>>
pub fn issues( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<Issue>>
Returns an iterator which yields the valid enum values contained in issues.
sourcepub fn push_issues(&mut self, value: Issue)
pub fn push_issues(&mut self, value: Issue)
Appends the provided enum value to issues.
sourcepub fn supported_privacy(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<ContactPrivacy>>
pub fn supported_privacy( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<ContactPrivacy>>
Returns an iterator which yields the valid enum values contained in supported_privacy.
sourcepub fn push_supported_privacy(&mut self, value: ContactPrivacy)
pub fn push_supported_privacy(&mut self, value: ContactPrivacy)
Appends the provided enum value to supported_privacy.
Trait Implementations§
source§impl Clone for Registration
impl Clone for Registration
source§fn clone(&self) -> Registration
fn clone(&self) -> Registration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for Registration
impl Debug for Registration
source§impl Default for Registration
impl Default for Registration
source§impl Message for Registration
impl Message for Registration
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.source§impl PartialEq for Registration
impl PartialEq for Registration
source§fn eq(&self, other: &Registration) -> bool
fn eq(&self, other: &Registration) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for Registration
Auto Trait Implementations§
impl Freeze for Registration
impl RefUnwindSafe for Registration
impl Send for Registration
impl Sync for Registration
impl Unpin for Registration
impl UnwindSafe for Registration
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request