Skip to content

Commit 2e1b2ae

Browse files
Merge pull request #373 from microsoftgraph/v1.0/pipelinebuild/977754
Generated models and request builders using Typewriter
2 parents 9d77596 + ba0308e commit 2e1b2ae

12 files changed

+417
-1
lines changed
Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
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+
7+
// Template Source: Templates\CSharp\Model\ComplexType.cs.tt
8+
9+
namespace Microsoft.Graph
10+
{
11+
using System;
12+
using System.Collections.Generic;
13+
using System.IO;
14+
using System.Runtime.Serialization;
15+
using Newtonsoft.Json;
16+
17+
/// <summary>
18+
/// The type CopyNotebookModel.
19+
/// </summary>
20+
[JsonObject(MemberSerialization = MemberSerialization.OptIn)]
21+
[JsonConverter(typeof(DerivedTypeConverter))]
22+
public partial class CopyNotebookModel
23+
{
24+
25+
/// <summary>
26+
/// Gets or sets isDefault.
27+
/// </summary>
28+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "isDefault", Required = Newtonsoft.Json.Required.Default)]
29+
public bool? IsDefault { get; set; }
30+
31+
/// <summary>
32+
/// Gets or sets userRole.
33+
/// </summary>
34+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "userRole", Required = Newtonsoft.Json.Required.Default)]
35+
public OnenoteUserRole? UserRole { get; set; }
36+
37+
/// <summary>
38+
/// Gets or sets isShared.
39+
/// </summary>
40+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "isShared", Required = Newtonsoft.Json.Required.Default)]
41+
public bool? IsShared { get; set; }
42+
43+
/// <summary>
44+
/// Gets or sets sectionsUrl.
45+
/// </summary>
46+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "sectionsUrl", Required = Newtonsoft.Json.Required.Default)]
47+
public string SectionsUrl { get; set; }
48+
49+
/// <summary>
50+
/// Gets or sets sectionGroupsUrl.
51+
/// </summary>
52+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "sectionGroupsUrl", Required = Newtonsoft.Json.Required.Default)]
53+
public string SectionGroupsUrl { get; set; }
54+
55+
/// <summary>
56+
/// Gets or sets links.
57+
/// </summary>
58+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "links", Required = Newtonsoft.Json.Required.Default)]
59+
public NotebookLinks Links { get; set; }
60+
61+
/// <summary>
62+
/// Gets or sets name.
63+
/// </summary>
64+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "name", Required = Newtonsoft.Json.Required.Default)]
65+
public string Name { get; set; }
66+
67+
/// <summary>
68+
/// Gets or sets createdBy.
69+
/// </summary>
70+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "createdBy", Required = Newtonsoft.Json.Required.Default)]
71+
public string CreatedBy { get; set; }
72+
73+
/// <summary>
74+
/// Gets or sets createdByIdentity.
75+
/// </summary>
76+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "createdByIdentity", Required = Newtonsoft.Json.Required.Default)]
77+
public IdentitySet CreatedByIdentity { get; set; }
78+
79+
/// <summary>
80+
/// Gets or sets lastModifiedBy.
81+
/// </summary>
82+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "lastModifiedBy", Required = Newtonsoft.Json.Required.Default)]
83+
public string LastModifiedBy { get; set; }
84+
85+
/// <summary>
86+
/// Gets or sets lastModifiedByIdentity.
87+
/// </summary>
88+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "lastModifiedByIdentity", Required = Newtonsoft.Json.Required.Default)]
89+
public IdentitySet LastModifiedByIdentity { get; set; }
90+
91+
/// <summary>
92+
/// Gets or sets lastModifiedTime.
93+
/// </summary>
94+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "lastModifiedTime", Required = Newtonsoft.Json.Required.Default)]
95+
public DateTimeOffset? LastModifiedTime { get; set; }
96+
97+
/// <summary>
98+
/// Gets or sets id.
99+
/// </summary>
100+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "id", Required = Newtonsoft.Json.Required.Default)]
101+
public string Id { get; set; }
102+
103+
/// <summary>
104+
/// Gets or sets self.
105+
/// </summary>
106+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "self", Required = Newtonsoft.Json.Required.Default)]
107+
public string Self { get; set; }
108+
109+
/// <summary>
110+
/// Gets or sets createdTime.
111+
/// </summary>
112+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "createdTime", Required = Newtonsoft.Json.Required.Default)]
113+
public DateTimeOffset? CreatedTime { get; set; }
114+
115+
/// <summary>
116+
/// Gets or sets additional data.
117+
/// </summary>
118+
[JsonExtensionData(ReadData = true)]
119+
public IDictionary<string, object> AdditionalData { get; set; }
120+
121+
/// <summary>
122+
/// Gets or sets @odata.type.
123+
/// </summary>
124+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "@odata.type", Required = Newtonsoft.Json.Required.Default)]
125+
public string ODataType { get; set; }
126+
127+
}
128+
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ public partial class EducationUser : Entity
7979

