Skip to content

Commit 908f419

Browse files
committed
delete CreateViaIdentityExpanded
1 parent f7a3422 commit 908f419

File tree

6 files changed

+50
-103
lines changed

6 files changed

+50
-103
lines changed

src/Monitor/Autoscale.Autorest/Properties/AssemblyInfo.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,3 @@
2424
[assembly: System.Reflection.AssemblyVersionAttribute("6.0.2")]
2525
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
2626
[assembly: System.CLSCompliantAttribute(false)]
27-

src/Monitor/Autoscale.Autorest/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ directive:
4545
# 1. Remove the unexpanded parameter set
4646
# 2. For New-* cmdlets, ViaIdentity is not required, so CreateViaIdentityExpanded is removed as well
4747
- where:
48-
variant: ^(Create|Update)(?!.*?(Expanded|JsonFilePath|JsonString))
48+
variant: ^(Create|Update)(?!.*?(Expanded|JsonFilePath|JsonString))|^CreateViaIdentityExpanded$
4949
remove: true
5050
- where:
5151
verb: Set

src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleSetting.md

Lines changed: 14 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,7 @@ Create an autoscale setting.
1212

1313
## SYNTAX
1414

15-
### CreateViaIdentityExpanded (Default)
16-
```
17-
New-AzAutoscaleSetting -InputObject <IAutoscaleIdentity> -Location <String> -Profile <IAutoscaleProfile[]>
18-
[-Enabled] [-Notification <IAutoscaleNotification[]>]
19-
[-PredictiveAutoscalePolicyScaleLookAheadTime <TimeSpan>] [-PredictiveAutoscalePolicyScaleMode <String>]
20-
[-PropertiesName <String>] [-Tag <Hashtable>] [-TargetResourceLocation <String>]
21-
[-TargetResourceUri <String>] [-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>]
22-
```
23-
24-
### CreateExpanded
15+
### CreateExpanded (Default)
2516
```
2617
New-AzAutoscaleSetting -Name <String> -ResourceGroupName <String> -Location <String>
2718
-Profile <IAutoscaleProfile[]> [-SubscriptionId <String>] [-Enabled]
@@ -85,7 +76,7 @@ The default value is 'false'.
8576
8677
```yaml
8778
Type: System.Management.Automation.SwitchParameter
88-
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
79+
Parameter Sets: CreateExpanded
8980
Aliases:
9081

9182
Required: False
@@ -95,21 +86,6 @@ Accept pipeline input: False
9586
Accept wildcard characters: False
9687
```
9788
98-
### -InputObject
99-
Identity Parameter
100-
101-
```yaml
102-
Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleIdentity
103-
Parameter Sets: CreateViaIdentityExpanded
104-
Aliases:
105-
106-
Required: True
107-
Position: Named
108-
Default value: None
109-
Accept pipeline input: True (ByValue)
110-
Accept wildcard characters: False
111-
```
112-
11389
### -JsonFilePath
11490
Path of Json file supplied to the Create operation
11591
@@ -145,7 +121,7 @@ Resource location
145121
146122
```yaml
147123
Type: System.String
148-
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
124+
Parameter Sets: CreateExpanded
149125
Aliases:
150126

151127
Required: True
@@ -160,7 +136,7 @@ The autoscale setting name.
160136
161137
```yaml
162138
Type: System.String
163-
Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString
139+
Parameter Sets: (All)
164140
Aliases: AutoscaleSettingName
165141

166142
Required: True
@@ -175,7 +151,7 @@ the collection of notifications.
175151
176152
```yaml
177153
Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleNotification[]
178-
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
154+
Parameter Sets: CreateExpanded
179155
Aliases:
180156

181157
Required: False
@@ -191,7 +167,7 @@ It must be between 1 minute and 60 minutes in ISO 8601 format.
191167
192168
```yaml
193169
Type: System.TimeSpan
194-
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
170+
Parameter Sets: CreateExpanded
195171
Aliases:
196172

197173
Required: False
@@ -206,7 +182,7 @@ the predictive autoscale mode
206182
207183
```yaml
208184
Type: System.String
209-
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
185+
Parameter Sets: CreateExpanded
210186
Aliases:
211187

