Skip to content

Commit 0fde9c2

Browse files
author
Meha Kaushik
committed
Renamed cmdlets + help
1 parent 640e657 commit 0fde9c2

File tree

44 files changed

+2137
-190
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+2137
-190
lines changed

src/CosmosDB/CosmosDB.Test/ScenarioTests/CassandraOperationsTests.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -321,21 +321,21 @@ function Test-CassandraMigrateThroughputCmdlets
321321
Assert-AreEqual $Throughput.Throughput $ThroughputValue
322322
Assert-AreEqual $Throughput.AutoscaleSettings.MaxThroughput 0
323323

324-
$AutoscaleThroughput = Migrate-AzCosmosDBCassandraKeyspaceThroughput -InputObject $NewKeyspace -ThroughputType $Autoscale
324+
$AutoscaleThroughput = Invoke-AzCosmosDBCassandraKeyspaceThroughputMigration -InputObject $NewKeyspace -ThroughputType $Autoscale
325325
Assert-AreNotEqual $AutoscaleThroughput.AutoscaleSettings.MaxThroughput 0
326326

327327
$CosmosDBAccount = Get-AzCosmosDBAccount -ResourceGroupName $rgName -Name $AccountName #get parent object
328-
$ManualThroughput = Migrate-AzCosmosDBCassandraKeyspaceThroughput -ParentObject $CosmosDBAccount -Name $KeyspaceName -ThroughputType $Manual
328+
$ManualThroughput = Invoke-AzCosmosDBCassandraKeyspaceThroughputMigration -ParentObject $CosmosDBAccount -Name $KeyspaceName -ThroughputType $Manual
329329
Assert-AreEqual $ManualThroughput.AutoscaleSettings.MaxThroughput 0
330330

331331
$NewTable = New-AzCosmosDBCassandraTable -AccountName $AccountName -ResourceGroupName $rgName -KeyspaceName $KeyspaceName -Name $TableName -Schema $schema -Throughput $TableThroughputValue
332332
$TableThroughput = Get-AzCosmosDBCassandraTableThroughput -AccountName $AccountName -ResourceGroupName $rgName -KeyspaceName $KeyspaceName -Name $TableName
333333
Assert-AreEqual $TableThroughput.Throughput $TableThroughputValue
334334

335-
$AutoscaledTableThroughput = Migrate-AzCosmosDBCassandraTableThroughput -AccountName $AccountName -ResourceGroupName $rgName -KeyspaceName $KeyspaceName -Name $TableName -ThroughputType $Autoscale
335+
$AutoscaledTableThroughput = Invoke-AzCosmosDBCassandraTableThroughputMigration -AccountName $AccountName -ResourceGroupName $rgName -KeyspaceName $KeyspaceName -Name $TableName -ThroughputType $Autoscale
336336
Assert-AreNotEqual $AutoscaledTableThroughput.AutoscaleSettings.MaxThroughput 0
337337

338-
$ManuaTableThroughput = Migrate-AzCosmosDBCassandraTableThroughput -InputObject $NewTable -ThroughputType $Manual
338+
$ManuaTableThroughput = Invoke-AzCosmosDBCassandraTableThroughputMigration -InputObject $NewTable -ThroughputType $Manual
339339
Assert-AreEqual $ManuaTableThroughput.AutoscaleSettings.MaxThroughput 0
340340

341341
Remove-AzCosmosDBCassandraTable -InputObject $NewTable

src/CosmosDB/CosmosDB.Test/ScenarioTests/GremlinOperationsTests.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -334,21 +334,21 @@ function Test-GremlinMigrateThroughputCmdlets
334334
Assert-AreEqual $Throughput.Throughput $ThroughputValue
335335
Assert-AreEqual $Throughput.AutoscaleSettings.MaxThroughput 0
336336

337-
$AutoscaleThroughput = Migrate-AzCosmosDBGremlinDatabaseThroughput -InputObject $NewDatabase -ThroughputType $Autoscale
337+
$AutoscaleThroughput = Invoke-AzCosmosDBGremlinDatabaseThroughputMigration -InputObject $NewDatabase -ThroughputType $Autoscale
338338
Assert-AreNotEqual $AutoscaleThroughput.AutoscaleSettings.MaxThroughput 0
339339

