Skip to content

Commit 89e49d2

Browse files
authored
[Az.ContainerRegistry] Update generation tool version: autorest.powershell v3->v4 (#28382)
1 parent 9450fb7 commit 89e49d2

File tree

160 files changed

+7553
-3846
lines changed

Some content is hidden

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

160 files changed

+7553
-3846
lines changed

src/ContainerRegistry/ContainerRegistry.Autorest/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
2121
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
2222
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - ContainerRegistry")]
23-
[assembly: System.Reflection.AssemblyFileVersionAttribute("4.3.0")]
24-
[assembly: System.Reflection.AssemblyVersionAttribute("4.3.0")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("4.3.1")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("4.3.1")]
2525
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
2626
[assembly: System.CLSCompliantAttribute(false)]

src/ContainerRegistry/ContainerRegistry.Autorest/README.md

Lines changed: 7 additions & 97 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,6 @@ title: ContainerRegistry
5555
subject-prefix: $(service-name)
5656

5757
inlining-threshold: 100
58-
resourcegroup-append: true
59-
nested-object-to-string: true
60-
61-
# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
62-
use-extension:
63-
"@autorest/powershell": "3.x"
6458

6559
directive:
6660
# Remove cmdlet, Private link related resource should be ignored.
@@ -69,7 +63,10 @@ directive:
6963
hide: true
7064
# Remove the unexpanded parameter set
7165
- where:
72-
variant: ^Create$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$|^CreateViaIdentity$|^ImportViaIdentity$|^ImportViaIdentityExpanded$|^CheckViaIdentity$|^CheckViaIdentityExpanded$|^PingViaIdentity$|^Check$|^RegenerateViaIdentity$|^Generate$|^GenerateViaIdentity$
66+
variant: ^(Create|Update|Import|Check|Generate)(?!.*?(Expanded|JsonFilePath|JsonString))
67+
remove: true
68+
- where:
69+
variant: ^CreateViaIdentity$|^CreateViaIdentityExpanded$|^ImportViaIdentityExpanded$|^CheckViaIdentityExpanded$
7370
remove: true
7471
- where:
7572
subject: PrivateEndpointConnection
@@ -125,7 +122,6 @@ directive:
125122
set:
126123
parameter-name: Sku
127124

128-
129125
- where:
130126
parameter-name: ServiceUri
131127
set:
@@ -325,93 +321,7 @@ directive:
325321
preview-announcement:
326322
preview-message: This is a preview version of ContainerRegistry. Let us know if you run into any issues.
327323

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
324+
- model-cmdlet:
325+
- model-name: IPRule
326+
cmdlet-name: New-AzContainerRegistryIPRuleObject
417327
```

src/ContainerRegistry/ContainerRegistry.Autorest/UX/Microsoft.ContainerRegistry/registries.json

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -5,44 +5,6 @@
55
"url": "https://learn.microsoft.com/powershell/module/az.containerregistry"
66
},
77
"commands": [
8-
{
9-
"name": "Import-AzContainerRegistryImage",
10-
"description": "Copies an image to this container registry from the specified container registry.",
11-
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/importImage",
12-
"help": {
13-
"learnMore": {
14-
"url": "https://learn.microsoft.com/powershell/module/az.containerregistry/import-azcontainerregistryimage"
15-
},
16-
"parameterSets": [
17-
{
18-
"parameters": [
19-
"-RegistryName <String>",
20-
"-ResourceGroupName <String>",
21-
"[-SubscriptionId <String>]"
22-
]
23-
}
24-
]
25-
},
26-
"examples": [
27-
{
28-
"description": "Copies an image to this container registry from the specified container registry.",
29-
"parameters": [
30-
{
31-
"name": "-RegistryName",
32-
"value": "[Path.registryName]"
33-
},
34-
{
35-
"name": "-ResourceGroupName",
36-
"value": "[Path.resourceGroupName]"
37-
},
38-
{
39-
"name": "-SubscriptionId",
40-
"value": "[Path.subscriptionId]"
41-
}
42-
]
43-
}
44-
]
45-
},
468
{
479
"name": "Remove-AzContainerRegistry",
4810
"description": "Deletes a container registry.",

src/ContainerRegistry/ContainerRegistry.Autorest/custom/Credential.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
// Code generated by Microsoft (R) AutoRest Code Generator.
44
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
55

6-
namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview
6+
namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models
77
{
88
public class PSContainerRegistryCredential
99
{
1010
public PSContainerRegistryCredential(RegistryListCredentialsResult credentials)
1111
{
1212
Username = credentials?.Username;
13-
Password = credentials?.Password?.Length > 0 ? credentials.Password[0]?.Value : string.Empty;
14-
Password2 = credentials?.Password?.Length > 1 ? credentials.Password[1]?.Value : string.Empty;
13+
Password = credentials?.Password?.Count > 0 ? credentials.Password[0]?.Value : string.Empty;
14+
Password2 = credentials?.Password?.Count > 1 ? credentials.Password[1]?.Value : string.Empty;
1515
}
1616

1717
public string Username { get; set; }

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Get-AzContainerRegistry
2929
.Inputs
3030
Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.IContainerRegistryIdentity
3131
.Outputs
32-
Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.IRegistry
32+
Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.IRegistry
3333
.Notes
3434
COMPLEX PARAMETER PROPERTIES
3535
@@ -60,8 +60,7 @@ INPUTOBJECT <IContainerRegistryIdentity>: Identity Parameter
6060
https://learn.microsoft.com/powershell/module/az.containerregistry/get-azcontainerregistry
6161
#>
6262
function Get-AzContainerRegistry {
63-
[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'."))]
63+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.IRegistry])]
6564
[CmdletBinding(DefaultParameterSetName='List2', PositionalBinding=$false)]
6665
param(
6766
[Parameter(ParameterSetName='Get', Mandatory)]

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,12 @@ Lists the login credentials for the specified container registry.
2424
$Cred.Password
2525
2626
.Outputs
27-
Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.IRegistryListCredentialsResult
27+
Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.IRegistryListCredentialsResult
2828
.Link
2929
https://learn.microsoft.com/powershell/module/az.containerregistry/get-azcontainerregistrycredential
3030
#>
3131
function Get-AzContainerRegistryCredential {
32-
[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'."))]
32+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.PSContainerRegistryCredential])]
3433
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
3534
param(
3635
[Parameter(ParameterSetName='List', Mandatory)]
@@ -49,7 +48,7 @@ param(
4948

5049
[Parameter(ParameterSetName='GetByRegistry', Mandatory, ValueFromPipeline)]
5150
[Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Category('Path')]
52-
[Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.IRegistry]
51+
[Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.IRegistry]
5352
# The Registry Object.
5453
${Registry},
5554

@@ -119,7 +118,7 @@ process {
119118
$null = $PSBoundParameters.Add("ResourceGroupName", $ResourceGroupName)
120119
}
121120
$Credential = Az.ContainerRegistry.internal\Get-AzContainerRegistryCredential @PSBoundParameters
122-
$Result = New-Object Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.PSContainerRegistryCredential($Credential)
121+
$Result = New-Object Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.PSContainerRegistryCredential($Credential)
123122
return $Result
124123
}
125124
}

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Get-AzContainerRegistryReplication -ResourceGroupName "MyResourceGroup" -Registr
2727
.Inputs
2828
Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.IContainerRegistryIdentity
2929
.Outputs
30-
Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.IReplication
30+
Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.IReplication
3131
.Notes
3232
COMPLEX PARAMETER PROPERTIES
3333
@@ -58,8 +58,7 @@ INPUTOBJECT <IContainerRegistryIdentity>: Identity Parameter
5858
https://learn.microsoft.com/powershell/module/az.containerregistry/get-azcontainerregistryreplication
5959
#>
6060
function Get-AzContainerRegistryReplication {
61-
[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'."))]
61+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.IReplication])]
6362
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
6463
param(
6564
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -103,7 +102,7 @@ param(
103102

104103
[Parameter(ParameterSetName='GetByRegistry', Mandatory, ValueFromPipeline)]
105104
[Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Category('Path')]
106-
[Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.IRegistry]
105+
[Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.IRegistry]
107106
# The Registry Object.
108107
${Registry},
109108

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Get-AzContainerRegistryWebhook -ResourceGroupName "MyResourceGroup" -RegistryNa
2828
.Inputs
2929
Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.IContainerRegistryIdentity
3030
.Outputs
31-
Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.IWebhook
31+
Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.IWebhook
3232
.Notes
3333
COMPLEX PARAMETER PROPERTIES
3434
@@ -59,8 +59,7 @@ INPUTOBJECT <IContainerRegistryIdentity>: Identity Parameter
5959
https://learn.microsoft.com/powershell/module/az.containerregistry/get-azcontainerregistrywebhook
6060
#>
6161
function Get-AzContainerRegistryWebhook {
62-
[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'."))]
62+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.IWebhook])]
6463
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
6564
param(
6665
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -104,7 +103,7 @@ param(
104103

105104
[Parameter(ParameterSetName='GetByRegistry', Mandatory)]
106105
[Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Category('Path')]
107-
[Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.IRegistry]
106+
[Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.IRegistry]
108107
# The Registry Object.
109108
${Registry},
110109

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,12 @@ Lists recent events for the specified webhook.
2323
Get-AzContainerRegistryWebhookEvent -ResourceGroupName lnxtest -RegistryName lnxcr -WebhookName webhook001
2424
2525
.Outputs
26-
Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.IEvent
26+
Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.IEvent
2727
.Link
2828
https://learn.microsoft.com/powershell/module/az.containerregistry/get-azcontainerregistrywebhookevent
2929
#>
3030
function Get-AzContainerRegistryWebhookEvent {
31-
[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'."))]
31+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.IEvent])]
3332
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
3433
param(
3534
[Parameter(ParameterSetName='List', Mandatory)]
@@ -62,7 +61,7 @@ param(
6261

6362
[Parameter(ParameterSetName='GetByWebhook', Mandatory, ValueFromPipeline)]
6463
[Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Category('Path')]
65-
[Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.IWebhook]
64+
[Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.IWebhook]
6665
# The Webhook Object.
6766
${Webhook},
6867

0 commit comments

Comments
 (0)