@harnessio/react-chaos-manager-client 1.29.0 → 1.30.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chaos-manager/src/services/hooks/useCreateConditionMutation.d.ts +28 -0
- package/dist/chaos-manager/src/services/hooks/useCreateConditionMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useCreateRuleMutation.d.ts +28 -0
- package/dist/chaos-manager/src/services/hooks/useCreateRuleMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useDeleteConditionMutation.d.ts +28 -0
- package/dist/chaos-manager/src/services/hooks/useDeleteConditionMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useDeleteLegacyKubernetesChaosInfraMutation.d.ts +27 -0
- package/dist/chaos-manager/src/services/hooks/useDeleteLegacyKubernetesChaosInfraMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useDeleteRuleMutation.d.ts +28 -0
- package/dist/chaos-manager/src/services/hooks/useDeleteRuleMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useEnableRuleMutation.d.ts +29 -0
- package/dist/chaos-manager/src/services/hooks/useEnableRuleMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useGetConditionQuery.d.ts +27 -0
- package/dist/chaos-manager/src/services/hooks/useGetConditionQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useGetExperimentTemplateRevisionsQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetLegacyKubernetesChaosInfraDetailsQuery.d.ts +26 -0
- package/dist/chaos-manager/src/services/hooks/useGetLegacyKubernetesChaosInfraDetailsQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useGetLegacyKubernetesChaosInfraManifestQuery.d.ts +25 -0
- package/dist/chaos-manager/src/services/hooks/useGetLegacyKubernetesChaosInfraManifestQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useGetLegacyKubernetesChaosInfraStatsQuery.d.ts +23 -0
- package/dist/chaos-manager/src/services/hooks/useGetLegacyKubernetesChaosInfraStatsQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useGetLegacyKubernetesChaosInfraVersionDetailsQuery.d.ts +23 -0
- package/dist/chaos-manager/src/services/hooks/useGetLegacyKubernetesChaosInfraVersionDetailsQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useGetLegacyKubernetesHelmInfraCommandQuery.d.ts +25 -0
- package/dist/chaos-manager/src/services/hooks/useGetLegacyKubernetesHelmInfraCommandQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useGetRuleQuery.d.ts +27 -0
- package/dist/chaos-manager/src/services/hooks/useGetRuleQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useListConditionQuery.d.ts +37 -0
- package/dist/chaos-manager/src/services/hooks/useListConditionQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useListExperimentRunsOfFaultQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useListExperimentTemplateQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useListFaultTemplateQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useListFaultv2Query.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useListLegacyKubernetesChaosInfraMutation.d.ts +27 -0
- package/dist/chaos-manager/src/services/hooks/useListLegacyKubernetesChaosInfraMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useListRuleQuery.d.ts +37 -0
- package/dist/chaos-manager/src/services/hooks/useListRuleQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useRegisterLegacyKubernetesInfraMutation.d.ts +27 -0
- package/dist/chaos-manager/src/services/hooks/useRegisterLegacyKubernetesInfraMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useTestLegacyKubernetesChaosInfraConnectionMutation.d.ts +26 -0
- package/dist/chaos-manager/src/services/hooks/useTestLegacyKubernetesChaosInfraConnectionMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useUpdateConditionMutation.d.ts +31 -0
- package/dist/chaos-manager/src/services/hooks/useUpdateConditionMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useUpdateLegacyKubernetesChaosInfraMutation.d.ts +29 -0
- package/dist/chaos-manager/src/services/hooks/useUpdateLegacyKubernetesChaosInfraMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useUpdateMachineInfraMutation.d.ts +30 -0
- package/dist/chaos-manager/src/services/hooks/useUpdateMachineInfraMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useUpdateRuleMutation.d.ts +31 -0
- package/dist/chaos-manager/src/services/hooks/useUpdateRuleMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useUpgradeLegacyKubernetesChaosInfraMutation.d.ts +26 -0
- package/dist/chaos-manager/src/services/hooks/useUpgradeLegacyKubernetesChaosInfraMutation.js +14 -0
- package/dist/chaos-manager/src/services/index.d.ts +73 -0
- package/dist/chaos-manager/src/services/index.js +23 -0
- package/dist/chaos-manager/src/services/schemas/ChaosexperimenttemplateCreateExperimentFromTemplateRequest.d.ts +9 -0
- package/dist/chaos-manager/src/services/schemas/ChaosguardconditionsConditionResponse.d.ts +21 -0
- package/dist/chaos-manager/src/services/schemas/ChaosguardconditionsConditionResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosguardconditionsCreateConditionRequest.d.ts +14 -0
- package/dist/chaos-manager/src/services/schemas/ChaosguardconditionsCreateConditionRequest.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosguardconditionsCreateConditionResponse.d.ts +15 -0
- package/dist/chaos-manager/src/services/schemas/ChaosguardconditionsCreateConditionResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosguardconditionsDeleteConditionResponse.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/ChaosguardconditionsDeleteConditionResponse.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ChaosguardconditionsGetConditionResponse.d.ts +22 -0
- package/dist/chaos-manager/src/services/schemas/ChaosguardconditionsGetConditionResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosguardconditionsListConditionResponse.d.ts +7 -0
- package/dist/chaos-manager/src/services/schemas/ChaosguardconditionsListConditionResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosguardconditionsRule.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/ChaosguardconditionsRule.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ChaosguardconditionsUpdateConditionResponse.d.ts +15 -0
- package/dist/chaos-manager/src/services/schemas/ChaosguardconditionsUpdateConditionResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosguardrulesCreateRuleRequest.d.ts +11 -0
- package/dist/chaos-manager/src/services/schemas/ChaosguardrulesCreateRuleRequest.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosguardrulesCreateRuleResponse.d.ts +12 -0
- package/dist/chaos-manager/src/services/schemas/ChaosguardrulesCreateRuleResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosguardrulesDeleteRuleResponse.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/ChaosguardrulesDeleteRuleResponse.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ChaosguardrulesGetRuleResponse.d.ts +19 -0
- package/dist/chaos-manager/src/services/schemas/ChaosguardrulesGetRuleResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosguardrulesListRuleResponse.d.ts +7 -0
- package/dist/chaos-manager/src/services/schemas/ChaosguardrulesListRuleResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosguardrulesRuleResponse.d.ts +19 -0
- package/dist/chaos-manager/src/services/schemas/ChaosguardrulesRuleResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosguardrulesUpdateRuleResponse.d.ts +12 -0
- package/dist/chaos-manager/src/services/schemas/ChaosguardrulesUpdateRuleResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerGraphModelRegisterInfraRequest.d.ts +85 -0
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerGraphModelRegisterInfraRequest.js +1 -0
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerGraphModelRegisterInfraResponse.d.ts +22 -0
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerGraphModelRegisterInfraResponse.js +4 -0
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbSecurityGovernanceRule.d.ts +11 -0
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbSecurityGovernanceRule.js +1 -0
- package/dist/chaos-manager/src/services/schemas/HcesdkUserDetails.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/HcesdkUserDetails.js +4 -0
- package/dist/chaos-manager/src/services/schemas/InfraInfraFilterInput.d.ts +8 -0
- package/dist/chaos-manager/src/services/schemas/InfraListInfraRequest.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/InfraRegisterInfraUserInputs.d.ts +16 -0
- package/dist/chaos-manager/src/services/schemas/InfraUpdateInfraRequest.d.ts +13 -0
- package/dist/chaos-manager/src/services/schemas/InfraUpdateInfraRequest.js +1 -0
- package/dist/chaos-manager/src/services/schemas/InfraUpdateInfraResponse.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/InfraUpdateInfraResponse.js +4 -0
- package/dist/chaos-manager/src/services/schemas/InfraV2KubernetesInfraV2FilterInput.d.ts +2 -0
- package/dist/chaos-manager/src/services/schemas/InfraV2ListKubernetesInfraV2Request.d.ts +2 -0
- package/dist/chaos-manager/src/services/schemas/InfraV2SortInput.d.ts +11 -0
- package/dist/chaos-manager/src/services/schemas/InfraV2SortInput.js +1 -0
- package/dist/chaos-manager/src/services/schemas/InfraV2SortingField.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/InfraV2SortingField.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ModelGetInfraStatsResponse.d.ts +22 -0
- package/dist/chaos-manager/src/services/schemas/ModelGetInfraStatsResponse.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ModelInfraVersionDetails.d.ts +10 -0
- package/dist/chaos-manager/src/services/schemas/ModelInfraVersionDetails.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ModelToleration.d.ts +7 -0
- package/dist/chaos-manager/src/services/schemas/ModelToleration.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ModelUpdateInfraRequest.d.ts +22 -0
- package/dist/chaos-manager/src/services/schemas/ModelUpdateInfraRequest.js +4 -0
- package/dist/chaos-manager/src/services/schemas/PipelineonboardingPipelineChaosOnboardingStatusResponse.d.ts +1 -1
- package/dist/chaos-manager/src/services/schemas/PipelineonboardingPipelineChaosOnboardingTaskRequest.d.ts +1 -1
- package/dist/chaos-manager/src/services/schemas/PipelineonboardingPipelineOnboarding.d.ts +1 -1
- package/dist/chaos-manager/src/services/schemas/SecurityGovernanceCondition.d.ts +4 -4
- package/dist/chaos-manager/src/services/schemas/SecurityGovernanceRecurrence.d.ts +1 -1
- package/dist/chaos-manager/src/services/schemas/SecurityGovernanceTimeWindow.d.ts +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export function listCondition(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/chaosguard-conditions`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* lists chaos guard conditions
|
|
11
|
+
*/
|
|
12
|
+
export function useListConditionQuery(props, options) {
|
|
13
|
+
return useQuery(['listCondition', props.queryParams], ({ signal }) => listCondition(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -11,7 +11,7 @@ export interface ListExperimentRunsOfFaultQueryQueryParams {
|
|
|
11
11
|
experimentType?: 'cronexperiment' | 'experiment' | 'experiment_v2';
|
|
12
12
|
isEnterprise?: boolean;
|
|
13
13
|
/**
|
|
14
|
-
* @default
|
|
14
|
+
* @default 15
|
|
15
15
|
*/
|
|
16
16
|
limit?: number;
|
|
17
17
|
organizationIdentifier?: string;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ModelListInfraResponse } from '../schemas/ModelListInfraResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import type { ModelListInfraRequest } from '../schemas/ModelListInfraRequest';
|
|
5
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export interface ListLegacyKubernetesChaosInfraMutationQueryParams {
|
|
7
|
+
accountIdentifier: string;
|
|
8
|
+
organizationIdentifier: string;
|
|
9
|
+
projectIdentifier: string;
|
|
10
|
+
}
|
|
11
|
+
export type ListLegacyKubernetesChaosInfraRequestBody = ModelListInfraRequest;
|
|
12
|
+
export type ListLegacyKubernetesChaosInfraOkResponse = ModelListInfraResponse;
|
|
13
|
+
export type ListLegacyKubernetesChaosInfraErrorResponse = ApiRestError;
|
|
14
|
+
export interface ListLegacyKubernetesChaosInfraProps extends Omit<FetcherOptions<ListLegacyKubernetesChaosInfraMutationQueryParams, ListLegacyKubernetesChaosInfraRequestBody>, 'url'> {
|
|
15
|
+
queryParams: ListLegacyKubernetesChaosInfraMutationQueryParams;
|
|
16
|
+
body: ListLegacyKubernetesChaosInfraRequestBody;
|
|
17
|
+
}
|
|
18
|
+
export interface ListLegacyKubernetesChaosInfraResponseContainer {
|
|
19
|
+
body: ListLegacyKubernetesChaosInfraOkResponse;
|
|
20
|
+
headers: Headers;
|
|
21
|
+
}
|
|
22
|
+
export declare function listLegacyKubernetesChaosInfra(props: ListLegacyKubernetesChaosInfraProps): Promise<ListLegacyKubernetesChaosInfraResponseContainer>;
|
|
23
|
+
export type ListLegacyKubernetesChaosInfraMutationProps<T extends keyof ListLegacyKubernetesChaosInfraProps> = Omit<ListLegacyKubernetesChaosInfraProps, T> & Partial<Pick<ListLegacyKubernetesChaosInfraProps, T>>;
|
|
24
|
+
/**
|
|
25
|
+
* List legacy kubernetes chaos infras
|
|
26
|
+
*/
|
|
27
|
+
export declare function useListLegacyKubernetesChaosInfraMutation<T extends keyof ListLegacyKubernetesChaosInfraProps>(props: Pick<Partial<ListLegacyKubernetesChaosInfraProps>, T>, options?: Omit<UseMutationOptions<ListLegacyKubernetesChaosInfraResponseContainer, ListLegacyKubernetesChaosInfraErrorResponse, ListLegacyKubernetesChaosInfraMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ListLegacyKubernetesChaosInfraResponseContainer, ApiRestError, ListLegacyKubernetesChaosInfraMutationProps<T>, unknown>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useMutation } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export function listLegacyKubernetesChaosInfra(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/kubernetes/infras`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* List legacy kubernetes chaos infras
|
|
11
|
+
*/
|
|
12
|
+
export function useListLegacyKubernetesChaosInfraMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => listLegacyKubernetesChaosInfra(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ChaosguardrulesListRuleResponse } from '../schemas/ChaosguardrulesListRuleResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface ListRuleQueryQueryParams {
|
|
6
|
+
accountIdentifier: string;
|
|
7
|
+
correlationID?: string;
|
|
8
|
+
infrastructureType?: 'Kubernetes' | 'KubernetesV2' | 'Linux' | 'Windows';
|
|
9
|
+
/**
|
|
10
|
+
* @default 15
|
|
11
|
+
*/
|
|
12
|
+
limit?: number;
|
|
13
|
+
organizationIdentifier?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @default 0
|
|
16
|
+
*/
|
|
17
|
+
page?: number;
|
|
18
|
+
projectIdentifier?: string;
|
|
19
|
+
search?: string;
|
|
20
|
+
sortAscending?: boolean;
|
|
21
|
+
sortField?: 'lastUpdated' | 'name';
|
|
22
|
+
tags?: string;
|
|
23
|
+
}
|
|
24
|
+
export type ListRuleOkResponse = ChaosguardrulesListRuleResponse;
|
|
25
|
+
export type ListRuleErrorResponse = ApiRestError;
|
|
26
|
+
export interface ListRuleProps extends Omit<FetcherOptions<ListRuleQueryQueryParams, unknown>, 'url'> {
|
|
27
|
+
queryParams: ListRuleQueryQueryParams;
|
|
28
|
+
}
|
|
29
|
+
export interface ListRuleResponseContainer {
|
|
30
|
+
body: ListRuleOkResponse;
|
|
31
|
+
headers: Headers;
|
|
32
|
+
}
|
|
33
|
+
export declare function listRule(props: ListRuleProps): Promise<ListRuleResponseContainer>;
|
|
34
|
+
/**
|
|
35
|
+
* lists chaos guard rules
|
|
36
|
+
*/
|
|
37
|
+
export declare function useListRuleQuery(props: ListRuleProps, options?: Omit<UseQueryOptions<ListRuleResponseContainer, ListRuleErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListRuleResponseContainer, ApiRestError>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export function listRule(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/chaosguard-rules`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* lists chaos guard rules
|
|
11
|
+
*/
|
|
12
|
+
export function useListRuleQuery(props, options) {
|
|
13
|
+
return useQuery(['listRule', props.queryParams], ({ signal }) => listRule(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { GithubComHarnessHceSaasGraphqlServerGraphModelRegisterInfraResponse } from '../schemas/GithubComHarnessHceSaasGraphqlServerGraphModelRegisterInfraResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import type { GithubComHarnessHceSaasGraphqlServerGraphModelRegisterInfraRequest } from '../schemas/GithubComHarnessHceSaasGraphqlServerGraphModelRegisterInfraRequest';
|
|
5
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export interface RegisterLegacyKubernetesInfraMutationQueryParams {
|
|
7
|
+
accountIdentifier: string;
|
|
8
|
+
organizationIdentifier: string;
|
|
9
|
+
projectIdentifier: string;
|
|
10
|
+
}
|
|
11
|
+
export type RegisterLegacyKubernetesInfraRequestBody = GithubComHarnessHceSaasGraphqlServerGraphModelRegisterInfraRequest;
|
|
12
|
+
export type RegisterLegacyKubernetesInfraOkResponse = GithubComHarnessHceSaasGraphqlServerGraphModelRegisterInfraResponse;
|
|
13
|
+
export type RegisterLegacyKubernetesInfraErrorResponse = ApiRestError;
|
|
14
|
+
export interface RegisterLegacyKubernetesInfraProps extends Omit<FetcherOptions<RegisterLegacyKubernetesInfraMutationQueryParams, RegisterLegacyKubernetesInfraRequestBody>, 'url'> {
|
|
15
|
+
queryParams: RegisterLegacyKubernetesInfraMutationQueryParams;
|
|
16
|
+
body: RegisterLegacyKubernetesInfraRequestBody;
|
|
17
|
+
}
|
|
18
|
+
export interface RegisterLegacyKubernetesInfraResponseContainer {
|
|
19
|
+
body: RegisterLegacyKubernetesInfraOkResponse;
|
|
20
|
+
headers: Headers;
|
|
21
|
+
}
|
|
22
|
+
export declare function registerLegacyKubernetesInfra(props: RegisterLegacyKubernetesInfraProps): Promise<RegisterLegacyKubernetesInfraResponseContainer>;
|
|
23
|
+
export type RegisterLegacyKubernetesInfraMutationProps<T extends keyof RegisterLegacyKubernetesInfraProps> = Omit<RegisterLegacyKubernetesInfraProps, T> & Partial<Pick<RegisterLegacyKubernetesInfraProps, T>>;
|
|
24
|
+
/**
|
|
25
|
+
* Register a new legacy kubernetes chaos infra
|
|
26
|
+
*/
|
|
27
|
+
export declare function useRegisterLegacyKubernetesInfraMutation<T extends keyof RegisterLegacyKubernetesInfraProps>(props: Pick<Partial<RegisterLegacyKubernetesInfraProps>, T>, options?: Omit<UseMutationOptions<RegisterLegacyKubernetesInfraResponseContainer, RegisterLegacyKubernetesInfraErrorResponse, RegisterLegacyKubernetesInfraMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<RegisterLegacyKubernetesInfraResponseContainer, ApiRestError, RegisterLegacyKubernetesInfraMutationProps<T>, unknown>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useMutation } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export function registerLegacyKubernetesInfra(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/kubernetes/infra`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Register a new legacy kubernetes chaos infra
|
|
11
|
+
*/
|
|
12
|
+
export function useRegisterLegacyKubernetesInfraMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => registerLegacyKubernetesInfra(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
3
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
4
|
+
export interface TestLegacyKubernetesChaosInfraConnectionMutationPathParams {
|
|
5
|
+
id: string;
|
|
6
|
+
}
|
|
7
|
+
export interface TestLegacyKubernetesChaosInfraConnectionMutationQueryParams {
|
|
8
|
+
accountIdentifier: string;
|
|
9
|
+
organizationIdentifier: string;
|
|
10
|
+
projectIdentifier: string;
|
|
11
|
+
}
|
|
12
|
+
export type TestLegacyKubernetesChaosInfraConnectionOkResponse = boolean;
|
|
13
|
+
export type TestLegacyKubernetesChaosInfraConnectionErrorResponse = ApiRestError;
|
|
14
|
+
export interface TestLegacyKubernetesChaosInfraConnectionProps extends TestLegacyKubernetesChaosInfraConnectionMutationPathParams, Omit<FetcherOptions<TestLegacyKubernetesChaosInfraConnectionMutationQueryParams, unknown>, 'url'> {
|
|
15
|
+
queryParams: TestLegacyKubernetesChaosInfraConnectionMutationQueryParams;
|
|
16
|
+
}
|
|
17
|
+
export interface TestLegacyKubernetesChaosInfraConnectionResponseContainer {
|
|
18
|
+
body: TestLegacyKubernetesChaosInfraConnectionOkResponse;
|
|
19
|
+
headers: Headers;
|
|
20
|
+
}
|
|
21
|
+
export declare function testLegacyKubernetesChaosInfraConnection(props: TestLegacyKubernetesChaosInfraConnectionProps): Promise<TestLegacyKubernetesChaosInfraConnectionResponseContainer>;
|
|
22
|
+
export type TestLegacyKubernetesChaosInfraConnectionMutationProps<T extends keyof TestLegacyKubernetesChaosInfraConnectionProps> = Omit<TestLegacyKubernetesChaosInfraConnectionProps, T> & Partial<Pick<TestLegacyKubernetesChaosInfraConnectionProps, T>>;
|
|
23
|
+
/**
|
|
24
|
+
* Test legacy kubernetes chaos infrastructure connection
|
|
25
|
+
*/
|
|
26
|
+
export declare function useTestLegacyKubernetesChaosInfraConnectionMutation<T extends keyof TestLegacyKubernetesChaosInfraConnectionProps>(props: Pick<Partial<TestLegacyKubernetesChaosInfraConnectionProps>, T>, options?: Omit<UseMutationOptions<TestLegacyKubernetesChaosInfraConnectionResponseContainer, TestLegacyKubernetesChaosInfraConnectionErrorResponse, TestLegacyKubernetesChaosInfraConnectionMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<TestLegacyKubernetesChaosInfraConnectionResponseContainer, ApiRestError, TestLegacyKubernetesChaosInfraConnectionMutationProps<T>, unknown>;
|
package/dist/chaos-manager/src/services/hooks/useTestLegacyKubernetesChaosInfraConnectionMutation.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useMutation } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export function testLegacyKubernetesChaosInfraConnection(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/kubernetes/infra/${props.id}/health`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Test legacy kubernetes chaos infrastructure connection
|
|
11
|
+
*/
|
|
12
|
+
export function useTestLegacyKubernetesChaosInfraConnectionMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => testLegacyKubernetesChaosInfraConnection(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ChaosguardconditionsUpdateConditionResponse } from '../schemas/ChaosguardconditionsUpdateConditionResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import type { SecurityGovernanceCondition } from '../schemas/SecurityGovernanceCondition';
|
|
5
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export interface UpdateConditionMutationPathParams {
|
|
7
|
+
identity: string;
|
|
8
|
+
}
|
|
9
|
+
export interface UpdateConditionMutationQueryParams {
|
|
10
|
+
accountIdentifier: string;
|
|
11
|
+
correlationID?: string;
|
|
12
|
+
organizationIdentifier?: string;
|
|
13
|
+
projectIdentifier?: string;
|
|
14
|
+
}
|
|
15
|
+
export type UpdateConditionRequestBody = SecurityGovernanceCondition;
|
|
16
|
+
export type UpdateConditionOkResponse = ChaosguardconditionsUpdateConditionResponse;
|
|
17
|
+
export type UpdateConditionErrorResponse = ApiRestError;
|
|
18
|
+
export interface UpdateConditionProps extends UpdateConditionMutationPathParams, Omit<FetcherOptions<UpdateConditionMutationQueryParams, UpdateConditionRequestBody>, 'url'> {
|
|
19
|
+
queryParams: UpdateConditionMutationQueryParams;
|
|
20
|
+
body: UpdateConditionRequestBody;
|
|
21
|
+
}
|
|
22
|
+
export interface UpdateConditionResponseContainer {
|
|
23
|
+
body: UpdateConditionOkResponse;
|
|
24
|
+
headers: Headers;
|
|
25
|
+
}
|
|
26
|
+
export declare function updateCondition(props: UpdateConditionProps): Promise<UpdateConditionResponseContainer>;
|
|
27
|
+
export type UpdateConditionMutationProps<T extends keyof UpdateConditionProps> = Omit<UpdateConditionProps, T> & Partial<Pick<UpdateConditionProps, T>>;
|
|
28
|
+
/**
|
|
29
|
+
* updates a chaos guard condition
|
|
30
|
+
*/
|
|
31
|
+
export declare function useUpdateConditionMutation<T extends keyof UpdateConditionProps>(props: Pick<Partial<UpdateConditionProps>, T>, options?: Omit<UseMutationOptions<UpdateConditionResponseContainer, UpdateConditionErrorResponse, UpdateConditionMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateConditionResponseContainer, ApiRestError, UpdateConditionMutationProps<T>, unknown>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useMutation } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export function updateCondition(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/chaosguard-conditions/${props.identity}`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* updates a chaos guard condition
|
|
11
|
+
*/
|
|
12
|
+
export function useUpdateConditionMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => updateCondition(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
package/dist/chaos-manager/src/services/hooks/useUpdateLegacyKubernetesChaosInfraMutation.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
3
|
+
import type { ModelUpdateInfraRequest } from '../schemas/ModelUpdateInfraRequest';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface UpdateLegacyKubernetesChaosInfraMutationPathParams {
|
|
6
|
+
id: string;
|
|
7
|
+
}
|
|
8
|
+
export interface UpdateLegacyKubernetesChaosInfraMutationQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
organizationIdentifier: string;
|
|
11
|
+
projectIdentifier: string;
|
|
12
|
+
}
|
|
13
|
+
export type UpdateLegacyKubernetesChaosInfraRequestBody = ModelUpdateInfraRequest;
|
|
14
|
+
export type UpdateLegacyKubernetesChaosInfraOkResponse = string;
|
|
15
|
+
export type UpdateLegacyKubernetesChaosInfraErrorResponse = ApiRestError;
|
|
16
|
+
export interface UpdateLegacyKubernetesChaosInfraProps extends UpdateLegacyKubernetesChaosInfraMutationPathParams, Omit<FetcherOptions<UpdateLegacyKubernetesChaosInfraMutationQueryParams, UpdateLegacyKubernetesChaosInfraRequestBody>, 'url'> {
|
|
17
|
+
queryParams: UpdateLegacyKubernetesChaosInfraMutationQueryParams;
|
|
18
|
+
body: UpdateLegacyKubernetesChaosInfraRequestBody;
|
|
19
|
+
}
|
|
20
|
+
export interface UpdateLegacyKubernetesChaosInfraResponseContainer {
|
|
21
|
+
body: UpdateLegacyKubernetesChaosInfraOkResponse;
|
|
22
|
+
headers: Headers;
|
|
23
|
+
}
|
|
24
|
+
export declare function updateLegacyKubernetesChaosInfra(props: UpdateLegacyKubernetesChaosInfraProps): Promise<UpdateLegacyKubernetesChaosInfraResponseContainer>;
|
|
25
|
+
export type UpdateLegacyKubernetesChaosInfraMutationProps<T extends keyof UpdateLegacyKubernetesChaosInfraProps> = Omit<UpdateLegacyKubernetesChaosInfraProps, T> & Partial<Pick<UpdateLegacyKubernetesChaosInfraProps, T>>;
|
|
26
|
+
/**
|
|
27
|
+
* Update legacy kubernetes chaos infras
|
|
28
|
+
*/
|
|
29
|
+
export declare function useUpdateLegacyKubernetesChaosInfraMutation<T extends keyof UpdateLegacyKubernetesChaosInfraProps>(props: Pick<Partial<UpdateLegacyKubernetesChaosInfraProps>, T>, options?: Omit<UseMutationOptions<UpdateLegacyKubernetesChaosInfraResponseContainer, UpdateLegacyKubernetesChaosInfraErrorResponse, UpdateLegacyKubernetesChaosInfraMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateLegacyKubernetesChaosInfraResponseContainer, ApiRestError, UpdateLegacyKubernetesChaosInfraMutationProps<T>, unknown>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useMutation } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export function updateLegacyKubernetesChaosInfra(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/kubernetes/infra/${props.id}`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Update legacy kubernetes chaos infras
|
|
11
|
+
*/
|
|
12
|
+
export function useUpdateLegacyKubernetesChaosInfraMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => updateLegacyKubernetesChaosInfra(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { InfraUpdateInfraResponse } from '../schemas/InfraUpdateInfraResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import type { InfraUpdateInfraRequest } from '../schemas/InfraUpdateInfraRequest';
|
|
5
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export interface UpdateMachineInfraMutationPathParams {
|
|
7
|
+
id: string;
|
|
8
|
+
}
|
|
9
|
+
export interface UpdateMachineInfraMutationQueryParams {
|
|
10
|
+
accountIdentifier: string;
|
|
11
|
+
organizationIdentifier: string;
|
|
12
|
+
projectIdentifier: string;
|
|
13
|
+
}
|
|
14
|
+
export type UpdateMachineInfraRequestBody = InfraUpdateInfraRequest;
|
|
15
|
+
export type UpdateMachineInfraOkResponse = InfraUpdateInfraResponse;
|
|
16
|
+
export type UpdateMachineInfraErrorResponse = ApiRestError;
|
|
17
|
+
export interface UpdateMachineInfraProps extends UpdateMachineInfraMutationPathParams, Omit<FetcherOptions<UpdateMachineInfraMutationQueryParams, UpdateMachineInfraRequestBody>, 'url'> {
|
|
18
|
+
queryParams: UpdateMachineInfraMutationQueryParams;
|
|
19
|
+
body: UpdateMachineInfraRequestBody;
|
|
20
|
+
}
|
|
21
|
+
export interface UpdateMachineInfraResponseContainer {
|
|
22
|
+
body: UpdateMachineInfraOkResponse;
|
|
23
|
+
headers: Headers;
|
|
24
|
+
}
|
|
25
|
+
export declare function updateMachineInfra(props: UpdateMachineInfraProps): Promise<UpdateMachineInfraResponseContainer>;
|
|
26
|
+
export type UpdateMachineInfraMutationProps<T extends keyof UpdateMachineInfraProps> = Omit<UpdateMachineInfraProps, T> & Partial<Pick<UpdateMachineInfraProps, T>>;
|
|
27
|
+
/**
|
|
28
|
+
* Update the machine chaos infra
|
|
29
|
+
*/
|
|
30
|
+
export declare function useUpdateMachineInfraMutation<T extends keyof UpdateMachineInfraProps>(props: Pick<Partial<UpdateMachineInfraProps>, T>, options?: Omit<UseMutationOptions<UpdateMachineInfraResponseContainer, UpdateMachineInfraErrorResponse, UpdateMachineInfraMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateMachineInfraResponseContainer, ApiRestError, UpdateMachineInfraMutationProps<T>, unknown>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useMutation } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export function updateMachineInfra(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/machine/infra/${props.id}`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Update the machine chaos infra
|
|
11
|
+
*/
|
|
12
|
+
export function useUpdateMachineInfraMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => updateMachineInfra(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ChaosguardrulesUpdateRuleResponse } from '../schemas/ChaosguardrulesUpdateRuleResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbSecurityGovernanceRule } from '../schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbSecurityGovernanceRule';
|
|
5
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export interface UpdateRuleMutationPathParams {
|
|
7
|
+
identity: string;
|
|
8
|
+
}
|
|
9
|
+
export interface UpdateRuleMutationQueryParams {
|
|
10
|
+
accountIdentifier: string;
|
|
11
|
+
correlationID?: string;
|
|
12
|
+
organizationIdentifier?: string;
|
|
13
|
+
projectIdentifier?: string;
|
|
14
|
+
}
|
|
15
|
+
export type UpdateRuleRequestBody = GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbSecurityGovernanceRule;
|
|
16
|
+
export type UpdateRuleOkResponse = ChaosguardrulesUpdateRuleResponse;
|
|
17
|
+
export type UpdateRuleErrorResponse = ApiRestError;
|
|
18
|
+
export interface UpdateRuleProps extends UpdateRuleMutationPathParams, Omit<FetcherOptions<UpdateRuleMutationQueryParams, UpdateRuleRequestBody>, 'url'> {
|
|
19
|
+
queryParams: UpdateRuleMutationQueryParams;
|
|
20
|
+
body: UpdateRuleRequestBody;
|
|
21
|
+
}
|
|
22
|
+
export interface UpdateRuleResponseContainer {
|
|
23
|
+
body: UpdateRuleOkResponse;
|
|
24
|
+
headers: Headers;
|
|
25
|
+
}
|
|
26
|
+
export declare function updateRule(props: UpdateRuleProps): Promise<UpdateRuleResponseContainer>;
|
|
27
|
+
export type UpdateRuleMutationProps<T extends keyof UpdateRuleProps> = Omit<UpdateRuleProps, T> & Partial<Pick<UpdateRuleProps, T>>;
|
|
28
|
+
/**
|
|
29
|
+
* updates a chaos guard rule
|
|
30
|
+
*/
|
|
31
|
+
export declare function useUpdateRuleMutation<T extends keyof UpdateRuleProps>(props: Pick<Partial<UpdateRuleProps>, T>, options?: Omit<UseMutationOptions<UpdateRuleResponseContainer, UpdateRuleErrorResponse, UpdateRuleMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateRuleResponseContainer, ApiRestError, UpdateRuleMutationProps<T>, unknown>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useMutation } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export function updateRule(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/chaosguard-rules/${props.identity}`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* updates a chaos guard rule
|
|
11
|
+
*/
|
|
12
|
+
export function useUpdateRuleMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => updateRule(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
package/dist/chaos-manager/src/services/hooks/useUpgradeLegacyKubernetesChaosInfraMutation.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
3
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
4
|
+
export interface UpgradeLegacyKubernetesChaosInfraMutationPathParams {
|
|
5
|
+
id: string;
|
|
6
|
+
}
|
|
7
|
+
export interface UpgradeLegacyKubernetesChaosInfraMutationQueryParams {
|
|
8
|
+
accountIdentifier: string;
|
|
9
|
+
organizationIdentifier: string;
|
|
10
|
+
projectIdentifier: string;
|
|
11
|
+
}
|
|
12
|
+
export type UpgradeLegacyKubernetesChaosInfraOkResponse = string;
|
|
13
|
+
export type UpgradeLegacyKubernetesChaosInfraErrorResponse = ApiRestError;
|
|
14
|
+
export interface UpgradeLegacyKubernetesChaosInfraProps extends UpgradeLegacyKubernetesChaosInfraMutationPathParams, Omit<FetcherOptions<UpgradeLegacyKubernetesChaosInfraMutationQueryParams, unknown>, 'url'> {
|
|
15
|
+
queryParams: UpgradeLegacyKubernetesChaosInfraMutationQueryParams;
|
|
16
|
+
}
|
|
17
|
+
export interface UpgradeLegacyKubernetesChaosInfraResponseContainer {
|
|
18
|
+
body: UpgradeLegacyKubernetesChaosInfraOkResponse;
|
|
19
|
+
headers: Headers;
|
|
20
|
+
}
|
|
21
|
+
export declare function upgradeLegacyKubernetesChaosInfra(props: UpgradeLegacyKubernetesChaosInfraProps): Promise<UpgradeLegacyKubernetesChaosInfraResponseContainer>;
|
|
22
|
+
export type UpgradeLegacyKubernetesChaosInfraMutationProps<T extends keyof UpgradeLegacyKubernetesChaosInfraProps> = Omit<UpgradeLegacyKubernetesChaosInfraProps, T> & Partial<Pick<UpgradeLegacyKubernetesChaosInfraProps, T>>;
|
|
23
|
+
/**
|
|
24
|
+
* Upgrade legacy kubernetes chaos infrastructure
|
|
25
|
+
*/
|
|
26
|
+
export declare function useUpgradeLegacyKubernetesChaosInfraMutation<T extends keyof UpgradeLegacyKubernetesChaosInfraProps>(props: Pick<Partial<UpgradeLegacyKubernetesChaosInfraProps>, T>, options?: Omit<UseMutationOptions<UpgradeLegacyKubernetesChaosInfraResponseContainer, UpgradeLegacyKubernetesChaosInfraErrorResponse, UpgradeLegacyKubernetesChaosInfraMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpgradeLegacyKubernetesChaosInfraResponseContainer, ApiRestError, UpgradeLegacyKubernetesChaosInfraMutationProps<T>, unknown>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useMutation } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export function upgradeLegacyKubernetesChaosInfra(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/kubernetes/infra/upgrade/${props.id}`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Upgrade legacy kubernetes chaos infrastructure
|
|
11
|
+
*/
|
|
12
|
+
export function useUpgradeLegacyKubernetesChaosInfraMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => upgradeLegacyKubernetesChaosInfra(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|