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