public static string AsString(this SharingLinkScopeOptions option) { switch (option) { case SharingLinkScopeOptions.Anonymous: return("anonymous"); case SharingLinkScopeOptions.Organization: return("organization"); default: throw new ArgumentOutOfRangeException(nameof(option), $"Unknown {option.GetType().Name} type supplied."); } }
public CreateSharingLinkRequest(SharingLinkTypeOptions type, SharingLinkScopeOptions scope) { Type = type.AsString(); Scope = scope.AsString(); }