UNPKG

@datadog/datadog-api-client

Version:
40 lines (39 loc) 2.09 kB
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 { CustomerOrgDisableRequest } from "../models/CustomerOrgDisableRequest"; import { CustomerOrgDisableResponse } from "../models/CustomerOrgDisableResponse"; export declare class CustomerOrgApiRequestFactory extends BaseAPIRequestFactory { disableCustomerOrg(body: CustomerOrgDisableRequest, _options?: Configuration): Promise<RequestContext>; } export declare class CustomerOrgApiResponseProcessor { /** * 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 disableCustomerOrg * @throws ApiException if the response code was not in [200, 299] */ disableCustomerOrg(response: ResponseContext): Promise<CustomerOrgDisableResponse>; } export interface CustomerOrgApiDisableCustomerOrgRequest { /** * @type CustomerOrgDisableRequest */ body: CustomerOrgDisableRequest; } export declare class CustomerOrgApi { private requestFactory; private responseProcessor; private configuration; constructor(configuration: Configuration, requestFactory?: CustomerOrgApiRequestFactory, responseProcessor?: CustomerOrgApiResponseProcessor); /** * Disable the Datadog organization associated with the authenticated user or API key. * The request body uses JSON:API format. If `org_uuid` is supplied, it must match * the authenticated org or the request is rejected. Successful calls disable the org * and return the resulting state from the downstream service. Requires the * `org_management` permission. * @param param The request object */ disableCustomerOrg(param: CustomerOrgApiDisableCustomerOrgRequest, options?: Configuration): Promise<CustomerOrgDisableResponse>; }