Finding

Struct Finding 

Source
#[non_exhaustive]
pub struct Finding {
Show 61 fields pub name: String, pub canonical_name: String, pub parent: String, pub resource_name: String, pub state: State, pub category: String, pub external_uri: String, pub source_properties: HashMap<String, Value>, pub security_marks: Option<SecurityMarks>, pub event_time: Option<Timestamp>, pub create_time: Option<Timestamp>, pub severity: Severity, pub mute: Mute, pub mute_info: Option<MuteInfo>, pub finding_class: FindingClass, pub indicator: Option<Indicator>, pub vulnerability: Option<Vulnerability>, pub mute_update_time: Option<Timestamp>, pub external_systems: HashMap<String, ExternalSystem>, pub mitre_attack: Option<MitreAttack>, pub access: Option<Access>, pub connections: Vec<Connection>, pub mute_initiator: String, pub processes: Vec<Process>, pub contacts: HashMap<String, ContactDetails>, pub compliances: Vec<Compliance>, pub parent_display_name: String, pub description: String, pub exfiltration: Option<Exfiltration>, pub iam_bindings: Vec<IamBinding>, pub next_steps: String, pub module_name: String, pub containers: Vec<Container>, pub kubernetes: Option<Kubernetes>, pub database: Option<Database>, pub attack_exposure: Option<AttackExposure>, pub files: Vec<File>, pub cloud_dlp_inspection: Option<CloudDlpInspection>, pub cloud_dlp_data_profile: Option<CloudDlpDataProfile>, pub kernel_rootkit: Option<KernelRootkit>, pub org_policies: Vec<OrgPolicy>, pub job: Option<Job>, pub application: Option<Application>, pub ip_rules: Option<IpRules>, pub backup_disaster_recovery: Option<BackupDisasterRecovery>, pub security_posture: Option<SecurityPosture>, pub log_entries: Vec<LogEntry>, pub load_balancers: Vec<LoadBalancer>, pub cloud_armor: Option<CloudArmor>, pub notebook: Option<Notebook>, pub toxic_combination: Option<ToxicCombination>, pub group_memberships: Vec<GroupMembership>, pub disk: Option<Disk>, pub data_access_events: Vec<DataAccessEvent>, pub data_flow_events: Vec<DataFlowEvent>, pub networks: Vec<Network>, pub data_retention_deletion_events: Vec<DataRetentionDeletionEvent>, pub affected_resources: Option<AffectedResources>, pub ai_model: Option<AiModel>, pub chokepoint: Option<Chokepoint>, pub vertex_ai: Option<VertexAi>, /* private fields */
}
Expand description

Security Command Center finding.

A finding is a record of assessment data like security, risk, health, or privacy, that is ingested into Security Command Center for presentation, notification, analysis, policy testing, and enforcement. For example, a cross-site scripting (XSS) vulnerability in an App Engine application is a finding.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§name: String

Identifier. The relative resource name of the finding. The following list shows some examples:

organizations/{organization_id}/sources/{source_id}/findings/{finding_id} + organizations/{organization_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}

  • folders/{folder_id}/sources/{source_id}/findings/{finding_id}

folders/{folder_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}

  • projects/{project_id}/sources/{source_id}/findings/{finding_id}

projects/{project_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}

§canonical_name: String

Output only. The canonical name of the finding. The following list shows some examples:

organizations/{organization_id}/sources/{source_id}/findings/{finding_id} + organizations/{organization_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}

  • folders/{folder_id}/sources/{source_id}/findings/{finding_id}

folders/{folder_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}

  • projects/{project_id}/sources/{source_id}/findings/{finding_id}

projects/{project_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}

The prefix is the closest CRM ancestor of the resource associated with the finding.

§parent: String

The relative resource name of the source and location the finding belongs to. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name This field is immutable after creation time. The following list shows some examples:

  • organizations/{organization_id}/sources/{source_id}
  • folders/{folders_id}/sources/{source_id}
  • projects/{projects_id}/sources/{source_id}

organizations/{organization_id}/sources/{source_id}/locations/{location_id}

  • folders/{folders_id}/sources/{source_id}/locations/{location_id}
  • projects/{projects_id}/sources/{source_id}/locations/{location_id}
§resource_name: String

Immutable. For findings on Google Cloud resources, the full resource name of the Google Cloud resource this finding is for. See: https://cloud.google.com/apis/design/resource_names#full_resource_name When the finding is for a non-Google Cloud resource, the resourceName can be a customer or partner defined string.

§state: State

Output only. The state of the finding.

§category: String

Immutable. The additional taxonomy group within findings from a given source. Example: “XSS_FLASH_INJECTION”

§external_uri: String

The URI that, if available, points to a web page outside of Security Command Center where additional information about the finding can be found. This field is guaranteed to be either empty or a well formed URL.

§source_properties: HashMap<String, Value>

Source specific properties. These properties are managed by the source that writes the finding. The key names in the source_properties map must be between 1 and 255 characters, and must start with a letter and contain alphanumeric characters or underscores only.

§security_marks: Option<SecurityMarks>

Output only. User specified security marks. These marks are entirely managed by the user and come from the SecurityMarks resource that belongs to the finding.

§event_time: Option<Timestamp>

