[][src]Struct gcp_client::google::cloud::binaryauthorization::v1beta1::binauthz_management_service_v1_beta1_client::BinauthzManagementServiceV1Beta1Client

pub struct BinauthzManagementServiceV1Beta1Client<T> { /* fields omitted */ }

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 + HttpBody + Send + 'static,
    T::Error: Into<StdError>,
    <T::ResponseBody as HttpBody>::Error: Into<StdError> + Send
[src]

pub fn new(inner: T) -> Self[src]

pub fn with_interceptor(inner: T, interceptor: impl Into<Interceptor>) -> Self[src]

pub async fn get_policy<'_>(
    &'_ mut self,
    request: impl IntoRequest<GetPolicyRequest>
) -> Result<Response<Policy>, Status>
[src]

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>
[src]

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>
[src]

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>
[src]

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>
[src]

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>
[src]

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>
[src]

Deletes an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.

Trait Implementations

impl<T: Clone> Clone for BinauthzManagementServiceV1Beta1Client<T>[src]

impl<T> Debug for BinauthzManagementServiceV1Beta1Client<T>[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

impl<T> WithSubscriber for T[src]