From d3141795e805407e262f95e2a91e160db948edc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20Miku=C5=A1?= Date: Wed, 18 Oct 2023 22:56:13 +0200 Subject: [PATCH] Add iam_policy for pubsub_schema (#9228) * Add iam_policy for pubsub_schema * fix: pubsub schema example --- mmv1/products/pubsub/Schema.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mmv1/products/pubsub/Schema.yaml b/mmv1/products/pubsub/Schema.yaml index 05bd25eeb29c..b5faf6addc98 100644 --- a/mmv1/products/pubsub/Schema.yaml +++ b/mmv1/products/pubsub/Schema.yaml @@ -25,6 +25,9 @@ create_url: projects/{{project}}/schemas?schemaId={{name}} update_url: projects/{{project}}/schemas/{{name}}:commit update_verb: :POST update_mask: false +iam_policy: !ruby/object:Api::Resource::IamPolicy + parent_resource_attribute: 'schema' + method_name_separator: ':' async: !ruby/object:Provider::Terraform::PollAsync check_response_func_existence: transport_tpg.PollCheckForExistence check_response_func_absence: transport_tpg.PollCheckForAbsence @@ -34,8 +37,11 @@ examples: - !ruby/object:Provider::Terraform::Examples name: 'pubsub_schema_basic' primary_resource_id: 'example' + primary_resource_name: "fmt.Sprintf(\"tf-test-example-schema%s\", + context[\"random_suffix\"\ + ])" vars: - schema_name: 'example' + schema_name: 'example-schema' - !ruby/object:Provider::Terraform::Examples name: 'pubsub_schema_protobuf' primary_resource_id: 'example'