Skip to content

Commit 358a536

Browse files
authored
feat(cloudbuild): Start generating apiv1/v3 (#2830)
A recent [change](googleapis/googleapis@48ce887) has removed some apis from the surface of apiv1/v2. As this is a breaking change, we need to start generating sources under a new import path. A future commit will deprecated the previous package.
1 parent 2b0a5d9 commit 358a536

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

internal/gapicgen/generator/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ var microgenGapicConfigs = []*microgenConfig{
545545
{
546546
inputDirectoryPath: "google/devtools/cloudbuild/v1",
547547
pkg: "cloudbuild",
548-
importPath: "cloud.google.com/go/cloudbuild/apiv1/v2",
548+
importPath: "cloud.google.com/go/cloudbuild/apiv1/v3",
549549
gRPCServiceConfigPath: "google/devtools/cloudbuild/v1/cloudbuild_grpc_service_config.json",
550550
apiServiceConfigPath: "google/devtools/cloudbuild/v1/cloudbuild_v1.yaml",
551551
releaseLevel: "ga",

internal/gapicgen/generator/config_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ var apivExceptions = map[string]bool{
3030
"cloud.google.com/go/firestore/apiv1/admin": true,
3131
"cloud.google.com/go/cloudbuild/apiv1/v2": true,
3232
"cloud.google.com/go/monitoring/apiv3/v2": true,
33+
"cloud.google.com/go/cloudbuild/apiv1/v3": true,
3334
}
3435

3536
// TestMicrogenConfigs validates config entries.

0 commit comments

Comments
 (0)