UNPKG

@datadog/datadog-api-client

Version:
410 lines (409 loc) 20.1 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 { GoogleChatAppNamedSpaceResponse } from "../models/GoogleChatAppNamedSpaceResponse"; import { GoogleChatCreateOrganizationHandleRequest } from "../models/GoogleChatCreateOrganizationHandleRequest"; import { GoogleChatDelegatedUserResponse } from "../models/GoogleChatDelegatedUserResponse"; import { GoogleChatOrganizationHandleResponse } from "../models/GoogleChatOrganizationHandleResponse"; import { GoogleChatOrganizationHandlesResponse } from "../models/GoogleChatOrganizationHandlesResponse"; import { GoogleChatOrganizationResponse } from "../models/GoogleChatOrganizationResponse"; import { GoogleChatOrganizationsResponse } from "../models/GoogleChatOrganizationsResponse"; import { GoogleChatTargetAudienceCreateRequest } from "../models/GoogleChatTargetAudienceCreateRequest"; import { GoogleChatTargetAudienceResponse } from "../models/GoogleChatTargetAudienceResponse"; import { GoogleChatTargetAudiencesResponse } from "../models/GoogleChatTargetAudiencesResponse"; import { GoogleChatTargetAudienceUpdateRequest } from "../models/GoogleChatTargetAudienceUpdateRequest"; import { GoogleChatUpdateOrganizationHandleRequest } from "../models/GoogleChatUpdateOrganizationHandleRequest"; export declare class GoogleChatIntegrationApiRequestFactory extends BaseAPIRequestFactory { createGoogleChatTargetAudience(organizationBindingId: string, body: GoogleChatTargetAudienceCreateRequest, _options?: Configuration): Promise<RequestContext>; createOrganizationHandle(organizationBindingId: string, body: GoogleChatCreateOrganizationHandleRequest, _options?: Configuration): Promise<RequestContext>; deleteGoogleChatDelegatedUser(organizationBindingId: string, _options?: Configuration): Promise<RequestContext>; deleteGoogleChatOrganization(organizationBindingId: string, _options?: Configuration): Promise<RequestContext>; deleteGoogleChatTargetAudience(organizationBindingId: string, targetAudienceId: string, _options?: Configuration): Promise<RequestContext>; deleteOrganizationHandle(organizationBindingId: string, handleId: string, _options?: Configuration): Promise<RequestContext>; getGoogleChatDelegatedUser(organizationBindingId: string, _options?: Configuration): Promise<RequestContext>; getGoogleChatOrganization(organizationBindingId: string, _options?: Configuration): Promise<RequestContext>; getGoogleChatTargetAudience(organizationBindingId: string, targetAudienceId: string, _options?: Configuration): Promise<RequestContext>; getOrganizationHandle(organizationBindingId: string, handleId: string, _options?: Configuration): Promise<RequestContext>; getSpaceByDisplayName(domainName: string, spaceDisplayName: string, _options?: Configuration): Promise<RequestContext>; listGoogleChatOrganizations(_options?: Configuration): Promise<RequestContext>; listGoogleChatTargetAudiences(organizationBindingId: string, _options?: Configuration): Promise<RequestContext>; listOrganizationHandles(organizationBindingId: string, _options?: Configuration): Promise<RequestContext>; updateGoogleChatTargetAudience(organizationBindingId: string, targetAudienceId: string, body: GoogleChatTargetAudienceUpdateRequest, _options?: Configuration): Promise<RequestContext>; updateOrganizationHandle(organizationBindingId: string, handleId: string, body: GoogleChatUpdateOrganizationHandleRequest, _options?: Configuration): Promise<RequestContext>; } export declare class GoogleChatIntegrationApiResponseProcessor { /** * 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 createGoogleChatTargetAudience * @throws ApiException if the response code was not in [200, 299] */ createGoogleChatTargetAudience(response: ResponseContext): Promise<GoogleChatTargetAudienceResponse>; /** * 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 createOrganizationHandle * @throws ApiException if the response code was not in [200, 299] */ createOrganizationHandle(response: ResponseContext): Promise<GoogleChatOrganizationHandleResponse>; /** * 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 deleteGoogleChatDelegatedUser * @throws ApiException if the response code was not in [200, 299] */ deleteGoogleChatDelegatedUser(response: ResponseContext): Promise<void>; /** * 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 deleteGoogleChatOrganization * @throws ApiException if the response code was not in [200, 299] */ deleteGoogleChatOrganization(response: ResponseContext): Promise<void>; /** * 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 deleteGoogleChatTargetAudience * @throws ApiException if the response code was not in [200, 299] */ deleteGoogleChatTargetAudience(response: ResponseContext): Promise<void>; /** * 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 deleteOrganizationHandle * @throws ApiException if the response code was not in [200, 299] */ deleteOrganizationHandle(response: ResponseContext): Promise<void>; /** * 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 getGoogleChatDelegatedUser * @throws ApiException if the response code was not in [200, 299] */ getGoogleChatDelegatedUser(response: ResponseContext): Promise<GoogleChatDelegatedUserResponse>; /** * 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 getGoogleChatOrganization * @throws ApiException if the response code was not in [200, 299] */ getGoogleChatOrganization(response: ResponseContext): Promise<GoogleChatOrganizationResponse>; /** * 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 getGoogleChatTargetAudience * @throws ApiException if the response code was not in [200, 299] */ getGoogleChatTargetAudience(response: ResponseContext): Promise<GoogleChatTargetAudienceResponse>; /** * 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 getOrganizationHandle * @throws ApiException if the response code was not in [200, 299] */ getOrganizationHandle(response: ResponseContext): Promise<GoogleChatOrganizationHandleResponse>; /** * 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 getSpaceByDisplayName * @throws ApiException if the response code was not in [200, 299] */ getSpaceByDisplayName(response: ResponseContext): Promise<GoogleChatAppNamedSpaceResponse>; /** * 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 listGoogleChatOrganizations * @throws ApiException if the response code was not in [200, 299] */ listGoogleChatOrganizations(response: ResponseContext): Promise<GoogleChatOrganizationsResponse>; /** * 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 listGoogleChatTargetAudiences * @throws ApiException if the response code was not in [200, 299] */ listGoogleChatTargetAudiences(response: ResponseContext): Promise<GoogleChatTargetAudiencesResponse>; /** * 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 listOrganizationHandles * @throws ApiException if the response code was not in [200, 299] */ listOrganizationHandles(response: ResponseContext): Promise<GoogleChatOrganizationHandlesResponse>; /** * 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 updateGoogleChatTargetAudience * @throws ApiException if the response code was not in [200, 299] */ updateGoogleChatTargetAudience(response: ResponseContext): Promise<GoogleChatTargetAudienceResponse>; /** * 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 updateOrganizationHandle * @throws ApiException if the response code was not in [200, 299] */ updateOrganizationHandle(response: ResponseContext): Promise<GoogleChatOrganizationHandleResponse>; } export interface GoogleChatIntegrationApiCreateGoogleChatTargetAudienceRequest { /** * Your organization binding ID. * @type string */ organizationBindingId: string; /** * Target audience payload. * @type GoogleChatTargetAudienceCreateRequest */ body: GoogleChatTargetAudienceCreateRequest; } export interface GoogleChatIntegrationApiCreateOrganizationHandleRequest { /** * Your organization binding ID. * @type string */ organizationBindingId: string; /** * Organization handle payload. * @type GoogleChatCreateOrganizationHandleRequest */ body: GoogleChatCreateOrganizationHandleRequest; } export interface GoogleChatIntegrationApiDeleteGoogleChatDelegatedUserRequest { /** * Your organization binding ID. * @type string */ organizationBindingId: string; } export interface GoogleChatIntegrationApiDeleteGoogleChatOrganizationRequest { /** * Your organization binding ID. * @type string */ organizationBindingId: string; } export interface GoogleChatIntegrationApiDeleteGoogleChatTargetAudienceRequest { /** * Your organization binding ID. * @type string */ organizationBindingId: string; /** * Your target audience ID. * @type string */ targetAudienceId: string; } export interface GoogleChatIntegrationApiDeleteOrganizationHandleRequest { /** * Your organization binding ID. * @type string */ organizationBindingId: string; /** * Your organization handle ID. * @type string */ handleId: string; } export interface GoogleChatIntegrationApiGetGoogleChatDelegatedUserRequest { /** * Your organization binding ID. * @type string */ organizationBindingId: string; } export interface GoogleChatIntegrationApiGetGoogleChatOrganizationRequest { /** * Your organization binding ID. * @type string */ organizationBindingId: string; } export interface GoogleChatIntegrationApiGetGoogleChatTargetAudienceRequest { /** * Your organization binding ID. * @type string */ organizationBindingId: string; /** * Your target audience ID. * @type string */ targetAudienceId: string; } export interface GoogleChatIntegrationApiGetOrganizationHandleRequest { /** * Your organization binding ID. * @type string */ organizationBindingId: string; /** * Your organization handle ID. * @type string */ handleId: string; } export interface GoogleChatIntegrationApiGetSpaceByDisplayNameRequest { /** * The Google Chat domain name. * @type string */ domainName: string; /** * The Google Chat space display name. * @type string */ spaceDisplayName: string; } export interface GoogleChatIntegrationApiListGoogleChatTargetAudiencesRequest { /** * Your organization binding ID. * @type string */ organizationBindingId: string; } export interface GoogleChatIntegrationApiListOrganizationHandlesRequest { /** * Your organization binding ID. * @type string */ organizationBindingId: string; } export interface GoogleChatIntegrationApiUpdateGoogleChatTargetAudienceRequest { /** * Your organization binding ID. * @type string */ organizationBindingId: string; /** * Your target audience ID. * @type string */ targetAudienceId: string; /** * Target audience payload. * @type GoogleChatTargetAudienceUpdateRequest */ body: GoogleChatTargetAudienceUpdateRequest; } export interface GoogleChatIntegrationApiUpdateOrganizationHandleRequest { /** * Your organization binding ID. * @type string */ organizationBindingId: string; /** * Your organization handle ID. * @type string */ handleId: string; /** * Organization handle payload. * @type GoogleChatUpdateOrganizationHandleRequest */ body: GoogleChatUpdateOrganizationHandleRequest; } export declare class GoogleChatIntegrationApi { private requestFactory; private responseProcessor; private configuration; constructor(configuration: Configuration, requestFactory?: GoogleChatIntegrationApiRequestFactory, responseProcessor?: GoogleChatIntegrationApiResponseProcessor); /** * Create a target audience for a Google Chat organization binding in the Datadog Google Chat integration. * @param param The request object */ createGoogleChatTargetAudience(param: GoogleChatIntegrationApiCreateGoogleChatTargetAudienceRequest, options?: Configuration): Promise<GoogleChatTargetAudienceResponse>; /** * Create an organization handle in the Datadog Google Chat integration. * @param param The request object */ createOrganizationHandle(param: GoogleChatIntegrationApiCreateOrganizationHandleRequest, options?: Configuration): Promise<GoogleChatOrganizationHandleResponse>; /** * Delete the delegated user for a Google Chat organization binding from the Datadog Google Chat integration. * @param param The request object */ deleteGoogleChatDelegatedUser(param: GoogleChatIntegrationApiDeleteGoogleChatDelegatedUserRequest, options?: Configuration): Promise<void>; /** * Delete a Google Chat organization binding from the Datadog Google Chat integration. * @param param The request object */ deleteGoogleChatOrganization(param: GoogleChatIntegrationApiDeleteGoogleChatOrganizationRequest, options?: Configuration): Promise<void>; /** * Delete a target audience from a Google Chat organization binding in the Datadog Google Chat integration. * @param param The request object */ deleteGoogleChatTargetAudience(param: GoogleChatIntegrationApiDeleteGoogleChatTargetAudienceRequest, options?: Configuration): Promise<void>; /** * Delete an organization handle from the Datadog Google Chat integration. * @param param The request object */ deleteOrganizationHandle(param: GoogleChatIntegrationApiDeleteOrganizationHandleRequest, options?: Configuration): Promise<void>; /** * Get the delegated user for a Google Chat organization binding in the Datadog Google Chat integration. * @param param The request object */ getGoogleChatDelegatedUser(param: GoogleChatIntegrationApiGetGoogleChatDelegatedUserRequest, options?: Configuration): Promise<GoogleChatDelegatedUserResponse>; /** * Get a Google Chat organization binding from the Datadog Google Chat integration. * @param param The request object */ getGoogleChatOrganization(param: GoogleChatIntegrationApiGetGoogleChatOrganizationRequest, options?: Configuration): Promise<GoogleChatOrganizationResponse>; /** * Get a target audience for a Google Chat organization binding in the Datadog Google Chat integration. * @param param The request object */ getGoogleChatTargetAudience(param: GoogleChatIntegrationApiGetGoogleChatTargetAudienceRequest, options?: Configuration): Promise<GoogleChatTargetAudienceResponse>; /** * Get an organization handle from the Datadog Google Chat integration. * @param param The request object */ getOrganizationHandle(param: GoogleChatIntegrationApiGetOrganizationHandleRequest, options?: Configuration): Promise<GoogleChatOrganizationHandleResponse>; /** * Get the resource name and organization binding ID of a space in the Datadog Google Chat integration. * @param param The request object */ getSpaceByDisplayName(param: GoogleChatIntegrationApiGetSpaceByDisplayNameRequest, options?: Configuration): Promise<GoogleChatAppNamedSpaceResponse>; /** * Get a list of all Google Chat organization bindings in the Datadog Google Chat integration. * @param param The request object */ listGoogleChatOrganizations(options?: Configuration): Promise<GoogleChatOrganizationsResponse>; /** * Get a list of all target audiences for a Google Chat organization binding in the Datadog Google Chat integration. * @param param The request object */ listGoogleChatTargetAudiences(param: GoogleChatIntegrationApiListGoogleChatTargetAudiencesRequest, options?: Configuration): Promise<GoogleChatTargetAudiencesResponse>; /** * Get a list of all organization handles from the Datadog Google Chat integration. * @param param The request object */ listOrganizationHandles(param: GoogleChatIntegrationApiListOrganizationHandlesRequest, options?: Configuration): Promise<GoogleChatOrganizationHandlesResponse>; /** * Update a target audience for a Google Chat organization binding in the Datadog Google Chat integration. * @param param The request object */ updateGoogleChatTargetAudience(param: GoogleChatIntegrationApiUpdateGoogleChatTargetAudienceRequest, options?: Configuration): Promise<GoogleChatTargetAudienceResponse>; /** * Update an organization handle from the Datadog Google Chat integration. * @param param The request object */ updateOrganizationHandle(param: GoogleChatIntegrationApiUpdateOrganizationHandleRequest, options?: Configuration): Promise<GoogleChatOrganizationHandleResponse>; }