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 { TeamsOwnershipMappingBatchRequest } from "../models/TeamsOwnershipMappingBatchRequest"; import { TeamsOwnershipMappingBatchResponse } from "../models/TeamsOwnershipMappingBatchResponse"; import { TeamsOwnershipMappingCreateRequest } from "../models/TeamsOwnershipMappingCreateRequest"; import { TeamsOwnershipMappingResponse } from "../models/TeamsOwnershipMappingResponse"; import { TeamsOwnershipMappingsResponse } from "../models/TeamsOwnershipMappingsResponse"; import { TeamsOwnershipRulesResponse } from "../models/TeamsOwnershipRulesResponse"; export declare class RumTeamsOwnershipApiRequestFactory extends BaseAPIRequestFactory { createTeamsOwnershipMapping(body: TeamsOwnershipMappingCreateRequest, _options?: Configuration): Promise; createTeamsOwnershipMappingsBatch(body: TeamsOwnershipMappingBatchRequest, _options?: Configuration): Promise; deleteTeamsOwnershipMapping(id: string, _options?: Configuration): Promise; getTeamsOwnershipMapping(id: string, _options?: Configuration): Promise; listTeamsOwnershipMappings(filterViewName?: Array, filterTeamHandle?: Array, filterApplicationId?: Array, filterService?: Array, _options?: Configuration): Promise; listTeamsOwnershipRules(filterViewName?: Array, filterTeamHandle?: Array, filterApplicationId?: Array, filterService?: Array, _options?: Configuration): Promise; } export declare class RumTeamsOwnershipApiResponseProcessor { /** * 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 createTeamsOwnershipMapping * @throws ApiException if the response code was not in [200, 299] */ createTeamsOwnershipMapping(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 createTeamsOwnershipMappingsBatch * @throws ApiException if the response code was not in [200, 299] */ createTeamsOwnershipMappingsBatch(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 deleteTeamsOwnershipMapping * @throws ApiException if the response code was not in [200, 299] */ deleteTeamsOwnershipMapping(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 getTeamsOwnershipMapping * @throws ApiException if the response code was not in [200, 299] */ getTeamsOwnershipMapping(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 listTeamsOwnershipMappings * @throws ApiException if the response code was not in [200, 299] */ listTeamsOwnershipMappings(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 listTeamsOwnershipRules * @throws ApiException if the response code was not in [200, 299] */ listTeamsOwnershipRules(response: ResponseContext): Promise; } export interface RumTeamsOwnershipApiCreateTeamsOwnershipMappingRequest { /** * The definition of the teams ownership mapping to create. * @type TeamsOwnershipMappingCreateRequest */ body: TeamsOwnershipMappingCreateRequest; } export interface RumTeamsOwnershipApiCreateTeamsOwnershipMappingsBatchRequest { /** * The list of add and remove operations to apply atomically. * @type TeamsOwnershipMappingBatchRequest */ body: TeamsOwnershipMappingBatchRequest; } export interface RumTeamsOwnershipApiDeleteTeamsOwnershipMappingRequest { /** * The ID of the teams ownership mapping. * @type string */ id: string; } export interface RumTeamsOwnershipApiGetTeamsOwnershipMappingRequest { /** * The ID of the teams ownership mapping. * @type string */ id: string; } export interface RumTeamsOwnershipApiListTeamsOwnershipMappingsRequest { /** * Filter mappings by RUM view name. * @type Array */ filterViewName?: Array; /** * Filter mappings by owning team handle. * @type Array */ filterTeamHandle?: Array; /** * Filter mappings by RUM application ID. Each value must be a valid UUID. * @type Array */ filterApplicationId?: Array; /** * Filter mappings by RUM application service name. * @type Array */ filterService?: Array; } export interface RumTeamsOwnershipApiListTeamsOwnershipRulesRequest { /** * Filter mappings by RUM view name. * @type Array */ filterViewName?: Array; /** * Filter mappings by owning team handle. * @type Array */ filterTeamHandle?: Array; /** * Filter mappings by RUM application ID. Each value must be a valid UUID. * @type Array */ filterApplicationId?: Array; /** * Filter mappings by RUM application service name. * @type Array */ filterService?: Array; } export declare class RumTeamsOwnershipApi { private requestFactory; private responseProcessor; private configuration; constructor(configuration: Configuration, requestFactory?: RumTeamsOwnershipApiRequestFactory, responseProcessor?: RumTeamsOwnershipApiResponseProcessor); /** * Create a teams ownership mapping for your organization. * Returns the teams ownership mapping object from the request body when the request is successful. * @param param The request object */ createTeamsOwnershipMapping(param: RumTeamsOwnershipApiCreateTeamsOwnershipMappingRequest, options?: Configuration): Promise; /** * Add and remove teams ownership mappings for your organization in a single atomic request, following * the JSON:API [atomic operations extension](https://jsonapi.org/ext/atomic/). * Operations are applied together: if any operation is invalid, none of the operations are applied. * Add operations are processed before remove operations, so results may not appear in the same * order as the request. * @param param The request object */ createTeamsOwnershipMappingsBatch(param: RumTeamsOwnershipApiCreateTeamsOwnershipMappingsBatchRequest, options?: Configuration): Promise; /** * Delete a specific teams ownership mapping from your organization. * @param param The request object */ deleteTeamsOwnershipMapping(param: RumTeamsOwnershipApiDeleteTeamsOwnershipMappingRequest, options?: Configuration): Promise; /** * Get a specific teams ownership mapping from your organization. * @param param The request object */ getTeamsOwnershipMapping(param: RumTeamsOwnershipApiGetTeamsOwnershipMappingRequest, options?: Configuration): Promise; /** * Get the list of teams ownership mappings for your organization, optionally filtered. * @param param The request object */ listTeamsOwnershipMappings(param?: RumTeamsOwnershipApiListTeamsOwnershipMappingsRequest, options?: Configuration): Promise; /** * Get the list of teams ownership rules for your organization, optionally filtered. * Rules group the underlying mappings by `view_name`, `application_id`, `service`, and `match_type`, * collapsing every team that owns the same view into a single entry. * @param param The request object */ listTeamsOwnershipRules(param?: RumTeamsOwnershipApiListTeamsOwnershipRulesRequest, options?: Configuration): Promise; }