212188
Required: False
@@ -222,7 +198,7 @@ A maximum of 20 profiles can be specified.
222198
223199
```yaml
224200
Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleProfile[]
225-
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
201+
Parameter Sets: CreateExpanded
226202
Aliases:
227203

228204
Required: True
@@ -237,7 +213,7 @@ the name of the autoscale setting.
237213
238214
```yaml
239215
Type: System.String
240-
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
216+
Parameter Sets: CreateExpanded
241217
Aliases:
242218

243219
Required: False
@@ -253,7 +229,7 @@ The name is case insensitive.
253229
254230
```yaml
255231
Type: System.String
256-
Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString
232+
Parameter Sets: (All)
257233
Aliases:
258234

259235
Required: True
@@ -268,7 +244,7 @@ The ID of the target subscription.
268244
269245
```yaml
270246
Type: System.String
271-
Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString
247+
Parameter Sets: (All)
272248
Aliases:
273249

274250
Required: False
@@ -286,7 +262,7 @@ Each tag must have a key no greater in length than 128 characters and a value no
286262
287263
```yaml
288264
Type: System.Collections.Hashtable
289-
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
265+
Parameter Sets: CreateExpanded
290266
Aliases:
291267

292268
Required: False
@@ -301,7 +277,7 @@ the location of the resource that the autoscale setting should be added to.
301277
302278
```yaml
303279
Type: System.String
304-
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
280+
Parameter Sets: CreateExpanded
305281
Aliases:
306282

