Skip to content

Commit e105efa

Browse files
authored
Automated Spec Update (#291)
eec4b43685b7af842d320efaaa86db27232cb465 Change Notes: file_properties Namespace - Update Comments file_tagging Namespace - Update Comments files Namespace - Update Metadata struct to include preview_url - Update Comments team_log_generated Namespace - Add DropboxPasswordsPolicyChangedDetails, DropboxPasswordsPolicyChangedType structs - Add DropboxPasswordsPolicy unions Co-authored-by: DropboxBot <[email protected]>
1 parent ce87371 commit e105efa

File tree

14 files changed

+1149
-14
lines changed

14 files changed

+1149
-14
lines changed

dropbox-sdk-dotnet/Dropbox.Api/Generated/FileProperties/LookupError.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -574,8 +574,8 @@ protected override NotFolder Create()
574574
}
575575

576576
/// <summary>
577-
/// <para>The file cannot be transferred because the content is restricted. For
578-
/// example, sometimes there are legal restrictions due to copyright claims.</para>
577+
/// <para>The file cannot be transferred because the content is restricted. For
578+
/// example, we might restrict a file due to legal requirements.</para>
579579
/// </summary>
580580
public sealed class RestrictedContent : LookupError
581581
{

dropbox-sdk-dotnet/Dropbox.Api/Generated/Files/DeletedMetadata.cs

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,13 @@ public class DeletedMetadata : Metadata
4949
/// <param name="parentSharedFolderId">Please use <see
5050
/// cref="Dropbox.Api.Files.FileSharingInfo.ParentSharedFolderId" /> or <see
5151
/// cref="Dropbox.Api.Files.FolderSharingInfo.ParentSharedFolderId" /> instead.</param>
52+
/// <param name="previewUrl">The preview URL of the file.</param>
5253
public DeletedMetadata(string name,
5354
string pathLower = null,
5455
string pathDisplay = null,
55-
string parentSharedFolderId = null)
56-
: base(name, pathLower, pathDisplay, parentSharedFolderId)
56+
string parentSharedFolderId = null,
57+
string previewUrl = null)
58+
: base(name, pathLower, pathDisplay, parentSharedFolderId, previewUrl)
5759
{
5860
}
5961

@@ -95,6 +97,10 @@ public override void EncodeFields(DeletedMetadata value, enc.IJsonWriter writer)
9597
{
9698
WriteProperty("parent_shared_folder_id", value.ParentSharedFolderId, writer, enc.StringEncoder.Instance);
9799
}
100+
if (value.PreviewUrl != null)
101+
{
102+
WriteProperty("preview_url", value.PreviewUrl, writer, enc.StringEncoder.Instance);
103+
}
98104
}
99105
}
100106

