Skip to content

Commit 492cd1f

Browse files
committed
Update MachineLearningCompute parameter set names
1 parent a2c9c00 commit 492cd1f

13 files changed

+288
-159
lines changed

src/ResourceManager/MachineLearningCompute/Commands.MachineLearningCompute/Cmdlets/GetAzureRmMlOpCluster.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,9 @@ namespace Microsoft.Azure.Commands.MachineLearningCompute.Cmdlets
2727
[OutputType(typeof(PSOperationalizationCluster), typeof(List<PSOperationalizationCluster>))]
2828
public class GetAzureRmMlOpCluster : MachineLearningComputeCmdletBase
2929
{
30-
protected const string GetByNameParameterSet =
31-
"Get an operationalization cluster by its name.";
30+
protected const string GetByNameParameterSet = "GetByName";
3231

33-
protected const string GetByResourceGroupOrSubscriptionParametersParameterSet =
34-
"Get operationalization clusters by resource group or subscription.";
32+
protected const string GetByResourceGroupOrSubscriptionParametersParameterSet = "GetByResourceGroup";
3533

3634
[Parameter(ParameterSetName = GetByNameParameterSet,
3735
Mandatory = true,

src/ResourceManager/MachineLearningCompute/Commands.MachineLearningCompute/Cmdlets/GetAzureRmMlOpClusterKey.cs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,11 @@ namespace Microsoft.Azure.Commands.MachineLearningCompute.Cmdlets
2525
[OutputType(typeof(PSOperationalizationClusterCredentials))]
2626
public class GetAzureRmMlOpClusterKey : MachineLearningComputeCmdletBase
2727
{
28-
protected const string CmdletParametersParameterSet =
29-
"Get operationalization cluster's keys from cmdlet input parameters.";
28+
protected const string CmdletParametersParameterSet = "GetByNameAndResourceGroup";
3029

31-
protected const string ObjectParameterSet =
32-
"Get operationalization cluster's keys from an OperationalizationCluster instance definition.";
30+
protected const string ObjectParameterSet = "GetByInputObject";
3331

34-
protected const string ResourceIdParameterSet =
35-
"Get operationalization cluster's keys from an Azure resource id.";
32+
protected const string ResourceIdParameterSet = "GetByResourceId";
3633

3734
[Parameter(ParameterSetName = CmdletParametersParameterSet,
3835
Mandatory = true,

src/ResourceManager/MachineLearningCompute/Commands.MachineLearningCompute/Cmdlets/NewAzureRmMlOpCluster.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,9 @@ namespace Microsoft.Azure.Commands.MachineLearningCompute.Cmdlets
2828
[OutputType(typeof(PSOperationalizationCluster))]
2929
public class NewAzureRmMlOpCluster : MachineLearningComputeCmdletBase
3030
{
31-
protected const string CreateFromObjectParameterSet =
32-
"Create a new operationalization cluster from an OperationalizationCluster instance definition.";
31+
protected const string CreateFromObjectParameterSet = "CreateWithInputObject";
3332

34-
protected const string CreateFromCmdletParametersParameterSet =
35-
"Create a new operationalization cluster from cmdlet input parameters.";
33+
protected const string CreateFromCmdletParametersParameterSet = "CreateWithParameters";
3634

3735
[Parameter(Mandatory = true,
3836
HelpMessage = ResourceGroupParameterHelpMessage)]

src/ResourceManager/MachineLearningCompute/Commands.MachineLearningCompute/Cmdlets/RemoveAzureRmMlOpCluster.cs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,11 @@ namespace Microsoft.Azure.Commands.MachineLearningCompute.Cmdlets
2525
[OutputType(typeof(void))]
2626
public class RemoveAzureRmMlOpCluster : MachineLearningComputeCmdletBase
2727
{
28-
protected const string CmdletParametersParameterSet =
29-
"Remove an operationalization cluster from cmdlet input parameters.";
28+
protected const string CmdletParametersParameterSet = "RemoveByNameAndResourceGroup";
3029

31-
protected const string ObjectParameterSet =
32-
"Remove an operationalization cluster from an OperationalizationCluster instance definition.";
30+
protected const string ObjectParameterSet = "RemoveByInputObject";
3331

34-
protected const string ResourceIdParameterSet =
35-
"Remove an operationalization cluster from an Azure resouce id.";
32+
protected const string ResourceIdParameterSet = "RemoveByResourceId";
3633

3734
[Parameter(ParameterSetName = CmdletParametersParameterSet,
3835
Mandatory = true,

src/ResourceManager/MachineLearningCompute/Commands.MachineLearningCompute/Cmdlets/TestAzureRmMlOpClusterSystemServicesUpdateAvailability.cs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,11 @@ namespace Microsoft.Azure.Commands.MachineLearningCompute.Cmdlets
1111
[OutputType(typeof(PSCheckSystemServicesUpdatesAvailableResponse))]
1212
public class TestAzureRmOpClusterSystemServicesUpdateAvailability: MachineLearningComputeCmdletBase
1313
{
14-
protected const string CmdletParametersParameterSet =
15-
"Test for update availability from cmdlet input parameters.";
14+
protected const string CmdletParametersParameterSet = "TestByNameAndResourceGroup";
1615

17-
protected const string ObjectParameterSet =
18-
"Test for update availability from an OperationalizationCluster instance definition.";
16+
protected const string ObjectParameterSet = "TestByInputObject";
1917

20-
protected const string ResourceIdParameterSet =
21-
"Test for update availability from an Azure resouce id.";
18+
protected const string ResourceIdParameterSet = "TestByResourceId";
2219

2320
[Parameter(ParameterSetName = CmdletParametersParameterSet,
2421
Mandatory = true,

src/ResourceManager/MachineLearningCompute/Commands.MachineLearningCompute/Cmdlets/UpdateAzureRmMlOpClusterSystemService.cs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,11 @@ namespace Microsoft.Azure.Commands.MachineLearningCompute.Cmdlets
2626
[OutputType(typeof(PSUpdateSystemServicesResponse))]
2727
public class UpdateAzureRmMlOpClusterSystemService : MachineLearningComputeCmdletBase
2828
{
29-
protected const string CmdletParametersParameterSet =
30-
"Start a system services update from cmdlet input parameters.";
29+
protected const string CmdletParametersParameterSet = "StartUpdateWithNameAndResourceGroup";
3130

32-
protected const string ObjectParameterSet =
33-
"Start a system services update from an PSOperationalizationCluster instance definition.";
31+
protected const string ObjectParameterSet = "StartUpdateWithInputObject";
3432

35-
protected const string ResourceIdParameterSet =
36-
"Start a system services update from an Azure resouce id.";
33+
protected const string ResourceIdParameterSet = "StartUpdateWithResourceId";
3734

3835
[Parameter(ParameterSetName = CmdletParametersParameterSet,
3936
Mandatory = true,
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
Module Name: AzureRM.MachineLearningCompute
3+
Module Guid: {{ Update Module Guid }}
4+
Download Help Link: {{ Update Download Link }}
5+
Help Version: {{ Update Help Version }}
6+
Locale: {{ Update Locale }}
7+
---
8+
9+
# AzureRM.MachineLearningCompute Module
10+
## Description
11+
{{Manually Enter Description Here}}
12+
13+
## AzureRM.MachineLearningCompute Cmdlets
14+
### [Get-AzureRmMlOpCluster](Get-AzureRmMlOpCluster.md)
15+
Gets an operationalization cluster object.
16+
17+
### [Get-AzureRmMlOpClusterKey](Get-AzureRmMlOpClusterKey.md)
18+
Gets the access keys associated with an operationalization cluster.
19+
20+
### [New-AzureRmMlOpCluster](New-AzureRmMlOpCluster.md)
21+
Creates a new operationalization cluster.
22+
23+
### [Remove-AzureRmMlOpCluster](Remove-AzureRmMlOpCluster.md)
24+
Removes an operationalization cluster.
25+
26+
### [Test-AzureRmMlOpClusterSystemServicesUpdateAvailability](Test-AzureRmMlOpClusterSystemServicesUpdateAvailability.md)
27+
Checks if there are updates available for the system services associated with an operationalization cluster.
28+
29+
### [Update-AzureRmMlOpClusterSystemService](Update-AzureRmMlOpClusterSystemService.md)
30+
Starts an update on the operationalization cluster's system services.
31+

src/ResourceManager/MachineLearningCompute/Commands.MachineLearningCompute/help/Get-AzureRmMlOpCluster.md

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,16 @@ Gets an operationalization cluster object.
1212

1313
## SYNTAX
1414

15+
### GetByName
1516
```
16-
Get-AzureRmMlOpCluster [-ResourceGroupName <String>] [-Name <String>]
17-
[-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
17+
Get-AzureRmMlOpCluster -ResourceGroupName <String> -Name <String> [-DefaultProfile <IAzureContextContainer>]
18+
[<CommonParameters>]
19+
```
20+
21+
### GetByResourceGroup
22+
```
23+
Get-AzureRmMlOpCluster [-ResourceGroupName <String>] [-DefaultProfile <IAzureContextContainer>]
24+
[<CommonParameters>]
1825
```
1926

2027
## DESCRIPTION
@@ -65,10 +72,10 @@ The name of the operationalization cluster.
6572
6673
```yaml
6774
Type: String
68-
Parameter Sets: Get an operationalization cluster by its name.
75+
Parameter Sets: GetByName
6976
Aliases:
7077

71-
Required: False
78+
Required: True
7279
Position: Named
7380
Default value: None
7481
Accept pipeline input: False
@@ -80,7 +87,19 @@ The name of the resource group for the operationalization cluster.
8087
8188
```yaml
8289
Type: String
83-
Parameter Sets: (All)
90+
Parameter Sets: GetByName
91+
Aliases:
92+
93+
Required: True
94+
Position: Named
95+
Default value: None
96+
Accept pipeline input: False
97+
Accept wildcard characters: False
98+
```
99+
100+
```yaml
101+
Type: String
102+
Parameter Sets: GetByResourceGroup
84103
Aliases:
85104

86105
Required: False

src/ResourceManager/MachineLearningCompute/Commands.MachineLearningCompute/help/Get-AzureRmMlOpClusterKey.md

Lines changed: 30 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,21 @@ Gets the access keys associated with an operationalization cluster.
1212

1313
## SYNTAX
1414

15-
### Get operationalization cluster's keys from cmdlet input parameters.
15+
### GetByNameAndResourceGroup
1616
```
17-
Get-AzureRmMlOpClusterKey -ResourceGroupName <String> -Name <String>
17+
Get-AzureRmMlOpClusterKey -ResourceGroupName <String> -Name <String> [-DefaultProfile <IAzureContextContainer>]
18+
[<CommonParameters>]
1819
```
1920

20-
### Get operationalization cluster's keys from an OperationalizationCluster instance definition.
21+
### GetByInputObject
2122
```
22-
Get-AzureRmMlOpClusterKey -Cluster <PSOperationalizationCluster>
23+
Get-AzureRmMlOpClusterKey -InputObject <PSOperationalizationCluster> [-DefaultProfile <IAzureContextContainer>]
24+
[<CommonParameters>]
2325
```
2426

25-
### Get operationalization cluster's keys from an Azure resource id.
27+
### GetByResourceId
2628
```
27-
Get-AzureRmMlOpClusterKey -ResourceId <String>
29+
Get-AzureRmMlOpClusterKey -ResourceId <String> [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
2830
```
2931

3032
## DESCRIPTION
@@ -41,12 +43,27 @@ Returns the secret keys for the services associated with the operationalization
4143

4244
## PARAMETERS
4345

46+
### -DefaultProfile
47+
The credentials, account, tenant, and subscription used for communication with azure.
48+
49+
```yaml
50+
Type: IAzureContextContainer
51+
Parameter Sets: (All)
52+
Aliases: AzureRmContext, AzureCredential
53+
54+
Required: False
55+
Position: Named
56+
Default value: None
57+
Accept pipeline input: False
58+
Accept wildcard characters: False
59+
```
60+
4461
### -InputObject
4562
The operationalization cluster object.
4663
4764
```yaml
4865
Type: PSOperationalizationCluster
49-
Parameter Sets: Get operationalization cluster's keys from an OperationalizationCluster instance definition.
66+
Parameter Sets: GetByInputObject
5067
Aliases: Cluster
5168

5269
Required: True
@@ -61,7 +78,7 @@ The name of the operationalization cluster.
6178
6279
```yaml
6380
Type: String
64-
Parameter Sets: Get operationalization cluster's keys from cmdlet input parameters.
81+
Parameter Sets: GetByNameAndResourceGroup
6582
Aliases:
6683

6784
Required: True
@@ -76,7 +93,7 @@ The name of the resource group for the operationalization cluster.
7693
7794
```yaml
7895
Type: String
79-
Parameter Sets: Get operationalization cluster's keys from cmdlet input parameters.
96+
Parameter Sets: GetByNameAndResourceGroup
8097
Aliases:
8198

8299
Required: True
@@ -91,7 +108,7 @@ The Azure resource id for the operationalization cluster.
91108
92109
```yaml
93110
Type: String
94-
Parameter Sets: Get operationalization cluster's keys from an Azure resouce id.
111+
Parameter Sets: GetByResourceId
95112
Aliases:
96113

97114
Required: True
@@ -101,17 +118,18 @@ Accept pipeline input: True (ByPropertyName)
101118
Accept wildcard characters: False
102119
```
103120
121+
### CommonParameters
122+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
123+
104124
## INPUTS
105125
106126
### Microsoft.Azure.Commands.MachineLearningCompute.Models.PSOperationalizationCluster
107127
System.String
108128
109-
110129
## OUTPUTS
111130
112131
### Microsoft.Azure.Commands.MachineLearningCompute.Models.PSOperationalizationClusterCredentials
113132
114-
115133
## NOTES
116134
117135
## RELATED LINKS

0 commit comments

Comments
 (0)