Skip to content

Commit 4ce3189

Browse files
Generated v1.0 models and request builders using Typewriter (#749)
* Update generated files with build 3368467 * Add nikithauc to PR reviewers
1 parent 9b74c26 commit 4ce3189

File tree

268 files changed

+13851
-57
lines changed

Some content is hidden

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

268 files changed

+13851
-57
lines changed

.github/workflows/create-v1.0-pull-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4040
MESSAGE_TITLE: Generated v1.0 models and request builders using Typewriter
4141
MESSAGE_BODY: "This pull request was automatically created by the GitHub Action, **${{github.workflow}}**. \n\n The commit hash is _${{github.sha}}_. \n\n **Important** Check for unexpected deletions or changes in this PR. \n\n - [ ] Check that the changes match the changes in the captured commit for [v1.0_metadata.xml](https://github.com/microsoftgraph/msgraph-metadata/blob/master/v1.0_metadata.xml) \n\n cc: @darrelmiller"
42-
REVIEWERS: peombwa,ddyett,zengin
42+
REVIEWERS: peombwa,ddyett,zengin,nikithauc
4343
ASSIGNEDTO: MIchaelMainer
4444
LABELS: generated
4545
BASE: dev

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.8.0</VersionPrefix>
22+
<VersionPrefix>3.9.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. -->
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 Aad User Conversation Member.
20+
/// </summary>
21+
[JsonObject(MemberSerialization = MemberSerialization.OptIn)]
22+
public partial class AadUserConversationMember : ConversationMember
23+
{
24+
25+
///<summary>
26+
/// The AadUserConversationMember constructor
27+
///</summary>
28+
public AadUserConversationMember()
29+
{
30+
this.ODataType = "microsoft.graph.aadUserConversationMember";
31+
}
32+
33+
/// <summary>
34+
/// Gets or sets user id.
35+
/// </summary>
36+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "userId", Required = Newtonsoft.Json.Required.Default)]
37+
public string UserId { get; set; }
38+
39+
/// <summary>
40+
/// Gets or sets email.
41+
/// </summary>
42+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "email", Required = Newtonsoft.Json.Required.Default)]
43+
public string Email { get; set; }
44+
45+
/// <summary>
46+
/// Gets or sets user.
47+
/// </summary>
48+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "user", Required = Newtonsoft.Json.Required.Default)]
49+
public User User { get; set; }
50+
51+
}
52+
}
53+

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public Application()
3232

3333
/// <summary>
3434
/// Gets or sets add ins.
35-
/// 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.
35+
/// 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 Microsoft 365 call the application in the context of a document the user is working on.
3636
/// </summary>
3737
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "addIns", Required = Newtonsoft.Json.Required.Default)]
3838
public IEnumerable<AddIn> AddIns { get; set; }
@@ -216,6 +216,12 @@ public Application()
216216
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "createdOnBehalfOf", Required = Newtonsoft.Json.Required.Default)]
217217
public DirectoryObject CreatedOnBehalfOf { get; set; }
218218

219+
/// <summary>
220+
/// Gets or sets home realm discovery policies.
221+
/// </summary>
222+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "homeRealmDiscoveryPolicies", Required = Newtonsoft.Json.Required.Default)]
223+
public IApplicationHomeRealmDiscoveryPoliciesCollectionWithReferencesPage HomeRealmDiscoveryPolicies { get; set; }
224+
219225
/// <summary>
220226
/// Gets or sets owners.
221227
/// Directory objects that are owners of the application. The owners are a set of non-admin users who are allowed to modify this object. Requires version 2013-11-08 or newer. Read-only. Nullable.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public AppliedConditionalAccessPolicy()
3232

3333
/// <summary>
3434
/// Gets or sets id.
35-
/// Unique GUID of the conditional access polic.y
35+
/// Unique GUID of the conditional access policy.
3636
/// </summary>
3737
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "id", Required = Newtonsoft.Json.Required.Default)]
3838
public string Id { get; set; }

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

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

