Skip to content

Commit 5d4d82a

Browse files
authored
[Cosmos DB] Powershell changes for 2023-04-15 stable API (Continuous 7 GA) (#21685)
* move to new swagger version and prereq * edit readme.md * manually generated from autorest * Continuous 7 days change * add 2 new test recordings * fix example issues * add all test recordings for RestoreTests suite * fix New-AzCosmosDBAccount.md * add almost all test recordings * add 4 more successful recordings. all working now * no examples * clean up help file
1 parent 29c712d commit 5d4d82a

File tree

272 files changed

+63611
-41968
lines changed

Some content is hidden

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

272 files changed

+63611
-41968
lines changed

src/CosmosDB/CosmosDB.Sdk/CosmosDB.Sdk.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<PropertyGroup>
1010
<TargetFramework>netstandard2.0</TargetFramework>
11-
<AssemblyName>Microsoft.Azure.PowerShell.CosmosDB.Sdk</AssemblyName>
11+
<AssemblyName>Microsoft.Azure.PowerShell.CosmosDB.Management.Sdk</AssemblyName>
1212
<RootNamespace>Microsoft.Azure.Management.CosmosDB</RootNamespace>
1313
<NoWarn>$(NoWarn);CS0108;CS1573</NoWarn>
1414
</PropertyGroup>

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

Lines changed: 0 additions & 497 deletions
Large diffs are not rendered by default.

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

Lines changed: 0 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -304,94 +304,6 @@ public static CommandOutput InvokeCommand(this ICassandraClustersOperations oper
304304
}
305305
}
306306

307-
/// <summary>
308-
/// List the backups of this cluster that are available to restore.
309-
/// </summary>
310-
/// <param name='operations'>
311-
/// The operations group for this extension method.
312-
/// </param>
313-
/// <param name='resourceGroupName'>
314-
/// The name of the resource group. The name is case insensitive.
315-
/// </param>
316-
/// <param name='clusterName'>
317-
/// Managed Cassandra cluster name.
318-
/// </param>
319-
public static IEnumerable<BackupResource> ListBackupsMethod(this ICassandraClustersOperations operations, string resourceGroupName, string clusterName)
320-
{
321-
return operations.ListBackupsMethodAsync(resourceGroupName, clusterName).GetAwaiter().GetResult();
322-
}
323-
324-
/// <summary>
325-
/// List the backups of this cluster that are available to restore.
326-
/// </summary>
327-
/// <param name='operations'>
328-
/// The operations group for this extension method.
329-
/// </param>
330-
/// <param name='resourceGroupName'>
331-
/// The name of the resource group. The name is case insensitive.
332-
/// </param>
333-
/// <param name='clusterName'>
334-
/// Managed Cassandra cluster name.
335-
/// </param>
336-
/// <param name='cancellationToken'>
337-
/// The cancellation token.
338-
/// </param>
339-
public static async Task<IEnumerable<BackupResource>> ListBackupsMethodAsync(this ICassandraClustersOperations operations, string resourceGroupName, string clusterName, CancellationToken cancellationToken = default(CancellationToken))
340-
{
341-
using (var _result = await operations.ListBackupsMethodWithHttpMessagesAsync(resourceGroupName, clusterName, null, cancellationToken).ConfigureAwait(false))
342-
{
343-
return _result.Body;
344-
}
345-
}
346-
347-
/// <summary>
348-
/// Get the properties of an individual backup of this cluster that is
349-
/// available to restore.
350-
/// </summary>
351-
/// <param name='operations'>
352-
/// The operations group for this extension method.
353-
/// </param>
354-
/// <param name='resourceGroupName'>
355-
/// The name of the resource group. The name is case insensitive.
356-
/// </param>
357-
/// <param name='clusterName'>
358-
/// Managed Cassandra cluster name.
359-
/// </param>
360-
/// <param name='backupId'>
361-
/// Id of a restorable backup of a Cassandra cluster.
362-
/// </param>
363-
public static BackupResource GetBackup(this ICassandraClustersOperations operations, string resourceGroupName, string clusterName, string backupId)
364-
{
365-
return operations.GetBackupAsync(resourceGroupName, clusterName, backupId).GetAwaiter().GetResult();
366-
}
367-
368-
/// <summary>
369-
/// Get the properties of an individual backup of this cluster that is
370-
/// available to restore.
371-
/// </summary>
372-
/// <param name='operations'>
373-
/// The operations group for this extension method.
374-
/// </param>
375-
/// <param name='resourceGroupName'>
376-
/// The name of the resource group. The name is case insensitive.
377-
/// </param>
378-
/// <param name='clusterName'>
379-
/// Managed Cassandra cluster name.
380-
/// </param>
381-
/// <param name='backupId'>
382-
/// Id of a restorable backup of a Cassandra cluster.
383-
/// </param>
384-
/// <param name='cancellationToken'>
385-
/// The cancellation token.
386-
/// </param>
387-
public static async Task<BackupResource> GetBackupAsync(this ICassandraClustersOperations operations, string resourceGroupName, string clusterName, string backupId, CancellationToken cancellationToken = default(CancellationToken))
388-
{
389-
using (var _result = await operations.GetBackupWithHttpMessagesAsync(resourceGroupName, clusterName, backupId, null, cancellationToken).ConfigureAwait(false))
390-
{
391-
return _result.Body;
392-
}
393-
}
394-
395307
/// <summary>
396308
/// Deallocate the Managed Cassandra Cluster and Associated Data Centers.
397309
/// Deallocation will deallocate the host virtual machine of this cluster, and

0 commit comments

Comments
 (0)