Skip to content

Commit

Permalink
feat(dlp): update the API
Browse files Browse the repository at this point in the history
#### dlp:v2

The following keys were added:
- resources.organizations.resources.locations.resources.jobTriggers.methods.list.parameters.type.description
- resources.organizations.resources.locations.resources.jobTriggers.methods.list.parameters.type.enum
- resources.organizations.resources.locations.resources.jobTriggers.methods.list.parameters.type.enumDescriptions
- resources.organizations.resources.locations.resources.jobTriggers.methods.list.parameters.type.location
- resources.organizations.resources.locations.resources.jobTriggers.methods.list.parameters.type.type
- resources.projects.resources.jobTriggers.methods.list.parameters.type.description
- resources.projects.resources.jobTriggers.methods.list.parameters.type.enum
- resources.projects.resources.jobTriggers.methods.list.parameters.type.enumDescriptions
- resources.projects.resources.jobTriggers.methods.list.parameters.type.location
- resources.projects.resources.jobTriggers.methods.list.parameters.type.type
- resources.projects.resources.locations.resources.jobTriggers.methods.list.parameters.type.description
- resources.projects.resources.locations.resources.jobTriggers.methods.list.parameters.type.enum
- resources.projects.resources.locations.resources.jobTriggers.methods.list.parameters.type.enumDescriptions
- resources.projects.resources.locations.resources.jobTriggers.methods.list.parameters.type.location
- resources.projects.resources.locations.resources.jobTriggers.methods.list.parameters.type.type

The following keys were changed:
- resources.organizations.resources.locations.resources.dlpJobs.methods.list.parameters.type.enumDescriptions
- resources.projects.resources.dlpJobs.methods.list.parameters.type.enumDescriptions
- resources.projects.resources.locations.resources.dlpJobs.methods.list.parameters.type.enumDescriptions
- schemas.GooglePrivacyDlpV2DlpJob.properties.type.enumDescriptions
  • Loading branch information
