import { BaseAPIRequestFactory } from "../../datadog-api-client-common/baseapi"; import { Configuration } from "../../datadog-api-client-common/configuration"; import { RequestContext, ResponseContext } from "../../datadog-api-client-common/http/http"; import { TwilioIntegrationAccountCreateRequest } from "../models/TwilioIntegrationAccountCreateRequest"; import { TwilioIntegrationAccountResponse } from "../models/TwilioIntegrationAccountResponse"; import { TwilioIntegrationAccountsResponse } from "../models/TwilioIntegrationAccountsResponse"; import { TwilioIntegrationAccountUpdateRequest } from "../models/TwilioIntegrationAccountUpdateRequest"; export declare class TwilioIntegrationApiRequestFactory extends BaseAPIRequestFactory { createTwilioIntegrationAccount(body: TwilioIntegrationAccountCreateRequest, _options?: Configuration): Promise; deleteTwilioIntegrationAccount(accountId: string, _options?: Configuration): Promise; getTwilioIntegrationAccount(accountId: string, _options?: Configuration): Promise; listTwilioIntegrationAccounts(_options?: Configuration): Promise; updateTwilioIntegrationAccount(accountId: string, body: TwilioIntegrationAccountUpdateRequest, _options?: Configuration): Promise; } export declare class TwilioIntegrationApiResponseProcessor { /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to createTwilioIntegrationAccount * @throws ApiException if the response code was not in [200, 299] */ createTwilioIntegrationAccount(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to deleteTwilioIntegrationAccount * @throws ApiException if the response code was not in [200, 299] */ deleteTwilioIntegrationAccount(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to getTwilioIntegrationAccount * @throws ApiException if the response code was not in [200, 299] */ getTwilioIntegrationAccount(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to listTwilioIntegrationAccounts * @throws ApiException if the response code was not in [200, 299] */ listTwilioIntegrationAccounts(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to updateTwilioIntegrationAccount * @throws ApiException if the response code was not in [200, 299] */ updateTwilioIntegrationAccount(response: ResponseContext): Promise; } export interface TwilioIntegrationApiCreateTwilioIntegrationAccountRequest { /** * @type TwilioIntegrationAccountCreateRequest */ body: TwilioIntegrationAccountCreateRequest; } export interface TwilioIntegrationApiDeleteTwilioIntegrationAccountRequest { /** * Unique identifier of the integration account. * @type string */ accountId: string; } export interface TwilioIntegrationApiGetTwilioIntegrationAccountRequest { /** * Unique identifier of the integration account. * @type string */ accountId: string; } export interface TwilioIntegrationApiUpdateTwilioIntegrationAccountRequest { /** * Unique identifier of the integration account. * @type string */ accountId: string; /** * @type TwilioIntegrationAccountUpdateRequest */ body: TwilioIntegrationAccountUpdateRequest; } export declare class TwilioIntegrationApi { private requestFactory; private responseProcessor; private configuration; constructor(configuration: Configuration, requestFactory?: TwilioIntegrationApiRequestFactory, responseProcessor?: TwilioIntegrationApiResponseProcessor); /** * Create a Twilio integration account. * @param param The request object */ createTwilioIntegrationAccount(param: TwilioIntegrationApiCreateTwilioIntegrationAccountRequest, options?: Configuration): Promise; /** * Delete a Twilio integration account. * @param param The request object */ deleteTwilioIntegrationAccount(param: TwilioIntegrationApiDeleteTwilioIntegrationAccountRequest, options?: Configuration): Promise; /** * Get a Twilio integration account. * @param param The request object */ getTwilioIntegrationAccount(param: TwilioIntegrationApiGetTwilioIntegrationAccountRequest, options?: Configuration): Promise; /** * List Twilio integration accounts. * @param param The request object */ listTwilioIntegrationAccounts(options?: Configuration): Promise; /** * Update a Twilio integration account. Only the fields provided are changed. * @param param The request object */ updateTwilioIntegrationAccount(param: TwilioIntegrationApiUpdateTwilioIntegrationAccountRequest, options?: Configuration): Promise; }