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