8080
/// <summary>
8181
/// Gets or sets related contacts.
82+
/// Set of contacts related to the user. This optional property must be specified in a $select clause and can only be retrieved for an individual user.
8283
/// </summary>
8384
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "relatedContacts", Required = Newtonsoft.Json.Required.Default)]
8485
public IEnumerable<EducationRelatedContact> RelatedContacts { get; set; }

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ public partial class Group : DirectoryObject
2323

2424
/// <summary>
2525
/// Gets or sets assigned licenses.
26+
/// The licenses that are assigned to the group. Returned only on $select. Read-only.
2627
/// </summary>
2728
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "assignedLicenses", Required = Newtonsoft.Json.Required.Default)]
2829
public IEnumerable<AssignedLicense> AssignedLicenses { get; set; }
@@ -57,6 +58,7 @@ public partial class Group : DirectoryObject
5758

5859
/// <summary>
5960
/// Gets or sets has members with license errors.
61+
/// Indicates whether there are members in this group that have license errors from its group-based license assignment. This property is never returned on a GET operation. You can use it as a $filter argument to get groups that have members with license errors (that is, filter for this property being true). See an example.
6062
/// </summary>
6163
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "hasMembersWithLicenseErrors", Required = Newtonsoft.Json.Required.Default)]
6264
public bool? HasMembersWithLicenseErrors { get; set; }
@@ -70,6 +72,7 @@ public partial class Group : DirectoryObject
7072

7173
/// <summary>
7274
/// Gets or sets license processing state.
75+
/// Indicates status of the group license assignment to all members of the group. Default value is false. Read-only. Possible values: QueuedForProcessing, ProcessingInProgress, and ProcessingComplete.Returned only on $select. Read-only.
7376
/// </summary>
7477
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "licenseProcessingState", Required = Newtonsoft.Json.Required.Default)]
7578
public LicenseProcessingState LicenseProcessingState { get; set; }
@@ -201,6 +204,7 @@ public partial class Group : DirectoryObject
201204

202205
/// <summary>
203206
/// Gets or sets members with license errors.
207+
/// A list of group members with license errors from this group-based license assignment. Read-only.
204208
/// </summary>
205209
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "membersWithLicenseErrors", Required = Newtonsoft.Json.Required.Default)]
206210
public IGroupMembersWithLicenseErrorsCollectionWithReferencesPage MembersWithLicenseErrors { get; set; }

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public partial class Message : OutlookItem
5151

5252
/// <summary>
5353
/// Gets or sets internet message headers.
54-
/// A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message.
54+
/// A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. Returned only on applying a $select query option. Read-only.
5555
/// </summary>
5656
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "internetMessageHeaders", Required = Newtonsoft.Json.Required.Default)]
5757
public IEnumerable<InternetMessageHeader> InternetMessageHeaders { get; set; }
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+
7+
// Template Source: Templates\CSharp\Model\MethodRequestBody.cs.tt
8+
9+
namespace Microsoft.Graph
10+
{
11+
using Newtonsoft.Json;
12+
using System;
13+
using System.Collections.Generic;
14+
using System.IO;
15+
using System.Runtime.Serialization;
16+
17+
/// <summary>
18+
/// The type NotebookGetNotebookFromWebUrlRequestBody.
19+
/// </summary>
20+
[JsonObject(MemberSerialization = MemberSerialization.OptIn)]
21+
public partial class NotebookGetNotebookFromWebUrlRequestBody
22+
{
23+
24+
/// <summary>
25+
/// Gets or sets WebUrl.
26+
/// </summary>
27+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "webUrl", Required = Newtonsoft.Json.Required.Default)]
28+
public string WebUrl { get; set; }
29+
30+
}
31+
}

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,14 @@ public partial class User : DirectoryObject
100100

101101
/// <summary>
102102
/// Gets or sets employee id.
103+
/// The employee identifier assigned to the user by the organization. Supports $filter.
103104
/// </summary>
104105
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "employeeId", Required = Newtonsoft.Json.Required.Default)]
105106
public string EmployeeId { get; set; }
106107

107108
/// <summary>
108109
/// Gets or sets fax number.
110+
/// The fax number of the user.
109111
/// </summary>
110112
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "faxNumber", Required = Newtonsoft.Json.Required.Default)]
111113
public string FaxNumber { get; set; }
@@ -140,6 +142,7 @@ public partial class User : DirectoryObject
140142

141143
/// <summary>
142144
/// Gets or sets license assignment states.
145+
/// State of license assignments for this user. Read-only.
143146
/// </summary>
144147
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "licenseAssignmentStates", Required = Newtonsoft.Json.Required.Default)]
145148
public IEnumerable<LicenseAssignmentState> LicenseAssignmentStates { get; set; }
@@ -167,6 +170,7 @@ public partial class User : DirectoryObject
167170