The time the finding was first detected. If an existing finding is updated, then this is the time the update occurred. For example, if the finding represents an open firewall, this property captures the time the detector believes the firewall became open. The accuracy is determined by the detector. If the finding is later resolved, then this time reflects when the finding was resolved. This must not be set to a value greater than the current timestamp.

§create_time: Option<Timestamp>

Output only. The time at which the finding was created in Security Command Center.

§severity: Severity

The severity of the finding. This field is managed by the source that writes the finding.

§mute: Mute

Indicates the mute state of a finding (either muted, unmuted or undefined). Unlike other attributes of a finding, a finding provider shouldn’t set the value of mute.

§mute_info: Option<MuteInfo>

Output only. The mute information regarding this finding.

§finding_class: FindingClass

The class of the finding.

§indicator: Option<Indicator>

Represents what’s commonly known as an indicator of compromise (IoC) in computer forensics. This is an artifact observed on a network or in an operating system that, with high confidence, indicates a computer intrusion. For more information, see Indicator of compromise.

§vulnerability: Option<Vulnerability>

Represents vulnerability-specific fields like CVE and CVSS scores. CVE stands for Common Vulnerabilities and Exposures (https://cve.mitre.org/about/)

§mute_update_time: Option<Timestamp>

Output only. The most recent time this finding was muted or unmuted.

§external_systems: HashMap<String, ExternalSystem>

Output only. Third party SIEM/SOAR fields within SCC, contains external system information and external system finding fields.

§mitre_attack: Option<MitreAttack>

MITRE ATT&CK tactics and techniques related to this finding. See: https://attack.mitre.org

§access: Option<Access>

Access details associated with the finding, such as more information on the caller, which method was accessed, and from where.

§connections: Vec<Connection>

Contains information about the IP connection associated with the finding.

§mute_initiator: String

Records additional information about the mute operation, for example, the mute configuration that muted the finding and the user who muted the finding.

§processes: Vec<Process>

Represents operating system processes associated with the Finding.

§contacts: HashMap<String, ContactDetails>

Output only. Map containing the points of contact for the given finding. The key represents the type of contact, while the value contains a list of all the contacts that pertain. Please refer to: https://cloud.google.com/resource-manager/docs/managing-notification-contacts#notification-categories

{
  "security": {
    "contacts": [
      {
        "email": "person1@company.com"
      },
      {
        "email": "person2@company.com"
      }
    ]
  }
}
§compliances: Vec<Compliance>

Contains compliance information for security standards associated to the finding.

§parent_display_name: String

Output only. The human readable display name of the finding source such as “Event Threat Detection” or “Security Health Analytics”.

§description: String

Contains more details about the finding.

§exfiltration: Option<Exfiltration>

Represents exfiltrations associated with the finding.

§iam_bindings: Vec<IamBinding>

Represents IAM bindings associated with the finding.

§next_steps: String

Steps to address the finding.

§module_name: String

Unique identifier of the module which generated the finding. Example: folders/598186756061/securityHealthAnalyticsSettings/customModules/56799441161885

§containers: Vec<Container>

Containers associated with the finding. This field provides information for both Kubernetes and non-Kubernetes containers.

§kubernetes: Option<Kubernetes>

Kubernetes resources associated with the finding.

§database: Option<Database>

Database associated with the finding.

§attack_exposure: Option<AttackExposure>

The results of an attack path simulation relevant to this finding.

§files: Vec<File>

File associated with the finding.

§cloud_dlp_inspection: Option<CloudDlpInspection>

Cloud Data Loss Prevention (Cloud DLP) inspection results that are associated with the finding.

§cloud_dlp_data_profile: Option<CloudDlpDataProfile>

Cloud DLP data profile that is associated with the finding.

§kernel_rootkit: Option<KernelRootkit>

Signature of the kernel rootkit.

§org_policies: Vec<OrgPolicy>

Contains information about the org policies associated with the finding.

§job: Option<Job>

Job associated with the finding.

§application: Option<Application>

Represents an application associated with the finding.

§ip_rules: Option<IpRules>

IP rules associated with the finding.

§backup_disaster_recovery: Option<BackupDisasterRecovery>

Fields related to Backup and DR findings.

§security_posture: Option<SecurityPosture>

The security posture associated with the finding.

§log_entries: Vec<LogEntry>

Log entries that are relevant to the finding.

§load_balancers: Vec<LoadBalancer>

The load balancers associated with the finding.

§cloud_armor: Option<CloudArmor>

Fields related to Cloud Armor findings.

§notebook: Option<Notebook>

Notebook associated with the finding.

§toxic_combination: Option<ToxicCombination>

Contains details about a group of security issues that, when the issues occur together, represent a greater risk than when the issues occur independently. A group of such issues is referred to as a toxic combination. This field cannot be updated. Its value is ignored in all update requests.

§group_memberships: Vec<GroupMembership>

Contains details about groups of which this finding is a member. A group is a collection of findings that are related in some way. This field cannot be updated. Its value is ignored in all update requests.

§disk: Option<Disk>

Disk associated with the finding.

§data_access_events: Vec<DataAccessEvent>

Data access events associated with the finding.

§data_flow_events: Vec<DataFlowEvent>

Data flow events associated with the finding.

§networks: Vec<Network>

Represents the VPC networks that the resource is attached to.

§data_retention_deletion_events: Vec<DataRetentionDeletionEvent>

Data retention deletion events associated with the finding.

§affected_resources: Option<AffectedResources>

AffectedResources associated with the finding.

§ai_model: Option<AiModel>

The AI model associated with the finding.

§chokepoint: Option<Chokepoint>

Contains details about a chokepoint, which is a resource or resource group where high-risk attack paths converge, based on [attack path simulations] (https://cloud.google.com/security-command-center/docs/attack-exposure-learn#attack_path_simulations). This field cannot be updated. Its value is ignored in all update requests.

§vertex_ai: Option<VertexAi>

VertexAi associated with the finding.

Implementations§

Source§

impl Finding

Source

pub fn new() -> Self

Source

pub fn set_name<T: Into<String>>(self, v: T) -> Self

Sets the value of name.

§Example
let x = Finding::new().set_name("example");
Source

pub fn set_canonical_name<T: Into<String>>(self, v: T) -> Self

Sets the value of canonical_name.

§Example
let x = Finding::new().set_canonical_name("example");
Source

pub fn set_parent<T: Into<String>>(self, v: T) -> Self

Sets the value of parent.

§Example
let x = Finding::new().set_parent("example");
Source

pub fn set_resource_name<T: Into<String>>(self, v: T) -> Self

Sets the value of resource_name.

§Example
let x = Finding::new().set_resource_name("example");
Source

pub fn set_state<T: Into<State>>(self, v: T) -> Self

Sets the value of state.

§Example
use google_cloud_securitycenter_v2::model::finding::State;
let x0 = Finding::new().set_state(State::Active);
let x1 = Finding::new().set_state(State::Inactive);
Source

pub fn set_category<T: Into<String>>(self, v: T) -> Self

Sets the value of category.

§Example
let x = Finding::new().set_category("example");
Source

pub fn set_external_uri<T: Into<String>>(self, v: T) -> Self

Sets the value of external_uri.

§Example
let x = Finding::new().set_external_uri("example");
Source

pub fn set_source_properties<T, K, V>(self, v: T) -> Self
where T: IntoIterator<Item = (K, V)>, K: Into<String>, V: Into<Value>,

Sets the value of source_properties.

§Example
use wkt::Value;
let x = Finding::new().set_source_properties([
    ("key0", Value::default()/* use setters */),
    ("key1", Value::default()/* use (different) setters */),
]);
Source

pub fn set_security_marks<T>(self, v: T) -> Self
where T: Into<SecurityMarks>,

Sets the value of security_marks.

§Example
use google_cloud_securitycenter_v2::model::SecurityMarks;
let x = Finding::new().set_security_marks(SecurityMarks::default()/* use setters */);
Source

pub fn set_or_clear_security_marks<T>(self, v: Option<T>) -> Self
where T: Into<SecurityMarks>,

Sets or clears the value of security_marks.

§Example
use google_cloud_securitycenter_v2::model::SecurityMarks;
let x = Finding::new().set_or_clear_security_marks(Some(SecurityMarks::default()/* use setters */));
let x = Finding::new().set_or_clear_security_marks(None::<SecurityMarks>);
Source

pub fn set_event_time<T>(self, v: T) -> Self
where T: Into<Timestamp>,

Sets the value of event_time.

§Example
use wkt::Timestamp;
let x = Finding::new().set_event_time(Timestamp::default()/* use setters */);
Source

pub fn set_or_clear_event_time<T>(self, v: Option<T>) -> Self
where T: Into<Timestamp>,

Sets or clears the value of event_time.

§Example
use wkt::Timestamp;
let x = Finding::new().set_or_clear_event_time(Some(Timestamp::default()/* use setters */));
let x = Finding::new().set_or_clear_event_time(None::<Timestamp>);
Source

pub fn set_create_time<T>(self, v: T) -> Self
where T: Into<Timestamp>,

Sets the value of create_time.

§Example
use wkt::Timestamp;
let x = Finding::new().set_create_time(Timestamp::default()/* use setters */);
Source

pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
where T: Into<Timestamp>,

Sets or clears the value of create_time.

§Example
use wkt::Timestamp;
let x = Finding::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = Finding::new().set_or_clear_create_time(None::<Timestamp>);
Source

pub fn set_severity<T: Into<Severity>>(self, v: T) -> Self

Sets the value of severity.

§Example
use google_cloud_securitycenter_v2::model::finding::Severity;
let x0 = Finding::new().set_severity(Severity::Critical);
let x1 = Finding::new().set_severity(Severity::High);
let x2 = Finding::new().set_severity(Severity::Medium);
Source

pub fn set_mute<T: Into<Mute>>(self, v: T) -> Self

Sets the value of mute.

§Example
use google_cloud_securitycenter_v2::model::finding::Mute;
let x0 = Finding::new().set_mute(Mute::Muted);
let x1 = Finding::new().set_mute(Mute::Unmuted);
let x2 = Finding::new().set_mute(Mute::Undefined);
Source

pub fn set_mute_info<T>(self, v: T) -> Self
where T: Into<MuteInfo>,

Sets the value of mute_info.

§Example
use google_cloud_securitycenter_v2::model::finding::MuteInfo;
let x = Finding::new().set_mute_info(MuteInfo::default()/* use setters */);
Source

pub fn set_or_clear_mute_info<T>(self, v: Option<T>) -> Self
where T: Into<MuteInfo>,

Sets or clears the value of mute_info.

§Example
use google_cloud_securitycenter_v2::model::finding::MuteInfo;
let x = Finding::new().set_or_clear_mute_info(Some(MuteInfo::default()/* use setters */));
let x = Finding::new().set_or_clear_mute_info(None::<MuteInfo>);
Source

pub fn set_finding_class<T: Into<FindingClass>>(self, v: T) -> Self

Sets the value of finding_class.

§Example
use google_cloud_securitycenter_v2::model::finding::FindingClass;
let x0 = Finding::new().set_finding_class(FindingClass::Threat);
let x1 = Finding::new().set_finding_class(FindingClass::Vulnerability);
let x2 = Finding::new().set_finding_class(FindingClass::Misconfiguration);
Source

pub fn set_indicator<T>(self, v: T) -> Self
where T: Into<Indicator>,

Sets the value of indicator.

§Example
use google_cloud_securitycenter_v2::model::Indicator;
let x = Finding::new().set_indicator(Indicator::default()/* use setters */);
Source

pub fn set_or_clear_indicator<T>(self, v: Option<T>) -> Self
where T: Into<Indicator>,

Sets or clears the value of indicator.

§Example
use google_cloud_securitycenter_v2::model::Indicator;
let x = Finding::new().set_or_clear_indicator(Some(Indicator::default()/* use setters */));
let x = Finding::new().set_or_clear_indicator(None::<Indicator>);
Source

pub fn set_vulnerability<T>(self, v: T) -> Self
where T: Into<Vulnerability>,

Sets the value of vulnerability.

§Example
use google_cloud_securitycenter_v2::model::Vulnerability;
let x = Finding::new().set_vulnerability(Vulnerability::default()/* use setters */);
Source

pub fn set_or_clear_vulnerability<T>(self, v: Option<T>) -> Self
where T: Into<Vulnerability>,

Sets or clears the value of vulnerability.

§Example
use google_cloud_securitycenter_v2::model::Vulnerability;
let x = Finding::new().set_or_clear_vulnerability(Some(Vulnerability::default()/* use setters */));
let x = Finding::new().set_or_clear_vulnerability(None::<Vulnerability>);
Source

pub fn set_mute_update_time<T>(self, v: T) -> Self
where T: Into<Timestamp>,

Sets the value of mute_update_time.

§Example
use wkt::Timestamp;
let x = Finding::new().set_mute_update_time(Timestamp::default()/* use setters */);
Source

pub fn set_or_clear_mute_update_time<T>(self, v: Option<T>) -> Self
where T: Into<Timestamp>,

Sets or clears the value of mute_update_time.

§Example
use wkt::Timestamp;
let x = Finding::new().set_or_clear_mute_update_time(Some(Timestamp::default()/* use setters */));
let x = Finding::new().set_or_clear_mute_update_time(None::<Timestamp>);
Source

pub fn set_external_systems<T, K, V>(self, v: T) -> Self
where T: IntoIterator<Item = (K, V)>, K: Into<String>, V: Into<ExternalSystem>,

Sets the value of external_systems.

§Example
use google_cloud_securitycenter_v2::model::ExternalSystem;
let x = Finding::new().set_external_systems([
    ("key0", ExternalSystem::default()/* use setters */),
    ("key1", ExternalSystem::default()/* use (different) setters */),
]);
Source

pub fn set_mitre_attack<T>(self, v: T) -> Self
where T: Into<MitreAttack>,

Sets the value of mitre_attack.

§Example
use google_cloud_securitycenter_v2::model::MitreAttack;
let x = Finding::new().set_mitre_attack(MitreAttack::default()/* use setters */);
Source

pub fn set_or_clear_mitre_attack<T>(self, v: Option<T>) -> Self
where T: Into<MitreAttack>,

Sets or clears the value of mitre_attack.

§Example
use google_cloud_securitycenter_v2::model::MitreAttack;
let x = Finding::new().set_or_clear_mitre_attack(Some(MitreAttack::default()/* use setters */));
let x = Finding::new().set_or_clear_mitre_attack(None::<MitreAttack>);
Source

pub fn set_access<T>(self, v: T) -> Self
where T: Into<Access>,

Sets the value of access.

§Example
use google_cloud_securitycenter_v2::model::Access;
let x = Finding::new().set_access(Access::default()/* use setters */);
Source

pub fn set_or_clear_access<T>(self, v: Option<T>) -> Self
where T: Into<Access>,

Sets or clears the value of access.

§Example
use google_cloud_securitycenter_v2::model::Access;
let x = Finding::new().set_or_clear_access(Some(Access::default()/* use setters */));
let x = Finding::new().set_or_clear_access(None::<Access>);
Source

pub fn set_connections<T, V>(self, v: T) -> Self
where T: IntoIterator<Item = V>, V: Into<Connection>,

Sets the value of connections.

§Example
use google_cloud_securitycenter_v2::model::Connection;
let x = Finding::new()
    .set_connections([
        Connection::default()/* use setters */,
        Connection::default()/* use (different) setters */,
    ]);
Source

pub fn set_mute_initiator<T: Into<String>>(self, v: T) -> Self

Sets the value of mute_initiator.

§Example
let x = Finding::new().set_mute_initiator("example");
Source

pub fn set_processes<T, V>(self, v: T) -> Self
where T: IntoIterator<Item = V>, V: Into<Process>,

Sets the value of processes.

§Example
use google_cloud_securitycenter_v2::model::Process;
let x = Finding::new()
    .set_processes([
        Process::default()/* use setters */,
        Process::default()/* use (different) setters */,
    ]);
Source

pub fn set_contacts<T, K, V>(self, v: T) -> Self
where T: IntoIterator<Item = (K, V)>, K: Into<String>, V: Into<ContactDetails>,

Sets the value of contacts.

§Example
use google_cloud_securitycenter_v2::model::ContactDetails;
let x = Finding::new().set_contacts([
    ("key0", ContactDetails::default()/* use setters */),
    ("key1", ContactDetails::default()/* use (different) setters */),
]);
Source

pub fn set_compliances<T, V>(self, v: T) -> Self
where T: IntoIterator<Item = V>, V: Into<Compliance>,

Sets the value of compliances.

§Example
use google_cloud_securitycenter_v2::model::Compliance;
let x = Finding::new()
    .set_compliances([
        Compliance::default()/* use setters */,
        Compliance::default()/* use (different) setters */,
    ]);
Source

pub fn set_parent_display_name<T: Into<String>>(self, v: T) -> Self

Sets the value of parent_display_name.

§Example
let x = Finding::new().set_parent_display_name("example");
Source

pub fn set_description<T: Into<String>>(self, v: T) -> Self

Sets the value of description.

§Example
let x = Finding::new().set_description("example");
Source

pub fn set_exfiltration<T>(self, v: T) -> Self
where T: Into<Exfiltration>,

Sets the value of exfiltration.

§Example
use google_cloud_securitycenter_v2::model::Exfiltration;
let x = Finding::new().set_exfiltration(Exfiltration::default()/* use setters */);
Source

pub fn set_or_clear_exfiltration<T>(self, v: Option<T>) -> Self
where T: Into<Exfiltration>,

Sets or clears the value of exfiltration.

§Example
use google_cloud_securitycenter_v2::model::Exfiltration;
let x = Finding::new().set_or_clear_exfiltration(Some(Exfiltration::default()/* use setters */));
let x = Finding::new().set_or_clear_exfiltration(None::<Exfiltration>);
Source

pub fn set_iam_bindings<T, V>(self, v: T) -> Self
where T: IntoIterator<Item = V>, V: Into<IamBinding>,

Sets the value of iam_bindings.

§Example
use google_cloud_securitycenter_v2::model::IamBinding;
let x = Finding::new()
    .set_iam_bindings([
        IamBinding::default()/* use setters */,
        IamBinding::default()/* use (different) setters */,
    ]);
Source

pub fn set_next_steps<T: Into<String>>(self, v: T) -> Self

Sets the value of next_steps.

§Example
let x = Finding::new().set_next_steps("example");
Source

pub fn set_module_name<T: Into<String>>(self, v: T) -> Self

Sets the value of module_name.

§Example
let x = Finding::new().set_module_name("example");
Source

pub fn set_containers<T, V>(self, v: T) -> Self
where T: IntoIterator<Item = V>, V: Into<Container>,

Sets the value of containers.

§Example
use google_cloud_securitycenter_v2::model::Container;
let x = Finding::new()
    .set_containers([
        Container::default()/* use setters */,
        Container::default()/* use (different) setters */,
    ]);
Source

pub fn set_kubernetes<T>(self, v: T) -> Self
where T: Into<Kubernetes>,

Sets the value of kubernetes.

§Example
use google_cloud_securitycenter_v2::model::Kubernetes;
let x = Finding::new().set_kubernetes(Kubernetes::default()/* use setters */);
Source

pub fn set_or_clear_kubernetes<T>(self, v: Option<T>) -> Self
where T: Into<Kubernetes>,

Sets or clears the value of kubernetes.

§Example
use google_cloud_securitycenter_v2::model::Kubernetes;
let x = Finding::new().set_or_clear_kubernetes(Some(Kubernetes::default()/* use setters */));
let x = Finding::new().set_or_clear_kubernetes(None::<Kubernetes>);
Source

pub fn set_database<T>(self, v: T) -> Self
where T: Into<Database>,

Sets the value of database.

§Example
use google_cloud_securitycenter_v2::model::Database;
let x = Finding::new().set_database(Database::default()/* use setters */);
Source

pub fn set_or_clear_database<T>(self, v: Option<T>) -> Self
where T: Into<Database>,

Sets or clears the value of database.

§Example
use google_cloud_securitycenter_v2::model::Database;
let x = Finding::new().set_or_clear_database(Some(Database::default()/* use setters */));
let x = Finding::new().set_or_clear_database(None::<Database>);
Source

pub fn set_attack_exposure<T>(self, v: T) -> Self
where T: Into<AttackExposure>,

Sets the value of attack_exposure.

§Example
use google_cloud_securitycenter_v2::model::AttackExposure;
let x = Finding::new().set_attack_exposure(AttackExposure::default()/* use setters */);
Source

pub fn set_or_clear_attack_exposure<T>(self, v: Option<T>) -> Self
where T: Into<AttackExposure>,

Sets or clears the value of attack_exposure.

§Example
use google_cloud_securitycenter_v2::model::AttackExposure;
let x = Finding::new().set_or_clear_attack_exposure(Some(AttackExposure::default()/* use setters */));
let x = Finding::new().set_or_clear_attack_exposure(None::<AttackExposure>);
Source

pub fn set_files<T, V>(self, v: T) -> Self
where T: IntoIterator<Item = V>, V: Into<File>,

Sets the value of files.

§Example
use google_cloud_securitycenter_v2::model::File;
let x = Finding::new()
    .set_files([
        File::default()/* use setters */,
        File::default()/* use (different) setters */,
    ]);
Source

pub fn set_cloud_dlp_inspection<T>(self, v: T) -> Self

Sets the value of cloud_dlp_inspection.

§Example
use google_cloud_securitycenter_v2::model::CloudDlpInspection;
let x = Finding::new().set_cloud_dlp_inspection(CloudDlpInspection::default()/* use setters */);
Source

pub fn set_or_clear_cloud_dlp_inspection<T>(self, v: Option<T>) -> Self

Sets or clears the value of cloud_dlp_inspection.

§Example
use google_cloud_securitycenter_v2::model::CloudDlpInspection;
let x = Finding::new().set_or_clear_cloud_dlp_inspection(Some(CloudDlpInspection::default()/* use setters */));
let x = Finding::new().set_or_clear_cloud_dlp_inspection(None::<CloudDlpInspection>);
Source

pub fn set_cloud_dlp_data_profile<T>(self, v: T) -> Self

Sets the value of cloud_dlp_data_profile.

§Example
use google_cloud_securitycenter_v2::model::CloudDlpDataProfile;
let x = Finding::new().set_cloud_dlp_data_profile(CloudDlpDataProfile::default()/* use setters */);
Source

pub fn set_or_clear_cloud_dlp_data_profile<T>(self, v: Option<T>) -> Self

Sets or clears the value of cloud_dlp_data_profile.

§Example
use google_cloud_securitycenter_v2::model::CloudDlpDataProfile;
let x = Finding::new().set_or_clear_cloud_dlp_data_profile(Some(CloudDlpDataProfile::default()/* use setters */));
let x = Finding::new().set_or_clear_cloud_dlp_data_profile(None::<CloudDlpDataProfile>);
Source

pub fn set_kernel_rootkit<T>(self, v: T) -> Self
where T: Into<KernelRootkit>,

Sets the value of kernel_rootkit.

§Example
use google_cloud_securitycenter_v2::model::KernelRootkit;
let x = Finding::new().set_kernel_rootkit(KernelRootkit::default()/* use setters */);
Source

pub fn set_or_clear_kernel_rootkit<T>(self, v: Option<T>) -> Self
where T: Into<KernelRootkit>,

Sets or clears the value of kernel_rootkit.

§Example
use google_cloud_securitycenter_v2::model::KernelRootkit;
let x = Finding::new().set_or_clear_kernel_rootkit(Some(KernelRootkit::default()/* use setters */));
let x = Finding::new().set_or_clear_kernel_rootkit(None::<KernelRootkit>);
Source

pub fn set_org_policies<T, V>(self, v: T) -> Self
where T: IntoIterator<Item = V>, V: Into<OrgPolicy>,

Sets the value of org_policies.

§Example
use google_cloud_securitycenter_v2::model::OrgPolicy;
let x = Finding::new()
    .set_org_policies([
        OrgPolicy::default()/* use setters */,
        OrgPolicy::default()/* use (different) setters */,
    ]);
Source

pub fn set_job<T>(self, v: T) -> Self
where T: Into<Job>,

Sets the value of job.

§Example
use google_cloud_securitycenter_v2::model::Job;
let x = Finding::new().set_job(Job::default()/* use setters */);
Source

pub fn set_or_clear_job<T>(self, v: Option<T>) -> Self
where T: Into<Job>,

Sets or clears the value of job.

§Example
use google_cloud_securitycenter_v2::model::Job;
let x = Finding::new().set_or_clear_job(Some(Job::default()/* use setters */));
let x = Finding::new().set_or_clear_job(None::<Job>);
Source

pub fn set_application<T>(self, v: T) -> Self
where T: Into<Application>,

Sets the value of application.

§Example
use google_cloud_securitycenter_v2::model::Application;
let x = Finding::new().set_application(Application::default()/* use setters */);
Source

pub fn set_or_clear_application<T>(self, v: Option<T>) -> Self
where T: Into<Application>,

Sets or clears the value of application.

§Example
use google_cloud_securitycenter_v2::model::Application;
let x = Finding::new().set_or_clear_application(Some(Application::default()/* use setters */));
let x = Finding::new().set_or_clear_application(None::<Application>);
Source

pub fn set_ip_rules<T>(self, v: T) -> Self
where T: Into<IpRules>,

Sets the value of ip_rules.

§Example
use google_cloud_securitycenter_v2::model::IpRules;
let x = Finding::new().set_ip_rules(IpRules::default()/* use setters */);
Source

pub fn set_or_clear_ip_rules<T>(self, v: Option<T>) -> Self
where T: Into<IpRules>,

Sets or clears the value of ip_rules.

§Example
use google_cloud_securitycenter_v2::model::IpRules;
let x = Finding::new().set_or_clear_ip_rules(Some(IpRules::default()/* use setters */));
let x = Finding::new().set_or_clear_ip_rules(None::<IpRules>);
Source

pub fn set_backup_disaster_recovery<T>(self, v: T) -> Self

Sets the value of backup_disaster_recovery.

§Example
use google_cloud_securitycenter_v2::model::BackupDisasterRecovery;
let x = Finding::new().set_backup_disaster_recovery(BackupDisasterRecovery::default()/* use setters */);
Source

pub fn set_or_clear_backup_disaster_recovery<T>(self, v: Option<T>) -> Self

Sets or clears the value of backup_disaster_recovery.

§Example
use google_cloud_securitycenter_v2::model::BackupDisasterRecovery;
let x = Finding::new().set_or_clear_backup_disaster_recovery(Some(BackupDisasterRecovery::default()/* use setters */));
let x = Finding::new().set_or_clear_backup_disaster_recovery(None::<BackupDisasterRecovery>);
Source

pub fn set_security_posture<T>(self, v: T) -> Self

Sets the value of security_posture.

§Example
use google_cloud_securitycenter_v2::model::SecurityPosture;
let x = Finding::new().set_security_posture(SecurityPosture::default()/* use setters */);
Source

pub fn set_or_clear_security_posture<T>(self, v: Option<T>) -> Self

Sets or clears the value of security_posture.

§Example
use google_cloud_securitycenter_v2::model::SecurityPosture;
let x = Finding::new().set_or_clear_security_posture(Some(SecurityPosture::default()/* use setters */));
let x = Finding::new().set_or_clear_security_posture(None::<SecurityPosture>);
Source

pub fn set_log_entries<T, V>(self, v: T) -> Self
where T: IntoIterator<Item = V>, V: Into<LogEntry>,

Sets the value of log_entries.

§Example
use google_cloud_securitycenter_v2::model::LogEntry;
let x = Finding::new()
    .set_log_entries([
        LogEntry::default()/* use setters */,
        LogEntry::default()/* use (different) setters */,
    ]);
Source

pub fn set_load_balancers<T, V>(self, v: T) -> Self
where T: IntoIterator<Item = V>, V: Into<LoadBalancer>,

Sets the value of load_balancers.

§Example
use google_cloud_securitycenter_v2::model::LoadBalancer;
let x = Finding::new()
    .set_load_balancers([
        LoadBalancer::default()/* use setters */,
        LoadBalancer::default()/* use (different) setters */,
    ]);
Source

pub fn set_cloud_armor<T>(self, v: T) -> Self
where T: Into<CloudArmor>,

Sets the value of cloud_armor.

§Example
use google_cloud_securitycenter_v2::model::CloudArmor;
let x = Finding::new().set_cloud_armor(CloudArmor::default()/* use setters */);
Source

pub fn set_or_clear_cloud_armor<T>(self, v: Option<T>) -> Self
where T: Into<CloudArmor>,

Sets or clears the value of cloud_armor.

§Example
use google_cloud_securitycenter_v2::model::CloudArmor;
let x = Finding::new().set_or_clear_cloud_armor(Some(CloudArmor::default()/* use setters */));
let x = Finding::new().set_or_clear_cloud_armor(None::<CloudArmor>);
Source

pub fn set_notebook<T>(self, v: T) -> Self
where T: Into<Notebook>,

Sets the value of notebook.

§Example
use google_cloud_securitycenter_v2::model::Notebook;
let x = Finding::new().set_notebook(Notebook::default()/* use setters */);
Source

pub fn set_or_clear_notebook<T>(self, v: Option<T>) -> Self
where T: Into<Notebook>,

Sets or clears the value of notebook.

§Example
use google_cloud_securitycenter_v2::model::Notebook;
let x = Finding::new().set_or_clear_notebook(Some(Notebook::default()/* use setters */));
let x = Finding::new().set_or_clear_notebook(None::<Notebook>);
Source

pub fn set_toxic_combination<T>(self, v: T) -> Self

Sets the value of toxic_combination.

§Example
use google_cloud_securitycenter_v2::model::ToxicCombination;
let x = Finding::new().set_toxic_combination(ToxicCombination::default()/* use setters */);
Source

pub fn set_or_clear_toxic_combination<T>(self, v: Option<T>) -> Self

Sets or clears the value of toxic_combination.

§Example
use google_cloud_securitycenter_v2::model::ToxicCombination;
let x = Finding::new().set_or_clear_toxic_combination(Some(ToxicCombination::default()/* use setters */));
let x = Finding::new().set_or_clear_toxic_combination(None::<ToxicCombination>);
Source

pub fn set_group_memberships<T, V>(self, v: T) -> Self
where T: IntoIterator<Item = V>, V: Into<GroupMembership>,

Sets the value of group_memberships.

§Example
use google_cloud_securitycenter_v2::model::GroupMembership;
let x = Finding::new()
    .set_group_memberships([
        GroupMembership::default()/* use setters */,
        GroupMembership::default()/* use (different) setters */,
    ]);
Source

pub fn set_disk<T>(self, v: T) -> Self
where T: Into<Disk>,

Sets the value of disk.

§Example
use google_cloud_securitycenter_v2::model::Disk;
let x = Finding::new().set_disk(Disk::default()/* use setters */);
Source

pub fn set_or_clear_disk<T>(self, v: Option<T>) -> Self
where T: Into<Disk>,

Sets or clears the value of disk.

§Example
use google_cloud_securitycenter_v2::model::Disk;
let x = Finding::new().set_or_clear_disk(Some(Disk::default()/* use setters */));
let x = Finding::new().set_or_clear_disk(None::<Disk>);
Source

pub fn set_data_access_events<T, V>(self, v: T) -> Self
where T: IntoIterator<Item = V>, V: Into<DataAccessEvent>,

Sets the value of data_access_events.

§Example
use google_cloud_securitycenter_v2::model::DataAccessEvent;
let x = Finding::new()
    .set_data_access_events([
        DataAccessEvent::default()/* use setters */,
        DataAccessEvent::default()/* use (different) setters */,
    ]);
Source

pub fn set_data_flow_events<T, V>(self, v: T) -> Self
where T: IntoIterator<Item = V>, V: Into<DataFlowEvent>,

Sets the value of data_flow_events.

§Example
use google_cloud_securitycenter_v2::model::DataFlowEvent;
let x = Finding::new()
    .set_data_flow_events([
        DataFlowEvent::default()/* use setters */,
        DataFlowEvent::default()/* use (different) setters */,
    ]);
Source

pub fn set_networks<T, V>(self, v: T) -> Self
where T: IntoIterator<Item = V>, V: Into<Network>,

Sets the value of networks.

§Example
use google_cloud_securitycenter_v2::model::Network;
let x = Finding::new()
    .set_networks([
        Network::default()/* use setters */,
        Network::default()/* use (different) setters */,
    ]);
Source

pub fn set_data_retention_deletion_events<T, V>(self, v: T) -> Self

Sets the value of data_retention_deletion_events.

§Example
use google_cloud_securitycenter_v2::model::DataRetentionDeletionEvent;
let x = Finding::new()
    .set_data_retention_deletion_events([
        DataRetentionDeletionEvent::default()/* use setters */,
        DataRetentionDeletionEvent::default()/* use (different) setters */,
    ]);
Source

pub fn set_affected_resources<T>(self, v: T) -> Self

Sets the value of affected_resources.

§Example
use google_cloud_securitycenter_v2::model::AffectedResources;
let x = Finding::new().set_affected_resources(AffectedResources::default()/* use setters */);
Source

pub fn set_or_clear_affected_resources<T>(self, v: Option<T>) -> Self

Sets or clears the value of affected_resources.

§Example
use google_cloud_securitycenter_v2::model::AffectedResources;
let x = Finding::new().set_or_clear_affected_resources(Some(AffectedResources::default()/* use setters */));
let x = Finding::new().set_or_clear_affected_resources(None::<AffectedResources>);
Source

pub fn set_ai_model<T>(self, v: T) -> Self
where T: Into<AiModel>,

Sets the value of ai_model.

§Example
use google_cloud_securitycenter_v2::model::AiModel;
let x = Finding::new().set_ai_model(AiModel::default()/* use setters */);
Source

pub fn set_or_clear_ai_model<T>(self, v: Option<T>) -> Self
where T: Into<AiModel>,

Sets or clears the value of ai_model.

§Example
use google_cloud_securitycenter_v2::model::AiModel;
let x = Finding::new().set_or_clear_ai_model(Some(AiModel::default()/* use setters */));
let x = Finding::new().set_or_clear_ai_model(None::<AiModel>);
Source

pub fn set_chokepoint<T>(self, v: T) -> Self
where T: Into<Chokepoint>,

Sets the value of chokepoint.

§Example
use google_cloud_securitycenter_v2::model::Chokepoint;
let x = Finding::new().set_chokepoint(Chokepoint::default()/* use setters */);
Source

pub fn set_or_clear_chokepoint<T>(self, v: Option<T>) -> Self
where T: Into<Chokepoint>,

Sets or clears the value of chokepoint.

§Example
use google_cloud_securitycenter_v2::model::Chokepoint;
let x = Finding::new().set_or_clear_chokepoint(Some(Chokepoint::default()/* use setters */));
let x = Finding::new().set_or_clear_chokepoint(None::<Chokepoint>);
Source

pub fn set_vertex_ai<T>(self, v: T) -> Self
where T: Into<VertexAi>,

Sets the value of vertex_ai.

§Example
use google_cloud_securitycenter_v2::model::VertexAi;
let x = Finding::new().set_vertex_ai(VertexAi::default()/* use setters */);
Source

pub fn set_or_clear_vertex_ai<T>(self, v: Option<T>) -> Self
where T: Into<VertexAi>,

Sets or clears the value of vertex_ai.

§Example
use google_cloud_securitycenter_v2::model::VertexAi;
let x = Finding::new().set_or_clear_vertex_ai(Some(VertexAi::default()/* use setters */));
let x = Finding::new().set_or_clear_vertex_ai(None::<VertexAi>);

Trait Implementations§

Source§

impl Clone for Finding

Source§

fn clone(&self) -> Finding

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Finding

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Finding

Source§

fn default() -> Finding

Returns the “default value” for a type. Read more
Source§

impl Message for Finding

Source§

fn typename() -> &'static str

The typename of this message.
Source§

impl PartialEq for Finding

Source§

fn eq(&self, other: &Finding) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for Finding

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

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>,

Source§

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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

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
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,