Skip to content

Commit a2c9c00

Browse files
committed
Update MachineLearning parameter set names
1 parent 7813e6f commit a2c9c00

14 files changed

+56
-66
lines changed

src/ResourceManager/MachineLearning/Commands.MachineLearning/Cmdlets/CommitmentPlans/RemoveAzureMLCommitmentPlan.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,8 @@ namespace Microsoft.Azure.Commands.MachineLearning
2525
[OutputType(typeof(void))]
2626
public class RemoveAzureMLCommitmentPlan : CommitmentPlansCmdletBase
2727
{
28-
protected const string RemoveByNameGroupParameterSet =
29-
"Remove an Azure ML commitment plan specified by name and resource group.";
30-
protected const string RemoveByObjectParameterSet =
31-
"Remove an Azure ML commitment plan specified as an object.";
28+
protected const string RemoveByNameGroupParameterSet = "RemoveByNameAndResourceGroup";
29+
protected const string RemoveByObjectParameterSet = "RemoveByObject";
3230

3331
[Parameter(
3432
ParameterSetName = RemoveAzureMLCommitmentPlan.RemoveByNameGroupParameterSet,

src/ResourceManager/MachineLearning/Commands.MachineLearning/Cmdlets/WebServices/ExportWebServiceDefinition.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ namespace Microsoft.Azure.Commands.MachineLearning.Cmdlets
2929
[OutputType(typeof(string))]
3030
public class ExportWebServiceDefinition : WebServicesCmdletBase
3131
{
32-
private const string ExportToFileParamSet = "Export to file.";
33-
private const string ExportToStringParamSet = "Export to JSON string.";
32+
private const string ExportToFileParamSet = "ExportToFile";
33+
private const string ExportToStringParamSet = "ExportToJSON";
3434

3535
[Parameter(
3636
Mandatory = true,

src/ResourceManager/MachineLearning/Commands.MachineLearning/Cmdlets/WebServices/GetAzureMLWebServiceKeys.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,8 @@ namespace Microsoft.Azure.Commands.MachineLearning.Cmdlets
2323
[OutputType(typeof(WebServiceKeys))]
2424
public class GetAzureMLWebServiceKeys : WebServicesCmdletBase
2525
{
26-
private const string GetKeysByGroupAndName =
27-
"Get an Azure ML web service's access keys given its name and resource group.";
28-
private const string GetKeysByInstance =
29-
"Get the access kesy for the given web service instance.";
26+
private const string GetKeysByGroupAndName = "GetByNameAndResourceGroup";
27+
private const string GetKeysByInstance = "GetByInstance";
3028

3129
[Parameter(
3230
ParameterSetName = GetAzureMLWebServiceKeys.GetKeysByGroupAndName,

src/ResourceManager/MachineLearning/Commands.MachineLearning/Cmdlets/WebServices/ImportWebServiceDefinition.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ namespace Microsoft.Azure.Commands.MachineLearning.Cmdlets
2525
[OutputType(typeof(WebService))]
2626
public class ImportWebServiceDefinition : WebServicesCmdletBase
2727
{
28-
private const string ImportFromFileParamSet = "Import from JSON file.";
29-
private const string ImportFromStringParamSet = "Import from JSON string.";
28+
private const string ImportFromFileParamSet = "ImportFromJSONFile";
29+
private const string ImportFromStringParamSet = "ImportFromJSONString.";
3030

3131
[Parameter(
3232
ParameterSetName = ImportWebServiceDefinition.ImportFromFileParamSet,

src/ResourceManager/MachineLearning/Commands.MachineLearning/Cmdlets/WebServices/NewAzureMLWebService.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,8 @@ namespace Microsoft.Azure.Commands.MachineLearning.Cmdlets
2929
[OutputType(typeof(WebService))]
3030
public class NewAzureMLWebService : WebServicesCmdletBase
3131
{
32-
protected const string CreateFromFileParameterSet =
33-
"Create a new Azure ML webservice from a JSON definiton file.";
34-
protected const string CreateFromObjectParameterSet =
35-
"Create a new Azure ML webservice from a WebService instance definition.";
32+
protected const string CreateFromFileParameterSet = "CreateFromFile";
33+
protected const string CreateFromObjectParameterSet = "CreateFromInstance";
3634

3735
[Parameter(
3836
Mandatory = true,

src/ResourceManager/MachineLearning/Commands.MachineLearning/Cmdlets/WebServices/RemoveAzureMLWebService.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,8 @@ namespace Microsoft.Azure.Commands.MachineLearning
2828
[OutputType(typeof(void))]
2929
public class RemoveAzureMLWebService : WebServicesCmdletBase
3030
{
31-
protected const string RemoveByNameGroupParameterSet =
32-
"Remove an Azure ML web service resouce by name and resource group.";
33-
protected const string RemoveByObjectParameterSet =
34-
"Remove an Azure ML web service specified as an object.";
31+
protected const string RemoveByNameGroupParameterSet = "RemoveByNameAndResourceGroup";
32+
protected const string RemoveByObjectParameterSet = "RemoveByObject";
3533

3634
[Parameter(
3735
ParameterSetName = RemoveAzureMLWebService.RemoveByNameGroupParameterSet,

src/ResourceManager/MachineLearning/Commands.MachineLearning/Cmdlets/WebServices/UpdateAzureMLWebService.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,8 @@ namespace Microsoft.Azure.Commands.MachineLearning
3030
[OutputType(typeof(WebService))]
3131
public class UpdateAzureMLWebService : WebServicesCmdletBase
3232
{
33-
protected const string UpdateFromArgumentsParameterSet =
34-
"Update specific properties of the .";
35-
protected const string UpdateFromObjectParameterSet =
36-
"Create a new Azure ML webservice from a WebService instance definition.";
33+
protected const string UpdateFromArgumentsParameterSet = "UpdateFromParameters";
34+
protected const string UpdateFromObjectParameterSet = "UpdateFromObject";
3735

3836
[Parameter(Mandatory = true, HelpMessage = "The name of the resource group for the Azure ML web service.")]
3937
[ValidateNotNullOrEmpty]

src/ResourceManager/MachineLearning/Commands.MachineLearning/help/Export-AzureRmMlWebService.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ Exports the web service definition object as a JSON formatted string.
1212

1313
## SYNTAX
1414

15-
### Export to file.
15+
### ExportToFile
1616
```
1717
Export-AzureRmMlWebService -WebService <WebService> -OutputFile <String> [-Force]
1818
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
1919
```
2020

21-
### Export to JSON string.
21+
### ExportToJSON
2222
```
2323
Export-AzureRmMlWebService -WebService <WebService> [-ToJsonString] [-Force]
2424
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
@@ -85,7 +85,7 @@ The file path for exported definition.
8585
8686
```yaml
8787
Type: String
88-
Parameter Sets: Export to file.
88+
Parameter Sets: ExportToFile
8989
Aliases:
9090

9191
Required: True
@@ -100,7 +100,7 @@ Specifies that the definition will be exported as a JSON string.
100100
101101
```yaml
102102
Type: SwitchParameter
103-
Parameter Sets: Export to JSON string.
103+
Parameter Sets: ExportToJSON
104104
Aliases:
105105

106106
Required: True

src/ResourceManager/MachineLearning/Commands.MachineLearning/help/Get-AzureRmMlWebServiceKeys.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ Retrieves the web service's keys.
1212

1313
## SYNTAX
1414

15-
### Get an Azure ML web service's access keys given its name and resource group.
15+
### GetByNameAndResourceGroup
1616
```
1717
Get-AzureRmMlWebServiceKeys -ResourceGroupName <String> -Name <String>
1818
[-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
1919
```
2020

21-
### Get the access kesy for the given web service instance.
21+
### GetByInstance
2222
```
2323
Get-AzureRmMlWebServiceKeys -MlWebService <WebService> [-DefaultProfile <IAzureContextContainer>]
2424
[<CommonParameters>]
@@ -71,7 +71,7 @@ The name of the web service for which the access keys are retrieved.
7171
7272
```yaml
7373
Type: WebService
74-
Parameter Sets: Get the access kesy for the given web service instance.
74+
Parameter Sets: GetByInstance
7575
Aliases:
7676

7777
Required: True
@@ -86,7 +86,7 @@ The name of the web service for which the access keys are retrieved.
8686
8787
```yaml
8888
Type: String
89-
Parameter Sets: Get an Azure ML web service's access keys given its name and resource group.
89+
Parameter Sets: GetByNameAndResourceGroup
9090
Aliases:
9191

9292
Required: True
@@ -101,7 +101,7 @@ The resource group for the web service.
101101
102102
```yaml
103103
Type: String
104-
Parameter Sets: Get an Azure ML web service's access keys given its name and resource group.
104+
Parameter Sets: GetByNameAndResourceGroup
105105
Aliases:
106106

107107
Required: True

src/ResourceManager/MachineLearning/Commands.MachineLearning/help/Import-AzureRmMlWebService.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ Imports a JSON object into a web service definition.
1212

1313
## SYNTAX
1414

15-
### Import from JSON file.
15+
### ImportFromJSONFile
1616
```
1717
Import-AzureRmMlWebService -InputFile <String> [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
1818
```
1919

20-
### Import from JSON string.
20+
### ImportFromJSONString.
2121
```
2222
Import-AzureRmMlWebService -JsonString <String> [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
2323
```
@@ -66,7 +66,7 @@ The path to the file containing the web service definition to import.
6666
6767
```yaml
6868
Type: String
69-
Parameter Sets: Import from JSON file.
69+
Parameter Sets: ImportFromJSONFile
7070
Aliases:
7171

7272
Required: True
@@ -81,7 +81,7 @@ The JSON formatted string containing the web service definition to import.
8181
8282
```yaml
8383
Type: String
84-
Parameter Sets: Import from JSON string.
84+
Parameter Sets: ImportFromJSONString.
8585
Aliases:
8686

8787
Required: True

src/ResourceManager/MachineLearning/Commands.MachineLearning/help/New-AzureRmMlWebService.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ Creates a new web service.
1212

1313
## SYNTAX
1414

15-
### Create a new Azure ML webservice from a JSON definiton file.
15+
### CreateFromFile
1616
```
1717
New-AzureRmMlWebService -ResourceGroupName <String> -Location <String> -Name <String> -DefinitionFile <String>
1818
[-Force] [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
1919
```
2020

21-
### Create a new Azure ML webservice from a WebService instance definition.
21+
### CreateFromInstance
2222
```
2323
New-AzureRmMlWebService -ResourceGroupName <String> -Location <String> -Name <String>
2424
-NewWebServiceDefinition <WebService> [-Force] [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm]
@@ -76,7 +76,7 @@ You can find the latest specification for the web service definition in the swag
7676
7777
```yaml
7878
Type: String
79-
Parameter Sets: Create a new Azure ML webservice from a JSON definiton file.
79+
Parameter Sets: CreateFromFile
8080
Aliases:
8181

8282
Required: True
@@ -144,7 +144,7 @@ You can find the latest specification for the web service definition in the swag
144144
145145
```yaml
146146
Type: WebService
147-
Parameter Sets: Create a new Azure ML webservice from a WebService instance definition.
147+
Parameter Sets: CreateFromInstance
148148
Aliases:
149149

150150
Required: True

src/ResourceManager/MachineLearning/Commands.MachineLearning/help/Remove-AzureRmMlCommitmentPlan.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ Deletes a commitment plan.
1212

1313
## SYNTAX
1414

15-
### Remove an Azure ML commitment plan specified by name and resource group.
15+
### RemoveByNameAndResourceGroup
1616
```
1717
Remove-AzureRmMlCommitmentPlan -ResourceGroupName <String> -Name <String> [-Force]
1818
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
1919
```
2020

21-
### Remove an Azure ML commitment plan specified as an object.
21+
### RemoveByObject
2222
```
2323
Remove-AzureRmMlCommitmentPlan -MlCommitmentPlan <CommitmentPlan> [-Force]
2424
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
@@ -75,7 +75,7 @@ The machine learning web service object.
7575
7676
```yaml
7777
Type: CommitmentPlan
78-
Parameter Sets: Remove an Azure ML commitment plan specified as an object.
78+
Parameter Sets: RemoveByObject
7979
Aliases:
8080

8181
Required: True
@@ -90,7 +90,7 @@ The name of the Azure ML commitment plan.
9090
9191
```yaml
9292
Type: String
93-
Parameter Sets: Remove an Azure ML commitment plan specified by name and resource group.
93+
Parameter Sets: RemoveByNameAndResourceGroup
9494
Aliases:
9595

9696
Required: True
@@ -105,7 +105,7 @@ The name of the resource group for the Azure ML commitment plan.
105105
106106
```yaml
107107
Type: String
108-
Parameter Sets: Remove an Azure ML commitment plan specified by name and resource group.
108+
Parameter Sets: RemoveByNameAndResourceGroup
109109
Aliases:
110110

111111
Required: True

src/ResourceManager/MachineLearning/Commands.MachineLearning/help/Remove-AzureRmMlWebService.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ Deletes a web service.
1212

1313
## SYNTAX
1414

15-
### Remove an Azure ML web service resouce by name and resource group.
15+
### RemoveByNameAndResourceGroup
1616
```
1717
Remove-AzureRmMlWebService -ResourceGroupName <String> -Name <String> [-Force]
1818
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
1919
```
2020

21-
### Remove an Azure ML web service specified as an object.
21+
### RemoveByObject
2222
```
2323
Remove-AzureRmMlWebService -MlWebService <WebService> [-Force] [-DefaultProfile <IAzureContextContainer>]
2424
[-WhatIf] [-Confirm] [<CommonParameters>]
@@ -75,7 +75,7 @@ The web service to be removed.
7575
7676
```yaml
7777
Type: WebService
78-
Parameter Sets: Remove an Azure ML web service specified as an object.
78+
Parameter Sets: RemoveByObject
7979
Aliases:
8080

8181
Required: True
@@ -90,7 +90,7 @@ The name of the web service to be removed.
9090
9191
```yaml
9292
Type: String
93-
Parameter Sets: Remove an Azure ML web service resouce by name and resource group.
93+
Parameter Sets: RemoveByNameAndResourceGroup
9494
Aliases:
9595

9696
Required: True
@@ -105,7 +105,7 @@ The resource group of the web service.
105105
106106
```yaml
107107
Type: String
108-
Parameter Sets: Remove an Azure ML web service resouce by name and resource group.
108+
Parameter Sets: RemoveByNameAndResourceGroup
109109
Aliases:
110110

111111
Required: True

0 commit comments

Comments
 (0)