pub struct ClusterManagerClient<T> { /* private fields */ }
Expand description

Google Kubernetes Engine Cluster Manager v1beta1

Implementations§

source§

impl<T> ClusterManagerClient<T>
where T: GrpcService<BoxBody>, T::Error: Into<StdError>, T::ResponseBody: Body<Data = Bytes> + Send + 'static, <T::ResponseBody as Body>::Error: Into<StdError> + Send,

source

pub fn new(inner: T) -> Self

source

pub fn with_origin(inner: T, origin: Uri) -> Self

source

pub fn with_interceptor<F>( inner: T, interceptor: F, ) -> ClusterManagerClient<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,

source

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.

source

pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self

Enable decompressing responses.

source

pub fn max_decoding_message_size(self, limit: usize) -> Self

Limits the maximum size of a decoded message.

Default: 4MB

source

pub fn max_encoding_message_size(self, limit: usize) -> Self

Limits the maximum size of an encoded message.

Default: usize::MAX

source

pub async fn list_clusters( &mut self, request: impl IntoRequest<ListClustersRequest>, ) -> Result<Response<ListClustersResponse>, Status>

Lists all clusters owned by a project in either the specified zone or all zones.

source

pub async fn get_cluster( &mut self, request: impl IntoRequest<GetClusterRequest>, ) -> Result<Response<Cluster>, Status>

Gets the details for a specific cluster.

source

pub async fn create_cluster( &mut self, request: impl IntoRequest<CreateClusterRequest>, ) -> Result<Response<Operation>, Status>

Creates a cluster, consisting of the specified number and type of Google Compute Engine instances.

By default, the cluster is created in the project’s default network.

One firewall is added for the cluster. After cluster creation, the Kubelet creates routes for each node to allow the containers on that node to communicate with all other instances in the cluster.

Finally, an entry is added to the project’s global metadata indicating which CIDR range the cluster is using.

source

pub async fn update_cluster( &mut self, request: impl IntoRequest<UpdateClusterRequest>, ) -> Result<Response<Operation>, Status>

Updates the settings for a specific cluster.

source

pub async fn update_node_pool( &mut self, request: impl IntoRequest<UpdateNodePoolRequest>, ) -> Result<Response<Operation>, Status>

Updates the version and/or image type of a specific node pool.

source

pub async fn set_node_pool_autoscaling( &mut self, request: impl IntoRequest<SetNodePoolAutoscalingRequest>, ) -> Result<Response<Operation>, Status>

Sets the autoscaling settings of a specific node pool.

source

pub async fn set_logging_service( &mut self, request: impl IntoRequest<SetLoggingServiceRequest>, ) -> Result<Response<Operation>, Status>

Sets the logging service for a specific cluster.

source

pub async fn set_monitoring_service( &mut self, request: impl IntoRequest<SetMonitoringServiceRequest>, ) -> Result<Response<Operation>, Status>

Sets the monitoring service for a specific cluster.

source

pub async fn set_addons_config( &mut self, request: impl IntoRequest<SetAddonsConfigRequest>, ) -> Result<Response<Operation>, Status>

Sets the addons for a specific cluster.

source

pub async fn set_locations( &mut self, request: impl IntoRequest<SetLocationsRequest>, ) -> Result<Response<Operation>, Status>

Sets the locations for a specific cluster. Deprecated. Use projects.locations.clusters.update instead.

source

pub async fn update_master( &mut self, request: impl IntoRequest<UpdateMasterRequest>, ) -> Result<Response<Operation>, Status>

Updates the master for a specific cluster.

source

pub async fn set_master_auth( &mut self, request: impl IntoRequest<SetMasterAuthRequest>, ) -> Result<Response<Operation>, Status>

Sets master auth materials. Currently supports changing the admin password or a specific cluster, either via password generation or explicitly setting the password.

source

pub async fn delete_cluster( &mut self, request: impl IntoRequest<DeleteClusterRequest>, ) -> Result<Response<Operation>, Status>

Deletes the cluster, including the Kubernetes endpoint and all worker nodes.

Firewalls and routes that were configured during cluster creation are also deleted.

Other Google Compute Engine resources that might be in use by the cluster, such as load balancer resources, are not deleted if they weren’t present when the cluster was initially created.

source

pub async fn list_operations( &mut self, request: impl IntoRequest<ListOperationsRequest>, ) -> Result<Response<ListOperationsResponse>, Status>

Lists all operations in a project in the specified zone or all zones.

source

pub async fn get_operation( &mut self, request: impl IntoRequest<GetOperationRequest>, ) -> Result<Response<Operation>, Status>

Gets the specified operation.

source

pub async fn cancel_operation( &mut self, request: impl IntoRequest<CancelOperationRequest>, ) -> Result<Response<()>, Status>

Cancels the specified operation.

source

pub async fn get_server_config( &mut self, request: impl IntoRequest<GetServerConfigRequest>, ) -> Result<Response<ServerConfig>, Status>

