@@ -11,48 +11,48 @@ namespace Dropbox.Api.Openid
1111 using enc = Dropbox . Api . Stone ;
1212
1313 /// <summary>
14- /// <para>The err union object</para>
14+ /// <para>The open id error object</para>
1515 /// </summary>
16- public class ErrUnion
16+ public class OpenIdError
1717 {
1818 #pragma warning disable 108
1919
2020 /// <summary>
2121 /// <para>The encoder instance.</para>
2222 /// </summary>
23- internal static enc . StructEncoder < ErrUnion > Encoder = new ErrUnionEncoder ( ) ;
23+ internal static enc . StructEncoder < OpenIdError > Encoder = new OpenIdErrorEncoder ( ) ;
2424
2525 /// <summary>
2626 /// <para>The decoder instance.</para>
2727 /// </summary>
28- internal static enc . StructDecoder < ErrUnion > Decoder = new ErrUnionDecoder ( ) ;
28+ internal static enc . StructDecoder < OpenIdError > Decoder = new OpenIdErrorDecoder ( ) ;
2929
3030 /// <summary>
31- /// <para>Initializes a new instance of the <see cref="ErrUnion " /> class.</para>
31+ /// <para>Initializes a new instance of the <see cref="OpenIdError " /> class.</para>
3232 /// </summary>
33- public ErrUnion ( )
33+ public OpenIdError ( )
3434 {
3535 }
3636
3737 /// <summary>
38- /// <para>Gets a value indicating whether this instance is AuthError </para>
38+ /// <para>Gets a value indicating whether this instance is IncorrectOpenidScopes </para>
3939 /// </summary>
40- public bool IsAuthError
40+ public bool IsIncorrectOpenidScopes
4141 {
4242 get
4343 {
44- return this is AuthError ;
44+ return this is IncorrectOpenidScopes ;
4545 }
4646 }
4747
4848 /// <summary>
49- /// <para>Gets this instance as a AuthError , or <c>null</c>.</para>
49+ /// <para>Gets this instance as a IncorrectOpenidScopes , or <c>null</c>.</para>
5050 /// </summary>
51- public AuthError AsAuthError
51+ public IncorrectOpenidScopes AsIncorrectOpenidScopes
5252 {
5353 get
5454 {
55- return this as AuthError ;
55+ return this as IncorrectOpenidScopes ;
5656 }
5757 }
5858
@@ -81,21 +81,21 @@ public Other AsOther
8181 #region Encoder class
8282
8383 /// <summary>
84- /// <para>Encoder for <see cref="ErrUnion " />.</para>
84+ /// <para>Encoder for <see cref="OpenIdError " />.</para>
8585 /// </summary>
86- private class ErrUnionEncoder : enc . StructEncoder < ErrUnion >
86+ private class OpenIdErrorEncoder : enc . StructEncoder < OpenIdError >
8787 {
8888 /// <summary>
8989 /// <para>Encode fields of given value.</para>
9090 /// </summary>
9191 /// <param name="value">The value.</param>
9292 /// <param name="writer">The writer.</param>
93- public override void EncodeFields ( ErrUnion value , enc . IJsonWriter writer )
93+ public override void EncodeFields ( OpenIdError value , enc . IJsonWriter writer )
9494 {
95- if ( value is AuthError )
95+ if ( value is IncorrectOpenidScopes )
9696 {
97- WriteProperty ( ".tag" , "auth_error " , writer , enc . StringEncoder . Instance ) ;
98- AuthError . Encoder . EncodeFields ( ( AuthError ) value , writer ) ;
97+ WriteProperty ( ".tag" , "incorrect_openid_scopes " , writer , enc . StringEncoder . Instance ) ;
98+ IncorrectOpenidScopes . Encoder . EncodeFields ( ( IncorrectOpenidScopes ) value , writer ) ;
9999 return ;
100100 }
101101 if ( value is Other )
@@ -113,17 +113,17 @@ public override void EncodeFields(ErrUnion value, enc.IJsonWriter writer)
113113 #region Decoder class
114114
115115 /// <summary>
116- /// <para>Decoder for <see cref="ErrUnion " />.</para>
116+ /// <para>Decoder for <see cref="OpenIdError " />.</para>
117117 /// </summary>
118- private class ErrUnionDecoder : enc . UnionDecoder < ErrUnion >
118+ private class OpenIdErrorDecoder : enc . UnionDecoder < OpenIdError >
119119 {
120120 /// <summary>
121- /// <para>Create a new instance of type <see cref="ErrUnion " />.</para>
121+ /// <para>Create a new instance of type <see cref="OpenIdError " />.</para>
122122 /// </summary>
123123 /// <returns>The struct instance.</returns>
124- protected override ErrUnion Create ( )
124+ protected override OpenIdError Create ( )
125125 {
126- return new ErrUnion ( ) ;
126+ return new OpenIdError ( ) ;
127127 }
128128
129129 /// <summary>
@@ -132,12 +132,12 @@ protected override ErrUnion Create()
132132 /// <param name="tag">The tag.</param>
133133 /// <param name="reader">The json reader.</param>
134134 /// <returns>The decoded object.</returns>
135- protected override ErrUnion Decode ( string tag , enc . IJsonReader reader )
135+ protected override OpenIdError Decode ( string tag , enc . IJsonReader reader )
136136 {
137137 switch ( tag )
138138 {
139- case "auth_error " :
140- return AuthError . Decoder . DecodeFields ( reader ) ;
139+ case "incorrect_openid_scopes " :
140+ return IncorrectOpenidScopes . Decoder . DecodeFields ( reader ) ;
141141 default :
142142 return Other . Decoder . DecodeFields ( reader ) ;
143143 }
@@ -147,57 +147,49 @@ protected override ErrUnion Decode(string tag, enc.IJsonReader reader)
147147 #endregion
148148
149149 /// <summary>
150- /// <para>The auth error object </para>
150+ /// <para>Missing openid claims for the associated access token. </para>
151151 /// </summary>
152- public sealed class AuthError : ErrUnion
152+ public sealed class IncorrectOpenidScopes : OpenIdError
153153 {
154154 #pragma warning disable 108
155155
156156 /// <summary>
157157 /// <para>The encoder instance.</para>
158158 /// </summary>
159- internal static enc . StructEncoder < AuthError > Encoder = new AuthErrorEncoder ( ) ;
159+ internal static enc . StructEncoder < IncorrectOpenidScopes > Encoder = new IncorrectOpenidScopesEncoder ( ) ;
160160
161161 /// <summary>
162162 /// <para>The decoder instance.</para>
163163 /// </summary>
164- internal static enc . StructDecoder < AuthError > Decoder = new AuthErrorDecoder ( ) ;
164+ internal static enc . StructDecoder < IncorrectOpenidScopes > Decoder = new IncorrectOpenidScopesDecoder ( ) ;
165165
166166 /// <summary>
167- /// <para>Initializes a new instance of the <see cref="AuthError" /> class.</para>
167+ /// <para>Initializes a new instance of the <see cref="IncorrectOpenidScopes" />
168+ /// class.</para>
168169 /// </summary>
169- /// <param name="value">The value</param>
170- public AuthError ( global ::Dropbox . Api . Openid . AuthError value )
171- {
172- this . Value = value ;
173- }
174- /// <summary>
175- /// <para>Initializes a new instance of the <see cref="AuthError" /> class.</para>
176- /// </summary>
177- private AuthError ( )
170+ private IncorrectOpenidScopes ( )
178171 {
179172 }
180173
181174 /// <summary>
182- /// <para>Gets the value of this instance. </para>
175+ /// <para>A singleton instance of IncorrectOpenidScopes </para>
183176 /// </summary>
184- public global :: Dropbox . Api . Openid . AuthError Value { get ; private set ; }
177+ public static readonly IncorrectOpenidScopes Instance = new IncorrectOpenidScopes ( ) ;
185178
186179 #region Encoder class
187180
188181 /// <summary>
189- /// <para>Encoder for <see cref="AuthError " />.</para>
182+ /// <para>Encoder for <see cref="IncorrectOpenidScopes " />.</para>
190183 /// </summary>
191- private class AuthErrorEncoder : enc . StructEncoder < AuthError >
184+ private class IncorrectOpenidScopesEncoder : enc . StructEncoder < IncorrectOpenidScopes >
192185 {
193186 /// <summary>
194187 /// <para>Encode fields of given value.</para>
195188 /// </summary>
196189 /// <param name="value">The value.</param>
197190 /// <param name="writer">The writer.</param>
198- public override void EncodeFields ( AuthError value , enc . IJsonWriter writer )
191+ public override void EncodeFields ( IncorrectOpenidScopes value , enc . IJsonWriter writer )
199192 {
200- WriteProperty ( "auth_error" , value . Value , writer , global ::Dropbox . Api . Openid . AuthError . Encoder ) ;
201193 }
202194 }
203195
@@ -206,37 +198,20 @@ public override void EncodeFields(AuthError value, enc.IJsonWriter writer)
206198 #region Decoder class
207199
208200 /// <summary>
209- /// <para>Decoder for <see cref="AuthError " />.</para>
201+ /// <para>Decoder for <see cref="IncorrectOpenidScopes " />.</para>
210202 /// </summary>
211- private class AuthErrorDecoder : enc . StructDecoder < AuthError >
203+ private class IncorrectOpenidScopesDecoder : enc . StructDecoder < IncorrectOpenidScopes >
212204 {
213205 /// <summary>
214- /// <para>Create a new instance of type <see cref="AuthError" />.</para>
206+ /// <para>Create a new instance of type <see cref="IncorrectOpenidScopes"
207+ /// />.</para>
215208 /// </summary>
216209 /// <returns>The struct instance.</returns>
217- protected override AuthError Create ( )
210+ protected override IncorrectOpenidScopes Create ( )
218211 {
219- return new AuthError ( ) ;
212+ return IncorrectOpenidScopes . Instance ;
220213 }
221214
222- /// <summary>
223- /// <para>Set given field.</para>
224- /// </summary>
225- /// <param name="value">The field value.</param>
226- /// <param name="fieldName">The field name.</param>
227- /// <param name="reader">The json reader.</param>
228- protected override void SetField ( AuthError value , string fieldName , enc . IJsonReader reader )
229- {
230- switch ( fieldName )
231- {
232- case "auth_error" :
233- value . Value = global ::Dropbox . Api . Openid . AuthError . Decoder . Decode ( reader ) ;
234- break ;
235- default :
236- reader . Skip ( ) ;
237- break ;
238- }
239- }
240215 }
241216
242217 #endregion
@@ -245,7 +220,7 @@ protected override void SetField(AuthError value, string fieldName, enc.IJsonRea
245220 /// <summary>
246221 /// <para>The other object</para>
247222 /// </summary>
248- public sealed class Other : ErrUnion
223+ public sealed class Other : OpenIdError
249224 {
250225 #pragma warning disable 108
251226
0 commit comments