|
| 1 | +/* |
| 2 | + * This code was generated by |
| 3 | + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ |
| 4 | + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ |
| 5 | + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ |
| 6 | + * |
| 7 | + * Twilio - Intelligence |
| 8 | + * This is the public Twilio REST API. |
| 9 | + * |
| 10 | + * NOTE: This class is auto generated by OpenAPI Generator. |
| 11 | + * https://openapi-generator.tech |
| 12 | + * Do not edit the class manually. |
| 13 | + */ |
| 14 | + |
| 15 | +import IntelligenceBase from "../IntelligenceBase"; |
| 16 | +import Version from "../../base/Version"; |
| 17 | +import { ServiceListInstance } from "./v2/service"; |
| 18 | +import { TranscriptListInstance } from "./v2/transcript"; |
| 19 | + |
| 20 | +export default class V2 extends Version { |
| 21 | + /** |
| 22 | + * Initialize the V2 version of Intelligence |
| 23 | + * |
| 24 | + * @param domain - The Twilio (Twilio.Intelligence) domain |
| 25 | + */ |
| 26 | + constructor(domain: IntelligenceBase) { |
| 27 | + super(domain, "v2"); |
| 28 | + } |
| 29 | + |
| 30 | + /** services - { Twilio.Intelligence.V2.ServiceListInstance } resource */ |
| 31 | + protected _services?: ServiceListInstance; |
| 32 | + /** transcripts - { Twilio.Intelligence.V2.TranscriptListInstance } resource */ |
| 33 | + protected _transcripts?: TranscriptListInstance; |
| 34 | + |
| 35 | + /** Getter for services resource */ |
| 36 | + get services(): ServiceListInstance { |
| 37 | + this._services = this._services || ServiceListInstance(this); |
| 38 | + return this._services; |
| 39 | + } |
| 40 | + |
| 41 | + /** Getter for transcripts resource */ |
| 42 | + get transcripts(): TranscriptListInstance { |
| 43 | + this._transcripts = this._transcripts || TranscriptListInstance(this); |
| 44 | + return this._transcripts; |
| 45 | + } |
| 46 | +} |
0 commit comments