3333
/// <summary>
3434
/// Gets or sets labelId.
35+
/// The unique identifier of the label.
3536
/// </summary>
3637
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "labelId", Required = Newtonsoft.Json.Required.Default)]
3738
public string LabelId { get; set; }
3839

3940
/// <summary>
4041
/// Gets or sets displayName.
42+
/// The display name of the label. Read-only.
4143
/// </summary>
4244
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "displayName", Required = Newtonsoft.Json.Required.Default)]
4345
public string DisplayName { get; set; }

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public Attendee()
3838

3939
/// <summary>
4040
/// Gets or sets proposedNewTime.
41+
/// An alternate date/time proposed by the attendee for a meeting request to start and end. If the attendee hasn't proposed another time, then this property is not included in a response of a GET event.
4142
/// </summary>
4243
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "proposedNewTime", Required = Newtonsoft.Json.Required.Default)]
4344
public TimeSlot ProposedNewTime { get; set; }
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
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\ComplexType.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 ChangeNotification.
20+
/// </summary>
21+
[JsonObject(MemberSerialization = MemberSerialization.OptIn)]
22+
[JsonConverter(typeof(DerivedTypeConverter))]
23+
public partial class ChangeNotification
24+
{
25+
/// <summary>
26+
/// Initializes a new instance of the <see cref="ChangeNotification"/> class.
27+
/// </summary>
28+
public ChangeNotification()
29+
{
30+
this.ODataType = "microsoft.graph.changeNotification";
31+
}
32+
33+
/// <summary>
34+
/// Gets or sets id.
35+
/// Unique ID for the notification. Optional.
36+
/// </summary>
37+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "id", Required = Newtonsoft.Json.Required.Default)]
38+
public string Id { get; set; }
39+
40+
/// <summary>
41+
/// Gets or sets subscriptionId.
42+
/// The unique identifier of the subscription that generated the notification.
43+
/// </summary>
44+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "subscriptionId", Required = Newtonsoft.Json.Required.Default)]
45+
public Guid? SubscriptionId { get; set; }
46+
47+
/// <summary>
48+
/// Gets or sets subscriptionExpirationDateTime.
49+
/// The expiration time for the subscription. Required.
50+
/// </summary>
51+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "subscriptionExpirationDateTime", Required = Newtonsoft.Json.Required.Default)]
52+
public DateTimeOffset? SubscriptionExpirationDateTime { get; set; }
53+
54+
/// <summary>
55+
/// Gets or sets clientState.
56+
/// Value of the clientState property sent in the subscription request (if any). The maximum length is 255 characters. The client can check whether the change notification came from the service by comparing the values of the clientState property. The value of the clientState property sent with the subscription is compared with the value of the clientState property received with each change notification. Optional.
57+
/// </summary>
58+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "clientState", Required = Newtonsoft.Json.Required.Default)]
59+
public string ClientState { get; set; }
60+
61+
/// <summary>
62+
/// Gets or sets changeType.
63+
/// Indicates the type of change that will raise the change notification. The supported values are: created, updated, deleted. Required.
64+
/// </summary>
65+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "changeType", Required = Newtonsoft.Json.Required.Default)]
66+
public ChangeType? ChangeType { get; set; }
67+
68+
/// <summary>
69+
/// Gets or sets resource.
70+
/// The URI of the resource that emitted the change notification relative to https://graph.microsoft.com. Required.
71+
/// </summary>
72+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "resource", Required = Newtonsoft.Json.Required.Default)]
73+
public string Resource { get; set; }
74+
75+
/// <summary>
76+
/// Gets or sets tenantId.
77+
/// The unique identifier of the tenant from which the change notification originated.
78+
/// </summary>
79+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "tenantId", Required = Newtonsoft.Json.Required.Default)]
80+
public Guid? TenantId { get; set; }
81+
82+
/// <summary>
83+
/// Gets or sets resourceData.
84+
/// The content of this property depends on the type of resource being subscribed to. Required.
85+
/// </summary>
86+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "resourceData", Required = Newtonsoft.Json.Required.Default)]
87+
public ResourceData ResourceData { get; set; }
88+
89+
/// <summary>
90+
/// Gets or sets additional data.
91+
/// </summary>
92+
[JsonExtensionData(ReadData = true)]
93+
public IDictionary<string, object> AdditionalData { get; set; }
94+
95+
/// <summary>
96+
/// Gets or sets @odata.type.
97+
/// </summary>
98+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "@odata.type", Required = Newtonsoft.Json.Required.Default)]
99+
public string ODataType { get; set; }
100+
101+
}
102+
}

