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

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