Skip to content

Commit

Permalink
feat(tpu): start generating apiv1 (#4199)
Browse files Browse the repository at this point in the history
  • Loading branch information
codyoss authored Jun 2, 2021
1 parent f97bdfa commit cac48ea
Show file tree
Hide file tree
Showing 6 changed files with 1,612 additions and 0 deletions.
9 changes: 9 additions & 0 deletions internal/.repo-metadata-full.json
Original file line number Diff line number Diff line change
Expand Up @@ -1232,6 +1232,15 @@
"release_level": "ga",
"library_type": ""
},
"cloud.google.com/go/tpu/apiv1": {
"distribution_name": "cloud.google.com/go/tpu/apiv1",
"description": "Cloud TPU API",
"language": "Go",
"client_library_type": "generated",
"docs_url": "https://cloud.google.com/go/docs/reference/cloud.google.com/go/latest/tpu/apiv1",
"release_level": "beta",
"library_type": ""
},
"cloud.google.com/go/trace/apiv1": {
"distribution_name": "cloud.google.com/go/trace/apiv1",
"description": "Stackdriver Trace API",
Expand Down
9 changes: 9 additions & 0 deletions internal/gapicgen/generator/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -1125,6 +1125,15 @@ var microgenGapicConfigs = []*microgenConfig{
apiServiceConfigPath: "google/cloud/privatecatalog/v1beta1/cloudprivatecatalog_v1beta1.yaml",
releaseLevel: "beta",
},
{
inputDirectoryPath: "google/cloud/tpu/v1",
pkg: "tpu",
importPath: "cloud.google.com/go/tpu/apiv1",
gRPCServiceConfigPath: "google/cloud/tpu/v1/tpu_grpc_service_config.json",
apiServiceConfigPath: "google/cloud/tpu/v1/tpu_v1.yaml",
// GA after 2021/07/02
releaseLevel: "beta",
},

// Non-Cloud APIs
{
Expand Down
118 changes: 118 additions & 0 deletions tpu/apiv1/doc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

73 changes: 73 additions & 0 deletions tpu/apiv1/gapic_metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{
"schema": "1.0",
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods.",
"language": "go",
"protoPackage": "google.cloud.tpu.v1",
"libraryPackage": "cloud.google.com/go/tpu/apiv1",
"services": {
"Tpu": {
"clients": {
"grpc": {
"libraryClient": "Client",
"rpcs": {
"CreateNode": {
"methods": [
"CreateNode"
]
},
"DeleteNode": {
"methods": [
"DeleteNode"
]
},
"GetAcceleratorType": {
"methods": [
"GetAcceleratorType"
]
},
"GetNode": {
"methods": [
"GetNode"
]
},
"GetTensorFlowVersion": {
"methods": [
"GetTensorFlowVersion"
]
},
"ListAcceleratorTypes": {
"methods": [
"ListAcceleratorTypes"
]
},
"ListNodes": {
"methods": [
"ListNodes"
]
},
"ListTensorFlowVersions": {
"methods": [
"ListTensorFlowVersions"
]
},
"ReimageNode": {
"methods": [
"ReimageNode"
]
},
"StartNode": {
"methods": [
"StartNode"
]
},
"StopNode": {
"methods": [
"StopNode"
]
}
}
}
}
}
}
}
Loading

0 comments on commit cac48ea

Please sign in to comment.