| | | 1 | | // <auto-generated> |
| | | 2 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | | 3 | | // Licensed under the MIT License. See License.txt in the project root for |
| | | 4 | | // license information. |
| | | 5 | | // |
| | | 6 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | | 7 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | | 8 | | // regenerated. |
| | | 9 | | // </auto-generated> |
| | | 10 | | |
| | | 11 | | namespace Microsoft.Azure.Graph.RBAC.Models |
| | | 12 | | { |
| | | 13 | | using Newtonsoft.Json; |
| | | 14 | | using System.Collections; |
| | | 15 | | using System.Collections.Generic; |
| | | 16 | | using System.Linq; |
| | | 17 | | |
| | | 18 | | /// <summary> |
| | | 19 | | /// Active Directory service principal common properties shared among GET, |
| | | 20 | | /// POST and PATCH |
| | | 21 | | /// </summary> |
| | | 22 | | public partial class ServicePrincipalBase |
| | | 23 | | { |
| | | 24 | | /// <summary> |
| | | 25 | | /// Initializes a new instance of the ServicePrincipalBase class. |
| | | 26 | | /// </summary> |
| | 0 | 27 | | public ServicePrincipalBase() |
| | | 28 | | { |
| | | 29 | | CustomInit(); |
| | 0 | 30 | | } |
| | | 31 | | |
| | | 32 | | /// <summary> |
| | | 33 | | /// Initializes a new instance of the ServicePrincipalBase class. |
| | | 34 | | /// </summary> |
| | | 35 | | /// <param name="accountEnabled">whether or not the service principal |
| | | 36 | | /// account is enabled</param> |
| | | 37 | | /// <param name="appRoleAssignmentRequired">Specifies whether an |
| | | 38 | | /// AppRoleAssignment to a user or group is required before Azure AD |
| | | 39 | | /// will issue a user or access token to the application.</param> |
| | | 40 | | /// <param name="keyCredentials">The collection of key credentials |
| | | 41 | | /// associated with the service principal.</param> |
| | | 42 | | /// <param name="passwordCredentials">The collection of password |
| | | 43 | | /// credentials associated with the service principal.</param> |
| | | 44 | | /// <param name="servicePrincipalType">the type of the service |
| | | 45 | | /// principal</param> |
| | | 46 | | /// <param name="tags">Optional list of tags that you can apply to your |
| | | 47 | | /// service principals. Not nullable.</param> |
| | 0 | 48 | | public ServicePrincipalBase(bool? accountEnabled = default(bool?), bool? appRoleAssignmentRequired = default(boo |
| | | 49 | | { |
| | 0 | 50 | | AccountEnabled = accountEnabled; |
| | 0 | 51 | | AppRoleAssignmentRequired = appRoleAssignmentRequired; |
| | 0 | 52 | | KeyCredentials = keyCredentials; |
| | 0 | 53 | | PasswordCredentials = passwordCredentials; |
| | 0 | 54 | | ServicePrincipalType = servicePrincipalType; |
| | 0 | 55 | | Tags = tags; |
| | | 56 | | CustomInit(); |
| | 0 | 57 | | } |
| | | 58 | | |
| | | 59 | | /// <summary> |
| | | 60 | | /// An initialization method that performs custom operations like setting defaults |
| | | 61 | | /// </summary> |
| | | 62 | | partial void CustomInit(); |
| | | 63 | | |
| | | 64 | | /// <summary> |
| | | 65 | | /// Gets or sets whether or not the service principal account is |
| | | 66 | | /// enabled |
| | | 67 | | /// </summary> |
| | | 68 | | [JsonProperty(PropertyName = "accountEnabled")] |
| | 0 | 69 | | public bool? AccountEnabled { get; set; } |
| | | 70 | | |
| | | 71 | | /// <summary> |
| | | 72 | | /// Gets or sets specifies whether an AppRoleAssignment to a user or |
| | | 73 | | /// group is required before Azure AD will issue a user or access token |
| | | 74 | | /// to the application. |
| | | 75 | | /// </summary> |
| | | 76 | | [JsonProperty(PropertyName = "appRoleAssignmentRequired")] |
| | 0 | 77 | | public bool? AppRoleAssignmentRequired { get; set; } |
| | | 78 | | |
| | | 79 | | /// <summary> |
| | | 80 | | /// Gets or sets the collection of key credentials associated with the |
| | | 81 | | /// service principal. |
| | | 82 | | /// </summary> |
| | | 83 | | [JsonProperty(PropertyName = "keyCredentials")] |
| | 0 | 84 | | public IList<KeyCredential> KeyCredentials { get; set; } |
| | | 85 | | |
| | | 86 | | /// <summary> |
| | | 87 | | /// Gets or sets the collection of password credentials associated with |
| | | 88 | | /// the service principal. |
| | | 89 | | /// </summary> |
| | | 90 | | [JsonProperty(PropertyName = "passwordCredentials")] |
| | 0 | 91 | | public IList<PasswordCredential> PasswordCredentials { get; set; } |
| | | 92 | | |
| | | 93 | | /// <summary> |
| | | 94 | | /// Gets or sets the type of the service principal |
| | | 95 | | /// </summary> |
| | | 96 | | [JsonProperty(PropertyName = "servicePrincipalType")] |
| | 0 | 97 | | public string ServicePrincipalType { get; set; } |
| | | 98 | | |
| | | 99 | | /// <summary> |
| | | 100 | | /// Gets or sets optional list of tags that you can apply to your |
| | | 101 | | /// service principals. Not nullable. |
| | | 102 | | /// </summary> |
| | | 103 | | [JsonProperty(PropertyName = "tags")] |
| | 0 | 104 | | public IList<string> Tags { get; set; } |
| | | 105 | | |
| | | 106 | | } |
| | | 107 | | } |