@@ -25,10 +25,10 @@ class List(AAZCommand):
2525 """
2626
2727 _aaz_info = {
28- "version" : "2023-11 -01" ,
28+ "version" : "2025-01 -01" ,
2929 "resources" : [
30- ["mgmt-plane" , "/subscriptions/{}/providers/microsoft.servicenetworking/trafficcontrollers" , "2023-11 -01" ],
31- ["mgmt-plane" , "/subscriptions/{}/resourcegroups/{}/providers/microsoft.servicenetworking/trafficcontrollers" , "2023-11 -01" ],
30+ ["mgmt-plane" , "/subscriptions/{}/providers/microsoft.servicenetworking/trafficcontrollers" , "2025-01 -01" ],
31+ ["mgmt-plane" , "/subscriptions/{}/resourcegroups/{}/providers/microsoft.servicenetworking/trafficcontrollers" , "2025-01 -01" ],
3232 ]
3333 }
3434
@@ -54,12 +54,12 @@ def _build_arguments_schema(cls, *args, **kwargs):
5454
5555 def _execute_operations (self ):
5656 self .pre_operations ()
57- condition_0 = has_value (self .ctx .args . resource_group ) and has_value (self .ctx .subscription_id )
58- condition_1 = has_value (self .ctx .subscription_id ) and has_value (self .ctx .args . resource_group ) is not True
57+ condition_0 = has_value (self .ctx .subscription_id ) and has_value (self .ctx .args . resource_group ) is not True
58+ condition_1 = has_value (self .ctx .args . resource_group ) and has_value (self .ctx .subscription_id )
5959 if condition_0 :
60- self .TrafficControllerInterfaceListByResourceGroup (ctx = self .ctx )()
61- if condition_1 :
6260 self .TrafficControllerInterfaceListBySubscription (ctx = self .ctx )()
61+ if condition_1 :
62+ self .TrafficControllerInterfaceListByResourceGroup (ctx = self .ctx )()
6363 self .post_operations ()
6464
6565 @register_callback
@@ -75,7 +75,7 @@ def _output(self, *args, **kwargs):
7575 next_link = self .deserialize_output (self .ctx .vars .instance .next_link )
7676 return result , next_link
7777
78- class TrafficControllerInterfaceListByResourceGroup (AAZHttpOperation ):
78+ class TrafficControllerInterfaceListBySubscription (AAZHttpOperation ):
7979 CLIENT_TYPE = "MgmtClient"
8080
8181 def __call__ (self , * args , ** kwargs ):
@@ -89,7 +89,7 @@ def __call__(self, *args, **kwargs):
8989 @property
9090 def url (self ):
9191 return self .client .format_url (
92- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/ providers/Microsoft.ServiceNetworking/trafficControllers" ,
92+ "/subscriptions/{subscriptionId}/providers/Microsoft.ServiceNetworking/trafficControllers" ,
9393 ** self .url_parameters
9494 )
9595
@@ -104,10 +104,6 @@ def error_format(self):
104104 @property
105105 def url_parameters (self ):
106106 parameters = {
107- ** self .serialize_url_param (
108- "resourceGroupName" , self .ctx .args .resource_group ,
109- required = True ,
110- ),
111107 ** self .serialize_url_param (
112108 "subscriptionId" , self .ctx .subscription_id ,
113109 required = True ,
@@ -119,7 +115,7 @@ def url_parameters(self):
119115 def query_parameters (self ):
120116 parameters = {
121117 ** self .serialize_query_param (
122- "api-version" , "2023-11 -01" ,
118+ "api-version" , "2025-01 -01" ,
123119 required = True ,
124120 ),
125121 }
@@ -197,6 +193,14 @@ def _build_schema_on_200(cls):
197193 )
198194 properties .provisioning_state = AAZStrType (
199195 serialized_name = "provisioningState" ,
196+ flags = {"read_only" : True },
197+ )
198+ properties .security_policies = AAZListType (
199+ serialized_name = "securityPolicies" ,
200+ flags = {"read_only" : True },
201+ )
202+ properties .security_policy_configurations = AAZObjectType (
203+ serialized_name = "securityPolicyConfigurations" ,
200204 )
201205
202206 associations = cls ._schema_on_200 .value .Element .properties .associations
@@ -210,6 +214,20 @@ def _build_schema_on_200(cls):
210214 frontends .Element = AAZObjectType ()
211215 _ListHelper ._build_schema_resource_id_read (frontends .Element )
212216
217+ security_policies = cls ._schema_on_200 .value .Element .properties .security_policies
218+ security_policies .Element = AAZObjectType ()
219+ _ListHelper ._build_schema_resource_id_read (security_policies .Element )
220+
221+ security_policy_configurations = cls ._schema_on_200 .value .Element .properties .security_policy_configurations
222+ security_policy_configurations .waf_security_policy = AAZObjectType (
223+ serialized_name = "wafSecurityPolicy" ,
224+ )
225+
226+ waf_security_policy = cls ._schema_on_200 .value .Element .properties .security_policy_configurations .waf_security_policy
227+ waf_security_policy .id = AAZStrType (
228+ flags = {"required" : True },
229+ )
230+
213231 system_data = cls ._schema_on_200 .value .Element .system_data
214232 system_data .created_at = AAZStrType (
215233 serialized_name = "createdAt" ,
@@ -235,7 +253,7 @@ def _build_schema_on_200(cls):
235253
236254 return cls ._schema_on_200
237255
238- class TrafficControllerInterfaceListBySubscription (AAZHttpOperation ):
256+ class TrafficControllerInterfaceListByResourceGroup (AAZHttpOperation ):
239257 CLIENT_TYPE = "MgmtClient"
240258
241259 def __call__ (self , * args , ** kwargs ):
@@ -249,7 +267,7 @@ def __call__(self, *args, **kwargs):
249267 @property
250268 def url (self ):
251269 return self .client .format_url (
252- "/subscriptions/{subscriptionId}/providers/Microsoft.ServiceNetworking/trafficControllers" ,
270+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/ providers/Microsoft.ServiceNetworking/trafficControllers" ,
253271 ** self .url_parameters
254272 )
255273
@@ -264,6 +282,10 @@ def error_format(self):
264282 @property
265283 def url_parameters (self ):
266284 parameters = {
285+ ** self .serialize_url_param (
286+ "resourceGroupName" , self .ctx .args .resource_group ,
287+ required = True ,
288+ ),
267289 ** self .serialize_url_param (
268290 "subscriptionId" , self .ctx .subscription_id ,
269291 required = True ,
@@ -275,7 +297,7 @@ def url_parameters(self):
275297 def query_parameters (self ):
276298 parameters = {
277299 ** self .serialize_query_param (
278- "api-version" , "2023-11 -01" ,
300+ "api-version" , "2025-01 -01" ,
279301 required = True ,
280302 ),
281303 }
@@ -353,6 +375,14 @@ def _build_schema_on_200(cls):
353375 )
354376 properties .provisioning_state = AAZStrType (
355377 serialized_name = "provisioningState" ,
378+ flags = {"read_only" : True },
379+ )
380+ properties .security_policies = AAZListType (
381+ serialized_name = "securityPolicies" ,
382+ flags = {"read_only" : True },
383+ )
384+ properties .security_policy_configurations = AAZObjectType (
385+ serialized_name = "securityPolicyConfigurations" ,
356386 )
357387
358388 associations = cls ._schema_on_200 .value .Element .properties .associations
@@ -366,6 +396,20 @@ def _build_schema_on_200(cls):
366396 frontends .Element = AAZObjectType ()
367397 _ListHelper ._build_schema_resource_id_read (frontends .Element )
368398
399+ security_policies = cls ._schema_on_200 .value .Element .properties .security_policies
400+ security_policies .Element = AAZObjectType ()
401+ _ListHelper ._build_schema_resource_id_read (security_policies .Element )
402+
403+ security_policy_configurations = cls ._schema_on_200 .value .Element .properties .security_policy_configurations
404+ security_policy_configurations .waf_security_policy = AAZObjectType (
405+ serialized_name = "wafSecurityPolicy" ,
406+ )
407+
408+ waf_security_policy = cls ._schema_on_200 .value .Element .properties .security_policy_configurations .waf_security_policy
409+ waf_security_policy .id = AAZStrType (
410+ flags = {"required" : True },
411+ )
412+
369413 system_data = cls ._schema_on_200 .value .Element .system_data
370414 system_data .created_at = AAZStrType (
371415 serialized_name = "createdAt" ,
0 commit comments