@@ -139,6 +145,9 @@ protected override void SetField(DeletedMetadata value, string fieldName, enc.IJ
139145
case "parent_shared_folder_id":
140146
value.ParentSharedFolderId = enc.StringDecoder.Instance.Decode(reader);
141147
break;
148+
case "preview_url":
149+
value.PreviewUrl = enc.StringDecoder.Instance.Decode(reader);
150+
break;
142151
default:
143152
reader.Skip();
144153
break;

dropbox-sdk-dotnet/Dropbox.Api/Generated/Files/FileMetadata.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ public class FileMetadata : Metadata
6262
/// <param name="parentSharedFolderId">Please use <see
6363
/// cref="Dropbox.Api.Files.FileSharingInfo.ParentSharedFolderId" /> or <see
6464
/// cref="Dropbox.Api.Files.FolderSharingInfo.ParentSharedFolderId" /> instead.</param>
65+
/// <param name="previewUrl">The preview URL of the file.</param>
6566
/// <param name="mediaInfo">Additional information if the file is a photo or video.
6667
/// This field will not be set on entries returned by <see
6768
/// cref="Dropbox.Api.Files.Routes.FilesAppRoutes.ListFolderAsync" /> <see
@@ -102,6 +103,7 @@ public FileMetadata(string name,
102103
string pathLower = null,
103104
string pathDisplay = null,
104105
string parentSharedFolderId = null,
106+
string previewUrl = null,
105107
MediaInfo mediaInfo = null,
106108
SymlinkInfo symlinkInfo = null,
107109
FileSharingInfo sharingInfo = null,
@@ -111,7 +113,7 @@ public FileMetadata(string name,
111113
bool? hasExplicitSharedMembers = null,
112114
string contentHash = null,
113115
FileLockMetadata fileLockInfo = null)
114-
: base(name, pathLower, pathDisplay, parentSharedFolderId)
116+
: base(name, pathLower, pathDisplay, parentSharedFolderId, previewUrl)
115117
{
116118
if (id == null)
117119
{
@@ -303,6 +305,10 @@ public override void EncodeFields(FileMetadata value, enc.IJsonWriter writer)
303305
{
304306
WriteProperty("parent_shared_folder_id", value.ParentSharedFolderId, writer, enc.StringEncoder.Instance);
305307
}
308+
if (value.PreviewUrl != null)
309+
{
310+
WriteProperty("preview_url", value.PreviewUrl, writer, enc.StringEncoder.Instance);
311+
}
306312
if (value.MediaInfo != null)
307313
{
308314
WriteProperty("media_info", value.MediaInfo, writer, global::Dropbox.Api.Files.MediaInfo.Encoder);
@@ -395,6 +401,9 @@ protected override void SetField(FileMetadata value, string fieldName, enc.IJson
395401
case "parent_shared_folder_id":
396402
value.ParentSharedFolderId = enc.StringDecoder.Instance.Decode(reader);
397403
break;
404+
case "preview_url":
405+
value.PreviewUrl = enc.StringDecoder.Instance.Decode(reader);
406+
break;
398407
case "media_info":
399408
value.MediaInfo = global::Dropbox.Api.Files.MediaInfo.Decoder.Decode(reader);
400409
break;

dropbox-sdk-dotnet/Dropbox.Api/Generated/Files/FilesUserRoutes.cs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6137,8 +6137,9 @@ public SearchV2Result EndSearchContinueV2(sys.IAsyncResult asyncResult)
61376137
}
61386138

61396139
/// <summary>
6140-
/// <para>Add a tag to an item. A tag is a string. No more than 20 tags can be added to
6141-
/// a given item.</para>
6140+
/// <para>Add a tag to an item. A tag is a string. The strings are automatically
6141+
/// converted to lowercase letters. No more than 20 tags can be added to a given
6142+
/// item.</para>
61426143
/// </summary>
61436144
/// <param name="addTagArg">The request parameters</param>
61446145
/// <returns>The task that represents the asynchronous send operation.</returns>
@@ -6166,8 +6167,9 @@ public sys.IAsyncResult BeginTagsAdd(AddTagArg addTagArg, sys.AsyncCallback call
61666167
}
61676168

61686169
/// <summary>
6169-
/// <para>Add a tag to an item. A tag is a string. No more than 20 tags can be added to
6170-
/// a given item.</para>
6170+
/// <para>Add a tag to an item. A tag is a string. The strings are automatically
6171+
/// converted to lowercase letters. No more than 20 tags can be added to a given
6172+
/// item.</para>
61716173
/// </summary>
61726174
/// <param name="path">Path to the item to be tagged.</param>
61736175
/// <param name="tagText">The value of the tag to add.</param>

dropbox-sdk-dotnet/Dropbox.Api/Generated/Files/FolderMetadata.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ public class FolderMetadata : Metadata
5151
/// <param name="parentSharedFolderId">Please use <see
5252
/// cref="Dropbox.Api.Files.FileSharingInfo.ParentSharedFolderId" /> or <see
5353
/// cref="Dropbox.Api.Files.FolderSharingInfo.ParentSharedFolderId" /> instead.</param>
54+
/// <param name="previewUrl">The preview URL of the file.</param>
5455
/// <param name="sharedFolderId">Please use <paramref name="sharingInfo" />
5556
/// instead.</param>
5657
/// <param name="sharingInfo">Set if the folder is contained in a shared folder or is a
@@ -64,10 +65,11 @@ public FolderMetadata(string name,
6465
string pathLower = null,
6566
string pathDisplay = null,
6667
string parentSharedFolderId = null,
68+
string previewUrl = null,
6769
string sharedFolderId = null,
6870
FolderSharingInfo sharingInfo = null,
6971
col.IEnumerable<global::Dropbox.Api.FileProperties.PropertyGroup> propertyGroups = null)
70-
: base(name, pathLower, pathDisplay, parentSharedFolderId)
72+
: base(name, pathLower, pathDisplay, parentSharedFolderId, previewUrl)
7173
{
7274
if (id == null)
7375
{
@@ -155,6 +157,10 @@ public override void EncodeFields(FolderMetadata value, enc.IJsonWriter writer)
155157
{
156158
WriteProperty("parent_shared_folder_id", value.ParentSharedFolderId, writer, enc.StringEncoder.Instance);
157159
}
160+
if (value.PreviewUrl != null)
161+
{
162+
WriteProperty("preview_url", value.PreviewUrl, writer, enc.StringEncoder.Instance);
163+
}
158164
if (value.SharedFolderId != null)
159165
{
160166
WriteProperty("shared_folder_id", value.SharedFolderId, writer, enc.StringEncoder.Instance);
@@ -214,6 +220,9 @@ protected override void SetField(FolderMetadata value, string fieldName, enc.IJs
214220
case "parent_shared_folder_id":
215221
value.ParentSharedFolderId = enc.StringDecoder.Instance.Decode(reader);
216222
break;
223+
case "preview_url":
224+
value.PreviewUrl = enc.StringDecoder.Instance.Decode(reader);
225+
break;
217226
case "shared_folder_id":
218227
value.SharedFolderId = enc.StringDecoder.Instance.Decode(reader);
219228
break;

dropbox-sdk-dotnet/Dropbox.Api/Generated/Files/LookupError.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -641,8 +641,8 @@ protected override NotFolder Create()
641641
}
642642

643643
/// <summary>
644-
/// <para>The file cannot be transferred because the content is restricted. For
645-
/// example, sometimes there are legal restrictions due to copyright claims.</para>
644+
/// <para>The file cannot be transferred because the content is restricted. For
645+
/// example, we might restrict a file due to legal requirements.</para>
646646
/// </summary>
647647
public sealed class RestrictedContent : LookupError
648648
{

dropbox-sdk-dotnet/Dropbox.Api/Generated/Files/Metadata.cs

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,12 @@ public class Metadata
5757
/// <param name="parentSharedFolderId">Please use <see
5858
/// cref="Dropbox.Api.Files.FileSharingInfo.ParentSharedFolderId" /> or <see
5959
/// cref="Dropbox.Api.Files.FolderSharingInfo.ParentSharedFolderId" /> instead.</param>
60+
/// <param name="previewUrl">The preview URL of the file.</param>
6061
protected Metadata(string name,
6162
string pathLower = null,
6263
string pathDisplay = null,
63-
string parentSharedFolderId = null)
64+
string parentSharedFolderId = null,
65+
string previewUrl = null)
6466
{
6567
if (name == null)
6668
{
@@ -79,6 +81,7 @@ protected Metadata(string name,
7981
this.PathLower = pathLower;
8082
this.PathDisplay = pathDisplay;
8183
this.ParentSharedFolderId = parentSharedFolderId;
84+
this.PreviewUrl = previewUrl;
8285
}
8386

8487
/// <summary>
@@ -188,6 +191,11 @@ public DeletedMetadata AsDeleted
188191
/// </summary>
189192
public string ParentSharedFolderId { get; protected set; }
190193

194+
/// <summary>
195+
/// <para>The preview URL of the file.</para>
196+
/// </summary>
197+
public string PreviewUrl { get; protected set; }
198+
191199
#region Encoder class
192200

193201
/// <summary>
@@ -233,6 +241,10 @@ public override void EncodeFields(Metadata value, enc.IJsonWriter writer)
233241
{
234242
WriteProperty("parent_shared_folder_id", value.ParentSharedFolderId, writer, enc.StringEncoder.Instance);
235243
}
244+
if (value.PreviewUrl != null)
245+
{
246+
WriteProperty("preview_url", value.PreviewUrl, writer, enc.StringEncoder.Instance);
247+
}
236248
}
237249
}
238250

@@ -297,6 +309,9 @@ protected override void SetField(Metadata value, string fieldName, enc.IJsonRead
297309
case "parent_shared_folder_id":
298310
value.ParentSharedFolderId = enc.StringDecoder.Instance.Decode(reader);
299311
break;
312+
case "preview_url":
313+
value.PreviewUrl = enc.StringDecoder.Instance.Decode(reader);
314+
break;
300315
default:
301316
reader.Skip();
302317
break;

0 commit comments

Comments
 (0)