307283
Required: False
@@ -316,7 +292,7 @@ the resource identifier of the resource that the autoscale setting should be add
316292
317293
```yaml
318294
Type: System.String
319-
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
295+
Parameter Sets: CreateExpanded
320296
Aliases:
321297

322298
Required: False
@@ -362,8 +338,6 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
362338
363339
## INPUTS
364340
365-
### Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleIdentity
366-
367341
## OUTPUTS
368342
369343
### Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleSettingResource
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"generate_Id": "c661f843-0646-4df0-bd18-d4257578472b"
2+
"generate_Id": "47241ba7-acf0-4f0f-8719-bcba7287d058"
33
}

src/Monitor/Monitor.sln

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.DataCollectionRule", "..
5757
EndProject
5858
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Autoscale.Autorest", "Autoscale.Autorest", "{0832AC06-44A1-FEDA-3879-082134F4AAB5}"
5959
EndProject
60-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Autoscale", "..\..\generated\Monitor\Autoscale.Autorest\Az.Autoscale.csproj", "{FACD983C-123B-438D-B3BF-B67EB3E36B25}"
60+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Autoscale", "..\..\generated\Monitor\Autoscale.Autorest\Az.Autoscale.csproj", "{7AD2DC17-D116-4480-A74F-EB823CB6F7B5}"
6161
EndProject
6262
Global
6363
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -333,18 +333,18 @@ Global
333333
{138B61C0-9D0E-44A1-9EA1-E8142303ECA5}.Release|x64.Build.0 = Release|Any CPU
334334
{138B61C0-9D0E-44A1-9EA1-E8142303ECA5}.Release|x86.ActiveCfg = Release|Any CPU
335335
{138B61C0-9D0E-44A1-9EA1-E8142303ECA5}.Release|x86.Build.0 = Release|Any CPU
336-
{FACD983C-123B-438D-B3BF-B67EB3E36B25}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
337-
{FACD983C-123B-438D-B3BF-B67EB3E36B25}.Debug|Any CPU.Build.0 = Debug|Any CPU
338-
{FACD983C-123B-438D-B3BF-B67EB3E36B25}.Debug|x64.ActiveCfg = Debug|Any CPU
339-
{FACD983C-123B-438D-B3BF-B67EB3E36B25}.Debug|x64.Build.0 = Debug|Any CPU
340-
{FACD983C-123B-438D-B3BF-B67EB3E36B25}.Debug|x86.ActiveCfg = Debug|Any CPU
341-
{FACD983C-123B-438D-B3BF-B67EB3E36B25}.Debug|x86.Build.0 = Debug|Any CPU
342-
{FACD983C-123B-438D-B3BF-B67EB3E36B25}.Release|Any CPU.ActiveCfg = Release|Any CPU
343-
{FACD983C-123B-438D-B3BF-B67EB3E36B25}.Release|Any CPU.Build.0 = Release|Any CPU
344-
{FACD983C-123B-438D-B3BF-B67EB3E36B25}.Release|x64.ActiveCfg = Release|Any CPU
345-
{FACD983C-123B-438D-B3BF-B67EB3E36B25}.Release|x64.Build.0 = Release|Any CPU
346-
{FACD983C-123B-438D-B3BF-B67EB3E36B25}.Release|x86.ActiveCfg = Release|Any CPU
347-
{FACD983C-123B-438D-B3BF-B67EB3E36B25}.Release|x86.Build.0 = Release|Any CPU
336+
{7AD2DC17-D116-4480-A74F-EB823CB6F7B5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
337+
{7AD2DC17-D116-4480-A74F-EB823CB6F7B5}.Debug|Any CPU.Build.0 = Debug|Any CPU
338+
{7AD2DC17-D116-4480-A74F-EB823CB6F7B5}.Debug|x64.ActiveCfg = Debug|Any CPU
339+
{7AD2DC17-D116-4480-A74F-EB823CB6F7B5}.Debug|x64.Build.0 = Debug|Any CPU
340+
{7AD2DC17-D116-4480-A74F-EB823CB6F7B5}.Debug|x86.ActiveCfg = Debug|Any CPU
341+
{7AD2DC17-D116-4480-A74F-EB823CB6F7B5}.Debug|x86.Build.0 = Debug|Any CPU
342+
{7AD2DC17-D116-4480-A74F-EB823CB6F7B5}.Release|Any CPU.ActiveCfg = Release|Any CPU
343+
{7AD2DC17-D116-4480-A74F-EB823CB6F7B5}.Release|Any CPU.Build.0 = Release|Any CPU
344+
{7AD2DC17-D116-4480-A74F-EB823CB6F7B5}.Release|x64.ActiveCfg = Release|Any CPU
345+
{7AD2DC17-D116-4480-A74F-EB823CB6F7B5}.Release|x64.Build.0 = Release|Any CPU
346+
{7AD2DC17-D116-4480-A74F-EB823CB6F7B5}.Release|x86.ActiveCfg = Release|Any CPU
347+
{7AD2DC17-D116-4480-A74F-EB823CB6F7B5}.Release|x86.Build.0 = Release|Any CPU
348348
EndGlobalSection
349349
GlobalSection(SolutionProperties) = preSolution
350350
HideSolutionNode = FALSE
@@ -364,6 +364,6 @@ Global
364364
{B54BD1A5-F4AB-485B-8478-520B6AA1E9E7} = {5E1B5E7C-8C9C-47AD-8F8F-19628E8D1B34}
365365
{0636EEB2-FE81-4424-8CFC-CCEB25360A40} = {3F76A15C-B128-4A31-A887-05E303CF8D7F}
366366
{138B61C0-9D0E-44A1-9EA1-E8142303ECA5} = {35E5CBAF-5596-AC3C-3DBD-816FC74B54D0}
367-
{FACD983C-123B-438D-B3BF-B67EB3E36B25} = {0832AC06-44A1-FEDA-3879-082134F4AAB5}
367+
{7AD2DC17-D116-4480-A74F-EB823CB6F7B5} = {0832AC06-44A1-FEDA-3879-082134F4AAB5}
368368
EndGlobalSection
369369
EndGlobal

0 commit comments

Comments
 (0)