Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion src/CosmosDB/CosmosDB.Sdk/CosmosDB.Sdk.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<AssemblyName>Microsoft.Azure.PowerShell.CosmosDB.Sdk</AssemblyName>
<AssemblyName>Microsoft.Azure.PowerShell.CosmosDB.Management.Sdk</AssemblyName>
<RootNamespace>Microsoft.Azure.Management.CosmosDB</RootNamespace>
<NoWarn>$(NoWarn);CS0108;CS1573</NoWarn>
</PropertyGroup>
Expand Down
497 changes: 0 additions & 497 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 @@ -304,94 +304,6 @@ 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 IEnumerable<BackupResource> ListBackupsMethod(this ICassandraClustersOperations operations, string resourceGroupName, string clusterName)
{
return operations.ListBackupsMethodAsync(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 Task<IEnumerable<BackupResource>> ListBackupsMethodAsync(this ICassandraClustersOperations operations, string resourceGroupName, string clusterName, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListBackupsMethodWithHttpMessagesAsync(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 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 Task<BackupResource> GetBackupAsync(this ICassandraClustersOperations operations, string resourceGroupName, string clusterName, string backupId, CancellationToken cancellationToken = default(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
Expand Down
Loading