| | 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 information. |
| | 20 | | /// </summary> |
| | 21 | | public partial class ServicePrincipal : DirectoryObject |
| | 22 | | { |
| | 23 | | /// <summary> |
| | 24 | | /// Initializes a new instance of the ServicePrincipal class. |
| | 25 | | /// </summary> |
| 408 | 26 | | public ServicePrincipal() |
| | 27 | | { |
| | 28 | | CustomInit(); |
| 408 | 29 | | } |
| | 30 | |
|
| | 31 | | /// <summary> |
| | 32 | | /// Initializes a new instance of the ServicePrincipal class. |
| | 33 | | /// </summary> |
| | 34 | | /// <param name="additionalProperties">Unmatched properties from the |
| | 35 | | /// message are deserialized this collection</param> |
| | 36 | | /// <param name="objectId">The object ID.</param> |
| | 37 | | /// <param name="deletionTimestamp">The time at which the directory |
| | 38 | | /// object was deleted.</param> |
| | 39 | | /// <param name="accountEnabled">whether or not the service principal |
| | 40 | | /// account is enabled</param> |
| | 41 | | /// <param name="alternativeNames">alternative names</param> |
| | 42 | | /// <param name="appDisplayName">The display name exposed by the |
| | 43 | | /// associated application.</param> |
| | 44 | | /// <param name="appId">The application ID.</param> |
| | 45 | | /// <param name="appRoleAssignmentRequired">Specifies whether an |
| | 46 | | /// AppRoleAssignment to a user or group is required before Azure AD |
| | 47 | | /// will issue a user or access token to the application.</param> |
| | 48 | | /// <param name="appRoles">The collection of application roles that an |
| | 49 | | /// application may declare. These roles can be assigned to users, |
| | 50 | | /// groups or service principals.</param> |
| | 51 | | /// <param name="displayName">The display name of the service |
| | 52 | | /// principal.</param> |
| | 53 | | /// <param name="errorUrl">A URL provided by the author of the |
| | 54 | | /// associated application to report errors when using the |
| | 55 | | /// application.</param> |
| | 56 | | /// <param name="homepage">The URL to the homepage of the associated |
| | 57 | | /// application.</param> |
| | 58 | | /// <param name="keyCredentials">The collection of key credentials |
| | 59 | | /// associated with the service principal.</param> |
| | 60 | | /// <param name="logoutUrl">A URL provided by the author of the |
| | 61 | | /// associated application to logout</param> |
| | 62 | | /// <param name="oauth2Permissions">The OAuth 2.0 permissions exposed |
| | 63 | | /// by the associated application.</param> |
| | 64 | | /// <param name="passwordCredentials">The collection of password |
| | 65 | | /// credentials associated with the service principal.</param> |
| | 66 | | /// <param name="preferredTokenSigningKeyThumbprint">The thumbprint of |
| | 67 | | /// preferred certificate to sign the token</param> |
| | 68 | | /// <param name="publisherName">The publisher's name of the associated |
| | 69 | | /// application</param> |
| | 70 | | /// <param name="replyUrls">The URLs that user tokens are sent to for |
| | 71 | | /// sign in with the associated application. The redirect URIs that |
| | 72 | | /// the oAuth 2.0 authorization code and access tokens are sent to for |
| | 73 | | /// the associated application.</param> |
| | 74 | | /// <param name="samlMetadataUrl">The URL to the SAML metadata of the |
| | 75 | | /// associated application</param> |
| | 76 | | /// <param name="servicePrincipalNames">A collection of service |
| | 77 | | /// principal names.</param> |
| | 78 | | /// <param name="servicePrincipalType">the type of the service |
| | 79 | | /// principal</param> |
| | 80 | | /// <param name="tags">Optional list of tags that you can apply to your |
| | 81 | | /// service principals. Not nullable.</param> |
| | 82 | | public ServicePrincipal(IDictionary<string, object> additionalProperties = default(IDictionary<string, object>), |
| 0 | 83 | | : base(additionalProperties, objectId, deletionTimestamp) |
| | 84 | | { |
| 0 | 85 | | AccountEnabled = accountEnabled; |
| 0 | 86 | | AlternativeNames = alternativeNames; |
| 0 | 87 | | AppDisplayName = appDisplayName; |
| 0 | 88 | | AppId = appId; |
| 0 | 89 | | AppOwnerTenantId = appOwnerTenantId; |
| 0 | 90 | | AppRoleAssignmentRequired = appRoleAssignmentRequired; |
| 0 | 91 | | AppRoles = appRoles; |
| 0 | 92 | | DisplayName = displayName; |
| 0 | 93 | | ErrorUrl = errorUrl; |
| 0 | 94 | | Homepage = homepage; |
| 0 | 95 | | KeyCredentials = keyCredentials; |
| 0 | 96 | | LogoutUrl = logoutUrl; |
| 0 | 97 | | Oauth2Permissions = oauth2Permissions; |
| 0 | 98 | | PasswordCredentials = passwordCredentials; |
| 0 | 99 | | PreferredTokenSigningKeyThumbprint = preferredTokenSigningKeyThumbprint; |
| 0 | 100 | | PublisherName = publisherName; |
| 0 | 101 | | ReplyUrls = replyUrls; |
| 0 | 102 | | SamlMetadataUrl = samlMetadataUrl; |
| 0 | 103 | | ServicePrincipalNames = servicePrincipalNames; |
| 0 | 104 | | ServicePrincipalType = servicePrincipalType; |
| 0 | 105 | | Tags = tags; |
| | 106 | | CustomInit(); |
| 0 | 107 | | } |
| | 108 | |
|
| | 109 | | /// <summary> |
| | 110 | | /// An initialization method that performs custom operations like setting defaults |
| | 111 | | /// </summary> |
| | 112 | | partial void CustomInit(); |
| | 113 | |
|
| | 114 | | /// <summary> |
| | 115 | | /// Gets or sets whether or not the service principal account is |
| | 116 | | /// enabled |
| | 117 | | /// </summary> |
| | 118 | | [JsonProperty(PropertyName = "accountEnabled")] |
| 0 | 119 | | public bool? AccountEnabled { get; set; } |
| | 120 | |
|
| | 121 | | /// <summary> |
| | 122 | | /// Gets or sets alternative names |
| | 123 | | /// </summary> |
| | 124 | | [JsonProperty(PropertyName = "alternativeNames")] |
| 0 | 125 | | public IList<string> AlternativeNames { get; set; } |
| | 126 | |
|
| | 127 | | /// <summary> |
| | 128 | | /// Gets the display name exposed by the associated application. |
| | 129 | | /// </summary> |
| | 130 | | [JsonProperty(PropertyName = "appDisplayName")] |
| 0 | 131 | | public string AppDisplayName { get; private set; } |
| | 132 | |
|
| | 133 | | /// <summary> |
| | 134 | | /// Gets or sets the application ID. |
| | 135 | | /// </summary> |
| | 136 | | [JsonProperty(PropertyName = "appId")] |
| 0 | 137 | | public string AppId { get; set; } |
| | 138 | |
|
| | 139 | | /// <summary> |
| | 140 | | /// </summary> |
| | 141 | | [JsonProperty(PropertyName = "appOwnerTenantId")] |
| 0 | 142 | | public string AppOwnerTenantId { get; private set; } |
| | 143 | |
|
| | 144 | | /// <summary> |
| | 145 | | /// Gets or sets specifies whether an AppRoleAssignment to a user or |
| | 146 | | /// group is required before Azure AD will issue a user or access token |
| | 147 | | /// to the application. |
| | 148 | | /// </summary> |
| | 149 | | [JsonProperty(PropertyName = "appRoleAssignmentRequired")] |
| 0 | 150 | | public bool? AppRoleAssignmentRequired { get; set; } |
| | 151 | |
|
| | 152 | | /// <summary> |
| | 153 | | /// Gets or sets the collection of application roles that an |
| | 154 | | /// application may declare. These roles can be assigned to users, |
| | 155 | | /// groups or service principals. |
| | 156 | | /// </summary> |
| | 157 | | [JsonProperty(PropertyName = "appRoles")] |
| 0 | 158 | | public IList<AppRole> AppRoles { get; set; } |
| | 159 | |
|
| | 160 | | /// <summary> |
| | 161 | | /// Gets or sets the display name of the service principal. |
| | 162 | | /// </summary> |
| | 163 | | [JsonProperty(PropertyName = "displayName")] |
| 418 | 164 | | public string DisplayName { get; set; } |
| | 165 | |
|
| | 166 | | /// <summary> |
| | 167 | | /// Gets or sets a URL provided by the author of the associated |
| | 168 | | /// application to report errors when using the application. |
| | 169 | | /// </summary> |
| | 170 | | [JsonProperty(PropertyName = "errorUrl")] |
| 0 | 171 | | public string ErrorUrl { get; set; } |
| | 172 | |
|
| | 173 | | /// <summary> |
| | 174 | | /// Gets or sets the URL to the homepage of the associated application. |
| | 175 | | /// </summary> |
| | 176 | | [JsonProperty(PropertyName = "homepage")] |
| 0 | 177 | | public string Homepage { get; set; } |
| | 178 | |
|
| | 179 | | /// <summary> |
| | 180 | | /// Gets or sets the collection of key credentials associated with the |
| | 181 | | /// service principal. |
| | 182 | | /// </summary> |
| | 183 | | [JsonProperty(PropertyName = "keyCredentials")] |
| 0 | 184 | | public IList<KeyCredential> KeyCredentials { get; set; } |
| | 185 | |
|
| | 186 | | /// <summary> |
| | 187 | | /// Gets or sets a URL provided by the author of the associated |
| | 188 | | /// application to logout |
| | 189 | | /// </summary> |
| | 190 | | [JsonProperty(PropertyName = "logoutUrl")] |
| 0 | 191 | | public string LogoutUrl { get; set; } |
| | 192 | |
|
| | 193 | | /// <summary> |
| | 194 | | /// Gets the OAuth 2.0 permissions exposed by the associated |
| | 195 | | /// application. |
| | 196 | | /// </summary> |
| | 197 | | [JsonProperty(PropertyName = "oauth2Permissions")] |
| 0 | 198 | | public IList<OAuth2Permission> Oauth2Permissions { get; private set; } |
| | 199 | |
|
| | 200 | | /// <summary> |
| | 201 | | /// Gets or sets the collection of password credentials associated with |
| | 202 | | /// the service principal. |
| | 203 | | /// </summary> |
| | 204 | | [JsonProperty(PropertyName = "passwordCredentials")] |
| 0 | 205 | | public IList<PasswordCredential> PasswordCredentials { get; set; } |
| | 206 | |
|
| | 207 | | /// <summary> |
| | 208 | | /// Gets or sets the thumbprint of preferred certificate to sign the |
| | 209 | | /// token |
| | 210 | | /// </summary> |
| | 211 | | [JsonProperty(PropertyName = "preferredTokenSigningKeyThumbprint")] |
| 0 | 212 | | public string PreferredTokenSigningKeyThumbprint { get; set; } |
| | 213 | |
|
| | 214 | | /// <summary> |
| | 215 | | /// Gets or sets the publisher's name of the associated application |
| | 216 | | /// </summary> |
| | 217 | | [JsonProperty(PropertyName = "publisherName")] |
| 0 | 218 | | public string PublisherName { get; set; } |
| | 219 | |
|
| | 220 | | /// <summary> |
| | 221 | | /// Gets or sets the URLs that user tokens are sent to for sign in with |
| | 222 | | /// the associated application. The redirect URIs that the oAuth 2.0 |
| | 223 | | /// authorization code and access tokens are sent to for the associated |
| | 224 | | /// application. |
| | 225 | | /// </summary> |
| | 226 | | [JsonProperty(PropertyName = "replyUrls")] |
| 0 | 227 | | public IList<string> ReplyUrls { get; set; } |
| | 228 | |
|
| | 229 | | /// <summary> |
| | 230 | | /// Gets or sets the URL to the SAML metadata of the associated |
| | 231 | | /// application |
| | 232 | | /// </summary> |
| | 233 | | [JsonProperty(PropertyName = "samlMetadataUrl")] |
| 0 | 234 | | public string SamlMetadataUrl { get; set; } |
| | 235 | |
|
| | 236 | | /// <summary> |
| | 237 | | /// Gets or sets a collection of service principal names. |
| | 238 | | /// </summary> |
| | 239 | | [JsonProperty(PropertyName = "servicePrincipalNames")] |
| 416 | 240 | | public IList<string> ServicePrincipalNames { get; set; } |
| | 241 | |
|
| | 242 | | /// <summary> |
| | 243 | | /// Gets or sets the type of the service principal |
| | 244 | | /// </summary> |
| | 245 | | [JsonProperty(PropertyName = "servicePrincipalType")] |
| 0 | 246 | | public string ServicePrincipalType { get; set; } |
| | 247 | |
|
| | 248 | | /// <summary> |
| | 249 | | /// Gets or sets optional list of tags that you can apply to your |
| | 250 | | /// service principals. Not nullable. |
| | 251 | | /// </summary> |
| | 252 | | [JsonProperty(PropertyName = "tags")] |
| 0 | 253 | | public IList<string> Tags { get; set; } |
| | 254 | |
|
| | 255 | | } |
| | 256 | | } |