Struct google_api_proto::google::cloud::managedidentities::v1::managed_identities_service_client::ManagedIdentitiesServiceClient
source · pub struct ManagedIdentitiesServiceClient<T> { /* private fields */ }
Expand description
API Overview
The managedidentites.googleapis.com
service implements the Google Cloud
Managed Identites API for identity services
(e.g. Microsoft Active Directory).
The Managed Identities service provides methods to manage (create/read/update/delete) domains, reset managed identities admin password, add/remove domain controllers in GCP regions and add/remove VPC peering.
Data Model
The Managed Identities service exposes the following resources:
-
Locations as global, named as follows:
projects/{project_id}/locations/global
. -
Domains, named as follows:
/projects/{project_id}/locations/global/domain/{domain_name}
.
The {domain_name}
refers to fully qualified domain name in the customer
project e.g. mydomain.myorganization.com, with the following restrictions:
- Must contain only lowercase letters, numbers, periods and hyphens.
- Must start with a letter.
- Must contain between 2-64 characters.
- Must end with a number or a letter.
- Must not start with period.
- First segement length (mydomain form example above) shouldn’t exceed 15 chars.
- The last segment cannot be fully numeric.
- Must be unique within the customer project.
Implementations§
source§impl<T> ManagedIdentitiesServiceClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> ManagedIdentitiesServiceClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
pub fn with_origin(inner: T, origin: Uri) -> Self
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> ManagedIdentitiesServiceClient<InterceptedService<T, F>>where
F: Interceptor,
T::ResponseBody: Default,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
sourcepub fn send_compressed(self, encoding: CompressionEncoding) -> Self
pub fn send_compressed(self, encoding: CompressionEncoding) -> Self
Compress requests with the given encoding.
This requires the server to support it otherwise it might respond with an error.
sourcepub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
Enable decompressing responses.
sourcepub fn max_decoding_message_size(self, limit: usize) -> Self
pub fn max_decoding_message_size(self, limit: usize) -> Self
Limits the maximum size of a decoded message.
Default: 4MB
sourcepub fn max_encoding_message_size(self, limit: usize) -> Self
pub fn max_encoding_message_size(self, limit: usize) -> Self
Limits the maximum size of an encoded message.
Default: usize::MAX
sourcepub async fn create_microsoft_ad_domain(
&mut self,
request: impl IntoRequest<CreateMicrosoftAdDomainRequest>,
) -> Result<Response<Operation>, Status>
pub async fn create_microsoft_ad_domain( &mut self, request: impl IntoRequest<CreateMicrosoftAdDomainRequest>, ) -> Result<Response<Operation>, Status>
Creates a Microsoft AD domain.
sourcepub async fn reset_admin_password(
&mut self,
request: impl IntoRequest<ResetAdminPasswordRequest>,
) -> Result<Response<ResetAdminPasswordResponse>, Status>
pub async fn reset_admin_password( &mut self, request: impl IntoRequest<ResetAdminPasswordRequest>, ) -> Result<Response<ResetAdminPasswordResponse>, Status>
Resets a domain’s administrator password.
sourcepub async fn list_domains(
&mut self,
request: impl IntoRequest<ListDomainsRequest>,
) -> Result<Response<ListDomainsResponse>, Status>
pub async fn list_domains( &mut self, request: impl IntoRequest<ListDomainsRequest>, ) -> Result<Response<ListDomainsResponse>, Status>
Lists domains in a project.
sourcepub async fn get_domain(
&mut self,
request: impl IntoRequest<GetDomainRequest>,
) -> Result<Response<Domain>, Status>
pub async fn get_domain( &mut self, request: impl IntoRequest<GetDomainRequest>, ) -> Result<Response<Domain>, Status>
Gets information about a domain.
sourcepub async fn update_domain(
&mut self,
request: impl IntoRequest<UpdateDomainRequest>,
) -> Result<Response<Operation>, Status>
pub async fn update_domain( &mut self, request: impl IntoRequest<UpdateDomainRequest>, ) -> Result<Response<Operation>, Status>
Updates the metadata and configuration of a domain.
sourcepub async fn delete_domain(
&mut self,
request: impl IntoRequest<DeleteDomainRequest>,
) -> Result<Response<Operation>, Status>
pub async fn delete_domain( &mut self, request: impl IntoRequest<DeleteDomainRequest>, ) -> Result<Response<Operation>, Status>
Deletes a domain.
sourcepub async fn attach_trust(
&mut self,
request: impl IntoRequest<AttachTrustRequest>,
) -> Result<Response<Operation>, Status>
pub async fn attach_trust( &mut self, request: impl IntoRequest<AttachTrustRequest>, ) -> Result<Response<Operation>, Status>
Adds an AD trust to a domain.
sourcepub async fn reconfigure_trust(
&mut self,
request: impl IntoRequest<ReconfigureTrustRequest>,
) -> Result<Response<Operation>, Status>
pub async fn reconfigure_trust( &mut self, request: impl IntoRequest<ReconfigureTrustRequest>, ) -> Result<Response<Operation>, Status>
Updates the DNS conditional forwarder.
sourcepub async fn detach_trust(
&mut self,
request: impl IntoRequest<DetachTrustRequest>,
) -> Result<Response<Operation>, Status>
pub async fn detach_trust( &mut self, request: impl IntoRequest<DetachTrustRequest>, ) -> Result<Response<Operation>, Status>
Removes an AD trust.
sourcepub async fn validate_trust(
&mut self,
request: impl IntoRequest<ValidateTrustRequest>,
) -> Result<Response<Operation>, Status>
pub async fn validate_trust( &mut self, request: impl IntoRequest<ValidateTrustRequest>, ) -> Result<Response<Operation>, Status>
Validates a trust state, that the target domain is reachable, and that the target domain is able to accept incoming trust requests.
Trait Implementations§
source§impl<T: Clone> Clone for ManagedIdentitiesServiceClient<T>
impl<T: Clone> Clone for ManagedIdentitiesServiceClient<T>
source§fn clone(&self) -> ManagedIdentitiesServiceClient<T>
fn clone(&self) -> ManagedIdentitiesServiceClient<T>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl<T> !Freeze for ManagedIdentitiesServiceClient<T>
impl<T> RefUnwindSafe for ManagedIdentitiesServiceClient<T>where
T: RefUnwindSafe,
impl<T> Send for ManagedIdentitiesServiceClient<T>where
T: Send,
impl<T> Sync for ManagedIdentitiesServiceClient<T>where
T: Sync,
impl<T> Unpin for ManagedIdentitiesServiceClient<T>where
T: Unpin,
impl<T> UnwindSafe for ManagedIdentitiesServiceClient<T>where
T: UnwindSafe,
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