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

    const resources = [
      `${this.baseUrl}/api/v1/authorizationServers/${authServerId}/policies/${policyId}/rules/${ruleId}`,
      `${this.baseUrl}/api/v1/authorizationServers/${authServerId}/policies/${policyId}`,
      `${this.baseUrl}/api/v1/authorizationServers/${authServerId}`
    ];

    const request = this.http.delete(
      url,
      null,
      { resources }
    );
    return request;
  }
/**
   *
   * @param policyId {String}
   * @param authServerId {String}
   * @param ruleId {String}
   * @description
   * Deletes a Policy Rule defined in the specified Custom Authorization Server and Policy.
   */
@param policyId {String}
@param authServerId {String}
@param ruleId {String}
@description
Deletes a Policy Rule defined in the specified Custom Authorization Server and Policy.
@param policyId { String } @param authServerId { String } @param ruleId { String } @description Deletes a Policy Rule defined in the specified Custom Authorization Server and Policy .
deleteAuthorizationServerPolicyRule(policyId, authServerId, ruleId) {
    if (!policyId) {
      return Promise.reject(new Error('OKTA API deleteAuthorizationServerPolicyRule parameter policyId is required.'));
    }
    if (!authServerId) {
      return Promise.reject(new Error('OKTA API deleteAuthorizationServerPolicyRule parameter authServerId is required.'));
    }
    if (!ruleId) {
      return Promise.reject(new Error('OKTA API deleteAuthorizationServerPolicyRule parameter ruleId is required.'));
    }
    let url = `${this.baseUrl}/api/v1/authorizationServers/${authServerId}/policies/${policyId}/rules/${ruleId}`;
    const resources = [
      `${this.baseUrl}/api/v1/authorizationServers/${authServerId}/policies/${policyId}/rules/${ruleId}`,
      `${this.baseUrl}/api/v1/authorizationServers/${authServerId}/policies/${policyId}`,
      `${this.baseUrl}/api/v1/authorizationServers/${authServerId}`
    ];
    const request = this.http.delete(
      url,
      null,
      { resources }
    );
    return request;
  }
deleteAuthorizationServerPolicyRule ( policyId , authServerId , ruleId ) { if ( ! policyId ) { return Promise . reject ( new Error ( 'OKTA API deleteAuthorizationServerPolicyRule parameter policyId is required.' ) ) ; } if ( ! authServerId ) { return Promise . reject ( new Error ( 'OKTA API deleteAuthorizationServerPolicyRule parameter authServerId is required.' ) ) ; } if ( ! ruleId ) { return Promise . reject ( new Error ( 'OKTA API deleteAuthorizationServerPolicyRule parameter ruleId is required.' ) ) ; } let url = ` ${ this . baseUrl } ${ authServerId } ${ policyId } ${ ruleId } ` ; const resources = [ ` ${ this . baseUrl } ${ authServerId } ${ policyId } ${ ruleId } ` , ` ${ this . baseUrl } ${ authServerId } ${ policyId } ` , ` ${ this . baseUrl } ${ authServerId } ` ] ; const request = this . http . delete ( url , null , { resources } ) ; return request ; }
@param policyId {String}
 @param authServerId {String}
 @param ruleId {String}
 @description
 Deletes a Policy Rule defined in the specified Custom Authorization Server and Policy.
@param policyId { String } @param authServerId { String } @param ruleId { String } @description Deletes a Policy Rule defined in the specified Custom Authorization Server and Policy .