Skip to content

Commit 0986b77

Browse files
authored
Automated Spec Update (#171)
a3171e4f2732b2d9179325eea9c1471f9e7632c3 Change Notes: team_log Namespace: - Add DropboxPasswordsExportedDetails struct - Add ClassificationChangePolicyDetails struct - Add DropboxPasswordsExportedType struct - Add DropboxPasswordsNewDeviceEnrolledType struct - Add ClassificationChangePolicyType struct - Add DropboxPasswordsNewDeviceEnrolledDetails struct - Add ClassificationPolicyEnumWrapper union - Add ClassificationType union - Update EventDetails union - Update EventType union - Update Comments # No need to specify what comments have changed Remove stone_fixtures Namespace Co-authored-by: Karandeep Johar <[email protected]> abbb93f40fa7adb822b5b5354e0a53cc257dfbea 976f141d49dd7bb532a709a1cecb47529d341f95 Co-authored-by: DropboxBot <[email protected]>
1 parent 98de68b commit 0986b77

16 files changed

+2245
-268
lines changed

dropbox-sdk-dotnet/Dropbox.Api/Generated/StoneFixtures/EmptyContainer.cs

Lines changed: 0 additions & 92 deletions
This file was deleted.

dropbox-sdk-dotnet/Dropbox.Api/Generated/StoneFixtures/MixedInternalOnlyContainer.cs

Lines changed: 0 additions & 117 deletions
This file was deleted.
Lines changed: 155 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,155 @@
1+
// <auto-generated>
2+
// Auto-generated by StoneAPI, do not modify.
3+
// </auto-generated>
4+
5+
namespace Dropbox.Api.TeamLog
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>Changed classification policy for team.</para>
15+
/// </summary>
16+
public class ClassificationChangePolicyDetails
17+
{
18+
#pragma warning disable 108
19+
20+
/// <summary>
21+
/// <para>The encoder instance.</para>
22+
/// </summary>
23+
internal static enc.StructEncoder<ClassificationChangePolicyDetails> Encoder = new ClassificationChangePolicyDetailsEncoder();
24+
25+
/// <summary>
26+
/// <para>The decoder instance.</para>
27+
/// </summary>
28+
internal static enc.StructDecoder<ClassificationChangePolicyDetails> Decoder = new ClassificationChangePolicyDetailsDecoder();
29+
30+
/// <summary>
31+
/// <para>Initializes a new instance of the <see
32+
/// cref="ClassificationChangePolicyDetails" /> class.</para>
33+
/// </summary>
34+
/// <param name="previousValue">Previous classification policy.</param>
35+
/// <param name="newValue">New classification policy.</param>
36+
/// <param name="classificationType">Policy type.</param>
37+
public ClassificationChangePolicyDetails(ClassificationPolicyEnumWrapper previousValue,
38+
ClassificationPolicyEnumWrapper newValue,
39+
ClassificationType classificationType)
40+
{
41+
if (previousValue == null)
42+
{
43+
throw new sys.ArgumentNullException("previousValue");
44+
}
45+
46+
if (newValue == null)
47+
{
48+
throw new sys.ArgumentNullException("newValue");
49+
}
50+
51+
if (classificationType == null)
52+
{
53+
throw new sys.ArgumentNullException("classificationType");
54+
}
55+
56+
this.PreviousValue = previousValue;
57+
this.NewValue = newValue;
58+
this.ClassificationType = classificationType;
59+
}
60+
61+
/// <summary>
62+
/// <para>Initializes a new instance of the <see
63+
/// cref="ClassificationChangePolicyDetails" /> 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 ClassificationChangePolicyDetails()
69+
{
70+
}
71+
72+
/// <summary>
73+
/// <para>Previous classification policy.</para>
74+
/// </summary>
75+
public ClassificationPolicyEnumWrapper PreviousValue { get; protected set; }
76+
77+
/// <summary>
78+
/// <para>New classification policy.</para>
79+
/// </summary>
80+
public ClassificationPolicyEnumWrapper NewValue { get; protected set; }
81+
82+
/// <summary>
83+
/// <para>Policy type.</para>
84+
/// </summary>
85+
public ClassificationType ClassificationType { get; protected set; }
86+
87+
#region Encoder class
88+
89+
/// <summary>
90+
/// <para>Encoder for <see cref="ClassificationChangePolicyDetails" />.</para>
91+
/// </summary>
92+
private class ClassificationChangePolicyDetailsEncoder : enc.StructEncoder<ClassificationChangePolicyDetails>
93+
{
94+
/// <summary>
95+
/// <para>Encode fields of given value.</para>
96+
/// </summary>
97+
/// <param name="value">The value.</param>
98+
/// <param name="writer">The writer.</param>
99+
public override void EncodeFields(ClassificationChangePolicyDetails value, enc.IJsonWriter writer)
100+
{
101+
WriteProperty("previous_value", value.PreviousValue, writer, global::Dropbox.Api.TeamLog.ClassificationPolicyEnumWrapper.Encoder);
102+
WriteProperty("new_value", value.NewValue, writer, global::Dropbox.Api.TeamLog.ClassificationPolicyEnumWrapper.Encoder);
103+
WriteProperty("classification_type", value.ClassificationType, writer, global::Dropbox.Api.TeamLog.ClassificationType.Encoder);
104+
}
105+
}
106+
107+
#endregion
108+
109+
110+
#region Decoder class
111+
112+
/// <summary>
113+
/// <para>Decoder for <see cref="ClassificationChangePolicyDetails" />.</para>
114+
/// </summary>
115+
private class ClassificationChangePolicyDetailsDecoder : enc.StructDecoder<ClassificationChangePolicyDetails>
116+
{
117+
/// <summary>
118+
/// <para>Create a new instance of type <see
119+
/// cref="ClassificationChangePolicyDetails" />.</para>
120+
/// </summary>
121+
/// <returns>The struct instance.</returns>
122+
protected override ClassificationChangePolicyDetails Create()
123+
{
124+
return new ClassificationChangePolicyDetails();
125+
}
126+
127+
/// <summary>
128+
/// <para>Set given field.</para>
129+
/// </summary>
130+
/// <param name="value">The field value.</param>
131+
/// <param name="fieldName">The field name.</param>
132+
/// <param name="reader">The json reader.</param>
133+
protected override void SetField(ClassificationChangePolicyDetails value, string fieldName, enc.IJsonReader reader)
134+
{
135+
switch (fieldName)
136+
{
137+
case "previous_value":
138+
value.PreviousValue = global::Dropbox.Api.TeamLog.ClassificationPolicyEnumWrapper.Decoder.Decode(reader);
139+
break;
140+
case "new_value":
141+
value.NewValue = global::Dropbox.Api.TeamLog.ClassificationPolicyEnumWrapper.Decoder.Decode(reader);
142+
break;
143+
case "classification_type":
144+
value.ClassificationType = global::Dropbox.Api.TeamLog.ClassificationType.Decoder.Decode(reader);
145+
break;
146+
default:
147+
reader.Skip();
148+
break;
149+
}
150+
}
151+
}
152+
153+
#endregion
154+
}
155+
}

0 commit comments

Comments
 (0)