Skip to content

Commit

Permalink
build: use bazel build (#407)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-fenster authored Jul 6, 2020
1 parent 203a27c commit bcd8a4f
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,34 +21,42 @@
},
"methods": {
"ListInstances": {
"timeout_millis": 600000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default"
},
"GetInstance": {
"timeout_millis": 600000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default"
},
"CreateInstance": {
"timeout_millis": 600000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default"
},
"UpdateInstance": {
"timeout_millis": 600000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default"
},
"ImportInstance": {
"timeout_millis": 600000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default"
},
"ExportInstance": {
"timeout_millis": 600000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default"
},
"FailoverInstance": {
"timeout_millis": 600000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default"
},
"DeleteInstance": {
"timeout_millis": 600000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,38 +21,47 @@
},
"methods": {
"ListInstances": {
"timeout_millis": 600000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default"
},
"GetInstance": {
"timeout_millis": 600000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default"
},
"CreateInstance": {
"timeout_millis": 600000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default"
},
"UpdateInstance": {
"timeout_millis": 600000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default"
},
"UpgradeInstance": {
"timeout_millis": 600000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default"
},
"ImportInstance": {
"timeout_millis": 600000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default"
},
"ExportInstance": {
"timeout_millis": 600000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default"
},
"FailoverInstance": {
"timeout_millis": 600000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default"
},
"DeleteInstance": {
"timeout_millis": 600000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default"
}
Expand Down
22 changes: 7 additions & 15 deletions packages/google-cloud-redis/synth.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,15 @@
{
"git": {
"name": ".",
"remote": "https://github.com/googleapis/nodejs-redis.git",
"sha": "23a3f7843dd2700746621c8341b579ef8481bd79"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "8be3770465a6cf19bea97a84b3e82b113b0239b6",
"internalRef": "314442049"
"remote": "git@github.com:googleapis/nodejs-redis.git",
"sha": "9adf2a257526fcb70a03c59d2740f58fc830e779"
}
},
{
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "dc9caca650c77b7039e2bbc3339ffb34ae78e5b7"
"sha": "303271797a360f8a439203413f13a160f2f5b3b4"
}
}
],
Expand All @@ -29,17 +21,17 @@
"source": "googleapis",
"apiName": "redis",
"apiVersion": "v1",
"language": "typescript",
"generator": "gapic-generator-typescript"
"language": "nodejs",
"generator": "bazel"
}
},
{
"client": {
"source": "googleapis",
"apiName": "redis",
"apiVersion": "v1beta1",
"language": "typescript",
"generator": "gapic-generator-typescript"
"language": "nodejs",
"generator": "bazel"
}
}
]
Expand Down
12 changes: 2 additions & 10 deletions packages/google-cloud-redis/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,13 @@
AUTOSYNTH_MULTIPLE_COMMITS = True


gapic = gcp.GAPICMicrogenerator()
gapic = gcp.GAPICBazel()

# tasks has two product names, and a poorly named artman yaml
versions = ['v1', 'v1beta1']
name = 'redis'
for version in versions:
library = gapic.typescript_library(
name,
generator_args={
"package-name": f"@google-cloud/{name}"
},
proto_path=f'google/cloud/{name}/{version}',
extra_proto_files=["google/cloud/common_resources.proto"],
version=version,
)
library = gapic.node_library(name, version)
s.copy(
library,
excludes=['package.json', 'README.md'])
Expand Down

0 comments on commit bcd8a4f

Please sign in to comment.