Skip to content

Commit fc01bf0

Browse files
authored
[Az.DedicatedHsm] Update generation tool version: autorest.powershell v3->v4 (Azure#27607)
1 parent bb597ae commit fc01bf0

19 files changed

+362
-95
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 - DedicatedHsm")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.3.2")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("0.3.2")]
25+
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
26+
[assembly: System.CLSCompliantAttribute(false)]

src/DedicatedHsm/DedicatedHsm.Autorest/README.md

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -56,20 +56,15 @@ module-version: 0.1.0
5656
title: DedicatedHsm
5757
subject-prefix: $(service-name)
5858

59-
# If there are post APIs for some kinds of actions in the RP, you may need to
60-
# uncomment following line to support viaIdentity for these post APIs
61-
# identity-correction-for-post: true
62-
63-
# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
64-
use-extension:
65-
"@autorest/powershell": "3.x"
66-
6759
directive:
6860
# Following is two common directive which are normally required in all the RPs
6961
# 1. Remove the unexpanded parameter set
7062
# 2. For New-* cmdlets, ViaIdentity is not required, so CreateViaIdentityExpanded is removed as well
7163
- where:
72-
variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$
64+
variant: ^(Create|Update)(?!.*?(Expanded|JsonFilePath|JsonString))
65+
remove: true
66+
- where:
67+
variant: ^CreateViaIdentity$|^CreateViaIdentityExpanded$
7368
remove: true
7469
# Remove the set-* cmdlet
7570
- where:
@@ -102,10 +97,6 @@ directive:
10297
parameter-name: ManagementNetworkProfileSubnetId
10398
set:
10499
parameter-name: ManagementSubnetId
105-
# Service team asked us to use 2018-10-31, should be the same as 2018-10-31-preview, but it's not ready on swagger yet
106-
# - from: swagger-document
107-
# where: $.info
108-
# transform: $['version'] = '2018-10-31'
109100

110101
# table format
111102
- where:

src/DedicatedHsm/DedicatedHsm.Autorest/docs/Az.DedicatedHsm.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
Module Name: Az.DedicatedHsm
3-
Module Guid: 841c2fad-e8c0-4924-b9b9-9d27d0f40b48
3+
Module Guid: 1fcbb2f1-cb1e-4d67-9da2-5e7b35810c88
44
Download Help Link: https://learn.microsoft.com/powershell/module/az.dedicatedhsm
55
Help Version: 1.0.0.0
66
Locale: en-US
@@ -19,11 +19,11 @@ Gets a list of egress endpoints (network endpoints of all outbound dependencies)
1919
The operation returns properties of each egress endpoint.
2020

2121
### [New-AzDedicatedHsm](New-AzDedicatedHsm.md)
22-
Create or Update a dedicated HSM in the specified subscription.
22+
create a dedicated HSM in the specified subscription.
2323

2424
### [Remove-AzDedicatedHsm](Remove-AzDedicatedHsm.md)
2525
Deletes the specified Azure Dedicated HSM.
2626

2727
### [Update-AzDedicatedHsm](Update-AzDedicatedHsm.md)
28-
Update a dedicated HSM in the specified subscription.
28+
update a dedicated HSM in the specified subscription.
2929

