Skip to content

Commit 42a9341

Browse files
Update generated files with build 941132 (#363)
* New feature - Added the TransitiveMemberOf property to Device.cs. * New feature - Added the TransitiveMemberOf property to Group.cs. * New feature - Added the EmployeeId, FaxNumber, OnPremisesDistinguishedName, OtherMails, ShowInAddressList, and TransitiveMemberOf properties to User.cs. * New feature - Added the EdgeSendIntranetTrafficToInternetExplorer property to the Windows10GeneralConfiguration.cs. * New feature - Added request, paging, and navigation for the TransitiveMemberOf property Device. * New feature - Added request, paging, and navigation for the TransitiveMemberOf property Group. * New feature - Added request, paging, and navigation for the TransitiveMemberOf property User. * Change- Added updated comments to Group.cs. * Change- Added updated comments to Message.cs. * Change- Added updated comments to Organization.cs. * Change - Added updated comments to DataPolicyOperation.cs.
1 parent 5b44b62 commit 42a9341

File tree

60 files changed

+2988
-26
lines changed

Some content is hidden

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

60 files changed

+2988
-26
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,36 +23,42 @@ public partial class DataPolicyOperation : Entity
2323

2424
/// <summary>
2525
/// Gets or sets completed date time.
26+
/// Represents when the request for this data policy operation was completed, in UTC time, using the ISO 8601 format. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. Null until the operation completes.
2627
/// </summary>
2728
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "completedDateTime", Required = Newtonsoft.Json.Required.Default)]
2829
public DateTimeOffset? CompletedDateTime { get; set; }
2930

3031
/// <summary>
3132
/// Gets or sets status.
33+
/// Possible values are: notStarted, running, complete, failed, unknownFutureValue.
3234
/// </summary>
3335
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "status", Required = Newtonsoft.Json.Required.Default)]
3436
public DataPolicyOperationStatus? Status { get; set; }
3537

3638
/// <summary>
3739
/// Gets or sets storage location.
40+
/// The URL location to where data is being exported for export requests.
3841
/// </summary>
3942
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "storageLocation", Required = Newtonsoft.Json.Required.Default)]
4043
public string StorageLocation { get; set; }
4144

4245
/// <summary>
4346
/// Gets or sets user id.
47+
/// The id for the user on whom the operation is performed.
4448
/// </summary>
4549
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "userId", Required = Newtonsoft.Json.Required.Default)]
4650
public string UserId { get; set; }
4751

4852
/// <summary>
4953
/// Gets or sets submitted date time.
54+
/// Represents when the request for this data operation was submitted, in UTC time, using the ISO 8601 format. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'
5055
/// </summary>
5156
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "submittedDateTime", Required = Newtonsoft.Json.Required.Default)]
5257
public DateTimeOffset? SubmittedDateTime { get; set; }
5358

5459
/// <summary>
5560
/// Gets or sets progress.
61+
/// Specifies the progress of an operation.
5662
/// </summary>
5763
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "progress", Required = Newtonsoft.Json.Required.Default)]
5864
public double? Progress { get; set; }

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,12 @@ public partial class Device : DirectoryObject
147147
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "registeredUsers", Required = Newtonsoft.Json.Required.Default)]
148148
public IDeviceRegisteredUsersCollectionWithReferencesPage RegisteredUsers { get; set; }
149149

150+
/// <summary>
151+
/// Gets or sets transitive member of.
152+
/// </summary>
153+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "transitiveMemberOf", Required = Newtonsoft.Json.Required.Default)]
154+
public IDeviceTransitiveMemberOfCollectionWithReferencesPage TransitiveMemberOf { get; set; }
155+
150156
/// <summary>
151157
/// Gets or sets extensions.
152158
/// The collection of open extensions defined for the device. Read-only. Nullable.

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

Lines changed: 32 additions & 20 deletions
Large diffs are not rendered by default.

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public partial class Message : OutlookItem
6565

6666
/// <summary>
6767
/// Gets or sets body.
68-
/// The body of the message. It can be in HTML or text format.
68+
/// The body of the message. It can be in HTML or text format. Find out about safe HTML in a message body.
6969
/// </summary>
7070
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "body", Required = Newtonsoft.Json.Required.Default)]
7171
public ItemBody Body { get; set; }
@@ -93,14 +93,14 @@ public partial class Message : OutlookItem
9393

