/
credential.ts
79 lines (67 loc) · 2.14 KB
/
credential.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
/*
* This code was generated by
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
*
* Twilio - Accounts
* 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 { inspect, InspectOptions } from "util";
import V1 from "../V1";
const deserialize = require("../../../base/deserialize");
const serialize = require("../../../base/serialize");
import { isValidPathParam } from "../../../base/utility";
import { AwsListInstance } from "./credential/aws";
import { PublicKeyListInstance } from "./credential/publicKey";
export interface CredentialSolution {}
export interface CredentialListInstance {
_version: V1;
_solution: CredentialSolution;
_uri: string;
_aws?: AwsListInstance;
aws: AwsListInstance;
_publicKey?: PublicKeyListInstance;
publicKey: PublicKeyListInstance;
/**
* Provide a user-friendly representation
*/
toJSON(): any;
[inspect.custom](_depth: any, options: InspectOptions): any;
}
export function CredentialListInstance(version: V1): CredentialListInstance {
const instance = {} as CredentialListInstance;
instance._version = version;
instance._solution = {};
instance._uri = `/Credentials`;
Object.defineProperty(instance, "aws", {
get: function aws() {
if (!instance._aws) {
instance._aws = AwsListInstance(instance._version);
}
return instance._aws;
},
});
Object.defineProperty(instance, "publicKey", {
get: function publicKey() {
if (!instance._publicKey) {
instance._publicKey = PublicKeyListInstance(instance._version);
}
return instance._publicKey;
},
});
instance.toJSON = function toJSON() {
return instance._solution;
};
instance[inspect.custom] = function inspectImpl(
_depth: any,
options: InspectOptions
) {
return inspect(instance.toJSON(), options);
};
return instance;
}