Skip to content

Commit 54335d0

Browse files
committed
directive 3
1 parent fa5d533 commit 54335d0

File tree

9 files changed

+75
-220
lines changed

9 files changed

+75
-220
lines changed

src/Workloads/Monitors.Autorest/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ namespace: Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors
4848
inlining-threshold: 100
4949

5050
directive:
51+
- where:
52+
variant: ^CreateViaIdentity$|^CreateViaIdentityExpanded$
53+
remove: true
54+
5155
- where:
5256
variant: ^(Create|Update)(?!.*?(Expanded|JsonFilePath|JsonString))
5357
remove: true

src/Workloads/Monitors.Autorest/docs/New-AzWorkloadsMonitor.md

Lines changed: 13 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,6 @@ New-AzWorkloadsMonitor -Name <String> -ResourceGroupName <String> -Location <Str
2222
[<CommonParameters>]
2323
```
2424

25-
### CreateViaIdentityExpanded
26-
```
27-
New-AzWorkloadsMonitor -InputObject <IMonitorsIdentity> -Location <String> [-AppLocation <String>]
28-
[-EnableSystemAssignedIdentity] [-LogAnalyticsWorkspaceArmId <String>] [-ManagedResourceGroupName <String>]
29-
[-MonitorSubnet <String>] [-RoutingPreference <String>] [-Tag <Hashtable>] [-UserAssignedIdentity <String[]>]
30-
[-ZoneRedundancyPreference <String>] [-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf]
31-
[<CommonParameters>]
32-
```
33-
3425
### CreateViaJsonFilePath
3526
```
3627
New-AzWorkloadsMonitor -Name <String> -ResourceGroupName <String> -JsonFilePath <String>
@@ -71,7 +62,7 @@ The subnet region should be same as the SAP monitoring region.
7162

7263
```yaml
7364
Type: System.String
74-
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
65+
Parameter Sets: CreateExpanded
7566
Aliases:
7667

7768
Required: False
@@ -117,7 +108,7 @@ Determines whether to enable a system-assigned identity for the resource.
117108
118109
```yaml
119110
Type: System.Management.Automation.SwitchParameter
120-
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
111+
Parameter Sets: CreateExpanded
121112
Aliases:
122113

123114
Required: False
@@ -127,21 +118,6 @@ Accept pipeline input: False
127118
Accept wildcard characters: False
128119
```
129120
130-
### -InputObject
131-
Identity Parameter
132-
133-
```yaml
134-
Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.IMonitorsIdentity
135-
Parameter Sets: CreateViaIdentityExpanded
136-
Aliases:
137-
138-
Required: True
139-
Position: Named
140-
Default value: None
141-
Accept pipeline input: True (ByValue)
142-
Accept wildcard characters: False
143-
```
144-
145121
### -JsonFilePath
146122
Path of Json file supplied to the Create operation
147123
@@ -177,7 +153,7 @@ The geo-location where the resource lives
177153
178154
```yaml
179155
Type: System.String
180-
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
156+
Parameter Sets: CreateExpanded
181157
Aliases:
182158

183159
Required: True
@@ -192,7 +168,7 @@ The ARM ID of the Log Analytics Workspace that is used for SAP monitoring.
192168
193169
```yaml
194170
Type: System.String
195-
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
171+
Parameter Sets: CreateExpanded
196172
Aliases:
197173

198174
Required: False
@@ -207,7 +183,7 @@ Managed resource group name
207183
208184
```yaml
209185
Type: System.String
210-
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
186+
Parameter Sets: CreateExpanded
211187
Aliases:
212188

213189
Required: False
@@ -222,7 +198,7 @@ The subnet which the SAP monitor will be deployed in
222198
223199
```yaml
224200
Type: System.String
225-
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
201+
Parameter Sets: CreateExpanded
226202
Aliases:
227203

228204
Required: False
@@ -237,7 +213,7 @@ Name of the SAP monitor resource.
237213
238214
```yaml
239215
Type: System.String
240-
Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString
216+
Parameter Sets: (All)
241217
Aliases: MonitorName
242218

