pub struct FolderMethods<'a, S>
where S: 'a,
{ /* private fields */ }
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 google_securitycenter1 as securitycenter1;
 
use std::default::Default;
use securitycenter1::{SecurityCommandCenter, oauth2, hyper, hyper_rustls, chrono, FieldMask};
 
let secret: oauth2::ApplicationSecret = Default::default();
let auth = oauth2::InstalledFlowAuthenticator::builder(
        secret,
        oauth2::InstalledFlowReturnMethod::HTTPRedirect,
    ).build().await.unwrap();
let mut hub = SecurityCommandCenter::new(hyper::Client::builder().build(hyper_rustls::HttpsConnectorBuilder::new().with_native_roots().https_or_http().enable_http1().build()), auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `assets_group(...)`, `assets_list(...)`, `assets_update_security_marks(...)`, `big_query_exports_create(...)`, `big_query_exports_delete(...)`, `big_query_exports_get(...)`, `big_query_exports_list(...)`, `big_query_exports_patch(...)`, `event_threat_detection_settings_custom_modules_create(...)`, `event_threat_detection_settings_custom_modules_delete(...)`, `event_threat_detection_settings_custom_modules_get(...)`, `event_threat_detection_settings_custom_modules_list(...)`, `event_threat_detection_settings_custom_modules_list_descendant(...)`, `event_threat_detection_settings_custom_modules_patch(...)`, `event_threat_detection_settings_effective_custom_modules_get(...)`, `event_threat_detection_settings_effective_custom_modules_list(...)`, `event_threat_detection_settings_validate_custom_module(...)`, `findings_bulk_mute(...)`, `locations_mute_configs_delete(...)`, `locations_mute_configs_get(...)`, `locations_mute_configs_patch(...)`, `mute_configs_create(...)`, `mute_configs_delete(...)`, `mute_configs_get(...)`, `mute_configs_list(...)`, `mute_configs_patch(...)`, `notification_configs_create(...)`, `notification_configs_delete(...)`, `notification_configs_get(...)`, `notification_configs_list(...)`, `notification_configs_patch(...)`, `security_health_analytics_settings_custom_modules_create(...)`, `security_health_analytics_settings_custom_modules_delete(...)`, `security_health_analytics_settings_custom_modules_get(...)`, `security_health_analytics_settings_custom_modules_list(...)`, `security_health_analytics_settings_custom_modules_list_descendant(...)`, `security_health_analytics_settings_custom_modules_patch(...)`, `security_health_analytics_settings_custom_modules_simulate(...)`, `security_health_analytics_settings_effective_custom_modules_get(...)`, `security_health_analytics_settings_effective_custom_modules_list(...)`, `sources_findings_external_systems_patch(...)`, `sources_findings_group(...)`, `sources_findings_list(...)`, `sources_findings_patch(...)`, `sources_findings_set_mute(...)`, `sources_findings_set_state(...)`, `sources_findings_update_security_marks(...)` and `sources_list(...)`
// to build up your call.
let rb = hub.folders();

Implementations§

source§

impl<'a, S> FolderMethods<'a, S>

source

pub fn assets_group( &self, request: GroupAssetsRequest, parent: &str ) -> FolderAssetGroupCall<'a, S>

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. The name of the parent to group the assets by. Its format is “organizations/[organization_id]”, “folders/[folder_id]”, or “projects/[project_id]”.
source

pub fn assets_list(&self, parent: &str) -> FolderAssetListCall<'a, S>

Create a builder to help you perform the following task:

Lists an organization’s assets.

§Arguments
  • parent - Required. The name of the parent resource that contains the assets. The value that you can specify on parent depends on the method in which you specify parent. You can specify one of the following values: “organizations/[organization_id]”, “folders/[folder_id]”, or “projects/[project_id]”.
source

pub fn assets_update_security_marks( &self, request: SecurityMarks, name: &str ) -> FolderAssetUpdateSecurityMarkCall<'a, S>

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”.
source

pub fn big_query_exports_create( &self, request: GoogleCloudSecuritycenterV1BigQueryExport, parent: &str ) -> FolderBigQueryExportCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates a BigQuery export.

§Arguments
  • request - No description provided.
  • parent - Required. The name of the parent resource of the new BigQuery export. Its format is “organizations/[organization_id]”, “folders/[folder_id]”, or “projects/[project_id]”.
source

pub fn big_query_exports_delete( &self, name: &str ) -> FolderBigQueryExportDeleteCall<'a, S>

Create a builder to help you perform the following task:

Deletes an existing BigQuery export.

§Arguments
  • name - Required. The name of the BigQuery export to delete. Its format is organizations/{organization}/bigQueryExports/{export_id}, folders/{folder}/bigQueryExports/{export_id}, or projects/{project}/bigQueryExports/{export_id}
source

pub fn big_query_exports_get( &self, name: &str ) -> FolderBigQueryExportGetCall<'a, S>

Create a builder to help you perform the following task:

Gets a BigQuery export.

§Arguments
  • name - Required. Name of the BigQuery export to retrieve. Its format is organizations/{organization}/bigQueryExports/{export_id}, folders/{folder}/bigQueryExports/{export_id}, or projects/{project}/bigQueryExports/{export_id}
source

pub fn big_query_exports_list( &self, parent: &str ) -> FolderBigQueryExportListCall<'a, S>

Create a builder to help you perform the following task:

Lists BigQuery exports. Note that when requesting BigQuery exports at a given level all exports under that level are also returned e.g. if requesting BigQuery exports under a folder, then all BigQuery exports immediately under the folder plus the ones created under the projects within the folder are returned.

§Arguments
  • parent - Required. The parent, which owns the collection of BigQuery exports. Its format is “organizations/[organization_id]”, “folders/[folder_id]”, “projects/[project_id]”.
source

pub fn big_query_exports_patch( &self, request: GoogleCloudSecuritycenterV1BigQueryExport, name: &str ) -> FolderBigQueryExportPatchCall<'a, S>

Create a builder to help you perform the following task:

Updates a BigQuery export.

§Arguments
  • request - No description provided.
  • name - The relative resource name of this export. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name. Example format: “organizations/{organization_id}/bigQueryExports/{export_id}” Example format: “folders/{folder_id}/bigQueryExports/{export_id}” Example format: “projects/{project_id}/bigQueryExports/{export_id}” This field is provided in responses, and is ignored when provided in create requests.
source

pub fn event_threat_detection_settings_custom_modules_create( &self, request: EventThreatDetectionCustomModule, parent: &str ) -> FolderEventThreatDetectionSettingCustomModuleCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates a resident Event Threat Detection custom module at the scope of the given Resource Manager parent, and also creates inherited custom modules for all descendants of the given parent. These modules are enabled by default.

§Arguments
  • request - No description provided.
  • parent - Required. The new custom module’s parent. Its format is: * “organizations/{organization}/eventThreatDetectionSettings”. * “folders/{folder}/eventThreatDetectionSettings”. * “projects/{project}/eventThreatDetectionSettings”.
source

pub fn event_threat_detection_settings_custom_modules_delete( &self, name: &str ) -> FolderEventThreatDetectionSettingCustomModuleDeleteCall<'a, S>

Create a builder to help you perform the following task:

Deletes the specified Event Threat Detection custom module and all of its descendants in the Resource Manager hierarchy. This method is only supported for resident custom modules.

§Arguments
  • name - Required. Name of the custom module to delete. Its format is: * “organizations/{organization}/eventThreatDetectionSettings/customModules/{module}”. * “folders/{folder}/eventThreatDetectionSettings/customModules/{module}”. * “projects/{project}/eventThreatDetectionSettings/customModules/{module}”.
source

pub fn event_threat_detection_settings_custom_modules_get( &self, name: &str ) -> FolderEventThreatDetectionSettingCustomModuleGetCall<'a, S>

Create a builder to help you perform the following task:

Gets an Event Threat Detection custom module.

§Arguments
  • name - Required. Name of the custom module to get. Its format is: * “organizations/{organization}/eventThreatDetectionSettings/customModules/{module}”. * “folders/{folder}/eventThreatDetectionSettings/customModules/{module}”. * “projects/{project}/eventThreatDetectionSettings/customModules/{module}”.
source

pub fn event_threat_detection_settings_custom_modules_list( &self, parent: &str ) -> FolderEventThreatDetectionSettingCustomModuleListCall<'a, S>

Create a builder to help you perform the following task:

Lists all Event Threat Detection custom modules for the given Resource Manager parent. This includes resident modules defined at the scope of the parent along with modules inherited from ancestors.

§Arguments
  • parent - Required. Name of the parent to list custom modules under. Its format is: * “organizations/{organization}/eventThreatDetectionSettings”. * “folders/{folder}/eventThreatDetectionSettings”. * “projects/{project}/eventThreatDetectionSettings”.
source

pub fn event_threat_detection_settings_custom_modules_list_descendant( &self, parent: &str ) -> FolderEventThreatDetectionSettingCustomModuleListDescendantCall<'a, S>

Create a builder to help you perform the following task:

Lists all resident Event Threat Detection custom modules under the given Resource Manager parent and its descendants.

§Arguments
  • parent - Required. Name of the parent to list custom modules under. Its format is: * “organizations/{organization}/eventThreatDetectionSettings”. * “folders/{folder}/eventThreatDetectionSettings”. * “projects/{project}/eventThreatDetectionSettings”.
source

pub fn event_threat_detection_settings_custom_modules_patch( &self, request: EventThreatDetectionCustomModule, name: &str ) -> FolderEventThreatDetectionSettingCustomModulePatchCall<'a, S>

Create a builder to help you perform the following task:

Updates the Event Threat Detection custom module with the given name based on the given update mask. Updating the enablement state is supported for both resident and inherited modules (though resident modules cannot have an enablement state of “inherited”). Updating the display name or configuration of a module is supported for resident modules only. The type of a module cannot be changed.

§Arguments
  • request - No description provided.
  • name - Immutable. The resource name of the Event Threat Detection custom module. Its format is: * “organizations/{organization}/eventThreatDetectionSettings/customModules/{module}”. * “folders/{folder}/eventThreatDetectionSettings/customModules/{module}”. * “projects/{project}/eventThreatDetectionSettings/customModules/{module}”.
source

pub fn event_threat_detection_settings_effective_custom_modules_get( &self, name: &str ) -> FolderEventThreatDetectionSettingEffectiveCustomModuleGetCall<'a, S>

Create a builder to help you perform the following task:

Gets an effective Event Threat Detection custom module at the given level.

§Arguments
  • name - Required. The resource name of the effective Event Threat Detection custom module. Its format is: * “organizations/{organization}/eventThreatDetectionSettings/effectiveCustomModules/{module}”. * “folders/{folder}/eventThreatDetectionSettings/effectiveCustomModules/{module}”. * “projects/{project}/eventThreatDetectionSettings/effectiveCustomModules/{module}”.
source

pub fn event_threat_detection_settings_effective_custom_modules_list( &self, parent: &str ) -> FolderEventThreatDetectionSettingEffectiveCustomModuleListCall<'a, S>

Create a builder to help you perform the following task:

Lists all effective Event Threat Detection custom modules for the given parent. This includes resident modules defined at the scope of the parent along with modules inherited from its ancestors.

§Arguments
  • parent - Required. Name of the parent to list custom modules for. Its format is: * “organizations/{organization}/eventThreatDetectionSettings”. * “folders/{folder}/eventThreatDetectionSettings”. * “projects/{project}/eventThreatDetectionSettings”.
source

pub fn event_threat_detection_settings_validate_custom_module( &self, request: ValidateEventThreatDetectionCustomModuleRequest, parent: &str ) -> FolderEventThreatDetectionSettingValidateCustomModuleCall<'a, S>

Create a builder to help you perform the following task:

Validates the given Event Threat Detection custom module.

§Arguments
  • request - No description provided.
  • parent - Required. Resource name of the parent to validate the Custom Module under. Its format is: * “organizations/{organization}/eventThreatDetectionSettings”. * “folders/{folder}/eventThreatDetectionSettings”. * “projects/{project}/eventThreatDetectionSettings”.
source

pub fn findings_bulk_mute( &self, request: BulkMuteFindingsRequest, parent: &str ) -> FolderFindingBulkMuteCall<'a, S>

Create a builder to help you perform the following task:

Kicks off an LRO to bulk mute findings for a parent based on a filter. The parent can be either an organization, folder or project. The findings matched by the filter will be muted after the LRO is done.

§Arguments
  • request - No description provided.
  • parent - Required. The parent, at which bulk action needs to be applied. Its format is “organizations/[organization_id]”, “folders/[folder_id]”, “projects/[project_id]”.
source

pub fn locations_mute_configs_delete( &self, name: &str ) -> FolderLocationMuteConfigDeleteCall<'a, S>

Create a builder to help you perform the following task:

Deletes an existing mute config.

§Arguments
  • name - Required. Name of the mute config to delete. Its format is organizations/{organization}/muteConfigs/{config_id}, folders/{folder}/muteConfigs/{config_id}, projects/{project}/muteConfigs/{config_id}, organizations/{organization}/locations/global/muteConfigs/{config_id}, folders/{folder}/locations/global/muteConfigs/{config_id}, or projects/{project}/locations/global/muteConfigs/{config_id}.
source

pub fn locations_mute_configs_get( &self, name: &str ) -> FolderLocationMuteConfigGetCall<'a, S>

Create a builder to help you perform the following task:

Gets a mute config.

§Arguments
  • name - Required. Name of the mute config to retrieve. Its format is organizations/{organization}/muteConfigs/{config_id}, folders/{folder}/muteConfigs/{config_id}, projects/{project}/muteConfigs/{config_id}, organizations/{organization}/locations/global/muteConfigs/{config_id}, folders/{folder}/locations/global/muteConfigs/{config_id}, or projects/{project}/locations/global/muteConfigs/{config_id}.
source

pub fn locations_mute_configs_patch( &self, request: GoogleCloudSecuritycenterV1MuteConfig, name: &str ) -> FolderLocationMuteConfigPatchCall<'a, S>

Create a builder to help you perform the following task:

Updates a mute config.

§Arguments
  • request - No description provided.
  • name - This field will be ignored if provided on config creation. Format “organizations/{organization}/muteConfigs/{mute_config}” “folders/{folder}/muteConfigs/{mute_config}” “projects/{project}/muteConfigs/{mute_config}” “organizations/{organization}/locations/global/muteConfigs/{mute_config}” “folders/{folder}/locations/global/muteConfigs/{mute_config}” “projects/{project}/locations/global/muteConfigs/{mute_config}”
source

pub fn mute_configs_create( &self, request: GoogleCloudSecuritycenterV1MuteConfig, parent: &str ) -> FolderMuteConfigCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates a mute config.

§Arguments
  • request - No description provided.
  • parent - Required. Resource name of the new mute configs’s parent. Its format is “organizations/[organization_id]”, “folders/[folder_id]”, or “projects/[project_id]”.
source

pub fn mute_configs_delete( &self, name: &str ) -> FolderMuteConfigDeleteCall<'a, S>

Create a builder to help you perform the following task:

Deletes an existing mute config.

§Arguments
  • name - Required. Name of the mute config to delete. Its format is organizations/{organization}/muteConfigs/{config_id}, folders/{folder}/muteConfigs/{config_id}, projects/{project}/muteConfigs/{config_id}, organizations/{organization}/locations/global/muteConfigs/{config_id}, folders/{folder}/locations/global/muteConfigs/{config_id}, or projects/{project}/locations/global/muteConfigs/{config_id}.
source

pub fn mute_configs_get(&self, name: &str) -> FolderMuteConfigGetCall<'a, S>

Create a builder to help you perform the following task:

Gets a mute config.

§Arguments
  • name - Required. Name of the mute config to retrieve. Its format is organizations/{organization}/muteConfigs/{config_id}, folders/{folder}/muteConfigs/{config_id}, projects/{project}/muteConfigs/{config_id}, organizations/{organization}/locations/global/muteConfigs/{config_id}, folders/{folder}/locations/global/muteConfigs/{config_id}, or projects/{project}/locations/global/muteConfigs/{config_id}.
source

pub fn mute_configs_list(&self, parent: &str) -> FolderMuteConfigListCall<'a, S>

Create a builder to help you perform the following task:

Lists mute configs.

§Arguments
  • parent - Required. The parent, which owns the collection of mute configs. Its format is “organizations/[organization_id]”, “folders/[folder_id]”, “projects/[project_id]”.
source

pub fn mute_configs_patch( &self, request: GoogleCloudSecuritycenterV1MuteConfig, name: &str ) -> FolderMuteConfigPatchCall<'a, S>

Create a builder to help you perform the following task:

Updates a mute config.

§Arguments
  • request - No description provided.
  • name - This field will be ignored if provided on config creation. Format “organizations/{organization}/muteConfigs/{mute_config}” “folders/{folder}/muteConfigs/{mute_config}” “projects/{project}/muteConfigs/{mute_config}” “organizations/{organization}/locations/global/muteConfigs/{mute_config}” “folders/{folder}/locations/global/muteConfigs/{mute_config}” “projects/{project}/locations/global/muteConfigs/{mute_config}”
source

pub fn notification_configs_create( &self, request: NotificationConfig, parent: &str ) -> FolderNotificationConfigCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates a notification config.

§Arguments
  • request - No description provided.
  • parent - Required. Resource name of the new notification config’s parent. Its format is “organizations/[organization_id]”, “folders/[folder_id]”, or “projects/[project_id]”.
source

pub fn notification_configs_delete( &self, name: &str ) -> FolderNotificationConfigDeleteCall<'a, S>

Create a builder to help you perform the following task:

Deletes a notification config.

§Arguments
  • name - Required. Name of the notification config to delete. Its format is “organizations/[organization_id]/notificationConfigs/[config_id]”, “folders/[folder_id]/notificationConfigs/[config_id]”, or “projects/[project_id]/notificationConfigs/[config_id]”.
source

pub fn notification_configs_get( &self, name: &str ) -> FolderNotificationConfigGetCall<'a, S>

Create a builder to help you perform the following task:

Gets a notification config.

§Arguments
  • name - Required. Name of the notification config to get. Its format is “organizations/[organization_id]/notificationConfigs/[config_id]”, “folders/[folder_id]/notificationConfigs/[config_id]”, or “projects/[project_id]/notificationConfigs/[config_id]”.
source

pub fn notification_configs_list( &self, parent: &str ) -> FolderNotificationConfigListCall<'a, S>

Create a builder to help you perform the following task:

Lists notification configs.

§Arguments
  • parent - Required. The name of the parent in which to list the notification configurations. Its format is “organizations/[organization_id]”, “folders/[folder_id]”, or “projects/[project_id]”.
source

pub fn notification_configs_patch( &self, request: NotificationConfig, name: &str ) -> FolderNotificationConfigPatchCall<'a, S>

Create a builder to help you perform the following task:

Updates a notification config. The following update fields are allowed: description, pubsub_topic, streaming_config.filter

§Arguments
  • request - No description provided.
  • name - The relative resource name of this notification config. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: “organizations/{organization_id}/notificationConfigs/notify_public_bucket”, “folders/{folder_id}/notificationConfigs/notify_public_bucket”, or “projects/{project_id}/notificationConfigs/notify_public_bucket”.
source

pub fn security_health_analytics_settings_custom_modules_create( &self, request: GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule, parent: &str ) -> FolderSecurityHealthAnalyticsSettingCustomModuleCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the given CRM parent, and also creates inherited SecurityHealthAnalyticsCustomModules for all CRM descendants of the given parent. These modules are enabled by default.

§Arguments
  • request - No description provided.
  • parent - Required. Resource name of the new custom module’s parent. Its format is “organizations/{organization}/securityHealthAnalyticsSettings”, “folders/{folder}/securityHealthAnalyticsSettings”, or “projects/{project}/securityHealthAnalyticsSettings”
source

pub fn security_health_analytics_settings_custom_modules_delete( &self, name: &str ) -> FolderSecurityHealthAnalyticsSettingCustomModuleDeleteCall<'a, S>

Create a builder to help you perform the following task:

Deletes the specified SecurityHealthAnalyticsCustomModule and all of its descendants in the CRM hierarchy. This method is only supported for resident custom modules.

§Arguments
  • name - Required. Name of the custom module to delete. Its format is “organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}”, “folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}”, or “projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}”
