Skip to content

Commit 4bdaebf

Browse files
DropboxBotyuxiang-he
authored andcommitted
Automated Spec Update
f16378220aab09f7412206785b6bae0ab119a7c9 Change Notes: Common Namespace - DisplayName validation pattern is updated team_log_generated Namespace - Add ClassificationCreateReportDetails struct - Add ClassificationCreateReportFailDetails struct - Update EventDetails union to include ClassificationCreateReportDetails and ClassificationCreateReportFailDetails - Add ClassificationCreateReportType struct - Add ClassificationCreateReportFailType struct - Update EventType union to include ClassificationCreateReportType and ClassificationCreateReportFailType - Update EventTypeArg union to include classification_create_report and classification_create_report_fail ed6e389b2d16d19b21e68413ae8f4743dd9b9223 Change Notes: File Namespace: - Add UploadSessionStartError union - Add UploadSessionType union - Update UploadSessionFinishError union to include concurrent_sessions_data_not_allowed, concurrent_session_not_closed, concurrent_session_missing_data - Update UploadSessionType struct to include session_type - Update upload_session/start to include UploadSessionStartError - Update Comments Team Log Namespace: - Add AdminAlertingAlertConfiguration, AdminAlertingChangedAlertConfigDetails, MemberChangeResellerRoleDetails, TeamProfileAddBackgroundDetails, TeamProfileChangeBackgroundDetails, TeamProfileRemoveBackgroundDetails, AdminAlertingChangedAlertConfigType, MemberChangeResellerRoleType, TeamProfileAddBackgroundType, TeamProfileChangeBackgroundType, TeamProfileRemoveBackgroundType structs - Add AdminAlertingAlertStatePolicy, ResellerRole unions - Update EventCategory union to include admin_alerting - Update GovernancePolicyRemoveFoldersDetails struct to include reason - Update EventDetails union to include admin_alerting_changed_alert_config_details, member_change_reseller_role_details, team_profile_add_background_details, team_profile_change_background_details, team_profile_remove_background_details - Update EventType union to include admin_alerting_changed_alert_config, member_change_reseller_role, team_profile_add_background, team_profile_change_background, team_profile_remove_background - Update EventTypeArg to include admin_alerting_changed_alert_config, member_change_reseller_role, team_profile_add_background, team_profile_change_background, team_profile_remove_background - Update Examples Co-authored-by: Brent Bumann <[email protected]> de3a7718946ee79f1a0d5ca499b9d22b41cc7c84
1 parent b8a32e2 commit 4bdaebf

File tree

9 files changed

+1151
-2
lines changed

9 files changed

