pub struct ProjectMethods<'a> { /* private fields */ }
Expand description

A builder providing access to all methods supported on project resources. It is not used directly, but through the ContainerAnalysis hub.

Example

Instantiate a resource builder

extern crate hyper;
extern crate hyper_rustls;
extern crate google_containeranalysis1 as containeranalysis1;
 
use std::default::Default;
use containeranalysis1::{ContainerAnalysis, oauth2, hyper, hyper_rustls};
 
let secret: oauth2::ApplicationSecret = Default::default();
let auth = oauth2::InstalledFlowAuthenticator::builder(
        secret,
        oauth2::InstalledFlowReturnMethod::HTTPRedirect,
    ).build().await.unwrap();
let mut hub = ContainerAnalysis::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `notes_batch_create(...)`, `notes_create(...)`, `notes_delete(...)`, `notes_get(...)`, `notes_get_iam_policy(...)`, `notes_list(...)`, `notes_occurrences_list(...)`, `notes_patch(...)`, `notes_set_iam_policy(...)`, `notes_test_iam_permissions(...)`, `occurrences_batch_create(...)`, `occurrences_create(...)`, `occurrences_delete(...)`, `occurrences_get(...)`, `occurrences_get_iam_policy(...)`, `occurrences_get_notes(...)`, `occurrences_get_vulnerability_summary(...)`, `occurrences_list(...)`, `occurrences_patch(...)`, `occurrences_set_iam_policy(...)` and `occurrences_test_iam_permissions(...)`
// to build up your call.
let rb = hub.projects();

Implementations

Create a builder to help you perform the following task:

Lists occurrences referencing the specified note. Provider projects can use this method to get all occurrences across consumer projects referencing the specified note.

Arguments
  • name - Required. The name of the note to list occurrences for in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID].

Create a builder to help you perform the following task:

Creates new notes in batch.

Arguments
  • request - No description provided.
  • parent - Required. The name of the project in the form of projects/[PROJECT_ID], under which the notes are to be created.

Create a builder to help you perform the following task:

Creates a new note.

Arguments
  • request - No description provided.
  • parent - Required. The name of the project in the form of projects/[PROJECT_ID], under which the note is to be created.

Create a builder to help you perform the following task:

Deletes the specified note.

Arguments
  • name - Required. The name of the note in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID].

Create a builder to help you perform the following task:

Gets the specified note.

Arguments
  • name - Required. The name of the note in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID].

Create a builder to help you perform the following task:

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.

Arguments
  • request - No description provided.
  • resource - REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.

Create a builder to help you perform the following task:

Lists notes for the specified project.

Arguments
  • parent - Required. The name of the project to list notes for in the form of projects/[PROJECT_ID].

Create a builder to help you perform the following task:

Updates the specified note.

Arguments
  • request - No description provided.
  • name - Required. The name of the note in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID].

Create a builder to help you perform the following task:

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.

Arguments
  • request - No description provided.
  • resource - REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.

Create a builder to help you perform the following task:

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.

Arguments
  • request - No description provided.
  • resource - REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.

Create a builder to help you perform the following task:

Creates new occurrences in batch.

Arguments
  • request - No description provided.
  • parent - Required. The name of the project in the form of projects/[PROJECT_ID], under which the occurrences are to be created.

Create a builder to help you perform the following task:

Creates a new occurrence.

Arguments
  • request - No description provided.
  • parent - Required. The name of the project in the form of projects/[PROJECT_ID], under which the occurrence is to be created.

Create a builder to help you perform the following task:

Deletes the specified occurrence. For example, use this method to delete an occurrence when the occurrence is no longer applicable for the given resource.

Arguments
  • name - Required. The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].

Create a builder to help you perform the following task:

Gets the specified occurrence.

Arguments
  • name - Required. The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].

Create a builder to help you perform the following task:

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.

Arguments
  • request - No description provided.
  • resource - REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.

Create a builder to help you perform the following task:

Gets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project.

Arguments
  • name - Required. The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].

Create a builder to help you perform the following task:

Gets a summary of the number and severity of occurrences.

Arguments
  • parent - Required. The name of the project to get a vulnerability summary for in the form of projects/[PROJECT_ID].

Create a builder to help you perform the following task:

Lists occurrences for the specified project.

Arguments
  • parent - Required. The name of the project to list occurrences for in the form of projects/[PROJECT_ID].

Create a builder to help you perform the following task:

Updates the specified occurrence.

Arguments
  • request - No description provided.
  • name - Required. The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].

Create a builder to help you perform the following task:

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.

Arguments
  • request - No description provided.
  • resource - REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.

Create a builder to help you perform the following task:

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.

Arguments
  • request - No description provided.
  • resource - REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.

Trait Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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