Struct google_api_proto::google::cloud::binaryauthorization::v1beta1::binauthz_management_service_v1_beta1_client::BinauthzManagementServiceV1Beta1Client
source · pub struct BinauthzManagementServiceV1Beta1Client<T> { /* private fields */ }
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§
source§impl<T> BinauthzManagementServiceV1Beta1Client<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> BinauthzManagementServiceV1Beta1Client<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
pub fn with_origin(inner: T, origin: Uri) -> Self
pub fn with_interceptor<F>(
inner: T,
interceptor: F
) -> BinauthzManagementServiceV1Beta1Client<InterceptedService<T, F>>where
F: Interceptor,
T::ResponseBody: Default,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
sourcepub fn send_compressed(self, encoding: CompressionEncoding) -> Self
pub fn send_compressed(self, encoding: CompressionEncoding) -> Self
Compress requests with the given encoding.
This requires the server to support it otherwise it might respond with an error.
sourcepub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
Enable decompressing responses.
sourcepub fn max_decoding_message_size(self, limit: usize) -> Self
pub fn max_decoding_message_size(self, limit: usize) -> Self
Limits the maximum size of a decoded message.
Default: 4MB
sourcepub fn max_encoding_message_size(self, limit: usize) -> Self
pub fn max_encoding_message_size(self, limit: usize) -> Self
Limits the maximum size of an encoded message.
Default: usize::MAX
sourcepub 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.
sourcepub 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.
sourcepub 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.
sourcepub 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.
sourcepub 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.
sourcepub 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.
sourcepub 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§
source§impl<T: Clone> Clone for BinauthzManagementServiceV1Beta1Client<T>
impl<T: Clone> Clone for BinauthzManagementServiceV1Beta1Client<T>
source§fn clone(&self) -> BinauthzManagementServiceV1Beta1Client<T>
fn clone(&self) -> BinauthzManagementServiceV1Beta1Client<T>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl<T> !Freeze for BinauthzManagementServiceV1Beta1Client<T>
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request