Skip to content

Commit 66e8e27

Browse files
authored
feat(routing): start generating apiv2 (#7011)
1 parent 3e88250 commit 66e8e27

26 files changed

+7114
-5
lines changed

internal/.repo-metadata-full.json

+9
Original file line numberDiff line numberDiff line change
@@ -1061,6 +1061,15 @@
10611061
"release_level": "beta",
10621062
"library_type": "GAPIC_AUTO"
10631063
},
1064+
"cloud.google.com/go/maps/routing/apiv2": {
1065+
"distribution_name": "cloud.google.com/go/maps/routing/apiv2",
1066+
"description": "Routes API",
1067+
"language": "Go",
1068+
"client_library_type": "generated",
1069+
"docs_url": "https://cloud.google.com/go/docs/reference/cloud.google.com/go/maps/latest/routing/apiv2",
1070+
"release_level": "beta",
1071+
"library_type": "GAPIC_AUTO"
1072+
},
10641073
"cloud.google.com/go/mediatranslation/apiv1beta1": {
10651074
"distribution_name": "cloud.google.com/go/mediatranslation/apiv1beta1",
10661075
"description": "Media Translation API",

internal/aliasfix/mappings.go

+4
Original file line numberDiff line numberDiff line change
@@ -838,4 +838,8 @@ var GenprotoPkgMigration map[string]Pkg = map[string]Pkg{
838838
ImportPath: "cloud.google.com/go/maps/addressvalidation/apiv1/addressvalidationpb",
839839
Status: StatusMigrated,
840840
},
841+
"google.golang.org/genproto/googleapis/maps/routing/v2": {
842+
ImportPath: "cloud.google.com/go/maps/routing/apiv2/routingpb",
843+
Status: StatusMigrated,
844+
},
841845
}

internal/gapicgen/generator/config.go

+11-5
Original file line numberDiff line numberDiff line change
@@ -1705,8 +1705,7 @@ var MicrogenGapicConfigs = []*MicrogenConfig{
17051705
GRPCServiceConfigPath: "dialogflow_grpc_service_config.json",
17061706
ApiServiceConfigPath: "dialogflow_v2beta1.yaml",
17071707
Transports: []string{"grpc", "rest"},
1708-
// GA after 2022/10/01
1709-
ReleaseLevel: "beta",
1708+
ReleaseLevel: "beta",
17101709
},
17111710
{
17121711
InputDirectoryPath: "google/iam/v2",
@@ -1724,8 +1723,7 @@ var MicrogenGapicConfigs = []*MicrogenConfig{
17241723
GRPCServiceConfigPath: "publicca_v1beta1_grpc_service_config.json",
17251724
ApiServiceConfigPath: "publicca_v1beta1.yaml",
17261725
Transports: []string{"grpc", "rest"},
1727-
// GA after 2022/10/10
1728-
ReleaseLevel: "beta",
1726+
ReleaseLevel: "beta",
17291727
},
17301728
{
17311729
InputDirectoryPath: "google/cloud/edgecontainer/v1",
@@ -1771,7 +1769,15 @@ var MicrogenGapicConfigs = []*MicrogenConfig{
17711769
GRPCServiceConfigPath: "dataform_grpc_service_config.json",
17721770
ApiServiceConfigPath: "dataform_v1beta1.yaml",
17731771
Transports: []string{"grpc", "rest"},
1774-
// GA after 2022/11/18
1772+
ReleaseLevel: "beta",
1773+
},
1774+
{
1775+
InputDirectoryPath: "google/maps/routing/v2",
1776+
Pkg: "routing",
1777+
ImportPath: "cloud.google.com/go/maps/routing/apiv2",
1778+
GRPCServiceConfigPath: "library_grpc_service_config.json",
1779+
ApiServiceConfigPath: "routes_v2.yaml",
1780+
// GA after 2022/12/10
17751781
ReleaseLevel: "beta",
17761782
},
17771783
{

maps/routing/apiv2/doc.go

+172
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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.maps.routing.v2",
6+
"libraryPackage": "cloud.google.com/go/maps/routing/apiv2",
7+
"services": {
8+
"Routes": {
9+
"clients": {
10+
"grpc": {
11+
"libraryClient": "RoutesClient",
12+
"rpcs": {
13+
"ComputeRouteMatrix": {
14+
"methods": [
15+
"ComputeRouteMatrix"
16+
]
17+
},
18+
"ComputeRoutes": {
19+
"methods": [
20+
"ComputeRoutes"
21+
]
22+
}
23+
}
24+
}
25+
}
26+
}
27+
}
28+
}

0 commit comments

Comments
 (0)