Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
888e823
apply Az.CosmosDB-preview branch CosmosDB folder to this branch
Feb 9, 2024
183c296
Use autorest.powershell to generate management SDK for cosmosDB (#22413)
dolauli Jul 31, 2023
64fc124
remove the custom code since character case change is not treated as …
dolauli Aug 7, 2023
46f76d0
regen sdk
Feb 13, 2024
6d4a9f2
specify header type as string to fix build error
Feb 14, 2024
369c7d0
update autorest file to align with main; regen sdk
Feb 14, 2024
9004034
fix casing
Feb 20, 2024
3ca2a54
[Cosmos DB] Powershell changes for 2023-03-15 stable API (#21990)
Jun 23, 2023
11b77d1
CosmosDB - New Restore Parameter (#22585)
mayankkatwal Aug 22, 2023
257e2a4
CosmosDB 2023-09-15 release (#22726) (#22953)
VeryEarly Oct 12, 2023
7b60cbf
[CosmosDB] GA PowerShell commands for InAccount Restore of Deleted Da…
ddhamotharan Dec 18, 2023
853fba7
regen sdk, fix build error
Feb 20, 2024
dcbed10
fix duplicate code
Feb 20, 2024
0bec662
nit fix restore tests
Feb 21, 2024
3f0f4ee
re-record tests
Feb 21, 2024
77fe8c6
CosmosDB: Adds changes to handle enabling partition merge on CosmosDB…
SrinikhilReddy May 15, 2023
3ccd051
Replace Start-Sleep with Start-TestSleep for all test cases (#23780)
vidai-msft Dec 20, 2023
7d4ffe9
re-record account test
Feb 21, 2024
45b2e65
fix typo
Feb 22, 2024
db79833
[Cosmos DB] Powershell changes for 2023-04-15 stable API (Continuous …
vinhms May 6, 2023
ee1a7a9
add output type to cmdlet
Feb 22, 2024
f36e275
suppress errors for existing cmdlets
Feb 22, 2024
62e5f18
Revert "suppress errors for existing cmdlets"
Feb 22, 2024
5b92d13
suppress static validation errors for existing commands
Feb 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
535 changes: 532 additions & 3 deletions src/CosmosDB/CosmosDB.Sdk/Generated/CassandraClustersOperations.cs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,92 @@ public static CommandOutput InvokeCommand(this ICassandraClustersOperations oper
}
}
/// <summary>
/// List the backups of this cluster that are available to restore.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='clusterName'>
/// Managed Cassandra cluster name.
/// </param>
public static System.Collections.Generic.IEnumerable<BackupResource> ListBackups(this ICassandraClustersOperations operations, string resourceGroupName, string clusterName)
{
return ((ICassandraClustersOperations)operations).ListBackupsAsync(resourceGroupName, clusterName).GetAwaiter().GetResult();
}

/// <summary>
/// List the backups of this cluster that are available to restore.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='clusterName'>
/// Managed Cassandra cluster name.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<BackupResource>> ListBackupsAsync(this ICassandraClustersOperations operations, string resourceGroupName, string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
using (var _result = await operations.ListBackupsWithHttpMessagesAsync(resourceGroupName, clusterName, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Get the properties of an individual backup of this cluster that is
/// available to restore.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='clusterName'>
/// Managed Cassandra cluster name.
/// </param>
/// <param name='backupId'>
/// Id of a restorable backup of a Cassandra cluster.
/// </param>
public static BackupResource GetBackup(this ICassandraClustersOperations operations, string resourceGroupName, string clusterName, string backupId)
{
return ((ICassandraClustersOperations)operations).GetBackupAsync(resourceGroupName, clusterName, backupId).GetAwaiter().GetResult();
}

/// <summary>
/// Get the properties of an individual backup of this cluster that is
/// available to restore.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='clusterName'>
/// Managed Cassandra cluster name.
/// </param>
/// <param name='backupId'>
/// Id of a restorable backup of a Cassandra cluster.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async System.Threading.Tasks.Task<BackupResource> GetBackupAsync(this ICassandraClustersOperations operations, string resourceGroupName, string clusterName, string backupId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
using (var _result = await operations.GetBackupWithHttpMessagesAsync(resourceGroupName, clusterName, backupId, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Deallocate the Managed Cassandra Cluster and Associated Data Centers.
/// Deallocation will deallocate the host virtual machine of this cluster, and
/// reserved the data disk. This won&#39;t do anything on an already deallocated
Expand All @@ -281,9 +367,13 @@ public static CommandOutput InvokeCommand(this ICassandraClustersOperations oper
/// <param name='clusterName'>
/// Managed Cassandra cluster name.
/// </param>
public static void Deallocate(this ICassandraClustersOperations operations, string resourceGroupName, string clusterName)
/// <param name='xMsForceDeallocate'>
/// Force to deallocate a cluster of Cluster Type Production. Force to
/// deallocate a cluster of Cluster Type Production might cause data loss
/// </param>
public static void Deallocate(this ICassandraClustersOperations operations, string resourceGroupName, string clusterName, string xMsForceDeallocate = default(string))
{
((ICassandraClustersOperations)operations).DeallocateAsync(resourceGroupName, clusterName).GetAwaiter().GetResult();
((ICassandraClustersOperations)operations).DeallocateAsync(resourceGroupName, clusterName, xMsForceDeallocate).GetAwaiter().GetResult();
}

/// <summary>
Expand All @@ -301,12 +391,16 @@ public static void Deallocate(this ICassandraClustersOperations operations, stri
/// <param name='clusterName'>
/// Managed Cassandra cluster name.
/// </param>
/// <param name='xMsForceDeallocate'>
/// Force to deallocate a cluster of Cluster Type Production. Force to
/// deallocate a cluster of Cluster Type Production might cause data loss
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async System.Threading.Tasks.Task DeallocateAsync(this ICassandraClustersOperations operations, string resourceGroupName, string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
public static async System.Threading.Tasks.Task DeallocateAsync(this ICassandraClustersOperations operations, string resourceGroupName, string clusterName, string xMsForceDeallocate = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
(await operations.DeallocateWithHttpMessagesAsync(resourceGroupName, clusterName, null, cancellationToken).ConfigureAwait(false)).Dispose();
(await operations.DeallocateWithHttpMessagesAsync(resourceGroupName, clusterName, xMsForceDeallocate, null, cancellationToken).ConfigureAwait(false)).Dispose();
}
/// <summary>
/// Start the Managed Cassandra Cluster and Associated Data Centers. Start will
Expand Down Expand Up @@ -561,9 +655,13 @@ public static CommandOutput BeginInvokeCommand(this ICassandraClustersOperations
/// <param name='clusterName'>
/// Managed Cassandra cluster name.
/// </param>
public static void BeginDeallocate(this ICassandraClustersOperations operations, string resourceGroupName, string clusterName)
/// <param name='xMsForceDeallocate'>
/// Force to deallocate a cluster of Cluster Type Production. Force to
/// deallocate a cluster of Cluster Type Production might cause data loss
/// </param>
public static void BeginDeallocate(this ICassandraClustersOperations operations, string resourceGroupName, string clusterName, string xMsForceDeallocate = default(string))
{
((ICassandraClustersOperations)operations).BeginDeallocateAsync(resourceGroupName, clusterName).GetAwaiter().GetResult();
((ICassandraClustersOperations)operations).BeginDeallocateAsync(resourceGroupName, clusterName, xMsForceDeallocate).GetAwaiter().GetResult();
}

/// <summary>
Expand All @@ -581,12 +679,16 @@ public static void BeginDeallocate(this ICassandraClustersOperations operations,
/// <param name='clusterName'>
/// Managed Cassandra cluster name.
/// </param>
/// <param name='xMsForceDeallocate'>
/// Force to deallocate a cluster of Cluster Type Production. Force to
/// deallocate a cluster of Cluster Type Production might cause data loss
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async System.Threading.Tasks.Task BeginDeallocateAsync(this ICassandraClustersOperations operations, string resourceGroupName, string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
public static async System.Threading.Tasks.Task BeginDeallocateAsync(this ICassandraClustersOperations operations, string resourceGroupName, string clusterName, string xMsForceDeallocate = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
(await operations.BeginDeallocateWithHttpMessagesAsync(resourceGroupName, clusterName, null, cancellationToken).ConfigureAwait(false)).Dispose();
(await operations.BeginDeallocateWithHttpMessagesAsync(resourceGroupName, clusterName, xMsForceDeallocate, null, cancellationToken).ConfigureAwait(false)).Dispose();
}
/// <summary>
/// Start the Managed Cassandra Cluster and Associated Data Centers. Start will
Expand Down
Loading