src/Microsoft.Graph/Models/Generated/ConditionalAccessDevices.cs renamed to src/Microsoft.Graph/Models/Generated/ChangeNotificationCollection.cs

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,31 +16,26 @@ namespace Microsoft.Graph
1616
using Newtonsoft.Json;
1717

1818
/// <summary>
19-
/// The type ConditionalAccessDevices.
19+
/// The type ChangeNotificationCollection.
2020
/// </summary>
2121
[JsonObject(MemberSerialization = MemberSerialization.OptIn)]
2222
[JsonConverter(typeof(DerivedTypeConverter))]
23-
public partial class ConditionalAccessDevices
23+
public partial class ChangeNotificationCollection
2424
{
2525
/// <summary>
26-
/// Initializes a new instance of the <see cref="ConditionalAccessDevices"/> class.
26+
/// Initializes a new instance of the <see cref="ChangeNotificationCollection"/> class.
2727
/// </summary>
28-
public ConditionalAccessDevices()
28+
public ChangeNotificationCollection()
2929
{
30-
this.ODataType = "microsoft.graph.conditionalAccessDevices";
30+
this.ODataType = "microsoft.graph.changeNotificationCollection";
3131
}
3232

3333
/// <summary>
34-
/// Gets or sets includeDeviceStates.
34+
/// Gets or sets value.
35+
/// The set of notifications being sent to the notification URL. Required.
3536
/// </summary>
36-
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "includeDeviceStates", Required = Newtonsoft.Json.Required.Default)]
37-
public IEnumerable<string> IncludeDeviceStates { get; set; }
38-
39-
/// <summary>
40-
/// Gets or sets excludeDeviceStates.
41-
/// </summary>
42-
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "excludeDeviceStates", Required = Newtonsoft.Json.Required.Default)]
43-
public IEnumerable<string> ExcludeDeviceStates { get; set; }
37+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "value", Required = Newtonsoft.Json.Required.Default)]
38+
public IEnumerable<ChangeNotification> Value { get; set; }
4439

4540
/// <summary>
4641
/// Gets or sets additional data.

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

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ namespace Microsoft.Graph
1919
/// The type ChatMessageMention.
2020
/// </summary>
2121
[JsonObject(MemberSerialization = MemberSerialization.OptIn)]
22-
public partial class ChatMessageMention : Entity
22+
[JsonConverter(typeof(DerivedTypeConverter))]
23+
public partial class ChatMessageMention
2324
{
2425
/// <summary>
2526
/// Initializes a new instance of the <see cref="ChatMessageMention"/> class.
@@ -31,6 +32,7 @@ public ChatMessageMention()
3132

3233
/// <summary>
3334
/// Gets or sets id.
35+
/// Index of an entity being mentioned in the specified chatMessage. Matches the {index} value in the corresponding &amp;lt;at id='{index}'&amp;gt; tag in the message body.
3436
/// </summary>
3537
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "id", Required = Newtonsoft.Json.Required.Default)]
3638
public Int32? Id { get; set; }
@@ -49,5 +51,17 @@ public ChatMessageMention()
4951
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "mentioned", Required = Newtonsoft.Json.Required.Default)]
5052
public IdentitySet Mentioned { get; set; }
5153

54+
/// <summary>
55+
/// Gets or sets additional data.
56+
/// </summary>
57+
[JsonExtensionData(ReadData = true)]
58+
public IDictionary<string, object> AdditionalData { get; set; }
59+
60+
/// <summary>
61+
/// Gets or sets @odata.type.
62+
/// </summary>
63+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "@odata.type", Required = Newtonsoft.Json.Required.Default)]
64+
public string ODataType { get; set; }
65+
5266
}
5367
}

0 commit comments

Comments
 (0)