Struct googapis::google::cloud::binaryauthorization::v1beta1::binauthz_management_service_v1_beta1_client::BinauthzManagementServiceV1Beta1Client [−][src]
pub struct BinauthzManagementServiceV1Beta1Client<T> { /* fields omitted */ }
Expand description
Google Cloud Management Service for Binary Authorization admission policies and attestation authorities.
This API implements a REST model with the following objects:
- [Policy][google.cloud.binaryauthorization.v1beta1.Policy]
- [Attestor][google.cloud.binaryauthorization.v1beta1.Attestor]
Implementations
impl<T> BinauthzManagementServiceV1Beta1Client<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> BinauthzManagementServiceV1Beta1Client<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
) -> BinauthzManagementServiceV1Beta1Client<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 get_policy(
&mut self,
request: impl IntoRequest<GetPolicyRequest>
) -> Result<Response<Policy>, Status>
pub async fn get_policy(
&mut self,
request: impl IntoRequest<GetPolicyRequest>
) -> Result<Response<Policy>, Status>
A [policy][google.cloud.binaryauthorization.v1beta1.Policy] specifies the [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] that must attest to a container image, before the project is allowed to deploy that image. There is at most one policy per project. All image admission requests are permitted if a project has no policy.
Gets the [policy][google.cloud.binaryauthorization.v1beta1.Policy] for this project. Returns a default [policy][google.cloud.binaryauthorization.v1beta1.Policy] if the project does not have one.
pub async fn update_policy(
&mut self,
request: impl IntoRequest<UpdatePolicyRequest>
) -> Result<Response<Policy>, Status>
pub async fn update_policy(
&mut self,
request: impl IntoRequest<UpdatePolicyRequest>
) -> Result<Response<Policy>, Status>
Creates or updates a project’s [policy][google.cloud.binaryauthorization.v1beta1.Policy], and returns a copy of the new [policy][google.cloud.binaryauthorization.v1beta1.Policy]. A policy is always updated as a whole, to avoid race conditions with concurrent policy enforcement (or management!) requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT if the request is malformed.
pub async fn create_attestor(
&mut self,
request: impl IntoRequest<CreateAttestorRequest>
) -> Result<Response<Attestor>, Status>
pub async fn create_attestor(
&mut self,
request: impl IntoRequest<CreateAttestorRequest>
) -> Result<Response<Attestor>, Status>
Creates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor], and returns a copy of the new [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] already exists.
pub async fn get_attestor(
&mut self,
request: impl IntoRequest<GetAttestorRequest>
) -> Result<Response<Attestor>, Status>
pub async fn get_attestor(
&mut self,
request: impl IntoRequest<GetAttestorRequest>
) -> Result<Response<Attestor>, Status>
Gets an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.
pub async fn update_attestor(
&mut self,
request: impl IntoRequest<UpdateAttestorRequest>
) -> Result<Response<Attestor>, Status>
pub async fn update_attestor(
&mut self,
request: impl IntoRequest<UpdateAttestorRequest>
) -> Result<Response<Attestor>, Status>
Updates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.
pub async fn list_attestors(
&mut self,
request: impl IntoRequest<ListAttestorsRequest>
) -> Result<Response<ListAttestorsResponse>, Status>
pub async fn list_attestors(
&mut self,
request: impl IntoRequest<ListAttestorsRequest>
) -> Result<Response<ListAttestorsResponse>, Status>
Lists [attestors][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns INVALID_ARGUMENT if the project does not exist.
pub async fn delete_attestor(
&mut self,
request: impl IntoRequest<DeleteAttestorRequest>
) -> Result<Response<()>, Status>
pub async fn delete_attestor(
&mut self,
request: impl IntoRequest<DeleteAttestorRequest>
) -> Result<Response<()>, Status>
Deletes an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for BinauthzManagementServiceV1Beta1Client<T> where
T: RefUnwindSafe,
impl<T> Send for BinauthzManagementServiceV1Beta1Client<T> where
T: Send,
impl<T> Sync for BinauthzManagementServiceV1Beta1Client<T> where
T: Sync,
impl<T> Unpin for BinauthzManagementServiceV1Beta1Client<T> where
T: Unpin,
impl<T> UnwindSafe for BinauthzManagementServiceV1Beta1Client<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