Struct google_api_proto::google::cloud::edgecontainer::v1::edge_container_client::EdgeContainerClient
source · pub struct EdgeContainerClient<T> { /* private fields */ }
Expand description
EdgeContainer API provides management of Kubernetes Clusters on Google Edge Cloud deployments.
Implementations§
source§impl<T> EdgeContainerClient<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> EdgeContainerClient<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
) -> EdgeContainerClient<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 list_clusters(
&mut self,
request: impl IntoRequest<ListClustersRequest>
) -> Result<Response<ListClustersResponse>, Status>
pub async fn list_clusters( &mut self, request: impl IntoRequest<ListClustersRequest> ) -> Result<Response<ListClustersResponse>, Status>
Lists Clusters in a given project and location.
sourcepub async fn get_cluster(
&mut self,
request: impl IntoRequest<GetClusterRequest>
) -> Result<Response<Cluster>, Status>
pub async fn get_cluster( &mut self, request: impl IntoRequest<GetClusterRequest> ) -> Result<Response<Cluster>, Status>
Gets details of a single Cluster.
sourcepub async fn create_cluster(
&mut self,
request: impl IntoRequest<CreateClusterRequest>
) -> Result<Response<Operation>, Status>
pub async fn create_cluster( &mut self, request: impl IntoRequest<CreateClusterRequest> ) -> Result<Response<Operation>, Status>
Creates a new Cluster in a given project and location.
sourcepub async fn update_cluster(
&mut self,
request: impl IntoRequest<UpdateClusterRequest>
) -> Result<Response<Operation>, Status>
pub async fn update_cluster( &mut self, request: impl IntoRequest<UpdateClusterRequest> ) -> Result<Response<Operation>, Status>
Updates the parameters of a single Cluster.
sourcepub async fn upgrade_cluster(
&mut self,
request: impl IntoRequest<UpgradeClusterRequest>
) -> Result<Response<Operation>, Status>
pub async fn upgrade_cluster( &mut self, request: impl IntoRequest<UpgradeClusterRequest> ) -> Result<Response<Operation>, Status>
Upgrades a single cluster.
sourcepub async fn delete_cluster(
&mut self,
request: impl IntoRequest<DeleteClusterRequest>
) -> Result<Response<Operation>, Status>
pub async fn delete_cluster( &mut self, request: impl IntoRequest<DeleteClusterRequest> ) -> Result<Response<Operation>, Status>
Deletes a single Cluster.
sourcepub async fn generate_access_token(
&mut self,
request: impl IntoRequest<GenerateAccessTokenRequest>
) -> Result<Response<GenerateAccessTokenResponse>, Status>
pub async fn generate_access_token( &mut self, request: impl IntoRequest<GenerateAccessTokenRequest> ) -> Result<Response<GenerateAccessTokenResponse>, Status>
Generates an access token for a Cluster.
sourcepub async fn generate_offline_credential(
&mut self,
request: impl IntoRequest<GenerateOfflineCredentialRequest>
) -> Result<Response<GenerateOfflineCredentialResponse>, Status>
pub async fn generate_offline_credential( &mut self, request: impl IntoRequest<GenerateOfflineCredentialRequest> ) -> Result<Response<GenerateOfflineCredentialResponse>, Status>
Generates an offline credential for a Cluster.
sourcepub async fn list_node_pools(
&mut self,
request: impl IntoRequest<ListNodePoolsRequest>
) -> Result<Response<ListNodePoolsResponse>, Status>
pub async fn list_node_pools( &mut self, request: impl IntoRequest<ListNodePoolsRequest> ) -> Result<Response<ListNodePoolsResponse>, Status>
Lists NodePools in a given project and location.
sourcepub async fn get_node_pool(
&mut self,
request: impl IntoRequest<GetNodePoolRequest>
) -> Result<Response<NodePool>, Status>
pub async fn get_node_pool( &mut self, request: impl IntoRequest<GetNodePoolRequest> ) -> Result<Response<NodePool>, Status>
Gets details of a single NodePool.
sourcepub async fn create_node_pool(
&mut self,
request: impl IntoRequest<CreateNodePoolRequest>
) -> Result<Response<Operation>, Status>
pub async fn create_node_pool( &mut self, request: impl IntoRequest<CreateNodePoolRequest> ) -> Result<Response<Operation>, Status>
Creates a new NodePool in a given project and location.
sourcepub async fn update_node_pool(
&mut self,
request: impl IntoRequest<UpdateNodePoolRequest>
) -> Result<Response<Operation>, Status>
pub async fn update_node_pool( &mut self, request: impl IntoRequest<UpdateNodePoolRequest> ) -> Result<Response<Operation>, Status>
Updates the parameters of a single NodePool.
sourcepub async fn delete_node_pool(
&mut self,
request: impl IntoRequest<DeleteNodePoolRequest>
) -> Result<Response<Operation>, Status>
pub async fn delete_node_pool( &mut self, request: impl IntoRequest<DeleteNodePoolRequest> ) -> Result<Response<Operation>, Status>
Deletes a single NodePool.
sourcepub async fn list_machines(
&mut self,
request: impl IntoRequest<ListMachinesRequest>
) -> Result<Response<ListMachinesResponse>, Status>
pub async fn list_machines( &mut self, request: impl IntoRequest<ListMachinesRequest> ) -> Result<Response<ListMachinesResponse>, Status>
Lists Machines in a given project and location.
sourcepub async fn get_machine(
&mut self,
request: impl IntoRequest<GetMachineRequest>
) -> Result<Response<Machine>, Status>
pub async fn get_machine( &mut self, request: impl IntoRequest<GetMachineRequest> ) -> Result<Response<Machine>, Status>
Gets details of a single Machine.
sourcepub async fn list_vpn_connections(
&mut self,
request: impl IntoRequest<ListVpnConnectionsRequest>
) -> Result<Response<ListVpnConnectionsResponse>, Status>
pub async fn list_vpn_connections( &mut self, request: impl IntoRequest<ListVpnConnectionsRequest> ) -> Result<Response<ListVpnConnectionsResponse>, Status>
Lists VPN connections in a given project and location.
sourcepub async fn get_vpn_connection(
&mut self,
request: impl IntoRequest<GetVpnConnectionRequest>
) -> Result<Response<VpnConnection>, Status>
pub async fn get_vpn_connection( &mut self, request: impl IntoRequest<GetVpnConnectionRequest> ) -> Result<Response<VpnConnection>, Status>
Gets details of a single VPN connection.
sourcepub async fn create_vpn_connection(
&mut self,
request: impl IntoRequest<CreateVpnConnectionRequest>
) -> Result<Response<Operation>, Status>
pub async fn create_vpn_connection( &mut self, request: impl IntoRequest<CreateVpnConnectionRequest> ) -> Result<Response<Operation>, Status>
Creates a new VPN connection in a given project and location.
sourcepub async fn delete_vpn_connection(
&mut self,
request: impl IntoRequest<DeleteVpnConnectionRequest>
) -> Result<Response<Operation>, Status>
pub async fn delete_vpn_connection( &mut self, request: impl IntoRequest<DeleteVpnConnectionRequest> ) -> Result<Response<Operation>, Status>
Deletes a single VPN connection.
sourcepub async fn get_server_config(
&mut self,
request: impl IntoRequest<GetServerConfigRequest>
) -> Result<Response<ServerConfig>, Status>
pub async fn get_server_config( &mut self, request: impl IntoRequest<GetServerConfigRequest> ) -> Result<Response<ServerConfig>, Status>
Gets the server config.
Trait Implementations§
source§impl<T: Clone> Clone for EdgeContainerClient<T>
impl<T: Clone> Clone for EdgeContainerClient<T>
source§fn clone(&self) -> EdgeContainerClient<T>
fn clone(&self) -> EdgeContainerClient<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 EdgeContainerClient<T>
impl<T> RefUnwindSafe for EdgeContainerClient<T>where
T: RefUnwindSafe,
impl<T> Send for EdgeContainerClient<T>where
T: Send,
impl<T> Sync for EdgeContainerClient<T>where
T: Sync,
impl<T> Unpin for EdgeContainerClient<T>where
T: Unpin,
impl<T> UnwindSafe for EdgeContainerClient<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