Skip to content

Commit 8a07a7e

Browse files
committed
generated csharp files
1 parent 6aaeffb commit 8a07a7e

File tree

157 files changed

+34546
-141
lines changed

Some content is hidden

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

157 files changed

+34546
-141
lines changed

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.6925")]
21+
[assembly: AssemblyFileVersion("4.0.7111")]
2222

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

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

Lines changed: 115 additions & 0 deletions
Large diffs are not rendered by default.

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

Lines changed: 115 additions & 0 deletions
Large diffs are not rendered by default.

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

Lines changed: 115 additions & 0 deletions
Large diffs are not rendered by default.

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

Lines changed: 115 additions & 0 deletions
Large diffs are not rendered by default.

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

Lines changed: 19 additions & 23 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.9.3</version>
5+
<version>4.9.4</version>
66
<title>Dropbox v2 API</title>
77
<authors>Dropbox Inc</authors>
88
<owners>Dropbox Inc</owners>
@@ -14,34 +14,30 @@
1414
<releaseNotes>
1515
What's New:
1616

17-
- Common Namespace:
18-
- Force matching dot character in alias EmailAddress
19-
- Allow DisplayNameLegacy to support a name of zero chars
20-
21-
- Contacts namespace:
22-
- New namespace
23-
- New routes: delete_manual_contacts and delete_manual_contacts_batch
24-
- New argument structs for new routes
25-
26-
- File_properties namespace:
27-
- Doesn't allow app folder app to access file property endpoints.
28-
2917
- Files namespace:
30-
- Create copy_batch:2 and move_batch:2 endpoints. Deprecate existing copy_batch and move_batch.
18+
- Added new ExportInfo struct
19+
- Added new fields (is_downloadable, export_info) to FileMetadata
20+
- Added new include_non_downloadable_files to ListFolderArg
21+
- Added new ExportMetadata, ExportArg, Export Result Structs
22+
- Added new ExportError union
23+
- Added new /export route
3124

3225
- Sharing namespace:
33-
- Add no_one option to LinkAudience union
26+
- Added password field to LinkAudience
27+
- Added effective_audience and link_access_level fields to LinkPermissions struct
28+
- Updated docstrings for LinkPermissions
29+
- Added audience and access fields to SharedLinkSettings struct
30+
- New LinkAccessLevel and RequestedLinkAccessLevel union
31+
- Added new create_view_link and create_edit_link fields to FileAction union
3432

35-
- Sharing_files namespace:
36-
- Doesn't allow app folder app to access sharing files endpoints.
33+
- Team_log namespace:
34+
- New types added
3735

38-
- Teams namespace:
39-
- Only Team apps with Team member file access can access team/properties endpoints.
40-
- Add is_disconnected boolean to RemovedStatus struct
41-
- Add error response type to namespace/list route
36+
- Team_policies namespace:
37+
- New TwoStepVerificationState union
4238

43-
- Team_log namespace:
44-
- New event types added
39+
- Team_reports namespace:
40+
- New TemporaryFailureReason union added.
4541

4642
</releaseNotes>
4743
<copyright>Copyright (c) Dropbox Inc. 2016</copyright>

dropbox-sdk-dotnet/Dropbox.Api/Generated/Auth/AuthError.cs

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,28 @@ public ExpiredAccessToken AsExpiredAccessToken
144144
}
145145
}
146146

