Skip to content

[Az.ArcResourceBridge] Update generation tool version: autorest.powersh… #28181

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
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// 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 - ArcResourceBridge")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.1.0")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.1.0")]
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
[assembly: System.CLSCompliantAttribute(false)]

13 changes: 4 additions & 9 deletions src/ArcResourceBridge/ArcResourceBridge.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,6 @@ title: ArcResourceBridge
module-version: 0.1.0
subject-prefix: $(service-name)

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:
- from: swagger-document
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}"].delete.responses
Expand All @@ -68,7 +60,10 @@ directive:
}

- where:
variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$
variant: ^(Create|Update)(?!.*?(Expanded|JsonFilePath|JsonString))
remove: true
- where:
variant: ^CreateViaIdentity$|^CreateViaIdentityExpanded$
remove: true
- where:
verb: Set
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
Module Name: Az.ArcResourceBridge
Module Guid: 329aa971-c12b-4d4b-abe5-3b638b0b5660
Module Guid: e97e4f24-db76-4243-a318-250467b4a331
Download Help Link: https://learn.microsoft.com/powershell/module/az.arcresourcebridge
Help Version: 1.0.0.0
Locale: en-US
Expand All @@ -27,11 +27,11 @@ Gets the telemetry config.
Gets the upgrade graph of an Appliance with a specified resource group and name and specific release train.

### [New-AzArcResourceBridge](New-AzArcResourceBridge.md)
Creates or updates an Appliance in the specified Subscription and Resource Group.
Create an Appliance in the specified Subscription and Resource Group.

### [Remove-AzArcResourceBridge](Remove-AzArcResourceBridge.md)
Deletes an Appliance with the specified Resource Name, Resource Group, and Subscription Id.

### [Update-AzArcResourceBridge](Update-AzArcResourceBridge.md)
Updates an Appliance with the specified Resource Name in the specified Resource Group and Subscription.
Update an Appliance with the specified Resource Name in the specified Resource Group and Subscription.

Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,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.ArcResourceBridge.Models.IArcResourceBridgeIdentity
Expand Down Expand Up @@ -168,7 +167,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.ArcResourceBridge.Models.Api20221027.IAppliance
### Microsoft.Azure.PowerShell.Cmdlets.ArcResourceBridge.Models.IAppliance

## NOTES

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

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.ArcResourceBridge.Models.Api20221027.IApplianceListCredentialResults
### Microsoft.Azure.PowerShell.Cmdlets.ArcResourceBridge.Models.IApplianceListCredentialResults

## NOTES

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

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.ArcResourceBridge.Models.Api20221027.IApplianceListKeysResults
### Microsoft.Azure.PowerShell.Cmdlets.ArcResourceBridge.Models.IApplianceListKeysResults

## NOTES

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,11 @@ Gets the telemetry config.

## SYNTAX

### Get (Default)
```
Get-AzArcResourceBridgeTelemetryConfig [-SubscriptionId <String[]>] [-DefaultProfile <PSObject>]
[<CommonParameters>]
```

### GetViaIdentity
```
Get-AzArcResourceBridgeTelemetryConfig -InputObject <IArcResourceBridgeIdentity> [-DefaultProfile <PSObject>]
[<CommonParameters>]
```

## DESCRIPTION
Gets the telemetry config.

Expand Down Expand Up @@ -58,28 +51,12 @@ Accept pipeline input: False
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.ArcResourceBridge.Models.IArcResourceBridgeIdentity
Parameter Sets: GetViaIdentity
Aliases:

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

### -SubscriptionId
The ID of the target subscription.

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

Required: False
Expand All @@ -94,11 +71,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## INPUTS

### Microsoft.Azure.PowerShell.Cmdlets.ArcResourceBridge.Models.IArcResourceBridgeIdentity

## OUTPUTS

### System.String
### Microsoft.Azure.PowerShell.Cmdlets.ArcResourceBridge.Models.IApplianceGetTelemetryConfigResult

## NOTES

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

