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

    return new Collection(
      this,
      url,
      new factories.PolicyRule(),
    );
  }
/**
   *
   * @param policyId {String}
   * @description
   * Enumerates all policy rules.
   * @returns {Collection} A collection that will yield {@link PolicyRule} instances.
   */
@param policyId {String}
@description
Enumerates all policy rules.
@returns {Collection} A collection that will yield  PolicyRule instances.
@param policyId { String } @description Enumerates all policy rules . @returns { Collection } A collection that will yield PolicyRule instances .
listPolicyRules(policyId) {
    if (!policyId) {
      return Promise.reject(new Error('OKTA API listPolicyRules parameter policyId is required.'));
    }
    let url = `${this.baseUrl}/api/v1/policies/${policyId}/rules`;
    return new Collection(
      this,
      url,
      new factories.PolicyRule(),
    );
  }
listPolicyRules ( policyId ) { if ( ! policyId ) { return Promise . reject ( new Error ( 'OKTA API listPolicyRules parameter policyId is required.' ) ) ; } let url = ` ${ this . baseUrl } ${ policyId } ` ; return new Collection ( this , url , new factories . PolicyRule ( ) , ) ; }
@param policyId {String}
 @description
 Enumerates all policy rules.
@param policyId { String } @description Enumerates all policy rules .