suspendUser(userId) {
    if (!userId) {
      return Promise.reject(new Error('OKTA API suspendUser parameter userId is required.'));
    }
    let url = `${this.baseUrl}/api/v1/users/${userId}/lifecycle/suspend`;

    const resources = [
      `${this.baseUrl}/api/v1/users/${userId}`
    ];

    const request = this.http.post(
      url,
      {
        headers: {
          'Content-Type': 'application/json', 'Accept': 'application/json',
        },
      },
      { resources }
    );
    return request;
  }
/**
   *
   * @param userId {String}
   * @description
   * Suspends a user.  This operation can only be performed on users with an `ACTIVE` status.  The user will have a status of `SUSPENDED` when the process is complete.
   */
@param userId {String}
@description
Suspends a user.  This operation can only be performed on users with an `ACTIVE` status.  The user will have a status of `SUSPENDED` when the process is complete.
@param userId { String } @description Suspends a user . This operation can only be performed on users with an ` ACTIVE ` status . The user will have a status of ` SUSPENDED ` when the process is complete .
suspendUser(userId) {
    if (!userId) {
      return Promise.reject(new Error('OKTA API suspendUser parameter userId is required.'));
    }
    let url = `${this.baseUrl}/api/v1/users/${userId}/lifecycle/suspend`;
    const resources = [
      `${this.baseUrl}/api/v1/users/${userId}`
    ];
    const request = this.http.post(
      url,
      {
        headers: {
          'Content-Type': 'application/json', 'Accept': 'application/json',
        },
      },
      { resources }
    );
    return request;
  }
suspendUser ( userId ) { if ( ! userId ) { return Promise . reject ( new Error ( 'OKTA API suspendUser parameter userId is required.' ) ) ; } let url = ` ${ this . baseUrl } ${ userId } ` ; const resources = [ ` ${ this . baseUrl } ${ userId } ` ] ; const request = this . http . post ( url , { headers : { 'Content-Type' : 'application/json' , 'Accept' : 'application/json' , } , } , { resources } ) ; return request ; }
@param userId {String}
 @description
 Suspends a user.
@param userId { String } @description Suspends a user .