diff --git a/mmv1/products/datafusion/go_instance.yaml b/mmv1/products/datafusion/go_instance.yaml index 952b4ccb7a29..fecffa4352c2 100644 --- a/mmv1/products/datafusion/go_instance.yaml +++ b/mmv1/products/datafusion/go_instance.yaml @@ -30,7 +30,7 @@ timeouts: delete_minutes: 50 autogen_async: true async: - type: "OpAsync" + type: 'OpAsync' operation: base_url: '{{op_id}}' path: 'name' diff --git a/mmv1/products/pubsub/go_Schema.yaml b/mmv1/products/pubsub/go_Schema.yaml index 463cac379b16..c8642d31b3bc 100644 --- a/mmv1/products/pubsub/go_Schema.yaml +++ b/mmv1/products/pubsub/go_Schema.yaml @@ -32,7 +32,7 @@ timeouts: update_minutes: 20 delete_minutes: 20 async: - type: "PollAsync" + type: 'PollAsync' check_response_func_existence: 'transport_tpg.PollCheckForExistence' check_response_func_absence: 'transport_tpg.PollCheckForAbsence' suppress_error: false diff --git a/mmv1/products/pubsub/go_Subscription.yaml b/mmv1/products/pubsub/go_Subscription.yaml index 141f00def5af..6475ecb3fc16 100644 --- a/mmv1/products/pubsub/go_Subscription.yaml +++ b/mmv1/products/pubsub/go_Subscription.yaml @@ -35,7 +35,7 @@ timeouts: update_minutes: 20 delete_minutes: 20 async: - type: "PollAsync" + type: 'PollAsync' check_response_func_existence: 'transport_tpg.PollCheckForExistence' suppress_error: true actions: ['create'] diff --git a/mmv1/products/pubsub/go_Topic.yaml b/mmv1/products/pubsub/go_Topic.yaml index 229a9bbe29cf..f22cb68f4d7e 100644 --- a/mmv1/products/pubsub/go_Topic.yaml +++ b/mmv1/products/pubsub/go_Topic.yaml @@ -34,7 +34,7 @@ timeouts: update_minutes: 20 delete_minutes: 20 async: - type: "PollAsync" + type: 'PollAsync' check_response_func_existence: 'transport_tpg.PollCheckForExistence' check_response_func_absence: 'transport_tpg.PollCheckForAbsence' suppress_error: true diff --git a/mmv1/templates/terraform/yaml_conversion.erb b/mmv1/templates/terraform/yaml_conversion.erb index 9420dd3f85fd..63497552b8b7 100644 --- a/mmv1/templates/terraform/yaml_conversion.erb +++ b/mmv1/templates/terraform/yaml_conversion.erb @@ -168,6 +168,7 @@ autogen_async: <%= object.autogen_async %> <% unless object.async.nil? -%> async: <% if object.async.is_a? Provider::Terraform::PollAsync -%> + type: 'PollAsync' <% unless object.async.check_response_func_existence.nil? -%> check_response_func_existence: '<%= object.async.check_response_func_existence %>' <% end -%> @@ -185,6 +186,7 @@ async: <% end -%> <% end -%> <% if object.async.is_a? Api::OpAsync -%> + type: 'OpAsync' <% #async.operation %> <% unless object.async.operation.nil? -%> operation: