Skip to content

Commit 0cb6ca9

Browse files
Generated v1.0 models and request builders using Typewriter (#694)
* Update generated files with build 2950277
1 parent 287d1c4 commit 0cb6ca9

File tree

261 files changed

+17906
-21
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

261 files changed

+17906
-21
lines changed

src/Microsoft.Graph/Microsoft.Graph.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<DelaySign>false</DelaySign>
2020
<AssemblyOriginatorKeyFile>35MSSharedLib1024.snk</AssemblyOriginatorKeyFile>
2121
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
22-
<VersionPrefix>3.5.0</VersionPrefix>
22+
<VersionPrefix>3.6.0</VersionPrefix>
2323
<!-- VersionPrefix minor version should not be set when the change comes from the generator. It will be updated automatically. -->
2424
<!-- VersionPrefix minor version must be manually set when making manual changes to code. -->
2525
<!-- VersionPrefix major and patch versions must be manually set. -->

src/Microsoft.Graph/Models/Generated/AndroidManagedAppProtection.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,20 @@ public AndroidManagedAppProtection()
7272
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "minimumWarningPatchVersion", Required = Newtonsoft.Json.Required.Default)]
7373
public string MinimumWarningPatchVersion { get; set; }
7474

75+
/// <summary>
76+
/// Gets or sets custom browser package id.
77+
/// Unique identifier of the preferred custom browser to open weblink on Android. When this property is configured, ManagedBrowserToOpenLinksRequired should be true.
78+
/// </summary>
79+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "customBrowserPackageId", Required = Newtonsoft.Json.Required.Default)]
80+
public string CustomBrowserPackageId { get; set; }
81+
82+
/// <summary>
83+
/// Gets or sets custom browser display name.
84+
/// Friendly name of the preferred custom browser to open weblink on Android. When this property is configured, ManagedBrowserToOpenLinksRequired should be true.
85+
/// </summary>
86+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "customBrowserDisplayName", Required = Newtonsoft.Json.Required.Default)]
87+
public string CustomBrowserDisplayName { get; set; }
88+
7589
/// <summary>
7690
/// Gets or sets apps.
7791
/// List of apps to which the policy is deployed.

src/Microsoft.Graph/Models/Generated/ApiApplication.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public ApiApplication()
6060

6161
/// <summary>
6262
/// Gets or sets oauth2PermissionScopes.
63-
/// The collection of OAuth 2.0 permission scopes that the web API (resource) application exposes to client applications. These permission scopes may be granted to client applications during consent.
63+
/// The definition of the delegated permissions exposed by the web API represented by this application registration. These delegated permissions may be requested by a client application, and may be granted by users or administrators during consent. Delegated permissions are sometimes referred to as OAuth 2.0 scopes.
6464
/// </summary>
6565
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "oauth2PermissionScopes", Required = Newtonsoft.Json.Required.Default)]
6666
public IEnumerable<PermissionScope> Oauth2PermissionScopes { get; set; }

src/Microsoft.Graph/Models/Generated/AppRole.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,21 @@ public AppRole()
3232

3333
/// <summary>
3434
/// Gets or sets allowedMemberTypes.
35-
/// Specifies whether this app role definition can be assigned to users and groups by setting to 'User', or to other applications (that are accessing this application in daemon service scenarios) by setting to 'Application', or to both.
35+
/// Specifies whether this app role can be assigned to users and groups (by setting to ['User']), to other application's (by setting to ['Application'], or both (by setting to ['User', 'Application']). App roles supporting assignment of other applications' service principals are also known as application permissions.
3636
/// </summary>
3737
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "allowedMemberTypes", Required = Newtonsoft.Json.Required.Default)]
3838
public IEnumerable<string> AllowedMemberTypes { get; set; }
3939

