Skip to content

Commit

Permalink
Merge pull request #2091 from microsoftgraph/kiota/v1.0/pipelinebuild…
Browse files Browse the repository at this point in the history
…/123537

Generated  models and request builders
  • Loading branch information
andrueastman authored Aug 24, 2023
2 parents c0d2d0f + ba1dc48 commit 2c2498f
Show file tree
Hide file tree
Showing 148 changed files with 1,497 additions and 529 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,15 @@ and this project does adheres to [Semantic Versioning](https://semver.org/spec/v

## [Unreleased]

## [5.22.0] - 2023-08-16
## [5.24.0] - 2023-08-23

- Adds GraphServiceClient constructor for use with a `TokenCredential` and a `HttpClient`.
- Fix for incorrect discriminator in DirectoryObject type (https://github.com/microsoftgraph/msgraph-sdk-dotnet/issues/2084).
- Fix for incorrect property names when the reserved names matched the type name (https://github.com/microsoft/kiota/pull/3107).
- Fix for missing PlannerCheckListItem and PlannerExternalReference models (https://github.com/microsoftgraph/msgraph-sdk-dotnet/issues/2050).
- Latest metadata updates from 22nd August 2023.

## [5.23.0] - 2023-08-16

- Fix for incorrect property names when the reserved names matched the type name (https://github.com/microsoft/kiota/pull/3107).
- Latest metadata updates from 15th August 2023.
Expand Down
23 changes: 23 additions & 0 deletions src/Microsoft.Graph/Extensions/PlannerAssignment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,25 @@ public string OrderHint {
set { BackingStore?.Set("orderHint", value); }
}
#endif
/// <summary>Read-only. User ID by which this is last modified.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public IdentitySet? AssignedBy {
get { return BackingStore?.Get<IdentitySet>("assignedBy"); }
set { BackingStore?.Set("assignedBy", value); }
}
#nullable restore
#else
public IdentitySet AssignedBy {
get { return BackingStore?.Get<IdentitySet>("assignedBy"); }
set { BackingStore?.Set("assignedBy", value); }
}
#endif

public DateTimeOffset? AssignedDateTime {
get { return BackingStore?.Get<DateTimeOffset?>("assignedDateTime"); }
set { BackingStore?.Set("assignedDateTime", value); }
}
/// <summary>
/// Instantiates a new auditActivityInitiator and sets the default values.
/// </summary>
Expand All @@ -70,6 +89,8 @@ public IDictionary<string, Action<IParseNode>> GetFieldDeserializers() {
return new Dictionary<string, Action<IParseNode>> {
{"@odata.type", n => { OdataType = n.GetStringValue(); } },
{"orderHint", n => { OrderHint = n.GetStringValue(); } },
{"assignedBy", n => { AssignedBy = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } },
{"assignedDateTime", n => { AssignedDateTime = n.GetDateTimeOffsetValue(); } },
};
}
/// <summary>
Expand All @@ -80,6 +101,8 @@ public void Serialize(ISerializationWriter writer) {
_ = writer ?? throw new ArgumentNullException(nameof(writer));
writer.WriteStringValue("@odata.type", OdataType);
writer.WriteStringValue("orderHint", OrderHint);
writer.WriteObjectValue("assignedBy", AssignedBy);
writer.WriteDateTimeOffsetValue("assignedDateTime", AssignedDateTime);
writer.WriteAdditionalData(AdditionalData);
}
}
130 changes: 130 additions & 0 deletions src/Microsoft.Graph/Extensions/PlannerCheckListItem.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------

using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions.Store;
using System;
using System.Collections.Generic;

namespace Microsoft.Graph.Models;

public class PlannerCheckListItem: IAdditionalDataHolder, IBackedModel, IParsable
{
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
public IDictionary<string, object> AdditionalData {
get { return BackingStore?.Get<IDictionary<string, object>>("additionalData"); }
set { BackingStore?.Set("additionalData", value); }
}
/// <summary>Stores model information.</summary>
public IBackingStore BackingStore { get; private set; }
/// <summary>The OdataType property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? OdataType {
get { return BackingStore?.Get<string?>("@odata.type"); }
set { BackingStore?.Set("@odata.type", value); }
}
#nullable restore
#else
public string OdataType {
get { return BackingStore?.Get<string>("@odata.type"); }
set { BackingStore?.Set("@odata.type", value); }
}
#endif
/// <summary>Value is true if the item is checked and false otherwise.</summary>
public bool? IsChecked {
get { return BackingStore?.Get<bool>("isChecked"); }
set { BackingStore?.Set("isChecked", value); }
}
/// <summary>Read-only. User ID by which this is last modified.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public IdentitySet? LastModifiedBy {
get { return BackingStore?.Get<IdentitySet>("lastModifiedBy"); }
set { BackingStore?.Set("lastModifiedBy", value); }
}
#nullable restore
#else
public IdentitySet LastModifiedBy {
get { return BackingStore?.Get<IdentitySet>("lastModifiedBy"); }
set { BackingStore?.Set("lastModifiedBy", value); }
}
#endif
/// <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>
public DateTimeOffset? LastModifiedDateTime {
get { return BackingStore?.Get<DateTimeOffset?>("lastModifiedDateTime"); }
set { BackingStore?.Set("lastModifiedDateTime", value); }
}
/// <summary>Used to set the relative order of items in the checklist. The format is defined as outlined here..</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? OrderHint {
get { return BackingStore?.Get<string?>("orderHint"); }
set { BackingStore?.Set("orderHint", value); }
}
#nullable restore
#else
public string OrderHint {
get { return BackingStore?.Get<string>("orderHint"); }
set { BackingStore?.Set("orderHint", value); }
}
#endif
/// <summary>Title of the checklist item.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Title {
get { return BackingStore?.Get<string?>("title"); }
set { BackingStore?.Set("title", value); }
}
#nullable restore
#else
public string Title {
get { return BackingStore?.Get<string>("title"); }
set { BackingStore?.Set("title", value); }
}
#endif
/// <summary>
/// Instantiates a new auditActivityInitiator and sets the default values.
/// </summary>
public PlannerCheckListItem() {
BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
AdditionalData = new Dictionary<string, object>();
OdataType = "#microsoft.graph.plannerChecklistItem";
}
/// <summary>
/// Creates a new instance of the appropriate class based on discriminator value
/// </summary>
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
public static PlannerCheckListItem CreateFromDiscriminatorValue(IParseNode parseNode) {
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new PlannerCheckListItem();
}
/// <summary>
/// The deserialization information for the current model
/// </summary>
public IDictionary<string, Action<IParseNode>> GetFieldDeserializers() {
return new Dictionary<string, Action<IParseNode>> {
{"@odata.type", n => { OdataType = n.GetStringValue(); } },
{"isChecked", n => { IsChecked = n.GetBoolValue(); } },
{"lastModifiedBy", n => { LastModifiedBy = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } },
{"lastModifiedDateTime", n => { LastModifiedDateTime = n.GetDateTimeOffsetValue(); } },
{"orderHint", n => { OrderHint = n.GetStringValue(); } },
{"title", n => { Title = n.GetStringValue(); } },
};
}
/// <summary>
/// Serializes information the current object
/// </summary>
/// <param name="writer">Serialization writer to use to serialize this model</param>
public void Serialize(ISerializationWriter writer) {
_ = writer ?? throw new ArgumentNullException(nameof(writer));
writer.WriteStringValue("@odata.type", OdataType);
writer.WriteBoolValue("isChecked", IsChecked);
writer.WriteObjectValue("lastModifiedBy", LastModifiedBy);
writer.WriteDateTimeOffsetValue("lastModifiedDateTime", LastModifiedDateTime);
writer.WriteStringValue("orderHint", OrderHint);
writer.WriteStringValue("title", Title);
writer.WriteAdditionalData(AdditionalData);
}
}
137 changes: 137 additions & 0 deletions src/Microsoft.Graph/Extensions/PlannerExternalReference.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------

