|
@@ -474,11 +474,9 @@ 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<
|
|
@@ -494,11 +492,9 @@ 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<
|
|
@@ -514,11 +510,9 @@ 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<
|
|
@@ -1053,7 +1047,7 @@ const listEnvGroups = baseApi<
|
|
|
cluster_id: number;
|
|
cluster_id: number;
|
|
|
}
|
|
}
|
|
|
>("GET", (pathParams) => {
|
|
>("GET", (pathParams) => {
|
|
|
- return `/api/projects/${pathParams.id}/clusters/${pathParams.cluster_id}/namespaces/${pathParams.namespace}/envgroups/list`;
|
|
|
|
|
|
|
+ return `/api/projects/${pathParams.id}/clusters/${pathParams.cluster_id}/namespaces/${pathParams.namespace}/envgroup/list`;
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
const listConfigMaps = baseApi<
|
|
const listConfigMaps = baseApi<
|
|
@@ -1077,11 +1071,9 @@ 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<
|