Skip to content

Commit c577355

Browse files
committed
Generated 20250501preview models
1 parent c0c9be9 commit c577355

File tree

149 files changed

+24575
-1734
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

149 files changed

+24575
-1734
lines changed

src/CosmosDB/CosmosDB.Management.Sdk/Generated/CassandraClustersOperations.cs

Lines changed: 68 additions & 41 deletions
Large diffs are not rendered by default.

src/CosmosDB/CosmosDB.Management.Sdk/Generated/CassandraClustersOperationsExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ public static System.Collections.Generic.IEnumerable<CommandPublicResource> List
320320
/// <param name='commandId'>
321321
/// Managed Cassandra cluster command id.
322322
/// </param>
323-
public static ListCommands GetCommandAsync(this ICassandraClustersOperations operations, string resourceGroupName, string clusterName, string commandId)
323+
public static CommandPublicResource GetCommandAsync(this ICassandraClustersOperations operations, string resourceGroupName, string clusterName, string commandId)
324324
{
325325
return ((ICassandraClustersOperations)operations).GetCommandAsyncAsync(resourceGroupName, clusterName, commandId).GetAwaiter().GetResult();
326326
}
@@ -343,7 +343,7 @@ public static ListCommands GetCommandAsync(this ICassandraClustersOperations ope
343343
/// <param name='cancellationToken'>
344344
/// The cancellation token.
345345
/// </param>
346-
public static async System.Threading.Tasks.Task<ListCommands> GetCommandAsyncAsync(this ICassandraClustersOperations operations, string resourceGroupName, string clusterName, string commandId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
346+
public static async System.Threading.Tasks.Task<CommandPublicResource> GetCommandAsyncAsync(this ICassandraClustersOperations operations, string resourceGroupName, string clusterName, string commandId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
347347
{
348348
using (var _result = await operations.GetCommandAsyncWithHttpMessagesAsync(resourceGroupName, clusterName, commandId, null, cancellationToken).ConfigureAwait(false))
349349
{

src/CosmosDB/CosmosDB.Management.Sdk/Generated/CassandraDataCentersOperations.cs

Lines changed: 35 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,11 @@ internal CassandraDataCentersOperations (CosmosDBManagementClient client)
119119
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "clusterName", "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$");
120120
}
121121
}
122-
string apiVersion = "2024-08-15";
122+
if (this.Client.ApiVersion == null)
123+
{
124+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion");
125+
}
126+
123127
// Tracing
124128
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
125129
string _invocationId = null;
@@ -129,7 +133,6 @@ internal CassandraDataCentersOperations (CosmosDBManagementClient client)
129133
System.Collections.Generic.Dictionary<string, object> tracingParameters = new System.Collections.Generic.Dictionary<string, object>();
130134
tracingParameters.Add("resourceGroupName", resourceGroupName);
131135
tracingParameters.Add("clusterName", clusterName);
132-
tracingParameters.Add("apiVersion", apiVersion);
133136

134137

135138
tracingParameters.Add("cancellationToken", cancellationToken);
@@ -144,9 +147,9 @@ internal CassandraDataCentersOperations (CosmosDBManagementClient client)
144147
_url = _url.Replace("{clusterName}", System.Uri.EscapeDataString(clusterName));
145148

146149
System.Collections.Generic.List<string> _queryParameters = new System.Collections.Generic.List<string>();
147-
if (apiVersion != null)
150+
if (this.Client.ApiVersion != null)
148151
{
149-
_queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
152+
_queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion)));
150153
}
151154
if (_queryParameters.Count > 0)
152155
{
@@ -381,7 +384,11 @@ internal CassandraDataCentersOperations (CosmosDBManagementClient client)
381384
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "dataCenterName", "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$");
382385
}
383386
}
384-
string apiVersion = "2024-08-15";
387+
if (this.Client.ApiVersion == null)
388+
{
389+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion");
390+
}
391+
385392
// Tracing
386393
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
387394
string _invocationId = null;
@@ -392,7 +399,6 @@ internal CassandraDataCentersOperations (CosmosDBManagementClient client)
392399
tracingParameters.Add("resourceGroupName", resourceGroupName);
393400
tracingParameters.Add("clusterName", clusterName);
394401
tracingParameters.Add("dataCenterName", dataCenterName);
395-
tracingParameters.Add("apiVersion", apiVersion);
396402

397403

398404
tracingParameters.Add("cancellationToken", cancellationToken);
@@ -408,9 +414,9 @@ internal CassandraDataCentersOperations (CosmosDBManagementClient client)
408414
_url = _url.Replace("{dataCenterName}", System.Uri.EscapeDataString(dataCenterName));
409415

