Struct google_api_proto::google::cloud::gkemulticloud::v1::attached_clusters_client::AttachedClustersClient
source · pub struct AttachedClustersClient<T> { /* private fields */ }
Expand description
The AttachedClusters API provides a single centrally managed service to register and manage Anthos attached clusters that run on customer’s owned infrastructure.
Implementations§
source§impl<T> AttachedClustersClient<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> AttachedClustersClient<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,
) -> AttachedClustersClient<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_attached_cluster(
&mut self,
request: impl IntoRequest<CreateAttachedClusterRequest>,
) -> Result<Response<Operation>, Status>
pub async fn create_attached_cluster( &mut self, request: impl IntoRequest<CreateAttachedClusterRequest>, ) -> Result<Response<Operation>, Status>
Creates a new [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource on a given Google Cloud Platform project and region.
If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation.
sourcepub async fn update_attached_cluster(
&mut self,
request: impl IntoRequest<UpdateAttachedClusterRequest>,
) -> Result<Response<Operation>, Status>
pub async fn update_attached_cluster( &mut self, request: impl IntoRequest<UpdateAttachedClusterRequest>, ) -> Result<Response<Operation>, Status>
Updates an [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster].
sourcepub async fn import_attached_cluster(
&mut self,
request: impl IntoRequest<ImportAttachedClusterRequest>,
) -> Result<Response<Operation>, Status>
pub async fn import_attached_cluster( &mut self, request: impl IntoRequest<ImportAttachedClusterRequest>, ) -> Result<Response<Operation>, Status>
Imports creates a new [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource by importing an existing Fleet Membership resource.
Attached Clusters created before the introduction of the Anthos Multi-Cloud API can be imported through this method.
If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation.
sourcepub async fn get_attached_cluster(
&mut self,
request: impl IntoRequest<GetAttachedClusterRequest>,
) -> Result<Response<AttachedCluster>, Status>
pub async fn get_attached_cluster( &mut self, request: impl IntoRequest<GetAttachedClusterRequest>, ) -> Result<Response<AttachedCluster>, Status>
Describes a specific [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource.
sourcepub async fn list_attached_clusters(
&mut self,
request: impl IntoRequest<ListAttachedClustersRequest>,
) -> Result<Response<ListAttachedClustersResponse>, Status>
pub async fn list_attached_clusters( &mut self, request: impl IntoRequest<ListAttachedClustersRequest>, ) -> Result<Response<ListAttachedClustersResponse>, Status>
Lists all [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resources on a given Google Cloud project and region.
sourcepub async fn delete_attached_cluster(
&mut self,
request: impl IntoRequest<DeleteAttachedClusterRequest>,
) -> Result<Response<Operation>, Status>
pub async fn delete_attached_cluster( &mut self, request: impl IntoRequest<DeleteAttachedClusterRequest>, ) -> Result<Response<Operation>, Status>
Deletes a specific [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource.
If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation.
sourcepub async fn get_attached_server_config(
&mut self,
request: impl IntoRequest<GetAttachedServerConfigRequest>,
) -> Result<Response<AttachedServerConfig>, Status>
pub async fn get_attached_server_config( &mut self, request: impl IntoRequest<GetAttachedServerConfigRequest>, ) -> Result<Response<AttachedServerConfig>, Status>
Returns information, such as supported Kubernetes versions, on a given Google Cloud location.
sourcepub async fn generate_attached_cluster_install_manifest(
&mut self,
request: impl IntoRequest<GenerateAttachedClusterInstallManifestRequest>,
) -> Result<Response<GenerateAttachedClusterInstallManifestResponse>, Status>
pub async fn generate_attached_cluster_install_manifest( &mut self, request: impl IntoRequest<GenerateAttachedClusterInstallManifestRequest>, ) -> Result<Response<GenerateAttachedClusterInstallManifestResponse>, Status>
Generates the install manifest to be installed on the target cluster.
sourcepub async fn generate_attached_cluster_agent_token(
&mut self,
request: impl IntoRequest<GenerateAttachedClusterAgentTokenRequest>,
) -> Result<Response<GenerateAttachedClusterAgentTokenResponse>, Status>
pub async fn generate_attached_cluster_agent_token( &mut self, request: impl IntoRequest<GenerateAttachedClusterAgentTokenRequest>, ) -> Result<Response<GenerateAttachedClusterAgentTokenResponse>, Status>
Generates an access token for a cluster agent.
Trait Implementations§
source§impl<T: Clone> Clone for AttachedClustersClient<T>
impl<T: Clone> Clone for AttachedClustersClient<T>
source§fn clone(&self) -> AttachedClustersClient<T>
fn clone(&self) -> AttachedClustersClient<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 AttachedClustersClient<T>
impl<T> RefUnwindSafe for AttachedClustersClient<T>where
T: RefUnwindSafe,
impl<T> Send for AttachedClustersClient<T>where
T: Send,
impl<T> Sync for AttachedClustersClient<T>where
T: Sync,
impl<T> Unpin for AttachedClustersClient<T>where
T: Unpin,
impl<T> UnwindSafe for AttachedClustersClient<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