Sindbad~EG File Manager
/// <reference types="node" />
import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosPromise, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
import { Readable } from 'stream';
export declare namespace securitycenter_v1beta1 {
export interface Options extends GlobalOptions {
version: 'v1beta1';
}
interface StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient | BaseExternalAccountClient | GoogleAuth;
/**
* V1 error format.
*/
'$.xgafv'?: string;
/**
* OAuth access token.
*/
access_token?: string;
/**
* Data format for response.
*/
alt?: string;
/**
* JSONP
*/
callback?: string;
/**
* Selector specifying which fields to include in a partial response.
*/
fields?: string;
/**
* API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
*/
key?: string;
/**
* OAuth 2.0 token for the current user.
*/
oauth_token?: string;
/**
* Returns response with indentations and line breaks.
*/
prettyPrint?: boolean;
/**
* Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
*/
quotaUser?: string;
/**
* Legacy upload protocol for media (e.g. "media", "multipart").
*/
uploadType?: string;
/**
* Upload protocol for media (e.g. "raw", "multipart").
*/
upload_protocol?: string;
}
/**
* Security Command Center API
*
* Security Command Center API provides access to temporal views of assets and findings within an organization.
*
* @example
* ```js
* const {google} = require('googleapis');
* const securitycenter = google.securitycenter('v1beta1');
* ```
*/
export class Securitycenter {
context: APIRequestContext;
organizations: Resource$Organizations;
constructor(options: GlobalOptions, google?: GoogleConfigurable);
}
/**
* Represents an access event.
*/
export interface Schema$Access {
/**
* Caller's IP address, such as "1.1.1.1".
*/
callerIp?: string | null;
/**
* The caller IP's geolocation, which identifies where the call came from.
*/
callerIpGeo?: Schema$Geolocation;
/**
* The method that the service account called, e.g. "SetIamPolicy".
*/
methodName?: string | null;
/**
* Associated email, such as "foo@google.com". The email address of the authenticated user or a service account acting on behalf of a third party principal making the request. For third party identity callers, the `principal_subject` field is populated instead of this field. For privacy reasons, the principal email address is sometimes redacted. For more information, see [Caller identities in audit logs](https://cloud.google.com/logging/docs/audit#user-id).
*/
principalEmail?: string | null;
/**
* A string that represents the principal_subject that is associated with the identity. Unlike `principal_email`, `principal_subject` supports principals that aren't associated with email addresses, such as third party principals. For most identities, the format is `principal://iam.googleapis.com/{identity pool name\}/subject/{subject\}`. Some GKE identities, such as GKE_WORKLOAD, FREEFORM, and GKE_HUB_WORKLOAD, still use the legacy format `serviceAccount:{identity pool name\}[{subject\}]`.
*/
principalSubject?: string | null;
/**
* The identity delegation history of an authenticated service account that made the request. The `serviceAccountDelegationInfo[]` object contains information about the real authorities that try to access Google Cloud resources by delegating on a service account. When multiple authorities are present, they are guaranteed to be sorted based on the original ordering of the identity delegation events.
*/
serviceAccountDelegationInfo?: Schema$ServiceAccountDelegationInfo[];
/**
* The name of the service account key that was used to create or exchange credentials when authenticating the service account that made the request. This is a scheme-less URI full resource name. For example: "//iam.googleapis.com/projects/{PROJECT_ID\}/serviceAccounts/{ACCOUNT\}/keys/{key\}".
*/
serviceAccountKeyName?: string | null;
/**
* This is the API service that the service account made a call to, e.g. "iam.googleapis.com"
*/
serviceName?: string | null;
/**
* The caller's user agent string associated with the finding.
*/
userAgent?: string | null;
/**
* Type of user agent associated with the finding. For example, an operating system shell or an embedded or standalone application.
*/
userAgentFamily?: string | null;
/**
* A string that represents a username. The username provided depends on the type of the finding and is likely not an IAM principal. For example, this can be a system username if the finding is related to a virtual machine, or it can be an application login username.
*/
userName?: string | null;
}
/**
* Conveys information about a Kubernetes access review (such as one returned by a [`kubectl auth can-i`](https://kubernetes.io/docs/reference/access-authn-authz/authorization/#checking-api-access) command) that was involved in a finding.
*/
export interface Schema$AccessReview {
/**
* The API group of the resource. "*" means all.
*/
group?: string | null;
/**
* The name of the resource being requested. Empty means all.
*/
name?: string | null;
/**
* Namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces. Both are represented by "" (empty).
*/
ns?: string | null;
/**
* The optional resource type requested. "*" means all.
*/
resource?: string | null;
/**
* The optional subresource type.
*/
subresource?: string | null;
/**
* A Kubernetes resource API verb, like get, list, watch, create, update, delete, proxy. "*" means all.
*/
verb?: string | null;
/**
* The API version of the resource. "*" means all.
*/
version?: string | null;
}
/**
* Represents an application associated with a finding.
*/
export interface Schema$Application {
/**
* The base URI that identifies the network location of the application in which the vulnerability was detected. For example, `http://example.com`.
*/
baseUri?: string | null;
/**
* The full URI with payload that can be used to reproduce the vulnerability. For example, `http://example.com?p=aMmYgI6H`.
*/
fullUri?: string | null;
}
/**
* Security Command Center representation of a Google Cloud resource. The Asset is a Security Command Center resource that captures information about a single Google Cloud resource. All modifications to an Asset are only within the context of Security Command Center and don't affect the referenced Google Cloud resource.
*/
export interface Schema$Asset {
/**
* The time at which the asset was created in Security Command Center.
*/
createTime?: string | null;
/**
* The relative resource name of this asset. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/{organization_id\}/assets/{asset_id\}".
*/
name?: string | null;
/**
* Resource managed properties. These properties are managed and defined by the Google Cloud resource and cannot be modified by the user.
*/
resourceProperties?: {
[key: string]: any;
} | null;
/**
* Security Command Center managed properties. These properties are managed by Security Command Center and cannot be modified by the user.
*/
securityCenterProperties?: Schema$SecurityCenterProperties;
/**
* User specified security marks. These marks are entirely managed by the user and come from the SecurityMarks resource that belongs to the asset.
*/
securityMarks?: Schema$GoogleCloudSecuritycenterV1beta1SecurityMarks;
/**
* The time at which the asset was last updated, added, or deleted in Security Command Center.
*/
updateTime?: string | null;
}
/**
* The configuration used for Asset Discovery runs.
*/
export interface Schema$AssetDiscoveryConfig {
/**
* The mode to use for filtering asset discovery.
*/
inclusionMode?: string | null;
/**
* The project ids to use for filtering asset discovery.
*/
projectIds?: string[] | null;
}
/**
* An attack exposure contains the results of an attack path simulation run.
*/
export interface Schema$AttackExposure {
/**
* The resource name of the attack path simulation result that contains the details regarding this attack exposure score. Example: organizations/123/simulations/456/attackExposureResults/789
*/
attackExposureResult?: string | null;
/**
* The number of high value resources that are exposed as a result of this finding.
*/
exposedHighValueResourcesCount?: number | null;
/**
* The number of high value resources that are exposed as a result of this finding.
*/
exposedLowValueResourcesCount?: number | null;
/**
* The number of medium value resources that are exposed as a result of this finding.
*/
exposedMediumValueResourcesCount?: number | null;
/**
* The most recent time the attack exposure was updated on this finding.
*/
latestCalculationTime?: string | null;
/**
* A number between 0 (inclusive) and infinity that represents how important this finding is to remediate. The higher the score, the more important it is to remediate.
*/
score?: number | null;
/**
* What state this AttackExposure is in. This captures whether or not an attack exposure has been calculated or not.
*/
state?: string | null;
}
/**
* Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { "audit_configs": [ { "service": "allServices", "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] \}, { "log_type": "DATA_WRITE" \}, { "log_type": "ADMIN_READ" \} ] \}, { "service": "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": "DATA_READ" \}, { "log_type": "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] \} ] \} ] \} For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts `jose@example.com` from DATA_READ logging, and `aliya@example.com` from DATA_WRITE logging.
*/
export interface Schema$AuditConfig {
/**
* The configuration for logging of each type of permission.
*/
auditLogConfigs?: Schema$AuditLogConfig[];
/**
* Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services.
*/
service?: string | null;
}
/**
* Provides the configuration for logging a type of permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] \}, { "log_type": "DATA_WRITE" \} ] \} This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ logging.
*/
export interface Schema$AuditLogConfig {
/**
* Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
*/
exemptedMembers?: string[] | null;
/**
* The log type that this config enables.
*/
logType?: string | null;
}
/**
* Information related to Google Cloud Backup and DR Service findings.
*/
export interface Schema$BackupDisasterRecovery {
/**
* The name of the Backup and DR appliance that captures, moves, and manages the lifecycle of backup data. For example, `backup-server-57137`.
*/
appliance?: string | null;
/**
* The names of Backup and DR applications. An application is a VM, database, or file system on a managed host monitored by a backup and recovery appliance. For example, `centos7-01-vol00`, `centos7-01-vol01`, `centos7-01-vol02`.
*/
applications?: string[] | null;
/**
* The timestamp at which the Backup and DR backup was created.
*/
backupCreateTime?: string | null;
/**
* The name of a Backup and DR template which comprises one or more backup policies. See the [Backup and DR documentation](https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-plan#temp) for more information. For example, `snap-ov`.
*/
backupTemplate?: string | null;
/**
* The backup type of the Backup and DR image. For example, `Snapshot`, `Remote Snapshot`, `OnVault`.
*/
backupType?: string | null;
/**
* The name of a Backup and DR host, which is managed by the backup and recovery appliance and known to the management console. The host can be of type Generic (for example, Compute Engine, SQL Server, Oracle DB, SMB file system, etc.), vCenter, or an ESX server. See the [Backup and DR documentation on hosts](https://cloud.google.com/backup-disaster-recovery/docs/configuration/manage-hosts-and-their-applications) for more information. For example, `centos7-01`.
*/
host?: string | null;
/**
* The names of Backup and DR policies that are associated with a template and that define when to run a backup, how frequently to run a backup, and how long to retain the backup image. For example, `onvaults`.
*/
policies?: string[] | null;
/**
* The names of Backup and DR advanced policy options of a policy applying to an application. See the [Backup and DR documentation on policy options](https://cloud.google.com/backup-disaster-recovery/docs/create-plan/policy-settings). For example, `skipofflineappsincongrp, nounmap`.
*/
policyOptions?: string[] | null;
/**
* The name of the Backup and DR resource profile that specifies the storage media for backups of application and VM data. See the [Backup and DR documentation on profiles](https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-plan#profile). For example, `GCP`.
*/
profile?: string | null;
/**
* The name of the Backup and DR storage pool that the backup and recovery appliance is storing data in. The storage pool could be of type Cloud, Primary, Snapshot, or OnVault. See the [Backup and DR documentation on storage pools](https://cloud.google.com/backup-disaster-recovery/docs/concepts/storage-pools). For example, `DiskPoolOne`.
*/
storagePool?: string | null;
}
/**
* Associates `members`, or principals, with a `role`.
*/
export interface Schema$Binding {
/**
* The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
*/
condition?: Schema$Expr;
/**
* Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid\}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid\}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid\}.svc.id.goog[{namespace\}/{kubernetes-sa\}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid\}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain\}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id\}/subject/{subject_attribute_value\}`: A single identity in a workforce identity pool. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id\}/group/{group_id\}`: All workforce identities in a group. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id\}/attribute.{attribute_name\}/{attribute_value\}`: All workforce identities with a specific attribute value. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id\}/x`: All identities in a workforce identity pool. * `principal://iam.googleapis.com/projects/{project_number\}/locations/global/workloadIdentityPools/{pool_id\}/subject/{subject_attribute_value\}`: A single identity in a workload identity pool. * `principalSet://iam.googleapis.com/projects/{project_number\}/locations/global/workloadIdentityPools/{pool_id\}/group/{group_id\}`: A workload identity pool group. * `principalSet://iam.googleapis.com/projects/{project_number\}/locations/global/workloadIdentityPools/{pool_id\}/attribute.{attribute_name\}/{attribute_value\}`: All identities in a workload identity pool with a certain attribute. * `principalSet://iam.googleapis.com/projects/{project_number\}/locations/global/workloadIdentityPools/{pool_id\}/x`: All identities in a workload identity pool. * `deleted:user:{emailid\}?uid={uniqueid\}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid\}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid\}?uid={uniqueid\}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid\}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid\}?uid={uniqueid\}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid\}` and the recovered group retains the role in the binding. * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id\}/subject/{subject_attribute_value\}`: Deleted single identity in a workforce identity pool. For example, `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
*/
members?: string[] | null;
/**
* Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles).
*/
role?: string | null;
}
/**
* The request message for Operations.CancelOperation.
*/
export interface Schema$CancelOperationRequest {
}
/**
* The [data profile](https://cloud.google.com/dlp/docs/data-profiles) associated with the finding.
*/
export interface Schema$CloudDlpDataProfile {
/**
* Name of the data profile, for example, `projects/123/locations/europe/tableProfiles/8383929`.
*/
dataProfile?: string | null;
/**
* The resource hierarchy level at which the data profile was generated.
*/
parentType?: string | null;
}
/**
* Details about the Cloud Data Loss Prevention (Cloud DLP) [inspection job](https://cloud.google.com/dlp/docs/concepts-job-triggers) that produced the finding.
*/
export interface Schema$CloudDlpInspection {
/**
* Whether Cloud DLP scanned the complete resource or a sampled subset.
*/
fullScan?: boolean | null;
/**
* The type of information (or *[infoType](https://cloud.google.com/dlp/docs/infotypes-reference)*) found, for example, `EMAIL_ADDRESS` or `STREET_ADDRESS`.
*/
infoType?: string | null;
/**
* The number of times Cloud DLP found this infoType within this job and resource.
*/
infoTypeCount?: string | null;
/**
* Name of the inspection job, for example, `projects/123/locations/europe/dlpJobs/i-8383929`.
*/
inspectJob?: string | null;
}
/**
* Metadata taken from a [Cloud Logging LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry)
*/
export interface Schema$CloudLoggingEntry {
/**
* A unique identifier for the log entry.
*/
insertId?: string | null;
/**
* The type of the log (part of `log_name`. `log_name` is the resource name of the log to which this log entry belongs). For example: `cloudresourcemanager.googleapis.com/activity`. Note that this field is not URL-encoded, unlike the `LOG_ID` field in `LogEntry`.
*/
logId?: string | null;
/**
* The organization, folder, or project of the monitored resource that produced this log entry.
*/
resourceContainer?: string | null;
/**
* The time the event described by the log entry occurred.
*/
timestamp?: string | null;
}
/**
* Contains compliance information about a security standard indicating unmet recommendations.
*/
export interface Schema$Compliance {
/**
* Policies within the standard or benchmark, for example, A.12.4.1
*/
ids?: string[] | null;
/**
* Industry-wide compliance standards or benchmarks, such as CIS, PCI, and OWASP.
*/
standard?: string | null;
/**
* Version of the standard or benchmark, for example, 1.1
*/
version?: string | null;
}
/**
* Result containing the properties and count of a ComplianceSnapshot request.
*/
export interface Schema$ComplianceSnapshot {
/**
* The category of Findings matching.
*/
category?: string | null;
/**
* The compliance standard (ie CIS).
*/
complianceStandard?: string | null;
/**
* The compliance version (ie 1.3) in CIS 1.3.
*/
complianceVersion?: string | null;
/**
* Total count of findings for the given properties.
*/
count?: string | null;
/**
* The leaf container resource name that is closest to the snapshot.
*/
leafContainerResource?: string | null;
/**
* The compliance snapshot name. Format: //sources//complianceSnapshots/
*/
name?: string | null;
/**
* The CRM resource display name that is closest to the snapshot the Findings belong to.
*/
projectDisplayName?: string | null;
/**
* The snapshot time of the snapshot.
*/
snapshotTime?: string | null;
}
/**
* Contains information about the IP connection associated with the finding.
*/
export interface Schema$Connection {
/**
* Destination IP address. Not present for sockets that are listening and not connected.
*/
destinationIp?: string | null;
/**
* Destination port. Not present for sockets that are listening and not connected.
*/
destinationPort?: number | null;
/**
* IANA Internet Protocol Number such as TCP(6) and UDP(17).
*/
protocol?: string | null;
/**
* Source IP address.
*/
sourceIp?: string | null;
/**
* Source port.
*/
sourcePort?: number | null;
}
/**
* The email address of a contact.
*/
export interface Schema$Contact {
/**
* An email address. For example, "`person123@company.com`".
*/
email?: string | null;
}
/**
* Details about specific contacts
*/
export interface Schema$ContactDetails {
/**
* A list of contacts
*/
contacts?: Schema$Contact[];
}
/**
* Container associated with the finding.
*/
export interface Schema$Container {
/**
* The time that the container was created.
*/
createTime?: string | null;
/**
* Optional container image ID, if provided by the container runtime. Uniquely identifies the container image launched using a container image digest.
*/
imageId?: string | null;
/**
* Container labels, as provided by the container runtime.
*/
labels?: Schema$Label[];
/**
* Name of the container.
*/
name?: string | null;
/**
* Container image URI provided when configuring a pod or container. This string can identify a container image version using mutable tags.
*/
uri?: string | null;
}
/**
* CVE stands for Common Vulnerabilities and Exposures. Information from the [CVE record](https://www.cve.org/ResourcesSupport/Glossary) that describes this vulnerability.
*/
export interface Schema$Cve {
/**
* Describe Common Vulnerability Scoring System specified at https://www.first.org/cvss/v3.1/specification-document
*/
cvssv3?: Schema$Cvssv3;
/**
* The exploitation activity of the vulnerability in the wild.
*/
exploitationActivity?: string | null;
/**
* The unique identifier for the vulnerability. e.g. CVE-2021-34527
*/
id?: string | null;
/**
* The potential impact of the vulnerability if it was to be exploited.
*/
impact?: string | null;
/**
* Whether or not the vulnerability has been observed in the wild.
*/
observedInTheWild?: boolean | null;
/**
* Additional information about the CVE. e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
*/
references?: Schema$Reference[];
/**
* Whether upstream fix is available for the CVE.
*/
upstreamFixAvailable?: boolean | null;
/**
* Whether or not the vulnerability was zero day when the finding was published.
*/
zeroDay?: boolean | null;
}
/**
* Common Vulnerability Scoring System version 3.
*/
export interface Schema$Cvssv3 {
/**
* This metric describes the conditions beyond the attacker's control that must exist in order to exploit the vulnerability.
*/
attackComplexity?: string | null;
/**
* Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments. This metric reflects the context by which vulnerability exploitation is possible.
*/
attackVector?: string | null;
/**
* This metric measures the impact to the availability of the impacted component resulting from a successfully exploited vulnerability.
*/
availabilityImpact?: string | null;
/**
* The base score is a function of the base metric scores.
*/
baseScore?: number | null;
/**
* This metric measures the impact to the confidentiality of the information resources managed by a software component due to a successfully exploited vulnerability.
*/
confidentialityImpact?: string | null;
/**
* This metric measures the impact to integrity of a successfully exploited vulnerability.
*/
integrityImpact?: string | null;
/**
* This metric describes the level of privileges an attacker must possess before successfully exploiting the vulnerability.
*/
privilegesRequired?: string | null;
/**
* The Scope metric captures whether a vulnerability in one vulnerable component impacts resources in components beyond its security scope.
*/
scope?: string | null;
/**
* This metric captures the requirement for a human user, other than the attacker, to participate in the successful compromise of the vulnerable component.
*/
userInteraction?: string | null;
}
/**
* Represents database access information, such as queries. A database may be a sub-resource of an instance (as in the case of Cloud SQL instances or Cloud Spanner instances), or the database instance itself. Some database resources might not have the [full resource name](https://google.aip.dev/122#full-resource-names) populated because these resource types, such as Cloud SQL databases, are not yet supported by Cloud Asset Inventory. In these cases only the display name is provided.
*/
export interface Schema$Database {
/**
* The human-readable name of the database that the user connected to.
*/
displayName?: string | null;
/**
* The target usernames, roles, or groups of an SQL privilege grant, which is not an IAM policy change.
*/
grantees?: string[] | null;
/**
* Some database resources may not have the [full resource name](https://google.aip.dev/122#full-resource-names) populated because these resource types are not yet supported by Cloud Asset Inventory (e.g. Cloud SQL databases). In these cases only the display name will be provided. The [full resource name](https://google.aip.dev/122#full-resource-names) of the database that the user connected to, if it is supported by Cloud Asset Inventory.
*/
name?: string | null;
/**
* The SQL statement that is associated with the database access.
*/
query?: string | null;
/**
* The username used to connect to the database. The username might not be an IAM principal and does not have a set format.
*/
userName?: string | null;
/**
* The version of the database, for example, POSTGRES_14. See [the complete list](https://cloud.google.com/sql/docs/mysql/admin-api/rest/v1/SqlDatabaseVersion).
*/
version?: string | null;
}
/**
* Memory hash detection contributing to the binary family match.
*/
export interface Schema$Detection {
/**
* The name of the binary associated with the memory hash signature detection.
*/
binary?: string | null;
/**
* The percentage of memory page hashes in the signature that were matched.
*/
percentPagesMatched?: number | null;
}
/**
* Path of the file in terms of underlying disk/partition identifiers.
*/
export interface Schema$DiskPath {
/**
* UUID of the partition (format https://wiki.archlinux.org/title/persistent_block_device_naming#by-uuid)
*/
partitionUuid?: string | null;
/**
* Relative path of the file in the partition as a JSON encoded string. Example: /home/user1/executable_file.sh
*/
relativePath?: string | null;
}
/**
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \}
*/
export interface Schema$Empty {
}
/**
* A name-value pair representing an environment variable used in an operating system process.
*/
export interface Schema$EnvironmentVariable {
/**
* Environment variable name as a JSON encoded string.
*/
name?: string | null;
/**
* Environment variable value as a JSON encoded string.
*/
val?: string | null;
}
/**
* Resource where data was exfiltrated from or exfiltrated to.
*/
export interface Schema$ExfilResource {
/**
* Subcomponents of the asset that was exfiltrated, like URIs used during exfiltration, table names, databases, and filenames. For example, multiple tables might have been exfiltrated from the same Cloud SQL instance, or multiple files might have been exfiltrated from the same Cloud Storage bucket.
*/
components?: string[] | null;
/**
* The resource's [full resource name](https://cloud.google.com/apis/design/resource_names#full_resource_name).
*/
name?: string | null;
}
/**
* Exfiltration represents a data exfiltration attempt from one or more sources to one or more targets. The `sources` attribute lists the sources of the exfiltrated data. The `targets` attribute lists the destinations the data was copied to.
*/
export interface Schema$Exfiltration {
/**
* If there are multiple sources, then the data is considered "joined" between them. For instance, BigQuery can join multiple tables, and each table would be considered a source.
*/
sources?: Schema$ExfilResource[];
/**
* If there are multiple targets, each target would get a complete copy of the "joined" source data.
*/
targets?: Schema$ExfilResource[];
/**
* Total exfiltrated bytes processed for the entire job.
*/
totalExfiltratedBytes?: string | null;
}
/**
* Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: "Summary size limit" description: "Determines if a summary is less than 100 chars" expression: "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: "Determines if requestor is the document owner" expression: "document.owner == request.auth.claims.email" Example (Logic): title: "Public documents" description: "Determine whether the document should be publicly visible" expression: "document.type != 'private' && document.type != 'internal'" Example (Data Manipulation): title: "Notification string" description: "Create a notification string with a timestamp." expression: "'New message received at ' + string(document.create_time)" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.
*/
export interface Schema$Expr {
/**
* Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
*/
description?: string | null;
/**
* Textual representation of an expression in Common Expression Language syntax.
*/
expression?: string | null;
/**
* Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
*/
location?: string | null;
/**
* Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
*/
title?: string | null;
}
/**
* File information about the related binary/library used by an executable, or the script used by a script interpreter
*/
export interface Schema$File {
/**
* Prefix of the file contents as a JSON-encoded string.
*/
contents?: string | null;
/**
* Path of the file in terms of underlying disk/partition identifiers.
*/
diskPath?: Schema$DiskPath;
/**
* The length in bytes of the file prefix that was hashed. If hashed_size == size, any hashes reported represent the entire file.
*/
hashedSize?: string | null;
/**
* True when the hash covers only a prefix of the file.
*/
partiallyHashed?: boolean | null;
/**
* Absolute path of the file as a JSON encoded string.
*/
path?: string | null;
/**
* SHA256 hash of the first hashed_size bytes of the file encoded as a hex string. If hashed_size == size, sha256 represents the SHA256 hash of the entire file.
*/
sha256?: string | null;
/**
* Size of the file in bytes.
*/
size?: string | null;
}
/**
* 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.
*/
export interface Schema$Finding {
/**
* Access details associated with the finding, such as more information on the caller, which method was accessed, and from where.
*/
access?: Schema$Access;
/**
* Represents an application associated with the finding.
*/
application?: Schema$Application;
/**
* The results of an attack path simulation relevant to this finding.
*/
attackExposure?: Schema$AttackExposure;
/**
* Fields related to Backup and DR findings.
*/
backupDisasterRecovery?: Schema$BackupDisasterRecovery;
/**
* The canonical name of the finding. It's either "organizations/{organization_id\}/sources/{source_id\}/findings/{finding_id\}", "folders/{folder_id\}/sources/{source_id\}/findings/{finding_id\}" or "projects/{project_number\}/sources/{source_id\}/findings/{finding_id\}", depending on the closest CRM ancestor of the resource associated with the finding.
*/
canonicalName?: string | null;
/**
* The additional taxonomy group within findings from a given source. This field is immutable after creation time. Example: "XSS_FLASH_INJECTION"
*/
category?: string | null;
/**
* Cloud DLP data profile that is associated with the finding.
*/
cloudDlpDataProfile?: Schema$CloudDlpDataProfile;
/**
* Cloud Data Loss Prevention (Cloud DLP) inspection results that are associated with the finding.
*/
cloudDlpInspection?: Schema$CloudDlpInspection;
/**
* Contains compliance information for security standards associated to the finding.
*/
compliances?: Schema$Compliance[];
/**
* Contains information about the IP connection associated with the finding.
*/
connections?: Schema$Connection[];
/**
* 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" \} ] \} \}
*/
contacts?: {
[key: string]: Schema$ContactDetails;
} | null;
/**
* Containers associated with the finding. This field provides information for both Kubernetes and non-Kubernetes containers.
*/
containers?: Schema$Container[];
/**
* The time at which the finding was created in Security Command Center.
*/
createTime?: string | null;
/**
* Database associated with the finding.
*/
database?: Schema$Database;
/**
* Contains more details about the finding.
*/
description?: string | null;
/**
* 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.
*/
eventTime?: string | null;
/**
* Represents exfiltrations associated with the finding.
*/
exfiltration?: Schema$Exfiltration;
/**
* Output only. Third party SIEM/SOAR fields within SCC, contains external system information and external system finding fields.
*/
externalSystems?: {
[key: string]: Schema$GoogleCloudSecuritycenterV1ExternalSystem;
} | null;
/**
* 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.
*/
externalUri?: string | null;
/**
* File associated with the finding.
*/
files?: Schema$File[];
/**
* The class of the finding.
*/
findingClass?: string | null;
/**
* Represents IAM bindings associated with the finding.
*/
iamBindings?: Schema$IamBinding[];
/**
* 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](https://en.wikipedia.org/wiki/Indicator_of_compromise).
*/
indicator?: Schema$Indicator;
/**
* Signature of the kernel rootkit.
*/
kernelRootkit?: Schema$KernelRootkit;
/**
* Kubernetes resources associated with the finding.
*/
kubernetes?: Schema$Kubernetes;
/**
* The load balancers associated with the finding.
*/
loadBalancers?: Schema$LoadBalancer[];
/**
* Log entries that are relevant to the finding.
*/
logEntries?: Schema$LogEntry[];
/**
* MITRE ATT&CK tactics and techniques related to this finding. See: https://attack.mitre.org
*/
mitreAttack?: Schema$MitreAttack;
/**
* Unique identifier of the module which generated the finding. Example: folders/598186756061/securityHealthAnalyticsSettings/customModules/56799441161885
*/
moduleName?: string | null;
/**
* 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?: string | null;
/**
* Records additional information about the mute operation, for example, the [mute configuration](/security-command-center/docs/how-to-mute-findings) that muted the finding and the user who muted the finding.
*/
muteInitiator?: string | null;
/**
* Output only. The most recent time this finding was muted or unmuted.
*/
muteUpdateTime?: string | null;
/**
* The [relative resource name](https://cloud.google.com/apis/design/resource_names#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\}".
*/
name?: string | null;
/**
* Steps to address the finding.
*/
nextSteps?: string | null;
/**
* Contains information about the org policies associated with the finding.
*/
orgPolicies?: Schema$OrgPolicy[];
/**
* The relative resource name of the source the finding belongs to. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name This field is immutable after creation time. For example: "organizations/{organization_id\}/sources/{source_id\}"
*/
parent?: string | null;
/**
* Output only. The human readable display name of the finding source such as "Event Threat Detection" or "Security Health Analytics".
*/
parentDisplayName?: string | null;
/**
* Represents operating system processes associated with the Finding.
*/
processes?: Schema$Process[];
/**
* 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. This field is immutable after creation time.
*/
resourceName?: string | null;
/**
* 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.
*/
securityMarks?: Schema$SecurityMarks;
/**
* The security posture associated with the finding.
*/
securityPosture?: Schema$SecurityPosture;
/**
* The severity of the finding. This field is managed by the source that writes the finding.
*/
severity?: string | null;
/**
* 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.
*/
sourceProperties?: {
[key: string]: any;
} | null;
/**
* The state of the finding.
*/
state?: string | null;
/**
* Represents vulnerability-specific fields like CVE and CVSS scores. CVE stands for Common Vulnerabilities and Exposures (https://cve.mitre.org/about/)
*/
vulnerability?: Schema$Vulnerability;
}
/**
* Message that contains the resource name and display name of a folder resource.
*/
export interface Schema$Folder {
/**
* Full resource name of this folder. See: https://cloud.google.com/apis/design/resource_names#full_resource_name
*/
resourceFolder?: string | null;
/**
* The user defined display name for this folder.
*/
resourceFolderDisplayName?: string | null;
}
/**
* Represents a geographical location for a given access.
*/
export interface Schema$Geolocation {
/**
* A CLDR.
*/
regionCode?: string | null;
}
/**
* Request message for `GetIamPolicy` method.
*/
export interface Schema$GetIamPolicyRequest {
/**
* OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`.
*/
options?: Schema$GetPolicyOptions;
}
/**
* Encapsulates settings provided to GetIamPolicy.
*/
export interface Schema$GetPolicyOptions {
/**
* Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
*/
requestedPolicyVersion?: number | null;
}
/**
* Security Command Center finding. A finding is a record of assessment data (security, risk, health or privacy) ingested into Security Command Center for presentation, notification, analysis, policy testing, and enforcement. For example, an XSS vulnerability in an App Engine application is a finding.
*/
export interface Schema$GoogleCloudSecuritycenterV1beta1Finding {
/**
* The additional taxonomy group within findings from a given source. This field is immutable after creation time. Example: "XSS_FLASH_INJECTION"
*/
category?: string | null;
/**
* The time at which the finding was created in Security Command Center.
*/
createTime?: string | null;
/**
* The time at which the event took place, or when an update to the finding occurred. For example, if the finding represents an open firewall it would capture the time the detector believes the firewall became open. The accuracy is determined by the detector. If the finding were to be resolved afterward, this time would reflect when the finding was resolved.
*/
eventTime?: string | null;
/**
* 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.
*/
externalUri?: string | null;
/**
* 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\}"
*/
name?: string | null;
/**
* Immutable. The relative resource name of the source the finding belongs to. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name This field is immutable after creation time. For example: "organizations/{organization_id\}/sources/{source_id\}"
*/
parent?: string | null;
/**
* 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. This field is immutable after creation time.
*/
resourceName?: string | null;
/**
* 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.
*/
securityMarks?: Schema$GoogleCloudSecuritycenterV1beta1SecurityMarks;
/**
* 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.
*/
sourceProperties?: {
[key: string]: any;
} | null;
/**
* The state of the finding.
*/
state?: string | null;
}
/**
* Response of asset discovery run
*/
export interface Schema$GoogleCloudSecuritycenterV1beta1RunAssetDiscoveryResponse {
/**
* The duration between asset discovery run start and end
*/
duration?: string | null;
/**
* The state of an asset discovery run.
*/
state?: string | null;
}
/**
* User specified security marks that are attached to the parent Security Command Center resource. Security marks are scoped within a Security Command Center organization -- they can be modified and viewed by all users who have proper permissions on the organization.
*/
export interface Schema$GoogleCloudSecuritycenterV1beta1SecurityMarks {
/**
* Mutable user specified security marks belonging to the parent resource. Constraints are as follows: * Keys and values are treated as case insensitive * Keys must be between 1 - 256 characters (inclusive) * Keys must be letters, numbers, underscores, or dashes * Values have leading and trailing whitespace trimmed, remaining characters must be between 1 - 4096 characters (inclusive)
*/
marks?: {
[key: string]: string;
} | null;
/**
* 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".
*/
name?: string | null;
}
/**
* Configures how to deliver Findings to BigQuery Instance.
*/
export interface Schema$GoogleCloudSecuritycenterV1BigQueryExport {
/**
* Output only. The time at which the BigQuery export was created. This field is set by the server and will be ignored if provided on export on creation.
*/
createTime?: string | null;
/**
* The dataset to write findings' updates to. Its format is "projects/[project_id]/datasets/[bigquery_dataset_id]". BigQuery Dataset unique ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_).
*/
dataset?: string | null;
/**
* The description of the export (max of 1024 characters).
*/
description?: string | null;
/**
* Expression that defines the filter to apply across create/update events of findings. The expression is a list of zero or more restrictions combined via logical operators `AND` and `OR`. Parentheses are supported, and `OR` has higher precedence than `AND`. Restrictions have the form ` ` and may have a `-` character in front of them to indicate negation. The fields map to those defined in the corresponding resource. The supported operators are: * `=` for all value types. * `\>`, `<`, `\>=`, `<=` for integer values. * `:`, meaning substring matching, for strings. The supported value types are: * string literals in quotes. * integer literals without quotes. * boolean literals `true` and `false` without quotes.
*/
filter?: string | null;
/**
* Output only. Email address of the user who last edited the BigQuery export. This field is set by the server and will be ignored if provided on export creation or update.
*/
mostRecentEditor?: string | null;
/**
* 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.
*/
name?: string | null;
/**
* Output only. The service account that needs permission to create table and upload data to the BigQuery dataset.
*/
principal?: string | null;
/**
* Output only. The most recent time at which the BigQuery export was updated. This field is set by the server and will be ignored if provided on export creation or update.
*/
updateTime?: string | null;
}
/**
* Represents a Kubernetes RoleBinding or ClusterRoleBinding.
*/
export interface Schema$GoogleCloudSecuritycenterV1Binding {
/**
* Name for the binding.
*/
name?: string | null;
/**
* Namespace for the binding.
*/
ns?: string | null;
/**
* The Role or ClusterRole referenced by the binding.
*/
role?: Schema$Role;
/**
* Represents one or more subjects that are bound to the role. Not always available for PATCH requests.
*/
subjects?: Schema$Subject[];
}
/**
* The response to a BulkMute request. Contains the LRO information.
*/
export interface Schema$GoogleCloudSecuritycenterV1BulkMuteFindingsResponse {
}
/**
* Defines the properties in a custom module configuration for Security Health Analytics. Use the custom module configuration to create custom detectors that generate custom findings for resources that you specify.
*/
export interface Schema$GoogleCloudSecuritycenterV1CustomConfig {
/**
* Custom output properties.
*/
customOutput?: Schema$GoogleCloudSecuritycenterV1CustomOutputSpec;
/**
* Text that describes the vulnerability or misconfiguration that the custom module detects. This explanation is returned with each finding instance to help investigators understand the detected issue. The text must be enclosed in quotation marks.
*/
description?: string | null;
/**
* The CEL expression to evaluate to produce findings. When the expression evaluates to true against a resource, a finding is generated.
*/
predicate?: Schema$Expr;
/**
* An explanation of the recommended steps that security teams can take to resolve the detected issue. This explanation is returned with each finding generated by this module in the `nextSteps` property of the finding JSON.
*/
recommendation?: string | null;
/**
* The resource types that the custom module operates on. Each custom module can specify up to 5 resource types.
*/
resourceSelector?: Schema$GoogleCloudSecuritycenterV1ResourceSelector;
/**
* The severity to assign to findings generated by the module.
*/
severity?: string | null;
}
/**
* A set of optional name-value pairs that define custom source properties to return with each finding that is generated by the custom module. The custom source properties that are defined here are included in the finding JSON under `sourceProperties`.
*/
export interface Schema$GoogleCloudSecuritycenterV1CustomOutputSpec {
/**
* A list of custom output properties to add to the finding.
*/
properties?: Schema$GoogleCloudSecuritycenterV1Property[];
}
/**
* An EffectiveSecurityHealthAnalyticsCustomModule is the representation of a Security Health Analytics custom module at a specified level of the resource hierarchy: organization, folder, or project. If a custom module is inherited from a parent organization or folder, the value of the `enablementState` property in EffectiveSecurityHealthAnalyticsCustomModule is set to the value that is effective in the parent, instead of `INHERITED`. For example, if the module is enabled in a parent organization or folder, the effective enablement_state for the module in all child folders or projects is also `enabled`. EffectiveSecurityHealthAnalyticsCustomModule is read-only.
*/
export interface Schema$GoogleCloudSecuritycenterV1EffectiveSecurityHealthAnalyticsCustomModule {
/**
* Output only. The user-specified configuration for the module.
*/
customConfig?: Schema$GoogleCloudSecuritycenterV1CustomConfig;
/**
* Output only. The display name for the custom module. The name must be between 1 and 128 characters, start with a lowercase letter, and contain alphanumeric characters or underscores only.
*/
displayName?: string | null;
/**
* Output only. The effective state of enablement for the module at the given level of the hierarchy.
*/
enablementState?: string | null;
/**
* Output only. The resource name of the custom module. Its format is "organizations/{organization\}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule\}", or "folders/{folder\}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule\}", or "projects/{project\}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule\}"
*/
name?: string | null;
}
/**
* Representation of third party SIEM/SOAR fields within SCC.
*/
export interface Schema$GoogleCloudSecuritycenterV1ExternalSystem {
/**
* References primary/secondary etc assignees in the external system.
*/
assignees?: string[] | null;
/**
* The time when the case was closed, as reported by the external system.
*/
caseCloseTime?: string | null;
/**
* The time when the case was created, as reported by the external system.
*/
caseCreateTime?: string | null;
/**
* The priority of the finding's corresponding case in the external system.
*/
casePriority?: string | null;
/**
* The SLA of the finding's corresponding case in the external system.
*/
caseSla?: string | null;
/**
* The link to the finding's corresponding case in the external system.
*/
caseUri?: string | null;
/**
* The time when the case was last updated, as reported by the external system.
*/
externalSystemUpdateTime?: string | null;
/**
* The identifier that's used to track the finding's corresponding case in the external system.
*/
externalUid?: string | null;
/**
* 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"
*/
name?: string | null;
/**
* The most recent status of the finding's corresponding case, as reported by the external system.
*/
status?: string | null;
/**
* Information about the ticket, if any, that is being used to track the resolution of the issue that is identified by this finding.
*/
ticketInfo?: Schema$TicketInfo;
}
/**
* A mute config is a Cloud SCC resource that contains the configuration to mute create/update events of findings.
*/
export interface Schema$GoogleCloudSecuritycenterV1MuteConfig {
/**
* Output only. The time at which the mute config was created. This field is set by the server and will be ignored if provided on config creation.
*/
createTime?: string | null;
/**
* A description of the mute config.
*/
description?: string | null;
/**
* The human readable name to be displayed for the mute config.
*/
displayName?: string | null;
/**
* Required. An expression that defines the filter to apply across create/update events of findings. While creating a filter string, be mindful of the scope in which the mute configuration is being created. E.g., If a filter contains project = X but is created under the project = Y scope, it might not match any findings. The following field and operator combinations are supported: * severity: `=`, `:` * category: `=`, `:` * resource.name: `=`, `:` * resource.project_name: `=`, `:` * resource.project_display_name: `=`, `:` * resource.folders.resource_folder: `=`, `:` * resource.parent_name: `=`, `:` * resource.parent_display_name: `=`, `:` * resource.type: `=`, `:` * finding_class: `=`, `:` * indicator.ip_addresses: `=`, `:` * indicator.domains: `=`, `:`
*/
filter?: string | null;
/**
* Output only. Email address of the user who last edited the mute config. This field is set by the server and will be ignored if provided on config creation or update.
*/
mostRecentEditor?: string | null;
/**
* 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\}"
*/
name?: string | null;
/**
* Output only. The most recent time at which the mute config was updated. This field is set by the server and will be ignored if provided on config creation or update.
*/
updateTime?: string | null;
}
/**
* Cloud SCC's Notification
*/
export interface Schema$GoogleCloudSecuritycenterV1NotificationMessage {
/**
* If it's a Finding based notification config, this field will be populated.
*/
finding?: Schema$Finding;
/**
* Name of the notification config that generated current notification.
*/
notificationConfigName?: string | null;
/**
* The Cloud resource tied to this notification's Finding.
*/
resource?: Schema$GoogleCloudSecuritycenterV1Resource;
}
/**
* Security Command Center finding. A finding is a record of assessment data (security, risk, health or privacy) ingested into Security Command Center for presentation, notification, analysis, policy testing, and enforcement. For example, an XSS vulnerability in an App Engine application is a finding.
*/
export interface Schema$GoogleCloudSecuritycenterV1p1beta1Finding {
/**
* The canonical name of the finding. It's either "organizations/{organization_id\}/sources/{source_id\}/findings/{finding_id\}", "folders/{folder_id\}/sources/{source_id\}/findings/{finding_id\}" or "projects/{project_number\}/sources/{source_id\}/findings/{finding_id\}", depending on the closest CRM ancestor of the resource associated with the finding.
*/
canonicalName?: string | null;
/**
* The additional taxonomy group within findings from a given source. This field is immutable after creation time. Example: "XSS_FLASH_INJECTION"
*/
category?: string | null;
/**
* The time at which the finding was created in Security Command Center.
*/
createTime?: string | null;
/**
* The time at which the event took place, or when an update to the finding occurred. For example, if the finding represents an open firewall it would capture the time the detector believes the firewall became open. The accuracy is determined by the detector. If the finding were to be resolved afterward, this time would reflect when the finding was resolved. Must not be set to a value greater than the current timestamp.
*/
eventTime?: string | null;
/**
* 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.
*/
externalUri?: string | null;
/**
* 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\}"
*/
name?: string | null;
/**
* The relative resource name of the source the finding belongs to. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name This field is immutable after creation time. For example: "organizations/{organization_id\}/sources/{source_id\}"
*/
parent?: string | null;
/**
* 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. This field is immutable after creation time.
*/
resourceName?: string | null;
/**
* 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.
*/
securityMarks?: Schema$GoogleCloudSecuritycenterV1p1beta1SecurityMarks;
/**
* The severity of the finding. This field is managed by the source that writes the finding.
*/
severity?: string | null;
/**
* 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.
*/
sourceProperties?: {
[key: string]: any;
} | null;
/**
* The state of the finding.
*/
state?: string | null;
}
/**
* Message that contains the resource name and display name of a folder resource.
*/
export interface Schema$GoogleCloudSecuritycenterV1p1beta1Folder {
/**
* Full resource name of this folder. See: https://cloud.google.com/apis/design/resource_names#full_resource_name
*/
resourceFolder?: string | null;
/**
* The user defined display name for this folder.
*/
resourceFolderDisplayName?: string | null;
}
/**
* Security Command Center's Notification
*/
export interface Schema$GoogleCloudSecuritycenterV1p1beta1NotificationMessage {
/**
* If it's a Finding based notification config, this field will be populated.
*/
finding?: Schema$GoogleCloudSecuritycenterV1p1beta1Finding;
/**
* Name of the notification config that generated current notification.
*/
notificationConfigName?: string | null;
/**
* The Cloud resource tied to the notification.
*/
resource?: Schema$GoogleCloudSecuritycenterV1p1beta1Resource;
}
/**
* Information related to the Google Cloud resource.
*/
export interface Schema$GoogleCloudSecuritycenterV1p1beta1Resource {
/**
* Output only. Contains a Folder message for each folder in the assets ancestry. The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization.
*/
folders?: Schema$GoogleCloudSecuritycenterV1p1beta1Folder[];
/**
* The full resource name of the resource. See: https://cloud.google.com/apis/design/resource_names#full_resource_name
*/
name?: string | null;
/**
* The full resource name of resource's parent.
*/
parent?: string | null;
/**
* The human readable name of resource's parent.
*/
parentDisplayName?: string | null;
/**
* The full resource name of project that the resource belongs to.
*/
project?: string | null;
/**
* The project id that the resource belongs to.
*/
projectDisplayName?: string | null;
}
/**
* Response of asset discovery run
*/
export interface Schema$GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse {
/**
* The duration between asset discovery run start and end
*/
duration?: string | null;
/**
* The state of an asset discovery run.
*/
state?: string | null;
}
/**
* User specified security marks that are attached to the parent Security Command Center resource. Security marks are scoped within a Security Command Center organization -- they can be modified and viewed by all users who have proper permissions on the organization.
*/
export interface Schema$GoogleCloudSecuritycenterV1p1beta1SecurityMarks {
/**
* The canonical name of the marks. Examples: "organizations/{organization_id\}/assets/{asset_id\}/securityMarks" "folders/{folder_id\}/assets/{asset_id\}/securityMarks" "projects/{project_number\}/assets/{asset_id\}/securityMarks" "organizations/{organization_id\}/sources/{source_id\}/findings/{finding_id\}/securityMarks" "folders/{folder_id\}/sources/{source_id\}/findings/{finding_id\}/securityMarks" "projects/{project_number\}/sources/{source_id\}/findings/{finding_id\}/securityMarks"
*/
canonicalName?: string | null;
/**
* Mutable user specified security marks belonging to the parent resource. Constraints are as follows: * Keys and values are treated as case insensitive * Keys must be between 1 - 256 characters (inclusive) * Keys must be letters, numbers, underscores, or dashes * Values have leading and trailing whitespace trimmed, remaining characters must be between 1 - 4096 characters (inclusive)
*/
marks?: {
[key: string]: string;
} | null;
/**
* 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".
*/
name?: string | null;
}
/**
* An individual name-value pair that defines a custom source property.
*/
export interface Schema$GoogleCloudSecuritycenterV1Property {
/**
* Name of the property for the custom output.
*/
name?: string | null;
/**
* The CEL expression for the custom output. A resource property can be specified to return the value of the property or a text string enclosed in quotation marks.
*/
valueExpression?: Schema$Expr;
}
/**
* Information related to the Google Cloud resource.
*/
export interface Schema$GoogleCloudSecuritycenterV1Resource {
/**
* The human readable name of the resource.
*/
displayName?: string | null;
/**
* Output only. Contains a Folder message for each folder in the assets ancestry. The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization.
*/
folders?: Schema$Folder[];
/**
* The full resource name of the resource. See: https://cloud.google.com/apis/design/resource_names#full_resource_name
*/
name?: string | null;
/**
* The full resource name of resource's parent.
*/
parent?: string | null;
/**
* The human readable name of resource's parent.
*/
parentDisplayName?: string | null;
/**
* The full resource name of project that the resource belongs to.
*/
project?: string | null;
/**
* The project ID that the resource belongs to.
*/
projectDisplayName?: string | null;
/**
* The full resource type of the resource.
*/
type?: string | null;
}
/**
* Resource for selecting resource type.
*/
export interface Schema$GoogleCloudSecuritycenterV1ResourceSelector {
/**
* The resource types to run the detector on.
*/
resourceTypes?: string[] | null;
}
/**
* A resource value config (RVC) is a mapping configuration of user's resources to resource values. Used in Attack path simulations.
*/
export interface Schema$GoogleCloudSecuritycenterV1ResourceValueConfig {
/**
* Output only. Timestamp this resource value config was created.
*/
createTime?: string | null;
/**
* Description of the resource value config.
*/
description?: string | null;
/**
* Name for the resource value config
*/
name?: string | null;
/**
* List of resource labels to search for, evaluated with AND. E.g. "resource_labels_selector": {"key": "value", "env": "prod"\} will match resources with labels "key": "value" AND "env": "prod" https://cloud.google.com/resource-manager/docs/creating-managing-labels
*/
resourceLabelsSelector?: {
[key: string]: string;
} | null;
/**
* Apply resource_value only to resources that match resource_type. resource_type will be checked with "AND" of other resources. E.g. "storage.googleapis.com/Bucket" with resource_value "HIGH" will apply "HIGH" value only to "storage.googleapis.com/Bucket" resources.
*/
resourceType?: string | null;
/**
* Required. Resource value level this expression represents
*/
resourceValue?: string | null;
/**
* Project or folder to scope this config to. For example, "project/456" would apply this config only to resources in "project/456" scope will be checked with "AND" of other resources.
*/
scope?: string | null;
/**
* A mapping of the sensitivity on Sensitive Data Protection finding to resource values. This mapping can only be used in combination with a resource_type that is related to BigQuery, e.g. "bigquery.googleapis.com/Dataset".
*/
sensitiveDataProtectionMapping?: Schema$GoogleCloudSecuritycenterV1SensitiveDataProtectionMapping;
/**
* Required. Tag values combined with AND to check against. Values in the form "tagValues/123" E.g. [ "tagValues/123", "tagValues/456", "tagValues/789" ] https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing
*/
tagValues?: string[] | null;
/**
* Output only. Timestamp this resource value config was last updated.
*/
updateTime?: string | null;
}
/**
* Response of asset discovery run
*/
export interface Schema$GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse {
/**
* The duration between asset discovery run start and end
*/
duration?: string | null;
/**
* The state of an asset discovery run.
*/
state?: string | null;
}
/**
* Represents an instance of a Security Health Analytics custom module, including its full module name, display name, enablement state, and last updated time. You can create a custom module at the organization, folder, or project level. Custom modules that you create at the organization or folder level are inherited by the child folders and projects.
*/
export interface Schema$GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule {
/**
* Output only. If empty, indicates that the custom module was created in the organization, folder, or project in which you are viewing the custom module. Otherwise, `ancestor_module` specifies the organization or folder from which the custom module is inherited.
*/
ancestorModule?: string | null;
/**
* The user specified custom configuration for the module.
*/
customConfig?: Schema$GoogleCloudSecuritycenterV1CustomConfig;
/**
* The display name of the Security Health Analytics custom module. This display name becomes the finding category for all findings that are returned by this custom module. The display name must be between 1 and 128 characters, start with a lowercase letter, and contain alphanumeric characters or underscores only.
*/
displayName?: string | null;
/**
* The enablement state of the custom module.
*/
enablementState?: string | null;
/**
* Output only. The editor that last updated the custom module.
*/
lastEditor?: string | null;
/**
* 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.
*/
name?: string | null;
/**
* Output only. The time at which the custom module was last updated.
*/
updateTime?: string | null;
}
/**
* Resource value mapping for Sensitive Data Protection findings. If any of these mappings have a resource value that is not unspecified, the resource_value field will be ignored when reading this configuration.
*/
export interface Schema$GoogleCloudSecuritycenterV1SensitiveDataProtectionMapping {
/**
* Resource value mapping for high-sensitivity Sensitive Data Protection findings
*/
highSensitivityMapping?: string | null;
/**
* Resource value mapping for medium-sensitivity Sensitive Data Protection findings
*/
mediumSensitivityMapping?: string | null;
}
/**
* Represents an access event.
*/
export interface Schema$GoogleCloudSecuritycenterV2Access {
/**
* Caller's IP address, such as "1.1.1.1".
*/
callerIp?: string | null;
/**
* The caller IP's geolocation, which identifies where the call came from.
*/
callerIpGeo?: Schema$GoogleCloudSecuritycenterV2Geolocation;
/**
* The method that the service account called, e.g. "SetIamPolicy".
*/
methodName?: string | null;
/**
* Associated email, such as "foo@google.com". The email address of the authenticated user or a service account acting on behalf of a third party principal making the request. For third party identity callers, the `principal_subject` field is populated instead of this field. For privacy reasons, the principal email address is sometimes redacted. For more information, see [Caller identities in audit logs](https://cloud.google.com/logging/docs/audit#user-id).
*/
principalEmail?: string | null;
/**
* A string that represents the principal_subject that is associated with the identity. Unlike `principal_email`, `principal_subject` supports principals that aren't associated with email addresses, such as third party principals. For most identities, the format is `principal://iam.googleapis.com/{identity pool name\}/subject/{subject\}`. Some GKE identities, such as GKE_WORKLOAD, FREEFORM, and GKE_HUB_WORKLOAD, still use the legacy format `serviceAccount:{identity pool name\}[{subject\}]`.
*/
principalSubject?: string | null;
/**
* The identity delegation history of an authenticated service account that made the request. The `serviceAccountDelegationInfo[]` object contains information about the real authorities that try to access Google Cloud resources by delegating on a service account. When multiple authorities are present, they are guaranteed to be sorted based on the original ordering of the identity delegation events.
*/
serviceAccountDelegationInfo?: Schema$GoogleCloudSecuritycenterV2ServiceAccountDelegationInfo[];
/**
* The name of the service account key that was used to create or exchange credentials when authenticating the service account that made the request. This is a scheme-less URI full resource name. For example: "//iam.googleapis.com/projects/{PROJECT_ID\}/serviceAccounts/{ACCOUNT\}/keys/{key\}".
*/
serviceAccountKeyName?: string | null;
/**
* This is the API service that the service account made a call to, e.g. "iam.googleapis.com"
*/
serviceName?: string | null;
/**
* The caller's user agent string associated with the finding.
*/
userAgent?: string | null;
/**
* Type of user agent associated with the finding. For example, an operating system shell or an embedded or standalone application.
*/
userAgentFamily?: string | null;
/**
* A string that represents a username. The username provided depends on the type of the finding and is likely not an IAM principal. For example, this can be a system username if the finding is related to a virtual machine, or it can be an application login username.
*/
userName?: string | null;
}
/**
* Conveys information about a Kubernetes access review (such as one returned by a [`kubectl auth can-i`](https://kubernetes.io/docs/reference/access-authn-authz/authorization/#checking-api-access) command) that was involved in a finding.
*/
export interface Schema$GoogleCloudSecuritycenterV2AccessReview {
/**
* The API group of the resource. "*" means all.
*/
group?: string | null;
/**
* The name of the resource being requested. Empty means all.
*/
name?: string | null;
/**
* Namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces. Both are represented by "" (empty).
*/
ns?: string | null;
/**
* The optional resource type requested. "*" means all.
*/
resource?: string | null;
/**
* The optional subresource type.
*/
subresource?: string | null;
/**
* A Kubernetes resource API verb, like get, list, watch, create, update, delete, proxy. "*" means all.
*/
verb?: string | null;
/**
* The API version of the resource. "*" means all.
*/
version?: string | null;
}
/**
* Represents an application associated with a finding.
*/
export interface Schema$GoogleCloudSecuritycenterV2Application {
/**
* The base URI that identifies the network location of the application in which the vulnerability was detected. For example, `http://example.com`.
*/
baseUri?: string | null;
/**
* The full URI with payload that could be used to reproduce the vulnerability. For example, `http://example.com?p=aMmYgI6H`.
*/
fullUri?: string | null;
}
/**
* An attack exposure contains the results of an attack path simulation run.
*/
export interface Schema$GoogleCloudSecuritycenterV2AttackExposure {
/**
* The resource name of the attack path simulation result that contains the details regarding this attack exposure score. Example: organizations/123/simulations/456/attackExposureResults/789
*/
attackExposureResult?: string | null;
/**
* The number of high value resources that are exposed as a result of this finding.
*/
exposedHighValueResourcesCount?: number | null;
/**
* The number of high value resources that are exposed as a result of this finding.
*/
exposedLowValueResourcesCount?: number | null;
/**
* The number of medium value resources that are exposed as a result of this finding.
*/
exposedMediumValueResourcesCount?: number | null;
/**
* The most recent time the attack exposure was updated on this finding.
*/
latestCalculationTime?: string | null;
/**
* A number between 0 (inclusive) and infinity that represents how important this finding is to remediate. The higher the score, the more important it is to remediate.
*/
score?: number | null;
/**
* Output only. What state this AttackExposure is in. This captures whether or not an attack exposure has been calculated or not.
*/
state?: string | null;
}
/**
* Information related to Google Cloud Backup and DR Service findings.
*/
export interface Schema$GoogleCloudSecuritycenterV2BackupDisasterRecovery {
/**
* The name of the Backup and DR appliance that captures, moves, and manages the lifecycle of backup data. For example, `backup-server-57137`.
*/
appliance?: string | null;
/**
* The names of Backup and DR applications. An application is a VM, database, or file system on a managed host monitored by a backup and recovery appliance. For example, `centos7-01-vol00`, `centos7-01-vol01`, `centos7-01-vol02`.
*/
applications?: string[] | null;
/**
* The timestamp at which the Backup and DR backup was created.
*/
backupCreateTime?: string | null;
/**
* The name of a Backup and DR template which comprises one or more backup policies. See the [Backup and DR documentation](https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-plan#temp) for more information. For example, `snap-ov`.
*/
backupTemplate?: string | null;
/**
* The backup type of the Backup and DR image. For example, `Snapshot`, `Remote Snapshot`, `OnVault`.
*/
backupType?: string | null;
/**
* The name of a Backup and DR host, which is managed by the backup and recovery appliance and known to the management console. The host can be of type Generic (for example, Compute Engine, SQL Server, Oracle DB, SMB file system, etc.), vCenter, or an ESX server. See the [Backup and DR documentation on hosts](https://cloud.google.com/backup-disaster-recovery/docs/configuration/manage-hosts-and-their-applications) for more information. For example, `centos7-01`.
*/
host?: string | null;
/**
* The names of Backup and DR policies that are associated with a template and that define when to run a backup, how frequently to run a backup, and how long to retain the backup image. For example, `onvaults`.
*/
policies?: string[] | null;
/**
* The names of Backup and DR advanced policy options of a policy applying to an application. See the [Backup and DR documentation on policy options](https://cloud.google.com/backup-disaster-recovery/docs/create-plan/policy-settings). For example, `skipofflineappsincongrp, nounmap`.
*/
policyOptions?: string[] | null;
/**
* The name of the Backup and DR resource profile that specifies the storage media for backups of application and VM data. See the [Backup and DR documentation on profiles](https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-plan#profile). For example, `GCP`.
*/
profile?: string | null;
/**
* The name of the Backup and DR storage pool that the backup and recovery appliance is storing data in. The storage pool could be of type Cloud, Primary, Snapshot, or OnVault. See the [Backup and DR documentation on storage pools](https://cloud.google.com/backup-disaster-recovery/docs/concepts/storage-pools). For example, `DiskPoolOne`.
*/
storagePool?: string | null;
}
/**
* Configures how to deliver Findings to BigQuery Instance.
*/
export interface Schema$GoogleCloudSecuritycenterV2BigQueryExport {
/**
* Output only. The time at which the BigQuery export was created. This field is set by the server and will be ignored if provided on export on creation.
*/
createTime?: string | null;
/**
* The dataset to write findings' updates to. Its format is "projects/[project_id]/datasets/[bigquery_dataset_id]". BigQuery Dataset unique ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_).
*/
dataset?: string | null;
/**
* The description of the export (max of 1024 characters).
*/
description?: string | null;
/**
* Expression that defines the filter to apply across create/update events of findings. The expression is a list of zero or more restrictions combined via logical operators `AND` and `OR`. Parentheses are supported, and `OR` has higher precedence than `AND`. Restrictions have the form ` ` and may have a `-` character in front of them to indicate negation. The fields map to those defined in the corresponding resource. The supported operators are: * `=` for all value types. * `\>`, `<`, `\>=`, `<=` for integer values. * `:`, meaning substring matching, for strings. The supported value types are: * string literals in quotes. * integer literals without quotes. * boolean literals `true` and `false` without quotes.
*/
filter?: string | null;
/**
* Output only. Email address of the user who last edited the BigQuery export. This field is set by the server and will be ignored if provided on export creation or update.
*/
mostRecentEditor?: string | null;
/**
* The relative resource name of this export. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name. The following list shows some examples: + `organizations/{organization_id\}/locations/{location_id\}/bigQueryExports/{export_id\}` + `folders/{folder_id\}/locations/{location_id\}/bigQueryExports/{export_id\}` + `projects/{project_id\}/locations/{location_id\}/bigQueryExports/{export_id\}` This field is provided in responses, and is ignored when provided in create requests.
*/
name?: string | null;
/**
* Output only. The service account that needs permission to create table and upload data to the BigQuery dataset.
*/
principal?: string | null;
/**
* Output only. The most recent time at which the BigQuery export was updated. This field is set by the server and will be ignored if provided on export creation or update.
*/
updateTime?: string | null;
}
/**
* Represents a Kubernetes RoleBinding or ClusterRoleBinding.
*/
export interface Schema$GoogleCloudSecuritycenterV2Binding {
/**
* Name for the binding.
*/
name?: string | null;
/**
* Namespace for the binding.
*/
ns?: string | null;
/**
* The Role or ClusterRole referenced by the binding.
*/
role?: Schema$GoogleCloudSecuritycenterV2Role;
/**
* Represents one or more subjects that are bound to the role. Not always available for PATCH requests.
*/
subjects?: Schema$GoogleCloudSecuritycenterV2Subject[];
}
/**
* The response to a BulkMute request. Contains the LRO information.
*/
export interface Schema$GoogleCloudSecuritycenterV2BulkMuteFindingsResponse {
}
/**
* The [data profile](https://cloud.google.com/dlp/docs/data-profiles) associated with the finding.
*/
export interface Schema$GoogleCloudSecuritycenterV2CloudDlpDataProfile {
/**
* Name of the data profile, for example, `projects/123/locations/europe/tableProfiles/8383929`.
*/
dataProfile?: string | null;
/**
* The resource hierarchy level at which the data profile was generated.
*/
parentType?: string | null;
}
/**
* Details about the Cloud Data Loss Prevention (Cloud DLP) [inspection job](https://cloud.google.com/dlp/docs/concepts-job-triggers) that produced the finding.
*/
export interface Schema$GoogleCloudSecuritycenterV2CloudDlpInspection {
/**
* Whether Cloud DLP scanned the complete resource or a sampled subset.
*/
fullScan?: boolean | null;
/**
* The type of information (or *[infoType](https://cloud.google.com/dlp/docs/infotypes-reference)*) found, for example, `EMAIL_ADDRESS` or `STREET_ADDRESS`.
*/
infoType?: string | null;
/**
* The number of times Cloud DLP found this infoType within this job and resource.
*/
infoTypeCount?: string | null;
/**
* Name of the inspection job, for example, `projects/123/locations/europe/dlpJobs/i-8383929`.
*/
inspectJob?: string | null;
}
/**
* Metadata taken from a [Cloud Logging LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry)
*/
export interface Schema$GoogleCloudSecuritycenterV2CloudLoggingEntry {
/**
* A unique identifier for the log entry.
*/
insertId?: string | null;
/**
* The type of the log (part of `log_name`. `log_name` is the resource name of the log to which this log entry belongs). For example: `cloudresourcemanager.googleapis.com/activity` Note that this field is not URL-encoded, unlike in `LogEntry`.
*/
logId?: string | null;
/**
* The organization, folder, or project of the monitored resource that produced this log entry.
*/
resourceContainer?: string | null;
/**
* The time the event described by the log entry occurred.
*/
timestamp?: string | null;
}
/**
* Contains compliance information about a security standard indicating unmet recommendations.
*/
export interface Schema$GoogleCloudSecuritycenterV2Compliance {
/**
* Policies within the standard or benchmark, for example, A.12.4.1
*/
ids?: string[] | null;
/**
* Industry-wide compliance standards or benchmarks, such as CIS, PCI, and OWASP.
*/
standard?: string | null;
/**
* Version of the standard or benchmark, for example, 1.1
*/
version?: string | null;
}
/**
* Contains information about the IP connection associated with the finding.
*/
export interface Schema$GoogleCloudSecuritycenterV2Connection {
/**
* Destination IP address. Not present for sockets that are listening and not connected.
*/
destinationIp?: string | null;
/**
* Destination port. Not present for sockets that are listening and not connected.
*/
destinationPort?: number | null;
/**
* IANA Internet Protocol Number such as TCP(6) and UDP(17).
*/
protocol?: string | null;
/**
* Source IP address.
*/
sourceIp?: string | null;
/**
* Source port.
*/
sourcePort?: number | null;
}
/**
* The email address of a contact.
*/
export interface Schema$GoogleCloudSecuritycenterV2Contact {
/**
* An email address. For example, "`person123@company.com`".
*/
email?: string | null;
}
/**
* Details about specific contacts
*/
export interface Schema$GoogleCloudSecuritycenterV2ContactDetails {
/**
* A list of contacts
*/
contacts?: Schema$GoogleCloudSecuritycenterV2Contact[];
}
/**
* Container associated with the finding.
*/
export interface Schema$GoogleCloudSecuritycenterV2Container {
/**
* The time that the container was created.
*/
createTime?: string | null;
/**
* Optional container image ID, if provided by the container runtime. Uniquely identifies the container image launched using a container image digest.
*/
imageId?: string | null;
/**
* Container labels, as provided by the container runtime.
*/
labels?: Schema$GoogleCloudSecuritycenterV2Label[];
/**
* Name of the container.
*/
name?: string | null;
/**
* Container image URI provided when configuring a pod or container. This string can identify a container image version using mutable tags.
*/
uri?: string | null;
}
/**
* CVE stands for Common Vulnerabilities and Exposures. Information from the [CVE record](https://www.cve.org/ResourcesSupport/Glossary) that describes this vulnerability.
*/
export interface Schema$GoogleCloudSecuritycenterV2Cve {
/**
* Describe Common Vulnerability Scoring System specified at https://www.first.org/cvss/v3.1/specification-document
*/
cvssv3?: Schema$GoogleCloudSecuritycenterV2Cvssv3;
/**
* The exploitation activity of the vulnerability in the wild.
*/
exploitationActivity?: string | null;
/**
* The unique identifier for the vulnerability. e.g. CVE-2021-34527
*/
id?: string | null;
/**
* The potential impact of the vulnerability if it was to be exploited.
*/
impact?: string | null;
/**
* Whether or not the vulnerability has been observed in the wild.
*/
observedInTheWild?: boolean | null;
/**
* Additional information about the CVE. e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
*/
references?: Schema$GoogleCloudSecuritycenterV2Reference[];
/**
* Whether upstream fix is available for the CVE.
*/
upstreamFixAvailable?: boolean | null;
/**
* Whether or not the vulnerability was zero day when the finding was published.
*/
zeroDay?: boolean | null;
}
/**
* Common Vulnerability Scoring System version 3.
*/
export interface Schema$GoogleCloudSecuritycenterV2Cvssv3 {
/**
* This metric describes the conditions beyond the attacker's control that must exist in order to exploit the vulnerability.
*/
attackComplexity?: string | null;
/**
* Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments. This metric reflects the context by which vulnerability exploitation is possible.
*/
attackVector?: string | null;
/**
* This metric measures the impact to the availability of the impacted component resulting from a successfully exploited vulnerability.
*/
availabilityImpact?: string | null;
/**
* The base score is a function of the base metric scores.
*/
baseScore?: number | null;
/**
* This metric measures the impact to the confidentiality of the information resources managed by a software component due to a successfully exploited vulnerability.
*/
confidentialityImpact?: string | null;
/**
* This metric measures the impact to integrity of a successfully exploited vulnerability.
*/
integrityImpact?: string | null;
/**
* This metric describes the level of privileges an attacker must possess before successfully exploiting the vulnerability.
*/
privilegesRequired?: string | null;
/**
* The Scope metric captures whether a vulnerability in one vulnerable component impacts resources in components beyond its security scope.
*/
scope?: string | null;
/**
* This metric captures the requirement for a human user, other than the attacker, to participate in the successful compromise of the vulnerable component.
*/
userInteraction?: string | null;
}
/**
* Represents database access information, such as queries. A database may be a sub-resource of an instance (as in the case of Cloud SQL instances or Cloud Spanner instances), or the database instance itself. Some database resources might not have the [full resource name](https://google.aip.dev/122#full-resource-names) populated because these resource types, such as Cloud SQL databases, are not yet supported by Cloud Asset Inventory. In these cases only the display name is provided.
*/
export interface Schema$GoogleCloudSecuritycenterV2Database {
/**
* The human-readable name of the database that the user connected to.
*/
displayName?: string | null;
/**
* The target usernames, roles, or groups of an SQL privilege grant, which is not an IAM policy change.
*/
grantees?: string[] | null;
/**
* Some database resources may not have the [full resource name](https://google.aip.dev/122#full-resource-names) populated because these resource types are not yet supported by Cloud Asset Inventory (e.g. Cloud SQL databases). In these cases only the display name will be provided. The [full resource name](https://google.aip.dev/122#full-resource-names) of the database that the user connected to, if it is supported by Cloud Asset Inventory.
*/
name?: string | null;
/**
* The SQL statement that is associated with the database access.
*/
query?: string | null;
/**
* The username used to connect to the database. The username might not be an IAM principal and does not have a set format.
*/
userName?: string | null;
/**
* The version of the database, for example, POSTGRES_14. See [the complete list](https://cloud.google.com/sql/docs/mysql/admin-api/rest/v1/SqlDatabaseVersion).
*/
version?: string | null;
}
/**
* Memory hash detection contributing to the binary family match.
*/
export interface Schema$GoogleCloudSecuritycenterV2Detection {
/**
* The name of the binary associated with the memory hash signature detection.
*/
binary?: string | null;
/**
* The percentage of memory page hashes in the signature that were matched.
*/
percentPagesMatched?: number | null;
}
/**
* Path of the file in terms of underlying disk/partition identifiers.
*/
export interface Schema$GoogleCloudSecuritycenterV2DiskPath {
/**
* UUID of the partition (format https://wiki.archlinux.org/title/persistent_block_device_naming#by-uuid)
*/
partitionUuid?: string | null;
/**
* Relative path of the file in the partition as a JSON encoded string. Example: /home/user1/executable_file.sh
*/
relativePath?: string | null;
}
/**
* A name-value pair representing an environment variable used in an operating system process.
*/
export interface Schema$GoogleCloudSecuritycenterV2EnvironmentVariable {
/**
* Environment variable name as a JSON encoded string.
*/
name?: string | null;
/**
* Environment variable value as a JSON encoded string.
*/
val?: string | null;
}
/**
* Resource where data was exfiltrated from or exfiltrated to.
*/
export interface Schema$GoogleCloudSecuritycenterV2ExfilResource {
/**
* Subcomponents of the asset that was exfiltrated, like URIs used during exfiltration, table names, databases, and filenames. For example, multiple tables might have been exfiltrated from the same Cloud SQL instance, or multiple files might have been exfiltrated from the same Cloud Storage bucket.
*/
components?: string[] | null;
/**
* The resource's [full resource name](https://cloud.google.com/apis/design/resource_names#full_resource_name).
*/
name?: string | null;
}
/**
* Exfiltration represents a data exfiltration attempt from one or more sources to one or more targets. The `sources` attribute lists the sources of the exfiltrated data. The `targets` attribute lists the destinations the data was copied to.
*/
export interface Schema$GoogleCloudSecuritycenterV2Exfiltration {
/**
* If there are multiple sources, then the data is considered "joined" between them. For instance, BigQuery can join multiple tables, and each table would be considered a source.
*/
sources?: Schema$GoogleCloudSecuritycenterV2ExfilResource[];
/**
* If there are multiple targets, each target would get a complete copy of the "joined" source data.
*/
targets?: Schema$GoogleCloudSecuritycenterV2ExfilResource[];
/**
* Total exfiltrated bytes processed for the entire job.
*/
totalExfiltratedBytes?: string | null;
}
/**
* Representation of third party SIEM/SOAR fields within SCC.
*/
export interface Schema$GoogleCloudSecuritycenterV2ExternalSystem {
/**
* References primary/secondary etc assignees in the external system.
*/
assignees?: string[] | null;
/**
* The time when the case was closed, as reported by the external system.
*/
caseCloseTime?: string | null;
/**
* The time when the case was created, as reported by the external system.
*/
caseCreateTime?: string | null;
/**
* The priority of the finding's corresponding case in the external system.
*/
casePriority?: string | null;
/**
* The SLA of the finding's corresponding case in the external system.
*/
caseSla?: string | null;
/**
* The link to the finding's corresponding case in the external system.
*/
caseUri?: string | null;
/**
* The time when the case was last updated, as reported by the external system.
*/
externalSystemUpdateTime?: string | null;
/**
* The identifier that's used to track the finding's corresponding case in the external system.
*/
externalUid?: string | null;
/**
* Full resource name of the external system. The following list shows some examples: + `organizations/1234/sources/5678/findings/123456/externalSystems/jira` + `organizations/1234/sources/5678/locations/us/findings/123456/externalSystems/jira` + `folders/1234/sources/5678/findings/123456/externalSystems/jira` + `folders/1234/sources/5678/locations/us/findings/123456/externalSystems/jira` + `projects/1234/sources/5678/findings/123456/externalSystems/jira` + `projects/1234/sources/5678/locations/us/findings/123456/externalSystems/jira`
*/
name?: string | null;
/**
* The most recent status of the finding's corresponding case, as reported by the external system.
*/
status?: string | null;
/**
* Information about the ticket, if any, that is being used to track the resolution of the issue that is identified by this finding.
*/
ticketInfo?: Schema$GoogleCloudSecuritycenterV2TicketInfo;
}
/**
* File information about the related binary/library used by an executable, or the script used by a script interpreter
*/
export interface Schema$GoogleCloudSecuritycenterV2File {
/**
* Prefix of the file contents as a JSON-encoded string.
*/
contents?: string | null;
/**
* Path of the file in terms of underlying disk/partition identifiers.
*/
diskPath?: Schema$GoogleCloudSecuritycenterV2DiskPath;
/**
* The length in bytes of the file prefix that was hashed. If hashed_size == size, any hashes reported represent the entire file.
*/
hashedSize?: string | null;
/**
* True when the hash covers only a prefix of the file.
*/
partiallyHashed?: boolean | null;
/**
* Absolute path of the file as a JSON encoded string.
*/
path?: string | null;
/**
* SHA256 hash of the first hashed_size bytes of the file encoded as a hex string. If hashed_size == size, sha256 represents the SHA256 hash of the entire file.
*/
sha256?: string | null;
/**
* Size of the file in bytes.
*/
size?: string | null;
}
/**
* 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.
*/
export interface Schema$GoogleCloudSecuritycenterV2Finding {
/**
* Access details associated with the finding, such as more information on the caller, which method was accessed, and from where.
*/
access?: Schema$GoogleCloudSecuritycenterV2Access;
/**
* Represents an application associated with the finding.
*/
application?: Schema$GoogleCloudSecuritycenterV2Application;
/**
* The results of an attack path simulation relevant to this finding.
*/
attackExposure?: Schema$GoogleCloudSecuritycenterV2AttackExposure;
/**
* Fields related to Backup and DR findings.
*/
backupDisasterRecovery?: Schema$GoogleCloudSecuritycenterV2BackupDisasterRecovery;
/**
* 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.
*/
canonicalName?: string | null;
/**
* Immutable. The additional taxonomy group within findings from a given source. Example: "XSS_FLASH_INJECTION"
*/
category?: string | null;
/**
* Cloud DLP data profile that is associated with the finding.
*/
cloudDlpDataProfile?: Schema$GoogleCloudSecuritycenterV2CloudDlpDataProfile;
/**
* Cloud Data Loss Prevention (Cloud DLP) inspection results that are associated with the finding.
*/
cloudDlpInspection?: Schema$GoogleCloudSecuritycenterV2CloudDlpInspection;
/**
* Contains compliance information for security standards associated to the finding.
*/
compliances?: Schema$GoogleCloudSecuritycenterV2Compliance[];
/**
* Contains information about the IP connection associated with the finding.
*/
connections?: Schema$GoogleCloudSecuritycenterV2Connection[];
/**
* 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" \} ] \} \}
*/
contacts?: {
[key: string]: Schema$GoogleCloudSecuritycenterV2ContactDetails;
} | null;
/**
* Containers associated with the finding. This field provides information for both Kubernetes and non-Kubernetes containers.
*/
containers?: Schema$GoogleCloudSecuritycenterV2Container[];
/**
* Output only. The time at which the finding was created in Security Command Center.
*/
createTime?: string | null;
/**
* Database associated with the finding.
*/
database?: Schema$GoogleCloudSecuritycenterV2Database;
/**
* Contains more details about the finding.
*/
description?: string | null;
/**
* 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.
*/
eventTime?: string | null;
/**
* Represents exfiltrations associated with the finding.
*/
exfiltration?: Schema$GoogleCloudSecuritycenterV2Exfiltration;
/**
* Output only. Third party SIEM/SOAR fields within SCC, contains external system information and external system finding fields.
*/
externalSystems?: {
[key: string]: Schema$GoogleCloudSecuritycenterV2ExternalSystem;
} | null;
/**
* 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.
*/
externalUri?: string | null;
/**
* File associated with the finding.
*/
files?: Schema$GoogleCloudSecuritycenterV2File[];
/**
* The class of the finding.
*/
findingClass?: string | null;
/**
* Represents IAM bindings associated with the finding.
*/
iamBindings?: Schema$GoogleCloudSecuritycenterV2IamBinding[];
/**
* 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](https://en.wikipedia.org/wiki/Indicator_of_compromise).
*/
indicator?: Schema$GoogleCloudSecuritycenterV2Indicator;
/**
* Signature of the kernel rootkit.
*/
kernelRootkit?: Schema$GoogleCloudSecuritycenterV2KernelRootkit;
/**
* Kubernetes resources associated with the finding.
*/
kubernetes?: Schema$GoogleCloudSecuritycenterV2Kubernetes;
/**
* The load balancers associated with the finding.
*/
loadBalancers?: Schema$GoogleCloudSecuritycenterV2LoadBalancer[];
/**
* Log entries that are relevant to the finding.
*/
logEntries?: Schema$GoogleCloudSecuritycenterV2LogEntry[];
/**
* MITRE ATT&CK tactics and techniques related to this finding. See: https://attack.mitre.org
*/
mitreAttack?: Schema$GoogleCloudSecuritycenterV2MitreAttack;
/**
* Unique identifier of the module which generated the finding. Example: folders/598186756061/securityHealthAnalyticsSettings/customModules/56799441161885
*/
moduleName?: string | null;
/**
* 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?: string | null;
/**
* Records additional information about the mute operation, for example, the [mute configuration](https://cloud.google.com/security-command-center/docs/how-to-mute-findings) that muted the finding and the user who muted the finding.
*/
muteInitiator?: string | null;
/**
* Output only. The most recent time this finding was muted or unmuted.
*/
muteUpdateTime?: string | null;
/**
* The [relative resource name](https://cloud.google.com/apis/design/resource_names#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\}`
*/
name?: string | null;
/**
* Steps to address the finding.
*/
nextSteps?: string | null;
/**
* Contains information about the org policies associated with the finding.
*/
orgPolicies?: Schema$GoogleCloudSecuritycenterV2OrgPolicy[];
/**
* 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\}`
*/
parent?: string | null;
/**
* Output only. The human readable display name of the finding source such as "Event Threat Detection" or "Security Health Analytics".
*/
parentDisplayName?: string | null;
/**
* Represents operating system processes associated with the Finding.
*/
processes?: Schema$GoogleCloudSecuritycenterV2Process[];
/**
* 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.
*/
resourceName?: string | null;
/**
* 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.
*/
securityMarks?: Schema$GoogleCloudSecuritycenterV2SecurityMarks;
/**
* The security posture associated with the finding.
*/
securityPosture?: Schema$GoogleCloudSecuritycenterV2SecurityPosture;
/**
* The severity of the finding. This field is managed by the source that writes the finding.
*/
severity?: string | null;
/**
* 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.
*/
sourceProperties?: {
[key: string]: any;
} | null;
/**
* Output only. The state of the finding.
*/
state?: string | null;
/**
* Represents vulnerability-specific fields like CVE and CVSS scores. CVE stands for Common Vulnerabilities and Exposures (https://cve.mitre.org/about/)
*/
vulnerability?: Schema$GoogleCloudSecuritycenterV2Vulnerability;
}
/**
* Represents a geographical location for a given access.
*/
export interface Schema$GoogleCloudSecuritycenterV2Geolocation {
/**
* A CLDR.
*/
regionCode?: string | null;
}
/**
* Represents a particular IAM binding, which captures a member's role addition, removal, or state.
*/
export interface Schema$GoogleCloudSecuritycenterV2IamBinding {
/**
* The action that was performed on a Binding.
*/
action?: string | null;
/**
* A single identity requesting access for a Cloud Platform resource, for example, "foo@google.com".
*/
member?: string | null;
/**
* Role that is assigned to "members". For example, "roles/viewer", "roles/editor", or "roles/owner".
*/
role?: string | null;
}
/**
* 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](https://en.wikipedia.org/wiki/Indicator_of_compromise).
*/
export interface Schema$GoogleCloudSecuritycenterV2Indicator {
/**
* List of domains associated to the Finding.
*/
domains?: string[] | null;
/**
* The list of IP addresses that are associated with the finding.
*/
ipAddresses?: string[] | null;
/**
* The list of matched signatures indicating that the given process is present in the environment.
*/
signatures?: Schema$GoogleCloudSecuritycenterV2ProcessSignature[];
/**
* The list of URIs associated to the Findings.
*/
uris?: string[] | null;
}
/**
* Kernel mode rootkit signatures.
*/
export interface Schema$GoogleCloudSecuritycenterV2KernelRootkit {
/**
* Rootkit name, when available.
*/
name?: string | null;
/**
* True if unexpected modifications of kernel code memory are present.
*/
unexpectedCodeModification?: boolean | null;
/**
* True if `ftrace` points are present with callbacks pointing to regions that are not in the expected kernel or module code range.
*/
unexpectedFtraceHandler?: boolean | null;
/**
* True if interrupt handlers that are are not in the expected kernel or module code regions are present.
*/
unexpectedInterruptHandler?: boolean | null;
/**
* True if kernel code pages that are not in the expected kernel or module code regions are present.
*/
unexpectedKernelCodePages?: boolean | null;
/**
* True if `kprobe` points are present with callbacks pointing to regions that are not in the expected kernel or module code range.
*/
unexpectedKprobeHandler?: boolean | null;
/**
* True if unexpected processes in the scheduler run queue are present. Such processes are in the run queue, but not in the process task list.
*/
unexpectedProcessesInRunqueue?: boolean | null;
/**
* True if unexpected modifications of kernel read-only data memory are present.
*/
unexpectedReadOnlyDataModification?: boolean | null;
/**
* True if system call handlers that are are not in the expected kernel or module code regions are present.
*/
unexpectedSystemCallHandler?: boolean | null;
}
/**
* Kubernetes-related attributes.
*/
export interface Schema$GoogleCloudSecuritycenterV2Kubernetes {
/**
* Provides information on any Kubernetes access reviews (privilege checks) relevant to the finding.
*/
accessReviews?: Schema$GoogleCloudSecuritycenterV2AccessReview[];
/**
* Provides Kubernetes role binding information for findings that involve [RoleBindings or ClusterRoleBindings](https://cloud.google.com/kubernetes-engine/docs/how-to/role-based-access-control).
*/
bindings?: Schema$GoogleCloudSecuritycenterV2Binding[];
/**
* GKE [node pools](https://cloud.google.com/kubernetes-engine/docs/concepts/node-pools) associated with the finding. This field contains node pool information for each node, when it is available.
*/
nodePools?: Schema$GoogleCloudSecuritycenterV2NodePool[];
/**
* Provides Kubernetes [node](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture#nodes) information.
*/
nodes?: Schema$GoogleCloudSecuritycenterV2Node[];
/**
* Kubernetes objects related to the finding.
*/
objects?: Schema$GoogleCloudSecuritycenterV2Object[];
/**
* Kubernetes [Pods](https://cloud.google.com/kubernetes-engine/docs/concepts/pod) associated with the finding. This field contains Pod records for each container that is owned by a Pod.
*/
pods?: Schema$GoogleCloudSecuritycenterV2Pod[];
/**
* Provides Kubernetes role information for findings that involve [Roles or ClusterRoles](https://cloud.google.com/kubernetes-engine/docs/how-to/role-based-access-control).
*/
roles?: Schema$GoogleCloudSecuritycenterV2Role[];
}
/**
* Represents a generic name-value label. A label has separate name and value fields to support filtering with the `contains()` function. For more information, see [Filtering on array-type fields](https://cloud.google.com/security-command-center/docs/how-to-api-list-findings#array-contains-filtering).
*/
export interface Schema$GoogleCloudSecuritycenterV2Label {
/**
* Name of the label.
*/
name?: string | null;
/**
* Value that corresponds to the label's name.
*/
value?: string | null;
}
/**
* Contains information related to the load balancer associated with the finding.
*/
export interface Schema$GoogleCloudSecuritycenterV2LoadBalancer {
/**
* The name of the load balancer associated with the finding.
*/
name?: string | null;
}
/**
* An individual entry in a log.
*/
export interface Schema$GoogleCloudSecuritycenterV2LogEntry {
/**
* An individual entry in a log stored in Cloud Logging.
*/
cloudLoggingEntry?: Schema$GoogleCloudSecuritycenterV2CloudLoggingEntry;
}
/**
* A signature corresponding to memory page hashes.
*/
export interface Schema$GoogleCloudSecuritycenterV2MemoryHashSignature {
/**
* The binary family.
*/
binaryFamily?: string | null;
/**
* The list of memory hash detections contributing to the binary family match.
*/
detections?: Schema$GoogleCloudSecuritycenterV2Detection[];
}
/**
* MITRE ATT&CK tactics and techniques related to this finding. See: https://attack.mitre.org
*/
export interface Schema$GoogleCloudSecuritycenterV2MitreAttack {
/**
* Additional MITRE ATT&CK tactics related to this finding, if any.
*/
additionalTactics?: string[] | null;
/**
* Additional MITRE ATT&CK techniques related to this finding, if any, along with any of their respective parent techniques.
*/
additionalTechniques?: string[] | null;
/**
* The MITRE ATT&CK tactic most closely represented by this finding, if any.
*/
primaryTactic?: string | null;
/**
* The MITRE ATT&CK technique most closely represented by this finding, if any. primary_techniques is a repeated field because there are multiple levels of MITRE ATT&CK techniques. If the technique most closely represented by this finding is a sub-technique (e.g. `SCANNING_IP_BLOCKS`), both the sub-technique and its parent technique(s) will be listed (e.g. `SCANNING_IP_BLOCKS`, `ACTIVE_SCANNING`).
*/
primaryTechniques?: string[] | null;
/**
* The MITRE ATT&CK version referenced by the above fields. E.g. "8".
*/
version?: string | null;
}
/**
* A mute config is a Cloud SCC resource that contains the configuration to mute create/update events of findings.
*/
export interface Schema$GoogleCloudSecuritycenterV2MuteConfig {
/**
* Output only. The time at which the mute config was created. This field is set by the server and will be ignored if provided on config creation.
*/
createTime?: string | null;
/**
* A description of the mute config.
*/
description?: string | null;
/**
* Required. An expression that defines the filter to apply across create/update events of findings. While creating a filter string, be mindful of the scope in which the mute configuration is being created. E.g., If a filter contains project = X but is created under the project = Y scope, it might not match any findings. The following field and operator combinations are supported: * severity: `=`, `:` * category: `=`, `:` * resource.name: `=`, `:` * resource.project_name: `=`, `:` * resource.project_display_name: `=`, `:` * resource.folders.resource_folder: `=`, `:` * resource.parent_name: `=`, `:` * resource.parent_display_name: `=`, `:` * resource.type: `=`, `:` * finding_class: `=`, `:` * indicator.ip_addresses: `=`, `:` * indicator.domains: `=`, `:`
*/
filter?: string | null;
/**
* Output only. Email address of the user who last edited the mute config. This field is set by the server and will be ignored if provided on config creation or update.
*/
mostRecentEditor?: string | null;
/**
* This field will be ignored if provided on config creation. The following list shows some examples of the format: + `organizations/{organization\}/muteConfigs/{mute_config\}` + `organizations/{organization\}locations/{location\}//muteConfigs/{mute_config\}` + `folders/{folder\}/muteConfigs/{mute_config\}` + `folders/{folder\}/locations/{location\}/muteConfigs/{mute_config\}` + `projects/{project\}/muteConfigs/{mute_config\}` + `projects/{project\}/locations/{location\}/muteConfigs/{mute_config\}`
*/
name?: string | null;
/**
* Required. The type of the mute config, which determines what type of mute state the config affects. Immutable after creation.
*/
type?: string | null;
/**
* Output only. The most recent time at which the mute config was updated. This field is set by the server and will be ignored if provided on config creation or update.
*/
updateTime?: string | null;
}
/**
* Kubernetes nodes associated with the finding.
*/
export interface Schema$GoogleCloudSecuritycenterV2Node {
/**
* [Full resource name](https://google.aip.dev/122#full-resource-names) of the Compute Engine VM running the cluster node.
*/
name?: string | null;
}
/**
* Provides GKE node pool information.
*/
export interface Schema$GoogleCloudSecuritycenterV2NodePool {
/**
* Kubernetes node pool name.
*/
name?: string | null;
/**
* Nodes associated with the finding.
*/
nodes?: Schema$GoogleCloudSecuritycenterV2Node[];
}
/**
* Cloud SCC's Notification
*/
export interface Schema$GoogleCloudSecuritycenterV2NotificationMessage {
/**
* If it's a Finding based notification config, this field will be populated.
*/
finding?: Schema$GoogleCloudSecuritycenterV2Finding;
/**
* Name of the notification config that generated current notification.
*/
notificationConfigName?: string | null;
/**
* The Cloud resource tied to this notification's Finding.
*/
resource?: Schema$GoogleCloudSecuritycenterV2Resource;
}
/**
* Kubernetes object related to the finding, uniquely identified by GKNN. Used if the object Kind is not one of Pod, Node, NodePool, Binding, or AccessReview.
*/
export interface Schema$GoogleCloudSecuritycenterV2Object {
/**
* Pod containers associated with this finding, if any.
*/
containers?: Schema$GoogleCloudSecuritycenterV2Container[];
/**
* Kubernetes object group, such as "policy.k8s.io/v1".
*/
group?: string | null;
/**
* Kubernetes object kind, such as "Namespace".
*/
kind?: string | null;
/**
* Kubernetes object name. For details see https://kubernetes.io/docs/concepts/overview/working-with-objects/names/.
*/
name?: string | null;
/**
* Kubernetes object namespace. Must be a valid DNS label. Named "ns" to avoid collision with C++ namespace keyword. For details see https://kubernetes.io/docs/tasks/administer-cluster/namespaces/.
*/
ns?: string | null;
}
/**
* Contains information about the org policies associated with the finding.
*/
export interface Schema$GoogleCloudSecuritycenterV2OrgPolicy {
/**
* The resource name of the org policy. Example: "organizations/{organization_id\}/policies/{constraint_name\}"
*/
name?: string | null;
}
/**
* Package is a generic definition of a package.
*/
export interface Schema$GoogleCloudSecuritycenterV2Package {
/**
* The CPE URI where the vulnerability was detected.
*/
cpeUri?: string | null;
/**
* The name of the package where the vulnerability was detected.
*/
packageName?: string | null;
/**
* Type of package, for example, os, maven, or go.
*/
packageType?: string | null;
/**
* The version of the package.
*/
packageVersion?: string | null;
}
/**
* A Kubernetes Pod.
*/
export interface Schema$GoogleCloudSecuritycenterV2Pod {
/**
* Pod containers associated with this finding, if any.
*/
containers?: Schema$GoogleCloudSecuritycenterV2Container[];
/**
* Pod labels. For Kubernetes containers, these are applied to the container.
*/
labels?: Schema$GoogleCloudSecuritycenterV2Label[];
/**
* Kubernetes Pod name.
*/
name?: string | null;
/**
* Kubernetes Pod namespace.
*/
ns?: string | null;
}
/**
* The policy field that violates the deployed posture and its expected and detected values.
*/
export interface Schema$GoogleCloudSecuritycenterV2PolicyDriftDetails {
/**
* The detected value that violates the deployed posture, for example, `false` or `allowed_values={"projects/22831892"\}`.
*/
detectedValue?: string | null;
/**
* The value of this field that was configured in a posture, for example, `true` or `allowed_values={"projects/29831892"\}`.
*/
expectedValue?: string | null;
/**
* The name of the updated field, for example constraint.implementation.policy_rules[0].enforce
*/
field?: string | null;
}
/**
* Represents an operating system process.
*/
export interface Schema$GoogleCloudSecuritycenterV2Process {
/**
* Process arguments as JSON encoded strings.
*/
args?: string[] | null;
/**
* True if `args` is incomplete.
*/
argumentsTruncated?: boolean | null;
/**
* File information for the process executable.
*/
binary?: Schema$GoogleCloudSecuritycenterV2File;
/**
* Process environment variables.
*/
envVariables?: Schema$GoogleCloudSecuritycenterV2EnvironmentVariable[];
/**
* True if `env_variables` is incomplete.
*/
envVariablesTruncated?: boolean | null;
/**
* File information for libraries loaded by the process.
*/
libraries?: Schema$GoogleCloudSecuritycenterV2File[];
/**
* The process name, as displayed in utilities like `top` and `ps`. This name can be accessed through `/proc/[pid]/comm` and changed with `prctl(PR_SET_NAME)`.
*/
name?: string | null;
/**
* The parent process ID.
*/
parentPid?: string | null;
/**
* The process ID.
*/
pid?: string | null;
/**
* When the process represents the invocation of a script, `binary` provides information about the interpreter, while `script` provides information about the script file provided to the interpreter.
*/
script?: Schema$GoogleCloudSecuritycenterV2File;
}
/**
* Indicates what signature matched this process.
*/
export interface Schema$GoogleCloudSecuritycenterV2ProcessSignature {
/**
* Signature indicating that a binary family was matched.
*/
memoryHashSignature?: Schema$GoogleCloudSecuritycenterV2MemoryHashSignature;
/**
* Describes the type of resource associated with the signature.
*/
signatureType?: string | null;
/**
* Signature indicating that a YARA rule was matched.
*/
yaraRuleSignature?: Schema$GoogleCloudSecuritycenterV2YaraRuleSignature;
}
/**
* Additional Links
*/
export interface Schema$GoogleCloudSecuritycenterV2Reference {
/**
* Source of the reference e.g. NVD
*/
source?: string | null;
/**
* Uri for the mentioned source e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527.
*/
uri?: string | null;
}
/**
* Information related to the Google Cloud resource.
*/
export interface Schema$GoogleCloudSecuritycenterV2Resource {
/**
* The human readable name of the resource.
*/
displayName?: string | null;
/**
* The full resource name of the resource. See: https://cloud.google.com/apis/design/resource_names#full_resource_name
*/
name?: string | null;
/**
* The full resource type of the resource.
*/
type?: string | null;
}
/**
* A resource value config (RVC) is a mapping configuration of user's resources to resource values. Used in Attack path simulations.
*/
export interface Schema$GoogleCloudSecuritycenterV2ResourceValueConfig {
/**
* Output only. Timestamp this resource value config was created.
*/
createTime?: string | null;
/**
* Description of the resource value config.
*/
description?: string | null;
/**
* Name for the resource value config
*/
name?: string | null;
/**
* List of resource labels to search for, evaluated with AND. E.g. "resource_labels_selector": {"key": "value", "env": "prod"\} will match resources with labels "key": "value" AND "env": "prod" https://cloud.google.com/resource-manager/docs/creating-managing-labels
*/
resourceLabelsSelector?: {
[key: string]: string;
} | null;
/**
* Apply resource_value only to resources that match resource_type. resource_type will be checked with "AND" of other resources. E.g. "storage.googleapis.com/Bucket" with resource_value "HIGH" will apply "HIGH" value only to "storage.googleapis.com/Bucket" resources.
*/
resourceType?: string | null;
/**
* Resource value level this expression represents Only required when there is no SDP mapping in the request
*/
resourceValue?: string | null;
/**
* Project or folder to scope this config to. For example, "project/456" would apply this config only to resources in "project/456" scope will be checked with "AND" of other resources.
*/
scope?: string | null;
/**
* A mapping of the sensitivity on Sensitive Data Protection finding to resource values. This mapping can only be used in combination with a resource_type that is related to BigQuery, e.g. "bigquery.googleapis.com/Dataset".
*/
sensitiveDataProtectionMapping?: Schema$GoogleCloudSecuritycenterV2SensitiveDataProtectionMapping;
/**
* Required. Tag values combined with AND to check against. Values in the form "tagValues/123" E.g. [ "tagValues/123", "tagValues/456", "tagValues/789" ] https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing
*/
tagValues?: string[] | null;
/**
* Output only. Timestamp this resource value config was last updated.
*/
updateTime?: string | null;
}
/**
* Kubernetes Role or ClusterRole.
*/
export interface Schema$GoogleCloudSecuritycenterV2Role {
/**
* Role type.
*/
kind?: string | null;
/**
* Role name.
*/
name?: string | null;
/**
* Role namespace.
*/
ns?: string | null;
}
/**
* SecurityBulletin are notifications of vulnerabilities of Google products.
*/
export interface Schema$GoogleCloudSecuritycenterV2SecurityBulletin {
/**
* ID of the bulletin corresponding to the vulnerability.
*/
bulletinId?: string | null;
/**
* Submission time of this Security Bulletin.
*/
submissionTime?: string | null;
/**
* This represents a version that the cluster receiving this notification should be upgraded to, based on its current version. For example, 1.15.0
*/
suggestedUpgradeVersion?: string | null;
}
/**
* User specified security marks that are attached to the parent Security Command Center resource. Security marks are scoped within a Security Command Center organization -- they can be modified and viewed by all users who have proper permissions on the organization.
*/
export interface Schema$GoogleCloudSecuritycenterV2SecurityMarks {
/**
* The canonical name of the marks. The following list shows some examples: + `organizations/{organization_id\}/assets/{asset_id\}/securityMarks" + `organizations/{organization_id\}/sources/{source_id\}/findings/{finding_id\}/securityMarks" + `organizations/{organization_id\}/sources/{source_id\}/locations/{location\}/findings/{finding_id\}/securityMarks" + `folders/{folder_id\}/assets/{asset_id\}/securityMarks" + `folders/{folder_id\}/sources/{source_id\}/findings/{finding_id\}/securityMarks" + `folders/{folder_id\}/sources/{source_id\}/locations/{location\}/findings/{finding_id\}/securityMarks" + `projects/{project_number\}/assets/{asset_id\}/securityMarks" + `projects/{project_number\}/sources/{source_id\}/findings/{finding_id\}/securityMarks" + `projects/{project_number\}/sources/{source_id\}/locations/{location\}/findings/{finding_id\}/securityMarks"
*/
canonicalName?: string | null;
/**
* Mutable user specified security marks belonging to the parent resource. Constraints are as follows: * Keys and values are treated as case insensitive * Keys must be between 1 - 256 characters (inclusive) * Keys must be letters, numbers, underscores, or dashes * Values have leading and trailing whitespace trimmed, remaining characters must be between 1 - 4096 characters (inclusive)
*/
marks?: {
[key: string]: string;
} | null;
/**
* The relative resource name of the SecurityMarks. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name The following list shows some examples: + `organizations/{organization_id\}/assets/{asset_id\}/securityMarks` + `organizations/{organization_id\}/sources/{source_id\}/findings/{finding_id\}/securityMarks` + `organizations/{organization_id\}/sources/{source_id\}/locations/{location\}/findings/{finding_id\}/securityMarks`
*/
name?: string | null;
}
/**
* Represents a posture that is deployed on Google Cloud by the Security Command Center Posture Management service. A posture contains one or more policy sets. A policy set is a group of policies that enforce a set of security rules on Google Cloud.
*/
export interface Schema$GoogleCloudSecuritycenterV2SecurityPosture {
/**
* The name of the updated policy, for example, `projects/{project_id\}/policies/{constraint_name\}`.
*/
changedPolicy?: string | null;
/**
* Name of the posture, for example, `CIS-Posture`.
*/
name?: string | null;
/**
* The ID of the updated policy, for example, `compute-policy-1`.
*/
policy?: string | null;
/**
* The details about a change in an updated policy that violates the deployed posture.
*/
policyDriftDetails?: Schema$GoogleCloudSecuritycenterV2PolicyDriftDetails[];
/**
* The name of the updated policy set, for example, `cis-policyset`.
*/
policySet?: string | null;
/**
* The name of the posture deployment, for example, `organizations/{org_id\}/posturedeployments/{posture_deployment_id\}`.
*/
postureDeployment?: string | null;
/**
* The project, folder, or organization on which the posture is deployed, for example, `projects/{project_number\}`.
*/
postureDeploymentResource?: string | null;
/**
* The version of the posture, for example, `c7cfa2a8`.
*/
revisionId?: string | null;
}
/**
* Resource value mapping for Sensitive Data Protection findings If any of these mappings have a resource value that is not unspecified, the resource_value field will be ignored when reading this configuration.
*/
export interface Schema$GoogleCloudSecuritycenterV2SensitiveDataProtectionMapping {
/**
* Resource value mapping for high-sensitivity Sensitive Data Protection findings
*/
highSensitivityMapping?: string | null;
/**
* Resource value mapping for medium-sensitivity Sensitive Data Protection findings
*/
mediumSensitivityMapping?: string | null;
}
/**
* Identity delegation history of an authenticated service account.
*/
export interface Schema$GoogleCloudSecuritycenterV2ServiceAccountDelegationInfo {
/**
* The email address of a Google account.
*/
principalEmail?: string | null;
/**
* A string representing the principal_subject associated with the identity. As compared to `principal_email`, supports principals that aren't associated with email addresses, such as third party principals. For most identities, the format will be `principal://iam.googleapis.com/{identity pool name\}/subjects/{subject\}` except for some GKE identities (GKE_WORKLOAD, FREEFORM, GKE_HUB_WORKLOAD) that are still in the legacy format `serviceAccount:{identity pool name\}[{subject\}]`
*/
principalSubject?: string | null;
}
/**
* Represents a Kubernetes subject.
*/
export interface Schema$GoogleCloudSecuritycenterV2Subject {
/**
* Authentication type for the subject.
*/
kind?: string | null;
/**
* Name for the subject.
*/
name?: string | null;
/**
* Namespace for the subject.
*/
ns?: string | null;
}
/**
* Information about the ticket, if any, that is being used to track the resolution of the issue that is identified by this finding.
*/
export interface Schema$GoogleCloudSecuritycenterV2TicketInfo {
/**
* The assignee of the ticket in the ticket system.
*/
assignee?: string | null;
/**
* The description of the ticket in the ticket system.
*/
description?: string | null;
/**
* The identifier of the ticket in the ticket system.
*/
id?: string | null;
/**
* The latest status of the ticket, as reported by the ticket system.
*/
status?: string | null;
/**
* The time when the ticket was last updated, as reported by the ticket system.
*/
updateTime?: string | null;
/**
* The link to the ticket in the ticket system.
*/
uri?: string | null;
}
/**
* Refers to common vulnerability fields e.g. cve, cvss, cwe etc.
*/
export interface Schema$GoogleCloudSecuritycenterV2Vulnerability {
/**
* CVE stands for Common Vulnerabilities and Exposures (https://cve.mitre.org/about/)
*/
cve?: Schema$GoogleCloudSecuritycenterV2Cve;
/**
* The fixed package is relevant to the finding.
*/
fixedPackage?: Schema$GoogleCloudSecuritycenterV2Package;
/**
* The offending package is relevant to the finding.
*/
offendingPackage?: Schema$GoogleCloudSecuritycenterV2Package;
/**
* The security bulletin is relevant to this finding.
*/
securityBulletin?: Schema$GoogleCloudSecuritycenterV2SecurityBulletin;
}
/**
* A signature corresponding to a YARA rule.
*/
export interface Schema$GoogleCloudSecuritycenterV2YaraRuleSignature {
/**
* The name of the YARA rule.
*/
yaraRule?: string | null;
}
/**
* Request message for grouping by assets.
*/
export interface Schema$GroupAssetsRequest {
/**
* When compare_duration is set, the Asset's "state" property is updated to indicate whether the asset was added, removed, or remained present during the compare_duration period of time that precedes the read_time. This is the time between (read_time - compare_duration) and read_time. The state value is derived based on the presence of the asset at the two points in time. Intermediate state changes between the two times don't affect the result. For example, the results aren't affected if the asset is removed and re-created again. Possible "state" values when compare_duration is specified: * "ADDED": indicates that the asset was not present before compare_duration, but present at reference_time. * "REMOVED": indicates that the asset was present at the start of compare_duration, but not present at reference_time. * "ACTIVE": indicates that the asset was present at both the start and the end of the time period defined by compare_duration and reference_time. This field is ignored if `state` is not a field in `group_by`.
*/
compareDuration?: string | null;
/**
* Expression that defines the filter to apply across assets. The expression is a list of zero or more restrictions combined via logical operators `AND` and `OR`. Parentheses are not supported, and `OR` has higher precedence than `AND`. Restrictions have the form ` ` and may have a `-` character in front of them to indicate negation. The fields map to those defined in the Asset resource. Examples include: * name * security_center_properties.resource_name * resource_properties.a_property * security_marks.marks.marka The supported operators are: * `=` for all value types. * `\>`, `<`, `\>=`, `<=` for integer values. * `:`, meaning substring matching, for strings. The supported value types are: * string literals in quotes. * integer literals without quotes. * boolean literals `true` and `false` without quotes. For example, `resource_properties.size = 100` is a valid filter string.
*/
filter?: string | null;
/**
* Required. Expression that defines what assets fields to use for grouping. The string value should follow SQL syntax: comma separated list of fields. For example: "security_center_properties.resource_project,security_center_properties.project". The following fields are supported when compare_duration is not set: * security_center_properties.resource_project * security_center_properties.resource_type * security_center_properties.resource_parent The following fields are supported when compare_duration is set: * security_center_properties.resource_type
*/
groupBy?: string | null;
/**
* The maximum number of results to return in a single response. Default is 10, minimum is 1, maximum is 1000.
*/
pageSize?: number | null;
/**
* The value returned by the last `GroupAssetsResponse`; indicates that this is a continuation of a prior `GroupAssets` call, and that the system should return the next page of data.
*/
pageToken?: string | null;
/**
* Time used as a reference point when filtering assets. The filter is limited to assets existing at the supplied time and their values are those at that specific time. Absence of this field will default to the API's version of NOW.
*/
readTime?: string | null;
}
/**
* Response message for grouping by assets.
*/
export interface Schema$GroupAssetsResponse {
/**
* Group results. There exists an element for each existing unique combination of property/values. The element contains a count for the number of times those specific property/values appear.
*/
groupByResults?: Schema$GroupResult[];
/**
* Token to retrieve the next page of results, or empty if there are no more results.
*/
nextPageToken?: string | null;
/**
* Time used for executing the groupBy request.
*/
readTime?: string | null;
}
/**
* Request message for grouping by findings.
*/
export interface Schema$GroupFindingsRequest {
/**
* Expression that defines the filter to apply across findings. The expression is a list of one or more restrictions combined via logical operators `AND` and `OR`. Parentheses are not supported, and `OR` has higher precedence than `AND`. Restrictions have the form ` ` and may have a `-` character in front of them to indicate negation. Examples include: * name * source_properties.a_property * security_marks.marks.marka The supported operators are: * `=` for all value types. * `\>`, `<`, `\>=`, `<=` for integer values. * `:`, meaning substring matching, for strings. The supported value types are: * string literals in quotes. * integer literals without quotes. * boolean literals `true` and `false` without quotes. For example, `source_properties.size = 100` is a valid filter string.
*/
filter?: string | null;
/**
* Required. Expression that defines what assets fields to use for grouping (including `state`). The string value should follow SQL syntax: comma separated list of fields. For example: "parent,resource_name". The following fields are supported: * resource_name * category * state * parent
*/
groupBy?: string | null;
/**
* The maximum number of results to return in a single response. Default is 10, minimum is 1, maximum is 1000.
*/
pageSize?: number | null;
/**
* The value returned by the last `GroupFindingsResponse`; indicates that this is a continuation of a prior `GroupFindings` call, and that the system should return the next page of data.
*/
pageToken?: string | null;
/**
* Time used as a reference point when filtering findings. The filter is limited to findings existing at the supplied time and their values are those at that specific time. Absence of this field will default to the API's version of NOW.
*/
readTime?: string | null;
}
/**
* Response message for group by findings.
*/
export interface Schema$GroupFindingsResponse {
/**
* Group results. There exists an element for each existing unique combination of property/values. The element contains a count for the number of times those specific property/values appear.
*/
groupByResults?: Schema$GroupResult[];
/**
* Token to retrieve the next page of results, or empty if there are no more results.
*/
nextPageToken?: string | null;
/**
* Time used for executing the groupBy request.
*/
readTime?: string | null;
}
/**
* Result containing the properties and count of a groupBy request.
*/
export interface Schema$GroupResult {
/**
* Total count of resources for the given properties.
*/
count?: string | null;
/**
* Properties matching the groupBy fields in the request.
*/
properties?: {
[key: string]: any;
} | null;
}
/**
* Represents a particular IAM binding, which captures a member's role addition, removal, or state.
*/
export interface Schema$IamBinding {
/**
* The action that was performed on a Binding.
*/
action?: string | null;
/**
* A single identity requesting access for a Cloud Platform resource, for example, "foo@google.com".
*/
member?: string | null;
/**
* Role that is assigned to "members". For example, "roles/viewer", "roles/editor", or "roles/owner".
*/
role?: string | null;
}
/**
* 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](https://en.wikipedia.org/wiki/Indicator_of_compromise).
*/
export interface Schema$Indicator {
/**
* List of domains associated to the Finding.
*/
domains?: string[] | null;
/**
* The list of IP addresses that are associated with the finding.
*/
ipAddresses?: string[] | null;
/**
* The list of matched signatures indicating that the given process is present in the environment.
*/
signatures?: Schema$ProcessSignature[];
/**
* The list of URIs associated to the Findings.
*/
uris?: string[] | null;
}
/**
* Kernel mode rootkit signatures.
*/
export interface Schema$KernelRootkit {
/**
* Rootkit name, when available.
*/
name?: string | null;
/**
* True if unexpected modifications of kernel code memory are present.
*/
unexpectedCodeModification?: boolean | null;
/**
* True if `ftrace` points are present with callbacks pointing to regions that are not in the expected kernel or module code range.
*/
unexpectedFtraceHandler?: boolean | null;
/**
* True if interrupt handlers that are are not in the expected kernel or module code regions are present.
*/
unexpectedInterruptHandler?: boolean | null;
/**
* True if kernel code pages that are not in the expected kernel or module code regions are present.
*/
unexpectedKernelCodePages?: boolean | null;
/**
* True if `kprobe` points are present with callbacks pointing to regions that are not in the expected kernel or module code range.
*/
unexpectedKprobeHandler?: boolean | null;
/**
* True if unexpected processes in the scheduler run queue are present. Such processes are in the run queue, but not in the process task list.
*/
unexpectedProcessesInRunqueue?: boolean | null;
/**
* True if unexpected modifications of kernel read-only data memory are present.
*/
unexpectedReadOnlyDataModification?: boolean | null;
/**
* True if system call handlers that are are not in the expected kernel or module code regions are present.
*/
unexpectedSystemCallHandler?: boolean | null;
}
/**
* Kubernetes-related attributes.
*/
export interface Schema$Kubernetes {
/**
* Provides information on any Kubernetes access reviews (privilege checks) relevant to the finding.
*/
accessReviews?: Schema$AccessReview[];
/**
* Provides Kubernetes role binding information for findings that involve [RoleBindings or ClusterRoleBindings](https://cloud.google.com/kubernetes-engine/docs/how-to/role-based-access-control).
*/
bindings?: Schema$GoogleCloudSecuritycenterV1Binding[];
/**
* GKE [node pools](https://cloud.google.com/kubernetes-engine/docs/concepts/node-pools) associated with the finding. This field contains node pool information for each node, when it is available.
*/
nodePools?: Schema$NodePool[];
/**
* Provides Kubernetes [node](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture#nodes) information.
*/
nodes?: Schema$Node[];
/**
* Kubernetes objects related to the finding.
*/
objects?: Schema$Object[];
/**
* Kubernetes [Pods](https://cloud.google.com/kubernetes-engine/docs/concepts/pod) associated with the finding. This field contains Pod records for each container that is owned by a Pod.
*/
pods?: Schema$Pod[];
/**
* Provides Kubernetes role information for findings that involve [Roles or ClusterRoles](https://cloud.google.com/kubernetes-engine/docs/how-to/role-based-access-control).
*/
roles?: Schema$Role[];
}
/**
* Represents a generic name-value label. A label has separate name and value fields to support filtering with the `contains()` function. For more information, see [Filtering on array-type fields](https://cloud.google.com/security-command-center/docs/how-to-api-list-findings#array-contains-filtering).
*/
export interface Schema$Label {
/**
* Name of the label.
*/
name?: string | null;
/**
* Value that corresponds to the label's name.
*/
value?: string | null;
}
/**
* Response message for listing assets.
*/
export interface Schema$ListAssetsResponse {
/**
* Assets matching the list request.
*/
listAssetsResults?: Schema$ListAssetsResult[];
/**
* Token to retrieve the next page of results, or empty if there are no more results.
*/
nextPageToken?: string | null;
/**
* Time used for executing the list request.
*/
readTime?: string | null;
/**
* The total number of assets matching the query.
*/
totalSize?: number | null;
}
/**
* Result containing the Asset and its State.
*/
export interface Schema$ListAssetsResult {
/**
* Asset matching the search request.
*/
asset?: Schema$Asset;
/**
* State of the asset.
*/
state?: string | null;
}
/**
* Response message for listing findings.
*/
export interface Schema$ListFindingsResponse {
/**
* Findings matching the list request.
*/
findings?: Schema$GoogleCloudSecuritycenterV1beta1Finding[];
/**
* Token to retrieve the next page of results, or empty if there are no more results.
*/
nextPageToken?: string | null;
/**
* Time used for executing the list request.
*/
readTime?: string | null;
/**
* The total number of findings matching the query.
*/
totalSize?: number | null;
}
/**
* The response message for Operations.ListOperations.
*/
export interface Schema$ListOperationsResponse {
/**
* The standard List next-page token.
*/
nextPageToken?: string | null;
/**
* A list of operations that matches the specified filter in the request.
*/
operations?: Schema$Operation[];
}
/**
* Response message for listing sources.
*/
export interface Schema$ListSourcesResponse {
/**
* Token to retrieve the next page of results, or empty if there are no more results.
*/
nextPageToken?: string | null;
/**
* Sources belonging to the requested parent.
*/
sources?: Schema$Source[];
}
/**
* Contains information related to the load balancer associated with the finding.
*/
export interface Schema$LoadBalancer {
/**
* The name of the load balancer associated with the finding.
*/
name?: string | null;
}
/**
* An individual entry in a log.
*/
export interface Schema$LogEntry {
/**
* An individual entry in a log stored in Cloud Logging.
*/
cloudLoggingEntry?: Schema$CloudLoggingEntry;
}
/**
* A signature corresponding to memory page hashes.
*/
export interface Schema$MemoryHashSignature {
/**
* The binary family.
*/
binaryFamily?: string | null;
/**
* The list of memory hash detections contributing to the binary family match.
*/
detections?: Schema$Detection[];
}
/**
* MITRE ATT&CK tactics and techniques related to this finding. See: https://attack.mitre.org
*/
export interface Schema$MitreAttack {
/**
* Additional MITRE ATT&CK tactics related to this finding, if any.
*/
additionalTactics?: string[] | null;
/**
* Additional MITRE ATT&CK techniques related to this finding, if any, along with any of their respective parent techniques.
*/
additionalTechniques?: string[] | null;
/**
* The MITRE ATT&CK tactic most closely represented by this finding, if any.
*/
primaryTactic?: string | null;
/**
* The MITRE ATT&CK technique most closely represented by this finding, if any. primary_techniques is a repeated field because there are multiple levels of MITRE ATT&CK techniques. If the technique most closely represented by this finding is a sub-technique (e.g. `SCANNING_IP_BLOCKS`), both the sub-technique and its parent technique(s) will be listed (e.g. `SCANNING_IP_BLOCKS`, `ACTIVE_SCANNING`).
*/
primaryTechniques?: string[] | null;
/**
* The MITRE ATT&CK version referenced by the above fields. E.g. "8".
*/
version?: string | null;
}
/**
* Kubernetes nodes associated with the finding.
*/
export interface Schema$Node {
/**
* [Full resource name](https://google.aip.dev/122#full-resource-names) of the Compute Engine VM running the cluster node.
*/
name?: string | null;
}
/**
* Provides GKE node pool information.
*/
export interface Schema$NodePool {
/**
* Kubernetes node pool name.
*/
name?: string | null;
/**
* Nodes associated with the finding.
*/
nodes?: Schema$Node[];
}
/**
* Kubernetes object related to the finding, uniquely identified by GKNN. Used if the object Kind is not one of Pod, Node, NodePool, Binding, or AccessReview.
*/
export interface Schema$Object {
/**
* Pod containers associated with this finding, if any.
*/
containers?: Schema$Container[];
/**
* Kubernetes object group, such as "policy.k8s.io/v1".
*/
group?: string | null;
/**
* Kubernetes object kind, such as "Namespace".
*/
kind?: string | null;
/**
* Kubernetes object name. For details see https://kubernetes.io/docs/concepts/overview/working-with-objects/names/.
*/
name?: string | null;
/**
* Kubernetes object namespace. Must be a valid DNS label. Named "ns" to avoid collision with C++ namespace keyword. For details see https://kubernetes.io/docs/tasks/administer-cluster/namespaces/.
*/
ns?: string | null;
}
/**
* This resource represents a long-running operation that is the result of a network API call.
*/
export interface Schema$Operation {
/**
* If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
*/
done?: boolean | null;
/**
* The error result of the operation in case of failure or cancellation.
*/
error?: Schema$Status;
/**
* Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
*/
metadata?: {
[key: string]: any;
} | null;
/**
* The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id\}`.
*/
name?: string | null;
/**
* The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
*/
response?: {
[key: string]: any;
} | null;
}
/**
* User specified settings that are attached to the Security Command Center organization.
*/
export interface Schema$OrganizationSettings {
/**
* The configuration used for Asset Discovery runs.
*/
assetDiscoveryConfig?: Schema$AssetDiscoveryConfig;
/**
* A flag that indicates if Asset Discovery should be enabled. If the flag is set to `true`, then discovery of assets will occur. If it is set to `false`, all historical assets will remain, but discovery of future assets will not occur.
*/
enableAssetDiscovery?: boolean | null;
/**
* The relative resource name of the settings. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/{organization_id\}/organizationSettings".
*/
name?: string | null;
}
/**
* Contains information about the org policies associated with the finding.
*/
export interface Schema$OrgPolicy {
/**
* The resource name of the org policy. Example: "organizations/{organization_id\}/policies/{constraint_name\}"
*/
name?: string | null;
}
/**
* Package is a generic definition of a package.
*/
export interface Schema$Package {
/**
* The CPE URI where the vulnerability was detected.
*/
cpeUri?: string | null;
/**
* The name of the package where the vulnerability was detected.
*/
packageName?: string | null;
/**
* Type of package, for example, os, maven, or go.
*/
packageType?: string | null;
/**
* The version of the package.
*/
packageVersion?: string | null;
}
/**
* A Kubernetes Pod.
*/
export interface Schema$Pod {
/**
* Pod containers associated with this finding, if any.
*/
containers?: Schema$Container[];
/**
* Pod labels. For Kubernetes containers, these are applied to the container.
*/
labels?: Schema$Label[];
/**
* Kubernetes Pod name.
*/
name?: string | null;
/**
* Kubernetes Pod namespace.
*/
ns?: string | null;
}
/**
* An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** ``` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] \}, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", \} \} ], "etag": "BwWWja0YfJA=", "version": 3 \} ``` **YAML example:** ``` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).
*/
export interface Schema$Policy {
/**
* Specifies cloud audit logging configuration for this policy.
*/
auditConfigs?: Schema$AuditConfig[];
/**
* Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:alice@example.com`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`.
*/
bindings?: Schema$Binding[];
/**
* `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.
*/
etag?: string | null;
/**
* Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
*/
version?: number | null;
}
/**
* The policy field that violates the deployed posture and its expected and detected values.
*/
export interface Schema$PolicyDriftDetails {
/**
* The detected value that violates the deployed posture, for example, `false` or `allowed_values={"projects/22831892"\}`.
*/
detectedValue?: string | null;
/**
* The value of this field that was configured in a posture, for example, `true` or `allowed_values={"projects/29831892"\}`.
*/
expectedValue?: string | null;
/**
* The name of the updated field, for example constraint.implementation.policy_rules[0].enforce
*/
field?: string | null;
}
/**
* Represents an operating system process.
*/
export interface Schema$Process {
/**
* Process arguments as JSON encoded strings.
*/
args?: string[] | null;
/**
* True if `args` is incomplete.
*/
argumentsTruncated?: boolean | null;
/**
* File information for the process executable.
*/
binary?: Schema$File;
/**
* Process environment variables.
*/
envVariables?: Schema$EnvironmentVariable[];
/**
* True if `env_variables` is incomplete.
*/
envVariablesTruncated?: boolean | null;
/**
* File information for libraries loaded by the process.
*/
libraries?: Schema$File[];
/**
* The process name, as displayed in utilities like `top` and `ps`. This name can be accessed through `/proc/[pid]/comm` and changed with `prctl(PR_SET_NAME)`.
*/
name?: string | null;
/**
* The parent process ID.
*/
parentPid?: string | null;
/**
* The process ID.
*/
pid?: string | null;
/**
* When the process represents the invocation of a script, `binary` provides information about the interpreter, while `script` provides information about the script file provided to the interpreter.
*/
script?: Schema$File;
}
/**
* Indicates what signature matched this process.
*/
export interface Schema$ProcessSignature {
/**
* Signature indicating that a binary family was matched.
*/
memoryHashSignature?: Schema$MemoryHashSignature;
/**
* Describes the type of resource associated with the signature.
*/
signatureType?: string | null;
/**
* Signature indicating that a YARA rule was matched.
*/
yaraRuleSignature?: Schema$YaraRuleSignature;
}
/**
* Additional Links
*/
export interface Schema$Reference {
/**
* Source of the reference e.g. NVD
*/
source?: string | null;
/**
* Uri for the mentioned source e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527.
*/
uri?: string | null;
}
/**
* Kubernetes Role or ClusterRole.
*/
export interface Schema$Role {
/**
* Role type.
*/
kind?: string | null;
/**
* Role name.
*/
name?: string | null;
/**
* Role namespace.
*/
ns?: string | null;
}
/**
* Request message for running asset discovery for an organization.
*/
export interface Schema$RunAssetDiscoveryRequest {
}
/**
* SecurityBulletin are notifications of vulnerabilities of Google products.
*/
export interface Schema$SecurityBulletin {
/**
* ID of the bulletin corresponding to the vulnerability.
*/
bulletinId?: string | null;
/**
* Submission time of this Security Bulletin.
*/
submissionTime?: string | null;
/**
* This represents a version that the cluster receiving this notification should be upgraded to, based on its current version. For example, 1.15.0
*/
suggestedUpgradeVersion?: string | null;
}
/**
* Security Command Center managed properties. These properties are managed by Security Command Center and cannot be modified by the user.
*/
export interface Schema$SecurityCenterProperties {
/**
* Immutable. The full resource name of the Google Cloud resource this asset represents. This field is immutable after create time. See: https://cloud.google.com/apis/design/resource_names#full_resource_name
*/
resourceName?: string | null;
/**
* Owners of the Google Cloud resource.
*/
resourceOwners?: string[] | null;
/**
* The full resource name of the immediate parent of the resource. See: https://cloud.google.com/apis/design/resource_names#full_resource_name
*/
resourceParent?: string | null;
/**
* The full resource name of the project the resource belongs to. See: https://cloud.google.com/apis/design/resource_names#full_resource_name
*/
resourceProject?: string | null;
/**
* The type of the Google Cloud resource. Examples include: APPLICATION, PROJECT, and ORGANIZATION. This is a case insensitive field defined by Security Command Center and/or the producer of the resource and is immutable after create time.
*/
resourceType?: string | null;
}
/**
* User specified security marks that are attached to the parent Security Command Center resource. Security marks are scoped within a Security Command Center organization -- they can be modified and viewed by all users who have proper permissions on the organization.
*/
export interface Schema$SecurityMarks {
/**
* The canonical name of the marks. Examples: "organizations/{organization_id\}/assets/{asset_id\}/securityMarks" "folders/{folder_id\}/assets/{asset_id\}/securityMarks" "projects/{project_number\}/assets/{asset_id\}/securityMarks" "organizations/{organization_id\}/sources/{source_id\}/findings/{finding_id\}/securityMarks" "folders/{folder_id\}/sources/{source_id\}/findings/{finding_id\}/securityMarks" "projects/{project_number\}/sources/{source_id\}/findings/{finding_id\}/securityMarks"
*/
canonicalName?: string | null;
/**
* Mutable user specified security marks belonging to the parent resource. Constraints are as follows: * Keys and values are treated as case insensitive * Keys must be between 1 - 256 characters (inclusive) * Keys must be letters, numbers, underscores, or dashes * Values have leading and trailing whitespace trimmed, remaining characters must be between 1 - 4096 characters (inclusive)
*/
marks?: {
[key: string]: string;
} | null;
/**
* 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".
*/
name?: string | null;
}
/**
* Represents a posture that is deployed on Google Cloud by the Security Command Center Posture Management service. A posture contains one or more policy sets. A policy set is a group of policies that enforce a set of security rules on Google Cloud.
*/
export interface Schema$SecurityPosture {
/**
* The name of the updated policy, for example, `projects/{project_id\}/policies/{constraint_name\}`.
*/
changedPolicy?: string | null;
/**
* Name of the posture, for example, `CIS-Posture`.
*/
name?: string | null;
/**
* The ID of the updated policy, for example, `compute-policy-1`.
*/
policy?: string | null;
/**
* The details about a change in an updated policy that violates the deployed posture.
*/
policyDriftDetails?: Schema$PolicyDriftDetails[];
/**
* The name of the updated policyset, for example, `cis-policyset`.
*/
policySet?: string | null;
/**
* The name of the posture deployment, for example, `organizations/{org_id\}/posturedeployments/{posture_deployment_id\}`.
*/
postureDeployment?: string | null;
/**
* The project, folder, or organization on which the posture is deployed, for example, `projects/{project_number\}`.
*/
postureDeploymentResource?: string | null;
/**
* The version of the posture, for example, `c7cfa2a8`.
*/
revisionId?: string | null;
}
/**
* Identity delegation history of an authenticated service account.
*/
export interface Schema$ServiceAccountDelegationInfo {
/**
* The email address of a Google account.
*/
principalEmail?: string | null;
/**
* A string representing the principal_subject associated with the identity. As compared to `principal_email`, supports principals that aren't associated with email addresses, such as third party principals. For most identities, the format will be `principal://iam.googleapis.com/{identity pool name\}/subjects/{subject\}` except for some GKE identities (GKE_WORKLOAD, FREEFORM, GKE_HUB_WORKLOAD) that are still in the legacy format `serviceAccount:{identity pool name\}[{subject\}]`
*/
principalSubject?: string | null;
}
/**
* Request message for updating a finding's state.
*/
export interface Schema$SetFindingStateRequest {
/**
* Required. The time at which the updated state takes effect.
*/
startTime?: string | null;
/**
* Required. The desired State of the finding.
*/
state?: string | null;
}
/**
* Request message for `SetIamPolicy` method.
*/
export interface Schema$SetIamPolicyRequest {
/**
* REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud services (such as Projects) might reject them.
*/
policy?: Schema$Policy;
/**
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only the fields in the mask will be modified. If no mask is provided, the following default mask is used: `paths: "bindings, etag"`
*/
updateMask?: string | null;
}
/**
* Security Command Center finding source. A finding source is an entity or a mechanism that can produce a finding. A source is like a container of findings that come from the same scanner, logger, monitor, etc.
*/
export interface Schema$Source {
/**
* The description of the source (max of 1024 characters). Example: "Web Security Scanner is a web security scanner for common vulnerabilities in App Engine applications. It can automatically scan and detect four common vulnerabilities, including cross-site-scripting (XSS), Flash injection, mixed content (HTTP in HTTPS), and outdated/insecure libraries."
*/
description?: string | null;
/**
* The source's display name. A source's display name must be unique amongst its siblings, for example, two sources with the same parent can't share the same display name. The display name must have a length between 1 and 64 characters (inclusive).
*/
displayName?: string | null;
/**
* The relative resource name of this source. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/{organization_id\}/sources/{source_id\}"
*/
name?: string | null;
}
/**
* The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).
*/
export interface Schema$Status {
/**
* The status code, which should be an enum value of google.rpc.Code.
*/
code?: number | null;
/**
* A list of messages that carry the error details. There is a common set of message types for APIs to use.
*/
details?: Array<{
[key: string]: any;
}> | null;
/**
* A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
*/
message?: string | null;
}
/**
* Represents a Kubernetes subject.
*/
export interface Schema$Subject {
/**
* Authentication type for the subject.
*/
kind?: string | null;
/**
* Name for the subject.
*/
name?: string | null;
/**
* Namespace for the subject.
*/
ns?: string | null;
}
/**
* Request message for `TestIamPermissions` method.
*/
export interface Schema$TestIamPermissionsRequest {
/**
* The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
*/
permissions?: string[] | null;
}
/**
* Response message for `TestIamPermissions` method.
*/
export interface Schema$TestIamPermissionsResponse {
/**
* A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
*/
permissions?: string[] | null;
}
/**
* Information about the ticket, if any, that is being used to track the resolution of the issue that is identified by this finding.
*/
export interface Schema$TicketInfo {
/**
* The assignee of the ticket in the ticket system.
*/
assignee?: string | null;
/**
* The description of the ticket in the ticket system.
*/
description?: string | null;
/**
* The identifier of the ticket in the ticket system.
*/
id?: string | null;
/**
* The latest status of the ticket, as reported by the ticket system.
*/
status?: string | null;
/**
* The time when the ticket was last updated, as reported by the ticket system.
*/
updateTime?: string | null;
/**
* The link to the ticket in the ticket system.
*/
uri?: string | null;
}
/**
* Refers to common vulnerability fields e.g. cve, cvss, cwe etc.
*/
export interface Schema$Vulnerability {
/**
* CVE stands for Common Vulnerabilities and Exposures (https://cve.mitre.org/about/)
*/
cve?: Schema$Cve;
/**
* The fixed package is relevant to the finding.
*/
fixedPackage?: Schema$Package;
/**
* The offending package is relevant to the finding.
*/
offendingPackage?: Schema$Package;
/**
* The security bulletin is relevant to this finding.
*/
securityBulletin?: Schema$SecurityBulletin;
}
/**
* A signature corresponding to a YARA rule.
*/
export interface Schema$YaraRuleSignature {
/**
* The name of the YARA rule.
*/
yaraRule?: string | null;
}
export class Resource$Organizations {
context: APIRequestContext;
assets: Resource$Organizations$Assets;
operations: Resource$Organizations$Operations;
sources: Resource$Organizations$Sources;
constructor(context: APIRequestContext);
/**
* Gets the settings for an organization.
*
* @param params - Parameters for request
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
* @param callback - Optional callback that handles the response.
* @returns A promise if used with async/await, or void if used with a callback.
*/
getOrganizationSettings(params: Params$Resource$Organizations$Getorganizationsettings, options: StreamMethodOptions): GaxiosPromise<Readable>;
getOrganizationSettings(params?: Params$Resource$Organizations$Getorganizationsettings, options?: MethodOptions): GaxiosPromise<Schema$OrganizationSettings>;
getOrganizationSettings(params: Params$Resource$Organizations$Getorganizationsettings, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
getOrganizationSettings(params: Params$Resource$Organizations$Getorganizationsettings, options: MethodOptions | BodyResponseCallback<Schema$OrganizationSettings>, callback: BodyResponseCallback<Schema$OrganizationSettings>): void;
getOrganizationSettings(params: Params$Resource$Organizations$Getorganizationsettings, callback: BodyResponseCallback<Schema$OrganizationSettings>): void;
getOrganizationSettings(callback: BodyResponseCallback<Schema$OrganizationSettings>): void;
/**
* Updates an organization's settings.
*
* @param params - Parameters for request
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
* @param callback - Optional callback that handles the response.
* @returns A promise if used with async/await, or void if used with a callback.
*/
updateOrganizationSettings(params: Params$Resource$Organizations$Updateorganizationsettings, options: StreamMethodOptions): GaxiosPromise<Readable>;
updateOrganizationSettings(params?: Params$Resource$Organizations$Updateorganizationsettings, options?: MethodOptions): GaxiosPromise<Schema$OrganizationSettings>;
updateOrganizationSettings(params: Params$Resource$Organizations$Updateorganizationsettings, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
updateOrganizationSettings(params: Params$Resource$Organizations$Updateorganizationsettings, options: MethodOptions | BodyResponseCallback<Schema$OrganizationSettings>, callback: BodyResponseCallback<Schema$OrganizationSettings>): void;
updateOrganizationSettings(params: Params$Resource$Organizations$Updateorganizationsettings, callback: BodyResponseCallback<Schema$OrganizationSettings>): void;
updateOrganizationSettings(callback: BodyResponseCallback<Schema$OrganizationSettings>): void;
}
export interface Params$Resource$Organizations$Getorganizationsettings extends StandardParameters {
/**
* Required. Name of the organization to get organization settings for. Its format is "organizations/[organization_id]/organizationSettings".
*/
name?: string;
}
export interface Params$Resource$Organizations$Updateorganizationsettings extends StandardParameters {
/**
* The relative resource name of the settings. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/{organization_id\}/organizationSettings".
*/
name?: string;
/**
* The FieldMask to use when updating the settings resource.
*/
updateMask?: string;
/**
* Request body metadata
*/
requestBody?: Schema$OrganizationSettings;
}
export class Resource$Organizations$Assets {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* Filters an organization's assets and groups them by their specified properties.
*
* @param params - Parameters for request
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
* @param callback - Optional callback that handles the response.
* @returns A promise if used with async/await, or void if used with a callback.
*/
group(params: Params$Resource$Organizations$Assets$Group, options: StreamMethodOptions): GaxiosPromise<Readable>;
group(params?: Params$Resource$Organizations$Assets$Group, options?: MethodOptions): GaxiosPromise<Schema$GroupAssetsResponse>;
group(params: Params$Resource$Organizations$Assets$Group, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
group(params: Params$Resource$Organizations$Assets$Group, options: MethodOptions | BodyResponseCallback<Schema$GroupAssetsResponse>, callback: BodyResponseCallback<Schema$GroupAssetsResponse>): void;
group(params: Params$Resource$Organizations$Assets$Group, callback: BodyResponseCallback<Schema$GroupAssetsResponse>): void;
group(callback: BodyResponseCallback<Schema$GroupAssetsResponse>): void;
/**
* Lists an organization's assets.
*
* @param params - Parameters for request
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
* @param callback - Optional callback that handles the response.
* @returns A promise if used with async/await, or void if used with a callback.
*/
list(params: Params$Resource$Organizations$Assets$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
list(params?: Params$Resource$Organizations$Assets$List, options?: MethodOptions): GaxiosPromise<Schema$ListAssetsResponse>;
list(params: Params$Resource$Organizations$Assets$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
list(params: Params$Resource$Organizations$Assets$List, options: MethodOptions | BodyResponseCallback<Schema$ListAssetsResponse>, callback: BodyResponseCallback<Schema$ListAssetsResponse>): void;
list(params: Params$Resource$Organizations$Assets$List, callback: BodyResponseCallback<Schema$ListAssetsResponse>): void;
list(callback: BodyResponseCallback<Schema$ListAssetsResponse>): void;
/**
* Runs asset discovery. The discovery is tracked with a long-running operation. This API can only be called with limited frequency for an organization. If it is called too frequently the caller will receive a TOO_MANY_REQUESTS error.
*
* @param params - Parameters for request
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
* @param callback - Optional callback that handles the response.
* @returns A promise if used with async/await, or void if used with a callback.
*/
runDiscovery(params: Params$Resource$Organizations$Assets$Rundiscovery, options: StreamMethodOptions): GaxiosPromise<Readable>;
runDiscovery(params?: Params$Resource$Organizations$Assets$Rundiscovery, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
runDiscovery(params: Params$Resource$Organizations$Assets$Rundiscovery, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
runDiscovery(params: Params$Resource$Organizations$Assets$Rundiscovery, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
runDiscovery(params: Params$Resource$Organizations$Assets$Rundiscovery, callback: BodyResponseCallback<Schema$Operation>): void;
runDiscovery(callback: BodyResponseCallback<Schema$Operation>): void;
/**
* Updates security marks.
*
* @param params - Parameters for request
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
* @param callback - Optional callback that handles the response.
* @returns A promise if used with async/await, or void if used with a callback.
*/
updateSecurityMarks(params: Params$Resource$Organizations$Assets$Updatesecuritymarks, options: StreamMethodOptions): GaxiosPromise<Readable>;
updateSecurityMarks(params?: Params$Resource$Organizations$Assets$Updatesecuritymarks, options?: MethodOptions): GaxiosPromise<Schema$GoogleCloudSecuritycenterV1beta1SecurityMarks>;
updateSecurityMarks(params: Params$Resource$Organizations$Assets$Updatesecuritymarks, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
updateSecurityMarks(params: Params$Resource$Organizations$Assets$Updatesecuritymarks, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1beta1SecurityMarks>, callback: BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1beta1SecurityMarks>): void;
updateSecurityMarks(params: Params$Resource$Organizations$Assets$Updatesecuritymarks, callback: BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1beta1SecurityMarks>): void;
updateSecurityMarks(callback: BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1beta1SecurityMarks>): void;
}
export interface Params$Resource$Organizations$Assets$Group extends StandardParameters {
/**
* Required. Name of the organization to groupBy. Its format is "organizations/[organization_id]".
*/
parent?: string;
/**
* Request body metadata
*/
requestBody?: Schema$GroupAssetsRequest;
}
export interface Params$Resource$Organizations$Assets$List extends StandardParameters {
/**
* When compare_duration is set, the ListAssetResult's "state" attribute is updated to indicate whether the asset was added, removed, or remained present during the compare_duration period of time that precedes the read_time. This is the time between (read_time - compare_duration) and read_time. The state value is derived based on the presence of the asset at the two points in time. Intermediate state changes between the two times don't affect the result. For example, the results aren't affected if the asset is removed and re-created again. Possible "state" values when compare_duration is specified: * "ADDED": indicates that the asset was not present before compare_duration, but present at read_time. * "REMOVED": indicates that the asset was present at the start of compare_duration, but not present at read_time. * "ACTIVE": indicates that the asset was present at both the start and the end of the time period defined by compare_duration and read_time. If compare_duration is not specified, then the only possible state is "UNUSED", which indicates that the asset is present at read_time.
*/
compareDuration?: string;
/**
* Optional. A field mask to specify the ListAssetsResult fields to be listed in the response. An empty field mask will list all fields.
*/
fieldMask?: string;
/**
* Expression that defines the filter to apply across assets. The expression is a list of zero or more restrictions combined via logical operators `AND` and `OR`. Parentheses are not supported, and `OR` has higher precedence than `AND`. Restrictions have the form ` ` and may have a `-` character in front of them to indicate negation. The fields map to those defined in the Asset resource. Examples include: * name * security_center_properties.resource_name * resource_properties.a_property * security_marks.marks.marka The supported operators are: * `=` for all value types. * `\>`, `<`, `\>=`, `<=` for integer values. * `:`, meaning substring matching, for strings. The supported value types are: * string literals in quotes. * integer literals without quotes. * boolean literals `true` and `false` without quotes. For example, `resource_properties.size = 100` is a valid filter string.
*/
filter?: string;
/**
* Expression that defines what fields and order to use for sorting. The string value should follow SQL syntax: comma separated list of fields. For example: "name,resource_properties.a_property". The default sorting order is ascending. To specify descending order for a field, a suffix " desc" should be appended to the field name. For example: "name desc,resource_properties.a_property". Redundant space characters in the syntax are insignificant. "name desc,resource_properties.a_property" and " name desc , resource_properties.a_property " are equivalent.
*/
orderBy?: string;
/**
* The maximum number of results to return in a single response. Default is 10, minimum is 1, maximum is 1000.
*/
pageSize?: number;
/**
* The value returned by the last `ListAssetsResponse`; indicates that this is a continuation of a prior `ListAssets` call, and that the system should return the next page of data.
*/
pageToken?: string;
/**
* Required. Name of the organization assets should belong to. Its format is "organizations/[organization_id]".
*/
parent?: string;
/**
* Time used as a reference point when filtering assets. The filter is limited to assets existing at the supplied time and their values are those at that specific time. Absence of this field will default to the API's version of NOW.
*/
readTime?: string;
}
export interface Params$Resource$Organizations$Assets$Rundiscovery extends StandardParameters {
/**
* Required. Name of the organization to run asset discovery for. Its format is "organizations/[organization_id]".
*/
parent?: string;
/**
* Request body metadata
*/
requestBody?: Schema$RunAssetDiscoveryRequest;
}
export interface Params$Resource$Organizations$Assets$Updatesecuritymarks extends StandardParameters {
/**
* 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".
*/
name?: string;
/**
* The time at which the updated SecurityMarks take effect.
*/
startTime?: string;
/**
* The FieldMask to use when updating the security marks resource.
*/
updateMask?: string;
/**
* Request body metadata
*/
requestBody?: Schema$GoogleCloudSecuritycenterV1beta1SecurityMarks;
}
export class Resource$Organizations$Operations {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
*
* @param params - Parameters for request
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
* @param callback - Optional callback that handles the response.
* @returns A promise if used with async/await, or void if used with a callback.
*/
cancel(params: Params$Resource$Organizations$Operations$Cancel, options: StreamMethodOptions): GaxiosPromise<Readable>;
cancel(params?: Params$Resource$Organizations$Operations$Cancel, options?: MethodOptions): GaxiosPromise<Schema$Empty>;
cancel(params: Params$Resource$Organizations$Operations$Cancel, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
cancel(params: Params$Resource$Organizations$Operations$Cancel, options: MethodOptions | BodyResponseCallback<Schema$Empty>, callback: BodyResponseCallback<Schema$Empty>): void;
cancel(params: Params$Resource$Organizations$Operations$Cancel, callback: BodyResponseCallback<Schema$Empty>): void;
cancel(callback: BodyResponseCallback<Schema$Empty>): void;
/**
* Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
*
* @param params - Parameters for request
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
* @param callback - Optional callback that handles the response.
* @returns A promise if used with async/await, or void if used with a callback.
*/
delete(params: Params$Resource$Organizations$Operations$Delete, options: StreamMethodOptions): GaxiosPromise<Readable>;
delete(params?: Params$Resource$Organizations$Operations$Delete, options?: MethodOptions): GaxiosPromise<Schema$Empty>;
delete(params: Params$Resource$Organizations$Operations$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
delete(params: Params$Resource$Organizations$Operations$Delete, options: MethodOptions | BodyResponseCallback<Schema$Empty>, callback: BodyResponseCallback<Schema$Empty>): void;
delete(params: Params$Resource$Organizations$Operations$Delete, callback: BodyResponseCallback<Schema$Empty>): void;
delete(callback: BodyResponseCallback<Schema$Empty>): void;
/**
* Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
*
* @param params - Parameters for request
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
* @param callback - Optional callback that handles the response.
* @returns A promise if used with async/await, or void if used with a callback.
*/
get(params: Params$Resource$Organizations$Operations$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
get(params?: Params$Resource$Organizations$Operations$Get, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
get(params: Params$Resource$Organizations$Operations$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
get(params: Params$Resource$Organizations$Operations$Get, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
get(params: Params$Resource$Organizations$Operations$Get, callback: BodyResponseCallback<Schema$Operation>): void;
get(callback: BodyResponseCallback<Schema$Operation>): void;
/**
* Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.
*
* @param params - Parameters for request
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
* @param callback - Optional callback that handles the response.
* @returns A promise if used with async/await, or void if used with a callback.
*/
list(params: Params$Resource$Organizations$Operations$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
list(params?: Params$Resource$Organizations$Operations$List, options?: MethodOptions): GaxiosPromise<Schema$ListOperationsResponse>;
list(params: Params$Resource$Organizations$Operations$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
list(params: Params$Resource$Organizations$Operations$List, options: MethodOptions | BodyResponseCallback<Schema$ListOperationsResponse>, callback: BodyResponseCallback<Schema$ListOperationsResponse>): void;
list(params: Params$Resource$Organizations$Operations$List, callback: BodyResponseCallback<Schema$ListOperationsResponse>): void;
list(callback: BodyResponseCallback<Schema$ListOperationsResponse>): void;
}
export interface Params$Resource$Organizations$Operations$Cancel extends StandardParameters {
/**
* The name of the operation resource to be cancelled.
*/
name?: string;
/**
* Request body metadata
*/
requestBody?: Schema$CancelOperationRequest;
}
export interface Params$Resource$Organizations$Operations$Delete extends StandardParameters {
/**
* The name of the operation resource to be deleted.
*/
name?: string;
}
export interface Params$Resource$Organizations$Operations$Get extends StandardParameters {
/**
* The name of the operation resource.
*/
name?: string;
}
export interface Params$Resource$Organizations$Operations$List extends StandardParameters {
/**
* The standard list filter.
*/
filter?: string;
/**
* The name of the operation's parent resource.
*/
name?: string;
/**
* The standard list page size.
*/
pageSize?: number;
/**
* The standard list page token.
*/
pageToken?: string;
}
export class Resource$Organizations$Sources {
context: APIRequestContext;
findings: Resource$Organizations$Sources$Findings;
constructor(context: APIRequestContext);
/**
* Creates a source.
*
* @param params - Parameters for request
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
* @param callback - Optional callback that handles the response.
* @returns A promise if used with async/await, or void if used with a callback.
*/
create(params: Params$Resource$Organizations$Sources$Create, options: StreamMethodOptions): GaxiosPromise<Readable>;
create(params?: Params$Resource$Organizations$Sources$Create, options?: MethodOptions): GaxiosPromise<Schema$Source>;
create(params: Params$Resource$Organizations$Sources$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
create(params: Params$Resource$Organizations$Sources$Create, options: MethodOptions | BodyResponseCallback<Schema$Source>, callback: BodyResponseCallback<Schema$Source>): void;
create(params: Params$Resource$Organizations$Sources$Create, callback: BodyResponseCallback<Schema$Source>): void;
create(callback: BodyResponseCallback<Schema$Source>): void;
/**
* Gets a source.
*
* @param params - Parameters for request
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
* @param callback - Optional callback that handles the response.
* @returns A promise if used with async/await, or void if used with a callback.
*/
get(params: Params$Resource$Organizations$Sources$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
get(params?: Params$Resource$Organizations$Sources$Get, options?: MethodOptions): GaxiosPromise<Schema$Source>;
get(params: Params$Resource$Organizations$Sources$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
get(params: Params$Resource$Organizations$Sources$Get, options: MethodOptions | BodyResponseCallback<Schema$Source>, callback: BodyResponseCallback<Schema$Source>): void;
get(params: Params$Resource$Organizations$Sources$Get, callback: BodyResponseCallback<Schema$Source>): void;
get(callback: BodyResponseCallback<Schema$Source>): void;
/**
* Gets the access control policy on the specified Source.
*
* @param params - Parameters for request
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
* @param callback - Optional callback that handles the response.
* @returns A promise if used with async/await, or void if used with a callback.
*/
getIamPolicy(params: Params$Resource$Organizations$Sources$Getiampolicy, options: StreamMethodOptions): GaxiosPromise<Readable>;
getIamPolicy(params?: Params$Resource$Organizations$Sources$Getiampolicy, options?: MethodOptions): GaxiosPromise<Schema$Policy>;
getIamPolicy(params: Params$Resource$Organizations$Sources$Getiampolicy, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
getIamPolicy(params: Params$Resource$Organizations$Sources$Getiampolicy, options: MethodOptions | BodyResponseCallback<Schema$Policy>, callback: BodyResponseCallback<Schema$Policy>): void;
getIamPolicy(params: Params$Resource$Organizations$Sources$Getiampolicy, callback: BodyResponseCallback<Schema$Policy>): void;
getIamPolicy(callback: BodyResponseCallback<Schema$Policy>): void;
/**
* Lists all sources belonging to an organization.
*
* @param params - Parameters for request
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
* @param callback - Optional callback that handles the response.
* @returns A promise if used with async/await, or void if used with a callback.
*/
list(params: Params$Resource$Organizations$Sources$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
list(params?: Params$Resource$Organizations$Sources$List, options?: MethodOptions): GaxiosPromise<Schema$ListSourcesResponse>;
list(params: Params$Resource$Organizations$Sources$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
list(params: Params$Resource$Organizations$Sources$List, options: MethodOptions | BodyResponseCallback<Schema$ListSourcesResponse>, callback: BodyResponseCallback<Schema$ListSourcesResponse>): void;
list(params: Params$Resource$Organizations$Sources$List, callback: BodyResponseCallback<Schema$ListSourcesResponse>): void;
list(callback: BodyResponseCallback<Schema$ListSourcesResponse>): void;
/**
* Updates a source.
*
* @param params - Parameters for request
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
* @param callback - Optional callback that handles the response.
* @returns A promise if used with async/await, or void if used with a callback.
*/
patch(params: Params$Resource$Organizations$Sources$Patch, options: StreamMethodOptions): GaxiosPromise<Readable>;
patch(params?: Params$Resource$Organizations$Sources$Patch, options?: MethodOptions): GaxiosPromise<Schema$Source>;
patch(params: Params$Resource$Organizations$Sources$Patch, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
patch(params: Params$Resource$Organizations$Sources$Patch, options: MethodOptions | BodyResponseCallback<Schema$Source>, callback: BodyResponseCallback<Schema$Source>): void;
patch(params: Params$Resource$Organizations$Sources$Patch, callback: BodyResponseCallback<Schema$Source>): void;
patch(callback: BodyResponseCallback<Schema$Source>): void;
/**
* Sets the access control policy on the specified Source.
*
* @param params - Parameters for request
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
* @param callback - Optional callback that handles the response.
* @returns A promise if used with async/await, or void if used with a callback.
*/
setIamPolicy(params: Params$Resource$Organizations$Sources$Setiampolicy, options: StreamMethodOptions): GaxiosPromise<Readable>;
setIamPolicy(params?: Params$Resource$Organizations$Sources$Setiampolicy, options?: MethodOptions): GaxiosPromise<Schema$Policy>;
setIamPolicy(params: Params$Resource$Organizations$Sources$Setiampolicy, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
setIamPolicy(params: Params$Resource$Organizations$Sources$Setiampolicy, options: MethodOptions | BodyResponseCallback<Schema$Policy>, callback: BodyResponseCallback<Schema$Policy>): void;
setIamPolicy(params: Params$Resource$Organizations$Sources$Setiampolicy, callback: BodyResponseCallback<Schema$Policy>): void;
setIamPolicy(callback: BodyResponseCallback<Schema$Policy>): void;
/**
* Returns the permissions that a caller has on the specified source.
*
* @param params - Parameters for request
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
* @param callback - Optional callback that handles the response.
* @returns A promise if used with async/await, or void if used with a callback.
*/
testIamPermissions(params: Params$Resource$Organizations$Sources$Testiampermissions, options: StreamMethodOptions): GaxiosPromise<Readable>;
testIamPermissions(params?: Params$Resource$Organizations$Sources$Testiampermissions, options?: MethodOptions): GaxiosPromise<Schema$TestIamPermissionsResponse>;
testIamPermissions(params: Params$Resource$Organizations$Sources$Testiampermissions, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
testIamPermissions(params: Params$Resource$Organizations$Sources$Testiampermissions, options: MethodOptions | BodyResponseCallback<Schema$TestIamPermissionsResponse>, callback: BodyResponseCallback<Schema$TestIamPermissionsResponse>): void;
testIamPermissions(params: Params$Resource$Organizations$Sources$Testiampermissions, callback: BodyResponseCallback<Schema$TestIamPermissionsResponse>): void;
testIamPermissions(callback: BodyResponseCallback<Schema$TestIamPermissionsResponse>): void;
}
export interface Params$Resource$Organizations$Sources$Create extends StandardParameters {
/**
* Required. Resource name of the new source's parent. Its format should be "organizations/[organization_id]".
*/
parent?: string;
/**
* Request body metadata
*/
requestBody?: Schema$Source;
}
export interface Params$Resource$Organizations$Sources$Get extends StandardParameters {
/**
* Required. Relative resource name of the source. Its format is "organizations/[organization_id]/source/[source_id]".
*/
name?: string;
}
export interface Params$Resource$Organizations$Sources$Getiampolicy extends StandardParameters {
/**
* REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
*/
resource?: string;
/**
* Request body metadata
*/
requestBody?: Schema$GetIamPolicyRequest;
}
export interface Params$Resource$Organizations$Sources$List extends StandardParameters {
/**
* The maximum number of results to return in a single response. Default is 10, minimum is 1, maximum is 1000.
*/
pageSize?: number;
/**
* The value returned by the last `ListSourcesResponse`; indicates that this is a continuation of a prior `ListSources` call, and that the system should return the next page of data.
*/
pageToken?: string;
/**
* Required. Resource name of the parent of sources to list. Its format should be "organizations/[organization_id]".
*/
parent?: string;
}
export interface Params$Resource$Organizations$Sources$Patch extends StandardParameters {
/**
* The relative resource name of this source. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/{organization_id\}/sources/{source_id\}"
*/
name?: string;
/**
* The FieldMask to use when updating the source resource.
*/
updateMask?: string;
/**
* Request body metadata
*/
requestBody?: Schema$Source;
}
export interface Params$Resource$Organizations$Sources$Setiampolicy extends StandardParameters {
/**
* REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
*/
resource?: string;
/**
* Request body metadata
*/
requestBody?: Schema$SetIamPolicyRequest;
}
export interface Params$Resource$Organizations$Sources$Testiampermissions extends StandardParameters {
/**
* REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
*/
resource?: string;
/**
* Request body metadata
*/
requestBody?: Schema$TestIamPermissionsRequest;
}
export class Resource$Organizations$Sources$Findings {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* Creates a finding. The corresponding source must exist for finding creation to succeed.
*
* @param params - Parameters for request
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
* @param callback - Optional callback that handles the response.
* @returns A promise if used with async/await, or void if used with a callback.
*/
create(params: Params$Resource$Organizations$Sources$Findings$Create, options: StreamMethodOptions): GaxiosPromise<Readable>;
create(params?: Params$Resource$Organizations$Sources$Findings$Create, options?: MethodOptions): GaxiosPromise<Schema$GoogleCloudSecuritycenterV1beta1Finding>;
create(params: Params$Resource$Organizations$Sources$Findings$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
create(params: Params$Resource$Organizations$Sources$Findings$Create, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1beta1Finding>, callback: BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1beta1Finding>): void;
create(params: Params$Resource$Organizations$Sources$Findings$Create, callback: BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1beta1Finding>): void;
create(callback: BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1beta1Finding>): void;
/**
* 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: /v1beta1/organizations/{organization_id\}/sources/-/findings
*
* @param params - Parameters for request
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
* @param callback - Optional callback that handles the response.
* @returns A promise if used with async/await, or void if used with a callback.
*/
group(params: Params$Resource$Organizations$Sources$Findings$Group, options: StreamMethodOptions): GaxiosPromise<Readable>;
group(params?: Params$Resource$Organizations$Sources$Findings$Group, options?: MethodOptions): GaxiosPromise<Schema$GroupFindingsResponse>;
group(params: Params$Resource$Organizations$Sources$Findings$Group, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
group(params: Params$Resource$Organizations$Sources$Findings$Group, options: MethodOptions | BodyResponseCallback<Schema$GroupFindingsResponse>, callback: BodyResponseCallback<Schema$GroupFindingsResponse>): void;
group(params: Params$Resource$Organizations$Sources$Findings$Group, callback: BodyResponseCallback<Schema$GroupFindingsResponse>): void;
group(callback: BodyResponseCallback<Schema$GroupFindingsResponse>): void;
/**
* Lists an organization or source's findings. To list across all sources provide a `-` as the source id. Example: /v1beta1/organizations/{organization_id\}/sources/-/findings
*
* @param params - Parameters for request
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
* @param callback - Optional callback that handles the response.
* @returns A promise if used with async/await, or void if used with a callback.
*/
list(params: Params$Resource$Organizations$Sources$Findings$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
list(params?: Params$Resource$Organizations$Sources$Findings$List, options?: MethodOptions): GaxiosPromise<Schema$ListFindingsResponse>;
list(params: Params$Resource$Organizations$Sources$Findings$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
list(params: Params$Resource$Organizations$Sources$Findings$List, options: MethodOptions | BodyResponseCallback<Schema$ListFindingsResponse>, callback: BodyResponseCallback<Schema$ListFindingsResponse>): void;
list(params: Params$Resource$Organizations$Sources$Findings$List, callback: BodyResponseCallback<Schema$ListFindingsResponse>): void;
list(callback: BodyResponseCallback<Schema$ListFindingsResponse>): void;
/**
* Creates or updates a finding. The corresponding source must exist for a finding creation to succeed.
*
* @param params - Parameters for request
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
* @param callback - Optional callback that handles the response.
* @returns A promise if used with async/await, or void if used with a callback.
*/
patch(params: Params$Resource$Organizations$Sources$Findings$Patch, options: StreamMethodOptions): GaxiosPromise<Readable>;
patch(params?: Params$Resource$Organizations$Sources$Findings$Patch, options?: MethodOptions): GaxiosPromise<Schema$GoogleCloudSecuritycenterV1beta1Finding>;
patch(params: Params$Resource$Organizations$Sources$Findings$Patch, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
patch(params: Params$Resource$Organizations$Sources$Findings$Patch, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1beta1Finding>, callback: BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1beta1Finding>): void;
patch(params: Params$Resource$Organizations$Sources$Findings$Patch, callback: BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1beta1Finding>): void;
patch(callback: BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1beta1Finding>): void;
/**
* Updates the state of a finding.
*
* @param params - Parameters for request
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
* @param callback - Optional callback that handles the response.
* @returns A promise if used with async/await, or void if used with a callback.
*/
setState(params: Params$Resource$Organizations$Sources$Findings$Setstate, options: StreamMethodOptions): GaxiosPromise<Readable>;
setState(params?: Params$Resource$Organizations$Sources$Findings$Setstate, options?: MethodOptions): GaxiosPromise<Schema$GoogleCloudSecuritycenterV1beta1Finding>;
setState(params: Params$Resource$Organizations$Sources$Findings$Setstate, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
setState(params: Params$Resource$Organizations$Sources$Findings$Setstate, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1beta1Finding>, callback: BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1beta1Finding>): void;
setState(params: Params$Resource$Organizations$Sources$Findings$Setstate, callback: BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1beta1Finding>): void;
setState(callback: BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1beta1Finding>): void;
/**
* Updates security marks.
*
* @param params - Parameters for request
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
* @param callback - Optional callback that handles the response.
* @returns A promise if used with async/await, or void if used with a callback.
*/
updateSecurityMarks(params: Params$Resource$Organizations$Sources$Findings$Updatesecuritymarks, options: StreamMethodOptions): GaxiosPromise<Readable>;
updateSecurityMarks(params?: Params$Resource$Organizations$Sources$Findings$Updatesecuritymarks, options?: MethodOptions): GaxiosPromise<Schema$GoogleCloudSecuritycenterV1beta1SecurityMarks>;
updateSecurityMarks(params: Params$Resource$Organizations$Sources$Findings$Updatesecuritymarks, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
updateSecurityMarks(params: Params$Resource$Organizations$Sources$Findings$Updatesecuritymarks, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1beta1SecurityMarks>, callback: BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1beta1SecurityMarks>): void;
updateSecurityMarks(params: Params$Resource$Organizations$Sources$Findings$Updatesecuritymarks, callback: BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1beta1SecurityMarks>): void;
updateSecurityMarks(callback: BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1beta1SecurityMarks>): void;
}
export interface Params$Resource$Organizations$Sources$Findings$Create extends StandardParameters {
/**
* Required. Unique identifier provided by the client within the parent scope. It must be alphanumeric and less than or equal to 32 characters and greater than 0 characters in length.
*/
findingId?: string;
/**
* Required. Resource name of the new finding's parent. Its format should be "organizations/[organization_id]/sources/[source_id]".
*/
parent?: string;
/**
* Request body metadata
*/
requestBody?: Schema$GoogleCloudSecuritycenterV1beta1Finding;
}
export interface Params$Resource$Organizations$Sources$Findings$Group extends StandardParameters {
/**
* Required. Name of the source to groupBy. Its format is "organizations/[organization_id]/sources/[source_id]". To groupBy across all sources provide a source_id of `-`. For example: organizations/{organization_id\}/sources/-
*/
parent?: string;
/**
* Request body metadata
*/
requestBody?: Schema$GroupFindingsRequest;
}
export interface Params$Resource$Organizations$Sources$Findings$List extends StandardParameters {
/**
* Optional. A field mask to specify the Finding fields to be listed in the response. An empty field mask will list all fields.
*/
fieldMask?: string;
/**
* Expression that defines the filter to apply across findings. The expression is a list of one or more restrictions combined via logical operators `AND` and `OR`. Parentheses are not supported, and `OR` has higher precedence than `AND`. Restrictions have the form ` ` and may have a `-` character in front of them to indicate negation. Examples include: * name * source_properties.a_property * security_marks.marks.marka The supported operators are: * `=` for all value types. * `\>`, `<`, `\>=`, `<=` for integer values. * `:`, meaning substring matching, for strings. The supported value types are: * string literals in quotes. * integer literals without quotes. * boolean literals `true` and `false` without quotes. For example, `source_properties.size = 100` is a valid filter string.
*/
filter?: string;
/**
* Expression that defines what fields and order to use for sorting. The string value should follow SQL syntax: comma separated list of fields. For example: "name,resource_properties.a_property". The default sorting order is ascending. To specify descending order for a field, a suffix " desc" should be appended to the field name. For example: "name desc,source_properties.a_property". Redundant space characters in the syntax are insignificant. "name desc,source_properties.a_property" and " name desc , source_properties.a_property " are equivalent.
*/
orderBy?: string;
/**
* The maximum number of results to return in a single response. Default is 10, minimum is 1, maximum is 1000.
*/
pageSize?: number;
/**
* The value returned by the last `ListFindingsResponse`; indicates that this is a continuation of a prior `ListFindings` call, and that the system should return the next page of data.
*/
pageToken?: string;
/**
* Required. Name of the source the findings belong to. Its format is "organizations/[organization_id]/sources/[source_id]". To list across all sources provide a source_id of `-`. For example: organizations/{organization_id\}/sources/-
*/
parent?: string;
/**
* Time used as a reference point when filtering findings. The filter is limited to findings existing at the supplied time and their values are those at that specific time. Absence of this field will default to the API's version of NOW.
*/
readTime?: string;
}
export interface Params$Resource$Organizations$Sources$Findings$Patch extends StandardParameters {
/**
* 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\}"
*/
name?: string;
/**
* The FieldMask to use when updating the finding resource. This field should not be specified when creating a finding.
*/
updateMask?: string;
/**
* Request body metadata
*/
requestBody?: Schema$GoogleCloudSecuritycenterV1beta1Finding;
}
export interface Params$Resource$Organizations$Sources$Findings$Setstate extends StandardParameters {
/**
* 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\}".
*/
name?: string;
/**
* Request body metadata
*/
requestBody?: Schema$SetFindingStateRequest;
}
export interface Params$Resource$Organizations$Sources$Findings$Updatesecuritymarks extends StandardParameters {
/**
* 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".
*/
name?: string;
/**
* The time at which the updated SecurityMarks take effect.
*/
startTime?: string;
/**
* The FieldMask to use when updating the security marks resource.
*/
updateMask?: string;
/**
* Request body metadata
*/
requestBody?: Schema$GoogleCloudSecuritycenterV1beta1SecurityMarks;
}
export {};
}
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists