deactivateInlineHook(inlineHookId) {
    if (!inlineHookId) {
      return Promise.reject(new Error('OKTA API deactivateInlineHook parameter inlineHookId is required.'));
    }
    let url = `${this.baseUrl}/api/v1/inlineHooks/${inlineHookId}/lifecycle/deactivate`;

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

    const request = this.http.postJson(
      url,
      null,
      { resources }
    );
    return request.then(jsonRes => new models.InlineHook(jsonRes, this));
  }
/**
   *
   * @param inlineHookId {String}
   * @description
   * Deactivates the Inline Hook matching the provided id
   * @returns {Promise<InlineHook>}
   */
@param inlineHookId {String}
@description
Deactivates the Inline Hook matching the provided id
@returns {Promise}
@param inlineHookId { String } @description Deactivates the Inline Hook matching the provided id @returns { Promise }
deactivateInlineHook(inlineHookId) {
    if (!inlineHookId) {
      return Promise.reject(new Error('OKTA API deactivateInlineHook parameter inlineHookId is required.'));
    }
    let url = `${this.baseUrl}/api/v1/inlineHooks/${inlineHookId}/lifecycle/deactivate`;
    const resources = [
      `${this.baseUrl}/api/v1/inlineHooks/${inlineHookId}`
    ];
    const request = this.http.postJson(
      url,
      null,
      { resources }
    );
    return request.then(jsonRes => new models.InlineHook(jsonRes, this));
  }
deactivateInlineHook ( inlineHookId ) { if ( ! inlineHookId ) { return Promise . reject ( new Error ( 'OKTA API deactivateInlineHook parameter inlineHookId is required.' ) ) ; } let url = ` ${ this . baseUrl } ${ inlineHookId } ` ; const resources = [ ` ${ this . baseUrl } ${ inlineHookId } ` ] ; const request = this . http . postJson ( url , null , { resources } ) ; return request . then ( jsonRes => new models . InlineHook ( jsonRes , this ) ) ; }
@param inlineHookId {String}
 @description
 Deactivates the Inline Hook matching the provided id
 @returns {Promise<InlineHook>}
@param inlineHookId { String } @description Deactivates the Inline Hook matching the provided id @returns { Promise<InlineHook > }