Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/Microsoft.Graph/Exceptions/GeneratedErrorConstants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@

namespace Microsoft.Graph
{
internal static class GeneratedErrorConstants
public static class GeneratedErrorConstants
{
internal static class Codes
public static class Codes
{
internal static string NotAllowed = "notAllowed";
public static string NotAllowed = "notAllowed";
}

internal static class Messages
public static class Messages
{
internal static string ResponseObjectUsedForUpdate = "Do not use objects returned in a response for updating an object in Microsoft Graph. " +
public static string ResponseObjectUsedForUpdate = "Do not use objects returned in a response for updating an object in Microsoft Graph. " +
"Create a new {0} object and only set the updated properties on it.";
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/Microsoft.Graph/Generated/model/AdministrativeUnit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ namespace Microsoft.Graph
public partial class AdministrativeUnit : DirectoryObject
{

///<summary>
/// The AdministrativeUnit constructor
///</summary>
///<summary>
/// The AdministrativeUnit constructor
///</summary>
public AdministrativeUnit()
{
this.ODataType = "microsoft.graph.administrativeUnit";
Expand Down
7 changes: 4 additions & 3 deletions src/Microsoft.Graph/Generated/model/ScopedRoleMembership.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ namespace Microsoft.Graph
public partial class ScopedRoleMembership : Entity
{

///<summary>
/// The ScopedRoleMembership constructor
///</summary>
///<summary>
/// The ScopedRoleMembership constructor
///</summary>
public ScopedRoleMembership()
{
this.ODataType = "microsoft.graph.scopedRoleMembership";
Expand All @@ -50,6 +50,7 @@ public ScopedRoleMembership()
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "roleMemberInfo", Required = Newtonsoft.Json.Required.Default)]
public Identity RoleMemberInfo { get; set; }

}
}

Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,12 @@ public System.Threading.Tasks.Task<string> GetAsync()
/// </summary>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <returns>The task to await for async call.</returns>
public System.Threading.Tasks.Task<string> GetAsync(
public async System.Threading.Tasks.Task<string> GetAsync(
CancellationToken cancellationToken)
{
this.Method = "GET";
return this.SendAsync<string>(null, cancellationToken);
var response = await this.SendAsync<ODataMethodStringResponse>(null, cancellationToken);
return response.Value;
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public DeviceManagementVerifyWindowsEnrollmentAutoDiscoveryRequest(
/// <summary>
/// Issues the GET request.
/// </summary>
public System.Threading.Tasks.Task<bool> GetAsync()
public System.Threading.Tasks.Task<bool?> GetAsync()
{
return this.GetAsync(CancellationToken.None);
}
Expand All @@ -44,11 +44,12 @@ public System.Threading.Tasks.Task<bool> GetAsync()
/// </summary>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <returns>The task to await for async call.</returns>
public System.Threading.Tasks.Task<bool> GetAsync(
public async System.Threading.Tasks.Task<bool?> GetAsync(
CancellationToken cancellationToken)
{
this.Method = "GET";
return this.SendAsync<bool>(null, cancellationToken);
var response = await this.SendAsync<ODataMethodBooleanResponse>(null, cancellationToken);
return response.Value;
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public GroupLifecyclePolicyAddGroupRequest(
/// <summary>
/// Issues the POST request.
/// </summary>
public System.Threading.Tasks.Task<bool> PostAsync()
public System.Threading.Tasks.Task<bool?> PostAsync()
{
return this.PostAsync(CancellationToken.None);
}
Expand All @@ -51,11 +51,12 @@ public System.Threading.Tasks.Task<bool> PostAsync()
/// </summary>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <returns>The task to await for async call.</returns>
public System.Threading.Tasks.Task<bool> PostAsync(
public async System.Threading.Tasks.Task<bool?> PostAsync(
CancellationToken cancellationToken)
{
this.Method = "POST";
return this.SendAsync<bool>(this.RequestBody, cancellationToken);
var response = await this.SendAsync<ODataMethodBooleanResponse>(this.RequestBody, cancellationToken);
return response.Value;
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public GroupLifecyclePolicyRemoveGroupRequest(
/// <summary>
/// Issues the POST request.
/// </summary>
public System.Threading.Tasks.Task<bool> PostAsync()
public System.Threading.Tasks.Task<bool?> PostAsync()
{
return this.PostAsync(CancellationToken.None);
}
Expand All @@ -51,11 +51,12 @@ public System.Threading.Tasks.Task<bool> PostAsync()
/// </summary>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <returns>The task to await for async call.</returns>
public System.Threading.Tasks.Task<bool> PostAsync(
public async System.Threading.Tasks.Task<bool?> PostAsync(
CancellationToken cancellationToken)
{
this.Method = "POST";
return this.SendAsync<bool>(this.RequestBody, cancellationToken);
var response = await this.SendAsync<ODataMethodBooleanResponse>(this.RequestBody, cancellationToken);
return response.Value;
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ public partial interface IDeviceManagementVerifyWindowsEnrollmentAutoDiscoveryRe
/// <summary>
/// Issues the GET request.
/// </summary>
System.Threading.Tasks.Task<bool> GetAsync();
System.Threading.Tasks.Task<bool?> GetAsync();

/// <summary>
/// Issues the GET request.
/// </summary>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <returns>The task to await for async call.</returns>
System.Threading.Tasks.Task<bool> GetAsync(
System.Threading.Tasks.Task<bool?> GetAsync(
CancellationToken cancellationToken);


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ public partial interface IGroupLifecyclePolicyAddGroupRequest : IBaseRequest
/// <summary>
/// Issues the POST request.
/// </summary>
System.Threading.Tasks.Task<bool> PostAsync();
System.Threading.Tasks.Task<bool?> PostAsync();

/// <summary>
/// Issues the POST request.
/// </summary>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <returns>The task to await for async call.</returns>
System.Threading.Tasks.Task<bool> PostAsync(
System.Threading.Tasks.Task<bool?> PostAsync(
CancellationToken cancellationToken);


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ public partial interface IGroupLifecyclePolicyRemoveGroupRequest : IBaseRequest
/// <summary>
/// Issues the POST request.
/// </summary>
System.Threading.Tasks.Task<bool> PostAsync();
System.Threading.Tasks.Task<bool?> PostAsync();

/// <summary>
/// Issues the POST request.
/// </summary>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <returns>The task to await for async call.</returns>
System.Threading.Tasks.Task<bool> PostAsync(
System.Threading.Tasks.Task<bool?> PostAsync(
CancellationToken cancellationToken);


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ public partial interface IOrganizationSetMobileDeviceManagementAuthorityRequest
/// <summary>
/// Issues the POST request.
/// </summary>
System.Threading.Tasks.Task<Int32> PostAsync();
System.Threading.Tasks.Task<Int32?> PostAsync();

/// <summary>
/// Issues the POST request.
/// </summary>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <returns>The task to await for async call.</returns>
System.Threading.Tasks.Task<Int32> PostAsync(
System.Threading.Tasks.Task<Int32?> PostAsync(
CancellationToken cancellationToken);


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ public partial interface IUserRevokeSignInSessionsRequest : IBaseRequest
/// <summary>
/// Issues the POST request.
/// </summary>
System.Threading.Tasks.Task<bool> PostAsync();
System.Threading.Tasks.Task<bool?> PostAsync();

/// <summary>
/// Issues the POST request.
/// </summary>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <returns>The task to await for async call.</returns>
System.Threading.Tasks.Task<bool> PostAsync(
System.Threading.Tasks.Task<bool?> PostAsync(
CancellationToken cancellationToken);


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ public partial interface IWorkbookChartCountRequest : IBaseRequest
/// <summary>
/// Issues the GET request.
/// </summary>
System.Threading.Tasks.Task<Int32> GetAsync();
System.Threading.Tasks.Task<Int32?> GetAsync();

/// <summary>
/// Issues the GET request.
/// </summary>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <returns>The task to await for async call.</returns>
System.Threading.Tasks.Task<Int32> GetAsync(
System.Threading.Tasks.Task<Int32?> GetAsync(
CancellationToken cancellationToken);


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ public partial interface IWorkbookChartPointCountRequest : IBaseRequest
/// <summary>
/// Issues the GET request.
/// </summary>
System.Threading.Tasks.Task<Int32> GetAsync();
System.Threading.Tasks.Task<Int32?> GetAsync();

/// <summary>
/// Issues the GET request.
/// </summary>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <returns>The task to await for async call.</returns>
System.Threading.Tasks.Task<Int32> GetAsync(
System.Threading.Tasks.Task<Int32?> GetAsync(
CancellationToken cancellationToken);


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ public partial interface IWorkbookChartSeriesCountRequest : IBaseRequest
/// <summary>
/// Issues the GET request.
/// </summary>
System.Threading.Tasks.Task<Int32> GetAsync();
System.Threading.Tasks.Task<Int32?> GetAsync();

/// <summary>
/// Issues the GET request.
/// </summary>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <returns>The task to await for async call.</returns>
System.Threading.Tasks.Task<Int32> GetAsync(
System.Threading.Tasks.Task<Int32?> GetAsync(
CancellationToken cancellationToken);


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ public partial interface IWorkbookRangeBorderCountRequest : IBaseRequest
/// <summary>
/// Issues the GET request.
/// </summary>
System.Threading.Tasks.Task<Int32> GetAsync();
System.Threading.Tasks.Task<Int32?> GetAsync();

/// <summary>
/// Issues the GET request.
/// </summary>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <returns>The task to await for async call.</returns>
System.Threading.Tasks.Task<Int32> GetAsync(
System.Threading.Tasks.Task<Int32?> GetAsync(
CancellationToken cancellationToken);


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ public partial interface IWorkbookTableColumnCountRequest : IBaseRequest
/// <summary>
/// Issues the GET request.
/// </summary>
System.Threading.Tasks.Task<Int32> GetAsync();
System.Threading.Tasks.Task<Int32?> GetAsync();

/// <summary>
/// Issues the GET request.
/// </summary>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <returns>The task to await for async call.</returns>
System.Threading.Tasks.Task<Int32> GetAsync(
System.Threading.Tasks.Task<Int32?> GetAsync(
CancellationToken cancellationToken);


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ public partial interface IWorkbookTableCountRequest : IBaseRequest
/// <summary>
/// Issues the GET request.
/// </summary>
System.Threading.Tasks.Task<Int32> GetAsync();
System.Threading.Tasks.Task<Int32?> GetAsync();

/// <summary>
/// Issues the GET request.
/// </summary>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <returns>The task to await for async call.</returns>
System.Threading.Tasks.Task<Int32> GetAsync(
System.Threading.Tasks.Task<Int32?> GetAsync(
CancellationToken cancellationToken);


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ public partial interface IWorkbookTableRowCountRequest : IBaseRequest
/// <summary>
/// Issues the GET request.
/// </summary>
System.Threading.Tasks.Task<Int32> GetAsync();
System.Threading.Tasks.Task<Int32?> GetAsync();

/// <summary>
/// Issues the GET request.
/// </summary>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <returns>The task to await for async call.</returns>
System.Threading.Tasks.Task<Int32> GetAsync(
System.Threading.Tasks.Task<Int32?> GetAsync(
CancellationToken cancellationToken);


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public OrganizationSetMobileDeviceManagementAuthorityRequest(
/// <summary>
/// Issues the POST request.
/// </summary>
public System.Threading.Tasks.Task<Int32> PostAsync()
public System.Threading.Tasks.Task<Int32?> PostAsync()
{
return this.PostAsync(CancellationToken.None);
}
Expand All @@ -44,11 +44,12 @@ public System.Threading.Tasks.Task<Int32> PostAsync()
/// </summary>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <returns>The task to await for async call.</returns>
public System.Threading.Tasks.Task<Int32> PostAsync(
public async System.Threading.Tasks.Task<Int32?> PostAsync(
CancellationToken cancellationToken)
{
this.Method = "POST";
return this.SendAsync<Int32>(null, cancellationToken);
var response = await this.SendAsync<ODataMethodIntResponse>(null, cancellationToken);
return response.Value;
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public UserRevokeSignInSessionsRequest(
/// <summary>
/// Issues the POST request.
/// </summary>
public System.Threading.Tasks.Task<bool> PostAsync()
public System.Threading.Tasks.Task<bool?> PostAsync()
{
return this.PostAsync(CancellationToken.None);
}
Expand All @@ -44,11 +44,12 @@ public System.Threading.Tasks.Task<bool> PostAsync()
/// </summary>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <returns>The task to await for async call.</returns>
public System.Threading.Tasks.Task<bool> PostAsync(
public async System.Threading.Tasks.Task<bool?> PostAsync(
CancellationToken cancellationToken)
{
this.Method = "POST";
return this.SendAsync<bool>(null, cancellationToken);
var response = await this.SendAsync<ODataMethodBooleanResponse>(null, cancellationToken);
return response.Value;
}


Expand Down
Loading