410416
System.Collections.Generic.List<string> _queryParameters = new System.Collections.Generic.List<string>();
411-
if (apiVersion != null)
417+
if (this.Client.ApiVersion != null)
412418
{
413-
_queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
419+
_queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion)));
414420
}
415421
if (_queryParameters.Count > 0)
416422
{
@@ -724,7 +730,11 @@ internal CassandraDataCentersOperations (CosmosDBManagementClient client)
724730
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "dataCenterName", "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$");
725731
}
726732
}
727-
string apiVersion = "2024-08-15";
733+
if (this.Client.ApiVersion == null)
734+
{
735+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion");
736+
}
737+
728738
// Tracing
729739
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
730740
string _invocationId = null;
@@ -735,7 +745,6 @@ internal CassandraDataCentersOperations (CosmosDBManagementClient client)
735745
tracingParameters.Add("resourceGroupName", resourceGroupName);
736746
tracingParameters.Add("clusterName", clusterName);
737747
tracingParameters.Add("dataCenterName", dataCenterName);
738-
tracingParameters.Add("apiVersion", apiVersion);
739748

740749

741750
tracingParameters.Add("cancellationToken", cancellationToken);
@@ -751,9 +760,9 @@ internal CassandraDataCentersOperations (CosmosDBManagementClient client)
751760
_url = _url.Replace("{dataCenterName}", System.Uri.EscapeDataString(dataCenterName));
752761

753762
System.Collections.Generic.List<string> _queryParameters = new System.Collections.Generic.List<string>();
754-
if (apiVersion != null)
763+
if (this.Client.ApiVersion != null)
755764
{
756-
_queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
765+
_queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion)));
757766
}
758767
if (_queryParameters.Count > 0)
759768
{
@@ -979,7 +988,11 @@ internal CassandraDataCentersOperations (CosmosDBManagementClient client)
979988
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "dataCenterName", "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$");
980989
}
981990
}
982-
string apiVersion = "2024-08-15";
991+
if (this.Client.ApiVersion == null)
992+
{
993+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion");
994+
}
995+
983996
// Tracing
984997
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
985998
string _invocationId = null;
@@ -990,7 +1003,6 @@ internal CassandraDataCentersOperations (CosmosDBManagementClient client)
9901003
tracingParameters.Add("resourceGroupName", resourceGroupName);
9911004
tracingParameters.Add("clusterName", clusterName);
9921005
tracingParameters.Add("dataCenterName", dataCenterName);
993-
tracingParameters.Add("apiVersion", apiVersion);
9941006

9951007
tracingParameters.Add("body", body);
9961008

@@ -1007,9 +1019,9 @@ internal CassandraDataCentersOperations (CosmosDBManagementClient client)
10071019
_url = _url.Replace("{dataCenterName}", System.Uri.EscapeDataString(dataCenterName));
10081020

10091021
System.Collections.Generic.List<string> _queryParameters = new System.Collections.Generic.List<string>();
1010-
if (apiVersion != null)
1022+
if (this.Client.ApiVersion != null)
10111023
{
1012-
_queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
1024+
_queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion)));
10131025
}
10141026
if (_queryParameters.Count > 0)
10151027
{
@@ -1275,7 +1287,11 @@ internal CassandraDataCentersOperations (CosmosDBManagementClient client)
12751287
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "dataCenterName", "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$");
12761288
}
12771289
}
1278-
string apiVersion = "2024-08-15";
1290+
if (this.Client.ApiVersion == null)
1291+
{
1292+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion");
1293+
}
1294+
12791295
// Tracing
12801296
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
12811297
string _invocationId = null;
@@ -1286,7 +1302,6 @@ internal CassandraDataCentersOperations (CosmosDBManagementClient client)
12861302
tracingParameters.Add("resourceGroupName", resourceGroupName);
12871303
tracingParameters.Add("clusterName", clusterName);
12881304
tracingParameters.Add("dataCenterName", dataCenterName);
1289-
tracingParameters.Add("apiVersion", apiVersion);
12901305

12911306
tracingParameters.Add("body", body);
12921307

@@ -1303,9 +1318,9 @@ internal CassandraDataCentersOperations (CosmosDBManagementClient client)
13031318
_url = _url.Replace("{dataCenterName}", System.Uri.EscapeDataString(dataCenterName));
13041319

13051320
System.Collections.Generic.List<string> _queryParameters = new System.Collections.Generic.List<string>();
1306-
if (apiVersion != null)
1321+
if (this.Client.ApiVersion != null)
13071322
{
1308-
_queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
1323+
_queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion)));
13091324
}
13101325
if (_queryParameters.Count > 0)
13111326
{

0 commit comments

Comments
 (0)