From 3da764d6c1c40e9d67902fbe942d4ac73e7fa607 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Sat, 7 Apr 2018 15:16:46 -0700 Subject: [PATCH] Synchronize new proto/yaml changes. PiperOrigin-RevId: 192017211 --- google/privacy/dlp/dlp_v2.yaml | 58 +++++++++++++++++++++++++++++++-- google/privacy/dlp/v2/dlp.proto | 30 ++++++++--------- 2 files changed, 71 insertions(+), 17 deletions(-) diff --git a/google/privacy/dlp/dlp_v2.yaml b/google/privacy/dlp/dlp_v2.yaml index 57f4e0f3..c85eead9 100644 --- a/google/privacy/dlp/dlp_v2.yaml +++ b/google/privacy/dlp/dlp_v2.yaml @@ -8,11 +8,31 @@ apis: documentation: summary: |- - Provides methods for detection of privacy-sensitive fragments in text, - images, and Google Cloud Platform storage repositories. + Provides methods for detection, risk analysis, and de-identification of + privacy-sensitive fragments in text, images, and Google Cloud Platform + storage repositories. + rules: + - selector: google.longrunning.Operations.CancelOperation + description: |- + Cancels an operation. Use the + [`inspect.operations.get`][/dlp/docs/reference/rest/v2beta1/inspect.operations/get] + to check whether the cancellation succeeded or the operation completed + despite cancellation. + - selector: google.longrunning.Operations.DeleteOperation + description: This method is not supported and the server returns `UNIMPLEMENTED`. + - selector: google.longrunning.Operations.ListOperations + description: Fetches the list of long running operations. backend: rules: + - selector: google.longrunning.Operations.ListOperations + deadline: 300.0 + - selector: google.longrunning.Operations.GetOperation + deadline: 300.0 + - selector: google.longrunning.Operations.DeleteOperation + deadline: 300.0 + - selector: google.longrunning.Operations.CancelOperation + deadline: 300.0 - selector: google.privacy.dlp.v2.DlpService.InspectContent deadline: 300.0 - selector: google.privacy.dlp.v2.DlpService.RedactImage @@ -64,6 +84,40 @@ backend: - selector: google.privacy.dlp.v2.DlpService.CancelDlpJob deadline: 300.0 +http: + rules: + - selector: google.longrunning.Operations.ListOperations + get: '/v1/{name=inspect/operations}' + additional_bindings: + - get: '/v2beta1/{name=inspect/operations}' + + - get: '/v2beta1/{name=riskAnalysis/operations}' + + - selector: google.longrunning.Operations.GetOperation + get: '/v1/{name=inspect/operations/*}' + additional_bindings: + - get: '/v2beta1/{name=inspect/operations/*}' + + - get: '/v2beta1/{name=riskAnalysis/operations/*}' + + - selector: google.longrunning.Operations.DeleteOperation + delete: '/v1/{name=inspect/operations/*}' + additional_bindings: + - delete: '/v2beta1/{name=inspect/operations/*}' + + - delete: '/v2beta1/{name=riskAnalysis/operations/*}' + + - selector: google.longrunning.Operations.CancelOperation + post: '/v1/{name=inspect/operations/*}:cancel' + body: '*' + additional_bindings: + - post: '/v2beta1/{name=inspect/operations/*}:cancel' + body: '*' + + - post: '/v2beta1/{name=riskAnalysis/operations/*}:cancel' + body: '*' + + authentication: rules: - selector: '*' diff --git a/google/privacy/dlp/v2/dlp.proto b/google/privacy/dlp/v2/dlp.proto index d0cb39da..0877d043 100644 --- a/google/privacy/dlp/v2/dlp.proto +++ b/google/privacy/dlp/v2/dlp.proto @@ -90,7 +90,7 @@ service DlpService { }; } - // Creates an inspect template for re-using frequently used configuration + // Creates an InspectTemplate for re-using frequently used configuration // for inspecting content, images, and storage. rpc CreateInspectTemplate(CreateInspectTemplateRequest) returns (InspectTemplate) { option (google.api.http) = { @@ -103,7 +103,7 @@ service DlpService { }; } - // Updates the inspect template. + // Updates the InspectTemplate. rpc UpdateInspectTemplate(UpdateInspectTemplateRequest) returns (InspectTemplate) { option (google.api.http) = { patch: "/v2/{name=organizations/*/inspectTemplates/*}" @@ -115,7 +115,7 @@ service DlpService { }; } - // Gets an inspect template. + // Gets an InspectTemplate. rpc GetInspectTemplate(GetInspectTemplateRequest) returns (InspectTemplate) { option (google.api.http) = { get: "/v2/{name=organizations/*/inspectTemplates/*}" @@ -125,7 +125,7 @@ service DlpService { }; } - // Lists inspect templates. + // Lists InspectTemplates. rpc ListInspectTemplates(ListInspectTemplatesRequest) returns (ListInspectTemplatesResponse) { option (google.api.http) = { get: "/v2/{parent=organizations/*}/inspectTemplates" @@ -135,7 +135,7 @@ service DlpService { }; } - // Deletes an inspect template. + // Deletes an InspectTemplate. rpc DeleteInspectTemplate(DeleteInspectTemplateRequest) returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v2/{name=organizations/*/inspectTemplates/*}" @@ -145,8 +145,8 @@ service DlpService { }; } - // Creates a de-identify template for re-using frequently used configuration - // for Deidentifying content, images, and storage. + // Creates a DeidentifyTemplate for re-using frequently used configuration + // for de-identifying content, images, and storage. rpc CreateDeidentifyTemplate(CreateDeidentifyTemplateRequest) returns (DeidentifyTemplate) { option (google.api.http) = { post: "/v2/{parent=organizations/*}/deidentifyTemplates" @@ -158,7 +158,7 @@ service DlpService { }; } - // Updates the de-identify template. + // Updates the DeidentifyTemplate. rpc UpdateDeidentifyTemplate(UpdateDeidentifyTemplateRequest) returns (DeidentifyTemplate) { option (google.api.http) = { patch: "/v2/{name=organizations/*/deidentifyTemplates/*}" @@ -170,7 +170,7 @@ service DlpService { }; } - // Gets a de-identify template. + // Gets a DeidentifyTemplate. rpc GetDeidentifyTemplate(GetDeidentifyTemplateRequest) returns (DeidentifyTemplate) { option (google.api.http) = { get: "/v2/{name=organizations/*/deidentifyTemplates/*}" @@ -180,7 +180,7 @@ service DlpService { }; } - // Lists de-identify templates. + // Lists DeidentifyTemplates. rpc ListDeidentifyTemplates(ListDeidentifyTemplatesRequest) returns (ListDeidentifyTemplatesResponse) { option (google.api.http) = { get: "/v2/{parent=organizations/*}/deidentifyTemplates" @@ -190,7 +190,7 @@ service DlpService { }; } - // Deletes a de-identify template. + // Deletes a DeidentifyTemplate. rpc DeleteDeidentifyTemplate(DeleteDeidentifyTemplateRequest) returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v2/{name=organizations/*/deidentifyTemplates/*}" @@ -238,8 +238,8 @@ service DlpService { }; } - // Creates a new job to inspect storage or calculate risk metrics [How-to - // guide](/dlp/docs/compute-risk-analysis). + // Creates a new job to inspect storage or calculate risk metrics. + // [How-to guide](/dlp/docs/compute-risk-analysis). rpc CreateDlpJob(CreateDlpJobRequest) returns (DlpJob) { option (google.api.http) = { post: "/v2/{parent=projects/*}/dlpJobs" @@ -766,7 +766,7 @@ message InfoTypeStats { // The results of an inspect DataSource job. message InspectDataSourceDetails { message RequestedOptions { - // If run with an inspect template, a snapshot of it's state at the time of + // If run with an InspectTemplate, a snapshot of its state at the time of // this run. InspectTemplate snapshot_inspect_template = 1; @@ -1939,7 +1939,7 @@ message Action { } // Publish the results of a DlpJob to a pub sub channel. - // Compatible with: Inpect, Risk + // Compatible with: Inspect, Risk message PublishToPubSub { // Cloud Pub/Sub topic to send notifications to. The topic must have given // publishing access rights to the DLP API service account executing