source

pub fn security_health_analytics_settings_custom_modules_get( &self, name: &str ) -> FolderSecurityHealthAnalyticsSettingCustomModuleGetCall<'a, S>

Create a builder to help you perform the following task:

Retrieves a SecurityHealthAnalyticsCustomModule.

§Arguments
  • name - Required. Name of the custom module to get. Its format is “organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}”, “folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}”, or “projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}”
source

pub fn security_health_analytics_settings_custom_modules_list( &self, parent: &str ) -> FolderSecurityHealthAnalyticsSettingCustomModuleListCall<'a, S>

Create a builder to help you perform the following task:

Returns a list of all SecurityHealthAnalyticsCustomModules for the given parent. This includes resident modules defined at the scope of the parent, and inherited modules, inherited from CRM ancestors.

§Arguments
  • parent - Required. Name of parent to list custom modules. Its format is “organizations/{organization}/securityHealthAnalyticsSettings”, “folders/{folder}/securityHealthAnalyticsSettings”, or “projects/{project}/securityHealthAnalyticsSettings”
source

pub fn security_health_analytics_settings_custom_modules_list_descendant( &self, parent: &str ) -> FolderSecurityHealthAnalyticsSettingCustomModuleListDescendantCall<'a, S>

Create a builder to help you perform the following task:

