Skip to content

Commit 6df97f0

Browse files
Generated models and request builders using Typewriter (#649)
* Update generated files with build 2583988 * Bump version to 3.0.1
1 parent f784b2e commit 6df97f0

File tree

307 files changed

+9627
-8246
lines changed

Some content is hidden

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

307 files changed

+9627
-8246
lines changed

src/Microsoft.Graph/Microsoft.Graph.csproj

Lines changed: 2 additions & 2 deletions
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.0.0</VersionPrefix>
22+
<VersionPrefix>3.0.1</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. -->
@@ -47,4 +47,4 @@
4747
</PackagePath>
4848
</None>
4949
</ItemGroup>
50-
</Project>
50+
</Project>

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

Lines changed: 0 additions & 77 deletions
This file was deleted.
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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 Change Tracked Entity.
20+
/// </summary>
21+
[JsonObject(MemberSerialization = MemberSerialization.OptIn)]
22+
public partial class ChangeTrackedEntity : Entity
23+
{
24+
25+
///<summary>
26+
/// The internal ChangeTrackedEntity constructor
27+
///</summary>
28+
protected internal ChangeTrackedEntity()
29+
{
30+
// Don't allow initialization of abstract entity types
31+
}
32+
33+
/// <summary>
34+
/// Gets or sets created date time.
35+
/// </summary>
36+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "createdDateTime", Required = Newtonsoft.Json.Required.Default)]
37+
public DateTimeOffset? CreatedDateTime { get; set; }
38+
39+
/// <summary>
40+
/// Gets or sets last modified date time.
41+
/// </summary>
42+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "lastModifiedDateTime", Required = Newtonsoft.Json.Required.Default)]
43+
public DateTimeOffset? LastModifiedDateTime { get; set; }
44+
45+
/// <summary>
46+
/// Gets or sets last modified by.
47+
/// </summary>
48+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "lastModifiedBy", Required = Newtonsoft.Json.Required.Default)]
49+
public IdentitySet LastModifiedBy { get; set; }
50+
51+
}
52+
}
53+

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,21 @@ public EmailFileAssessmentRequestObject()
3232

3333
/// <summary>
3434
/// Gets or sets recipient email.
35+
/// The mail recipient whose policies are used to assess the mail.
3536
/// </summary>
3637
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "recipientEmail", Required = Newtonsoft.Json.Required.Default)]
3738
public string RecipientEmail { get; set; }
3839

3940
/// <summary>
4041
/// Gets or sets destination routing reason.
42+
/// The reason for mail routed to its destination. Possible values are: none, mailFlowRule, safeSender, blockedSender, advancedSpamFiltering, domainAllowList, domainBlockList, notInAddressBook, firstTimeSender, autoPurgeToInbox, autoPurgeToJunk, autoPurgeToDeleted, outbound, notJunk, junk.
4143
/// </summary>
4244
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "destinationRoutingReason", Required = Newtonsoft.Json.Required.Default)]
4345
public MailDestinationRoutingReason? DestinationRoutingReason { get; set; }
4446

4547
/// <summary>
4648
/// Gets or sets content data.
49+
/// Base64 encoded .eml email file content. The file content cannot fetch back because it isn't stored.
4750
/// </summary>
4851
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "contentData", Required = Newtonsoft.Json.Required.Default)]
4952
public string ContentData { get; set; }

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,14 @@ public FileAssessmentRequestObject()
3232

3333
/// <summary>
3434
/// Gets or sets file name.
35+
/// The file name.
3536
/// </summary>
3637
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "fileName", Required = Newtonsoft.Json.Required.Default)]
3738
public string FileName { get; set; }
3839

3940
/// <summary>
4041
/// Gets or sets content data.
42+
/// Base64 encoded file content. The file content cannot fetch back because it isn't stored.
4143
/// </summary>
4244
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "contentData", Required = Newtonsoft.Json.Required.Default)]
4345
public string ContentData { get; set; }

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -243,12 +243,6 @@ public Group()
243243
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "isArchived", Required = Newtonsoft.Json.Required.Default)]
244244
public bool? IsArchived { get; set; }
245245

246-
/// <summary>
247-
/// Gets or sets app role assignments.
248-
/// </summary>
249-
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "appRoleAssignments", Required = Newtonsoft.Json.Required.Default)]
250-
public IGroupAppRoleAssignmentsCollectionPage AppRoleAssignments { get; set; }
251-
252246
/// <summary>
253247
/// Gets or sets members.
254248
/// Users and groups that are members of this group. HTTP Methods: GET (supported for all groups), POST (supported for Office 365 groups, security groups and mail-enabled security groups), DELETE (supported for Office 365 groups and security groups) Nullable.

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,21 @@ public MailAssessmentRequestObject()
3232

3333
/// <summary>
3434
/// Gets or sets recipient email.
35+
/// The mail recipient whose policies are used to assess the mail.
3536
/// </summary>
3637
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "recipientEmail", Required = Newtonsoft.Json.Required.Default)]
3738
public string RecipientEmail { get; set; }
3839

3940
/// <summary>
4041
/// Gets or sets destination routing reason.
42+
/// The reason for mail routed to its destination. Possible values are: none, mailFlowRule, safeSender, blockedSender, advancedSpamFiltering, domainAllowList, domainBlockList, notInAddressBook, firstTimeSender, autoPurgeToInbox, autoPurgeToJunk, autoPurgeToDeleted, outbound, notJunk, junk.
4143
/// </summary>
4244
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "destinationRoutingReason", Required = Newtonsoft.Json.Required.Default)]
4345
public MailDestinationRoutingReason? DestinationRoutingReason { get; set; }
4446

