Skip to content

Commit c38ccc3

Browse files
committed
Update specs.
1 parent 0c4a232 commit c38ccc3

File tree

389 files changed

+43583
-12040
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

389 files changed

+43583
-12040
lines changed

buildall.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ $generatorPath = "$generatorDir\csharp.stoneg.py"
2121
$generatorArgs = @("-m", "stone.cli", "-a:all", $generatorPath, $sourceDir)
2222
$docBuildPath = Resolve-Path "doc\StoneDocs.shfbproj"
2323
$majorVersion = "4.0"
24-
$releaseVersion = "4.7.0"
24+
$releaseVersion = "4.8.0"
2525
$assemblyInfoPath = "$sourceDir\AppProperties\AssemblyInfo.cs"
2626
$signKeyPath = "$sourceDir\dropbox_api_key.snk"
2727

dropbox-sdk-dotnet/Dropbox.Api/AppProperties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
[assembly: AssemblyCulture("")]
1919

2020
[assembly: AssemblyVersion("4.0.0")]
21-
[assembly: AssemblyFileVersion("4.0.6562")]
21+
[assembly: AssemblyFileVersion("4.0.6676")]
2222

2323
#if DEBUG
2424
[assembly: InternalsVisibleTo("Dropbox.Api.Tests")]

dropbox-sdk-dotnet/Dropbox.Api/Dropbox.Api.Doc.csproj

Lines changed: 116 additions & 24 deletions
Large diffs are not rendered by default.

dropbox-sdk-dotnet/Dropbox.Api/Dropbox.Api.Portable.csproj

Lines changed: 116 additions & 24 deletions
Large diffs are not rendered by default.

dropbox-sdk-dotnet/Dropbox.Api/Dropbox.Api.Portable40.csproj

Lines changed: 116 additions & 24 deletions
Large diffs are not rendered by default.

dropbox-sdk-dotnet/Dropbox.Api/Dropbox.Api.csproj

Lines changed: 116 additions & 24 deletions
Large diffs are not rendered by default.

