Skip to content

Commit 6ce7036

Browse files
fix: update descriptions of the user deletion endpoint (box/box-openapi#562) (#1249)
1 parent fd24fc1 commit 6ce7036

File tree

11 files changed

+26
-26
lines changed

11 files changed

+26
-26
lines changed

.codegen.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "engineHash": "8cdcb1b", "specHash": "1715587", "version": "10.1.0" }
1+
{ "engineHash": "7c94f4f", "specHash": "a646ae6", "version": "10.1.0" }

Box.Sdk.Gen.Net/Managers/Users/DeleteUserByIdQueryParams.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ public class DeleteUserByIdQueryParams {
1515
public bool? Notify { get; init; }
1616

1717
/// <summary>
18-
/// Whether the user should be deleted even if this user
19-
/// still own files.
18+
/// Specifies whether to delete the user even if they still own files,
19+
/// were recently active, or recently joined the enterprise from a free account.
2020
/// </summary>
2121
public bool? Force { get; init; }
2222

Box.Sdk.Gen.Net/Managers/Users/IUsersManager.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,9 @@ public interface IUsersManager {
121121
public System.Threading.Tasks.Task<UserFull> UpdateUserByIdAsync(string userId, UpdateUserByIdRequestBody? requestBody = default, UpdateUserByIdQueryParams? queryParams = default, UpdateUserByIdHeaders? headers = default, System.Threading.CancellationToken? cancellationToken = null) => throw new System.NotImplementedException("This method needs to be implemented by the derived class before calling it.");
122122

123123
/// <summary>
124-
/// Deletes a user. By default this will fail if the user
125-
/// still owns any content. Move their owned content first
126-
/// before proceeding, or use the `force` field to delete
124+
/// Deletes a user. By default, this operation fails if the user
125+
/// still owns any content, was recently active, or recently joined the enterprise from a free account.
126+
/// To proceed, move their owned content first, or use the `force` parameter to delete
127127
/// the user and their files.
128128
/// </summary>
129129
/// <param name="userId">

Box.Sdk.Gen.Net/Managers/Users/UsersManager.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,9 @@ public async System.Threading.Tasks.Task<UserFull> UpdateUserByIdAsync(string us
164164
}
165165

166166
/// <summary>
167-
/// Deletes a user. By default this will fail if the user
168-
/// still owns any content. Move their owned content first
169-
/// before proceeding, or use the `force` field to delete
167+
/// Deletes a user. By default, this operation fails if the user
168+
/// still owns any content, was recently active, or recently joined the enterprise from a free account.
169+
/// To proceed, move their owned content first, or use the `force` parameter to delete
170170
/// the user and their files.
171171
/// </summary>
172172
/// <param name="userId">

Box.Sdk.Gen.NetFramework/Managers/Users/DeleteUserByIdQueryParams.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ public class DeleteUserByIdQueryParams {
1515
public bool? Notify { get; set; }
1616

1717
/// <summary>
18-
/// Whether the user should be deleted even if this user
19-
/// still own files.
18+
/// Specifies whether to delete the user even if they still own files,
19+
/// were recently active, or recently joined the enterprise from a free account.
2020
/// </summary>
2121
public bool? Force { get; set; }
2222

Box.Sdk.Gen.NetFramework/Managers/Users/UsersManager.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,9 @@ public async System.Threading.Tasks.Task<UserFull> UpdateUserByIdAsync(string us
164164
}
165165

166166
/// <summary>
167-
/// Deletes a user. By default this will fail if the user
168-
/// still owns any content. Move their owned content first
169-
/// before proceeding, or use the `force` field to delete
167+
/// Deletes a user. By default, this operation fails if the user
168+
/// still owns any content, was recently active, or recently joined the enterprise from a free account.
169+
/// To proceed, move their owned content first, or use the `force` parameter to delete
170170
/// the user and their files.
171171
/// </summary>
172172
/// <param name="userId">

Box.Sdk.Gen.NetFramework/Networking/BoxNetworkClient/BoxNetworkClient.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ async Task<FetchResponse> INetworkClient.FetchAsync(FetchOptions options)
5252

5353
var retryAttempt = 1;
5454
var networkExceptionRetryAttempt = 1;
55-
var cancellationToken = options.CancellationToken == default
56-
? options.CancellationToken : default;
55+
var cancellationToken = options.CancellationToken != default
56+
? options.CancellationToken : CancellationToken.None;
5757

5858
bool isStreamResponse = options.ResponseFormat == ResponseFormat.Binary;
5959

Box.Sdk.Gen.NetStandard/Managers/Users/DeleteUserByIdQueryParams.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ public class DeleteUserByIdQueryParams {
1515
public bool? Notify { get; set; }
1616

1717
/// <summary>
18-
/// Whether the user should be deleted even if this user
19-
/// still own files.
18+
/// Specifies whether to delete the user even if they still own files,
19+
/// were recently active, or recently joined the enterprise from a free account.
2020
/// </summary>
2121
public bool? Force { get; set; }
2222

Box.Sdk.Gen.NetStandard/Managers/Users/UsersManager.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,9 @@ public async System.Threading.Tasks.Task<UserFull> UpdateUserByIdAsync(string us
164164
}
165165

166166
/// <summary>
167-
/// Deletes a user. By default this will fail if the user
168-
/// still owns any content. Move their owned content first
169-
/// before proceeding, or use the `force` field to delete
167+
/// Deletes a user. By default, this operation fails if the user
168+
/// still owns any content, was recently active, or recently joined the enterprise from a free account.
169+
/// To proceed, move their owned content first, or use the `force` parameter to delete
170170
/// the user and their files.
171171
/// </summary>
172172
/// <param name="userId">

Box.Sdk.Gen.NetStandard/Networking/BoxNetworkClient/BoxNetworkClient.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ async Task<FetchResponse> INetworkClient.FetchAsync(FetchOptions options)
5252

5353
var retryAttempt = 1;
5454
var networkExceptionRetryAttempt = 1;
55-
var cancellationToken = options.CancellationToken == default
56-
? options.CancellationToken : default;
55+
var cancellationToken = options.CancellationToken != default
56+
? options.CancellationToken : CancellationToken.None;
5757

5858
bool isStreamResponse = options.ResponseFormat == ResponseFormat.Binary;
5959

0 commit comments

Comments
 (0)