Skip to content

Commit

Permalink
chore(storage): switch gapic to apiv2 (#4440)
Browse files Browse the repository at this point in the history
Switch to generation of the Storage v2 API. Remove v1 API config and code.

cc: @tritone
  • Loading branch information
noahdietz committed Jul 15, 2021
1 parent f1d66d9 commit 60160af
Show file tree
Hide file tree
Showing 10 changed files with 479 additions and 3,740 deletions.
6 changes: 3 additions & 3 deletions internal/.repo-metadata-full.json
Expand Up @@ -1286,12 +1286,12 @@
"release_level": "ga",
"library_type": "GAPIC_MANUAL"
},
"cloud.google.com/go/storage/internal/apiv1": {
"distribution_name": "cloud.google.com/go/storage/internal/apiv1",
"cloud.google.com/go/storage/internal/apiv2": {
"distribution_name": "cloud.google.com/go/storage/internal/apiv2",
"description": "Cloud Storage API",
"language": "Go",
"client_library_type": "generated",
"docs_url": "https://cloud.google.com/go/docs/reference/cloud.google.com/go/latest/storage/internal/apiv1",
"docs_url": "https://cloud.google.com/go/docs/reference/cloud.google.com/go/latest/storage/internal/apiv2",
"release_level": "alpha",
"library_type": ""
},
Expand Down
6 changes: 3 additions & 3 deletions internal/gapicgen/generator/config.go
Expand Up @@ -1259,11 +1259,11 @@ var microgenGapicConfigs = []*microgenConfig{
releaseLevel: "ga",
},
{
inputDirectoryPath: "google/storage/v1",
inputDirectoryPath: "google/storage/v2",
pkg: "storage",
importPath: "cloud.google.com/go/storage/internal/apiv1",
importPath: "cloud.google.com/go/storage/internal/apiv2",
gRPCServiceConfigPath: "storage_grpc_service_config.json",
apiServiceConfigPath: "storage_v1.yaml",
apiServiceConfigPath: "storage_v2.yaml",
releaseLevel: "alpha",
},
}
2 changes: 1 addition & 1 deletion internal/gapicgen/generator/config_test.go
Expand Up @@ -35,7 +35,7 @@ var apivExceptions = map[string]bool{
var packagePathExceptions = map[string]bool{
"cloud.google.com/go/longrunning/autogen": true,
"cloud.google.com/go/firestore/apiv1/admin": true,
"cloud.google.com/go/storage/internal/apiv1": true,
"cloud.google.com/go/storage/internal/apiv2": true,
}

// TestMicrogenConfigs validates config entries.
Expand Down
298 changes: 0 additions & 298 deletions storage/internal/apiv1/gapic_metadata.json

This file was deleted.

0 comments on commit 60160af

Please sign in to comment.