dropbox-sdk-dotnet/Dropbox.Api/Dropbox.Api.nuspec

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package>
33
<metadata>
44
<id>Dropbox.Api</id>
5-
<version>4.7.0</version>
5+
<version>4.8.0</version>
66
<title>Dropbox v2 API</title>
77
<authors>Dropbox Inc</authors>
88
<owners>Dropbox Inc</owners>
@@ -13,11 +13,31 @@
1313
<description>Portable class library for accessing the Dropbox v2 API</description>
1414
<releaseNotes>
1515
What's New:
16-
- files
17-
- Add download_zip endpoint
18-
- Add properties_error to UploadError
19-
- team_log
20-
- Add more event types
16+
- Files:
17+
- new SymlinkInfo struct on FileMetadata
18+
- added TooManyWriteOperations error type to WriteError
19+
- New CreateFolderBatch endpoint and related datatypes
20+
- Added parent_rev attribute to DeleteArg
21+
- New ThumbnailSize
22+
- New ThumbnailMode object
23+
- New SyncSettings objects
24+
25+
- Sharing:
26+
- add SeenState.PlatformType to UserFileMembershipInfo
27+
- new SetAccessInheritance for FolderAction
28+
- additional user info added to UserInfo struct
29+
- new AccessInheritance union
30+
- new SetAccessInheritance route
31+
32+
- Team:
33+
- new HasTeamSelectiveSync object
34+
- new selective sync settings included in various return objects and error types
35+
- new update_sync_settings route
36+
37+
- TeamPolicies:
38+
- new ShowcaseEnabledPolicy object
39+
- new ShowcaseDownloadPolicy object
40+
- new ShowcaseExternalSharingPolicy object
2141
</releaseNotes>
2242
<copyright>Copyright (c) Dropbox Inc. 2016</copyright>
2343
<tags>Dropbox Api</tags>

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,11 @@ public void EndPropertiesOverwrite(sys.IAsyncResult asyncResult)
236236
/// cref="Dropbox.Api.FileProperties.Routes.FilePropertiesUserRoutes.TemplatesUpdateForUserAsync"
237237
/// /> or <see
238238
/// cref="Dropbox.Api.FileProperties.Routes.FilePropertiesTeamRoutes.TemplatesUpdateForTeamAsync"
239-
/// />. Templates can't be removed once created.</para>
239+
/// />. To remove a template, see <see
240+
/// cref="Dropbox.Api.FileProperties.Routes.FilePropertiesUserRoutes.TemplatesRemoveForUserAsync"
241+
/// /> or <see
242+
/// cref="Dropbox.Api.FileProperties.Routes.FilePropertiesTeamRoutes.TemplatesRemoveForTeamAsync"
243+
/// />.</para>
240244
/// </summary>
241245
/// <param name="removePropertiesArg">The request parameters</param>
242246
/// <returns>The task that represents the asynchronous send operation.</returns>
@@ -272,7 +276,11 @@ public sys.IAsyncResult BeginPropertiesRemove(RemovePropertiesArg removeProperti
272276
/// cref="Dropbox.Api.FileProperties.Routes.FilePropertiesUserRoutes.TemplatesUpdateForUserAsync"
273277
/// /> or <see
274278
/// cref="Dropbox.Api.FileProperties.Routes.FilePropertiesTeamRoutes.TemplatesUpdateForTeamAsync"
275-
/// />. Templates can't be removed once created.</para>
279+
/// />. To remove a template, see <see
280+
/// cref="Dropbox.Api.FileProperties.Routes.FilePropertiesUserRoutes.TemplatesRemoveForUserAsync"
281+
/// /> or <see
282+
/// cref="Dropbox.Api.FileProperties.Routes.FilePropertiesTeamRoutes.TemplatesRemoveForTeamAsync"
283+
/// />.</para>
276284
/// </summary>
277285
/// <param name="path">A unique identifier for the file or folder.</param>
278286
/// <param name="propertyTemplateIds">A list of identifiers for a template created by
Lines changed: 145 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,145 @@
1+
// <auto-generated>
2+
// Auto-generated by StoneAPI, do not modify.
3+
// </auto-generated>
4+
5+
namespace Dropbox.Api.Files
6+
{
7+
using sys = System;
8+
using col = System.Collections.Generic;
9+
using re = System.Text.RegularExpressions;
10+
11+
using enc = Dropbox.Api.Stone;
12+
13+
/// <summary>
14+
/// <para>The content sync setting object</para>
15+
/// </summary>
16+
public class ContentSyncSetting
17+
{
18+
#pragma warning disable 108
19+
20+
/// <summary>
21+
/// <para>The encoder instance.</para>
22+
/// </summary>
23+
internal static enc.StructEncoder<ContentSyncSetting> Encoder = new ContentSyncSettingEncoder();
24+
25+
/// <summary>
26+
/// <para>The decoder instance.</para>
27+
/// </summary>
28+
internal static enc.StructDecoder<ContentSyncSetting> Decoder = new ContentSyncSettingDecoder();
29+
30+
/// <summary>
31+
/// <para>Initializes a new instance of the <see cref="ContentSyncSetting" />
32+
/// class.</para>
33+
/// </summary>
34+
/// <param name="id">Id of the item this setting is applied to.</param>
35+
/// <param name="syncSetting">Setting for this item.</param>
36+
public ContentSyncSetting(string id,
37+
SyncSetting syncSetting)
38+
{
39+
if (id == null)
40+
{
41+
throw new sys.ArgumentNullException("id");
42+
}
43+
if (id.Length < 4)
44+
{
45+
throw new sys.ArgumentOutOfRangeException("id", "Length should be at least 4");
46+
}
47+
if (!re.Regex.IsMatch(id, @"\A(?:id:.+)\z"))
48+
{
49+
throw new sys.ArgumentOutOfRangeException("id", @"Value should match pattern '\A(?:id:.+)\z'");
50+
}
51+
52+
if (syncSetting == null)
53+
{
54+
throw new sys.ArgumentNullException("syncSetting");
55+
}
56+
57+
this.Id = id;
58+
this.SyncSetting = syncSetting;
59+
}
60+
61+
/// <summary>
62+
/// <para>Initializes a new instance of the <see cref="ContentSyncSetting" />
63+
/// class.</para>
64+
/// </summary>
65+
/// <remarks>This is to construct an instance of the object when
66+
/// deserializing.</remarks>
67+
[sys.ComponentModel.EditorBrowsable(sys.ComponentModel.EditorBrowsableState.Never)]
68+
public ContentSyncSetting()
69+
{
70+
}
71+
72+
/// <summary>
73+
/// <para>Id of the item this setting is applied to.</para>
74+
/// </summary>
75+
public string Id { get; protected set; }
76+
77+
/// <summary>
78+
/// <para>Setting for this item.</para>
79+
/// </summary>
80+
public SyncSetting SyncSetting { get; protected set; }
81+
82+
#region Encoder class
83+
84+
/// <summary>
85+
/// <para>Encoder for <see cref="ContentSyncSetting" />.</para>
86+
/// </summary>
87+
private class ContentSyncSettingEncoder : enc.StructEncoder<ContentSyncSetting>
88+
{
89+
/// <summary>
90+
/// <para>Encode fields of given value.</para>
91+
/// </summary>
92+
/// <param name="value">The value.</param>
93+
/// <param name="writer">The writer.</param>
94+
public override void EncodeFields(ContentSyncSetting value, enc.IJsonWriter writer)
95+
{
96+
WriteProperty("id", value.Id, writer, enc.StringEncoder.Instance);
97+
WriteProperty("sync_setting", value.SyncSetting, writer, global::Dropbox.Api.Files.SyncSetting.Encoder);
98+
}
99+
}
100+
101+
#endregion
102+
103+
104+
#region Decoder class
105+
106+
/// <summary>
107+
/// <para>Decoder for <see cref="ContentSyncSetting" />.</para>
108+
/// </summary>
109+
private class ContentSyncSettingDecoder : enc.StructDecoder<ContentSyncSetting>
110+
{
111+
/// <summary>
112+
/// <para>Create a new instance of type <see cref="ContentSyncSetting" />.</para>
113+
/// </summary>
114+
/// <returns>The struct instance.</returns>
115+
protected override ContentSyncSetting Create()
116+
{
117+
return new ContentSyncSetting();
118+
}
119+
120+
/// <summary>
121+
/// <para>Set given field.</para>
122+
/// </summary>
123+
/// <param name="value">The field value.</param>
124+
/// <param name="fieldName">The field name.</param>
125+
/// <param name="reader">The json reader.</param>
126+
protected override void SetField(ContentSyncSetting value, string fieldName, enc.IJsonReader reader)
127+
{
128+
switch (fieldName)
129+
{
130+
case "id":
131+
value.Id = enc.StringDecoder.Instance.Decode(reader);
132+
break;
133+
case "sync_setting":
134+
value.SyncSetting = global::Dropbox.Api.Files.SyncSetting.Decoder.Decode(reader);
135+
break;
136+
default:
137+
reader.Skip();
138+
break;
139+
}
140+
}
141+
}
142+
143+
#endregion
144+
}
145+
}
Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
1+
// <auto-generated>
2+
// Auto-generated by StoneAPI, do not modify.
3+
// </auto-generated>
4+
5+
namespace Dropbox.Api.Files
6+
{
7+
using sys = System;
8+
using col = System.Collections.Generic;
9+
using re = System.Text.RegularExpressions;
10+
11+
using enc = Dropbox.Api.Stone;
12+
13+
/// <summary>
14+
/// <para>The content sync setting arg object</para>
15+
/// </summary>
16+
public class ContentSyncSettingArg
17+
{
18+
#pragma warning disable 108
19+
20+
/// <summary>
21+
/// <para>The encoder instance.</para>
22+
/// </summary>
23+
internal static enc.StructEncoder<ContentSyncSettingArg> Encoder = new ContentSyncSettingArgEncoder();
24+
25+
/// <summary>
26+
/// <para>The decoder instance.</para>
27+
/// </summary>
28+
internal static enc.StructDecoder<ContentSyncSettingArg> Decoder = new ContentSyncSettingArgDecoder();
29+
30+
/// <summary>
31+
/// <para>Initializes a new instance of the <see cref="ContentSyncSettingArg" />
32+
/// class.</para>
33+
/// </summary>
34+
/// <param name="id">Id of the item this setting is applied to.</param>
35+
/// <param name="syncSetting">Setting for this item.</param>
36+
public ContentSyncSettingArg(string id,
37+
SyncSettingArg syncSetting)
38+
{
39+
if (id == null)
40+
{
41+
throw new sys.ArgumentNullException("id");
42+
}
43+
if (id.Length < 4)
44+
{
45+
throw new sys.ArgumentOutOfRangeException("id", "Length should be at least 4");
46+
}
47+
if (!re.Regex.IsMatch(id, @"\A(?:id:.+)\z"))
48+
{
49+
throw new sys.ArgumentOutOfRangeException("id", @"Value should match pattern '\A(?:id:.+)\z'");
50+
}
51+
52+
if (syncSetting == null)
53+
{
54+
throw new sys.ArgumentNullException("syncSetting");
55+
}
56+
57+
this.Id = id;
58+
this.SyncSetting = syncSetting;
59+
}
60+
61+
/// <summary>
62+
/// <para>Initializes a new instance of the <see cref="ContentSyncSettingArg" />
63+
/// class.</para>
64+
/// </summary>
65+
/// <remarks>This is to construct an instance of the object when
66+
/// deserializing.</remarks>
67+
[sys.ComponentModel.EditorBrowsable(sys.ComponentModel.EditorBrowsableState.Never)]
68+
public ContentSyncSettingArg()
69+
{
70+
}
71+
72+
/// <summary>
73+
/// <para>Id of the item this setting is applied to.</para>
74+
/// </summary>
75+
public string Id { get; protected set; }
76+
77+
/// <summary>
78+
/// <para>Setting for this item.</para>
79+
/// </summary>
80+
public SyncSettingArg SyncSetting { get; protected set; }
81+
82+
#region Encoder class
83+
84+
/// <summary>
85+
/// <para>Encoder for <see cref="ContentSyncSettingArg" />.</para>
86+
/// </summary>
87+
private class ContentSyncSettingArgEncoder : enc.StructEncoder<ContentSyncSettingArg>
88+
{
89+
/// <summary>
90+
/// <para>Encode fields of given value.</para>
91+
/// </summary>
92+
/// <param name="value">The value.</param>
93+
/// <param name="writer">The writer.</param>
94+
public override void EncodeFields(ContentSyncSettingArg value, enc.IJsonWriter writer)
95+
{
96+
WriteProperty("id", value.Id, writer, enc.StringEncoder.Instance);
97+
WriteProperty("sync_setting", value.SyncSetting, writer, global::Dropbox.Api.Files.SyncSettingArg.Encoder);
98+
}
99+
}
100+
101+
#endregion
102+
103+
104+
#region Decoder class
105+
106+
/// <summary>
107+
/// <para>Decoder for <see cref="ContentSyncSettingArg" />.</para>
108+
/// </summary>
109+
private class ContentSyncSettingArgDecoder : enc.StructDecoder<ContentSyncSettingArg>
110+
{
111+
/// <summary>
112+
/// <para>Create a new instance of type <see cref="ContentSyncSettingArg"
113+
/// />.</para>
114+
/// </summary>
115+
/// <returns>The struct instance.</returns>
116+
protected override ContentSyncSettingArg Create()
117+
{
118+
return new ContentSyncSettingArg();
119+
}
120+
121+
/// <summary>
122+
/// <para>Set given field.</para>
123+
/// </summary>
124+
/// <param name="value">The field value.</param>
125+
/// <param name="fieldName">The field name.</param>
126+
/// <param name="reader">The json reader.</param>
127+
protected override void SetField(ContentSyncSettingArg value, string fieldName, enc.IJsonReader reader)
128+
{
129+
switch (fieldName)
130+
{
131+
case "id":
132+
value.Id = enc.StringDecoder.Instance.Decode(reader);
133+
break;
134+
case "sync_setting":
135+
value.SyncSetting = global::Dropbox.Api.Files.SyncSettingArg.Decoder.Decode(reader);
136+
break;
137+
default:
138+
reader.Skip();
139+
break;
140+
}
141+
}
142+
}
143+
144+
#endregion
145+
}
146+
}

0 commit comments

Comments
 (0)