340340
$CosmosDBAccount = Get-AzCosmosDBAccount -ResourceGroupName $rgName -Name $AccountName #get parent object
341-
$ManualThroughput = Migrate-AzCosmosDBGremlinDatabaseThroughput -ParentObject $CosmosDBAccount -Name $DatabaseName -ThroughputType $Manual
341+
$ManualThroughput = Invoke-AzCosmosDBGremlinDatabaseThroughputMigration -ParentObject $CosmosDBAccount -Name $DatabaseName -ThroughputType $Manual
342342
Assert-AreEqual $ManualThroughput.AutoscaleSettings.MaxThroughput 0
343343

344344
$NewGraph = New-AzCosmosDBGremlinGraph -AccountName $AccountName -ResourceGroupName $rgName -DatabaseName $DatabaseName -Throughput $GraphThroughputValue -Name $GraphName -PartitionKeyPath $PartitionKeyPathValue -PartitionKeyKind $PartitionKeyKindValue
345345
$GraphThroughput = Get-AzCosmosDBGremlinGraphThroughput -AccountName $AccountName -ResourceGroupName $rgName -DatabaseName $DatabaseName -Name $GraphName
346346
Assert-AreEqual $GraphThroughput.Throughput $GraphThroughputValue
347347

348-
$AutoscaledGraphThroughput = Migrate-AzCosmosDBGremlinGraphThroughput -AccountName $AccountName -ResourceGroupName $rgName -DatabaseName $DatabaseName -Name $GraphName -ThroughputType $Autoscale
348+
$AutoscaledGraphThroughput = Invoke-AzCosmosDBGremlinGraphThroughputMigration -AccountName $AccountName -ResourceGroupName $rgName -DatabaseName $DatabaseName -Name $GraphName -ThroughputType $Autoscale
349349
Assert-AreNotEqual $AutoscaledGraphThroughput.AutoscaleSettings.MaxThroughput 0
350350

351-
$ManualGraphThroughput = Migrate-AzCosmosDBGremlinGraphThroughput -InputObject $NewGraph -ThroughputType $Manual
351+
$ManualGraphThroughput = Invoke-AzCosmosDBGremlinGraphThroughputMigration -InputObject $NewGraph -ThroughputType $Manual
352352
Assert-AreEqual $ManualGraphThroughput.AutoscaleSettings.MaxThroughput 0
353353

354354
Remove-AzCosmosDBGremlinGraph -InputObject $NewGraph

src/CosmosDB/CosmosDB.Test/ScenarioTests/MongoOperationsTests.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -385,21 +385,21 @@ function Test-MongoMigrateThroughputCmdlets
385385
Assert-AreEqual $Throughput.Throughput $ThroughputValue
386386
Assert-AreEqual $Throughput.AutoscaleSettings.MaxThroughput 0
387387

388-
$AutoscaleThroughput = Migrate-AzCosmosDBMongoDBDatabaseThroughput -InputObject $NewDatabase -ThroughputType $Autoscale
388+
$AutoscaleThroughput = Invoke-AzCosmosDBMongoDBDatabaseThroughputMigration -InputObject $NewDatabase -ThroughputType $Autoscale
389389
Assert-AreNotEqual $AutoscaleThroughput.AutoscaleSettings.MaxThroughput 0
390390

391391
$CosmosDBAccount = Get-AzCosmosDBAccount -ResourceGroupName $rgName -Name $AccountName #get parent object
392-
$ManualThroughput = Migrate-AzCosmosDBMongoDBDatabaseThroughput -ParentObject $CosmosDBAccount -Name $DatabaseName -ThroughputType $Manual
392+
$ManualThroughput = Invoke-AzCosmosDBMongoDBDatabaseThroughputMigration -ParentObject $CosmosDBAccount -Name $DatabaseName -ThroughputType $Manual
393393
Assert-AreEqual $ManualThroughput.AutoscaleSettings.MaxThroughput 0
394394

395395
$NewCollection = New-AzCosmosDBMongoDBCollection -AccountName $AccountName -ResourceGroupName $rgName -DatabaseName $DatabaseName -Throughput $CollectionThroughputValue -Name $CollectionName -Shard $ShardKey
396396
$CollectionThroughput = Get-AzCosmosDBMongoDBCollectionThroughput -AccountName $AccountName -ResourceGroupName $rgName -DatabaseName $DatabaseName -Name $CollectionName
397397
Assert-AreEqual $CollectionThroughput.Throughput $CollectionThroughputValue
398398

