@@ -234,6 +234,11 @@ By default this may be all types, but may change over time as detectors are upda
234
234
Description : `Name of the information type. Either a name of your choosing when creating a CustomInfoType, or one of the names listed
235
235
at https://cloud.google.com/dlp/docs/infotypes-reference when specifying a built-in type.` ,
236
236
},
237
+ "version" : {
238
+ Type : schema .TypeString ,
239
+ Optional : true ,
240
+ Description : `Version of the information type to use. By default, the version is set to stable` ,
241
+ },
237
242
},
238
243
},
239
244
},
@@ -955,7 +960,8 @@ func flattenDataLossPreventionInspectTemplateInspectConfigInfoTypes(v interface{
955
960
continue
956
961
}
957
962
transformed = append (transformed , map [string ]interface {}{
958
- "name" : flattenDataLossPreventionInspectTemplateInspectConfigInfoTypesName (original ["name" ], d , config ),
963
+ "name" : flattenDataLossPreventionInspectTemplateInspectConfigInfoTypesName (original ["name" ], d , config ),
964
+ "version" : flattenDataLossPreventionInspectTemplateInspectConfigInfoTypesVersion (original ["version" ], d , config ),
959
965
})
960
966
}
961
967
return transformed
@@ -964,6 +970,10 @@ func flattenDataLossPreventionInspectTemplateInspectConfigInfoTypesName(v interf
964
970
return v
965
971
}
966
972
973
+ func flattenDataLossPreventionInspectTemplateInspectConfigInfoTypesVersion (v interface {}, d * schema.ResourceData , config * Config ) interface {} {
974
+ return v
975
+ }
976
+
967
977
func flattenDataLossPreventionInspectTemplateInspectConfigContentOptions (v interface {}, d * schema.ResourceData , config * Config ) interface {} {
968
978
return v
969
979
}
@@ -1622,6 +1632,13 @@ func expandDataLossPreventionInspectTemplateInspectConfigInfoTypes(v interface{}
1622
1632
transformed ["name" ] = transformedName
1623
1633
}
1624
1634
1635
+ transformedVersion , err := expandDataLossPreventionInspectTemplateInspectConfigInfoTypesVersion (original ["version" ], d , config )
1636
+ if err != nil {
1637
+ return nil , err
1638
+ } else if val := reflect .ValueOf (transformedVersion ); val .IsValid () && ! isEmptyValue (val ) {
1639
+ transformed ["version" ] = transformedVersion
1640
+ }
1641
+
1625
1642
req = append (req , transformed )
1626
1643
}
1627
1644
return req , nil
@@ -1631,6 +1648,10 @@ func expandDataLossPreventionInspectTemplateInspectConfigInfoTypesName(v interfa
1631
1648
return v , nil
1632
1649
}
1633
1650
1651
+ func expandDataLossPreventionInspectTemplateInspectConfigInfoTypesVersion (v interface {}, d TerraformResourceData , config * Config ) (interface {}, error ) {
1652
+ return v , nil
1653
+ }
1654
+
1634
1655
func expandDataLossPreventionInspectTemplateInspectConfigContentOptions (v interface {}, d TerraformResourceData , config * Config ) (interface {}, error ) {
1635
1656
return v , nil
1636
1657
}
0 commit comments