Skip to content

Commit 7d50d8b

Browse files
committed
Az.ArcResourceBridge update generation tool version: autorest.powershell v3->v4
1 parent 6f62052 commit 7d50d8b

26 files changed

+418
-156
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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 - ArcResourceBridge")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.1.0")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("1.1.0")]
25+
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
26+
[assembly: System.CLSCompliantAttribute(false)]

src/ArcResourceBridge/ArcResourceBridge.Autorest/README.md

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,6 @@ title: ArcResourceBridge
3737
module-version: 0.1.0
3838
subject-prefix: $(service-name)
3939

40-
identity-correction-for-post: true
41-
resourcegroup-append: true
42-
nested-object-to-string: true
43-
44-
# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
45-
use-extension:
46-
"@autorest/powershell": "3.x"
47-
4840
directive:
4941
- from: swagger-document
5042
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}"].delete.responses
@@ -68,7 +60,10 @@ directive:
6860
}
6961
7062
- where:
71-
variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$
63+
variant: ^(Create|Update)(?!.*?(Expanded|JsonFilePath|JsonString))
64+
remove: true
65+
- where:
66+
variant: ^CreateViaIdentity$|^CreateViaIdentityExpanded$
7267
remove: true
7368
- where:
7469
verb: Set

src/ArcResourceBridge/ArcResourceBridge.Autorest/docs/Az.ArcResourceBridge.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
Module Name: Az.ArcResourceBridge
3-
Module Guid: 329aa971-c12b-4d4b-abe5-3b638b0b5660
3+
Module Guid: e97e4f24-db76-4243-a318-250467b4a331
44
Download Help Link: https://learn.microsoft.com/powershell/module/az.arcresourcebridge
55
Help Version: 1.0.0.0
66
Locale: en-US
@@ -27,11 +27,11 @@ Gets the telemetry config.
2727
Gets the upgrade graph of an Appliance with a specified resource group and name and specific release train.
2828

2929
### [New-AzArcResourceBridge](New-AzArcResourceBridge.md)
30-
Creates or updates an Appliance in the specified Subscription and Resource Group.
30+
Create an Appliance in the specified Subscription and Resource Group.
3131

3232
### [Remove-AzArcResourceBridge](Remove-AzArcResourceBridge.md)
3333
Deletes an Appliance with the specified Resource Name, Resource Group, and Subscription Id.
3434

3535
### [Update-AzArcResourceBridge](Update-AzArcResourceBridge.md)
36-
Updates an Appliance with the specified Resource Name in the specified Resource Group and Subscription.
36+
Update an Appliance with the specified Resource Name in the specified Resource Group and Subscription.
3737

src/ArcResourceBridge/ArcResourceBridge.Autorest/docs/Get-AzArcResourceBridge.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ Accept wildcard characters: False
9999
100100
### -InputObject
101101
Identity Parameter
102-
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
103102
104103
```yaml
105104
Type: Microsoft.Azure.PowerShell.Cmdlets.ArcResourceBridge.Models.IArcResourceBridgeIdentity
@@ -168,7 +167,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
168167
169168
## OUTPUTS
170169
171-
### Microsoft.Azure.PowerShell.Cmdlets.ArcResourceBridge.Models.Api20221027.IAppliance
170+
### Microsoft.Azure.PowerShell.Cmdlets.ArcResourceBridge.Models.IAppliance
172171
173172
## NOTES
174173

src/ArcResourceBridge/ArcResourceBridge.Autorest/docs/Get-AzArcResourceBridgeApplianceCredential.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
142142
143143
## OUTPUTS
144144
145-
### Microsoft.Azure.PowerShell.Cmdlets.ArcResourceBridge.Models.Api20221027.IApplianceListCredentialResults
145+
### Microsoft.Azure.PowerShell.Cmdlets.ArcResourceBridge.Models.IApplianceListCredentialResults
146146
147147
## NOTES
148148

src/ArcResourceBridge/ArcResourceBridge.Autorest/docs/Get-AzArcResourceBridgeCredential.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
137137
138138
## OUTPUTS
139139
140-
### Microsoft.Azure.PowerShell.Cmdlets.ArcResourceBridge.Models.Api20221027.IApplianceListKeysResults
140+
### Microsoft.Azure.PowerShell.Cmdlets.ArcResourceBridge.Models.IApplianceListKeysResults
141141
142142
## NOTES
143143

src/ArcResourceBridge/ArcResourceBridge.Autorest/docs/Get-AzArcResourceBridgeTelemetryConfig.md

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,11 @@ Gets the telemetry config.
1212

1313
## SYNTAX
1414

15-
### Get (Default)
1615
```
1716
Get-AzArcResourceBridgeTelemetryConfig [-SubscriptionId <String[]>] [-DefaultProfile <PSObject>]
1817
[<CommonParameters>]
1918
```
2019

21-
### GetViaIdentity
22-
```
23-
Get-AzArcResourceBridgeTelemetryConfig -InputObject <IArcResourceBridgeIdentity> [-DefaultProfile <PSObject>]
24-
[<CommonParameters>]
25-
```
26-
2720
## DESCRIPTION
2821
Gets the telemetry config.
2922

@@ -58,28 +51,12 @@ Accept pipeline input: False
5851
Accept wildcard characters: False
5952
```
6053
61-
### -InputObject
62-
Identity Parameter
63-
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
64-
65-
```yaml
66-
Type: Microsoft.Azure.PowerShell.Cmdlets.ArcResourceBridge.Models.IArcResourceBridgeIdentity
67-
Parameter Sets: GetViaIdentity
68-
Aliases:
69-
70-
Required: True
71-
Position: Named
72-
Default value: None
73-
Accept pipeline input: True (ByValue)
74-
Accept wildcard characters: False
75-
```
76-
7754
### -SubscriptionId
7855
The ID of the target subscription.
7956
8057
```yaml
8158
Type: System.String[]
82-
Parameter Sets: Get
59+
Parameter Sets: (All)
8360
Aliases:
8461

8562
Required: False
@@ -94,11 +71,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
9471
9572
## INPUTS
9673
97-
### Microsoft.Azure.PowerShell.Cmdlets.ArcResourceBridge.Models.IArcResourceBridgeIdentity
98-
9974
## OUTPUTS
10075
101-
### System.String
76+
### Microsoft.Azure.PowerShell.Cmdlets.ArcResourceBridge.Models.IApplianceGetTelemetryConfigResult
10277
10378
## NOTES
10479

src/ArcResourceBridge/ArcResourceBridge.Autorest/docs/Get-AzArcResourceBridgeUpgradeGraph.md

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ Get-AzArcResourceBridgeUpgradeGraph -InputObject <IArcResourceBridgeIdentity> [-
2424
[<CommonParameters>]
2525
```
2626

