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

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

    const request = this.http.postJson(
      url,
      {
        body: inlineHookPayload
      },
      { resources }
    );
    return request.then(jsonRes => new models.InlineHookResponse(jsonRes, this));
  }
/**
   *
   * @param inlineHookId {String}
   * @param {InlineHookPayload} inlineHookPayload
   * @description
   * Executes the Inline Hook matching the provided inlineHookId using the request body as the input. This will send the provided data through the Channel and return a response if it matches the correct data contract. This execution endpoint should only be used for testing purposes.
   * @returns {Promise<InlineHookResponse>}
   */
@param inlineHookId {String}
@param {InlineHookPayload} inlineHookPayload
@description
Executes the Inline Hook matching the provided inlineHookId using the request body as the input. This will send the provided data through the Channel and return a response if it matches the correct data contract. This execution endpoint should only be used for testing purposes.
@returns {Promise}
@param inlineHookId { String } @param { InlineHookPayload } inlineHookPayload @description Executes the Inline Hook matching the provided inlineHookId using the request body as the input . This will send the provided data through the Channel and return a response if it matches the correct data contract . This execution endpoint should only be used for testing purposes . @returns { Promise }
executeInlineHook(inlineHookId, inlineHookPayload) {
    if (!inlineHookId) {
      return Promise.reject(new Error('OKTA API executeInlineHook parameter inlineHookId is required.'));
    }
    if (!inlineHookPayload) {
      return Promise.reject(new Error('OKTA API executeInlineHook parameter inlineHookPayload is required.'));
    }
    let url = `${this.baseUrl}/api/v1/inlineHooks/${inlineHookId}/execute`;
    const resources = [
      `${this.baseUrl}/api/v1/inlineHooks/${inlineHookId}`
    ];
    const request = this.http.postJson(
      url,
      {
        body: inlineHookPayload
      },
      { resources }
    );
    return request.then(jsonRes => new models.InlineHookResponse(jsonRes, this));
  }
executeInlineHook ( inlineHookId , inlineHookPayload ) { if ( ! inlineHookId ) { return Promise . reject ( new Error ( 'OKTA API executeInlineHook parameter inlineHookId is required.' ) ) ; } if ( ! inlineHookPayload ) { return Promise . reject ( new Error ( 'OKTA API executeInlineHook parameter inlineHookPayload is required.' ) ) ; } let url = ` ${ this . baseUrl } ${ inlineHookId } ` ; const resources = [ ` ${ this . baseUrl } ${ inlineHookId } ` ] ; const request = this . http . postJson ( url , { body : inlineHookPayload } , { resources } ) ; return request . then ( jsonRes => new models . InlineHookResponse ( jsonRes , this ) ) ; }
@param inlineHookId {String}
 @param {InlineHookPayload} inlineHookPayload
 @description
 Executes the Inline Hook matching the provided inlineHookId using the request body as the input.
@param inlineHookId { String } @param { InlineHookPayload } inlineHookPayload @description Executes the Inline Hook matching the provided inlineHookId using the request body as the input .