Skip to content

Commit bcd8a4f

Browse files
build: use bazel build (#407)
1 parent 203a27c commit bcd8a4f

File tree

4 files changed

+26
-25
lines changed

4 files changed

+26
-25
lines changed

packages/google-cloud-redis/src/v1/cloud_redis_client_config.json

+8
Original file line numberDiff line numberDiff line change
@@ -21,34 +21,42 @@
2121
},
2222
"methods": {
2323
"ListInstances": {
24+
"timeout_millis": 600000,
2425
"retry_codes_name": "non_idempotent",
2526
"retry_params_name": "default"
2627
},
2728
"GetInstance": {
29+
"timeout_millis": 600000,
2830
"retry_codes_name": "non_idempotent",
2931
"retry_params_name": "default"
3032
},
3133
"CreateInstance": {
34+
"timeout_millis": 600000,
3235
"retry_codes_name": "non_idempotent",
3336
"retry_params_name": "default"
3437
},
3538
"UpdateInstance": {
39+
"timeout_millis": 600000,
3640
"retry_codes_name": "non_idempotent",
3741
"retry_params_name": "default"
3842
},
3943
"ImportInstance": {
44+
"timeout_millis": 600000,
4045
"retry_codes_name": "non_idempotent",
4146
"retry_params_name": "default"
4247
},
4348
"ExportInstance": {
49+
"timeout_millis": 600000,
4450
"retry_codes_name": "non_idempotent",
4551
"retry_params_name": "default"
4652
},
4753
"FailoverInstance": {
54+
"timeout_millis": 600000,
4855
"retry_codes_name": "non_idempotent",
4956
"retry_params_name": "default"
5057
},
5158
"DeleteInstance": {
59+
"timeout_millis": 600000,
5260
"retry_codes_name": "non_idempotent",
5361
"retry_params_name": "default"
5462
}

packages/google-cloud-redis/src/v1beta1/cloud_redis_client_config.json

+9
Original file line numberDiff line numberDiff line change
@@ -21,38 +21,47 @@
2121
},
2222
"methods": {
2323
"ListInstances": {
24+
"timeout_millis": 600000,
2425
"retry_codes_name": "non_idempotent",
2526
"retry_params_name": "default"
2627
},
2728
"GetInstance": {
29+
"timeout_millis": 600000,
2830
"retry_codes_name": "non_idempotent",
2931
"retry_params_name": "default"
3032
},
3133
"CreateInstance": {
34+
"timeout_millis": 600000,
3235
"retry_codes_name": "non_idempotent",
3336
"retry_params_name": "default"
3437
},
3538
"UpdateInstance": {
39+
"timeout_millis": 600000,
3640
"retry_codes_name": "non_idempotent",
3741
"retry_params_name": "default"
3842
},
3943
"UpgradeInstance": {
44+
"timeout_millis": 600000,
4045
"retry_codes_name": "non_idempotent",
4146
"retry_params_name": "default"
4247
},
4348
"ImportInstance": {
49+
"timeout_millis": 600000,
4450
"retry_codes_name": "non_idempotent",
4551
"retry_params_name": "default"
4652
},
4753
"ExportInstance": {
54+
"timeout_millis": 600000,
4855
"retry_codes_name": "non_idempotent",
4956
"retry_params_name": "default"
5057
},
5158
"FailoverInstance": {
59+
"timeout_millis": 600000,
5260
"retry_codes_name": "non_idempotent",
5361
"retry_params_name": "default"
5462
},
5563
"DeleteInstance": {
64+
"timeout_millis": 600000,
5665
"retry_codes_name": "non_idempotent",
5766
"retry_params_name": "default"
5867
}

packages/google-cloud-redis/synth.metadata

+7-15
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,15 @@
33
{
44
"git": {
55
"name": ".",
6-
"remote": "https://github.com/googleapis/nodejs-redis.git",
7-
"sha": "23a3f7843dd2700746621c8341b579ef8481bd79"
8-
}
9-
},
10-
{
11-
"git": {
12-
"name": "googleapis",
13-
"remote": "https://github.com/googleapis/googleapis.git",
14-
"sha": "8be3770465a6cf19bea97a84b3e82b113b0239b6",
15-
"internalRef": "314442049"
6+
"remote": "[email protected]:googleapis/nodejs-redis.git",
7+
"sha": "9adf2a257526fcb70a03c59d2740f58fc830e779"
168
}
179
},
1810
{
1911
"git": {
2012
"name": "synthtool",
2113
"remote": "https://github.com/googleapis/synthtool.git",
22-
"sha": "dc9caca650c77b7039e2bbc3339ffb34ae78e5b7"
14+
"sha": "303271797a360f8a439203413f13a160f2f5b3b4"
2315
}
2416
}
2517
],
@@ -29,17 +21,17 @@
2921
"source": "googleapis",
3022
"apiName": "redis",
3123
"apiVersion": "v1",
32-
"language": "typescript",
33-
"generator": "gapic-generator-typescript"
24+
"language": "nodejs",
25+
"generator": "bazel"
3426
}
3527
},
3628
{
3729
"client": {
3830
"source": "googleapis",
3931
"apiName": "redis",
4032
"apiVersion": "v1beta1",
41-
"language": "typescript",
42-
"generator": "gapic-generator-typescript"
33+
"language": "nodejs",
34+
"generator": "bazel"
4335
}
4436
}
4537
]

packages/google-cloud-redis/synth.py

+2-10
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,13 @@
88
AUTOSYNTH_MULTIPLE_COMMITS = True
99

1010

11-
gapic = gcp.GAPICMicrogenerator()
11+
gapic = gcp.GAPICBazel()
1212

1313
# tasks has two product names, and a poorly named artman yaml
1414
versions = ['v1', 'v1beta1']
1515
name = 'redis'
1616
for version in versions:
17-
library = gapic.typescript_library(
18-
name,
19-
generator_args={
20-
"package-name": f"@google-cloud/{name}"
21-
},
22-
proto_path=f'google/cloud/{name}/{version}',
23-
extra_proto_files=["google/cloud/common_resources.proto"],
24-
version=version,
25-
)
17+
library = gapic.node_library(name, version)
2618
s.copy(
2719
library,
2820
excludes=['package.json', 'README.md'])

0 commit comments

Comments
 (0)