@@ -281,34 +281,34 @@ func deleteCloudAccessPolicy(ctx context.Context, d *schema.ResourceData, client
281281 return apiError (err )
282282}
283283
284- func validateCloudAccessPolicyScope (v interface {} , path cty.Path ) diag.Diagnostics {
284+ func validateCloudAccessPolicyScope (v any , path cty.Path ) diag.Diagnostics {
285285 if strings .Count (v .(string ), ":" ) != 1 {
286286 return diag .Errorf ("invalid scope: %s. Should be in the `service:permission` format" , v .(string ))
287287 }
288288
289289 return nil
290290}
291291
292- func validateCloudAccessPolicyAllowedSubnets (v interface {} , path cty.Path ) diag.Diagnostics {
292+ func validateCloudAccessPolicyAllowedSubnets (v any , path cty.Path ) diag.Diagnostics {
293293 _ , _ , err := net .ParseCIDR (v .(string ))
294294 if err == nil {
295295 return nil
296296 }
297297 return diag .Errorf ("Invalid IP CIDR : %s." , v .(string ))
298298}
299299
300- func flattenCloudAccessPolicyRealm (realm []gcom.AuthAccessPolicyRealmsInner ) []interface {} {
301- var result []interface {}
300+ func flattenCloudAccessPolicyRealm (realm []gcom.AuthAccessPolicyRealmsInner ) []any {
301+ var result []any
302302
303303 for _ , r := range realm {
304- labelPolicy := []interface {} {}
304+ labelPolicy := []any {}
305305 for _ , lp := range r .LabelPolicies {
306- labelPolicy = append (labelPolicy , map [string ]interface {} {
306+ labelPolicy = append (labelPolicy , map [string ]any {
307307 "selector" : lp .Selector ,
308308 })
309309 }
310310
311- result = append (result , map [string ]interface {} {
311+ result = append (result , map [string ]any {
312312 "type" : r .Type ,
313313 "identifier" : r .Identifier ,
314314 "label_policy" : labelPolicy ,
@@ -318,29 +318,29 @@ func flattenCloudAccessPolicyRealm(realm []gcom.AuthAccessPolicyRealmsInner) []i
318318 return result
319319}
320320
321- func flattenCloudAccessPolicyConditions (condition * gcom.AuthAccessPolicyConditions ) []interface {} {
321+ func flattenCloudAccessPolicyConditions (condition * gcom.AuthAccessPolicyConditions ) []any {
322322 if condition == nil || len (condition .GetAllowedSubnets ()) == 0 {
323323 return nil
324324 }
325- var result []interface {}
325+ var result []any
326326 var allowedSubnets []string
327327
328328 for _ , sn := range condition .GetAllowedSubnets () {
329329 allowedSubnets = append (allowedSubnets , * sn .String )
330330 }
331331
332- result = append (result , map [string ]interface {} {
332+ result = append (result , map [string ]any {
333333 "allowed_subnets" : allowedSubnets ,
334334 })
335335
336336 return result
337337}
338338
339- func expandCloudAccessPolicyConditions (condition []interface {} ) gcom.NullablePostAccessPoliciesRequestConditions {
339+ func expandCloudAccessPolicyConditions (condition []any ) gcom.NullablePostAccessPoliciesRequestConditions {
340340 var result gcom.PostAccessPoliciesRequestConditions
341341
342342 for _ , c := range condition {
343- c := c .(map [string ]interface {} )
343+ c := c .(map [string ]any )
344344 for _ , as := range c ["allowed_subnets" ].(* schema.Set ).List () {
345345 result .AllowedSubnets = append (result .AllowedSubnets , as .(string ))
346346 }
@@ -349,14 +349,14 @@ func expandCloudAccessPolicyConditions(condition []interface{}) gcom.NullablePos
349349 return * gcom .NewNullablePostAccessPoliciesRequestConditions (& result )
350350}
351351
352- func expandCloudAccessPolicyRealm (realm []interface {} ) []gcom.PostAccessPoliciesRequestRealmsInner {
352+ func expandCloudAccessPolicyRealm (realm []any ) []gcom.PostAccessPoliciesRequestRealmsInner {
353353 var result []gcom.PostAccessPoliciesRequestRealmsInner
354354
355355 for _ , r := range realm {
356- r := r .(map [string ]interface {} )
356+ r := r .(map [string ]any )
357357 labelPolicy := []gcom.PostAccessPoliciesRequestRealmsInnerLabelPoliciesInner {}
358358 for _ , lp := range r ["label_policy" ].(* schema.Set ).List () {
359- lp := lp .(map [string ]interface {} )
359+ lp := lp .(map [string ]any )
360360 labelPolicy = append (labelPolicy , gcom.PostAccessPoliciesRequestRealmsInnerLabelPoliciesInner {
361361 Selector : lp ["selector" ].(string ),
362362 })
0 commit comments