Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: generate client-go for enterprise v5.7.0-rc0 #68

Merged
merged 1 commit into from
Jun 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.6.0
ENTERPRISE_REF = v5.7.0-rc0
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 @@ -727,7 +727,8 @@ paths:
- User Management
summary: Delete the specified account, only allowed if the account is in the
disabled state. All users will be deleted along with the account and all resources
will be garbage collected
will be garbage collected. The deleted account name will not be available for reuse
immediately until all resources are garbage collected async.
operationId: delete_account
parameters:
- name: account_name
Expand Down Expand Up @@ -2848,7 +2849,7 @@ paths:
- name: base_digest
in: query
description: Digest of a base image. If specified the evaluation will indicate
results inherited from the base image
results inherited from the base image. Can specify "auto" to have the base image automatically calculated.
schema:
type: string
- name: x-anchore-account
Expand Down Expand Up @@ -3324,7 +3325,7 @@ paths:
- name: base_digest
in: query
description: Digest of a base image. If specified the vulnerabilities will
indicate inheritance from the base image
indicate inheritance from the base image. Can specify "auto" to have the base image automatically calculated.
schema:
type: string
- name: x-anchore-account
Expand Down Expand Up @@ -11365,6 +11366,12 @@ components:
type: string
description: The layer ID
example: sha256:03810167880e863d81dc60fc7771c975b93dfdf982d5677fb2c23d11b02c644b
user_marked_base:
type: boolean
description: True if a specific ancestor has been marked by the user as the chosen base image
chosen_base_image:
type: boolean
description: True for the specific ancestor that has been identified as the base image by the system. This image will be used internally for comparisons.
description: An summary of an image and it's layers.
ImageAncestry:
type: array
Expand Down Expand Up @@ -13807,6 +13814,8 @@ components:
description: The account scope that applies to the set of roles
roles:
$ref: '#/components/schemas/RbacManagerRole'
account:
$ref: '#/components/schemas/Account'
description: An account identifier and roles a user has within that account
RbacManagerApiErrorResponse:
type: object
Expand Down
2 changes: 1 addition & 1 deletion pkg/enterprise/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ Class | Method | HTTP request | Description
*UserManagementApi* | [**CreateUserApiKey**](docs/UserManagementApi.md#createuserapikey) | **Post** /accounts/{account_name}/users/{username}/api-keys | Add a new API key
*UserManagementApi* | [**CreateUserCredential**](docs/UserManagementApi.md#createusercredential) | **Post** /accounts/{account_name}/users/{username}/credentials | add/replace credential
*UserManagementApi* | [**CreateUserGroup**](docs/UserManagementApi.md#createusergroup) | **Post** /system/user-groups | Create a new user group
*UserManagementApi* | [**DeleteAccount**](docs/UserManagementApi.md#deleteaccount) | **Delete** /accounts/{account_name} | Delete the specified account, only allowed if the account is in the disabled state. All users will be deleted along with the account and all resources will be garbage collected
*UserManagementApi* | [**DeleteAccount**](docs/UserManagementApi.md#deleteaccount) | **Delete** /accounts/{account_name} | Delete the specified account, only allowed if the account is in the disabled state. All users will be deleted along with the account and all resources will be garbage collected. The deleted account name will not be available for reuse immediately until all resources are garbage collected async.
*UserManagementApi* | [**DeleteUser**](docs/UserManagementApi.md#deleteuser) | **Delete** /accounts/{account_name}/users/{username} | Delete a specific user credential by username of the credential. Cannot be the credential used to authenticate the request.
*UserManagementApi* | [**DeleteUserApiKey**](docs/UserManagementApi.md#deleteuserapikey) | **Delete** /accounts/{account_name}/users/{username}/api-keys/{key_name} | Delete a user API key
*UserManagementApi* | [**DeleteUserCredential**](docs/UserManagementApi.md#deleteusercredential) | **Delete** /accounts/{account_name}/users/{username}/credentials | Delete a credential by type
Expand Down
29 changes: 26 additions & 3 deletions pkg/enterprise/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,9 @@ paths:
description: Internal error
summary: "Delete the specified account, only allowed if the account is in the\
\ disabled state. All users will be deleted along with the account and all\
\ resources will be garbage collected"
\ resources will be garbage collected. The deleted account name will not be\
\ available for reuse immediately until all resources are garbage collected\
\ async."
tags:
- User Management
x-openapi-router-controller: anchore_enterprise.services.api.api.controllers.accounts
Expand Down Expand Up @@ -3247,7 +3249,8 @@ paths:
type: boolean
style: form
- description: Digest of a base image. If specified the evaluation will indicate
results inherited from the base image
results inherited from the base image. Can specify "auto" to have the base
image automatically calculated.
explode: true
in: query
name: base_digest
Expand Down Expand Up @@ -3801,7 +3804,8 @@ paths:
type: boolean
style: form
- description: Digest of a base image. If specified the vulnerabilities will
indicate inheritance from the base image
indicate inheritance from the base image. Can specify "auto" to have the
base image automatically calculated.
explode: true
in: query
name: base_digest
Expand Down Expand Up @@ -13627,10 +13631,12 @@ components:
ImageAncestor:
description: An summary of an image and it's layers.
example:
chosen_base_image: true
image_digest: sha256:55cffbd26dbe2e79252dd3283b1adef4459441e7b4fc2fe5ccd2bd5b52670474
layers:
- sha256:03810167880e863d81dc60fc7771c975b93dfdf982d5677fb2c23d11b02c644b
- sha256:03810167880e863d81dc60fc7771c975b93dfdf982d5677fb2c23d11b02c644b
user_marked_base: true
tags:
- docker.io/library/node:latest
- docker.io/library/node:latest
Expand All @@ -13653,6 +13659,14 @@ components:
example: sha256:03810167880e863d81dc60fc7771c975b93dfdf982d5677fb2c23d11b02c644b
type: string
type: array
user_marked_base:
description: True if a specific ancestor has been marked by the user as
the chosen base image
type: boolean
chosen_base_image:
description: True for the specific ancestor that has been identified as
the base image by the system. This image will be used internally for comparisons.
type: boolean
type: object
ImageAncestry:
description: "Array of ancestor objects. Sorted by the length of the layers\
Expand Down Expand Up @@ -17753,12 +17767,21 @@ components:
name: name
description: description
created_at: 2000-01-23T04:56:07.000+00:00
account:
last_updated: 2000-01-23T04:56:07.000+00:00
name: name
created_at: 2000-01-23T04:56:07.000+00:00
state: enabled
type: user
email: email
properties:
for_account:
description: The account scope that applies to the set of roles
type: string
roles:
$ref: '#/components/schemas/RbacManagerRole'
account:
$ref: '#/components/schemas/Account'
type: object
RbacManagerApiErrorResponse:
description: Generic HTTP API error response
Expand Down
4 changes: 2 additions & 2 deletions pkg/enterprise/api_images.go

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

4 changes: 2 additions & 2 deletions pkg/enterprise/api_user_management.go

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

52 changes: 52 additions & 0 deletions pkg/enterprise/docs/ImageAncestor.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ Name | Type | Description | Notes
**ImageDigest** | Pointer to **string** | The digest of the image | [optional]
**Tags** | Pointer to **[]string** | | [optional]
**Layers** | Pointer to **[]string** | The full set of layers for this image | [optional]
**UserMarkedBase** | Pointer to **bool** | True if a specific ancestor has been marked by the user as the chosen base image | [optional]
**ChosenBaseImage** | Pointer to **bool** | True for the specific ancestor that has been identified as the base image by the system. This image will be used internally for comparisons. | [optional]

## Methods

Expand Down Expand Up @@ -102,6 +104,56 @@ SetLayers sets Layers field to given value.

HasLayers returns a boolean if a field has been set.

### GetUserMarkedBase

`func (o *ImageAncestor) GetUserMarkedBase() bool`

GetUserMarkedBase returns the UserMarkedBase field if non-nil, zero value otherwise.

### GetUserMarkedBaseOk

`func (o *ImageAncestor) GetUserMarkedBaseOk() (*bool, bool)`

GetUserMarkedBaseOk returns a tuple with the UserMarkedBase field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetUserMarkedBase

`func (o *ImageAncestor) SetUserMarkedBase(v bool)`

SetUserMarkedBase sets UserMarkedBase field to given value.

### HasUserMarkedBase

`func (o *ImageAncestor) HasUserMarkedBase() bool`

HasUserMarkedBase returns a boolean if a field has been set.

### GetChosenBaseImage

`func (o *ImageAncestor) GetChosenBaseImage() bool`

GetChosenBaseImage returns the ChosenBaseImage field if non-nil, zero value otherwise.

### GetChosenBaseImageOk

`func (o *ImageAncestor) GetChosenBaseImageOk() (*bool, bool)`

GetChosenBaseImageOk returns a tuple with the ChosenBaseImage field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetChosenBaseImage

`func (o *ImageAncestor) SetChosenBaseImage(v bool)`

SetChosenBaseImage sets ChosenBaseImage field to given value.

### HasChosenBaseImage

`func (o *ImageAncestor) HasChosenBaseImage() bool`

HasChosenBaseImage returns a boolean if a field has been set.


[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
8 changes: 4 additions & 4 deletions pkg/enterprise/docs/ImagesApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ func main() {
detail := true // bool | (optional) (default to true)
history := true // bool | (optional) (default to false)
interactive := true // bool | (optional) (default to false)
baseDigest := "baseDigest_example" // string | Digest of a base image. If specified the evaluation will indicate results inherited from the base image (optional)
baseDigest := "baseDigest_example" // string | Digest of a base image. If specified the evaluation will indicate results inherited from the base image. Can specify \"auto\" to have the base image automatically calculated. (optional)
xAnchoreAccount := "xAnchoreAccount_example" // string | An account name to change the resource scope of the request to that account, if permissions allow (admin only) (optional)

configuration := openapiclient.NewConfiguration()
Expand Down Expand Up @@ -806,7 +806,7 @@ Name | Type | Description | Notes
**detail** | **bool** | | [default to true]
**history** | **bool** | | [default to false]
**interactive** | **bool** | | [default to false]
**baseDigest** | **string** | Digest of a base image. If specified the evaluation will indicate results inherited from the base image |
**baseDigest** | **string** | Digest of a base image. If specified the evaluation will indicate results inherited from the base image. Can specify \"auto\" to have the base image automatically calculated. |
**xAnchoreAccount** | **string** | An account name to change the resource scope of the request to that account, if permissions allow (admin only) |

### Return type
Expand Down Expand Up @@ -1061,7 +1061,7 @@ func main() {
forceRefresh := true // bool | (optional) (default to false)
includeVulnDescription := true // bool | (optional) (default to false)
vendorOnly := true // bool | Filter results to include only vulnerabilities that are not marked as invalid by upstream OS vendor data. When set to true, it will filter out all vulnerabilities where `will_not_fix` is False. If false all vulnerabilities are returned regardless of `will_not_fix` (optional) (default to true)
baseDigest := "baseDigest_example" // string | Digest of a base image. If specified the vulnerabilities will indicate inheritance from the base image (optional)
baseDigest := "baseDigest_example" // string | Digest of a base image. If specified the vulnerabilities will indicate inheritance from the base image. Can specify \"auto\" to have the base image automatically calculated. (optional)
xAnchoreAccount := "xAnchoreAccount_example" // string | An account name to change the resource scope of the request to that account, if permissions allow (admin only) (optional)

configuration := openapiclient.NewConfiguration()
Expand Down Expand Up @@ -1097,7 +1097,7 @@ Name | Type | Description | Notes
**forceRefresh** | **bool** | | [default to false]
**includeVulnDescription** | **bool** | | [default to false]
**vendorOnly** | **bool** | Filter results to include only vulnerabilities that are not marked as invalid by upstream OS vendor data. When set to true, it will filter out all vulnerabilities where `will_not_fix` is False. If false all vulnerabilities are returned regardless of `will_not_fix` | [default to true]
**baseDigest** | **string** | Digest of a base image. If specified the vulnerabilities will indicate inheritance from the base image |
**baseDigest** | **string** | Digest of a base image. If specified the vulnerabilities will indicate inheritance from the base image. Can specify \"auto\" to have the base image automatically calculated. |
**xAnchoreAccount** | **string** | An account name to change the resource scope of the request to that account, if permissions allow (admin only) |

### Return type
Expand Down
26 changes: 26 additions & 0 deletions pkg/enterprise/docs/RbacManagerAccountRole.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ForAccount** | Pointer to **string** | The account scope that applies to the set of roles | [optional]
**Roles** | Pointer to [**RbacManagerRole**](RbacManagerRole.md) | | [optional]
**Account** | Pointer to [**Account**](Account.md) | | [optional]

## Methods

Expand Down Expand Up @@ -76,6 +77,31 @@ SetRoles sets Roles field to given value.

HasRoles returns a boolean if a field has been set.

### GetAccount

`func (o *RbacManagerAccountRole) GetAccount() Account`

GetAccount returns the Account field if non-nil, zero value otherwise.

### GetAccountOk

`func (o *RbacManagerAccountRole) GetAccountOk() (*Account, bool)`

GetAccountOk returns a tuple with the Account field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetAccount

`func (o *RbacManagerAccountRole) SetAccount(v Account)`

SetAccount sets Account field to given value.

### HasAccount

`func (o *RbacManagerAccountRole) HasAccount() bool`

HasAccount returns a boolean if a field has been set.


[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
Loading
Loading