Skip to content

Commit 86c08bb

Browse files
authored
[Az.BillingBenefits] Update generation tool version: autorest.powershell V3 -> V4 (Azure#27466)
1 parent 451c7b9 commit 86c08bb

File tree

45 files changed

+1784
-703
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+1784
-703
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0 (the ""License"");
3+
// you may not use this file except in compliance with the License.
4+
// You may obtain a copy of the License at
5+
// http://www.apache.org/licenses/LICENSE-2.0
6+
// Unless required by applicable law or agreed to in writing, software
7+
// distributed under the License is distributed on an ""AS IS"" BASIS,
8+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+
// See the License for the specific language governing permissions and
10+
// limitations under the License.
11+
// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
12+
// is regenerated.
13+
14+
using System;
15+
using System.Reflection;
16+
using System.Runtime.CompilerServices;
17+
using System.Runtime.InteropServices;
18+
19+
[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")]
20+
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
21+
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
22+
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - BillingBenefits")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0")]
25+
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
26+
[assembly: System.CLSCompliantAttribute(false)]

src/BillingBenefits/BillingBenefits.Autorest/README.md

+18-12
Original file line numberDiff line numberDiff line change
@@ -53,25 +53,31 @@ module-version: 0.1.0
5353
title: BillingBenefits
5454
subject-prefix: $(service-name)
5555

56-
resourcegroup-append: true
57-
nested-object-to-string: true
58-
59-
# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
60-
use-extension:
61-
"@autorest/powershell": "3.x"
62-
6356
directive:
64-
### No inline
57+
- where:
58+
variant: ^(Create|Update|Validate)(?!.*?(Expanded|JsonFilePath|JsonString))
59+
remove: true
60+
- where:
61+
variant: ^CreateViaIdentity$|^CreateViaIdentityExpanded$
62+
remove: true
63+
## No inline
6564
- no-inline:
6665
- RenewProperties
6766

68-
### Rename Cmdlet names
67+
# ### Rename Cmdlet names
6968
- where:
7069
verb: Get
71-
subject: SavingPlan
70+
subject: SavingsPlan
71+
variant: List1
7272
set:
73-
verb: Get
7473
subject: SavingsPlanList
74+
variant: List
75+
- where:
76+
verb: Invoke
77+
subject: ElevateSavingsPlanOrder
78+
set:
79+
verb: Invoke
80+
subject: ElevateSavingPlanOrder
7581
- where:
7682
verb: Test
7783
subject: Purchase
@@ -80,7 +86,7 @@ directive:
8086
subject: SavingsPlanPurchaseValidation
8187
- where:
8288
verb: Test
83-
subject: SavingPlanUpdate
89+
subject: SavingsPlanUpdate
8490
set:
8591
verb: Invoke
8692
subject: SavingsPlanUpdateValidation

src/BillingBenefits/BillingBenefits.Autorest/UX/Microsoft.BillingBenefits/savingsPlanOrders-savingsPlans.json

-42
This file was deleted.

src/BillingBenefits/BillingBenefits.Autorest/docs/Az.BillingBenefits.md

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
Module Name: Az.BillingBenefits
3-
Module Guid: 7c220d70-27ec-4403-aedd-429aa925a6a6
3+
Module Guid: d7dd6348-cc7d-477e-baeb-e38cc4e0c9f9
44
Download Help Link: https://learn.microsoft.com/powershell/module/az.billingbenefits
55
Help Version: 1.0.0.0
66
Locale: en-US
@@ -36,12 +36,16 @@ Validate savings plan purchase.
3636
Validate savings plan patch.
3737

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

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

4545
### [Update-AzBillingBenefitsSavingsPlan](Update-AzBillingBenefitsSavingsPlan.md)
46-
Update savings plan.
46+
update savings plan.
47+
48+
### [Update-AzBillingBenefitsSavingsPlanOrderAlias](Update-AzBillingBenefitsSavingsPlanOrderAlias.md)
49+
update a savings plan.
50+
Learn more about permissions needed at https://go.microsoft.com/fwlink/?linkid=2215851
4751

src/BillingBenefits/BillingBenefits.Autorest/docs/Get-AzBillingBenefitsReservationOrderAlias.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ Accept wildcard characters: False
7878
7979
### -InputObject
8080
Identity Parameter
81-
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
8281
8382
```yaml
8483
Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IBillingBenefitsIdentity
@@ -116,7 +115,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
116115
117116
## OUTPUTS
118117
119-
### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IReservationOrderAliasResponse
118+
### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IReservationOrderAliasResponse
120119
121120
## NOTES
122121

src/BillingBenefits/BillingBenefits.Autorest/docs/Get-AzBillingBenefitsSavingsPlan.md

+24-4
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ Get-AzBillingBenefitsSavingsPlan -InputObject <IBillingBenefitsIdentity> [-Expan
2929
[-DefaultProfile <PSObject>] [<CommonParameters>]
3030
```
3131

