Skip to content

Commit 187b7fe

Browse files
authored
Revert MI breaking changes for Fleet (#24448)
1 parent 0373907 commit 187b7fe

20 files changed

+19
-40
lines changed

src/Fleet/Fleet.Autorest/README.md

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
This directory contains the PowerShell module for the Fleet service.
44

55
---
6-
## Status
7-
[![Az.Fleet](https://img.shields.io/powershellgallery/v/Az.Fleet.svg?style=flat-square&label=Az.Fleet "Az.Fleet")](https://www.powershellgallery.com/packages/Az.Fleet/)
8-
96
## Info
107
- Modifiable: yes
118
- Generated: all
@@ -40,6 +37,8 @@ require:
4037
title: Fleet
4138
module-version: 0.1.0
4239
subject-prefix: $(service-name)
40+
disable-transform-identity-type: true
41+
flatten-userassignedidentity: false
4342

4443
directive:
4544
# # # Following is two common directive which are normally required in all the RPs
@@ -58,6 +57,23 @@ directive:
5857
- from: swagger-document
5958
where: $.definitions.UpdateRun
6059
transform: $['required'] = ['properties']
60+
- from: swagger-document
61+
where: $.definitions.FleetUpdateStrategy.properties.properties.x-ms-mutability
62+
transform: >-
63+
return [
64+
"read",
65+
"update",
66+
"create"
67+
]
68+
- from: swagger-document
69+
where: $.definitions.UpdateRun.properties.properties
70+
transform: $['x-ms-mutability'] = ["read", "update", "create"]
71+
- from: swagger-document
72+
where: $.definitions.ManagedClusterUpdate.properties.nodeImageSelection
73+
transform: $['x-ms-mutability'] = ["read", "update", "create"]
74+
- from: swagger-document
75+
where: $.definitions.NodeImageSelection.properties.type
76+
transform: $['x-ms-mutability'] = ["read", "update", "create"]
6177
# Hide set cmdlet
6278
- where:
6379
verb: Set

src/Fleet/Fleet.Autorest/docs/Get-AzFleet.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ Accept wildcard characters: False
103103
104104
### -InputObject
105105
Identity Parameter
106-
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
107106
108107
```yaml
109108
Type: Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetIdentity

src/Fleet/Fleet.Autorest/docs/Get-AzFleetMember.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ Accept wildcard characters: False
100100
101101
### -FleetInputObject
102102
Identity Parameter
103-
To construct, see NOTES section for FLEETINPUTOBJECT properties and create a hash table.
104103
105104
```yaml
106105
Type: Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetIdentity
@@ -131,7 +130,6 @@ Accept wildcard characters: False
131130
132131
### -InputObject
133132
Identity Parameter
134-
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
135133
136134
```yaml
137135
Type: Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetIdentity

src/Fleet/Fleet.Autorest/docs/Get-AzFleetUpdateRun.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ Accept wildcard characters: False
148148
149149
### -FleetInputObject
150150
Identity Parameter
151-
To construct, see NOTES section for FLEETINPUTOBJECT properties and create a hash table.
152151
153152
```yaml
154153
Type: Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetIdentity
@@ -179,7 +178,6 @@ Accept wildcard characters: False
179178
180179
### -InputObject
181180
Identity Parameter
182-
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
183181
184182
```yaml
185183
Type: Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetIdentity

src/Fleet/Fleet.Autorest/docs/Get-AzFleetUpdateStrategy.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ Accept wildcard characters: False
107107
108108
### -FleetInputObject
109109
Identity Parameter
110-
To construct, see NOTES section for FLEETINPUTOBJECT properties and create a hash table.
111110
112111
```yaml
113112
Type: Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetIdentity
@@ -138,7 +137,6 @@ Accept wildcard characters: False
138137
139138
### -InputObject
140139
Identity Parameter
141-
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
142140
143141
```yaml
144142
Type: Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetIdentity

src/Fleet/Fleet.Autorest/docs/New-AzFleet.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@ Accept wildcard characters: False
156156
157157
### -InputObject
158158
Identity Parameter
159-
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
160159
161160
```yaml
162161
Type: Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetIdentity

src/Fleet/Fleet.Autorest/docs/New-AzFleetMember.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ Accept wildcard characters: False
128128
129129
### -FleetInputObject
130130
Identity Parameter
131-
To construct, see NOTES section for FLEETINPUTOBJECT properties and create a hash table.
132131
133132
```yaml
134133
Type: Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetIdentity
@@ -204,7 +203,6 @@ Accept wildcard characters: False
204203
205204
### -InputObject
206205
Identity Parameter
207-
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
208206
209207
```yaml
210208
Type: Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetIdentity

src/Fleet/Fleet.Autorest/docs/New-AzFleetUpdateRun.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ Accept wildcard characters: False
158158
159159
### -FleetInputObject
160160
Identity Parameter
161-
To construct, see NOTES section for FLEETINPUTOBJECT properties and create a hash table.
162161
163162
```yaml
164163
Type: Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetIdentity
@@ -219,7 +218,6 @@ Accept wildcard characters: False
219218
220219
### -InputObject
221220
Identity Parameter
222-
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
223221
224222
```yaml
225223
Type: Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetIdentity
@@ -327,7 +325,6 @@ Accept wildcard characters: False
327325
### -StrategyStage
328326
The list of stages that compose this update run.
329327
Min size: 1.
330-
To construct, see NOTES section for STRATEGYSTAGE properties and create a hash table.
331328
332329
```yaml
333330
Type: Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStage[]

src/Fleet/Fleet.Autorest/docs/New-AzFleetUpdateStageObject.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ Accept wildcard characters: False
8181
Defines the groups to be executed in parallel in this stage.
8282
Duplicate groups are not allowed.
8383
Min size: 1.
84-
To construct, see NOTES section for GROUP properties and create a hash table.
8584
8685
```yaml
8786
Type: Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateGroup[]

src/Fleet/Fleet.Autorest/docs/New-AzFleetUpdateStrategy.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,6 @@ Accept wildcard characters: False
155155
156156
### -FleetInputObject
157157
Identity Parameter
158-
To construct, see NOTES section for FLEETINPUTOBJECT properties and create a hash table.
159158
160159
```yaml
161160
Type: Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetIdentity
@@ -216,7 +215,6 @@ Accept wildcard characters: False
216215
217216
### -InputObject
218217
Identity Parameter
219-
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
220218
221219
```yaml
222220
Type: Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetIdentity
@@ -309,7 +307,6 @@ Accept wildcard characters: False
309307
### -StrategyStage
310308
The list of stages that compose this update run.
311309
Min size: 1.
312-
To construct, see NOTES section for STRATEGYSTAGE properties and create a hash table.
313310
314311
```yaml
315312
Type: Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStage[]

src/Fleet/Fleet.Autorest/docs/Remove-AzFleet.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ Accept wildcard characters: False
9494
9595
### -InputObject
9696
Identity Parameter
97-
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
9897
9998
```yaml
10099
Type: Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetIdentity

src/Fleet/Fleet.Autorest/docs/Remove-AzFleetMember.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ Accept wildcard characters: False
8686
8787
### -FleetInputObject
8888
Identity Parameter
89-
To construct, see NOTES section for FLEETINPUTOBJECT properties and create a hash table.
9089
9190
```yaml
9291
Type: Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetIdentity
@@ -132,7 +131,6 @@ Accept wildcard characters: False
132131
133132
### -InputObject
134133
Identity Parameter
135-
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
136134
137135
```yaml
138136
Type: Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetIdentity

src/Fleet/Fleet.Autorest/docs/Remove-AzFleetUpdateRun.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ Accept wildcard characters: False
7878
7979
### -FleetInputObject
8080
Identity Parameter
81-
To construct, see NOTES section for FLEETINPUTOBJECT properties and create a hash table.
8281
8382
```yaml
8483
Type: Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetIdentity
@@ -124,7 +123,6 @@ Accept wildcard characters: False
124123
125124
### -InputObject
126125
Identity Parameter
127-
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
128126
129127
```yaml
130128
Type: Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetIdentity

src/Fleet/Fleet.Autorest/docs/Remove-AzFleetUpdateStrategy.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ Accept wildcard characters: False
8787
8888
### -FleetInputObject
8989
Identity Parameter
90-
To construct, see NOTES section for FLEETINPUTOBJECT properties and create a hash table.
9190
9291
```yaml
9392
Type: Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetIdentity
@@ -133,7 +132,6 @@ Accept wildcard characters: False
133132
134133
### -InputObject
135134
Identity Parameter
136-
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
137135
138136
```yaml
139137
Type: Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetIdentity

src/Fleet/Fleet.Autorest/docs/Start-AzFleetUpdateRun.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ Accept wildcard characters: False
139139
140140
### -FleetInputObject
141141
Identity Parameter
142-
To construct, see NOTES section for FLEETINPUTOBJECT properties and create a hash table.
143142
144143
```yaml
145144
Type: Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetIdentity
@@ -185,7 +184,6 @@ Accept wildcard characters: False
185184
186185
### -InputObject
187186
Identity Parameter
188-
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
189187
190188
```yaml
191189
Type: Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetIdentity

src/Fleet/Fleet.Autorest/docs/Stop-AzFleetUpdateRun.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ Accept wildcard characters: False
144144
145145
### -FleetInputObject
146146
Identity Parameter
147-
To construct, see NOTES section for FLEETINPUTOBJECT properties and create a hash table.
148147
149148
```yaml
150149
Type: Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetIdentity
@@ -190,7 +189,6 @@ Accept wildcard characters: False
190189
191190
### -InputObject
192191
Identity Parameter
193-
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
194192
195193
```yaml
196194
Type: Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetIdentity

src/Fleet/Fleet.Autorest/docs/Update-AzFleet.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ Accept wildcard characters: False
139139
140140
### -InputObject
141141
Identity Parameter
142-
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
143142
144143
```yaml
145144
Type: Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetIdentity

src/Fleet/Fleet.Autorest/docs/Update-AzFleetMember.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ Accept wildcard characters: False
135135
136136
### -FleetInputObject
137137
Identity Parameter
138-
To construct, see NOTES section for FLEETINPUTOBJECT properties and create a hash table.
139138
140139
```yaml
141140
Type: Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetIdentity
@@ -196,7 +195,6 @@ Accept wildcard characters: False
196195
197196
### -InputObject
198197
Identity Parameter
199-
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
200198
201199
```yaml
202200
Type: Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetIdentity

src/Fleet/Fleet.Autorest/docs/Update-AzFleetUpdateRun.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ Accept wildcard characters: False
145145
146146
### -FleetInputObject
147147
Identity Parameter
148-
To construct, see NOTES section for FLEETINPUTOBJECT properties and create a hash table.
149148
150149
```yaml
151150
Type: Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetIdentity
@@ -206,7 +205,6 @@ Accept wildcard characters: False
206205
207206
### -InputObject
208207
Identity Parameter
209-
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
210208
211209
```yaml
212210
Type: Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetIdentity
@@ -284,7 +282,6 @@ Accept wildcard characters: False
284282
### -StrategyStage
285283
The list of stages that compose this update run.
286284
Min size: 1.
287-
To construct, see NOTES section for STRATEGYSTAGE properties and create a hash table.
288285
289286
```yaml
290287
Type: Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStage[]

src/Fleet/Fleet.Autorest/docs/Update-AzFleetUpdateStrategy.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ Accept wildcard characters: False
140140
141141
### -FleetInputObject
142142
Identity Parameter
143-
To construct, see NOTES section for FLEETINPUTOBJECT properties and create a hash table.
144143
145144
```yaml
146145
Type: Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetIdentity
@@ -201,7 +200,6 @@ Accept wildcard characters: False
201200
202201
### -InputObject
203202
Identity Parameter
204-
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
205203
206204
```yaml
207205
Type: Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetIdentity
@@ -264,7 +262,6 @@ Accept wildcard characters: False
264262
### -StrategyStage
265263
The list of stages that compose this update run.
266264
Min size: 1.
267-
To construct, see NOTES section for STRATEGYSTAGE properties and create a hash table.
268265
269266
```yaml
270267
Type: Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStage[]

0 commit comments

Comments
 (0)