Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(maps/routing): start generating apiv2 #7011

Merged
merged 2 commits into from Nov 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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"
]
}
}
}
}
}
}
}