399-
$AutoscaledCollectionThroughput = Migrate-AzCosmosDBMongoDBCollectionThroughput -AccountName $AccountName -ResourceGroupName $rgName -DatabaseName $DatabaseName -Name $CollectionName -ThroughputType $Autoscale
399+
$AutoscaledCollectionThroughput = Invoke-AzCosmosDBMongoDBCollectionThroughputMigration -AccountName $AccountName -ResourceGroupName $rgName -DatabaseName $DatabaseName -Name $CollectionName -ThroughputType $Autoscale
400400
Assert-AreNotEqual $AutoscaledCollectionThroughput.AutoscaleSettings.MaxThroughput 0
401401

402-
$ManualCollectionThroughput = Migrate-AzCosmosDBMongoDBCollectionThroughput -InputObject $NewCollection -ThroughputType $Manual
402+
$ManualCollectionThroughput = Invoke-AzCosmosDBMongoDBCollectionThroughputMigration -InputObject $NewCollection -ThroughputType $Manual
403403
Assert-AreEqual $ManualCollectionThroughput.AutoscaleSettings.MaxThroughput 0
404404

405405
Remove-AzCosmosDBMongoDBCollection -InputObject $NewCollection

src/CosmosDB/CosmosDB.Test/ScenarioTests/SqlOperationsTests.ps1

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -598,22 +598,22 @@ function Test-SqlMigrateThroughputCmdlets
598598
Assert-AreEqual $Throughput.Throughput $ThroughputValue
599599
Assert-AreEqual $Throughput.AutoscaleSettings.MaxThroughput 0
600600

601-
$AutoscaleThroughput = Migrate-AzCosmosDBSqlDatabaseThroughput -InputObject $NewDatabase -ThroughputType $Autoscale
602-
Assert-AreNotEqual $UpdatedThroughput.AutoscaleSettings.MaxThroughput 0
601+
$AutoscaleThroughput = Invoke-AzCosmosDBSqlDatabaseThroughputMigration -InputObject $NewDatabase -ThroughputType $Autoscale
602+
Assert-AreNotEqual $AutoscaleThroughput.AutoscaleSettings.MaxThroughput 0
603603

604604
$CosmosDBAccount = Get-AzCosmosDBAccount -ResourceGroupName $rgName -Name $AccountName #get parent object
605-
$ManualThroughput = Migrate-AzCosmosDBSqlDatabaseThroughput -ParentObject $CosmosDBAccount -Name $DatabaseName -ThroughputType $Manual
605+
$ManualThroughput = Invoke-AzCosmosDBSqlDatabaseThroughputMigration -ParentObject $CosmosDBAccount -Name $DatabaseName -ThroughputType $Manual
606606
Assert-AreEqual $ManualThroughput.AutoscaleSettings.MaxThroughput 0
607607

608608
$NewContainer = New-AzCosmosDBSqlContainer -AccountName $AccountName -ResourceGroupName $rgName -DatabaseName $DatabaseName -Throughput $ContainerThroughputValue -Name $ContainerName -PartitionKeyPath $PartitionKeyPathValue -PartitionKeyKind $PartitionKeyKindValue
609609
$ContainerThroughput = Get-AzCosmosDBSqlContainerThroughput -AccountName $AccountName -ResourceGroupName $rgName -DatabaseName $DatabaseName -Name $ContainerName
610610
Assert-AreEqual $ContainerThroughput.Throughput $ContainerThroughputValue
611611

612-
$AutoscaledContainerThroughput = Migrate-AzCosmosDBSqlContainerThroughput -AccountName $AccountName -ResourceGroupName $rgName -DatabaseName $DatabaseName -Name $ContainerName -ThroughputType $Autoscale
613-
Assert-AreNotEqual $UpdatedContainerThroughput.AutoscaleSettings.MaxThroughput 0
612+
$AutoscaledContainerThroughput = Invoke-AzCosmosDBSqlContainerThroughputMigration -AccountName $AccountName -ResourceGroupName $rgName -DatabaseName $DatabaseName -Name $ContainerName -ThroughputType $Autoscale
613+
Assert-AreNotEqual $AutoscaledContainerThroughput.AutoscaleSettings.MaxThroughput 0
614614

615-
$ManualContainerThroughput = Migrate-AzCosmosDBSqlContainerThroughput -InputObject $NewContainer -ThroughputType $Manual
616-
Assert-AreEqual $UpdatedContainerThroughput.AutoscaleSettings.MaxThroughput 0
615+
$ManualContainerThroughput = Invoke-AzCosmosDBSqlContainerThroughputMigration -InputObject $NewContainer -ThroughputType $Manual
616+
Assert-AreEqual $ManualContainerThroughput.AutoscaleSettings.MaxThroughput 0
617617

