public async Task CassandraTableMigrateToAutoscale() { var table = await CreateCassandraTable(null); DatabaseAccountCassandraKeyspaceTableThroughputSetting throughput = await table.GetDatabaseAccountCassandraKeyspaceTableThroughputSetting().GetAsync(); AssertManualThroughput(throughput.Data); ThroughputSettingsData throughputData = (await throughput.MigrateCassandraTableToAutoscaleAsync(WaitUntil.Completed)).Value.Data; AssertAutoscale(throughputData); }
public async Task CassandraTableThroughput() { var table = await CreateCassandraTable(null); DatabaseAccountCassandraKeyspaceTableThroughputSetting throughput = await table.GetDatabaseAccountCassandraKeyspaceTableThroughputSetting().GetAsync(); Assert.AreEqual(TestThroughput1, throughput.Data.Resource.Throughput); DatabaseAccountCassandraKeyspaceTableThroughputSetting throughput2 = (await throughput.CreateOrUpdateAsync(WaitUntil.Completed, new ThroughputSettingsUpdateData(AzureLocation.WestUS, new ThroughputSettingsResource(TestThroughput2, null, null, null)))).Value; Assert.AreEqual(TestThroughput2, throughput2.Data.Resource.Throughput); }
public async Task CassandraTableMigrateToManual() { var parameters = BuildCreateUpdateOptions(new AutoscaleSettings() { MaxThroughput = DefaultMaxThroughput, }); var table = await CreateCassandraTable(parameters); DatabaseAccountCassandraKeyspaceTableThroughputSetting throughput = await table.GetDatabaseAccountCassandraKeyspaceTableThroughputSetting().GetAsync(); AssertAutoscale(throughput.Data); ThroughputSettingsData throughputData = (await throughput.MigrateCassandraTableToManualThroughputAsync(WaitUntil.Completed)).Value.Data; AssertManualThroughput(throughputData); }