9494
/// <summary>
9595
/// Gets or sets sender.
96-
/// The account that is actually used to generate the message. In most cases, this value is the same as the from property. You can set this property to a different value when sending a message from a shared mailbox, or sending a message as a delegate. In any case, the value must correspond to the actual mailbox used.
96+
/// The account that is actually used to generate the message. In most cases, this value is the same as the from property. You can set this property to a different value when sending a message from a shared mailbox, or sending a message as a delegate. In any case, the value must correspond to the actual mailbox used. Find out more about setting the from and sender properties of a message.
9797
/// </summary>
9898
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "sender", Required = Newtonsoft.Json.Required.Default)]
9999
public Recipient Sender { get; set; }
100100

101101
/// <summary>
102102
/// Gets or sets from.
103-
/// The mailbox owner and sender of the message. The value must correspond to the actual mailbox used.
103+
/// The mailbox owner and sender of the message. The value must correspond to the actual mailbox used. Find out more about setting the from and sender properties of a message.
104104
/// </summary>
105105
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "from", Required = Newtonsoft.Json.Required.Default)]
106106
public Recipient From { get; set; }
@@ -205,21 +205,21 @@ public partial class Message : OutlookItem
205205

206206
/// <summary>
207207
/// Gets or sets extensions.
208-
/// The collection of open extensions defined for the message. Read-only. Nullable.
208+
/// The collection of open extensions defined for the message. Nullable.
209209
/// </summary>
210210
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "extensions", Required = Newtonsoft.Json.Required.Default)]
211211
public IMessageExtensionsCollectionPage Extensions { get; set; }
212212

213213
/// <summary>
214214
/// Gets or sets single value extended properties.
215-
/// The collection of single-value extended properties defined for the message. Read-only. Nullable.
215+
/// The collection of single-value extended properties defined for the message. Nullable.
216216
/// </summary>
217217
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "singleValueExtendedProperties", Required = Newtonsoft.Json.Required.Default)]
218218
public IMessageSingleValueExtendedPropertiesCollectionPage SingleValueExtendedProperties { get; set; }
219219

220220
/// <summary>
221221
/// Gets or sets multi value extended properties.
222-
/// The collection of multi-value extended properties defined for the message. Read-only. Nullable.
222+
/// The collection of multi-value extended properties defined for the message. Nullable.
223223
/// </summary>
224224
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "multiValueExtendedProperties", Required = Newtonsoft.Json.Required.Default)]
225225
public IMessageMultiValueExtendedPropertiesCollectionPage MultiValueExtendedProperties { get; set; }

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public partial class Organization : DirectoryObject
3030

3131
/// <summary>
3232
/// Gets or sets business phones.
33+
/// Telephone number for the organization. NOTE: Although this is a string collection, only one number can be set for this property.
3334
/// </summary>
3435
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "businessPhones", Required = Newtonsoft.Json.Required.Default)]
3536
public IEnumerable<string> BusinessPhones { get; set; }
@@ -71,12 +72,14 @@ public partial class Organization : DirectoryObject
7172

7273
/// <summary>
7374
/// Gets or sets on premises last sync date time.
75+
/// The time and date at which the tenant was last synced with the on-premise directory. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. Read-only.
7476
/// </summary>
7577
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "onPremisesLastSyncDateTime", Required = Newtonsoft.Json.Required.Default)]
7678
public DateTimeOffset? OnPremisesLastSyncDateTime { get; set; }
7779

7880
/// <summary>
7981
/// Gets or sets on premises sync enabled.
82+
/// true if this object is synced from an on-premises directory; false if this object was originally synced from an on-premises directory but is no longer synced; null if this object has never been synced from an on-premises directory (default).
8083
/// </summary>
8184
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "onPremisesSyncEnabled", Required = Newtonsoft.Json.Required.Default)]
8285
public bool? OnPremisesSyncEnabled { get; set; }

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

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,18 @@ public partial class User : DirectoryObject
9898
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "displayName", Required = Newtonsoft.Json.Required.Default)]
9999
public string DisplayName { get; set; }
100100

