Struct googapis::google::cloud::gkehub::v1beta::gke_hub_client::GkeHubClient [−][src]
pub struct GkeHubClient<T> { /* fields omitted */ }
Expand description
The GKE Hub service handles the registration of many Kubernetes clusters to Google Cloud, and the management of multi-cluster features over those clusters.
The GKE Hub service operates on the following resources:
- [Membership][google.cloud.gkehub.v1beta.Membership]
- [Feature][google.cloud.gkehub.v1beta.Feature]
GKE Hub is currently only available in the global region.
Membership management may be non-trivial: it is recommended to use one of the Google-provided client libraries or tools where possible when working with Membership resources.
Implementations
impl<T> GkeHubClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> GkeHubClient<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
) -> GkeHubClient<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 list_features(
&mut self,
request: impl IntoRequest<ListFeaturesRequest>
) -> Result<Response<ListFeaturesResponse>, Status>
pub async fn list_features(
&mut self,
request: impl IntoRequest<ListFeaturesRequest>
) -> Result<Response<ListFeaturesResponse>, Status>
Lists Features in a given project and location.
pub async fn get_feature(
&mut self,
request: impl IntoRequest<GetFeatureRequest>
) -> Result<Response<Feature>, Status>
pub async fn get_feature(
&mut self,
request: impl IntoRequest<GetFeatureRequest>
) -> Result<Response<Feature>, Status>
Gets details of a single Feature.
pub async fn create_feature(
&mut self,
request: impl IntoRequest<CreateFeatureRequest>
) -> Result<Response<Operation>, Status>
pub async fn create_feature(
&mut self,
request: impl IntoRequest<CreateFeatureRequest>
) -> Result<Response<Operation>, Status>
Adds a new Feature.
pub async fn delete_feature(
&mut self,
request: impl IntoRequest<DeleteFeatureRequest>
) -> Result<Response<Operation>, Status>
pub async fn delete_feature(
&mut self,
request: impl IntoRequest<DeleteFeatureRequest>
) -> Result<Response<Operation>, Status>
Removes a Feature.
pub async fn update_feature(
&mut self,
request: impl IntoRequest<UpdateFeatureRequest>
) -> Result<Response<Operation>, Status>
pub async fn update_feature(
&mut self,
request: impl IntoRequest<UpdateFeatureRequest>
) -> Result<Response<Operation>, Status>
Updates an existing Feature.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for GkeHubClient<T> where
T: RefUnwindSafe,
impl<T> Send for GkeHubClient<T> where
T: Send,
impl<T> Sync for GkeHubClient<T> where
T: Sync,
impl<T> Unpin for GkeHubClient<T> where
T: Unpin,
impl<T> UnwindSafe for GkeHubClient<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