Skip to content

Commit

Permalink
Update API Client
Browse files Browse the repository at this point in the history
#### What's Changed
---

##### `GET` /admin/version/

###### Return Type:

Changed response : **200 OK**

* Changed content type : `application/json`

    New required properties:
    - `version_latest_valid`

    * Added property `version_latest_valid` (boolean)
        > Latest version query is a valid non-default value
  • Loading branch information
authentik-automation[bot] committed Mar 15, 2024
1 parent 8479925 commit 6f1d115
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 2 deletions.
6 changes: 6 additions & 0 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58753,6 +58753,7 @@ components:
example:
version_current: version_current
outdated: true
version_latest_valid: true
version_latest: version_latest
build_hash: build_hash
properties:
Expand All @@ -58764,6 +58765,10 @@ components:
description: Get latest version from cache
readOnly: true
type: string
version_latest_valid:
description: Latest version query is a valid non-default value
readOnly: true
type: boolean
build_hash:
description: "Get build hash, if version is not latest or released"
readOnly: true
Expand All @@ -58777,6 +58782,7 @@ components:
- outdated
- version_current
- version_latest
- version_latest_valid
type: object
WebAuthnDevice:
description: Serializer for WebAuthn authenticator devices
Expand Down
23 changes: 22 additions & 1 deletion docs/Version.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**VersionCurrent** | **string** | Get current version | [readonly]
**VersionLatest** | **string** | Get latest version from cache | [readonly]
**VersionLatestValid** | **bool** | Latest version query is a valid non-default value | [readonly]
**BuildHash** | **string** | Get build hash, if version is not latest or released | [readonly]
**Outdated** | **bool** | Check if we're running the latest version | [readonly]

## Methods

### NewVersion

`func NewVersion(versionCurrent string, versionLatest string, buildHash string, outdated bool, ) *Version`
`func NewVersion(versionCurrent string, versionLatest string, versionLatestValid bool, buildHash string, outdated bool, ) *Version`

NewVersion instantiates a new Version object
This constructor will assign default values to properties that have it defined,
Expand Down Expand Up @@ -68,6 +69,26 @@ and a boolean to check if the value has been set.
SetVersionLatest sets VersionLatest field to given value.


### GetVersionLatestValid

`func (o *Version) GetVersionLatestValid() bool`

GetVersionLatestValid returns the VersionLatestValid field if non-nil, zero value otherwise.

### GetVersionLatestValidOk

`func (o *Version) GetVersionLatestValidOk() (*bool, bool)`

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

### SetVersionLatestValid

`func (o *Version) SetVersionLatestValid(v bool)`

SetVersionLatestValid sets VersionLatestValid field to given value.


### GetBuildHash

`func (o *Version) GetBuildHash() string`
Expand Down
32 changes: 31 additions & 1 deletion model_version.go

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

5 changes: 5 additions & 0 deletions schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45583,6 +45583,10 @@ components:
type: string
description: Get latest version from cache
readOnly: true
version_latest_valid:
type: boolean
description: Latest version query is a valid non-default value
readOnly: true
build_hash:
type: string
description: Get build hash, if version is not latest or released
Expand All @@ -45596,6 +45600,7 @@ components:
- outdated
- version_current
- version_latest
- version_latest_valid
WebAuthnDevice:
type: object
description: Serializer for WebAuthn authenticator devices
Expand Down

0 comments on commit 6f1d115

Please sign in to comment.