168171
/// <summary>
169172
/// Gets or sets on premises distinguished name.
173+
/// Contains the on-premises Active Directory distinguished name or DN. The property is only populated for customers who are synchronizing their on-premises directory to Azure Active Directory via Azure AD Connect. Read-only.
170174
/// </summary>
171175
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "onPremisesDistinguishedName", Required = Newtonsoft.Json.Required.Default)]
172176
public string OnPremisesDistinguishedName { get; set; }
@@ -236,6 +240,7 @@ public partial class User : DirectoryObject
236240

237241
/// <summary>
238242
/// Gets or sets other mails.
243+
/// A list of additional email addresses for the user; for example: ['bob@contoso.com', 'Robert@fabrikam.com']. Supports $filter.
239244
/// </summary>
240245
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "otherMails", Required = Newtonsoft.Json.Required.Default)]
241246
public IEnumerable<string> OtherMails { get; set; }
@@ -291,6 +296,7 @@ public partial class User : DirectoryObject
291296

292297
/// <summary>
293298
/// Gets or sets show in address list.
299+
/// true if the Outlook global address list should contain this user, otherwise false. If not set, this will be treated as true. For users invited through the invitation manager, this property will be set to false.
294300
/// </summary>
295301
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "showInAddressList", Required = Newtonsoft.Json.Required.Default)]
296302
public bool? ShowInAddressList { get; set; }
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
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+
7+
// Template Source: Templates\CSharp\Requests\IMethodRequest.cs.tt
8+
9+
namespace Microsoft.Graph
10+
{
11+
using System;
12+
using System.Collections.Generic;
13+
using System.IO;
14+
using System.Net.Http;
15+
using System.Threading;
16+
17+
/// <summary>
18+
/// The interface INotebookGetNotebookFromWebUrlRequest.
19+
/// </summary>
20+
public partial interface INotebookGetNotebookFromWebUrlRequest : IBaseRequest
21+
{
22+
23+
/// <summary>
24+
/// Gets the request body.
25+
/// </summary>
26+
NotebookGetNotebookFromWebUrlRequestBody RequestBody { get; }
27+
28+
29+
/// <summary>
30+
/// Issues the POST request.
31+
/// </summary>
32+
System.Threading.Tasks.Task<CopyNotebookModel> PostAsync();
33+
34+
/// <summary>
35+
/// Issues the POST request.
36+
/// </summary>
37+
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
38+
/// <returns>The task to await for async call.</returns>
39+
System.Threading.Tasks.Task<CopyNotebookModel> PostAsync(
40+
CancellationToken cancellationToken);
41+
42+
43+
44+
45+
46+
47+
/// <summary>
48+
/// Adds the specified expand value to the request.
49+
/// </summary>
50+
/// <param name="value">The expand value.</param>
51+
/// <returns>The request object to send.</returns>
52+
INotebookGetNotebookFromWebUrlRequest Expand(string value);
53+
54+
/// <summary>
55+
/// Adds the specified select value to the request.
56+
/// </summary>
57+
/// <param name="value">The select value.</param>
58+
/// <returns>The request object to send.</returns>
59+
INotebookGetNotebookFromWebUrlRequest Select(string value);
60+
}
61+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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+
7+
// Template Source: Templates\CSharp\Requests\IMethodRequestBuilder.cs.tt
8+
9+
namespace Microsoft.Graph
10+
{
11+
using System;
12+
using System.Collections.Generic;
13+
using System.IO;
14+
15+
/// <summary>
16+
/// The interface INotebookGetNotebookFromWebUrlRequestBuilder.
17+
/// </summary>
18+
public partial interface INotebookGetNotebookFromWebUrlRequestBuilder
19+
{
20+
/// <summary>
21+
/// Builds the request.
22+
/// </summary>
23+
/// <param name="options">The query and header options for the request.</param>
24+
/// <returns>The built request.</returns>
25+
INotebookGetNotebookFromWebUrlRequest Request(IEnumerable<Option> options = null);
26+
}
27+
}

src/Microsoft.Graph/Requests/Generated/IOnenoteNotebooksCollectionRequestBuilder.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ public partial interface IOnenoteNotebooksCollectionRequestBuilder
3535
/// <returns>The <see cref="INotebookRequestBuilder"/>.</returns>
3636
INotebookRequestBuilder this[string id] { get; }
3737

38+
/// <summary>
39+
/// Gets the request builder for NotebookGetNotebookFromWebUrl.
40+
/// </summary>
41+
/// <returns>The <see cref="INotebookGetNotebookFromWebUrlRequestBuilder"/>.</returns>
42+
INotebookGetNotebookFromWebUrlRequestBuilder GetNotebookFromWebUrl(
43+
string webUrl = null);
44+
3845
/// <summary>
3946
/// Gets the request builder for NotebookGetRecentNotebooks.
4047
/// </summary>

0 commit comments

Comments
 (0)