| | 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 application information. |
| | 20 | | /// </summary> |
| | 21 | | public partial class Application : DirectoryObject |
| | 22 | | { |
| | 23 | | /// <summary> |
| | 24 | | /// Initializes a new instance of the Application class. |
| | 25 | | /// </summary> |
| 0 | 26 | | public Application() |
| | 27 | | { |
| | 28 | | CustomInit(); |
| 0 | 29 | | } |
| | 30 | |
|
| | 31 | | /// <summary> |
| | 32 | | /// Initializes a new instance of the Application 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="appId">The application ID.</param> |
| | 40 | | /// <param name="allowGuestsSignIn">A property on the application to |
| | 41 | | /// indicate if the application accepts other IDPs or not or partially |
| | 42 | | /// accepts.</param> |
| | 43 | | /// <param name="allowPassthroughUsers">Indicates that the application |
| | 44 | | /// supports pass through users who have no presence in the resource |
| | 45 | | /// tenant.</param> |
| | 46 | | /// <param name="appLogoUrl">The url for the application logo image |
| | 47 | | /// stored in a CDN.</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="appPermissions">The application permissions.</param> |
| | 52 | | /// <param name="availableToOtherTenants">Whether the application is |
| | 53 | | /// available to other tenants.</param> |
| | 54 | | /// <param name="displayName">The display name of the |
| | 55 | | /// application.</param> |
| | 56 | | /// <param name="errorUrl">A URL provided by the author of the |
| | 57 | | /// application to report errors when using the application.</param> |
| | 58 | | /// <param name="groupMembershipClaims">Configures the groups claim |
| | 59 | | /// issued in a user or OAuth 2.0 access token that the app |
| | 60 | | /// expects.</param> |
| | 61 | | /// <param name="homepage">The home page of the application.</param> |
| | 62 | | /// <param name="identifierUris">A collection of URIs for the |
| | 63 | | /// application.</param> |
| | 64 | | /// <param name="informationalUrls">URLs with more information about |
| | 65 | | /// the application.</param> |
| | 66 | | /// <param name="isDeviceOnlyAuthSupported">Specifies whether this |
| | 67 | | /// application supports device authentication without a user. The |
| | 68 | | /// default is false.</param> |
| | 69 | | /// <param name="keyCredentials">A collection of KeyCredential |
| | 70 | | /// objects.</param> |
| | 71 | | /// <param name="knownClientApplications">Client applications that are |
| | 72 | | /// tied to this resource application. Consent to any of the known |
| | 73 | | /// client applications will result in implicit consent to the resource |
| | 74 | | /// application through a combined consent dialog (showing the OAuth |
| | 75 | | /// permission scopes required by the client and the resource).</param> |
| | 76 | | /// <param name="logoutUrl">the url of the logout page</param> |
| | 77 | | /// <param name="oauth2AllowImplicitFlow">Whether to allow implicit |
| | 78 | | /// grant flow for OAuth2</param> |
| | 79 | | /// <param name="oauth2AllowUrlPathMatching">Specifies whether during a |
| | 80 | | /// token Request Azure AD will allow path matching of the redirect URI |
| | 81 | | /// against the applications collection of replyURLs. The default is |
| | 82 | | /// false.</param> |
| | 83 | | /// <param name="oauth2Permissions">The collection of OAuth 2.0 |
| | 84 | | /// permission scopes that the web API (resource) application exposes |
| | 85 | | /// to client applications. These permission scopes may be granted to |
| | 86 | | /// client applications during consent.</param> |
| | 87 | | /// <param name="oauth2RequirePostResponse">Specifies whether, as part |
| | 88 | | /// of OAuth 2.0 token requests, Azure AD will allow POST requests, as |
| | 89 | | /// opposed to GET requests. The default is false, which specifies that |
| | 90 | | /// only GET requests will be allowed.</param> |
| | 91 | | /// <param name="orgRestrictions">A list of tenants allowed to access |
| | 92 | | /// application.</param> |
| | 93 | | /// <param name="passwordCredentials">A collection of |
| | 94 | | /// PasswordCredential objects</param> |
| | 95 | | /// <param name="preAuthorizedApplications">list of pre-authorized |
| | 96 | | /// applications.</param> |
| | 97 | | /// <param name="publicClient">Specifies whether this application is a |
| | 98 | | /// public client (such as an installed application running on a mobile |
| | 99 | | /// device). Default is false.</param> |
| | 100 | | /// <param name="publisherDomain">Reliable domain which can be used to |
| | 101 | | /// identify an application.</param> |
| | 102 | | /// <param name="replyUrls">A collection of reply URLs for the |
| | 103 | | /// application.</param> |
| | 104 | | /// <param name="requiredResourceAccess">Specifies resources that this |
| | 105 | | /// application requires access to and the set of OAuth permission |
| | 106 | | /// scopes and application roles that it needs under each of those |
| | 107 | | /// resources. This pre-configuration of required resource access |
| | 108 | | /// drives the consent experience.</param> |
| | 109 | | /// <param name="samlMetadataUrl">The URL to the SAML metadata for the |
| | 110 | | /// application.</param> |
| | 111 | | /// <param name="signInAudience">Audience for signing in to the |
| | 112 | | /// application (AzureADMyOrganization, AzureADAllOrganizations, |
| | 113 | | /// AzureADAndMicrosoftAccounts).</param> |
| | 114 | | /// <param name="wwwHomepage">The primary Web page.</param> |
| | 115 | | public Application(IDictionary<string, object> additionalProperties = default(IDictionary<string, object>), stri |
| 0 | 116 | | : base(additionalProperties, objectId, deletionTimestamp) |
| | 117 | | { |
| 0 | 118 | | AppId = appId; |
| 0 | 119 | | AllowGuestsSignIn = allowGuestsSignIn; |
| 0 | 120 | | AllowPassthroughUsers = allowPassthroughUsers; |
| 0 | 121 | | AppLogoUrl = appLogoUrl; |
| 0 | 122 | | AppRoles = appRoles; |
| 0 | 123 | | AppPermissions = appPermissions; |
| 0 | 124 | | AvailableToOtherTenants = availableToOtherTenants; |
| 0 | 125 | | DisplayName = displayName; |
| 0 | 126 | | ErrorUrl = errorUrl; |
| 0 | 127 | | GroupMembershipClaims = groupMembershipClaims; |
| 0 | 128 | | Homepage = homepage; |
| 0 | 129 | | IdentifierUris = identifierUris; |
| 0 | 130 | | InformationalUrls = informationalUrls; |
| 0 | 131 | | IsDeviceOnlyAuthSupported = isDeviceOnlyAuthSupported; |
| 0 | 132 | | KeyCredentials = keyCredentials; |
| 0 | 133 | | KnownClientApplications = knownClientApplications; |
| 0 | 134 | | LogoutUrl = logoutUrl; |
| 0 | 135 | | Oauth2AllowImplicitFlow = oauth2AllowImplicitFlow; |
| 0 | 136 | | Oauth2AllowUrlPathMatching = oauth2AllowUrlPathMatching; |
| 0 | 137 | | Oauth2Permissions = oauth2Permissions; |
| 0 | 138 | | Oauth2RequirePostResponse = oauth2RequirePostResponse; |
| 0 | 139 | | OrgRestrictions = orgRestrictions; |
| 0 | 140 | | OptionalClaims = optionalClaims; |
| 0 | 141 | | PasswordCredentials = passwordCredentials; |
| 0 | 142 | | PreAuthorizedApplications = preAuthorizedApplications; |
| 0 | 143 | | PublicClient = publicClient; |
| 0 | 144 | | PublisherDomain = publisherDomain; |
| 0 | 145 | | ReplyUrls = replyUrls; |
| 0 | 146 | | RequiredResourceAccess = requiredResourceAccess; |
| 0 | 147 | | SamlMetadataUrl = samlMetadataUrl; |
| 0 | 148 | | SignInAudience = signInAudience; |
| 0 | 149 | | WwwHomepage = wwwHomepage; |
| | 150 | | CustomInit(); |
| 0 | 151 | | } |
| | 152 | |
|
| | 153 | | /// <summary> |
| | 154 | | /// An initialization method that performs custom operations like setting defaults |
| | 155 | | /// </summary> |
| | 156 | | partial void CustomInit(); |
| | 157 | |
|
| | 158 | | /// <summary> |
| | 159 | | /// Gets or sets the application ID. |
| | 160 | | /// </summary> |
| | 161 | | [JsonProperty(PropertyName = "appId")] |
| 0 | 162 | | public string AppId { get; set; } |
| | 163 | |
|
| | 164 | | /// <summary> |
| | 165 | | /// Gets or sets a property on the application to indicate if the |
| | 166 | | /// application accepts other IDPs or not or partially accepts. |
| | 167 | | /// </summary> |
| | 168 | | [JsonProperty(PropertyName = "allowGuestsSignIn")] |
| 0 | 169 | | public bool? AllowGuestsSignIn { get; set; } |
| | 170 | |
|
| | 171 | | /// <summary> |
| | 172 | | /// Gets or sets indicates that the application supports pass through |
| | 173 | | /// users who have no presence in the resource tenant. |
| | 174 | | /// </summary> |
| | 175 | | [JsonProperty(PropertyName = "allowPassthroughUsers")] |
| 0 | 176 | | public bool? AllowPassthroughUsers { get; set; } |
| | 177 | |
|
| | 178 | | /// <summary> |
| | 179 | | /// Gets or sets the url for the application logo image stored in a |
| | 180 | | /// CDN. |
| | 181 | | /// </summary> |
| | 182 | | [JsonProperty(PropertyName = "appLogoUrl")] |
| 0 | 183 | | public string AppLogoUrl { get; set; } |
| | 184 | |
|
| | 185 | | /// <summary> |
| | 186 | | /// Gets or sets the collection of application roles that an |
| | 187 | | /// application may declare. These roles can be assigned to users, |
| | 188 | | /// groups or service principals. |
| | 189 | | /// </summary> |
| | 190 | | [JsonProperty(PropertyName = "appRoles")] |
| 0 | 191 | | public IList<AppRole> AppRoles { get; set; } |
| | 192 | |
|
| | 193 | | /// <summary> |
| | 194 | | /// Gets or sets the application permissions. |
| | 195 | | /// </summary> |
| | 196 | | [JsonProperty(PropertyName = "appPermissions")] |
| 0 | 197 | | public IList<string> AppPermissions { get; set; } |
| | 198 | |
|
| | 199 | | /// <summary> |
| | 200 | | /// Gets or sets whether the application is available to other tenants. |
| | 201 | | /// </summary> |
| | 202 | | [JsonProperty(PropertyName = "availableToOtherTenants")] |
| 0 | 203 | | public bool? AvailableToOtherTenants { get; set; } |
| | 204 | |
|
| | 205 | | /// <summary> |
| | 206 | | /// Gets or sets the display name of the application. |
| | 207 | | /// </summary> |
| | 208 | | [JsonProperty(PropertyName = "displayName")] |
| 0 | 209 | | public string DisplayName { get; set; } |
| | 210 | |
|
| | 211 | | /// <summary> |
| | 212 | | /// Gets or sets a URL provided by the author of the application to |
| | 213 | | /// report errors when using the application. |
| | 214 | | /// </summary> |
| | 215 | | [JsonProperty(PropertyName = "errorUrl")] |
| 0 | 216 | | public string ErrorUrl { get; set; } |
| | 217 | |
|
| | 218 | | /// <summary> |
| | 219 | | /// Gets or sets configures the groups claim issued in a user or OAuth |
| | 220 | | /// 2.0 access token that the app expects. |
| | 221 | | /// </summary> |
| | 222 | | [JsonProperty(PropertyName = "groupMembershipClaims")] |
| 0 | 223 | | public object GroupMembershipClaims { get; set; } |
| | 224 | |
|
| | 225 | | /// <summary> |
| | 226 | | /// Gets or sets the home page of the application. |
| | 227 | | /// </summary> |
| | 228 | | [JsonProperty(PropertyName = "homepage")] |
| 0 | 229 | | public string Homepage { get; set; } |
| | 230 | |
|
| | 231 | | /// <summary> |
| | 232 | | /// Gets or sets a collection of URIs for the application. |
| | 233 | | /// </summary> |
| | 234 | | [JsonProperty(PropertyName = "identifierUris")] |
| 0 | 235 | | public IList<string> IdentifierUris { get; set; } |
| | 236 | |
|
| | 237 | | /// <summary> |
| | 238 | | /// Gets or sets uRLs with more information about the application. |
| | 239 | | /// </summary> |
| | 240 | | [JsonProperty(PropertyName = "informationalUrls")] |
| 0 | 241 | | public InformationalUrl InformationalUrls { get; set; } |
| | 242 | |
|
| | 243 | | /// <summary> |
| | 244 | | /// Gets or sets specifies whether this application supports device |
| | 245 | | /// authentication without a user. The default is false. |
| | 246 | | /// </summary> |
| | 247 | | [JsonProperty(PropertyName = "isDeviceOnlyAuthSupported")] |
| 0 | 248 | | public bool? IsDeviceOnlyAuthSupported { get; set; } |
| | 249 | |
|
| | 250 | | /// <summary> |
| | 251 | | /// Gets or sets a collection of KeyCredential objects. |
| | 252 | | /// </summary> |
| | 253 | | [JsonProperty(PropertyName = "keyCredentials")] |
| 0 | 254 | | public IList<KeyCredential> KeyCredentials { get; set; } |
| | 255 | |
|
| | 256 | | /// <summary> |
| | 257 | | /// Gets or sets client applications that are tied to this resource |
| | 258 | | /// application. Consent to any of the known client applications will |
| | 259 | | /// result in implicit consent to the resource application through a |
| | 260 | | /// combined consent dialog (showing the OAuth permission scopes |
| | 261 | | /// required by the client and the resource). |
| | 262 | | /// </summary> |
| | 263 | | [JsonProperty(PropertyName = "knownClientApplications")] |
| 0 | 264 | | public IList<string> KnownClientApplications { get; set; } |
| | 265 | |
|
| | 266 | | /// <summary> |
| | 267 | | /// Gets or sets the url of the logout page |
| | 268 | | /// </summary> |
| | 269 | | [JsonProperty(PropertyName = "logoutUrl")] |
| 0 | 270 | | public string LogoutUrl { get; set; } |
| | 271 | |
|
| | 272 | | /// <summary> |
| | 273 | | /// Gets or sets whether to allow implicit grant flow for OAuth2 |
| | 274 | | /// </summary> |
| | 275 | | [JsonProperty(PropertyName = "oauth2AllowImplicitFlow")] |
| 0 | 276 | | public bool? Oauth2AllowImplicitFlow { get; set; } |
| | 277 | |
|
| | 278 | | /// <summary> |
| | 279 | | /// Gets or sets specifies whether during a token Request Azure AD will |
| | 280 | | /// allow path matching of the redirect URI against the applications |
| | 281 | | /// collection of replyURLs. The default is false. |
| | 282 | | /// </summary> |
| | 283 | | [JsonProperty(PropertyName = "oauth2AllowUrlPathMatching")] |
| 0 | 284 | | public bool? Oauth2AllowUrlPathMatching { get; set; } |
| | 285 | |
|
| | 286 | | /// <summary> |
| | 287 | | /// Gets or sets the collection of OAuth 2.0 permission scopes that the |
| | 288 | | /// web API (resource) application exposes to client applications. |
| | 289 | | /// These permission scopes may be granted to client applications |
| | 290 | | /// during consent. |
| | 291 | | /// </summary> |
| | 292 | | [JsonProperty(PropertyName = "oauth2Permissions")] |
| 0 | 293 | | public IList<OAuth2Permission> Oauth2Permissions { get; set; } |
| | 294 | |
|
| | 295 | | /// <summary> |
| | 296 | | /// Gets or sets specifies whether, as part of OAuth 2.0 token |
| | 297 | | /// requests, Azure AD will allow POST requests, as opposed to GET |
| | 298 | | /// requests. The default is false, which specifies that only GET |
| | 299 | | /// requests will be allowed. |
| | 300 | | /// </summary> |
| | 301 | | [JsonProperty(PropertyName = "oauth2RequirePostResponse")] |
| 0 | 302 | | public bool? Oauth2RequirePostResponse { get; set; } |
| | 303 | |
|
| | 304 | | /// <summary> |
| | 305 | | /// Gets or sets a list of tenants allowed to access application. |
| | 306 | | /// </summary> |
| | 307 | | [JsonProperty(PropertyName = "orgRestrictions")] |
| 0 | 308 | | public IList<string> OrgRestrictions { get; set; } |
| | 309 | |
|
| | 310 | | /// <summary> |
| | 311 | | /// </summary> |
| | 312 | | [JsonProperty(PropertyName = "optionalClaims")] |
| 0 | 313 | | public OptionalClaims OptionalClaims { get; set; } |
| | 314 | |
|
| | 315 | | /// <summary> |
| | 316 | | /// Gets or sets a collection of PasswordCredential objects |
| | 317 | | /// </summary> |
| | 318 | | [JsonProperty(PropertyName = "passwordCredentials")] |
| 0 | 319 | | public IList<PasswordCredential> PasswordCredentials { get; set; } |
| | 320 | |
|
| | 321 | | /// <summary> |
| | 322 | | /// Gets or sets list of pre-authorized applications. |
| | 323 | | /// </summary> |
| | 324 | | [JsonProperty(PropertyName = "preAuthorizedApplications")] |
| 0 | 325 | | public IList<PreAuthorizedApplication> PreAuthorizedApplications { get; set; } |
| | 326 | |
|
| | 327 | | /// <summary> |
| | 328 | | /// Gets or sets specifies whether this application is a public client |
| | 329 | | /// (such as an installed application running on a mobile device). |
| | 330 | | /// Default is false. |
| | 331 | | /// </summary> |
| | 332 | | [JsonProperty(PropertyName = "publicClient")] |
| 0 | 333 | | public bool? PublicClient { get; set; } |
| | 334 | |
|
| | 335 | | /// <summary> |
| | 336 | | /// Gets or sets reliable domain which can be used to identify an |
| | 337 | | /// application. |
| | 338 | | /// </summary> |
| | 339 | | [JsonProperty(PropertyName = "publisherDomain")] |
| 0 | 340 | | public string PublisherDomain { get; set; } |
| | 341 | |
|
| | 342 | | /// <summary> |
| | 343 | | /// Gets or sets a collection of reply URLs for the application. |
| | 344 | | /// </summary> |
| | 345 | | [JsonProperty(PropertyName = "replyUrls")] |
| 0 | 346 | | public IList<string> ReplyUrls { get; set; } |
| | 347 | |
|
| | 348 | | /// <summary> |
| | 349 | | /// Gets or sets specifies resources that this application requires |
| | 350 | | /// access to and the set of OAuth permission scopes and application |
| | 351 | | /// roles that it needs under each of those resources. This |
| | 352 | | /// pre-configuration of required resource access drives the consent |
| | 353 | | /// experience. |
| | 354 | | /// </summary> |
| | 355 | | [JsonProperty(PropertyName = "requiredResourceAccess")] |
| 0 | 356 | | public IList<RequiredResourceAccess> RequiredResourceAccess { get; set; } |
| | 357 | |
|
| | 358 | | /// <summary> |
| | 359 | | /// Gets or sets the URL to the SAML metadata for the application. |
| | 360 | | /// </summary> |
| | 361 | | [JsonProperty(PropertyName = "samlMetadataUrl")] |
| 0 | 362 | | public string SamlMetadataUrl { get; set; } |
| | 363 | |
|
| | 364 | | /// <summary> |
| | 365 | | /// Gets or sets audience for signing in to the application |
| | 366 | | /// (AzureADMyOrganization, AzureADAllOrganizations, |
| | 367 | | /// AzureADAndMicrosoftAccounts). |
| | 368 | | /// </summary> |
| | 369 | | [JsonProperty(PropertyName = "signInAudience")] |
| 0 | 370 | | public string SignInAudience { get; set; } |
| | 371 | |
|
| | 372 | | /// <summary> |
| | 373 | | /// Gets or sets the primary Web page. |
| | 374 | | /// </summary> |
| | 375 | | [JsonProperty(PropertyName = "wwwHomepage")] |
| 0 | 376 | | public string WwwHomepage { get; set; } |
| | 377 | |
|
| | 378 | | } |
| | 379 | | } |