pub struct AdministrationServiceClient<T> { /* private fields */ }Expand description
Small, typed management operations for Anvil’s protected system realm. These RPCs do not bypass Zanzibar: each request is authorized against the same protected realm used by object and authorization requests, and each resulting ownership or grant is an ordinary system-realm tuple.
Implementations§
Source§impl<T> AdministrationServiceClient<T>where
T: GrpcService<Body>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> AdministrationServiceClient<T>where
T: GrpcService<Body>,
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,
) -> AdministrationServiceClient<InterceptedService<T, F>>where
F: Interceptor,
T::ResponseBody: Default,
T: Service<Request<Body>, Response = Response<<T as GrpcService<Body>>::ResponseBody>>,
<T as Service<Request<Body>>>::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 prepare_node(
&mut self,
request: impl IntoRequest<PrepareNodeRequest>,
) -> Result<Response<PrepareNodeResponse>, Status>
pub async fn prepare_node( &mut self, request: impl IntoRequest<PrepareNodeRequest>, ) -> Result<Response<PrepareNodeResponse>, Status>
Prepares one JOINING node identity after system#manage_system authorization. The server writes a mode-0600 one-time bundle and returns its local path for the administrator to copy to the new node and delete.
pub async fn provision_tenant( &mut self, request: impl IntoRequest<ProvisionTenantRequest>, ) -> Result<Response<ProvisionTenantResponse>, Status>
pub async fn create_application( &mut self, request: impl IntoRequest<CreateApplicationRequest>, ) -> Result<Response<ApplicationCredential>, Status>
pub async fn rotate_application_credential( &mut self, request: impl IntoRequest<RotateApplicationCredentialRequest>, ) -> Result<Response<ApplicationCredential>, Status>
pub async fn disable_application_credential( &mut self, request: impl IntoRequest<DisableApplicationCredentialRequest>, ) -> Result<Response<ApplicationCredentialState>, Status>
pub async fn create_bucket( &mut self, request: impl IntoRequest<CreateBucketRequest>, ) -> Result<Response<CreateBucketResponse>, Status>
Sourcepub async fn set_bucket_versioning(
&mut self,
request: impl IntoRequest<SetBucketVersioningRequest>,
) -> Result<Response<SetBucketVersioningResponse>, Status>
pub async fn set_bucket_versioning( &mut self, request: impl IntoRequest<SetBucketVersioningRequest>, ) -> Result<Response<SetBucketVersioningResponse>, Status>
Bucket versioning can move only from UNVERSIONED to ENABLED. Disabling a version-enabled bucket is deliberately unsupported.
pub async fn grant_application_role( &mut self, request: impl IntoRequest<ApplicationRoleRequest>, ) -> Result<Response<ApplicationRoleResponse>, Status>
pub async fn revoke_application_role( &mut self, request: impl IntoRequest<ApplicationRoleRequest>, ) -> Result<Response<ApplicationRoleResponse>, Status>
Trait Implementations§
Source§impl<T: Clone> Clone for AdministrationServiceClient<T>
impl<T: Clone> Clone for AdministrationServiceClient<T>
Source§fn clone(&self) -> AdministrationServiceClient<T>
fn clone(&self) -> AdministrationServiceClient<T>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl<T> !Freeze for AdministrationServiceClient<T>
impl<T> RefUnwindSafe for AdministrationServiceClient<T>where
T: RefUnwindSafe,
impl<T> Send for AdministrationServiceClient<T>where
T: Send,
impl<T> Sync for AdministrationServiceClient<T>where
T: Sync,
impl<T> Unpin for AdministrationServiceClient<T>where
T: Unpin,
impl<T> UnsafeUnpin for AdministrationServiceClient<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for AdministrationServiceClient<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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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