From 8e1aa399240d474c3c2dc2fb52a436d7f220a462 Mon Sep 17 00:00:00 2001 From: "Brian J. Watson" Date: Thu, 29 Sep 2016 12:21:58 -0700 Subject: [PATCH] Add GAPIC config for LRO (#158) --- gapic/api/artman_longrunning.yaml | 25 ++++++ google/longrunning/longrunning_gapic.yaml | 95 +++++++++++++++++++++++ 2 files changed, 120 insertions(+) create mode 100644 gapic/api/artman_longrunning.yaml create mode 100644 google/longrunning/longrunning_gapic.yaml diff --git a/gapic/api/artman_longrunning.yaml b/gapic/api/artman_longrunning.yaml new file mode 100644 index 000000000..b155d1b77 --- /dev/null +++ b/gapic/api/artman_longrunning.yaml @@ -0,0 +1,25 @@ +common: + api_name: google-longrunning + proto_gen_pkg_deps: + - google-common-protos + import_proto_path: + - ${REPOROOT}/googleapis + src_proto_path: + - ${REPOROOT}/googleapis/google/longrunning + service_yaml: + - ${REPOROOT}/googleapis/google/longrunning/longrunning.yaml + gapic_api_yaml: + - ${REPOROOT}/googleapis/google/longrunning/longrunning_gapic.yaml + output_dir: ${REPOROOT}/artman/output +java: + final_repo_dir: ${REPOROOT}/google-cloud-java/google-cloud-lro +python: + final_repo_dir: ${REPOROOT}/artman/output/gcloud-python-lro +csharp: + final_repo_dir: ${REPOROOT}/artman/output/gcloud-csharp-lro +php: + final_repo_dir: ${REPOROOT}/artman/output/gcloud-php-lro +ruby: + final_repo_dir: ${REPOROOT}/google-cloud-ruby/google-cloud-lro +nodejs: + final_repo_dir: ${REPOROOT}/google-cloud-node/packages/lro diff --git a/google/longrunning/longrunning_gapic.yaml b/google/longrunning/longrunning_gapic.yaml new file mode 100644 index 000000000..2449f8a0b --- /dev/null +++ b/google/longrunning/longrunning_gapic.yaml @@ -0,0 +1,95 @@ +type: com.google.api.codegen.ConfigProto +language_settings: + java: + package_name: com.google.cloud.longrunning + python: + package_name: google.cloud.gapic.longrunning + csharp: + package_name: Google.Longrunning + ruby: + package_name: Google::Cloud::Longrunning + php: + package_name: Google\Cloud\Longrunning + nodejs: + package_name: gax-google-longrunning +interfaces: +- name: google.longrunning.Operations + collections: + - name_pattern: operations/{operation_path=**} + entity_name: operation_path + 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: 20000 + rpc_timeout_multiplier: 1 + max_rpc_timeout_millis: 20000 + total_timeout_millis: 600000 + methods: + - name: GetOperation + flattening: + groups: + - parameters: + - name + required_fields: + - name + request_object_method: false + retry_codes_name: idempotent + retry_params_name: default + field_name_patterns: + name: operation_path + timeout_millis: 60000 + - name: ListOperations + flattening: + groups: + - parameters: + - name + - filter + required_fields: + - name + - filter + request_object_method: true + page_streaming: + request: + page_size_field: page_size + token_field: page_token + response: + token_field: next_page_token + resources_field: operations + retry_codes_name: idempotent + retry_params_name: default + timeout_millis: 60000 + - name: CancelOperation + flattening: + groups: + - parameters: + - name + required_fields: + - name + request_object_method: false + retry_codes_name: idempotent + retry_params_name: default + field_name_patterns: + name: operation_path + timeout_millis: 60000 + - name: DeleteOperation + flattening: + groups: + - parameters: + - name + required_fields: + - name + request_object_method: false + retry_codes_name: idempotent + retry_params_name: default + field_name_patterns: + name: operation_path + timeout_millis: 60000