UNPKG

@datadog/datadog-api-client

Version:
36 lines (35 loc) 1.78 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 { SlackUserBindingsResponse } from "../models/SlackUserBindingsResponse"; export declare class SlackIntegrationApiRequestFactory extends BaseAPIRequestFactory { listSlackUserBindings(userUuid: string, _options?: Configuration): Promise<RequestContext>; } export declare class SlackIntegrationApiResponseProcessor { /** * 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 listSlackUserBindings * @throws ApiException if the response code was not in [200, 299] */ listSlackUserBindings(response: ResponseContext): Promise<SlackUserBindingsResponse>; } export interface SlackIntegrationApiListSlackUserBindingsRequest { /** * The UUID of the Datadog user to list Slack bindings for. * @type string */ userUuid: string; } export declare class SlackIntegrationApi { private requestFactory; private responseProcessor; private configuration; constructor(configuration: Configuration, requestFactory?: SlackIntegrationApiRequestFactory, responseProcessor?: SlackIntegrationApiResponseProcessor); /** * List all Slack user bindings for a given Datadog user from the Datadog Slack integration. * @param param The request object */ listSlackUserBindings(param: SlackIntegrationApiListSlackUserBindingsRequest, options?: Configuration): Promise<SlackUserBindingsResponse>; }