forked from Azure/azure-sdk-for-net
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.NET SDK Resource Provider:'ContainerRegistry'
REST Spec PR 'Azure/azure-rest-api-specs#5854' REST Spec PR Author 'ankurkhemani' REST Spec PR Last commit
- Loading branch information
Showing
38 changed files
with
1,102 additions
and
825 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<!--This file and it's contents are updated at build time moving or editing might result in build failure. Take due deligence while editing this file--> | ||
<PropertyGroup> | ||
<AzureApiTag>ContainerRegistry_2017-10-01;ContainerRegistry_2018-09-01;</AzureApiTag> | ||
<AzureApiTag>ContainerRegistry_2019-05-01;ContainerRegistry_2019-04-01;</AzureApiTag> | ||
<PackageTags>$(PackageTags);$(CommonTags);$(AzureApiTag);</PackageTags> | ||
</PropertyGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
74 changes: 74 additions & 0 deletions
74
src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Credentials.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
// <auto-generated> | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See License.txt in the project root for | ||
// license information. | ||
// | ||
// Code generated by Microsoft (R) AutoRest Code Generator. | ||
// Changes may cause incorrect behavior and will be lost if the code is | ||
// regenerated. | ||
// </auto-generated> | ||
|
||
namespace Microsoft.Azure.Management.ContainerRegistry.Models | ||
{ | ||
using Newtonsoft.Json; | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
|
||
/// <summary> | ||
/// The parameters that describes a set of credentials that will be used | ||
/// when a run is invoked. | ||
/// </summary> | ||
public partial class Credentials | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the Credentials class. | ||
/// </summary> | ||
public Credentials() | ||
{ | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the Credentials class. | ||
/// </summary> | ||
/// <param name="sourceRegistry">Describes the credential parameters | ||
/// for accessing the source registry.</param> | ||
/// <param name="customRegistries">Describes the credential parameters | ||
/// for accessing other custom registries. The key | ||
/// for the dictionary item will be the registry login server | ||
/// (myregistry.azurecr.io) and | ||
/// the value of the item will be the registry credentials for | ||
/// accessing the registry.</param> | ||
public Credentials(SourceRegistryCredentials sourceRegistry = default(SourceRegistryCredentials), IDictionary<string, CustomRegistryCredentials> customRegistries = default(IDictionary<string, CustomRegistryCredentials>)) | ||
{ | ||
SourceRegistry = sourceRegistry; | ||
CustomRegistries = customRegistries; | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// An initialization method that performs custom operations like setting defaults | ||
/// </summary> | ||
partial void CustomInit(); | ||
|
||
/// <summary> | ||
/// Gets or sets describes the credential parameters for accessing the | ||
/// source registry. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "sourceRegistry")] | ||
public SourceRegistryCredentials SourceRegistry { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets describes the credential parameters for accessing | ||
/// other custom registries. The key | ||
/// for the dictionary item will be the registry login server | ||
/// (myregistry.azurecr.io) and | ||
/// the value of the item will be the registry credentials for | ||
/// accessing the registry. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "customRegistries")] | ||
public IDictionary<string, CustomRegistryCredentials> CustomRegistries { get; set; } | ||
|
||
} | ||
} |
90 changes: 90 additions & 0 deletions
90
...tainerRegistry/Management.ContainerRegistry/Generated/Models/CustomRegistryCredentials.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
// <auto-generated> | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See License.txt in the project root for | ||
// license information. | ||
// | ||
// Code generated by Microsoft (R) AutoRest Code Generator. | ||
// Changes may cause incorrect behavior and will be lost if the code is | ||
// regenerated. | ||
// </auto-generated> | ||
|
||
namespace Microsoft.Azure.Management.ContainerRegistry.Models | ||
{ | ||
using Newtonsoft.Json; | ||
using System.Linq; | ||
|
||
/// <summary> | ||
/// Describes the credentials that will be used to access a custom registry | ||
/// during a run. | ||
/// </summary> | ||
public partial class CustomRegistryCredentials | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the CustomRegistryCredentials class. | ||
/// </summary> | ||
public CustomRegistryCredentials() | ||
{ | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the CustomRegistryCredentials class. | ||
/// </summary> | ||
/// <param name="userName">The username for logging into the custom | ||
/// registry.</param> | ||
/// <param name="password">The password for logging into the custom | ||
/// registry. The password is a secret | ||
/// object that allows multiple ways of providing the value for | ||
/// it.</param> | ||
/// <param name="identity">Indicates the managed identity assigned to | ||
/// the custom credential. If a user-assigned identity | ||
/// this value is the Client ID. If a system-assigned identity, the | ||
/// value will be `system`. In | ||
/// the case of a system-assigned identity, the Client ID will be | ||
/// determined by the runner. This | ||
/// identity may be used to authenticate to key vault to retrieve | ||
/// credentials or it may be the only | ||
/// source of authentication used for accessing the registry.</param> | ||
public CustomRegistryCredentials(SecretObject userName = default(SecretObject), SecretObject password = default(SecretObject), string identity = default(string)) | ||
{ | ||
UserName = userName; | ||
Password = password; | ||
Identity = identity; | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// An initialization method that performs custom operations like setting defaults | ||
/// </summary> | ||
partial void CustomInit(); | ||
|
||
/// <summary> | ||
/// Gets or sets the username for logging into the custom registry. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "userName")] | ||
public SecretObject UserName { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the password for logging into the custom registry. The | ||
/// password is a secret | ||
/// object that allows multiple ways of providing the value for it. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "password")] | ||
public SecretObject Password { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets indicates the managed identity assigned to the custom | ||
/// credential. If a user-assigned identity | ||
/// this value is the Client ID. If a system-assigned identity, the | ||
/// value will be `system`. In | ||
/// the case of a system-assigned identity, the Client ID will be | ||
/// determined by the runner. This | ||
/// identity may be used to authenticate to key vault to retrieve | ||
/// credentials or it may be the only | ||
/// source of authentication used for accessing the registry. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "identity")] | ||
public string Identity { get; set; } | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.