From 177770b5989a7c593e712d6dee524d9242d50bba Mon Sep 17 00:00:00 2001 From: "alvarez.mauriciotm@gmail.com" Date: Mon, 3 Aug 2026 14:32:08 -0700 Subject: [PATCH 1/2] initial commit --- mmv1/products/cloudbuild/BitbucketServerConfig.yaml | 1 + mmv1/products/cloudbuild/Trigger.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/mmv1/products/cloudbuild/BitbucketServerConfig.yaml b/mmv1/products/cloudbuild/BitbucketServerConfig.yaml index d3346b52e378..b918ef0898b3 100644 --- a/mmv1/products/cloudbuild/BitbucketServerConfig.yaml +++ b/mmv1/products/cloudbuild/BitbucketServerConfig.yaml @@ -32,6 +32,7 @@ async: result: resource_inside_response: true autogen_async: true +generate_list_resource: true include_in_tgc_next: true custom_code: encoder: templates/terraform/encoders/cloudbuild_bitbucketserver_config.go.tmpl diff --git a/mmv1/products/cloudbuild/Trigger.yaml b/mmv1/products/cloudbuild/Trigger.yaml index 8ef3b314ef6c..094a463a9acd 100644 --- a/mmv1/products/cloudbuild/Trigger.yaml +++ b/mmv1/products/cloudbuild/Trigger.yaml @@ -34,6 +34,7 @@ update_verb: 'PATCH' import_format: - 'projects/{{project}}/triggers/{{trigger_id}}' - 'projects/{{project}}/locations/{{location}}/triggers/{{trigger_id}}' +generate_list_resource: true timeouts: insert_minutes: 20 update_minutes: 20 From dba48d3663a452617fbf5dacc14c45df82d2e23e Mon Sep 17 00:00:00 2001 From: "alvarez.mauriciotm@gmail.com" Date: Fri, 7 Aug 2026 11:24:34 -0700 Subject: [PATCH 2/2] cloudbuild: fix Trigger list resource - required location and correct collection_url_key - Mark location parameter as required (remove default_value: 'global') so the generated list resource requires location as a filter field - Add collection_url_key: 'triggers' to match the actual API response key (api_resource_type_kind: BuildTrigger was generating 'buildTriggers', but the Cloud Build API returns the list under the 'triggers' key) Both TestAccCloudBuildTriggerListQuery_generated and TestAccCloudBuildBitbucketServerConfigListQuery_generated now pass. --- mmv1/products/cloudbuild/Trigger.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mmv1/products/cloudbuild/Trigger.yaml b/mmv1/products/cloudbuild/Trigger.yaml index 094a463a9acd..d3c52fa428f2 100644 --- a/mmv1/products/cloudbuild/Trigger.yaml +++ b/mmv1/products/cloudbuild/Trigger.yaml @@ -29,6 +29,7 @@ docs: id_format: 'projects/{{project}}/locations/{{location}}/triggers/{{trigger_id}}' base_url: 'projects/{{project}}/locations/{{location}}/triggers' self_link: 'projects/{{project}}/locations/{{location}}/triggers/{{trigger_id}}' +collection_url_key: 'triggers' update_verb: 'PATCH' # import by default only works with old-style self links ending in a name import_format: @@ -184,10 +185,9 @@ parameters: type: String description: | The [Cloud Build location](https://cloud.google.com/build/docs/locations) for the trigger. - If not specified, "global" is used. url_param_only: true immutable: true - default_value: "global" + required: true properties: - name: 'trigger_id' type: String