Skip to content

Bernard upgrade qumulo to autorest v4 #27779

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
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)]
10 changes: 0 additions & 10 deletions src/Qumulo/Qumulo.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,6 @@ module-version: 0.1.0
title: Qumulo
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
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:
- where:
variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$
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
4 changes: 2 additions & 2 deletions 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: ae816842-9c94-407e-b5ca-567ce7d027ce
Download Help Link: https://learn.microsoft.com/powershell/module/az.qumulo
Help Version: 1.0.0.0
Locale: en-US
Expand All @@ -15,7 +15,7 @@ Microsoft Azure PowerShell: Qumulo cmdlets
Get a file system resource

### [New-AzQumuloFileSystem](New-AzQumuloFileSystem.md)
Create a file system resource
create a file system resource

### [Remove-AzQumuloFileSystem](Remove-AzQumuloFileSystem.md)
Delete a file system resource
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
104 changes: 74 additions & 30 deletions src/Qumulo/Qumulo.Autorest/docs/New-AzQumuloFileSystem.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,37 @@ schema: 2.0.0
# New-AzQumuloFileSystem

## SYNOPSIS
Create a file system resource
create a file system resource

## SYNTAX

### CreateExpanded (Default)
```
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
create a file system resource

## EXAMPLES

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

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

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

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

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

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

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

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

Required: True
Expand All @@ -151,12 +166,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
Aliases:

Required: False
Expand All @@ -171,7 +186,37 @@ Storage capacity in TB

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

Required: True
Position: Named
Default value: None
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
Expand All @@ -186,7 +231,7 @@ The geo-location where the resource lives

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

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

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

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

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

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

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

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

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

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

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

Required: False
Expand Down Expand Up @@ -321,8 +366,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
Aliases:

Required: True
Expand Down Expand Up @@ -352,7 +397,7 @@ Resource tags.

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

Required: False
Expand All @@ -363,13 +408,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
Aliases:

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

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

Required: True
Expand Down Expand Up @@ -432,7 +476,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
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
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,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
2 changes: 1 addition & 1 deletion src/Qumulo/Qumulo.Autorest/generate-info.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"generate_Id": "829c2068-3711-4b10-8582-65aabac4323d"
"generate_Id": "84f5cb94-24b7-43cb-a719-8818a37bd0a8"
}
11 changes: 11 additions & 0 deletions src/Qumulo/Qumulo.Autorest/resources/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Resources
This directory can contain any additional resources for module that are not required at runtime. This directory **does not** get packaged with the module. If you have assets for custom implementation, place them into the `..\custom` folder.

## Info
- Modifiable: yes
- Generated: no
- Committed: yes
- Packaged: no

## Purpose
Use this folder to put anything you want to keep around as part of the repository for the module, but is not something that is required for the module. For example, development files, packaged builds, or additional information. This is only intended to be used in repositories where the module's output directory is cleaned, but tangential resources for the module want to remain intact.
Loading
Loading