Skip to content

[Az.BillingBenefits] Update generation tool version: autorest.powershell V3 -> V4 #27466

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

Merged
merged 7 commits into from
Apr 18, 2025
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
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 - BillingBenefits")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0")]
[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0")]
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
[assembly: System.CLSCompliantAttribute(false)]
30 changes: 18 additions & 12 deletions src/BillingBenefits/BillingBenefits.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,25 +53,31 @@ module-version: 0.1.0
title: BillingBenefits
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:
### No inline
- where:
variant: ^(Create|Update|Validate)(?!.*?(Expanded|JsonFilePath|JsonString))
remove: true
- where:
variant: ^CreateViaIdentity$|^CreateViaIdentityExpanded$
remove: true
## No inline
- no-inline:
- RenewProperties

### Rename Cmdlet names
# ### Rename Cmdlet names
- where:
verb: Get
subject: SavingPlan
subject: SavingsPlan
variant: List1
set:
verb: Get
subject: SavingsPlanList
variant: List
- where:
verb: Invoke
subject: ElevateSavingsPlanOrder
set:
verb: Invoke
subject: ElevateSavingPlanOrder
- where:
verb: Test
subject: Purchase
Expand All @@ -80,7 +86,7 @@ directive:
subject: SavingsPlanPurchaseValidation
- where:
verb: Test
subject: SavingPlanUpdate
subject: SavingsPlanUpdate
set:
verb: Invoke
subject: SavingsPlanUpdateValidation
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
Module Name: Az.BillingBenefits
Module Guid: 7c220d70-27ec-4403-aedd-429aa925a6a6
Module Guid: d7dd6348-cc7d-477e-baeb-e38cc4e0c9f9
Download Help Link: https://learn.microsoft.com/powershell/module/az.billingbenefits
Help Version: 1.0.0.0
Locale: en-US
Expand Down Expand Up @@ -36,12 +36,16 @@ Validate savings plan purchase.
Validate savings plan patch.

### [New-AzBillingBenefitsReservationOrderAlias](New-AzBillingBenefitsReservationOrderAlias.md)
Create a reservation order alias.
create a reservation order alias.

### [New-AzBillingBenefitsSavingsPlanOrderAlias](New-AzBillingBenefitsSavingsPlanOrderAlias.md)
Create a savings plan.
create a savings plan.
Learn more about permissions needed at https://go.microsoft.com/fwlink/?linkid=2215851

### [Update-AzBillingBenefitsSavingsPlan](Update-AzBillingBenefitsSavingsPlan.md)
Update savings plan.
update savings plan.

### [Update-AzBillingBenefitsSavingsPlanOrderAlias](Update-AzBillingBenefitsSavingsPlanOrderAlias.md)
update a savings plan.
Learn more about permissions needed at https://go.microsoft.com/fwlink/?linkid=2215851

Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,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.BillingBenefits.Models.IBillingBenefitsIdentity
Expand Down Expand Up @@ -116,7 +115,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IReservationOrderAliasResponse
### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IReservationOrderAliasResponse

## NOTES

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ Get-AzBillingBenefitsSavingsPlan -InputObject <IBillingBenefitsIdentity> [-Expan
[-DefaultProfile <PSObject>] [<CommonParameters>]
```

### GetViaIdentitySavingsPlanOrder
```
Get-AzBillingBenefitsSavingsPlan -Id <String> -SavingsPlanOrderInputObject <IBillingBenefitsIdentity>
[-Expand <String>] [-DefaultProfile <PSObject>] [<CommonParameters>]
```

## DESCRIPTION
Get savings plan.

Expand Down Expand Up @@ -83,7 +89,7 @@ May be used to expand the detail information of some properties.

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

Required: False
Expand All @@ -98,7 +104,7 @@ ID of the savings plan

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

Required: True
Expand All @@ -110,7 +116,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.BillingBenefits.Models.IBillingBenefitsIdentity
Expand Down Expand Up @@ -139,6 +144,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```

### -SavingsPlanOrderInputObject
Identity Parameter

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IBillingBenefitsIdentity
Parameter Sets: GetViaIdentitySavingsPlanOrder
Aliases:

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

### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).

Expand All @@ -148,7 +168,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModel
### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.ISavingsPlanModel

## NOTES

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

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModel
### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.ISavingsPlanModel

## NOTES

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,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.BillingBenefits.Models.IBillingBenefitsIdentity
Expand All @@ -136,7 +135,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanOrderModel
### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.ISavingsPlanOrderModel

## NOTES

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,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.BillingBenefits.Models.IBillingBenefitsIdentity
Expand Down Expand Up @@ -116,7 +115,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanOrderAliasModel
### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.ISavingsPlanOrderAliasModel

## NOTES

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,18 @@ Name PrincipalId RoleDe

Elevate savings plan order

### Example 2: Elevate savings plan order via identiy
### Example 2: Elevate savings plan order via identiy
```powershell
$identity = @{
SavingsPlanOrderId = "e45905d2-9207-4f24-8549-f615c203b49b"
}

$response = Invoke-AzBillingBenefitsElevateSavingPlanOrder -InputObject $identity
$identity = @{
SavingsPlanOrderId = "e45905d2-9207-4f24-8549-f615c203b49b"
}
$response = Invoke-AzBillingBenefitsElevateSavingPlanOrder -InputObject $identity
```

```output
Name PrincipalId RoleDefinitionId Scope
---- ----------- ---------------- -----
5c545baf-2ef5-4016-9c31-6e0e23c397a0 067e7443-3a55-40b6-a2d8-0a7a12a9da2d /providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb635 /providers/Microsoft.BillingBenefits/savingsplanorders/e45905d2-9207-4f24-8549-f615c203b49b
Name PrincipalId RoleDefinitionId Scope
---- ----------- ---------------- -----
5c545baf-2ef5-4016-9c31-6e0e23c397a0 067e7443-3a55-40b6-a2d8-0a7a12a9da2d /providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb635 /providers/Microsoft.BillingBenefits/savingsplanorders/e45905d2-9207-4f24-8549-f615c203b49b
```

Elevate savings plan order
Expand All @@ -79,7 +78,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.BillingBenefits.Models.IBillingBenefitsIdentity
Expand Down Expand Up @@ -148,7 +146,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRoleAssignmentEntity
### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IRoleAssignmentEntity

## NOTES

Expand Down
Loading