Skip to content

[Az.Automanage] Update generation tool version: autorest.powershell v3->v4 #28179

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 2 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/Automanage/Automanage.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 - Automanage")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.1.0")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.1.0")]
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
[assembly: System.CLSCompliantAttribute(false)]
17 changes: 4 additions & 13 deletions src/Automanage/Automanage.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,6 @@ require:
input-file:
- $(repo)/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/automanage.json

# title: Databricks
# subject-prefix: $(service-name)

inlining-threshold: 100
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:
- from: swagger-document
where: $.definitions.ConfigurationDictionary
Expand All @@ -63,9 +52,11 @@ directive:
verb: Set
remove: true

# remove variant
- where:
variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$
variant: ^(Create|Update)(?!.*?(Expanded|JsonFilePath|JsonString))
remove: true
- where:
variant: ^CreateViaIdentity$|^CreateViaIdentityExpanded$
remove: true

- where:
Expand Down
21 changes: 15 additions & 6 deletions src/Automanage/Automanage.Autorest/docs/Az.Automanage.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
Module Name: Az.Automanage
Module Guid: b573b797-567a-4f0d-8ba3-6a447bed6278
Module Guid: 3008154d-a7cb-4ea0-ac19-475ebc2e4ae3
Download Help Link: https://learn.microsoft.com/powershell/module/az.automanage
Help Version: 1.0.0.0
Locale: en-US
Expand Down Expand Up @@ -36,16 +36,16 @@ Get information about a report associated with a configuration profile assignmen
Get information about a report associated with a configuration profile assignment run

### [New-AzAutomanageConfigProfile](New-AzAutomanageConfigProfile.md)
Creates a configuration profile
Create a configuration profile

### [New-AzAutomanageConfigProfileAssignment](New-AzAutomanageConfigProfileAssignment.md)
Creates an association between a VM and Automanage configuration profile
Create an association between a VM and Automanage configuration profile

### [New-AzAutomanageConfigProfileHciAssignment](New-AzAutomanageConfigProfileHciAssignment.md)
Creates an association between a AzureStackHCI cluster and Automanage configuration profile
Create an association between a AzureStackHCI cluster and Automanage configuration profile

### [New-AzAutomanageConfigProfileHcrpAssignment](New-AzAutomanageConfigProfileHcrpAssignment.md)
Creates an association between a ARC machine and Automanage configuration profile
Create an association between a ARC machine and Automanage configuration profile

### [Remove-AzAutomanageConfigProfile](Remove-AzAutomanageConfigProfile.md)
Delete a configuration profile
Expand All @@ -60,5 +60,14 @@ Delete a configuration profile assignment
Delete a configuration profile assignment

### [Update-AzAutomanageConfigProfile](Update-AzAutomanageConfigProfile.md)
Updates a configuration profile
Update a configuration profile

### [Update-AzAutomanageConfigProfileAssignment](Update-AzAutomanageConfigProfileAssignment.md)
Update an association between a VM and Automanage configuration profile

### [Update-AzAutomanageConfigProfileHciAssignment](Update-AzAutomanageConfigProfileHciAssignment.md)
Update an association between a AzureStackHCI cluster and Automanage configuration profile

### [Update-AzAutomanageConfigProfileHcrpAssignment](Update-AzAutomanageConfigProfileHcrpAssignment.md)
Update an association between a ARC machine and Automanage configuration profile

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

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.Automanage.Models.Api20220504.IBestPractice
### Microsoft.Azure.PowerShell.Cmdlets.Automanage.Models.IBestPractice

## NOTES

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,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.Automanage.Models.IAutomanageIdentity
Expand Down Expand Up @@ -170,7 +169,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.Automanage.Models.Api20220504.IConfigurationProfile
### Microsoft.Azure.PowerShell.Cmdlets.Automanage.Models.IConfigurationProfile

