-
Notifications
You must be signed in to change notification settings - Fork 520
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: added static files for iam domain
- Loading branch information
1 parent
cb06648
commit f9551b5
Showing
7 changed files
with
967 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import IamBase from "./IamBase"; | ||
import {ApiKeyListInstance} from "./iam/v1/apiKey"; | ||
import {GetApiKeysListInstance} from "./iam/v1/getApiKeys"; | ||
import {KeyListInstance} from "./iam/v1/key"; | ||
|
||
class Iam extends IamBase { | ||
/** | ||
* @deprecated - Use v1.apiKey instead | ||
*/ | ||
get apiKey(): ApiKeyListInstance { | ||
console.warn("apiKey is deprecated. Use v1.apiKey instead."); | ||
return this.v1.apiKey; | ||
} | ||
|
||
/** | ||
* @deprecated - Use v1.getApiKeys instead | ||
*/ | ||
get getApiKeys(): GetApiKeysListInstance { | ||
console.warn("getApiKeys is deprecated. Use v1.getApiKeys instead."); | ||
return this.v1.getApiKeys; | ||
} | ||
|
||
/** | ||
* @deprecated - Use v1.keys instead | ||
*/ | ||
get keys(): KeyListInstance { | ||
console.warn("keys is deprecated. Use v1.keys instead."); | ||
return this.v1.keys; | ||
} | ||
} | ||
|
||
export = Iam; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* This code was generated by | ||
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ | ||
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ | ||
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator. | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
import Domain from "../base/Domain"; | ||
import V1 from "./iam/V1"; | ||
|
||
class IamBase extends Domain { | ||
_v1?: V1; | ||
|
||
/** | ||
* Initialize iam domain | ||
* | ||
* @param twilio - The twilio client | ||
*/ | ||
constructor(twilio: any) { | ||
super(twilio, "https://iam.twilio.com"); | ||
} | ||
|
||
get v1(): V1 { | ||
this._v1 = this._v1 || new V1(this); | ||
return this._v1; | ||
} | ||
} | ||
|
||
export = IamBase; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/* | ||
* This code was generated by | ||
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ | ||
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ | ||
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ | ||
* | ||
* Twilio - Iam | ||
* 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 IamBase from "../IamBase"; | ||
import Version from "../../base/Version"; | ||
import { ApiKeyListInstance } from "./v1/apiKey"; | ||
import { GetApiKeysListInstance } from "./v1/getApiKeys"; | ||
import { KeyListInstance } from "./v1/key"; | ||
|
||
export default class V1 extends Version { | ||
/** | ||
* Initialize the V1 version of Iam | ||
* | ||
* @param domain - The Twilio (Twilio.Iam) domain | ||
*/ | ||
constructor(domain: IamBase) { | ||
super(domain, "v1"); | ||
} | ||
|
||
/** apiKey - { Twilio.Iam.V1.ApiKeyListInstance } resource */ | ||
protected _apiKey?: ApiKeyListInstance; | ||
/** getApiKeys - { Twilio.Iam.V1.GetApiKeysListInstance } resource */ | ||
protected _getApiKeys?: GetApiKeysListInstance; | ||
/** keys - { Twilio.Iam.V1.KeyListInstance } resource */ | ||
protected _keys?: KeyListInstance; | ||
|
||
/** Getter for apiKey resource */ | ||
get apiKey(): ApiKeyListInstance { | ||
this._apiKey = this._apiKey || ApiKeyListInstance(this); | ||
return this._apiKey; | ||
} | ||
|
||
/** Getter for getApiKeys resource */ | ||
get getApiKeys(): GetApiKeysListInstance { | ||
this._getApiKeys = this._getApiKeys || GetApiKeysListInstance(this); | ||
return this._getApiKeys; | ||
} | ||
|
||
/** Getter for keys resource */ | ||
get keys(): KeyListInstance { | ||
this._keys = this._keys || KeyListInstance(this); | ||
return this._keys; | ||
} | ||
|
||
} |
Oops, something went wrong.