Struct googapis::google::cloud::compute::v1::node_groups_client::NodeGroupsClient [−][src]
pub struct NodeGroupsClient<T> { /* fields omitted */ }
Expand description
The NodeGroups API.
Implementations
impl<T> NodeGroupsClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> NodeGroupsClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn with_interceptor<F>(
inner: T,
interceptor: F
) -> NodeGroupsClient<InterceptedService<T, F>> where
F: Interceptor,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
Compress requests with gzip
.
This requires the server to support it otherwise it might respond with an error.
Enable decompressing responses with gzip
.
pub async fn add_nodes(
&mut self,
request: impl IntoRequest<AddNodesNodeGroupRequest>
) -> Result<Response<Operation>, Status>
pub async fn add_nodes(
&mut self,
request: impl IntoRequest<AddNodesNodeGroupRequest>
) -> Result<Response<Operation>, Status>
Adds specified number of nodes to the node group.
pub async fn aggregated_list(
&mut self,
request: impl IntoRequest<AggregatedListNodeGroupsRequest>
) -> Result<Response<NodeGroupAggregatedList>, Status>
pub async fn aggregated_list(
&mut self,
request: impl IntoRequest<AggregatedListNodeGroupsRequest>
) -> Result<Response<NodeGroupAggregatedList>, Status>
Retrieves an aggregated list of node groups. Note: use nodeGroups.listNodes for more details about each group.
pub async fn delete(
&mut self,
request: impl IntoRequest<DeleteNodeGroupRequest>
) -> Result<Response<Operation>, Status>
pub async fn delete(
&mut self,
request: impl IntoRequest<DeleteNodeGroupRequest>
) -> Result<Response<Operation>, Status>
Deletes the specified NodeGroup resource.
pub async fn delete_nodes(
&mut self,
request: impl IntoRequest<DeleteNodesNodeGroupRequest>
) -> Result<Response<Operation>, Status>
pub async fn delete_nodes(
&mut self,
request: impl IntoRequest<DeleteNodesNodeGroupRequest>
) -> Result<Response<Operation>, Status>
Deletes specified nodes from the node group.
pub async fn get(
&mut self,
request: impl IntoRequest<GetNodeGroupRequest>
) -> Result<Response<NodeGroup>, Status>
pub async fn get(
&mut self,
request: impl IntoRequest<GetNodeGroupRequest>
) -> Result<Response<NodeGroup>, Status>
Returns the specified NodeGroup. Get a list of available NodeGroups by making a list() request. Note: the “nodes” field should not be used. Use nodeGroups.listNodes instead.
pub async fn get_iam_policy(
&mut self,
request: impl IntoRequest<GetIamPolicyNodeGroupRequest>
) -> Result<Response<Policy>, Status>
pub async fn get_iam_policy(
&mut self,
request: impl IntoRequest<GetIamPolicyNodeGroupRequest>
) -> Result<Response<Policy>, Status>
Gets the access control policy for a resource. May be empty if no such policy or resource exists.
pub async fn insert(
&mut self,
request: impl IntoRequest<InsertNodeGroupRequest>
) -> Result<Response<Operation>, Status>
pub async fn insert(
&mut self,
request: impl IntoRequest<InsertNodeGroupRequest>
) -> Result<Response<Operation>, Status>
Creates a NodeGroup resource in the specified project using the data included in the request.
pub async fn list(
&mut self,
request: impl IntoRequest<ListNodeGroupsRequest>
) -> Result<Response<NodeGroupList>, Status>
pub async fn list(
&mut self,
request: impl IntoRequest<ListNodeGroupsRequest>
) -> Result<Response<NodeGroupList>, Status>
Retrieves a list of node groups available to the specified project. Note: use nodeGroups.listNodes for more details about each group.
pub async fn list_nodes(
&mut self,
request: impl IntoRequest<ListNodesNodeGroupsRequest>
) -> Result<Response<NodeGroupsListNodes>, Status>
pub async fn list_nodes(
&mut self,
request: impl IntoRequest<ListNodesNodeGroupsRequest>
) -> Result<Response<NodeGroupsListNodes>, Status>
Lists nodes in the node group.
pub async fn patch(
&mut self,
request: impl IntoRequest<PatchNodeGroupRequest>
) -> Result<Response<Operation>, Status>
pub async fn patch(
&mut self,
request: impl IntoRequest<PatchNodeGroupRequest>
) -> Result<Response<Operation>, Status>
Updates the specified node group.
pub async fn set_iam_policy(
&mut self,
request: impl IntoRequest<SetIamPolicyNodeGroupRequest>
) -> Result<Response<Policy>, Status>
pub async fn set_iam_policy(
&mut self,
request: impl IntoRequest<SetIamPolicyNodeGroupRequest>
) -> Result<Response<Policy>, Status>
Sets the access control policy on the specified resource. Replaces any existing policy.
pub async fn set_node_template(
&mut self,
request: impl IntoRequest<SetNodeTemplateNodeGroupRequest>
) -> Result<Response<Operation>, Status>
pub async fn set_node_template(
&mut self,
request: impl IntoRequest<SetNodeTemplateNodeGroupRequest>
) -> Result<Response<Operation>, Status>
Updates the node template of the node group.
pub async fn test_iam_permissions(
&mut self,
request: impl IntoRequest<TestIamPermissionsNodeGroupRequest>
) -> Result<Response<TestPermissionsResponse>, Status>
pub async fn test_iam_permissions(
&mut self,
request: impl IntoRequest<TestIamPermissionsNodeGroupRequest>
) -> Result<Response<TestPermissionsResponse>, Status>
Returns permissions that a caller has on the specified resource.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for NodeGroupsClient<T> where
T: RefUnwindSafe,
impl<T> Send for NodeGroupsClient<T> where
T: Send,
impl<T> Sync for NodeGroupsClient<T> where
T: Sync,
impl<T> Unpin for NodeGroupsClient<T> where
T: Unpin,
impl<T> UnwindSafe for NodeGroupsClient<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more