Skip to content

Commit cc6890c

Browse files
authored
[PS] migrate MixedReality module to autorest v4 (Azure#27584)
1 parent 6bcd4a0 commit cc6890c

File tree

54 files changed

+1105
-502
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+1105
-502
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0 (the ""License"");
3+
// you may not use this file except in compliance with the License.
4+
// You may obtain a copy of the License at
5+
// http://www.apache.org/licenses/LICENSE-2.0
6+
// Unless required by applicable law or agreed to in writing, software
7+
// distributed under the License is distributed on an ""AS IS"" BASIS,
8+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+
// See the License for the specific language governing permissions and
10+
// limitations under the License.
11+
// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
12+
// is regenerated.
13+
14+
using System;
15+
using System.Reflection;
16+
using System.Runtime.CompilerServices;
17+
using System.Runtime.InteropServices;
18+
19+
[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")]
20+
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
21+
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
22+
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - MixedReality")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.2.2")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("0.2.2")]
25+
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
26+
[assembly: System.CLSCompliantAttribute(false)]
27+

src/MixedReality/MixedReality.Autorest/README.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ title: MixedReality
4141
module-version: 0.2.0
4242
subject-prefix: $(service-name)
4343

44-
identity-correction-for-post: true
45-
resourcegroup-append: true
46-
nested-object-to-string: true
47-
48-
# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
49-
use-extension:
50-
"@autorest/powershell": "3.x"
51-
5244
directive:
45+
- where:
46+
verb: (.*)
47+
set:
48+
breaking-change:
49+
deprecated-by-version: 0.3.0
50+
deprecated-by-azversion: 14.5.0
51+
change-effective-date: 2025/09/30
52+
5353
- from: swagger-document
5454
where: $.definitions.AccountKeyRegenerateRequest.properties.serial
5555
transform: >-
@@ -63,10 +63,10 @@ directive:
6363
"default": 1
6464
}
6565
- where:
66-
variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$
66+
variant: ^(Create|Update|Check|Regenerate)(?!.*?(Expanded|JsonFilePath|JsonString))
6767
remove: true
6868
- where:
69-
variant: ^Check$|^CheckViaIdentity$|^Regenerate$|^RegenerateViaIdentity$
69+
variant: ^CreateViaIdentityExpanded$
7070
remove: true
7171
- where:
7272
verb: Test

src/MixedReality/MixedReality.Autorest/docs/Az.MixedReality.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
Module Name: Az.MixedReality
3-
Module Guid: 4bdb5e8a-54be-4080-8f73-9c4e31acf7c7
3+
Module Guid: 3ac1ba4c-b0f6-4154-a2e7-b5839f8b5e95
44
Download Help Link: https://learn.microsoft.com/powershell/module/az.mixedreality
55
Help Version: 1.0.0.0
66
Locale: en-US
@@ -60,11 +60,11 @@ Delete a Spatial Anchors Account.
6060
Check Name Availability for local uniqueness
6161

6262
### [Update-AzMixedRealityObjectAnchorsAccount](Update-AzMixedRealityObjectAnchorsAccount.md)
63-
Updating an Object Anchors Account
63+
Creating or Updating an object anchors Account.
6464

6565
### [Update-AzMixedRealityRemoteRenderingAccount](Update-AzMixedRealityRemoteRenderingAccount.md)
66-
Updating a Remote Rendering Account
66+
Creating or Updating a Remote Rendering Account.
6767

6868
### [Update-AzMixedRealitySpatialAnchorsAccount](Update-AzMixedRealitySpatialAnchorsAccount.md)
69-
Updating a Spatial Anchors Account
69+
Creating or Updating a Spatial Anchors Account.
7070

src/MixedReality/MixedReality.Autorest/docs/Get-AzMixedRealityObjectAnchorsAccount.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ Accept wildcard characters: False
100100
101101
### -InputObject
102102
Identity Parameter
103-
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
104103
105104
```yaml
106105
Type: Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IMixedRealityIdentity
@@ -170,7 +169,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
170169
171170
## OUTPUTS
172171
173-
### Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.Api20210301Preview.IObjectAnchorsAccount
172+
### Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IObjectAnchorsAccount
174173
175174
## NOTES
176175

src/MixedReality/MixedReality.Autorest/docs/Get-AzMixedRealityObjectAnchorsAccountKey.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
138138
139139
## OUTPUTS
140140
141-
### Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.Api20210301Preview.IAccountKeys
141+
### Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IAccountKeys
142142
143143
## NOTES
144144

src/MixedReality/MixedReality.Autorest/docs/Get-AzMixedRealityRemoteRenderingAccount.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ Accept wildcard characters: False
100100
101101
### -InputObject
102102
Identity Parameter
103-
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
104103
105104
```yaml
106105
Type: Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IMixedRealityIdentity
@@ -170,7 +169,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
170169
171170
## OUTPUTS
172171
173-
### Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.Api20210301Preview.IRemoteRenderingAccount
172+
### Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IRemoteRenderingAccount
174173
175174
## NOTES
176175

