diff --git a/api/openapi.yaml b/api/openapi.yaml index 24485cb16..af86a022a 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -58796,7 +58796,7 @@ components: example: version_current: version_current outdated: true - version_latest_valid: version_latest_valid + version_latest_valid: true version_latest: version_latest build_hash: build_hash properties: @@ -58811,7 +58811,7 @@ components: version_latest_valid: description: Check if latest version is valid readOnly: true - type: string + type: boolean build_hash: description: "Get build hash, if version is not latest or released" readOnly: true diff --git a/docs/Version.md b/docs/Version.md index 9e33538f7..c78868624 100644 --- a/docs/Version.md +++ b/docs/Version.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **VersionCurrent** | **string** | Get current version | [readonly] **VersionLatest** | **string** | Get latest version from cache | [readonly] -**VersionLatestValid** | **string** | Check if latest version is valid | [readonly] +**VersionLatestValid** | **bool** | Check if latest version is valid | [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] @@ -14,7 +14,7 @@ Name | Type | Description | Notes ### NewVersion -`func NewVersion(versionCurrent string, versionLatest string, versionLatestValid 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, @@ -71,20 +71,20 @@ SetVersionLatest sets VersionLatest field to given value. ### GetVersionLatestValid -`func (o *Version) GetVersionLatestValid() string` +`func (o *Version) GetVersionLatestValid() bool` GetVersionLatestValid returns the VersionLatestValid field if non-nil, zero value otherwise. ### GetVersionLatestValidOk -`func (o *Version) GetVersionLatestValidOk() (*string, bool)` +`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 string)` +`func (o *Version) SetVersionLatestValid(v bool)` SetVersionLatestValid sets VersionLatestValid field to given value. diff --git a/model_version.go b/model_version.go index a9e5e1804..60cbfb0a3 100644 --- a/model_version.go +++ b/model_version.go @@ -22,7 +22,7 @@ type Version struct { // Get latest version from cache VersionLatest string `json:"version_latest"` // Check if latest version is valid - VersionLatestValid string `json:"version_latest_valid"` + VersionLatestValid bool `json:"version_latest_valid"` // Get build hash, if version is not latest or released BuildHash string `json:"build_hash"` // Check if we're running the latest version @@ -33,7 +33,7 @@ type Version struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewVersion(versionCurrent string, versionLatest string, versionLatestValid string, buildHash string, outdated bool) *Version { +func NewVersion(versionCurrent string, versionLatest string, versionLatestValid bool, buildHash string, outdated bool) *Version { this := Version{} this.VersionCurrent = versionCurrent this.VersionLatest = versionLatest @@ -100,9 +100,9 @@ func (o *Version) SetVersionLatest(v string) { } // GetVersionLatestValid returns the VersionLatestValid field value -func (o *Version) GetVersionLatestValid() string { +func (o *Version) GetVersionLatestValid() bool { if o == nil { - var ret string + var ret bool return ret } @@ -111,7 +111,7 @@ func (o *Version) GetVersionLatestValid() string { // GetVersionLatestValidOk returns a tuple with the VersionLatestValid field value // and a boolean to check if the value has been set. -func (o *Version) GetVersionLatestValidOk() (*string, bool) { +func (o *Version) GetVersionLatestValidOk() (*bool, bool) { if o == nil { return nil, false } @@ -119,7 +119,7 @@ func (o *Version) GetVersionLatestValidOk() (*string, bool) { } // SetVersionLatestValid sets field value -func (o *Version) SetVersionLatestValid(v string) { +func (o *Version) SetVersionLatestValid(v bool) { o.VersionLatestValid = v } diff --git a/schema.yml b/schema.yml index a14f54287..be2ea52f8 100644 --- a/schema.yml +++ b/schema.yml @@ -45615,7 +45615,7 @@ components: description: Get latest version from cache readOnly: true version_latest_valid: - type: string + type: boolean description: Check if latest version is valid readOnly: true build_hash: