@maxim_mazurok/gapi.client.dlp-v2 0.0.20240428 → 0.0.20240512

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 +36 -21
  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: 20240428
12
+ // Revision: 20240512
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -222,7 +222,7 @@ declare namespace gapi.client {
222
222
  interface GooglePrivacyDlpV2CloudSqlProperties {
223
223
  /** Built-in IAM authentication (must be configured in Cloud SQL). */
224
224
  cloudSqlIam?: any;
225
- /** Optional. Immutable. The Cloud SQL instance for which the connection is defined. Only one connection per instance is allowed. This can only be set at creation time, and cannot be updated. It is an error to use a connection_name from different project or region than the one that holds the connection. For example, a Connection resource for Cloud SQL connection_name "project-id:us-central1:sql-instance" must be created under the parent "projects/project-id/locations/us-central1" */
225
+ /** Optional. Immutable. The Cloud SQL instance for which the connection is defined. Only one connection per instance is allowed. This can only be set at creation time, and cannot be updated. It is an error to use a connection_name from different project or region than the one that holds the connection. For example, a Connection resource for Cloud SQL connection_name `project-id:us-central1:sql-instance` must be created under the parent `projects/project-id/locations/us-central1` */
226
226
  connectionName?: string;
227
227
  /** Required. The database engine used by the Cloud SQL instance that this connection configures. */
228
228
  databaseEngine?: string;
@@ -328,7 +328,7 @@ declare namespace gapi.client {
328
328
  cloudSql?: GooglePrivacyDlpV2CloudSqlProperties;
329
329
  /** Output only. Set if status == ERROR, to provide additional details. Will store the last 10 errors sorted with the most recent first. */
330
330
  errors?: GooglePrivacyDlpV2Error[];
331
- /** Output only. Name of the connection: projects/{project}/locations/{location}/connections/{name}. */
331
+ /** Output only. Name of the connection: `projects/{project}/locations/{location}/connections/{name}`. */
332
332
  name?: string;
333
333
  /** Required. The connection's state in its lifecycle. */
334
334
  state?: string;
@@ -484,9 +484,13 @@ declare namespace gapi.client {
484
484
  includeRegexes?: GooglePrivacyDlpV2DatabaseResourceRegexes;
485
485
  }
486
486
  interface GooglePrivacyDlpV2DatabaseResourceReference {
487
- /** Required. The instance where this resource is located. For example: Cloud SQL's instance id. */
487
+ /** Required. Name of a database within the instance. */
488
+ database?: string;
489
+ /** Required. Name of a database resource, for example, a table within the database. */
490
+ databaseResource?: string;
491
+ /** Required. The instance where this resource is located. For example: Cloud SQL instance ID. */
488
492
  instance?: string;
489
- /** Required. If within a project-level config, then this must match the config's project id. */
493
+ /** Required. If within a project-level config, then this must match the config's project ID. */
490
494
  projectId?: string;
491
495
  }
492
496
  interface GooglePrivacyDlpV2DatabaseResourceRegex {
@@ -496,7 +500,7 @@ declare namespace gapi.client {
496
500
  databaseResourceNameRegex?: string;
497
501
  /** Regex to test the instance name against. If empty, all instances match. */
498
502
  instanceRegex?: string;
499
- /** For organizations, if unset, will match all projects. Has no effect for Data Profile configurations created within a project. */
503
+ /** For organizations, if unset, will match all projects. Has no effect for configurations created within a project. */
500
504
  projectIdRegex?: string;
501
505
  }
502
506
  interface GooglePrivacyDlpV2DatabaseResourceRegexes {
@@ -713,6 +717,8 @@ declare namespace gapi.client {
713
717
  interface GooglePrivacyDlpV2DiscoveryBigQueryFilter {
714
718
  /** Catch-all. This should always be the last filter 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. */
715
719
  otherTables?: any;
720
+ /** The table to scan. Discovery configurations including this can only include one DiscoveryTarget (the DiscoveryTarget with this TableReference). */
721
+ tableReference?: GooglePrivacyDlpV2TableReference;
716
722
  /** A specific set of tables for this filter to apply to. A table collection must be specified in only one filter per config. If a table id or dataset is empty, Cloud DLP assumes all tables in that collection must be profiled. Must specify a project ID. */
717
723
  tables?: GooglePrivacyDlpV2BigQueryTableCollection;
718
724
  }
@@ -789,6 +795,8 @@ declare namespace gapi.client {
789
795
  bigQueryTarget?: GooglePrivacyDlpV2BigQueryDiscoveryTarget;
790
796
  /** Cloud SQL target for Discovery. The first target to match a table will be the one applied. */
791
797
  cloudSqlTarget?: GooglePrivacyDlpV2CloudSqlDiscoveryTarget;
798
+ /** 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. */
799
+ secretsTarget?: any;
792
800
  }
793
801
  interface GooglePrivacyDlpV2DlpJob {
794
802
  /** Events that should occur after the job has completed. */
@@ -1679,7 +1687,7 @@ declare namespace gapi.client {
1679
1687
  hybridStats?: GooglePrivacyDlpV2HybridInspectStatistics;
1680
1688
  /** Statistics of how many instances of each info type were found during inspect job. */
1681
1689
  infoTypeStats?: GooglePrivacyDlpV2InfoTypeStats[];
1682
- /** Number of rows scanned post sampling and time filtering (Applicable for row based stores such as BigQuery). */
1690
+ /** Number of rows scanned after sampling and time filtering (applicable for row based stores such as BigQuery). */
1683
1691
  numRowsProcessed?: string;
1684
1692
  /** Total size in bytes that were processed. */
1685
1693
  processedBytes?: string;
@@ -1719,11 +1727,12 @@ declare namespace gapi.client {
1719
1727
  nextPageToken?: string;
1720
1728
  }
1721
1729
  interface GooglePrivacyDlpV2SecretManagerCredential {
1722
- /** Required. The name of the Secret Manager resource that stores the password, in the form "projects/project-id/secrets/secret-name/versions/version". */
1730
+ /** Required. The name of the Secret Manager resource that stores the password, in the form `projects/project-id/secrets/secret-name/versions/version`. */
1723
1731
  passwordSecretVersionName?: string;
1724
1732
  /** Required. The username. */
1725
1733
  username?: string;
1726
1734
  }
1735
+ interface GooglePrivacyDlpV2SecretsDiscoveryTarget {}
1727
1736
  interface GooglePrivacyDlpV2SelectedInfoTypes {
1728
1737
  /** Required. InfoTypes to apply the transformation to. Required. Provided InfoType must be unique within the ImageTransformations message. */
1729
1738
  infoTypes?: GooglePrivacyDlpV2InfoType[];
@@ -1875,6 +1884,12 @@ declare namespace gapi.client {
1875
1884
  /** The columns that are the primary keys for table objects included in ContentItem. A copy of this cell's value will stored alongside alongside each finding so that the finding can be traced to the specific row it came from. No more than 3 may be provided. */
1876
1885
  identifyingFields?: GooglePrivacyDlpV2FieldId[];
1877
1886
  }
1887
+ interface GooglePrivacyDlpV2TableReference {
1888
+ /** Dataset ID of the table. */
1889
+ datasetId?: string;
1890
+ /** Name of the table. */
1891
+ tableId?: string;
1892
+ }
1878
1893
  interface GooglePrivacyDlpV2TaggedField {
1879
1894
  /** A column can be tagged with a custom tag. In this case, the user must indicate an auxiliary table that contains statistical information on the possible values of this column (below). */
1880
1895
  customTag?: string;
@@ -1891,7 +1906,7 @@ declare namespace gapi.client {
1891
1906
  partToExtract?: string;
1892
1907
  }
1893
1908
  interface GooglePrivacyDlpV2TimespanConfig {
1894
- /** When the job is started by a JobTrigger we will automatically figure out a valid start_time to avoid scanning files that have not been modified since the last time the JobTrigger executed. This will be based on the time of the execution of the last run of the JobTrigger or the timespan end_time used in the last run of the JobTrigger. *For BigQuery* Inspect jobs triggered by automatic population will scan data that is at least three hours old when the job starts. This is because streaming buffer rows are not read during inspection and reading up to the current timestamp will result in skipped rows. See the [known issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#recently-streamed-data) related to this operation. */
1909
+ /** When the job is started by a JobTrigger we will automatically figure out a valid start_time to avoid scanning files that have not been modified since the last time the JobTrigger executed. This will be based on the time of the execution of the last run of the JobTrigger or the timespan end_time used in the last run of the JobTrigger. **For BigQuery** Inspect jobs triggered by automatic population will scan data that is at least three hours old when the job starts. This is because streaming buffer rows are not read during inspection and reading up to the current timestamp will result in skipped rows. See the [known issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#recently-streamed-data) related to this operation. */
1895
1910
  enableAutoPopulationOfTimespanConfig?: boolean;
1896
1911
  /** Exclude files, tables, or rows newer than this value. If not set, no upper time limit is applied. */
1897
1912
  endTime?: string;
@@ -2657,7 +2672,7 @@ declare namespace gapi.client {
2657
2672
  callback?: string;
2658
2673
  /** Selector specifying which fields to include in a partial response. */
2659
2674
  fields?: string;
2660
- /** Optional. * Supported fields/values - `state` - MISSING|AVAILABLE|ERROR */
2675
+ /** Optional. Supported field/value: - `state` - MISSING|AVAILABLE|ERROR */
2661
2676
  filter?: string;
2662
2677
  /** 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. */
2663
2678
  key?: string;
@@ -2667,7 +2682,7 @@ declare namespace gapi.client {
2667
2682
  pageSize?: number;
2668
2683
  /** Optional. Page token from a previous page to return the next set of results. If set, all other request fields must match the original request. */
2669
2684
  pageToken?: string;
2670
- /** Required. Parent name, typically an organization, without location. For example: "organizations/12345678". */
2685
+ /** Required. Parent name, typically an organization, without location. For example: `organizations/12345678`. */
2671
2686
  parent: string;
2672
2687
  /** Returns response with indentations and line breaks. */
2673
2688
  prettyPrint?: boolean;
@@ -5348,7 +5363,7 @@ declare namespace gapi.client {
5348
5363
  key?: string;
5349
5364
  /** OAuth 2.0 token for the current user. */
5350
5365
  oauth_token?: string;
5351
- /** Required. Parent resource name in the format: "projects/{project}/locations/{location}". */
5366
+ /** Required. Parent resource name in the format: `projects/{project}/locations/{location}`. */
5352
5367
  parent: string;
5353
5368
  /** Returns response with indentations and line breaks. */
5354
5369
  prettyPrint?: boolean;
@@ -5377,7 +5392,7 @@ declare namespace gapi.client {
5377
5392
  key?: string;
5378
5393
  /** OAuth 2.0 token for the current user. */
5379
5394
  oauth_token?: string;
5380
- /** Required. Parent resource name in the format: "projects/{project}/locations/{location}". */
5395
+ /** Required. Parent resource name in the format: `projects/{project}/locations/{location}`. */
5381
5396
  parent: string;
5382
5397
  /** Returns response with indentations and line breaks. */
5383
5398
  prettyPrint?: boolean;
@@ -5404,7 +5419,7 @@ declare namespace gapi.client {
5404
5419
  fields?: string;
5405
5420
  /** 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. */
5406
5421
  key?: string;
5407
- /** Required. Resource name of the Connection to be deleted, in the format: "projects/{project}/locations/{location}/connections/{connection}". */
5422
+ /** Required. Resource name of the Connection to be deleted, in the format: `projects/{project}/locations/{location}/connections/{connection}`. */
5408
5423
  name: string;
5409
5424
  /** OAuth 2.0 token for the current user. */
5410
5425
  oauth_token?: string;
@@ -5431,7 +5446,7 @@ declare namespace gapi.client {
5431
5446
  fields?: string;
5432
5447
  /** 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. */
5433
5448
  key?: string;
5434
- /** Required. Resource name in the format: "projects/{project}/locations/{location}/connections/{connection}". */
5449
+ /** Required. Resource name in the format: `projects/{project}/locations/{location}/connections/{connection}`. */
5435
5450
  name: string;
5436
5451
  /** OAuth 2.0 token for the current user. */
5437
5452
  oauth_token?: string;
@@ -5456,7 +5471,7 @@ declare namespace gapi.client {
5456
5471
  callback?: string;
5457
5472
  /** Selector specifying which fields to include in a partial response. */
5458
5473
  fields?: string;
5459
- /** Optional. * Supported fields/values - `state` - MISSING|AVAILABLE|ERROR */
5474
+ /** Optional. Supported field/value: `state` - MISSING|AVAILABLE|ERROR */
5460
5475
  filter?: string;
5461
5476
  /** 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. */
5462
5477
  key?: string;
@@ -5466,7 +5481,7 @@ declare namespace gapi.client {
5466
5481
  pageSize?: number;
5467
5482
  /** Optional. Page token from a previous page to return the next set of results. If set, all other request fields must match the original request. */
5468
5483
  pageToken?: string;
5469
- /** Required. Parent name, for example: "projects/project-id/locations/global". */
5484
+ /** Required. Parent name, for example: `projects/project-id/locations/global`. */
5470
5485
  parent: string;
5471
5486
  /** Returns response with indentations and line breaks. */
5472
5487
  prettyPrint?: boolean;
@@ -5491,7 +5506,7 @@ declare namespace gapi.client {
5491
5506
  fields?: string;
5492
5507
  /** 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. */
5493
5508
  key?: string;
5494
- /** Required. Resource name in the format: "projects/{project}/locations/{location}/connections/{connection}". */
5509
+ /** Required. Resource name in the format: `projects/{project}/locations/{location}/connections/{connection}`. */
5495
5510
  name: string;
5496
5511
  /** OAuth 2.0 token for the current user. */
5497
5512
  oauth_token?: string;
@@ -5520,7 +5535,7 @@ declare namespace gapi.client {
5520
5535
  fields?: string;
5521
5536
  /** 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. */
5522
5537
  key?: string;
5523
- /** Required. Resource name in the format: "projects/{project}/locations/{location}/connections/{connection}". */
5538
+ /** Required. Resource name in the format: `projects/{project}/locations/{location}/connections/{connection}`. */
5524
5539
  name: string;
5525
5540
  /** OAuth 2.0 token for the current user. */
5526
5541
  oauth_token?: string;
@@ -5547,7 +5562,7 @@ declare namespace gapi.client {
5547
5562
  callback?: string;
5548
5563
  /** Selector specifying which fields to include in a partial response. */
5549
5564
  fields?: string;
5550
- /** Optional. * Supported fields/values - `state` - MISSING|AVAILABLE|ERROR */
5565
+ /** Optional. Supported field/value: - `state` - MISSING|AVAILABLE|ERROR */
5551
5566
  filter?: string;
5552
5567
  /** 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. */
5553
5568
  key?: string;
@@ -5557,7 +5572,7 @@ declare namespace gapi.client {
5557
5572
  pageSize?: number;
5558
5573
  /** Optional. Page token from a previous page to return the next set of results. If set, all other request fields must match the original request. */
5559
5574
  pageToken?: string;
5560
- /** Required. Parent name, typically an organization, without location. For example: "organizations/12345678". */
5575
+ /** Required. Parent name, typically an organization, without location. For example: `organizations/12345678`. */
5561
5576
  parent: string;
5562
5577
  /** Returns response with indentations and line breaks. */
5563
5578
  prettyPrint?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.dlp-v2",
3
- "version": "0.0.20240428",
3
+ "version": "0.0.20240512",
4
4
  "description": "TypeScript typings for Sensitive Data Protection (DLP) v2",
5
5
  "repository": {
6
6
  "type": "git",