+1151
-2
lines changed
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
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>Created Classification report.</para>
15+
/// </summary>
16+
public class ClassificationCreateReportDetails
17+
{
18+
#pragma warning disable 108
19+
20+
/// <summary>
21+
/// <para>The encoder instance.</para>
22+
/// </summary>
23+
internal static enc.StructEncoder<ClassificationCreateReportDetails> Encoder = new ClassificationCreateReportDetailsEncoder();
24+
25+
/// <summary>
26+
/// <para>The decoder instance.</para>
27+
/// </summary>
28+
internal static enc.StructDecoder<ClassificationCreateReportDetails> Decoder = new ClassificationCreateReportDetailsDecoder();
29+
30+
/// <summary>
31+
/// <para>Initializes a new instance of the <see
32+
/// cref="ClassificationCreateReportDetails" /> class.</para>
33+
/// </summary>
34+
public ClassificationCreateReportDetails()
35+
{
36+
}
37+
38+
#region Encoder class
39+
40+
/// <summary>
41+
/// <para>Encoder for <see cref="ClassificationCreateReportDetails" />.</para>
42+
/// </summary>
43+
private class ClassificationCreateReportDetailsEncoder : enc.StructEncoder<ClassificationCreateReportDetails>
44+
{
45+
/// <summary>
46+
/// <para>Encode fields of given value.</para>
47+
/// </summary>
48+
/// <param name="value">The value.</param>
49+
/// <param name="writer">The writer.</param>
50+
public override void EncodeFields(ClassificationCreateReportDetails value, enc.IJsonWriter writer)
51+
{
52+
}
53+
}
54+
55+
#endregion
56+
57+
58+
#region Decoder class
59+
60+
/// <summary>
61+
/// <para>Decoder for <see cref="ClassificationCreateReportDetails" />.</para>
62+
/// </summary>
63+
private class ClassificationCreateReportDetailsDecoder : enc.StructDecoder<ClassificationCreateReportDetails>
64+
{
65+
/// <summary>
66+
/// <para>Create a new instance of type <see
67+
/// cref="ClassificationCreateReportDetails" />.</para>
68+
/// </summary>
69+
/// <returns>The struct instance.</returns>
70+
protected override ClassificationCreateReportDetails Create()
71+
{
72+
return new ClassificationCreateReportDetails();
73+
}
74+
75+
/// <summary>
76+
/// <para>Set given field.</para>
77+
/// </summary>
78+
/// <param name="value">The field value.</param>
79+
/// <param name="fieldName">The field name.</param>
80+
/// <param name="reader">The json reader.</param>
81+
protected override void SetField(ClassificationCreateReportDetails value, string fieldName, enc.IJsonReader reader)
82+
{
83+
switch (fieldName)
84+
{
85+
default:
86+
reader.Skip();
87+
break;
88+
}
89+
}
90+
}
91+
92+
#endregion
93+
}
94+
}
Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
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>Couldn't create Classification report.</para>
15+
/// </summary>
16+
public class ClassificationCreateReportFailDetails
17+
{
18+
#pragma warning disable 108
19+
20+
/// <summary>
21+
/// <para>The encoder instance.</para>
22+
/// </summary>
23+
internal static enc.StructEncoder<ClassificationCreateReportFailDetails> Encoder = new ClassificationCreateReportFailDetailsEncoder();
24+
25+
/// <summary>
26+
/// <para>The decoder instance.</para>
27+
/// </summary>
28+
internal static enc.StructDecoder<ClassificationCreateReportFailDetails> Decoder = new ClassificationCreateReportFailDetailsDecoder();
29+
30+
/// <summary>
31+
/// <para>Initializes a new instance of the <see
32+
/// cref="ClassificationCreateReportFailDetails" /> class.</para>
33+
/// </summary>
34+
/// <param name="failureReason">Failure reason.</param>
35+
public ClassificationCreateReportFailDetails(global::Dropbox.Api.Team.TeamReportFailureReason failureReason)
36+
{
37+
if (failureReason == null)
38+
{
39+
throw new sys.ArgumentNullException("failureReason");
40+
}
41+
42+
this.FailureReason = failureReason;
43+
}
44+
45+
/// <summary>
46+
/// <para>Initializes a new instance of the <see
47+
/// cref="ClassificationCreateReportFailDetails" /> 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 ClassificationCreateReportFailDetails()
53+
{
54+
}
55+
56+
/// <summary>
57+
/// <para>Failure reason.</para>
58+
/// </summary>
59+
public global::Dropbox.Api.Team.TeamReportFailureReason FailureReason { get; protected set; }
60+
61+
#region Encoder class
62+
63+
/// <summary>
64+
/// <para>Encoder for <see cref="ClassificationCreateReportFailDetails" />.</para>
65+
/// </summary>
66+
private class ClassificationCreateReportFailDetailsEncoder : enc.StructEncoder<ClassificationCreateReportFailDetails>
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(ClassificationCreateReportFailDetails value, enc.IJsonWriter writer)
74+
{
75+
WriteProperty("failure_reason", value.FailureReason, writer, global::Dropbox.Api.Team.TeamReportFailureReason.Encoder);
76+
}
77+
}
78+
79+
#endregion
80+
81+
82+
#region Decoder class
83+
84+
/// <summary>
85+
/// <para>Decoder for <see cref="ClassificationCreateReportFailDetails" />.</para>
86+
/// </summary>
87+
private class ClassificationCreateReportFailDetailsDecoder : enc.StructDecoder<ClassificationCreateReportFailDetails>
88+
{
89+
/// <summary>
90+
/// <para>Create a new instance of type <see
91+
/// cref="ClassificationCreateReportFailDetails" />.</para>
92+
/// </summary>
93+
/// <returns>The struct instance.</returns>
94+
protected override ClassificationCreateReportFailDetails Create()
95+
{
96+
return new ClassificationCreateReportFailDetails();
97+
}
98+
99+
/// <summary>
100+
/// <para>Set given field.</para>
101+
/// </summary>
102+
/// <param name="value">The field value.</param>
103+
/// <param name="fieldName">The field name.</param>
104+
/// <param name="reader">The json reader.</param>
105+
protected override void SetField(ClassificationCreateReportFailDetails value, string fieldName, enc.IJsonReader reader)
106+
{
107+
switch (fieldName)
108+
{
109+
case "failure_reason":
110+
value.FailureReason = global::Dropbox.Api.Team.TeamReportFailureReason.Decoder.Decode(reader);
111+
break;
112+
default:
113+
reader.Skip();
114+
break;
115+
}
116+
}
117+
}
118+
119+
#endregion
120+
}
121+
}
Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
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>The classification create report fail type object</para>
15+
/// </summary>
16+
public class ClassificationCreateReportFailType
17+
{
18+
#pragma warning disable 108
19+
20+
/// <summary>
21+
/// <para>The encoder instance.</para>
22+
/// </summary>
23+
internal static enc.StructEncoder<ClassificationCreateReportFailType> Encoder = new ClassificationCreateReportFailTypeEncoder();
24+
25+
/// <summary>
26+
/// <para>The decoder instance.</para>
27+
/// </summary>
28+
internal static enc.StructDecoder<ClassificationCreateReportFailType> Decoder = new ClassificationCreateReportFailTypeDecoder();
29+
30+
/// <summary>
31+
/// <para>Initializes a new instance of the <see
32+
/// cref="ClassificationCreateReportFailType" /> class.</para>
33+
/// </summary>
34+
/// <param name="description">The description</param>
35+
public ClassificationCreateReportFailType(string description)
36+
{
37+
if (description == null)
38+
{
39+
throw new sys.ArgumentNullException("description");
40+
}
41+
42+
this.Description = description;
43+
}
44+
45+
/// <summary>
46+
/// <para>Initializes a new instance of the <see
47+
/// cref="ClassificationCreateReportFailType" /> 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 ClassificationCreateReportFailType()
53+
{
54+
}
55+
56+
/// <summary>
57+
/// <para>Gets the description of the classification create report fail type</para>
58+
/// </summary>
59+
public string Description { get; protected set; }
60+
61+
#region Encoder class
62+
63+
/// <summary>
64+
/// <para>Encoder for <see cref="ClassificationCreateReportFailType" />.</para>
65+
/// </summary>
66+
private class ClassificationCreateReportFailTypeEncoder : enc.StructEncoder<ClassificationCreateReportFailType>
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(ClassificationCreateReportFailType value, enc.IJsonWriter writer)
74+
{
75+
WriteProperty("description", value.Description, writer, enc.StringEncoder.Instance);
76+
}
77+
}
78+
79+
#endregion
80+
81+
82+
#region Decoder class
83+
84+
/// <summary>
85+
/// <para>Decoder for <see cref="ClassificationCreateReportFailType" />.</para>
86+
/// </summary>
87+
private class ClassificationCreateReportFailTypeDecoder : enc.StructDecoder<ClassificationCreateReportFailType>
88+
{
89+
/// <summary>
90+
/// <para>Create a new instance of type <see
91+
/// cref="ClassificationCreateReportFailType" />.</para>
92+
/// </summary>
93+
/// <returns>The struct instance.</returns>
94+
protected override ClassificationCreateReportFailType Create()
95+
{
96+
return new ClassificationCreateReportFailType();
97+
}
98+
99+
/// <summary>
100+
/// <para>Set given field.</para>
101+
/// </summary>
102+
/// <param name="value">The field value.</param>
103+
/// <param name="fieldName">The field name.</param>
104+
/// <param name="reader">The json reader.</param>
105+
protected override void SetField(ClassificationCreateReportFailType value, string fieldName, enc.IJsonReader reader)
106+
{
107+
switch (fieldName)
108+
{
109+
case "description":
110+
value.Description = enc.StringDecoder.Instance.Decode(reader);
111+
break;
112+
default:
113+
reader.Skip();
114+
break;
115+
}
116+
}
117+
}
118+
119+
#endregion
120+
}
121+
}

0 commit comments

Comments
 (0)