Skip to content
Draft
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/Qumulo/Qumulo.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 - Qumulo")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.3")]
[assembly: System.Reflection.AssemblyVersionAttribute("0.1.3")]
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
[assembly: System.CLSCompliantAttribute(false)]
7 changes: 2 additions & 5 deletions src/Qumulo/Qumulo.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,10 @@ subject-prefix: $(service-name)
resourcegroup-append: true
nested-object-to-string: 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:
# Remove non-expanded Create/Update variants (keep Expanded, JsonFilePath, JsonString)
- where:
variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$
variant: ^(Create|Update)(?!.*?(Expanded|JsonFilePath|JsonString))
remove: true
# don't support updation of resource
- where:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Update-AzQumuloFileSystem -ResourceGroupName ps-joyer-test -Name qumulo-resource
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Qumulo.Models.IQumuloIdentity
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.Qumulo.Models.Api20221012Preview.IFileSystemResource
Microsoft.Azure.PowerShell.Cmdlets.Qumulo.Models.IFileSystemResource
.Notes
COMPLEX PARAMETER PROPERTIES

Expand All @@ -40,7 +40,7 @@ INPUTOBJECT <IQumuloIdentity>: Identity Parameter
https://learn.microsoft.com/powershell/module/az.qumulo/update-azqumulofilesystem
#>
function Update-AzQumuloFileSystem {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Qumulo.Models.Api20221012Preview.IFileSystemResource])]
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Qumulo.Models.IFileSystemResource])]
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
Expand Down Expand Up @@ -73,7 +73,7 @@ param(

[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.Qumulo.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.Qumulo.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Qumulo.Models.Api20221012Preview.IFileSystemResourceUpdateTags]))]
[Microsoft.Azure.PowerShell.Cmdlets.Qumulo.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Qumulo.Models.IFileSystemResourceUpdateTags]))]
[System.Collections.Hashtable]
# Resource tags.
${Tag},
Expand Down
2 changes: 1 addition & 1 deletion src/Qumulo/Qumulo.Autorest/docs/Az.Qumulo.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
Module Name: Az.Qumulo
Module Guid: 181af76f-3704-40ce-9fa9-c5826313916c
Module Guid: 9d1249d7-87ab-4d0c-9e78-ef8080b604d3
Download Help Link: https://learn.microsoft.com/powershell/module/az.qumulo
Help Version: 1.0.0.0
Locale: en-US
Expand Down
3 changes: 1 addition & 2 deletions src/Qumulo/Qumulo.Autorest/docs/Get-AzQumuloFileSystem.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,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.Qumulo.Models.IQumuloIdentity
Expand Down Expand Up @@ -174,7 +173,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.Qumulo.Models.Api20221012Preview.IFileSystemResource
### Microsoft.Azure.PowerShell.Cmdlets.Qumulo.Models.IFileSystemResource

## NOTES

Expand Down
134 changes: 103 additions & 31 deletions src/Qumulo/Qumulo.Autorest/docs/New-AzQumuloFileSystem.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,42 @@ Create a file system resource

## SYNTAX

### CreateViaIdentityExpanded (Default)
```
New-AzQumuloFileSystem -InputObject <IQumuloIdentity> -AdminPassword <SecureString>
-DelegatedSubnetId <String> -InitialCapacity <Int32> -Location <String> -MarketplaceOfferId <String>
-MarketplacePlanId <String> -MarketplacePublisherId <String> -StorageSku <String> -UserEmail <String>
Comment on lines +15 to +19
[-AvailabilityZone <String>] [-ClusterLoginUrl <String>] [-EnableSystemAssignedIdentity]
[-MarketplaceSubscriptionId <String>] [-PrivateIP <String[]>] [-Tag <Hashtable>]
[-UserAssignedIdentity <String[]>] [-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf]
[<CommonParameters>]
```