27+
### GetViaIdentityAppliance
28+
```
29+
Get-AzArcResourceBridgeUpgradeGraph -ApplianceInputObject <IArcResourceBridgeIdentity> -UpgradeGraph <String>
30+
[-DefaultProfile <PSObject>] [<CommonParameters>]
31+
```
32+
2733
## DESCRIPTION
2834
Gets the upgrade graph of an Appliance with a specified resource group and name and specific release train.
2935

@@ -44,6 +50,21 @@ Gets the upgrade graph of an Appliance with a specified resource group and name
4450

4551
## PARAMETERS
4652

53+
### -ApplianceInputObject
54+
Identity Parameter
55+
56+
```yaml
57+
Type: Microsoft.Azure.PowerShell.Cmdlets.ArcResourceBridge.Models.IArcResourceBridgeIdentity
58+
Parameter Sets: GetViaIdentityAppliance
59+
Aliases:
60+
61+
Required: True
62+
Position: Named
63+
Default value: None
64+
Accept pipeline input: True (ByValue)
65+
Accept wildcard characters: False
66+
```
67+
4768
### -DefaultProfile
4869
The DefaultProfile parameter is not functional.
4970
Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
@@ -62,7 +83,6 @@ Accept wildcard characters: False
6283
6384
### -InputObject
6485
Identity Parameter
65-
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
6686
6787
```yaml
6888
Type: Microsoft.Azure.PowerShell.Cmdlets.ArcResourceBridge.Models.IArcResourceBridgeIdentity
@@ -127,7 +147,7 @@ Upgrade graph version, ex - stable
127147
128148
```yaml
129149
Type: System.String
130-
Parameter Sets: Get
150+
Parameter Sets: Get, GetViaIdentityAppliance
131151
Aliases:
132152

133153
Required: True
@@ -146,7 +166,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
146166
147167
## OUTPUTS
148168
149-
### Microsoft.Azure.PowerShell.Cmdlets.ArcResourceBridge.Models.Api20221027.IUpgradeGraph
169+
### Microsoft.Azure.PowerShell.Cmdlets.ArcResourceBridge.Models.IUpgradeGraph
150170
151171
## NOTES
152172

src/ArcResourceBridge/ArcResourceBridge.Autorest/docs/New-AzArcResourceBridge.md

Lines changed: 62 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,34 @@ schema: 2.0.0
88
# New-AzArcResourceBridge
99

1010
## SYNOPSIS
11-
Creates or updates an Appliance in the specified Subscription and Resource Group.
11+
Create an Appliance in the specified Subscription and Resource Group.
1212

1313
## SYNTAX
1414

15+
### CreateExpanded (Default)
1516
```
1617
New-AzArcResourceBridge -Name <String> -ResourceGroupName <String> -Location <String>
17-
[-SubscriptionId <String>] [-Distro <Distro>] [-IdentityType <ResourceIdentityType>]
18-
[-InfrastructureConfigProvider <Provider>] [-PublicKey <String>] [-Tag <Hashtable>] [-Version <String>]
18+
[-SubscriptionId <String>] [-Distro <String>] [-EnableSystemAssignedIdentity]
19+
[-InfrastructureConfigProvider <String>] [-PublicKey <String>] [-Tag <Hashtable>] [-Version <String>]
1920
[-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [<CommonParameters>]
2021
```
2122

