Skip to content

Commit

Permalink
Merge pull request #65 from anchore/v5.4.0-dev
Browse files Browse the repository at this point in the history
chore: update the v5.4.0 swagger
  • Loading branch information
svietry committed Mar 26, 2024
2 parents d78e31e + 7650b21 commit 0e536f8
Show file tree
Hide file tree
Showing 384 changed files with 1,628 additions and 388 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ OPENAPI_GENERATOR_VERSION = v6.0.0

# --- anchore enterprise references
# a git tag/branch/commit within anchore/enterprise repo
ENTERPRISE_REF = v5.3.0-rc5
ENTERPRISE_REF = v5.4.0-rc2
ENTERPRISE_ROOT = $(PROJECT_ROOT)/enterprise
ENTERPRISE_OPENAPI_DOC = $(PROJECT_ROOT)/anchore-api-swagger-$(ENTERPRISE_REF).yaml

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ info:
license:
name: Apache 2.0
url: http://www.apache.org/licenses/LICENSE-2.0.html
version: 2.3.0
version: 2.4.0
servers:
- url: /v2
tags:
Expand Down Expand Up @@ -8386,6 +8386,22 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/ArtifactLifecyclePolicyResponse'
/system/deployment-history:
get:
tags:
- catalog
summary: List Deployment History
description: Returns list of deployment history entries
operationId: get_deployment_history
responses:
"200":
description: List of deployment history entries
content:
application/json:
schema:
$ref: '#/components/schemas/DeploymentHistoryList'
x-openapi-router-controller: anchore_enterprise.services.api.api.controllers.system
x-anchore-authz-action: None
/system/error-codes:
get:
tags:
Expand Down Expand Up @@ -8675,6 +8691,11 @@ paths:
schema:
type: string
description: Filter results to match the specified user group name
- in: query
name: contains_account
schema:
type: string
description: Filter the results to only those that have roles in the specified account
responses:
200:
description: User group list
Expand Down Expand Up @@ -8877,13 +8898,22 @@ paths:
format: path
- name: membership_id
in: query
required: true
style: form
description: A list of membership ids to remove from the user group in the format of membership_id=1&membership_id=2
schema:
type: array
items:
type: string
- name: all_roles_for_account
in: query
required: false
style: form
explode: false
schema:
type: array
items:
type: string
description: A list of accounts to remove all roles from the user group in the format of all_roles_for_account=account1&all_roles_for_account=account2
responses:
204:
description: Success
Expand Down Expand Up @@ -10566,6 +10596,36 @@ components:
description: A list of delete image responses
items:
$ref: '#/components/schemas/DeleteImageResponse'
DeploymentHistory:
type: object
properties:
deployment_id:
type: string
upgrade_id:
type: string
to_system_version:
type: string
from_system_version:
type: string
to_database_version:
type: string
from_database_version:
type: string
outcome:
type: string
db_upgrade_duration:
type: number
format: float
created_at:
type: string
format: date-time
DeploymentHistoryList:
type: object
properties:
items:
type: array
items:
$ref: '#/components/schemas/DeploymentHistory'
ECSContainer:
required:
- account_name
Expand Down
6 changes: 6 additions & 0 deletions pkg/enterprise/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ api_alerts.go
api_applications.go
api_archives.go
api_artifact_lifecycle.go
api_catalog.go
api_corrections.go
api_events.go
api_identity.go
Expand Down Expand Up @@ -92,6 +93,7 @@ docs/AssociatedSourceArtifact.md
docs/BaseNotificationData.md
docs/CVSSV2Scores.md
docs/CVSSV3Scores.md
docs/CatalogApi.md
docs/ComplianceResource.md
docs/ComplianceViolationAlert.md
docs/ComplianceViolationAlertState.md
Expand All @@ -105,6 +107,8 @@ docs/CorrectionMatch.md
docs/CorrectionsApi.md
docs/CustomJsonPatch.md
docs/DeleteImageResponse.md
docs/DeploymentHistory.md
docs/DeploymentHistoryList.md
docs/ECSContainer.md
docs/ECSContainers.md
docs/ECSInventory.md
Expand Down Expand Up @@ -469,6 +473,8 @@ model_custom_json_patch.go
model_cvssv2_scores.go
model_cvssv3_scores.go
model_delete_image_response.go
model_deployment_history.go
model_deployment_history_list.go
model_ecs_container.go
model_ecs_containers.go
model_ecs_inventory.go
Expand Down
5 changes: 4 additions & 1 deletion pkg/enterprise/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ This is the Anchore API. Provides the external API for users of Anchore Enterpri
## Overview
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client.

- API version: 2.3.0
- API version: 2.4.0
- Package version: 5.0.0
- Build package: org.openapitools.codegen.languages.GoClientCodegen

