Skip to content

Commit

Permalink
Add iam_policy for pubsub_schema (GoogleCloudPlatform#9228)
Browse files Browse the repository at this point in the history
* Add iam_policy for pubsub_schema

* fix: pubsub schema example
  • Loading branch information
Dasio authored Oct 18, 2023
1 parent 31d5b13 commit d314179
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion mmv1/products/pubsub/Schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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'
Expand Down

0 comments on commit d314179

Please sign in to comment.