618618
Remove-AzCosmosDBSqlContainer -InputObject $NewContainer
619619
Remove-AzCosmosDBSqlDatabase -InputObject $NewDatabase

src/CosmosDB/CosmosDB.Test/ScenarioTests/TableOperationsTests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,11 @@ function Test-TableMigrateThroughputCmdlets
186186
Assert-AreEqual $Throughput.Throughput $ThroughputValue
187187
Assert-AreEqual $Throughput.AutoscaleSettings.MaxThroughput 0
188188

189-
$AutoscaleThroughput = Migrate-AzCosmosDBTableThroughput -InputObject $NewTable -ThroughputType $Autoscale
189+
$AutoscaleThroughput = Invoke-AzCosmosDBTableThroughputMigration -InputObject $NewTable -ThroughputType $Autoscale
190190
Assert-AreNotEqual $AutoscaleThroughput.AutoscaleSettings.MaxThroughput 0
191191

192192
$CosmosDBAccount = Get-AzCosmosDBAccount -ResourceGroupName $rgName -Name $AccountName #get parent object
193-
$ManualThroughput = Migrate-AzCosmosDBTableThroughput -ParentObject $CosmosDBAccount -Name $TableName -ThroughputType $Manual
193+
$ManualThroughput = Invoke-AzCosmosDBTableThroughputMigration -ParentObject $CosmosDBAccount -Name $TableName -ThroughputType $Manual
194194
Assert-AreEqual $ManualThroughput.AutoscaleSettings.MaxThroughput 0
195195

196196
Remove-AzCosmosDBTable -InputObject $NewTable

src/CosmosDB/CosmosDB/Az.CosmosDB.psd1

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -148,15 +148,15 @@ CmdletsToExport = 'Get-AzCosmosDBSqlContainer',
148148
'Update-AzCosmosDBMongoDBDatabase',
149149
'New-AzCosmosDBMongoDBCollection',
150150
'New-AzCosmosDBMongoDBDatabase',
151-
'Migrate-AzCosmosDBSqlContainerThroughput',
152-
'Migrate-AzCosmosDBSqlDatabaseThroughput',
153-
'Migrate-AzCosmosDBMongoDBCollectionThroughput',
154-
'Migrate-AzCosmosDBMongoDBDatabaseThroughput',
155-
'Migrate-AzCosmosDBGremlinGraphThroughput',
156-
'Migrate-AzCosmosDBGremlinDatabaseThroughput',
157-
'Migrate-AzCosmosDBCassandraTableThroughput',
158-
'Migrate-AzCosmosDBCassandraKeyspaceThroughput',
159-
'Migrate-AzCosmosDBTableThroughput'
151+
'Invoke-AzCosmosDBSqlContainerThroughputMigration',
152+
'Invoke-AzCosmosDBSqlDatabaseThroughputMigration',
153+
'Invoke-AzCosmosDBMongoDBCollectionThroughputMigration',
154+
'Invoke-AzCosmosDBMongoDBDatabaseThroughputMigration',
155+
'Invoke-AzCosmosDBGremlinGraphThroughputMigration',
156+
'Invoke-AzCosmosDBGremlinDatabaseThroughputMigration',
157+
'Invoke-AzCosmosDBCassandraTableThroughputMigration',
158+
'Invoke-AzCosmosDBCassandraKeyspaceThroughputMigration',
159+
'Invoke-AzCosmosDBTableThroughputMigration'
160160

161161
# Variables to export from this module
162162
# VariablesToExport = @()

src/CosmosDB/CosmosDB/Cassandra/MigrateAzCosmosDBCassandraKeyspaceThroughput.cs renamed to src/CosmosDB/CosmosDB/Cassandra/InvokeAzCosmosDBCassandraKeyspaceThroughputMigration.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15-
using System;
1615
using System.Management.Automation;
1716
using Microsoft.Azure.Commands.CosmosDB.Models;
1817
using Microsoft.Azure.Management.CosmosDB.Models;
@@ -22,8 +21,8 @@
2221

