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#5561' REST Spec PR Author 'jaysterp' REST Spec PR Last commit
- Loading branch information
Showing
13 changed files
with
284 additions
and
22 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_2017-10-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
90 changes: 90 additions & 0 deletions
90
...DKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/IdentityProperties.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.Collections; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
|
||
/// <summary> | ||
/// Managed identity for the resource. | ||
/// </summary> | ||
public partial class IdentityProperties | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the IdentityProperties class. | ||
/// </summary> | ||
public IdentityProperties() | ||
{ | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the IdentityProperties class. | ||
/// </summary> | ||
/// <param name="principalId">The principal ID of resource | ||
/// identity.</param> | ||
/// <param name="tenantId">The tenant ID of resource.</param> | ||
/// <param name="type">The identity type. Possible values include: | ||
/// 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', | ||
/// 'None'</param> | ||
/// <param name="userAssignedIdentities">The list of user identities | ||
/// associated with the resource. The user identity | ||
/// dictionary key references will be ARM resource ids in the form: | ||
/// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/ | ||
/// providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.</param> | ||
public IdentityProperties(string principalId = default(string), string tenantId = default(string), ResourceIdentityType? type = default(ResourceIdentityType?), IDictionary<string, UserIdentityProperties> userAssignedIdentities = default(IDictionary<string, UserIdentityProperties>)) | ||
{ | ||
PrincipalId = principalId; | ||
TenantId = tenantId; | ||
Type = type; | ||
UserAssignedIdentities = userAssignedIdentities; | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// An initialization method that performs custom operations like setting defaults | ||
/// </summary> | ||
partial void CustomInit(); | ||
|
||
/// <summary> | ||
/// Gets or sets the principal ID of resource identity. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "principalId")] | ||
public string PrincipalId { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the tenant ID of resource. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "tenantId")] | ||
public string TenantId { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the identity type. Possible values include: | ||
/// 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', | ||
/// 'None' | ||
/// </summary> | ||
[JsonProperty(PropertyName = "type")] | ||
public ResourceIdentityType? Type { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the list of user identities associated with the | ||
/// resource. The user identity | ||
/// dictionary key references will be ARM resource ids in the form: | ||
/// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/ | ||
/// providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "userAssignedIdentities")] | ||
public IDictionary<string, UserIdentityProperties> UserAssignedIdentities { get; set; } | ||
|
||
} | ||
} |
72 changes: 72 additions & 0 deletions
72
...s/ContainerRegistry/Management.ContainerRegistry/Generated/Models/ResourceIdentityType.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,72 @@ | ||
// <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 Newtonsoft.Json.Converters; | ||
using System.Runtime; | ||
using System.Runtime.Serialization; | ||
|
||
/// <summary> | ||
/// Defines values for ResourceIdentityType. | ||
/// </summary> | ||
[JsonConverter(typeof(StringEnumConverter))] | ||
public enum ResourceIdentityType | ||
{ | ||
[EnumMember(Value = "SystemAssigned")] | ||
SystemAssigned, | ||
[EnumMember(Value = "UserAssigned")] | ||
UserAssigned, | ||
[EnumMember(Value = "SystemAssigned, UserAssigned")] | ||
SystemAssignedUserAssigned, | ||
[EnumMember(Value = "None")] | ||
None | ||
} | ||
internal static class ResourceIdentityTypeEnumExtension | ||
{ | ||
internal static string ToSerializedValue(this ResourceIdentityType? value) | ||
{ | ||
return value == null ? null : ((ResourceIdentityType)value).ToSerializedValue(); | ||
} | ||
|
||
internal static string ToSerializedValue(this ResourceIdentityType value) | ||
{ | ||
switch( value ) | ||
{ | ||
case ResourceIdentityType.SystemAssigned: | ||
return "SystemAssigned"; | ||
case ResourceIdentityType.UserAssigned: | ||
return "UserAssigned"; | ||
case ResourceIdentityType.SystemAssignedUserAssigned: | ||
return "SystemAssigned, UserAssigned"; | ||
case ResourceIdentityType.None: | ||
return "None"; | ||
} | ||
return null; | ||
} | ||
|
||
internal static ResourceIdentityType? ParseResourceIdentityType(this string value) | ||
{ | ||
switch( value ) | ||
{ | ||
case "SystemAssigned": | ||
return ResourceIdentityType.SystemAssigned; | ||
case "UserAssigned": | ||
return ResourceIdentityType.UserAssigned; | ||
case "SystemAssigned, UserAssigned": | ||
return ResourceIdentityType.SystemAssignedUserAssigned; | ||
case "None": | ||
return ResourceIdentityType.None; | ||
} | ||
return null; | ||
} | ||
} | ||
} |
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
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
58 changes: 58 additions & 0 deletions
58
...ContainerRegistry/Management.ContainerRegistry/Generated/Models/UserIdentityProperties.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,58 @@ | ||
// <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; | ||
|
||
public partial class UserIdentityProperties | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the UserIdentityProperties class. | ||
/// </summary> | ||
public UserIdentityProperties() | ||
{ | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the UserIdentityProperties class. | ||
/// </summary> | ||
/// <param name="principalId">The principal id of user assigned | ||
/// identity.</param> | ||
/// <param name="clientId">The client id of user assigned | ||
/// identity.</param> | ||
public UserIdentityProperties(string principalId = default(string), string clientId = default(string)) | ||
{ | ||
PrincipalId = principalId; | ||
ClientId = clientId; | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// An initialization method that performs custom operations like setting defaults | ||
/// </summary> | ||
partial void CustomInit(); | ||
|
||
/// <summary> | ||
/// Gets or sets the principal id of user assigned identity. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "principalId")] | ||
public string PrincipalId { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the client id of user assigned identity. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "clientId")] | ||
public string ClientId { 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
Oops, something went wrong.