listAuthorizationServerPolicyRules(policyId, authServerId) {
    if (!policyId) {
      return Promise.reject(new Error('OKTA API listAuthorizationServerPolicyRules parameter policyId is required.'));
    }
    if (!authServerId) {
      return Promise.reject(new Error('OKTA API listAuthorizationServerPolicyRules parameter authServerId is required.'));
    }
    let url = `${this.baseUrl}/api/v1/authorizationServers/${authServerId}/policies/${policyId}/rules`;

    return new Collection(
      this,
      url,
      new ModelFactory(models.AuthorizationServerPolicyRule),
    );
  }
/**
   *
   * @param policyId {String}
   * @param authServerId {String}
   * @description
   * Enumerates all policy rules for the specified Custom Authorization Server and Policy.
   * @returns {Collection} A collection that will yield {@link AuthorizationServerPolicyRule} instances.
   */
@param policyId {String}
@param authServerId {String}
@description
Enumerates all policy rules for the specified Custom Authorization Server and Policy.
@returns {Collection} A collection that will yield  AuthorizationServerPolicyRule instances.
@param policyId { String } @param authServerId { String } @description Enumerates all policy rules for the specified Custom Authorization Server and Policy . @returns { Collection } A collection that will yield AuthorizationServerPolicyRule instances .
listAuthorizationServerPolicyRules(policyId, authServerId) {
    if (!policyId) {
      return Promise.reject(new Error('OKTA API listAuthorizationServerPolicyRules parameter policyId is required.'));
    }
    if (!authServerId) {
      return Promise.reject(new Error('OKTA API listAuthorizationServerPolicyRules parameter authServerId is required.'));
    }
    let url = `${this.baseUrl}/api/v1/authorizationServers/${authServerId}/policies/${policyId}/rules`;
    return new Collection(
      this,
      url,
      new ModelFactory(models.AuthorizationServerPolicyRule),
    );
  }
listAuthorizationServerPolicyRules ( policyId , authServerId ) { if ( ! policyId ) { return Promise . reject ( new Error ( 'OKTA API listAuthorizationServerPolicyRules parameter policyId is required.' ) ) ; } if ( ! authServerId ) { return Promise . reject ( new Error ( 'OKTA API listAuthorizationServerPolicyRules parameter authServerId is required.' ) ) ; } let url = ` ${ this . baseUrl } ${ authServerId } ${ policyId } ` ; return new Collection ( this , url , new ModelFactory ( models . AuthorizationServerPolicyRule ) , ) ; }
@param policyId {String}
 @param authServerId {String}
 @description
 Enumerates all policy rules for the specified Custom Authorization Server and Policy.
@param policyId { String } @param authServerId { String } @description Enumerates all policy rules for the specified Custom Authorization Server and Policy .