Skip to content

Commit 7f870a2

Browse files
authored
Automated Spec Update (#225)
397eca2ba6c0fbc453fb8832ad5c562c89fd6502 Change Notes: Shared Links Namespace: - Update Comments Team Log Generated Namespace: - Update AdminAlertCategoryEnum union to include information_governance - Add AdminConsoleAppPermission union - Add AdminConsoleAppPolicy union - Update AdminRole union to include compliance_admin, content_admin, reporting_admin, security_admin - Add AppBlockedByPermissionsDetails struct - Add AppPermissionsChangedDetails struct - Update EventDetails union to include app_blocked_by_permissions_details, app_permissions_changed_details - Add AppBlockedByPermissionsType struct - Add AppPermissionsChangedType struct - Update EventType union to include app_blocked_by_permissions, app_permissions_changed - Update EventTypeArg union to include app_blocked_by_permissions, app_permissions_changed Co-authored-by: DropboxBot <DropboxBot@users.noreply.github.com>
1 parent b5dff87 commit 7f870a2

14 files changed

+2604
-2
lines changed

dropbox-sdk-dotnet/Dropbox.Api/Generated/Sharing/CreateSharedLinkWithSettingsError.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,9 @@ protected override void SetField(SettingsError value, string fieldName, enc.IJso
612612
}
613613

614614
/// <summary>
615-
/// <para>Access to the requested path is forbidden.</para>
615+
/// <para>The user is not allowed to create a shared link to the specified file. For
616+
/// example, this can occur if the file is restricted or if the user's links are <a
617+
/// href="https://help.dropbox.com/files-folders/share/banned-links">banned</a>.</para>
616618
/// </summary>
617619
public sealed class AccessDenied : CreateSharedLinkWithSettingsError
618620
{

dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/AdminAlertCategoryEnum.cs

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,28 @@ public DataLossProtection AsDataLossProtection
7979
}
8080
}
8181

82+
/// <summary>
83+
/// <para>Gets a value indicating whether this instance is InformationGovernance</para>
84+
/// </summary>
85+
public bool IsInformationGovernance
86+
{
87+
get
88+
{
89+
return this is InformationGovernance;
90+
}
91+
}
92+
93+
/// <summary>
94+
/// <para>Gets this instance as a InformationGovernance, or <c>null</c>.</para>
95+
/// </summary>
96+
public InformationGovernance AsInformationGovernance
97+
{
98+
get
99+
{
100+
return this as InformationGovernance;
101+
}
102+
}
103+
82104
/// <summary>
83105
/// <para>Gets a value indicating whether this instance is MalwareSharing</para>
84106
/// </summary>
@@ -215,6 +237,12 @@ public override void EncodeFields(AdminAlertCategoryEnum value, enc.IJsonWriter
215237
DataLossProtection.Encoder.EncodeFields((DataLossProtection)value, writer);
216238
return;
217239
}
240+
if (value is InformationGovernance)
241+
{
242+
WriteProperty(".tag", "information_governance", writer, enc.StringEncoder.Instance);
243+
InformationGovernance.Encoder.EncodeFields((InformationGovernance)value, writer);
244+
return;
245+
}
218246
if (value is MalwareSharing)
219247
{
220248
WriteProperty(".tag", "malware_sharing", writer, enc.StringEncoder.Instance);
@@ -282,6 +310,8 @@ protected override AdminAlertCategoryEnum Decode(string tag, enc.IJsonReader rea
282310
return AccountTakeover.Decoder.DecodeFields(reader);
283311
case "data_loss_protection":
284312
return DataLossProtection.Decoder.DecodeFields(reader);
313+
case "information_governance":
314+
return InformationGovernance.Decoder.DecodeFields(reader);
285315
case "malware_sharing":
286316
return MalwareSharing.Decoder.DecodeFields(reader);
287317
case "massive_file_operation":
@@ -439,6 +469,77 @@ protected override DataLossProtection Create()
439469
#endregion
440470
}
441471

472+
/// <summary>
473+
/// <para>The information governance object</para>
474+
/// </summary>
475+
public sealed class InformationGovernance : AdminAlertCategoryEnum
476+
{
477+
#pragma warning disable 108
478+
479+
/// <summary>
480+
/// <para>The encoder instance.</para>
481+
/// </summary>
482+
internal static enc.StructEncoder<InformationGovernance> Encoder = new InformationGovernanceEncoder();
483+
484+
/// <summary>
485+
/// <para>The decoder instance.</para>
486+
/// </summary>
487+
internal static enc.StructDecoder<InformationGovernance> Decoder = new InformationGovernanceDecoder();
488+
489+
/// <summary>
490+
/// <para>Initializes a new instance of the <see cref="InformationGovernance" />
491+
/// class.</para>
492+
/// </summary>
493+
private InformationGovernance()
494+
{
495+
}
496+
497+
/// <summary>
498+
/// <para>A singleton instance of InformationGovernance</para>
499+
/// </summary>
500+
public static readonly InformationGovernance Instance = new InformationGovernance();
501+
502+
#region Encoder class
503+
504+
/// <summary>
505+
/// <para>Encoder for <see cref="InformationGovernance" />.</para>
506+
/// </summary>
507+
private class InformationGovernanceEncoder : enc.StructEncoder<InformationGovernance>
508+
{
509+
/// <summary>
510+
/// <para>Encode fields of given value.</para>
511+
/// </summary>
512+
/// <param name="value">The value.</param>
513+
/// <param name="writer">The writer.</param>
514+
public override void EncodeFields(InformationGovernance value, enc.IJsonWriter writer)
515+
{
516+
}
517+
}
518+
519+
#endregion
520+
521+
#region Decoder class
522+
523+
/// <summary>
524+
/// <para>Decoder for <see cref="InformationGovernance" />.</para>
525+
/// </summary>
526+
private class InformationGovernanceDecoder : enc.StructDecoder<InformationGovernance>
527+
{
528+
/// <summary>
529+
/// <para>Create a new instance of type <see cref="InformationGovernance"
530+
/// />.</para>
531+
/// </summary>
532+
/// <returns>The struct instance.</returns>
533+
protected override InformationGovernance Create()
534+
{
535+
return InformationGovernance.Instance;
536+
}
537+
538+
}
539+
540+
#endregion
541+
}
542+
442543
/// <summary>
443544
/// <para>The malware sharing object</para>
444545
/// </summary>

0 commit comments

Comments
 (0)