4040
/// <summary>
4141
/// Gets or sets description.
42-
/// Permission help text that appears in the admin app assignment and consent experiences.
42+
/// The description for the app role. This is displayed when the app role is being assigned and, if the app role functions as an application permission, during consent experiences.
4343
/// </summary>
4444
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "description", Required = Newtonsoft.Json.Required.Default)]
4545
public string Description { get; set; }
4646

4747
/// <summary>
4848
/// Gets or sets displayName.
49-
/// Display name for the permission that appears in the admin consent and app assignment experiences.
49+
/// Display name for the permission that appears in the app role assignment and consent experiences.
5050
/// </summary>
5151
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "displayName", Required = Newtonsoft.Json.Required.Default)]
5252
public string DisplayName { get; set; }
@@ -67,14 +67,14 @@ public AppRole()
6767

6868
/// <summary>
6969
/// Gets or sets origin.
70-
/// Read-only. Specifies if the app role is defined on the Application object . Must not be included in any POST or PATCH requests.
70+
/// Specifies if the app role is defined on the application object or on the servicePrincipal entity. Must not be included in any POST or PATCH requests. Read-only.
7171
/// </summary>
7272
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "origin", Required = Newtonsoft.Json.Required.Default)]
7373
public string Origin { get; set; }
7474

7575
/// <summary>
7676
/// Gets or sets value.
77-
/// Specifies the value which will be included in the roles claim in authentication and access tokens. Must not exceed 120 characters in length. Allowed characters are : ! # $ % &amp; ' ( ) * + , - . / : ; = ? @ [ ] ^ + _ { } ~, as well as characters in the ranges 0-9, A-Z and a-z. Any other character, including the space character, are not allowed.
77+
/// Specifies the value to include in the roles claim in ID tokens and access tokens authenticating an assigned user or service principal. Must not exceed 120 characters in length. Allowed characters are : ! # $ % &amp; ' ( ) * + , - . / : ; = ? @ [ ] ^ + _ { } ~, as well as characters in the ranges 0-9, A-Z and a-z. Any other character, including the space character, are not allowed.
7878
/// </summary>
7979
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "value", Required = Newtonsoft.Json.Required.Default)]
8080
public string Value { get; set; }
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
// ------------------------------------------------------------------------------
2+
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
3+
// ------------------------------------------------------------------------------
4+
5+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
6+
// <auto-generated/>
7+
8+
// Template Source: Templates\CSharp\Model\EntityType.cs.tt
9+
10+
namespace Microsoft.Graph
11+
{
12+
using System;
13+
using System.Collections.Generic;
14+
using System.IO;
15+
using System.Runtime.Serialization;
16+
using Newtonsoft.Json;
17+
18+
/// <summary>
19+
/// The type App Role Assignment.
20+
/// </summary>
21+
[JsonObject(MemberSerialization = MemberSerialization.OptIn)]
22+
public partial class AppRoleAssignment : DirectoryObject
23+
{
24+
25+
///<summary>
26+
/// The AppRoleAssignment constructor
27+
///</summary>
28+
public AppRoleAssignment()
29+
{
30+
this.ODataType = "microsoft.graph.appRoleAssignment";
31+
}
32+
33+
/// <summary>
34+
/// Gets or sets app role id.
35+
/// The identifier (id) for the app role which is assigned to the principal. This app role must be exposed in the appRoles property on the resource application's service principal (resourceId). If the resource application has not declared any app roles, a default app role ID of 00000000-0000-0000-0000-000000000000 can be specified to signal that the principal is assigned to the resource app without any specific app roles. Required on create. Does not support $filter.
36+
/// </summary>
37+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "appRoleId", Required = Newtonsoft.Json.Required.Default)]
38+
public Guid? AppRoleId { get; set; }
39+
40+
/// <summary>
41+
/// Gets or sets created date time.
42+
/// </summary>
43+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "createdDateTime", Required = Newtonsoft.Json.Required.Default)]
44+
public DateTimeOffset? CreatedDateTime { get; set; }
45+
46+
/// <summary>
47+
/// Gets or sets principal display name.
48+
/// The display name of the user, group, or service principal that was granted the app role assignment. Read-only. Supports $filter (eq and startswith).
49+
/// </summary>
50+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "principalDisplayName", Required = Newtonsoft.Json.Required.Default)]
51+
public string PrincipalDisplayName { get; set; }
52+
53+
/// <summary>
54+
/// Gets or sets principal id.
55+
/// The unique identifier (id) for the user, group or service principal being granted the app role. Required on create. Does not support $filter.
56+
/// </summary>
57+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "principalId", Required = Newtonsoft.Json.Required.Default)]
58+
public Guid? PrincipalId { get; set; }
59+
60+
/// <summary>
61+
/// Gets or sets principal type.
62+
/// The type of the assigned principal. This can either be 'User', 'Group' or 'ServicePrincipal'. Read-only. Does not support $filter.
63+
/// </summary>
64+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "principalType", Required = Newtonsoft.Json.Required.Default)]
65+
public string PrincipalType { get; set; }
66+
67+
/// <summary>
68+
/// Gets or sets resource display name.
69+
/// The display name of the resource app's service principal to which the assignment is made. Does not support $filter.
70+
/// </summary>
71+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "resourceDisplayName", Required = Newtonsoft.Json.Required.Default)]
72+
public string ResourceDisplayName { get; set; }
73+
74+
/// <summary>
75+
/// Gets or sets resource id.
76+
/// The unique identifier (id) for the resource service principal for which the assignment is made. Required on create. Supports $filter (eq only).
77+
/// </summary>
78+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "resourceId", Required = Newtonsoft.Json.Required.Default)]
79+
public Guid? ResourceId { get; set; }
80+
81+
}
82+
}
83+

