@maxim_mazurok/gapi.client.dlp-v2 0.0.20231008 → 0.0.20231022

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 (3) hide show
  1. package/index.d.ts +1677 -864
  2. package/package.json +1 -1
  3. package/tests.ts +499 -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: 20231008
12
+ // Revision: 20231022
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -60,6 +60,9 @@ declare namespace gapi.client {
60
60
  interface GooglePrivacyDlpV2AllInfoTypes {
61
61
  }
62
62
  // tslint:disable-next-line:no-empty-interface
63
+ interface GooglePrivacyDlpV2AllOtherBigQueryTables {
64
+ }
65
+ // tslint:disable-next-line:no-empty-interface
63
66
  interface GooglePrivacyDlpV2AllText {
64
67
  }
65
68
  interface GooglePrivacyDlpV2AnalyzeDataSourceRiskDetails {
@@ -102,6 +105,20 @@ declare namespace gapi.client {
102
105
  table?:
103
106
  GooglePrivacyDlpV2BigQueryTable;
104
107
  }
108
+ interface GooglePrivacyDlpV2BigQueryDiscoveryTarget {
109
+ /** 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. */
110
+ cadence?:
111
+ GooglePrivacyDlpV2DiscoveryGenerationCadence;
112
+ /** In addition to matching the filter, these conditions must be true before a profile is generated. */
113
+ conditions?:
114
+ GooglePrivacyDlpV2DiscoveryBigQueryConditions;
115
+ /** Tables that match this filter will not have profiles created. */
116
+ disabled?:
117
+ any;
118
+ /** Required. The tables the discovery cadence applies to. The first target with a matching filter will be the one to apply to a table. */
119
+ filter?:
120
+ GooglePrivacyDlpV2DiscoveryBigQueryFilter;
121
+ }
105
122
  interface GooglePrivacyDlpV2BigQueryField {
106
123
  /** Designated field in the BigQuery table. */
107
124
  field?:
@@ -158,6 +175,22 @@ declare namespace gapi.client {
158
175
  tableReference?:
159
176
  GooglePrivacyDlpV2BigQueryTable;
160
177
  }
178
+ interface GooglePrivacyDlpV2BigQueryRegex {
179
+ /** If unset, this property matches all datasets. */
180
+ datasetIdRegex?:
181
+ string;
182
+ /** For organizations, if unset, will match all projects. Has no effect for data profile configurations created within a project. */
183
+ projectIdRegex?:
184
+ string;
185
+ /** If unset, this property matches all tables. */
186
+ tableIdRegex?:
187
+ string;
188
+ }
189
+ interface GooglePrivacyDlpV2BigQueryRegexes {
190
+ /** A single BigQuery regular expression pattern to match against one or more tables, datasets, or projects that contain BigQuery tables. */
191
+ patterns?:
192
+ GooglePrivacyDlpV2BigQueryRegex[];
193
+ }
161
194
  interface GooglePrivacyDlpV2BigQueryTable {
162
195
  /** Dataset ID of the table. */
163
196
  datasetId?:
@@ -169,6 +202,16 @@ declare namespace gapi.client {
169
202
  tableId?:
170
203
  string;
171
204
  }
205
+ interface GooglePrivacyDlpV2BigQueryTableCollection {
206
+ /** A collection of regular expressions to match a BigQuery table against. */
207
+ includeRegexes?:
208
+ GooglePrivacyDlpV2BigQueryRegexes;
209
+ }
210
+ interface GooglePrivacyDlpV2BigQueryTableTypes {
211
+ /** A set of BigQuery table types. */
212
+ types?:
213
+ string[];
214
+ }
172
215
  interface GooglePrivacyDlpV2BoundingBox {
173
216
  /** Height of the bounding box in pixels. */
174
217
  height?:
@@ -514,6 +557,17 @@ declare namespace gapi.client {
514
557
  templateId?:
515
558
  string;
516
559
  }
560
+ interface GooglePrivacyDlpV2CreateDiscoveryConfigRequest {
561
+ /**
562
+ * The config ID can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: `[a-zA-Z\d-_]+`. The maximum length is 100
563
+ * characters. Can be empty to allow the system to generate one.
564
+ */
565
+ configId?:
566
+ string;
567
+ /** Required. The DiscoveryConfig to create. */
568
+ discoveryConfig?:
569
+ GooglePrivacyDlpV2DiscoveryConfig;
570
+ }
517
571
  interface GooglePrivacyDlpV2CreateDlpJobRequest {
518
572
  /** An inspection job scans a storage repository for InfoTypes. */
519
573
  inspectJob?:
@@ -727,7 +781,7 @@ declare namespace gapi.client {
727
781
  * Multiple templates may be provided if there is data in multiple regions. At most one template must be specified per-region (including "global"). Each region is scanned using the
728
782
  * applicable template. If no region-specific template is specified, but a "global" template is specified, it will be copied to that region and used instead. If no global or
729
783
  * region-specific template is provided for a region with data, that region's data will not be scanned. For more information, see
730
- * https://cloud.google.com/dlp/docs/data-profiles#data_residency.
784
+ * https://cloud.google.com/dlp/docs/data-profiles#data-residency.
731
785
  */
732
786
  inspectTemplates?:
733
787
  string[];
@@ -991,6 +1045,120 @@ declare namespace gapi.client {
991
1045
  wordList?:
992
1046
  GooglePrivacyDlpV2WordList;
993
1047
  }
1048
+ // tslint:disable-next-line:no-empty-interface
1049
+ interface GooglePrivacyDlpV2Disabled {
1050
+ }
1051
+ interface GooglePrivacyDlpV2DiscoveryBigQueryConditions {
1052
+ /** BigQuery table must have been created after this date. Used to avoid backfilling. */
1053
+ createdAfter?:
1054
+ string;
1055
+ /** At least one of the conditions must be true for a table to be scanned. */
1056
+ orConditions?:
1057
+ GooglePrivacyDlpV2OrConditions;
1058
+ /** Restrict discovery to categories of table types. */
1059
+ typeCollection?:
1060
+ string;
1061
+ /** Restrict discovery to specific table types. */
1062
+ types?:
1063
+ GooglePrivacyDlpV2BigQueryTableTypes;
1064
+ }
1065
+ interface GooglePrivacyDlpV2DiscoveryBigQueryFilter {
1066
+ /**
1067
+ * 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
1068
+ * one will be added automatically.
1069
+ */
1070
+ otherTables?:
1071
+ any;
1072
+ /**
1073
+ * 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
1074
+ * tables in that collection must be profiled. Must specify a project ID.
1075
+ */
1076
+ tables?:
1077
+ GooglePrivacyDlpV2BigQueryTableCollection;
1078
+ }
1079
+ interface GooglePrivacyDlpV2DiscoveryConfig {
1080
+ /** Actions to execute at the completion of scanning. */
1081
+ actions?:
1082
+ GooglePrivacyDlpV2DataProfileAction[];
1083
+ /** Output only. The creation timestamp of a DiscoveryConfig. */
1084
+ createTime?:
1085
+ string;
1086
+ /** Display name (max 100 chars) */
1087
+ displayName?:
1088
+ string;
1089
+ /**
1090
+ * Output only. A stream of errors encountered when the config was activated. Repeated errors may result in the config automatically being paused. Output only field. Will return the
1091
+ * last 100 errors. Whenever the config is modified this list will be cleared.
1092
+ */
1093
+ errors?:
1094
+ GooglePrivacyDlpV2Error[];
1095
+ /**
1096
+ * Detection logic for profile generation. Not all template features are used by Discovery. FindingLimits, include_quote and exclude_info_types have no impact on Discovery. Multiple
1097
+ * templates may be provided if there is data in multiple regions. At most one template must be specified per-region (including "global"). Each region is scanned using the applicable
1098
+ * template. If no region-specific template is specified, but a "global" template is specified, it will be copied to that region and used instead. If no global or region-specific
1099
+ * template is provided for a region with data, that region's data will not be scanned. For more information, see https://cloud.google.com/dlp/docs/data-profiles#data-residency.
1100
+ */
1101
+ inspectTemplates?:
1102
+ string[];
1103
+ /** Output only. The timestamp of the last time this config was executed. */
1104
+ lastRunTime?:
1105
+ string;
1106
+ /**
1107
+ * Unique resource name for the DiscoveryConfig, assigned by the service when the DiscoveryConfig is created, for example
1108
+ * `projects/dlp-test-project/locations/global/discoveryConfigs/53234423`.
1109
+ */
1110
+ name?:
1111
+ string;
1112
+ /** Only set when the parent is an org. */
1113
+ orgConfig?:
1114
+ GooglePrivacyDlpV2OrgConfig;
1115
+ /** Required. A status for this configuration. */
1116
+ status?:
1117
+ string;
1118
+ /** Target to match against for determining what to scan and how frequently. */
1119
+ targets?:
1120
+ GooglePrivacyDlpV2DiscoveryTarget[];
1121
+ /** Output only. The last update timestamp of a DiscoveryConfig. */
1122
+ updateTime?:
1123
+ string;
1124
+ }
1125
+ interface GooglePrivacyDlpV2DiscoveryGenerationCadence {
1126
+ /** Governs when to update data profiles when a schema is modified. */
1127
+ schemaModifiedCadence?:
1128
+ GooglePrivacyDlpV2DiscoverySchemaModifiedCadence;
1129
+ /** Governs when to update data profiles when a table is modified. */
1130
+ tableModifiedCadence?:
1131
+ GooglePrivacyDlpV2DiscoveryTableModifiedCadence;
1132
+ }
1133
+ interface GooglePrivacyDlpV2DiscoverySchemaModifiedCadence {
1134
+ /** How frequently profiles may be updated when schemas are modified. Defaults to monthly. */
1135
+ frequency?:
1136
+ string;
1137
+ /** The type of events to consider when deciding if the table's schema has been modified and should have the profile updated. Defaults to NEW_COLUMNS. */
1138
+ types?:
1139
+ string[];
1140
+ }
1141
+ interface GooglePrivacyDlpV2DiscoveryStartingLocation {
1142
+ /** The ID of the Folder within an organization to scan. */
1143
+ folderId?:
1144
+ string;
1145
+ /** The ID of an organization to scan. */
1146
+ organizationId?:
1147
+ string;
1148
+ }
1149
+ interface GooglePrivacyDlpV2DiscoveryTableModifiedCadence {
1150
+ /** How frequently data profiles can be updated when tables are modified. Defaults to never. */
1151
+ frequency?:
1152
+ string;
1153
+ /** The type of events to consider when deciding if the table has been modified and should have the profile updated. Defaults to MODIFIED_TIMESTAMP. */
1154
+ types?:
1155
+ string[];
1156
+ }
1157
+ interface GooglePrivacyDlpV2DiscoveryTarget {
1158
+ /** BigQuery target for Discovery. The first target to match a table will be the one applied. */
1159
+ bigQueryTarget?:
1160
+ GooglePrivacyDlpV2BigQueryDiscoveryTarget;
1161
+ }
994
1162
  interface GooglePrivacyDlpV2DlpJob {
995
1163
  /** Events that should occur after the job has completed. */
996
1164
  actionDetails?:
@@ -1849,7 +2017,15 @@ declare namespace gapi.client {
1849
2017
  /** List of deidentify templates, up to page_size in ListDeidentifyTemplatesRequest. */
1850
2018
  deidentifyTemplates?:
1851
2019
  GooglePrivacyDlpV2DeidentifyTemplate[];
1852
- /** If the next page is available then the next page token to be used in following ListDeidentifyTemplates request. */
2020
+ /** If the next page is available then the next page token to be used in the following ListDeidentifyTemplates request. */
2021
+ nextPageToken?:
2022
+ string;
2023
+ }
2024
+ interface GooglePrivacyDlpV2ListDiscoveryConfigsResponse {
2025
+ /** List of configs, up to page_size in ListDiscoveryConfigsRequest. */
2026
+ discoveryConfigs?:
2027
+ GooglePrivacyDlpV2DiscoveryConfig[];
2028
+ /** If the next page is available then the next page token to be used in the following ListDiscoveryConfigs request. */
1853
2029
  nextPageToken?:
1854
2030
  string;
1855
2031
  }
@@ -1870,7 +2046,7 @@ declare namespace gapi.client {
1870
2046
  /** List of inspectTemplates, up to page_size in ListInspectTemplatesRequest. */
1871
2047
  inspectTemplates?:
1872
2048
  GooglePrivacyDlpV2InspectTemplate[];
1873
- /** If the next page is available then the next page token to be used in following ListInspectTemplates request. */
2049
+ /** If the next page is available then the next page token to be used in the following ListInspectTemplates request. */
1874
2050
  nextPageToken?:
1875
2051
  string;
1876
2052
  }
@@ -1878,12 +2054,12 @@ declare namespace gapi.client {
1878
2054
  /** List of triggeredJobs, up to page_size in ListJobTriggersRequest. */
1879
2055
  jobTriggers?:
1880
2056
  GooglePrivacyDlpV2JobTrigger[];
1881
- /** If the next page is available then the next page token to be used in following ListJobTriggers request. */
2057
+ /** If the next page is available then the next page token to be used in the following ListJobTriggers request. */
1882
2058
  nextPageToken?:
1883
2059
  string;
1884
2060
  }
1885
2061
  interface GooglePrivacyDlpV2ListStoredInfoTypesResponse {
1886
- /** If the next page is available then the next page token to be used in following ListStoredInfoTypes request. */
2062
+ /** If the next page is available then the next page token to be used in the following ListStoredInfoTypes request. */
1887
2063
  nextPageToken?:
1888
2064
  string;
1889
2065
  /** List of storedInfoTypes, up to page_size in ListStoredInfoTypesRequest. */
@@ -1934,6 +2110,25 @@ declare namespace gapi.client {
1934
2110
  quantileValues?:
1935
2111
  GooglePrivacyDlpV2Value[];
1936
2112
  }
2113
+ interface GooglePrivacyDlpV2OrConditions {
2114
+ /** Minimum age a table must have before Cloud DLP can profile it. Value must be 1 hour or greater. */
2115
+ minAge?:
2116
+ string;
2117
+ /** Minimum number of rows that should be present before Cloud DLP profiles a table */
2118
+ minRowCount?:
2119
+ number;
2120
+ }
2121
+ interface GooglePrivacyDlpV2OrgConfig {
2122
+ /** The data to scan: folder, org, or project */
2123
+ location?:
2124
+ GooglePrivacyDlpV2DiscoveryStartingLocation;
2125
+ /**
2126
+ * 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
2127
+ * enabled.
2128
+ */
2129
+ projectId?:
2130
+ string;
2131
+ }
1937
2132
  interface GooglePrivacyDlpV2OtherInfoTypeSummary {
1938
2133
  /** Approximate percentage of non-null rows that contained data detected by this infotype. */
1939
2134
  estimatedPrevalence?:
@@ -2812,6 +3007,14 @@ declare namespace gapi.client {
2812
3007
  updateMask?:
2813
3008
  string;
2814
3009
  }
3010
+ interface GooglePrivacyDlpV2UpdateDiscoveryConfigRequest {
3011
+ /** Required. New DiscoveryConfig value. */
3012
+ discoveryConfig?:
3013
+ GooglePrivacyDlpV2DiscoveryConfig;
3014
+ /** Mask to control which fields get updated. */
3015
+ updateMask?:
3016
+ string;
3017
+ }
2815
3018
  interface GooglePrivacyDlpV2UpdateInspectTemplateRequest {
2816
3019
  /** New InspectTemplate value. */
2817
3020
  inspectTemplate?:
@@ -3237,16 +3440,16 @@ declare namespace gapi.client {
3237
3440
  oauth_token?:
3238
3441
  string;
3239
3442
  /**
3240
- * Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters
3241
- * are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the template was created. - `update_time`:
3242
- * corresponds to the time the template was last updated. - `name`: corresponds to the template's name. - `display_name`: corresponds to the template's display name.
3443
+ * Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space
3444
+ * characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the template was created. -
3445
+ * `update_time`: corresponds to the time the template was last updated. - `name`: corresponds to the template's name. - `display_name`: corresponds to the template's display name.
3243
3446
  */
3244
3447
  orderBy?:
3245
3448
  string;
3246
- /** Size of the page, can be limited by the server. If zero server returns a page of max size 100. */
3449
+ /** Size of the page. This value can be limited by the server. If zero server returns a page of max size 100. */
3247
3450
  pageSize?:
3248
3451
  number;
3249
- /** Page token to continue retrieval. Comes from previous call to `ListDeidentifyTemplates`. */
3452
+ /** Page token to continue retrieval. Comes from the previous call to `ListDeidentifyTemplates`. */
3250
3453
  pageToken?:
3251
3454
  string;
3252
3455
  /**
@@ -3567,16 +3770,16 @@ declare namespace gapi.client {
3567
3770
  oauth_token?:
3568
3771
  string;
3569
3772
  /**
3570
- * Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters
3571
- * are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the template was created. - `update_time`:
3572
- * corresponds to the time the template was last updated. - `name`: corresponds to the template's name. - `display_name`: corresponds to the template's display name.
3773
+ * Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space
3774
+ * characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the template was created. -
3775
+ * `update_time`: corresponds to the time the template was last updated. - `name`: corresponds to the template's name. - `display_name`: corresponds to the template's display name.
3573
3776
  */
3574
3777
  orderBy?:
3575
3778
  string;
3576
- /** Size of the page, can be limited by the server. If zero server returns a page of max size 100. */
3779
+ /** Size of the page. This value can be limited by the server. If zero server returns a page of max size 100. */
3577
3780
  pageSize?:
3578
3781
  number;
3579
- /** Page token to continue retrieval. Comes from previous call to `ListInspectTemplates`. */
3782
+ /** Page token to continue retrieval. Comes from the previous call to `ListInspectTemplates`. */
3580
3783
  pageToken?:
3581
3784
  string;
3582
3785
  /**
@@ -3897,16 +4100,16 @@ declare namespace gapi.client {
3897
4100
  oauth_token?:
3898
4101
  string;
3899
4102
  /**
3900
- * Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters
3901
- * are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the template was created. - `update_time`:
3902
- * corresponds to the time the template was last updated. - `name`: corresponds to the template's name. - `display_name`: corresponds to the template's display name.
4103
+ * Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space
4104
+ * characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the template was created. -
4105
+ * `update_time`: corresponds to the time the template was last updated. - `name`: corresponds to the template's name. - `display_name`: corresponds to the template's display name.
3903
4106
  */
3904
4107
  orderBy?:
3905
4108
  string;
3906
- /** Size of the page, can be limited by the server. If zero server returns a page of max size 100. */
4109
+ /** Size of the page. This value can be limited by the server. If zero server returns a page of max size 100. */
3907
4110
  pageSize?:
3908
4111
  number;
3909
- /** Page token to continue retrieval. Comes from previous call to `ListDeidentifyTemplates`. */
4112
+ /** Page token to continue retrieval. Comes from the previous call to `ListDeidentifyTemplates`. */
3910
4113
  pageToken?:
3911
4114
  string;
3912
4115
  /**
@@ -4019,90 +4222,8 @@ declare namespace gapi.client {
4019
4222
  },
4020
4223
  body: GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest): Request<GooglePrivacyDlpV2DeidentifyTemplate>;
4021
4224
  }
4022
- interface DlpJobsResource {
4023
- /**
4024
- * Lists DlpJobs that match the specified filter in the request. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to
4025
- * learn more.
4026
- */
4027
- list(request?: {
4028
- /** V1 error format. */
4029
- "$.xgafv"?:
4030
- string;
4031
- /** OAuth access token. */
4032
- access_token?:
4033
- string;
4034
- /** Data format for response. */
4035
- alt?:
4036
- string;
4037
- /** JSONP */
4038
- callback?:
4039
- string;
4040
- /** Selector specifying which fields to include in a partial response. */
4041
- fields?:
4042
- string;
4043
- /**
4044
- * 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
4045
- * of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * Supported fields/values for inspect jobs: - `state` -
4046
- * PENDING|RUNNING|CANCELED|FINISHED|FAILED - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY - `trigger_name` - The name of the trigger that created the job. - 'end_time` -
4047
- * Corresponds to the time the job finished. - 'start_time` - Corresponds to the time the job finished. * Supported fields for risk analysis jobs: - `state` -
4048
- * RUNNING|CANCELED|FINISHED|FAILED - 'end_time` - Corresponds to the time the job finished. - 'start_time` - Corresponds to the time the job finished. * The operator must be `=`
4049
- * or `!=`. Examples: * inspected_storage = cloud_storage AND state = done * inspected_storage = cloud_storage OR inspected_storage = bigquery * inspected_storage = cloud_storage
4050
- * AND (state = done OR state = canceled) * end_time > \"2017-12-12T00:00:00+00:00\" The length of this field should be no more than 500 characters.
4051
- */
4052
- filter?:
4053
- string;
4054
- /** 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. */
4055
- key?:
4056
- string;
4057
- /** Deprecated. This field has no effect. */
4058
- locationId?:
4059
- string;
4060
- /** OAuth 2.0 token for the current user. */
4061
- oauth_token?:
4062
- string;
4063
- /**
4064
- * Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters
4065
- * are insignificant. Example: `name asc, end_time asc, create_time desc` Supported fields are: - `create_time`: corresponds to the time the job was created. - `end_time`:
4066
- * corresponds to the time the job ended. - `name`: corresponds to the job's name. - `state`: corresponds to `state`
4067
- */
4068
- orderBy?:
4069
- string;
4070
- /** The standard list page size. */
4071
- pageSize?:
4072
- number;
4073
- /** The standard list page token. */
4074
- pageToken?:
4075
- string;
4076
- /**
4077
- * Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing
4078
- * location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
4079
- * location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and
4080
- * specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
4081
- */
4082
- parent:
4083
- string;
4084
- /** Returns response with indentations and line breaks. */
4085
- prettyPrint?:
4086
- boolean;
4087
- /** 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. */
4088
- quotaUser?:
4089
- string;
4090
- /** The type of job. Defaults to `DlpJobType.INSPECT` */
4091
- type?:
4092
- string;
4093
- /** Upload protocol for media (e.g. "raw", "multipart"). */
4094
- upload_protocol?:
4095
- string;
4096
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4097
- uploadType?:
4098
- string;
4099
- }): Request<GooglePrivacyDlpV2ListDlpJobsResponse>;
4100
- }
4101
- interface InspectTemplatesResource {
4102
- /**
4103
- * Creates an InspectTemplate for reusing frequently used configuration for inspecting content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates to learn
4104
- * more.
4105
- */
4225
+ interface DiscoveryConfigsResource {
4226
+ /** Creates a config for discovery to scan and profile storage. */
4106
4227
  create(request: {
4107
4228
  /** V1 error format. */
4108
4229
  "$.xgafv"?:
@@ -4126,11 +4247,8 @@ declare namespace gapi.client {
4126
4247
  oauth_token?:
4127
4248
  string;
4128
4249
  /**
4129
- * Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing
4130
- * location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
4131
- * location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope,
4132
- * no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and
4133
- * specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
4250
+ * Required. Parent resource name. The format of this value is as follows: `projects/`PROJECT_ID`/locations/`LOCATION_ID The following example `parent` string specifies a parent
4251
+ * project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
4134
4252
  */
4135
4253
  parent:
4136
4254
  string;
@@ -4148,8 +4266,8 @@ declare namespace gapi.client {
4148
4266
  string;
4149
4267
  /** Request body */
4150
4268
  resource:
4151
- GooglePrivacyDlpV2CreateInspectTemplateRequest;
4152
- }): Request<GooglePrivacyDlpV2InspectTemplate>;
4269
+ GooglePrivacyDlpV2CreateDiscoveryConfigRequest;
4270
+ }): Request<GooglePrivacyDlpV2DiscoveryConfig>;
4153
4271
  create(request: {
4154
4272
  /** V1 error format. */
4155
4273
  "$.xgafv"?:
@@ -4173,11 +4291,8 @@ declare namespace gapi.client {
4173
4291
  oauth_token?:
4174
4292
  string;
4175
4293
  /**
4176
- * Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing
4177
- * location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
4178
- * location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope,
4179
- * no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and
4180
- * specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
4294
+ * Required. Parent resource name. The format of this value is as follows: `projects/`PROJECT_ID`/locations/`LOCATION_ID The following example `parent` string specifies a parent
4295
+ * project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
4181
4296
  */
4182
4297
  parent:
4183
4298
  string;
@@ -4194,8 +4309,8 @@ declare namespace gapi.client {
4194
4309
  uploadType?:
4195
4310
  string;
4196
4311
  },
4197
- body: GooglePrivacyDlpV2CreateInspectTemplateRequest): Request<GooglePrivacyDlpV2InspectTemplate>;
4198
- /** Deletes an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn more. */
4312
+ body: GooglePrivacyDlpV2CreateDiscoveryConfigRequest): Request<GooglePrivacyDlpV2DiscoveryConfig>;
4313
+ /** Deletes a discovery configuration. */
4199
4314
  delete(request?: {
4200
4315
  /** V1 error format. */
4201
4316
  "$.xgafv"?:
@@ -4215,10 +4330,7 @@ declare namespace gapi.client {
4215
4330
  /** 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. */
4216
4331
  key?:
4217
4332
  string;
4218
- /**
4219
- * Required. Resource name of the organization and inspectTemplate to be deleted, for example `organizations/433245324/inspectTemplates/432452342` or
4220
- * projects/project-id/inspectTemplates/432452342.
4221
- */
4333
+ /** Required. Resource name of the project and the config, for example `projects/dlp-test-project/discoveryConfigs/53234423`. */
4222
4334
  name:
4223
4335
  string;
4224
4336
  /** OAuth 2.0 token for the current user. */
@@ -4237,7 +4349,7 @@ declare namespace gapi.client {
4237
4349
  uploadType?:
4238
4350
  string;
4239
4351
  }): Request<{}>;
4240
- /** Gets an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn more. */
4352
+ /** Gets a discovery configuration. */
4241
4353
  get(request?: {
4242
4354
  /** V1 error format. */
4243
4355
  "$.xgafv"?:
@@ -4257,10 +4369,7 @@ declare namespace gapi.client {
4257
4369
  /** 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. */
4258
4370
  key?:
4259
4371
  string;
4260
- /**
4261
- * Required. Resource name of the organization and inspectTemplate to be read, for example `organizations/433245324/inspectTemplates/432452342` or
4262
- * projects/project-id/inspectTemplates/432452342.
4263
- */
4372
+ /** Required. Resource name of the project and the configuration, for example `projects/dlp-test-project/discoveryConfigs/53234423`. */
4264
4373
  name:
4265
4374
  string;
4266
4375
  /** OAuth 2.0 token for the current user. */
@@ -4278,8 +4387,8 @@ declare namespace gapi.client {
4278
4387
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4279
4388
  uploadType?:
4280
4389
  string;
4281
- }): Request<GooglePrivacyDlpV2InspectTemplate>;
4282
- /** Lists InspectTemplates. See https://cloud.google.com/dlp/docs/creating-templates to learn more. */
4390
+ }): Request<GooglePrivacyDlpV2DiscoveryConfig>;
4391
+ /** Lists discovery configurations. */
4283
4392
  list(request?: {
4284
4393
  /** V1 error format. */
4285
4394
  "$.xgafv"?:
@@ -4299,31 +4408,25 @@ declare namespace gapi.client {
4299
4408
  /** 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. */
4300
4409
  key?:
4301
4410
  string;
4302
- /** Deprecated. This field has no effect. */
4303
- locationId?:
4304
- string;
4305
4411
  /** OAuth 2.0 token for the current user. */
4306
4412
  oauth_token?:
4307
4413
  string;
4308
4414
  /**
4309
- * Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters
4310
- * are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the template was created. - `update_time`:
4311
- * corresponds to the time the template was last updated. - `name`: corresponds to the template's name. - `display_name`: corresponds to the template's display name.
4415
+ * Comma separated list of config fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space
4416
+ * characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `last_run_time`: corresponds to the last time the DiscoveryConfig ran. -
4417
+ * `name`: corresponds to the DiscoveryConfig's name. - `status`: corresponds to DiscoveryConfig's status.
4312
4418
  */
4313
4419
  orderBy?:
4314
4420
  string;
4315
- /** Size of the page, can be limited by the server. If zero server returns a page of max size 100. */
4421
+ /** Size of the page. This value can be limited by a server. */
4316
4422
  pageSize?:
4317
4423
  number;
4318
- /** Page token to continue retrieval. Comes from previous call to `ListInspectTemplates`. */
4424
+ /** Page token to continue retrieval. Comes from the previous call to ListDiscoveryConfigs. `order_by` field must not change for subsequent calls. */
4319
4425
  pageToken?:
4320
4426
  string;
4321
4427
  /**
4322
- * Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing
4323
- * location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
4324
- * location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope,
4325
- * no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and
4326
- * specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
4428
+ * Required. Parent resource name. The format of this value is as follows: `projects/`PROJECT_ID`/locations/`LOCATION_ID The following example `parent` string specifies a parent
4429
+ * project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
4327
4430
  */
4328
4431
  parent:
4329
4432
  string;
@@ -4339,8 +4442,8 @@ declare namespace gapi.client {
4339
4442
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4340
4443
  uploadType?:
4341
4444
  string;
4342
- }): Request<GooglePrivacyDlpV2ListInspectTemplatesResponse>;
4343
- /** Updates the InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn more. */
4445
+ }): Request<GooglePrivacyDlpV2ListDiscoveryConfigsResponse>;
4446
+ /** Updates a discovery configuration. */
4344
4447
  patch(request: {
4345
4448
  /** V1 error format. */
4346
4449
  "$.xgafv"?:
@@ -4360,10 +4463,7 @@ declare namespace gapi.client {
4360
4463
  /** 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. */
4361
4464
  key?:
4362
4465
  string;
4363
- /**
4364
- * Required. Resource name of organization and inspectTemplate to be updated, for example `organizations/433245324/inspectTemplates/432452342` or
4365
- * projects/project-id/inspectTemplates/432452342.
4366
- */
4466
+ /** Required. Resource name of the project and the configuration, for example `projects/dlp-test-project/discoveryConfigs/53234423`. */
4367
4467
  name:
4368
4468
  string;
4369
4469
  /** OAuth 2.0 token for the current user. */
@@ -4383,8 +4483,8 @@ declare namespace gapi.client {
4383
4483
  string;
4384
4484
  /** Request body */
4385
4485
  resource:
4386
- GooglePrivacyDlpV2UpdateInspectTemplateRequest;
4387
- }): Request<GooglePrivacyDlpV2InspectTemplate>;
4486
+ GooglePrivacyDlpV2UpdateDiscoveryConfigRequest;
4487
+ }): Request<GooglePrivacyDlpV2DiscoveryConfig>;
4388
4488
  patch(request: {
4389
4489
  /** V1 error format. */
4390
4490
  "$.xgafv"?:
@@ -4404,10 +4504,7 @@ declare namespace gapi.client {
4404
4504
  /** 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. */
4405
4505
  key?:
4406
4506
  string;
4407
- /**
4408
- * Required. Resource name of organization and inspectTemplate to be updated, for example `organizations/433245324/inspectTemplates/432452342` or
4409
- * projects/project-id/inspectTemplates/432452342.
4410
- */
4507
+ /** Required. Resource name of the project and the configuration, for example `projects/dlp-test-project/discoveryConfigs/53234423`. */
4411
4508
  name:
4412
4509
  string;
4413
4510
  /** OAuth 2.0 token for the current user. */
@@ -4426,14 +4523,14 @@ declare namespace gapi.client {
4426
4523
  uploadType?:
4427
4524
  string;
4428
4525
  },
4429
- body: GooglePrivacyDlpV2UpdateInspectTemplateRequest): Request<GooglePrivacyDlpV2InspectTemplate>;
4526
+ body: GooglePrivacyDlpV2UpdateDiscoveryConfigRequest): Request<GooglePrivacyDlpV2DiscoveryConfig>;
4430
4527
  }
4431
- interface JobTriggersResource {
4528
+ interface DlpJobsResource {
4432
4529
  /**
4433
- * Creates a job trigger to run DLP actions such as scanning storage for sensitive information on a set schedule. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn
4434
- * more.
4530
+ * Lists DlpJobs that match the specified filter in the request. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to
4531
+ * learn more.
4435
4532
  */
4436
- create(request: {
4533
+ list(request?: {
4437
4534
  /** V1 error format. */
4438
4535
  "$.xgafv"?:
4439
4536
  string;
@@ -4449,12 +4546,39 @@ declare namespace gapi.client {
4449
4546
  /** Selector specifying which fields to include in a partial response. */
4450
4547
  fields?:
4451
4548
  string;
4549
+ /**
4550
+ * 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
4551
+ * of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * Supported fields/values for inspect jobs: - `state` -
4552
+ * PENDING|RUNNING|CANCELED|FINISHED|FAILED - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY - `trigger_name` - The name of the trigger that created the job. - 'end_time` -
4553
+ * Corresponds to the time the job finished. - 'start_time` - Corresponds to the time the job finished. * Supported fields for risk analysis jobs: - `state` -
4554
+ * RUNNING|CANCELED|FINISHED|FAILED - 'end_time` - Corresponds to the time the job finished. - 'start_time` - Corresponds to the time the job finished. * The operator must be `=`
4555
+ * or `!=`. Examples: * inspected_storage = cloud_storage AND state = done * inspected_storage = cloud_storage OR inspected_storage = bigquery * inspected_storage = cloud_storage
4556
+ * AND (state = done OR state = canceled) * end_time > \"2017-12-12T00:00:00+00:00\" The length of this field should be no more than 500 characters.
4557
+ */
4558
+ filter?:
4559
+ string;
4452
4560
  /** 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. */
4453
4561
  key?:
4454
4562
  string;
4563
+ /** Deprecated. This field has no effect. */
4564
+ locationId?:
4565
+ string;
4455
4566
  /** OAuth 2.0 token for the current user. */
4456
4567
  oauth_token?:
4457
4568
  string;
4569
+ /**
4570
+ * Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space
4571
+ * characters are insignificant. Example: `name asc, end_time asc, create_time desc` Supported fields are: - `create_time`: corresponds to the time the job was created. -
4572
+ * `end_time`: corresponds to the time the job ended. - `name`: corresponds to the job's name. - `state`: corresponds to `state`
4573
+ */
4574
+ orderBy?:
4575
+ string;
4576
+ /** The standard list page size. */
4577
+ pageSize?:
4578
+ number;
4579
+ /** The standard list page token. */
4580
+ pageToken?:
4581
+ string;
4458
4582
  /**
4459
4583
  * Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing
4460
4584
  * location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
@@ -4469,18 +4593,24 @@ declare namespace gapi.client {
4469
4593
  /** 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. */
4470
4594
  quotaUser?:
4471
4595
  string;
4596
+ /** The type of job. Defaults to `DlpJobType.INSPECT` */
4597
+ type?:
4598
+ string;
4472
4599
  /** Upload protocol for media (e.g. "raw", "multipart"). */
4473
4600
  upload_protocol?:
4474
4601
  string;
4475
4602
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4476
4603
  uploadType?:
4477
4604
  string;
4478
- /** Request body */
4479
- resource:
4480
- GooglePrivacyDlpV2CreateJobTriggerRequest;
4481
- }): Request<GooglePrivacyDlpV2JobTrigger>;
4482
- create(request: {
4483
- /** V1 error format. */
4605
+ }): Request<GooglePrivacyDlpV2ListDlpJobsResponse>;
4606
+ }
4607
+ interface InspectTemplatesResource {
4608
+ /**
4609
+ * Creates an InspectTemplate for reusing frequently used configuration for inspecting content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates to learn
4610
+ * more.
4611
+ */
4612
+ create(request: {
4613
+ /** V1 error format. */
4484
4614
  "$.xgafv"?:
4485
4615
  string;
4486
4616
  /** OAuth access token. */
@@ -4502,9 +4632,57 @@ declare namespace gapi.client {
4502
4632
  oauth_token?:
4503
4633
  string;
4504
4634
  /**
4505
- * Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing
4635
+ * Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing
4506
4636
  * location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
4507
- * location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and
4637
+ * location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope,
4638
+ * no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and
4639
+ * specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
4640
+ */
4641
+ parent:
4642
+ string;
4643
+ /** Returns response with indentations and line breaks. */
4644
+ prettyPrint?:
4645
+ boolean;
4646
+ /** 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. */
4647
+ quotaUser?:
4648
+ string;
4649
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4650
+ upload_protocol?:
4651
+ string;
4652
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4653
+ uploadType?:
4654
+ string;
4655
+ /** Request body */
4656
+ resource:
4657
+ GooglePrivacyDlpV2CreateInspectTemplateRequest;
4658
+ }): Request<GooglePrivacyDlpV2InspectTemplate>;
4659
+ create(request: {
4660
+ /** V1 error format. */
4661
+ "$.xgafv"?:
4662
+ string;
4663
+ /** OAuth access token. */
4664
+ access_token?:
4665
+ string;
4666
+ /** Data format for response. */
4667
+ alt?:
4668
+ string;
4669
+ /** JSONP */
4670
+ callback?:
4671
+ string;
4672
+ /** Selector specifying which fields to include in a partial response. */
4673
+ fields?:
4674
+ string;
4675
+ /** 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. */
4676
+ key?:
4677
+ string;
4678
+ /** OAuth 2.0 token for the current user. */
4679
+ oauth_token?:
4680
+ string;
4681
+ /**
4682
+ * Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing
4683
+ * location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
4684
+ * location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope,
4685
+ * no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and
4508
4686
  * specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
4509
4687
  */
4510
4688
  parent:
@@ -4522,8 +4700,8 @@ declare namespace gapi.client {
4522
4700
  uploadType?:
4523
4701
  string;
4524
4702
  },
4525
- body: GooglePrivacyDlpV2CreateJobTriggerRequest): Request<GooglePrivacyDlpV2JobTrigger>;
4526
- /** Deletes a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. */
4703
+ body: GooglePrivacyDlpV2CreateInspectTemplateRequest): Request<GooglePrivacyDlpV2InspectTemplate>;
4704
+ /** Deletes an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn more. */
4527
4705
  delete(request?: {
4528
4706
  /** V1 error format. */
4529
4707
  "$.xgafv"?:
@@ -4543,7 +4721,10 @@ declare namespace gapi.client {
4543
4721
  /** 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. */
4544
4722
  key?:
4545
4723
  string;
4546
- /** Required. Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`. */
4724
+ /**
4725
+ * Required. Resource name of the organization and inspectTemplate to be deleted, for example `organizations/433245324/inspectTemplates/432452342` or
4726
+ * projects/project-id/inspectTemplates/432452342.
4727
+ */
4547
4728
  name:
4548
4729
  string;
4549
4730
  /** OAuth 2.0 token for the current user. */
@@ -4562,7 +4743,7 @@ declare namespace gapi.client {
4562
4743
  uploadType?:
4563
4744
  string;
4564
4745
  }): Request<{}>;
4565
- /** Gets a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. */
4746
+ /** Gets an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn more. */
4566
4747
  get(request?: {
4567
4748
  /** V1 error format. */
4568
4749
  "$.xgafv"?:
@@ -4582,7 +4763,10 @@ declare namespace gapi.client {
4582
4763
  /** 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. */
4583
4764
  key?:
4584
4765
  string;
4585
- /** Required. Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`. */
4766
+ /**
4767
+ * Required. Resource name of the organization and inspectTemplate to be read, for example `organizations/433245324/inspectTemplates/432452342` or
4768
+ * projects/project-id/inspectTemplates/432452342.
4769
+ */
4586
4770
  name:
4587
4771
  string;
4588
4772
  /** OAuth 2.0 token for the current user. */
@@ -4600,8 +4784,8 @@ declare namespace gapi.client {
4600
4784
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4601
4785
  uploadType?:
4602
4786
  string;
4603
- }): Request<GooglePrivacyDlpV2JobTrigger>;
4604
- /** Lists job triggers. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. */
4787
+ }): Request<GooglePrivacyDlpV2InspectTemplate>;
4788
+ /** Lists InspectTemplates. See https://cloud.google.com/dlp/docs/creating-templates to learn more. */
4605
4789
  list(request?: {
4606
4790
  /** V1 error format. */
4607
4791
  "$.xgafv"?:
@@ -4618,16 +4802,6 @@ declare namespace gapi.client {
4618
4802
  /** Selector specifying which fields to include in a partial response. */
4619
4803
  fields?:
4620
4804
  string;
4621
- /**
4622
- * 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
4623
- * of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * Supported fields/values for inspect triggers: - `status` -
4624
- * HEALTHY|PAUSED|CANCELLED - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY - 'last_run_time` - RFC 3339 formatted timestamp, surrounded by quotation marks. Nanoseconds
4625
- * are ignored. - 'error_count' - Number of errors that have occurred while running. * The operator must be `=` or `!=` for status and inspected_storage. Examples: *
4626
- * inspected_storage = cloud_storage AND status = HEALTHY * inspected_storage = cloud_storage OR inspected_storage = bigquery * inspected_storage = cloud_storage AND (state =
4627
- * PAUSED OR state = HEALTHY) * last_run_time > \"2017-12-12T00:00:00+00:00\" The length of this field should be no more than 500 characters.
4628
- */
4629
- filter?:
4630
- string;
4631
4805
  /** 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. */
4632
4806
  key?:
4633
4807
  string;
@@ -4638,23 +4812,23 @@ declare namespace gapi.client {
4638
4812
  oauth_token?:
4639
4813
  string;
4640
4814
  /**
4641
- * Comma separated list of triggeredJob fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space
4642
- * characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the JobTrigger was created. -
4643
- * `update_time`: corresponds to the time the JobTrigger was last updated. - `last_run_time`: corresponds to the last time the JobTrigger ran. - `name`: corresponds to the
4644
- * JobTrigger's name. - `display_name`: corresponds to the JobTrigger's display name. - `status`: corresponds to JobTrigger's status.
4815
+ * Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space
4816
+ * characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the template was created. -
4817
+ * `update_time`: corresponds to the time the template was last updated. - `name`: corresponds to the template's name. - `display_name`: corresponds to the template's display name.
4645
4818
  */
4646
4819
  orderBy?:
4647
4820
  string;
4648
- /** Size of the page, can be limited by a server. */
4821
+ /** Size of the page. This value can be limited by the server. If zero server returns a page of max size 100. */
4649
4822
  pageSize?:
4650
4823
  number;
4651
- /** Page token to continue retrieval. Comes from previous call to ListJobTriggers. `order_by` field must not change for subsequent calls. */
4824
+ /** Page token to continue retrieval. Comes from the previous call to `ListInspectTemplates`. */
4652
4825
  pageToken?:
4653
4826
  string;
4654
4827
  /**
4655
- * Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing
4828
+ * Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing
4656
4829
  * location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
4657
- * location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and
4830
+ * location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope,
4831
+ * no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and
4658
4832
  * specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
4659
4833
  */
4660
4834
  parent:
@@ -4665,17 +4839,14 @@ declare namespace gapi.client {
4665
4839
  /** 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. */
4666
4840
  quotaUser?:
4667
4841
  string;
4668
- /** The type of jobs. Will use `DlpJobType.INSPECT` if not set. */
4669
- type?:
4670
- string;
4671
4842
  /** Upload protocol for media (e.g. "raw", "multipart"). */
4672
4843
  upload_protocol?:
4673
4844
  string;
4674
4845
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4675
4846
  uploadType?:
4676
4847
  string;
4677
- }): Request<GooglePrivacyDlpV2ListJobTriggersResponse>;
4678
- /** Updates a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. */
4848
+ }): Request<GooglePrivacyDlpV2ListInspectTemplatesResponse>;
4849
+ /** Updates the InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn more. */
4679
4850
  patch(request: {
4680
4851
  /** V1 error format. */
4681
4852
  "$.xgafv"?:
@@ -4695,7 +4866,10 @@ declare namespace gapi.client {
4695
4866
  /** 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. */
4696
4867
  key?:
4697
4868
  string;
4698
- /** Required. Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`. */
4869
+ /**
4870
+ * Required. Resource name of organization and inspectTemplate to be updated, for example `organizations/433245324/inspectTemplates/432452342` or
4871
+ * projects/project-id/inspectTemplates/432452342.
4872
+ */
4699
4873
  name:
4700
4874
  string;
4701
4875
  /** OAuth 2.0 token for the current user. */
@@ -4715,8 +4889,8 @@ declare namespace gapi.client {
4715
4889
  string;
4716
4890
  /** Request body */
4717
4891
  resource:
4718
- GooglePrivacyDlpV2UpdateJobTriggerRequest;
4719
- }): Request<GooglePrivacyDlpV2JobTrigger>;
4892
+ GooglePrivacyDlpV2UpdateInspectTemplateRequest;
4893
+ }): Request<GooglePrivacyDlpV2InspectTemplate>;
4720
4894
  patch(request: {
4721
4895
  /** V1 error format. */
4722
4896
  "$.xgafv"?:
@@ -4736,7 +4910,10 @@ declare namespace gapi.client {
4736
4910
  /** 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. */
4737
4911
  key?:
4738
4912
  string;
4739
- /** Required. Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`. */
4913
+ /**
4914
+ * Required. Resource name of organization and inspectTemplate to be updated, for example `organizations/433245324/inspectTemplates/432452342` or
4915
+ * projects/project-id/inspectTemplates/432452342.
4916
+ */
4740
4917
  name:
4741
4918
  string;
4742
4919
  /** OAuth 2.0 token for the current user. */
@@ -4755,10 +4932,13 @@ declare namespace gapi.client {
4755
4932
  uploadType?:
4756
4933
  string;
4757
4934
  },
4758
- body: GooglePrivacyDlpV2UpdateJobTriggerRequest): Request<GooglePrivacyDlpV2JobTrigger>;
4935
+ body: GooglePrivacyDlpV2UpdateInspectTemplateRequest): Request<GooglePrivacyDlpV2InspectTemplate>;
4759
4936
  }
4760
- interface StoredInfoTypesResource {
4761
- /** Creates a pre-built stored infoType to be used for inspection. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. */
4937
+ interface JobTriggersResource {
4938
+ /**
4939
+ * Creates a job trigger to run DLP actions such as scanning storage for sensitive information on a set schedule. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn
4940
+ * more.
4941
+ */
4762
4942
  create(request: {
4763
4943
  /** V1 error format. */
4764
4944
  "$.xgafv"?:
@@ -4782,10 +4962,9 @@ declare namespace gapi.client {
4782
4962
  oauth_token?:
4783
4963
  string;
4784
4964
  /**
4785
- * Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing
4965
+ * Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing
4786
4966
  * location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
4787
- * location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope,
4788
- * no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and
4967
+ * location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and
4789
4968
  * specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
4790
4969
  */
4791
4970
  parent:
@@ -4804,8 +4983,8 @@ declare namespace gapi.client {
4804
4983
  string;
4805
4984
  /** Request body */
4806
4985
  resource:
4807
- GooglePrivacyDlpV2CreateStoredInfoTypeRequest;
4808
- }): Request<GooglePrivacyDlpV2StoredInfoType>;
4986
+ GooglePrivacyDlpV2CreateJobTriggerRequest;
4987
+ }): Request<GooglePrivacyDlpV2JobTrigger>;
4809
4988
  create(request: {
4810
4989
  /** V1 error format. */
4811
4990
  "$.xgafv"?:
@@ -4829,10 +5008,9 @@ declare namespace gapi.client {
4829
5008
  oauth_token?:
4830
5009
  string;
4831
5010
  /**
4832
- * Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing
5011
+ * Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing
4833
5012
  * location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
4834
- * location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope,
4835
- * no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and
5013
+ * location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and
4836
5014
  * specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
4837
5015
  */
4838
5016
  parent:
@@ -4850,8 +5028,8 @@ declare namespace gapi.client {
4850
5028
  uploadType?:
4851
5029
  string;
4852
5030
  },
4853
- body: GooglePrivacyDlpV2CreateStoredInfoTypeRequest): Request<GooglePrivacyDlpV2StoredInfoType>;
4854
- /** Deletes a stored infoType. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. */
5031
+ body: GooglePrivacyDlpV2CreateJobTriggerRequest): Request<GooglePrivacyDlpV2JobTrigger>;
5032
+ /** Deletes a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. */
4855
5033
  delete(request?: {
4856
5034
  /** V1 error format. */
4857
5035
  "$.xgafv"?:
@@ -4871,10 +5049,7 @@ declare namespace gapi.client {
4871
5049
  /** 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. */
4872
5050
  key?:
4873
5051
  string;
4874
- /**
4875
- * Required. Resource name of the organization and storedInfoType to be deleted, for example `organizations/433245324/storedInfoTypes/432452342` or
4876
- * projects/project-id/storedInfoTypes/432452342.
4877
- */
5052
+ /** Required. Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`. */
4878
5053
  name:
4879
5054
  string;
4880
5055
  /** OAuth 2.0 token for the current user. */
@@ -4893,7 +5068,7 @@ declare namespace gapi.client {
4893
5068
  uploadType?:
4894
5069
  string;
4895
5070
  }): Request<{}>;
4896
- /** Gets a stored infoType. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. */
5071
+ /** Gets a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. */
4897
5072
  get(request?: {
4898
5073
  /** V1 error format. */
4899
5074
  "$.xgafv"?:
@@ -4913,10 +5088,7 @@ declare namespace gapi.client {
4913
5088
  /** 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. */
4914
5089
  key?:
4915
5090
  string;
4916
- /**
4917
- * Required. Resource name of the organization and storedInfoType to be read, for example `organizations/433245324/storedInfoTypes/432452342` or
4918
- * projects/project-id/storedInfoTypes/432452342.
4919
- */
5091
+ /** Required. Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`. */
4920
5092
  name:
4921
5093
  string;
4922
5094
  /** OAuth 2.0 token for the current user. */
@@ -4934,8 +5106,8 @@ declare namespace gapi.client {
4934
5106
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4935
5107
  uploadType?:
4936
5108
  string;
4937
- }): Request<GooglePrivacyDlpV2StoredInfoType>;
4938
- /** Lists stored infoTypes. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. */
5109
+ }): Request<GooglePrivacyDlpV2JobTrigger>;
5110
+ /** Lists job triggers. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. */
4939
5111
  list(request?: {
4940
5112
  /** V1 error format. */
4941
5113
  "$.xgafv"?:
@@ -4952,6 +5124,16 @@ declare namespace gapi.client {
4952
5124
  /** Selector specifying which fields to include in a partial response. */
4953
5125
  fields?:
4954
5126
  string;
5127
+ /**
5128
+ * 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
5129
+ * of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * Supported fields/values for inspect triggers: - `status` -
5130
+ * HEALTHY|PAUSED|CANCELLED - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY - 'last_run_time` - RFC 3339 formatted timestamp, surrounded by quotation marks. Nanoseconds
5131
+ * are ignored. - 'error_count' - Number of errors that have occurred while running. * The operator must be `=` or `!=` for status and inspected_storage. Examples: *
5132
+ * inspected_storage = cloud_storage AND status = HEALTHY * inspected_storage = cloud_storage OR inspected_storage = bigquery * inspected_storage = cloud_storage AND (state =
5133
+ * PAUSED OR state = HEALTHY) * last_run_time > \"2017-12-12T00:00:00+00:00\" The length of this field should be no more than 500 characters.
5134
+ */
5135
+ filter?:
5136
+ string;
4955
5137
  /** 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. */
4956
5138
  key?:
4957
5139
  string;
@@ -4962,20 +5144,21 @@ declare namespace gapi.client {
4962
5144
  oauth_token?:
4963
5145
  string;
4964
5146
  /**
4965
- * Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters
4966
- * are insignificant. Example: `name asc, display_name, create_time desc` Supported fields are: - `create_time`: corresponds to the time the most recent version of the resource was
4967
- * created. - `state`: corresponds to the state of the resource. - `name`: corresponds to resource name. - `display_name`: corresponds to info type's display name.
5147
+ * Comma separated list of triggeredJob fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant
5148
+ * space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the JobTrigger was created.
5149
+ * - `update_time`: corresponds to the time the JobTrigger was last updated. - `last_run_time`: corresponds to the last time the JobTrigger ran. - `name`: corresponds to the
5150
+ * JobTrigger's name. - `display_name`: corresponds to the JobTrigger's display name. - `status`: corresponds to JobTrigger's status.
4968
5151
  */
4969
5152
  orderBy?:
4970
5153
  string;
4971
- /** Size of the page, can be limited by the server. If zero server returns a page of max size 100. */
5154
+ /** Size of the page. This value can be limited by a server. */
4972
5155
  pageSize?:
4973
5156
  number;
4974
- /** Page token to continue retrieval. Comes from previous call to `ListStoredInfoTypes`. */
5157
+ /** Page token to continue retrieval. Comes from the previous call to ListJobTriggers. `order_by` field must not change for subsequent calls. */
4975
5158
  pageToken?:
4976
5159
  string;
4977
5160
  /**
4978
- * Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing
5161
+ * Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing
4979
5162
  * location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
4980
5163
  * location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and
4981
5164
  * specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
@@ -4988,17 +5171,17 @@ declare namespace gapi.client {
4988
5171
  /** 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. */
4989
5172
  quotaUser?:
4990
5173
  string;
5174
+ /** The type of jobs. Will use `DlpJobType.INSPECT` if not set. */
5175
+ type?:
5176
+ string;
4991
5177
  /** Upload protocol for media (e.g. "raw", "multipart"). */
4992
5178
  upload_protocol?:
4993
5179
  string;
4994
5180
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4995
5181
  uploadType?:
4996
5182
  string;
4997
- }): Request<GooglePrivacyDlpV2ListStoredInfoTypesResponse>;
4998
- /**
4999
- * Updates the stored infoType by creating a new version. The existing version will continue to be used until the new version is ready. See
5000
- * https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more.
5001
- */
5183
+ }): Request<GooglePrivacyDlpV2ListJobTriggersResponse>;
5184
+ /** Updates a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. */
5002
5185
  patch(request: {
5003
5186
  /** V1 error format. */
5004
5187
  "$.xgafv"?:
@@ -5018,10 +5201,7 @@ declare namespace gapi.client {
5018
5201
  /** 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. */
5019
5202
  key?:
5020
5203
  string;
5021
- /**
5022
- * Required. Resource name of organization and storedInfoType to be updated, for example `organizations/433245324/storedInfoTypes/432452342` or
5023
- * projects/project-id/storedInfoTypes/432452342.
5024
- */
5204
+ /** Required. Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`. */
5025
5205
  name:
5026
5206
  string;
5027
5207
  /** OAuth 2.0 token for the current user. */
@@ -5041,8 +5221,8 @@ declare namespace gapi.client {
5041
5221
  string;
5042
5222
  /** Request body */
5043
5223
  resource:
5044
- GooglePrivacyDlpV2UpdateStoredInfoTypeRequest;
5045
- }): Request<GooglePrivacyDlpV2StoredInfoType>;
5224
+ GooglePrivacyDlpV2UpdateJobTriggerRequest;
5225
+ }): Request<GooglePrivacyDlpV2JobTrigger>;
5046
5226
  patch(request: {
5047
5227
  /** V1 error format. */
5048
5228
  "$.xgafv"?:
@@ -5062,10 +5242,7 @@ declare namespace gapi.client {
5062
5242
  /** 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. */
5063
5243
  key?:
5064
5244
  string;
5065
- /**
5066
- * Required. Resource name of organization and storedInfoType to be updated, for example `organizations/433245324/storedInfoTypes/432452342` or
5067
- * projects/project-id/storedInfoTypes/432452342.
5068
- */
5245
+ /** Required. Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`. */
5069
5246
  name:
5070
5247
  string;
5071
5248
  /** OAuth 2.0 token for the current user. */
@@ -5084,19 +5261,7 @@ declare namespace gapi.client {
5084
5261
  uploadType?:
5085
5262
  string;
5086
5263
  },
5087
- body: GooglePrivacyDlpV2UpdateStoredInfoTypeRequest): Request<GooglePrivacyDlpV2StoredInfoType>;
5088
- }
5089
- interface LocationsResource {
5090
- deidentifyTemplates:
5091
- DeidentifyTemplatesResource;
5092
- dlpJobs:
5093
- DlpJobsResource;
5094
- inspectTemplates:
5095
- InspectTemplatesResource;
5096
- jobTriggers:
5097
- JobTriggersResource;
5098
- storedInfoTypes:
5099
- StoredInfoTypesResource;
5264
+ body: GooglePrivacyDlpV2UpdateJobTriggerRequest): Request<GooglePrivacyDlpV2JobTrigger>;
5100
5265
  }
5101
5266
  interface StoredInfoTypesResource {
5102
5267
  /** Creates a pre-built stored infoType to be used for inspection. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. */
@@ -5303,16 +5468,16 @@ declare namespace gapi.client {
5303
5468
  oauth_token?:
5304
5469
  string;
5305
5470
  /**
5306
- * Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters
5307
- * are insignificant. Example: `name asc, display_name, create_time desc` Supported fields are: - `create_time`: corresponds to the time the most recent version of the resource was
5308
- * created. - `state`: corresponds to the state of the resource. - `name`: corresponds to resource name. - `display_name`: corresponds to info type's display name.
5471
+ * Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space
5472
+ * characters are insignificant. Example: `name asc, display_name, create_time desc` Supported fields are: - `create_time`: corresponds to the time the most recent version of the
5473
+ * resource was created. - `state`: corresponds to the state of the resource. - `name`: corresponds to resource name. - `display_name`: corresponds to info type's display name.
5309
5474
  */
5310
5475
  orderBy?:
5311
5476
  string;
5312
- /** Size of the page, can be limited by the server. If zero server returns a page of max size 100. */
5477
+ /** Size of the page. This value can be limited by the server. If zero server returns a page of max size 100. */
5313
5478
  pageSize?:
5314
5479
  number;
5315
- /** Page token to continue retrieval. Comes from previous call to `ListStoredInfoTypes`. */
5480
+ /** Page token to continue retrieval. Comes from the previous call to `ListStoredInfoTypes`. */
5316
5481
  pageToken?:
5317
5482
  string;
5318
5483
  /**
@@ -5427,23 +5592,23 @@ declare namespace gapi.client {
5427
5592
  },
5428
5593
  body: GooglePrivacyDlpV2UpdateStoredInfoTypeRequest): Request<GooglePrivacyDlpV2StoredInfoType>;
5429
5594
  }
5430
- interface OrganizationsResource {
5595
+ interface LocationsResource {
5431
5596
  deidentifyTemplates:
5432
5597
  DeidentifyTemplatesResource;
5598
+ discoveryConfigs:
5599
+ DiscoveryConfigsResource;
5600
+ dlpJobs:
5601
+ DlpJobsResource;
5433
5602
  inspectTemplates:
5434
5603
  InspectTemplatesResource;
5435
- locations:
5436
- LocationsResource;
5604
+ jobTriggers:
5605
+ JobTriggersResource;
5437
5606
  storedInfoTypes:
5438
5607
  StoredInfoTypesResource;
5439
5608
  }
5440
- interface ContentResource {
5441
- /**
5442
- * De-identifies potentially sensitive info from a ContentItem. This method has limits on input size and output size. See https://cloud.google.com/dlp/docs/deidentify-sensitive-data to
5443
- * learn more. When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may
5444
- * change over time as detectors are updated.
5445
- */
5446
- deidentify(request: {
5609
+ interface StoredInfoTypesResource {
5610
+ /** Creates a pre-built stored infoType to be used for inspection. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. */
5611
+ create(request: {
5447
5612
  /** V1 error format. */
5448
5613
  "$.xgafv"?:
5449
5614
  string;
@@ -5466,10 +5631,11 @@ declare namespace gapi.client {
5466
5631
  oauth_token?:
5467
5632
  string;
5468
5633
  /**
5469
- * Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): +
5470
- * Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The
5471
- * following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
5472
- * parent=projects/example-project/locations/europe-west3
5634
+ * Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing
5635
+ * location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
5636
+ * location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope,
5637
+ * no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and
5638
+ * specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
5473
5639
  */
5474
5640
  parent:
5475
5641
  string;
@@ -5487,9 +5653,9 @@ declare namespace gapi.client {
5487
5653
  string;
5488
5654
  /** Request body */
5489
5655
  resource:
5490
- GooglePrivacyDlpV2DeidentifyContentRequest;
5491
- }): Request<GooglePrivacyDlpV2DeidentifyContentResponse>;
5492
- deidentify(request: {
5656
+ GooglePrivacyDlpV2CreateStoredInfoTypeRequest;
5657
+ }): Request<GooglePrivacyDlpV2StoredInfoType>;
5658
+ create(request: {
5493
5659
  /** V1 error format. */
5494
5660
  "$.xgafv"?:
5495
5661
  string;
@@ -5512,10 +5678,11 @@ declare namespace gapi.client {
5512
5678
  oauth_token?:
5513
5679
  string;
5514
5680
  /**
5515
- * Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): +
5516
- * Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The
5517
- * following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
5518
- * parent=projects/example-project/locations/europe-west3
5681
+ * Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing
5682
+ * location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
5683
+ * location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope,
5684
+ * no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and
5685
+ * specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
5519
5686
  */
5520
5687
  parent:
5521
5688
  string;
@@ -5532,13 +5699,9 @@ declare namespace gapi.client {
5532
5699
  uploadType?:
5533
5700
  string;
5534
5701
  },
5535
- body: GooglePrivacyDlpV2DeidentifyContentRequest): Request<GooglePrivacyDlpV2DeidentifyContentResponse>;
5536
- /**
5537
- * Finds potentially sensitive info in content. This method has limits on input size, processing time, and output size. When no InfoTypes or CustomInfoTypes are specified in this
5538
- * request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. For how to guides, see
5539
- * https://cloud.google.com/dlp/docs/inspecting-images and https://cloud.google.com/dlp/docs/inspecting-text,
5540
- */
5541
- inspect(request: {
5702
+ body: GooglePrivacyDlpV2CreateStoredInfoTypeRequest): Request<GooglePrivacyDlpV2StoredInfoType>;
5703
+ /** Deletes a stored infoType. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. */
5704
+ delete(request?: {
5542
5705
  /** V1 error format. */
5543
5706
  "$.xgafv"?:
5544
5707
  string;
@@ -5557,16 +5720,14 @@ declare namespace gapi.client {
5557
5720
  /** 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. */
5558
5721
  key?:
5559
5722
  string;
5560
- /** OAuth 2.0 token for the current user. */
5561
- oauth_token?:
5562
- string;
5563
5723
  /**
5564
- * Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): +
5565
- * Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The
5566
- * following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
5567
- * parent=projects/example-project/locations/europe-west3
5724
+ * Required. Resource name of the organization and storedInfoType to be deleted, for example `organizations/433245324/storedInfoTypes/432452342` or
5725
+ * projects/project-id/storedInfoTypes/432452342.
5568
5726
  */
5569
- parent:
5727
+ name:
5728
+ string;
5729
+ /** OAuth 2.0 token for the current user. */
5730
+ oauth_token?:
5570
5731
  string;
5571
5732
  /** Returns response with indentations and line breaks. */
5572
5733
  prettyPrint?:
@@ -5580,11 +5741,9 @@ declare namespace gapi.client {
5580
5741
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
5581
5742
  uploadType?:
5582
5743
  string;
5583
- /** Request body */
5584
- resource:
5585
- GooglePrivacyDlpV2InspectContentRequest;
5586
- }): Request<GooglePrivacyDlpV2InspectContentResponse>;
5587
- inspect(request: {
5744
+ }): Request<{}>;
5745
+ /** Gets a stored infoType. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. */
5746
+ get(request?: {
5588
5747
  /** V1 error format. */
5589
5748
  "$.xgafv"?:
5590
5749
  string;
@@ -5603,16 +5762,14 @@ declare namespace gapi.client {
5603
5762
  /** 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. */
5604
5763
  key?:
5605
5764
  string;
5606
- /** OAuth 2.0 token for the current user. */
5607
- oauth_token?:
5608
- string;
5609
5765
  /**
5610
- * Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): +
5611
- * Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The
5612
- * following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
5613
- * parent=projects/example-project/locations/europe-west3
5766
+ * Required. Resource name of the organization and storedInfoType to be read, for example `organizations/433245324/storedInfoTypes/432452342` or
5767
+ * projects/project-id/storedInfoTypes/432452342.
5614
5768
  */
5615
- parent:
5769
+ name:
5770
+ string;
5771
+ /** OAuth 2.0 token for the current user. */
5772
+ oauth_token?:
5616
5773
  string;
5617
5774
  /** Returns response with indentations and line breaks. */
5618
5775
  prettyPrint?:
@@ -5626,10 +5783,9 @@ declare namespace gapi.client {
5626
5783
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
5627
5784
  uploadType?:
5628
5785
  string;
5629
- },
5630
- body: GooglePrivacyDlpV2InspectContentRequest): Request<GooglePrivacyDlpV2InspectContentResponse>;
5631
- /** Re-identifies content that has been de-identified. See https://cloud.google.com/dlp/docs/pseudonymization#re-identification_in_free_text_code_example to learn more. */
5632
- reidentify(request: {
5786
+ }): Request<GooglePrivacyDlpV2StoredInfoType>;
5787
+ /** Lists stored infoTypes. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. */
5788
+ list(request?: {
5633
5789
  /** V1 error format. */
5634
5790
  "$.xgafv"?:
5635
5791
  string;
@@ -5648,11 +5804,27 @@ declare namespace gapi.client {
5648
5804
  /** 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. */
5649
5805
  key?:
5650
5806
  string;
5807
+ /** Deprecated. This field has no effect. */
5808
+ locationId?:
5809
+ string;
5651
5810
  /** OAuth 2.0 token for the current user. */
5652
5811
  oauth_token?:
5653
5812
  string;
5654
5813
  /**
5655
- * Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing
5814
+ * Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space
5815
+ * characters are insignificant. Example: `name asc, display_name, create_time desc` Supported fields are: - `create_time`: corresponds to the time the most recent version of the
5816
+ * resource was created. - `state`: corresponds to the state of the resource. - `name`: corresponds to resource name. - `display_name`: corresponds to info type's display name.
5817
+ */
5818
+ orderBy?:
5819
+ string;
5820
+ /** Size of the page. This value can be limited by the server. If zero server returns a page of max size 100. */
5821
+ pageSize?:
5822
+ number;
5823
+ /** Page token to continue retrieval. Comes from the previous call to `ListStoredInfoTypes`. */
5824
+ pageToken?:
5825
+ string;
5826
+ /**
5827
+ * Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing
5656
5828
  * location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
5657
5829
  * location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and
5658
5830
  * specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
@@ -5671,11 +5843,12 @@ declare namespace gapi.client {
5671
5843
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
5672
5844
  uploadType?:
5673
5845
  string;
5674
- /** Request body */
5675
- resource:
5676
- GooglePrivacyDlpV2ReidentifyContentRequest;
5677
- }): Request<GooglePrivacyDlpV2ReidentifyContentResponse>;
5678
- reidentify(request: {
5846
+ }): Request<GooglePrivacyDlpV2ListStoredInfoTypesResponse>;
5847
+ /**
5848
+ * Updates the stored infoType by creating a new version. The existing version will continue to be used until the new version is ready. See
5849
+ * https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more.
5850
+ */
5851
+ patch(request: {
5679
5852
  /** V1 error format. */
5680
5853
  "$.xgafv"?:
5681
5854
  string;
@@ -5694,16 +5867,14 @@ declare namespace gapi.client {
5694
5867
  /** 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. */
5695
5868
  key?:
5696
5869
  string;
5697
- /** OAuth 2.0 token for the current user. */
5698
- oauth_token?:
5699
- string;
5700
5870
  /**
5701
- * Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing
5702
- * location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
5703
- * location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and
5704
- * specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
5871
+ * Required. Resource name of organization and storedInfoType to be updated, for example `organizations/433245324/storedInfoTypes/432452342` or
5872
+ * projects/project-id/storedInfoTypes/432452342.
5705
5873
  */
5706
- parent:
5874
+ name:
5875
+ string;
5876
+ /** OAuth 2.0 token for the current user. */
5877
+ oauth_token?:
5707
5878
  string;
5708
5879
  /** Returns response with indentations and line breaks. */
5709
5880
  prettyPrint?:
@@ -5717,15 +5888,11 @@ declare namespace gapi.client {
5717
5888
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
5718
5889
  uploadType?:
5719
5890
  string;
5720
- },
5721
- body: GooglePrivacyDlpV2ReidentifyContentRequest): Request<GooglePrivacyDlpV2ReidentifyContentResponse>;
5722
- }
5723
- interface DeidentifyTemplatesResource {
5724
- /**
5725
- * Creates a DeidentifyTemplate for reusing frequently used configuration for de-identifying content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates-deid
5726
- * to learn more.
5727
- */
5728
- create(request: {
5891
+ /** Request body */
5892
+ resource:
5893
+ GooglePrivacyDlpV2UpdateStoredInfoTypeRequest;
5894
+ }): Request<GooglePrivacyDlpV2StoredInfoType>;
5895
+ patch(request: {
5729
5896
  /** V1 error format. */
5730
5897
  "$.xgafv"?:
5731
5898
  string;
@@ -5744,17 +5911,14 @@ declare namespace gapi.client {
5744
5911
  /** 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. */
5745
5912
  key?:
5746
5913
  string;
5747
- /** OAuth 2.0 token for the current user. */
5748
- oauth_token?:
5749
- string;
5750
5914
  /**
5751
- * Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing
5752
- * location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
5753
- * location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope,
5754
- * no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and
5755
- * specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
5915
+ * Required. Resource name of organization and storedInfoType to be updated, for example `organizations/433245324/storedInfoTypes/432452342` or
5916
+ * projects/project-id/storedInfoTypes/432452342.
5756
5917
  */
5757
- parent:
5918
+ name:
5919
+ string;
5920
+ /** OAuth 2.0 token for the current user. */
5921
+ oauth_token?:
5758
5922
  string;
5759
5923
  /** Returns response with indentations and line breaks. */
5760
5924
  prettyPrint?:
@@ -5768,11 +5932,26 @@ declare namespace gapi.client {
5768
5932
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
5769
5933
  uploadType?:
5770
5934
  string;
5771
- /** Request body */
5772
- resource:
5773
- GooglePrivacyDlpV2CreateDeidentifyTemplateRequest;
5774
- }): Request<GooglePrivacyDlpV2DeidentifyTemplate>;
5775
- create(request: {
5935
+ },
5936
+ body: GooglePrivacyDlpV2UpdateStoredInfoTypeRequest): Request<GooglePrivacyDlpV2StoredInfoType>;
5937
+ }
5938
+ interface OrganizationsResource {
5939
+ deidentifyTemplates:
5940
+ DeidentifyTemplatesResource;
5941
+ inspectTemplates:
5942
+ InspectTemplatesResource;
5943
+ locations:
5944
+ LocationsResource;
5945
+ storedInfoTypes:
5946
+ StoredInfoTypesResource;
5947
+ }
5948
+ interface ContentResource {
5949
+ /**
5950
+ * De-identifies potentially sensitive info from a ContentItem. This method has limits on input size and output size. See https://cloud.google.com/dlp/docs/deidentify-sensitive-data to
5951
+ * learn more. When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may
5952
+ * change over time as detectors are updated.
5953
+ */
5954
+ deidentify(request: {
5776
5955
  /** V1 error format. */
5777
5956
  "$.xgafv"?:
5778
5957
  string;
@@ -5795,11 +5974,10 @@ declare namespace gapi.client {
5795
5974
  oauth_token?:
5796
5975
  string;
5797
5976
  /**
5798
- * Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing
5799
- * location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
5800
- * location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope,
5801
- * no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and
5802
- * specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
5977
+ * Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): +
5978
+ * Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The
5979
+ * following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
5980
+ * parent=projects/example-project/locations/europe-west3
5803
5981
  */
5804
5982
  parent:
5805
5983
  string;
@@ -5815,10 +5993,11 @@ declare namespace gapi.client {
5815
5993
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
5816
5994
  uploadType?:
5817
5995
  string;
5818
- },
5819
- body: GooglePrivacyDlpV2CreateDeidentifyTemplateRequest): Request<GooglePrivacyDlpV2DeidentifyTemplate>;
5820
- /** Deletes a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. */
5821
- delete(request?: {
5996
+ /** Request body */
5997
+ resource:
5998
+ GooglePrivacyDlpV2DeidentifyContentRequest;
5999
+ }): Request<GooglePrivacyDlpV2DeidentifyContentResponse>;
6000
+ deidentify(request: {
5822
6001
  /** V1 error format. */
5823
6002
  "$.xgafv"?:
5824
6003
  string;
@@ -5837,15 +6016,17 @@ declare namespace gapi.client {
5837
6016
  /** 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. */
5838
6017
  key?:
5839
6018
  string;
5840
- /**
5841
- * Required. Resource name of the organization and deidentify template to be deleted, for example `organizations/433245324/deidentifyTemplates/432452342` or
5842
- * projects/project-id/deidentifyTemplates/432452342.
5843
- */
5844
- name:
5845
- string;
5846
6019
  /** OAuth 2.0 token for the current user. */
5847
6020
  oauth_token?:
5848
6021
  string;
6022
+ /**
6023
+ * Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): +
6024
+ * Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The
6025
+ * following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
6026
+ * parent=projects/example-project/locations/europe-west3
6027
+ */
6028
+ parent:
6029
+ string;
5849
6030
  /** Returns response with indentations and line breaks. */
5850
6031
  prettyPrint?:
5851
6032
  boolean;
@@ -5858,9 +6039,14 @@ declare namespace gapi.client {
5858
6039
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
5859
6040
  uploadType?:
5860
6041
  string;
5861
- }): Request<{}>;
5862
- /** Gets a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. */
5863
- get(request?: {
6042
+ },
6043
+ body: GooglePrivacyDlpV2DeidentifyContentRequest): Request<GooglePrivacyDlpV2DeidentifyContentResponse>;
6044
+ /**
6045
+ * Finds potentially sensitive info in content. This method has limits on input size, processing time, and output size. When no InfoTypes or CustomInfoTypes are specified in this
6046
+ * request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. For how to guides, see
6047
+ * https://cloud.google.com/dlp/docs/inspecting-images and https://cloud.google.com/dlp/docs/inspecting-text,
6048
+ */
6049
+ inspect(request: {
5864
6050
  /** V1 error format. */
5865
6051
  "$.xgafv"?:
5866
6052
  string;
@@ -5879,15 +6065,17 @@ declare namespace gapi.client {
5879
6065
  /** 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. */
5880
6066
  key?:
5881
6067
  string;
5882
- /**
5883
- * Required. Resource name of the organization and deidentify template to be read, for example `organizations/433245324/deidentifyTemplates/432452342` or
5884
- * projects/project-id/deidentifyTemplates/432452342.
5885
- */
5886
- name:
5887
- string;
5888
6068
  /** OAuth 2.0 token for the current user. */
5889
6069
  oauth_token?:
5890
6070
  string;
6071
+ /**
6072
+ * Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): +
6073
+ * Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The
6074
+ * following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
6075
+ * parent=projects/example-project/locations/europe-west3
6076
+ */
6077
+ parent:
6078
+ string;
5891
6079
  /** Returns response with indentations and line breaks. */
5892
6080
  prettyPrint?:
5893
6081
  boolean;
@@ -5900,9 +6088,11 @@ declare namespace gapi.client {
5900
6088
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
5901
6089
  uploadType?:
5902
6090
  string;
5903
- }): Request<GooglePrivacyDlpV2DeidentifyTemplate>;
5904
- /** Lists DeidentifyTemplates. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. */
5905
- list(request?: {
6091
+ /** Request body */
6092
+ resource:
6093
+ GooglePrivacyDlpV2InspectContentRequest;
6094
+ }): Request<GooglePrivacyDlpV2InspectContentResponse>;
6095
+ inspect(request: {
5906
6096
  /** V1 error format. */
5907
6097
  "$.xgafv"?:
5908
6098
  string;
@@ -5921,31 +6111,14 @@ declare namespace gapi.client {
5921
6111
  /** 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. */
5922
6112
  key?:
5923
6113
  string;
5924
- /** Deprecated. This field has no effect. */
5925
- locationId?:
5926
- string;
5927
6114
  /** OAuth 2.0 token for the current user. */
5928
6115
  oauth_token?:
5929
6116
  string;
5930
6117
  /**
5931
- * Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters
5932
- * are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the template was created. - `update_time`:
5933
- * corresponds to the time the template was last updated. - `name`: corresponds to the template's name. - `display_name`: corresponds to the template's display name.
5934
- */
5935
- orderBy?:
5936
- string;
5937
- /** Size of the page, can be limited by the server. If zero server returns a page of max size 100. */
5938
- pageSize?:
5939
- number;
5940
- /** Page token to continue retrieval. Comes from previous call to `ListDeidentifyTemplates`. */
5941
- pageToken?:
5942
- string;
5943
- /**
5944
- * Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing
5945
- * location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
5946
- * location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope,
5947
- * no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and
5948
- * specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
6118
+ * Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): +
6119
+ * Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The
6120
+ * following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
6121
+ * parent=projects/example-project/locations/europe-west3
5949
6122
  */
5950
6123
  parent:
5951
6124
  string;
@@ -5961,9 +6134,10 @@ declare namespace gapi.client {
5961
6134
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
5962
6135
  uploadType?:
5963
6136
  string;
5964
- }): Request<GooglePrivacyDlpV2ListDeidentifyTemplatesResponse>;
5965
- /** Updates the DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. */
5966
- patch(request: {
6137
+ },
6138
+ body: GooglePrivacyDlpV2InspectContentRequest): Request<GooglePrivacyDlpV2InspectContentResponse>;
6139
+ /** Re-identifies content that has been de-identified. See https://cloud.google.com/dlp/docs/pseudonymization#re-identification_in_free_text_code_example to learn more. */
6140
+ reidentify(request: {
5967
6141
  /** V1 error format. */
5968
6142
  "$.xgafv"?:
5969
6143
  string;
@@ -5982,15 +6156,17 @@ declare namespace gapi.client {
5982
6156
  /** 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. */
5983
6157
  key?:
5984
6158
  string;
5985
- /**
5986
- * Required. Resource name of organization and deidentify template to be updated, for example `organizations/433245324/deidentifyTemplates/432452342` or
5987
- * projects/project-id/deidentifyTemplates/432452342.
5988
- */
5989
- name:
5990
- string;
5991
6159
  /** OAuth 2.0 token for the current user. */
5992
6160
  oauth_token?:
5993
6161
  string;
6162
+ /**
6163
+ * Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing
6164
+ * location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
6165
+ * location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and
6166
+ * specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
6167
+ */
6168
+ parent:
6169
+ string;
5994
6170
  /** Returns response with indentations and line breaks. */
5995
6171
  prettyPrint?:
5996
6172
  boolean;
@@ -6005,9 +6181,9 @@ declare namespace gapi.client {
6005
6181
  string;
6006
6182
  /** Request body */
6007
6183
  resource:
6008
- GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest;
6009
- }): Request<GooglePrivacyDlpV2DeidentifyTemplate>;
6010
- patch(request: {
6184
+ GooglePrivacyDlpV2ReidentifyContentRequest;
6185
+ }): Request<GooglePrivacyDlpV2ReidentifyContentResponse>;
6186
+ reidentify(request: {
6011
6187
  /** V1 error format. */
6012
6188
  "$.xgafv"?:
6013
6189
  string;
@@ -6026,14 +6202,683 @@ declare namespace gapi.client {
6026
6202
  /** 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. */
6027
6203
  key?:
6028
6204
  string;
6205
+ /** OAuth 2.0 token for the current user. */
6206
+ oauth_token?:
6207
+ string;
6208
+ /**
6209
+ * Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing
6210
+ * location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
6211
+ * location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and
6212
+ * specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
6213
+ */
6214
+ parent:
6215
+ string;
6216
+ /** Returns response with indentations and line breaks. */
6217
+ prettyPrint?:
6218
+ boolean;
6219
+ /** 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. */
6220
+ quotaUser?:
6221
+ string;
6222
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
6223
+ upload_protocol?:
6224
+ string;
6225
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6226
+ uploadType?:
6227
+ string;
6228
+ },
6229
+ body: GooglePrivacyDlpV2ReidentifyContentRequest): Request<GooglePrivacyDlpV2ReidentifyContentResponse>;
6230
+ }
6231
+ interface DeidentifyTemplatesResource {
6232
+ /**
6233
+ * Creates a DeidentifyTemplate for reusing frequently used configuration for de-identifying content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates-deid
6234
+ * to learn more.
6235
+ */
6236
+ create(request: {
6237
+ /** V1 error format. */
6238
+ "$.xgafv"?:
6239
+ string;
6240
+ /** OAuth access token. */
6241
+ access_token?:
6242
+ string;
6243
+ /** Data format for response. */
6244
+ alt?:
6245
+ string;
6246
+ /** JSONP */
6247
+ callback?:
6248
+ string;
6249
+ /** Selector specifying which fields to include in a partial response. */
6250
+ fields?:
6251
+ string;
6252
+ /** 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. */
6253
+ key?:
6254
+ string;
6255
+ /** OAuth 2.0 token for the current user. */
6256
+ oauth_token?:
6257
+ string;
6258
+ /**
6259
+ * Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing
6260
+ * location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
6261
+ * location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope,
6262
+ * no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and
6263
+ * specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
6264
+ */
6265
+ parent:
6266
+ string;
6267
+ /** Returns response with indentations and line breaks. */
6268
+ prettyPrint?:
6269
+ boolean;
6270
+ /** 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. */
6271
+ quotaUser?:
6272
+ string;
6273
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
6274
+ upload_protocol?:
6275
+ string;
6276
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6277
+ uploadType?:
6278
+ string;
6279
+ /** Request body */
6280
+ resource:
6281
+ GooglePrivacyDlpV2CreateDeidentifyTemplateRequest;
6282
+ }): Request<GooglePrivacyDlpV2DeidentifyTemplate>;
6283
+ create(request: {
6284
+ /** V1 error format. */
6285
+ "$.xgafv"?:
6286
+ string;
6287
+ /** OAuth access token. */
6288
+ access_token?:
6289
+ string;
6290
+ /** Data format for response. */
6291
+ alt?:
6292
+ string;
6293
+ /** JSONP */
6294
+ callback?:
6295
+ string;
6296
+ /** Selector specifying which fields to include in a partial response. */
6297
+ fields?:
6298
+ string;
6299
+ /** 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. */
6300
+ key?:
6301
+ string;
6302
+ /** OAuth 2.0 token for the current user. */
6303
+ oauth_token?:
6304
+ string;
6305
+ /**
6306
+ * Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing
6307
+ * location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
6308
+ * location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope,
6309
+ * no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and
6310
+ * specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
6311
+ */
6312
+ parent:
6313
+ string;
6314
+ /** Returns response with indentations and line breaks. */
6315
+ prettyPrint?:
6316
+ boolean;
6317
+ /** 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. */
6318
+ quotaUser?:
6319
+ string;
6320
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
6321
+ upload_protocol?:
6322
+ string;
6323
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6324
+ uploadType?:
6325
+ string;
6326
+ },
6327
+ body: GooglePrivacyDlpV2CreateDeidentifyTemplateRequest): Request<GooglePrivacyDlpV2DeidentifyTemplate>;
6328
+ /** Deletes a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. */
6329
+ delete(request?: {
6330
+ /** V1 error format. */
6331
+ "$.xgafv"?:
6332
+ string;
6333
+ /** OAuth access token. */
6334
+ access_token?:
6335
+ string;
6336
+ /** Data format for response. */
6337
+ alt?:
6338
+ string;
6339
+ /** JSONP */
6340
+ callback?:
6341
+ string;
6342
+ /** Selector specifying which fields to include in a partial response. */
6343
+ fields?:
6344
+ string;
6345
+ /** 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. */
6346
+ key?:
6347
+ string;
6348
+ /**
6349
+ * Required. Resource name of the organization and deidentify template to be deleted, for example `organizations/433245324/deidentifyTemplates/432452342` or
6350
+ * projects/project-id/deidentifyTemplates/432452342.
6351
+ */
6352
+ name:
6353
+ string;
6354
+ /** OAuth 2.0 token for the current user. */
6355
+ oauth_token?:
6356
+ string;
6357
+ /** Returns response with indentations and line breaks. */
6358
+ prettyPrint?:
6359
+ boolean;
6360
+ /** 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. */
6361
+ quotaUser?:
6362
+ string;
6363
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
6364
+ upload_protocol?:
6365
+ string;
6366
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6367
+ uploadType?:
6368
+ string;
6369
+ }): Request<{}>;
6370
+ /** Gets a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. */
6371
+ get(request?: {
6372
+ /** V1 error format. */
6373
+ "$.xgafv"?:
6374
+ string;
6375
+ /** OAuth access token. */
6376
+ access_token?:
6377
+ string;
6378
+ /** Data format for response. */
6379
+ alt?:
6380
+ string;
6381
+ /** JSONP */
6382
+ callback?:
6383
+ string;
6384
+ /** Selector specifying which fields to include in a partial response. */
6385
+ fields?:
6386
+ string;
6387
+ /** 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. */
6388
+ key?:
6389
+ string;
6390
+ /**
6391
+ * Required. Resource name of the organization and deidentify template to be read, for example `organizations/433245324/deidentifyTemplates/432452342` or
6392
+ * projects/project-id/deidentifyTemplates/432452342.
6393
+ */
6394
+ name:
6395
+ string;
6396
+ /** OAuth 2.0 token for the current user. */
6397
+ oauth_token?:
6398
+ string;
6399
+ /** Returns response with indentations and line breaks. */
6400
+ prettyPrint?:
6401
+ boolean;
6402
+ /** 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. */
6403
+ quotaUser?:
6404
+ string;
6405
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
6406
+ upload_protocol?:
6407
+ string;
6408
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6409
+ uploadType?:
6410
+ string;
6411
+ }): Request<GooglePrivacyDlpV2DeidentifyTemplate>;
6412
+ /** Lists DeidentifyTemplates. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. */
6413
+ list(request?: {
6414
+ /** V1 error format. */
6415
+ "$.xgafv"?:
6416
+ string;
6417
+ /** OAuth access token. */
6418
+ access_token?:
6419
+ string;
6420
+ /** Data format for response. */
6421
+ alt?:
6422
+ string;
6423
+ /** JSONP */
6424
+ callback?:
6425
+ string;
6426
+ /** Selector specifying which fields to include in a partial response. */
6427
+ fields?:
6428
+ string;
6429
+ /** 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. */
6430
+ key?:
6431
+ string;
6432
+ /** Deprecated. This field has no effect. */
6433
+ locationId?:
6434
+ string;
6435
+ /** OAuth 2.0 token for the current user. */
6436
+ oauth_token?:
6437
+ string;
6438
+ /**
6439
+ * Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space
6440
+ * characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the template was created. -
6441
+ * `update_time`: corresponds to the time the template was last updated. - `name`: corresponds to the template's name. - `display_name`: corresponds to the template's display name.
6442
+ */
6443
+ orderBy?:
6444
+ string;
6445
+ /** Size of the page. This value can be limited by the server. If zero server returns a page of max size 100. */
6446
+ pageSize?:
6447
+ number;
6448
+ /** Page token to continue retrieval. Comes from the previous call to `ListDeidentifyTemplates`. */
6449
+ pageToken?:
6450
+ string;
6451
+ /**
6452
+ * Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing
6453
+ * location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
6454
+ * location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope,
6455
+ * no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and
6456
+ * specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
6457
+ */
6458
+ parent:
6459
+ string;
6460
+ /** Returns response with indentations and line breaks. */
6461
+ prettyPrint?:
6462
+ boolean;
6463
+ /** 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. */
6464
+ quotaUser?:
6465
+ string;
6466
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
6467
+ upload_protocol?:
6468
+ string;
6469
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6470
+ uploadType?:
6471
+ string;
6472
+ }): Request<GooglePrivacyDlpV2ListDeidentifyTemplatesResponse>;
6473
+ /** Updates the DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. */
6474
+ patch(request: {
6475
+ /** V1 error format. */
6476
+ "$.xgafv"?:
6477
+ string;
6478
+ /** OAuth access token. */
6479
+ access_token?:
6480
+ string;
6481
+ /** Data format for response. */
6482
+ alt?:
6483
+ string;
6484
+ /** JSONP */
6485
+ callback?:
6486
+ string;
6487
+ /** Selector specifying which fields to include in a partial response. */
6488
+ fields?:
6489
+ string;
6490
+ /** 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. */
6491
+ key?:
6492
+ string;
6493
+ /**
6494
+ * Required. Resource name of organization and deidentify template to be updated, for example `organizations/433245324/deidentifyTemplates/432452342` or
6495
+ * projects/project-id/deidentifyTemplates/432452342.
6496
+ */
6497
+ name:
6498
+ string;
6499
+ /** OAuth 2.0 token for the current user. */
6500
+ oauth_token?:
6501
+ string;
6502
+ /** Returns response with indentations and line breaks. */
6503
+ prettyPrint?:
6504
+ boolean;
6505
+ /** 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. */
6506
+ quotaUser?:
6507
+ string;
6508
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
6509
+ upload_protocol?:
6510
+ string;
6511
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6512
+ uploadType?:
6513
+ string;
6514
+ /** Request body */
6515
+ resource:
6516
+ GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest;
6517
+ }): Request<GooglePrivacyDlpV2DeidentifyTemplate>;
6518
+ patch(request: {
6519
+ /** V1 error format. */
6520
+ "$.xgafv"?:
6521
+ string;
6522
+ /** OAuth access token. */
6523
+ access_token?:
6524
+ string;
6525
+ /** Data format for response. */
6526
+ alt?:
6527
+ string;
6528
+ /** JSONP */
6529
+ callback?:
6530
+ string;
6531
+ /** Selector specifying which fields to include in a partial response. */
6532
+ fields?:
6533
+ string;
6534
+ /** 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. */
6535
+ key?:
6536
+ string;
6537
+ /**
6538
+ * Required. Resource name of organization and deidentify template to be updated, for example `organizations/433245324/deidentifyTemplates/432452342` or
6539
+ * projects/project-id/deidentifyTemplates/432452342.
6540
+ */
6541
+ name:
6542
+ string;
6543
+ /** OAuth 2.0 token for the current user. */
6544
+ oauth_token?:
6545
+ string;
6546
+ /** Returns response with indentations and line breaks. */
6547
+ prettyPrint?:
6548
+ boolean;
6549
+ /** 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. */
6550
+ quotaUser?:
6551
+ string;
6552
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
6553
+ upload_protocol?:
6554
+ string;
6555
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6556
+ uploadType?:
6557
+ string;
6558
+ },
6559
+ body: GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest): Request<GooglePrivacyDlpV2DeidentifyTemplate>;
6560
+ }
6561
+ interface DlpJobsResource {
6562
+ /**
6563
+ * Starts asynchronous cancellation on a long-running DlpJob. The server makes a best effort to cancel the DlpJob, but success is not guaranteed. See
6564
+ * https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
6565
+ */
6566
+ cancel(request: {
6567
+ /** V1 error format. */
6568
+ "$.xgafv"?:
6569
+ string;
6570
+ /** OAuth access token. */
6571
+ access_token?:
6572
+ string;
6573
+ /** Data format for response. */
6574
+ alt?:
6575
+ string;
6576
+ /** JSONP */
6577
+ callback?:
6578
+ string;
6579
+ /** Selector specifying which fields to include in a partial response. */
6580
+ fields?:
6581
+ string;
6582
+ /** 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. */
6583
+ key?:
6584
+ string;
6585
+ /** Required. The name of the DlpJob resource to be cancelled. */
6586
+ name:
6587
+ string;
6588
+ /** OAuth 2.0 token for the current user. */
6589
+ oauth_token?:
6590
+ string;
6591
+ /** Returns response with indentations and line breaks. */
6592
+ prettyPrint?:
6593
+ boolean;
6594
+ /** 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. */
6595
+ quotaUser?:
6596
+ string;
6597
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
6598
+ upload_protocol?:
6599
+ string;
6600
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6601
+ uploadType?:
6602
+ string;
6603
+ /** Request body */
6604
+ resource:
6605
+ GooglePrivacyDlpV2CancelDlpJobRequest;
6606
+ }): Request<{}>;
6607
+ cancel(request: {
6608
+ /** V1 error format. */
6609
+ "$.xgafv"?:
6610
+ string;
6611
+ /** OAuth access token. */
6612
+ access_token?:
6613
+ string;
6614
+ /** Data format for response. */
6615
+ alt?:
6616
+ string;
6617
+ /** JSONP */
6618
+ callback?:
6619
+ string;
6620
+ /** Selector specifying which fields to include in a partial response. */
6621
+ fields?:
6622
+ string;
6623
+ /** 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. */
6624
+ key?:
6625
+ string;
6626
+ /** Required. The name of the DlpJob resource to be cancelled. */
6627
+ name:
6628
+ string;
6629
+ /** OAuth 2.0 token for the current user. */
6630
+ oauth_token?:
6631
+ string;
6632
+ /** Returns response with indentations and line breaks. */
6633
+ prettyPrint?:
6634
+ boolean;
6635
+ /** 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. */
6636
+ quotaUser?:
6637
+ string;
6638
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
6639
+ upload_protocol?:
6640
+ string;
6641
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6642
+ uploadType?:
6643
+ string;
6644
+ },
6645
+ body: GooglePrivacyDlpV2CancelDlpJobRequest): Request<{}>;
6646
+ /**
6647
+ * Creates a new job to inspect storage or calculate risk metrics. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis
6648
+ * to learn more. When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will automatically choose what detectors to run. By default this may be all types, but
6649
+ * may change over time as detectors are updated.
6650
+ */
6651
+ create(request: {
6652
+ /** V1 error format. */
6653
+ "$.xgafv"?:
6654
+ string;
6655
+ /** OAuth access token. */
6656
+ access_token?:
6657
+ string;
6658
+ /** Data format for response. */
6659
+ alt?:
6660
+ string;
6661
+ /** JSONP */
6662
+ callback?:
6663
+ string;
6664
+ /** Selector specifying which fields to include in a partial response. */
6665
+ fields?:
6666
+ string;
6667
+ /** 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. */
6668
+ key?:
6669
+ string;
6670
+ /** OAuth 2.0 token for the current user. */
6671
+ oauth_token?:
6672
+ string;
6673
+ /**
6674
+ * Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing
6675
+ * location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
6676
+ * location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and
6677
+ * specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
6678
+ */
6679
+ parent:
6680
+ string;
6681
+ /** Returns response with indentations and line breaks. */
6682
+ prettyPrint?:
6683
+ boolean;
6684
+ /** 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. */
6685
+ quotaUser?:
6686
+ string;
6687
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
6688
+ upload_protocol?:
6689
+ string;
6690
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6691
+ uploadType?:
6692
+ string;
6693
+ /** Request body */
6694
+ resource:
6695
+ GooglePrivacyDlpV2CreateDlpJobRequest;
6696
+ }): Request<GooglePrivacyDlpV2DlpJob>;
6697
+ create(request: {
6698
+ /** V1 error format. */
6699
+ "$.xgafv"?:
6700
+ string;
6701
+ /** OAuth access token. */
6702
+ access_token?:
6703
+ string;
6704
+ /** Data format for response. */
6705
+ alt?:
6706
+ string;
6707
+ /** JSONP */
6708
+ callback?:
6709
+ string;
6710
+ /** Selector specifying which fields to include in a partial response. */
6711
+ fields?:
6712
+ string;
6713
+ /** 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. */
6714
+ key?:
6715
+ string;
6716
+ /** OAuth 2.0 token for the current user. */
6717
+ oauth_token?:
6718
+ string;
6719
+ /**
6720
+ * Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing
6721
+ * location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
6722
+ * location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and
6723
+ * specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
6724
+ */
6725
+ parent:
6726
+ string;
6727
+ /** Returns response with indentations and line breaks. */
6728
+ prettyPrint?:
6729
+ boolean;
6730
+ /** 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. */
6731
+ quotaUser?:
6732
+ string;
6733
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
6734
+ upload_protocol?:
6735
+ string;
6736
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6737
+ uploadType?:
6738
+ string;
6739
+ },
6740
+ body: GooglePrivacyDlpV2CreateDlpJobRequest): Request<GooglePrivacyDlpV2DlpJob>;
6741
+ /**
6742
+ * Deletes a long-running DlpJob. This method indicates that the client is no longer interested in the DlpJob result. The job will be canceled if possible. See
6743
+ * https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
6744
+ */
6745
+ delete(request?: {
6746
+ /** V1 error format. */
6747
+ "$.xgafv"?:
6748
+ string;
6749
+ /** OAuth access token. */
6750
+ access_token?:
6751
+ string;
6752
+ /** Data format for response. */
6753
+ alt?:
6754
+ string;
6755
+ /** JSONP */
6756
+ callback?:
6757
+ string;
6758
+ /** Selector specifying which fields to include in a partial response. */
6759
+ fields?:
6760
+ string;
6761
+ /** 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. */
6762
+ key?:
6763
+ string;
6764
+ /** Required. The name of the DlpJob resource to be deleted. */
6765
+ name:
6766
+ string;
6767
+ /** OAuth 2.0 token for the current user. */
6768
+ oauth_token?:
6769
+ string;
6770
+ /** Returns response with indentations and line breaks. */
6771
+ prettyPrint?:
6772
+ boolean;
6773
+ /** 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. */
6774
+ quotaUser?:
6775
+ string;
6776
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
6777
+ upload_protocol?:
6778
+ string;
6779
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6780
+ uploadType?:
6781
+ string;
6782
+ }): Request<{}>;
6783
+ /** Gets the latest state of a long-running DlpJob. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. */
6784
+ get(request?: {
6785
+ /** V1 error format. */
6786
+ "$.xgafv"?:
6787
+ string;
6788
+ /** OAuth access token. */
6789
+ access_token?:
6790
+ string;
6791
+ /** Data format for response. */
6792
+ alt?:
6793
+ string;
6794
+ /** JSONP */
6795
+ callback?:
6796
+ string;
6797
+ /** Selector specifying which fields to include in a partial response. */
6798
+ fields?:
6799
+ string;
6800
+ /** 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. */
6801
+ key?:
6802
+ string;
6803
+ /** Required. The name of the DlpJob resource. */
6804
+ name:
6805
+ string;
6806
+ /** OAuth 2.0 token for the current user. */
6807
+ oauth_token?:
6808
+ string;
6809
+ /** Returns response with indentations and line breaks. */
6810
+ prettyPrint?:
6811
+ boolean;
6812
+ /** 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. */
6813
+ quotaUser?:
6814
+ string;
6815
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
6816
+ upload_protocol?:
6817
+ string;
6818
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6819
+ uploadType?:
6820
+ string;
6821
+ }): Request<GooglePrivacyDlpV2DlpJob>;
6822
+ /**
6823
+ * Lists DlpJobs that match the specified filter in the request. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to
6824
+ * learn more.
6825
+ */
6826
+ list(request?: {
6827
+ /** V1 error format. */
6828
+ "$.xgafv"?:
6829
+ string;
6830
+ /** OAuth access token. */
6831
+ access_token?:
6832
+ string;
6833
+ /** Data format for response. */
6834
+ alt?:
6835
+ string;
6836
+ /** JSONP */
6837
+ callback?:
6838
+ string;
6839
+ /** Selector specifying which fields to include in a partial response. */
6840
+ fields?:
6841
+ string;
6842
+ /**
6843
+ * 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
6844
+ * of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * Supported fields/values for inspect jobs: - `state` -
6845
+ * PENDING|RUNNING|CANCELED|FINISHED|FAILED - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY - `trigger_name` - The name of the trigger that created the job. - 'end_time` -
6846
+ * Corresponds to the time the job finished. - 'start_time` - Corresponds to the time the job finished. * Supported fields for risk analysis jobs: - `state` -
6847
+ * RUNNING|CANCELED|FINISHED|FAILED - 'end_time` - Corresponds to the time the job finished. - 'start_time` - Corresponds to the time the job finished. * The operator must be `=`
6848
+ * or `!=`. Examples: * inspected_storage = cloud_storage AND state = done * inspected_storage = cloud_storage OR inspected_storage = bigquery * inspected_storage = cloud_storage
6849
+ * AND (state = done OR state = canceled) * end_time > \"2017-12-12T00:00:00+00:00\" The length of this field should be no more than 500 characters.
6850
+ */
6851
+ filter?:
6852
+ string;
6853
+ /** 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. */
6854
+ key?:
6855
+ string;
6856
+ /** Deprecated. This field has no effect. */
6857
+ locationId?:
6858
+ string;
6859
+ /** OAuth 2.0 token for the current user. */
6860
+ oauth_token?:
6861
+ string;
6029
6862
  /**
6030
- * Required. Resource name of organization and deidentify template to be updated, for example `organizations/433245324/deidentifyTemplates/432452342` or
6031
- * projects/project-id/deidentifyTemplates/432452342.
6863
+ * Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space
6864
+ * characters are insignificant. Example: `name asc, end_time asc, create_time desc` Supported fields are: - `create_time`: corresponds to the time the job was created. -
6865
+ * `end_time`: corresponds to the time the job ended. - `name`: corresponds to the job's name. - `state`: corresponds to `state`
6032
6866
  */
6033
- name:
6867
+ orderBy?:
6034
6868
  string;
6035
- /** OAuth 2.0 token for the current user. */
6036
- oauth_token?:
6869
+ /** The standard list page size. */
6870
+ pageSize?:
6871
+ number;
6872
+ /** The standard list page token. */
6873
+ pageToken?:
6874
+ string;
6875
+ /**
6876
+ * Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing
6877
+ * location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
6878
+ * location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and
6879
+ * specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
6880
+ */
6881
+ parent:
6037
6882
  string;
6038
6883
  /** Returns response with indentations and line breaks. */
6039
6884
  prettyPrint?:
@@ -6041,21 +6886,24 @@ declare namespace gapi.client {
6041
6886
  /** 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. */
6042
6887
  quotaUser?:
6043
6888
  string;
6889
+ /** The type of job. Defaults to `DlpJobType.INSPECT` */
6890
+ type?:
6891
+ string;
6044
6892
  /** Upload protocol for media (e.g. "raw", "multipart"). */
6045
6893
  upload_protocol?:
6046
6894
  string;
6047
6895
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6048
6896
  uploadType?:
6049
6897
  string;
6050
- },
6051
- body: GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest): Request<GooglePrivacyDlpV2DeidentifyTemplate>;
6898
+ }): Request<GooglePrivacyDlpV2ListDlpJobsResponse>;
6052
6899
  }
6053
- interface DlpJobsResource {
6900
+ interface ImageResource {
6054
6901
  /**
6055
- * Starts asynchronous cancellation on a long-running DlpJob. The server makes a best effort to cancel the DlpJob, but success is not guaranteed. See
6056
- * https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
6902
+ * Redacts potentially sensitive info from an image. This method has limits on input size, processing time, and output size. See
6903
+ * https://cloud.google.com/dlp/docs/redacting-sensitive-data-images to learn more. When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically
6904
+ * choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.
6057
6905
  */
6058
- cancel(request: {
6906
+ redact(request: {
6059
6907
  /** V1 error format. */
6060
6908
  "$.xgafv"?:
6061
6909
  string;
@@ -6074,12 +6922,17 @@ declare namespace gapi.client {
6074
6922
  /** 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. */
6075
6923
  key?:
6076
6924
  string;
6077
- /** Required. The name of the DlpJob resource to be cancelled. */
6078
- name:
6079
- string;
6080
6925
  /** OAuth 2.0 token for the current user. */
6081
6926
  oauth_token?:
6082
6927
  string;
6928
+ /**
6929
+ * Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): +
6930
+ * Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The
6931
+ * following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
6932
+ * parent=projects/example-project/locations/europe-west3
6933
+ */
6934
+ parent:
6935
+ string;
6083
6936
  /** Returns response with indentations and line breaks. */
6084
6937
  prettyPrint?:
6085
6938
  boolean;
@@ -6094,9 +6947,9 @@ declare namespace gapi.client {
6094
6947
  string;
6095
6948
  /** Request body */
6096
6949
  resource:
6097
- GooglePrivacyDlpV2CancelDlpJobRequest;
6098
- }): Request<{}>;
6099
- cancel(request: {
6950
+ GooglePrivacyDlpV2RedactImageRequest;
6951
+ }): Request<GooglePrivacyDlpV2RedactImageResponse>;
6952
+ redact(request: {
6100
6953
  /** V1 error format. */
6101
6954
  "$.xgafv"?:
6102
6955
  string;
@@ -6115,12 +6968,17 @@ declare namespace gapi.client {
6115
6968
  /** 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. */
6116
6969
  key?:
6117
6970
  string;
6118
- /** Required. The name of the DlpJob resource to be cancelled. */
6119
- name:
6120
- string;
6121
6971
  /** OAuth 2.0 token for the current user. */
6122
6972
  oauth_token?:
6123
6973
  string;
6974
+ /**
6975
+ * Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): +
6976
+ * Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The
6977
+ * following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
6978
+ * parent=projects/example-project/locations/europe-west3
6979
+ */
6980
+ parent:
6981
+ string;
6124
6982
  /** Returns response with indentations and line breaks. */
6125
6983
  prettyPrint?:
6126
6984
  boolean;
@@ -6134,11 +6992,12 @@ declare namespace gapi.client {
6134
6992
  uploadType?:
6135
6993
  string;
6136
6994
  },
6137
- body: GooglePrivacyDlpV2CancelDlpJobRequest): Request<{}>;
6995
+ body: GooglePrivacyDlpV2RedactImageRequest): Request<GooglePrivacyDlpV2RedactImageResponse>;
6996
+ }
6997
+ interface InspectTemplatesResource {
6138
6998
  /**
6139
- * Creates a new job to inspect storage or calculate risk metrics. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis
6140
- * to learn more. When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will automatically choose what detectors to run. By default this may be all types, but
6141
- * may change over time as detectors are updated.
6999
+ * Creates an InspectTemplate for reusing frequently used configuration for inspecting content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates to learn
7000
+ * more.
6142
7001
  */
6143
7002
  create(request: {
6144
7003
  /** V1 error format. */
@@ -6163,9 +7022,10 @@ declare namespace gapi.client {
6163
7022
  oauth_token?:
6164
7023
  string;
6165
7024
  /**
6166
- * Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing
7025
+ * Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing
6167
7026
  * location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
6168
- * location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and
7027
+ * location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope,
7028
+ * no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and
6169
7029
  * specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
6170
7030
  */
6171
7031
  parent:
@@ -6184,8 +7044,8 @@ declare namespace gapi.client {
6184
7044
  string;
6185
7045
  /** Request body */
6186
7046
  resource:
6187
- GooglePrivacyDlpV2CreateDlpJobRequest;
6188
- }): Request<GooglePrivacyDlpV2DlpJob>;
7047
+ GooglePrivacyDlpV2CreateInspectTemplateRequest;
7048
+ }): Request<GooglePrivacyDlpV2InspectTemplate>;
6189
7049
  create(request: {
6190
7050
  /** V1 error format. */
6191
7051
  "$.xgafv"?:
@@ -6209,9 +7069,10 @@ declare namespace gapi.client {
6209
7069
  oauth_token?:
6210
7070
  string;
6211
7071
  /**
6212
- * Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing
7072
+ * Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing
6213
7073
  * location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
6214
- * location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and
7074
+ * location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope,
7075
+ * no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and
6215
7076
  * specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
6216
7077
  */
6217
7078
  parent:
@@ -6229,11 +7090,8 @@ declare namespace gapi.client {
6229
7090
  uploadType?:
6230
7091
  string;
6231
7092
  },
6232
- body: GooglePrivacyDlpV2CreateDlpJobRequest): Request<GooglePrivacyDlpV2DlpJob>;
6233
- /**
6234
- * Deletes a long-running DlpJob. This method indicates that the client is no longer interested in the DlpJob result. The job will be canceled if possible. See
6235
- * https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
6236
- */
7093
+ body: GooglePrivacyDlpV2CreateInspectTemplateRequest): Request<GooglePrivacyDlpV2InspectTemplate>;
7094
+ /** Deletes an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn more. */
6237
7095
  delete(request?: {
6238
7096
  /** V1 error format. */
6239
7097
  "$.xgafv"?:
@@ -6253,7 +7111,10 @@ declare namespace gapi.client {
6253
7111
  /** 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. */
6254
7112
  key?:
6255
7113
  string;
6256
- /** Required. The name of the DlpJob resource to be deleted. */
7114
+ /**
7115
+ * Required. Resource name of the organization and inspectTemplate to be deleted, for example `organizations/433245324/inspectTemplates/432452342` or
7116
+ * projects/project-id/inspectTemplates/432452342.
7117
+ */
6257
7118
  name:
6258
7119
  string;
6259
7120
  /** OAuth 2.0 token for the current user. */
@@ -6272,7 +7133,7 @@ declare namespace gapi.client {
6272
7133
  uploadType?:
6273
7134
  string;
6274
7135
  }): Request<{}>;
6275
- /** Gets the latest state of a long-running DlpJob. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. */
7136
+ /** Gets an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn more. */
6276
7137
  get(request?: {
6277
7138
  /** V1 error format. */
6278
7139
  "$.xgafv"?:
@@ -6292,7 +7153,10 @@ declare namespace gapi.client {
6292
7153
  /** 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. */
6293
7154
  key?:
6294
7155
  string;
6295
- /** Required. The name of the DlpJob resource. */
7156
+ /**
7157
+ * Required. Resource name of the organization and inspectTemplate to be read, for example `organizations/433245324/inspectTemplates/432452342` or
7158
+ * projects/project-id/inspectTemplates/432452342.
7159
+ */
6296
7160
  name:
6297
7161
  string;
6298
7162
  /** OAuth 2.0 token for the current user. */
@@ -6310,11 +7174,8 @@ declare namespace gapi.client {
6310
7174
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6311
7175
  uploadType?:
6312
7176
  string;
6313
- }): Request<GooglePrivacyDlpV2DlpJob>;
6314
- /**
6315
- * Lists DlpJobs that match the specified filter in the request. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to
6316
- * learn more.
6317
- */
7177
+ }): Request<GooglePrivacyDlpV2InspectTemplate>;
7178
+ /** Lists InspectTemplates. See https://cloud.google.com/dlp/docs/creating-templates to learn more. */
6318
7179
  list(request?: {
6319
7180
  /** V1 error format. */
6320
7181
  "$.xgafv"?:
@@ -6331,17 +7192,6 @@ declare namespace gapi.client {
6331
7192
  /** Selector specifying which fields to include in a partial response. */
6332
7193
  fields?:
6333
7194
  string;
6334
- /**
6335
- * 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
6336
- * of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * Supported fields/values for inspect jobs: - `state` -
6337
- * PENDING|RUNNING|CANCELED|FINISHED|FAILED - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY - `trigger_name` - The name of the trigger that created the job. - 'end_time` -
6338
- * Corresponds to the time the job finished. - 'start_time` - Corresponds to the time the job finished. * Supported fields for risk analysis jobs: - `state` -
6339
- * RUNNING|CANCELED|FINISHED|FAILED - 'end_time` - Corresponds to the time the job finished. - 'start_time` - Corresponds to the time the job finished. * The operator must be `=`
6340
- * or `!=`. Examples: * inspected_storage = cloud_storage AND state = done * inspected_storage = cloud_storage OR inspected_storage = bigquery * inspected_storage = cloud_storage
6341
- * AND (state = done OR state = canceled) * end_time > \"2017-12-12T00:00:00+00:00\" The length of this field should be no more than 500 characters.
6342
- */
6343
- filter?:
6344
- string;
6345
7195
  /** 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. */
6346
7196
  key?:
6347
7197
  string;
@@ -6352,22 +7202,23 @@ declare namespace gapi.client {
6352
7202
  oauth_token?:
6353
7203
  string;
6354
7204
  /**
6355
- * Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters
6356
- * are insignificant. Example: `name asc, end_time asc, create_time desc` Supported fields are: - `create_time`: corresponds to the time the job was created. - `end_time`:
6357
- * corresponds to the time the job ended. - `name`: corresponds to the job's name. - `state`: corresponds to `state`
7205
+ * Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space
7206
+ * characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the template was created. -
7207
+ * `update_time`: corresponds to the time the template was last updated. - `name`: corresponds to the template's name. - `display_name`: corresponds to the template's display name.
6358
7208
  */
6359
7209
  orderBy?:
6360
7210
  string;
6361
- /** The standard list page size. */
7211
+ /** Size of the page. This value can be limited by the server. If zero server returns a page of max size 100. */
6362
7212
  pageSize?:
6363
7213
  number;
6364
- /** The standard list page token. */
7214
+ /** Page token to continue retrieval. Comes from the previous call to `ListInspectTemplates`. */
6365
7215
  pageToken?:
6366
7216
  string;
6367
7217
  /**
6368
- * Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing
7218
+ * Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing
6369
7219
  * location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
6370
- * location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and
7220
+ * location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope,
7221
+ * no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and
6371
7222
  * specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
6372
7223
  */
6373
7224
  parent:
@@ -6378,24 +7229,15 @@ declare namespace gapi.client {
6378
7229
  /** 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. */
6379
7230
  quotaUser?:
6380
7231
  string;
6381
- /** The type of job. Defaults to `DlpJobType.INSPECT` */
6382
- type?:
6383
- string;
6384
7232
  /** Upload protocol for media (e.g. "raw", "multipart"). */
6385
7233
  upload_protocol?:
6386
7234
  string;
6387
7235
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6388
7236
  uploadType?:
6389
7237
  string;
6390
- }): Request<GooglePrivacyDlpV2ListDlpJobsResponse>;
6391
- }
6392
- interface ImageResource {
6393
- /**
6394
- * Redacts potentially sensitive info from an image. This method has limits on input size, processing time, and output size. See
6395
- * https://cloud.google.com/dlp/docs/redacting-sensitive-data-images to learn more. When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically
6396
- * choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.
6397
- */
6398
- redact(request: {
7238
+ }): Request<GooglePrivacyDlpV2ListInspectTemplatesResponse>;
7239
+ /** Updates the InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn more. */
7240
+ patch(request: {
6399
7241
  /** V1 error format. */
6400
7242
  "$.xgafv"?:
6401
7243
  string;
@@ -6414,16 +7256,14 @@ declare namespace gapi.client {
6414
7256
  /** 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. */
6415
7257
  key?:
6416
7258
  string;
6417
- /** OAuth 2.0 token for the current user. */
6418
- oauth_token?:
6419
- string;
6420
7259
  /**
6421
- * Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): +
6422
- * Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The
6423
- * following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
6424
- * parent=projects/example-project/locations/europe-west3
7260
+ * Required. Resource name of organization and inspectTemplate to be updated, for example `organizations/433245324/inspectTemplates/432452342` or
7261
+ * projects/project-id/inspectTemplates/432452342.
6425
7262
  */
6426
- parent:
7263
+ name:
7264
+ string;
7265
+ /** OAuth 2.0 token for the current user. */
7266
+ oauth_token?:
6427
7267
  string;
6428
7268
  /** Returns response with indentations and line breaks. */
6429
7269
  prettyPrint?:
@@ -6439,9 +7279,9 @@ declare namespace gapi.client {
6439
7279
  string;
6440
7280
  /** Request body */
6441
7281
  resource:
6442
- GooglePrivacyDlpV2RedactImageRequest;
6443
- }): Request<GooglePrivacyDlpV2RedactImageResponse>;
6444
- redact(request: {
7282
+ GooglePrivacyDlpV2UpdateInspectTemplateRequest;
7283
+ }): Request<GooglePrivacyDlpV2InspectTemplate>;
7284
+ patch(request: {
6445
7285
  /** V1 error format. */
6446
7286
  "$.xgafv"?:
6447
7287
  string;
@@ -6460,16 +7300,14 @@ declare namespace gapi.client {
6460
7300
  /** 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. */
6461
7301
  key?:
6462
7302
  string;
6463
- /** OAuth 2.0 token for the current user. */
6464
- oauth_token?:
6465
- string;
6466
7303
  /**
6467
- * Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): +
6468
- * Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The
6469
- * following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
6470
- * parent=projects/example-project/locations/europe-west3
7304
+ * Required. Resource name of organization and inspectTemplate to be updated, for example `organizations/433245324/inspectTemplates/432452342` or
7305
+ * projects/project-id/inspectTemplates/432452342.
6471
7306
  */
6472
- parent:
7307
+ name:
7308
+ string;
7309
+ /** OAuth 2.0 token for the current user. */
7310
+ oauth_token?:
6473
7311
  string;
6474
7312
  /** Returns response with indentations and line breaks. */
6475
7313
  prettyPrint?:
@@ -6484,14 +7322,11 @@ declare namespace gapi.client {
6484
7322
  uploadType?:
6485
7323
  string;
6486
7324
  },
6487
- body: GooglePrivacyDlpV2RedactImageRequest): Request<GooglePrivacyDlpV2RedactImageResponse>;
7325
+ body: GooglePrivacyDlpV2UpdateInspectTemplateRequest): Request<GooglePrivacyDlpV2InspectTemplate>;
6488
7326
  }
6489
- interface InspectTemplatesResource {
6490
- /**
6491
- * Creates an InspectTemplate for reusing frequently used configuration for inspecting content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates to learn
6492
- * more.
6493
- */
6494
- create(request: {
7327
+ interface JobTriggersResource {
7328
+ /** Activate a job trigger. Causes the immediate execute of a trigger instead of waiting on the trigger event to occur. */
7329
+ activate(request: {
6495
7330
  /** V1 error format. */
6496
7331
  "$.xgafv"?:
6497
7332
  string;
@@ -6510,18 +7345,12 @@ declare namespace gapi.client {
6510
7345
  /** 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. */
6511
7346
  key?:
6512
7347
  string;
7348
+ /** Required. Resource name of the trigger to activate, for example `projects/dlp-test-project/jobTriggers/53234423`. */
7349
+ name:
7350
+ string;
6513
7351
  /** OAuth 2.0 token for the current user. */
6514
7352
  oauth_token?:
6515
7353
  string;
6516
- /**
6517
- * Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing
6518
- * location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
6519
- * location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope,
6520
- * no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and
6521
- * specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
6522
- */
6523
- parent:
6524
- string;
6525
7354
  /** Returns response with indentations and line breaks. */
6526
7355
  prettyPrint?:
6527
7356
  boolean;
@@ -6536,55 +7365,9 @@ declare namespace gapi.client {
6536
7365
  string;
6537
7366
  /** Request body */
6538
7367
  resource:
6539
- GooglePrivacyDlpV2CreateInspectTemplateRequest;
6540
- }): Request<GooglePrivacyDlpV2InspectTemplate>;
6541
- create(request: {
6542
- /** V1 error format. */
6543
- "$.xgafv"?:
6544
- string;
6545
- /** OAuth access token. */
6546
- access_token?:
6547
- string;
6548
- /** Data format for response. */
6549
- alt?:
6550
- string;
6551
- /** JSONP */
6552
- callback?:
6553
- string;
6554
- /** Selector specifying which fields to include in a partial response. */
6555
- fields?:
6556
- string;
6557
- /** 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. */
6558
- key?:
6559
- string;
6560
- /** OAuth 2.0 token for the current user. */
6561
- oauth_token?:
6562
- string;
6563
- /**
6564
- * Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing
6565
- * location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
6566
- * location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope,
6567
- * no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and
6568
- * specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
6569
- */
6570
- parent:
6571
- string;
6572
- /** Returns response with indentations and line breaks. */
6573
- prettyPrint?:
6574
- boolean;
6575
- /** 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. */
6576
- quotaUser?:
6577
- string;
6578
- /** Upload protocol for media (e.g. "raw", "multipart"). */
6579
- upload_protocol?:
6580
- string;
6581
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6582
- uploadType?:
6583
- string;
6584
- },
6585
- body: GooglePrivacyDlpV2CreateInspectTemplateRequest): Request<GooglePrivacyDlpV2InspectTemplate>;
6586
- /** Deletes an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn more. */
6587
- delete(request?: {
7368
+ GooglePrivacyDlpV2ActivateJobTriggerRequest;
7369
+ }): Request<GooglePrivacyDlpV2DlpJob>;
7370
+ activate(request: {
6588
7371
  /** V1 error format. */
6589
7372
  "$.xgafv"?:
6590
7373
  string;
@@ -6603,10 +7386,7 @@ declare namespace gapi.client {
6603
7386
  /** 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. */
6604
7387
  key?:
6605
7388
  string;
6606
- /**
6607
- * Required. Resource name of the organization and inspectTemplate to be deleted, for example `organizations/433245324/inspectTemplates/432452342` or
6608
- * projects/project-id/inspectTemplates/432452342.
6609
- */
7389
+ /** Required. Resource name of the trigger to activate, for example `projects/dlp-test-project/jobTriggers/53234423`. */
6610
7390
  name:
6611
7391
  string;
6612
7392
  /** OAuth 2.0 token for the current user. */
@@ -6624,9 +7404,13 @@ declare namespace gapi.client {
6624
7404
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6625
7405
  uploadType?:
6626
7406
  string;
6627
- }): Request<{}>;
6628
- /** Gets an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn more. */
6629
- get(request?: {
7407
+ },
7408
+ body: GooglePrivacyDlpV2ActivateJobTriggerRequest): Request<GooglePrivacyDlpV2DlpJob>;
7409
+ /**
7410
+ * Creates a job trigger to run DLP actions such as scanning storage for sensitive information on a set schedule. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn
7411
+ * more.
7412
+ */
7413
+ create(request: {
6630
7414
  /** V1 error format. */
6631
7415
  "$.xgafv"?:
6632
7416
  string;
@@ -6645,15 +7429,17 @@ declare namespace gapi.client {
6645
7429
  /** 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. */
6646
7430
  key?:
6647
7431
  string;
6648
- /**
6649
- * Required. Resource name of the organization and inspectTemplate to be read, for example `organizations/433245324/inspectTemplates/432452342` or
6650
- * projects/project-id/inspectTemplates/432452342.
6651
- */
6652
- name:
6653
- string;
6654
7432
  /** OAuth 2.0 token for the current user. */
6655
7433
  oauth_token?:
6656
7434
  string;
7435
+ /**
7436
+ * Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing
7437
+ * location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
7438
+ * location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and
7439
+ * specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
7440
+ */
7441
+ parent:
7442
+ string;
6657
7443
  /** Returns response with indentations and line breaks. */
6658
7444
  prettyPrint?:
6659
7445
  boolean;
@@ -6666,9 +7452,11 @@ declare namespace gapi.client {
6666
7452
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6667
7453
  uploadType?:
6668
7454
  string;
6669
- }): Request<GooglePrivacyDlpV2InspectTemplate>;
6670
- /** Lists InspectTemplates. See https://cloud.google.com/dlp/docs/creating-templates to learn more. */
6671
- list(request?: {
7455
+ /** Request body */
7456
+ resource:
7457
+ GooglePrivacyDlpV2CreateJobTriggerRequest;
7458
+ }): Request<GooglePrivacyDlpV2JobTrigger>;
7459
+ create(request: {
6672
7460
  /** V1 error format. */
6673
7461
  "$.xgafv"?:
6674
7462
  string;
@@ -6687,30 +7475,13 @@ declare namespace gapi.client {
6687
7475
  /** 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. */
6688
7476
  key?:
6689
7477
  string;
6690
- /** Deprecated. This field has no effect. */
6691
- locationId?:
6692
- string;
6693
7478
  /** OAuth 2.0 token for the current user. */
6694
7479
  oauth_token?:
6695
7480
  string;
6696
7481
  /**
6697
- * Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters
6698
- * are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the template was created. - `update_time`:
6699
- * corresponds to the time the template was last updated. - `name`: corresponds to the template's name. - `display_name`: corresponds to the template's display name.
6700
- */
6701
- orderBy?:
6702
- string;
6703
- /** Size of the page, can be limited by the server. If zero server returns a page of max size 100. */
6704
- pageSize?:
6705
- number;
6706
- /** Page token to continue retrieval. Comes from previous call to `ListInspectTemplates`. */
6707
- pageToken?:
6708
- string;
6709
- /**
6710
- * Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing
7482
+ * Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing
6711
7483
  * location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
6712
- * location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope,
6713
- * no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and
7484
+ * location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and
6714
7485
  * specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
6715
7486
  */
6716
7487
  parent:
@@ -6727,9 +7498,10 @@ declare namespace gapi.client {
6727
7498
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6728
7499
  uploadType?:
6729
7500
  string;
6730
- }): Request<GooglePrivacyDlpV2ListInspectTemplatesResponse>;
6731
- /** Updates the InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn more. */
6732
- patch(request: {
7501
+ },
7502
+ body: GooglePrivacyDlpV2CreateJobTriggerRequest): Request<GooglePrivacyDlpV2JobTrigger>;
7503
+ /** Deletes a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. */
7504
+ delete(request?: {
6733
7505
  /** V1 error format. */
6734
7506
  "$.xgafv"?:
6735
7507
  string;
@@ -6748,10 +7520,7 @@ declare namespace gapi.client {
6748
7520
  /** 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. */
6749
7521
  key?:
6750
7522
  string;
6751
- /**
6752
- * Required. Resource name of organization and inspectTemplate to be updated, for example `organizations/433245324/inspectTemplates/432452342` or
6753
- * projects/project-id/inspectTemplates/432452342.
6754
- */
7523
+ /** Required. Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`. */
6755
7524
  name:
6756
7525
  string;
6757
7526
  /** OAuth 2.0 token for the current user. */
@@ -6769,11 +7538,9 @@ declare namespace gapi.client {
6769
7538
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6770
7539
  uploadType?:
6771
7540
  string;
6772
- /** Request body */
6773
- resource:
6774
- GooglePrivacyDlpV2UpdateInspectTemplateRequest;
6775
- }): Request<GooglePrivacyDlpV2InspectTemplate>;
6776
- patch(request: {
7541
+ }): Request<{}>;
7542
+ /** Gets a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. */
7543
+ get(request?: {
6777
7544
  /** V1 error format. */
6778
7545
  "$.xgafv"?:
6779
7546
  string;
@@ -6792,10 +7559,7 @@ declare namespace gapi.client {
6792
7559
  /** 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. */
6793
7560
  key?:
6794
7561
  string;
6795
- /**
6796
- * Required. Resource name of organization and inspectTemplate to be updated, for example `organizations/433245324/inspectTemplates/432452342` or
6797
- * projects/project-id/inspectTemplates/432452342.
6798
- */
7562
+ /** Required. Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`. */
6799
7563
  name:
6800
7564
  string;
6801
7565
  /** OAuth 2.0 token for the current user. */
@@ -6813,12 +7577,9 @@ declare namespace gapi.client {
6813
7577
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6814
7578
  uploadType?:
6815
7579
  string;
6816
- },
6817
- body: GooglePrivacyDlpV2UpdateInspectTemplateRequest): Request<GooglePrivacyDlpV2InspectTemplate>;
6818
- }
6819
- interface JobTriggersResource {
6820
- /** Activate a job trigger. Causes the immediate execute of a trigger instead of waiting on the trigger event to occur. */
6821
- activate(request: {
7580
+ }): Request<GooglePrivacyDlpV2JobTrigger>;
7581
+ /** Lists job triggers. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. */
7582
+ list(request?: {
6822
7583
  /** V1 error format. */
6823
7584
  "$.xgafv"?:
6824
7585
  string;
@@ -6834,32 +7595,65 @@ declare namespace gapi.client {
6834
7595
  /** Selector specifying which fields to include in a partial response. */
6835
7596
  fields?:
6836
7597
  string;
7598
+ /**
7599
+ * 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
7600
+ * of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * Supported fields/values for inspect triggers: - `status` -
7601
+ * HEALTHY|PAUSED|CANCELLED - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY - 'last_run_time` - RFC 3339 formatted timestamp, surrounded by quotation marks. Nanoseconds
7602
+ * are ignored. - 'error_count' - Number of errors that have occurred while running. * The operator must be `=` or `!=` for status and inspected_storage. Examples: *
7603
+ * inspected_storage = cloud_storage AND status = HEALTHY * inspected_storage = cloud_storage OR inspected_storage = bigquery * inspected_storage = cloud_storage AND (state =
7604
+ * PAUSED OR state = HEALTHY) * last_run_time > \"2017-12-12T00:00:00+00:00\" The length of this field should be no more than 500 characters.
7605
+ */
7606
+ filter?:
7607
+ string;
6837
7608
  /** 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. */
6838
7609
  key?:
6839
7610
  string;
6840
- /** Required. Resource name of the trigger to activate, for example `projects/dlp-test-project/jobTriggers/53234423`. */
6841
- name:
7611
+ /** Deprecated. This field has no effect. */
7612
+ locationId?:
6842
7613
  string;
6843
7614
  /** OAuth 2.0 token for the current user. */
6844
7615
  oauth_token?:
6845
7616
  string;
7617
+ /**
7618
+ * Comma separated list of triggeredJob fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant
7619
+ * space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the JobTrigger was created.
7620
+ * - `update_time`: corresponds to the time the JobTrigger was last updated. - `last_run_time`: corresponds to the last time the JobTrigger ran. - `name`: corresponds to the
7621
+ * JobTrigger's name. - `display_name`: corresponds to the JobTrigger's display name. - `status`: corresponds to JobTrigger's status.
7622
+ */
7623
+ orderBy?:
7624
+ string;
7625
+ /** Size of the page. This value can be limited by a server. */
7626
+ pageSize?:
7627
+ number;
7628
+ /** Page token to continue retrieval. Comes from the previous call to ListJobTriggers. `order_by` field must not change for subsequent calls. */
7629
+ pageToken?:
7630
+ string;
7631
+ /**
7632
+ * Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing
7633
+ * location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
7634
+ * location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and
7635
+ * specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
7636
+ */
7637
+ parent:
7638
+ string;
6846
7639
  /** Returns response with indentations and line breaks. */
6847
7640
  prettyPrint?:
6848
7641
  boolean;
6849
7642
  /** 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. */
6850
7643
  quotaUser?:
6851
7644
  string;
7645
+ /** The type of jobs. Will use `DlpJobType.INSPECT` if not set. */
7646
+ type?:
7647
+ string;
6852
7648
  /** Upload protocol for media (e.g. "raw", "multipart"). */
6853
7649
  upload_protocol?:
6854
7650
  string;
6855
7651
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6856
7652
  uploadType?:
6857
7653
  string;
6858
- /** Request body */
6859
- resource:
6860
- GooglePrivacyDlpV2ActivateJobTriggerRequest;
6861
- }): Request<GooglePrivacyDlpV2DlpJob>;
6862
- activate(request: {
7654
+ }): Request<GooglePrivacyDlpV2ListJobTriggersResponse>;
7655
+ /** Updates a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. */
7656
+ patch(request: {
6863
7657
  /** V1 error format. */
6864
7658
  "$.xgafv"?:
6865
7659
  string;
@@ -6878,7 +7672,7 @@ declare namespace gapi.client {
6878
7672
  /** 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. */
6879
7673
  key?:
6880
7674
  string;
6881
- /** Required. Resource name of the trigger to activate, for example `projects/dlp-test-project/jobTriggers/53234423`. */
7675
+ /** Required. Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`. */
6882
7676
  name:
6883
7677
  string;
6884
7678
  /** OAuth 2.0 token for the current user. */
@@ -6896,13 +7690,11 @@ declare namespace gapi.client {
6896
7690
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6897
7691
  uploadType?:
6898
7692
  string;
6899
- },
6900
- body: GooglePrivacyDlpV2ActivateJobTriggerRequest): Request<GooglePrivacyDlpV2DlpJob>;
6901
- /**
6902
- * Creates a job trigger to run DLP actions such as scanning storage for sensitive information on a set schedule. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn
6903
- * more.
6904
- */
6905
- create(request: {
7693
+ /** Request body */
7694
+ resource:
7695
+ GooglePrivacyDlpV2UpdateJobTriggerRequest;
7696
+ }): Request<GooglePrivacyDlpV2JobTrigger>;
7697
+ patch(request: {
6906
7698
  /** V1 error format. */
6907
7699
  "$.xgafv"?:
6908
7700
  string;
@@ -6921,17 +7713,12 @@ declare namespace gapi.client {
6921
7713
  /** 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. */
6922
7714
  key?:
6923
7715
  string;
7716
+ /** Required. Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`. */
7717
+ name:
7718
+ string;
6924
7719
  /** OAuth 2.0 token for the current user. */
6925
7720
  oauth_token?:
6926
7721
  string;
6927
- /**
6928
- * Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing
6929
- * location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
6930
- * location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and
6931
- * specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
6932
- */
6933
- parent:
6934
- string;
6935
7722
  /** Returns response with indentations and line breaks. */
6936
7723
  prettyPrint?:
6937
7724
  boolean;
@@ -6944,11 +7731,16 @@ declare namespace gapi.client {
6944
7731
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6945
7732
  uploadType?:
6946
7733
  string;
6947
- /** Request body */
6948
- resource:
6949
- GooglePrivacyDlpV2CreateJobTriggerRequest;
6950
- }): Request<GooglePrivacyDlpV2JobTrigger>;
6951
- create(request: {
7734
+ },
7735
+ body: GooglePrivacyDlpV2UpdateJobTriggerRequest): Request<GooglePrivacyDlpV2JobTrigger>;
7736
+ }
7737
+ interface ContentResource {
7738
+ /**
7739
+ * De-identifies potentially sensitive info from a ContentItem. This method has limits on input size and output size. See https://cloud.google.com/dlp/docs/deidentify-sensitive-data to
7740
+ * learn more. When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may
7741
+ * change over time as detectors are updated.
7742
+ */
7743
+ deidentify(request: {
6952
7744
  /** V1 error format. */
6953
7745
  "$.xgafv"?:
6954
7746
  string;
@@ -6971,10 +7763,10 @@ declare namespace gapi.client {
6971
7763
  oauth_token?:
6972
7764
  string;
6973
7765
  /**
6974
- * Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing
6975
- * location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
6976
- * location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and
6977
- * specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
7766
+ * Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): +
7767
+ * Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The
7768
+ * following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
7769
+ * parent=projects/example-project/locations/europe-west3
6978
7770
  */
6979
7771
  parent:
6980
7772
  string;
@@ -6990,10 +7782,11 @@ declare namespace gapi.client {
6990
7782
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6991
7783
  uploadType?:
6992
7784
  string;
6993
- },
6994
- body: GooglePrivacyDlpV2CreateJobTriggerRequest): Request<GooglePrivacyDlpV2JobTrigger>;
6995
- /** Deletes a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. */
6996
- delete(request?: {
7785
+ /** Request body */
7786
+ resource:
7787
+ GooglePrivacyDlpV2DeidentifyContentRequest;
7788
+ }): Request<GooglePrivacyDlpV2DeidentifyContentResponse>;
7789
+ deidentify(request: {
6997
7790
  /** V1 error format. */
6998
7791
  "$.xgafv"?:
6999
7792
  string;
@@ -7012,12 +7805,17 @@ declare namespace gapi.client {
7012
7805
  /** 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. */
7013
7806
  key?:
7014
7807
  string;
7015
- /** Required. Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`. */
7016
- name:
7017
- string;
7018
7808
  /** OAuth 2.0 token for the current user. */
7019
7809
  oauth_token?:
7020
7810
  string;
7811
+ /**
7812
+ * Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): +
7813
+ * Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The
7814
+ * following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
7815
+ * parent=projects/example-project/locations/europe-west3
7816
+ */
7817
+ parent:
7818
+ string;
7021
7819
  /** Returns response with indentations and line breaks. */
7022
7820
  prettyPrint?:
7023
7821
  boolean;
@@ -7030,9 +7828,14 @@ declare namespace gapi.client {
7030
7828
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
7031
7829
  uploadType?:
7032
7830
  string;
7033
- }): Request<{}>;
7034
- /** Gets a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. */
7035
- get(request?: {
7831
+ },
7832
+ body: GooglePrivacyDlpV2DeidentifyContentRequest): Request<GooglePrivacyDlpV2DeidentifyContentResponse>;
7833
+ /**
7834
+ * Finds potentially sensitive info in content. This method has limits on input size, processing time, and output size. When no InfoTypes or CustomInfoTypes are specified in this
7835
+ * request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. For how to guides, see
7836
+ * https://cloud.google.com/dlp/docs/inspecting-images and https://cloud.google.com/dlp/docs/inspecting-text,
7837
+ */
7838
+ inspect(request: {
7036
7839
  /** V1 error format. */
7037
7840
  "$.xgafv"?:
7038
7841
  string;
@@ -7051,12 +7854,17 @@ declare namespace gapi.client {
7051
7854
  /** 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. */
7052
7855
  key?:
7053
7856
  string;
7054
- /** Required. Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`. */
7055
- name:
7056
- string;
7057
7857
  /** OAuth 2.0 token for the current user. */
7058
7858
  oauth_token?:
7059
7859
  string;
7860
+ /**
7861
+ * Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): +
7862
+ * Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The
7863
+ * following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
7864
+ * parent=projects/example-project/locations/europe-west3
7865
+ */
7866
+ parent:
7867
+ string;
7060
7868
  /** Returns response with indentations and line breaks. */
7061
7869
  prettyPrint?:
7062
7870
  boolean;
@@ -7069,9 +7877,11 @@ declare namespace gapi.client {
7069
7877
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
7070
7878
  uploadType?:
7071
7879
  string;
7072
- }): Request<GooglePrivacyDlpV2JobTrigger>;
7073
- /** Lists job triggers. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. */
7074
- list(request?: {
7880
+ /** Request body */
7881
+ resource:
7882
+ GooglePrivacyDlpV2InspectContentRequest;
7883
+ }): Request<GooglePrivacyDlpV2InspectContentResponse>;
7884
+ inspect(request: {
7075
7885
  /** V1 error format. */
7076
7886
  "$.xgafv"?:
7077
7887
  string;
@@ -7087,44 +7897,17 @@ declare namespace gapi.client {
7087
7897
  /** Selector specifying which fields to include in a partial response. */
7088
7898
  fields?:
7089
7899
  string;
7090
- /**
7091
- * 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
7092
- * of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * Supported fields/values for inspect triggers: - `status` -
7093
- * HEALTHY|PAUSED|CANCELLED - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY - 'last_run_time` - RFC 3339 formatted timestamp, surrounded by quotation marks. Nanoseconds
7094
- * are ignored. - 'error_count' - Number of errors that have occurred while running. * The operator must be `=` or `!=` for status and inspected_storage. Examples: *
7095
- * inspected_storage = cloud_storage AND status = HEALTHY * inspected_storage = cloud_storage OR inspected_storage = bigquery * inspected_storage = cloud_storage AND (state =
7096
- * PAUSED OR state = HEALTHY) * last_run_time > \"2017-12-12T00:00:00+00:00\" The length of this field should be no more than 500 characters.
7097
- */
7098
- filter?:
7099
- string;
7100
7900
  /** 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. */
7101
7901
  key?:
7102
7902
  string;
7103
- /** Deprecated. This field has no effect. */
7104
- locationId?:
7105
- string;
7106
7903
  /** OAuth 2.0 token for the current user. */
7107
7904
  oauth_token?:
7108
7905
  string;
7109
7906
  /**
7110
- * Comma separated list of triggeredJob fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space
7111
- * characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the JobTrigger was created. -
7112
- * `update_time`: corresponds to the time the JobTrigger was last updated. - `last_run_time`: corresponds to the last time the JobTrigger ran. - `name`: corresponds to the
7113
- * JobTrigger's name. - `display_name`: corresponds to the JobTrigger's display name. - `status`: corresponds to JobTrigger's status.
7114
- */
7115
- orderBy?:
7116
- string;
7117
- /** Size of the page, can be limited by a server. */
7118
- pageSize?:
7119
- number;
7120
- /** Page token to continue retrieval. Comes from previous call to ListJobTriggers. `order_by` field must not change for subsequent calls. */
7121
- pageToken?:
7122
- string;
7123
- /**
7124
- * Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing
7125
- * location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
7126
- * location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and
7127
- * specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
7907
+ * Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): +
7908
+ * Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The
7909
+ * following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
7910
+ * parent=projects/example-project/locations/europe-west3
7128
7911
  */
7129
7912
  parent:
7130
7913
  string;
@@ -7134,18 +7917,16 @@ declare namespace gapi.client {
7134
7917
  /** 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. */
7135
7918
  quotaUser?:
7136
7919
  string;
7137
- /** The type of jobs. Will use `DlpJobType.INSPECT` if not set. */
7138
- type?:
7139
- string;
7140
7920
  /** Upload protocol for media (e.g. "raw", "multipart"). */
7141
7921
  upload_protocol?:
7142
7922
  string;
7143
7923
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
7144
7924
  uploadType?:
7145
7925
  string;
7146
- }): Request<GooglePrivacyDlpV2ListJobTriggersResponse>;
7147
- /** Updates a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. */
7148
- patch(request: {
7926
+ },
7927
+ body: GooglePrivacyDlpV2InspectContentRequest): Request<GooglePrivacyDlpV2InspectContentResponse>;
7928
+ /** Re-identifies content that has been de-identified. See https://cloud.google.com/dlp/docs/pseudonymization#re-identification_in_free_text_code_example to learn more. */
7929
+ reidentify(request: {
7149
7930
  /** V1 error format. */
7150
7931
  "$.xgafv"?:
7151
7932
  string;
@@ -7164,12 +7945,17 @@ declare namespace gapi.client {
7164
7945
  /** 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. */
7165
7946
  key?:
7166
7947
  string;
7167
- /** Required. Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`. */
7168
- name:
7169
- string;
7170
7948
  /** OAuth 2.0 token for the current user. */
7171
7949
  oauth_token?:
7172
7950
  string;
7951
+ /**
7952
+ * Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing
7953
+ * location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
7954
+ * location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and
7955
+ * specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
7956
+ */
7957
+ parent:
7958
+ string;
7173
7959
  /** Returns response with indentations and line breaks. */
7174
7960
  prettyPrint?:
7175
7961
  boolean;
@@ -7184,9 +7970,9 @@ declare namespace gapi.client {
7184
7970
  string;
7185
7971
  /** Request body */
7186
7972
  resource:
7187
- GooglePrivacyDlpV2UpdateJobTriggerRequest;
7188
- }): Request<GooglePrivacyDlpV2JobTrigger>;
7189
- patch(request: {
7973
+ GooglePrivacyDlpV2ReidentifyContentRequest;
7974
+ }): Request<GooglePrivacyDlpV2ReidentifyContentResponse>;
7975
+ reidentify(request: {
7190
7976
  /** V1 error format. */
7191
7977
  "$.xgafv"?:
7192
7978
  string;
@@ -7205,12 +7991,17 @@ declare namespace gapi.client {
7205
7991
  /** 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. */
7206
7992
  key?:
7207
7993
  string;
7208
- /** Required. Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`. */
7209
- name:
7210
- string;
7211
7994
  /** OAuth 2.0 token for the current user. */
7212
7995
  oauth_token?:
7213
7996
  string;
7997
+ /**
7998
+ * Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing
7999
+ * location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
8000
+ * location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and
8001
+ * specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
8002
+ */
8003
+ parent:
8004
+ string;
7214
8005
  /** Returns response with indentations and line breaks. */
7215
8006
  prettyPrint?:
7216
8007
  boolean;
@@ -7224,15 +8015,14 @@ declare namespace gapi.client {
7224
8015
  uploadType?:
7225
8016
  string;
7226
8017
  },
7227
- body: GooglePrivacyDlpV2UpdateJobTriggerRequest): Request<GooglePrivacyDlpV2JobTrigger>;
8018
+ body: GooglePrivacyDlpV2ReidentifyContentRequest): Request<GooglePrivacyDlpV2ReidentifyContentResponse>;
7228
8019
  }
7229
- interface ContentResource {
8020
+ interface DeidentifyTemplatesResource {
7230
8021
  /**
7231
- * De-identifies potentially sensitive info from a ContentItem. This method has limits on input size and output size. See https://cloud.google.com/dlp/docs/deidentify-sensitive-data to
7232
- * learn more. When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may
7233
- * change over time as detectors are updated.
8022
+ * Creates a DeidentifyTemplate for reusing frequently used configuration for de-identifying content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates-deid
8023
+ * to learn more.
7234
8024
  */
7235
- deidentify(request: {
8025
+ create(request: {
7236
8026
  /** V1 error format. */
7237
8027
  "$.xgafv"?:
7238
8028
  string;
@@ -7255,10 +8045,11 @@ declare namespace gapi.client {
7255
8045
  oauth_token?:
7256
8046
  string;
7257
8047
  /**
7258
- * Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): +
7259
- * Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The
7260
- * following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
7261
- * parent=projects/example-project/locations/europe-west3
8048
+ * Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing
8049
+ * location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
8050
+ * location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope,
8051
+ * no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and
8052
+ * specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
7262
8053
  */
7263
8054
  parent:
7264
8055
  string;
@@ -7276,9 +8067,9 @@ declare namespace gapi.client {
7276
8067
  string;
7277
8068
  /** Request body */
7278
8069
  resource:
7279
- GooglePrivacyDlpV2DeidentifyContentRequest;
7280
- }): Request<GooglePrivacyDlpV2DeidentifyContentResponse>;
7281
- deidentify(request: {
8070
+ GooglePrivacyDlpV2CreateDeidentifyTemplateRequest;
8071
+ }): Request<GooglePrivacyDlpV2DeidentifyTemplate>;
8072
+ create(request: {
7282
8073
  /** V1 error format. */
7283
8074
  "$.xgafv"?:
7284
8075
  string;
@@ -7301,10 +8092,11 @@ declare namespace gapi.client {
7301
8092
  oauth_token?:
7302
8093
  string;
7303
8094
  /**
7304
- * Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): +
7305
- * Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The
7306
- * following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
7307
- * parent=projects/example-project/locations/europe-west3
8095
+ * Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing
8096
+ * location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
8097
+ * location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope,
8098
+ * no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and
8099
+ * specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
7308
8100
  */
7309
8101
  parent:
7310
8102
  string;
@@ -7321,13 +8113,9 @@ declare namespace gapi.client {
7321
8113
  uploadType?:
7322
8114
  string;
7323
8115
  },
7324
- body: GooglePrivacyDlpV2DeidentifyContentRequest): Request<GooglePrivacyDlpV2DeidentifyContentResponse>;
7325
- /**
7326
- * Finds potentially sensitive info in content. This method has limits on input size, processing time, and output size. When no InfoTypes or CustomInfoTypes are specified in this
7327
- * request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. For how to guides, see
7328
- * https://cloud.google.com/dlp/docs/inspecting-images and https://cloud.google.com/dlp/docs/inspecting-text,
7329
- */
7330
- inspect(request: {
8116
+ body: GooglePrivacyDlpV2CreateDeidentifyTemplateRequest): Request<GooglePrivacyDlpV2DeidentifyTemplate>;
8117
+ /** Deletes a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. */
8118
+ delete(request?: {
7331
8119
  /** V1 error format. */
7332
8120
  "$.xgafv"?:
7333
8121
  string;
@@ -7346,16 +8134,14 @@ declare namespace gapi.client {
7346
8134
  /** 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. */
7347
8135
  key?:
7348
8136
  string;
7349
- /** OAuth 2.0 token for the current user. */
7350
- oauth_token?:
7351
- string;
7352
8137
  /**
7353
- * Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): +
7354
- * Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The
7355
- * following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
7356
- * parent=projects/example-project/locations/europe-west3
8138
+ * Required. Resource name of the organization and deidentify template to be deleted, for example `organizations/433245324/deidentifyTemplates/432452342` or
8139
+ * projects/project-id/deidentifyTemplates/432452342.
7357
8140
  */
7358
- parent:
8141
+ name:
8142
+ string;
8143
+ /** OAuth 2.0 token for the current user. */
8144
+ oauth_token?:
7359
8145
  string;
7360
8146
  /** Returns response with indentations and line breaks. */
7361
8147
  prettyPrint?:
@@ -7369,11 +8155,9 @@ declare namespace gapi.client {
7369
8155
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
7370
8156
  uploadType?:
7371
8157
  string;
7372
- /** Request body */
7373
- resource:
7374
- GooglePrivacyDlpV2InspectContentRequest;
7375
- }): Request<GooglePrivacyDlpV2InspectContentResponse>;
7376
- inspect(request: {
8158
+ }): Request<{}>;
8159
+ /** Gets a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. */
8160
+ get(request?: {
7377
8161
  /** V1 error format. */
7378
8162
  "$.xgafv"?:
7379
8163
  string;
@@ -7392,16 +8176,14 @@ declare namespace gapi.client {
7392
8176
  /** 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. */
7393
8177
  key?:
7394
8178
  string;
7395
- /** OAuth 2.0 token for the current user. */
7396
- oauth_token?:
7397
- string;
7398
8179
  /**
7399
- * Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): +
7400
- * Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The
7401
- * following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data:
7402
- * parent=projects/example-project/locations/europe-west3
8180
+ * Required. Resource name of the organization and deidentify template to be read, for example `organizations/433245324/deidentifyTemplates/432452342` or
8181
+ * projects/project-id/deidentifyTemplates/432452342.
7403
8182
  */
7404
- parent:
8183
+ name:
8184
+ string;
8185
+ /** OAuth 2.0 token for the current user. */
8186
+ oauth_token?:
7405
8187
  string;
7406
8188
  /** Returns response with indentations and line breaks. */
7407
8189
  prettyPrint?:
@@ -7415,10 +8197,9 @@ declare namespace gapi.client {
7415
8197
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
7416
8198
  uploadType?:
7417
8199
  string;
7418
- },
7419
- body: GooglePrivacyDlpV2InspectContentRequest): Request<GooglePrivacyDlpV2InspectContentResponse>;
7420
- /** Re-identifies content that has been de-identified. See https://cloud.google.com/dlp/docs/pseudonymization#re-identification_in_free_text_code_example to learn more. */
7421
- reidentify(request: {
8200
+ }): Request<GooglePrivacyDlpV2DeidentifyTemplate>;
8201
+ /** Lists DeidentifyTemplates. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. */
8202
+ list(request?: {
7422
8203
  /** V1 error format. */
7423
8204
  "$.xgafv"?:
7424
8205
  string;
@@ -7437,13 +8218,30 @@ declare namespace gapi.client {
7437
8218
  /** 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. */
7438
8219
  key?:
7439
8220
  string;
8221
+ /** Deprecated. This field has no effect. */
8222
+ locationId?:
8223
+ string;
7440
8224
  /** OAuth 2.0 token for the current user. */
7441
8225
  oauth_token?:
7442
8226
  string;
7443
8227
  /**
7444
- * Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing
8228
+ * Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space
8229
+ * characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the template was created. -
8230
+ * `update_time`: corresponds to the time the template was last updated. - `name`: corresponds to the template's name. - `display_name`: corresponds to the template's display name.
8231
+ */
8232
+ orderBy?:
8233
+ string;
8234
+ /** Size of the page. This value can be limited by the server. If zero server returns a page of max size 100. */
8235
+ pageSize?:
8236
+ number;
8237
+ /** Page token to continue retrieval. Comes from the previous call to `ListDeidentifyTemplates`. */
8238
+ pageToken?:
8239
+ string;
8240
+ /**
8241
+ * Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing
7445
8242
  * location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
7446
- * location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and
8243
+ * location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope,
8244
+ * no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and
7447
8245
  * specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
7448
8246
  */
7449
8247
  parent:
@@ -7460,11 +8258,9 @@ declare namespace gapi.client {
7460
8258
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
7461
8259
  uploadType?:
7462
8260
  string;
7463
- /** Request body */
7464
- resource:
7465
- GooglePrivacyDlpV2ReidentifyContentRequest;
7466
- }): Request<GooglePrivacyDlpV2ReidentifyContentResponse>;
7467
- reidentify(request: {
8261
+ }): Request<GooglePrivacyDlpV2ListDeidentifyTemplatesResponse>;
8262
+ /** Updates the DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. */
8263
+ patch(request: {
7468
8264
  /** V1 error format. */
7469
8265
  "$.xgafv"?:
7470
8266
  string;
@@ -7483,16 +8279,58 @@ declare namespace gapi.client {
7483
8279
  /** 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. */
7484
8280
  key?:
7485
8281
  string;
8282
+ /**
8283
+ * Required. Resource name of organization and deidentify template to be updated, for example `organizations/433245324/deidentifyTemplates/432452342` or
8284
+ * projects/project-id/deidentifyTemplates/432452342.
8285
+ */
8286
+ name:
8287
+ string;
7486
8288
  /** OAuth 2.0 token for the current user. */
7487
8289
  oauth_token?:
7488
8290
  string;
8291
+ /** Returns response with indentations and line breaks. */
8292
+ prettyPrint?:
8293
+ boolean;
8294
+ /** 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. */
8295
+ quotaUser?:
8296
+ string;
8297
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
8298
+ upload_protocol?:
8299
+ string;
8300
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
8301
+ uploadType?:
8302
+ string;
8303
+ /** Request body */
8304
+ resource:
8305
+ GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest;
8306
+ }): Request<GooglePrivacyDlpV2DeidentifyTemplate>;
8307
+ patch(request: {
8308
+ /** V1 error format. */
8309
+ "$.xgafv"?:
8310
+ string;
8311
+ /** OAuth access token. */
8312
+ access_token?:
8313
+ string;
8314
+ /** Data format for response. */
8315
+ alt?:
8316
+ string;
8317
+ /** JSONP */
8318
+ callback?:
8319
+ string;
8320
+ /** Selector specifying which fields to include in a partial response. */
8321
+ fields?:
8322
+ string;
8323
+ /** 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. */
8324
+ key?:
8325
+ string;
7489
8326
  /**
7490
- * Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing
7491
- * location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
7492
- * location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and
7493
- * specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
8327
+ * Required. Resource name of organization and deidentify template to be updated, for example `organizations/433245324/deidentifyTemplates/432452342` or
8328
+ * projects/project-id/deidentifyTemplates/432452342.
7494
8329
  */
7495
- parent:
8330
+ name:
8331
+ string;
8332
+ /** OAuth 2.0 token for the current user. */
8333
+ oauth_token?:
7496
8334
  string;
7497
8335
  /** Returns response with indentations and line breaks. */
7498
8336
  prettyPrint?:
@@ -7507,13 +8345,10 @@ declare namespace gapi.client {
7507
8345
  uploadType?:
7508
8346
  string;
7509
8347
  },
7510
- body: GooglePrivacyDlpV2ReidentifyContentRequest): Request<GooglePrivacyDlpV2ReidentifyContentResponse>;
8348
+ body: GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest): Request<GooglePrivacyDlpV2DeidentifyTemplate>;
7511
8349
  }
7512
- interface DeidentifyTemplatesResource {
7513
- /**
7514
- * Creates a DeidentifyTemplate for reusing frequently used configuration for de-identifying content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates-deid
7515
- * to learn more.
7516
- */
8350
+ interface DiscoveryConfigsResource {
8351
+ /** Creates a config for discovery to scan and profile storage. */
7517
8352
  create(request: {
7518
8353
  /** V1 error format. */
7519
8354
  "$.xgafv"?:
@@ -7537,11 +8372,8 @@ declare namespace gapi.client {
7537
8372
  oauth_token?:
7538
8373
  string;
7539
8374
  /**
7540
- * Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing
7541
- * location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
7542
- * location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope,
7543
- * no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and
7544
- * specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
8375
+ * Required. Parent resource name. The format of this value is as follows: `projects/`PROJECT_ID`/locations/`LOCATION_ID The following example `parent` string specifies a parent
8376
+ * project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
7545
8377
  */
7546
8378
  parent:
7547
8379
  string;
@@ -7559,8 +8391,8 @@ declare namespace gapi.client {
7559
8391
  string;
7560
8392
  /** Request body */
7561
8393
  resource:
7562
- GooglePrivacyDlpV2CreateDeidentifyTemplateRequest;
7563
- }): Request<GooglePrivacyDlpV2DeidentifyTemplate>;
8394
+ GooglePrivacyDlpV2CreateDiscoveryConfigRequest;
8395
+ }): Request<GooglePrivacyDlpV2DiscoveryConfig>;
7564
8396
  create(request: {
7565
8397
  /** V1 error format. */
7566
8398
  "$.xgafv"?:
@@ -7584,11 +8416,8 @@ declare namespace gapi.client {
7584
8416
  oauth_token?:
7585
8417
  string;
7586
8418
  /**
7587
- * Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing
7588
- * location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
7589
- * location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope,
7590
- * no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and
7591
- * specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
8419
+ * Required. Parent resource name. The format of this value is as follows: `projects/`PROJECT_ID`/locations/`LOCATION_ID The following example `parent` string specifies a parent
8420
+ * project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
7592
8421
  */
7593
8422
  parent:
7594
8423
  string;
@@ -7605,8 +8434,8 @@ declare namespace gapi.client {
7605
8434
  uploadType?:
7606
8435
  string;
7607
8436
  },
7608
- body: GooglePrivacyDlpV2CreateDeidentifyTemplateRequest): Request<GooglePrivacyDlpV2DeidentifyTemplate>;
7609
- /** Deletes a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. */
8437
+ body: GooglePrivacyDlpV2CreateDiscoveryConfigRequest): Request<GooglePrivacyDlpV2DiscoveryConfig>;
8438
+ /** Deletes a discovery configuration. */
7610
8439
  delete(request?: {
7611
8440
  /** V1 error format. */
7612
8441
  "$.xgafv"?:
@@ -7626,10 +8455,7 @@ declare namespace gapi.client {
7626
8455
  /** 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. */
7627
8456
  key?:
7628
8457
  string;
7629
- /**
7630
- * Required. Resource name of the organization and deidentify template to be deleted, for example `organizations/433245324/deidentifyTemplates/432452342` or
7631
- * projects/project-id/deidentifyTemplates/432452342.
7632
- */
8458
+ /** Required. Resource name of the project and the config, for example `projects/dlp-test-project/discoveryConfigs/53234423`. */
7633
8459
  name:
7634
8460
  string;
7635
8461
  /** OAuth 2.0 token for the current user. */
@@ -7648,7 +8474,7 @@ declare namespace gapi.client {
7648
8474
  uploadType?:
7649
8475
  string;
7650
8476
  }): Request<{}>;
7651
- /** Gets a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. */
8477
+ /** Gets a discovery configuration. */
7652
8478
  get(request?: {
7653
8479
  /** V1 error format. */
7654
8480
  "$.xgafv"?:
@@ -7668,10 +8494,7 @@ declare namespace gapi.client {
7668
8494
  /** 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. */
7669
8495
  key?:
7670
8496
  string;
7671
- /**
7672
- * Required. Resource name of the organization and deidentify template to be read, for example `organizations/433245324/deidentifyTemplates/432452342` or
7673
- * projects/project-id/deidentifyTemplates/432452342.
7674
- */
8497
+ /** Required. Resource name of the project and the configuration, for example `projects/dlp-test-project/discoveryConfigs/53234423`. */
7675
8498
  name:
7676
8499
  string;
7677
8500
  /** OAuth 2.0 token for the current user. */
@@ -7689,8 +8512,8 @@ declare namespace gapi.client {
7689
8512
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
7690
8513
  uploadType?:
7691
8514
  string;
7692
- }): Request<GooglePrivacyDlpV2DeidentifyTemplate>;
7693
- /** Lists DeidentifyTemplates. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. */
8515
+ }): Request<GooglePrivacyDlpV2DiscoveryConfig>;
8516
+ /** Lists discovery configurations. */
7694
8517
  list(request?: {
7695
8518
  /** V1 error format. */
7696
8519
  "$.xgafv"?:
@@ -7710,31 +8533,25 @@ declare namespace gapi.client {
7710
8533
  /** 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. */
7711
8534
  key?:
7712
8535
  string;
7713
- /** Deprecated. This field has no effect. */
7714
- locationId?:
7715
- string;
7716
8536
  /** OAuth 2.0 token for the current user. */
7717
8537
  oauth_token?:
7718
8538
  string;
7719
8539
  /**
7720
- * Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters
7721
- * are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the template was created. - `update_time`:
7722
- * corresponds to the time the template was last updated. - `name`: corresponds to the template's name. - `display_name`: corresponds to the template's display name.
8540
+ * Comma separated list of config fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space
8541
+ * characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `last_run_time`: corresponds to the last time the DiscoveryConfig ran. -
8542
+ * `name`: corresponds to the DiscoveryConfig's name. - `status`: corresponds to DiscoveryConfig's status.
7723
8543
  */
7724
8544
  orderBy?:
7725
8545
  string;
7726
- /** Size of the page, can be limited by the server. If zero server returns a page of max size 100. */
8546
+ /** Size of the page. This value can be limited by a server. */
7727
8547
  pageSize?:
7728
8548
  number;
7729
- /** Page token to continue retrieval. Comes from previous call to `ListDeidentifyTemplates`. */
8549
+ /** Page token to continue retrieval. Comes from the previous call to ListDiscoveryConfigs. `order_by` field must not change for subsequent calls. */
7730
8550
  pageToken?:
7731
8551
  string;
7732
8552
  /**
7733
- * Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing
7734
- * location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
7735
- * location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope,
7736
- * no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and
7737
- * specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
8553
+ * Required. Parent resource name. The format of this value is as follows: `projects/`PROJECT_ID`/locations/`LOCATION_ID The following example `parent` string specifies a parent
8554
+ * project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
7738
8555
  */
7739
8556
  parent:
7740
8557
  string;
@@ -7750,8 +8567,8 @@ declare namespace gapi.client {
7750
8567
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
7751
8568
  uploadType?:
7752
8569
  string;
7753
- }): Request<GooglePrivacyDlpV2ListDeidentifyTemplatesResponse>;
7754
- /** Updates the DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. */
8570
+ }): Request<GooglePrivacyDlpV2ListDiscoveryConfigsResponse>;
8571
+ /** Updates a discovery configuration. */
7755
8572
  patch(request: {
7756
8573
  /** V1 error format. */
7757
8574
  "$.xgafv"?:
@@ -7771,10 +8588,7 @@ declare namespace gapi.client {
7771
8588
  /** 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. */
7772
8589
  key?:
7773
8590
  string;
7774
- /**
7775
- * Required. Resource name of organization and deidentify template to be updated, for example `organizations/433245324/deidentifyTemplates/432452342` or
7776
- * projects/project-id/deidentifyTemplates/432452342.
7777
- */
8591
+ /** Required. Resource name of the project and the configuration, for example `projects/dlp-test-project/discoveryConfigs/53234423`. */
7778
8592
  name:
7779
8593
  string;
7780
8594
  /** OAuth 2.0 token for the current user. */
@@ -7794,8 +8608,8 @@ declare namespace gapi.client {
7794
8608
  string;
7795
8609
  /** Request body */
7796
8610
  resource:
7797
- GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest;
7798
- }): Request<GooglePrivacyDlpV2DeidentifyTemplate>;
8611
+ GooglePrivacyDlpV2UpdateDiscoveryConfigRequest;
8612
+ }): Request<GooglePrivacyDlpV2DiscoveryConfig>;
7799
8613
  patch(request: {
7800
8614
  /** V1 error format. */
7801
8615
  "$.xgafv"?:
@@ -7815,10 +8629,7 @@ declare namespace gapi.client {
7815
8629
  /** 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. */
7816
8630
  key?:
7817
8631
  string;
7818
- /**
7819
- * Required. Resource name of organization and deidentify template to be updated, for example `organizations/433245324/deidentifyTemplates/432452342` or
7820
- * projects/project-id/deidentifyTemplates/432452342.
7821
- */
8632
+ /** Required. Resource name of the project and the configuration, for example `projects/dlp-test-project/discoveryConfigs/53234423`. */
7822
8633
  name:
7823
8634
  string;
7824
8635
  /** OAuth 2.0 token for the current user. */
@@ -7837,7 +8648,7 @@ declare namespace gapi.client {
7837
8648
  uploadType?:
7838
8649
  string;
7839
8650
  },
7840
- body: GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest): Request<GooglePrivacyDlpV2DeidentifyTemplate>;
8651
+ body: GooglePrivacyDlpV2UpdateDiscoveryConfigRequest): Request<GooglePrivacyDlpV2DiscoveryConfig>;
7841
8652
  }
7842
8653
  interface DlpJobsResource {
7843
8654
  /**
@@ -8303,9 +9114,9 @@ declare namespace gapi.client {
8303
9114
  oauth_token?:
8304
9115
  string;
8305
9116
  /**
8306
- * Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters
8307
- * are insignificant. Example: `name asc, end_time asc, create_time desc` Supported fields are: - `create_time`: corresponds to the time the job was created. - `end_time`:
8308
- * corresponds to the time the job ended. - `name`: corresponds to the job's name. - `state`: corresponds to `state`
9117
+ * Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space
9118
+ * characters are insignificant. Example: `name asc, end_time asc, create_time desc` Supported fields are: - `create_time`: corresponds to the time the job was created. -
9119
+ * `end_time`: corresponds to the time the job ended. - `name`: corresponds to the job's name. - `state`: corresponds to `state`
8309
9120
  */
8310
9121
  orderBy?:
8311
9122
  string;
@@ -8645,16 +9456,16 @@ declare namespace gapi.client {
8645
9456
  oauth_token?:
8646
9457
  string;
8647
9458
  /**
8648
- * Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters
8649
- * are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the template was created. - `update_time`:
8650
- * corresponds to the time the template was last updated. - `name`: corresponds to the template's name. - `display_name`: corresponds to the template's display name.
9459
+ * Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space
9460
+ * characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the template was created. -
9461
+ * `update_time`: corresponds to the time the template was last updated. - `name`: corresponds to the template's name. - `display_name`: corresponds to the template's display name.
8651
9462
  */
8652
9463
  orderBy?:
8653
9464
  string;
8654
- /** Size of the page, can be limited by the server. If zero server returns a page of max size 100. */
9465
+ /** Size of the page. This value can be limited by the server. If zero server returns a page of max size 100. */
8655
9466
  pageSize?:
8656
9467
  number;
8657
- /** Page token to continue retrieval. Comes from previous call to `ListInspectTemplates`. */
9468
+ /** Page token to continue retrieval. Comes from the previous call to `ListInspectTemplates`. */
8658
9469
  pageToken?:
8659
9470
  string;
8660
9471
  /**
@@ -9139,17 +9950,17 @@ declare namespace gapi.client {
9139
9950
  oauth_token?:
9140
9951
  string;
9141
9952
  /**
9142
- * Comma separated list of triggeredJob fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space
9143
- * characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the JobTrigger was created. -
9144
- * `update_time`: corresponds to the time the JobTrigger was last updated. - `last_run_time`: corresponds to the last time the JobTrigger ran. - `name`: corresponds to the
9953
+ * Comma separated list of triggeredJob fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant
9954
+ * space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the JobTrigger was created.
9955
+ * - `update_time`: corresponds to the time the JobTrigger was last updated. - `last_run_time`: corresponds to the last time the JobTrigger ran. - `name`: corresponds to the
9145
9956
  * JobTrigger's name. - `display_name`: corresponds to the JobTrigger's display name. - `status`: corresponds to JobTrigger's status.
9146
9957
  */
9147
9958
  orderBy?:
9148
9959
  string;
9149
- /** Size of the page, can be limited by a server. */
9960
+ /** Size of the page. This value can be limited by a server. */
9150
9961
  pageSize?:
9151
9962
  number;
9152
- /** Page token to continue retrieval. Comes from previous call to ListJobTriggers. `order_by` field must not change for subsequent calls. */
9963
+ /** Page token to continue retrieval. Comes from the previous call to ListJobTriggers. `order_by` field must not change for subsequent calls. */
9153
9964
  pageToken?:
9154
9965
  string;
9155
9966
  /**
@@ -9463,16 +10274,16 @@ declare namespace gapi.client {
9463
10274
  oauth_token?:
9464
10275
  string;
9465
10276
  /**
9466
- * Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters
9467
- * are insignificant. Example: `name asc, display_name, create_time desc` Supported fields are: - `create_time`: corresponds to the time the most recent version of the resource was
9468
- * created. - `state`: corresponds to the state of the resource. - `name`: corresponds to resource name. - `display_name`: corresponds to info type's display name.
10277
+ * Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space
10278
+ * characters are insignificant. Example: `name asc, display_name, create_time desc` Supported fields are: - `create_time`: corresponds to the time the most recent version of the
10279
+ * resource was created. - `state`: corresponds to the state of the resource. - `name`: corresponds to resource name. - `display_name`: corresponds to info type's display name.
9469
10280
  */
9470
10281
  orderBy?:
9471
10282
  string;
9472
- /** Size of the page, can be limited by the server. If zero server returns a page of max size 100. */
10283
+ /** Size of the page. This value can be limited by the server. If zero server returns a page of max size 100. */
9473
10284
  pageSize?:
9474
10285
  number;
9475
- /** Page token to continue retrieval. Comes from previous call to `ListStoredInfoTypes`. */
10286
+ /** Page token to continue retrieval. Comes from the previous call to `ListStoredInfoTypes`. */
9476
10287
  pageToken?:
9477
10288
  string;
9478
10289
  /**
@@ -9592,6 +10403,8 @@ declare namespace gapi.client {
9592
10403
  ContentResource;
9593
10404
  deidentifyTemplates:
9594
10405
  DeidentifyTemplatesResource;
10406
+ discoveryConfigs:
10407
+ DiscoveryConfigsResource;
9595
10408
  dlpJobs:
9596
10409
  DlpJobsResource;
9597
10410
  image:
@@ -9808,16 +10621,16 @@ declare namespace gapi.client {
9808
10621
  oauth_token?:
9809
10622
  string;
9810
10623
  /**
9811
- * Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters
9812
- * are insignificant. Example: `name asc, display_name, create_time desc` Supported fields are: - `create_time`: corresponds to the time the most recent version of the resource was
9813
- * created. - `state`: corresponds to the state of the resource. - `name`: corresponds to resource name. - `display_name`: corresponds to info type's display name.
10624
+ * Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case insensitive. The default sorting order is ascending. Redundant space
10625
+ * characters are insignificant. Example: `name asc, display_name, create_time desc` Supported fields are: - `create_time`: corresponds to the time the most recent version of the
10626
+ * resource was created. - `state`: corresponds to the state of the resource. - `name`: corresponds to resource name. - `display_name`: corresponds to info type's display name.
9814
10627
  */
9815
10628
  orderBy?:
9816
10629
  string;
9817
- /** Size of the page, can be limited by the server. If zero server returns a page of max size 100. */
10630
+ /** Size of the page. This value can be limited by the server. If zero server returns a page of max size 100. */
9818
10631
  pageSize?:
9819
10632
  number;
9820
- /** Page token to continue retrieval. Comes from previous call to `ListStoredInfoTypes`. */
10633
+ /** Page token to continue retrieval. Comes from the previous call to `ListStoredInfoTypes`. */
9821
10634
  pageToken?:
9822
10635
  string;
9823
10636
  /**