|
@@ -339,25 +339,15 @@ const getPRDeployment = baseApi<
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
const deletePRDeployment = baseApi<
|
|
const deletePRDeployment = baseApi<
|
|
|
- {
|
|
|
|
|
- namespace: string;
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ {},
|
|
|
{
|
|
{
|
|
|
cluster_id: number;
|
|
cluster_id: number;
|
|
|
project_id: number;
|
|
project_id: number;
|
|
|
- git_installation_id: number;
|
|
|
|
|
- git_repo_owner: string;
|
|
|
|
|
- git_repo_name: string;
|
|
|
|
|
|
|
+ deployment_id: number;
|
|
|
}
|
|
}
|
|
|
>("DELETE", (pathParams) => {
|
|
>("DELETE", (pathParams) => {
|
|
|
- const {
|
|
|
|
|
- cluster_id,
|
|
|
|
|
- project_id,
|
|
|
|
|
- git_installation_id,
|
|
|
|
|
- git_repo_owner,
|
|
|
|
|
- git_repo_name,
|
|
|
|
|
- } = pathParams;
|
|
|
|
|
- return `/api/projects/${project_id}/gitrepos/${git_installation_id}/${git_repo_owner}/${git_repo_name}/clusters/${cluster_id}/deployment`;
|
|
|
|
|
|
|
+ const { cluster_id, project_id, deployment_id } = pathParams;
|
|
|
|
|
+ return `/api/projects/${project_id}/clusters/${cluster_id}/deployments/${deployment_id}`;
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
const getNotificationConfig = baseApi<
|
|
const getNotificationConfig = baseApi<
|
|
@@ -445,9 +435,11 @@ const detectBuildpack = baseApi<
|
|
|
branch: string;
|
|
branch: string;
|
|
|
}
|
|
}
|
|
|
>("GET", (pathParams) => {
|
|
>("GET", (pathParams) => {
|
|
|
- return `/api/projects/${pathParams.project_id}/gitrepos/${pathParams.git_repo_id
|
|
|
|
|
- }/repos/${pathParams.kind}/${pathParams.owner}/${pathParams.name
|
|
|
|
|
- }/${encodeURIComponent(pathParams.branch)}/buildpack/detect`;
|
|
|
|
|
|
|
+ return `/api/projects/${pathParams.project_id}/gitrepos/${
|
|
|
|
|
+ pathParams.git_repo_id
|
|
|
|
|
+ }/repos/${pathParams.kind}/${pathParams.owner}/${
|
|
|
|
|
+ pathParams.name
|
|
|
|
|
+ }/${encodeURIComponent(pathParams.branch)}/buildpack/detect`;
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
const getBranchContents = baseApi<
|
|
const getBranchContents = baseApi<
|
|
@@ -463,9 +455,11 @@ const getBranchContents = baseApi<
|
|
|
branch: string;
|
|
branch: string;
|
|
|
}
|
|
}
|
|
|
>("GET", (pathParams) => {
|
|
>("GET", (pathParams) => {
|
|
|
- return `/api/projects/${pathParams.project_id}/gitrepos/${pathParams.git_repo_id
|
|
|
|
|
- }/repos/${pathParams.kind}/${pathParams.owner}/${pathParams.name
|
|
|
|
|
- }/${encodeURIComponent(pathParams.branch)}/contents`;
|
|
|
|
|
|
|
+ return `/api/projects/${pathParams.project_id}/gitrepos/${
|
|
|
|
|
+ pathParams.git_repo_id
|
|
|
|
|
+ }/repos/${pathParams.kind}/${pathParams.owner}/${
|
|
|
|
|
+ pathParams.name
|
|
|
|
|
+ }/${encodeURIComponent(pathParams.branch)}/contents`;
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
const getProcfileContents = baseApi<
|
|
const getProcfileContents = baseApi<
|
|
@@ -481,9 +475,11 @@ const getProcfileContents = baseApi<
|
|
|
branch: string;
|
|
branch: string;
|
|
|
}
|
|
}
|
|
|
>("GET", (pathParams) => {
|
|
>("GET", (pathParams) => {
|
|
|
- return `/api/projects/${pathParams.project_id}/gitrepos/${pathParams.git_repo_id
|
|
|
|
|
- }/repos/${pathParams.kind}/${pathParams.owner}/${pathParams.name
|
|
|
|
|
- }/${encodeURIComponent(pathParams.branch)}/procfile`;
|
|
|
|
|
|
|
+ return `/api/projects/${pathParams.project_id}/gitrepos/${
|
|
|
|
|
+ pathParams.git_repo_id
|
|
|
|
|
+ }/repos/${pathParams.kind}/${pathParams.owner}/${
|
|
|
|
|
+ pathParams.name
|
|
|
|
|
+ }/${encodeURIComponent(pathParams.branch)}/procfile`;
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
const getBranches = baseApi<
|
|
const getBranches = baseApi<
|
|
@@ -1215,9 +1211,11 @@ const getEnvGroup = baseApi<
|
|
|
version?: number;
|
|
version?: number;
|
|
|
}
|
|
}
|
|
|
>("GET", (pathParams) => {
|
|
>("GET", (pathParams) => {
|
|
|
- return `/api/projects/${pathParams.id}/clusters/${pathParams.cluster_id
|
|
|
|
|
- }/namespaces/${pathParams.namespace}/envgroup?name=${pathParams.name}${pathParams.version ? "&version=" + pathParams.version : ""
|
|
|
|
|
- }`;
|
|
|
|
|
|
|
+ return `/api/projects/${pathParams.id}/clusters/${
|
|
|
|
|
+ pathParams.cluster_id
|
|
|
|
|
+ }/namespaces/${pathParams.namespace}/envgroup?name=${pathParams.name}${
|
|
|
|
|
+ pathParams.version ? "&version=" + pathParams.version : ""
|
|
|
|
|
+ }`;
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
const getConfigMap = baseApi<
|
|
const getConfigMap = baseApi<
|