Skip to content

Commit

Permalink
Fix method primitive return type (#800)
Browse files Browse the repository at this point in the history
* Fix methods that return primitives

	modified:   src/Microsoft.Graph/Generated/model/AdministrativeUnit.cs
	modified:   src/Microsoft.Graph/Generated/model/ScopedRoleMembership.cs
	modified:   src/Microsoft.Graph/Generated/requests/ApplePushNotificationCertificateDownloadApplePushNotificationCertificateSigningRequestRequest.cs
	modified:   src/Microsoft.Graph/Generated/requests/DeviceManagementVerifyWindowsEnrollmentAutoDiscoveryRequest.cs
	modified:   src/Microsoft.Graph/Generated/requests/GroupLifecyclePolicyAddGroupRequest.cs
	modified:   src/Microsoft.Graph/Generated/requests/GroupLifecyclePolicyRemoveGroupRequest.cs
	modified:   src/Microsoft.Graph/Generated/requests/OrganizationSetMobileDeviceManagementAuthorityRequest.cs
	modified:   src/Microsoft.Graph/Generated/requests/UserRevokeSignInSessionsRequest.cs
	modified:   src/Microsoft.Graph/Generated/requests/WorkbookChartCountRequest.cs
	modified:   src/Microsoft.Graph/Generated/requests/WorkbookChartImageRequest.cs
	modified:   src/Microsoft.Graph/Generated/requests/WorkbookChartPointCountRequest.cs
	modified:   src/Microsoft.Graph/Generated/requests/WorkbookChartSeriesCountRequest.cs
	modified:   src/Microsoft.Graph/Generated/requests/WorkbookRangeBorderCountRequest.cs
	modified:   src/Microsoft.Graph/Generated/requests/WorkbookTableColumnCountRequest.cs
	modified:   src/Microsoft.Graph/Generated/requests/WorkbookTableCountRequest.cs
	modified:   src/Microsoft.Graph/Generated/requests/WorkbookTableRowCountRequest.cs
  • Loading branch information
MIchaelMainer committed Oct 7, 2020
1 parent 6fb8f46 commit efc7a4c
Show file tree
Hide file tree
Showing 28 changed files with 85 additions and 70 deletions.
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 partial class 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 partial class GroupLifecyclePolicyAddGroupRequest : BaseRequest, IGroupLi
/// <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 partial class GroupLifecyclePolicyRemoveGroupRequest : BaseRequest, IGrou
/// <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 partial class OrganizationSetMobileDeviceManagementAuthorityRequest : Bas
/// <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 partial class UserRevokeSignInSessionsRequest : BaseRequest, IUserRevokeS
/// <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
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public partial class WorkbookChartCountRequest : BaseRequest, IWorkbookChartCoun
/// <summary>
/// Issues the GET request.
/// </summary>
public System.Threading.Tasks.Task<Int32> GetAsync()
public System.Threading.Tasks.Task<Int32?> GetAsync()
{
return this.GetAsync(CancellationToken.None);
}
Expand All @@ -44,11 +44,12 @@ public System.Threading.Tasks.Task<Int32> 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<Int32> GetAsync(
public async System.Threading.Tasks.Task<Int32?> GetAsync(
CancellationToken cancellationToken)
{
this.Method = "GET";
return this.SendAsync<Int32>(null, cancellationToken);
var response = await this.SendAsync<ODataMethodIntResponse>(null, cancellationToken);
return response.Value;
}


Expand Down

0 comments on commit efc7a4c

Please sign in to comment.