Add configs for cloud vision APIs. (#56)
* Add configs for cloud vision APIs. - gapic.yaml is generated by toolkit - others are hand-written * Modify timeout * Fixes * Remove contextpull/57/head
parent
1e645debc6
commit
cd51948513
3 changed files with 93 additions and 0 deletions
@ -0,0 +1,28 @@ |
|||||||
|
common: |
||||||
|
api_name: cloud-vision-v1 |
||||||
|
import_proto_path: |
||||||
|
- ${THISDIR}/../.. |
||||||
|
src_proto_path: |
||||||
|
- ${THISDIR}/../../google/cloud/vision/v1 |
||||||
|
service_yaml: |
||||||
|
- ${THISDIR}/../../google/cloud/vision/v1/vision.yaml |
||||||
|
auto_merge: true |
||||||
|
auto_resolve: true |
||||||
|
ignore_base: false |
||||||
|
output_dir: ${REPOROOT}/artman/output |
||||||
|
gapic_api_yaml: |
||||||
|
- ${THISDIR}/../../google/cloud/vision/v1/vision_gapic.yaml |
||||||
|
java: |
||||||
|
final_repo_dir: ${REPOROOT}/gcloud-java/gcloud-java-cloud-vision |
||||||
|
python: |
||||||
|
final_repo_dir: ${REPOROOT}/artman/output/gcloud-python-cloud-vision |
||||||
|
go: |
||||||
|
final_repo_dir: ${REPOROOT}/gapi-cloud-vision-go |
||||||
|
csharp: |
||||||
|
final_repo_dir: ${REPOROOT}/artman/output/gcloud-csharp-cloud-vision |
||||||
|
ruby: |
||||||
|
final_repo_dir: ${REPOROOT}/artman/output/gcloud-ruby-cloud-vision |
||||||
|
php: |
||||||
|
final_repo_dir: ${REPOROOT}/artman/output/gcloud-php-cloud-vision |
||||||
|
nodejs: |
||||||
|
final_repo_dir: ${REPOROOT}/artman/output/gcloud-node-cloud-vision |
@ -0,0 +1,19 @@ |
|||||||
|
type: google.api.Service |
||||||
|
config_version: 2 |
||||||
|
name: vision.googleapis.com |
||||||
|
title: Google Cloud Vision API |
||||||
|
|
||||||
|
apis: |
||||||
|
- name: google.cloud.vision.v1.ImageAnnotator |
||||||
|
|
||||||
|
documentation: |
||||||
|
summary: |
||||||
|
'Integrates Google Vision features, including image labeling, face, logo, |
||||||
|
and landmark detection, optical character recognition (OCR), and detection |
||||||
|
of explicit content, into applications.' |
||||||
|
|
||||||
|
authentication: |
||||||
|
rules: |
||||||
|
- selector: '*' |
||||||
|
oauth: |
||||||
|
canonical_scopes: https://www.googleapis.com/auth/cloud-platform |
@ -0,0 +1,46 @@ |
|||||||
|
type: com.google.api.codegen.ConfigProto |
||||||
|
generate_samples: true |
||||||
|
language_settings: |
||||||
|
java: |
||||||
|
package_name: com.google.cloud.vision.v1 |
||||||
|
python: |
||||||
|
package_name: google.cloud.vision.v1 |
||||||
|
go: |
||||||
|
package_name: google.golang.org/google/cloud/vision/v1 |
||||||
|
csharp: |
||||||
|
package_name: Google.Cloud.Vision.V1 |
||||||
|
ruby: |
||||||
|
package_name: Google::Cloud::Vision::V1 |
||||||
|
php: |
||||||
|
package_name: Google\Cloud\Vision\V1 |
||||||
|
interfaces: |
||||||
|
- name: google.cloud.vision.v1.ImageAnnotator |
||||||
|
collections: [] |
||||||
|
retry_codes_def: |
||||||
|
- name: idempotent |
||||||
|
retry_codes: |
||||||
|
- UNAVAILABLE |
||||||
|
- DEADLINE_EXCEEDED |
||||||
|
- name: non_idempotent |
||||||
|
retry_codes: [] |
||||||
|
retry_params_def: |
||||||
|
- name: default |
||||||
|
initial_retry_delay_millis: 100 |
||||||
|
retry_delay_multiplier: 1.3 |
||||||
|
max_retry_delay_millis: 60000 |
||||||
|
initial_rpc_timeout_millis: 60000 |
||||||
|
rpc_timeout_multiplier: 1 |
||||||
|
max_rpc_timeout_millis: 60000 |
||||||
|
total_timeout_millis: 600000 |
||||||
|
methods: |
||||||
|
- name: BatchAnnotateImages |
||||||
|
flattening: |
||||||
|
groups: |
||||||
|
- parameters: |
||||||
|
- requests |
||||||
|
required_fields: |
||||||
|
- requests |
||||||
|
request_object_method: false |
||||||
|
retry_codes_name: idempotent |
||||||
|
retry_params_name: default |
||||||
|
timeout_millis: 60000 |
Loading…
Reference in new issue