Returns a list of all resident SecurityHealthAnalyticsCustomModules under the given CRM parent and all of the parent’s CRM descendants.

§Arguments
  • parent - Required. Name of parent to list descendant custom modules. Its format is “organizations/{organization}/securityHealthAnalyticsSettings”, “folders/{folder}/securityHealthAnalyticsSettings”, or “projects/{project}/securityHealthAnalyticsSettings”
source

pub fn security_health_analytics_settings_custom_modules_patch( &self, request: GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule, name: &str ) -> FolderSecurityHealthAnalyticsSettingCustomModulePatchCall<'a, S>

Create a builder to help you perform the following task:

Updates the SecurityHealthAnalyticsCustomModule under the given name based on the given update mask. Updating the enablement state is supported on both resident and inherited modules (though resident modules cannot have an enablement state of “inherited”). Updating the display name and custom config of a module is supported on resident modules only.

§Arguments
  • request - No description provided.
  • name - Immutable. The resource name of the custom module. Its format is “organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}”, or “folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}”, or “projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}” The id {customModule} is server-generated and is not user settable. It will be a numeric id containing 1-20 digits.
source

pub fn security_health_analytics_settings_custom_modules_simulate( &self, request: SimulateSecurityHealthAnalyticsCustomModuleRequest, parent: &str ) -> FolderSecurityHealthAnalyticsSettingCustomModuleSimulateCall<'a, S>

