Skip to content

Commit

Permalink
feat(maps/routing): start generating apiv2
Browse files Browse the repository at this point in the history
  • Loading branch information
quartzmo committed Nov 10, 2022
1 parent 3e88250 commit 413899b
Show file tree
Hide file tree
Showing 28 changed files with 7,118 additions and 5 deletions.
1 change: 1 addition & 0 deletions .release-please-manifest-submodules.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
"resourcemanager": "1.4.0",
"resourcesettings": "1.4.0",
"retail": "1.11.0",
"routing": "0.0.0",
"run": "0.4.0",
"scheduler": "1.7.0",
"secretmanager": "1.9.0",
Expand Down
9 changes: 9 additions & 0 deletions internal/.repo-metadata-full.json
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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"
]
}
}
}
}
}
}
}
Loading

0 comments on commit 413899b

Please sign in to comment.