From d7adf2e72dfaa14737ed4d1881bf1ac4af916bdf Mon Sep 17 00:00:00 2001 From: VIKRAM SINGH Date: Wed, 15 Nov 2023 16:04:53 +0000 Subject: [PATCH] Adding IAM support in Terraform for Dataform Repository resource (#9457) * Adding IAM support in Terraform for Dataform Repository resource * Adding primary_resource_name property to Example * Adding min-version: beta to IAM policy of repository resource * Update import id used in acceptance tests --------- Co-authored-by: Sarah French <15078782+SarahFrench@users.noreply.github.com> --- mmv1/products/dataform/Repository.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mmv1/products/dataform/Repository.yaml b/mmv1/products/dataform/Repository.yaml index 519134bb2435..6c7b206f65a6 100644 --- a/mmv1/products/dataform/Repository.yaml +++ b/mmv1/products/dataform/Repository.yaml @@ -25,12 +25,18 @@ references: !ruby/object:Api::Resource::ReferenceLinks 'Official Documentation': 'https://cloud.google.com/dataform/docs/' api: 'https://cloud.google.com/dataform/reference/rest/v1beta1/projects.locations.repositories' id_format: projects/{{project}}/locations/{{region}}/repositories/{{name}} +iam_policy: !ruby/object:Api::Resource::IamPolicy + method_name_separator: ':' + parent_resource_attribute: 'repository' + min_version: beta import_format: ['projects/{{project}}/locations/{{region}}/repositories/{{name}}'] examples: - !ruby/object:Provider::Terraform::Examples name: 'dataform_repository' primary_resource_id: dataform_respository + primary_resource_name: + 'fmt.Sprintf("tf_test_dataform_repository%s", context["random_suffix"])' min_version: beta vars: git_repository_name: 'my/repository'