| | | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | | 2 | | // Licensed under the MIT License. |
| | | 3 | | |
| | | 4 | | // <auto-generated/> |
| | | 5 | | |
| | | 6 | | #nullable disable |
| | | 7 | | |
| | | 8 | | using System; |
| | | 9 | | |
| | | 10 | | namespace Azure.ResourceManager.KeyVault.Models |
| | | 11 | | { |
| | | 12 | | /// <summary> An identity that have access to the key vault. All identities in the array must use the same tenant ID |
| | | 13 | | public partial class AccessPolicyEntry |
| | | 14 | | { |
| | | 15 | | /// <summary> Initializes a new instance of AccessPolicyEntry. </summary> |
| | | 16 | | /// <param name="tenantId"> The Azure Active Directory tenant ID that should be used for authenticating requests |
| | | 17 | | /// <param name="objectId"> The object ID of a user, service principal or security group in the Azure Active Dir |
| | | 18 | | /// <param name="permissions"> Permissions the identity has for keys, secrets and certificates. </param> |
| | | 19 | | /// <exception cref="ArgumentNullException"> <paramref name="objectId"/> or <paramref name="permissions"/> is nu |
| | 24 | 20 | | public AccessPolicyEntry(Guid tenantId, string objectId, Permissions permissions) |
| | | 21 | | { |
| | 24 | 22 | | if (objectId == null) |
| | | 23 | | { |
| | 0 | 24 | | throw new ArgumentNullException(nameof(objectId)); |
| | | 25 | | } |
| | 24 | 26 | | if (permissions == null) |
| | | 27 | | { |
| | 0 | 28 | | throw new ArgumentNullException(nameof(permissions)); |
| | | 29 | | } |
| | | 30 | | |
| | 24 | 31 | | TenantId = tenantId; |
| | 24 | 32 | | ObjectId = objectId; |
| | 24 | 33 | | Permissions = permissions; |
| | 24 | 34 | | } |
| | | 35 | | |
| | | 36 | | /// <summary> Initializes a new instance of AccessPolicyEntry. </summary> |
| | | 37 | | /// <param name="tenantId"> The Azure Active Directory tenant ID that should be used for authenticating requests |
| | | 38 | | /// <param name="objectId"> The object ID of a user, service principal or security group in the Azure Active Dir |
| | | 39 | | /// <param name="applicationId"> Application ID of the client making request on behalf of a principal. </param> |
| | | 40 | | /// <param name="permissions"> Permissions the identity has for keys, secrets and certificates. </param> |
| | 76 | 41 | | internal AccessPolicyEntry(Guid tenantId, string objectId, Guid? applicationId, Permissions permissions) |
| | | 42 | | { |
| | 76 | 43 | | TenantId = tenantId; |
| | 76 | 44 | | ObjectId = objectId; |
| | 76 | 45 | | ApplicationId = applicationId; |
| | 76 | 46 | | Permissions = permissions; |
| | 76 | 47 | | } |
| | | 48 | | |
| | | 49 | | /// <summary> The Azure Active Directory tenant ID that should be used for authenticating requests to the key va |
| | 260 | 50 | | public Guid TenantId { get; set; } |
| | | 51 | | /// <summary> The object ID of a user, service principal or security group in the Azure Active Directory tenant |
| | 260 | 52 | | public string ObjectId { get; set; } |
| | | 53 | | /// <summary> Application ID of the client making request on behalf of a principal. </summary> |
| | 260 | 54 | | public Guid? ApplicationId { get; set; } |
| | | 55 | | /// <summary> Permissions the identity has for keys, secrets and certificates. </summary> |
| | 568 | 56 | | public Permissions Permissions { get; set; } |
| | | 57 | | } |
| | | 58 | | } |