Struct gapi_grpc::google::devtools::containeranalysis::v1beta1::container_analysis_v1_beta1_client::ContainerAnalysisV1Beta1Client[][src]

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

Retrieves analysis results of Cloud components such as Docker container images. The Container Analysis API is an implementation of the Grafeas API.

Analysis results are stored as a series of occurrences. An Occurrence contains information about a specific analysis instance on a resource. An occurrence refers to a Note. A note contains details describing the analysis and is generally stored in a separate project, called a Provider. Multiple occurrences can refer to the same note.

For example, an SSL vulnerability could affect multiple images. In this case, there would be one note for the vulnerability and an occurrence for each image with the vulnerability referring to that note.

Implementations

impl ContainerAnalysisV1Beta1Client<Channel>[src]

pub async fn connect<D>(dst: D) -> Result<Self, Error> where
    D: TryInto<Endpoint>,
    D::Error: Into<StdError>, 
[src]

Attempt to create a new client by connecting to a given endpoint.

impl<T> ContainerAnalysisV1Beta1Client<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 set_iam_policy(
    &mut self,
    request: impl IntoRequest<SetIamPolicyRequest>
) -> Result<Response<Policy>, Status>
[src]

Sets the access control policy on the specified note or occurrence. Requires containeranalysis.notes.setIamPolicy or containeranalysis.occurrences.setIamPolicy permission if the resource is a note or an occurrence, respectively.

The resource takes the format projects/[PROJECT_ID]/notes/[NOTE_ID] for notes and projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID] for occurrences.

pub async fn get_iam_policy(
    &mut self,
    request: impl IntoRequest<GetIamPolicyRequest>
) -> Result<Response<Policy>, Status>
[src]

Gets the access control policy for a note or an occurrence resource. Requires containeranalysis.notes.setIamPolicy or containeranalysis.occurrences.setIamPolicy permission if the resource is a note or occurrence, respectively.

The resource takes the format projects/[PROJECT_ID]/notes/[NOTE_ID] for notes and projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID] for occurrences.

pub async fn test_iam_permissions(
    &mut self,
    request: impl IntoRequest<TestIamPermissionsRequest>
) -> Result<Response<TestIamPermissionsResponse>, Status>
[src]

Returns the permissions that a caller has on the specified note or occurrence. Requires list permission on the project (for example, containeranalysis.notes.list).

The resource takes the format projects/[PROJECT_ID]/notes/[NOTE_ID] for notes and projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID] for occurrences.

pub async fn get_scan_config(
    &mut self,
    request: impl IntoRequest<GetScanConfigRequest>
) -> Result<Response<ScanConfig>, Status>
[src]

Gets the specified scan configuration.

pub async fn list_scan_configs(
    &mut self,
    request: impl IntoRequest<ListScanConfigsRequest>
) -> Result<Response<ListScanConfigsResponse>, Status>
[src]

Lists scan configurations for the specified project.

pub async fn update_scan_config(
    &mut self,
    request: impl IntoRequest<UpdateScanConfigRequest>
) -> Result<Response<ScanConfig>, Status>
[src]

Updates the specified scan configuration.

Trait Implementations

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

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

Auto Trait Implementations

impl<T> !RefUnwindSafe for ContainerAnalysisV1Beta1Client<T>

impl<T> Send for ContainerAnalysisV1Beta1Client<T> where
    T: Send

impl<T> Sync for ContainerAnalysisV1Beta1Client<T> where
    T: Sync

impl<T> Unpin for ContainerAnalysisV1Beta1Client<T> where
    T: Unpin

impl<T> !UnwindSafe for ContainerAnalysisV1Beta1Client<T>

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

impl<T> WithSubscriber for T[src]