@@ -88,11 +88,6 @@ internal AdminRuleCollectionsOperations (NetworkManagementClient client)
8888
8989
9090
91- if ( this . Client . ApiVersion == null )
92- {
93- throw new Microsoft . Rest . ValidationException ( Microsoft . Rest . ValidationRules . CannotBeNull , "this.Client.ApiVersion" ) ;
94- }
95-
9691 if ( this . Client . SubscriptionId == null )
9792 {
9893 throw new Microsoft . Rest . ValidationException ( Microsoft . Rest . ValidationRules . CannotBeNull , "this.Client.SubscriptionId" ) ;
@@ -141,13 +136,15 @@ internal AdminRuleCollectionsOperations (NetworkManagementClient client)
141136 }
142137 }
143138
139+ string apiVersion = "2025-07-01" ;
144140 // Tracing
145141 bool _shouldTrace = Microsoft . Rest . ServiceClientTracing . IsEnabled ;
146142 string _invocationId = null ;
147143 if ( _shouldTrace )
148144 {
149145 _invocationId = Microsoft . Rest . ServiceClientTracing . NextInvocationId . ToString ( ) ;
150146 System . Collections . Generic . Dictionary < string , object > tracingParameters = new System . Collections . Generic . Dictionary < string , object > ( ) ;
147+ tracingParameters . Add ( "apiVersion" , apiVersion ) ;
151148 tracingParameters . Add ( "resourceGroupName" , resourceGroupName ) ;
152149 tracingParameters . Add ( "networkManagerName" , networkManagerName ) ;
153150 tracingParameters . Add ( "configurationName" , configurationName ) ;
@@ -168,9 +165,9 @@ internal AdminRuleCollectionsOperations (NetworkManagementClient client)
168165 _url = _url . Replace ( "{configurationName}" , System . Uri . EscapeDataString ( configurationName ) ) ;
169166
170167 System . Collections . Generic . List < string > _queryParameters = new System . Collections . Generic . List < string > ( ) ;
171- if ( this . Client . ApiVersion != null )
168+ if ( apiVersion != null )
172169 {
173- _queryParameters . Add ( string . Format ( "api-version={0}" , System . Uri . EscapeDataString ( this . Client . ApiVersion ) ) ) ;
170+ _queryParameters . Add ( string . Format ( "api-version={0}" , System . Uri . EscapeDataString ( apiVersion ) ) ) ;
174171 }
175172 if ( top != null )
176173 {
@@ -347,11 +344,6 @@ internal AdminRuleCollectionsOperations (NetworkManagementClient client)
347344
348345
349346
350- if ( this . Client . ApiVersion == null )
351- {
352- throw new Microsoft . Rest . ValidationException ( Microsoft . Rest . ValidationRules . CannotBeNull , "this.Client.ApiVersion" ) ;
353- }
354-
355347 if ( this . Client . SubscriptionId == null )
356348 {
357349 throw new Microsoft . Rest . ValidationException ( Microsoft . Rest . ValidationRules . CannotBeNull , "this.Client.SubscriptionId" ) ;
@@ -393,13 +385,15 @@ internal AdminRuleCollectionsOperations (NetworkManagementClient client)
393385 throw new Microsoft . Rest . ValidationException ( Microsoft . Rest . ValidationRules . CannotBeNull , "ruleCollectionName" ) ;
394386 }
395387
388+ string apiVersion = "2025-07-01" ;
396389 // Tracing
397390 bool _shouldTrace = Microsoft . Rest . ServiceClientTracing . IsEnabled ;
398391 string _invocationId = null ;
399392 if ( _shouldTrace )
400393 {
401394 _invocationId = Microsoft . Rest . ServiceClientTracing . NextInvocationId . ToString ( ) ;
402395 System . Collections . Generic . Dictionary < string , object > tracingParameters = new System . Collections . Generic . Dictionary < string , object > ( ) ;
396+ tracingParameters . Add ( "apiVersion" , apiVersion ) ;
403397 tracingParameters . Add ( "resourceGroupName" , resourceGroupName ) ;
404398 tracingParameters . Add ( "networkManagerName" , networkManagerName ) ;
405399 tracingParameters . Add ( "configurationName" , configurationName ) ;
@@ -420,9 +414,9 @@ internal AdminRuleCollectionsOperations (NetworkManagementClient client)
420414 _url = _url . Replace ( "{ruleCollectionName}" , System . Uri . EscapeDataString ( ruleCollectionName ) ) ;
421415
422416 System . Collections . Generic . List < string > _queryParameters = new System . Collections . Generic . List < string > ( ) ;
423- if ( this . Client . ApiVersion != null )
417+ if ( apiVersion != null )
424418 {
425- _queryParameters . Add ( string . Format ( "api-version={0}" , System . Uri . EscapeDataString ( this . Client . ApiVersion ) ) ) ;
419+ _queryParameters . Add ( string . Format ( "api-version={0}" , System . Uri . EscapeDataString ( apiVersion ) ) ) ;
426420 }
427421 if ( _queryParameters . Count > 0 )
428422 {
@@ -599,11 +593,6 @@ internal AdminRuleCollectionsOperations (NetworkManagementClient client)
599593 throw new Microsoft . Rest . ValidationException ( Microsoft . Rest . ValidationRules . CannotBeNull , "ruleCollection" ) ;
600594 }
601595
602- if ( this . Client . ApiVersion == null )
603- {
604- throw new Microsoft . Rest . ValidationException ( Microsoft . Rest . ValidationRules . CannotBeNull , "this.Client.ApiVersion" ) ;
605- }
606-
607596 if ( this . Client . SubscriptionId == null )
608597 {
609598 throw new Microsoft . Rest . ValidationException ( Microsoft . Rest . ValidationRules . CannotBeNull , "this.Client.SubscriptionId" ) ;
@@ -645,13 +634,15 @@ internal AdminRuleCollectionsOperations (NetworkManagementClient client)
645634 throw new Microsoft . Rest . ValidationException ( Microsoft . Rest . ValidationRules . CannotBeNull , "ruleCollectionName" ) ;
646635 }
647636
637+ string apiVersion = "2025-07-01" ;
648638 // Tracing
649639 bool _shouldTrace = Microsoft . Rest . ServiceClientTracing . IsEnabled ;
650640 string _invocationId = null ;
651641 if ( _shouldTrace )
652642 {
653643 _invocationId = Microsoft . Rest . ServiceClientTracing . NextInvocationId . ToString ( ) ;
654644 System . Collections . Generic . Dictionary < string , object > tracingParameters = new System . Collections . Generic . Dictionary < string , object > ( ) ;
645+ tracingParameters . Add ( "apiVersion" , apiVersion ) ;
655646 tracingParameters . Add ( "resourceGroupName" , resourceGroupName ) ;
656647 tracingParameters . Add ( "networkManagerName" , networkManagerName ) ;
657648 tracingParameters . Add ( "configurationName" , configurationName ) ;
@@ -673,9 +664,9 @@ internal AdminRuleCollectionsOperations (NetworkManagementClient client)
673664 _url = _url . Replace ( "{ruleCollectionName}" , System . Uri . EscapeDataString ( ruleCollectionName ) ) ;
674665
675666 System . Collections . Generic . List < string > _queryParameters = new System . Collections . Generic . List < string > ( ) ;
676- if ( this . Client . ApiVersion != null )
667+ if ( apiVersion != null )
677668 {
678- _queryParameters . Add ( string . Format ( "api-version={0}" , System . Uri . EscapeDataString ( this . Client . ApiVersion ) ) ) ;
669+ _queryParameters . Add ( string . Format ( "api-version={0}" , System . Uri . EscapeDataString ( apiVersion ) ) ) ;
679670 }
680671 if ( _queryParameters . Count > 0 )
681672 {
@@ -903,11 +894,6 @@ internal AdminRuleCollectionsOperations (NetworkManagementClient client)
903894
904895
905896
906- if ( this . Client . ApiVersion == null )
907- {
908- throw new Microsoft . Rest . ValidationException ( Microsoft . Rest . ValidationRules . CannotBeNull , "this.Client.ApiVersion" ) ;
909- }
910-
911897 if ( this . Client . SubscriptionId == null )
912898 {
913899 throw new Microsoft . Rest . ValidationException ( Microsoft . Rest . ValidationRules . CannotBeNull , "this.Client.SubscriptionId" ) ;
@@ -950,13 +936,15 @@ internal AdminRuleCollectionsOperations (NetworkManagementClient client)
950936 }
951937
952938
939+ string apiVersion = "2025-07-01" ;
953940 // Tracing
954941 bool _shouldTrace = Microsoft . Rest . ServiceClientTracing . IsEnabled ;
955942 string _invocationId = null ;
956943 if ( _shouldTrace )
957944 {
958945 _invocationId = Microsoft . Rest . ServiceClientTracing . NextInvocationId . ToString ( ) ;
959946 System . Collections . Generic . Dictionary < string , object > tracingParameters = new System . Collections . Generic . Dictionary < string , object > ( ) ;
947+ tracingParameters . Add ( "apiVersion" , apiVersion ) ;
960948 tracingParameters . Add ( "resourceGroupName" , resourceGroupName ) ;
961949 tracingParameters . Add ( "networkManagerName" , networkManagerName ) ;
962950 tracingParameters . Add ( "configurationName" , configurationName ) ;
@@ -978,9 +966,9 @@ internal AdminRuleCollectionsOperations (NetworkManagementClient client)
978966 _url = _url . Replace ( "{ruleCollectionName}" , System . Uri . EscapeDataString ( ruleCollectionName ) ) ;
979967
980968 System . Collections . Generic . List < string > _queryParameters = new System . Collections . Generic . List < string > ( ) ;
981- if ( this . Client . ApiVersion != null )
969+ if ( apiVersion != null )
982970 {
983- _queryParameters . Add ( string . Format ( "api-version={0}" , System . Uri . EscapeDataString ( this . Client . ApiVersion ) ) ) ;
971+ _queryParameters . Add ( string . Format ( "api-version={0}" , System . Uri . EscapeDataString ( apiVersion ) ) ) ;
984972 }
985973 if ( force != null )
986974 {
0 commit comments