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

    const resources = [
      `${this.baseUrl}/api/v1/apps/${appId}`
    ];

    const request = this.http.delete(
      url,
      null,
      { resources }
    );
    return request;
  }
/**
   *
   * @param appId {String}
   * @description
   * Revokes all tokens for the specified application
   */
@param appId {String}
@description
Revokes all tokens for the specified application
@param appId { String } @description Revokes all tokens for the specified application
revokeOAuth2TokensForApplication(appId) {
    if (!appId) {
      return Promise.reject(new Error('OKTA API revokeOAuth2TokensForApplication parameter appId is required.'));
    }
    let url = `${this.baseUrl}/api/v1/apps/${appId}/tokens`;
    const resources = [
      `${this.baseUrl}/api/v1/apps/${appId}`
    ];
    const request = this.http.delete(
      url,
      null,
      { resources }
    );
    return request;
  }
revokeOAuth2TokensForApplication ( appId ) { if ( ! appId ) { return Promise . reject ( new Error ( 'OKTA API revokeOAuth2TokensForApplication parameter appId is required.' ) ) ; } let url = ` ${ this . baseUrl } ${ appId } ` ; const resources = [ ` ${ this . baseUrl } ${ appId } ` ] ; const request = this . http . delete ( url , null , { resources } ) ; return request ; }
@param appId {String}
 @description
 Revokes all tokens for the specified application
@param appId { String } @description Revokes all tokens for the specified application