/// <summary>
 /// Initializes a new instance of the <see cref="CreateItemDataAttributes" /> class.
 /// </summary>
 /// <param name="DisplayName">DisplayName (required).</param>
 /// <param name="Extension">Extension (required).</param>
 public CreateItemDataAttributes(string DisplayName = null, BaseAttributesExtensionObject Extension = null)
 {
     // to ensure "DisplayName" is required (not null)
     if (DisplayName == null)
     {
         throw new InvalidDataException("DisplayName is a required property for CreateItemDataAttributes and cannot be null");
     }
     else
     {
         this.DisplayName = DisplayName;
     }
     // to ensure "Extension" is required (not null)
     if (Extension == null)
     {
         throw new InvalidDataException("Extension is a required property for CreateItemDataAttributes and cannot be null");
     }
     else
     {
         this.Extension = Extension;
     }
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HubAttributes" /> class.
 /// </summary>
 /// <param name="Name">displayable name of the hub (required).</param>
 /// <param name="Extension">Extension (required).</param>
 public HubAttributes(string Name = null, BaseAttributesExtensionObject Extension = null)
 {
     // to ensure "Name" is required (not null)
     if (Name == null)
     {
         throw new InvalidDataException("Name is a required property for HubAttributes and cannot be null");
     }
     else
     {
         this.Name = Name;
     }
     // to ensure "Extension" is required (not null)
     if (Extension == null)
     {
         throw new InvalidDataException("Extension is a required property for HubAttributes and cannot be null");
     }
     else
     {
         this.Extension = Extension;
     }
 }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="VersionAttributes" /> class.
 /// </summary>
 /// <param name="Name">filename used when synced to local disk (required).</param>
 /// <param name="DisplayName">displayable name of the version (required).</param>
 /// <param name="VersionNumber">version number of this version (required).</param>
 /// <param name="MimeType">mimetype of the version&#x60;s content.</param>
 /// <param name="FileType">file type, only present if this version represents a file.</param>
 /// <param name="StorageSize">file size in bytes, only present if this version represents a file.</param>
 /// <param name="Extension">Extension (required).</param>
 public VersionAttributes(string Name = null, string DisplayName = null, int?VersionNumber = null, string MimeType = null, string FileType = null, long?StorageSize = null, BaseAttributesExtensionObject Extension = null)
 {
     // to ensure "Name" is required (not null)
     if (Name == null)
     {
         throw new InvalidDataException("Name is a required property for VersionAttributes and cannot be null");
     }
     else
     {
         this.Name = Name;
     }
     // to ensure "DisplayName" is required (not null)
     if (DisplayName == null)
     {
         throw new InvalidDataException("DisplayName is a required property for VersionAttributes and cannot be null");
     }
     else
     {
         this.DisplayName = DisplayName;
     }
     // to ensure "VersionNumber" is required (not null)
     if (VersionNumber == null)
     {
         throw new InvalidDataException("VersionNumber is a required property for VersionAttributes and cannot be null");
     }
     else
     {
         this.VersionNumber = VersionNumber;
     }
     // to ensure "Extension" is required (not null)
     if (Extension == null)
     {
         throw new InvalidDataException("Extension is a required property for VersionAttributes and cannot be null");
     }
     else
     {
         this.Extension = Extension;
     }
     this.MimeType    = MimeType;
     this.FileType    = FileType;
     this.StorageSize = StorageSize;
 }
Example #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RelRefMeta" /> class.
 /// </summary>
 /// <param name="RefType">RefType (required).</param>
 /// <param name="Direction">describes the direction of the reference relative to the resource the refs are queried for (required).</param>
 /// <param name="FromId">FromId (required).</param>
 /// <param name="FromType">FromType (required).</param>
 /// <param name="ToId">ToId (required).</param>
 /// <param name="ToType">ToType (required).</param>
 /// <param name="Extension">Extension (required).</param>
 public RelRefMeta(RefTypeEnum?RefType = null, DirectionEnum?Direction = null, string FromId = null, FromTypeEnum?FromType = null, string ToId = null, ToTypeEnum?ToType = null, BaseAttributesExtensionObject Extension = null)
 {
     // to ensure "RefType" is required (not null)
     if (RefType == null)
     {
         throw new InvalidDataException("RefType is a required property for RelRefMeta and cannot be null");
     }
     else
     {
         this.RefType = RefType;
     }
     // to ensure "Direction" is required (not null)
     if (Direction == null)
     {
         throw new InvalidDataException("Direction is a required property for RelRefMeta and cannot be null");
     }
     else
     {
         this.Direction = Direction;
     }
     // to ensure "FromId" is required (not null)
     if (FromId == null)
     {
         throw new InvalidDataException("FromId is a required property for RelRefMeta and cannot be null");
     }
     else
     {
         this.FromId = FromId;
     }
     // to ensure "FromType" is required (not null)
     if (FromType == null)
     {
         throw new InvalidDataException("FromType is a required property for RelRefMeta and cannot be null");
     }
     else
     {
         this.FromType = FromType;
     }
     // to ensure "ToId" is required (not null)
     if (ToId == null)
     {
         throw new InvalidDataException("ToId is a required property for RelRefMeta and cannot be null");
     }
     else
     {
         this.ToId = ToId;
     }
     // to ensure "ToType" is required (not null)
     if (ToType == null)
     {
         throw new InvalidDataException("ToType is a required property for RelRefMeta and cannot be null");
     }
     else
     {
         this.ToType = ToType;
     }
     // to ensure "Extension" is required (not null)
     if (Extension == null)
     {
         throw new InvalidDataException("Extension is a required property for RelRefMeta and cannot be null");
     }
     else
     {
         this.Extension = Extension;
     }
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="FolderAttributes" /> class.
 /// </summary>
 /// <param name="Name">filename used when synced to local disk (required).</param>
 /// <param name="DisplayName">displayable name of the folder (required).</param>
 /// <param name="ObjectCount">number of contained sub-folders and items (required).</param>
 /// <param name="Extension">Extension (required).</param>
 public FolderAttributes(string Name = null, string DisplayName = null, int?ObjectCount = null, BaseAttributesExtensionObject Extension = null)
 {
     // to ensure "Name" is required (not null)
     if (Name == null)
     {
         throw new InvalidDataException("Name is a required property for FolderAttributes and cannot be null");
     }
     else
     {
         this.Name = Name;
     }
     // to ensure "DisplayName" is required (not null)
     if (DisplayName == null)
     {
         throw new InvalidDataException("DisplayName is a required property for FolderAttributes and cannot be null");
     }
     else
     {
         this.DisplayName = DisplayName;
     }
     // to ensure "ObjectCount" is required (not null)
     if (ObjectCount == null)
     {
         throw new InvalidDataException("ObjectCount is a required property for FolderAttributes and cannot be null");
     }
     else
     {
         this.ObjectCount = ObjectCount;
     }
     // to ensure "Extension" is required (not null)
     if (Extension == null)
     {
         throw new InvalidDataException("Extension is a required property for FolderAttributes and cannot be null");
     }
     else
     {
         this.Extension = Extension;
     }
 }