4547
/// <summary>
4648
/// Gets or sets message uri.
49+
/// The resource URI of the mail message for assessment.
4750
/// </summary>
4851
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "messageUri", Required = Newtonsoft.Json.Required.Default)]
4952
public string MessageUri { get; set; }

src/Microsoft.Graph/Models/Generated/OAuth2PermissionGrant.cs renamed to src/Microsoft.Graph/Models/Generated/OfferShiftRequest.cs

Lines changed: 17 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -16,49 +16,43 @@ namespace Microsoft.Graph
1616
using Newtonsoft.Json;
1717

1818
/// <summary>
19-
/// The type OAuth2Permission Grant.
19+
/// The type Offer Shift Request.
2020
/// </summary>
2121
[JsonObject(MemberSerialization = MemberSerialization.OptIn)]
22-
public partial class OAuth2PermissionGrant : Entity
22+
public partial class OfferShiftRequestObject : ScheduleChangeRequestObject
2323
{
2424

2525
///<summary>
26-
/// The OAuth2PermissionGrant constructor
26+
/// The OfferShiftRequest constructor
2727
///</summary>
28-
public OAuth2PermissionGrant()
28+
public OfferShiftRequestObject()
2929
{
30-
this.ODataType = "microsoft.graph.oAuth2PermissionGrant";
30+
this.ODataType = "microsoft.graph.offerShiftRequest";
3131
}
3232

3333
/// <summary>
34-
/// Gets or sets client id.
34+
/// Gets or sets recipient action message.
3535
/// </summary>
36-
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "clientId", Required = Newtonsoft.Json.Required.Default)]
37-
public string ClientId { get; set; }
36+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "recipientActionMessage", Required = Newtonsoft.Json.Required.Default)]
37+
public string RecipientActionMessage { get; set; }
3838

3939
/// <summary>
40-
/// Gets or sets consent type.
40+
/// Gets or sets recipient action date time.
4141
/// </summary>
42-
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "consentType", Required = Newtonsoft.Json.Required.Default)]
43-
public string ConsentType { get; set; }
42+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "recipientActionDateTime", Required = Newtonsoft.Json.Required.Default)]
43+
public DateTimeOffset? RecipientActionDateTime { get; set; }
4444

4545
/// <summary>
46-
/// Gets or sets principal id.
46+
/// Gets or sets sender shift id.
4747
/// </summary>
48-
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "principalId", Required = Newtonsoft.Json.Required.Default)]
49-
public string PrincipalId { get; set; }
48+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "senderShiftId", Required = Newtonsoft.Json.Required.Default)]
49+
public string SenderShiftId { get; set; }
5050

5151
/// <summary>
52-
/// Gets or sets resource id.
52+
/// Gets or sets recipient user id.
5353
/// </summary>
54-
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "resourceId", Required = Newtonsoft.Json.Required.Default)]
55-
public string ResourceId { get; set; }
56-
57-
/// <summary>
58-
/// Gets or sets scope.
59-
/// </summary>
60-
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "scope", Required = Newtonsoft.Json.Required.Default)]
61-
public string Scope { get; set; }
54+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "recipientUserId", Required = Newtonsoft.Json.Required.Default)]
55+
public string RecipientUserId { get; set; }
6256

6357
}
6458
}
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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 Open Shift.
20+
/// </summary>
21+
[JsonObject(MemberSerialization = MemberSerialization.OptIn)]
22+
public partial class OpenShift : ChangeTrackedEntity
23+
{
24+
25+
///<summary>
26+
/// The OpenShift constructor
27+
///</summary>
28+
public OpenShift()
29+
{
30+
this.ODataType = "microsoft.graph.openShift";
31+
}
32+
33+
/// <summary>
34+
/// Gets or sets shared open shift.
35+
/// </summary>
36+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "sharedOpenShift", Required = Newtonsoft.Json.Required.Default)]
37+
public OpenShiftItem SharedOpenShift { get; set; }
38+
39+
/// <summary>
40+
/// Gets or sets draft open shift.
41+
/// </summary>
42+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "draftOpenShift", Required = Newtonsoft.Json.Required.Default)]
43+
public OpenShiftItem DraftOpenShift { get; set; }
44+
45+
/// <summary>
46+
/// Gets or sets scheduling group id.
47+
/// </summary>
48+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "schedulingGroupId", Required = Newtonsoft.Json.Required.Default)]
49+
public string SchedulingGroupId { get; set; }
50+
51+
}
52+
}
53+
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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 Open Shift Change Request.
20+
/// </summary>
21+
[JsonObject(MemberSerialization = MemberSerialization.OptIn)]
22+
public partial class OpenShiftChangeRequestObject : ScheduleChangeRequestObject
23+
{
24+
25+
///<summary>
26+
/// The internal OpenShiftChangeRequest constructor
27+
///</summary>
28+
protected internal OpenShiftChangeRequestObject()
29+
{
30+
// Don't allow initialization of abstract entity types
31+
}
32+
33+
/// <summary>
34+
/// Gets or sets open shift id.
35+
/// </summary>
36+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "openShiftId", Required = Newtonsoft.Json.Required.Default)]
37+
public string OpenShiftId { get; set; }
38+
39+
}
40+
}
41+

0 commit comments

Comments
 (0)