src/MixedReality/MixedReality.Autorest/docs/Get-AzMixedRealityRemoteRenderingAccountKey.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
138138
139139
## OUTPUTS
140140
141-
### Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.Api20210301Preview.IAccountKeys
141+
### Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IAccountKeys
142142
143143
## NOTES
144144

src/MixedReality/MixedReality.Autorest/docs/Get-AzMixedRealitySpatialAnchorsAccount.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ Accept wildcard characters: False
100100
101101
### -InputObject
102102
Identity Parameter
103-
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
104103
105104
```yaml
106105
Type: Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IMixedRealityIdentity
@@ -170,7 +169,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
170169
171170
## OUTPUTS
172171
173-
### Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.Api20210301Preview.ISpatialAnchorsAccount
172+
### Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.ISpatialAnchorsAccount
174173
175174
## NOTES
176175

src/MixedReality/MixedReality.Autorest/docs/Get-AzMixedRealitySpatialAnchorsAccountKey.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
138138
139139
## OUTPUTS
140140
141-
### Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.Api20210301Preview.IAccountKeys
141+
### Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IAccountKeys
142142
143143
## NOTES
144144

src/MixedReality/MixedReality.Autorest/docs/New-AzMixedRealityObjectAnchorsAccount.md

+70-27
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,26 @@ Creating or Updating an object anchors Account.
1212

1313
## SYNTAX
1414

15+
### CreateExpanded (Default)
1516
```
1617
New-AzMixedRealityObjectAnchorsAccount -Name <String> -ResourceGroupName <String> -Location <String>
17-
[-SubscriptionId <String>] [-IdentityType <ResourceIdentityType>] [-KindCapacity <Int32>]
18-
[-KindFamily <String>] [-KindName <String>] [-KindSize <String>] [-KindTier <SkuTier>]
19-
[-PlanType <ResourceIdentityType>] [-SkuCapacity <Int32>] [-SkuFamily <String>] [-SkuName <String>]
20-
[-SkuSize <String>] [-SkuTier <SkuTier>] [-StorageAccountName <String>] [-Tag <Hashtable>]
21-
[-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>]
18+
[-SubscriptionId <String>] [-EnableSystemAssignedIdentity] [-KindCapacity <Int32>] [-KindFamily <String>]
19+
[-KindName <String>] [-KindSize <String>] [-KindTier <String>] [-PlanType <String>] [-SkuCapacity <Int32>]
20+
[-SkuFamily <String>] [-SkuName <String>] [-SkuSize <String>] [-SkuTier <String>]
21+
[-StorageAccountName <String>] [-Tag <Hashtable>] [-DefaultProfile <PSObject>] [-Confirm] [-WhatIf]
22+
[<CommonParameters>]
23+
```
24+
25+
### CreateViaJsonFilePath
26+
```
27+
New-AzMixedRealityObjectAnchorsAccount -Name <String> -ResourceGroupName <String> -JsonFilePath <String>
28+
[-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>]
29+
```
30+
31+
### CreateViaJsonString
32+
```
33+
New-AzMixedRealityObjectAnchorsAccount -Name <String> -ResourceGroupName <String> -JsonString <String>
34+
[-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>]
2235
```
2336

2437
## DESCRIPTION
@@ -57,12 +70,12 @@ Accept pipeline input: False
5770
Accept wildcard characters: False
5871
```
5972
60-
### -IdentityType
61-
The identity type.
73+
### -EnableSystemAssignedIdentity
74+
Determines whether to enable a system-assigned identity for the resource.
6275
6376
```yaml
64-
Type: Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Support.ResourceIdentityType
65-
Parameter Sets: (All)
77+
Type: System.Management.Automation.SwitchParameter
78+
Parameter Sets: CreateExpanded
6679
Aliases:
6780

6881
Required: False
@@ -72,13 +85,43 @@ Accept pipeline input: False
7285
Accept wildcard characters: False
7386
```
7487
88+
### -JsonFilePath
89+
Path of Json file supplied to the Create operation
90+
91+
```yaml
92+
Type: System.String
93+
Parameter Sets: CreateViaJsonFilePath
94+
Aliases:
95+
96+
Required: True
97+
Position: Named
98+
Default value: None
99+
Accept pipeline input: False
100+
Accept wildcard characters: False
101+
```
102+
103+
### -JsonString
104+
Json string supplied to the Create operation
105+
106+
```yaml
107+
Type: System.String
108+
Parameter Sets: CreateViaJsonString
109+
Aliases:
110+
111+
Required: True
112+
Position: Named
113+
Default value: None
114+
Accept pipeline input: False
115+
Accept wildcard characters: False
116+
```
117+
75118
### -KindCapacity
76119
If the SKU supports scale out/in then the capacity integer should be included.
77120
If scale out/in is not possible for the resource this may be omitted.
78121
79122
```yaml
80123
Type: System.Int32
81-
Parameter Sets: (All)
124+
Parameter Sets: CreateExpanded
82125
Aliases:
83126

84127
Required: False
@@ -93,7 +136,7 @@ If the service has different generations of hardware, for the same SKU, then tha
93136
94137
```yaml
95138
Type: System.String
96-
Parameter Sets: (All)
139+
Parameter Sets: CreateExpanded
97140
Aliases:
98141

