pub struct EdgeContainer { /* private fields */ }Expand description
Implements a client for the Distributed Cloud Edge Container API.
§Service Description
EdgeContainer API provides management of Kubernetes Clusters on Google Edge Cloud deployments.
§Configuration
EdgeContainer has various configuration parameters, the defaults should
work with most applications.
§Pooling and Cloning
EdgeContainer holds a connection pool internally, it is advised to
create one and the reuse it. You do not need to wrap EdgeContainer in
an Rc or Arc to reuse it, because it already uses an Arc
internally.
Implementations§
Source§impl EdgeContainer
impl EdgeContainer
Sourcepub async fn new_with_config(conf: ClientConfig) -> Result<Self>
pub async fn new_with_config(conf: ClientConfig) -> Result<Self>
Creates a new client with the specified configuration.
Sourcepub fn from_stub<T>(stub: T) -> Selfwhere
T: EdgeContainer + 'static,
pub fn from_stub<T>(stub: T) -> Selfwhere
T: EdgeContainer + 'static,
Creates a new client from the provided stub.
The most common case for calling this function is when mocking the client.
Sourcepub fn list_clusters(&self, parent: impl Into<String>) -> ListClusters
pub fn list_clusters(&self, parent: impl Into<String>) -> ListClusters
Lists Clusters in a given project and location.
Sourcepub fn get_cluster(&self, name: impl Into<String>) -> GetCluster
pub fn get_cluster(&self, name: impl Into<String>) -> GetCluster
Gets details of a single Cluster.
Sourcepub fn create_cluster(&self, parent: impl Into<String>) -> CreateCluster
pub fn create_cluster(&self, parent: impl Into<String>) -> CreateCluster
Creates a new Cluster in a given project and location.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn update_cluster(&self, cluster: impl Into<Cluster>) -> UpdateCluster
pub fn update_cluster(&self, cluster: impl Into<Cluster>) -> UpdateCluster
Updates the parameters of a single Cluster.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn upgrade_cluster(&self, name: impl Into<String>) -> UpgradeCluster
pub fn upgrade_cluster(&self, name: impl Into<String>) -> UpgradeCluster
Upgrades a single cluster.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn delete_cluster(&self, name: impl Into<String>) -> DeleteCluster
pub fn delete_cluster(&self, name: impl Into<String>) -> DeleteCluster
Deletes a single Cluster.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn generate_access_token(
&self,
cluster: impl Into<String>,
) -> GenerateAccessToken
pub fn generate_access_token( &self, cluster: impl Into<String>, ) -> GenerateAccessToken
Generates an access token for a Cluster.
Sourcepub fn generate_offline_credential(
&self,
cluster: impl Into<String>,
) -> GenerateOfflineCredential
pub fn generate_offline_credential( &self, cluster: impl Into<String>, ) -> GenerateOfflineCredential
Generates an offline credential for a Cluster.
Sourcepub fn list_node_pools(&self, parent: impl Into<String>) -> ListNodePools
pub fn list_node_pools(&self, parent: impl Into<String>) -> ListNodePools
Lists NodePools in a given project and location.
Sourcepub fn get_node_pool(&self, name: impl Into<String>) -> GetNodePool
pub fn get_node_pool(&self, name: impl Into<String>) -> GetNodePool
Gets details of a single NodePool.
Sourcepub fn create_node_pool(&self, parent: impl Into<String>) -> CreateNodePool
pub fn create_node_pool(&self, parent: impl Into<String>) -> CreateNodePool
Creates a new NodePool in a given project and location.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn update_node_pool(&self, node_pool: impl Into<NodePool>) -> UpdateNodePool
pub fn update_node_pool(&self, node_pool: impl Into<NodePool>) -> UpdateNodePool
Updates the parameters of a single NodePool.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn delete_node_pool(&self, name: impl Into<String>) -> DeleteNodePool
pub fn delete_node_pool(&self, name: impl Into<String>) -> DeleteNodePool
Deletes a single NodePool.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn list_machines(&self, parent: impl Into<String>) -> ListMachines
pub fn list_machines(&self, parent: impl Into<String>) -> ListMachines
Lists Machines in a given project and location.
Sourcepub fn get_machine(&self, name: impl Into<String>) -> GetMachine
pub fn get_machine(&self, name: impl Into<String>) -> GetMachine
Gets details of a single Machine.
Sourcepub fn list_vpn_connections(
&self,
parent: impl Into<String>,
) -> ListVpnConnections
pub fn list_vpn_connections( &self, parent: impl Into<String>, ) -> ListVpnConnections
Lists VPN connections in a given project and location.
Sourcepub fn get_vpn_connection(&self, name: impl Into<String>) -> GetVpnConnection
pub fn get_vpn_connection(&self, name: impl Into<String>) -> GetVpnConnection
Gets details of a single VPN connection.
Sourcepub fn create_vpn_connection(
&self,
parent: impl Into<String>,
) -> CreateVpnConnection
pub fn create_vpn_connection( &self, parent: impl Into<String>, ) -> CreateVpnConnection
Creates a new VPN connection in a given project and location.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn delete_vpn_connection(
&self,
name: impl Into<String>,
) -> DeleteVpnConnection
pub fn delete_vpn_connection( &self, name: impl Into<String>, ) -> DeleteVpnConnection
Deletes a single VPN connection.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn get_server_config(&self, name: impl Into<String>) -> GetServerConfig
pub fn get_server_config(&self, name: impl Into<String>) -> GetServerConfig
Gets the server config.
Sourcepub fn list_locations(&self, name: impl Into<String>) -> ListLocations
pub fn list_locations(&self, name: impl Into<String>) -> ListLocations
Lists information about the supported locations for this service.
Sourcepub fn get_location(&self, name: impl Into<String>) -> GetLocation
pub fn get_location(&self, name: impl Into<String>) -> GetLocation
Gets information about a location.
Sourcepub fn list_operations(&self, name: impl Into<String>) -> ListOperations
pub fn list_operations(&self, name: impl Into<String>) -> ListOperations
Provides the Operations service functionality in this service.
Sourcepub fn get_operation(&self, name: impl Into<String>) -> GetOperation
pub fn get_operation(&self, name: impl Into<String>) -> GetOperation
Provides the Operations service functionality in this service.
Sourcepub fn delete_operation(&self, name: impl Into<String>) -> DeleteOperation
pub fn delete_operation(&self, name: impl Into<String>) -> DeleteOperation
Provides the Operations service functionality in this service.
Sourcepub fn cancel_operation(&self, name: impl Into<String>) -> CancelOperation
pub fn cancel_operation(&self, name: impl Into<String>) -> CancelOperation
Provides the Operations service functionality in this service.
Trait Implementations§
Source§impl Clone for EdgeContainer
impl Clone for EdgeContainer
Source§fn clone(&self) -> EdgeContainer
fn clone(&self) -> EdgeContainer
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more