### CreateExpanded
```
New-AzQumuloFileSystem -Name <String> -ResourceGroupName <String> -AdminPassword <SecureString>
-DelegatedSubnetId <String> -InitialCapacity <Int32> -Location <String> -MarketplaceOfferId <String>
-MarketplacePlanId <String> -MarketplacePublisherId <String> -StorageSku <StorageSku> -UserEmail <String>
-MarketplacePlanId <String> -MarketplacePublisherId <String> -StorageSku <String> -UserEmail <String>
[-SubscriptionId <String>] [-AvailabilityZone <String>] [-ClusterLoginUrl <String>]
[-IdentityType <ManagedServiceIdentityType>] [-MarketplaceSubscriptionId <String>] [-PrivateIP <String[]>]
[-Tag <Hashtable>] [-UserAssignedIdentity <Hashtable>] [-DefaultProfile <PSObject>] [-AsJob] [-NoWait]
[-EnableSystemAssignedIdentity] [-MarketplaceSubscriptionId <String>] [-PrivateIP <String[]>]
[-Tag <Hashtable>] [-UserAssignedIdentity <String[]>] [-DefaultProfile <PSObject>] [-AsJob] [-NoWait]
[-Confirm] [-WhatIf] [<CommonParameters>]
```

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

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

## DESCRIPTION
Create a file system resource

Expand Down Expand Up @@ -65,7 +91,7 @@ Initial administrator password of the resource

```yaml
Type: System.Security.SecureString
Parameter Sets: (All)
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
Aliases:

Required: True
Expand Down Expand Up @@ -95,7 +121,7 @@ Availability zone

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

Required: False
Expand All @@ -110,7 +136,7 @@ File system Id of the resource

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

Required: False
Expand Down Expand Up @@ -141,7 +167,7 @@ Delegated subnet id for Vnet injection

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

Required: True
Expand All @@ -151,12 +177,12 @@ Accept pipeline input: False
Accept wildcard characters: False
```

### -IdentityType
Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
### -EnableSystemAssignedIdentity
Determines whether to enable a system-assigned identity for the resource.

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.Qumulo.Support.ManagedServiceIdentityType
Parameter Sets: (All)
Type: System.Management.Automation.SwitchParameter
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
Aliases:

Required: False
Expand All @@ -171,7 +197,52 @@ Storage capacity in TB

```yaml
Type: System.Int32
Parameter Sets: (All)
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
Aliases:

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

### -InputObject
Identity Parameter

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.Qumulo.Models.IQumuloIdentity
Parameter Sets: CreateViaIdentityExpanded
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
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
Expand All @@ -186,7 +257,7 @@ The geo-location where the resource lives

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

Required: True
Expand All @@ -201,7 +272,7 @@ Offer Id

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

Required: True
Expand All @@ -216,7 +287,7 @@ Plan Id

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

Required: True
Expand All @@ -231,7 +302,7 @@ Publisher Id

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

Required: True
Expand All @@ -246,7 +317,7 @@ Marketplace Subscription Id

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

Required: False
Expand All @@ -261,7 +332,7 @@ Name of the File System resource

```yaml
Type: System.String
Parameter Sets: (All)
Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString
Aliases: FileSystemName

Required: True
Expand Down Expand Up @@ -291,7 +362,7 @@ Private IPs of the resource

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

Required: False
Expand All @@ -307,7 +378,7 @@ The name is case insensitive.

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

Required: True
Expand All @@ -321,8 +392,8 @@ Accept wildcard characters: False
Storage Sku

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.Qumulo.Support.StorageSku
Parameter Sets: (All)
Type: System.String
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
Aliases:

Required: True
Expand All @@ -337,7 +408,7 @@ The ID of the target subscription.

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

Required: False
Expand All @@ -352,7 +423,7 @@ Resource tags.

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

Required: False
Expand All @@ -363,13 +434,12 @@ Accept wildcard characters: False
```

### -UserAssignedIdentity
The set of user assigned identities associated with the resource.
The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.
The dictionary values can be empty objects ({}) in requests.
The array of user assigned identities associated with the resource.
The elements in array will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.'

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

Required: False
Expand All @@ -384,7 +454,7 @@ User Email

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

Required: True
Expand Down Expand Up @@ -430,9 +500,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## INPUTS

### Microsoft.Azure.PowerShell.Cmdlets.Qumulo.Models.IQumuloIdentity

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.Qumulo.Models.Api20221012Preview.IFileSystemResource
### Microsoft.Azure.PowerShell.Cmdlets.Qumulo.Models.IFileSystemResource

## NOTES

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,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.Qumulo.Models.IQumuloIdentity
Expand Down
Loading
Loading