src/Microsoft.Graph/Models/Generated/Application.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public Application()
5959

6060
/// <summary>
6161
/// Gets or sets app roles.
62-
/// The collection of application roles that an application may declare. These roles can be assigned to users, groups, or service principals. Not nullable.
62+
/// The collection of roles the application declares. With app role assignments, these roles can be assigned to users, groups, or other applications' service principals. Not nullable.
6363
/// </summary>
6464
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "appRoles", Required = Newtonsoft.Json.Required.Default)]
6565
public IEnumerable<AppRole> AppRoles { get; set; }

src/Microsoft.Graph/Models/Generated/Attendee.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,11 @@ public Attendee()
3636
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "status", Required = Newtonsoft.Json.Required.Default)]
3737
public ResponseStatus Status { get; set; }
3838

39+
/// <summary>
40+
/// Gets or sets proposedNewTime.
41+
/// </summary>
42+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "proposedNewTime", Required = Newtonsoft.Json.Required.Default)]
43+
public TimeSlot ProposedNewTime { get; set; }
44+
3945
}
4046
}

src/Microsoft.Graph/Models/Generated/Channel.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,27 @@ public Channel()
5858
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "webUrl", Required = Newtonsoft.Json.Required.Default)]
5959
public string WebUrl { get; set; }
6060

61+
/// <summary>
62+
/// Gets or sets messages.
63+
/// A collection of all the messages in the channel. A navigation property. Nullable.
64+
/// </summary>
65+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "messages", Required = Newtonsoft.Json.Required.Default)]
66+
public IChannelMessagesCollectionPage Messages { get; set; }
67+
6168
/// <summary>
6269
/// Gets or sets tabs.
6370
/// A collection of all the tabs in the channel. A navigation property.
6471
/// </summary>
6572
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "tabs", Required = Newtonsoft.Json.Required.Default)]
6673
public IChannelTabsCollectionPage Tabs { get; set; }
6774

75+
/// <summary>
76+
/// Gets or sets files folder.
77+
/// Metadata for the location where the channel's files are stored.
78+
/// </summary>
79+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "filesFolder", Required = Newtonsoft.Json.Required.Default)]
80+
public DriveItem FilesFolder { get; set; }
81+
6882
}
6983
}
7084

0 commit comments

Comments
 (0)