@@ -347,7 +347,7 @@ func resourceComputeFirewallPolicyRuleCreate(d *schema.ResourceData, meta interf
347
347
obj ["firewallPolicy" ] = firewallPolicyProp
348
348
}
349
349
350
- url , err := tpgresource .ReplaceVars (d , config , "{{ComputeBasePath}}locations/global/firewallPolicies/{{firewall_policy}}/addRule" )
350
+ url , err := tpgresource .ReplaceVarsForId (d , config , "{{ComputeBasePath}}locations/global/firewallPolicies/{{firewall_policy}}/addRule" )
351
351
if err != nil {
352
352
return err
353
353
}
@@ -376,7 +376,7 @@ func resourceComputeFirewallPolicyRuleCreate(d *schema.ResourceData, meta interf
376
376
}
377
377
378
378
// Store the ID now
379
- id , err := tpgresource .ReplaceVars (d , config , "locations/global/firewallPolicies/{{firewall_policy}}/rules/{{priority}}" )
379
+ id , err := tpgresource .ReplaceVarsForId (d , config , "locations/global/firewallPolicies/{{firewall_policy}}/rules/{{priority}}" )
380
380
if err != nil {
381
381
return fmt .Errorf ("Error constructing id: %s" , err )
382
382
}
@@ -406,7 +406,7 @@ func resourceComputeFirewallPolicyRuleRead(d *schema.ResourceData, meta interfac
406
406
return err
407
407
}
408
408
409
- url , err := tpgresource .ReplaceVars (d , config , "{{ComputeBasePath}}locations/global/firewallPolicies/{{firewall_policy}}/getRule?priority={{priority}}" )
409
+ url , err := tpgresource .ReplaceVarsForId (d , config , "{{ComputeBasePath}}locations/global/firewallPolicies/{{firewall_policy}}/getRule?priority={{priority}}" )
410
410
if err != nil {
411
411
return err
412
412
}
@@ -560,7 +560,7 @@ func resourceComputeFirewallPolicyRuleUpdate(d *schema.ResourceData, meta interf
560
560
obj ["firewallPolicy" ] = firewallPolicyProp
561
561
}
562
562
563
- url , err := tpgresource .ReplaceVars (d , config , "{{ComputeBasePath}}locations/global/firewallPolicies/{{firewall_policy}}/patchRule?priority={{priority}}" )
563
+ url , err := tpgresource .ReplaceVarsForId (d , config , "{{ComputeBasePath}}locations/global/firewallPolicies/{{firewall_policy}}/patchRule?priority={{priority}}" )
564
564
if err != nil {
565
565
return err
566
566
}
@@ -613,7 +613,7 @@ func resourceComputeFirewallPolicyRuleDelete(d *schema.ResourceData, meta interf
613
613
614
614
billingProject := ""
615
615
616
- url , err := tpgresource .ReplaceVars (d , config , "{{ComputeBasePath}}locations/global/firewallPolicies/{{firewall_policy}}/removeRule?priority={{priority}}" )
616
+ url , err := tpgresource .ReplaceVarsForId (d , config , "{{ComputeBasePath}}locations/global/firewallPolicies/{{firewall_policy}}/removeRule?priority={{priority}}" )
617
617
if err != nil {
618
618
return err
619
619
}
@@ -668,7 +668,7 @@ func resourceComputeFirewallPolicyRuleImport(d *schema.ResourceData, meta interf
668
668
}
669
669
670
670
// Replace import id for the resource id
671
- id , err := tpgresource .ReplaceVars (d , config , "locations/global/firewallPolicies/{{firewall_policy}}/rules/{{priority}}" )
671
+ id , err := tpgresource .ReplaceVarsForId (d , config , "locations/global/firewallPolicies/{{firewall_policy}}/rules/{{priority}}" )
672
672
if err != nil {
673
673
return nil , fmt .Errorf ("Error constructing id: %s" , err )
674
674
}
0 commit comments