Create a builder to help you perform the following task:

Simulates a given SecurityHealthAnalyticsCustomModule and Resource.

§Arguments
  • request - No description provided.
  • parent - Required. The relative resource name of the organization, project, or folder. For more information about relative resource names, see Relative Resource Name Example: organizations/{organization_id}
source

pub fn security_health_analytics_settings_effective_custom_modules_get( &self, name: &str ) -> FolderSecurityHealthAnalyticsSettingEffectiveCustomModuleGetCall<'a, S>

Create a builder to help you perform the following task:

Retrieves an EffectiveSecurityHealthAnalyticsCustomModule.

§Arguments
  • name - Required. Name of the effective custom module to get. Its format is “organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}”, “folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}”, or “projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}”
source

pub fn security_health_analytics_settings_effective_custom_modules_list( &self, parent: &str ) -> FolderSecurityHealthAnalyticsSettingEffectiveCustomModuleListCall<'a, S>

Create a builder to help you perform the following task:

Returns a list of all EffectiveSecurityHealthAnalyticsCustomModules for the given parent. This includes resident modules defined at the scope of the parent, and inherited modules, inherited from CRM ancestors.

§Arguments
  • parent - Required. Name of parent to list effective custom modules. Its format is “organizations/{organization}/securityHealthAnalyticsSettings”, “folders/{folder}/securityHealthAnalyticsSettings”, or “projects/{project}/securityHealthAnalyticsSettings”
