Add dlp v2beta1 configs (#331)

* Add dlp v2beta1 configs

* Review fixes

* Remove mixin from service config APIs
This commit is contained in:
Evawere Ogbe 2017-05-01 13:01:28 -07:00 committed by GitHub
parent 3ed5397c02
commit 001f6702ac
3 changed files with 225 additions and 0 deletions

44
gapic/api/artman_dlp.yaml Normal file
View File

@ -0,0 +1,44 @@
common:
api_name: dlp
api_version: v2beta1
package_type: grpc_client
organization_name: google-cloud
proto_deps:
- google-common-protos
import_proto_path:
- ${GOOGLEAPIS}
src_proto_path:
- ${GOOGLEAPIS}/google/privacy/dlp/v2beta1
service_yaml:
- ${GOOGLEAPIS}/google/privacy/dlp/dlp.yaml
gapic_api_yaml:
- ${GOOGLEAPIS}/google/privacy/dlp/v2beta1/dlp_gapic.yaml
output_dir: ${REPOROOT}/artman/output
git_repos:
staging:
location: git@github.com:googleapis/api-client-staging.git
enable_batch_generation: True
java:
gapic_code_dir: ${REPOROOT}/artman/output/java/google-cloud-dlp
git_repos:
java:
location: git@github.com:GoogleCloudPlatform/google-cloud-java.git
gapic_subpath: google-cloud-dlp
staging:
gapic_subpath: generated/java/google-cloud-dlp-v2beta1
nodejs:
gapic_code_dir: ${REPOROOT}/artman/output/js/dlp-v2beta1
git_repos:
nodejs:
gapic_component: src/v2beta1
gapic_subpath: packages/dlp/src/v2beta1
location: git@github.com:GoogleCloudPlatform/google-cloud-node.git
staging:
gapic_subpath: generated/nodejs/google-cloud-node/packages/dlp
skip_packman: True
python:
gapic_code_dir: ${REPOROOT}/artman/output/gapic-google-cloud-dlp-v2beta1
git_repos:
staging:
gapic_subpath: generated/python/gapic-google-cloud-dlp-v2beta1
grpc_subpath: generated/python/proto-google-cloud-dlp-v2beta1

View File

@ -0,0 +1,59 @@
# The DLP API Definition.
type: google.api.Service
config_version: 3
name: dlp.googleapis.com
title: DLP API
documentation:
summary:
The Google Data Loss Prevention API provides methods for detection
of privacy-sensitive fragments in text, images, and Google Cloud
Platform storage repositories.
overview: |
(== suppress_warning documentation-presence ==)
rules:
- selector: google.longrunning.ListOperationsRequest
description: Fetch the list of long running operations.`
- selector: google.longrunning.ListOperationsRequest.filter
description: This parameter supports filtering by done, ie done=true or done=false.
- selector: google.longrunning.ListOperationsRequest.page_size
description: The list page size. The max allowed value is 256 and default is 100.
- selector: google.longrunning.ListOperationsRequest.page_token
description: The list page token.
- selector: google.longrunning.Operation.name
description: >
The server-assigned name, The `name`
should have the format of `inspect/operations/<identifier>`.
- selector: google.longrunning.Operation.metadata
description: >
This field will contain an
[`InspectOperationMetdata`][google.privacy.dlp.v2beta1.InspectOperationMetadata] object.
- selector: google.longrunning.Operation.response
description: >
This field will contain an
[`InspectOperationResult`][google.privacy.dlp.v2beta1.InspectOperationResult] object.
- selector: google.longrunning.Operations.CancelOperation
description: >
Cancels an operation. Use the get method to check whether the cancellation
succeeded or whether the operation completed despite cancellation.
- selector: google.longrunning.Operations.DeleteOperation
description: This method is not supported and the server returns `UNIMPLEMENTED`.
apis:
- name: google.privacy.dlp.v2beta1.DlpService
authentication:
rules:
- selector: '*'
oauth:
canonical_scopes: https://www.googleapis.com/auth/cloud-platform

View File

@ -0,0 +1,122 @@
type: com.google.api.codegen.ConfigProto
language_settings:
java:
package_name: com.google.cloud.privacy.dlp.spi.v2beta1
python:
package_name: google.cloud.gapic.privacy.dlp.v2beta1
go:
package_name: cloud.google.com/go/privacy/dlp/apiv2beta1
csharp:
package_name: Google.Privacy.Dlp.V2beta1
ruby:
package_name: Google::Cloud::Privacy::Dlp::V2beta1
php:
package_name: Google\Cloud\Privacy\Dlp\V2beta1
nodejs:
package_name: dlp.v2beta1
license_header:
copyright_file: copyright-google.txt
license_file: license-header-apache-2.0.txt
interfaces:
- name: google.privacy.dlp.v2beta1.DlpService
collections:
- name_pattern: inspect/results/{result}
entity_name: result
retry_codes_def:
- name: idempotent
retry_codes:
- UNAVAILABLE
- DEADLINE_EXCEEDED
- name: non_idempotent
retry_codes:
- UNAVAILABLE
retry_params_def:
- name: default
initial_retry_delay_millis: 100
retry_delay_multiplier: 1.3
max_retry_delay_millis: 60000
initial_rpc_timeout_millis: 20000
rpc_timeout_multiplier: 1
max_rpc_timeout_millis: 20000
total_timeout_millis: 600000
methods:
- name: InspectContent
flattening:
groups:
- parameters:
- inspect_config
- items
required_fields:
- inspect_config
- items
request_object_method: true
retry_codes_name: non_idempotent
retry_params_name: default
timeout_millis: 60000
- name: RedactContent
flattening:
groups:
- parameters:
- inspect_config
- items
- replace_configs
required_fields:
- inspect_config
- items
- replace_configs
request_object_method: true
retry_codes_name: non_idempotent
retry_params_name: default
timeout_millis: 60000
- name: CreateInspectOperation
flattening:
groups:
- parameters:
- inspect_config
- storage_config
- output_config
required_fields:
- inspect_config
- storage_config
- output_config
request_object_method: true
retry_codes_name: non_idempotent
retry_params_name: default
timeout_millis: 60000
- name: ListInspectFindings
flattening:
groups:
- parameters:
- name
required_fields:
- name
request_object_method: true
retry_codes_name: idempotent
retry_params_name: default
field_name_patterns:
name: result
timeout_millis: 60000
- name: ListInfoTypes
flattening:
groups:
- parameters:
- category
- language_code
required_fields:
- category
- language_code
request_object_method: true
retry_codes_name: idempotent
retry_params_name: default
timeout_millis: 60000
- name: ListRootCategories
flattening:
groups:
- parameters:
- language_code
required_fields:
- language_code
request_object_method: false
retry_codes_name: idempotent
retry_params_name: default
timeout_millis: 60000