Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions src/DedicatedHsm/DedicatedHsm.Autorest/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the Apache License, Version 2.0 (the ""License"");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an ""AS IS"" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
// is regenerated.

using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")]
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - DedicatedHsm")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.3.2")]
[assembly: System.Reflection.AssemblyVersionAttribute("0.3.2")]
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
[assembly: System.CLSCompliantAttribute(false)]
17 changes: 4 additions & 13 deletions src/DedicatedHsm/DedicatedHsm.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,20 +56,15 @@ module-version: 0.1.0
title: DedicatedHsm
subject-prefix: $(service-name)

# If there are post APIs for some kinds of actions in the RP, you may need to
# uncomment following line to support viaIdentity for these post APIs
# identity-correction-for-post: true

# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
use-extension:
"@autorest/powershell": "3.x"

directive:
# Following is two common directive which are normally required in all the RPs
# 1. Remove the unexpanded parameter set
# 2. For New-* cmdlets, ViaIdentity is not required, so CreateViaIdentityExpanded is removed as well
- where:
variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$
variant: ^(Create|Update)(?!.*?(Expanded|JsonFilePath|JsonString))
remove: true
- where:
variant: ^CreateViaIdentity$|^CreateViaIdentityExpanded$
remove: true
# Remove the set-* cmdlet
- where:
Expand Down Expand Up @@ -102,10 +97,6 @@ directive:
parameter-name: ManagementNetworkProfileSubnetId
set:
parameter-name: ManagementSubnetId
# 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
# - from: swagger-document
# where: $.info
# transform: $['version'] = '2018-10-31'

# table format
- where:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
Module Name: Az.DedicatedHsm
Module Guid: 841c2fad-e8c0-4924-b9b9-9d27d0f40b48
Module Guid: 1fcbb2f1-cb1e-4d67-9da2-5e7b35810c88
Download Help Link: https://learn.microsoft.com/powershell/module/az.dedicatedhsm
Help Version: 1.0.0.0
Locale: en-US
Expand All @@ -19,11 +19,11 @@ Gets a list of egress endpoints (network endpoints of all outbound dependencies)
The operation returns properties of each egress endpoint.

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

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

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

Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ Accept wildcard characters: False

### -InputObject
Identity Parameter
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.DedicatedHsm.Models.IDedicatedHsmIdentity
Expand Down Expand Up @@ -198,7 +197,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.DedicatedHsm.Models.Api20211130.IDedicatedHsm
### Microsoft.Azure.PowerShell.Cmdlets.DedicatedHsm.Models.IDedicatedHsm

## NOTES

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.DedicatedHsm.Models.Api20211130.IOutboundEnvironmentEndpoint
### Microsoft.Azure.PowerShell.Cmdlets.DedicatedHsm.Models.IOutboundEnvironmentEndpoint

## NOTES

Expand Down
78 changes: 60 additions & 18 deletions src/DedicatedHsm/DedicatedHsm.Autorest/docs/New-AzDedicatedHsm.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,34 @@ schema: 2.0.0
# New-AzDedicatedHsm

## SYNOPSIS
Create or Update a dedicated HSM in the specified subscription.
create a dedicated HSM in the specified subscription.

## SYNTAX

### CreateExpanded (Default)
```
New-AzDedicatedHsm -Name <String> -ResourceGroupName <String> -Location <String> [-SubscriptionId <String>]
[-ManagementNetworkInterface <INetworkInterface[]>] [-ManagementSubnetId <String>]
[-NetworkInterface <INetworkInterface[]>] [-Sku <SkuName>] [-StampId <String>] [-SubnetId <String>]
[-NetworkInterface <INetworkInterface[]>] [-Sku <String>] [-StampId <String>] [-SubnetId <String>]
[-Tag <Hashtable>] [-Zone <String[]>] [-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf]
[<CommonParameters>]
```

### CreateViaJsonFilePath
```
New-AzDedicatedHsm -Name <String> -ResourceGroupName <String> -JsonFilePath <String>
[-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf]
[<CommonParameters>]
```