Expand Down Expand Up @@ -114,6 +114,7 @@ Class | Method | HTTP request | Description
*ArtifactLifecycleApi* | [**GetArtifactLifecyclePolicyByVersion**](docs/ArtifactLifecycleApi.md#getartifactlifecyclepolicybyversion) | **Get** /system/artifact-lifecycle-policies/{policy_uuid}/versions | Get single artifact lifecycle policy by its version
*ArtifactLifecycleApi* | [**ListArtifactLifecyclePolicies**](docs/ArtifactLifecycleApi.md#listartifactlifecyclepolicies) | **Get** /system/artifact-lifecycle-policies | List all artifact lifecycle policies
*ArtifactLifecycleApi* | [**UpdateArtifactLifecyclePolicy**](docs/ArtifactLifecycleApi.md#updateartifactlifecyclepolicy) | **Put** /system/artifact-lifecycle-policies/{policy_uuid} | Update a single artifact lifecycle policy
*CatalogApi* | [**GetDeploymentHistory**](docs/CatalogApi.md#getdeploymenthistory) | **Get** /system/deployment-history | List Deployment History
*CorrectionsApi* | [**AddCorrection**](docs/CorrectionsApi.md#addcorrection) | **Post** /corrections | Create a correction record
*CorrectionsApi* | [**DeleteCorrectionByUuid**](docs/CorrectionsApi.md#deletecorrectionbyuuid) | **Delete** /corrections/{uuid} | Delete a correction by UUID
*CorrectionsApi* | [**GetCorrectionByUuid**](docs/CorrectionsApi.md#getcorrectionbyuuid) | **Get** /corrections/{uuid} | Retrieve a correction by UUID
Expand Down Expand Up @@ -455,6 +456,8 @@ Class | Method | HTTP request | Description
- [CorrectionMatch](docs/CorrectionMatch.md)
- [CustomJsonPatch](docs/CustomJsonPatch.md)
- [DeleteImageResponse](docs/DeleteImageResponse.md)
- [DeploymentHistory](docs/DeploymentHistory.md)
- [DeploymentHistoryList](docs/DeploymentHistoryList.md)
- [ECSContainer](docs/ECSContainer.md)
- [ECSContainers](docs/ECSContainers.md)
- [ECSInventory](docs/ECSInventory.md)
Expand Down
100 changes: 98 additions & 2 deletions pkg/enterprise/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ info:
name: Apache 2.0
url: http://www.apache.org/licenses/LICENSE-2.0.html
title: Anchore API
version: 2.3.0
version: 2.4.0
servers:
- url: /v2
tags:
Expand Down Expand Up @@ -9344,6 +9344,22 @@ paths:
- Artifact Lifecycle
x-openapi-router-controller: anchore_enterprise.services.api.api.controllers.artifact_lifecycle_policies
x-anchore-authz-action: getArtifactLifecyclePolicy
/system/deployment-history:
get:
description: Returns list of deployment history entries
operationId: get_deployment_history
responses:
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/DeploymentHistoryList'
description: List of deployment history entries
summary: List Deployment History
tags:
- catalog
x-openapi-router-controller: anchore_enterprise.services.api.api.controllers.system
x-anchore-authz-action: None
/system/error-codes:
get:
description: Describe anchore engine error codes.
Expand Down Expand Up @@ -9653,6 +9669,15 @@ paths:
schema:
type: string
style: form
- description: Filter the results to only those that have roles in the specified
account
explode: true
in: query
name: contains_account
required: false
schema:
type: string
style: form
responses:
"200":
content:
Expand Down Expand Up @@ -9806,7 +9831,18 @@ paths:
explode: true
in: query
name: membership_id
required: true
required: false
schema:
items:
type: string
type: array
style: form
- description: A list of accounts to remove all roles from the user group in
the format of all_roles_for_account=account1&all_roles_for_account=account2
explode: false
in: query
name: all_roles_for_account
required: false
schema:
items:
type: string
Expand Down Expand Up @@ -12467,6 +12503,66 @@ components:
items:
$ref: '#/components/schemas/DeleteImageResponse'
type: array
DeploymentHistory:
example:
from_database_version: from_database_version
to_database_version: to_database_version
from_system_version: from_system_version
upgrade_id: upgrade_id
created_at: 2000-01-23T04:56:07.000+00:00
deployment_id: deployment_id
outcome: outcome
db_upgrade_duration: 0.8008282
to_system_version: to_system_version
properties:
deployment_id:
type: string
upgrade_id:
type: string
to_system_version:
type: string
from_system_version:
type: string
to_database_version:
type: string
from_database_version:
type: string
outcome:
type: string
db_upgrade_duration:
format: float
type: number
created_at:
format: date-time
type: string
type: object
DeploymentHistoryList:
example:
items:
- from_database_version: from_database_version
to_database_version: to_database_version
from_system_version: from_system_version
upgrade_id: upgrade_id
created_at: 2000-01-23T04:56:07.000+00:00
deployment_id: deployment_id
outcome: outcome
db_upgrade_duration: 0.8008282
to_system_version: to_system_version
- from_database_version: from_database_version
to_database_version: to_database_version
from_system_version: from_system_version
upgrade_id: upgrade_id
created_at: 2000-01-23T04:56:07.000+00:00
deployment_id: deployment_id
outcome: outcome
db_upgrade_duration: 0.8008282
to_system_version: to_system_version
properties:
items:
items:
$ref: '#/components/schemas/DeploymentHistory'
type: array
type: object
ECSContainer:
example:
task_arn: task_arn
Expand Down
2 changes: 1 addition & 1 deletion pkg/enterprise/api_actions.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/enterprise/api_alerts.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/enterprise/api_applications.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/enterprise/api_archives.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/enterprise/api_artifact_lifecycle.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0e536f8

Please sign in to comment.