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 { ExecutionPolicyCreateRequest } from "../models/ExecutionPolicyCreateRequest"; import { ExecutionPolicyEffect } from "../models/ExecutionPolicyEffect"; import { ExecutionPolicyIntegration } from "../models/ExecutionPolicyIntegration"; import { ExecutionPolicyListResponse } from "../models/ExecutionPolicyListResponse"; import { ExecutionPolicyResponse } from "../models/ExecutionPolicyResponse"; import { ExecutionPolicyUpdateRequest } from "../models/ExecutionPolicyUpdateRequest"; export declare class ExecutionPolicyApiRequestFactory extends BaseAPIRequestFactory { createExecutionPolicy(body: ExecutionPolicyCreateRequest, _options?: Configuration): Promise; deleteExecutionPolicy(policyId: string, _options?: Configuration): Promise; getExecutionPolicy(policyId: string, _options?: Configuration): Promise; listExecutionPolicies(pageSize?: number, pageNumber?: number, filterName?: string, filterIds?: Array, filterIntegration?: Array, filterEffects?: Array, filterCreatorIds?: Array, sort?: Array, _options?: Configuration): Promise; updateExecutionPolicy(policyId: string, body: ExecutionPolicyUpdateRequest, _options?: Configuration): Promise; } export declare class ExecutionPolicyApiResponseProcessor { /** * 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 createExecutionPolicy * @throws ApiException if the response code was not in [200, 299] */ createExecutionPolicy(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 deleteExecutionPolicy * @throws ApiException if the response code was not in [200, 299] */ deleteExecutionPolicy(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 getExecutionPolicy * @throws ApiException if the response code was not in [200, 299] */ getExecutionPolicy(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 listExecutionPolicies * @throws ApiException if the response code was not in [200, 299] */ listExecutionPolicies(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 updateExecutionPolicy * @throws ApiException if the response code was not in [200, 299] */ updateExecutionPolicy(response: ResponseContext): Promise; } export interface ExecutionPolicyApiCreateExecutionPolicyRequest { /** * The execution policy to create. * @type ExecutionPolicyCreateRequest */ body: ExecutionPolicyCreateRequest; } export interface ExecutionPolicyApiDeleteExecutionPolicyRequest { /** * The ID of the execution policy. * @type string */ policyId: string; } export interface ExecutionPolicyApiGetExecutionPolicyRequest { /** * The ID of the execution policy. * @type string */ policyId: string; } export interface ExecutionPolicyApiListExecutionPoliciesRequest { /** * The number of execution policies to return per page. * @type number */ pageSize?: number; /** * The page number to return. * @type number */ pageNumber?: number; /** * Filter execution policies by name. * @type string */ filterName?: string; /** * Filter execution policies by a list of IDs. * @type Array */ filterIds?: Array; /** * Filter execution policies by a list of integrations. * @type Array */ filterIntegration?: Array; /** * Filter execution policies by a list of effects. * @type Array */ filterEffects?: Array; /** * Filter execution policies by a list of creator IDs. * @type Array */ filterCreatorIds?: Array; /** * The sort order for the results. Prefix a field with `-` to sort in * descending order. Valid fields are `name`, `effect`, `integration`, * `created_at`, and `updated_at`. * @type Array */ sort?: Array; } export interface ExecutionPolicyApiUpdateExecutionPolicyRequest { /** * The ID of the execution policy. * @type string */ policyId: string; /** * The new execution policy. * @type ExecutionPolicyUpdateRequest */ body: ExecutionPolicyUpdateRequest; } export declare class ExecutionPolicyApi { private requestFactory; private responseProcessor; private configuration; constructor(configuration: Configuration, requestFactory?: ExecutionPolicyApiRequestFactory, responseProcessor?: ExecutionPolicyApiResponseProcessor); /** * Create a new execution policy. * @param param The request object */ createExecutionPolicy(param: ExecutionPolicyApiCreateExecutionPolicyRequest, options?: Configuration): Promise; /** * Delete a specific execution policy. * @param param The request object */ deleteExecutionPolicy(param: ExecutionPolicyApiDeleteExecutionPolicyRequest, options?: Configuration): Promise; /** * Retrieve an existing execution policy by ID. * @param param The request object */ getExecutionPolicy(param: ExecutionPolicyApiGetExecutionPolicyRequest, options?: Configuration): Promise; /** * Retrieve a list of execution policies for the current organization. * @param param The request object */ listExecutionPolicies(param?: ExecutionPolicyApiListExecutionPoliciesRequest, options?: Configuration): Promise; /** * Update an existing execution policy. * Returns the execution policy object when the request is successful. * @param param The request object */ updateExecutionPolicy(param: ExecutionPolicyApiUpdateExecutionPolicyRequest, options?: Configuration): Promise; }