Esempio n. 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="InlineObject62" /> class.
        /// </summary>
        /// <param name="username">Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. (required).</param>
        /// <param name="lastName">lastName.</param>
        /// <param name="firstName">firstName.</param>
        /// <param name="email">email.</param>
        /// <param name="isSuperuser">Designates that this user has all permissions without explicitly assigning them..</param>
        /// <param name="isStaff">Designates whether the user can log into this admin site..</param>
        /// <param name="isActive">Designates whether this user should be treated as active. Unselect this instead of deleting accounts..</param>
        /// <param name="name">name.</param>
        /// <param name="role">role.</param>
        /// <param name="roleData">roleData.</param>
        /// <param name="organization">organization.</param>
        public InlineObject62(string username = default(string), string lastName = default(string), string firstName = default(string), string email = default(string), bool isSuperuser = default(bool), bool isStaff = default(bool), bool isActive = default(bool), string name = default(string), int?role = default(int?), ApiV1UsersUsersRoleData roleData = default(ApiV1UsersUsersRoleData), string organization = default(string))
        {
            // to ensure "username" is required (not null)
            if (username == null)
            {
                throw new InvalidDataException("username is a required property for InlineObject62 and cannot be null");
            }
            else
            {
                this.Username = username;
            }

            this.Role         = role;
            this.Organization = organization;
            this.LastName     = lastName;
            this.FirstName    = firstName;
            this.Email        = email;
            this.IsSuperuser  = isSuperuser;
            this.IsStaff      = isStaff;
            this.IsActive     = isActive;
            this.Name         = name;
            this.Role         = role;
            this.RoleData     = roleData;
            this.Organization = organization;
        }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="InlineObject64" /> class.
 /// </summary>
 /// <param name="username">Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only..</param>
 /// <param name="lastName">lastName.</param>
 /// <param name="firstName">firstName.</param>
 /// <param name="email">email.</param>
 /// <param name="isSuperuser">Designates that this user has all permissions without explicitly assigning them..</param>
 /// <param name="isStaff">Designates whether the user can log into this admin site..</param>
 /// <param name="isActive">Designates whether this user should be treated as active. Unselect this instead of deleting accounts..</param>
 /// <param name="name">name.</param>
 /// <param name="role">role.</param>
 /// <param name="roleData">roleData.</param>
 /// <param name="organization">organization.</param>
 public InlineObject64(string username = default(string), string lastName = default(string), string firstName = default(string), string email = default(string), bool isSuperuser = default(bool), bool isStaff = default(bool), bool isActive = default(bool), string name = default(string), int?role = default(int?), ApiV1UsersUsersRoleData roleData = default(ApiV1UsersUsersRoleData), string organization = default(string))
 {
     this.Role         = role;
     this.Organization = organization;
     this.Username     = username;
     this.LastName     = lastName;
     this.FirstName    = firstName;
     this.Email        = email;
     this.IsSuperuser  = isSuperuser;
     this.IsStaff      = isStaff;
     this.IsActive     = isActive;
     this.Name         = name;
     this.Role         = role;
     this.RoleData     = roleData;
     this.Organization = organization;
 }