From 358a5368da64cf4868551652e852ceb453504f64 Mon Sep 17 00:00:00 2001 From: Cody Oss <6331106+codyoss@users.noreply.github.com> Date: Wed, 9 Sep 2020 09:02:02 -0600 Subject: [PATCH] feat(cloudbuild): Start generating apiv1/v3 (#2830) A recent [change](https://github.com/googleapis/googleapis/commit/48ce8878cd4c54cf247de826ac53c1414b0345bd) 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. --- internal/gapicgen/generator/config.go | 2 +- internal/gapicgen/generator/config_test.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/gapicgen/generator/config.go b/internal/gapicgen/generator/config.go index 8930e76152b..a22e37ce3ee 100644 --- a/internal/gapicgen/generator/config.go +++ b/internal/gapicgen/generator/config.go @@ -545,7 +545,7 @@ var microgenGapicConfigs = []*microgenConfig{ { inputDirectoryPath: "google/devtools/cloudbuild/v1", pkg: "cloudbuild", - importPath: "cloud.google.com/go/cloudbuild/apiv1/v2", + importPath: "cloud.google.com/go/cloudbuild/apiv1/v3", gRPCServiceConfigPath: "google/devtools/cloudbuild/v1/cloudbuild_grpc_service_config.json", apiServiceConfigPath: "google/devtools/cloudbuild/v1/cloudbuild_v1.yaml", releaseLevel: "ga", diff --git a/internal/gapicgen/generator/config_test.go b/internal/gapicgen/generator/config_test.go index 006d4533beb..85d679579ca 100644 --- a/internal/gapicgen/generator/config_test.go +++ b/internal/gapicgen/generator/config_test.go @@ -30,6 +30,7 @@ var apivExceptions = map[string]bool{ "cloud.google.com/go/firestore/apiv1/admin": true, "cloud.google.com/go/cloudbuild/apiv1/v2": true, "cloud.google.com/go/monitoring/apiv3/v2": true, + "cloud.google.com/go/cloudbuild/apiv1/v3": true, } // TestMicrogenConfigs validates config entries.