/
Application.cs
317 lines (269 loc) · 15.9 KB
/
Application.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
// <auto-generated/>
// Template Source: EntityType.cs.tt
namespace Microsoft.Graph
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Text.Json.Serialization;
/// <summary>
/// The type Application.
/// </summary>
public partial class Application : DirectoryObject
{
///<summary>
/// The Application constructor
///</summary>
public Application()
{
this.ODataType = "microsoft.graph.application";
}
/// <summary>
/// Gets or sets add ins.
/// Defines custom behavior that a consuming service can use to call an app in specific contexts. For example, applications that can render file streams may set the addIns property for its 'FileHandler' functionality. This will let services like Office 365 call the application in the context of a document the user is working on.
/// </summary>
[JsonPropertyName("addIns")]
public IEnumerable<AddIn> AddIns { get; set; }
/// <summary>
/// Gets or sets api.
/// Specifies settings for an application that implements a web API.
/// </summary>
[JsonPropertyName("api")]
public ApiApplication Api { get; set; }
/// <summary>
/// Gets or sets app id.
/// The unique identifier for the application that is assigned to an application by Azure AD. Not nullable. Read-only.
/// </summary>
[JsonPropertyName("appId")]
public string AppId { get; set; }
/// <summary>
/// Gets or sets application template id.
/// Unique identifier of the applicationTemplate. Supports $filter (eq, not, ne).
/// </summary>
[JsonPropertyName("applicationTemplateId")]
public string ApplicationTemplateId { get; set; }
/// <summary>
/// Gets or sets app roles.
/// The collection of roles assigned to the application. With app role assignments, these roles can be assigned to users, groups, or service principals associated with other applications. Not nullable.
/// </summary>
[JsonPropertyName("appRoles")]
public IEnumerable<AppRole> AppRoles { get; set; }
/// <summary>
/// Gets or sets created date time.
/// The date and time the application was registered. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. Supports $filter (eq, ne, not, ge, le, in, and eq on null values) and $orderBy.
/// </summary>
[JsonPropertyName("createdDateTime")]
public DateTimeOffset? CreatedDateTime { get; set; }
/// <summary>
/// Gets or sets description.
/// Free text field to provide a description of the application object to end users. The maximum allowed size is 1024 characters. Supports $filter (eq, ne, not, ge, le, startsWith) and $search.
/// </summary>
[JsonPropertyName("description")]
public string Description { get; set; }
/// <summary>
/// Gets or sets disabled by microsoft status.
/// Specifies whether Microsoft has disabled the registered application. Possible values are: null (default value), NotDisabled, and DisabledDueToViolationOfServicesAgreement (reasons may include suspicious, abusive, or malicious activity, or a violation of the Microsoft Services Agreement). Supports $filter (eq, ne, not).
/// </summary>
[JsonPropertyName("disabledByMicrosoftStatus")]
public string DisabledByMicrosoftStatus { get; set; }
/// <summary>
/// Gets or sets display name.
/// The display name for the application. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values), $search, and $orderBy.
/// </summary>
[JsonPropertyName("displayName")]
public string DisplayName { get; set; }
/// <summary>
/// Gets or sets group membership claims.
/// Configures the groups claim issued in a user or OAuth 2.0 access token that the application expects. To set this attribute, use one of the following valid string values: None, SecurityGroup (for security groups and Azure AD roles), All (this gets all of the security groups, distribution groups, and Azure AD directory roles that the signed-in user is a member of).
/// </summary>
[JsonPropertyName("groupMembershipClaims")]
public string GroupMembershipClaims { get; set; }
/// <summary>
/// Gets or sets identifier uris.
/// Also known as App ID URI, this value is set when an application is used as a resource app. The identifierUris acts as the prefix for the scopes you'll reference in your API's code, and it must be globally unique. You can use the default value provided, which is in the form api://&lt;application-client-id&gt;, or specify a more readable URI like https://contoso.com/api. For more information on valid identifierUris patterns and best practices, see Azure AD application registration security best practices. Not nullable. Supports $filter (eq, ne, ge, le, startsWith).
/// </summary>
[JsonPropertyName("identifierUris")]
public IEnumerable<string> IdentifierUris { get; set; }
/// <summary>
/// Gets or sets info.
/// Basic profile information of the application such as app's marketing, support, terms of service and privacy statement URLs. The terms of service and privacy statement are surfaced to users through the user consent experience. For more info, see How to: Add Terms of service and privacy statement for registered Azure AD apps. Supports $filter (eq, ne, not, ge, le, and eq on null values).
/// </summary>
[JsonPropertyName("info")]
public InformationalUrl Info { get; set; }
/// <summary>
/// Gets or sets is device only auth supported.
/// Specifies whether this application supports device authentication without a user. The default is false.
/// </summary>
[JsonPropertyName("isDeviceOnlyAuthSupported")]
public bool? IsDeviceOnlyAuthSupported { get; set; }
/// <summary>
/// Gets or sets is fallback public client.
/// Specifies the fallback application type as public client, such as an installed application running on a mobile device. The default value is false which means the fallback application type is confidential client such as a web app. There are certain scenarios where Azure AD cannot determine the client application type. For example, the ROPC flow where it is configured without specifying a redirect URI. In those cases Azure AD interprets the application type based on the value of this property.
/// </summary>
[JsonPropertyName("isFallbackPublicClient")]
public bool? IsFallbackPublicClient { get; set; }
/// <summary>
/// Gets or sets key credentials.
/// The collection of key credentials associated with the application. Not nullable. Supports $filter (eq, not, ge, le).
/// </summary>
[JsonPropertyName("keyCredentials")]
public IEnumerable<KeyCredential> KeyCredentials { get; set; }
/// <summary>
/// Gets or sets logo.
/// The main logo for the application. Not nullable.
/// </summary>
[JsonPropertyName("logo")]
public Stream Logo { get; set; }
/// <summary>
/// Gets or sets notes.
/// Notes relevant for the management of the application.
/// </summary>
[JsonPropertyName("notes")]
public string Notes { get; set; }
/// <summary>
/// Gets or sets oauth2require post response.
/// </summary>
[JsonPropertyName("oauth2RequirePostResponse")]
public bool? Oauth2RequirePostResponse { get; set; }
/// <summary>
/// Gets or sets optional claims.
/// Application developers can configure optional claims in their Azure AD applications to specify the claims that are sent to their application by the Microsoft security token service. For more information, see How to: Provide optional claims to your app.
/// </summary>
[JsonPropertyName("optionalClaims")]
public OptionalClaims OptionalClaims { get; set; }
/// <summary>
/// Gets or sets parental control settings.
/// Specifies parental control settings for an application.
/// </summary>
[JsonPropertyName("parentalControlSettings")]
public ParentalControlSettings ParentalControlSettings { get; set; }
/// <summary>
/// Gets or sets password credentials.
/// The collection of password credentials associated with the application. Not nullable.
/// </summary>
[JsonPropertyName("passwordCredentials")]
public IEnumerable<PasswordCredential> PasswordCredentials { get; set; }
/// <summary>
/// Gets or sets public client.
/// Specifies settings for installed clients such as desktop or mobile devices.
/// </summary>
[JsonPropertyName("publicClient")]
public PublicClientApplication PublicClient { get; set; }
/// <summary>
/// Gets or sets publisher domain.
/// The verified publisher domain for the application. Read-only. For more information, see How to: Configure an application's publisher domain. Supports $filter (eq, ne, ge, le, startsWith).
/// </summary>
[JsonPropertyName("publisherDomain")]
public string PublisherDomain { get; set; }
/// <summary>
/// Gets or sets required resource access.
/// Specifies the resources that the application needs to access. This property also specifies the set of delegated permissions and application roles that it needs for each of those resources. This configuration of access to the required resources drives the consent experience. No more than 50 resource services (APIs) can be configured. Beginning mid-October 2021, the total number of required permissions must not exceed 400. Not nullable. Supports $filter (eq, not, ge, le).
/// </summary>
[JsonPropertyName("requiredResourceAccess")]
public IEnumerable<RequiredResourceAccess> RequiredResourceAccess { get; set; }
/// <summary>
/// Gets or sets sign in audience.
/// Specifies the Microsoft accounts that are supported for the current application. The possible values are: AzureADMyOrg, AzureADMultipleOrgs, AzureADandPersonalMicrosoftAccount (default), and PersonalMicrosoftAccount. See more in the table below. Supports $filter (eq, ne, not).
/// </summary>
[JsonPropertyName("signInAudience")]
public string SignInAudience { get; set; }
/// <summary>
/// Gets or sets spa.
/// Specifies settings for a single-page application, including sign out URLs and redirect URIs for authorization codes and access tokens.
/// </summary>
[JsonPropertyName("spa")]
public SpaApplication Spa { get; set; }
/// <summary>
/// Gets or sets tags.
/// Custom strings that can be used to categorize and identify the application. Not nullable. Supports $filter (eq, not, ge, le, startsWith).
/// </summary>
[JsonPropertyName("tags")]
public IEnumerable<string> Tags { get; set; }
/// <summary>
/// Gets or sets token encryption key id.
/// Specifies the keyId of a public key from the keyCredentials collection. When configured, Azure AD encrypts all the tokens it emits by using the key this property points to. The application code that receives the encrypted token must use the matching private key to decrypt the token before it can be used for the signed-in user.
/// </summary>
[JsonPropertyName("tokenEncryptionKeyId")]
public Guid? TokenEncryptionKeyId { get; set; }
/// <summary>
/// Gets or sets verified publisher.
/// Specifies the verified publisher of the application.
/// </summary>
[JsonPropertyName("verifiedPublisher")]
public VerifiedPublisher VerifiedPublisher { get; set; }
/// <summary>
/// Gets or sets web.
/// Specifies settings for a web application.
/// </summary>
[JsonPropertyName("web")]
public WebApplication Web { get; set; }
/// <summary>
/// Gets or sets created on behalf of.
/// Read-only.
/// </summary>
[JsonPropertyName("createdOnBehalfOf")]
public DirectoryObject CreatedOnBehalfOf { get; set; }
/// <summary>
/// Gets or sets extension properties.
/// Read-only. Nullable.
/// </summary>
[JsonPropertyName("extensionProperties")]
public IApplicationExtensionPropertiesCollectionPage ExtensionProperties { get; set; }
/// <summary>
/// Gets or sets extensionPropertiesNextLink.
/// </summary>
[JsonPropertyName("extensionProperties@odata.nextLink")]
[JsonConverter(typeof(NextLinkConverter))]
public string ExtensionPropertiesNextLink { get; set; }
/// <summary>
/// Gets or sets home realm discovery policies.
/// </summary>
[JsonPropertyName("homeRealmDiscoveryPolicies")]
public IApplicationHomeRealmDiscoveryPoliciesCollectionWithReferencesPage HomeRealmDiscoveryPolicies { get; set; }
/// <summary>
/// Gets or sets homeRealmDiscoveryPoliciesNextLink.
/// </summary>
[JsonPropertyName("homeRealmDiscoveryPolicies@odata.nextLink")]
[JsonConverter(typeof(NextLinkConverter))]
public string HomeRealmDiscoveryPoliciesNextLink { get; set; }
/// <summary>
/// Gets or sets owners.
/// Directory objects that are owners of the application. Read-only. Nullable. Supports $expand.
/// </summary>
[JsonPropertyName("owners")]
public IApplicationOwnersCollectionWithReferencesPage Owners { get; set; }
/// <summary>
/// Gets or sets ownersNextLink.
/// </summary>
[JsonPropertyName("owners@odata.nextLink")]
[JsonConverter(typeof(NextLinkConverter))]
public string OwnersNextLink { get; set; }
/// <summary>
/// Gets or sets token issuance policies.
/// </summary>
[JsonPropertyName("tokenIssuancePolicies")]
public IApplicationTokenIssuancePoliciesCollectionWithReferencesPage TokenIssuancePolicies { get; set; }
/// <summary>
/// Gets or sets tokenIssuancePoliciesNextLink.
/// </summary>
[JsonPropertyName("tokenIssuancePolicies@odata.nextLink")]
[JsonConverter(typeof(NextLinkConverter))]
public string TokenIssuancePoliciesNextLink { get; set; }
/// <summary>
/// Gets or sets token lifetime policies.
/// The tokenLifetimePolicies assigned to this application. Supports $expand.
/// </summary>
[JsonPropertyName("tokenLifetimePolicies")]
public IApplicationTokenLifetimePoliciesCollectionWithReferencesPage TokenLifetimePolicies { get; set; }
/// <summary>
/// Gets or sets tokenLifetimePoliciesNextLink.
/// </summary>
[JsonPropertyName("tokenLifetimePolicies@odata.nextLink")]
[JsonConverter(typeof(NextLinkConverter))]
public string TokenLifetimePoliciesNextLink { get; set; }
}
}