Skip to content

Commit

Permalink
fix: migrate redis/v1 to grpc_service_config
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 316514980
  • Loading branch information
Google APIs authored and Copybara-Service committed Jun 15, 2020
1 parent 9b170a4 commit 1174f4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 23 deletions.
3 changes: 3 additions & 0 deletions google/cloud/redis/v1/BUILD.bazel
Expand Up @@ -60,6 +60,7 @@ java_gapic_library(
name = "redis_java_gapic",
src = ":redis_proto_with_info",
gapic_yaml = "redis_gapic.yaml",
grpc_service_config = "redis_grpc_service_config.json",
package = "google.cloud.redis.v1",
service_yaml = "redis_v1.yaml",
test_deps = [
Expand Down Expand Up @@ -184,6 +185,7 @@ py_gapic_library(
name = "redis_py_gapic",
src = ":redis_proto_with_info",
gapic_yaml = "redis_gapic.yaml",
grpc_service_config = "redis_grpc_service_config.json",
package = "google.cloud.redis.v1",
service_yaml = "redis_v1.yaml",
deps = [
Expand Down Expand Up @@ -228,6 +230,7 @@ php_gapic_library(
name = "redis_php_gapic",
src = ":redis_proto_with_info",
gapic_yaml = "redis_gapic.yaml",
grpc_service_config = "redis_grpc_service_config.json",
package = "google.cloud.redis.v1",
service_yaml = "redis_v1.yaml",
deps = [
Expand Down
23 changes: 0 additions & 23 deletions google/cloud/redis/v1/redis_gapic.yaml
Expand Up @@ -21,30 +21,7 @@ language_settings:
interfaces:
# The fully qualified name of the API interface.
- name: google.cloud.redis.v1.CloudRedis
retry_codes_def:
- name: idempotent
retry_codes:
- DEADLINE_EXCEEDED
- UNAVAILABLE
- name: non_idempotent
retry_codes: []
# Definition for retry/backoff parameters.
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: ListInstances
retry_codes_name: non_idempotent
retry_params_name: default
- name: GetInstance
retry_codes_name: non_idempotent
retry_params_name: default
- name: CreateInstance
sample_code_init_fields:
- instance_id="test_instance"
Expand Down

0 comments on commit 1174f4a

Please sign in to comment.