revokeCsrForIdentityProvider(idpId, csrId) {
    if (!idpId) {
      return Promise.reject(new Error('OKTA API revokeCsrForIdentityProvider parameter idpId is required.'));
    }
    if (!csrId) {
      return Promise.reject(new Error('OKTA API revokeCsrForIdentityProvider parameter csrId is required.'));
    }
    let url = `${this.baseUrl}/api/v1/idps/${idpId}/credentials/csrs/${csrId}`;

    const resources = [
      `${this.baseUrl}/api/v1/idps/${idpId}/credentials/csrs/${csrId}`,
      `${this.baseUrl}/api/v1/idps/${idpId}`
    ];

    const request = this.http.delete(
      url,
      null,
      { resources }
    );
    return request;
  }
/**
   *
   * @param idpId {String}
   * @param csrId {String}
   * @description
   * Revoke a Certificate Signing Request and delete the key pair from the IdP
   */
@param idpId {String}
@param csrId {String}
@description
Revoke a Certificate Signing Request and delete the key pair from the IdP
@param idpId { String } @param csrId { String } @description Revoke a Certificate Signing Request and delete the key pair from the IdP
revokeCsrForIdentityProvider(idpId, csrId) {
    if (!idpId) {
      return Promise.reject(new Error('OKTA API revokeCsrForIdentityProvider parameter idpId is required.'));
    }
    if (!csrId) {
      return Promise.reject(new Error('OKTA API revokeCsrForIdentityProvider parameter csrId is required.'));
    }
    let url = `${this.baseUrl}/api/v1/idps/${idpId}/credentials/csrs/${csrId}`;
    const resources = [
      `${this.baseUrl}/api/v1/idps/${idpId}/credentials/csrs/${csrId}`,
      `${this.baseUrl}/api/v1/idps/${idpId}`
    ];
    const request = this.http.delete(
      url,
      null,
      { resources }
    );
    return request;
  }
revokeCsrForIdentityProvider ( idpId , csrId ) { if ( ! idpId ) { return Promise . reject ( new Error ( 'OKTA API revokeCsrForIdentityProvider parameter idpId is required.' ) ) ; } if ( ! csrId ) { return Promise . reject ( new Error ( 'OKTA API revokeCsrForIdentityProvider parameter csrId is required.' ) ) ; } let url = ` ${ this . baseUrl } ${ idpId } ${ csrId } ` ; const resources = [ ` ${ this . baseUrl } ${ idpId } ${ csrId } ` , ` ${ this . baseUrl } ${ idpId } ` ] ; const request = this . http . delete ( url , null , { resources } ) ; return request ; }
@param idpId {String}
 @param csrId {String}
 @description
 Revoke a Certificate Signing Request and delete the key pair from the IdP
@param idpId { String } @param csrId { String } @description Revoke a Certificate Signing Request and delete the key pair from the IdP