source

pub fn sources_findings_external_systems_patch( &self, request: GoogleCloudSecuritycenterV1ExternalSystem, name: &str ) -> FolderSourceFindingExternalSystemPatchCall<'a, S>

Create a builder to help you perform the following task:

Updates external system. This is for a given finding.

§Arguments
  • request - No description provided.
  • name - Full resource name of the external system, for example: “organizations/1234/sources/5678/findings/123456/externalSystems/jira”, “folders/1234/sources/5678/findings/123456/externalSystems/jira”, “projects/1234/sources/5678/findings/123456/externalSystems/jira”
source

pub fn sources_findings_group( &self, request: GroupFindingsRequest, parent: &str ) -> FolderSourceFindingGroupCall<'a, S>

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/-
source

pub fn sources_findings_list( &self, parent: &str ) -> FolderSourceFindingListCall<'a, S>

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/-
source

pub fn sources_findings_patch( &self, request: Finding, name: &str ) -> FolderSourceFindingPatchCall<'a, S>

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 the finding. Example: “organizations/{organization_id}/sources/{source_id}/findings/{finding_id}”, “folders/{folder_id}/sources/{source_id}/findings/{finding_id}”, “projects/{project_id}/sources/{source_id}/findings/{finding_id}”.
source

pub fn sources_findings_set_mute( &self, request: SetMuteRequest, name: &str ) -> FolderSourceFindingSetMuteCall<'a, S>