src/DedicatedHsm/DedicatedHsm.Autorest/docs/Get-AzDedicatedHsm.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ Accept wildcard characters: False
114114
115115
### -InputObject
116116
Identity Parameter
117-
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
118117
119118
```yaml
120119
Type: Microsoft.Azure.PowerShell.Cmdlets.DedicatedHsm.Models.IDedicatedHsmIdentity
@@ -198,7 +197,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
198197
199198
## OUTPUTS
200199
201-
### Microsoft.Azure.PowerShell.Cmdlets.DedicatedHsm.Models.Api20211130.IDedicatedHsm
200+
### Microsoft.Azure.PowerShell.Cmdlets.DedicatedHsm.Models.IDedicatedHsm
202201
203202
## NOTES
204203

src/DedicatedHsm/DedicatedHsm.Autorest/docs/Get-AzDedicatedHsmOutboundNetworkDependencyEndpoint.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
103103
104104
## OUTPUTS
105105
106-
### Microsoft.Azure.PowerShell.Cmdlets.DedicatedHsm.Models.Api20211130.IOutboundEnvironmentEndpoint
106+
### Microsoft.Azure.PowerShell.Cmdlets.DedicatedHsm.Models.IOutboundEnvironmentEndpoint
107107
108108
## NOTES
109109

src/DedicatedHsm/DedicatedHsm.Autorest/docs/New-AzDedicatedHsm.md

Lines changed: 60 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,34 @@ schema: 2.0.0
88
# New-AzDedicatedHsm
99

1010
## SYNOPSIS
11-
Create or Update a dedicated HSM in the specified subscription.
11+
create a dedicated HSM in the specified subscription.
1212

1313
## SYNTAX
1414

15+
### CreateExpanded (Default)
1516
```
1617
New-AzDedicatedHsm -Name <String> -ResourceGroupName <String> -Location <String> [-SubscriptionId <String>]
1718
[-ManagementNetworkInterface <INetworkInterface[]>] [-ManagementSubnetId <String>]
18-
[-NetworkInterface <INetworkInterface[]>] [-Sku <SkuName>] [-StampId <String>] [-SubnetId <String>]
19+
[-NetworkInterface <INetworkInterface[]>] [-Sku <String>] [-StampId <String>] [-SubnetId <String>]
1920
[-Tag <Hashtable>] [-Zone <String[]>] [-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf]
2021
[<CommonParameters>]
2122
```
2223

24+
### CreateViaJsonFilePath
25+
```
26+
New-AzDedicatedHsm -Name <String> -ResourceGroupName <String> -JsonFilePath <String>
27+
[-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf]
28+
[<CommonParameters>]
29+
```
30+
31+
### CreateViaJsonString
32+
```
33+
New-AzDedicatedHsm -Name <String> -ResourceGroupName <String> -JsonString <String> [-SubscriptionId <String>]
34+
[-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [<CommonParameters>]
35+
```
36+
2337
## DESCRIPTION
24-
Create or Update a dedicated HSM in the specified subscription.
38+
create a dedicated HSM in the specified subscription.
2539

2640
## EXAMPLES
2741

@@ -74,12 +88,42 @@ Accept pipeline input: False
7488
Accept wildcard characters: False
7589
```
7690
91+
### -JsonFilePath
92+
Path of Json file supplied to the Create operation
93+
94+
```yaml
95+
Type: System.String
96+
Parameter Sets: CreateViaJsonFilePath
97+
Aliases:
98+
99+
Required: True
100+
Position: Named
101+
Default value: None
102+
Accept pipeline input: False
103+
Accept wildcard characters: False
104+
```
105+
106+
### -JsonString
107+
Json string supplied to the Create operation
108+
109+
```yaml
110+
Type: System.String
111+
Parameter Sets: CreateViaJsonString
112+
Aliases:
113+
114+
Required: True
115+
Position: Named
116+
Default value: None
117+
Accept pipeline input: False
118+
Accept wildcard characters: False
119+
```
120+
77121
### -Location
78122
The supported Azure location where the dedicated HSM should be created.
79123
80124
```yaml
81125
Type: System.String
82-
Parameter Sets: (All)
126+
Parameter Sets: CreateExpanded
83127
Aliases:
84128

85129
Required: True
@@ -91,11 +135,10 @@ Accept wildcard characters: False
91135
92136
### -ManagementNetworkInterface
93137
Specifies the list of resource Ids for the network interfaces associated with the dedicated HSM.
94-
To construct, see NOTES section for MANAGEMENTNETWORKINTERFACE properties and create a hash table.
95138
96139
```yaml
97-
Type: Microsoft.Azure.PowerShell.Cmdlets.DedicatedHsm.Models.Api20211130.INetworkInterface[]
98-
Parameter Sets: (All)
140+
Type: Microsoft.Azure.PowerShell.Cmdlets.DedicatedHsm.Models.INetworkInterface[]
141+
Parameter Sets: CreateExpanded
99142
Aliases:
100143

101144
Required: False
@@ -110,7 +153,7 @@ The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroup
110153
111154
```yaml
112155
Type: System.String
113-
Parameter Sets: (All)
156+
Parameter Sets: CreateExpanded
114157
Aliases:
115158

116159
Required: False
@@ -137,11 +180,10 @@ Accept wildcard characters: False
137180
138181
### -NetworkInterface
139182
Specifies the list of resource Ids for the network interfaces associated with the dedicated HSM.
140-
To construct, see NOTES section for NETWORKINTERFACE properties and create a hash table.
141183
142184
```yaml
143-
Type: Microsoft.Azure.PowerShell.Cmdlets.DedicatedHsm.Models.Api20211130.INetworkInterface[]
144-
Parameter Sets: (All)
185+
Type: Microsoft.Azure.PowerShell.Cmdlets.DedicatedHsm.Models.INetworkInterface[]
186+
Parameter Sets: CreateExpanded
145187
Aliases:
146188

147189
Required: False
@@ -185,8 +227,8 @@ Accept wildcard characters: False
185227
SKU of the dedicated HSM
186228
187229
```yaml
188-
Type: Microsoft.Azure.PowerShell.Cmdlets.DedicatedHsm.Support.SkuName
189-
Parameter Sets: (All)
230+
Type: System.String
231+
Parameter Sets: CreateExpanded
190232
Aliases:
191233

192234
Required: False
@@ -201,7 +243,7 @@ This field will be used when RP does not support Availability zones.
201243
202244
```yaml
203245
Type: System.String
204-
Parameter Sets: (All)
246+
Parameter Sets: CreateExpanded
205247
Aliases:
206248

207249
Required: False
@@ -216,7 +258,7 @@ The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroup
216258
217259
```yaml
218260
Type: System.String
219-
Parameter Sets: (All)
261+
Parameter Sets: CreateExpanded
220262
Aliases:
221263

222264
Required: False
@@ -247,7 +289,7 @@ Resource tags
247289
248290
```yaml
249291
Type: System.Collections.Hashtable
250-
Parameter Sets: (All)
292+
Parameter Sets: CreateExpanded
251293
Aliases:
252294

253295
Required: False
@@ -262,7 +304,7 @@ The Dedicated Hsm zones.
262304
263305
```yaml
264306
Type: System.String[]
265-
Parameter Sets: (All)
307+
Parameter Sets: CreateExpanded
266308
Aliases:
267309

268310
Required: False
@@ -310,7 +352,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
310352
311353
## OUTPUTS
312354
313-
### Microsoft.Azure.PowerShell.Cmdlets.DedicatedHsm.Models.Api20211130.IDedicatedHsm
355+
### Microsoft.Azure.PowerShell.Cmdlets.DedicatedHsm.Models.IDedicatedHsm
314356
315357
## NOTES
316358

src/DedicatedHsm/DedicatedHsm.Autorest/docs/Remove-AzDedicatedHsm.md

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

0 commit comments

Comments
 (0)