### CreateViaJsonString
```
New-AzDedicatedHsm -Name <String> -ResourceGroupName <String> -JsonString <String> [-SubscriptionId <String>]
[-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [<CommonParameters>]
```

## DESCRIPTION
Create or Update a dedicated HSM in the specified subscription.
create a dedicated HSM in the specified subscription.

## EXAMPLES

Expand Down Expand Up @@ -74,12 +88,42 @@ Accept pipeline input: False
Accept wildcard characters: False
```

### -JsonFilePath
Path of Json file supplied to the Create operation

```yaml
Type: System.String
Parameter Sets: CreateViaJsonFilePath
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -JsonString
Json string supplied to the Create operation

```yaml
Type: System.String
Parameter Sets: CreateViaJsonString
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Location
The supported Azure location where the dedicated HSM should be created.

```yaml
Type: System.String
Parameter Sets: (All)
Parameter Sets: CreateExpanded
Aliases:

Required: True
Expand All @@ -91,11 +135,10 @@ Accept wildcard characters: False

### -ManagementNetworkInterface
Specifies the list of resource Ids for the network interfaces associated with the dedicated HSM.
To construct, see NOTES section for MANAGEMENTNETWORKINTERFACE properties and create a hash table.

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.DedicatedHsm.Models.Api20211130.INetworkInterface[]
Parameter Sets: (All)
Type: Microsoft.Azure.PowerShell.Cmdlets.DedicatedHsm.Models.INetworkInterface[]
Parameter Sets: CreateExpanded
Aliases:

Required: False
Expand All @@ -110,7 +153,7 @@ The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroup

```yaml
Type: System.String
Parameter Sets: (All)
Parameter Sets: CreateExpanded
Aliases:

Required: False
Expand All @@ -137,11 +180,10 @@ Accept wildcard characters: False

### -NetworkInterface
Specifies the list of resource Ids for the network interfaces associated with the dedicated HSM.
To construct, see NOTES section for NETWORKINTERFACE properties and create a hash table.

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.DedicatedHsm.Models.Api20211130.INetworkInterface[]
Parameter Sets: (All)
Type: Microsoft.Azure.PowerShell.Cmdlets.DedicatedHsm.Models.INetworkInterface[]
Parameter Sets: CreateExpanded
Aliases:

Required: False
Expand Down Expand Up @@ -185,8 +227,8 @@ Accept wildcard characters: False
SKU of the dedicated HSM

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.DedicatedHsm.Support.SkuName
Parameter Sets: (All)
Type: System.String
Parameter Sets: CreateExpanded
Aliases:

Required: False
Expand All @@ -201,7 +243,7 @@ This field will be used when RP does not support Availability zones.

```yaml
Type: System.String
Parameter Sets: (All)
Parameter Sets: CreateExpanded
Aliases:

Required: False
Expand All @@ -216,7 +258,7 @@ The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroup

```yaml
Type: System.String
Parameter Sets: (All)
Parameter Sets: CreateExpanded
Aliases:

Required: False
Expand Down Expand Up @@ -247,7 +289,7 @@ Resource tags

```yaml
Type: System.Collections.Hashtable
Parameter Sets: (All)
Parameter Sets: CreateExpanded
Aliases:

Required: False
Expand All @@ -262,7 +304,7 @@ The Dedicated Hsm zones.

```yaml
Type: System.String[]
Parameter Sets: (All)
Parameter Sets: CreateExpanded
Aliases:

Required: False
Expand Down Expand Up @@ -310,7 +352,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.DedicatedHsm.Models.Api20211130.IDedicatedHsm
### Microsoft.Azure.PowerShell.Cmdlets.DedicatedHsm.Models.IDedicatedHsm

## NOTES

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ Accept wildcard characters: False

### -InputObject
Identity Parameter
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.DedicatedHsm.Models.IDedicatedHsmIdentity
Expand Down
Loading