import Check from './Check'; import {RestRequestConfig} from '../../../../../Rest'; import {AuthProfileResource} from '../../../../../definitions'; import Parent from '..'; import RingCentral from '../../../../..'; class Index { rc: RingCentral; parent: Parent; constructor(parent: Parent) { this.parent = parent; this.rc = parent.rc; } path(): string { return `${this.parent.path()}/authz-profile`; } /** * Operation: Get Authorization Profile * Rate Limit Group: Medium * Http get /restapi/v1.0/account/{accountId}/extension/{extensionId}/authz-profile */ async get(config?: RestRequestConfig): Promise { const r = await this.rc.get( this.path(), undefined, config ); return r.data; } check(): Check { return new Check(this); } } export default Index;