yoshi-automation authored and JustinBeckwith committed May 25, 2021
1 parent 41f6d99 commit bd7b97a
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 5 deletions.
55 changes: 50 additions & 5 deletions discovery/dlp-v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@
"RISK_ANALYSIS_JOB"
],
"enumDescriptions": [
"Unused",
"Defaults to INSPECT_JOB.",
"The job inspected Google Cloud for sensitive data.",
"The job executed a Risk Analysis computation."
],
Expand Down Expand Up @@ -1012,6 +1012,21 @@
"pattern": "^organizations/[^/]+/locations/[^/]+$",
"required": true,
"type": "string"
},
"type": {
"description": "The type of jobs. Will use `DlpJobType.INSPECT` if not set.",
"enum": [
"DLP_JOB_TYPE_UNSPECIFIED",
"INSPECT_JOB",
"RISK_ANALYSIS_JOB"
],
"enumDescriptions": [
"Defaults to INSPECT_JOB.",
"The job inspected Google Cloud for sensitive data.",
"The job executed a Risk Analysis computation."
],
"location": "query",
"type": "string"
}
},
"path": "v2/{+parent}/jobTriggers",
Expand Down Expand Up @@ -1772,7 +1787,7 @@
"RISK_ANALYSIS_JOB"
],
"enumDescriptions": [
"Unused",
"Defaults to INSPECT_JOB.",
"The job inspected Google Cloud for sensitive data.",
"The job executed a Risk Analysis computation."
],
Expand Down Expand Up @@ -2127,6 +2142,21 @@
"pattern": "^projects/[^/]+$",
"required": true,
"type": "string"
},
"type": {
"description": "The type of jobs. Will use `DlpJobType.INSPECT` if not set.",
"enum": [
"DLP_JOB_TYPE_UNSPECIFIED",
"INSPECT_JOB",
"RISK_ANALYSIS_JOB"
],
"enumDescriptions": [
"Defaults to INSPECT_JOB.",
"The job inspected Google Cloud for sensitive data.",
"The job executed a Risk Analysis computation."
],
"location": "query",
"type": "string"
}
},
"path": "v2/{+parent}/jobTriggers",
Expand Down Expand Up @@ -2627,7 +2657,7 @@
"RISK_ANALYSIS_JOB"
],
"enumDescriptions": [
"Unused",
"Defaults to INSPECT_JOB.",
"The job inspected Google Cloud for sensitive data.",
"The job executed a Risk Analysis computation."
],
Expand Down Expand Up @@ -3010,6 +3040,21 @@
"pattern": "^projects/[^/]+/locations/[^/]+$",
"required": true,
"type": "string"
},
"type": {
"description": "The type of jobs. Will use `DlpJobType.INSPECT` if not set.",
"enum": [
"DLP_JOB_TYPE_UNSPECIFIED",
"INSPECT_JOB",
"RISK_ANALYSIS_JOB"
],
"enumDescriptions": [
"Defaults to INSPECT_JOB.",
"The job inspected Google Cloud for sensitive data.",
"The job executed a Risk Analysis computation."
],
"location": "query",
"type": "string"
}
},
"path": "v2/{+parent}/jobTriggers",
Expand Down Expand Up @@ -3367,7 +3412,7 @@
}
}
},
"revision": "20210508",
"revision": "20210522",
"rootUrl": "https://dlp.googleapis.com/",
"schemas": {
"GooglePrivacyDlpV2Action": {
Expand Down Expand Up @@ -4723,7 +4768,7 @@
"RISK_ANALYSIS_JOB"
],
"enumDescriptions": [
"Unused",
"Defaults to INSPECT_JOB.",
"The job inspected Google Cloud for sensitive data.",
"The job executed a Risk Analysis computation."
],
Expand Down
18 changes: 18 additions & 0 deletions src/apis/dlp/v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7356,6 +7356,8 @@ export namespace dlp_v2 {
* pageToken: 'placeholder-value',
* // Required. 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): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
* parent: 'organizations/my-organization/locations/my-location',
* // The type of jobs. Will use `DlpJobType.INSPECT` if not set.
* type: 'placeholder-value',
* });
* console.log(res.data);
*
Expand Down Expand Up @@ -7673,6 +7675,10 @@ export namespace dlp_v2 {
* Required. 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): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
*/
parent?: string;
/**
* The type of jobs. Will use `DlpJobType.INSPECT` if not set.
*/
type?: string;
}
export interface Params$Resource$Organizations$Locations$Jobtriggers$Patch
extends StandardParameters {
Expand Down Expand Up @@ -12920,6 +12926,8 @@ export namespace dlp_v2 {
* pageToken: 'placeholder-value',
* // Required. 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): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
* parent: 'projects/my-project',
* // The type of jobs. Will use `DlpJobType.INSPECT` if not set.
* type: 'placeholder-value',
* });
* console.log(res.data);
*
Expand Down Expand Up @@ -13248,6 +13256,10 @@ export namespace dlp_v2 {
* Required. 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): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
*/
parent?: string;
/**
* The type of jobs. Will use `DlpJobType.INSPECT` if not set.
*/
type?: string;
}
export interface Params$Resource$Projects$Jobtriggers$Patch
extends StandardParameters {
Expand Down Expand Up @@ -17391,6 +17403,8 @@ export namespace dlp_v2 {
* pageToken: 'placeholder-value',
* // Required. 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): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
* parent: 'projects/my-project/locations/my-location',
* // The type of jobs. Will use `DlpJobType.INSPECT` if not set.
* type: 'placeholder-value',
* });
* console.log(res.data);
*
Expand Down Expand Up @@ -17731,6 +17745,10 @@ export namespace dlp_v2 {
* Required. 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): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3
*/
parent?: string;
/**
* The type of jobs. Will use `DlpJobType.INSPECT` if not set.
*/
type?: string;
}
export interface Params$Resource$Projects$Locations$Jobtriggers$Patch
extends StandardParameters {
Expand Down

0 comments on commit bd7b97a

Please sign in to comment.