## NOTES

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ Get-AzAutomanageConfigProfileAssignment -InputObject <IAutomanageIdentity> [-Def
[<CommonParameters>]
```

### GetViaIdentityConfigurationProfileAssignment
```
Get-AzAutomanageConfigProfileAssignment -ConfigurationProfileAssignmentInputObject <IAutomanageIdentity>
-VMName <String> [-DefaultProfile <PSObject>] [<CommonParameters>]
```

### List1
```
Get-AzAutomanageConfigProfileAssignment -ResourceGroupName <String> [-SubscriptionId <String[]>]
Expand Down Expand Up @@ -110,6 +116,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```

### -ConfigurationProfileAssignmentInputObject
Identity Parameter

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.Automanage.Models.IAutomanageIdentity
Parameter Sets: GetViaIdentityConfigurationProfileAssignment
Aliases:

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

### -DefaultProfile
The DefaultProfile parameter is not functional.
Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
Expand All @@ -128,7 +149,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.Automanage.Models.IAutomanageIdentity
Expand Down Expand Up @@ -193,7 +213,7 @@ The name of the virtual machine.

```yaml
Type: System.String
Parameter Sets: Get
Parameter Sets: Get, GetViaIdentityConfigurationProfileAssignment
Aliases:

Required: True
Expand All @@ -212,7 +232,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.Automanage.Models.Api20220504.IConfigurationProfileAssignment
### Microsoft.Azure.PowerShell.Cmdlets.Automanage.Models.IConfigurationProfileAssignment

## NOTES

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ Get-AzAutomanageConfigProfileHciAssignment -InputObject <IAutomanageIdentity> [-
[<CommonParameters>]
```

### GetViaIdentityCluster
```
Get-AzAutomanageConfigProfileHciAssignment -ClusterInputObject <IAutomanageIdentity>
[-DefaultProfile <PSObject>] [<CommonParameters>]
```

## DESCRIPTION
Get information about a configuration profile assignment

Expand Down Expand Up @@ -71,6 +77,21 @@ This command gets information about a configuration profile assignment.

## PARAMETERS

### -ClusterInputObject
Identity Parameter

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.Automanage.Models.IAutomanageIdentity
Parameter Sets: GetViaIdentityCluster
Aliases:

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

### -ClusterName
The name of the Arc machine.

Expand Down Expand Up @@ -104,7 +125,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.Automanage.Models.IAutomanageIdentity
Expand Down Expand Up @@ -158,7 +178,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.Automanage.Models.Api20220504.IConfigurationProfileAssignment
### Microsoft.Azure.PowerShell.Cmdlets.Automanage.Models.IConfigurationProfileAssignment

## NOTES

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ Get-AzAutomanageConfigProfileHcrpAssignment -InputObject <IAutomanageIdentity> [
[<CommonParameters>]
```

### GetViaIdentityMachine
```
Get-AzAutomanageConfigProfileHcrpAssignment -MachineInputObject <IAutomanageIdentity>
[-DefaultProfile <PSObject>] [<CommonParameters>]
```

## DESCRIPTION
Get information about a configuration profile assignment

Expand Down Expand Up @@ -89,7 +95,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.Automanage.Models.IAutomanageIdentity
Expand All @@ -103,6 +108,21 @@ Accept pipeline input: True (ByValue)
Accept wildcard characters: False
```

### -MachineInputObject
Identity Parameter

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.Automanage.Models.IAutomanageIdentity
Parameter Sets: GetViaIdentityMachine
Aliases:

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

### -MachineName
The name of the Arc machine.

Expand Down Expand Up @@ -158,7 +178,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.Automanage.Models.Api20220504.IConfigurationProfileAssignment
### Microsoft.Azure.PowerShell.Cmdlets.Automanage.Models.IConfigurationProfileAssignment

## NOTES

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,18 @@ Get-AzAutomanageHciReport -ClusterName <String> -Name <String> -ResourceGroupNam
Get-AzAutomanageHciReport -InputObject <IAutomanageIdentity> [-DefaultProfile <PSObject>] [<CommonParameters>]
```

### GetViaIdentityCluster
```
Get-AzAutomanageHciReport -ClusterInputObject <IAutomanageIdentity> -Name <String>
[-DefaultProfile <PSObject>] [<CommonParameters>]
```

### GetViaIdentityConfigurationProfileAssignment
```
Get-AzAutomanageHciReport -ConfigurationProfileAssignmentInputObject <IAutomanageIdentity> -Name <String>
[-DefaultProfile <PSObject>] [<CommonParameters>]
```

## DESCRIPTION
Get information about a report associated with a configuration profile assignment run

Expand Down Expand Up @@ -69,6 +81,21 @@ This command gets information about a report associated with a configuration pro

## PARAMETERS

### -ClusterInputObject
Identity Parameter

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.Automanage.Models.IAutomanageIdentity
Parameter Sets: GetViaIdentityCluster
Aliases:

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

### -ClusterName
The name of the Arc machine.

Expand All @@ -84,6 +111,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```

### -ConfigurationProfileAssignmentInputObject
Identity Parameter

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.Automanage.Models.IAutomanageIdentity
Parameter Sets: GetViaIdentityConfigurationProfileAssignment
Aliases:

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

### -DefaultProfile
The DefaultProfile parameter is not functional.
Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
Expand All @@ -102,7 +144,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.Automanage.Models.IAutomanageIdentity
Expand All @@ -121,7 +162,7 @@ The report name.

```yaml
Type: System.String
Parameter Sets: Get
Parameter Sets: Get, GetViaIdentityCluster, GetViaIdentityConfigurationProfileAssignment
Aliases:

Required: True
Expand Down Expand Up @@ -171,7 +212,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.Automanage.Models.Api20220504.IReport
### Microsoft.Azure.PowerShell.Cmdlets.Automanage.Models.IReport

## NOTES

Expand Down
Loading
Loading