chore: update openapi ref to latest (#345)

* chore: update openapi ref to latest

* chore: update to openapi master
This commit is contained in:
William Baker
2021-12-21 15:15:50 -05:00
committed by GitHub
parent 327f239c6f
commit 68ac116959
8 changed files with 577 additions and 49 deletions

View File

@ -19,19 +19,16 @@ type LineProtocolLengthError struct {
Code LineProtocolLengthErrorCode `json:"code" yaml:"code"`
// Message is a human-readable message.
Message string `json:"message" yaml:"message"`
// Max length in bytes for a body of line-protocol.
MaxLength int32 `json:"maxLength" yaml:"maxLength"`
}
// NewLineProtocolLengthError instantiates a new LineProtocolLengthError 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 NewLineProtocolLengthError(code LineProtocolLengthErrorCode, message string, maxLength int32) *LineProtocolLengthError {
func NewLineProtocolLengthError(code LineProtocolLengthErrorCode, message string) *LineProtocolLengthError {
this := LineProtocolLengthError{}
this.Code = code
this.Message = message
this.MaxLength = maxLength
return &this
}
@ -91,30 +88,6 @@ func (o *LineProtocolLengthError) SetMessage(v string) {
o.Message = v
}
// GetMaxLength returns the MaxLength field value
func (o *LineProtocolLengthError) GetMaxLength() int32 {
if o == nil {
var ret int32
return ret
}
return o.MaxLength
}
// GetMaxLengthOk returns a tuple with the MaxLength field value
// and a boolean to check if the value has been set.
func (o *LineProtocolLengthError) GetMaxLengthOk() (*int32, bool) {
if o == nil {
return nil, false
}
return &o.MaxLength, true
}
// SetMaxLength sets field value
func (o *LineProtocolLengthError) SetMaxLength(v int32) {
o.MaxLength = v
}
func (o LineProtocolLengthError) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if true {
@ -123,9 +96,6 @@ func (o LineProtocolLengthError) MarshalJSON() ([]byte, error) {
if true {
toSerialize["message"] = o.Message
}
if true {
toSerialize["maxLength"] = o.MaxLength
}
return json.Marshal(toSerialize)
}