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

    return new Collection(
      this,
      url,
      new ModelFactory(models.Csr),
    );
  }
/**
   *
   * @param idpId {String}
   * @description
   * Enumerates Certificate Signing Requests for an IdP
   * @returns {Collection} A collection that will yield {@link Csr} instances.
   */
@param idpId {String}
@description
Enumerates Certificate Signing Requests for an IdP
@returns {Collection} A collection that will yield  Csr instances.
@param idpId { String } @description Enumerates Certificate Signing Requests for an IdP @returns { Collection } A collection that will yield Csr instances .
listCsrsForIdentityProvider(idpId) {
    if (!idpId) {
      return Promise.reject(new Error('OKTA API listCsrsForIdentityProvider parameter idpId is required.'));
    }
    let url = `${this.baseUrl}/api/v1/idps/${idpId}/credentials/csrs`;
    return new Collection(
      this,
      url,
      new ModelFactory(models.Csr),
    );
  }
listCsrsForIdentityProvider ( idpId ) { if ( ! idpId ) { return Promise . reject ( new Error ( 'OKTA API listCsrsForIdentityProvider parameter idpId is required.' ) ) ; } let url = ` ${ this . baseUrl } ${ idpId } ` ; return new Collection ( this , url , new ModelFactory ( models . Csr ) , ) ; }
@param idpId {String}
 @description
 Enumerates Certificate Signing Requests for an IdP
 @returns {Collection} A collection that will yield {@link Csr} instances.
@param idpId { String } @description Enumerates Certificate Signing Requests for an IdP @returns { Collection } A collection that will yield { @link Csr } instances .