Struct google_api_proto::google::cloud::servicedirectory::v1beta1::registration_service_client::RegistrationServiceClient
source · pub struct RegistrationServiceClient<T> { /* private fields */ }
Expand description
Service Directory API for registering services. It defines the following resource model:
-
The API has a collection of [Namespace][google.cloud.servicedirectory.v1beta1.Namespace] resources, named
projects/*/locations/*/namespaces/*
. -
Each Namespace has a collection of [Service][google.cloud.servicedirectory.v1beta1.Service] resources, named
projects/*/locations/*/namespaces/*/services/*
. -
Each Service has a collection of [Endpoint][google.cloud.servicedirectory.v1beta1.Endpoint] resources, named
projects/*/locations/*/namespaces/*/services/*/endpoints/*
.
Implementations§
source§impl<T> RegistrationServiceClient<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> RegistrationServiceClient<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,
) -> RegistrationServiceClient<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_namespace(
&mut self,
request: impl IntoRequest<CreateNamespaceRequest>,
) -> Result<Response<Namespace>, Status>
pub async fn create_namespace( &mut self, request: impl IntoRequest<CreateNamespaceRequest>, ) -> Result<Response<Namespace>, Status>
Creates a namespace, and returns the new namespace.
sourcepub async fn list_namespaces(
&mut self,
request: impl IntoRequest<ListNamespacesRequest>,
) -> Result<Response<ListNamespacesResponse>, Status>
pub async fn list_namespaces( &mut self, request: impl IntoRequest<ListNamespacesRequest>, ) -> Result<Response<ListNamespacesResponse>, Status>
Lists all namespaces.
sourcepub async fn get_namespace(
&mut self,
request: impl IntoRequest<GetNamespaceRequest>,
) -> Result<Response<Namespace>, Status>
pub async fn get_namespace( &mut self, request: impl IntoRequest<GetNamespaceRequest>, ) -> Result<Response<Namespace>, Status>
Gets a namespace.
sourcepub async fn update_namespace(
&mut self,
request: impl IntoRequest<UpdateNamespaceRequest>,
) -> Result<Response<Namespace>, Status>
pub async fn update_namespace( &mut self, request: impl IntoRequest<UpdateNamespaceRequest>, ) -> Result<Response<Namespace>, Status>
Updates a namespace.
sourcepub async fn delete_namespace(
&mut self,
request: impl IntoRequest<DeleteNamespaceRequest>,
) -> Result<Response<()>, Status>
pub async fn delete_namespace( &mut self, request: impl IntoRequest<DeleteNamespaceRequest>, ) -> Result<Response<()>, Status>
Deletes a namespace. This also deletes all services and endpoints in the namespace.
sourcepub async fn create_service(
&mut self,
request: impl IntoRequest<CreateServiceRequest>,
) -> Result<Response<Service>, Status>
pub async fn create_service( &mut self, request: impl IntoRequest<CreateServiceRequest>, ) -> Result<Response<Service>, Status>
Creates a service, and returns the new service.
sourcepub async fn list_services(
&mut self,
request: impl IntoRequest<ListServicesRequest>,
) -> Result<Response<ListServicesResponse>, Status>
pub async fn list_services( &mut self, request: impl IntoRequest<ListServicesRequest>, ) -> Result<Response<ListServicesResponse>, Status>
Lists all services belonging to a namespace.
sourcepub async fn get_service(
&mut self,
request: impl IntoRequest<GetServiceRequest>,
) -> Result<Response<Service>, Status>
pub async fn get_service( &mut self, request: impl IntoRequest<GetServiceRequest>, ) -> Result<Response<Service>, Status>
Gets a service.
sourcepub async fn update_service(
&mut self,
request: impl IntoRequest<UpdateServiceRequest>,
) -> Result<Response<Service>, Status>
pub async fn update_service( &mut self, request: impl IntoRequest<UpdateServiceRequest>, ) -> Result<Response<Service>, Status>
Updates a service.
sourcepub async fn delete_service(
&mut self,
request: impl IntoRequest<DeleteServiceRequest>,
) -> Result<Response<()>, Status>
pub async fn delete_service( &mut self, request: impl IntoRequest<DeleteServiceRequest>, ) -> Result<Response<()>, Status>
Deletes a service. This also deletes all endpoints associated with the service.
sourcepub async fn create_endpoint(
&mut self,
request: impl IntoRequest<CreateEndpointRequest>,
) -> Result<Response<Endpoint>, Status>
pub async fn create_endpoint( &mut self, request: impl IntoRequest<CreateEndpointRequest>, ) -> Result<Response<Endpoint>, Status>
Creates an endpoint, and returns the new endpoint.
sourcepub async fn list_endpoints(
&mut self,
request: impl IntoRequest<ListEndpointsRequest>,
) -> Result<Response<ListEndpointsResponse>, Status>
pub async fn list_endpoints( &mut self, request: impl IntoRequest<ListEndpointsRequest>, ) -> Result<Response<ListEndpointsResponse>, Status>
Lists all endpoints.
sourcepub async fn get_endpoint(
&mut self,
request: impl IntoRequest<GetEndpointRequest>,
) -> Result<Response<Endpoint>, Status>
pub async fn get_endpoint( &mut self, request: impl IntoRequest<GetEndpointRequest>, ) -> Result<Response<Endpoint>, Status>
Gets an endpoint.
sourcepub async fn update_endpoint(
&mut self,
request: impl IntoRequest<UpdateEndpointRequest>,
) -> Result<Response<Endpoint>, Status>
pub async fn update_endpoint( &mut self, request: impl IntoRequest<UpdateEndpointRequest>, ) -> Result<Response<Endpoint>, Status>
Updates an endpoint.
sourcepub async fn delete_endpoint(
&mut self,
request: impl IntoRequest<DeleteEndpointRequest>,
) -> Result<Response<()>, Status>
pub async fn delete_endpoint( &mut self, request: impl IntoRequest<DeleteEndpointRequest>, ) -> Result<Response<()>, Status>
Deletes an endpoint.
sourcepub async fn get_iam_policy(
&mut self,
request: impl IntoRequest<GetIamPolicyRequest>,
) -> Result<Response<Policy>, Status>
pub async fn get_iam_policy( &mut self, request: impl IntoRequest<GetIamPolicyRequest>, ) -> Result<Response<Policy>, Status>
Gets the IAM Policy for a resource
sourcepub async fn set_iam_policy(
&mut self,
request: impl IntoRequest<SetIamPolicyRequest>,
) -> Result<Response<Policy>, Status>
pub async fn set_iam_policy( &mut self, request: impl IntoRequest<SetIamPolicyRequest>, ) -> Result<Response<Policy>, Status>
Sets the IAM Policy for a resource
sourcepub async fn test_iam_permissions(
&mut self,
request: impl IntoRequest<TestIamPermissionsRequest>,
) -> Result<Response<TestIamPermissionsResponse>, Status>
pub async fn test_iam_permissions( &mut self, request: impl IntoRequest<TestIamPermissionsRequest>, ) -> Result<Response<TestIamPermissionsResponse>, Status>
Tests IAM permissions for a resource (namespace, service or service workload only).
Trait Implementations§
source§impl<T: Clone> Clone for RegistrationServiceClient<T>
impl<T: Clone> Clone for RegistrationServiceClient<T>
source§fn clone(&self) -> RegistrationServiceClient<T>
fn clone(&self) -> RegistrationServiceClient<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 RegistrationServiceClient<T>
impl<T> RefUnwindSafe for RegistrationServiceClient<T>where
T: RefUnwindSafe,
impl<T> Send for RegistrationServiceClient<T>where
T: Send,
impl<T> Sync for RegistrationServiceClient<T>where
T: Sync,
impl<T> Unpin for RegistrationServiceClient<T>where
T: Unpin,
impl<T> UnwindSafe for RegistrationServiceClient<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