Skip to content

Commit aae4a5f

Browse files
authored
[Az.ConfidentialLedger] The code base is going to be refactored, the following cmdlet adds a BreakingChange announcement (#28277)
1 parent 7c10af6 commit aae4a5f

15 files changed

+166
-36
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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 - ConfidentialLedger")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.1.0")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("1.1.0")]
25+
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
26+
[assembly: System.CLSCompliantAttribute(false)]
27+

src/ConfidentialLedger/ConfidentialLedger.Autorest/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,20 @@ directive:
7171
- model-cmdlet: # Generate objects for common models.
7272
- AADBasedSecurityPrincipal
7373
- CertBasedSecurityPrincipal
74+
75+
- where:
76+
verb: Get|New
77+
subject: Ledger
78+
set:
79+
breaking-change:
80+
deprecated-output-properties:
81+
- AadBasedSecurityPrincipal
82+
- CertBasedSecurityPrincipal
83+
new-output-properties:
84+
- AadBasedSecurityPrincipal
85+
- CertBasedSecurityPrincipal
86+
change-description: The type of property 'AadBasedSecurityPrincipal', 'CertBasedSecurityPrincipal' will be changed from single object to 'List'.
87+
deprecated-by-version: 9.0.0
88+
deprecated-by-azversion: 15.0.0
89+
change-effective-date: 2025/11/03
7490
```

src/ConfidentialLedger/ConfidentialLedger.Autorest/custom/Update-AzConfidentialLedger.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ https://learn.microsoft.com/powershell/module/az.confidentialledger/update-azcon
7474
#>
7575
function Update-AzConfidentialLedger {
7676
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.Api20220513.IConfidentialLedger])]
77+
[Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Runtime.OutputBreakingChangeAttribute("Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.Api20220513.IConfidentialLedger", "15.0.0", "9.0.0", "2025/11/03", ReplacementCmdletOutputType = "Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.IConfidentialLedger", DeprecatedOutputProperties = ("AadBasedSecurityPrincipal Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.IAadBasedSecurityPrincipal", "CertBasedSecurityPrincipal Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.ICertBasedSecurityPrincipal"), NewOutputProperties = ("AadBasedSecurityPrincipal System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.IAadBasedSecurityPrincipal]", "CertBasedSecurityPrincipal System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.ICertBasedSecurityPrincipal]"))]
7778
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
7879
param(
7980
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]

src/ConfidentialLedger/ConfidentialLedger.Autorest/docs/Az.ConfidentialLedger.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
Module Name: Az.ConfidentialLedger
3-
Module Guid: c7eaa9c1-72c4-4251-9e7d-bf9b8e8fa71e
3+
Module Guid: 2c3b46ee-4d07-486a-8677-2a7833ee933a
44
Download Help Link: https://learn.microsoft.com/powershell/module/az.confidentialledger
55
Help Version: 1.0.0.0
66
Locale: en-US

src/ConfidentialLedger/ConfidentialLedger.Autorest/docs/New-AzConfidentialLedger.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ New-AzConfidentialLedger `
3333
-AadBasedSecurityPrincipal `
3434
@{
3535
LedgerRoleName="Administrator";
36-
PrincipalId="34621747-6fc8-4771-a2eb-72f31c461f2e";
37-
TenantId="bce123b9-2b7b-4975-8360-5ca0b9b1cd08"
36+
PrincipalId="00001111-aaaa-2222-bbbb-3333cccc4444";
37+
TenantId="00001111-aaaa-2222-bbbb-3333cccc4444"
3838
} `
3939
-CertBasedSecurityPrincipal `
4040
@{
@@ -57,8 +57,8 @@ Creates a new Confidential Ledger.
5757
```powershell
5858
$aadSecurityPrincipal = New-AzConfidentialLedgerAADBasedSecurityPrincipalObject `
5959
-LedgerRoleName "Administrator" `
60-
-PrincipalId "34621747-6fc8-4771-a2eb-72f31c461f2e" `
61-
-TenantId "bce123b9-2b7b-4975-8360-5ca0b9b1cd08"
60+
-PrincipalId "00001111-aaaa-2222-bbbb-3333cccc4444" `
61+
-TenantId "00001111-aaaa-2222-bbbb-3333cccc4444"
6262
6363
$certSecurityPrincipal = New-AzConfidentialLedgerCertBasedSecurityPrincipalObject `
6464
-Cert "-----BEGIN CERTIFICATE-----********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************-----END CERTIFICATE-----" `

src/ConfidentialLedger/ConfidentialLedger.Autorest/docs/New-AzConfidentialLedgerAADBasedSecurityPrincipalObject.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ Create an in-memory object for AADBasedSecurityPrincipal.
2626
```powershell
2727
New-AzConfidentialLedgerAADBasedSecurityPrincipalObject `
2828
-LedgerRoleName "Administrator" `
29-
-PrincipalId "34621747-6fc8-4771-a2eb-72f31c461f2e" `
30-
-TenantId "bce123b9-2b7b-4975-8360-5ca0b9b1cd08"
29+
-PrincipalId "00001111-aaaa-2222-bbbb-3333cccc4444" `
30+
-TenantId "00001111-aaaa-2222-bbbb-3333cccc4444"
3131
```
3232

