@@ -130,6 +130,11 @@ func getMaskingExceptionPolicySchema(computed bool) *schema.Schema {
130130 v1pb .MaskingExceptionPolicy_MaskingException_EXPORT .String (),
131131 }, false ),
132132 },
133+ "reason" : {
134+ Type : schema .TypeString ,
135+ Optional : true ,
136+ Description : "The reason for the masking exemption" ,
137+ },
133138 "expire_timestamp" : {
134139 Type : schema .TypeString ,
135140 Computed : computed ,
@@ -169,6 +174,11 @@ func getGlobalMaskingPolicySchema(computed bool) *schema.Schema {
169174 ValidateFunc : validation .StringIsNotEmpty ,
170175 Description : "The unique rule id" ,
171176 },
177+ "title" : {
178+ Type : schema .TypeString ,
179+ Optional : true ,
180+ Description : "The title for the rule" ,
181+ },
172182 "semantic_type" : {
173183 Type : schema .TypeString ,
174184 Required : true ,
@@ -404,6 +414,7 @@ func flattenGlobalMaskingPolicy(p *v1pb.MaskingRulePolicy) ([]interface{}, error
404414 raw ["id" ] = rule .Id
405415 raw ["semantic_type" ] = rule .SemanticType
406416 raw ["condition" ] = rule .Condition .Expression
417+ raw ["title" ] = rule .Condition .Title
407418
408419 ruleList = append (ruleList , raw )
409420 }
@@ -424,6 +435,7 @@ func flattenMaskingExceptionPolicy(p *v1pb.MaskingExceptionPolicy) ([]interface{
424435 if exception .Condition == nil || exception .Condition .Expression == "" {
425436 return nil , errors .Errorf ("invalid exception policy condition" )
426437 }
438+ raw ["reason" ] = exception .Condition .Description
427439
428440 expressions := strings .Split (exception .Condition .Expression , " && " )
429441 instanceID := ""
0 commit comments