23+
### CreateViaJsonFilePath
24+
```
25+
New-AzArcResourceBridge -Name <String> -ResourceGroupName <String> -JsonFilePath <String>
26+
[-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf]
27+
[<CommonParameters>]
28+
```
29+
30+
### CreateViaJsonString
31+
```
32+
New-AzArcResourceBridge -Name <String> -ResourceGroupName <String> -JsonString <String>
33+
[-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf]
34+
[<CommonParameters>]
35+
```
36+
2237
## DESCRIPTION
23-
Creates or updates an Appliance in the specified Subscription and Resource Group.
38+
Create an Appliance in the specified Subscription and Resource Group.
2439

2540
## EXAMPLES
2641

@@ -75,8 +90,8 @@ Represents a supported Fabric/Infra.
7590
(AKSEdge etc...).
7691
7792
```yaml
78-
Type: Microsoft.Azure.PowerShell.Cmdlets.ArcResourceBridge.Support.Distro
79-
Parameter Sets: (All)
93+
Type: System.String
94+
Parameter Sets: CreateExpanded
8095
Aliases:
8196

8297
Required: False
@@ -86,12 +101,12 @@ Accept pipeline input: False
86101
Accept wildcard characters: False
87102
```
88103
89-
### -IdentityType
90-
The identity type.
104+
### -EnableSystemAssignedIdentity
105+
Determines whether to enable a system-assigned identity for the resource.
91106
92107
```yaml
93-
Type: Microsoft.Azure.PowerShell.Cmdlets.ArcResourceBridge.Support.ResourceIdentityType
94-
Parameter Sets: (All)
108+
Type: System.Management.Automation.SwitchParameter
109+
Parameter Sets: CreateExpanded
95110
Aliases:
96111

97112
Required: False
@@ -105,8 +120,8 @@ Accept wildcard characters: False
105120
Information about the connected appliance.
106121
107122
```yaml
108-
Type: Microsoft.Azure.PowerShell.Cmdlets.ArcResourceBridge.Support.Provider
109-
Parameter Sets: (All)
123+
Type: System.String
124+
Parameter Sets: CreateExpanded
110125
Aliases:
111126

112127
Required: False
@@ -116,12 +131,42 @@ Accept pipeline input: False
116131
Accept wildcard characters: False
117132
```
118133
134+
### -JsonFilePath
135+
Path of Json file supplied to the Create operation
136+
137+
```yaml
138+
Type: System.String
139+
Parameter Sets: CreateViaJsonFilePath
140+
Aliases:
141+
142+
Required: True
143+
Position: Named
144+
Default value: None
145+
Accept pipeline input: False
146+
Accept wildcard characters: False
147+
```
148+
149+
### -JsonString
150+
Json string supplied to the Create operation
151+
152+
```yaml
153+
Type: System.String
154+
Parameter Sets: CreateViaJsonString
155+
Aliases:
156+
157+
Required: True
158+
Position: Named
159+
Default value: None
160+
Accept pipeline input: False
161+
Accept wildcard characters: False
162+
```
163+
119164
### -Location
120165
The geo-location where the resource lives
121166
122167
```yaml
123168
Type: System.String
124-
Parameter Sets: (All)
169+
Parameter Sets: CreateExpanded
125170
Aliases:
126171

127172
Required: True
@@ -167,7 +212,7 @@ Can only be set once.
167212
168213
```yaml
169214
Type: System.String
170-
Parameter Sets: (All)
215+
Parameter Sets: CreateExpanded
171216
Aliases:
172217

173218
Required: False
@@ -213,7 +258,7 @@ Resource tags.
213258
214259
```yaml
215260
Type: System.Collections.Hashtable
216-
Parameter Sets: (All)
261+
Parameter Sets: CreateExpanded
217262
Aliases:
218263

219264
Required: False
@@ -228,7 +273,7 @@ Version of the Appliance
228273
229274
```yaml
230275
Type: System.String
231-
Parameter Sets: (All)
276+
Parameter Sets: CreateExpanded
232277
Aliases:
233278

234279
Required: False
@@ -276,7 +321,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
276321
277322
## OUTPUTS
278323
279-
### Microsoft.Azure.PowerShell.Cmdlets.ArcResourceBridge.Models.Api20221027.IAppliance
324+
### Microsoft.Azure.PowerShell.Cmdlets.ArcResourceBridge.Models.IAppliance
280325
281326
## NOTES
282327

src/ArcResourceBridge/ArcResourceBridge.Autorest/docs/Remove-AzArcResourceBridge.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ Accept wildcard characters: False
7878
7979
### -InputObject
8080
Identity Parameter
81-
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
8281
8382
```yaml
8483
Type: Microsoft.Azure.PowerShell.Cmdlets.ArcResourceBridge.Models.IArcResourceBridgeIdentity

0 commit comments

Comments
 (0)