Struct google_api_proto::google::cloud::apphub::v1::app_hub_client::AppHubClient
source · pub struct AppHubClient<T> { /* private fields */ }
Expand description
The App Hub API allows you to manage App Hub resources.
Implementations§
source§impl<T> AppHubClient<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> AppHubClient<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,
) -> AppHubClient<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 lookup_service_project_attachment(
&mut self,
request: impl IntoRequest<LookupServiceProjectAttachmentRequest>,
) -> Result<Response<LookupServiceProjectAttachmentResponse>, Status>
pub async fn lookup_service_project_attachment( &mut self, request: impl IntoRequest<LookupServiceProjectAttachmentRequest>, ) -> Result<Response<LookupServiceProjectAttachmentResponse>, Status>
Lists a service project attachment for a given service project. You can call this API from any project to find if it is attached to a host project.
sourcepub async fn list_service_project_attachments(
&mut self,
request: impl IntoRequest<ListServiceProjectAttachmentsRequest>,
) -> Result<Response<ListServiceProjectAttachmentsResponse>, Status>
pub async fn list_service_project_attachments( &mut self, request: impl IntoRequest<ListServiceProjectAttachmentsRequest>, ) -> Result<Response<ListServiceProjectAttachmentsResponse>, Status>
Lists service projects attached to the host project.
sourcepub async fn create_service_project_attachment(
&mut self,
request: impl IntoRequest<CreateServiceProjectAttachmentRequest>,
) -> Result<Response<Operation>, Status>
pub async fn create_service_project_attachment( &mut self, request: impl IntoRequest<CreateServiceProjectAttachmentRequest>, ) -> Result<Response<Operation>, Status>
Attaches a service project to the host project.
sourcepub async fn get_service_project_attachment(
&mut self,
request: impl IntoRequest<GetServiceProjectAttachmentRequest>,
) -> Result<Response<ServiceProjectAttachment>, Status>
pub async fn get_service_project_attachment( &mut self, request: impl IntoRequest<GetServiceProjectAttachmentRequest>, ) -> Result<Response<ServiceProjectAttachment>, Status>
Gets a service project attachment.
sourcepub async fn delete_service_project_attachment(
&mut self,
request: impl IntoRequest<DeleteServiceProjectAttachmentRequest>,
) -> Result<Response<Operation>, Status>
pub async fn delete_service_project_attachment( &mut self, request: impl IntoRequest<DeleteServiceProjectAttachmentRequest>, ) -> Result<Response<Operation>, Status>
Deletes a service project attachment.
sourcepub async fn detach_service_project_attachment(
&mut self,
request: impl IntoRequest<DetachServiceProjectAttachmentRequest>,
) -> Result<Response<DetachServiceProjectAttachmentResponse>, Status>
pub async fn detach_service_project_attachment( &mut self, request: impl IntoRequest<DetachServiceProjectAttachmentRequest>, ) -> Result<Response<DetachServiceProjectAttachmentResponse>, Status>
Detaches a service project from a host project. You can call this API from any service project without needing access to the host project that it is attached to.
sourcepub async fn list_discovered_services(
&mut self,
request: impl IntoRequest<ListDiscoveredServicesRequest>,
) -> Result<Response<ListDiscoveredServicesResponse>, Status>
pub async fn list_discovered_services( &mut self, request: impl IntoRequest<ListDiscoveredServicesRequest>, ) -> Result<Response<ListDiscoveredServicesResponse>, Status>
Lists Discovered Services that can be added to an Application in a host project and location.
sourcepub async fn get_discovered_service(
&mut self,
request: impl IntoRequest<GetDiscoveredServiceRequest>,
) -> Result<Response<DiscoveredService>, Status>
pub async fn get_discovered_service( &mut self, request: impl IntoRequest<GetDiscoveredServiceRequest>, ) -> Result<Response<DiscoveredService>, Status>
Gets a Discovered Service in a host project and location.
sourcepub async fn lookup_discovered_service(
&mut self,
request: impl IntoRequest<LookupDiscoveredServiceRequest>,
) -> Result<Response<LookupDiscoveredServiceResponse>, Status>
pub async fn lookup_discovered_service( &mut self, request: impl IntoRequest<LookupDiscoveredServiceRequest>, ) -> Result<Response<LookupDiscoveredServiceResponse>, Status>
Lists a Discovered Service in a host project and location, with a given resource URI.
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 Services in an Application.
sourcepub async fn create_service(
&mut self,
request: impl IntoRequest<CreateServiceRequest>,
) -> Result<Response<Operation>, Status>
pub async fn create_service( &mut self, request: impl IntoRequest<CreateServiceRequest>, ) -> Result<Response<Operation>, Status>
Creates a Service in an Application.
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 in an Application.
sourcepub async fn update_service(
&mut self,
request: impl IntoRequest<UpdateServiceRequest>,
) -> Result<Response<Operation>, Status>
pub async fn update_service( &mut self, request: impl IntoRequest<UpdateServiceRequest>, ) -> Result<Response<Operation>, Status>
Updates a Service in an Application.
sourcepub async fn delete_service(
&mut self,
request: impl IntoRequest<DeleteServiceRequest>,
) -> Result<Response<Operation>, Status>
pub async fn delete_service( &mut self, request: impl IntoRequest<DeleteServiceRequest>, ) -> Result<Response<Operation>, Status>
Deletes a Service from an Application.
sourcepub async fn list_discovered_workloads(
&mut self,
request: impl IntoRequest<ListDiscoveredWorkloadsRequest>,
) -> Result<Response<ListDiscoveredWorkloadsResponse>, Status>
pub async fn list_discovered_workloads( &mut self, request: impl IntoRequest<ListDiscoveredWorkloadsRequest>, ) -> Result<Response<ListDiscoveredWorkloadsResponse>, Status>
Lists Discovered Workloads that can be added to an Application in a host project and location.
sourcepub async fn get_discovered_workload(
&mut self,
request: impl IntoRequest<GetDiscoveredWorkloadRequest>,
) -> Result<Response<DiscoveredWorkload>, Status>
pub async fn get_discovered_workload( &mut self, request: impl IntoRequest<GetDiscoveredWorkloadRequest>, ) -> Result<Response<DiscoveredWorkload>, Status>
Gets a Discovered Workload in a host project and location.
sourcepub async fn lookup_discovered_workload(
&mut self,
request: impl IntoRequest<LookupDiscoveredWorkloadRequest>,
) -> Result<Response<LookupDiscoveredWorkloadResponse>, Status>
pub async fn lookup_discovered_workload( &mut self, request: impl IntoRequest<LookupDiscoveredWorkloadRequest>, ) -> Result<Response<LookupDiscoveredWorkloadResponse>, Status>
Lists a Discovered Workload in a host project and location, with a given resource URI.
sourcepub async fn list_workloads(
&mut self,
request: impl IntoRequest<ListWorkloadsRequest>,
) -> Result<Response<ListWorkloadsResponse>, Status>
pub async fn list_workloads( &mut self, request: impl IntoRequest<ListWorkloadsRequest>, ) -> Result<Response<ListWorkloadsResponse>, Status>
Lists Workloads in an Application.
sourcepub async fn create_workload(
&mut self,
request: impl IntoRequest<CreateWorkloadRequest>,
) -> Result<Response<Operation>, Status>
pub async fn create_workload( &mut self, request: impl IntoRequest<CreateWorkloadRequest>, ) -> Result<Response<Operation>, Status>
Creates a Workload in an Application.
sourcepub async fn get_workload(
&mut self,
request: impl IntoRequest<GetWorkloadRequest>,
) -> Result<Response<Workload>, Status>
pub async fn get_workload( &mut self, request: impl IntoRequest<GetWorkloadRequest>, ) -> Result<Response<Workload>, Status>
Gets a Workload in an Application.
sourcepub async fn update_workload(
&mut self,
request: impl IntoRequest<UpdateWorkloadRequest>,
) -> Result<Response<Operation>, Status>
pub async fn update_workload( &mut self, request: impl IntoRequest<UpdateWorkloadRequest>, ) -> Result<Response<Operation>, Status>
Updates a Workload in an Application.
sourcepub async fn delete_workload(
&mut self,
request: impl IntoRequest<DeleteWorkloadRequest>,
) -> Result<Response<Operation>, Status>
pub async fn delete_workload( &mut self, request: impl IntoRequest<DeleteWorkloadRequest>, ) -> Result<Response<Operation>, Status>
Deletes a Workload from an Application.
sourcepub async fn list_applications(
&mut self,
request: impl IntoRequest<ListApplicationsRequest>,
) -> Result<Response<ListApplicationsResponse>, Status>
pub async fn list_applications( &mut self, request: impl IntoRequest<ListApplicationsRequest>, ) -> Result<Response<ListApplicationsResponse>, Status>
Lists Applications in a host project and location.
sourcepub async fn create_application(
&mut self,
request: impl IntoRequest<CreateApplicationRequest>,
) -> Result<Response<Operation>, Status>
pub async fn create_application( &mut self, request: impl IntoRequest<CreateApplicationRequest>, ) -> Result<Response<Operation>, Status>
Creates an Application in a host project and location.
sourcepub async fn get_application(
&mut self,
request: impl IntoRequest<GetApplicationRequest>,
) -> Result<Response<Application>, Status>
pub async fn get_application( &mut self, request: impl IntoRequest<GetApplicationRequest>, ) -> Result<Response<Application>, Status>
Gets an Application in a host project and location.
sourcepub async fn update_application(
&mut self,
request: impl IntoRequest<UpdateApplicationRequest>,
) -> Result<Response<Operation>, Status>
pub async fn update_application( &mut self, request: impl IntoRequest<UpdateApplicationRequest>, ) -> Result<Response<Operation>, Status>
Updates an Application in a host project and location.
sourcepub async fn delete_application(
&mut self,
request: impl IntoRequest<DeleteApplicationRequest>,
) -> Result<Response<Operation>, Status>
pub async fn delete_application( &mut self, request: impl IntoRequest<DeleteApplicationRequest>, ) -> Result<Response<Operation>, Status>
Deletes an Application in a host project and location.
Trait Implementations§
source§impl<T: Clone> Clone for AppHubClient<T>
impl<T: Clone> Clone for AppHubClient<T>
source§fn clone(&self) -> AppHubClient<T>
fn clone(&self) -> AppHubClient<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 AppHubClient<T>
impl<T> RefUnwindSafe for AppHubClient<T>where
T: RefUnwindSafe,
impl<T> Send for AppHubClient<T>where
T: Send,
impl<T> Sync for AppHubClient<T>where
T: Sync,
impl<T> Unpin for AppHubClient<T>where
T: Unpin,
impl<T> UnwindSafe for AppHubClient<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