Skip to content

Commit cac48ea

Browse files
authored
feat(tpu): start generating apiv1 (#4199)
1 parent f97bdfa commit cac48ea

File tree

6 files changed

+1612
-0
lines changed

6 files changed

+1612
-0
lines changed

internal/.repo-metadata-full.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1232,6 +1232,15 @@
12321232
"release_level": "ga",
12331233
"library_type": ""
12341234
},
1235+
"cloud.google.com/go/tpu/apiv1": {
1236+
"distribution_name": "cloud.google.com/go/tpu/apiv1",
1237+
"description": "Cloud TPU API",
1238+
"language": "Go",
1239+
"client_library_type": "generated",
1240+
"docs_url": "https://cloud.google.com/go/docs/reference/cloud.google.com/go/latest/tpu/apiv1",
1241+
"release_level": "beta",
1242+
"library_type": ""
1243+
},
12351244
"cloud.google.com/go/trace/apiv1": {
12361245
"distribution_name": "cloud.google.com/go/trace/apiv1",
12371246
"description": "Stackdriver Trace API",

internal/gapicgen/generator/config.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1125,6 +1125,15 @@ var microgenGapicConfigs = []*microgenConfig{
11251125
apiServiceConfigPath: "google/cloud/privatecatalog/v1beta1/cloudprivatecatalog_v1beta1.yaml",
11261126
releaseLevel: "beta",
11271127
},
1128+
{
1129+
inputDirectoryPath: "google/cloud/tpu/v1",
1130+
pkg: "tpu",
1131+
importPath: "cloud.google.com/go/tpu/apiv1",
1132+
gRPCServiceConfigPath: "google/cloud/tpu/v1/tpu_grpc_service_config.json",
1133+
apiServiceConfigPath: "google/cloud/tpu/v1/tpu_v1.yaml",
1134+
// GA after 2021/07/02
1135+
releaseLevel: "beta",
1136+
},
11281137

11291138
// Non-Cloud APIs
11301139
{

tpu/apiv1/doc.go

Lines changed: 118 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tpu/apiv1/gapic_metadata.json

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
{
2+
"schema": "1.0",
3+
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods.",
4+
"language": "go",
5+
"protoPackage": "google.cloud.tpu.v1",
6+
"libraryPackage": "cloud.google.com/go/tpu/apiv1",
7+
"services": {
8+
"Tpu": {
9+
"clients": {
10+
"grpc": {
11+
"libraryClient": "Client",
12+
"rpcs": {
13+
"CreateNode": {
14+
"methods": [
15+
"CreateNode"
16+
]
17+
},
18+
"DeleteNode": {
19+
"methods": [
20+
"DeleteNode"
21+
]
22+
},
23+
"GetAcceleratorType": {
24+
"methods": [
25+
"GetAcceleratorType"
26+
]
27+
},
28+
"GetNode": {
29+
"methods": [
30+
"GetNode"
31+
]
32+
},
33+
"GetTensorFlowVersion": {
34+
"methods": [
35+
"GetTensorFlowVersion"
36+
]
37+
},
38+
"ListAcceleratorTypes": {
39+
"methods": [
40+
"ListAcceleratorTypes"
41+
]
42+
},
43+
"ListNodes": {
44+
"methods": [
45+
"ListNodes"
46+
]
47+
},
48+
"ListTensorFlowVersions": {
49+
"methods": [
50+
"ListTensorFlowVersions"
51+
]
52+
},
53+
"ReimageNode": {
54+
"methods": [
55+
"ReimageNode"
56+
]
57+
},
58+
"StartNode": {
59+
"methods": [
60+
"StartNode"
61+
]
62+
},
63+
"StopNode": {
64+
"methods": [
65+
"StopNode"
66+
]
67+
}
68+
}
69+
}
70+
}
71+
}
72+
}
73+
}

0 commit comments

Comments
 (0)