Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Support chunked upload in Java (box/box-codegen#640) #358

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion .codegen.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "engineHash": "ab51050", "specHash": "4ccce13", "version": "1.5.0" }
{ "engineHash": "622e4e3", "specHash": "139b256", "version": "1.5.0" }
2 changes: 1 addition & 1 deletion Box.Sdk.Gen/Managers/ChunkedUploads/PartAccumulator.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System;
using System.Collections.ObjectModel;
using System.Collections.Generic;
using Box.Sdk.Gen.Schemas;
using Box.Sdk.Gen.Internal;
using Box.Sdk.Gen.Schemas;

namespace Box.Sdk.Gen.Managers {
internal class PartAccumulator {
Expand Down
46 changes: 23 additions & 23 deletions Box.Sdk.Gen/Schemas/IntegrationMapping/IntegrationMapping.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,25 @@

namespace Box.Sdk.Gen.Schemas {
public class IntegrationMapping : IntegrationMappingBase, ISerializable {
/// <summary>
/// The Box folder, to which the object from the
/// partner app domain (referenced in `partner_item_id`) is mapped
/// </summary>
[JsonPropertyName("box_item")]
public FolderMini BoxItem { get; }

/// <summary>
/// When the integration mapping object was created
/// </summary>
[JsonPropertyName("created_at")]
public System.DateTimeOffset? CreatedAt { get; init; }

/// <summary>
/// When the integration mapping object was last modified
/// </summary>
[JsonPropertyName("modified_at")]
public System.DateTimeOffset? ModifiedAt { get; init; }

/// <summary>
/// Identifies the Box partner app,
/// with which the mapping is associated.
Expand Down Expand Up @@ -47,34 +66,15 @@ public class IntegrationMapping : IntegrationMappingBase, ISerializable {
[JsonPropertyName("partner_item")]
public IntegrationMappingPartnerItemSlackUnion PartnerItem { get; }

/// <summary>
/// The Box folder, to which the object from the
/// partner app domain (referenced in `partner_item_id`) is mapped
/// </summary>
[JsonPropertyName("box_item")]
public FolderMini BoxItem { get; }

/// <summary>
/// When the integration mapping object was created
/// </summary>
[JsonPropertyName("created_at")]
public System.DateTimeOffset? CreatedAt { get; init; }

/// <summary>
/// When the integration mapping object was last modified
/// </summary>
[JsonPropertyName("modified_at")]
public System.DateTimeOffset? ModifiedAt { get; init; }

public IntegrationMapping(string id, IntegrationMappingPartnerItemSlackUnion partnerItem, FolderMini boxItem, IntegrationMappingBaseTypeField type = IntegrationMappingBaseTypeField.IntegrationMapping) : base(id, type) {
PartnerItem = partnerItem;
public IntegrationMapping(string id, FolderMini boxItem, IntegrationMappingPartnerItemSlackUnion partnerItem, IntegrationMappingBaseTypeField type = IntegrationMappingBaseTypeField.IntegrationMapping) : base(id, type) {
BoxItem = boxItem;
PartnerItem = partnerItem;
}

[JsonConstructorAttribute]
internal IntegrationMapping(string id, IntegrationMappingPartnerItemSlackUnion partnerItem, FolderMini boxItem, StringEnum<IntegrationMappingBaseTypeField> type) : base(id, type ?? new StringEnum<IntegrationMappingBaseTypeField>(IntegrationMappingBaseTypeField.IntegrationMapping)) {
PartnerItem = partnerItem;
internal IntegrationMapping(string id, FolderMini boxItem, IntegrationMappingPartnerItemSlackUnion partnerItem, StringEnum<IntegrationMappingBaseTypeField> type) : base(id, type ?? new StringEnum<IntegrationMappingBaseTypeField>(IntegrationMappingBaseTypeField.IntegrationMapping)) {
BoxItem = boxItem;
PartnerItem = partnerItem;
}
internal new string? RawJson { get; set; } = default;

Expand Down
Loading