Interface ProjectApi
public interface ProjectApi
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<V1EmptyResponse>applyDistribution(String projectName, V1CreateConfigDistributionRequest body) org.springframework.http.ResponseEntity<V1ProjectBase>org.springframework.http.ResponseEntity<V1Config>createProjectConfig(String projectName, V1CreateConfigRequest body) org.springframework.http.ResponseEntity<List<V1PermissionBase>>createProjectPermission(String projectName) org.springframework.http.ResponseEntity<V1RoleBase>createProjectRole(String projectName, V1CreateRoleRequest body) org.springframework.http.ResponseEntity<V1ProjectUserBase>createProjectUser(String projectName, V1AddProjectUserRequest body) org.springframework.http.ResponseEntity<V1EmptyResponse>deleteDistribution(String projectName, String distributionName) org.springframework.http.ResponseEntity<V1EmptyResponse>deleteProject(String projectName) org.springframework.http.ResponseEntity<V1EmptyResponse>deleteProjectConfig(String projectName, String configName) org.springframework.http.ResponseEntity<List<V1PermissionBase>>deleteProjectPermission(String projectName, String permissionName) org.springframework.http.ResponseEntity<V1EmptyResponse>deleteProjectRole(String projectName, String roleName) org.springframework.http.ResponseEntity<V1EmptyResponse>deleteProjectUser(V1UpdateProjectUserRequest body, String projectName, String userName) org.springframework.http.ResponseEntity<V1Config>detailConfig(String projectName, String configName, V1UpdateConfigRequest body) org.springframework.http.ResponseEntity<V1ProjectBase>detailProject(String projectName) org.springframework.http.ResponseEntity<V1ConfigTemplateDetail>getConfigTemplateByTemplateName(String projectName, String templateName, String namespace) org.springframework.http.ResponseEntity<V1ListConfigTemplateResponse>getConfigTemplates(String projectName, String namespace) org.springframework.http.ResponseEntity<V1ListConfigResponse>getProjectConfigs(String projectName, String template) org.springframework.http.ResponseEntity<V1ListTerraformProviderResponse>getProviders(String projectName) org.springframework.http.ResponseEntity<V1ListConfigDistributionResponse>listDistributions(String projectName) org.springframework.http.ResponseEntity<List<V1PermissionBase>>listProjectPermissions(String projectName) org.springframework.http.ResponseEntity<V1ListRolesResponse>listProjectRoles(String projectName) org.springframework.http.ResponseEntity<V1ListProjectResponse>org.springframework.http.ResponseEntity<V1EmptyResponse>listProjectTargets(String projectName) org.springframework.http.ResponseEntity<V1ListProjectUsersResponse>listProjectUser(String projectName) org.springframework.http.ResponseEntity<V1ProjectBase>updateProject(String projectName, V1UpdateProjectRequest body) org.springframework.http.ResponseEntity<V1Config>updateProjectConfig(String projectName, String configName, V1UpdateConfigRequest body) org.springframework.http.ResponseEntity<V1RoleBase>updateProjectRole(String projectName, String roleName, V1UpdateRoleRequest body) org.springframework.http.ResponseEntity<V1ProjectUserBase>updateProjectUser(V1UpdateProjectUserRequest body, String projectName, String userName)
-
Method Details
-
listDistributions
@RequestMapping("/api/v1/projects/{projectName}/distributions") org.springframework.http.ResponseEntity<V1ListConfigDistributionResponse> listDistributions(@PathVariable("projectName") String projectName) -
applyDistribution
@RequestMapping("/api/v1/projects/{projectName}/distributions") org.springframework.http.ResponseEntity<V1EmptyResponse> applyDistribution(@PathVariable("projectName") String projectName, @RequestBody V1CreateConfigDistributionRequest body) -
deleteDistribution
@RequestMapping("/api/v1/projects/{projectName}/distributions/{distributionName}") org.springframework.http.ResponseEntity<V1EmptyResponse> deleteDistribution(@PathVariable("projectName") String projectName, @PathVariable("distributionName") String distributionName) -
listProjects
@RequestMapping("/api/v1/projects") org.springframework.http.ResponseEntity<V1ListProjectResponse> listProjects() -
detailProject
@RequestMapping("/api/v1/projects/{projectName}") org.springframework.http.ResponseEntity<V1ProjectBase> detailProject(@PathVariable("projectName") String projectName) -
createProject
@RequestMapping("/api/v1/projects") org.springframework.http.ResponseEntity<V1ProjectBase> createProject(@RequestBody V1CreateProjectRequest body) -
updateProject
@RequestMapping("/api/v1/projects/{projectName}") org.springframework.http.ResponseEntity<V1ProjectBase> updateProject(@PathVariable("projectName") String projectName, @RequestBody V1UpdateProjectRequest body) -
deleteProject
@RequestMapping("/api/v1/projects/{projectName}") org.springframework.http.ResponseEntity<V1EmptyResponse> deleteProject(@PathVariable("projectName") String projectName) -
getProjectConfigs
@RequestMapping("/api/v1/projects/{projectName}/configs") org.springframework.http.ResponseEntity<V1ListConfigResponse> getProjectConfigs(@PathVariable("projectName") String projectName, @RequestParam(value="template",required=false) String template) -
detailConfig
@RequestMapping("/api/v1/projects/{projectName}/configs/{configName}") org.springframework.http.ResponseEntity<V1Config> detailConfig(@PathVariable("projectName") String projectName, @PathVariable("configName") String configName, @RequestBody V1UpdateConfigRequest body) -
createProjectConfig
@RequestMapping("/api/v1/projects/{projectName}/configs") org.springframework.http.ResponseEntity<V1Config> createProjectConfig(@PathVariable("projectName") String projectName, @RequestBody V1CreateConfigRequest body) -
deleteProjectConfig
@RequestMapping("/api/v1/projects/{projectName}/configs/{configName}") org.springframework.http.ResponseEntity<V1EmptyResponse> deleteProjectConfig(@PathVariable("projectName") String projectName, @PathVariable("configName") String configName) -
listProjectPermissions
@RequestMapping("/api/v1/projects/{projectName}/permissions") org.springframework.http.ResponseEntity<List<V1PermissionBase>> listProjectPermissions(@PathVariable("projectName") String projectName) -
createProjectPermission
@RequestMapping("/api/v1/projects/{projectName}/permissions") org.springframework.http.ResponseEntity<List<V1PermissionBase>> createProjectPermission(@PathVariable("projectName") String projectName) -
updateProjectConfig
@RequestMapping("/api/v1/projects/{projectName}/configs/{configName}") org.springframework.http.ResponseEntity<V1Config> updateProjectConfig(@PathVariable("projectName") String projectName, @PathVariable("configName") String configName, @RequestBody V1UpdateConfigRequest body) -
deleteProjectPermission
@RequestMapping("/api/v1/projects/{projectName}/permissions/{permissionName}") org.springframework.http.ResponseEntity<List<V1PermissionBase>> deleteProjectPermission(@PathVariable("projectName") String projectName, @PathVariable("permissionName") String permissionName) -
listProjectRoles
@RequestMapping("/api/v1/projects/{projectName}/roles") org.springframework.http.ResponseEntity<V1ListRolesResponse> listProjectRoles(@PathVariable("projectName") String projectName) -
createProjectRole
@RequestMapping("/api/v1/projects/{projectName}/roles") org.springframework.http.ResponseEntity<V1RoleBase> createProjectRole(@PathVariable("projectName") String projectName, @RequestBody V1CreateRoleRequest body) -
updateProjectRole
@RequestMapping("/api/v1/projects/{projectName}/roles/{roleName}") org.springframework.http.ResponseEntity<V1RoleBase> updateProjectRole(@PathVariable("projectName") String projectName, @PathVariable("roleName") String roleName, @RequestBody V1UpdateRoleRequest body) -
deleteProjectRole
@RequestMapping("/api/v1/projects/{projectName}/roles/{roleName}") org.springframework.http.ResponseEntity<V1EmptyResponse> deleteProjectRole(@PathVariable("projectName") String projectName, @PathVariable("roleName") String roleName) -
listProjectUser
@RequestMapping("/api/v1/projects/{projectName}/users") org.springframework.http.ResponseEntity<V1ListProjectUsersResponse> listProjectUser(@PathVariable("projectName") String projectName) -
createProjectUser
@RequestMapping("/api/v1/projects/{projectName}/users") org.springframework.http.ResponseEntity<V1ProjectUserBase> createProjectUser(@PathVariable("projectName") String projectName, @RequestBody V1AddProjectUserRequest body) -
updateProjectUser
@RequestMapping("/api/v1/projects/{projectName}/users/{userName}") org.springframework.http.ResponseEntity<V1ProjectUserBase> updateProjectUser(@RequestBody V1UpdateProjectUserRequest body, @PathVariable("projectName") String projectName, @PathVariable("userName") String userName) -
deleteProjectUser
@RequestMapping("/api/v1/projects/{projectName}/users/{userName}") org.springframework.http.ResponseEntity<V1EmptyResponse> deleteProjectUser(@RequestBody V1UpdateProjectUserRequest body, @PathVariable("projectName") String projectName, @PathVariable("userName") String userName) -
getConfigTemplates
@RequestMapping("/api/v1/projects/{projectName}/config_templates") org.springframework.http.ResponseEntity<V1ListConfigTemplateResponse> getConfigTemplates(@PathVariable("projectName") String projectName, @RequestParam(value="namespace",required=true) String namespace) -
getConfigTemplateByTemplateName
@RequestMapping("/api/v1/projects/{projectName}/config_templates/{templateName}") org.springframework.http.ResponseEntity<V1ConfigTemplateDetail> getConfigTemplateByTemplateName(@PathVariable("projectName") String projectName, @PathVariable("templateName") String templateName, @RequestParam(value="namespace",required=false) String namespace) -
getProviders
@RequestMapping("/api/v1/projects/{projectName}/providers") org.springframework.http.ResponseEntity<V1ListTerraformProviderResponse> getProviders(@PathVariable("projectName") String projectName) -
listProjectTargets
@RequestMapping("/api/v1/projects/{projectName}/targets") org.springframework.http.ResponseEntity<V1EmptyResponse> listProjectTargets(@PathVariable("projectName") String projectName)
-