147+
/// <summary>
148+
/// <para>Gets a value indicating whether this instance is MissingScope</para>
149+
/// </summary>
150+
public bool IsMissingScope
151+
{
152+
get
153+
{
154+
return this is MissingScope;
155+
}
156+
}
157+
158+
/// <summary>
159+
/// <para>Gets this instance as a MissingScope, or <c>null</c>.</para>
160+
/// </summary>
161+
public MissingScope AsMissingScope
162+
{
163+
get
164+
{
165+
return this as MissingScope;
166+
}
167+
}
168+
147169
/// <summary>
148170
/// <para>Gets a value indicating whether this instance is Other</para>
149171
/// </summary>
@@ -210,6 +232,12 @@ public override void EncodeFields(AuthError value, enc.IJsonWriter writer)
210232
ExpiredAccessToken.Encoder.EncodeFields((ExpiredAccessToken)value, writer);
211233
return;
212234
}
235+
if (value is MissingScope)
236+
{
237+
WriteProperty(".tag", "missing_scope", writer, enc.StringEncoder.Instance);
238+
MissingScope.Encoder.EncodeFields((MissingScope)value, writer);
239+
return;
240+
}
213241
if (value is Other)
214242
{
215243
WriteProperty(".tag", "other", writer, enc.StringEncoder.Instance);
@@ -258,6 +286,8 @@ protected override AuthError Decode(string tag, enc.IJsonReader reader)
258286
return UserSuspended.Decoder.DecodeFields(reader);
259287
case "expired_access_token":
260288
return ExpiredAccessToken.Decoder.DecodeFields(reader);
289+
case "missing_scope":
290+
return MissingScope.Decoder.DecodeFields(reader);
261291
default:
262292
return Other.Decoder.DecodeFields(reader);
263293
}
@@ -622,6 +652,95 @@ protected override ExpiredAccessToken Create()
622652
#endregion
623653
}
624654

