Skip to content

Commit

Permalink
Merge pull request #1871 from microsoftgraph/dev
Browse files Browse the repository at this point in the history
Release 5.9.0
  • Loading branch information
andrueastman authored May 4, 2023
2 parents 2c0c959 + d2e494d commit 465d5e2
Show file tree
Hide file tree
Showing 314 changed files with 29,125 additions and 527 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ and this project does adheres to [Semantic Versioning](https://semver.org/spec/v

## [Unreleased]

## [5.9.0] - 2023-05-03

- Latest metadata updates from 2nd May 2023
- Fixes missing printJob paths in metadata (https://github.com/microsoftgraph/msgraph-sdk-dotnet/issues/1823)
- Fixes incorrect path for methods in security namespace (https://github.com/microsoftgraph/msgraph-sdk-dotnet/issues/1823, https://github.com/microsoftgraph/msgraph-sdk-dotnet/issues/1691)
- Fixes incorrect paths for methods in call records namespace (https://github.com/microsoftgraph/msgraph-sdk-dotnet/issues/1787)

## [5.8.0] - 2023-04-27

- Latest metadata updates from 25th April 2023
Expand Down
13 changes: 13 additions & 0 deletions docs/upgrade-to-v5.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,19 @@ var groupDriveId = driveItem.Id;
var children = await graphServiceClient.Drives[groupDriveId].Items["itemId"].Children.GetAsync();
```

#### Upload a small file with conflictBehavior set

To upload a small file (remember the size should not exceed 4mb according to the [docs](https://learn.microsoft.com/en-us/graph/api/driveitem-put-content?view=graph-rest-1.0&tabs=http)) and at the same time, set the `conflictBehavior` [instance attribute](https://learn.microsoft.com/en-us/graph/api/resources/driveitem?view=graph-rest-1.0#instance-attributes) you'll need to do it this way:

```cs
var requestInformation = graphClient.Drives[drive.Id.ToString()].Root.ItemWithPath("MediaMeta.xml").Content.ToPutRequestInformation(file);
requestInformation.URI = new Uri(requestInformation.URI.OriginalString +"?@microsoft.graph.conflictBehavior=rename");

var result = await graphClient.RequestAdapter.SendAsync<DriveItem>(requestInformation, DriveItem.CreateFromDiscriminatorValue);
```

To [upload large files](https://learn.microsoft.com/en-us/graph/sdks/large-file-upload?view=graph-rest-1.0&tabs=csharp#upload-large-file-to-onedrive), the method is slightly different.

## New Features

### Backing Store
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Microsoft.Graph.Communications.CallRecords.CallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime;
using Microsoft.Graph.Communications.CallRecords.CallRecordsGetPstnCallsWithFromDateTimeWithToDateTime;
using Microsoft.Graph.Communications.CallRecords.Count;
using Microsoft.Graph.Communications.CallRecords.Item;
using Microsoft.Graph.Communications.CallRecords.MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime;
using Microsoft.Graph.Communications.CallRecords.MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime;
using Microsoft.Graph.Models.CallRecords;
using Microsoft.Graph.Models.ODataErrors;
using Microsoft.Kiota.Abstractions.Serialization;
Expand All @@ -28,26 +28,6 @@ public CallRecordItemRequestBuilder this[string position] { get {
return new CallRecordItemRequestBuilder(urlTplParams, RequestAdapter);
} }
/// <summary>
/// Provides operations to call the getDirectRoutingCalls method.
/// </summary>
/// <param name="fromDateTime">Usage: fromDateTime={fromDateTime}</param>
/// <param name="toDateTime">Usage: toDateTime={toDateTime}</param>
public CallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder CallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime(DateTimeOffset? fromDateTime, DateTimeOffset? toDateTime) {
_ = fromDateTime ?? throw new ArgumentNullException(nameof(fromDateTime));
_ = toDateTime ?? throw new ArgumentNullException(nameof(toDateTime));
return new CallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder(PathParameters, RequestAdapter, fromDateTime, toDateTime);
}
/// <summary>
/// Provides operations to call the getPstnCalls method.
/// </summary>
/// <param name="fromDateTime">Usage: fromDateTime={fromDateTime}</param>
/// <param name="toDateTime">Usage: toDateTime={toDateTime}</param>
public CallRecordsGetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilder CallRecordsGetPstnCallsWithFromDateTimeWithToDateTime(DateTimeOffset? fromDateTime, DateTimeOffset? toDateTime) {
_ = fromDateTime ?? throw new ArgumentNullException(nameof(fromDateTime));
_ = toDateTime ?? throw new ArgumentNullException(nameof(toDateTime));
return new CallRecordsGetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilder(PathParameters, RequestAdapter, fromDateTime, toDateTime);
}
/// <summary>
/// Instantiates a new CallRecordsRequestBuilder and sets the default values.
/// </summary>
/// <param name="pathParameters">Path parameters for the request</param>
Expand Down Expand Up @@ -81,6 +61,26 @@ public async Task<CallRecordCollectionResponse> GetAsync(Action<CallRecordsReque
return await RequestAdapter.SendAsync<CallRecordCollectionResponse>(requestInfo, CallRecordCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
}
/// <summary>
/// Provides operations to call the getDirectRoutingCalls method.
/// </summary>
/// <param name="fromDateTime">Usage: fromDateTime={fromDateTime}</param>
/// <param name="toDateTime">Usage: toDateTime={toDateTime}</param>
public MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime(DateTimeOffset? fromDateTime, DateTimeOffset? toDateTime) {
_ = fromDateTime ?? throw new ArgumentNullException(nameof(fromDateTime));
_ = toDateTime ?? throw new ArgumentNullException(nameof(toDateTime));
return new MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder(PathParameters, RequestAdapter, fromDateTime, toDateTime);
}
/// <summary>
/// Provides operations to call the getPstnCalls method.
/// </summary>
/// <param name="fromDateTime">Usage: fromDateTime={fromDateTime}</param>
/// <param name="toDateTime">Usage: toDateTime={toDateTime}</param>
public MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilder MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime(DateTimeOffset? fromDateTime, DateTimeOffset? toDateTime) {
_ = fromDateTime ?? throw new ArgumentNullException(nameof(fromDateTime));
_ = toDateTime ?? throw new ArgumentNullException(nameof(toDateTime));
return new MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilder(PathParameters, RequestAdapter, fromDateTime, toDateTime);
}
/// <summary>
/// Create new navigation property to callRecords for communications
/// </summary>
/// <param name="body">The request body</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.IO;
using System.Linq;
using System;
namespace Microsoft.Graph.Communications.CallRecords.CallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime {
namespace Microsoft.Graph.Communications.CallRecords.MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime {
public class GetDirectRoutingCallsWithFromDateTimeWithToDateTimeResponse : BaseCollectionPaginationCountResponse, IParsable {
/// <summary>The value property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,28 @@
using System.Threading.Tasks;
using System.Threading;
using System;
namespace Microsoft.Graph.Communications.CallRecords.CallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime {
namespace Microsoft.Graph.Communications.CallRecords.MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime {
/// <summary>
/// Provides operations to call the getDirectRoutingCalls method.
/// </summary>
public class CallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder : BaseRequestBuilder {
public class MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder : BaseRequestBuilder {
/// <summary>
/// Instantiates a new CallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder and sets the default values.
/// Instantiates a new MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder and sets the default values.
/// </summary>
/// <param name="fromDateTime">Usage: fromDateTime={fromDateTime}</param>
/// <param name="pathParameters">Path parameters for the request</param>
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
/// <param name="toDateTime">Usage: toDateTime={toDateTime}</param>
public CallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter, DateTimeOffset? fromDateTime = default, DateTimeOffset? toDateTime = default) : base(requestAdapter, "{+baseurl}/communications/callRecords/callRecords.getDirectRoutingCalls(fromDateTime={fromDateTime},toDateTime={toDateTime}){?%24top,%24skip,%24search,%24filter,%24count}", pathParameters) {
public MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter, DateTimeOffset? fromDateTime = default, DateTimeOffset? toDateTime = default) : base(requestAdapter, "{+baseurl}/communications/callRecords/microsoft.graph.callRecords.getDirectRoutingCalls(fromDateTime={fromDateTime},toDateTime={toDateTime}){?%24top,%24skip,%24search,%24filter,%24count}", pathParameters) {
if (fromDateTime is not null) PathParameters.Add("fromDateTime", fromDateTime);
if (toDateTime is not null) PathParameters.Add("toDateTime", toDateTime);
}
/// <summary>
/// Instantiates a new CallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder and sets the default values.
/// Instantiates a new MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder and sets the default values.
/// </summary>
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
public CallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/callRecords/callRecords.getDirectRoutingCalls(fromDateTime={fromDateTime},toDateTime={toDateTime}){?%24top,%24skip,%24search,%24filter,%24count}", rawUrl) {
public MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/callRecords/microsoft.graph.callRecords.getDirectRoutingCalls(fromDateTime={fromDateTime},toDateTime={toDateTime}){?%24top,%24skip,%24search,%24filter,%24count}", rawUrl) {
}
/// <summary>
/// Invoke function getDirectRoutingCalls
Expand All @@ -37,10 +37,10 @@ public CallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuil
/// <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
#nullable enable
public async Task<GetDirectRoutingCallsWithFromDateTimeWithToDateTimeResponse?> GetAsync(Action<CallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilderGetRequestConfiguration>? requestConfiguration = default, CancellationToken cancellationToken = default) {
public async Task<GetDirectRoutingCallsWithFromDateTimeWithToDateTimeResponse?> GetAsync(Action<MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilderGetRequestConfiguration>? requestConfiguration = default, CancellationToken cancellationToken = default) {
#nullable restore
#else
public async Task<GetDirectRoutingCallsWithFromDateTimeWithToDateTimeResponse> GetAsync(Action<CallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilderGetRequestConfiguration> requestConfiguration = default, CancellationToken cancellationToken = default) {
public async Task<GetDirectRoutingCallsWithFromDateTimeWithToDateTimeResponse> GetAsync(Action<MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilderGetRequestConfiguration> requestConfiguration = default, CancellationToken cancellationToken = default) {
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>> {
Expand All @@ -55,10 +55,10 @@ public async Task<GetDirectRoutingCallsWithFromDateTimeWithToDateTimeResponse> G
/// <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
#nullable enable
public RequestInformation ToGetRequestInformation(Action<CallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilderGetRequestConfiguration>? requestConfiguration = default) {
public RequestInformation ToGetRequestInformation(Action<MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilderGetRequestConfiguration>? requestConfiguration = default) {
#nullable restore
#else
public RequestInformation ToGetRequestInformation(Action<CallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilderGetRequestConfiguration> requestConfiguration = default) {
public RequestInformation ToGetRequestInformation(Action<MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilderGetRequestConfiguration> requestConfiguration = default) {
#endif
var requestInfo = new RequestInformation {
HttpMethod = Method.GET,
Expand All @@ -67,7 +67,7 @@ public RequestInformation ToGetRequestInformation(Action<CallRecordsGetDirectRou
};
requestInfo.Headers.Add("Accept", "application/json");
if (requestConfiguration != null) {
var requestConfig = new CallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilderGetRequestConfiguration();
var requestConfig = new MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilderGetRequestConfiguration();
requestConfiguration.Invoke(requestConfig);
requestInfo.AddQueryParameters(requestConfig.QueryParameters);
requestInfo.AddRequestOptions(requestConfig.Options);
Expand All @@ -78,7 +78,7 @@ public RequestInformation ToGetRequestInformation(Action<CallRecordsGetDirectRou
/// <summary>
/// Invoke function getDirectRoutingCalls
/// </summary>
public class CallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilderGetQueryParameters {
public class MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilderGetQueryParameters {
/// <summary>Include count of items</summary>
[QueryParameter("%24count")]
public bool? Count { get; set; }
Expand Down Expand Up @@ -112,17 +112,17 @@ public class CallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeReque
/// <summary>
/// Configuration for the request such as headers, query parameters, and middleware options.
/// </summary>
public class CallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilderGetRequestConfiguration {
public class MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilderGetRequestConfiguration {
/// <summary>Request headers</summary>
public RequestHeaders Headers { get; set; }
/// <summary>Request options</summary>
public IList<IRequestOption> Options { get; set; }
/// <summary>Request query parameters</summary>
public CallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilderGetQueryParameters();
public MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilderGetQueryParameters();
/// <summary>
/// Instantiates a new callRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilderGetRequestConfiguration and sets the default values.
/// Instantiates a new microsoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilderGetRequestConfiguration and sets the default values.
/// </summary>
public CallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilderGetRequestConfiguration() {
public MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilderGetRequestConfiguration() {
Options = new List<IRequestOption>();
Headers = new RequestHeaders();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.IO;
using System.Linq;
using System;
namespace Microsoft.Graph.Communications.CallRecords.CallRecordsGetPstnCallsWithFromDateTimeWithToDateTime {
namespace Microsoft.Graph.Communications.CallRecords.MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime {
public class GetPstnCallsWithFromDateTimeWithToDateTimeResponse : BaseCollectionPaginationCountResponse, IParsable {
/// <summary>The value property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
Expand Down
Loading

0 comments on commit 465d5e2

Please sign in to comment.