101+
/// <summary>
102+
/// Gets or sets employee id.
103+
/// </summary>
104+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "employeeId", Required = Newtonsoft.Json.Required.Default)]
105+
public string EmployeeId { get; set; }
106+
107+
/// <summary>
108+
/// Gets or sets fax number.
109+
/// </summary>
110+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "faxNumber", Required = Newtonsoft.Json.Required.Default)]
111+
public string FaxNumber { get; set; }
112+
101113
/// <summary>
102114
/// Gets or sets given name.
103115
/// The given name (first name) of the user. Supports $filter.
@@ -147,6 +159,12 @@ public partial class User : DirectoryObject
147159
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "mobilePhone", Required = Newtonsoft.Json.Required.Default)]
148160
public string MobilePhone { get; set; }
149161

162+
/// <summary>
163+
/// Gets or sets on premises distinguished name.
164+
/// </summary>
165+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "onPremisesDistinguishedName", Required = Newtonsoft.Json.Required.Default)]
166+
public string OnPremisesDistinguishedName { get; set; }
167+
150168
/// <summary>
151169
/// Gets or sets on premises extension attributes.
152170
/// Contains extensionAttributes 1-15 for the user. Note that the individual extension attributes are neither selectable nor filterable. For an onPremisesSyncEnabled user, this set of properties is mastered on-premises and is read-only. For a cloud-only user (where onPremisesSyncEnabled is false), these properties may be set during creation or update.
@@ -210,6 +228,12 @@ public partial class User : DirectoryObject
210228
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "onPremisesUserPrincipalName", Required = Newtonsoft.Json.Required.Default)]
211229
public string OnPremisesUserPrincipalName { get; set; }
212230

231+
/// <summary>
232+
/// Gets or sets other mails.
233+
/// </summary>
234+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "otherMails", Required = Newtonsoft.Json.Required.Default)]
235+
public IEnumerable<string> OtherMails { get; set; }
236+
213237
/// <summary>
214238
/// Gets or sets password policies.
215239
/// Specifies password policies for the user. This value is an enumeration with one possible value being 'DisableStrongPassword', which allows weaker passwords than the default policy to be specified. 'DisablePasswordExpiration' can also be specified. The two may be specified together; for example: 'DisablePasswordExpiration, DisableStrongPassword'.
@@ -259,6 +283,12 @@ public partial class User : DirectoryObject
259283
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "proxyAddresses", Required = Newtonsoft.Json.Required.Default)]
260284
public IEnumerable<string> ProxyAddresses { get; set; }
261285

286+
/// <summary>
287+
/// Gets or sets show in address list.
288+
/// </summary>
289+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "showInAddressList", Required = Newtonsoft.Json.Required.Default)]
290+
public bool? ShowInAddressList { get; set; }
291+
262292
/// <summary>
263293
/// Gets or sets state.
264294
/// The state or province in the user's address. Supports $filter.
@@ -441,6 +471,12 @@ public partial class User : DirectoryObject
441471
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "licenseDetails", Required = Newtonsoft.Json.Required.Default)]
442472
public IUserLicenseDetailsCollectionPage LicenseDetails { get; set; }
443473

474+
/// <summary>
475+
/// Gets or sets transitive member of.
476+
/// </summary>
477+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "transitiveMemberOf", Required = Newtonsoft.Json.Required.Default)]
478+
public IUserTransitiveMemberOfCollectionWithReferencesPage TransitiveMemberOf { get; set; }
479+
444480
/// <summary>
445481
/// Gets or sets extensions.
446482
/// The collection of open extensions defined for the user. Read-only. Nullable.

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,6 +1078,13 @@ public partial class Windows10GeneralConfiguration : DeviceConfiguration
10781078
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "edgeBlockSendingIntranetTrafficToInternetExplorer", Required = Newtonsoft.Json.Required.Default)]
10791079
public bool? EdgeBlockSendingIntranetTrafficToInternetExplorer { get; set; }
10801080

1081+
/// <summary>
1082+
/// Gets or sets edge send intranet traffic to internet explorer.
1083+
/// Indicates whether or not to switch the intranet traffic from Edge to Internet Explorer.
1084+
/// </summary>
1085+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "edgeSendIntranetTrafficToInternetExplorer", Required = Newtonsoft.Json.Required.Default)]
1086+
public bool? EdgeSendIntranetTrafficToInternetExplorer { get; set; }
1087+
10811088
/// <summary>
10821089
/// Gets or sets edge require smart screen.
10831090
/// Indicates whether or not to Require the user to use the smart screen filter.

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,22 @@ private void InitializeCollectionProperties(Device deviceToInitialize)
254254
}
255255
}
256256

