@@ -74,11 +74,6 @@ internal MhsmPrivateEndpointConnectionsOperations (KeyVaultManagementClient clie
74
74
75
75
76
76
77
- if ( this . Client . ApiVersion == null )
78
- {
79
- throw new Microsoft . Rest . ValidationException ( Microsoft . Rest . ValidationRules . CannotBeNull , "this.Client.ApiVersion" ) ;
80
- }
81
-
82
77
if ( this . Client . SubscriptionId == null )
83
78
{
84
79
throw new Microsoft . Rest . ValidationException ( Microsoft . Rest . ValidationRules . CannotBeNull , "this.Client.SubscriptionId" ) ;
@@ -94,13 +89,15 @@ internal MhsmPrivateEndpointConnectionsOperations (KeyVaultManagementClient clie
94
89
throw new Microsoft . Rest . ValidationException ( Microsoft . Rest . ValidationRules . CannotBeNull , "name" ) ;
95
90
}
96
91
92
+ string apiVersion = "2023-02-01" ;
97
93
// Tracing
98
94
bool _shouldTrace = Microsoft . Rest . ServiceClientTracing . IsEnabled ;
99
95
string _invocationId = null ;
100
96
if ( _shouldTrace )
101
97
{
102
98
_invocationId = Microsoft . Rest . ServiceClientTracing . NextInvocationId . ToString ( ) ;
103
99
System . Collections . Generic . Dictionary < string , object > tracingParameters = new System . Collections . Generic . Dictionary < string , object > ( ) ;
100
+ tracingParameters . Add ( "apiVersion" , apiVersion ) ;
104
101
tracingParameters . Add ( "resourceGroupName" , resourceGroupName ) ;
105
102
tracingParameters . Add ( "name" , name ) ;
106
103
@@ -117,9 +114,9 @@ internal MhsmPrivateEndpointConnectionsOperations (KeyVaultManagementClient clie
117
114
_url = _url . Replace ( "{name}" , System . Uri . EscapeDataString ( name ) ) ;
118
115
119
116
System . Collections . Generic . List < string > _queryParameters = new System . Collections . Generic . List < string > ( ) ;
120
- if ( this . Client . ApiVersion != null )
117
+ if ( apiVersion != null )
121
118
{
122
- _queryParameters . Add ( string . Format ( "api-version={0}" , System . Uri . EscapeDataString ( this . Client . ApiVersion ) ) ) ;
119
+ _queryParameters . Add ( string . Format ( "api-version={0}" , System . Uri . EscapeDataString ( apiVersion ) ) ) ;
123
120
}
124
121
if ( _queryParameters . Count > 0 )
125
122
{
@@ -305,11 +302,7 @@ internal MhsmPrivateEndpointConnectionsOperations (KeyVaultManagementClient clie
305
302
throw new Microsoft . Rest . ValidationException ( Microsoft . Rest . ValidationRules . CannotBeNull , "privateEndpointConnectionName" ) ;
306
303
}
307
304
308
- if ( this . Client . ApiVersion == null )
309
- {
310
- throw new Microsoft . Rest . ValidationException ( Microsoft . Rest . ValidationRules . CannotBeNull , "this.Client.ApiVersion" ) ;
311
- }
312
-
305
+ string apiVersion = "2023-02-01" ;
313
306
// Tracing
314
307
bool _shouldTrace = Microsoft . Rest . ServiceClientTracing . IsEnabled ;
315
308
string _invocationId = null ;
@@ -320,6 +313,7 @@ internal MhsmPrivateEndpointConnectionsOperations (KeyVaultManagementClient clie
320
313
tracingParameters . Add ( "resourceGroupName" , resourceGroupName ) ;
321
314
tracingParameters . Add ( "name" , name ) ;
322
315
tracingParameters . Add ( "privateEndpointConnectionName" , privateEndpointConnectionName ) ;
316
+ tracingParameters . Add ( "apiVersion" , apiVersion ) ;
323
317
324
318
325
319
tracingParameters . Add ( "cancellationToken" , cancellationToken ) ;
@@ -335,9 +329,9 @@ internal MhsmPrivateEndpointConnectionsOperations (KeyVaultManagementClient clie
335
329
_url = _url . Replace ( "{privateEndpointConnectionName}" , System . Uri . EscapeDataString ( privateEndpointConnectionName ) ) ;
336
330
337
331
System . Collections . Generic . List < string > _queryParameters = new System . Collections . Generic . List < string > ( ) ;
338
- if ( this . Client . ApiVersion != null )
332
+ if ( apiVersion != null )
339
333
{
340
- _queryParameters . Add ( string . Format ( "api-version={0}" , System . Uri . EscapeDataString ( this . Client . ApiVersion ) ) ) ;
334
+ _queryParameters . Add ( string . Format ( "api-version={0}" , System . Uri . EscapeDataString ( apiVersion ) ) ) ;
341
335
}
342
336
if ( _queryParameters . Count > 0 )
343
337
{
@@ -531,11 +525,7 @@ internal MhsmPrivateEndpointConnectionsOperations (KeyVaultManagementClient clie
531
525
throw new Microsoft . Rest . ValidationException ( Microsoft . Rest . ValidationRules . CannotBeNull , "privateEndpointConnectionName" ) ;
532
526
}
533
527
534
- if ( this . Client . ApiVersion == null )
535
- {
536
- throw new Microsoft . Rest . ValidationException ( Microsoft . Rest . ValidationRules . CannotBeNull , "this.Client.ApiVersion" ) ;
537
- }
538
-
528
+ string apiVersion = "2023-02-01" ;
539
529
// Tracing
540
530
bool _shouldTrace = Microsoft . Rest . ServiceClientTracing . IsEnabled ;
541
531
string _invocationId = null ;
@@ -546,6 +536,7 @@ internal MhsmPrivateEndpointConnectionsOperations (KeyVaultManagementClient clie
546
536
tracingParameters . Add ( "resourceGroupName" , resourceGroupName ) ;
547
537
tracingParameters . Add ( "name" , name ) ;
548
538
tracingParameters . Add ( "privateEndpointConnectionName" , privateEndpointConnectionName ) ;
539
+ tracingParameters . Add ( "apiVersion" , apiVersion ) ;
549
540
550
541
tracingParameters . Add ( "properties" , properties ) ;
551
542
@@ -562,9 +553,9 @@ internal MhsmPrivateEndpointConnectionsOperations (KeyVaultManagementClient clie
562
553
_url = _url . Replace ( "{privateEndpointConnectionName}" , System . Uri . EscapeDataString ( privateEndpointConnectionName ) ) ;
563
554
564
555
System . Collections . Generic . List < string > _queryParameters = new System . Collections . Generic . List < string > ( ) ;
565
- if ( this . Client . ApiVersion != null )
556
+ if ( apiVersion != null )
566
557
{
567
- _queryParameters . Add ( string . Format ( "api-version={0}" , System . Uri . EscapeDataString ( this . Client . ApiVersion ) ) ) ;
558
+ _queryParameters . Add ( string . Format ( "api-version={0}" , System . Uri . EscapeDataString ( apiVersion ) ) ) ;
568
559
}
569
560
if ( _queryParameters . Count > 0 )
570
561
{
@@ -799,11 +790,7 @@ internal MhsmPrivateEndpointConnectionsOperations (KeyVaultManagementClient clie
799
790
throw new Microsoft . Rest . ValidationException ( Microsoft . Rest . ValidationRules . CannotBeNull , "privateEndpointConnectionName" ) ;
800
791
}
801
792
802
- if ( this . Client . ApiVersion == null )
803
- {
804
- throw new Microsoft . Rest . ValidationException ( Microsoft . Rest . ValidationRules . CannotBeNull , "this.Client.ApiVersion" ) ;
805
- }
806
-
793
+ string apiVersion = "2023-02-01" ;
807
794
// Tracing
808
795
bool _shouldTrace = Microsoft . Rest . ServiceClientTracing . IsEnabled ;
809
796
string _invocationId = null ;
@@ -814,6 +801,7 @@ internal MhsmPrivateEndpointConnectionsOperations (KeyVaultManagementClient clie
814
801
tracingParameters . Add ( "resourceGroupName" , resourceGroupName ) ;
815
802
tracingParameters . Add ( "name" , name ) ;
816
803
tracingParameters . Add ( "privateEndpointConnectionName" , privateEndpointConnectionName ) ;
804
+ tracingParameters . Add ( "apiVersion" , apiVersion ) ;
817
805
818
806
819
807
tracingParameters . Add ( "cancellationToken" , cancellationToken ) ;
@@ -829,9 +817,9 @@ internal MhsmPrivateEndpointConnectionsOperations (KeyVaultManagementClient clie
829
817
_url = _url . Replace ( "{privateEndpointConnectionName}" , System . Uri . EscapeDataString ( privateEndpointConnectionName ) ) ;
830
818
831
819
System . Collections . Generic . List < string > _queryParameters = new System . Collections . Generic . List < string > ( ) ;
832
- if ( this . Client . ApiVersion != null )
820
+ if ( apiVersion != null )
833
821
{
834
- _queryParameters . Add ( string . Format ( "api-version={0}" , System . Uri . EscapeDataString ( this . Client . ApiVersion ) ) ) ;
822
+ _queryParameters . Add ( string . Format ( "api-version={0}" , System . Uri . EscapeDataString ( apiVersion ) ) ) ;
835
823
}
836
824
if ( _queryParameters . Count > 0 )
837
825
{
0 commit comments