Skip to content

Commit f0b3189

Browse files
Move ContainerRegistry to main (#22372)
1 parent a576086 commit f0b3189

File tree

136 files changed

+1750
-9165
lines changed

Some content is hidden

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

136 files changed

+1750
-9165
lines changed

src/ContainerRegistry/ContainerRegistry.Autorest/Az.ContainerRegistry.format.ps1xml

Lines changed: 0 additions & 372 deletions
Large diffs are not rendered by default.

src/ContainerRegistry/ContainerRegistry.Autorest/Az.ContainerRegistry.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
DotNetFrameworkVersion = '4.7.2'
1212
RequiredAssemblies = './bin/Az.ContainerRegistry.private.dll'
1313
FormatsToProcess = './Az.ContainerRegistry.format.ps1xml'
14-
FunctionsToExport = 'Get-AzContainerRegistry', 'Get-AzContainerRegistryAgentPool', 'Get-AzContainerRegistryAgentPoolQueueStatus', 'Get-AzContainerRegistryCredential', 'Get-AzContainerRegistryExportPipeline', 'Get-AzContainerRegistryImportPipeline', 'Get-AzContainerRegistryReplication', 'Get-AzContainerRegistryScopeMap', 'Get-AzContainerRegistryToken', 'Get-AzContainerRegistryUsage', 'Get-AzContainerRegistryWebhook', 'Get-AzContainerRegistryWebhookCallbackConfig', 'Get-AzContainerRegistryWebhookEvent', 'Import-AzContainerRegistryImage', 'New-AzContainerRegistry', 'New-AzContainerRegistryAgentPool', 'New-AzContainerRegistryExportPipeline', 'New-AzContainerRegistryImportPipeline', 'New-AzContainerRegistryIPRuleObject', 'New-AzContainerRegistryReplication', 'New-AzContainerRegistryScopeMap', 'New-AzContainerRegistryToken', 'New-AzContainerRegistryWebhook', 'Remove-AzContainerRegistry', 'Remove-AzContainerRegistryAgentPool', 'Remove-AzContainerRegistryExportPipeline', 'Remove-AzContainerRegistryImportPipeline', 'Remove-AzContainerRegistryReplication', 'Remove-AzContainerRegistryScopeMap', 'Remove-AzContainerRegistryToken', 'Remove-AzContainerRegistryWebhook', 'Test-AzContainerRegistryNameAvailability', 'Test-AzContainerRegistryWebhook', 'Update-AzContainerRegistry', 'Update-AzContainerRegistryAgentPool', 'Update-AzContainerRegistryCredential', 'Update-AzContainerRegistryScopeMap', 'Update-AzContainerRegistryToken', 'Update-AzContainerRegistryWebhook', '*'
14+
FunctionsToExport = 'Get-AzContainerRegistry', 'Get-AzContainerRegistryAgentPool', 'Get-AzContainerRegistryAgentPoolQueueStatus', 'Get-AzContainerRegistryCredential', 'Get-AzContainerRegistryExportPipeline', 'Get-AzContainerRegistryImportPipeline', 'Get-AzContainerRegistryReplication', 'Get-AzContainerRegistryScopeMap', 'Get-AzContainerRegistryToken', 'Get-AzContainerRegistryUsage', 'Get-AzContainerRegistryWebhook', 'Get-AzContainerRegistryWebhookCallbackConfig', 'Get-AzContainerRegistryWebhookEvent', 'Import-AzContainerRegistryImage', 'New-AzContainerRegistry', 'New-AzContainerRegistryAgentPool', 'New-AzContainerRegistryCredentials', 'New-AzContainerRegistryExportPipeline', 'New-AzContainerRegistryImportPipeline', 'New-AzContainerRegistryIPRuleObject', 'New-AzContainerRegistryReplication', 'New-AzContainerRegistryScopeMap', 'New-AzContainerRegistryToken', 'New-AzContainerRegistryWebhook', 'Remove-AzContainerRegistry', 'Remove-AzContainerRegistryAgentPool', 'Remove-AzContainerRegistryExportPipeline', 'Remove-AzContainerRegistryImportPipeline', 'Remove-AzContainerRegistryReplication', 'Remove-AzContainerRegistryScopeMap', 'Remove-AzContainerRegistryToken', 'Remove-AzContainerRegistryWebhook', 'Test-AzContainerRegistryNameAvailability', 'Test-AzContainerRegistryWebhook', 'Update-AzContainerRegistry', 'Update-AzContainerRegistryAgentPool', 'Update-AzContainerRegistryCredential', 'Update-AzContainerRegistryScopeMap', 'Update-AzContainerRegistryToken', 'Update-AzContainerRegistryWebhook', '*'
1515
AliasesToExport = '*'
1616
PrivateData = @{
1717
PSData = @{

src/ContainerRegistry/ContainerRegistry.Autorest/README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,12 @@ In this directory, run AutoRest:
4747
> see https://aka.ms/autorest
4848
4949
``` yaml
50-
branch: 891dd18a70057c2fee388573117683e6d0081bda
50+
branch: 66174681c09b101de03fd35399080cfbccc93e8f
5151
require:
5252
- $(this-folder)/../../readme.azure.noprofile.md
53-
# lock the commit
54-
input-file:
55-
- https://github.com/Azure/azure-rest-api-specs/blob/66174681c09b101de03fd35399080cfbccc93e8f/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/containerregistry.json
56-
- https://github.com/Azure/azure-rest-api-specs/blob/66174681c09b101de03fd35399080cfbccc93e8f/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/containerregistry_build.json
53+
- $(repo)/specification/containerregistry/resource-manager/readme.md
54+
try-require:
55+
- $(repo)/specification/containerregistry/resource-manager/readme.powershell.md
5756
module-version: 0.1.0
5857
title: ContainerRegistry
5958
subject-prefix: $(service-name)
@@ -69,7 +68,7 @@ directive:
6968
hide: true
7069
# Remove the unexpanded parameter set
7170
- where:
72-
variant: ^Create$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$|^CreateViaIdentity$|^ImportViaIdentity$|^ImportViaIdentityExpanded$|^CheckViaIdentity$|^CheckViaIdentityExpanded$|^PingViaIdentity$|^Check$|^RegenerateViaIdentity$
71+
variant: ^Create$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$|^CreateViaIdentity$|^ImportViaIdentity$|^ImportViaIdentityExpanded$|^CheckViaIdentity$|^CheckViaIdentityExpanded$|^PingViaIdentity$|^Check$|^RegenerateViaIdentity$|^Generate$|^GenerateViaIdentity$
7372
remove: true
7473
- where:
7574
subject: PrivateEndpointConnection

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License. See License.txt in the project root for license information.
3+
// Code generated by Microsoft (R) AutoRest Code Generator.
4+
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
5+
16
namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview
27
{
38
public class PSContainerRegistryCredential
Lines changed: 175 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,175 @@
1+
# ----------------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
# http://www.apache.org/licenses/LICENSE-2.0
7+
# Unless required by applicable law or agreed to in writing, software
8+
# distributed under the License is distributed on an "AS IS" BASIS,
9+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10+
# See the License for the specific language governing permissions and
11+
# limitations under the License.
12+
# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
13+
# is regenerated.
14+
# ----------------------------------------------------------------------------------
15+
16+
<#
17+
.Synopsis
18+
Generate keys for a token of a specified container registry.
19+
.Description
20+
Generate keys for a token of a specified container registry.
21+
.Example
22+
New-AzContainerRegistryCredentials -TokenId /subscriptions/xxxx/resourceGroups/MyResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tokens/mytoken -RegistryName myRegistry -ResourceGroupName MyResourceGroup
23+
24+
.Inputs
25+
Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.IContainerRegistryIdentity
26+
.Outputs
27+
Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.IGenerateCredentialsResult
28+
.Notes
29+
COMPLEX PARAMETER PROPERTIES
30+
31+
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
32+
33+
INPUTOBJECT <IContainerRegistryIdentity>: Identity Parameter
34+
[AgentPoolName <String>]: The name of the agent pool.
35+
[CacheRuleName <String>]: The name of the cache rule.
36+
[ConnectedRegistryName <String>]: The name of the connected registry.
37+
[CredentialSetName <String>]: The name of the credential set.
38+
[ExportPipelineName <String>]: The name of the export pipeline.
39+
[GroupName <String>]: The name of the private link resource.
40+
[Id <String>]: Resource identity path
41+
[ImportPipelineName <String>]: The name of the import pipeline.
42+
[PipelineRunName <String>]: The name of the pipeline run.
43+
[PrivateEndpointConnectionName <String>]: The name of the private endpoint connection.
44+
[RegistryName <String>]: The name of the container registry.
45+
[ReplicationName <String>]: The name of the replication.
46+
[ResourceGroupName <String>]: The name of the resource group. The name is case insensitive.
47+
[RunId <String>]: The run ID.
48+
[ScopeMapName <String>]: The name of the scope map.
49+
[SubscriptionId <String>]: The ID of the target subscription. The value must be an UUID.
50+
[TaskName <String>]: The name of the container registry task.
51+
[TaskRunName <String>]: The name of the task run.
52+
[TokenName <String>]: The name of the token.
53+
[WebhookName <String>]: The name of the webhook.
54+
.Link
55+
https://learn.microsoft.com/powershell/module/az.containerregistry/new-azcontainerregistrycredentials
56+
#>
57+
function New-AzContainerRegistryCredentials {
58+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.PSContainerRegistryCredential])]
59+
[CmdletBinding(DefaultParameterSetName='GenerateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
60+
param(
61+
[Parameter(ParameterSetName='GenerateExpanded', Mandatory)]
62+
[Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Category('Path')]
63+
[System.String]
64+
# The name of the container registry.
65+
${RegistryName},
66+
67+
[Parameter(ParameterSetName='GenerateExpanded', Mandatory)]
68+
[Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Category('Path')]
69+
[System.String]
70+
# The name of the resource group.
71+
# The name is case insensitive.
72+
${ResourceGroupName},
73+
74+
[Parameter(ParameterSetName='GenerateExpanded')]
75+
[Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Category('Path')]
76+
[Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
77+
[System.String]
78+
# The ID of the target subscription.
79+
# The value must be an UUID.
80+
${SubscriptionId},
81+
82+
[Parameter(ParameterSetName='GenerateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
83+
[Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Category('Path')]
84+
[Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.IContainerRegistryIdentity]
85+
# Identity Parameter
86+
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
87+
${InputObject},
88+
89+
[Parameter()]
90+
[Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Category('Body')]
91+
[System.DateTime]
92+
# The expiry date of the generated credentials after which the credentials become invalid.
93+
${Expiry},
94+
95+
[Parameter()]
96+
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Support.TokenPasswordName])]
97+
[Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Category('Body')]
98+
[Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Support.TokenPasswordName]
99+
# Specifies name of the password which should be regenerated if any -- password1 or password2.
100+
${Name},
101+
102+
[Parameter()]
103+
[Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Category('Body')]
104+
[System.String]
105+
# The resource ID of the token for which credentials have to be generated.
106+
${TokenId},
107+
108+
[Parameter()]
109+
[Alias('AzureRMContext', 'AzureCredential')]
110+
[ValidateNotNull()]
111+
[Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Category('Azure')]
112+
[System.Management.Automation.PSObject]
113+
# The DefaultProfile parameter is not functional.
114+
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
115+
${DefaultProfile},
116+
117+
[Parameter()]
118+
[Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Category('Runtime')]
119+
[System.Management.Automation.SwitchParameter]
120+
# Run the command as a job
121+
${AsJob},
122+
123+
[Parameter(DontShow)]
124+
[Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Category('Runtime')]
125+
[System.Management.Automation.SwitchParameter]
126+
# Wait for .NET debugger to attach
127+
${Break},
128+
129+
[Parameter(DontShow)]
130+
[ValidateNotNull()]
131+
[Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Category('Runtime')]
132+
[Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Runtime.SendAsyncStep[]]
133+
# SendAsync Pipeline Steps to be appended to the front of the pipeline
134+
${HttpPipelineAppend},
135+
136+
[Parameter(DontShow)]
137+
[ValidateNotNull()]
138+
[Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Category('Runtime')]
139+
[Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Runtime.SendAsyncStep[]]
140+
# SendAsync Pipeline Steps to be prepended to the front of the pipeline
141+
${HttpPipelinePrepend},
142+
143+
[Parameter()]
144+
[Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Category('Runtime')]
145+
[System.Management.Automation.SwitchParameter]
146+
# Run the command asynchronously
147+
${NoWait},
148+
149+
[Parameter(DontShow)]
150+
[Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Category('Runtime')]
151+
[System.Uri]
152+
# The URI for the proxy server to use
153+
${Proxy},
154+
155+
[Parameter(DontShow)]
156+
[ValidateNotNull()]
157+
[Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Category('Runtime')]
158+
[System.Management.Automation.PSCredential]
159+
# Credentials for a proxy server to use for the remote call
160+
${ProxyCredential},
161+
162+
[Parameter(DontShow)]
163+
[Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Category('Runtime')]
164+
[System.Management.Automation.SwitchParameter]
165+
# Use the default credentials for the proxy
166+
${ProxyUseDefaultCredentials}
167+
)
168+
169+
process {
170+
$Credential = Az.ContainerRegistry.internal\New-AzContainerRegistryCredentials @PSBoundParameters
171+
$Result = New-Object Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.PSContainerRegistryCredential($Credential)
172+
return $Result
173+
}
174+
}
175+

src/ContainerRegistry/ContainerRegistry.Autorest/custom/Registry.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301P
1111
public partial class Registry :
1212
Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.IRegistry,
1313
Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.IRegistryInternal,
14-
Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Runtime.IValidates,
15-
Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Runtime.IHeaderSerializable
14+
Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Runtime.IValidates
1615
{
1716
public Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.IRegistryUsage[] Usages {get;set;}
1817

src/ContainerRegistry/ContainerRegistry.Autorest/docs/Az.ContainerRegistry.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ Creates a container registry with the specified parameters.
5959
### [New-AzContainerRegistryAgentPool](New-AzContainerRegistryAgentPool.md)
6060
Creates an agent pool for a container registry with the specified parameters.
6161

62+
### [New-AzContainerRegistryCredentials](New-AzContainerRegistryCredentials.md)
63+
Generate keys for a token of a specified container registry.
64+
6265
### [New-AzContainerRegistryExportPipeline](New-AzContainerRegistryExportPipeline.md)
6366
Creates an export pipeline for a container registry with the specified parameters.
6467

src/ContainerRegistry/ContainerRegistry.Autorest/docs/Get-AzContainerRegistryCredential.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,6 @@ To create the parameters described below, construct a hash table containing the
188188
- `[AdminUserEnabled <Boolean?>]`: The value that indicates whether the admin user is enabled.
189189
- `[AnonymousPullEnabled <Boolean?>]`: Enables registry-wide pull from unauthenticated clients.
190190
- `[AzureAdAuthenticationAsArmPolicyStatus <AzureAdAuthenticationAsArmPolicyStatus?>]`: The value that indicates whether the policy is enabled or not.
191-
- `[AzureAsyncOperation <String>]`:
192191
- `[DataEndpointEnabled <Boolean?>]`: Enable a single data endpoint per region for serving data.
193192
- `[EncryptionStatus <EncryptionStatus?>]`: Indicates whether or not the encryption is enabled for container registry.
194193
- `[ExportPolicyStatus <ExportPolicyStatus?>]`: The value that indicates whether the policy is enabled or not.

src/ContainerRegistry/ContainerRegistry.Autorest/docs/Get-AzContainerRegistryReplication.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,6 @@ To create the parameters described below, construct a hash table containing the
236236
- `[AdminUserEnabled <Boolean?>]`: The value that indicates whether the admin user is enabled.
237237
- `[AnonymousPullEnabled <Boolean?>]`: Enables registry-wide pull from unauthenticated clients.
238238
- `[AzureAdAuthenticationAsArmPolicyStatus <AzureAdAuthenticationAsArmPolicyStatus?>]`: The value that indicates whether the policy is enabled or not.
239-
- `[AzureAsyncOperation <String>]`:
240239
- `[DataEndpointEnabled <Boolean?>]`: Enable a single data endpoint per region for serving data.
241240
- `[EncryptionStatus <EncryptionStatus?>]`: Indicates whether or not the encryption is enabled for container registry.
242241
- `[ExportPolicyStatus <ExportPolicyStatus?>]`: The value that indicates whether the policy is enabled or not.

src/ContainerRegistry/ContainerRegistry.Autorest/docs/Get-AzContainerRegistryWebhook.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,6 @@ To create the parameters described below, construct a hash table containing the
236236
- `[AdminUserEnabled <Boolean?>]`: The value that indicates whether the admin user is enabled.
237237
- `[AnonymousPullEnabled <Boolean?>]`: Enables registry-wide pull from unauthenticated clients.
238238
- `[AzureAdAuthenticationAsArmPolicyStatus <AzureAdAuthenticationAsArmPolicyStatus?>]`: The value that indicates whether the policy is enabled or not.
239-
- `[AzureAsyncOperation <String>]`:
240239
- `[DataEndpointEnabled <Boolean?>]`: Enable a single data endpoint per region for serving data.
241240
- `[EncryptionStatus <EncryptionStatus?>]`: Indicates whether or not the encryption is enabled for container registry.
242241
- `[ExportPolicyStatus <ExportPolicyStatus?>]`: The value that indicates whether the policy is enabled or not.

0 commit comments

Comments
 (0)