[−][src]Struct gcp_client::google::cloud::binaryauthorization::v1beta1::binauthz_management_service_v1_beta1_client::BinauthzManagementServiceV1Beta1Client
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]
T: GrpcService<BoxBody>,
T::ResponseBody: Body + HttpBody + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as HttpBody>::Error: Into<StdError> + Send,
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]
&'_ 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>
[src]
&'_ 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>
[src]
&'_ 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>
[src]
&'_ 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>
[src]
&'_ 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>
[src]
&'_ 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>
[src]
&'_ 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
impl<T: Clone> Clone for BinauthzManagementServiceV1Beta1Client<T>
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T> Debug for BinauthzManagementServiceV1Beta1Client<T>
[src]
Auto Trait Implementations
impl<T> !RefUnwindSafe for BinauthzManagementServiceV1Beta1Client<T>
impl<T> Send for BinauthzManagementServiceV1Beta1Client<T> where
T: Send,
T: Send,
impl<T> Sync for BinauthzManagementServiceV1Beta1Client<T> where
T: Sync,
T: Sync,
impl<T> Unpin for BinauthzManagementServiceV1Beta1Client<T> where
T: Unpin,
T: Unpin,
impl<T> !UnwindSafe for BinauthzManagementServiceV1Beta1Client<T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoRequest<T> for T
[src]
fn into_request(self) -> Request<T>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,