diff --git a/mmv1/products/billingbudget/Budget.yaml b/mmv1/products/billingbudget/Budget.yaml index 0cdc678ffbd8..13b0d5d889fd 100644 --- a/mmv1/products/billingbudget/Budget.yaml +++ b/mmv1/products/billingbudget/Budget.yaml @@ -412,7 +412,8 @@ properties: - 'amount.0.specified_amount' - 'amount.0.last_period_amount' custom_flatten: 'templates/terraform/custom_flatten/object_to_bool.go.tmpl' - custom_expand: 'templates/terraform/custom_expand/bool_to_object.go.tmpl' + # THIS TEMPLATE IS DEPRECATED, DO NOT USE FOR NEW FIELDS + custom_expand: 'templates/terraform/custom_expand/deprecated_bool_to_object.go.tmpl' - name: 'thresholdRules' type: Array description: | diff --git a/mmv1/products/dlp/DeidentifyTemplate.yaml b/mmv1/products/dlp/DeidentifyTemplate.yaml index 198b67d9aec4..8ff5250fb9d6 100644 --- a/mmv1/products/dlp/DeidentifyTemplate.yaml +++ b/mmv1/products/dlp/DeidentifyTemplate.yaml @@ -349,7 +349,8 @@ properties: description: | Replace each matching finding with the name of the info type. custom_flatten: 'templates/terraform/custom_flatten/object_to_bool.go.tmpl' - custom_expand: 'templates/terraform/custom_expand/bool_to_object.go.tmpl' + # THIS TEMPLATE IS DEPRECATED, DO NOT USE FOR NEW FIELDS + custom_expand: 'templates/terraform/custom_expand/deprecated_bool_to_object.go.tmpl' - name: 'characterMaskConfig' type: NestedObject description: | diff --git a/mmv1/products/dns/ManagedZone.yaml b/mmv1/products/dns/ManagedZone.yaml index 68b65cbd99e0..7781d6e75e08 100644 --- a/mmv1/products/dns/ManagedZone.yaml +++ b/mmv1/products/dns/ManagedZone.yaml @@ -403,7 +403,8 @@ properties: min_version: 'beta' immutable: true custom_flatten: 'templates/terraform/custom_flatten/object_to_bool.go.tmpl' - custom_expand: 'templates/terraform/custom_expand/bool_to_object.go.tmpl' + # THIS TEMPLATE IS DEPRECATED, DO NOT USE FOR NEW FIELDS + custom_expand: 'templates/terraform/custom_expand/deprecated_bool_to_object.go.tmpl' - name: 'serviceDirectoryConfig' type: NestedObject description: diff --git a/mmv1/templates/terraform/custom_expand/bool_to_object.go.tmpl b/mmv1/templates/terraform/custom_expand/deprecated_bool_to_object.go.tmpl similarity index 92% rename from mmv1/templates/terraform/custom_expand/bool_to_object.go.tmpl rename to mmv1/templates/terraform/custom_expand/deprecated_bool_to_object.go.tmpl index ce0c8bfd5895..dc5e6c13022f 100644 --- a/mmv1/templates/terraform/custom_expand/bool_to_object.go.tmpl +++ b/mmv1/templates/terraform/custom_expand/deprecated_bool_to_object.go.tmpl @@ -10,6 +10,9 @@ See the License for the specific language governing permissions and limitations under the License. */ -}} + +{{/* THIS TEMPLATE IS DEPRECATED, DO NOT USE FOR NEW FIELDS */}} + func expand{{$.GetPrefix}}{{$.TitlelizeProperty}}(v interface{}, d tpgresource.TerraformResourceData, config *transport_tpg.Config) (interface{}, error) { if v == nil || !v.(bool) { return nil, nil