@maxim_mazurok/gapi.client.dlp-v2 0.0.20240908 → 0.0.20240916

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +97 -7
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://dlp.googleapis.com/$discovery/rest?version=v2
12
- // Revision: 20240908
12
+ // Revision: 20240916
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -50,6 +50,24 @@ declare namespace gapi.client {
50
50
  interface GooglePrivacyDlpV2AllOtherDatabaseResources {}
51
51
  interface GooglePrivacyDlpV2AllOtherResources {}
52
52
  interface GooglePrivacyDlpV2AllText {}
53
+ interface GooglePrivacyDlpV2AmazonS3Bucket {
54
+ /** The AWS account. */
55
+ awsAccount?: GooglePrivacyDlpV2AwsAccount;
56
+ /** Required. The bucket name. */
57
+ bucketName?: string;
58
+ }
59
+ interface GooglePrivacyDlpV2AmazonS3BucketConditions {
60
+ /** Optional. Bucket types that should be profiled. Optional. Defaults to TYPE_ALL_SUPPORTED if unspecified. */
61
+ bucketTypes?: string[];
62
+ /** Optional. Object classes that should be profiled. Optional. Defaults to ALL_SUPPORTED_CLASSES if unspecified. */
63
+ objectStorageClasses?: string[];
64
+ }
65
+ interface GooglePrivacyDlpV2AmazonS3BucketRegex {
66
+ /** The AWS account regex. */
67
+ awsAccountRegex?: GooglePrivacyDlpV2AwsAccountRegex;
68
+ /** Optional. Regex to test the bucket name against. If empty, all buckets match. */
69
+ bucketNameRegex?: string;
70
+ }
53
71
  interface GooglePrivacyDlpV2AnalyzeDataSourceRiskDetails {
54
72
  /** Categorical stats result */
55
73
  categoricalStatsResult?: GooglePrivacyDlpV2CategoricalStatsResult;
@@ -78,6 +96,20 @@ declare namespace gapi.client {
78
96
  /** Required. Auxiliary table location. */
79
97
  table?: GooglePrivacyDlpV2BigQueryTable;
80
98
  }
99
+ interface GooglePrivacyDlpV2AwsAccount {
100
+ /** Required. AWS account ID. */
101
+ accountId?: string;
102
+ }
103
+ interface GooglePrivacyDlpV2AwsAccountRegex {
104
+ /** Optional. Regex to test the AWS account ID against. If empty, all accounts match. */
105
+ accountIdRegex?: string;
106
+ }
107
+ interface GooglePrivacyDlpV2AwsDiscoveryStartingLocation {
108
+ /** The AWS account ID that this discovery config applies to. Within an AWS organization, you can find the AWS account ID inside an AWS account ARN. Example: arn:{partition}:organizations::{management_account_id}:account/{org_id}/{account_id} */
109
+ accountId?: string;
110
+ /** All AWS assets stored in Asset Inventory that didn't match other AWS discovery configs. */
111
+ allAssetInventoryAssets?: boolean;
112
+ }
81
113
  interface GooglePrivacyDlpV2BigQueryDiscoveryTarget {
82
114
  /** How often and when to update profiles. New tables that match both the filter and conditions are scanned as quickly as possible depending on system capacity. */
83
115
  cadence?: GooglePrivacyDlpV2DiscoveryGenerationCadence;
@@ -569,6 +601,8 @@ declare namespace gapi.client {
569
601
  inspectTemplates?: string[];
570
602
  /** The data to scan. */
571
603
  location?: GooglePrivacyDlpV2DataProfileLocation;
604
+ /** Must be set only when scanning other clouds. */
605
+ otherCloudStartingLocation?: GooglePrivacyDlpV2OtherCloudDiscoveryStartingLocation;
572
606
  /** The project that will run the scan. The DLP service account that exists within this project must have access to all resources that are profiled, and the Cloud DLP API must be enabled. */
573
607
  projectId?: string;
574
608
  }
@@ -814,6 +848,8 @@ declare namespace gapi.client {
814
848
  name?: string;
815
849
  /** Only set when the parent is an org. */
816
850
  orgConfig?: GooglePrivacyDlpV2OrgConfig;
851
+ /** Must be set only when scanning other clouds. */
852
+ otherCloudStartingLocation?: GooglePrivacyDlpV2OtherCloudDiscoveryStartingLocation;
817
853
  /** Required. A status for this configuration. */
818
854
  status?: string;
819
855
  /** Target to match against for determining what to scan and how frequently. */
@@ -843,6 +879,26 @@ declare namespace gapi.client {
843
879
  /** How frequently data profiles can be updated when the template is modified. Defaults to never. */
844
880
  frequency?: string;
845
881
  }
882
+ interface GooglePrivacyDlpV2DiscoveryOtherCloudConditions {
883
+ /** Amazon S3 bucket conditions. */
884
+ amazonS3BucketConditions?: GooglePrivacyDlpV2AmazonS3BucketConditions;
885
+ /** Minimum age a resource must be before Cloud DLP can profile it. Value must be 1 hour or greater. */
886
+ minAge?: string;
887
+ }
888
+ interface GooglePrivacyDlpV2DiscoveryOtherCloudFilter {
889
+ /** A collection of resources for this filter to apply to. */
890
+ collection?: GooglePrivacyDlpV2OtherCloudResourceCollection;
891
+ /** Optional. Catch-all. This should always be the last target in the list because anything above it will apply first. Should only appear once in a configuration. If none is specified, a default one will be added automatically. */
892
+ others?: any;
893
+ /** The resource to scan. Configs using this filter can only have one target (the target with this single resource reference). */
894
+ singleResource?: GooglePrivacyDlpV2OtherCloudSingleResourceReference;
895
+ }
896
+ interface GooglePrivacyDlpV2DiscoveryOtherCloudGenerationCadence {
897
+ /** Optional. Governs when to update data profiles when the inspection rules defined by the `InspectTemplate` change. If not set, changing the template will not cause a data profile to update. */
898
+ inspectTemplateModifiedCadence?: GooglePrivacyDlpV2DiscoveryInspectTemplateModifiedCadence;
899
+ /** Optional. Frequency to update profiles regardless of whether the underlying resource has changes. Defaults to never. */
900
+ refreshFrequency?: string;
901
+ }
846
902
  interface GooglePrivacyDlpV2DiscoverySchemaModifiedCadence {
847
903
  /** How frequently profiles may be updated when schemas are modified. Defaults to monthly. */
848
904
  frequency?: string;
@@ -868,6 +924,8 @@ declare namespace gapi.client {
868
924
  cloudSqlTarget?: GooglePrivacyDlpV2CloudSqlDiscoveryTarget;
869
925
  /** Cloud Storage target for Discovery. The first target to match a table will be the one applied. */
870
926
  cloudStorageTarget?: GooglePrivacyDlpV2CloudStorageDiscoveryTarget;
927
+ /** Other clouds target for discovery. The first target to match a resource will be the one applied. */
928
+ otherCloudTarget?: GooglePrivacyDlpV2OtherCloudDiscoveryTarget;
871
929
  /** Discovery target that looks for credentials and secrets stored in cloud resource metadata and reports them as vulnerabilities to Security Command Center. Only one target of this type is allowed. */
872
930
  secretsTarget?: any;
873
931
  }
@@ -1012,11 +1070,11 @@ declare namespace gapi.client {
1012
1070
  fileStoreInfoTypeSummaries?: GooglePrivacyDlpV2FileStoreInfoTypeSummary[];
1013
1071
  /** The file store does not have any files. */
1014
1072
  fileStoreIsEmpty?: boolean;
1015
- /** The location of the file store. * Cloud Storage: https://cloud.google.com/storage/docs/locations#available-locations */
1073
+ /** The location of the file store. * Cloud Storage: https://cloud.google.com/storage/docs/locations#available-locations * Amazon S3: https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints */
1016
1074
  fileStoreLocation?: string;
1017
- /** The file store path. * Cloud Storage: `gs://{bucket}` */
1075
+ /** The file store path. * Cloud Storage: `gs://{bucket}` * Amazon S3: `s3://{bucket}` */
1018
1076
  fileStorePath?: string;
1019
- /** The resource name of the resource profiled. https://cloud.google.com/apis/design/resource_names#full_resource_name */
1077
+ /** The resource name of the resource profiled. https://cloud.google.com/apis/design/resource_names#full_resource_name Example format of an S3 bucket full resource name: `//cloudasset.googleapis.com/organizations/{org_id}/otherCloudConnections/aws/arn:aws:s3:::{bucket_name}` */
1020
1078
  fullResource?: string;
1021
1079
  /** The time the file store was last modified. */
1022
1080
  lastModifiedTime?: string;
@@ -1030,7 +1088,7 @@ declare namespace gapi.client {
1030
1088
  profileStatus?: GooglePrivacyDlpV2ProfileStatus;
1031
1089
  /** The resource name of the project data profile for this file store. */
1032
1090
  projectDataProfile?: string;
1033
- /** The Google Cloud project ID that owns the resource. */
1091
+ /** The Google Cloud project ID that owns the resource. For Amazon S3 buckets, this is the AWS Account Id. */
1034
1092
  projectId?: string;
1035
1093
  /** Attributes of the resource being profiled. Currently used attributes: * customer_managed_encryption: boolean - true: the resource is encrypted with a customer-managed key. - false: the resource is encrypted with a provider-managed key. */
1036
1094
  resourceAttributes?: {[P in string]: GooglePrivacyDlpV2Value};
@@ -1586,6 +1644,38 @@ declare namespace gapi.client {
1586
1644
  /** The project that will run the scan. The DLP service account that exists within this project must have access to all resources that are profiled, and the Cloud DLP API must be enabled. */
1587
1645
  projectId?: string;
1588
1646
  }
1647
+ interface GooglePrivacyDlpV2OtherCloudDiscoveryStartingLocation {
1648
+ /** The AWS starting location for discovery. */
1649
+ awsLocation?: GooglePrivacyDlpV2AwsDiscoveryStartingLocation;
1650
+ }
1651
+ interface GooglePrivacyDlpV2OtherCloudDiscoveryTarget {
1652
+ /** Optional. In addition to matching the filter, these conditions must be true before a profile is generated. */
1653
+ conditions?: GooglePrivacyDlpV2DiscoveryOtherCloudConditions;
1654
+ /** Required. The type of data profiles generated by this discovery target. Supported values are: * aws/s3/bucket */
1655
+ dataSourceType?: GooglePrivacyDlpV2DataSourceType;
1656
+ /** Disable profiling for resources that match this filter. */
1657
+ disabled?: any;
1658
+ /** Required. The resources that the discovery cadence applies to. The first target with a matching filter will be the one to apply to a resource. */
1659
+ filter?: GooglePrivacyDlpV2DiscoveryOtherCloudFilter;
1660
+ /** How often and when to update data profiles. New resources that match both the filter and conditions are scanned as quickly as possible depending on system capacity. */
1661
+ generationCadence?: GooglePrivacyDlpV2DiscoveryOtherCloudGenerationCadence;
1662
+ }
1663
+ interface GooglePrivacyDlpV2OtherCloudResourceCollection {
1664
+ /** A collection of regular expressions to match a resource against. */
1665
+ includeRegexes?: GooglePrivacyDlpV2OtherCloudResourceRegexes;
1666
+ }
1667
+ interface GooglePrivacyDlpV2OtherCloudResourceRegex {
1668
+ /** Regex for Amazon S3 buckets. */
1669
+ amazonS3BucketRegex?: GooglePrivacyDlpV2AmazonS3BucketRegex;
1670
+ }
1671
+ interface GooglePrivacyDlpV2OtherCloudResourceRegexes {
1672
+ /** A group of regular expression patterns to match against one or more resources. Maximum of 100 entries. The sum of all regular expression's length can't exceed 10 KiB. */
1673
+ patterns?: GooglePrivacyDlpV2OtherCloudResourceRegex[];
1674
+ }
1675
+ interface GooglePrivacyDlpV2OtherCloudSingleResourceReference {
1676
+ /** Amazon S3 bucket. */
1677
+ amazonS3Bucket?: GooglePrivacyDlpV2AmazonS3Bucket;
1678
+ }
1589
1679
  interface GooglePrivacyDlpV2OtherInfoTypeSummary {
1590
1680
  /** Approximate percentage of non-null rows that contained data detected by this infotype. */
1591
1681
  estimatedPrevalence?: number;
@@ -3612,7 +3702,7 @@ declare namespace gapi.client {
3612
3702
  callback?: string;
3613
3703
  /** Selector specifying which fields to include in a partial response. */
3614
3704
  fields?: string;
3615
- /** Optional. Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * Supported fields/values: - `project_id` - The Google Cloud project ID. - `file_store_path` - The path like "gs://bucket". - `data_source_type` - The profile's data source type, like "google/storage/bucket". - `data_storage_location` - The location where the file store's data is stored, like "us-central1". - `sensitivity_level` - HIGH|MODERATE|LOW - `data_risk_level` - HIGH|MODERATE|LOW - `resource_visibility`: PUBLIC|RESTRICTED - `status_code` - an RPC status code as defined in https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto * The operator must be `=` or `!=`. Examples: * `project_id = 12345 AND status_code = 1` * `project_id = 12345 AND sensitivity_level = HIGH` * `project_id = 12345 AND resource_visibility = PUBLIC` * `file_store_path = "gs://mybucket"` The length of this field should be no more than 500 characters. */
3705
+ /** Optional. Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * Supported fields/values: - `project_id` - The Google Cloud project ID. - `account_id` - The AWS account ID. - `file_store_path` - The path like "gs://bucket". - `data_source_type` - The profile's data source type, like "google/storage/bucket". - `data_storage_location` - The location where the file store's data is stored, like "us-central1". - `sensitivity_level` - HIGH|MODERATE|LOW - `data_risk_level` - HIGH|MODERATE|LOW - `resource_visibility`: PUBLIC|RESTRICTED - `status_code` - an RPC status code as defined in https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto * The operator must be `=` or `!=`. Examples: * `project_id = 12345 AND status_code = 1` * `project_id = 12345 AND sensitivity_level = HIGH` * `project_id = 12345 AND resource_visibility = PUBLIC` * `file_store_path = "gs://mybucket"` The length of this field should be no more than 500 characters. */
3616
3706
  filter?: string;
3617
3707
  /** 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. */
3618
3708
  key?: string;
@@ -7056,7 +7146,7 @@ declare namespace gapi.client {
7056
7146
  callback?: string;
7057
7147
  /** Selector specifying which fields to include in a partial response. */
7058
7148
  fields?: string;
7059
- /** Optional. Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * Supported fields/values: - `project_id` - The Google Cloud project ID. - `file_store_path` - The path like "gs://bucket". - `data_source_type` - The profile's data source type, like "google/storage/bucket". - `data_storage_location` - The location where the file store's data is stored, like "us-central1". - `sensitivity_level` - HIGH|MODERATE|LOW - `data_risk_level` - HIGH|MODERATE|LOW - `resource_visibility`: PUBLIC|RESTRICTED - `status_code` - an RPC status code as defined in https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto * The operator must be `=` or `!=`. Examples: * `project_id = 12345 AND status_code = 1` * `project_id = 12345 AND sensitivity_level = HIGH` * `project_id = 12345 AND resource_visibility = PUBLIC` * `file_store_path = "gs://mybucket"` The length of this field should be no more than 500 characters. */
7149
+ /** Optional. Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * Supported fields/values: - `project_id` - The Google Cloud project ID. - `account_id` - The AWS account ID. - `file_store_path` - The path like "gs://bucket". - `data_source_type` - The profile's data source type, like "google/storage/bucket". - `data_storage_location` - The location where the file store's data is stored, like "us-central1". - `sensitivity_level` - HIGH|MODERATE|LOW - `data_risk_level` - HIGH|MODERATE|LOW - `resource_visibility`: PUBLIC|RESTRICTED - `status_code` - an RPC status code as defined in https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto * The operator must be `=` or `!=`. Examples: * `project_id = 12345 AND status_code = 1` * `project_id = 12345 AND sensitivity_level = HIGH` * `project_id = 12345 AND resource_visibility = PUBLIC` * `file_store_path = "gs://mybucket"` The length of this field should be no more than 500 characters. */
7060
7150
  filter?: string;
7061
7151
  /** 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. */
7062
7152
  key?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.dlp-v2",
3
- "version": "0.0.20240908",
3
+ "version": "0.0.20240916",
4
4
  "description": "TypeScript typings for Sensitive Data Protection (DLP) v2",
5
5
  "repository": {
6
6
  "type": "git",