243219
Required: True
@@ -268,7 +244,7 @@ The name is case insensitive.
268244
269245
```yaml
270246
Type: System.String
271-
Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString
247+
Parameter Sets: (All)
272248
Aliases:
273249

274250
Required: True
@@ -284,7 +260,7 @@ By default only RFC1918 traffic is routed to the customer VNET.
284260
285261
```yaml
286262
Type: System.String
287-
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
263+
Parameter Sets: CreateExpanded
288264
Aliases:
289265

290266
Required: False
@@ -299,7 +275,7 @@ The ID of the target subscription.
299275
300276
```yaml
301277
Type: System.String
302-
Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString
278+
Parameter Sets: (All)
303279
Aliases:
304280

305281
Required: False
@@ -314,7 +290,7 @@ Resource tags.
314290
315291
```yaml
316292
Type: System.Collections.Hashtable
317-
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
293+
Parameter Sets: CreateExpanded
318294
Aliases:
319295

320296
Required: False
@@ -330,7 +306,7 @@ The elements in array will be ARM resource ids in the form: '/subscriptions/{sub
330306
331307
```yaml
332308
Type: System.String[]
333-
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
309+
Parameter Sets: CreateExpanded
334310
Aliases:
335311

336312
Required: False
@@ -346,7 +322,7 @@ By default resources will be created which do not support zone redundancy.
346322
347323
```yaml
348324
Type: System.String
349-
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
325+
Parameter Sets: CreateExpanded
350326
Aliases:
351327

352328
Required: False
@@ -392,8 +368,6 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
392368
393369
## INPUTS
394370
395-
### Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.IMonitorsIdentity
396-
397371
## OUTPUTS
398372
399373
### Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.IMonitor

src/Workloads/Monitors.Autorest/docs/New-AzWorkloadsProviderInstance.md

