/// <summary> /// Initializes a new instance of the <see cref="ProjectRelationships" /> class. /// </summary> /// <param name="Hub">Hub (required).</param> /// <param name="RootFolder">RootFolder (required).</param> public ProjectRelationships(JsonApiRelationshipsLinksInternalResource Hub = null, JsonApiRelationshipsLinksExternalResource RootFolder = null) { // to ensure "Hub" is required (not null) if (Hub == null) { throw new InvalidDataException("Hub is a required property for ProjectRelationships and cannot be null"); } else { this.Hub = Hub; } // to ensure "RootFolder" is required (not null) if (RootFolder == null) { throw new InvalidDataException("RootFolder is a required property for ProjectRelationships and cannot be null"); } else { this.RootFolder = RootFolder; } }
/// <summary> /// Initializes a new instance of the <see cref="VersionRelationships" /> class. /// </summary> /// <param name="Item">Item (required).</param> /// <param name="Refs">Refs (required).</param> /// <param name="Storage">Storage.</param> /// <param name="Derivatives">Derivatives.</param> /// <param name="Thumbnails">Thumbnails.</param> public VersionRelationships(JsonApiRelationshipsLinksInternalResource Item = null, JsonApiRelationshipsLinksRefs Refs = null, JsonApiRelationshipsLinksExternalResource Storage = null, JsonApiRelationshipsLinksExternalResource Derivatives = null, JsonApiRelationshipsLinksExternalResource Thumbnails = null) { // to ensure "Item" is required (not null) if (Item == null) { throw new InvalidDataException("Item is a required property for VersionRelationships and cannot be null"); } else { this.Item = Item; } // to ensure "Refs" is required (not null) if (Refs == null) { throw new InvalidDataException("Refs is a required property for VersionRelationships and cannot be null"); } else { this.Refs = Refs; } this.Storage = Storage; this.Derivatives = Derivatives; this.Thumbnails = Thumbnails; }