2322
namespace Microsoft.Azure.Commands.CosmosDB
2423
{
25-
[Cmdlet("Migrate", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "CosmosDBCassandraKeyspaceThroughput", DefaultParameterSetName = NameParameterSet, SupportsShouldProcess = true), OutputType(typeof(PSThroughputSettingsGetResults))]
26-
public class MigrateAzCosmosDBCassandraKeyspaceThroughput : MigrateAzCosmosDBThroughput
24+
[Cmdlet("Invoke", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "CosmosDBCassandraKeyspaceThroughputMigration", DefaultParameterSetName = NameParameterSet, SupportsShouldProcess = true), OutputType(typeof(PSThroughputSettingsGetResults))]
25+
public class InvokeAzCosmosDBCassandraKeyspaceThroughputMigration : MigrateAzCosmosDBThroughput
2726
{
2827
[Parameter(Mandatory = false, HelpMessage = Constants.KeyspaceNameHelpMessage)]
2928
[ValidateNotNullOrEmpty]

src/CosmosDB/CosmosDB/Cassandra/MigrateAzCosmosDBCassandraTableThroughput.cs renamed to src/CosmosDB/CosmosDB/Cassandra/InvokeAzCosmosDBCassandraTableThroughputMigration.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,17 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15-
using System;
1615
using System.Management.Automation;
1716
using Microsoft.Azure.Commands.CosmosDB.Models;
18-
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1917
using Microsoft.Azure.Commands.CosmosDB.Helpers;
2018
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
2119
using Microsoft.Azure.Management.CosmosDB.Models;
2220
using Microsoft.Azure.Management.CosmosDB;
2321

2422
namespace Microsoft.Azure.Commands.CosmosDB
2523
{
26-
[Cmdlet("Migrate", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "CosmosDBCassandraTableThroughput", DefaultParameterSetName = NameParameterSet, SupportsShouldProcess = true), OutputType(typeof(PSThroughputSettingsGetResults))]
27-
public class MigrateAzCosmosDBCassandraTableThroughput : MigrateAzCosmosDBThroughput
24+
[Cmdlet("Invoke", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "CosmosDBCassandraTableThroughputMigration", DefaultParameterSetName = NameParameterSet, SupportsShouldProcess = true), OutputType(typeof(PSThroughputSettingsGetResults))]
25+
public class InvokeAzCosmosDBCassandraTableThroughputMigration : MigrateAzCosmosDBThroughput
2826
{
2927
[Parameter(Mandatory = true, ParameterSetName = NameParameterSet, HelpMessage = Constants.KeyspaceNameHelpMessage)]
3028
[ValidateNotNullOrEmpty]

src/CosmosDB/CosmosDB/CosmosDBAccount/NewAzCosmosDBAccount.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,14 @@ public class NewAzCosmosDBAccount : NewOrUpdateAzCosmosDBAccount
5151
[PSArgumentCompleter(SDKModel.ServerVersion.ThreeFullStopTwo, SDKModel.ServerVersion.ThreeFullStopSix)]
5252
public string ServerVersion { get; set; }
5353

54+
[Parameter(Mandatory = false, HelpMessage = Constants.LocationHelpMessage)]
55+
[ValidateNotNullOrEmpty]
56+
public string[] Location { get; set; }
57+
58+
[Parameter(Mandatory = false, HelpMessage = Constants.LocationObjectHelpMessage)]
59+
[ValidateNotNullOrEmpty]
60+
public PSLocation[] LocationObject { get; set; }
61+
5462
public override void ExecuteCmdlet()
5563
{
5664
ConsistencyPolicy consistencyPolicy = base.PopoulateConsistencyPolicy(DefaultConsistencyLevel, MaxStalenessIntervalInSeconds, MaxStalenessPrefix);

src/CosmosDB/CosmosDB/CosmosDBAccount/NewOrUpdateAzCosmosDBAccount.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,6 @@ public class NewOrUpdateAzCosmosDBAccount : AzureCosmosDBCmdletBase
4242
[ValidateNotNull]
4343
public string[] IpRule { get; set; }
4444

45-
[Parameter(Mandatory = false, HelpMessage = Constants.LocationHelpMessage)]
46-
[ValidateNotNullOrEmpty]
47-
public string[] Location { get; set; }
48-
49-
[Parameter(Mandatory = false, HelpMessage = Constants.LocationObjectHelpMessage)]
50-
[ValidateNotNullOrEmpty]
51-
public PSLocation[] LocationObject { get; set; }
52-
5345
[Parameter(Mandatory = false, HelpMessage = Constants.MaxStalenessIntervalInSecondsHelpMessage)]
5446
public int? MaxStalenessIntervalInSeconds { get; set; }
5547

src/CosmosDB/CosmosDB/Gremlin/MigrateAzCosmosDBGremlinDatabaseThroughput.cs renamed to src/CosmosDB/CosmosDB/Gremlin/InvokeAzCosmosDBGremlinDatabaseThroughputMigration.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121

2222
namespace Microsoft.Azure.Commands.CosmosDB
2323
{
24-
[Cmdlet("Migrate", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "CosmosDBGremlinDatabaseThroughput", DefaultParameterSetName = NameParameterSet, SupportsShouldProcess = true), OutputType(typeof(PSThroughputSettingsGetResults))]
25-
public class MigrateAzCosmosDBGremlinDatabaseThroughput : MigrateAzCosmosDBThroughput
24+
[Cmdlet("Invoke", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "CosmosDBGremlinDatabaseThroughputMigration", DefaultParameterSetName = NameParameterSet, SupportsShouldProcess = true), OutputType(typeof(PSThroughputSettingsGetResults))]
25+
public class InvokeAzCosmosDBGremlinDatabaseThroughputMigration : MigrateAzCosmosDBThroughput
2626
{
2727
[Parameter(Mandatory = false, HelpMessage = Constants.DatabaseNameHelpMessage)]
2828
[ValidateNotNullOrEmpty]

src/CosmosDB/CosmosDB/Gremlin/MigrateAzCosmosDBGremlinGraphThroughput.cs renamed to src/CosmosDB/CosmosDB/Gremlin/InvokeAzCosmosDBGremlinGraphThroughputMigration.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,17 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15-
using System;
1615
using System.Management.Automation;
1716
using Microsoft.Azure.Commands.CosmosDB.Models;
18-
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1917
using Microsoft.Azure.Commands.CosmosDB.Helpers;
2018
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
2119
using Microsoft.Azure.Management.CosmosDB.Models;
2220
using Microsoft.Azure.Management.CosmosDB;
2321

2422
namespace Microsoft.Azure.Commands.CosmosDB
2523
{
26-
[Cmdlet("Migrate", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "CosmosDBGremlinGraphThroughput", DefaultParameterSetName = NameParameterSet, SupportsShouldProcess = true), OutputType(typeof(PSThroughputSettingsGetResults))]
27-
public class MigrateAzCosmosDBGremlinGraphThroughput : MigrateAzCosmosDBThroughput
24+
[Cmdlet("Invoke", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "CosmosDBGremlinGraphThroughputMigration", DefaultParameterSetName = NameParameterSet, SupportsShouldProcess = true), OutputType(typeof(PSThroughputSettingsGetResults))]
25+
public class InvokeAzCosmosDBGremlinGraphThroughputMigration : MigrateAzCosmosDBThroughput
2826
{
2927
[Parameter(Mandatory = true, ParameterSetName = NameParameterSet, HelpMessage = Constants.DatabaseNameHelpMessage)]
3028
[ValidateNotNullOrEmpty]

src/CosmosDB/CosmosDB/MongoDB/MigrateAzCosmosDBMongoDBCollectionThroughput.cs renamed to src/CosmosDB/CosmosDB/MongoDB/InvokeAzCosmosDBMongoDBCollectionThroughputMigration.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222

2323
namespace Microsoft.Azure.Commands.CosmosDB
2424
{
25-
[Cmdlet("Migrate", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "CosmosDBMongoDBCollectionThroughput", DefaultParameterSetName = NameParameterSet, SupportsShouldProcess = true), OutputType(typeof(PSThroughputSettingsGetResults))]
26-
public class MigrateAzCosmosDBMongoDBCollectionThroughput : MigrateAzCosmosDBThroughput
25+
[Cmdlet("Invoke", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "CosmosDBMongoDBCollectionThroughputMigration", DefaultParameterSetName = NameParameterSet, SupportsShouldProcess = true), OutputType(typeof(PSThroughputSettingsGetResults))]
26+
public class InvokeAzCosmosDBMongoDBCollectionThroughputMigration : MigrateAzCosmosDBThroughput
2727
{
2828
[Parameter(Mandatory = true, ParameterSetName = NameParameterSet, HelpMessage = Constants.DatabaseNameHelpMessage)]
2929
[ValidateNotNullOrEmpty]

0 commit comments

Comments
 (0)