/// <summary>
 /// Initializes a new instance of the <see cref="Workspace" /> class.
 /// </summary>
 /// <param name="Name">The current name of the workspace. (required).</param>
 /// <param name="Type">Type.</param>
 /// <param name="IsCurrentUserWorkspace">IsCurrentUserWorkspace.</param>
 /// <param name="User">User.</param>
 /// <param name="Bucket">Bucket.</param>
 /// <param name="DateCreated">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z.</param>
 /// <param name="DateModified">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z.</param>
 /// <param name="Summary">Summary.</param>
 /// <param name="Acl">Acl.</param>
 /// <param name="Description">Description.</param>
 public Workspace(string Name = null, TypeEnum?Type = null, bool?IsCurrentUserWorkspace = null, DomainEntityRef User = null, string Bucket = null, DateTime?DateCreated = null, DateTime?DateModified = null, WorkspaceSummary Summary = null, List <string> Acl = null, string Description = null)
 {
     this.Name = Name;
     this.Type = Type;
     this.IsCurrentUserWorkspace = IsCurrentUserWorkspace;
     this.User         = User;
     this.Bucket       = Bucket;
     this.DateCreated  = DateCreated;
     this.DateModified = DateModified;
     this.Summary      = Summary;
     this.Acl          = Acl;
     this.Description  = Description;
 }
示例#2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Workspace" /> class.
        /// </summary>



        /// <param name="Name">The current name of the workspace. (required).</param>



        /// <param name="Type">Type.</param>



        /// <param name="IsCurrentUserWorkspace">IsCurrentUserWorkspace.</param>



        /// <param name="User">User.</param>



        /// <param name="Bucket">Bucket.</param>



        /// <param name="DateCreated">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>



        /// <param name="DateModified">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>



        /// <param name="Summary">Summary.</param>



        /// <param name="Acl">Acl.</param>



        /// <param name="Description">Description.</param>



        public Workspace(string Name = null, TypeEnum?Type = null, bool?IsCurrentUserWorkspace = null, UriReference User = null, string Bucket = null, DateTime?DateCreated = null, DateTime?DateModified = null, WorkspaceSummary Summary = null, List <string> Acl = null, string Description = null)
        {
            // to ensure "Name" is required (not null)
            if (Name == null)
            {
                throw new InvalidDataException("Name is a required property for Workspace and cannot be null");
            }
            else
            {
                this.Name = Name;
            }



            this.Type = Type;



            this.IsCurrentUserWorkspace = IsCurrentUserWorkspace;



            this.User = User;



            this.Bucket = Bucket;



            this.DateCreated = DateCreated;



            this.DateModified = DateModified;



            this.Summary = Summary;



            this.Acl = Acl;



            this.Description = Description;
        }