Struct gapi_grpc::google::cloud::domains::v1alpha2::domains_client::DomainsClient [−][src]
The Cloud Domains API enables management and configuration of domain names.
Implementations
impl DomainsClient<Channel>
[src]
pub async fn connect<D>(dst: D) -> Result<Self, Error> where
D: TryInto<Endpoint>,
D::Error: Into<StdError>,
[src]
D: TryInto<Endpoint>,
D::Error: Into<StdError>,
Attempt to create a new client by connecting to a given endpoint.
impl<T> DomainsClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + HttpBody + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as HttpBody>::Error: Into<StdError> + Send,
[src]
T: GrpcService<BoxBody>,
T::ResponseBody: Body + HttpBody + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as HttpBody>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
[src]
pub fn with_interceptor(inner: T, interceptor: impl Into<Interceptor>) -> Self
[src]
pub async fn search_domains(
&mut self,
request: impl IntoRequest<SearchDomainsRequest>
) -> Result<Response<SearchDomainsResponse>, Status>
[src]
&mut self,
request: impl IntoRequest<SearchDomainsRequest>
) -> Result<Response<SearchDomainsResponse>, Status>
Searches for available domain names similar to the provided query.
Availability results from this method are approximate; call
RetrieveRegisterParameters
on a domain before registering to confirm
availability.
pub async fn retrieve_register_parameters(
&mut self,
request: impl IntoRequest<RetrieveRegisterParametersRequest>
) -> Result<Response<RetrieveRegisterParametersResponse>, Status>
[src]
&mut self,
request: impl IntoRequest<RetrieveRegisterParametersRequest>
) -> Result<Response<RetrieveRegisterParametersResponse>, Status>
Gets parameters needed to register a new domain name, including price and
up-to-date availability. Use the returned values to call RegisterDomain
.
pub async fn register_domain(
&mut self,
request: impl IntoRequest<RegisterDomainRequest>
) -> Result<Response<Operation>, Status>
[src]
&mut self,
request: impl IntoRequest<RegisterDomainRequest>
) -> Result<Response<Operation>, Status>
Registers a new domain name and creates a corresponding Registration
resource.
Call RetrieveRegisterParameters
first to check availability of the domain
name and determine parameters like price that are needed to build a call to
this method.
A successful call creates a Registration
resource in state
REGISTRATION_PENDING
, which resolves to ACTIVE
within 1-2
minutes, indicating that the domain was successfully registered. If the
resource ends up in state REGISTRATION_FAILED
, it indicates that the
domain was not registered successfully, and you can safely delete the
resource and retry registration.
pub async fn list_registrations(
&mut self,
request: impl IntoRequest<ListRegistrationsRequest>
) -> Result<Response<ListRegistrationsResponse>, Status>
[src]
&mut self,
request: impl IntoRequest<ListRegistrationsRequest>
) -> Result<Response<ListRegistrationsResponse>, Status>
Lists the Registration
resources in a project.
pub async fn get_registration(
&mut self,
request: impl IntoRequest<GetRegistrationRequest>
) -> Result<Response<Registration>, Status>
[src]
&mut self,
request: impl IntoRequest<GetRegistrationRequest>
) -> Result<Response<Registration>, Status>
Gets the details of a Registration
resource.
pub async fn update_registration(
&mut self,
request: impl IntoRequest<UpdateRegistrationRequest>
) -> Result<Response<Operation>, Status>
[src]
&mut self,
request: impl IntoRequest<UpdateRegistrationRequest>
) -> Result<Response<Operation>, Status>
Updates select fields of a Registration
resource, notably labels
. To
update other fields, use the appropriate custom update method:
- To update management settings, see
ConfigureManagementSettings
- To update DNS configuration, see
ConfigureDnsSettings
- To update contact information, see
ConfigureContactSettings
pub async fn configure_management_settings(
&mut self,
request: impl IntoRequest<ConfigureManagementSettingsRequest>
) -> Result<Response<Operation>, Status>
[src]
&mut self,
request: impl IntoRequest<ConfigureManagementSettingsRequest>
) -> Result<Response<Operation>, Status>
Updates a Registration
’s management settings.
pub async fn configure_dns_settings(
&mut self,
request: impl IntoRequest<ConfigureDnsSettingsRequest>
) -> Result<Response<Operation>, Status>
[src]
&mut self,
request: impl IntoRequest<ConfigureDnsSettingsRequest>
) -> Result<Response<Operation>, Status>
Updates a Registration
’s DNS settings.
pub async fn configure_contact_settings(
&mut self,
request: impl IntoRequest<ConfigureContactSettingsRequest>
) -> Result<Response<Operation>, Status>
[src]
&mut self,
request: impl IntoRequest<ConfigureContactSettingsRequest>
) -> Result<Response<Operation>, Status>
Updates a Registration
’s contact settings. Some changes require
confirmation by the domain’s registrant contact .
pub async fn export_registration(
&mut self,
request: impl IntoRequest<ExportRegistrationRequest>
) -> Result<Response<Operation>, Status>
[src]
&mut self,
request: impl IntoRequest<ExportRegistrationRequest>
) -> Result<Response<Operation>, Status>
Exports a Registration
that you no longer want to use with
Cloud Domains. You can continue to use the domain in
Google Domains until it expires.
If the export is successful:
- The resource’s
state
becomesEXPORTED
, meaning that it is no longer managed by Cloud Domains - Because individual users can own domains in Google Domains, the calling user becomes the domain’s sole owner. Permissions for the domain are subsequently managed in Google Domains.
- Without further action, the domain does not renew automatically. The new owner can set up billing in Google Domains to renew the domain if needed.
pub async fn delete_registration(
&mut self,
request: impl IntoRequest<DeleteRegistrationRequest>
) -> Result<Response<Operation>, Status>
[src]
&mut self,
request: impl IntoRequest<DeleteRegistrationRequest>
) -> Result<Response<Operation>, Status>
Deletes a Registration
resource.
This method only works on resources in one of the following states:
state
isEXPORTED
withexpire_time
in the paststate
isREGISTRATION_FAILED
pub async fn retrieve_authorization_code(
&mut self,
request: impl IntoRequest<RetrieveAuthorizationCodeRequest>
) -> Result<Response<AuthorizationCode>, Status>
[src]
&mut self,
request: impl IntoRequest<RetrieveAuthorizationCodeRequest>
) -> Result<Response<AuthorizationCode>, Status>
Gets the authorization code of the Registration
for the purpose of
transferring the domain to another registrar.
You can call this method only after 60 days have elapsed since the initial domain registration.
pub async fn reset_authorization_code(
&mut self,
request: impl IntoRequest<ResetAuthorizationCodeRequest>
) -> Result<Response<AuthorizationCode>, Status>
[src]
&mut self,
request: impl IntoRequest<ResetAuthorizationCodeRequest>
) -> Result<Response<AuthorizationCode>, Status>
Resets the authorization code of the Registration
to a new random string.
You can call this method only after 60 days have elapsed since the initial domain registration.
Trait Implementations
impl<T: Clone> Clone for DomainsClient<T>
[src]
fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T> Debug for DomainsClient<T>
[src]
Auto Trait Implementations
impl<T> !RefUnwindSafe for DomainsClient<T>
impl<T> Send for DomainsClient<T> where
T: Send,
T: Send,
impl<T> Sync for DomainsClient<T> where
T: Sync,
T: Sync,
impl<T> Unpin for DomainsClient<T> where
T: Unpin,
T: Unpin,
impl<T> !UnwindSafe for DomainsClient<T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoRequest<T> for T
[src]
pub fn into_request(self) -> Request<T>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,