257+
if (deviceToInitialize.TransitiveMemberOf != null && deviceToInitialize.TransitiveMemberOf.CurrentPage != null)
258+
{
259+
deviceToInitialize.TransitiveMemberOf.AdditionalData = deviceToInitialize.AdditionalData;
260+
261+
object nextPageLink;
262+
deviceToInitialize.AdditionalData.TryGetValue("transitiveMemberOf@odata.nextLink", out nextPageLink);
263+
var nextPageLinkString = nextPageLink as string;
264+
265+
if (!string.IsNullOrEmpty(nextPageLinkString))
266+
{
267+
deviceToInitialize.TransitiveMemberOf.InitializeNextPageRequest(
268+
this.Client,
269+
nextPageLinkString);
270+
}
271+
}
272+
257273
if (deviceToInitialize.Extensions != null && deviceToInitialize.Extensions.CurrentPage != null)
258274
{
259275
deviceToInitialize.Extensions.AdditionalData = deviceToInitialize.AdditionalData;

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,18 @@ public IDeviceRegisteredUsersCollectionWithReferencesRequestBuilder RegisteredUs
8585
}
8686
}
8787

88+
/// <summary>
89+
/// Gets the request builder for TransitiveMemberOf.
90+
/// </summary>
91+
/// <returns>The <see cref="IDeviceTransitiveMemberOfCollectionWithReferencesRequestBuilder"/>.</returns>
92+
public IDeviceTransitiveMemberOfCollectionWithReferencesRequestBuilder TransitiveMemberOf
93+
{
94+
get
95+
{
96+
return new DeviceTransitiveMemberOfCollectionWithReferencesRequestBuilder(this.AppendSegmentToRequestUrl("transitiveMemberOf"), this.Client);
97+
}
98+
}
99+
88100
/// <summary>
89101
/// Gets the request builder for Extensions.
90102
/// </summary>
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
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\EntityCollectionReferencesRequest.cs.tt
8+
9+
namespace Microsoft.Graph
10+
{
11+
using System;
12+
using System.Collections.Generic;
13+
using System.Net.Http;
14+
using System.Threading;
15+
16+
/// <summary>
17+
/// The type DeviceTransitiveMemberOfCollectionReferencesRequest.
18+
/// </summary>
19+
public partial class DeviceTransitiveMemberOfCollectionReferencesRequest : BaseRequest, IDeviceTransitiveMemberOfCollectionReferencesRequest
20+
{
21+
/// <summary>
22+
/// Constructs a new DeviceTransitiveMemberOfCollectionReferencesRequest.
23+
/// </summary>
24+
/// <param name="requestUrl">The URL for the built request.</param>
25+
/// <param name="client">The <see cref="IBaseClient"/> for handling requests.</param>
26+
/// <param name="options">Query and header option name value pairs for the request.</param>
27+
public DeviceTransitiveMemberOfCollectionReferencesRequest(
28+
string requestUrl,
29+
IBaseClient client,
30+
IEnumerable<Option> options)
31+
: base(requestUrl, client, options)
32+
{
33+
}
34+
35+
/// <summary>
36+
/// Adds the specified DirectoryObject to the collection via POST.
37+
/// </summary>
38+
/// <param name="directoryObject">The DirectoryObject to add.</param>
39+
/// <returns>The task to await.</returns>
40+
public System.Threading.Tasks.Task AddAsync(DirectoryObject directoryObject)
41+
{
42+
return this.AddAsync(directoryObject, CancellationToken.None);
43+
}
44+
45+
/// <summary>
46+
/// Adds the specified DirectoryObject to the collection via POST.
47+
/// </summary>
48+
/// <param name="directoryObject">The DirectoryObject to add.</param>
49+
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
50+
/// <returns>The task to await.</returns>
51+
public System.Threading.Tasks.Task AddAsync(DirectoryObject directoryObject, CancellationToken cancellationToken)
52+
{
53+
this.ContentType = "application/json";
54+
this.Method = "POST";
55+
56+
if (string.IsNullOrEmpty(directoryObject.Id))
57+
{
58+
throw new ServiceException(new Error { Code = "invalidRequest", Message = "ID is required to add a reference." });
59+
}
60+
61+
var requestBody = new ReferenceRequestBody { ODataId = string.Format("{0}/directoryObjects/{1}", this.Client.BaseUrl, directoryObject.Id) };
62+
return this.SendAsync(requestBody, cancellationToken);
63+
}
64+
65+
}
66+
}

0 commit comments

Comments
 (0)