@@ -119,11 +119,7 @@ internal CassandraDataCentersOperations (CosmosDBManagementClient client)
119
119
throw new Microsoft . Rest . ValidationException ( Microsoft . Rest . ValidationRules . Pattern , "clusterName" , "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$" ) ;
120
120
}
121
121
}
122
- if ( this . Client . ApiVersion == null )
123
- {
124
- throw new Microsoft . Rest . ValidationException ( Microsoft . Rest . ValidationRules . CannotBeNull , "this.Client.ApiVersion" ) ;
125
- }
126
-
122
+ string apiVersion = "2024-08-15" ;
127
123
// Tracing
128
124
bool _shouldTrace = Microsoft . Rest . ServiceClientTracing . IsEnabled ;
129
125
string _invocationId = null ;
@@ -133,6 +129,7 @@ internal CassandraDataCentersOperations (CosmosDBManagementClient client)
133
129
System . Collections . Generic . Dictionary < string , object > tracingParameters = new System . Collections . Generic . Dictionary < string , object > ( ) ;
134
130
tracingParameters . Add ( "resourceGroupName" , resourceGroupName ) ;
135
131
tracingParameters . Add ( "clusterName" , clusterName ) ;
132
+ tracingParameters . Add ( "apiVersion" , apiVersion ) ;
136
133
137
134
138
135
tracingParameters . Add ( "cancellationToken" , cancellationToken ) ;
@@ -147,9 +144,9 @@ internal CassandraDataCentersOperations (CosmosDBManagementClient client)
147
144
_url = _url . Replace ( "{clusterName}" , System . Uri . EscapeDataString ( clusterName ) ) ;
148
145
149
146
System . Collections . Generic . List < string > _queryParameters = new System . Collections . Generic . List < string > ( ) ;
150
- if ( this . Client . ApiVersion != null )
147
+ if ( apiVersion != null )
151
148
{
152
- _queryParameters . Add ( string . Format ( "api-version={0}" , System . Uri . EscapeDataString ( this . Client . ApiVersion ) ) ) ;
149
+ _queryParameters . Add ( string . Format ( "api-version={0}" , System . Uri . EscapeDataString ( apiVersion ) ) ) ;
153
150
}
154
151
if ( _queryParameters . Count > 0 )
155
152
{
@@ -384,11 +381,7 @@ internal CassandraDataCentersOperations (CosmosDBManagementClient client)
384
381
throw new Microsoft . Rest . ValidationException ( Microsoft . Rest . ValidationRules . Pattern , "dataCenterName" , "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$" ) ;
385
382
}
386
383
}
387
- if ( this . Client . ApiVersion == null )
388
- {
389
- throw new Microsoft . Rest . ValidationException ( Microsoft . Rest . ValidationRules . CannotBeNull , "this.Client.ApiVersion" ) ;
390
- }
391
-
384
+ string apiVersion = "2024-08-15" ;
392
385
// Tracing
393
386
bool _shouldTrace = Microsoft . Rest . ServiceClientTracing . IsEnabled ;
394
387
string _invocationId = null ;
@@ -399,6 +392,7 @@ internal CassandraDataCentersOperations (CosmosDBManagementClient client)
399
392
tracingParameters . Add ( "resourceGroupName" , resourceGroupName ) ;
400
393
tracingParameters . Add ( "clusterName" , clusterName ) ;
401
394
tracingParameters . Add ( "dataCenterName" , dataCenterName ) ;
395
+ tracingParameters . Add ( "apiVersion" , apiVersion ) ;
402
396
403
397
404
398
tracingParameters . Add ( "cancellationToken" , cancellationToken ) ;
@@ -414,9 +408,9 @@ internal CassandraDataCentersOperations (CosmosDBManagementClient client)
414
408
_url = _url . Replace ( "{dataCenterName}" , System . Uri . EscapeDataString ( dataCenterName ) ) ;
415
409
416
410
System . Collections . Generic . List < string > _queryParameters = new System . Collections . Generic . List < string > ( ) ;
417
- if ( this . Client . ApiVersion != null )
411
+ if ( apiVersion != null )
418
412
{
419
- _queryParameters . Add ( string . Format ( "api-version={0}" , System . Uri . EscapeDataString ( this . Client . ApiVersion ) ) ) ;
413
+ _queryParameters . Add ( string . Format ( "api-version={0}" , System . Uri . EscapeDataString ( apiVersion ) ) ) ;
420
414
}
421
415
if ( _queryParameters . Count > 0 )
422
416
{
@@ -730,11 +724,7 @@ internal CassandraDataCentersOperations (CosmosDBManagementClient client)
730
724
throw new Microsoft . Rest . ValidationException ( Microsoft . Rest . ValidationRules . Pattern , "dataCenterName" , "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$" ) ;
731
725
}
732
726
}
733
- if ( this . Client . ApiVersion == null )
734
- {
735
- throw new Microsoft . Rest . ValidationException ( Microsoft . Rest . ValidationRules . CannotBeNull , "this.Client.ApiVersion" ) ;
736
- }
737
-
727
+ string apiVersion = "2024-08-15" ;
738
728
// Tracing
739
729
bool _shouldTrace = Microsoft . Rest . ServiceClientTracing . IsEnabled ;
740
730
string _invocationId = null ;
@@ -745,6 +735,7 @@ internal CassandraDataCentersOperations (CosmosDBManagementClient client)
745
735
tracingParameters . Add ( "resourceGroupName" , resourceGroupName ) ;
746
736
tracingParameters . Add ( "clusterName" , clusterName ) ;
747
737
tracingParameters . Add ( "dataCenterName" , dataCenterName ) ;
738
+ tracingParameters . Add ( "apiVersion" , apiVersion ) ;
748
739
749
740
750
741
tracingParameters . Add ( "cancellationToken" , cancellationToken ) ;
@@ -760,9 +751,9 @@ internal CassandraDataCentersOperations (CosmosDBManagementClient client)
760
751
_url = _url . Replace ( "{dataCenterName}" , System . Uri . EscapeDataString ( dataCenterName ) ) ;
761
752
762
753
System . Collections . Generic . List < string > _queryParameters = new System . Collections . Generic . List < string > ( ) ;
763
- if ( this . Client . ApiVersion != null )
754
+ if ( apiVersion != null )
764
755
{
765
- _queryParameters . Add ( string . Format ( "api-version={0}" , System . Uri . EscapeDataString ( this . Client . ApiVersion ) ) ) ;
756
+ _queryParameters . Add ( string . Format ( "api-version={0}" , System . Uri . EscapeDataString ( apiVersion ) ) ) ;
766
757
}
767
758
if ( _queryParameters . Count > 0 )
768
759
{
@@ -988,11 +979,7 @@ internal CassandraDataCentersOperations (CosmosDBManagementClient client)
988
979
throw new Microsoft . Rest . ValidationException ( Microsoft . Rest . ValidationRules . Pattern , "dataCenterName" , "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$" ) ;
989
980
}
990
981
}
991
- if ( this . Client . ApiVersion == null )
992
- {
993
- throw new Microsoft . Rest . ValidationException ( Microsoft . Rest . ValidationRules . CannotBeNull , "this.Client.ApiVersion" ) ;
994
- }
995
-
982
+ string apiVersion = "2024-08-15" ;
996
983
// Tracing
997
984
bool _shouldTrace = Microsoft . Rest . ServiceClientTracing . IsEnabled ;
998
985
string _invocationId = null ;
@@ -1003,6 +990,7 @@ internal CassandraDataCentersOperations (CosmosDBManagementClient client)
1003
990
tracingParameters . Add ( "resourceGroupName" , resourceGroupName ) ;
1004
991
tracingParameters . Add ( "clusterName" , clusterName ) ;
1005
992
tracingParameters . Add ( "dataCenterName" , dataCenterName ) ;
993
+ tracingParameters . Add ( "apiVersion" , apiVersion ) ;
1006
994
1007
995
tracingParameters . Add ( "body" , body ) ;
1008
996
@@ -1019,9 +1007,9 @@ internal CassandraDataCentersOperations (CosmosDBManagementClient client)
1019
1007
_url = _url . Replace ( "{dataCenterName}" , System . Uri . EscapeDataString ( dataCenterName ) ) ;
1020
1008
1021
1009
System . Collections . Generic . List < string > _queryParameters = new System . Collections . Generic . List < string > ( ) ;
1022
- if ( this . Client . ApiVersion != null )
1010
+ if ( apiVersion != null )
1023
1011
{
1024
- _queryParameters . Add ( string . Format ( "api-version={0}" , System . Uri . EscapeDataString ( this . Client . ApiVersion ) ) ) ;
1012
+ _queryParameters . Add ( string . Format ( "api-version={0}" , System . Uri . EscapeDataString ( apiVersion ) ) ) ;
1025
1013
}
1026
1014
if ( _queryParameters . Count > 0 )
1027
1015
{
@@ -1287,11 +1275,7 @@ internal CassandraDataCentersOperations (CosmosDBManagementClient client)
1287
1275
throw new Microsoft . Rest . ValidationException ( Microsoft . Rest . ValidationRules . Pattern , "dataCenterName" , "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$" ) ;
1288
1276
}
1289
1277
}
1290
- if ( this . Client . ApiVersion == null )
1291
- {
1292
- throw new Microsoft . Rest . ValidationException ( Microsoft . Rest . ValidationRules . CannotBeNull , "this.Client.ApiVersion" ) ;
1293
- }
1294
-
1278
+ string apiVersion = "2024-08-15" ;
1295
1279
// Tracing
1296
1280
bool _shouldTrace = Microsoft . Rest . ServiceClientTracing . IsEnabled ;
1297
1281
string _invocationId = null ;
@@ -1302,6 +1286,7 @@ internal CassandraDataCentersOperations (CosmosDBManagementClient client)
1302
1286
tracingParameters . Add ( "resourceGroupName" , resourceGroupName ) ;
1303
1287
tracingParameters . Add ( "clusterName" , clusterName ) ;
1304
1288
tracingParameters . Add ( "dataCenterName" , dataCenterName ) ;
1289
+ tracingParameters . Add ( "apiVersion" , apiVersion ) ;
1305
1290
1306
1291
tracingParameters . Add ( "body" , body ) ;
1307
1292
@@ -1318,9 +1303,9 @@ internal CassandraDataCentersOperations (CosmosDBManagementClient client)
1318
1303
_url = _url . Replace ( "{dataCenterName}" , System . Uri . EscapeDataString ( dataCenterName ) ) ;
1319
1304
1320
1305
System . Collections . Generic . List < string > _queryParameters = new System . Collections . Generic . List < string > ( ) ;
1321
- if ( this . Client . ApiVersion != null )
1306
+ if ( apiVersion != null )
1322
1307
{
1323
- _queryParameters . Add ( string . Format ( "api-version={0}" , System . Uri . EscapeDataString ( this . Client . ApiVersion ) ) ) ;
1308
+ _queryParameters . Add ( string . Format ( "api-version={0}" , System . Uri . EscapeDataString ( apiVersion ) ) ) ;
1324
1309
}
1325
1310
if ( _queryParameters . Count > 0 )
1326
1311
{
0 commit comments