createUserType(userType) {
    if (!userType) {
      return Promise.reject(new Error('OKTA API createUserType parameter userType is required.'));
    }
    let url = `${this.baseUrl}/api/v1/meta/types/user`;

    const resources = [];

    const request = this.http.postJson(
      url,
      {
        body: userType
      },
      { resources }
    );
    return request.then(jsonRes => new models.UserType(jsonRes, this));
  }
/**
   *
   * @param {UserType} userType
   * @description
   * Creates a new User Type. A default User Type is automatically created along with your org, and you may add another 9 User Types for a maximum of 10.
   * @returns {Promise<UserType>}
   */
@param {UserType} userType
@description
Creates a new User Type. A default User Type is automatically created along with your org, and you may add another 9 User Types for a maximum of 10.
@returns {Promise}
@param { UserType } userType @description Creates a new User Type . A default User Type is automatically created along with your org and you may add another 9 User Types for a maximum of 10 . @returns { Promise }
createUserType(userType) {
    if (!userType) {
      return Promise.reject(new Error('OKTA API createUserType parameter userType is required.'));
    }
    let url = `${this.baseUrl}/api/v1/meta/types/user`;
    const resources = [];
    const request = this.http.postJson(
      url,
      {
        body: userType
      },
      { resources }
    );
    return request.then(jsonRes => new models.UserType(jsonRes, this));
  }
createUserType ( userType ) { if ( ! userType ) { return Promise . reject ( new Error ( 'OKTA API createUserType parameter userType is required.' ) ) ; } let url = ` ${ this . baseUrl } ` ; const resources = [ ] ; const request = this . http . postJson ( url , { body : userType } , { resources } ) ; return request . then ( jsonRes => new models . UserType ( jsonRes , this ) ) ; }
@param {UserType} userType
 @description
 Creates a new User Type.
@param { UserType } userType @description Creates a new User Type .