Struct google_securitycenter1::api::FolderMethods[][src]

pub struct FolderMethods<'a> { /* fields omitted */ }
Expand description

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

Example

Instantiate a resource builder

extern crate hyper;
extern crate hyper_rustls;
extern crate yup_oauth2 as oauth2;
extern crate google_securitycenter1 as securitycenter1;
 
use std::default::Default;
use oauth2;
use securitycenter1::SecurityCommandCenter;
 
let secret: oauth2::ApplicationSecret = Default::default();
let auth = yup_oauth2::InstalledFlowAuthenticator::builder(
        secret,
        yup_oauth2::InstalledFlowReturnMethod::HTTPRedirect,
    ).build().await.unwrap();
let mut hub = SecurityCommandCenter::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `assets_group(...)`, `assets_list(...)`, `assets_update_security_marks(...)`, `sources_findings_group(...)`, `sources_findings_list(...)`, `sources_findings_patch(...)`, `sources_findings_set_state(...)`, `sources_findings_update_security_marks(...)` and `sources_list(...)`
// to build up your call.
let rb = hub.folders();

Implementations

Create a builder to help you perform the following task:

Filters an organization’s assets and groups them by their specified properties.

Arguments

  • request - No description provided.
  • parent - Required. Name of the organization to groupBy. Its format is “organizations/[organization_id], folders/[folder_id], or projects/[project_id]”.

Create a builder to help you perform the following task:

Lists an organization’s assets.

Arguments

  • parent - Required. Name of the organization assets should belong to. Its format is “organizations/[organization_id], folders/[folder_id], or projects/[project_id]”.

Create a builder to help you perform the following task:

Updates security marks.

Arguments

  • request - No description provided.
  • name - The relative resource name of the SecurityMarks. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Examples: “organizations/{organization_id}/assets/{asset_id}/securityMarks” “organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks”.

Create a builder to help you perform the following task:

Filters an organization or source’s findings and groups them by their specified properties. To group across all sources provide a - as the source id. Example: /v1/organizations/{organization_id}/sources/-/findings, /v1/folders/{folder_id}/sources/-/findings, /v1/projects/{project_id}/sources/-/findings

Arguments

  • request - No description provided.
  • parent - Required. Name of the source to groupBy. Its format is “organizations/[organization_id]/sources/[source_id]”, folders/[folder_id]/sources/[source_id], or projects/[project_id]/sources/[source_id]. To groupBy across all sources provide a source_id of -. For example: organizations/{organization_id}/sources/-, folders/{folder_id}/sources/-, or projects/{project_id}/sources/-

Create a builder to help you perform the following task:

Lists an organization or source’s findings. To list across all sources provide a - as the source id. Example: /v1/organizations/{organization_id}/sources/-/findings

Arguments

  • parent - Required. Name of the source the findings belong to. Its format is “organizations/[organization_id]/sources/[source_id], folders/[folder_id]/sources/[source_id], or projects/[project_id]/sources/[source_id]”. To list across all sources provide a source_id of -. For example: organizations/{organization_id}/sources/-, folders/{folder_id}/sources/- or projects/{projects_id}/sources/-

Create a builder to help you perform the following task:

Creates or updates a finding. The corresponding source must exist for a finding creation to succeed.

Arguments

  • request - No description provided.
  • name - The relative resource name of this finding. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: “organizations/{organization_id}/sources/{source_id}/findings/{finding_id}”

Create a builder to help you perform the following task:

Updates the state of a finding.

Arguments

  • request - No description provided.
  • name - Required. The relative resource name of the finding. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: “organizations/{organization_id}/sources/{source_id}/finding/{finding_id}”.

Create a builder to help you perform the following task:

Updates security marks.

Arguments

  • request - No description provided.
  • name - The relative resource name of the SecurityMarks. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Examples: “organizations/{organization_id}/assets/{asset_id}/securityMarks” “organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks”.

Create a builder to help you perform the following task:

Lists all sources belonging to an organization.

Arguments

  • parent - Required. Resource name of the parent of sources to list. Its format should be “organizations/[organization_id], folders/[folder_id], or projects/[project_id]”.

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

Performs the conversion.

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

Performs the conversion.

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.