using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions.Store;
using System;
using System.Collections.Generic;

namespace Microsoft.Graph.Models;

public class PlannerExternalReference: IAdditionalDataHolder, IBackedModel, IParsable
{
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
public IDictionary<string, object> AdditionalData {
get { return BackingStore?.Get<IDictionary<string, object>>("additionalData"); }
set { BackingStore?.Set("additionalData", value); }
}
/// <summary>Stores model information.</summary>
public IBackingStore BackingStore { get; private set; }
/// <summary>The OdataType property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? OdataType {
get { return BackingStore?.Get<string?>("@odata.type"); }
set { BackingStore?.Set("@odata.type", value); }
}
#nullable restore
#else
public string OdataType {
get { return BackingStore?.Get<string>("@odata.type"); }
set { BackingStore?.Set("@odata.type", value); }
}
#endif
/// <summary>Used to set the relative order of items in the checklist. The format is defined as outlined here..</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Alias {
get { return BackingStore?.Get<string?>("alias"); }
set { BackingStore?.Set("alias", value); }
}
#nullable restore
#else
public string Alias {
get { return BackingStore?.Get<string>("alias"); }
set { BackingStore?.Set("alias", value); }
}
#endif
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? PreviewPriority {
get { return BackingStore?.Get<string?>("previewPriority"); }
set { BackingStore?.Set("previewPriority", value); }
}
#nullable restore
#else
public string PreviewPriority {
get { return BackingStore?.Get<string>("previewPriority"); }
set { BackingStore?.Set("previewPriority", value); }
}
#endif
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? Type {
get { return BackingStore?.Get<string?>("type"); }
set { BackingStore?.Set("type", value); }
}
#nullable restore
#else
public string Type {
get { return BackingStore?.Get<string>("type"); }
set { BackingStore?.Set("type", value); }
}
#endif
/// <summary>Read-only. User ID by which this is last modified.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public IdentitySet? LastModifiedBy {
get { return BackingStore?.Get<IdentitySet>("lastModifiedBy"); }
set { BackingStore?.Set("lastModifiedBy", value); }
}
#nullable restore
#else
public IdentitySet LastModifiedBy {
get { return BackingStore?.Get<IdentitySet>("lastModifiedBy"); }
set { BackingStore?.Set("lastModifiedBy", value); }
}
#endif
/// <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>
public DateTimeOffset? LastModifiedDateTime {
get { return BackingStore?.Get<DateTimeOffset?>("lastModifiedDateTime"); }
set { BackingStore?.Set("lastModifiedDateTime", value); }
}
/// <summary>
/// Instantiates a new auditActivityInitiator and sets the default values.
/// </summary>
public PlannerExternalReference() {
BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
AdditionalData = new Dictionary<string, object>();
OdataType = "#microsoft.graph.plannerExternalReference";
}
/// <summary>
/// Creates a new instance of the appropriate class based on discriminator value
/// </summary>
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
public static PlannerExternalReference CreateFromDiscriminatorValue(IParseNode parseNode) {
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
return new PlannerExternalReference();
}
/// <summary>
/// The deserialization information for the current model
/// </summary>
public IDictionary<string, Action<IParseNode>> GetFieldDeserializers() {
return new Dictionary<string, Action<IParseNode>> {
{"@odata.type", n => { OdataType = n.GetStringValue(); } },
{"type", n => { Type = n.GetStringValue(); } },
{"lastModifiedBy", n => { LastModifiedBy = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } },
{"lastModifiedDateTime", n => { LastModifiedDateTime = n.GetDateTimeOffsetValue(); } },
{"previewPriority", n => { PreviewPriority = n.GetStringValue(); } },
{"alias", n => { Alias = n.GetStringValue(); } },
};
}
/// <summary>
/// Serializes information the current object
/// </summary>
/// <param name="writer">Serialization writer to use to serialize this model</param>
public void Serialize(ISerializationWriter writer) {
_ = writer ?? throw new ArgumentNullException(nameof(writer));
writer.WriteStringValue("@odata.type", OdataType);
writer.WriteStringValue("type", Type);
writer.WriteObjectValue("lastModifiedBy", LastModifiedBy);
writer.WriteDateTimeOffsetValue("lastModifiedDateTime", LastModifiedDateTime);
writer.WriteStringValue("previewPriority", PreviewPriority);
writer.WriteStringValue("alias", Alias);
writer.WriteAdditionalData(AdditionalData);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public GetMemberGroupsRequestBuilder(Dictionary<string, object> pathParameters,
public GetMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/getMemberGroups", rawUrl) {
}
/// <summary>
/// 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.
/// 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.
/// Find more info here <see href="https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0" />
/// </summary>
/// <param name="body">The request body</param>
Expand All @@ -50,7 +50,7 @@ public async Task<GetMemberGroupsResponse> PostAsync(GetMemberGroupsPostRequestB
return await RequestAdapter.SendAsync<GetMemberGroupsResponse>(requestInfo, GetMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
}
/// <summary>
/// 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.
/// 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.
/// </summary>
/// <param name="body">The request body</param>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ public async Task DeleteAsync(Action<ConversationMemberItemRequestBuilderDeleteR
await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken);
}
/// <summary>
/// Retrieve a conversationMember from a chat.
/// Find more info here <see href="https://learn.microsoft.com/graph/api/chat-get-members?view=graph-rest-1.0" />
/// Retrieve a conversationMember from a chat or channel.
/// Find more info here <see href="https://learn.microsoft.com/graph/api/conversationmember-get?view=graph-rest-1.0" />
/// </summary>
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
Expand Down Expand Up @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action<ConversationMemberIt
return requestInfo;
}
/// <summary>
/// Retrieve a conversationMember from a chat.
/// Retrieve a conversationMember from a chat or channel.
/// </summary>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
Expand Down Expand Up @@ -184,7 +184,7 @@ public ConversationMemberItemRequestBuilderDeleteRequestConfiguration() {
}
}
/// <summary>
/// Retrieve a conversationMember from a chat.
/// Retrieve a conversationMember from a chat or channel.
/// </summary>
public class ConversationMemberItemRequestBuilderGetQueryParameters {
/// <summary>Expand related entities</summary>
Expand Down
Loading

0 comments on commit 2c2498f

Please sign in to comment.