Lines changed: 4 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,6 @@ New-AzWorkloadsProviderInstance -MonitorName <String> -Name <String> -ResourceGr
2020
[<CommonParameters>]
2121
```
2222

23-
### CreateViaIdentityExpanded
24-
```
25-
New-AzWorkloadsProviderInstance -InputObject <IMonitorsIdentity> [-EnableSystemAssignedIdentity]
26-
[-ProviderSetting <IProviderSpecificProperties>] [-UserAssignedIdentity <String[]>]
27-
[-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [<CommonParameters>]
28-
```
29-
3023
### CreateViaIdentityMonitorExpanded
3124
```
3225
New-AzWorkloadsProviderInstance -MonitorInputObject <IMonitorsIdentity> -Name <String>
@@ -121,7 +114,7 @@ Determines whether to enable a system-assigned identity for the resource.
121114
122115
```yaml
123116
Type: System.Management.Automation.SwitchParameter
124-
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded, CreateViaIdentityMonitorExpanded
117+
Parameter Sets: CreateExpanded, CreateViaIdentityMonitorExpanded
125118
Aliases:
126119

127120
Required: False
@@ -131,21 +124,6 @@ Accept pipeline input: False
131124
Accept wildcard characters: False
132125
```
133126
134-
### -InputObject
135-
Identity Parameter
136-
137-
```yaml
138-
Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.IMonitorsIdentity
139-
Parameter Sets: CreateViaIdentityExpanded
140-
Aliases:
141-
142-
Required: True
143-
Position: Named
144-
Default value: None
145-
Accept pipeline input: True (ByValue)
146-
Accept wildcard characters: False
147-
```
148-
149127
### -JsonFilePath
150128
Path of Json file supplied to the Create operation
151129
@@ -211,7 +189,7 @@ Name of the provider instance.
211189
212190
```yaml
213191
Type: System.String
214-
Parameter Sets: CreateExpanded, CreateViaIdentityMonitorExpanded, CreateViaJsonFilePath, CreateViaJsonString
192+
Parameter Sets: (All)
215193
Aliases: ProviderInstanceName
216194

217195
Required: True
@@ -241,7 +219,7 @@ Defines the provider specific properties.
241219
242220
```yaml
243221
Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.IProviderSpecificProperties
244-
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded, CreateViaIdentityMonitorExpanded
222+
Parameter Sets: CreateExpanded, CreateViaIdentityMonitorExpanded
245223
Aliases:
246224

247225
Required: False
@@ -288,7 +266,7 @@ The elements in array will be ARM resource ids in the form: '/subscriptions/{sub
288266
289267
```yaml
290268
Type: System.String[]
291-
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded, CreateViaIdentityMonitorExpanded
269+
Parameter Sets: CreateExpanded, CreateViaIdentityMonitorExpanded
292270
Aliases:
293271

294272
Required: False

src/Workloads/Monitors.Autorest/docs/New-AzWorkloadsSapLandscapeMonitor.md

Lines changed: 6 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,6 @@ New-AzWorkloadsSapLandscapeMonitor -MonitorName <String> -ResourceGroupName <Str
2121
[-WhatIf] [<CommonParameters>]
2222
```
2323

24-
### CreateViaIdentityExpanded
25-
```
26-
New-AzWorkloadsSapLandscapeMonitor -InputObject <IMonitorsIdentity>
27-
[-GroupingLandscape <ISapLandscapeMonitorSidMapping[]>]
28-
[-GroupingSapApplication <ISapLandscapeMonitorSidMapping[]>]
29-
[-TopMetricsThreshold <ISapLandscapeMonitorMetricThresholds[]>] [-DefaultProfile <PSObject>] [-Confirm]
30-
[-WhatIf] [<CommonParameters>]
31-
```
32-
3324
### CreateViaJsonFilePath
3425
```
3526
New-AzWorkloadsSapLandscapeMonitor -MonitorName <String> -ResourceGroupName <String> -JsonFilePath <String>
@@ -114,7 +105,7 @@ Gets or sets the list of landscape to SID mappings.
114105
115106
```yaml
116107
Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.ISapLandscapeMonitorSidMapping[]
117-
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
108+
Parameter Sets: CreateExpanded
118109
Aliases:
119110

120111
Required: False
@@ -129,7 +120,7 @@ Gets or sets the list of Sap Applications to SID mappings.
129120
130121
```yaml
131122
Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.ISapLandscapeMonitorSidMapping[]
132-
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
123+
Parameter Sets: CreateExpanded
133124
Aliases:
134125

135126
Required: False
@@ -139,21 +130,6 @@ Accept pipeline input: False
139130
Accept wildcard characters: False
140131
```
141132
142-
### -InputObject
143-
Identity Parameter
144-
145-
```yaml
146-
Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.IMonitorsIdentity
147-
Parameter Sets: CreateViaIdentityExpanded
148-
Aliases:
149-
150-
Required: True
151-
Position: Named
152-
Default value: None
153-
Accept pipeline input: True (ByValue)
154-
Accept wildcard characters: False
155-
```
156-
157133
### -JsonFilePath
158134
Path of Json file supplied to the Create operation
159135
@@ -189,7 +165,7 @@ Name of the SAP monitor resource.
189165
190166
```yaml
191167
Type: System.String
192-
Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString
168+
Parameter Sets: (All)
193169
Aliases:
194170

195171
Required: True
@@ -205,7 +181,7 @@ The name is case insensitive.
205181
206182
```yaml
207183
Type: System.String
208-
Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString
184+
Parameter Sets: (All)
209185
Aliases:
210186

211187
Required: True
@@ -220,7 +196,7 @@ The ID of the target subscription.
220196
221197
```yaml
222198
Type: System.String
223-
Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString
199+
Parameter Sets: (All)
224200
Aliases:
225201

226202
Required: False
@@ -235,7 +211,7 @@ Gets or sets the list Top Metric Thresholds for SAP Landscape Monitor Dashboard
235211
236212
```yaml
237213
Type: Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.ISapLandscapeMonitorMetricThresholds[]
238-
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
214+
Parameter Sets: CreateExpanded
239215
Aliases:
240216

241217
Required: False
@@ -281,8 +257,6 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
281257
282258
## INPUTS
283259
284-
### Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.IMonitorsIdentity
285-
286260
## OUTPUTS
287261
288262
### Microsoft.Azure.PowerShell.Cmdlets.Workloads.Monitors.Models.ISapLandscapeMonitor
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"generate_Id": "3149ff39-7170-49e6-b580-5f40a5008d67"
2+
"generate_Id": "3ecfabb1-c4d4-4f4e-89fc-59d5a3d99f8a"
33
}

0 commit comments

Comments
 (0)