-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
get: | ||
summary: 'List default helm advanced settings' | ||
operationId: getDefaultHelmAdvancedSettings | ||
tags: | ||
- Helm | ||
responses: | ||
'200': | ||
description: 'Default helm advanced settings' | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../schemas/helm/HelmAdvancedSettings.yaml' | ||
'401': | ||
$ref: '../responses/NotAuthorized.yaml' | ||
'403': | ||
$ref: '../responses/Forbidden.yaml' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
get: | ||
summary: 'List helms' | ||
operationId: listHelms | ||
parameters: | ||
- $ref: '../../parameters/path/environmentId.yaml' | ||
- $ref: '../../parameters/query/toUpdate.yaml' | ||
tags: | ||
- Helms | ||
responses: | ||
'200': | ||
description: 'List helms' | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../../schemas/helm/HelmResponseList.yaml' | ||
'401': | ||
$ref: '../../responses/NotAuthorized.yaml' | ||
'403': | ||
$ref: '../../responses/Forbidden.yaml' | ||
'404': | ||
$ref: '../../responses/NotFound.yaml' | ||
post: | ||
summary: 'Create a helm' | ||
operationId: createHelm | ||
parameters: | ||
- $ref: '../../parameters/path/environmentId.yaml' | ||
tags: | ||
- Helms | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../../schemas/helm/HelmRequest.yaml' | ||
responses: | ||
'201': | ||
description: 'Create helm' | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../../schemas/helm/HelmResponse.yaml' | ||
'400': | ||
$ref: '../../responses/BadRequest.yaml' | ||
'401': | ||
$ref: '../../responses/NotAuthorized.yaml' | ||
'403': | ||
$ref: '../../responses/Forbidden.yaml' | ||
'404': | ||
$ref: '../../responses/NotFound.yaml' | ||
'409': | ||
description: Helm name within the environment is already taken |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
get: | ||
summary: 'List all environment helm statuses' | ||
description: Returns a list of helms with only their id and status. | ||
operationId: getEnvironmentHelmStatus | ||
parameters: | ||
- $ref: '../../parameters/path/environmentId.yaml' | ||
tags: | ||
- Helms | ||
responses: | ||
'200': | ||
description: 'Get status' | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../../schemas/ReferenceObjectStatusResponseList.yaml' | ||
'401': | ||
$ref: '../../responses/NotAuthorized.yaml' | ||
'403': | ||
$ref: '../../responses/Forbidden.yaml' | ||
'404': | ||
$ref: '../../responses/NotFound.yaml' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
get: | ||
Check failure on line 1 in src/resources/helm/Helm.yaml GitHub Actions / Lint (pull_request)path-params
Check failure on line 1 in src/resources/helm/Helm.yaml GitHub Actions / Lint (pull_request)invalid-ref
|
||
summary: 'Get helm by ID' | ||
operationId: getHelm | ||
parameters: | ||
- $ref: '../../parameters/path/helmId.yaml' | ||
tags: | ||
- Helm Main Calls | ||
responses: | ||
'200': | ||
description: 'Get helm by ID' | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../../schemas/helm/HelmResponse.yaml' | ||
'401': | ||
$ref: '../../responses/NotAuthorized.yaml' | ||
'403': | ||
$ref: '../../responses/Forbidden.yaml' | ||
'404': | ||
$ref: '../../responses/NotFound.yaml' | ||
put: | ||
summary: 'Edit helm' | ||
description: | | ||
- To edit the helm you must have the admin permission. | ||
operationId: editHelm | ||
parameters: | ||
- $ref: '../../parameters/path/helmId.yaml' | ||
tags: | ||
- Helm Main Calls | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../../schemas/helm/HelmRequest.yaml' | ||
responses: | ||
'200': | ||
description: 'Edit helm' | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../../schemas/helm/HelmResponse.yaml' | ||
'400': | ||
$ref: '../../responses/BadRequest.yaml' | ||
'401': | ||
$ref: '../../responses/NotAuthorized.yaml' | ||
'403': | ||
$ref: '../../responses/Forbidden.yaml' | ||
'404': | ||
$ref: '../../responses/NotFound.yaml' | ||
'409': | ||
description: Helm name within the environment is already taken | ||
delete: | ||
summary: 'Delete helm' | ||
description: 'To delete the helm you must have the admin permission' | ||
operationId: deleteHelm | ||
parameters: | ||
- $ref: '../../parameters/path/helmId.yaml' | ||
tags: | ||
- Helm Main Calls | ||
responses: | ||
'204': | ||
$ref: '../../responses/Deleted.yaml' | ||
'401': | ||
$ref: '../../responses/NotAuthorized.yaml' | ||
'403': | ||
$ref: '../../responses/Forbidden.yaml' | ||
'404': | ||
$ref: '../../responses/NotFound.yaml' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
get: | ||
summary: 'Get advanced settings' | ||
description: Get list and values of the advanced settings of the helm. | ||
operationId: getHelmAdvancedSettings | ||
parameters: | ||
- $ref: '../../parameters/path/helmId.yaml' | ||
tags: | ||
- Helm Configuration | ||
responses: | ||
'200': | ||
description: 'Advanced settings list' | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../../schemas/helm/HelmAdvancedSettings.yaml' | ||
'401': | ||
$ref: '../../responses/NotAuthorized.yaml' | ||
'403': | ||
$ref: '../../responses/Forbidden.yaml' | ||
'404': | ||
$ref: '../../responses/NotFound.yaml' | ||
|
||
put: | ||
summary: 'Edit advanced settings' | ||
description: Edit advanced settings by returning table of advanced settings. | ||
operationId: editHelmAdvancedSettings | ||
parameters: | ||
- $ref: '../../parameters/path/helmId.yaml' | ||
tags: | ||
- Helm Configuration | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../../schemas/helm/HelmAdvancedSettings.yaml' | ||
responses: | ||
'201': | ||
description: 'Updated advanced settings' | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../../schemas/helm/HelmAdvancedSettings.yaml' | ||
'400': | ||
$ref: '../../responses/BadRequest.yaml' | ||
'401': | ||
$ref: '../../responses/NotAuthorized.yaml' | ||
'403': | ||
$ref: '../../responses/Forbidden.yaml' | ||
'404': | ||
$ref: '../../responses/NotFound.yaml' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
post: | ||
Check failure on line 1 in src/resources/helm/HelmDeploy.yaml GitHub Actions / Lint (pull_request)path-params
Check failure on line 1 in src/resources/helm/HelmDeploy.yaml GitHub Actions / Lint (pull_request)invalid-ref
|
||
summary: 'Deploy helm' | ||
description: You must provide a git commit id or an image tag depending on the source location of your code (git vs image repository). | ||
operationId: deployHelm | ||
parameters: | ||
- $ref: '../../parameters/path/helmId.yaml' | ||
- name: forceEvent | ||
in: query | ||
required: false | ||
description: | | ||
When filled, it indicates the target event to be deployed. | ||
If the concerned helm hasn't the target event provided, the helm won't be deployed. | ||
schema: | ||
$ref: ../../schemas/enums/HelmForceEvent.yaml | ||
tags: | ||
- Helm Actions | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../../schemas/helm/HelmDeployRequest.yaml' | ||
responses: | ||
'202': | ||
description: 'Deploy helm' | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../../schemas/Status.yaml' | ||
'400': | ||
$ref: '../../responses/BadRequest.yaml' | ||
'401': | ||
$ref: '../../responses/NotAuthorized.yaml' | ||
'403': | ||
$ref: '../../responses/Forbidden.yaml' | ||
'404': | ||
$ref: '../../responses/NotFound.yaml' | ||
'409': | ||
description: 'Operation is in progress' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
get: | ||
Check failure on line 1 in src/resources/helm/HelmDeploymentHistory.yaml GitHub Actions / Lint (pull_request)invalid-ref
|
||
summary: 'List helm deployments' | ||
description: Returns the 20 last helm deployments | ||
operationId: listHelmDeploymentHistory | ||
parameters: | ||
- $ref: '../../parameters/path/helmId.yaml' | ||
tags: | ||
- Helm Deployment History | ||
responses: | ||
'200': | ||
description: 'List deployment history' | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../../schemas/helm/DeploymentHistoryHelmPaginatedResponseList.yaml' | ||
'401': | ||
$ref: '../../responses/NotAuthorized.yaml' | ||
'403': | ||
$ref: '../../responses/Forbidden.yaml' | ||
'404': | ||
$ref: '../../responses/NotFound.yaml' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
get: | ||
Check failure on line 1 in src/resources/helm/HelmDeploymentRestriction.yaml GitHub Actions / Lint (pull_request)invalid-ref
Check failure on line 1 in src/resources/helm/HelmDeploymentRestriction.yaml GitHub Actions / Lint (pull_request)path-params
Check failure on line 1 in src/resources/helm/HelmDeploymentRestriction.yaml GitHub Actions / Lint (pull_request)invalid-ref
|
||
summary: 'Get helm deployment restrictions' | ||
description: 'Get helm deployment restrictions' | ||
operationId: getHelmDeploymentRestrictions | ||
parameters: | ||
- $ref: '../../parameters/path/helmId.yaml' | ||
tags: | ||
- Helm Deployment Restriction | ||
responses: | ||
'200': | ||
description: 'Get helm deployment restrictions' | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../../schemas/helm/HelmDeploymentRestrictionResponseList.yaml' | ||
'401': | ||
$ref: '../../responses/NotAuthorized.yaml' | ||
'403': | ||
$ref: '../../responses/Forbidden.yaml' | ||
'404': | ||
$ref: '../../responses/NotFound.yaml' | ||
|
||
post: | ||
summary: 'Create a helm deployment restriction' | ||
description: 'Create a helm deployment restriction' | ||
operationId: createHelmDeploymentRestriction | ||
parameters: | ||
- $ref: '../../parameters/path/helmId.yaml' | ||
tags: | ||
- Helm Deployment Restriction | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../../schemas/helm/HelmDeploymentRestrictionRequest.yaml' | ||
responses: | ||
'201': | ||
description: 'Added an environment variable' | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../../schemas/helm/HelmDeploymentRestrictionResponse.yaml' | ||
'400': | ||
$ref: '../../responses/BadRequest.yaml' | ||
'401': | ||
$ref: '../../responses/NotAuthorized.yaml' | ||
'403': | ||
$ref: '../../responses/Forbidden.yaml' | ||
'409': | ||
description: A Helm deployment restriction with same properties already exists for this helm |