-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support getDownloadUrl in C# (box/box-codegen#642)
- Loading branch information
1 parent
1108607
commit 98faee5
Showing
19 changed files
with
474 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{ "engineHash": "458e7a8", "specHash": "cf0a265", "version": "1.5.0" } | ||
{ "engineHash": "553616e", "specHash": "cf0a265", "version": "1.5.0" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
Box.Sdk.Gen/Managers/Downloads/GetDownloadFileUrlHeaders.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
using Box.Sdk.Gen; | ||
using System.Collections.Generic; | ||
using System.Collections.ObjectModel; | ||
using Box.Sdk.Gen.Internal; | ||
using Box.Sdk.Gen.Schemas; | ||
|
||
namespace Box.Sdk.Gen.Managers { | ||
public class GetDownloadFileUrlHeaders { | ||
/// <summary> | ||
/// The byte range of the content to download. | ||
/// | ||
/// The format `bytes={start_byte}-{end_byte}` can be used to specify | ||
/// what section of the file to download. | ||
/// </summary> | ||
public string? Range { get; init; } | ||
|
||
/// <summary> | ||
/// The URL, and optional password, for the shared link of this item. | ||
/// | ||
/// This header can be used to access items that have not been | ||
/// explicitly shared with a user. | ||
/// | ||
/// Use the format `shared_link=[link]` or if a password is required then | ||
/// use `shared_link=[link]&shared_link_password=[password]`. | ||
/// | ||
/// This header can be used on the file or folder shared, as well as on any files | ||
/// or folders nested within the item. | ||
/// </summary> | ||
public string? Boxapi { get; init; } | ||
|
||
/// <summary> | ||
/// Extra headers that will be included in the HTTP request. | ||
/// </summary> | ||
public Dictionary<string, string?> ExtraHeaders { get; } | ||
|
||
public GetDownloadFileUrlHeaders(Dictionary<string, string?>? extraHeaders = default) { | ||
ExtraHeaders = extraHeaders ?? new Dictionary<string, string?>() { }; | ||
} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
Box.Sdk.Gen/Managers/Downloads/GetDownloadFileUrlQueryParams.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using Box.Sdk.Gen; | ||
using System.Collections.Generic; | ||
using System.Collections.ObjectModel; | ||
using Box.Sdk.Gen.Internal; | ||
using Box.Sdk.Gen.Schemas; | ||
|
||
namespace Box.Sdk.Gen.Managers { | ||
public class GetDownloadFileUrlQueryParams { | ||
/// <summary> | ||
/// The file version to download | ||
/// </summary> | ||
public string? Version { get; init; } | ||
|
||
/// <summary> | ||
/// An optional access token that can be used to pre-authenticate this request, which means that a download link can be shared with a browser or a third party service without them needing to know how to handle the authentication. | ||
/// When using this parameter, please make sure that the access token is sufficiently scoped down to only allow read access to that file and no other files or folders. | ||
/// </summary> | ||
public string? AccessTokenField { get; init; } | ||
|
||
public GetDownloadFileUrlQueryParams() { | ||
|
||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
Box.Sdk.Gen/Managers/Files/GetFileThumbnailUrlExtension.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System.ComponentModel; | ||
using Box.Sdk.Gen.Internal; | ||
using Box.Sdk.Gen.Schemas; | ||
|
||
namespace Box.Sdk.Gen.Managers { | ||
public enum GetFileThumbnailUrlExtension { | ||
[Description("png")] | ||
Png, | ||
[Description("jpg")] | ||
Jpg | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using Box.Sdk.Gen; | ||
using System; | ||
using System.Collections.ObjectModel; | ||
using System.Collections.Generic; | ||
using System.Text.Json.Serialization; | ||
using Box.Sdk.Gen.Internal; | ||
using Box.Sdk.Gen.Schemas; | ||
|
||
namespace Box.Sdk.Gen.Managers { | ||
public class GetFileThumbnailUrlHeaders { | ||
/// <summary> | ||
/// Extra headers that will be included in the HTTP request. | ||
/// </summary> | ||
public Dictionary<string, string?> ExtraHeaders { get; } | ||
|
||
public GetFileThumbnailUrlHeaders(Dictionary<string, string?>? extraHeaders = default) { | ||
ExtraHeaders = extraHeaders ?? new Dictionary<string, string?>() { }; | ||
} | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
Box.Sdk.Gen/Managers/Files/GetFileThumbnailUrlQueryParams.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
using Box.Sdk.Gen; | ||
using System; | ||
using System.Collections.ObjectModel; | ||
using System.Collections.Generic; | ||
using System.Text.Json.Serialization; | ||
using Box.Sdk.Gen.Internal; | ||
using Box.Sdk.Gen.Schemas; | ||
|
||
namespace Box.Sdk.Gen.Managers { | ||
public class GetFileThumbnailUrlQueryParams { | ||
/// <summary> | ||
/// The minimum height of the thumbnail | ||
/// </summary> | ||
public long? MinHeight { get; init; } | ||
|
||
/// <summary> | ||
/// The minimum width of the thumbnail | ||
/// </summary> | ||
public long? MinWidth { get; init; } | ||
|
||
/// <summary> | ||
/// The maximum height of the thumbnail | ||
/// </summary> | ||
public long? MaxHeight { get; init; } | ||
|
||
/// <summary> | ||
/// The maximum width of the thumbnail | ||
/// </summary> | ||
public long? MaxWidth { get; init; } | ||
|
||
public GetFileThumbnailUrlQueryParams() { | ||
|
||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.