/// Deletes an autoscaling policy. It is an error to delete an autoscaling
/// policy that is in use by one or more clusters.
Deletes an autoscaling policy. It is an error to delete an autoscaling
policy that is in use by one or more clusters.
Deletes an autoscaling policy . It is an error to delete an autoscaling policy that is in use by one or more clusters .
pub async fn delete_autoscaling_policy(
            &mut self,
            request: impl tonic::IntoRequest<super::DeleteAutoscalingPolicyRequest>,
        ) -> Result<tonic::Response<()>, tonic::Status> {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/google.cloud.dataproc.v1.AutoscalingPolicyService/DeleteAutoscalingPolicy",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
pub async fn delete_autoscaling_policy ( & mut self , request : impl tonic :: IntoRequest < super :: DeleteAutoscalingPolicyRequest > , ) -> Result < tonic :: Response < ( ) > , tonic :: Status > { self . inner . ready ( ) . await . map_err ( | e | { tonic :: Status :: new ( tonic :: Code :: Unknown , format ! ( " " e into ( ) ) , ) } ) ? ; let codec = tonic :: codec :: ProstCodec :: default ( ) ; let path = http :: uri :: PathAndQuery :: from_static ( " " , ) ; self . inner . unary ( request . into_request ( ) , path , codec ) . await }
Deletes an autoscaling policy.
Deletes an autoscaling policy .
&mut self
request
impl tonic::IntoRequest<super::DeleteAutoscalingPolicyRequest>