Skip to content

Commit

Permalink
chore: check diff from oai-generator
Browse files Browse the repository at this point in the history
  • Loading branch information
tiwarishubham635 committed Dec 9, 2024
1 parent 1299c58 commit 2015c5c
Show file tree
Hide file tree
Showing 494 changed files with 3,099 additions and 130 deletions.
4 changes: 4 additions & 0 deletions src/rest/accounts/v1/authTokenPromotion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,15 @@ export class AuthTokenPromotionContextImpl
update(
callback?: (error: Error | null, item?: AuthTokenPromotionInstance) => any
): Promise<AuthTokenPromotionInstance> {
const headers: any = {};
headers["Accept"] = "application/json";

const instance = this;
let operationVersion = instance._version,
operationPromise = operationVersion.update({
uri: instance._uri,
method: "post",
headers,
});

operationPromise = operationPromise.then(
Expand Down
1 change: 1 addition & 0 deletions src/rest/accounts/v1/bulkConsents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export function BulkConsentsListInstance(

const headers: any = {};
headers["Content-Type"] = "application/x-www-form-urlencoded";
headers["Accept"] = "application/json";

let operationVersion = version,
operationPromise = operationVersion.create({
Expand Down
1 change: 1 addition & 0 deletions src/rest/accounts/v1/bulkContacts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export function BulkContactsListInstance(

const headers: any = {};
headers["Content-Type"] = "application/x-www-form-urlencoded";
headers["Accept"] = "application/json";

let operationVersion = version,
operationPromise = operationVersion.create({
Expand Down
10 changes: 10 additions & 0 deletions src/rest/accounts/v1/credential/aws.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,14 @@ export class AwsContextImpl implements AwsContext {
remove(
callback?: (error: Error | null, item?: boolean) => any
): Promise<boolean> {
const headers: any = {};

const instance = this;
let operationVersion = instance._version,
operationPromise = operationVersion.remove({
uri: instance._uri,
method: "delete",
headers,
});

operationPromise = instance._version.setPromiseCallback(
Expand All @@ -165,11 +168,15 @@ export class AwsContextImpl implements AwsContext {
fetch(
callback?: (error: Error | null, item?: AwsInstance) => any
): Promise<AwsInstance> {
const headers: any = {};
headers["Accept"] = "application/json";

const instance = this;
let operationVersion = instance._version,
operationPromise = operationVersion.fetch({
uri: instance._uri,
method: "get",
headers,
});

operationPromise = operationPromise.then(
Expand Down Expand Up @@ -204,6 +211,7 @@ export class AwsContextImpl implements AwsContext {

const headers: any = {};
headers["Content-Type"] = "application/x-www-form-urlencoded";
headers["Accept"] = "application/json";

const instance = this;
let operationVersion = instance._version,
Expand Down Expand Up @@ -508,6 +516,7 @@ export function AwsListInstance(version: V1): AwsListInstance {

const headers: any = {};
headers["Content-Type"] = "application/x-www-form-urlencoded";
headers["Accept"] = "application/json";

let operationVersion = version,
operationPromise = operationVersion.create({
Expand Down Expand Up @@ -549,6 +558,7 @@ export function AwsListInstance(version: V1): AwsListInstance {
if (params.pageToken !== undefined) data["PageToken"] = params.pageToken;

const headers: any = {};
headers["Accept"] = "application/json";

let operationVersion = version,
operationPromise = operationVersion.page({
Expand Down
10 changes: 10 additions & 0 deletions src/rest/accounts/v1/credential/publicKey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,14 @@ export class PublicKeyContextImpl implements PublicKeyContext {
remove(
callback?: (error: Error | null, item?: boolean) => any
): Promise<boolean> {
const headers: any = {};

const instance = this;
let operationVersion = instance._version,
operationPromise = operationVersion.remove({
uri: instance._uri,
method: "delete",
headers,
});

operationPromise = instance._version.setPromiseCallback(
Expand All @@ -165,11 +168,15 @@ export class PublicKeyContextImpl implements PublicKeyContext {
fetch(
callback?: (error: Error | null, item?: PublicKeyInstance) => any
): Promise<PublicKeyInstance> {
const headers: any = {};
headers["Accept"] = "application/json";

const instance = this;
let operationVersion = instance._version,
operationPromise = operationVersion.fetch({
uri: instance._uri,
method: "get",
headers,
});

operationPromise = operationPromise.then(
Expand Down Expand Up @@ -204,6 +211,7 @@ export class PublicKeyContextImpl implements PublicKeyContext {

const headers: any = {};
headers["Content-Type"] = "application/x-www-form-urlencoded";
headers["Accept"] = "application/json";

const instance = this;
let operationVersion = instance._version,
Expand Down Expand Up @@ -513,6 +521,7 @@ export function PublicKeyListInstance(version: V1): PublicKeyListInstance {

const headers: any = {};
headers["Content-Type"] = "application/x-www-form-urlencoded";
headers["Accept"] = "application/json";

let operationVersion = version,
operationPromise = operationVersion.create({
Expand Down Expand Up @@ -554,6 +563,7 @@ export function PublicKeyListInstance(version: V1): PublicKeyListInstance {
if (params.pageToken !== undefined) data["PageToken"] = params.pageToken;

const headers: any = {};
headers["Accept"] = "application/json";

let operationVersion = version,
operationPromise = operationVersion.page({
Expand Down
2 changes: 2 additions & 0 deletions src/rest/accounts/v1/safelist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ export function SafelistListInstance(version: V1): SafelistListInstance {

const headers: any = {};
headers["Content-Type"] = "application/x-www-form-urlencoded";
headers["Accept"] = "application/json";

let operationVersion = version,
operationPromise = operationVersion.create({
Expand Down Expand Up @@ -214,6 +215,7 @@ export function SafelistListInstance(version: V1): SafelistListInstance {
data["PhoneNumber"] = params["phoneNumber"];

const headers: any = {};
headers["Accept"] = "application/json";

let operationVersion = version,
operationPromise = operationVersion.fetch({
Expand Down
7 changes: 7 additions & 0 deletions src/rest/accounts/v1/secondaryAuthToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,15 @@ export class SecondaryAuthTokenContextImpl
create(
callback?: (error: Error | null, item?: SecondaryAuthTokenInstance) => any
): Promise<SecondaryAuthTokenInstance> {
const headers: any = {};
headers["Accept"] = "application/json";

const instance = this;
let operationVersion = instance._version,
operationPromise = operationVersion.create({
uri: instance._uri,
method: "post",
headers,
});

operationPromise = operationPromise.then(
Expand All @@ -85,11 +89,14 @@ export class SecondaryAuthTokenContextImpl
remove(
callback?: (error: Error | null, item?: boolean) => any
): Promise<boolean> {
const headers: any = {};

const instance = this;
let operationVersion = instance._version,
operationPromise = operationVersion.remove({
uri: instance._uri,
method: "delete",
headers,
});

operationPromise = instance._version.setPromiseCallback(
Expand Down
7 changes: 7 additions & 0 deletions src/rest/api/v2010/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -385,11 +385,15 @@ export class AccountContextImpl implements AccountContext {
fetch(
callback?: (error: Error | null, item?: AccountInstance) => any
): Promise<AccountInstance> {
const headers: any = {};
headers["Accept"] = "application/json";

const instance = this;
let operationVersion = instance._version,
operationPromise = operationVersion.fetch({
uri: instance._uri,
method: "get",
headers,
});

operationPromise = operationPromise.then(
Expand Down Expand Up @@ -425,6 +429,7 @@ export class AccountContextImpl implements AccountContext {

const headers: any = {};
headers["Content-Type"] = "application/x-www-form-urlencoded";
headers["Accept"] = "application/json";

const instance = this;
let operationVersion = instance._version,
Expand Down Expand Up @@ -919,6 +924,7 @@ export function AccountListInstance(version: V2010): AccountListInstance {

const headers: any = {};
headers["Content-Type"] = "application/x-www-form-urlencoded";
headers["Accept"] = "application/json";

let operationVersion = version,
operationPromise = operationVersion.create({
Expand Down Expand Up @@ -963,6 +969,7 @@ export function AccountListInstance(version: V2010): AccountListInstance {
if (params.pageToken !== undefined) data["PageToken"] = params.pageToken;

const headers: any = {};
headers["Accept"] = "application/json";

let operationVersion = version,
operationPromise = operationVersion.page({
Expand Down
10 changes: 10 additions & 0 deletions src/rest/api/v2010/account/address.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,14 @@ export class AddressContextImpl implements AddressContext {
remove(
callback?: (error: Error | null, item?: boolean) => any
): Promise<boolean> {
const headers: any = {};

const instance = this;
let operationVersion = instance._version,
operationPromise = operationVersion.remove({
uri: instance._uri,
method: "delete",
headers,
});

operationPromise = instance._version.setPromiseCallback(
Expand All @@ -234,11 +237,15 @@ export class AddressContextImpl implements AddressContext {
fetch(
callback?: (error: Error | null, item?: AddressInstance) => any
): Promise<AddressInstance> {
const headers: any = {};
headers["Accept"] = "application/json";

const instance = this;
let operationVersion = instance._version,
operationPromise = operationVersion.fetch({
uri: instance._uri,
method: "get",
headers,
});

operationPromise = operationPromise.then(
Expand Down Expand Up @@ -291,6 +298,7 @@ export class AddressContextImpl implements AddressContext {

const headers: any = {};
headers["Content-Type"] = "application/x-www-form-urlencoded";
headers["Accept"] = "application/json";

const instance = this;
let operationVersion = instance._version,
Expand Down Expand Up @@ -733,6 +741,7 @@ export function AddressListInstance(

const headers: any = {};
headers["Content-Type"] = "application/x-www-form-urlencoded";
headers["Accept"] = "application/json";

let operationVersion = version,
operationPromise = operationVersion.create({
Expand Down Expand Up @@ -785,6 +794,7 @@ export function AddressListInstance(
if (params.pageToken !== undefined) data["PageToken"] = params.pageToken;

const headers: any = {};
headers["Accept"] = "application/json";

let operationVersion = version,
operationPromise = operationVersion.page({
Expand Down
1 change: 1 addition & 0 deletions src/rest/api/v2010/account/address/dependentPhoneNumber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ export function DependentPhoneNumberListInstance(
if (params.pageToken !== undefined) data["PageToken"] = params.pageToken;

const headers: any = {};
headers["Accept"] = "application/json";

let operationVersion = version,
operationPromise = operationVersion.page({
Expand Down
10 changes: 10 additions & 0 deletions src/rest/api/v2010/account/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,11 +215,14 @@ export class ApplicationContextImpl implements ApplicationContext {
remove(
callback?: (error: Error | null, item?: boolean) => any
): Promise<boolean> {
const headers: any = {};

const instance = this;
let operationVersion = instance._version,
operationPromise = operationVersion.remove({
uri: instance._uri,
method: "delete",
headers,
});

operationPromise = instance._version.setPromiseCallback(
Expand All @@ -232,11 +235,15 @@ export class ApplicationContextImpl implements ApplicationContext {
fetch(
callback?: (error: Error | null, item?: ApplicationInstance) => any
): Promise<ApplicationInstance> {
const headers: any = {};
headers["Accept"] = "application/json";

const instance = this;
let operationVersion = instance._version,
operationPromise = operationVersion.fetch({
uri: instance._uri,
method: "get",
headers,
});

operationPromise = operationPromise.then(
Expand Down Expand Up @@ -308,6 +315,7 @@ export class ApplicationContextImpl implements ApplicationContext {

const headers: any = {};
headers["Content-Type"] = "application/x-www-form-urlencoded";
headers["Accept"] = "application/json";

const instance = this;
let operationVersion = instance._version,
Expand Down Expand Up @@ -782,6 +790,7 @@ export function ApplicationListInstance(

const headers: any = {};
headers["Content-Type"] = "application/x-www-form-urlencoded";
headers["Accept"] = "application/json";

let operationVersion = version,
operationPromise = operationVersion.create({
Expand Down Expand Up @@ -830,6 +839,7 @@ export function ApplicationListInstance(
if (params.pageToken !== undefined) data["PageToken"] = params.pageToken;

const headers: any = {};
headers["Accept"] = "application/json";

let operationVersion = version,
operationPromise = operationVersion.page({
Expand Down
5 changes: 5 additions & 0 deletions src/rest/api/v2010/account/authorizedConnectApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,15 @@ export class AuthorizedConnectAppContextImpl
fetch(
callback?: (error: Error | null, item?: AuthorizedConnectAppInstance) => any
): Promise<AuthorizedConnectAppInstance> {
const headers: any = {};
headers["Accept"] = "application/json";

const instance = this;
let operationVersion = instance._version,
operationPromise = operationVersion.fetch({
uri: instance._uri,
method: "get",
headers,
});

operationPromise = operationPromise.then(
Expand Down Expand Up @@ -413,6 +417,7 @@ export function AuthorizedConnectAppListInstance(
if (params.pageToken !== undefined) data["PageToken"] = params.pageToken;

const headers: any = {};
headers["Accept"] = "application/json";

let operationVersion = version,
operationPromise = operationVersion.page({
Expand Down
5 changes: 5 additions & 0 deletions src/rest/api/v2010/account/availablePhoneNumberCountry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,11 +215,15 @@ export class AvailablePhoneNumberCountryContextImpl
item?: AvailablePhoneNumberCountryInstance
) => any
): Promise<AvailablePhoneNumberCountryInstance> {
const headers: any = {};
headers["Accept"] = "application/json";

const instance = this;
let operationVersion = instance._version,
operationPromise = operationVersion.fetch({
uri: instance._uri,
method: "get",
headers,
});

operationPromise = operationPromise.then(
Expand Down Expand Up @@ -560,6 +564,7 @@ export function AvailablePhoneNumberCountryListInstance(
if (params.pageToken !== undefined) data["PageToken"] = params.pageToken;

const headers: any = {};
headers["Accept"] = "application/json";

let operationVersion = version,
operationPromise = operationVersion.page({
Expand Down
Loading

0 comments on commit 2015c5c

Please sign in to comment.