Skip to content

Commit

Permalink
Add support for copyInstanceOnItemCopy field for metadata templates (
Browse files Browse the repository at this point in the history
  • Loading branch information
sujaygarlanka committed Oct 1, 2020
1 parent 87c2274 commit be3cc30
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
9 changes: 8 additions & 1 deletion Box.V2/Models/BoxMetadataTemplate.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Newtonsoft.Json;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System;
using System.Collections.Generic;
Expand All @@ -15,6 +15,7 @@ public class BoxMetadataTemplate : BoxEntity
public const string FieldDisplayName = "displayName";
public const string FieldFields = "fields";
public const string FieldHidden = "hidden";
public const string FieldCopyInstanceOnItemCopy = "copyInstanceOnItemCopy";

/// <summary>
/// A unique identifier for the template. The identifier must be unique across the scope of the enterprise to which the metadata template is being applied to. Defaults to a string derived from the displayName if no value is provided.
Expand Down Expand Up @@ -45,6 +46,12 @@ public class BoxMetadataTemplate : BoxEntity
/// </summary>
[JsonProperty(PropertyName = FieldHidden)]
public bool? Hidden { get; set; }

/// <summary>
/// Whether the metadata template instance will be copied when the Box item is copied.
/// </summary>
[JsonProperty(PropertyName = FieldCopyInstanceOnItemCopy)]
public bool? CopyInstanceOnItemCopy { get; set; }
}

/// <summary>
Expand Down
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
# Changelog

## Next Release
- Add support for `copyInstanceOnItemCopy` field for metadata templates
- Deprecate one of the overloaded `ExecuteMetadataQueryAsync()` methods

## 3.24.0 [2020-07-21]
- Add path parameter sanitization
- Add support for the classification field for Files and Folders
- Fix bug with notification email field deserializing for `BoxUser`
- Add `fields` parameter for metadata query
- Add ability to set a request timeout for `FoldersManager.UpdateInformationAsync()` and `UsersManager.MoverUserFolderAsync`
- Add ability to set a request timeout for `FoldersManager.UpdateInformationAsync()` and `UsersManager.MoverUserFolderAsync()`

## 3.23.0 [2020-05-12]
- Add ability to get and set a notification email address for a user
Expand Down

0 comments on commit be3cc30

Please sign in to comment.