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 { ServiceNowAssignmentGroupsResponse } from "../models/ServiceNowAssignmentGroupsResponse"; import { ServiceNowBusinessServicesResponse } from "../models/ServiceNowBusinessServicesResponse"; import { ServiceNowInstancesResponse } from "../models/ServiceNowInstancesResponse"; import { ServiceNowTemplateCreateRequest } from "../models/ServiceNowTemplateCreateRequest"; import { ServiceNowTemplateResponse } from "../models/ServiceNowTemplateResponse"; import { ServiceNowTemplatesResponse } from "../models/ServiceNowTemplatesResponse"; import { ServiceNowTemplateUpdateRequest } from "../models/ServiceNowTemplateUpdateRequest"; import { ServiceNowUsersResponse } from "../models/ServiceNowUsersResponse"; export declare class ServiceNowIntegrationApiRequestFactory extends BaseAPIRequestFactory { createServiceNowTemplate(body: ServiceNowTemplateCreateRequest, _options?: Configuration): Promise; deleteServiceNowTemplate(templateId: string, _options?: Configuration): Promise; getServiceNowTemplate(templateId: string, _options?: Configuration): Promise; listServiceNowAssignmentGroups(instanceId: string, _options?: Configuration): Promise; listServiceNowBusinessServices(instanceId: string, _options?: Configuration): Promise; listServiceNowInstances(_options?: Configuration): Promise; listServiceNowTemplates(_options?: Configuration): Promise; listServiceNowUsers(instanceId: string, _options?: Configuration): Promise; updateServiceNowTemplate(templateId: string, body: ServiceNowTemplateUpdateRequest, _options?: Configuration): Promise; } export declare class ServiceNowIntegrationApiResponseProcessor { /** * 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 createServiceNowTemplate * @throws ApiException if the response code was not in [200, 299] */ createServiceNowTemplate(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 deleteServiceNowTemplate * @throws ApiException if the response code was not in [200, 299] */ deleteServiceNowTemplate(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 getServiceNowTemplate * @throws ApiException if the response code was not in [200, 299] */ getServiceNowTemplate(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 listServiceNowAssignmentGroups * @throws ApiException if the response code was not in [200, 299] */ listServiceNowAssignmentGroups(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 listServiceNowBusinessServices * @throws ApiException if the response code was not in [200, 299] */ listServiceNowBusinessServices(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 listServiceNowInstances * @throws ApiException if the response code was not in [200, 299] */ listServiceNowInstances(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 listServiceNowTemplates * @throws ApiException if the response code was not in [200, 299] */ listServiceNowTemplates(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 listServiceNowUsers * @throws ApiException if the response code was not in [200, 299] */ listServiceNowUsers(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 updateServiceNowTemplate * @throws ApiException if the response code was not in [200, 299] */ updateServiceNowTemplate(response: ResponseContext): Promise; } export interface ServiceNowIntegrationApiCreateServiceNowTemplateRequest { /** * @type ServiceNowTemplateCreateRequest */ body: ServiceNowTemplateCreateRequest; } export interface ServiceNowIntegrationApiDeleteServiceNowTemplateRequest { /** * The ID of the ServiceNow template to delete * @type string */ templateId: string; } export interface ServiceNowIntegrationApiGetServiceNowTemplateRequest { /** * The ID of the ServiceNow template to retrieve * @type string */ templateId: string; } export interface ServiceNowIntegrationApiListServiceNowAssignmentGroupsRequest { /** * The ID of the ServiceNow instance * @type string */ instanceId: string; } export interface ServiceNowIntegrationApiListServiceNowBusinessServicesRequest { /** * The ID of the ServiceNow instance * @type string */ instanceId: string; } export interface ServiceNowIntegrationApiListServiceNowUsersRequest { /** * The ID of the ServiceNow instance * @type string */ instanceId: string; } export interface ServiceNowIntegrationApiUpdateServiceNowTemplateRequest { /** * The ID of the ServiceNow template to update * @type string */ templateId: string; /** * @type ServiceNowTemplateUpdateRequest */ body: ServiceNowTemplateUpdateRequest; } export declare class ServiceNowIntegrationApi { private requestFactory; private responseProcessor; private configuration; constructor(configuration: Configuration, requestFactory?: ServiceNowIntegrationApiRequestFactory, responseProcessor?: ServiceNowIntegrationApiResponseProcessor); /** * Create a new ServiceNow template. * @param param The request object */ createServiceNowTemplate(param: ServiceNowIntegrationApiCreateServiceNowTemplateRequest, options?: Configuration): Promise; /** * Delete a ServiceNow template by ID. * @param param The request object */ deleteServiceNowTemplate(param: ServiceNowIntegrationApiDeleteServiceNowTemplateRequest, options?: Configuration): Promise; /** * Get a ServiceNow template by ID. * @param param The request object */ getServiceNowTemplate(param: ServiceNowIntegrationApiGetServiceNowTemplateRequest, options?: Configuration): Promise; /** * Get all assignment groups for a ServiceNow instance. * @param param The request object */ listServiceNowAssignmentGroups(param: ServiceNowIntegrationApiListServiceNowAssignmentGroupsRequest, options?: Configuration): Promise; /** * Get all business services for a ServiceNow instance. * @param param The request object */ listServiceNowBusinessServices(param: ServiceNowIntegrationApiListServiceNowBusinessServicesRequest, options?: Configuration): Promise; /** * Get all ServiceNow instances for the organization. * @param param The request object */ listServiceNowInstances(options?: Configuration): Promise; /** * Get all ServiceNow templates for the organization. * @param param The request object */ listServiceNowTemplates(options?: Configuration): Promise; /** * Get all users for a ServiceNow instance. * @param param The request object */ listServiceNowUsers(param: ServiceNowIntegrationApiListServiceNowUsersRequest, options?: Configuration): Promise; /** * Update a ServiceNow template by ID. * @param param The request object */ updateServiceNowTemplate(param: ServiceNowIntegrationApiUpdateServiceNowTemplateRequest, options?: Configuration): Promise; }