Skip to content

Commit

Permalink
chore: added static files for iam domain
Browse files Browse the repository at this point in the history
  • Loading branch information
tiwarishubham635 committed Aug 12, 2024
1 parent cb06648 commit f9551b5
Show file tree
Hide file tree
Showing 7 changed files with 967 additions and 0 deletions.
32 changes: 32 additions & 0 deletions src/rest/Iam.ts
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;
33 changes: 33 additions & 0 deletions src/rest/IamBase.ts
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;
11 changes: 11 additions & 0 deletions src/rest/Twilio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import Conversations from "./Conversations";
import Events from "./Events";
import FlexApi from "./FlexApi";
import FrontlineApi from "./FrontlineApi";
import Iam from "./Iam";
import Insights from "./Insights";
import Intelligence from "./Intelligence";
import IpMessaging from "./IpMessaging";
Expand Down Expand Up @@ -95,6 +96,8 @@ class Twilio extends Client {
_flexApi?: FlexApi;
/** (Twilio.FrontlineApi) - frontlineApi domain */
_frontlineApi?: FrontlineApi;
/** (Twilio.Iam) - iam domain */
_iam?: Iam;
/** (Twilio.Insights) - insights domain */
_insights?: Insights;
/** (Twilio.Intelligence) - intelligence domain */
Expand Down Expand Up @@ -174,6 +177,7 @@ class Twilio extends Client {
this.events;
this.flexApi;
this.frontlineApi;
this.iam;
this.insights;
this.intelligence;
this.ipMessaging;
Expand Down Expand Up @@ -251,6 +255,13 @@ class Twilio extends Client {
(this._frontlineApi = new (require("./FrontlineApi"))(this))
);
}
/** Getter for (Twilio.FrontlineApi) domain */
get iam(): Iam {
return (
this._iam ??
(this._iam = new (require("./Iam"))(this))
);
}
/** Getter for (Twilio.Insights) domain */
get insights(): Insights {
return (
Expand Down
56 changes: 56 additions & 0 deletions src/rest/iam/V1.ts
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;
}

}
Loading

0 comments on commit f9551b5

Please sign in to comment.