Skip to content

Commit 6b7aa1a

Browse files
hao-nan-lic2thorn
andcommitted
Deprecated bool_to_object custom expander (GoogleCloudPlatform#13917)
Co-authored-by: Cameron Thornton <camthornton@google.com>
1 parent cb8e34c commit 6b7aa1a

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

mmv1/products/billingbudget/Budget.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,8 @@ properties:
412412
- 'amount.0.specified_amount'
413413
- 'amount.0.last_period_amount'
414414
custom_flatten: 'templates/terraform/custom_flatten/object_to_bool.go.tmpl'
415-
custom_expand: 'templates/terraform/custom_expand/bool_to_object.go.tmpl'
415+
# THIS TEMPLATE IS DEPRECATED, DO NOT USE FOR NEW FIELDS
416+
custom_expand: 'templates/terraform/custom_expand/deprecated_bool_to_object.go.tmpl'
416417
- name: 'thresholdRules'
417418
type: Array
418419
description: |

mmv1/products/dlp/DeidentifyTemplate.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,8 @@ properties:
349349
description: |
350350
Replace each matching finding with the name of the info type.
351351
custom_flatten: 'templates/terraform/custom_flatten/object_to_bool.go.tmpl'
352-
custom_expand: 'templates/terraform/custom_expand/bool_to_object.go.tmpl'
352+
# THIS TEMPLATE IS DEPRECATED, DO NOT USE FOR NEW FIELDS
353+
custom_expand: 'templates/terraform/custom_expand/deprecated_bool_to_object.go.tmpl'
353354
- name: 'characterMaskConfig'
354355
type: NestedObject
355356
description: |

mmv1/products/dns/ManagedZone.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,8 @@ properties:
403403
min_version: 'beta'
404404
immutable: true
405405
custom_flatten: 'templates/terraform/custom_flatten/object_to_bool.go.tmpl'
406-
custom_expand: 'templates/terraform/custom_expand/bool_to_object.go.tmpl'
406+
# THIS TEMPLATE IS DEPRECATED, DO NOT USE FOR NEW FIELDS
407+
custom_expand: 'templates/terraform/custom_expand/deprecated_bool_to_object.go.tmpl'
407408
- name: 'serviceDirectoryConfig'
408409
type: NestedObject
409410
description:

mmv1/templates/terraform/custom_expand/bool_to_object.go.tmpl renamed to mmv1/templates/terraform/custom_expand/deprecated_bool_to_object.go.tmpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
See the License for the specific language governing permissions and
1111
limitations under the License.
1212
*/ -}}
13+
14+
{{/* THIS TEMPLATE IS DEPRECATED, DO NOT USE FOR NEW FIELDS */}}
15+
1316
func expand{{$.GetPrefix}}{{$.TitlelizeProperty}}(v interface{}, d tpgresource.TerraformResourceData, config *transport_tpg.Config) (interface{}, error) {
1417
if v == nil || !v.(bool) {
1518
return nil, nil

0 commit comments

Comments
 (0)