Skip to content

Commit 2c2498f

Browse files
authored
Merge pull request #2091 from microsoftgraph/kiota/v1.0/pipelinebuild/123537
Generated models and request builders
2 parents c0d2d0f + ba1dc48 commit 2c2498f

148 files changed

Lines changed: 1497 additions & 529 deletions

File tree

Some content is hidden

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

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,15 @@ and this project does adheres to [Semantic Versioning](https://semver.org/spec/v
77

88
## [Unreleased]
99

10-
## [5.22.0] - 2023-08-16
10+
## [5.24.0] - 2023-08-23
11+
12+
- Adds GraphServiceClient constructor for use with a `TokenCredential` and a `HttpClient`.
13+
- Fix for incorrect discriminator in DirectoryObject type (https://github.com/microsoftgraph/msgraph-sdk-dotnet/issues/2084).
14+
- Fix for incorrect property names when the reserved names matched the type name (https://github.com/microsoft/kiota/pull/3107).
15+
- Fix for missing PlannerCheckListItem and PlannerExternalReference models (https://github.com/microsoftgraph/msgraph-sdk-dotnet/issues/2050).
16+
- Latest metadata updates from 22nd August 2023.
17+
18+
## [5.23.0] - 2023-08-16
1119

1220
- Fix for incorrect property names when the reserved names matched the type name (https://github.com/microsoft/kiota/pull/3107).
1321
- Latest metadata updates from 15th August 2023.

src/Microsoft.Graph/Extensions/PlannerAssignment.cs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,25 @@ public string OrderHint {
4646
set { BackingStore?.Set("orderHint", value); }
4747
}
4848
#endif
49+
/// <summary>Read-only. User ID by which this is last modified.</summary>
50+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
51+
#nullable enable
52+
public IdentitySet? AssignedBy {
53+
get { return BackingStore?.Get<IdentitySet>("assignedBy"); }
54+
set { BackingStore?.Set("assignedBy", value); }
55+
}
56+
#nullable restore
57+
#else
58+
public IdentitySet AssignedBy {
59+
get { return BackingStore?.Get<IdentitySet>("assignedBy"); }
60+
set { BackingStore?.Set("assignedBy", value); }
61+
}
62+
#endif
63+
64+
public DateTimeOffset? AssignedDateTime {
65+
get { return BackingStore?.Get<DateTimeOffset?>("assignedDateTime"); }
66+
set { BackingStore?.Set("assignedDateTime", value); }
67+
}
4968
/// <summary>
5069
/// Instantiates a new auditActivityInitiator and sets the default values.
5170
/// </summary>
@@ -70,6 +89,8 @@ public IDictionary<string, Action<IParseNode>> GetFieldDeserializers() {
7089
return new Dictionary<string, Action<IParseNode>> {
7190
{"@odata.type", n => { OdataType = n.GetStringValue(); } },
7291
{"orderHint", n => { OrderHint = n.GetStringValue(); } },
92+
{"assignedBy", n => { AssignedBy = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } },
93+
{"assignedDateTime", n => { AssignedDateTime = n.GetDateTimeOffsetValue(); } },
7394
};
7495
}
7596
/// <summary>
@@ -80,6 +101,8 @@ public void Serialize(ISerializationWriter writer) {
80101
_ = writer ?? throw new ArgumentNullException(nameof(writer));
81102
writer.WriteStringValue("@odata.type", OdataType);
82103
writer.WriteStringValue("orderHint", OrderHint);
104+
writer.WriteObjectValue("assignedBy", AssignedBy);
105+
writer.WriteDateTimeOffsetValue("assignedDateTime", AssignedDateTime);
83106
writer.WriteAdditionalData(AdditionalData);
84107
}
85108
}
Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
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+
using Microsoft.Kiota.Abstractions.Serialization;
6+
using Microsoft.Kiota.Abstractions.Store;
7+
using System;
8+
using System.Collections.Generic;
9+
10+
namespace Microsoft.Graph.Models;
11+
12+
public class PlannerCheckListItem: IAdditionalDataHolder, IBackedModel, IParsable
13+
{
14+
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
15+
public IDictionary<string, object> AdditionalData {
16+
get { return BackingStore?.Get<IDictionary<string, object>>("additionalData"); }
17+
set { BackingStore?.Set("additionalData", value); }
18+
}
19+
/// <summary>Stores model information.</summary>
20+
public IBackingStore BackingStore { get; private set; }
21+
/// <summary>The OdataType property</summary>
22+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
23+
#nullable enable
24+
public string? OdataType {
25+
get { return BackingStore?.Get<string?>("@odata.type"); }
26+
set { BackingStore?.Set("@odata.type", value); }
27+
}
28+
#nullable restore
29+
#else
30+
public string OdataType {
31+
get { return BackingStore?.Get<string>("@odata.type"); }
32+
set { BackingStore?.Set("@odata.type", value); }
33+
}
34+
#endif
35+
/// <summary>Value is true if the item is checked and false otherwise.</summary>
36+
public bool? IsChecked {
37+
get { return BackingStore?.Get<bool>("isChecked"); }
38+
set { BackingStore?.Set("isChecked", value); }
39+
}
40+
/// <summary>Read-only. User ID by which this is last modified.</summary>
41+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
42+
#nullable enable
43+
public IdentitySet? LastModifiedBy {
44+
get { return BackingStore?.Get<IdentitySet>("lastModifiedBy"); }
45+
set { BackingStore?.Set("lastModifiedBy", value); }
46+
}
47+
#nullable restore
48+
#else
49+
public IdentitySet LastModifiedBy {
50+
get { return BackingStore?.Get<IdentitySet>("lastModifiedBy"); }
51+
set { BackingStore?.Set("lastModifiedBy", value); }
52+
}
53+
#endif
54+
/// <summary>Read-only. Date and time at which this is last modified. 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 is 2014-01-01T00:00:00Z.</summary>
55+
public DateTimeOffset? LastModifiedDateTime {
56+
get { return BackingStore?.Get<DateTimeOffset?>("lastModifiedDateTime"); }
57+
set { BackingStore?.Set("lastModifiedDateTime", value); }
58+
}
59+
/// <summary>Used to set the relative order of items in the checklist. The format is defined as outlined here..</summary>
60+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
61+
#nullable enable
62+
public string? OrderHint {
63+
get { return BackingStore?.Get<string?>("orderHint"); }
64+
set { BackingStore?.Set("orderHint", value); }
65+
}
66+
#nullable restore
67+
#else
68+
public string OrderHint {
69+
get { return BackingStore?.Get<string>("orderHint"); }
70+
set { BackingStore?.Set("orderHint", value); }
71+
}
72+
#endif
73+
/// <summary>Title of the checklist item.</summary>
74+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
75+
#nullable enable
76+
public string? Title {
77+
get { return BackingStore?.Get<string?>("title"); }
78+
set { BackingStore?.Set("title", value); }
79+
}
80+
#nullable restore
81+
#else
82+
public string Title {
83+
get { return BackingStore?.Get<string>("title"); }
84+
set { BackingStore?.Set("title", value); }
85+
}
86+
#endif
87+
/// <summary>
88+
/// Instantiates a new auditActivityInitiator and sets the default values.
89+
/// </summary>
90+
public PlannerCheckListItem() {
91+
BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
92+
AdditionalData = new Dictionary<string, object>();
93+
OdataType = "#microsoft.graph.plannerChecklistItem";
94+
}
95+
/// <summary>
96+
/// Creates a new instance of the appropriate class based on discriminator value
97+
/// </summary>
98+
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
99+
public static PlannerCheckListItem CreateFromDiscriminatorValue(IParseNode parseNode) {
100+
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
101+
return new PlannerCheckListItem();
102+
}
103+
/// <summary>
104+
/// The deserialization information for the current model
105+
/// </summary>
106+
public IDictionary<string, Action<IParseNode>> GetFieldDeserializers() {
107+
return new Dictionary<string, Action<IParseNode>> {
108+
{"@odata.type", n => { OdataType = n.GetStringValue(); } },
109+
{"isChecked", n => { IsChecked = n.GetBoolValue(); } },
110+
{"lastModifiedBy", n => { LastModifiedBy = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } },
111+
{"lastModifiedDateTime", n => { LastModifiedDateTime = n.GetDateTimeOffsetValue(); } },
112+
{"orderHint", n => { OrderHint = n.GetStringValue(); } },
113+
{"title", n => { Title = n.GetStringValue(); } },
114+
};
115+
}
116+
/// <summary>
117+
/// Serializes information the current object
118+
/// </summary>
119+
/// <param name="writer">Serialization writer to use to serialize this model</param>
120+
public void Serialize(ISerializationWriter writer) {
121+
_ = writer ?? throw new ArgumentNullException(nameof(writer));
122+
writer.WriteStringValue("@odata.type", OdataType);
123+
writer.WriteBoolValue("isChecked", IsChecked);
124+
writer.WriteObjectValue("lastModifiedBy", LastModifiedBy);
125+
writer.WriteDateTimeOffsetValue("lastModifiedDateTime", LastModifiedDateTime);
126+
writer.WriteStringValue("orderHint", OrderHint);
127+
writer.WriteStringValue("title", Title);
128+
writer.WriteAdditionalData(AdditionalData);
129+
}
130+
}
Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
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+
using Microsoft.Kiota.Abstractions.Serialization;
6+
using Microsoft.Kiota.Abstractions.Store;
7+
using System;
8+
using System.Collections.Generic;
9+
10+
namespace Microsoft.Graph.Models;
11+
12+
public class PlannerExternalReference: IAdditionalDataHolder, IBackedModel, IParsable
13+
{
14+
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
15+
public IDictionary<string, object> AdditionalData {
16+
get { return BackingStore?.Get<IDictionary<string, object>>("additionalData"); }
17+
set { BackingStore?.Set("additionalData", value); }
18+
}
19+
/// <summary>Stores model information.</summary>
20+
public IBackingStore BackingStore { get; private set; }
21+
/// <summary>The OdataType property</summary>
22+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
23+
#nullable enable
24+
public string? OdataType {
25+
get { return BackingStore?.Get<string?>("@odata.type"); }
26+
set { BackingStore?.Set("@odata.type", value); }
27+
}
28+
#nullable restore
29+
#else
30+
public string OdataType {
31+
get { return BackingStore?.Get<string>("@odata.type"); }
32+
set { BackingStore?.Set("@odata.type", value); }
33+
}
34+
#endif
35+
/// <summary>Used to set the relative order of items in the checklist. The format is defined as outlined here..</summary>
36+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
37+
#nullable enable
38+
public string? Alias {
39+
get { return BackingStore?.Get<string?>("alias"); }
40+
set { BackingStore?.Set("alias", value); }
41+
}
42+
#nullable restore
43+
#else
44+
public string Alias {
45+
get { return BackingStore?.Get<string>("alias"); }
46+
set { BackingStore?.Set("alias", value); }
47+
}
48+
#endif
49+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
50+
#nullable enable
51+
public string? PreviewPriority {
52+
get { return BackingStore?.Get<string?>("previewPriority"); }
53+
set { BackingStore?.Set("previewPriority", value); }
54+
}
55+
#nullable restore
56+
#else
57+
public string PreviewPriority {
58+
get { return BackingStore?.Get<string>("previewPriority"); }
59+
set { BackingStore?.Set("previewPriority", value); }
60+
}
61+
#endif
62+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
63+
#nullable enable
64+
public string? Type {
65+
get { return BackingStore?.Get<string?>("type"); }
66+
set { BackingStore?.Set("type", value); }
67+
}
68+
#nullable restore
69+
#else
70+
public string Type {
71+
get { return BackingStore?.Get<string>("type"); }
72+
set { BackingStore?.Set("type", value); }
73+
}
74+
#endif
75+
/// <summary>Read-only. User ID by which this is last modified.</summary>
76+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
77+
#nullable enable
78+
public IdentitySet? LastModifiedBy {
79+
get { return BackingStore?.Get<IdentitySet>("lastModifiedBy"); }
80+
set { BackingStore?.Set("lastModifiedBy", value); }
81+
}
82+
#nullable restore
83+
#else
84+
public IdentitySet LastModifiedBy {
85+
get { return BackingStore?.Get<IdentitySet>("lastModifiedBy"); }
86+
set { BackingStore?.Set("lastModifiedBy", value); }
87+
}
88+
#endif
89+
/// <summary>Read-only. Date and time at which this is last modified. 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 is 2014-01-01T00:00:00Z.</summary>
90+
public DateTimeOffset? LastModifiedDateTime {
91+
get { return BackingStore?.Get<DateTimeOffset?>("lastModifiedDateTime"); }
92+
set { BackingStore?.Set("lastModifiedDateTime", value); }
93+
}
94+
/// <summary>
95+
/// Instantiates a new auditActivityInitiator and sets the default values.
96+
/// </summary>
97+
public PlannerExternalReference() {
98+
BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
99+
AdditionalData = new Dictionary<string, object>();
100+
OdataType = "#microsoft.graph.plannerExternalReference";
101+
}
102+
/// <summary>
103+
/// Creates a new instance of the appropriate class based on discriminator value
104+
/// </summary>
105+
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
106+
public static PlannerExternalReference CreateFromDiscriminatorValue(IParseNode parseNode) {
107+
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
108+
return new PlannerExternalReference();
109+
}
110+
/// <summary>
111+
/// The deserialization information for the current model
112+
/// </summary>
113+
public IDictionary<string, Action<IParseNode>> GetFieldDeserializers() {
114+
return new Dictionary<string, Action<IParseNode>> {
115+
{"@odata.type", n => { OdataType = n.GetStringValue(); } },
116+
{"type", n => { Type = n.GetStringValue(); } },
117+
{"lastModifiedBy", n => { LastModifiedBy = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } },
118+
{"lastModifiedDateTime", n => { LastModifiedDateTime = n.GetDateTimeOffsetValue(); } },
119+
{"previewPriority", n => { PreviewPriority = n.GetStringValue(); } },
120+
{"alias", n => { Alias = n.GetStringValue(); } },
121+
};
122+
}
123+
/// <summary>
124+
/// Serializes information the current object
125+
/// </summary>
126+
/// <param name="writer">Serialization writer to use to serialize this model</param>
127+
public void Serialize(ISerializationWriter writer) {
128+
_ = writer ?? throw new ArgumentNullException(nameof(writer));
129+
writer.WriteStringValue("@odata.type", OdataType);
130+
writer.WriteStringValue("type", Type);
131+
writer.WriteObjectValue("lastModifiedBy", LastModifiedBy);
132+
writer.WriteDateTimeOffsetValue("lastModifiedDateTime", LastModifiedDateTime);
133+
writer.WriteStringValue("previewPriority", PreviewPriority);
134+
writer.WriteStringValue("alias", Alias);
135+
writer.WriteAdditionalData(AdditionalData);
136+
}
137+
}

src/Microsoft.Graph/Generated/Applications/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public GetMemberGroupsRequestBuilder(Dictionary<string, object> pathParameters,
2828
public GetMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/getMemberGroups", rawUrl) {
2929
}
3030
/// <summary>
31-
/// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive.
31+
/// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API.
3232
/// Find more info here <see href="https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0" />
3333
/// </summary>
3434
/// <param name="body">The request body</param>
@@ -50,7 +50,7 @@ public async Task<GetMemberGroupsResponse> PostAsync(GetMemberGroupsPostRequestB
5050
return await RequestAdapter.SendAsync<GetMemberGroupsResponse>(requestInfo, GetMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
5151
}
5252
/// <summary>
53-
/// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive.
53+
/// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API.
5454
/// </summary>
5555
/// <param name="body">The request body</param>
5656
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>

src/Microsoft.Graph/Generated/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ public async Task DeleteAsync(Action<ConversationMemberItemRequestBuilderDeleteR
4949
await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken);
5050
}
5151
/// <summary>
52-
/// Retrieve a conversationMember from a chat.
53-
/// Find more info here <see href="https://learn.microsoft.com/graph/api/chat-get-members?view=graph-rest-1.0" />
52+
/// Retrieve a conversationMember from a chat or channel.
53+
/// Find more info here <see href="https://learn.microsoft.com/graph/api/conversationmember-get?view=graph-rest-1.0" />
5454
/// </summary>
5555
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
5656
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
@@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action<ConversationMemberIt
114114
return requestInfo;
115115
}
116116
/// <summary>
117-
/// Retrieve a conversationMember from a chat.
117+
/// Retrieve a conversationMember from a chat or channel.
118118
/// </summary>
119119
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
120120
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -184,7 +184,7 @@ public ConversationMemberItemRequestBuilderDeleteRequestConfiguration() {
184184
}
185185
}
186186
/// <summary>
187-
/// Retrieve a conversationMember from a chat.
187+
/// Retrieve a conversationMember from a chat or channel.
188188
/// </summary>
189189
public class ConversationMemberItemRequestBuilderGetQueryParameters {
190190
/// <summary>Expand related entities</summary>

0 commit comments

Comments
 (0)