set version back to int32
This commit is contained in:
parent
6dad7660a9
commit
ffd9578e97
4 changed files with 13 additions and 14 deletions
|
@ -1010,7 +1010,6 @@ components:
|
|||
properties:
|
||||
version:
|
||||
example: 13
|
||||
format: int64
|
||||
type: integer
|
||||
required:
|
||||
- version
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue