From 93b86c33893dc52a760e7c589b905bc54de3e246 Mon Sep 17 00:00:00 2001 From: Cristian Magherusan-Stanciu Date: Wed, 14 Oct 2026 00:03:59 +0200 Subject: [PATCH] feat(common): add ExperimentalGCPPlanTerm to RecommendationParams Opt-in flag, default false, for the GCP Compute plan-derived CUD term (go#291). Split from go#401 so provider modules can bump the pkg pin. Co-Authored-By: Claude Sonnet 5.5 --- pkg/common/types.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/common/types.go b/pkg/common/types.go index 9cfefe0..7be0d3c 100644 --- a/pkg/common/types.go +++ b/pkg/common/types.go @@ -529,6 +529,11 @@ type RecommendationParams struct { // recommendations: "linked" or "payer" (case-insensitive). Empty means // linked. Payer scope only applies to a management account. SPAccountScope string + // ExperimentalGCPPlanTerm (GCP Compute Engine only, ignored elsewhere) + // takes the CUD term from the recommendation's root Commitment plan + // instead of Term. EXPERIMENTAL: the payload shape is unverified against a + // live Recommender. Default false keeps Term, defaulting to "1yr". + ExperimentalGCPPlanTerm bool } // Account represents a cloud account/subscription/project.