Skip to content

Commit 42790f4

Browse files
build: use bazel build (#355)
1 parent c9c35b4 commit 42790f4

9 files changed

+3077
-3083
lines changed

packages/google-cloud-oslogin/protos/protos.d.ts

+614-614
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/google-cloud-oslogin/protos/protos.js

+2,236-2,236
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/google-cloud-oslogin/protos/protos.json

+192-192
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/google-cloud-oslogin/src/v1/os_login_service_client_config.json

+12-6
Original file line numberDiff line numberDiff line change
@@ -21,27 +21,33 @@
2121
},
2222
"methods": {
2323
"DeletePosixAccount": {
24-
"retry_codes_name": "non_idempotent",
24+
"timeout_millis": 10000,
25+
"retry_codes_name": "idempotent",
2526
"retry_params_name": "default"
2627
},
2728
"DeleteSshPublicKey": {
28-
"retry_codes_name": "non_idempotent",
29+
"timeout_millis": 10000,
30+
"retry_codes_name": "idempotent",
2931
"retry_params_name": "default"
3032
},
3133
"GetLoginProfile": {
32-
"retry_codes_name": "non_idempotent",
34+
"timeout_millis": 10000,
35+
"retry_codes_name": "idempotent",
3336
"retry_params_name": "default"
3437
},
3538
"GetSshPublicKey": {
36-
"retry_codes_name": "non_idempotent",
39+
"timeout_millis": 10000,
40+
"retry_codes_name": "idempotent",
3741
"retry_params_name": "default"
3842
},
3943
"ImportSshPublicKey": {
40-
"retry_codes_name": "non_idempotent",
44+
"timeout_millis": 10000,
45+
"retry_codes_name": "idempotent",
4146
"retry_params_name": "default"
4247
},
4348
"UpdateSshPublicKey": {
44-
"retry_codes_name": "non_idempotent",
49+
"timeout_millis": 10000,
50+
"retry_codes_name": "idempotent",
4551
"retry_params_name": "default"
4652
}
4753
}
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
[
2-
"../../protos/google/cloud/oslogin/common/common.proto",
32
"../../protos/google/cloud/oslogin/v1/oslogin.proto"
43
]

packages/google-cloud-oslogin/src/v1beta/os_login_service_client_config.json

+12-6
Original file line numberDiff line numberDiff line change
@@ -21,27 +21,33 @@
2121
},
2222
"methods": {
2323
"DeletePosixAccount": {
24-
"retry_codes_name": "non_idempotent",
24+
"timeout_millis": 10000,
25+
"retry_codes_name": "idempotent",
2526
"retry_params_name": "default"
2627
},
2728
"DeleteSshPublicKey": {
28-
"retry_codes_name": "non_idempotent",
29+
"timeout_millis": 10000,
30+
"retry_codes_name": "idempotent",
2931
"retry_params_name": "default"
3032
},
3133
"GetLoginProfile": {
32-
"retry_codes_name": "non_idempotent",
34+
"timeout_millis": 10000,
35+
"retry_codes_name": "idempotent",
3336
"retry_params_name": "default"
3437
},
3538
"GetSshPublicKey": {
36-
"retry_codes_name": "non_idempotent",
39+
"timeout_millis": 10000,
40+
"retry_codes_name": "idempotent",
3741
"retry_params_name": "default"
3842
},
3943
"ImportSshPublicKey": {
40-
"retry_codes_name": "non_idempotent",
44+
"timeout_millis": 10000,
45+
"retry_codes_name": "idempotent",
4146
"retry_params_name": "default"
4247
},
4348
"UpdateSshPublicKey": {
44-
"retry_codes_name": "non_idempotent",
49+
"timeout_millis": 10000,
50+
"retry_codes_name": "idempotent",
4551
"retry_params_name": "default"
4652
}
4753
}
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
[
2-
"../../protos/google/cloud/oslogin/common/common.proto",
32
"../../protos/google/cloud/oslogin/v1beta/oslogin.proto"
43
]

packages/google-cloud-oslogin/synth.metadata

+9-17
Original file line numberDiff line numberDiff line change
@@ -3,43 +3,35 @@
33
{
44
"git": {
55
"name": ".",
6-
"remote": "https://github.com/googleapis/nodejs-os-login.git",
7-
"sha": "ca3ca7d647ce15583a925970fa2ffb07e2c601ca"
8-
}
9-
},
10-
{
11-
"git": {
12-
"name": "googleapis",
13-
"remote": "https://github.com/googleapis/googleapis.git",
14-
"sha": "6dfd72d028a0d0a43764e060f7b15e004385c3a1",
15-
"internalRef": "310168181"
6+
"remote": "[email protected]:googleapis/nodejs-os-login.git",
7+
"sha": "74d62a085a636242ff9479991ae1e2be2bf71800"
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
],
2618
"destinations": [
2719
{
2820
"client": {
2921
"source": "googleapis",
30-
"apiName": "os-login",
22+
"apiName": "oslogin",
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",
39-
"apiName": "os-login",
31+
"apiName": "oslogin",
4032
"apiVersion": "v1beta",
41-
"language": "typescript",
42-
"generator": "gapic-generator-typescript"
33+
"language": "nodejs",
34+
"generator": "bazel"
4335
}
4436
}
4537
]

packages/google-cloud-oslogin/synth.py

+2-10
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,10 @@
2424
AUTOSYNTH_MULTIPLE_COMMITS = True
2525

2626

27-
gapic = gcp.GAPICMicrogenerator()
27+
gapic = gcp.GAPICBazel()
2828
versions = ['v1', 'v1beta']
2929
for version in versions:
30-
library = gapic.typescript_library(
31-
'os-login',
32-
generator_args={
33-
"grpc-service-config": f"google/cloud/oslogin/{version}/oslogin_grpc_service_config.json",
34-
"package-name": f"@google-cloud/os-login"
35-
},
36-
proto_path=f'/google/cloud/oslogin/{version}',
37-
extra_proto_files=['google/cloud/oslogin/common/common.proto'],
38-
version=version)
30+
library = gapic.node_library('oslogin', version, proto_path=f'google/cloud/oslogin/{version}')
3931

4032
# skip index, protos, package.json, and README.md
4133
s.copy(

0 commit comments

Comments
 (0)