Skip to content

Commit 7c10af6

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

18 files changed

+276
-18
lines changed
Lines changed: 26 additions & 0 deletions
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 - ContainerRegistry")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("4.3.0")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("4.3.0")]
25+
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
26+
[assembly: System.CLSCompliantAttribute(false)]

src/ContainerRegistry/ContainerRegistry.Autorest/README.md

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,3 +324,94 @@ directive:
324324
set:
325325
preview-announcement:
326326
preview-message: This is a preview version of ContainerRegistry. Let us know if you run into any issues.
327+
328+
- where:
329+
verb: New|Update
330+
subject: Registry
331+
set:
332+
breaking-change:
333+
deprecated-output-properties:
334+
- NetworkRuleSetIPRule
335+
- PrivateEndpointConnection
336+
- DataEndpointHostName
337+
- IdentityType
338+
- IdentityUserAssignedIdentity
339+
new-output-properties:
340+
- NetworkRuleSetIPRule
341+
- PrivateEndpointConnection
342+
- DataEndpointHostName
343+
- IdentityType
344+
- IdentityUserAssignedIdentity
345+
change-description: (1) The types of the properties 'NetworkRuleSetIPRule', 'PrivateEndpointConnection' and 'DataEndpointHostName' will be changed from single object to 'List'. (2) IdentityType will be removed. EnableSystemAssignedIdentity will be used to enable/disable system assigned identity and UserAssignedIdentity will be used to specify user assigned identities.
346+
deprecated-by-version: 9.0.0
347+
deprecated-by-azversion: 15.0.0
348+
change-effective-date: 2025/11/03
349+
350+
- where:
351+
verb: Get|New|Update
352+
subject: ScopeMap|Webhook
353+
set:
354+
breaking-change:
355+
deprecated-output-properties:
356+
- Action
357+
new-output-properties:
358+
- Action
359+
change-description: The types of the properties 'Action' will be changed from single object to 'List'.
360+
deprecated-by-version: 9.0.0
361+
deprecated-by-azversion: 15.0.0
362+
change-effective-date: 2025/11/03
363+
364+
- where:
365+
verb: Update
366+
subject: RegistryCredentials
367+
variant: Regenerate
368+
set:
369+
breaking-change:
370+
deprecated-by-version: 9.0.0
371+
deprecated-by-azversion: 15.0.0
372+
change-effective-date: 2025/11/03
373+
374+
- where:
375+
verb: Get|New
376+
subject: ExportPipeline|ImportPipeline
377+
set:
378+
breaking-change:
379+
deprecated-output-properties:
380+
- Option
381+
- IdentityType
382+
- IdentityUserAssignedIdentity
383+
new-output-properties:
384+
- Option
385+
- IdentityType
386+
- IdentityUserAssignedIdentity
387+
change-description: (1) The types of the properties 'NetworkRuleSetIPRule', 'PrivateEndpointConnection' and 'DataEndpointHostName' will be changed from single object to 'List'. (2) IdentityType will be removed. EnableSystemAssignedIdentity will be used to enable/disable system assigned identity and UserAssignedIdentity will be used to specify user assigned identities.
388+
deprecated-by-version: 9.0.0
389+
deprecated-by-azversion: 15.0.0
390+
change-effective-date: 2025/11/03
391+
392+
- where:
393+
verb: Get|New|Update
394+
subject: Token
395+
set:
396+
breaking-change:
397+
deprecated-output-properties:
398+
- CredentialsCertificate
399+
- CredentialsPassword
400+
new-output-properties:
401+
- CredentialsCertificate
402+
- CredentialsPassword
403+
change-description: The types of the properties 'CredentialsCertificate' and 'CredentialsPassword' will be changed from single object to 'List'.
404+
deprecated-by-version: 9.0.0
405+
deprecated-by-azversion: 15.0.0
406+
change-effective-date: 2025/11/03
407+
408+
- where:
409+
verb: Import
410+
subject: RegistryImage
411+
variant: Import
412+
set:
413+
breaking-change:
414+
deprecated-by-version: 9.0.0
415+
deprecated-by-azversion: 15.0.0
416+
change-effective-date: 2025/11/03
417+
```

src/ContainerRegistry/ContainerRegistry.Autorest/custom/Get-AzContainerRegistry.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ https://learn.microsoft.com/powershell/module/az.containerregistry/get-azcontain
6161
#>
6262
function Get-AzContainerRegistry {
6363
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.IRegistry])]
64+
[Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Runtime.OutputBreakingChangeAttribute("Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.IRegistry", "15.0.0", "9.0.0", "2025/11/03", ReplacementCmdletOutputType = "Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.IRegistry", DeprecatedOutputProperties = ("NetworkRuleSetIPRule, PrivateEndpointConnection, DataEndpointHostName"), NewOutputProperties = ("NetworkRuleSetIPRule, PrivateEndpointConnection, DataEndpointHostName. This parameter will be changed from single object to 'List'."))]
6465
[CmdletBinding(DefaultParameterSetName='List2', PositionalBinding=$false)]
6566
param(
6667
[Parameter(ParameterSetName='Get', Mandatory)]

src/ContainerRegistry/ContainerRegistry.Autorest/custom/Get-AzContainerRegistryCredential.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ https://learn.microsoft.com/powershell/module/az.containerregistry/get-azcontain
3030
#>
3131
function Get-AzContainerRegistryCredential {
3232
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.PSContainerRegistryCredential])]
33+
[Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Runtime.OutputBreakingChangeAttribute("Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.PSContainerRegistryCredential", "15.0.0", "9.0.0", "2025/11/03", ReplacementCmdletOutputType = "Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.PSContainerRegistryCredential", DeprecatedOutputProperties = ("NetworkRuleSetIPRule, PrivateEndpointConnection, DataEndpointHostName"), NewOutputProperties = ("NetworkRuleSetIPRule, PrivateEndpointConnection, DataEndpointHostName. This parameter will be changed from single object to 'List'."))]
3334
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
3435
param(
3536
[Parameter(ParameterSetName='List', Mandatory)]

src/ContainerRegistry/ContainerRegistry.Autorest/custom/Get-AzContainerRegistryReplication.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ https://learn.microsoft.com/powershell/module/az.containerregistry/get-azcontain
5959
#>
6060
function Get-AzContainerRegistryReplication {
6161
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.IReplication])]
62+
[Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Runtime.OutputBreakingChangeAttribute("Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.IReplication", "15.0.0", "9.0.0", "2025/11/03", ReplacementCmdletOutputType = "Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.IReplication", DeprecatedOutputProperties = ("NetworkRuleSetIPRule, PrivateEndpointConnection, DataEndpointHostName"), NewOutputProperties = ("NetworkRuleSetIPRule, PrivateEndpointConnection, DataEndpointHostName. This parameter will be changed from single object to 'List'."))]
6263
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
6364
param(
6465
[Parameter(ParameterSetName='Get', Mandatory)]

src/ContainerRegistry/ContainerRegistry.Autorest/custom/Get-AzContainerRegistryWebhook.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ https://learn.microsoft.com/powershell/module/az.containerregistry/get-azcontain
6060
#>
6161
function Get-AzContainerRegistryWebhook {
6262
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.IWebhook])]
63+
[Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Runtime.OutputBreakingChangeAttribute("Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.IWebhook", "15.0.0", "9.0.0", "2025/11/03", ReplacementCmdletOutputType = "Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.IWebhook", DeprecatedOutputProperties = ("Action, NetworkRuleSetIPRule, PrivateEndpointConnection, DataEndpointHostName"), NewOutputProperties = ("Action, NetworkRuleSetIPRule, PrivateEndpointConnection, DataEndpointHostName. This parameter will be changed from single object to 'List'."))]
6364
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
6465
param(
6566
[Parameter(ParameterSetName='Get', Mandatory)]

src/ContainerRegistry/ContainerRegistry.Autorest/custom/Get-AzContainerRegistryWebhookEvent.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ https://learn.microsoft.com/powershell/module/az.containerregistry/get-azcontain
2929
#>
3030
function Get-AzContainerRegistryWebhookEvent {
3131
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.IEvent])]
32+
[Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Runtime.OutputBreakingChangeAttribute("Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.IEvent", "15.0.0", "9.0.0", "2025/11/03", ReplacementCmdletOutputType = "Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.IEvent", DeprecatedOutputProperties = ("ContentTimestamp, TargetSize, TargetLength, TargetTag, TargetRepository, TargetName, TargetMediaType, TargetDigest, SourceInstanceId, SourceAddr, ActorName, RequestUseragent, RequestMethod, RequestId, RequestHost, RequestAddr, ContentId, ContentAction, TargetUrl, TargetVersion, Action"), NewOutputProperties = ("ContentTimestamp, TargetSize, TargetLength, TargetTag, TargetRepository, TargetName, TargetMediaType, TargetDigest, SourceInstanceId, SourceAddr, ActorName, RequestUseragent, RequestMethod, RequestId, RequestHost, RequestAddr, ContentId, ContentAction, TargetUrl, TargetVersion, Action. This parameter will be changed from single object to 'List'."))]
3233
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
3334
param(
3435
[Parameter(ParameterSetName='List', Mandatory)]

src/ContainerRegistry/ContainerRegistry.Autorest/custom/New-AzContainerRegistryCredentials.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ https://learn.microsoft.com/powershell/module/az.containerregistry/new-azcontain
5656
#>
5757
function New-AzContainerRegistryCredentials {
5858
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.PSContainerRegistryCredential])]
59+
[Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Runtime.OutputBreakingChangeAttribute("Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.PSContainerRegistryCredential", "15.0.0", "9.0.0", "2025/11/03", ReplacementCmdletOutputType = "Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.PSContainerRegistryCredential", DeprecatedOutputProperties = ("NetworkRuleSetIPRule, PrivateEndpointConnection, DataEndpointHostName"), NewOutputProperties = ("NetworkRuleSetIPRule, PrivateEndpointConnection, DataEndpointHostName. This parameter will be changed from single object to 'List'."))]
5960
[CmdletBinding(DefaultParameterSetName='GenerateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
6061
param(
6162
[Parameter(ParameterSetName='GenerateExpanded', Mandatory)]

src/ContainerRegistry/ContainerRegistry.Autorest/custom/New-AzContainerRegistryReplication.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ https://learn.microsoft.com/powershell/module/az.containerregistry/new-azcontain
2929
#>
3030
function New-AzContainerRegistryReplication {
3131
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.IReplication])]
32+
[Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Runtime.OutputBreakingChangeAttribute("Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.IReplication", "15.0.0", "9.0.0", "2025/11/03", ReplacementCmdletOutputType = "Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.IReplication", DeprecatedOutputProperties = ("NetworkRuleSetIPRule, PrivateEndpointConnection, DataEndpointHostName"), NewOutputProperties = ("NetworkRuleSetIPRule, PrivateEndpointConnection, DataEndpointHostName. This parameter will be changed from single object to 'List'."))]
3233
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
3334
param(
3435
[Parameter()]

src/ContainerRegistry/ContainerRegistry.Autorest/custom/New-AzContainerRegistryWebhook.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ https://learn.microsoft.com/powershell/module/az.containerregistry/new-azcontain
2929
#>
3030
function New-AzContainerRegistryWebhook {
3131
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.IWebhook])]
32+
[Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Runtime.OutputBreakingChangeAttribute("Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.IWebhook", "15.0.0", "9.0.0", "2025/11/03", ReplacementCmdletOutputType = "Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.IWebhook", DeprecatedOutputProperties = ("Action, NetworkRuleSetIPRule, PrivateEndpointConnection, DataEndpointHostName"), NewOutputProperties = ("Action, NetworkRuleSetIPRule, PrivateEndpointConnection, DataEndpointHostName. This parameter will be changed from single object to 'List'."))]
3233
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
3334
param(
3435
[Parameter(Mandatory)]

0 commit comments

Comments
 (0)