Create a builder to help you perform the following task:

Updates the mute state of a finding.

§Arguments
  • request - No description provided.
  • name - Required. The relative resource name of the finding. Example: “organizations/{organization_id}/sources/{source_id}/findings/{finding_id}”, “folders/{folder_id}/sources/{source_id}/findings/{finding_id}”, “projects/{project_id}/sources/{source_id}/findings/{finding_id}”.
source

pub fn sources_findings_set_state( &self, request: SetFindingStateRequest, name: &str ) -> FolderSourceFindingSetStateCall<'a, S>

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. Example: “organizations/{organization_id}/sources/{source_id}/findings/{finding_id}”, “folders/{folder_id}/sources/{source_id}/findings/{finding_id}”, “projects/{project_id}/sources/{source_id}/findings/{finding_id}”.
source

pub fn sources_findings_update_security_marks( &self, request: SecurityMarks, name: &str ) -> FolderSourceFindingUpdateSecurityMarkCall<'a, S>

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”.
source

pub fn sources_list(&self, parent: &str) -> FolderSourceListCall<'a, S>

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§

source§

impl<'a, S> MethodsBuilder for FolderMethods<'a, S>

Auto Trait Implementations§

§

impl<'a, S> !RefUnwindSafe for FolderMethods<'a, S>

§

impl<'a, S> Send for FolderMethods<'a, S>
where S: Sync,

§

impl<'a, S> Sync for FolderMethods<'a, S>
where S: Sync,

§

impl<'a, S> Unpin for FolderMethods<'a, S>

§

impl<'a, S> !UnwindSafe for FolderMethods<'a, S>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

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

fn in_current_span(self) -> Instrumented<Self>

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

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more