From ffd9578e975e886d9075a4f2e710117893de8ac7 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Thu, 23 Nov 2023 10:21:13 +0100 Subject: [PATCH] set version back to int32 --- api/openapi.yaml | 1 - docs/LayoutApi.md | 4 ++-- docs/LayoutVersion.md | 10 +++++----- model_layout_version.go | 12 ++++++------ 4 files changed, 13 insertions(+), 14 deletions(-) diff --git a/api/openapi.yaml b/api/openapi.yaml index 5c7b062..64d13c6 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -1010,7 +1010,6 @@ components: properties: version: example: 13 - format: int64 type: integer required: - version diff --git a/docs/LayoutApi.md b/docs/LayoutApi.md index a6d3a24..720e440 100644 --- a/docs/LayoutApi.md +++ b/docs/LayoutApi.md @@ -98,7 +98,7 @@ import ( ) func main() { - layoutVersion := *openapiclient.NewLayoutVersion(int64(13)) // LayoutVersion | Similarly to the CLI, the body must include the version of the new layout that will be created, which MUST be 1 + the value of the currently existing layout in the cluster. + layoutVersion := *openapiclient.NewLayoutVersion(int32(13)) // LayoutVersion | Similarly to the CLI, the body must include the version of the new layout that will be created, which MUST be 1 + the value of the currently existing layout in the cluster. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -225,7 +225,7 @@ import ( ) func main() { - layoutVersion := *openapiclient.NewLayoutVersion(int64(13)) // LayoutVersion | Reverting the staged changes is done by incrementing the version number and clearing the contents of the staged change list. Similarly to the CLI, the body must include the incremented version number, which MUST be 1 + the value of the currently existing layout in the cluster. + layoutVersion := *openapiclient.NewLayoutVersion(int32(13)) // LayoutVersion | Reverting the staged changes is done by incrementing the version number and clearing the contents of the staged change list. Similarly to the CLI, the body must include the incremented version number, which MUST be 1 + the value of the currently existing layout in the cluster. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/docs/LayoutVersion.md b/docs/LayoutVersion.md index f6792bf..47504c7 100644 --- a/docs/LayoutVersion.md +++ b/docs/LayoutVersion.md @@ -4,13 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Version** | **int64** | | +**Version** | **int32** | | ## Methods ### NewLayoutVersion -`func NewLayoutVersion(version int64, ) *LayoutVersion` +`func NewLayoutVersion(version int32, ) *LayoutVersion` NewLayoutVersion instantiates a new LayoutVersion object This constructor will assign default values to properties that have it defined, @@ -27,20 +27,20 @@ but it doesn't guarantee that properties required by API are set ### GetVersion -`func (o *LayoutVersion) GetVersion() int64` +`func (o *LayoutVersion) GetVersion() int32` GetVersion returns the Version field if non-nil, zero value otherwise. ### GetVersionOk -`func (o *LayoutVersion) GetVersionOk() (*int64, bool)` +`func (o *LayoutVersion) GetVersionOk() (*int32, bool)` GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVersion -`func (o *LayoutVersion) SetVersion(v int64)` +`func (o *LayoutVersion) SetVersion(v int32)` SetVersion sets Version field to given value. diff --git a/model_layout_version.go b/model_layout_version.go index 4003f53..2b4a39c 100644 --- a/model_layout_version.go +++ b/model_layout_version.go @@ -16,14 +16,14 @@ import ( // LayoutVersion struct for LayoutVersion type LayoutVersion struct { - Version int64 `json:"version"` + Version int32 `json:"version"` } // NewLayoutVersion instantiates a new LayoutVersion object // 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 NewLayoutVersion(version int64) *LayoutVersion { +func NewLayoutVersion(version int32) *LayoutVersion { this := LayoutVersion{} this.Version = version return &this @@ -38,9 +38,9 @@ func NewLayoutVersionWithDefaults() *LayoutVersion { } // GetVersion returns the Version field value -func (o *LayoutVersion) GetVersion() int64 { +func (o *LayoutVersion) GetVersion() int32 { if o == nil { - var ret int64 + var ret int32 return ret } @@ -49,7 +49,7 @@ func (o *LayoutVersion) GetVersion() int64 { // GetVersionOk returns a tuple with the Version field value // and a boolean to check if the value has been set. -func (o *LayoutVersion) GetVersionOk() (*int64, bool) { +func (o *LayoutVersion) GetVersionOk() (*int32, bool) { if o == nil { return nil, false } @@ -57,7 +57,7 @@ func (o *LayoutVersion) GetVersionOk() (*int64, bool) { } // SetVersion sets field value -func (o *LayoutVersion) SetVersion(v int64) { +func (o *LayoutVersion) SetVersion(v int32) { o.Version = v }