@@ -231,6 +231,25 @@ export interface AlertReceiverCreationRequest {
231231}
232232
233233
234+ /**
235+ *
236+ * @export
237+ * @interface AlertReceiverCreationValidationRequest
238+ */
239+ export interface AlertReceiverCreationValidationRequest {
240+ /**
241+ *
242+ * @type {AlertReceiverCreationRequest}
243+ * @memberof AlertReceiverCreationValidationRequest
244+ */
245+ 'alertReceiver': AlertReceiverCreationRequest;
246+ /**
247+ *
248+ * @type {string}
249+ * @memberof AlertReceiverCreationValidationRequest
250+ */
251+ 'message'?: string;
252+ }
234253/**
235254 *
236255 * @export
@@ -341,6 +360,19 @@ export const AlertReceiverType = {
341360export type AlertReceiverType = typeof AlertReceiverType[keyof typeof AlertReceiverType];
342361
343362
363+ /**
364+ *
365+ * @export
366+ * @interface AlertReceiverValidationRequest
367+ */
368+ export interface AlertReceiverValidationRequest {
369+ /**
370+ *
371+ * @type {string}
372+ * @memberof AlertReceiverValidationRequest
373+ */
374+ 'message'?: string;
375+ }
344376/**
345377 *
346378 * @export
@@ -20378,6 +20410,92 @@ export const AlertReceiversApiAxiosParamCreator = function (configuration?: Conf
2037820410 let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2037920411 localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2038020412
20413+ return {
20414+ url: toPathString(localVarUrlObj),
20415+ options: localVarRequestOptions,
20416+ };
20417+ },
20418+ /**
20419+ * Validate an existing alert receiver by sending a test message for example
20420+ * @summary Validate Existing Alert Receiver
20421+ * @param {string} alertReceiverId Alert Receiver ID
20422+ * @param {AlertReceiverValidationRequest} [alertReceiverValidationRequest]
20423+ * @param {*} [options] Override http request option.
20424+ * @throws {RequiredError}
20425+ */
20426+ validateExistingAlertReceiver: async (alertReceiverId: string, alertReceiverValidationRequest?: AlertReceiverValidationRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20427+ // verify required parameter 'alertReceiverId' is not null or undefined
20428+ assertParamExists('validateExistingAlertReceiver', 'alertReceiverId', alertReceiverId)
20429+ const localVarPath = `/alert-receivers/{alertReceiverId}/validate`
20430+ .replace(`{${"alertReceiverId"}}`, encodeURIComponent(String(alertReceiverId)));
20431+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
20432+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20433+ let baseOptions;
20434+ if (configuration) {
20435+ baseOptions = configuration.baseOptions;
20436+ }
20437+
20438+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
20439+ const localVarHeaderParameter = {} as any;
20440+ const localVarQueryParameter = {} as any;
20441+
20442+ // authentication ApiKeyAuth required
20443+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
20444+
20445+ // authentication bearerAuth required
20446+ // http bearer authentication required
20447+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
20448+
20449+
20450+
20451+ localVarHeaderParameter['Content-Type'] = 'application/json';
20452+
20453+ setSearchParams(localVarUrlObj, localVarQueryParameter);
20454+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20455+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
20456+ localVarRequestOptions.data = serializeDataIfNeeded(alertReceiverValidationRequest, localVarRequestOptions, configuration)
20457+
20458+ return {
20459+ url: toPathString(localVarUrlObj),
20460+ options: localVarRequestOptions,
20461+ };
20462+ },
20463+ /**
20464+ * Validate a future alert receiver by sending a test message for example
20465+ * @summary Validate New Alert Receiver
20466+ * @param {AlertReceiverCreationValidationRequest} [alertReceiverCreationValidationRequest]
20467+ * @param {*} [options] Override http request option.
20468+ * @throws {RequiredError}
20469+ */
20470+ validateNewAlertReceiver: async (alertReceiverCreationValidationRequest?: AlertReceiverCreationValidationRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20471+ const localVarPath = `/alert-receivers/validate`;
20472+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
20473+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20474+ let baseOptions;
20475+ if (configuration) {
20476+ baseOptions = configuration.baseOptions;
20477+ }
20478+
20479+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
20480+ const localVarHeaderParameter = {} as any;
20481+ const localVarQueryParameter = {} as any;
20482+
20483+ // authentication ApiKeyAuth required
20484+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
20485+
20486+ // authentication bearerAuth required
20487+ // http bearer authentication required
20488+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
20489+
20490+
20491+
20492+ localVarHeaderParameter['Content-Type'] = 'application/json';
20493+
20494+ setSearchParams(localVarUrlObj, localVarQueryParameter);
20495+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20496+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
20497+ localVarRequestOptions.data = serializeDataIfNeeded(alertReceiverCreationValidationRequest, localVarRequestOptions, configuration)
20498+
2038120499 return {
2038220500 url: toPathString(localVarUrlObj),
2038320501 options: localVarRequestOptions,
@@ -20459,6 +20577,33 @@ export const AlertReceiversApiFp = function(configuration?: Configuration) {
2045920577 const localVarOperationServerBasePath = operationServerMap['AlertReceiversApi.getAlertReceivers']?.[localVarOperationServerIndex]?.url;
2046020578 return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2046120579 },
20580+ /**
20581+ * Validate an existing alert receiver by sending a test message for example
20582+ * @summary Validate Existing Alert Receiver
20583+ * @param {string} alertReceiverId Alert Receiver ID
20584+ * @param {AlertReceiverValidationRequest} [alertReceiverValidationRequest]
20585+ * @param {*} [options] Override http request option.
20586+ * @throws {RequiredError}
20587+ */
20588+ async validateExistingAlertReceiver(alertReceiverId: string, alertReceiverValidationRequest?: AlertReceiverValidationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
20589+ const localVarAxiosArgs = await localVarAxiosParamCreator.validateExistingAlertReceiver(alertReceiverId, alertReceiverValidationRequest, options);
20590+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
20591+ const localVarOperationServerBasePath = operationServerMap['AlertReceiversApi.validateExistingAlertReceiver']?.[localVarOperationServerIndex]?.url;
20592+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20593+ },
20594+ /**
20595+ * Validate a future alert receiver by sending a test message for example
20596+ * @summary Validate New Alert Receiver
20597+ * @param {AlertReceiverCreationValidationRequest} [alertReceiverCreationValidationRequest]
20598+ * @param {*} [options] Override http request option.
20599+ * @throws {RequiredError}
20600+ */
20601+ async validateNewAlertReceiver(alertReceiverCreationValidationRequest?: AlertReceiverCreationValidationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
20602+ const localVarAxiosArgs = await localVarAxiosParamCreator.validateNewAlertReceiver(alertReceiverCreationValidationRequest, options);
20603+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
20604+ const localVarOperationServerBasePath = operationServerMap['AlertReceiversApi.validateNewAlertReceiver']?.[localVarOperationServerIndex]?.url;
20605+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20606+ },
2046220607 }
2046320608};
2046420609
@@ -20520,6 +20665,27 @@ export const AlertReceiversApiFactory = function (configuration?: Configuration,
2052020665 getAlertReceivers(organizationId: string, options?: RawAxiosRequestConfig): AxiosPromise<AlertReceiverList> {
2052120666 return localVarFp.getAlertReceivers(organizationId, options).then((request) => request(axios, basePath));
2052220667 },
20668+ /**
20669+ * Validate an existing alert receiver by sending a test message for example
20670+ * @summary Validate Existing Alert Receiver
20671+ * @param {string} alertReceiverId Alert Receiver ID
20672+ * @param {AlertReceiverValidationRequest} [alertReceiverValidationRequest]
20673+ * @param {*} [options] Override http request option.
20674+ * @throws {RequiredError}
20675+ */
20676+ validateExistingAlertReceiver(alertReceiverId: string, alertReceiverValidationRequest?: AlertReceiverValidationRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
20677+ return localVarFp.validateExistingAlertReceiver(alertReceiverId, alertReceiverValidationRequest, options).then((request) => request(axios, basePath));
20678+ },
20679+ /**
20680+ * Validate a future alert receiver by sending a test message for example
20681+ * @summary Validate New Alert Receiver
20682+ * @param {AlertReceiverCreationValidationRequest} [alertReceiverCreationValidationRequest]
20683+ * @param {*} [options] Override http request option.
20684+ * @throws {RequiredError}
20685+ */
20686+ validateNewAlertReceiver(alertReceiverCreationValidationRequest?: AlertReceiverCreationValidationRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
20687+ return localVarFp.validateNewAlertReceiver(alertReceiverCreationValidationRequest, options).then((request) => request(axios, basePath));
20688+ },
2052320689 };
2052420690};
2052520691
@@ -20590,6 +20756,31 @@ export class AlertReceiversApi extends BaseAPI {
2059020756 public getAlertReceivers(organizationId: string, options?: RawAxiosRequestConfig) {
2059120757 return AlertReceiversApiFp(this.configuration).getAlertReceivers(organizationId, options).then((request) => request(this.axios, this.basePath));
2059220758 }
20759+
20760+ /**
20761+ * Validate an existing alert receiver by sending a test message for example
20762+ * @summary Validate Existing Alert Receiver
20763+ * @param {string} alertReceiverId Alert Receiver ID
20764+ * @param {AlertReceiverValidationRequest} [alertReceiverValidationRequest]
20765+ * @param {*} [options] Override http request option.
20766+ * @throws {RequiredError}
20767+ * @memberof AlertReceiversApi
20768+ */
20769+ public validateExistingAlertReceiver(alertReceiverId: string, alertReceiverValidationRequest?: AlertReceiverValidationRequest, options?: RawAxiosRequestConfig) {
20770+ return AlertReceiversApiFp(this.configuration).validateExistingAlertReceiver(alertReceiverId, alertReceiverValidationRequest, options).then((request) => request(this.axios, this.basePath));
20771+ }
20772+
20773+ /**
20774+ * Validate a future alert receiver by sending a test message for example
20775+ * @summary Validate New Alert Receiver
20776+ * @param {AlertReceiverCreationValidationRequest} [alertReceiverCreationValidationRequest]
20777+ * @param {*} [options] Override http request option.
20778+ * @throws {RequiredError}
20779+ * @memberof AlertReceiversApi
20780+ */
20781+ public validateNewAlertReceiver(alertReceiverCreationValidationRequest?: AlertReceiverCreationValidationRequest, options?: RawAxiosRequestConfig) {
20782+ return AlertReceiversApiFp(this.configuration).validateNewAlertReceiver(alertReceiverCreationValidationRequest, options).then((request) => request(this.axios, this.basePath));
20783+ }
2059320784}
2059420785
2059520786
0 commit comments