Skip to content

Commit

Permalink
feat(routing): start generating apiv2 (#7011)
Browse files Browse the repository at this point in the history
  • Loading branch information
quartzmo committed Nov 11, 2022
1 parent 3e88250 commit 66e8e27
Show file tree
Hide file tree
Showing 26 changed files with 7,114 additions and 5 deletions.
9 changes: 9 additions & 0 deletions internal/.repo-metadata-full.json
Expand Up @@ -1061,6 +1061,15 @@
"release_level": "beta",
"library_type": "GAPIC_AUTO"
},
"cloud.google.com/go/maps/routing/apiv2": {
"distribution_name": "cloud.google.com/go/maps/routing/apiv2",
"description": "Routes API",
"language": "Go",
"client_library_type": "generated",
"docs_url": "https://cloud.google.com/go/docs/reference/cloud.google.com/go/maps/latest/routing/apiv2",
"release_level": "beta",
"library_type": "GAPIC_AUTO"
},
"cloud.google.com/go/mediatranslation/apiv1beta1": {
"distribution_name": "cloud.google.com/go/mediatranslation/apiv1beta1",
"description": "Media Translation API",
Expand Down
4 changes: 4 additions & 0 deletions internal/aliasfix/mappings.go
Expand Up @@ -838,4 +838,8 @@ var GenprotoPkgMigration map[string]Pkg = map[string]Pkg{
ImportPath: "cloud.google.com/go/maps/addressvalidation/apiv1/addressvalidationpb",
Status: StatusMigrated,
},
"google.golang.org/genproto/googleapis/maps/routing/v2": {
ImportPath: "cloud.google.com/go/maps/routing/apiv2/routingpb",
Status: StatusMigrated,
},
}
16 changes: 11 additions & 5 deletions internal/gapicgen/generator/config.go
Expand Up @@ -1705,8 +1705,7 @@ var MicrogenGapicConfigs = []*MicrogenConfig{
GRPCServiceConfigPath: "dialogflow_grpc_service_config.json",
ApiServiceConfigPath: "dialogflow_v2beta1.yaml",
Transports: []string{"grpc", "rest"},
// GA after 2022/10/01
ReleaseLevel: "beta",
ReleaseLevel: "beta",
},
{
InputDirectoryPath: "google/iam/v2",
Expand All @@ -1724,8 +1723,7 @@ var MicrogenGapicConfigs = []*MicrogenConfig{
GRPCServiceConfigPath: "publicca_v1beta1_grpc_service_config.json",
ApiServiceConfigPath: "publicca_v1beta1.yaml",
Transports: []string{"grpc", "rest"},
// GA after 2022/10/10
ReleaseLevel: "beta",
ReleaseLevel: "beta",
},
{
InputDirectoryPath: "google/cloud/edgecontainer/v1",
Expand Down Expand Up @@ -1771,7 +1769,15 @@ var MicrogenGapicConfigs = []*MicrogenConfig{
GRPCServiceConfigPath: "dataform_grpc_service_config.json",
ApiServiceConfigPath: "dataform_v1beta1.yaml",
Transports: []string{"grpc", "rest"},
// GA after 2022/11/18
ReleaseLevel: "beta",
},
{
InputDirectoryPath: "google/maps/routing/v2",
Pkg: "routing",
ImportPath: "cloud.google.com/go/maps/routing/apiv2",
GRPCServiceConfigPath: "library_grpc_service_config.json",
ApiServiceConfigPath: "routes_v2.yaml",
// GA after 2022/12/10
ReleaseLevel: "beta",
},
{
Expand Down
172 changes: 172 additions & 0 deletions maps/routing/apiv2/doc.go

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

28 changes: 28 additions & 0 deletions maps/routing/apiv2/gapic_metadata.json
@@ -0,0 +1,28 @@
{
"schema": "1.0",
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods.",
"language": "go",
"protoPackage": "google.maps.routing.v2",
"libraryPackage": "cloud.google.com/go/maps/routing/apiv2",
"services": {
"Routes": {
"clients": {
"grpc": {
"libraryClient": "RoutesClient",
"rpcs": {
"ComputeRouteMatrix": {
"methods": [
"ComputeRouteMatrix"
]
},
"ComputeRoutes": {
"methods": [
"ComputeRoutes"
]
}
}
}
}
}
}
}

0 comments on commit 66e8e27

Please sign in to comment.