3333
```output
3434
LedgerRoleName PrincipalId TenantId
3535
-------------- ----------- --------
36-
Administrator 34621747-6fc8-4771-a2eb-72f31c461f2e bce123b9-2b7b-4975-8360-5ca0b9b1cd08
36+
Administrator 00001111-aaaa-2222-bbbb-3333cccc4444 00001111-aaaa-2222-bbbb-3333cccc4444
3737
```
3838

3939
Creates an AadBasedSecurityPrincipalObject that may be used for `Az.ConfidentialLedger` commands.

src/ConfidentialLedger/ConfidentialLedger.Autorest/docs/Update-AzConfidentialLedger.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ Update-AzConfidentialLedger `
4242
-AadBasedSecurityPrincipal `
4343
@{
4444
LedgerRoleName="Administrator";
45-
PrincipalId="34621747-6fc8-4771-a2eb-72f31c461f2e";
46-
TenantId="bce123b9-2b7b-4975-8360-5ca0b9b1cd08"
45+
PrincipalId="00001111-aaaa-2222-bbbb-3333cccc4444";
46+
TenantId="00001111-aaaa-2222-bbbb-3333cccc4444"
4747
} `
4848
-CertBasedSecurityPrincipal `
4949
@{

src/ConfidentialLedger/ConfidentialLedger.Autorest/examples/New-AzConfidentialLedger.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ New-AzConfidentialLedger `
77
-AadBasedSecurityPrincipal `
88
@{
99
LedgerRoleName="Administrator";
10-
PrincipalId="34621747-6fc8-4771-a2eb-72f31c461f2e";
11-
TenantId="bce123b9-2b7b-4975-8360-5ca0b9b1cd08"
10+
PrincipalId="00001111-aaaa-2222-bbbb-3333cccc4444";
11+
TenantId="00001111-aaaa-2222-bbbb-3333cccc4444"
1212
} `
1313
-CertBasedSecurityPrincipal `
1414
@{
@@ -31,8 +31,8 @@ Creates a new Confidential Ledger.
3131
```powershell
3232
$aadSecurityPrincipal = New-AzConfidentialLedgerAADBasedSecurityPrincipalObject `
3333
-LedgerRoleName "Administrator" `
34-
-PrincipalId "34621747-6fc8-4771-a2eb-72f31c461f2e" `
35-
-TenantId "bce123b9-2b7b-4975-8360-5ca0b9b1cd08"
34+
-PrincipalId "00001111-aaaa-2222-bbbb-3333cccc4444" `
35+
-TenantId "00001111-aaaa-2222-bbbb-3333cccc4444"
3636
3737
$certSecurityPrincipal = New-AzConfidentialLedgerCertBasedSecurityPrincipalObject `
3838
-Cert "-----BEGIN CERTIFICATE-----********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************-----END CERTIFICATE-----" `

src/ConfidentialLedger/ConfidentialLedger.Autorest/examples/New-AzConfidentialLedgerAADBasedSecurityPrincipalObject.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
```powershell
33
New-AzConfidentialLedgerAADBasedSecurityPrincipalObject `
44
-LedgerRoleName "Administrator" `
5-
-PrincipalId "34621747-6fc8-4771-a2eb-72f31c461f2e" `
6-
-TenantId "bce123b9-2b7b-4975-8360-5ca0b9b1cd08"
5+
-PrincipalId "00001111-aaaa-2222-bbbb-3333cccc4444" `
6+
-TenantId "00001111-aaaa-2222-bbbb-3333cccc4444"
77
```
88

99
```output
1010
LedgerRoleName PrincipalId TenantId
1111
-------------- ----------- --------
12-
Administrator 34621747-6fc8-4771-a2eb-72f31c461f2e bce123b9-2b7b-4975-8360-5ca0b9b1cd08
12+
Administrator 00001111-aaaa-2222-bbbb-3333cccc4444 00001111-aaaa-2222-bbbb-3333cccc4444
1313
```
1414

1515
Creates an AadBasedSecurityPrincipalObject that may be used for `Az.ConfidentialLedger` commands.

src/ConfidentialLedger/ConfidentialLedger.Autorest/examples/Update-AzConfidentialLedger.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ Update-AzConfidentialLedger `
77
-AadBasedSecurityPrincipal `
88
@{
99
LedgerRoleName="Administrator";
10-
PrincipalId="34621747-6fc8-4771-a2eb-72f31c461f2e";
11-
TenantId="bce123b9-2b7b-4975-8360-5ca0b9b1cd08"
10+
PrincipalId="00001111-aaaa-2222-bbbb-3333cccc4444";
11+
TenantId="00001111-aaaa-2222-bbbb-3333cccc4444"
1212
} `
1313
-CertBasedSecurityPrincipal `
1414
@{

0 commit comments

Comments
 (0)