public async Task GremlinDatabaseMigrateToAutoscale() { var database = await CreateGremlinDatabase(null); DatabaseAccountGremlinDatabaseThroughputSetting throughput = await database.GetDatabaseAccountGremlinDatabaseThroughputSetting().GetAsync(); AssertManualThroughput(throughput.Data); ThroughputSettingsData throughputData = (await throughput.MigrateGremlinDatabaseToAutoscaleAsync(WaitUntil.Completed)).Value.Data; AssertAutoscale(throughputData); }
public async Task GremlinDatabaseThroughput() { var database = await CreateGremlinDatabase(null); DatabaseAccountGremlinDatabaseThroughputSetting throughput = await database.GetDatabaseAccountGremlinDatabaseThroughputSetting().GetAsync(); Assert.AreEqual(TestThroughput1, throughput.Data.Resource.Throughput); DatabaseAccountGremlinDatabaseThroughputSetting throughput2 = (await throughput.CreateOrUpdateAsync(WaitUntil.Completed, new ThroughputSettingsUpdateData(AzureLocation.WestUS, new ThroughputSettingsResource(TestThroughput2, null, null, null)))).Value; Assert.AreEqual(TestThroughput2, throughput2.Data.Resource.Throughput); }