/// <summary> /// Create or update an Azure Cosmos DB Table /// </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='accountName'> /// Cosmos DB database account name. /// </param> /// <param name='tableName'> /// Cosmos DB table name. /// </param> /// <param name='createUpdateTableParameters'> /// The parameters to provide for the current Table. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <TableGetResults> BeginCreateUpdateTableAsync(this ITableResourcesOperations operations, string resourceGroupName, string accountName, string tableName, TableCreateUpdateParameters createUpdateTableParameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginCreateUpdateTableWithHttpMessagesAsync(resourceGroupName, accountName, tableName, createUpdateTableParameters, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Lists the Tables under an existing Azure Cosmos DB database account. /// </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='accountName'> /// Cosmos DB database account name. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IEnumerable <TableGetResults> > ListTablesAsync(this ITableResourcesOperations operations, string resourceGroupName, string accountName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListTablesWithHttpMessagesAsync(resourceGroupName, accountName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets the Tables under an existing Azure Cosmos DB database account with the /// provided name. /// </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='accountName'> /// Cosmos DB database account name. /// </param> /// <param name='tableName'> /// Cosmos DB table name. /// </param> public static TableGetResults GetTable(this ITableResourcesOperations operations, string resourceGroupName, string accountName, string tableName) { return(operations.GetTableAsync(resourceGroupName, accountName, tableName).GetAwaiter().GetResult()); }
/// <summary> /// Retrieves continuous backup information for a table. /// </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='accountName'> /// Cosmos DB database account name. /// </param> /// <param name='tableName'> /// Cosmos DB table name. /// </param> /// <param name='location'> /// The name of the continuous backup restore location. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <BackupInformation> BeginRetrieveContinuousBackupInformationAsync(this ITableResourcesOperations operations, string resourceGroupName, string accountName, string tableName, ContinuousBackupRestoreLocation location, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginRetrieveContinuousBackupInformationWithHttpMessagesAsync(resourceGroupName, accountName, tableName, location, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Retrieves continuous backup information for a table. /// </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='accountName'> /// Cosmos DB database account name. /// </param> /// <param name='tableName'> /// Cosmos DB table name. /// </param> /// <param name='location'> /// The name of the continuous backup restore location. /// </param> public static BackupInformation BeginRetrieveContinuousBackupInformation(this ITableResourcesOperations operations, string resourceGroupName, string accountName, string tableName, ContinuousBackupRestoreLocation location) { return(operations.BeginRetrieveContinuousBackupInformationAsync(resourceGroupName, accountName, tableName, location).GetAwaiter().GetResult()); }
/// <summary> /// Migrate an Azure Cosmos DB Table from autoscale to manual throughput /// </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='accountName'> /// Cosmos DB database account name. /// </param> /// <param name='tableName'> /// Cosmos DB table name. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ThroughputSettingsGetResults> BeginMigrateTableToManualThroughputAsync(this ITableResourcesOperations operations, string resourceGroupName, string accountName, string tableName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginMigrateTableToManualThroughputWithHttpMessagesAsync(resourceGroupName, accountName, tableName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Migrate an Azure Cosmos DB Table from autoscale to manual throughput /// </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='accountName'> /// Cosmos DB database account name. /// </param> /// <param name='tableName'> /// Cosmos DB table name. /// </param> public static ThroughputSettingsGetResults BeginMigrateTableToManualThroughput(this ITableResourcesOperations operations, string resourceGroupName, string accountName, string tableName) { return(operations.BeginMigrateTableToManualThroughputAsync(resourceGroupName, accountName, tableName).GetAwaiter().GetResult()); }
/// <summary> /// Update RUs per second of an Azure Cosmos DB Table /// </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='accountName'> /// Cosmos DB database account name. /// </param> /// <param name='tableName'> /// Cosmos DB table name. /// </param> /// <param name='updateThroughputParameters'> /// The parameters to provide for the RUs per second of the current Table. /// </param> public static ThroughputSettingsGetResults BeginUpdateTableThroughput(this ITableResourcesOperations operations, string resourceGroupName, string accountName, string tableName, ThroughputSettingsUpdateParameters updateThroughputParameters) { return(operations.BeginUpdateTableThroughputAsync(resourceGroupName, accountName, tableName, updateThroughputParameters).GetAwaiter().GetResult()); }
/// <summary> /// Deletes an existing Azure Cosmos DB Table. /// </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='accountName'> /// Cosmos DB database account name. /// </param> /// <param name='tableName'> /// Cosmos DB table name. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task BeginDeleteTableAsync(this ITableResourcesOperations operations, string resourceGroupName, string accountName, string tableName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BeginDeleteTableWithHttpMessagesAsync(resourceGroupName, accountName, tableName, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Deletes an existing Azure Cosmos DB Table. /// </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='accountName'> /// Cosmos DB database account name. /// </param> /// <param name='tableName'> /// Cosmos DB table name. /// </param> public static void BeginDeleteTable(this ITableResourcesOperations operations, string resourceGroupName, string accountName, string tableName) { operations.BeginDeleteTableAsync(resourceGroupName, accountName, tableName).GetAwaiter().GetResult(); }
/// <summary> /// Create or update an Azure Cosmos DB Table /// </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='accountName'> /// Cosmos DB database account name. /// </param> /// <param name='tableName'> /// Cosmos DB table name. /// </param> /// <param name='createUpdateTableParameters'> /// The parameters to provide for the current Table. /// </param> public static TableGetResults BeginCreateUpdateTable(this ITableResourcesOperations operations, string resourceGroupName, string accountName, string tableName, TableCreateUpdateParameters createUpdateTableParameters) { return(operations.BeginCreateUpdateTableAsync(resourceGroupName, accountName, tableName, createUpdateTableParameters).GetAwaiter().GetResult()); }
/// <summary> /// Lists the Tables under an existing Azure Cosmos DB database account. /// </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='accountName'> /// Cosmos DB database account name. /// </param> public static IEnumerable <TableGetResults> ListTables(this ITableResourcesOperations operations, string resourceGroupName, string accountName) { return(operations.ListTablesAsync(resourceGroupName, accountName).GetAwaiter().GetResult()); }
/// <summary> /// Migrate an Azure Cosmos DB Table from manual throughput to autoscale /// </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='accountName'> /// Cosmos DB database account name. /// </param> /// <param name='tableName'> /// Cosmos DB table name. /// </param> public static ThroughputSettingsGetResults MigrateTableToAutoscale(this ITableResourcesOperations operations, string resourceGroupName, string accountName, string tableName) { return(operations.MigrateTableToAutoscaleAsync(resourceGroupName, accountName, tableName).GetAwaiter().GetResult()); }
/// <summary> /// Update RUs per second of an Azure Cosmos DB Table /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of an Azure resource group. /// </param> /// <param name='accountName'> /// Cosmos DB database account name. /// </param> /// <param name='tableName'> /// Cosmos DB table name. /// </param> /// <param name='updateThroughputParameters'> /// The parameters to provide for the RUs per second of the current Table. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ThroughputSettingsGetResultsInner> UpdateTableThroughputAsync(this ITableResourcesOperations operations, string resourceGroupName, string accountName, string tableName, ThroughputSettingsUpdateParameters updateThroughputParameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.UpdateTableThroughputWithHttpMessagesAsync(resourceGroupName, accountName, tableName, updateThroughputParameters, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }