Struct google_api_proto::google::cloud::gkemulticloud::v1::azure_clusters_client::AzureClustersClient
source · pub struct AzureClustersClient<T> { /* private fields */ }
Expand description
The AzureClusters API provides a single centrally managed service to create and manage Anthos clusters that run on Azure infrastructure.
Implementations§
source§impl<T> AzureClustersClient<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> AzureClustersClient<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,
) -> AzureClustersClient<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_azure_client(
&mut self,
request: impl IntoRequest<CreateAzureClientRequest>,
) -> Result<Response<Operation>, Status>
pub async fn create_azure_client( &mut self, request: impl IntoRequest<CreateAzureClientRequest>, ) -> Result<Response<Operation>, Status>
Creates a new [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource on a given Google Cloud project and region.
AzureClient
resources hold client authentication
information needed by the Anthos Multicloud API to manage Azure resources
on your Azure subscription on your behalf.
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_azure_client(
&mut self,
request: impl IntoRequest<GetAzureClientRequest>,
) -> Result<Response<AzureClient>, Status>
pub async fn get_azure_client( &mut self, request: impl IntoRequest<GetAzureClientRequest>, ) -> Result<Response<AzureClient>, Status>
Describes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource.
sourcepub async fn list_azure_clients(
&mut self,
request: impl IntoRequest<ListAzureClientsRequest>,
) -> Result<Response<ListAzureClientsResponse>, Status>
pub async fn list_azure_clients( &mut self, request: impl IntoRequest<ListAzureClientsRequest>, ) -> Result<Response<ListAzureClientsResponse>, Status>
Lists all [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources on a given Google Cloud project and region.
sourcepub async fn delete_azure_client(
&mut self,
request: impl IntoRequest<DeleteAzureClientRequest>,
) -> Result<Response<Operation>, Status>
pub async fn delete_azure_client( &mut self, request: impl IntoRequest<DeleteAzureClientRequest>, ) -> Result<Response<Operation>, Status>
Deletes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource.
If the client is used by one or more clusters, deletion will
fail and a FAILED_PRECONDITION
error will be returned.
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 create_azure_cluster(
&mut self,
request: impl IntoRequest<CreateAzureClusterRequest>,
) -> Result<Response<Operation>, Status>
pub async fn create_azure_cluster( &mut self, request: impl IntoRequest<CreateAzureClusterRequest>, ) -> Result<Response<Operation>, Status>
Creates a new [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] 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_azure_cluster(
&mut self,
request: impl IntoRequest<UpdateAzureClusterRequest>,
) -> Result<Response<Operation>, Status>
pub async fn update_azure_cluster( &mut self, request: impl IntoRequest<UpdateAzureClusterRequest>, ) -> Result<Response<Operation>, Status>
Updates an [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].
sourcepub async fn get_azure_cluster(
&mut self,
request: impl IntoRequest<GetAzureClusterRequest>,
) -> Result<Response<AzureCluster>, Status>
pub async fn get_azure_cluster( &mut self, request: impl IntoRequest<GetAzureClusterRequest>, ) -> Result<Response<AzureCluster>, Status>
Describes a specific [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource.
sourcepub async fn list_azure_clusters(
&mut self,
request: impl IntoRequest<ListAzureClustersRequest>,
) -> Result<Response<ListAzureClustersResponse>, Status>
pub async fn list_azure_clusters( &mut self, request: impl IntoRequest<ListAzureClustersRequest>, ) -> Result<Response<ListAzureClustersResponse>, Status>
Lists all [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources on a given Google Cloud project and region.
sourcepub async fn delete_azure_cluster(
&mut self,
request: impl IntoRequest<DeleteAzureClusterRequest>,
) -> Result<Response<Operation>, Status>
pub async fn delete_azure_cluster( &mut self, request: impl IntoRequest<DeleteAzureClusterRequest>, ) -> Result<Response<Operation>, Status>
Deletes a specific [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource.
Fails if the cluster has one or more associated [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources.
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 generate_azure_cluster_agent_token(
&mut self,
request: impl IntoRequest<GenerateAzureClusterAgentTokenRequest>,
) -> Result<Response<GenerateAzureClusterAgentTokenResponse>, Status>
pub async fn generate_azure_cluster_agent_token( &mut self, request: impl IntoRequest<GenerateAzureClusterAgentTokenRequest>, ) -> Result<Response<GenerateAzureClusterAgentTokenResponse>, Status>
Generates an access token for a cluster agent.
sourcepub async fn generate_azure_access_token(
&mut self,
request: impl IntoRequest<GenerateAzureAccessTokenRequest>,
) -> Result<Response<GenerateAzureAccessTokenResponse>, Status>
pub async fn generate_azure_access_token( &mut self, request: impl IntoRequest<GenerateAzureAccessTokenRequest>, ) -> Result<Response<GenerateAzureAccessTokenResponse>, Status>
Generates a short-lived access token to authenticate to a given [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource.
sourcepub async fn create_azure_node_pool(
&mut self,
request: impl IntoRequest<CreateAzureNodePoolRequest>,
) -> Result<Response<Operation>, Status>
pub async fn create_azure_node_pool( &mut self, request: impl IntoRequest<CreateAzureNodePoolRequest>, ) -> Result<Response<Operation>, Status>
Creates a new [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool], attached to a given [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].
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_azure_node_pool(
&mut self,
request: impl IntoRequest<UpdateAzureNodePoolRequest>,
) -> Result<Response<Operation>, Status>
pub async fn update_azure_node_pool( &mut self, request: impl IntoRequest<UpdateAzureNodePoolRequest>, ) -> Result<Response<Operation>, Status>
Updates an [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool].
sourcepub async fn get_azure_node_pool(
&mut self,
request: impl IntoRequest<GetAzureNodePoolRequest>,
) -> Result<Response<AzureNodePool>, Status>
pub async fn get_azure_node_pool( &mut self, request: impl IntoRequest<GetAzureNodePoolRequest>, ) -> Result<Response<AzureNodePool>, Status>
Describes a specific [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource.
sourcepub async fn list_azure_node_pools(
&mut self,
request: impl IntoRequest<ListAzureNodePoolsRequest>,
) -> Result<Response<ListAzureNodePoolsResponse>, Status>
pub async fn list_azure_node_pools( &mut self, request: impl IntoRequest<ListAzureNodePoolsRequest>, ) -> Result<Response<ListAzureNodePoolsResponse>, Status>
Lists all [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources on a given [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].
sourcepub async fn delete_azure_node_pool(
&mut self,
request: impl IntoRequest<DeleteAzureNodePoolRequest>,
) -> Result<Response<Operation>, Status>
pub async fn delete_azure_node_pool( &mut self, request: impl IntoRequest<DeleteAzureNodePoolRequest>, ) -> Result<Response<Operation>, Status>
Deletes a specific [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] 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_azure_open_id_config(
&mut self,
request: impl IntoRequest<GetAzureOpenIdConfigRequest>,
) -> Result<Response<AzureOpenIdConfig>, Status>
pub async fn get_azure_open_id_config( &mut self, request: impl IntoRequest<GetAzureOpenIdConfigRequest>, ) -> Result<Response<AzureOpenIdConfig>, Status>
Gets the OIDC discovery document for the cluster. See the OpenID Connect Discovery 1.0 specification for details.
sourcepub async fn get_azure_json_web_keys(
&mut self,
request: impl IntoRequest<GetAzureJsonWebKeysRequest>,
) -> Result<Response<AzureJsonWebKeys>, Status>
pub async fn get_azure_json_web_keys( &mut self, request: impl IntoRequest<GetAzureJsonWebKeysRequest>, ) -> Result<Response<AzureJsonWebKeys>, Status>
Gets the public component of the cluster signing keys in JSON Web Key format.
sourcepub async fn get_azure_server_config(
&mut self,
request: impl IntoRequest<GetAzureServerConfigRequest>,
) -> Result<Response<AzureServerConfig>, Status>
pub async fn get_azure_server_config( &mut self, request: impl IntoRequest<GetAzureServerConfigRequest>, ) -> Result<Response<AzureServerConfig>, Status>
Returns information, such as supported Azure regions and Kubernetes versions, on a given Google Cloud location.
Trait Implementations§
source§impl<T: Clone> Clone for AzureClustersClient<T>
impl<T: Clone> Clone for AzureClustersClient<T>
source§fn clone(&self) -> AzureClustersClient<T>
fn clone(&self) -> AzureClustersClient<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 AzureClustersClient<T>
impl<T> RefUnwindSafe for AzureClustersClient<T>where
T: RefUnwindSafe,
impl<T> Send for AzureClustersClient<T>where
T: Send,
impl<T> Sync for AzureClustersClient<T>where
T: Sync,
impl<T> Unpin for AzureClustersClient<T>where
T: Unpin,
impl<T> UnwindSafe for AzureClustersClient<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