Returns configuration info about the Google Kubernetes Engine service.

source

pub async fn get_json_web_keys( &mut self, request: impl IntoRequest<GetJsonWebKeysRequest>, ) -> Result<Response<GetJsonWebKeysResponse>, Status>

Gets the public component of the cluster signing keys in JSON Web Key format.

source

pub async fn list_node_pools( &mut self, request: impl IntoRequest<ListNodePoolsRequest>, ) -> Result<Response<ListNodePoolsResponse>, Status>

Lists the node pools for a cluster.

source

pub async fn get_node_pool( &mut self, request: impl IntoRequest<GetNodePoolRequest>, ) -> Result<Response<NodePool>, Status>

Retrieves the requested node pool.

source

pub async fn create_node_pool( &mut self, request: impl IntoRequest<CreateNodePoolRequest>, ) -> Result<Response<Operation>, Status>

Creates a node pool for a cluster.

source

pub async fn delete_node_pool( &mut self, request: impl IntoRequest<DeleteNodePoolRequest>, ) -> Result<Response<Operation>, Status>

Deletes a node pool from a cluster.

source

pub async fn complete_node_pool_upgrade( &mut self, request: impl IntoRequest<CompleteNodePoolUpgradeRequest>, ) -> Result<Response<()>, Status>

CompleteNodePoolUpgrade will signal an on-going node pool upgrade to complete.

source

pub async fn rollback_node_pool_upgrade( &mut self, request: impl IntoRequest<RollbackNodePoolUpgradeRequest>, ) -> Result<Response<Operation>, Status>

Rolls back a previously Aborted or Failed NodePool upgrade. This makes no changes if the last upgrade successfully completed.

source

pub async fn set_node_pool_management( &mut self, request: impl IntoRequest<SetNodePoolManagementRequest>, ) -> Result<Response<Operation>, Status>

Sets the NodeManagement options for a node pool.

source

pub async fn set_labels( &mut self, request: impl IntoRequest<SetLabelsRequest>, ) -> Result<Response<Operation>, Status>

Sets labels on a cluster.

source

pub async fn set_legacy_abac( &mut self, request: impl IntoRequest<SetLegacyAbacRequest>, ) -> Result<Response<Operation>, Status>

Enables or disables the ABAC authorization mechanism on a cluster.

source

pub async fn start_ip_rotation( &mut self, request: impl IntoRequest<StartIpRotationRequest>, ) -> Result<Response<Operation>, Status>

Starts master IP rotation.

source

pub async fn complete_ip_rotation( &mut self, request: impl IntoRequest<CompleteIpRotationRequest>, ) -> Result<Response<Operation>, Status>

Completes master IP rotation.

source

pub async fn set_node_pool_size( &mut self, request: impl IntoRequest<SetNodePoolSizeRequest>, ) -> Result<Response<Operation>, Status>

SetNodePoolSizeRequest sets the size of a node pool. The new size will be used for all replicas, including future replicas created by modifying [NodePool.locations][google.container.v1beta1.NodePool.locations].

source

pub async fn set_network_policy( &mut self, request: impl IntoRequest<SetNetworkPolicyRequest>, ) -> Result<Response<Operation>, Status>

Enables or disables Network Policy for a cluster.

source

pub async fn set_maintenance_policy( &mut self, request: impl IntoRequest<SetMaintenancePolicyRequest>, ) -> Result<Response<Operation>, Status>

Sets the maintenance policy for a cluster.

source

pub async fn list_usable_subnetworks( &mut self, request: impl IntoRequest<ListUsableSubnetworksRequest>, ) -> Result<Response<ListUsableSubnetworksResponse>, Status>

Lists subnetworks that can be used for creating clusters in a project.

source

pub async fn check_autopilot_compatibility( &mut self, request: impl IntoRequest<CheckAutopilotCompatibilityRequest>, ) -> Result<Response<CheckAutopilotCompatibilityResponse>, Status>

Checks the cluster compatibility with Autopilot mode, and returns a list of compatibility issues.

source

pub async fn list_locations( &mut self, request: impl IntoRequest<ListLocationsRequest>, ) -> Result<Response<ListLocationsResponse>, Status>

Fetches locations that offer Google Kubernetes Engine.

Trait Implementations§

source§

impl<T: Clone> Clone for ClusterManagerClient<T>

source§

fn clone(&self) -> ClusterManagerClient<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T: Debug> Debug for ClusterManagerClient<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<T> !Freeze for ClusterManagerClient<T>

§

impl<T> RefUnwindSafe for ClusterManagerClient<T>
where T: RefUnwindSafe,

§

impl<T> Send for ClusterManagerClient<T>
where T: Send,

§

impl<T> Sync for ClusterManagerClient<T>
where T: Sync,

§

impl<T> Unpin for ClusterManagerClient<T>
where T: Unpin,

§

impl<T> UnwindSafe for ClusterManagerClient<T>
where T: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromRef<T> for T
where T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more