@@ -34,6 +34,7 @@ const (
3434func GetURLPathMap1 () * n.ApplicationGatewayURLPathMap {
3535 return & n.ApplicationGatewayURLPathMap {
3636 Name : to .StringPtr (URLPathMapName1 ),
37+ ID : to .StringPtr ("x/y/z/" + URLPathMapName1 ),
3738 ApplicationGatewayURLPathMapPropertiesFormat : & n.ApplicationGatewayURLPathMapPropertiesFormat {
3839 // DefaultBackendAddressPool - Default backend address pool resource of URL path map.
3940 DefaultBackendAddressPool : & n.SubResource {
@@ -67,7 +68,7 @@ func GetURLPathMap1() *n.ApplicationGatewayURLPathMap {
6768// GetPathRulePathBased1 creates a new struct for use in unit tests.
6869func GetPathRulePathBased1 () * n.ApplicationGatewayPathRule {
6970 return & n.ApplicationGatewayPathRule {
70- Name : to .StringPtr (PathRuleName ),
71+ Name : to .StringPtr (PathRuleName + URLPathMapName1 ),
7172 ApplicationGatewayPathRulePropertiesFormat : & n.ApplicationGatewayPathRulePropertiesFormat {
7273 // Paths - Path rules of URL path map.
7374 Paths : & []string {
@@ -135,6 +136,7 @@ func GetDefaultURLPathMap() *n.ApplicationGatewayURLPathMap {
135136 return & n.ApplicationGatewayURLPathMap {
136137 Etag : to .StringPtr ("*" ),
137138 Name : to .StringPtr (DefaultPathMapName ),
139+ ID : to .StringPtr ("x/y/z/" + DefaultPathMapName ),
138140 ApplicationGatewayURLPathMapPropertiesFormat : & n.ApplicationGatewayURLPathMapPropertiesFormat {
139141 DefaultBackendAddressPool : & n.SubResource {ID : to .StringPtr ("/" + DefaultBackendPoolName )},
140142 DefaultBackendHTTPSettings : & n.SubResource {ID : to .StringPtr ("/" + DefaultBackendHTTPSettingsName )},
@@ -146,6 +148,7 @@ func GetDefaultURLPathMap() *n.ApplicationGatewayURLPathMap {
146148func GetURLPathMap2 () * n.ApplicationGatewayURLPathMap {
147149 return & n.ApplicationGatewayURLPathMap {
148150 Name : to .StringPtr (URLPathMapName2 ),
151+ ID : to .StringPtr ("x/y/z/" + URLPathMapName2 ),
149152 ApplicationGatewayURLPathMapPropertiesFormat : & n.ApplicationGatewayURLPathMapPropertiesFormat {
150153 // DefaultBackendAddressPool - Default backend address pool resource of URL path map.
151154 DefaultBackendAddressPool : & n.SubResource {
@@ -178,7 +181,7 @@ func GetURLPathMap2() *n.ApplicationGatewayURLPathMap {
178181// GetPathRulePathBased2 creates a new struct for use in unit tests.
179182func GetPathRulePathBased2 () * n.ApplicationGatewayPathRule {
180183 return & n.ApplicationGatewayPathRule {
181- Name : to .StringPtr (PathRuleName ),
184+ Name : to .StringPtr (PathRuleName + URLPathMapName2 ),
182185 ApplicationGatewayPathRulePropertiesFormat : & n.ApplicationGatewayPathRulePropertiesFormat {
183186 // Paths - Path rules of URL path map.
184187 Paths : & []string {
@@ -212,6 +215,7 @@ func GetPathRulePathBased2() *n.ApplicationGatewayPathRule {
212215func GetURLPathMap3 () * n.ApplicationGatewayURLPathMap {
213216 return & n.ApplicationGatewayURLPathMap {
214217 Name : to .StringPtr (URLPathMapName3 ),
218+ ID : to .StringPtr ("x/y/z/" + URLPathMapName3 ),
215219 ApplicationGatewayURLPathMapPropertiesFormat : & n.ApplicationGatewayURLPathMapPropertiesFormat {
216220 // DefaultBackendAddressPool - Default backend address pool resource of URL path map.
217221 DefaultBackendAddressPool : & n.SubResource {
@@ -244,7 +248,7 @@ func GetURLPathMap3() *n.ApplicationGatewayURLPathMap {
244248// GetPathRulePathBased3 creates a new struct for use in unit tests.
245249func GetPathRulePathBased3 () * n.ApplicationGatewayPathRule {
246250 return & n.ApplicationGatewayPathRule {
247- Name : to .StringPtr (PathRuleName ),
251+ Name : to .StringPtr (PathRuleName + URLPathMapName3 ),
248252 ApplicationGatewayPathRulePropertiesFormat : & n.ApplicationGatewayPathRulePropertiesFormat {
249253 // Paths - Path rules of URL path map.
250254 Paths : & []string {
0 commit comments