99142
Required: False
@@ -110,7 +153,7 @@ It is typically a letter+number code
110153
111154
```yaml
112155
Type: System.String
113-
Parameter Sets: (All)
156+
Parameter Sets: CreateExpanded
114157
Aliases:
115158

116159
Required: False
@@ -126,7 +169,7 @@ When the name field is the combination of tier and some other value, this would
126169
127170
```yaml
128171
Type: System.String
129-
Parameter Sets: (All)
172+
Parameter Sets: CreateExpanded
130173
Aliases:
131174

132175
Required: False
@@ -140,8 +183,8 @@ Accept wildcard characters: False
140183
This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.
141184
142185
```yaml
143-
Type: Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Support.SkuTier
144-
Parameter Sets: (All)
186+
Type: System.String
187+
Parameter Sets: CreateExpanded
145188
Aliases:
146189

147190
Required: False
@@ -156,7 +199,7 @@ The geo-location where the resource lives
156199
157200
```yaml
158201
Type: System.String
159-
Parameter Sets: (All)
202+
Parameter Sets: CreateExpanded
160203
Aliases:
161204

162205
Required: True
@@ -185,8 +228,8 @@ Accept wildcard characters: False
185228
The identity type.
186229
187230
```yaml
188-
Type: Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Support.ResourceIdentityType
189-
Parameter Sets: (All)
231+
Type: System.String
232+
Parameter Sets: CreateExpanded
190233
Aliases:
191234

192235
Required: False
@@ -217,7 +260,7 @@ If scale out/in is not possible for the resource this may be omitted.
217260
218261
```yaml
219262
Type: System.Int32
220-
Parameter Sets: (All)
263+
Parameter Sets: CreateExpanded
221264
Aliases:
222265

223266
Required: False
@@ -232,7 +275,7 @@ If the service has different generations of hardware, for the same SKU, then tha
232275
233276
```yaml
234277
Type: System.String
235-
Parameter Sets: (All)
278+
Parameter Sets: CreateExpanded
236279
Aliases:
237280

238281
Required: False
@@ -249,7 +292,7 @@ It is typically a letter+number code
249292
250293
```yaml
251294
Type: System.String
252-
Parameter Sets: (All)
295+
Parameter Sets: CreateExpanded
253296
Aliases:
254297

255298
Required: False
@@ -265,7 +308,7 @@ When the name field is the combination of tier and some other value, this would
265308
266309
```yaml
267310
Type: System.String
268-
Parameter Sets: (All)
311+
Parameter Sets: CreateExpanded
269312
Aliases:
270313

271314
Required: False
@@ -279,8 +322,8 @@ Accept wildcard characters: False
279322
This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.
280323
281324
```yaml
282-
Type: Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Support.SkuTier
283-
Parameter Sets: (All)
325+
Type: System.String
326+
Parameter Sets: CreateExpanded
284327
Aliases:
285328

286329
Required: False
@@ -295,7 +338,7 @@ The name of the storage account associated with this accountId
295338
296339
```yaml
297340
Type: System.String
298-
Parameter Sets: (All)
341+
Parameter Sets: CreateExpanded
299342
Aliases:
300343

301344
Required: False
@@ -327,7 +370,7 @@ Resource tags.
327370
328371
```yaml
329372
Type: System.Collections.Hashtable
330-
Parameter Sets: (All)
373+
Parameter Sets: CreateExpanded
331374
Aliases:
332375

333376
Required: False
@@ -375,7 +418,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
375418
376419
## OUTPUTS
377420
378-
### Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.Api20210301Preview.IObjectAnchorsAccount
421+
### Microsoft.Azure.PowerShell.Cmdlets.MixedReality.Models.IObjectAnchorsAccount
379422
380423
## NOTES
381424

0 commit comments

Comments
 (0)