32+
### GetViaIdentitySavingsPlanOrder
33+
```
34+
Get-AzBillingBenefitsSavingsPlan -Id <String> -SavingsPlanOrderInputObject <IBillingBenefitsIdentity>
35+
[-Expand <String>] [-DefaultProfile <PSObject>] [<CommonParameters>]
36+
```
37+
3238
## DESCRIPTION
3339
Get savings plan.
3440

@@ -83,7 +89,7 @@ May be used to expand the detail information of some properties.
8389
8490
```yaml
8591
Type: System.String
86-
Parameter Sets: Get, GetViaIdentity
92+
Parameter Sets: Get, GetViaIdentity, GetViaIdentitySavingsPlanOrder
8793
Aliases:
8894

8995
Required: False
@@ -98,7 +104,7 @@ ID of the savings plan
98104
99105
```yaml
100106
Type: System.String
101-
Parameter Sets: Get
107+
Parameter Sets: Get, GetViaIdentitySavingsPlanOrder
102108
Aliases: SavingsPlanId
103109

104110
Required: True
@@ -110,7 +116,6 @@ Accept wildcard characters: False
110116
111117
### -InputObject
112118
Identity Parameter
113-
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
114119
115120
```yaml
116121
Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IBillingBenefitsIdentity
@@ -139,6 +144,21 @@ Accept pipeline input: False
139144
Accept wildcard characters: False
140145
```
141146
147+
### -SavingsPlanOrderInputObject
148+
Identity Parameter
149+
150+
```yaml
151+
Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IBillingBenefitsIdentity
152+
Parameter Sets: GetViaIdentitySavingsPlanOrder
153+
Aliases:
154+
155+
Required: True
156+
Position: Named
157+
Default value: None
158+
Accept pipeline input: True (ByValue)
159+
Accept wildcard characters: False
160+
```
161+
142162
### CommonParameters
143163
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).
144164
@@ -148,7 +168,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
148168
149169
## OUTPUTS
150170
151-
### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModel
171+
### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.ISavingsPlanModel
152172
153173
## NOTES
154174

src/BillingBenefits/BillingBenefits.Autorest/docs/Get-AzBillingBenefitsSavingsPlanList.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
176176
177177
## OUTPUTS
178178
179-
### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanModel
179+
### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.ISavingsPlanModel
180180
181181
## NOTES
182182

src/BillingBenefits/BillingBenefits.Autorest/docs/Get-AzBillingBenefitsSavingsPlanOrder.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ Accept wildcard characters: False
113113
114114
### -InputObject
115115
Identity Parameter
116-
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
117116
118117
```yaml
119118
Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IBillingBenefitsIdentity
@@ -136,7 +135,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
136135
137136
## OUTPUTS
138137
139-
### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanOrderModel
138+
### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.ISavingsPlanOrderModel
140139
141140
## NOTES
142141

src/BillingBenefits/BillingBenefits.Autorest/docs/Get-AzBillingBenefitsSavingsPlanOrderAlias.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ Accept wildcard characters: False
7878
7979
### -InputObject
8080
Identity Parameter
81-
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
8281
8382
```yaml
8483
Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IBillingBenefitsIdentity
@@ -116,7 +115,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
116115
117116
## OUTPUTS
118117
119-
### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.ISavingsPlanOrderAliasModel
118+
### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.ISavingsPlanOrderAliasModel
120119
121120
## NOTES
122121

src/BillingBenefits/BillingBenefits.Autorest/docs/Invoke-AzBillingBenefitsElevateSavingPlanOrder.md

+9-11
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,18 @@ Name PrincipalId RoleDe
4242

4343
Elevate savings plan order
4444

45-
### Example 2: Elevate savings plan order via identiy
45+
### Example 2: Elevate savings plan order via identiy
4646
```powershell
47-
$identity = @{
48-
SavingsPlanOrderId = "e45905d2-9207-4f24-8549-f615c203b49b"
49-
}
50-
51-
$response = Invoke-AzBillingBenefitsElevateSavingPlanOrder -InputObject $identity
47+
$identity = @{
48+
SavingsPlanOrderId = "e45905d2-9207-4f24-8549-f615c203b49b"
49+
}
50+
$response = Invoke-AzBillingBenefitsElevateSavingPlanOrder -InputObject $identity
5251
```
5352

5453
```output
55-
Name PrincipalId RoleDefinitionId Scope
56-
---- ----------- ---------------- -----
57-
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
54+
Name PrincipalId RoleDefinitionId Scope
55+
---- ----------- ---------------- -----
56+
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
5857
```
5958

6059
Elevate savings plan order
@@ -79,7 +78,6 @@ Accept wildcard characters: False
7978
8079
### -InputObject
8180
Identity Parameter
82-
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
8381
8482
```yaml
8583
Type: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IBillingBenefitsIdentity
@@ -148,7 +146,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
148146
149147
## OUTPUTS
150148
151-
### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api20221101.IRoleAssignmentEntity
149+
### Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.IRoleAssignmentEntity
152150
153151
## NOTES
154152

0 commit comments

Comments
 (0)