655+
/// <summary>
656+
/// <para>The access token does not have the required scope to access the route.</para>
657+
/// </summary>
658+
public sealed class MissingScope : AuthError
659+
{
660+
#pragma warning disable 108
661+
662+
/// <summary>
663+
/// <para>The encoder instance.</para>
664+
/// </summary>
665+
internal static enc.StructEncoder<MissingScope> Encoder = new MissingScopeEncoder();
666+
667+
/// <summary>
668+
/// <para>The decoder instance.</para>
669+
/// </summary>
670+
internal static enc.StructDecoder<MissingScope> Decoder = new MissingScopeDecoder();
671+
672+
/// <summary>
673+
/// <para>Initializes a new instance of the <see cref="MissingScope" />
674+
/// class.</para>
675+
/// </summary>
676+
/// <param name="value">The value</param>
677+
public MissingScope(TokenScopeError value)
678+
{
679+
this.Value = value;
680+
}
681+
/// <summary>
682+
/// <para>Initializes a new instance of the <see cref="MissingScope" />
683+
/// class.</para>
684+
/// </summary>
685+
private MissingScope()
686+
{
687+
}
688+
689+
/// <summary>
690+
/// <para>Gets the value of this instance.</para>
691+
/// </summary>
692+
public TokenScopeError Value { get; private set; }
693+
694+
#region Encoder class
695+
696+
/// <summary>
697+
/// <para>Encoder for <see cref="MissingScope" />.</para>
698+
/// </summary>
699+
private class MissingScopeEncoder : enc.StructEncoder<MissingScope>
700+
{
701+
/// <summary>
702+
/// <para>Encode fields of given value.</para>
703+
/// </summary>
704+
/// <param name="value">The value.</param>
705+
/// <param name="writer">The writer.</param>
706+
public override void EncodeFields(MissingScope value, enc.IJsonWriter writer)
707+
{
708+
WriteProperty("missing_scope", value.Value, writer, global::Dropbox.Api.Auth.TokenScopeError.Encoder);
709+
}
710+
}
711+
712+
#endregion
713+
714+
#region Decoder class
715+
716+
/// <summary>
717+
/// <para>Decoder for <see cref="MissingScope" />.</para>
718+
/// </summary>
719+
private class MissingScopeDecoder : enc.StructDecoder<MissingScope>
720+
{
721+
/// <summary>
722+
/// <para>Create a new instance of type <see cref="MissingScope" />.</para>
723+
/// </summary>
724+
/// <returns>The struct instance.</returns>
725+
protected override MissingScope Create()
726+
{
727+
return new MissingScope();
728+
}
729+
730+
/// <summary>
731+
/// <para>Decode fields without ensuring start and end object.</para>
732+
/// </summary>
733+
/// <param name="reader">The json reader.</param>
734+
/// <returns>The decoded object.</returns>
735+
public override MissingScope DecodeFields(enc.IJsonReader reader)
736+
{
737+
return new MissingScope(global::Dropbox.Api.Auth.TokenScopeError.Decoder.DecodeFields(reader));
738+
}
739+
}
740+
741+
#endregion
742+
}
743+
625744
/// <summary>
626745
/// <para>The other object</para>
627746
/// </summary>
Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
// <auto-generated>
2+
// Auto-generated by StoneAPI, do not modify.
3+
// </auto-generated>
4+
5+
namespace Dropbox.Api.Auth
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 token scope error object</para>
15+
/// </summary>
16+
public class TokenScopeError
17+
{
18+
#pragma warning disable 108
19+
20+
/// <summary>
21+
/// <para>The encoder instance.</para>
22+
/// </summary>
23+
internal static enc.StructEncoder<TokenScopeError> Encoder = new TokenScopeErrorEncoder();
24+
25+
/// <summary>
26+
/// <para>The decoder instance.</para>
27+
/// </summary>
28+
internal static enc.StructDecoder<TokenScopeError> Decoder = new TokenScopeErrorDecoder();
29+
30+
/// <summary>
31+
/// <para>Initializes a new instance of the <see cref="TokenScopeError" />
32+
/// class.</para>
33+
/// </summary>
34+
/// <param name="requiredScope">The required scope to access the route.</param>
35+
public TokenScopeError(string requiredScope)
36+
{
37+
if (requiredScope == null)
38+
{
39+
throw new sys.ArgumentNullException("requiredScope");
40+
}
41+
42+
this.RequiredScope = requiredScope;
43+
}
44+
45+
/// <summary>
46+
/// <para>Initializes a new instance of the <see cref="TokenScopeError" />
47+
/// class.</para>
48+
/// </summary>
49+
/// <remarks>This is to construct an instance of the object when
50+
/// deserializing.</remarks>
51+
[sys.ComponentModel.EditorBrowsable(sys.ComponentModel.EditorBrowsableState.Never)]
52+
public TokenScopeError()
53+
{
54+
}
55+
56+
/// <summary>
57+
/// <para>The required scope to access the route.</para>
58+
/// </summary>
59+
public string RequiredScope { get; protected set; }
60+
61+
#region Encoder class
62+
63+
/// <summary>
64+
/// <para>Encoder for <see cref="TokenScopeError" />.</para>
65+
/// </summary>
66+
private class TokenScopeErrorEncoder : enc.StructEncoder<TokenScopeError>
67+
{
68+
/// <summary>
69+
/// <para>Encode fields of given value.</para>
70+
/// </summary>
71+
/// <param name="value">The value.</param>
72+
/// <param name="writer">The writer.</param>
73+
public override void EncodeFields(TokenScopeError value, enc.IJsonWriter writer)
74+
{
75+
WriteProperty("required_scope", value.RequiredScope, writer, enc.StringEncoder.Instance);
76+
}
77+
}
78+
79+
#endregion
80+
81+
82+
#region Decoder class
83+
84+
/// <summary>
85+
/// <para>Decoder for <see cref="TokenScopeError" />.</para>
86+
/// </summary>
87+
private class TokenScopeErrorDecoder : enc.StructDecoder<TokenScopeError>
88+
{
89+
/// <summary>
90+
/// <para>Create a new instance of type <see cref="TokenScopeError" />.</para>
91+
/// </summary>
92+
/// <returns>The struct instance.</returns>
93+
protected override TokenScopeError Create()
94+
{
95+
return new TokenScopeError();
96+
}
97+
98+
/// <summary>
99+
/// <para>Set given field.</para>
100+
/// </summary>
101+
/// <param name="value">The field value.</param>
102+
/// <param name="fieldName">The field name.</param>
103+
/// <param name="reader">The json reader.</param>
104+
protected override void SetField(TokenScopeError value, string fieldName, enc.IJsonReader reader)
105+
{
106+
switch (fieldName)
107+
{
108+
case "required_scope":
109+
value.RequiredScope = enc.StringDecoder.Instance.Decode(reader);
110+
break;
111+
default:
112+
reader.Skip();
113+
break;
114+
}
115+
}
116+
}
117+
118+
#endregion
119+
}
120+
}

0 commit comments

Comments
 (0)