### GetViaIdentityAppliance
```
Get-AzArcResourceBridgeUpgradeGraph -ApplianceInputObject <IArcResourceBridgeIdentity> -UpgradeGraph <String>
[-DefaultProfile <PSObject>] [<CommonParameters>]
```

## DESCRIPTION
Gets the upgrade graph of an Appliance with a specified resource group and name and specific release train.

Expand All @@ -44,6 +50,21 @@ Gets the upgrade graph of an Appliance with a specified resource group and name

## PARAMETERS

### -ApplianceInputObject
Identity Parameter

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.ArcResourceBridge.Models.IArcResourceBridgeIdentity
Parameter Sets: GetViaIdentityAppliance
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 @@ -62,7 +83,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.ArcResourceBridge.Models.IArcResourceBridgeIdentity
Expand Down Expand Up @@ -127,7 +147,7 @@ Upgrade graph version, ex - stable

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

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

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.ArcResourceBridge.Models.Api20221027.IUpgradeGraph
### Microsoft.Azure.PowerShell.Cmdlets.ArcResourceBridge.Models.IUpgradeGraph

## NOTES

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,40 @@ schema: 2.0.0
# New-AzArcResourceBridge

## SYNOPSIS
Creates or updates an Appliance in the specified Subscription and Resource Group.
Create an Appliance in the specified Subscription and Resource Group.

## SYNTAX

### CreateExpanded (Default)
```
New-AzArcResourceBridge -Name <String> -ResourceGroupName <String> -Location <String>
[-SubscriptionId <String>] [-Distro <Distro>] [-IdentityType <ResourceIdentityType>]
[-InfrastructureConfigProvider <Provider>] [-PublicKey <String>] [-Tag <Hashtable>] [-Version <String>]
[-SubscriptionId <String>] [-Distro <String>] [-EnableSystemAssignedIdentity]
[-InfrastructureConfigProvider <String>] [-PublicKey <String>] [-Tag <Hashtable>] [-Version <String>]
[-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [<CommonParameters>]
```

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

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

## DESCRIPTION
Creates or updates an Appliance in the specified Subscription and Resource Group.
Create an Appliance in the specified Subscription and Resource Group.

## EXAMPLES

### Example 1: Creates or updates an Appliance in the specified Subscription and Resource Group.
```powershell
New-AzArcResourceBridge -Name azps-resource-bridge -ResourceGroupName azps_test_group -Location eastus -IdentityType 'SystemAssigned' -Distro 'AKSEdge' -InfrastructureConfigProvider 'VMware' -Tag @{"123"="abc"}
New-AzArcResourceBridge -Name azps-resource-bridge -ResourceGroupName azps_test_group -Location eastus -EnableSystemAssignedIdentity -Distro 'AKSEdge' -InfrastructureConfigProvider 'VMware' -Tag @{"123"="abc"}
```

```output
Expand Down Expand Up @@ -75,8 +90,8 @@ Represents a supported Fabric/Infra.
(AKSEdge etc...).

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

Required: False
Expand All @@ -86,12 +101,12 @@ Accept pipeline input: False
Accept wildcard characters: False
```

### -IdentityType
The identity type.
### -EnableSystemAssignedIdentity
Determines whether to enable a system-assigned identity for the resource.

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.ArcResourceBridge.Support.ResourceIdentityType
Parameter Sets: (All)
Type: System.Management.Automation.SwitchParameter
Parameter Sets: CreateExpanded
Aliases:

Required: False
Expand All @@ -105,8 +120,8 @@ Accept wildcard characters: False
Information about the connected appliance.

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

Required: False
Expand All @@ -116,12 +131,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 geo-location where the resource lives

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

Required: True
Expand Down Expand Up @@ -167,7 +212,7 @@ Can only be set once.

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

Required: False
Expand Down Expand Up @@ -213,7 +258,7 @@ Resource tags.

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

Required: False
Expand All @@ -228,7 +273,7 @@ Version of the Appliance

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

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

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.ArcResourceBridge.Models.Api20221027.IAppliance
### Microsoft.Azure.PowerShell.Cmdlets.ArcResourceBridge.Models.IAppliance

## NOTES

Expand Down
Loading
Loading