[go-experimental] Fix nullable support (#5414)

* Fix nullable support in go-experimental client

* Fix support for models with parents and container fields

* Make sure that oneOf interfaces serialize properly even if they're required (non-pointers) on other models

* Spaces => tabs

* Regenerate samples

* Make some methods of nullables pointer-receivers, add tests

* Improve the Get/Set logic to make usage more convenient

* Address review
This commit is contained in:
Slavek Kabrda
2020-03-24 10:44:12 +01:00
committed by GitHub
parent 9d96ab0983
commit 4c5785dc37
194 changed files with 8999 additions and 5947 deletions

View File

@@ -151,6 +151,11 @@ public class GoClientExperimentalCodegen extends GoClientCodegen {
@Override
public Map<String, Object> postProcessModels(Map<String, Object> objs) {
// The superclass determines the list of required golang imports. The actual list of imports
// depends on which types are used, some of which are changed in the code below (but then preserved
// and used through x-basetype in templates). So super.postProcessModels
// must be invoked at the beginning of this method.
objs = super.postProcessModels(objs);
List<Map<String, Object>> models = (List<Map<String, Object>>) objs.get("models");
for (Map<String, Object> m : models) {
@@ -162,6 +167,7 @@ public class GoClientExperimentalCodegen extends GoClientCodegen {
}
for (CodegenProperty param : model.vars) {
param.vendorExtensions.put("x-basetype", param.dataType);
if (!param.isNullable || param.isMapContainer || param.isListContainer) {
continue;
}
@@ -178,11 +184,6 @@ public class GoClientExperimentalCodegen extends GoClientCodegen {
}
}
}
// The superclass determines the list of required golang imports. The actual list of imports
// depends on which types are used, which is done in the code above. So super.postProcessModels
// must be invoked at the end of this method.
objs = super.postProcessModels(objs);
return objs;
}

View File

@@ -3,7 +3,6 @@ package {{packageName}}
{{#models}}
import (
"bytes"
"encoding/json"
{{#imports}}
"{{import}}"
@@ -36,7 +35,7 @@ func (v {{{classname}}}) Ptr() *{{{classname}}} {
// {{classname}}{{#description}} {{{description}}}{{/description}}{{^description}} struct for {{{classname}}}{{/description}}
type {{classname}} struct {
{{#vendorExtensions.x-is-one-of-interface}}
{{classname}}Interface interface { {{#discriminator}}{{propertyGetter}}() {{propertyType}}{{/discriminator}} }
{{classname}}Interface interface { {{#discriminator}}{{propertyGetter}}() {{propertyType}}{{/discriminator}} }
{{/vendorExtensions.x-is-one-of-interface}}
{{^vendorExtensions.x-is-one-of-interface}}
{{#parent}}
@@ -50,7 +49,7 @@ type {{classname}} struct {
{{#description}}
// {{{description}}}
{{/description}}
{{name}} {{^required}}*{{/required}}{{{dataType}}} `json:"{{baseName}}{{^required}},omitempty{{/required}}"{{#withXml}} xml:"{{baseName}}{{#isXmlAttribute}},attr{{/isXmlAttribute}}"{{/withXml}}{{#vendorExtensions.x-go-custom-tag}} {{{.}}}{{/vendorExtensions.x-go-custom-tag}}`
{{name}} {{^required}}{{^isNullable}}*{{/isNullable}}{{/required}}{{{dataType}}} `json:"{{baseName}}{{^required}},omitempty{{/required}}"{{#withXml}} xml:"{{baseName}}{{#isXmlAttribute}},attr{{/isXmlAttribute}}"{{/withXml}}{{#vendorExtensions.x-go-custom-tag}} {{{.}}}{{/vendorExtensions.x-go-custom-tag}}`
{{/vars}}
{{/vendorExtensions.x-is-one-of-interface}}
}
@@ -63,80 +62,160 @@ type {{classname}} struct {
// 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 New{{classname}}({{#vars}}{{#required}}{{nameInCamelCase}} {{dataType}}, {{/required}}{{/vars}}) *{{classname}} {
this := {{classname}}{}
this := {{classname}}{}
{{#vars}}
{{#required}}
this.{{name}} = {{nameInCamelCase}}
this.{{name}} = {{nameInCamelCase}}
{{/required}}
{{^required}}
{{#defaultValue}}
{{^isContainer}}
var {{nameInCamelCase}} {{{dataType}}} = {{#isNullable}}{{{dataType}}}{Value: {{/isNullable}}{{{.}}}{{#isNullable}} }{{/isNullable}}
this.{{name}} = {{^required}}&{{/required}}{{nameInCamelCase}}
{{#isNullable}}
var {{nameInCamelCase}} {{{datatypeWithEnum}}} = {{{.}}}
this.{{name}} = *New{{{dataType}}}(&{{nameInCamelCase}})
{{/isNullable}}
{{^isNullable}}
var {{nameInCamelCase}} {{{dataType}}} = {{{.}}}
this.{{name}} = &{{nameInCamelCase}}
{{/isNullable}}
{{/isContainer}}
{{/defaultValue}}
{{/required}}
{{/vars}}
return &this
return &this
}
// New{{classname}}WithDefaults instantiates a new {{classname}} object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func New{{classname}}WithDefaults() *{{classname}} {
this := {{classname}}{}
this := {{classname}}{}
{{#vars}}
{{#defaultValue}}
{{^isContainer}}
var {{nameInCamelCase}} {{{dataType}}} = {{#isNullable}}{{{dataType}}}{Value: {{/isNullable}}{{{.}}}{{#isNullable}} }{{/isNullable}}
this.{{name}} = {{^required}}&{{/required}}{{nameInCamelCase}}
{{#isNullable}}
{{!we use datatypeWithEnum here, since it will represent the non-nullable name of the datatype, e.g. int64 for NullableInt64}}
var {{nameInCamelCase}} {{{datatypeWithEnum}}} = {{{.}}}
this.{{name}} = *New{{{dataType}}}(&{{nameInCamelCase}})
{{/isNullable}}
{{^isNullable}}
var {{nameInCamelCase}} {{{dataType}}} = {{{.}}}
this.{{name}} = {{^required}}&{{/required}}{{nameInCamelCase}}
{{/isNullable}}
{{/isContainer}}
{{/defaultValue}}
{{/vars}}
return &this
return &this
}
{{#vars}}
{{#required}}
// Get{{name}} returns the {{name}} field value
func (o *{{classname}}) Get{{name}}() {{dataType}} {
if o == nil {
var ret {{dataType}}
{{#isNullable}}
// If the value is explicit nil, the zero value for {{vendorExtensions.x-basetype}} will be returned
{{/isNullable}}
func (o *{{classname}}) Get{{name}}() {{vendorExtensions.x-basetype}} {
if o == nil {{#isNullable}}{{^isContainer}}|| o.{{name}}.Get() == nil{{/isContainer}}{{/isNullable}} {
var ret {{vendorExtensions.x-basetype}}
return ret
}
{{#isNullable}}
{{#isContainer}}
return o.{{name}}
{{/isContainer}}
{{^isContainer}}
return *o.{{name}}.Get()
{{/isContainer}}
{{/isNullable}}
{{^isNullable}}
return o.{{name}}
{{/isNullable}}
}
// Get{{name}}Ok returns a tuple with the {{name}} field value
// and a boolean to check if the value has been set.
{{#isNullable}}
// NOTE: If the value is an explicit nil, `nil, true` will be returned
{{/isNullable}}
func (o *{{classname}}) Get{{name}}Ok() (*{{vendorExtensions.x-basetype}}, bool) {
if o == nil {{#isNullable}}{{#isContainer}}|| o.{{name}} == nil{{/isContainer}}{{/isNullable}} {
return nil, false
}
{{#isNullable}}
{{#isContainer}}
return &o.{{name}}, true
{{/isContainer}}
{{^isContainer}}
return o.{{name}}.Get(), o.{{name}}.IsSet()
{{/isContainer}}
{{/isNullable}}
{{^isNullable}}
return &o.{{name}}, true
{{/isNullable}}
}
// Set{{name}} sets field value
func (o *{{classname}}) Set{{name}}(v {{dataType}}) {
func (o *{{classname}}) Set{{name}}(v {{vendorExtensions.x-basetype}}) {
{{#isNullable}}
{{#isContainer}}
o.{{name}} = v
{{/isContainer}}
{{^isContainer}}
o.{{name}}.Set(&v)
{{/isContainer}}
{{/isNullable}}
{{^isNullable}}
o.{{name}} = v
{{/isNullable}}
}
{{/required}}
{{^required}}
// Get{{name}} returns the {{name}} field value if set, zero value otherwise.
func (o *{{classname}}) Get{{name}}() {{dataType}} {
if o == nil || o.{{name}} == nil {
var ret {{dataType}}
// Get{{name}} returns the {{name}} field value if set, zero value otherwise{{#isNullable}} (both if not set or set to explicit null){{/isNullable}}.
func (o *{{classname}}) Get{{name}}() {{vendorExtensions.x-basetype}} {
if o == nil {{^isNullable}}|| o.{{name}} == nil{{/isNullable}}{{#isNullable}}{{^isContainer}}|| o.{{name}}.Get() == nil{{/isContainer}}{{/isNullable}} {
var ret {{vendorExtensions.x-basetype}}
return ret
}
{{#isNullable}}
{{#isContainer}}
return o.{{name}}
{{/isContainer}}
{{^isContainer}}
return *o.{{name}}.Get()
{{/isContainer}}
{{/isNullable}}
{{^isNullable}}
return *o.{{name}}
{{/isNullable}}
}
// Get{{name}}Ok returns a tuple with the {{name}} field value if set, zero value otherwise
// Get{{name}}Ok returns a tuple with the {{name}} field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *{{classname}}) Get{{name}}Ok() ({{dataType}}, bool) {
if o == nil || o.{{name}} == nil {
var ret {{dataType}}
return ret, false
{{#isNullable}}
// NOTE: If the value is an explicit nil, `nil, true` will be returned
{{/isNullable}}
func (o *{{classname}}) Get{{name}}Ok() (*{{vendorExtensions.x-basetype}}, bool) {
if o == nil {{^isNullable}}|| o.{{name}} == nil{{/isNullable}}{{#isNullable}}{{#isContainer}}|| o.{{name}} == nil{{/isContainer}}{{/isNullable}} {
return nil, false
}
return *o.{{name}}, true
{{#isNullable}}
{{#isContainer}}
return &o.{{name}}, true
{{/isContainer}}
{{^isContainer}}
return o.{{name}}.Get(), o.{{name}}.IsSet()
{{/isContainer}}
{{/isNullable}}
{{^isNullable}}
return o.{{name}}, true
{{/isNullable}}
}
// Has{{name}} returns a boolean if a field has been set.
func (o *{{classname}}) Has{{name}}() bool {
if o != nil && o.{{name}} != nil {
if o != nil && {{^isNullable}}o.{{name}} != nil{{/isNullable}}{{#isNullable}}{{#isContainer}}o.{{name}} != nil{{/isContainer}}{{^isContainer}}o.{{name}}.IsSet(){{/isContainer}}{{/isNullable}} {
return true
}
@@ -144,86 +223,161 @@ func (o *{{classname}}) Has{{name}}() bool {
}
// Set{{name}} gets a reference to the given {{dataType}} and assigns it to the {{name}} field.
func (o *{{classname}}) Set{{name}}(v {{dataType}}) {
func (o *{{classname}}) Set{{name}}(v {{vendorExtensions.x-basetype}}) {
{{#isNullable}}
{{#isContainer}}
o.{{name}} = v
{{/isContainer}}
{{^isContainer}}
o.{{name}}.Set(&v)
{{/isContainer}}
{{/isNullable}}
{{^isNullable}}
o.{{name}} = &v
{{/isNullable}}
}
{{#isNullable}}
{{^isContainer}}
// Set{{name}}Nil sets the value for {{name}} to be an explicit nil
func (o *{{classname}}) Set{{name}}Nil() {
o.{{name}}.Set(nil)
}
// Unset{{name}} ensures that no value is present for {{name}}, not even an explicit nil
func (o *{{classname}}) Unset{{name}}() {
o.{{name}}.Unset()
}
{{/isContainer}}
{{/isNullable}}
{{/required}}
{{/vars}}
func (o {{classname}}) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
{{#parent}}
{{^isMapModel}}
serialized{{parent}}, err{{parent}} := json.Marshal(o.{{parent}})
if err{{parent}} != nil {
return []byte{}, err{{parent}}
}
err{{parent}} = json.Unmarshal([]byte(serialized{{parent}}), &toSerialize)
if err{{parent}} != nil {
return []byte{}, err{{parent}}
}
{{/isMapModel}}
{{/parent}}
{{#vars}}
{{! if argument is nullable, only serialize it if it is set}}
{{#isNullable}}
{{#isContainer}}
{{! support for container fields is not ideal at this point because of lack of Nullable* types}}
if o.{{name}} != nil {
toSerialize["{{baseName}}"] = o.{{name}}
}
{{/isContainer}}
{{^isContainer}}
if {{#required}}true{{/required}}{{^required}}o.{{name}}.IsSet(){{/required}} {
toSerialize["{{baseName}}"] = o.{{name}}.Get()
}
{{/isContainer}}
{{/isNullable}}
{{! if argument is not nullable, don't set it if it is nil}}
{{^isNullable}}
if {{#required}}true{{/required}}{{^required}}o.{{name}} != nil{{/required}} {
toSerialize["{{baseName}}"] = o.{{name}}
}
{{/isNullable}}
{{/vars}}
return json.Marshal(toSerialize)
}
{{/vendorExtensions.x-is-one-of-interface}}
{{#vendorExtensions.x-is-one-of-interface}}
func (s *{{classname}}) MarshalJSON() ([]byte, error) {
return json.Marshal(s.{{classname}}Interface)
func (s {{classname}}) MarshalJSON() ([]byte, error) {
return json.Marshal(s.{{classname}}Interface)
}
func (s *{{classname}}) UnmarshalJSON(src []byte) error {
var err error
{{#discriminator}}
var unmarshaled map[string]interface{}
err = json.Unmarshal(src, &unmarshaled)
if err != nil {
return err
}
if v, ok := unmarshaled["{{discriminator.propertyBaseName}}"]; ok {
switch v {
{{#discriminator.mappedModels}}
case "{{mappingName}}":
var result *{{modelName}} = &{{modelName}}{}
err = json.Unmarshal(src, result)
if err != nil {
return err
}
s.{{classname}}Interface = result
return nil
{{/discriminator.mappedModels}}
default:
return fmt.Errorf("No oneOf model has '{{discriminator.propertyBaseName}}' equal to %s", v)
}
} else {
return fmt.Errorf("Discriminator property '{{discriminator.propertyBaseName}}' not found in unmarshaled payload: %+v", unmarshaled)
}
{{/discriminator}}
{{^discriminator}}
{{#oneOf}}
var unmarshaled{{{.}}} *{{{.}}} = &{{{.}}}{}
err = json.Unmarshal(src, unmarshaled{{{.}}})
if err == nil {
s.{{classname}}Interface = unmarshaled{{{.}}}
return nil
}
{{/oneOf}}
return fmt.Errorf("No oneOf model could be deserialized from payload: %s", string(src))
{{/discriminator}}
var err error
{{#discriminator}}
var unmarshaled map[string]interface{}
err = json.Unmarshal(src, &unmarshaled)
if err != nil {
return err
}
if v, ok := unmarshaled["{{discriminator.propertyBaseName}}"]; ok {
switch v {
{{#discriminator.mappedModels}}
case "{{mappingName}}":
var result *{{modelName}} = &{{modelName}}{}
err = json.Unmarshal(src, result)
if err != nil {
return err
}
s.{{classname}}Interface = result
return nil
{{/discriminator.mappedModels}}
default:
return fmt.Errorf("No oneOf model has '{{discriminator.propertyBaseName}}' equal to %s", v)
}
} else {
return fmt.Errorf("Discriminator property '{{discriminator.propertyBaseName}}' not found in unmarshaled payload: %+v", unmarshaled)
}
{{/discriminator}}
{{^discriminator}}
{{#oneOf}}
var unmarshaled{{{.}}} *{{{.}}} = &{{{.}}}{}
err = json.Unmarshal(src, unmarshaled{{{.}}})
if err == nil {
s.{{classname}}Interface = unmarshaled{{{.}}}
return nil
}
{{/oneOf}}
return fmt.Errorf("No oneOf model could be deserialized from payload: %s", string(src))
{{/discriminator}}
}
{{/vendorExtensions.x-is-one-of-interface}}
{{#vendorExtensions.x-implements}}
// As{{{.}}} wraps this instance of {{classname}} in {{{.}}}
func (s *{{classname}}) As{{{.}}}() {{{.}}} {
return {{{.}}}{ {{{.}}}Interface: s }
return {{{.}}}{ {{{.}}}Interface: s }
}
{{/vendorExtensions.x-implements}}
{{/isEnum}}
type Nullable{{{classname}}} struct {
Value {{{classname}}}
ExplicitNull bool
value *{{{classname}}}
isSet bool
}
func (v Nullable{{classname}}) Get() *{{classname}} {
return v.value
}
func (v *Nullable{{classname}}) Set(val *{{classname}}) {
v.value = val
v.isSet = true
}
func (v Nullable{{classname}}) IsSet() bool {
return v.isSet
}
func (v *Nullable{{classname}}) Unset() {
v.value = nil
v.isSet = false
}
func NewNullable{{classname}}(val *{{classname}}) *Nullable{{classname}} {
return &Nullable{{classname}}{value: val, isSet: true}
}
func (v Nullable{{{classname}}}) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *Nullable{{{classname}}}) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}
{{/model}}
{{/models}}

View File

@@ -36,37 +36,42 @@ but it doesn't guarantee that properties required by API are set
{{#vars}}
### Get{{name}}
`func (o *{{classname}}) Get{{name}}() {{dataType}}`
`func (o *{{classname}}) Get{{name}}() {{vendorExtensions.x-basetype}}`
Get{{name}} returns the {{name}} field if non-nil, zero value otherwise.
### Get{{name}}Ok
`func (o *{{classname}}) Get{{name}}Ok() ({{dataType}}, bool)`
`func (o *{{classname}}) Get{{name}}Ok() (*{{vendorExtensions.x-basetype}}, bool)`
Get{{name}}Ok returns a tuple with the {{name}} field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### Set{{name}}
`func (o *{{classname}}) Set{{name}}(v {{vendorExtensions.x-basetype}})`
Set{{name}} sets {{name}} field to given value.
{{^required}}
### Has{{name}}
`func (o *{{classname}}) Has{{name}}() bool`
Has{{name}} returns a boolean if a field has been set.
### Set{{name}}
`func (o *{{classname}}) Set{{name}}(v {{dataType}})`
Set{{name}} gets a reference to the given {{dataType}} and assigns it to the {{name}} field.
{{/required}}
{{#isNullable}}
### Set{{name}}ExplicitNull
### Set{{name}}Nil
`func (o *{{classname}}) Set{{name}}ExplicitNull(b bool)`
`func (o *{{classname}}) Set{{name}}Nil(b bool)`
Set{{name}}ExplicitNull (un)sets {{name}} to be considered as explicit "null" value
when serializing to JSON (pass true as argument to set this, false to unset)
The {{name}} value is set to nil even if false is passed
Set{{name}}Nil sets the value for {{name}} to be an explicit nil
### Unset{{name}}
`func (o *{{classname}}) Unset{{name}}()`
Unset{{name}} ensures that no value is present for {{name}}, not even an explicit nil
{{/isNullable}}
{{/vars}}
{{#vendorExtensions.x-implements}}

View File

@@ -2,14 +2,10 @@
package {{packageName}}
import (
"bytes"
"encoding/json"
"errors"
"time"
"encoding/json"
"time"
)
var ErrInvalidNullable = errors.New("nullable cannot have non-zero Value and ExplicitNull simultaneously")
// PtrBool is a helper routine that returns a pointer to given integer value.
func PtrBool(v bool) *bool { return &v }
@@ -35,202 +31,296 @@ func PtrString(v string) *string { return &v }
func PtrTime(v time.Time) *time.Time { return &v }
type NullableBool struct {
Value bool
ExplicitNull bool
value *bool
isSet bool
}
func (v NullableBool) Get() *bool {
return v.value
}
func (v *NullableBool) Set(val *bool) {
v.value = val
v.isSet = true
}
func (v NullableBool) IsSet() bool {
return v.isSet
}
func (v *NullableBool) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableBool(val *bool) *NullableBool {
return &NullableBool{value: val, isSet: true}
}
func (v NullableBool) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull && v.Value:
return nil, ErrInvalidNullable
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableBool) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}
type NullableInt struct {
Value int
ExplicitNull bool
value *int
isSet bool
}
func (v NullableInt) Get() *int {
return v.value
}
func (v *NullableInt) Set(val *int) {
v.value = val
v.isSet = true
}
func (v NullableInt) IsSet() bool {
return v.isSet
}
func (v *NullableInt) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableInt(val *int) *NullableInt {
return &NullableInt{value: val, isSet: true}
}
func (v NullableInt) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull && v.Value != 0:
return nil, ErrInvalidNullable
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableInt) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}
type NullableInt32 struct {
Value int32
ExplicitNull bool
value *int32
isSet bool
}
func (v NullableInt32) Get() *int32 {
return v.value
}
func (v *NullableInt32) Set(val *int32) {
v.value = val
v.isSet = true
}
func (v NullableInt32) IsSet() bool {
return v.isSet
}
func (v *NullableInt32) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableInt32(val *int32) *NullableInt32 {
return &NullableInt32{value: val, isSet: true}
}
func (v NullableInt32) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull && v.Value != 0:
return nil, ErrInvalidNullable
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableInt32) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}
type NullableInt64 struct {
Value int64
ExplicitNull bool
value *int64
isSet bool
}
func (v NullableInt64) Get() *int64 {
return v.value
}
func (v *NullableInt64) Set(val *int64) {
v.value = val
v.isSet = true
}
func (v NullableInt64) IsSet() bool {
return v.isSet
}
func (v *NullableInt64) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableInt64(val *int64) *NullableInt64 {
return &NullableInt64{value: val, isSet: true}
}
func (v NullableInt64) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull && v.Value != 0:
return nil, ErrInvalidNullable
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableInt64) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}
type NullableFloat32 struct {
Value float32
ExplicitNull bool
value *float32
isSet bool
}
func (v NullableFloat32) Get() *float32 {
return v.value
}
func (v *NullableFloat32) Set(val *float32) {
v.value = val
v.isSet = true
}
func (v NullableFloat32) IsSet() bool {
return v.isSet
}
func (v *NullableFloat32) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableFloat32(val *float32) *NullableFloat32 {
return &NullableFloat32{value: val, isSet: true}
}
func (v NullableFloat32) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull && v.Value != 0.0:
return nil, ErrInvalidNullable
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableFloat32) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}
type NullableFloat64 struct {
Value float64
ExplicitNull bool
value *float64
isSet bool
}
func (v NullableFloat64) Get() *float64 {
return v.value
}
func (v *NullableFloat64) Set(val *float64) {
v.value = val
v.isSet = true
}
func (v NullableFloat64) IsSet() bool {
return v.isSet
}
func (v *NullableFloat64) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableFloat64(val *float64) *NullableFloat64 {
return &NullableFloat64{value: val, isSet: true}
}
func (v NullableFloat64) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull && v.Value != 0.0:
return nil, ErrInvalidNullable
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableFloat64) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}
type NullableString struct {
Value string
ExplicitNull bool
value *string
isSet bool
}
func (v NullableString) Get() *string {
return v.value
}
func (v *NullableString) Set(val *string) {
v.value = val
v.isSet = true
}
func (v NullableString) IsSet() bool {
return v.isSet
}
func (v *NullableString) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableString(val *string) *NullableString {
return &NullableString{value: val, isSet: true}
}
func (v NullableString) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull && v.Value != "":
return nil, ErrInvalidNullable
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableString) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}
type NullableTime struct {
Value time.Time
ExplicitNull bool
value *time.Time
isSet bool
}
func (v NullableTime) Get() *time.Time {
return v.value
}
func (v *NullableTime) Set(val *time.Time) {
v.value = val
v.isSet = true
}
func (v NullableTime) IsSet() bool {
return v.isSet
}
func (v *NullableTime) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableTime(val *time.Time) *NullableTime {
return &NullableTime{value: val, isSet: true}
}
func (v NullableTime) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull && !v.Value.IsZero():
return nil, ErrInvalidNullable
case v.ExplicitNull:
return []byte("null"), nil
default:
return v.Value.MarshalJSON()
}
return v.value.MarshalJSON()
}
func (v *NullableTime) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
}
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View File

@@ -33,23 +33,23 @@ GetName returns the Name field if non-nil, zero value otherwise.
### GetNameOk
`func (o *AdditionalPropertiesAnyType) GetNameOk() (string, bool)`
`func (o *AdditionalPropertiesAnyType) GetNameOk() (*string, bool)`
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetName
`func (o *AdditionalPropertiesAnyType) SetName(v string)`
SetName sets Name field to given value.
### HasName
`func (o *AdditionalPropertiesAnyType) HasName() bool`
HasName returns a boolean if a field has been set.
### SetName
`func (o *AdditionalPropertiesAnyType) SetName(v string)`
SetName gets a reference to the given string and assigns it to the Name field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -33,23 +33,23 @@ GetName returns the Name field if non-nil, zero value otherwise.
### GetNameOk
`func (o *AdditionalPropertiesArray) GetNameOk() (string, bool)`
`func (o *AdditionalPropertiesArray) GetNameOk() (*string, bool)`
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetName
`func (o *AdditionalPropertiesArray) SetName(v string)`
SetName sets Name field to given value.
### HasName
`func (o *AdditionalPropertiesArray) HasName() bool`
HasName returns a boolean if a field has been set.
### SetName
`func (o *AdditionalPropertiesArray) SetName(v string)`
SetName gets a reference to the given string and assigns it to the Name field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -33,23 +33,23 @@ GetName returns the Name field if non-nil, zero value otherwise.
### GetNameOk
`func (o *AdditionalPropertiesBoolean) GetNameOk() (string, bool)`
`func (o *AdditionalPropertiesBoolean) GetNameOk() (*string, bool)`
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetName
`func (o *AdditionalPropertiesBoolean) SetName(v string)`
SetName sets Name field to given value.
### HasName
`func (o *AdditionalPropertiesBoolean) HasName() bool`
HasName returns a boolean if a field has been set.
### SetName
`func (o *AdditionalPropertiesBoolean) SetName(v string)`
SetName gets a reference to the given string and assigns it to the Name field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -43,23 +43,23 @@ GetMapString returns the MapString field if non-nil, zero value otherwise.
### GetMapStringOk
`func (o *AdditionalPropertiesClass) GetMapStringOk() (map[string]string, bool)`
`func (o *AdditionalPropertiesClass) GetMapStringOk() (*map[string]string, bool)`
GetMapStringOk returns a tuple with the MapString field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetMapString
`func (o *AdditionalPropertiesClass) SetMapString(v map[string]string)`
SetMapString sets MapString field to given value.
### HasMapString
`func (o *AdditionalPropertiesClass) HasMapString() bool`
HasMapString returns a boolean if a field has been set.
### SetMapString
`func (o *AdditionalPropertiesClass) SetMapString(v map[string]string)`
SetMapString gets a reference to the given map[string]string and assigns it to the MapString field.
### GetMapNumber
`func (o *AdditionalPropertiesClass) GetMapNumber() map[string]float32`
@@ -68,23 +68,23 @@ GetMapNumber returns the MapNumber field if non-nil, zero value otherwise.
### GetMapNumberOk
`func (o *AdditionalPropertiesClass) GetMapNumberOk() (map[string]float32, bool)`
`func (o *AdditionalPropertiesClass) GetMapNumberOk() (*map[string]float32, bool)`
GetMapNumberOk returns a tuple with the MapNumber field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetMapNumber
`func (o *AdditionalPropertiesClass) SetMapNumber(v map[string]float32)`
SetMapNumber sets MapNumber field to given value.
### HasMapNumber
`func (o *AdditionalPropertiesClass) HasMapNumber() bool`
HasMapNumber returns a boolean if a field has been set.
### SetMapNumber
`func (o *AdditionalPropertiesClass) SetMapNumber(v map[string]float32)`
SetMapNumber gets a reference to the given map[string]float32 and assigns it to the MapNumber field.
### GetMapInteger
`func (o *AdditionalPropertiesClass) GetMapInteger() map[string]int32`
@@ -93,23 +93,23 @@ GetMapInteger returns the MapInteger field if non-nil, zero value otherwise.
### GetMapIntegerOk
`func (o *AdditionalPropertiesClass) GetMapIntegerOk() (map[string]int32, bool)`
`func (o *AdditionalPropertiesClass) GetMapIntegerOk() (*map[string]int32, bool)`
GetMapIntegerOk returns a tuple with the MapInteger field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetMapInteger
`func (o *AdditionalPropertiesClass) SetMapInteger(v map[string]int32)`
SetMapInteger sets MapInteger field to given value.
### HasMapInteger
`func (o *AdditionalPropertiesClass) HasMapInteger() bool`
HasMapInteger returns a boolean if a field has been set.
### SetMapInteger
`func (o *AdditionalPropertiesClass) SetMapInteger(v map[string]int32)`
SetMapInteger gets a reference to the given map[string]int32 and assigns it to the MapInteger field.
### GetMapBoolean
`func (o *AdditionalPropertiesClass) GetMapBoolean() map[string]bool`
@@ -118,23 +118,23 @@ GetMapBoolean returns the MapBoolean field if non-nil, zero value otherwise.
### GetMapBooleanOk
`func (o *AdditionalPropertiesClass) GetMapBooleanOk() (map[string]bool, bool)`
`func (o *AdditionalPropertiesClass) GetMapBooleanOk() (*map[string]bool, bool)`
GetMapBooleanOk returns a tuple with the MapBoolean field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetMapBoolean
`func (o *AdditionalPropertiesClass) SetMapBoolean(v map[string]bool)`
SetMapBoolean sets MapBoolean field to given value.
### HasMapBoolean
`func (o *AdditionalPropertiesClass) HasMapBoolean() bool`
HasMapBoolean returns a boolean if a field has been set.
### SetMapBoolean
`func (o *AdditionalPropertiesClass) SetMapBoolean(v map[string]bool)`
SetMapBoolean gets a reference to the given map[string]bool and assigns it to the MapBoolean field.
### GetMapArrayInteger
`func (o *AdditionalPropertiesClass) GetMapArrayInteger() map[string][]int32`
@@ -143,23 +143,23 @@ GetMapArrayInteger returns the MapArrayInteger field if non-nil, zero value othe
### GetMapArrayIntegerOk
`func (o *AdditionalPropertiesClass) GetMapArrayIntegerOk() (map[string][]int32, bool)`
`func (o *AdditionalPropertiesClass) GetMapArrayIntegerOk() (*map[string][]int32, bool)`
GetMapArrayIntegerOk returns a tuple with the MapArrayInteger field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetMapArrayInteger
`func (o *AdditionalPropertiesClass) SetMapArrayInteger(v map[string][]int32)`
SetMapArrayInteger sets MapArrayInteger field to given value.
### HasMapArrayInteger
`func (o *AdditionalPropertiesClass) HasMapArrayInteger() bool`
HasMapArrayInteger returns a boolean if a field has been set.
### SetMapArrayInteger
`func (o *AdditionalPropertiesClass) SetMapArrayInteger(v map[string][]int32)`
SetMapArrayInteger gets a reference to the given map[string][]int32 and assigns it to the MapArrayInteger field.
### GetMapArrayAnytype
`func (o *AdditionalPropertiesClass) GetMapArrayAnytype() map[string][]map[string]interface{}`
@@ -168,23 +168,23 @@ GetMapArrayAnytype returns the MapArrayAnytype field if non-nil, zero value othe
### GetMapArrayAnytypeOk
`func (o *AdditionalPropertiesClass) GetMapArrayAnytypeOk() (map[string][]map[string]interface{}, bool)`
`func (o *AdditionalPropertiesClass) GetMapArrayAnytypeOk() (*map[string][]map[string]interface{}, bool)`
GetMapArrayAnytypeOk returns a tuple with the MapArrayAnytype field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetMapArrayAnytype
`func (o *AdditionalPropertiesClass) SetMapArrayAnytype(v map[string][]map[string]interface{})`
SetMapArrayAnytype sets MapArrayAnytype field to given value.
### HasMapArrayAnytype
`func (o *AdditionalPropertiesClass) HasMapArrayAnytype() bool`
HasMapArrayAnytype returns a boolean if a field has been set.
### SetMapArrayAnytype
`func (o *AdditionalPropertiesClass) SetMapArrayAnytype(v map[string][]map[string]interface{})`
SetMapArrayAnytype gets a reference to the given map[string][]map[string]interface{} and assigns it to the MapArrayAnytype field.
### GetMapMapString
`func (o *AdditionalPropertiesClass) GetMapMapString() map[string]map[string]string`
@@ -193,23 +193,23 @@ GetMapMapString returns the MapMapString field if non-nil, zero value otherwise.
### GetMapMapStringOk
`func (o *AdditionalPropertiesClass) GetMapMapStringOk() (map[string]map[string]string, bool)`
`func (o *AdditionalPropertiesClass) GetMapMapStringOk() (*map[string]map[string]string, bool)`
GetMapMapStringOk returns a tuple with the MapMapString field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetMapMapString
`func (o *AdditionalPropertiesClass) SetMapMapString(v map[string]map[string]string)`
SetMapMapString sets MapMapString field to given value.
### HasMapMapString
`func (o *AdditionalPropertiesClass) HasMapMapString() bool`
HasMapMapString returns a boolean if a field has been set.
### SetMapMapString
`func (o *AdditionalPropertiesClass) SetMapMapString(v map[string]map[string]string)`
SetMapMapString gets a reference to the given map[string]map[string]string and assigns it to the MapMapString field.
### GetMapMapAnytype
`func (o *AdditionalPropertiesClass) GetMapMapAnytype() map[string]map[string]map[string]interface{}`
@@ -218,23 +218,23 @@ GetMapMapAnytype returns the MapMapAnytype field if non-nil, zero value otherwis
### GetMapMapAnytypeOk
`func (o *AdditionalPropertiesClass) GetMapMapAnytypeOk() (map[string]map[string]map[string]interface{}, bool)`
`func (o *AdditionalPropertiesClass) GetMapMapAnytypeOk() (*map[string]map[string]map[string]interface{}, bool)`
GetMapMapAnytypeOk returns a tuple with the MapMapAnytype field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetMapMapAnytype
`func (o *AdditionalPropertiesClass) SetMapMapAnytype(v map[string]map[string]map[string]interface{})`
SetMapMapAnytype sets MapMapAnytype field to given value.
### HasMapMapAnytype
`func (o *AdditionalPropertiesClass) HasMapMapAnytype() bool`
HasMapMapAnytype returns a boolean if a field has been set.
### SetMapMapAnytype
`func (o *AdditionalPropertiesClass) SetMapMapAnytype(v map[string]map[string]map[string]interface{})`
SetMapMapAnytype gets a reference to the given map[string]map[string]map[string]interface{} and assigns it to the MapMapAnytype field.
### GetAnytype1
`func (o *AdditionalPropertiesClass) GetAnytype1() map[string]interface{}`
@@ -243,23 +243,23 @@ GetAnytype1 returns the Anytype1 field if non-nil, zero value otherwise.
### GetAnytype1Ok
`func (o *AdditionalPropertiesClass) GetAnytype1Ok() (map[string]interface{}, bool)`
`func (o *AdditionalPropertiesClass) GetAnytype1Ok() (*map[string]interface{}, bool)`
GetAnytype1Ok returns a tuple with the Anytype1 field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetAnytype1
`func (o *AdditionalPropertiesClass) SetAnytype1(v map[string]interface{})`
SetAnytype1 sets Anytype1 field to given value.
### HasAnytype1
`func (o *AdditionalPropertiesClass) HasAnytype1() bool`
HasAnytype1 returns a boolean if a field has been set.
### SetAnytype1
`func (o *AdditionalPropertiesClass) SetAnytype1(v map[string]interface{})`
SetAnytype1 gets a reference to the given map[string]interface{} and assigns it to the Anytype1 field.
### GetAnytype2
`func (o *AdditionalPropertiesClass) GetAnytype2() map[string]interface{}`
@@ -268,23 +268,23 @@ GetAnytype2 returns the Anytype2 field if non-nil, zero value otherwise.
### GetAnytype2Ok
`func (o *AdditionalPropertiesClass) GetAnytype2Ok() (map[string]interface{}, bool)`
`func (o *AdditionalPropertiesClass) GetAnytype2Ok() (*map[string]interface{}, bool)`
GetAnytype2Ok returns a tuple with the Anytype2 field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetAnytype2
`func (o *AdditionalPropertiesClass) SetAnytype2(v map[string]interface{})`
SetAnytype2 sets Anytype2 field to given value.
### HasAnytype2
`func (o *AdditionalPropertiesClass) HasAnytype2() bool`
HasAnytype2 returns a boolean if a field has been set.
### SetAnytype2
`func (o *AdditionalPropertiesClass) SetAnytype2(v map[string]interface{})`
SetAnytype2 gets a reference to the given map[string]interface{} and assigns it to the Anytype2 field.
### GetAnytype3
`func (o *AdditionalPropertiesClass) GetAnytype3() map[string]interface{}`
@@ -293,23 +293,23 @@ GetAnytype3 returns the Anytype3 field if non-nil, zero value otherwise.
### GetAnytype3Ok
`func (o *AdditionalPropertiesClass) GetAnytype3Ok() (map[string]interface{}, bool)`
`func (o *AdditionalPropertiesClass) GetAnytype3Ok() (*map[string]interface{}, bool)`
GetAnytype3Ok returns a tuple with the Anytype3 field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetAnytype3
`func (o *AdditionalPropertiesClass) SetAnytype3(v map[string]interface{})`
SetAnytype3 sets Anytype3 field to given value.
### HasAnytype3
`func (o *AdditionalPropertiesClass) HasAnytype3() bool`
HasAnytype3 returns a boolean if a field has been set.
### SetAnytype3
`func (o *AdditionalPropertiesClass) SetAnytype3(v map[string]interface{})`
SetAnytype3 gets a reference to the given map[string]interface{} and assigns it to the Anytype3 field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -33,23 +33,23 @@ GetName returns the Name field if non-nil, zero value otherwise.
### GetNameOk
`func (o *AdditionalPropertiesInteger) GetNameOk() (string, bool)`
`func (o *AdditionalPropertiesInteger) GetNameOk() (*string, bool)`
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetName
`func (o *AdditionalPropertiesInteger) SetName(v string)`
SetName sets Name field to given value.
### HasName
`func (o *AdditionalPropertiesInteger) HasName() bool`
HasName returns a boolean if a field has been set.
### SetName
`func (o *AdditionalPropertiesInteger) SetName(v string)`
SetName gets a reference to the given string and assigns it to the Name field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -33,23 +33,23 @@ GetName returns the Name field if non-nil, zero value otherwise.
### GetNameOk
`func (o *AdditionalPropertiesNumber) GetNameOk() (string, bool)`
`func (o *AdditionalPropertiesNumber) GetNameOk() (*string, bool)`
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetName
`func (o *AdditionalPropertiesNumber) SetName(v string)`
SetName sets Name field to given value.
### HasName
`func (o *AdditionalPropertiesNumber) HasName() bool`
HasName returns a boolean if a field has been set.
### SetName
`func (o *AdditionalPropertiesNumber) SetName(v string)`
SetName gets a reference to the given string and assigns it to the Name field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -33,23 +33,23 @@ GetName returns the Name field if non-nil, zero value otherwise.
### GetNameOk
`func (o *AdditionalPropertiesObject) GetNameOk() (string, bool)`
`func (o *AdditionalPropertiesObject) GetNameOk() (*string, bool)`
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetName
`func (o *AdditionalPropertiesObject) SetName(v string)`
SetName sets Name field to given value.
### HasName
`func (o *AdditionalPropertiesObject) HasName() bool`
HasName returns a boolean if a field has been set.
### SetName
`func (o *AdditionalPropertiesObject) SetName(v string)`
SetName gets a reference to the given string and assigns it to the Name field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -33,23 +33,23 @@ GetName returns the Name field if non-nil, zero value otherwise.
### GetNameOk
`func (o *AdditionalPropertiesString) GetNameOk() (string, bool)`
`func (o *AdditionalPropertiesString) GetNameOk() (*string, bool)`
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetName
`func (o *AdditionalPropertiesString) SetName(v string)`
SetName sets Name field to given value.
### HasName
`func (o *AdditionalPropertiesString) HasName() bool`
HasName returns a boolean if a field has been set.
### SetName
`func (o *AdditionalPropertiesString) SetName(v string)`
SetName gets a reference to the given string and assigns it to the Name field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -34,22 +34,17 @@ GetClassName returns the ClassName field if non-nil, zero value otherwise.
### GetClassNameOk
`func (o *Animal) GetClassNameOk() (string, bool)`
`func (o *Animal) GetClassNameOk() (*string, bool)`
GetClassNameOk returns a tuple with the ClassName field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### HasClassName
`func (o *Animal) HasClassName() bool`
HasClassName returns a boolean if a field has been set.
### SetClassName
`func (o *Animal) SetClassName(v string)`
SetClassName gets a reference to the given string and assigns it to the ClassName field.
SetClassName sets ClassName field to given value.
### GetColor
@@ -59,23 +54,23 @@ GetColor returns the Color field if non-nil, zero value otherwise.
### GetColorOk
`func (o *Animal) GetColorOk() (string, bool)`
`func (o *Animal) GetColorOk() (*string, bool)`
GetColorOk returns a tuple with the Color field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetColor
`func (o *Animal) SetColor(v string)`
SetColor sets Color field to given value.
### HasColor
`func (o *Animal) HasColor() bool`
HasColor returns a boolean if a field has been set.
### SetColor
`func (o *Animal) SetColor(v string)`
SetColor gets a reference to the given string and assigns it to the Color field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -35,23 +35,23 @@ GetCode returns the Code field if non-nil, zero value otherwise.
### GetCodeOk
`func (o *ApiResponse) GetCodeOk() (int32, bool)`
`func (o *ApiResponse) GetCodeOk() (*int32, bool)`
GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetCode
`func (o *ApiResponse) SetCode(v int32)`
SetCode sets Code field to given value.
### HasCode
`func (o *ApiResponse) HasCode() bool`
HasCode returns a boolean if a field has been set.
### SetCode
`func (o *ApiResponse) SetCode(v int32)`
SetCode gets a reference to the given int32 and assigns it to the Code field.
### GetType
`func (o *ApiResponse) GetType() string`
@@ -60,23 +60,23 @@ GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
`func (o *ApiResponse) GetTypeOk() (string, bool)`
`func (o *ApiResponse) GetTypeOk() (*string, bool)`
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetType
`func (o *ApiResponse) SetType(v string)`
SetType sets Type field to given value.
### HasType
`func (o *ApiResponse) HasType() bool`
HasType returns a boolean if a field has been set.
### SetType
`func (o *ApiResponse) SetType(v string)`
SetType gets a reference to the given string and assigns it to the Type field.
### GetMessage
`func (o *ApiResponse) GetMessage() string`
@@ -85,23 +85,23 @@ GetMessage returns the Message field if non-nil, zero value otherwise.
### GetMessageOk
`func (o *ApiResponse) GetMessageOk() (string, bool)`
`func (o *ApiResponse) GetMessageOk() (*string, bool)`
GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetMessage
`func (o *ApiResponse) SetMessage(v string)`
SetMessage sets Message field to given value.
### HasMessage
`func (o *ApiResponse) HasMessage() bool`
HasMessage returns a boolean if a field has been set.
### SetMessage
`func (o *ApiResponse) SetMessage(v string)`
SetMessage gets a reference to the given string and assigns it to the Message field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -33,23 +33,23 @@ GetArrayArrayNumber returns the ArrayArrayNumber field if non-nil, zero value ot
### GetArrayArrayNumberOk
`func (o *ArrayOfArrayOfNumberOnly) GetArrayArrayNumberOk() ([][]float32, bool)`
`func (o *ArrayOfArrayOfNumberOnly) GetArrayArrayNumberOk() (*[][]float32, bool)`
GetArrayArrayNumberOk returns a tuple with the ArrayArrayNumber field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetArrayArrayNumber
`func (o *ArrayOfArrayOfNumberOnly) SetArrayArrayNumber(v [][]float32)`
SetArrayArrayNumber sets ArrayArrayNumber field to given value.
### HasArrayArrayNumber
`func (o *ArrayOfArrayOfNumberOnly) HasArrayArrayNumber() bool`
HasArrayArrayNumber returns a boolean if a field has been set.
### SetArrayArrayNumber
`func (o *ArrayOfArrayOfNumberOnly) SetArrayArrayNumber(v [][]float32)`
SetArrayArrayNumber gets a reference to the given [][]float32 and assigns it to the ArrayArrayNumber field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -33,23 +33,23 @@ GetArrayNumber returns the ArrayNumber field if non-nil, zero value otherwise.
### GetArrayNumberOk
`func (o *ArrayOfNumberOnly) GetArrayNumberOk() ([]float32, bool)`
`func (o *ArrayOfNumberOnly) GetArrayNumberOk() (*[]float32, bool)`
GetArrayNumberOk returns a tuple with the ArrayNumber field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetArrayNumber
`func (o *ArrayOfNumberOnly) SetArrayNumber(v []float32)`
SetArrayNumber sets ArrayNumber field to given value.
### HasArrayNumber
`func (o *ArrayOfNumberOnly) HasArrayNumber() bool`
HasArrayNumber returns a boolean if a field has been set.
### SetArrayNumber
`func (o *ArrayOfNumberOnly) SetArrayNumber(v []float32)`
SetArrayNumber gets a reference to the given []float32 and assigns it to the ArrayNumber field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -35,23 +35,23 @@ GetArrayOfString returns the ArrayOfString field if non-nil, zero value otherwis
### GetArrayOfStringOk
`func (o *ArrayTest) GetArrayOfStringOk() ([]string, bool)`
`func (o *ArrayTest) GetArrayOfStringOk() (*[]string, bool)`
GetArrayOfStringOk returns a tuple with the ArrayOfString field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetArrayOfString
`func (o *ArrayTest) SetArrayOfString(v []string)`
SetArrayOfString sets ArrayOfString field to given value.
### HasArrayOfString
`func (o *ArrayTest) HasArrayOfString() bool`
HasArrayOfString returns a boolean if a field has been set.
### SetArrayOfString
`func (o *ArrayTest) SetArrayOfString(v []string)`
SetArrayOfString gets a reference to the given []string and assigns it to the ArrayOfString field.
### GetArrayArrayOfInteger
`func (o *ArrayTest) GetArrayArrayOfInteger() [][]int64`
@@ -60,23 +60,23 @@ GetArrayArrayOfInteger returns the ArrayArrayOfInteger field if non-nil, zero va
### GetArrayArrayOfIntegerOk
`func (o *ArrayTest) GetArrayArrayOfIntegerOk() ([][]int64, bool)`
`func (o *ArrayTest) GetArrayArrayOfIntegerOk() (*[][]int64, bool)`
GetArrayArrayOfIntegerOk returns a tuple with the ArrayArrayOfInteger field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetArrayArrayOfInteger
`func (o *ArrayTest) SetArrayArrayOfInteger(v [][]int64)`
SetArrayArrayOfInteger sets ArrayArrayOfInteger field to given value.
### HasArrayArrayOfInteger
`func (o *ArrayTest) HasArrayArrayOfInteger() bool`
HasArrayArrayOfInteger returns a boolean if a field has been set.
### SetArrayArrayOfInteger
`func (o *ArrayTest) SetArrayArrayOfInteger(v [][]int64)`
SetArrayArrayOfInteger gets a reference to the given [][]int64 and assigns it to the ArrayArrayOfInteger field.
### GetArrayArrayOfModel
`func (o *ArrayTest) GetArrayArrayOfModel() [][]ReadOnlyFirst`
@@ -85,23 +85,23 @@ GetArrayArrayOfModel returns the ArrayArrayOfModel field if non-nil, zero value
### GetArrayArrayOfModelOk
`func (o *ArrayTest) GetArrayArrayOfModelOk() ([][]ReadOnlyFirst, bool)`
`func (o *ArrayTest) GetArrayArrayOfModelOk() (*[][]ReadOnlyFirst, bool)`
GetArrayArrayOfModelOk returns a tuple with the ArrayArrayOfModel field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetArrayArrayOfModel
`func (o *ArrayTest) SetArrayArrayOfModel(v [][]ReadOnlyFirst)`
SetArrayArrayOfModel sets ArrayArrayOfModel field to given value.
### HasArrayArrayOfModel
`func (o *ArrayTest) HasArrayArrayOfModel() bool`
HasArrayArrayOfModel returns a boolean if a field has been set.
### SetArrayArrayOfModel
`func (o *ArrayTest) SetArrayArrayOfModel(v [][]ReadOnlyFirst)`
SetArrayArrayOfModel gets a reference to the given [][]ReadOnlyFirst and assigns it to the ArrayArrayOfModel field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -33,23 +33,23 @@ GetKind returns the Kind field if non-nil, zero value otherwise.
### GetKindOk
`func (o *BigCat) GetKindOk() (string, bool)`
`func (o *BigCat) GetKindOk() (*string, bool)`
GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetKind
`func (o *BigCat) SetKind(v string)`
SetKind sets Kind field to given value.
### HasKind
`func (o *BigCat) HasKind() bool`
HasKind returns a boolean if a field has been set.
### SetKind
`func (o *BigCat) SetKind(v string)`
SetKind gets a reference to the given string and assigns it to the Kind field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -33,23 +33,23 @@ GetKind returns the Kind field if non-nil, zero value otherwise.
### GetKindOk
`func (o *BigCatAllOf) GetKindOk() (string, bool)`
`func (o *BigCatAllOf) GetKindOk() (*string, bool)`
GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetKind
`func (o *BigCatAllOf) SetKind(v string)`
SetKind sets Kind field to given value.
### HasKind
`func (o *BigCatAllOf) HasKind() bool`
HasKind returns a boolean if a field has been set.
### SetKind
`func (o *BigCatAllOf) SetKind(v string)`
SetKind gets a reference to the given string and assigns it to the Kind field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -38,23 +38,23 @@ GetSmallCamel returns the SmallCamel field if non-nil, zero value otherwise.
### GetSmallCamelOk
`func (o *Capitalization) GetSmallCamelOk() (string, bool)`
`func (o *Capitalization) GetSmallCamelOk() (*string, bool)`
GetSmallCamelOk returns a tuple with the SmallCamel field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetSmallCamel
`func (o *Capitalization) SetSmallCamel(v string)`
SetSmallCamel sets SmallCamel field to given value.
### HasSmallCamel
`func (o *Capitalization) HasSmallCamel() bool`
HasSmallCamel returns a boolean if a field has been set.
### SetSmallCamel
`func (o *Capitalization) SetSmallCamel(v string)`
SetSmallCamel gets a reference to the given string and assigns it to the SmallCamel field.
### GetCapitalCamel
`func (o *Capitalization) GetCapitalCamel() string`
@@ -63,23 +63,23 @@ GetCapitalCamel returns the CapitalCamel field if non-nil, zero value otherwise.
### GetCapitalCamelOk
`func (o *Capitalization) GetCapitalCamelOk() (string, bool)`
`func (o *Capitalization) GetCapitalCamelOk() (*string, bool)`
GetCapitalCamelOk returns a tuple with the CapitalCamel field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetCapitalCamel
`func (o *Capitalization) SetCapitalCamel(v string)`
SetCapitalCamel sets CapitalCamel field to given value.
### HasCapitalCamel
`func (o *Capitalization) HasCapitalCamel() bool`
HasCapitalCamel returns a boolean if a field has been set.
### SetCapitalCamel
`func (o *Capitalization) SetCapitalCamel(v string)`
SetCapitalCamel gets a reference to the given string and assigns it to the CapitalCamel field.
### GetSmallSnake
`func (o *Capitalization) GetSmallSnake() string`
@@ -88,23 +88,23 @@ GetSmallSnake returns the SmallSnake field if non-nil, zero value otherwise.
### GetSmallSnakeOk
`func (o *Capitalization) GetSmallSnakeOk() (string, bool)`
`func (o *Capitalization) GetSmallSnakeOk() (*string, bool)`
GetSmallSnakeOk returns a tuple with the SmallSnake field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetSmallSnake
`func (o *Capitalization) SetSmallSnake(v string)`
SetSmallSnake sets SmallSnake field to given value.
### HasSmallSnake
`func (o *Capitalization) HasSmallSnake() bool`
HasSmallSnake returns a boolean if a field has been set.
### SetSmallSnake
`func (o *Capitalization) SetSmallSnake(v string)`
SetSmallSnake gets a reference to the given string and assigns it to the SmallSnake field.
### GetCapitalSnake
`func (o *Capitalization) GetCapitalSnake() string`
@@ -113,23 +113,23 @@ GetCapitalSnake returns the CapitalSnake field if non-nil, zero value otherwise.
### GetCapitalSnakeOk
`func (o *Capitalization) GetCapitalSnakeOk() (string, bool)`
`func (o *Capitalization) GetCapitalSnakeOk() (*string, bool)`
GetCapitalSnakeOk returns a tuple with the CapitalSnake field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetCapitalSnake
`func (o *Capitalization) SetCapitalSnake(v string)`
SetCapitalSnake sets CapitalSnake field to given value.
### HasCapitalSnake
`func (o *Capitalization) HasCapitalSnake() bool`
HasCapitalSnake returns a boolean if a field has been set.
### SetCapitalSnake
`func (o *Capitalization) SetCapitalSnake(v string)`
SetCapitalSnake gets a reference to the given string and assigns it to the CapitalSnake field.
### GetSCAETHFlowPoints
`func (o *Capitalization) GetSCAETHFlowPoints() string`
@@ -138,23 +138,23 @@ GetSCAETHFlowPoints returns the SCAETHFlowPoints field if non-nil, zero value ot
### GetSCAETHFlowPointsOk
`func (o *Capitalization) GetSCAETHFlowPointsOk() (string, bool)`
`func (o *Capitalization) GetSCAETHFlowPointsOk() (*string, bool)`
GetSCAETHFlowPointsOk returns a tuple with the SCAETHFlowPoints field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetSCAETHFlowPoints
`func (o *Capitalization) SetSCAETHFlowPoints(v string)`
SetSCAETHFlowPoints sets SCAETHFlowPoints field to given value.
### HasSCAETHFlowPoints
`func (o *Capitalization) HasSCAETHFlowPoints() bool`
HasSCAETHFlowPoints returns a boolean if a field has been set.
### SetSCAETHFlowPoints
`func (o *Capitalization) SetSCAETHFlowPoints(v string)`
SetSCAETHFlowPoints gets a reference to the given string and assigns it to the SCAETHFlowPoints field.
### GetATT_NAME
`func (o *Capitalization) GetATT_NAME() string`
@@ -163,23 +163,23 @@ GetATT_NAME returns the ATT_NAME field if non-nil, zero value otherwise.
### GetATT_NAMEOk
`func (o *Capitalization) GetATT_NAMEOk() (string, bool)`
`func (o *Capitalization) GetATT_NAMEOk() (*string, bool)`
GetATT_NAMEOk returns a tuple with the ATT_NAME field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetATT_NAME
`func (o *Capitalization) SetATT_NAME(v string)`
SetATT_NAME sets ATT_NAME field to given value.
### HasATT_NAME
`func (o *Capitalization) HasATT_NAME() bool`
HasATT_NAME returns a boolean if a field has been set.
### SetATT_NAME
`func (o *Capitalization) SetATT_NAME(v string)`
SetATT_NAME gets a reference to the given string and assigns it to the ATT_NAME field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -33,23 +33,23 @@ GetDeclawed returns the Declawed field if non-nil, zero value otherwise.
### GetDeclawedOk
`func (o *Cat) GetDeclawedOk() (bool, bool)`
`func (o *Cat) GetDeclawedOk() (*bool, bool)`
GetDeclawedOk returns a tuple with the Declawed field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetDeclawed
`func (o *Cat) SetDeclawed(v bool)`
SetDeclawed sets Declawed field to given value.
### HasDeclawed
`func (o *Cat) HasDeclawed() bool`
HasDeclawed returns a boolean if a field has been set.
### SetDeclawed
`func (o *Cat) SetDeclawed(v bool)`
SetDeclawed gets a reference to the given bool and assigns it to the Declawed field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -33,23 +33,23 @@ GetDeclawed returns the Declawed field if non-nil, zero value otherwise.
### GetDeclawedOk
`func (o *CatAllOf) GetDeclawedOk() (bool, bool)`
`func (o *CatAllOf) GetDeclawedOk() (*bool, bool)`
GetDeclawedOk returns a tuple with the Declawed field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetDeclawed
`func (o *CatAllOf) SetDeclawed(v bool)`
SetDeclawed sets Declawed field to given value.
### HasDeclawed
`func (o *CatAllOf) HasDeclawed() bool`
HasDeclawed returns a boolean if a field has been set.
### SetDeclawed
`func (o *CatAllOf) SetDeclawed(v bool)`
SetDeclawed gets a reference to the given bool and assigns it to the Declawed field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -34,23 +34,23 @@ GetId returns the Id field if non-nil, zero value otherwise.
### GetIdOk
`func (o *Category) GetIdOk() (int64, bool)`
`func (o *Category) GetIdOk() (*int64, bool)`
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetId
`func (o *Category) SetId(v int64)`
SetId sets Id field to given value.
### HasId
`func (o *Category) HasId() bool`
HasId returns a boolean if a field has been set.
### SetId
`func (o *Category) SetId(v int64)`
SetId gets a reference to the given int64 and assigns it to the Id field.
### GetName
`func (o *Category) GetName() string`
@@ -59,22 +59,17 @@ GetName returns the Name field if non-nil, zero value otherwise.
### GetNameOk
`func (o *Category) GetNameOk() (string, bool)`
`func (o *Category) GetNameOk() (*string, bool)`
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### HasName
`func (o *Category) HasName() bool`
HasName returns a boolean if a field has been set.
### SetName
`func (o *Category) SetName(v string)`
SetName gets a reference to the given string and assigns it to the Name field.
SetName sets Name field to given value.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -33,23 +33,23 @@ GetClass returns the Class field if non-nil, zero value otherwise.
### GetClassOk
`func (o *ClassModel) GetClassOk() (string, bool)`
`func (o *ClassModel) GetClassOk() (*string, bool)`
GetClassOk returns a tuple with the Class field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetClass
`func (o *ClassModel) SetClass(v string)`
SetClass sets Class field to given value.
### HasClass
`func (o *ClassModel) HasClass() bool`
HasClass returns a boolean if a field has been set.
### SetClass
`func (o *ClassModel) SetClass(v string)`
SetClass gets a reference to the given string and assigns it to the Class field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -33,23 +33,23 @@ GetClient returns the Client field if non-nil, zero value otherwise.
### GetClientOk
`func (o *Client) GetClientOk() (string, bool)`
`func (o *Client) GetClientOk() (*string, bool)`
GetClientOk returns a tuple with the Client field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetClient
`func (o *Client) SetClient(v string)`
SetClient sets Client field to given value.
### HasClient
`func (o *Client) HasClient() bool`
HasClient returns a boolean if a field has been set.
### SetClient
`func (o *Client) SetClient(v string)`
SetClient gets a reference to the given string and assigns it to the Client field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -33,23 +33,23 @@ GetBreed returns the Breed field if non-nil, zero value otherwise.
### GetBreedOk
`func (o *Dog) GetBreedOk() (string, bool)`
`func (o *Dog) GetBreedOk() (*string, bool)`
GetBreedOk returns a tuple with the Breed field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetBreed
`func (o *Dog) SetBreed(v string)`
SetBreed sets Breed field to given value.
### HasBreed
`func (o *Dog) HasBreed() bool`
HasBreed returns a boolean if a field has been set.
### SetBreed
`func (o *Dog) SetBreed(v string)`
SetBreed gets a reference to the given string and assigns it to the Breed field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -33,23 +33,23 @@ GetBreed returns the Breed field if non-nil, zero value otherwise.
### GetBreedOk
`func (o *DogAllOf) GetBreedOk() (string, bool)`
`func (o *DogAllOf) GetBreedOk() (*string, bool)`
GetBreedOk returns a tuple with the Breed field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetBreed
`func (o *DogAllOf) SetBreed(v string)`
SetBreed sets Breed field to given value.
### HasBreed
`func (o *DogAllOf) HasBreed() bool`
HasBreed returns a boolean if a field has been set.
### SetBreed
`func (o *DogAllOf) SetBreed(v string)`
SetBreed gets a reference to the given string and assigns it to the Breed field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -34,23 +34,23 @@ GetJustSymbol returns the JustSymbol field if non-nil, zero value otherwise.
### GetJustSymbolOk
`func (o *EnumArrays) GetJustSymbolOk() (string, bool)`
`func (o *EnumArrays) GetJustSymbolOk() (*string, bool)`
GetJustSymbolOk returns a tuple with the JustSymbol field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetJustSymbol
`func (o *EnumArrays) SetJustSymbol(v string)`
SetJustSymbol sets JustSymbol field to given value.
### HasJustSymbol
`func (o *EnumArrays) HasJustSymbol() bool`
HasJustSymbol returns a boolean if a field has been set.
### SetJustSymbol
`func (o *EnumArrays) SetJustSymbol(v string)`
SetJustSymbol gets a reference to the given string and assigns it to the JustSymbol field.
### GetArrayEnum
`func (o *EnumArrays) GetArrayEnum() []string`
@@ -59,23 +59,23 @@ GetArrayEnum returns the ArrayEnum field if non-nil, zero value otherwise.
### GetArrayEnumOk
`func (o *EnumArrays) GetArrayEnumOk() ([]string, bool)`
`func (o *EnumArrays) GetArrayEnumOk() (*[]string, bool)`
GetArrayEnumOk returns a tuple with the ArrayEnum field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetArrayEnum
`func (o *EnumArrays) SetArrayEnum(v []string)`
SetArrayEnum sets ArrayEnum field to given value.
### HasArrayEnum
`func (o *EnumArrays) HasArrayEnum() bool`
HasArrayEnum returns a boolean if a field has been set.
### SetArrayEnum
`func (o *EnumArrays) SetArrayEnum(v []string)`
SetArrayEnum gets a reference to the given []string and assigns it to the ArrayEnum field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -37,23 +37,23 @@ GetEnumString returns the EnumString field if non-nil, zero value otherwise.
### GetEnumStringOk
`func (o *EnumTest) GetEnumStringOk() (string, bool)`
`func (o *EnumTest) GetEnumStringOk() (*string, bool)`
GetEnumStringOk returns a tuple with the EnumString field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetEnumString
`func (o *EnumTest) SetEnumString(v string)`
SetEnumString sets EnumString field to given value.
### HasEnumString
`func (o *EnumTest) HasEnumString() bool`
HasEnumString returns a boolean if a field has been set.
### SetEnumString
`func (o *EnumTest) SetEnumString(v string)`
SetEnumString gets a reference to the given string and assigns it to the EnumString field.
### GetEnumStringRequired
`func (o *EnumTest) GetEnumStringRequired() string`
@@ -62,22 +62,17 @@ GetEnumStringRequired returns the EnumStringRequired field if non-nil, zero valu
### GetEnumStringRequiredOk
`func (o *EnumTest) GetEnumStringRequiredOk() (string, bool)`
`func (o *EnumTest) GetEnumStringRequiredOk() (*string, bool)`
GetEnumStringRequiredOk returns a tuple with the EnumStringRequired field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### HasEnumStringRequired
`func (o *EnumTest) HasEnumStringRequired() bool`
HasEnumStringRequired returns a boolean if a field has been set.
### SetEnumStringRequired
`func (o *EnumTest) SetEnumStringRequired(v string)`
SetEnumStringRequired gets a reference to the given string and assigns it to the EnumStringRequired field.
SetEnumStringRequired sets EnumStringRequired field to given value.
### GetEnumInteger
@@ -87,23 +82,23 @@ GetEnumInteger returns the EnumInteger field if non-nil, zero value otherwise.
### GetEnumIntegerOk
`func (o *EnumTest) GetEnumIntegerOk() (int32, bool)`
`func (o *EnumTest) GetEnumIntegerOk() (*int32, bool)`
GetEnumIntegerOk returns a tuple with the EnumInteger field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetEnumInteger
`func (o *EnumTest) SetEnumInteger(v int32)`
SetEnumInteger sets EnumInteger field to given value.
### HasEnumInteger
`func (o *EnumTest) HasEnumInteger() bool`
HasEnumInteger returns a boolean if a field has been set.
### SetEnumInteger
`func (o *EnumTest) SetEnumInteger(v int32)`
SetEnumInteger gets a reference to the given int32 and assigns it to the EnumInteger field.
### GetEnumNumber
`func (o *EnumTest) GetEnumNumber() float64`
@@ -112,23 +107,23 @@ GetEnumNumber returns the EnumNumber field if non-nil, zero value otherwise.
### GetEnumNumberOk
`func (o *EnumTest) GetEnumNumberOk() (float64, bool)`
`func (o *EnumTest) GetEnumNumberOk() (*float64, bool)`
GetEnumNumberOk returns a tuple with the EnumNumber field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetEnumNumber
`func (o *EnumTest) SetEnumNumber(v float64)`
SetEnumNumber sets EnumNumber field to given value.
### HasEnumNumber
`func (o *EnumTest) HasEnumNumber() bool`
HasEnumNumber returns a boolean if a field has been set.
### SetEnumNumber
`func (o *EnumTest) SetEnumNumber(v float64)`
SetEnumNumber gets a reference to the given float64 and assigns it to the EnumNumber field.
### GetOuterEnum
`func (o *EnumTest) GetOuterEnum() OuterEnum`
@@ -137,23 +132,23 @@ GetOuterEnum returns the OuterEnum field if non-nil, zero value otherwise.
### GetOuterEnumOk
`func (o *EnumTest) GetOuterEnumOk() (OuterEnum, bool)`
`func (o *EnumTest) GetOuterEnumOk() (*OuterEnum, bool)`
GetOuterEnumOk returns a tuple with the OuterEnum field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetOuterEnum
`func (o *EnumTest) SetOuterEnum(v OuterEnum)`
SetOuterEnum sets OuterEnum field to given value.
### HasOuterEnum
`func (o *EnumTest) HasOuterEnum() bool`
HasOuterEnum returns a boolean if a field has been set.
### SetOuterEnum
`func (o *EnumTest) SetOuterEnum(v OuterEnum)`
SetOuterEnum gets a reference to the given OuterEnum and assigns it to the OuterEnum field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -33,23 +33,23 @@ GetSourceURI returns the SourceURI field if non-nil, zero value otherwise.
### GetSourceURIOk
`func (o *File) GetSourceURIOk() (string, bool)`
`func (o *File) GetSourceURIOk() (*string, bool)`
GetSourceURIOk returns a tuple with the SourceURI field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetSourceURI
`func (o *File) SetSourceURI(v string)`
SetSourceURI sets SourceURI field to given value.
### HasSourceURI
`func (o *File) HasSourceURI() bool`
HasSourceURI returns a boolean if a field has been set.
### SetSourceURI
`func (o *File) SetSourceURI(v string)`
SetSourceURI gets a reference to the given string and assigns it to the SourceURI field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -34,23 +34,23 @@ GetFile returns the File field if non-nil, zero value otherwise.
### GetFileOk
`func (o *FileSchemaTestClass) GetFileOk() (File, bool)`
`func (o *FileSchemaTestClass) GetFileOk() (*File, bool)`
GetFileOk returns a tuple with the File field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetFile
`func (o *FileSchemaTestClass) SetFile(v File)`
SetFile sets File field to given value.
### HasFile
`func (o *FileSchemaTestClass) HasFile() bool`
HasFile returns a boolean if a field has been set.
### SetFile
`func (o *FileSchemaTestClass) SetFile(v File)`
SetFile gets a reference to the given File and assigns it to the File field.
### GetFiles
`func (o *FileSchemaTestClass) GetFiles() []File`
@@ -59,23 +59,23 @@ GetFiles returns the Files field if non-nil, zero value otherwise.
### GetFilesOk
`func (o *FileSchemaTestClass) GetFilesOk() ([]File, bool)`
`func (o *FileSchemaTestClass) GetFilesOk() (*[]File, bool)`
GetFilesOk returns a tuple with the Files field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetFiles
`func (o *FileSchemaTestClass) SetFiles(v []File)`
SetFiles sets Files field to given value.
### HasFiles
`func (o *FileSchemaTestClass) HasFiles() bool`
HasFiles returns a boolean if a field has been set.
### SetFiles
`func (o *FileSchemaTestClass) SetFiles(v []File)`
SetFiles gets a reference to the given []File and assigns it to the Files field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -46,23 +46,23 @@ GetInteger returns the Integer field if non-nil, zero value otherwise.
### GetIntegerOk
`func (o *FormatTest) GetIntegerOk() (int32, bool)`
`func (o *FormatTest) GetIntegerOk() (*int32, bool)`
GetIntegerOk returns a tuple with the Integer field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetInteger
`func (o *FormatTest) SetInteger(v int32)`
SetInteger sets Integer field to given value.
### HasInteger
`func (o *FormatTest) HasInteger() bool`
HasInteger returns a boolean if a field has been set.
### SetInteger
`func (o *FormatTest) SetInteger(v int32)`
SetInteger gets a reference to the given int32 and assigns it to the Integer field.
### GetInt32
`func (o *FormatTest) GetInt32() int32`
@@ -71,23 +71,23 @@ GetInt32 returns the Int32 field if non-nil, zero value otherwise.
### GetInt32Ok
`func (o *FormatTest) GetInt32Ok() (int32, bool)`
`func (o *FormatTest) GetInt32Ok() (*int32, bool)`
GetInt32Ok returns a tuple with the Int32 field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetInt32
`func (o *FormatTest) SetInt32(v int32)`
SetInt32 sets Int32 field to given value.
### HasInt32
`func (o *FormatTest) HasInt32() bool`
HasInt32 returns a boolean if a field has been set.
### SetInt32
`func (o *FormatTest) SetInt32(v int32)`
SetInt32 gets a reference to the given int32 and assigns it to the Int32 field.
### GetInt64
`func (o *FormatTest) GetInt64() int64`
@@ -96,23 +96,23 @@ GetInt64 returns the Int64 field if non-nil, zero value otherwise.
### GetInt64Ok
`func (o *FormatTest) GetInt64Ok() (int64, bool)`
`func (o *FormatTest) GetInt64Ok() (*int64, bool)`
GetInt64Ok returns a tuple with the Int64 field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetInt64
`func (o *FormatTest) SetInt64(v int64)`
SetInt64 sets Int64 field to given value.
### HasInt64
`func (o *FormatTest) HasInt64() bool`
HasInt64 returns a boolean if a field has been set.
### SetInt64
`func (o *FormatTest) SetInt64(v int64)`
SetInt64 gets a reference to the given int64 and assigns it to the Int64 field.
### GetNumber
`func (o *FormatTest) GetNumber() float32`
@@ -121,22 +121,17 @@ GetNumber returns the Number field if non-nil, zero value otherwise.
### GetNumberOk
`func (o *FormatTest) GetNumberOk() (float32, bool)`
`func (o *FormatTest) GetNumberOk() (*float32, bool)`
GetNumberOk returns a tuple with the Number field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### HasNumber
`func (o *FormatTest) HasNumber() bool`
HasNumber returns a boolean if a field has been set.
### SetNumber
`func (o *FormatTest) SetNumber(v float32)`
SetNumber gets a reference to the given float32 and assigns it to the Number field.
SetNumber sets Number field to given value.
### GetFloat
@@ -146,23 +141,23 @@ GetFloat returns the Float field if non-nil, zero value otherwise.
### GetFloatOk
`func (o *FormatTest) GetFloatOk() (float32, bool)`
`func (o *FormatTest) GetFloatOk() (*float32, bool)`
GetFloatOk returns a tuple with the Float field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetFloat
`func (o *FormatTest) SetFloat(v float32)`
SetFloat sets Float field to given value.
### HasFloat
`func (o *FormatTest) HasFloat() bool`
HasFloat returns a boolean if a field has been set.
### SetFloat
`func (o *FormatTest) SetFloat(v float32)`
SetFloat gets a reference to the given float32 and assigns it to the Float field.
### GetDouble
`func (o *FormatTest) GetDouble() float64`
@@ -171,23 +166,23 @@ GetDouble returns the Double field if non-nil, zero value otherwise.
### GetDoubleOk
`func (o *FormatTest) GetDoubleOk() (float64, bool)`
`func (o *FormatTest) GetDoubleOk() (*float64, bool)`
GetDoubleOk returns a tuple with the Double field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetDouble
`func (o *FormatTest) SetDouble(v float64)`
SetDouble sets Double field to given value.
### HasDouble
`func (o *FormatTest) HasDouble() bool`
HasDouble returns a boolean if a field has been set.
### SetDouble
`func (o *FormatTest) SetDouble(v float64)`
SetDouble gets a reference to the given float64 and assigns it to the Double field.
### GetString
`func (o *FormatTest) GetString() string`
@@ -196,23 +191,23 @@ GetString returns the String field if non-nil, zero value otherwise.
### GetStringOk
`func (o *FormatTest) GetStringOk() (string, bool)`
`func (o *FormatTest) GetStringOk() (*string, bool)`
GetStringOk returns a tuple with the String field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetString
`func (o *FormatTest) SetString(v string)`
SetString sets String field to given value.
### HasString
`func (o *FormatTest) HasString() bool`
HasString returns a boolean if a field has been set.
### SetString
`func (o *FormatTest) SetString(v string)`
SetString gets a reference to the given string and assigns it to the String field.
### GetByte
`func (o *FormatTest) GetByte() string`
@@ -221,22 +216,17 @@ GetByte returns the Byte field if non-nil, zero value otherwise.
### GetByteOk
`func (o *FormatTest) GetByteOk() (string, bool)`
`func (o *FormatTest) GetByteOk() (*string, bool)`
GetByteOk returns a tuple with the Byte field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### HasByte
`func (o *FormatTest) HasByte() bool`
HasByte returns a boolean if a field has been set.
### SetByte
`func (o *FormatTest) SetByte(v string)`
SetByte gets a reference to the given string and assigns it to the Byte field.
SetByte sets Byte field to given value.
### GetBinary
@@ -246,23 +236,23 @@ GetBinary returns the Binary field if non-nil, zero value otherwise.
### GetBinaryOk
`func (o *FormatTest) GetBinaryOk() (*os.File, bool)`
`func (o *FormatTest) GetBinaryOk() (**os.File, bool)`
GetBinaryOk returns a tuple with the Binary field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetBinary
`func (o *FormatTest) SetBinary(v *os.File)`
SetBinary sets Binary field to given value.
### HasBinary
`func (o *FormatTest) HasBinary() bool`
HasBinary returns a boolean if a field has been set.
### SetBinary
`func (o *FormatTest) SetBinary(v *os.File)`
SetBinary gets a reference to the given *os.File and assigns it to the Binary field.
### GetDate
`func (o *FormatTest) GetDate() string`
@@ -271,22 +261,17 @@ GetDate returns the Date field if non-nil, zero value otherwise.
### GetDateOk
`func (o *FormatTest) GetDateOk() (string, bool)`
`func (o *FormatTest) GetDateOk() (*string, bool)`
GetDateOk returns a tuple with the Date field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### HasDate
`func (o *FormatTest) HasDate() bool`
HasDate returns a boolean if a field has been set.
### SetDate
`func (o *FormatTest) SetDate(v string)`
SetDate gets a reference to the given string and assigns it to the Date field.
SetDate sets Date field to given value.
### GetDateTime
@@ -296,23 +281,23 @@ GetDateTime returns the DateTime field if non-nil, zero value otherwise.
### GetDateTimeOk
`func (o *FormatTest) GetDateTimeOk() (time.Time, bool)`
`func (o *FormatTest) GetDateTimeOk() (*time.Time, bool)`
GetDateTimeOk returns a tuple with the DateTime field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetDateTime
`func (o *FormatTest) SetDateTime(v time.Time)`
SetDateTime sets DateTime field to given value.
### HasDateTime
`func (o *FormatTest) HasDateTime() bool`
HasDateTime returns a boolean if a field has been set.
### SetDateTime
`func (o *FormatTest) SetDateTime(v time.Time)`
SetDateTime gets a reference to the given time.Time and assigns it to the DateTime field.
### GetUuid
`func (o *FormatTest) GetUuid() string`
@@ -321,23 +306,23 @@ GetUuid returns the Uuid field if non-nil, zero value otherwise.
### GetUuidOk
`func (o *FormatTest) GetUuidOk() (string, bool)`
`func (o *FormatTest) GetUuidOk() (*string, bool)`
GetUuidOk returns a tuple with the Uuid field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetUuid
`func (o *FormatTest) SetUuid(v string)`
SetUuid sets Uuid field to given value.
### HasUuid
`func (o *FormatTest) HasUuid() bool`
HasUuid returns a boolean if a field has been set.
### SetUuid
`func (o *FormatTest) SetUuid(v string)`
SetUuid gets a reference to the given string and assigns it to the Uuid field.
### GetPassword
`func (o *FormatTest) GetPassword() string`
@@ -346,22 +331,17 @@ GetPassword returns the Password field if non-nil, zero value otherwise.
### GetPasswordOk
`func (o *FormatTest) GetPasswordOk() (string, bool)`
`func (o *FormatTest) GetPasswordOk() (*string, bool)`
GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### HasPassword
`func (o *FormatTest) HasPassword() bool`
HasPassword returns a boolean if a field has been set.
### SetPassword
`func (o *FormatTest) SetPassword(v string)`
SetPassword gets a reference to the given string and assigns it to the Password field.
SetPassword sets Password field to given value.
### GetBigDecimal
@@ -371,23 +351,23 @@ GetBigDecimal returns the BigDecimal field if non-nil, zero value otherwise.
### GetBigDecimalOk
`func (o *FormatTest) GetBigDecimalOk() (float64, bool)`
`func (o *FormatTest) GetBigDecimalOk() (*float64, bool)`
GetBigDecimalOk returns a tuple with the BigDecimal field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetBigDecimal
`func (o *FormatTest) SetBigDecimal(v float64)`
SetBigDecimal sets BigDecimal field to given value.
### HasBigDecimal
`func (o *FormatTest) HasBigDecimal() bool`
HasBigDecimal returns a boolean if a field has been set.
### SetBigDecimal
`func (o *FormatTest) SetBigDecimal(v float64)`
SetBigDecimal gets a reference to the given float64 and assigns it to the BigDecimal field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -34,23 +34,23 @@ GetBar returns the Bar field if non-nil, zero value otherwise.
### GetBarOk
`func (o *HasOnlyReadOnly) GetBarOk() (string, bool)`
`func (o *HasOnlyReadOnly) GetBarOk() (*string, bool)`
GetBarOk returns a tuple with the Bar field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetBar
`func (o *HasOnlyReadOnly) SetBar(v string)`
SetBar sets Bar field to given value.
### HasBar
`func (o *HasOnlyReadOnly) HasBar() bool`
HasBar returns a boolean if a field has been set.
### SetBar
`func (o *HasOnlyReadOnly) SetBar(v string)`
SetBar gets a reference to the given string and assigns it to the Bar field.
### GetFoo
`func (o *HasOnlyReadOnly) GetFoo() string`
@@ -59,23 +59,23 @@ GetFoo returns the Foo field if non-nil, zero value otherwise.
### GetFooOk
`func (o *HasOnlyReadOnly) GetFooOk() (string, bool)`
`func (o *HasOnlyReadOnly) GetFooOk() (*string, bool)`
GetFooOk returns a tuple with the Foo field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetFoo
`func (o *HasOnlyReadOnly) SetFoo(v string)`
SetFoo sets Foo field to given value.
### HasFoo
`func (o *HasOnlyReadOnly) HasFoo() bool`
HasFoo returns a boolean if a field has been set.
### SetFoo
`func (o *HasOnlyReadOnly) SetFoo(v string)`
SetFoo gets a reference to the given string and assigns it to the Foo field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -33,23 +33,23 @@ GetVar123List returns the Var123List field if non-nil, zero value otherwise.
### GetVar123ListOk
`func (o *List) GetVar123ListOk() (string, bool)`
`func (o *List) GetVar123ListOk() (*string, bool)`
GetVar123ListOk returns a tuple with the Var123List field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetVar123List
`func (o *List) SetVar123List(v string)`
SetVar123List sets Var123List field to given value.
### HasVar123List
`func (o *List) HasVar123List() bool`
HasVar123List returns a boolean if a field has been set.
### SetVar123List
`func (o *List) SetVar123List(v string)`
SetVar123List gets a reference to the given string and assigns it to the Var123List field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -36,23 +36,23 @@ GetMapMapOfString returns the MapMapOfString field if non-nil, zero value otherw
### GetMapMapOfStringOk
`func (o *MapTest) GetMapMapOfStringOk() (map[string]map[string]string, bool)`
`func (o *MapTest) GetMapMapOfStringOk() (*map[string]map[string]string, bool)`
GetMapMapOfStringOk returns a tuple with the MapMapOfString field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetMapMapOfString
`func (o *MapTest) SetMapMapOfString(v map[string]map[string]string)`
SetMapMapOfString sets MapMapOfString field to given value.
### HasMapMapOfString
`func (o *MapTest) HasMapMapOfString() bool`
HasMapMapOfString returns a boolean if a field has been set.
### SetMapMapOfString
`func (o *MapTest) SetMapMapOfString(v map[string]map[string]string)`
SetMapMapOfString gets a reference to the given map[string]map[string]string and assigns it to the MapMapOfString field.
### GetMapOfEnumString
`func (o *MapTest) GetMapOfEnumString() map[string]string`
@@ -61,23 +61,23 @@ GetMapOfEnumString returns the MapOfEnumString field if non-nil, zero value othe
### GetMapOfEnumStringOk
`func (o *MapTest) GetMapOfEnumStringOk() (map[string]string, bool)`
`func (o *MapTest) GetMapOfEnumStringOk() (*map[string]string, bool)`
GetMapOfEnumStringOk returns a tuple with the MapOfEnumString field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetMapOfEnumString
`func (o *MapTest) SetMapOfEnumString(v map[string]string)`
SetMapOfEnumString sets MapOfEnumString field to given value.
### HasMapOfEnumString
`func (o *MapTest) HasMapOfEnumString() bool`
HasMapOfEnumString returns a boolean if a field has been set.
### SetMapOfEnumString
`func (o *MapTest) SetMapOfEnumString(v map[string]string)`
SetMapOfEnumString gets a reference to the given map[string]string and assigns it to the MapOfEnumString field.
### GetDirectMap
`func (o *MapTest) GetDirectMap() map[string]bool`
@@ -86,23 +86,23 @@ GetDirectMap returns the DirectMap field if non-nil, zero value otherwise.
### GetDirectMapOk
`func (o *MapTest) GetDirectMapOk() (map[string]bool, bool)`
`func (o *MapTest) GetDirectMapOk() (*map[string]bool, bool)`
GetDirectMapOk returns a tuple with the DirectMap field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetDirectMap
`func (o *MapTest) SetDirectMap(v map[string]bool)`
SetDirectMap sets DirectMap field to given value.
### HasDirectMap
`func (o *MapTest) HasDirectMap() bool`
HasDirectMap returns a boolean if a field has been set.
### SetDirectMap
`func (o *MapTest) SetDirectMap(v map[string]bool)`
SetDirectMap gets a reference to the given map[string]bool and assigns it to the DirectMap field.
### GetIndirectMap
`func (o *MapTest) GetIndirectMap() map[string]bool`
@@ -111,23 +111,23 @@ GetIndirectMap returns the IndirectMap field if non-nil, zero value otherwise.
### GetIndirectMapOk
`func (o *MapTest) GetIndirectMapOk() (map[string]bool, bool)`
`func (o *MapTest) GetIndirectMapOk() (*map[string]bool, bool)`
GetIndirectMapOk returns a tuple with the IndirectMap field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetIndirectMap
`func (o *MapTest) SetIndirectMap(v map[string]bool)`
SetIndirectMap sets IndirectMap field to given value.
### HasIndirectMap
`func (o *MapTest) HasIndirectMap() bool`
HasIndirectMap returns a boolean if a field has been set.
### SetIndirectMap
`func (o *MapTest) SetIndirectMap(v map[string]bool)`
SetIndirectMap gets a reference to the given map[string]bool and assigns it to the IndirectMap field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -35,23 +35,23 @@ GetUuid returns the Uuid field if non-nil, zero value otherwise.
### GetUuidOk
`func (o *MixedPropertiesAndAdditionalPropertiesClass) GetUuidOk() (string, bool)`
`func (o *MixedPropertiesAndAdditionalPropertiesClass) GetUuidOk() (*string, bool)`
GetUuidOk returns a tuple with the Uuid field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetUuid
`func (o *MixedPropertiesAndAdditionalPropertiesClass) SetUuid(v string)`
SetUuid sets Uuid field to given value.
### HasUuid
`func (o *MixedPropertiesAndAdditionalPropertiesClass) HasUuid() bool`
HasUuid returns a boolean if a field has been set.
### SetUuid
`func (o *MixedPropertiesAndAdditionalPropertiesClass) SetUuid(v string)`
SetUuid gets a reference to the given string and assigns it to the Uuid field.
### GetDateTime
`func (o *MixedPropertiesAndAdditionalPropertiesClass) GetDateTime() time.Time`
@@ -60,23 +60,23 @@ GetDateTime returns the DateTime field if non-nil, zero value otherwise.
### GetDateTimeOk
`func (o *MixedPropertiesAndAdditionalPropertiesClass) GetDateTimeOk() (time.Time, bool)`
`func (o *MixedPropertiesAndAdditionalPropertiesClass) GetDateTimeOk() (*time.Time, bool)`
GetDateTimeOk returns a tuple with the DateTime field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetDateTime
`func (o *MixedPropertiesAndAdditionalPropertiesClass) SetDateTime(v time.Time)`
SetDateTime sets DateTime field to given value.
### HasDateTime
`func (o *MixedPropertiesAndAdditionalPropertiesClass) HasDateTime() bool`
HasDateTime returns a boolean if a field has been set.
### SetDateTime
`func (o *MixedPropertiesAndAdditionalPropertiesClass) SetDateTime(v time.Time)`
SetDateTime gets a reference to the given time.Time and assigns it to the DateTime field.
### GetMap
`func (o *MixedPropertiesAndAdditionalPropertiesClass) GetMap() map[string]Animal`
@@ -85,23 +85,23 @@ GetMap returns the Map field if non-nil, zero value otherwise.
### GetMapOk
`func (o *MixedPropertiesAndAdditionalPropertiesClass) GetMapOk() (map[string]Animal, bool)`
`func (o *MixedPropertiesAndAdditionalPropertiesClass) GetMapOk() (*map[string]Animal, bool)`
GetMapOk returns a tuple with the Map field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetMap
`func (o *MixedPropertiesAndAdditionalPropertiesClass) SetMap(v map[string]Animal)`
SetMap sets Map field to given value.
### HasMap
`func (o *MixedPropertiesAndAdditionalPropertiesClass) HasMap() bool`
HasMap returns a boolean if a field has been set.
### SetMap
`func (o *MixedPropertiesAndAdditionalPropertiesClass) SetMap(v map[string]Animal)`
SetMap gets a reference to the given map[string]Animal and assigns it to the Map field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -34,23 +34,23 @@ GetName returns the Name field if non-nil, zero value otherwise.
### GetNameOk
`func (o *Model200Response) GetNameOk() (int32, bool)`
`func (o *Model200Response) GetNameOk() (*int32, bool)`
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetName
`func (o *Model200Response) SetName(v int32)`
SetName sets Name field to given value.
### HasName
`func (o *Model200Response) HasName() bool`
HasName returns a boolean if a field has been set.
### SetName
`func (o *Model200Response) SetName(v int32)`
SetName gets a reference to the given int32 and assigns it to the Name field.
### GetClass
`func (o *Model200Response) GetClass() string`
@@ -59,23 +59,23 @@ GetClass returns the Class field if non-nil, zero value otherwise.
### GetClassOk
`func (o *Model200Response) GetClassOk() (string, bool)`
`func (o *Model200Response) GetClassOk() (*string, bool)`
GetClassOk returns a tuple with the Class field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetClass
`func (o *Model200Response) SetClass(v string)`
SetClass sets Class field to given value.
### HasClass
`func (o *Model200Response) HasClass() bool`
HasClass returns a boolean if a field has been set.
### SetClass
`func (o *Model200Response) SetClass(v string)`
SetClass gets a reference to the given string and assigns it to the Class field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -36,22 +36,17 @@ GetName returns the Name field if non-nil, zero value otherwise.
### GetNameOk
`func (o *Name) GetNameOk() (int32, bool)`
`func (o *Name) GetNameOk() (*int32, bool)`
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### HasName
`func (o *Name) HasName() bool`
HasName returns a boolean if a field has been set.
### SetName
`func (o *Name) SetName(v int32)`
SetName gets a reference to the given int32 and assigns it to the Name field.
SetName sets Name field to given value.
### GetSnakeCase
@@ -61,23 +56,23 @@ GetSnakeCase returns the SnakeCase field if non-nil, zero value otherwise.
### GetSnakeCaseOk
`func (o *Name) GetSnakeCaseOk() (int32, bool)`
`func (o *Name) GetSnakeCaseOk() (*int32, bool)`
GetSnakeCaseOk returns a tuple with the SnakeCase field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetSnakeCase
`func (o *Name) SetSnakeCase(v int32)`
SetSnakeCase sets SnakeCase field to given value.
### HasSnakeCase
`func (o *Name) HasSnakeCase() bool`
HasSnakeCase returns a boolean if a field has been set.
### SetSnakeCase
`func (o *Name) SetSnakeCase(v int32)`
SetSnakeCase gets a reference to the given int32 and assigns it to the SnakeCase field.
### GetProperty
`func (o *Name) GetProperty() string`
@@ -86,23 +81,23 @@ GetProperty returns the Property field if non-nil, zero value otherwise.
### GetPropertyOk
`func (o *Name) GetPropertyOk() (string, bool)`
`func (o *Name) GetPropertyOk() (*string, bool)`
GetPropertyOk returns a tuple with the Property field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetProperty
`func (o *Name) SetProperty(v string)`
SetProperty sets Property field to given value.
### HasProperty
`func (o *Name) HasProperty() bool`
HasProperty returns a boolean if a field has been set.
### SetProperty
`func (o *Name) SetProperty(v string)`
SetProperty gets a reference to the given string and assigns it to the Property field.
### GetVar123Number
`func (o *Name) GetVar123Number() int32`
@@ -111,23 +106,23 @@ GetVar123Number returns the Var123Number field if non-nil, zero value otherwise.
### GetVar123NumberOk
`func (o *Name) GetVar123NumberOk() (int32, bool)`
`func (o *Name) GetVar123NumberOk() (*int32, bool)`
GetVar123NumberOk returns a tuple with the Var123Number field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetVar123Number
`func (o *Name) SetVar123Number(v int32)`
SetVar123Number sets Var123Number field to given value.
### HasVar123Number
`func (o *Name) HasVar123Number() bool`
HasVar123Number returns a boolean if a field has been set.
### SetVar123Number
`func (o *Name) SetVar123Number(v int32)`
SetVar123Number gets a reference to the given int32 and assigns it to the Var123Number field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -33,23 +33,23 @@ GetJustNumber returns the JustNumber field if non-nil, zero value otherwise.
### GetJustNumberOk
`func (o *NumberOnly) GetJustNumberOk() (float32, bool)`
`func (o *NumberOnly) GetJustNumberOk() (*float32, bool)`
GetJustNumberOk returns a tuple with the JustNumber field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetJustNumber
`func (o *NumberOnly) SetJustNumber(v float32)`
SetJustNumber sets JustNumber field to given value.
### HasJustNumber
`func (o *NumberOnly) HasJustNumber() bool`
HasJustNumber returns a boolean if a field has been set.
### SetJustNumber
`func (o *NumberOnly) SetJustNumber(v float32)`
SetJustNumber gets a reference to the given float32 and assigns it to the JustNumber field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -38,23 +38,23 @@ GetId returns the Id field if non-nil, zero value otherwise.
### GetIdOk
`func (o *Order) GetIdOk() (int64, bool)`
`func (o *Order) GetIdOk() (*int64, bool)`
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetId
`func (o *Order) SetId(v int64)`
SetId sets Id field to given value.
### HasId
`func (o *Order) HasId() bool`
HasId returns a boolean if a field has been set.
### SetId
`func (o *Order) SetId(v int64)`
SetId gets a reference to the given int64 and assigns it to the Id field.
### GetPetId
`func (o *Order) GetPetId() int64`
@@ -63,23 +63,23 @@ GetPetId returns the PetId field if non-nil, zero value otherwise.
### GetPetIdOk
`func (o *Order) GetPetIdOk() (int64, bool)`
`func (o *Order) GetPetIdOk() (*int64, bool)`
GetPetIdOk returns a tuple with the PetId field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPetId
`func (o *Order) SetPetId(v int64)`
SetPetId sets PetId field to given value.
### HasPetId
`func (o *Order) HasPetId() bool`
HasPetId returns a boolean if a field has been set.
### SetPetId
`func (o *Order) SetPetId(v int64)`
SetPetId gets a reference to the given int64 and assigns it to the PetId field.
### GetQuantity
`func (o *Order) GetQuantity() int32`
@@ -88,23 +88,23 @@ GetQuantity returns the Quantity field if non-nil, zero value otherwise.
### GetQuantityOk
`func (o *Order) GetQuantityOk() (int32, bool)`
`func (o *Order) GetQuantityOk() (*int32, bool)`
GetQuantityOk returns a tuple with the Quantity field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetQuantity
`func (o *Order) SetQuantity(v int32)`
SetQuantity sets Quantity field to given value.
### HasQuantity
`func (o *Order) HasQuantity() bool`
HasQuantity returns a boolean if a field has been set.
### SetQuantity
`func (o *Order) SetQuantity(v int32)`
SetQuantity gets a reference to the given int32 and assigns it to the Quantity field.
### GetShipDate
`func (o *Order) GetShipDate() time.Time`
@@ -113,23 +113,23 @@ GetShipDate returns the ShipDate field if non-nil, zero value otherwise.
### GetShipDateOk
`func (o *Order) GetShipDateOk() (time.Time, bool)`
`func (o *Order) GetShipDateOk() (*time.Time, bool)`
GetShipDateOk returns a tuple with the ShipDate field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetShipDate
`func (o *Order) SetShipDate(v time.Time)`
SetShipDate sets ShipDate field to given value.
### HasShipDate
`func (o *Order) HasShipDate() bool`
HasShipDate returns a boolean if a field has been set.
### SetShipDate
`func (o *Order) SetShipDate(v time.Time)`
SetShipDate gets a reference to the given time.Time and assigns it to the ShipDate field.
### GetStatus
`func (o *Order) GetStatus() string`
@@ -138,23 +138,23 @@ GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
`func (o *Order) GetStatusOk() (string, bool)`
`func (o *Order) GetStatusOk() (*string, bool)`
GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetStatus
`func (o *Order) SetStatus(v string)`
SetStatus sets Status field to given value.
### HasStatus
`func (o *Order) HasStatus() bool`
HasStatus returns a boolean if a field has been set.
### SetStatus
`func (o *Order) SetStatus(v string)`
SetStatus gets a reference to the given string and assigns it to the Status field.
### GetComplete
`func (o *Order) GetComplete() bool`
@@ -163,23 +163,23 @@ GetComplete returns the Complete field if non-nil, zero value otherwise.
### GetCompleteOk
`func (o *Order) GetCompleteOk() (bool, bool)`
`func (o *Order) GetCompleteOk() (*bool, bool)`
GetCompleteOk returns a tuple with the Complete field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetComplete
`func (o *Order) SetComplete(v bool)`
SetComplete sets Complete field to given value.
### HasComplete
`func (o *Order) HasComplete() bool`
HasComplete returns a boolean if a field has been set.
### SetComplete
`func (o *Order) SetComplete(v bool)`
SetComplete gets a reference to the given bool and assigns it to the Complete field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -35,23 +35,23 @@ GetMyNumber returns the MyNumber field if non-nil, zero value otherwise.
### GetMyNumberOk
`func (o *OuterComposite) GetMyNumberOk() (float32, bool)`
`func (o *OuterComposite) GetMyNumberOk() (*float32, bool)`
GetMyNumberOk returns a tuple with the MyNumber field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetMyNumber
`func (o *OuterComposite) SetMyNumber(v float32)`
SetMyNumber sets MyNumber field to given value.
### HasMyNumber
`func (o *OuterComposite) HasMyNumber() bool`
HasMyNumber returns a boolean if a field has been set.
### SetMyNumber
`func (o *OuterComposite) SetMyNumber(v float32)`
SetMyNumber gets a reference to the given float32 and assigns it to the MyNumber field.
### GetMyString
`func (o *OuterComposite) GetMyString() string`
@@ -60,23 +60,23 @@ GetMyString returns the MyString field if non-nil, zero value otherwise.
### GetMyStringOk
`func (o *OuterComposite) GetMyStringOk() (string, bool)`
`func (o *OuterComposite) GetMyStringOk() (*string, bool)`
GetMyStringOk returns a tuple with the MyString field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetMyString
`func (o *OuterComposite) SetMyString(v string)`
SetMyString sets MyString field to given value.
### HasMyString
`func (o *OuterComposite) HasMyString() bool`
HasMyString returns a boolean if a field has been set.
### SetMyString
`func (o *OuterComposite) SetMyString(v string)`
SetMyString gets a reference to the given string and assigns it to the MyString field.
### GetMyBoolean
`func (o *OuterComposite) GetMyBoolean() bool`
@@ -85,23 +85,23 @@ GetMyBoolean returns the MyBoolean field if non-nil, zero value otherwise.
### GetMyBooleanOk
`func (o *OuterComposite) GetMyBooleanOk() (bool, bool)`
`func (o *OuterComposite) GetMyBooleanOk() (*bool, bool)`
GetMyBooleanOk returns a tuple with the MyBoolean field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetMyBoolean
`func (o *OuterComposite) SetMyBoolean(v bool)`
SetMyBoolean sets MyBoolean field to given value.
### HasMyBoolean
`func (o *OuterComposite) HasMyBoolean() bool`
HasMyBoolean returns a boolean if a field has been set.
### SetMyBoolean
`func (o *OuterComposite) SetMyBoolean(v bool)`
SetMyBoolean gets a reference to the given bool and assigns it to the MyBoolean field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -38,23 +38,23 @@ GetId returns the Id field if non-nil, zero value otherwise.
### GetIdOk
`func (o *Pet) GetIdOk() (int64, bool)`
`func (o *Pet) GetIdOk() (*int64, bool)`
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetId
`func (o *Pet) SetId(v int64)`
SetId sets Id field to given value.
### HasId
`func (o *Pet) HasId() bool`
HasId returns a boolean if a field has been set.
### SetId
`func (o *Pet) SetId(v int64)`
SetId gets a reference to the given int64 and assigns it to the Id field.
### GetCategory
`func (o *Pet) GetCategory() Category`
@@ -63,23 +63,23 @@ GetCategory returns the Category field if non-nil, zero value otherwise.
### GetCategoryOk
`func (o *Pet) GetCategoryOk() (Category, bool)`
`func (o *Pet) GetCategoryOk() (*Category, bool)`
GetCategoryOk returns a tuple with the Category field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetCategory
`func (o *Pet) SetCategory(v Category)`
SetCategory sets Category field to given value.
### HasCategory
`func (o *Pet) HasCategory() bool`
HasCategory returns a boolean if a field has been set.
### SetCategory
`func (o *Pet) SetCategory(v Category)`
SetCategory gets a reference to the given Category and assigns it to the Category field.
### GetName
`func (o *Pet) GetName() string`
@@ -88,22 +88,17 @@ GetName returns the Name field if non-nil, zero value otherwise.
### GetNameOk
`func (o *Pet) GetNameOk() (string, bool)`
`func (o *Pet) GetNameOk() (*string, bool)`
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### HasName
`func (o *Pet) HasName() bool`
HasName returns a boolean if a field has been set.
### SetName
`func (o *Pet) SetName(v string)`
SetName gets a reference to the given string and assigns it to the Name field.
SetName sets Name field to given value.
### GetPhotoUrls
@@ -113,22 +108,17 @@ GetPhotoUrls returns the PhotoUrls field if non-nil, zero value otherwise.
### GetPhotoUrlsOk
`func (o *Pet) GetPhotoUrlsOk() ([]string, bool)`
`func (o *Pet) GetPhotoUrlsOk() (*[]string, bool)`
GetPhotoUrlsOk returns a tuple with the PhotoUrls field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### HasPhotoUrls
`func (o *Pet) HasPhotoUrls() bool`
HasPhotoUrls returns a boolean if a field has been set.
### SetPhotoUrls
`func (o *Pet) SetPhotoUrls(v []string)`
SetPhotoUrls gets a reference to the given []string and assigns it to the PhotoUrls field.
SetPhotoUrls sets PhotoUrls field to given value.
### GetTags
@@ -138,23 +128,23 @@ GetTags returns the Tags field if non-nil, zero value otherwise.
### GetTagsOk
`func (o *Pet) GetTagsOk() ([]Tag, bool)`
`func (o *Pet) GetTagsOk() (*[]Tag, bool)`
GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetTags
`func (o *Pet) SetTags(v []Tag)`
SetTags sets Tags field to given value.
### HasTags
`func (o *Pet) HasTags() bool`
HasTags returns a boolean if a field has been set.
### SetTags
`func (o *Pet) SetTags(v []Tag)`
SetTags gets a reference to the given []Tag and assigns it to the Tags field.
### GetStatus
`func (o *Pet) GetStatus() string`
@@ -163,23 +153,23 @@ GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
`func (o *Pet) GetStatusOk() (string, bool)`
`func (o *Pet) GetStatusOk() (*string, bool)`
GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetStatus
`func (o *Pet) SetStatus(v string)`
SetStatus sets Status field to given value.
### HasStatus
`func (o *Pet) HasStatus() bool`
HasStatus returns a boolean if a field has been set.
### SetStatus
`func (o *Pet) SetStatus(v string)`
SetStatus gets a reference to the given string and assigns it to the Status field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -34,23 +34,23 @@ GetBar returns the Bar field if non-nil, zero value otherwise.
### GetBarOk
`func (o *ReadOnlyFirst) GetBarOk() (string, bool)`
`func (o *ReadOnlyFirst) GetBarOk() (*string, bool)`
GetBarOk returns a tuple with the Bar field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetBar
`func (o *ReadOnlyFirst) SetBar(v string)`
SetBar sets Bar field to given value.
### HasBar
`func (o *ReadOnlyFirst) HasBar() bool`
HasBar returns a boolean if a field has been set.
### SetBar
`func (o *ReadOnlyFirst) SetBar(v string)`
SetBar gets a reference to the given string and assigns it to the Bar field.
### GetBaz
`func (o *ReadOnlyFirst) GetBaz() string`
@@ -59,23 +59,23 @@ GetBaz returns the Baz field if non-nil, zero value otherwise.
### GetBazOk
`func (o *ReadOnlyFirst) GetBazOk() (string, bool)`
`func (o *ReadOnlyFirst) GetBazOk() (*string, bool)`
GetBazOk returns a tuple with the Baz field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetBaz
`func (o *ReadOnlyFirst) SetBaz(v string)`
SetBaz sets Baz field to given value.
### HasBaz
`func (o *ReadOnlyFirst) HasBaz() bool`
HasBaz returns a boolean if a field has been set.
### SetBaz
`func (o *ReadOnlyFirst) SetBaz(v string)`
SetBaz gets a reference to the given string and assigns it to the Baz field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -33,23 +33,23 @@ GetReturn returns the Return field if non-nil, zero value otherwise.
### GetReturnOk
`func (o *Return) GetReturnOk() (int32, bool)`
`func (o *Return) GetReturnOk() (*int32, bool)`
GetReturnOk returns a tuple with the Return field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetReturn
`func (o *Return) SetReturn(v int32)`
SetReturn sets Return field to given value.
### HasReturn
`func (o *Return) HasReturn() bool`
HasReturn returns a boolean if a field has been set.
### SetReturn
`func (o *Return) SetReturn(v int32)`
SetReturn gets a reference to the given int32 and assigns it to the Return field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -33,23 +33,23 @@ GetSpecialPropertyName returns the SpecialPropertyName field if non-nil, zero va
### GetSpecialPropertyNameOk
`func (o *SpecialModelName) GetSpecialPropertyNameOk() (int64, bool)`
`func (o *SpecialModelName) GetSpecialPropertyNameOk() (*int64, bool)`
GetSpecialPropertyNameOk returns a tuple with the SpecialPropertyName field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetSpecialPropertyName
`func (o *SpecialModelName) SetSpecialPropertyName(v int64)`
SetSpecialPropertyName sets SpecialPropertyName field to given value.
### HasSpecialPropertyName
`func (o *SpecialModelName) HasSpecialPropertyName() bool`
HasSpecialPropertyName returns a boolean if a field has been set.
### SetSpecialPropertyName
`func (o *SpecialModelName) SetSpecialPropertyName(v int64)`
SetSpecialPropertyName gets a reference to the given int64 and assigns it to the SpecialPropertyName field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -34,23 +34,23 @@ GetId returns the Id field if non-nil, zero value otherwise.
### GetIdOk
`func (o *Tag) GetIdOk() (int64, bool)`
`func (o *Tag) GetIdOk() (*int64, bool)`
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetId
`func (o *Tag) SetId(v int64)`
SetId sets Id field to given value.
### HasId
`func (o *Tag) HasId() bool`
HasId returns a boolean if a field has been set.
### SetId
`func (o *Tag) SetId(v int64)`
SetId gets a reference to the given int64 and assigns it to the Id field.
### GetName
`func (o *Tag) GetName() string`
@@ -59,23 +59,23 @@ GetName returns the Name field if non-nil, zero value otherwise.
### GetNameOk
`func (o *Tag) GetNameOk() (string, bool)`
`func (o *Tag) GetNameOk() (*string, bool)`
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetName
`func (o *Tag) SetName(v string)`
SetName sets Name field to given value.
### HasName
`func (o *Tag) HasName() bool`
HasName returns a boolean if a field has been set.
### SetName
`func (o *Tag) SetName(v string)`
SetName gets a reference to the given string and assigns it to the Name field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -37,22 +37,17 @@ GetStringItem returns the StringItem field if non-nil, zero value otherwise.
### GetStringItemOk
`func (o *TypeHolderDefault) GetStringItemOk() (string, bool)`
`func (o *TypeHolderDefault) GetStringItemOk() (*string, bool)`
GetStringItemOk returns a tuple with the StringItem field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### HasStringItem
`func (o *TypeHolderDefault) HasStringItem() bool`
HasStringItem returns a boolean if a field has been set.
### SetStringItem
`func (o *TypeHolderDefault) SetStringItem(v string)`
SetStringItem gets a reference to the given string and assigns it to the StringItem field.
SetStringItem sets StringItem field to given value.
### GetNumberItem
@@ -62,22 +57,17 @@ GetNumberItem returns the NumberItem field if non-nil, zero value otherwise.
### GetNumberItemOk
`func (o *TypeHolderDefault) GetNumberItemOk() (float32, bool)`
`func (o *TypeHolderDefault) GetNumberItemOk() (*float32, bool)`
GetNumberItemOk returns a tuple with the NumberItem field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### HasNumberItem
`func (o *TypeHolderDefault) HasNumberItem() bool`
HasNumberItem returns a boolean if a field has been set.
### SetNumberItem
`func (o *TypeHolderDefault) SetNumberItem(v float32)`
SetNumberItem gets a reference to the given float32 and assigns it to the NumberItem field.
SetNumberItem sets NumberItem field to given value.
### GetIntegerItem
@@ -87,22 +77,17 @@ GetIntegerItem returns the IntegerItem field if non-nil, zero value otherwise.
### GetIntegerItemOk
`func (o *TypeHolderDefault) GetIntegerItemOk() (int32, bool)`
`func (o *TypeHolderDefault) GetIntegerItemOk() (*int32, bool)`
GetIntegerItemOk returns a tuple with the IntegerItem field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### HasIntegerItem
`func (o *TypeHolderDefault) HasIntegerItem() bool`
HasIntegerItem returns a boolean if a field has been set.
### SetIntegerItem
`func (o *TypeHolderDefault) SetIntegerItem(v int32)`
SetIntegerItem gets a reference to the given int32 and assigns it to the IntegerItem field.
SetIntegerItem sets IntegerItem field to given value.
### GetBoolItem
@@ -112,22 +97,17 @@ GetBoolItem returns the BoolItem field if non-nil, zero value otherwise.
### GetBoolItemOk
`func (o *TypeHolderDefault) GetBoolItemOk() (bool, bool)`
`func (o *TypeHolderDefault) GetBoolItemOk() (*bool, bool)`
GetBoolItemOk returns a tuple with the BoolItem field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### HasBoolItem
`func (o *TypeHolderDefault) HasBoolItem() bool`
HasBoolItem returns a boolean if a field has been set.
### SetBoolItem
`func (o *TypeHolderDefault) SetBoolItem(v bool)`
SetBoolItem gets a reference to the given bool and assigns it to the BoolItem field.
SetBoolItem sets BoolItem field to given value.
### GetArrayItem
@@ -137,22 +117,17 @@ GetArrayItem returns the ArrayItem field if non-nil, zero value otherwise.
### GetArrayItemOk
`func (o *TypeHolderDefault) GetArrayItemOk() ([]int32, bool)`
`func (o *TypeHolderDefault) GetArrayItemOk() (*[]int32, bool)`
GetArrayItemOk returns a tuple with the ArrayItem field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### HasArrayItem
`func (o *TypeHolderDefault) HasArrayItem() bool`
HasArrayItem returns a boolean if a field has been set.
### SetArrayItem
`func (o *TypeHolderDefault) SetArrayItem(v []int32)`
SetArrayItem gets a reference to the given []int32 and assigns it to the ArrayItem field.
SetArrayItem sets ArrayItem field to given value.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -38,22 +38,17 @@ GetStringItem returns the StringItem field if non-nil, zero value otherwise.
### GetStringItemOk
`func (o *TypeHolderExample) GetStringItemOk() (string, bool)`
`func (o *TypeHolderExample) GetStringItemOk() (*string, bool)`
GetStringItemOk returns a tuple with the StringItem field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### HasStringItem
`func (o *TypeHolderExample) HasStringItem() bool`
HasStringItem returns a boolean if a field has been set.
### SetStringItem
`func (o *TypeHolderExample) SetStringItem(v string)`
SetStringItem gets a reference to the given string and assigns it to the StringItem field.
SetStringItem sets StringItem field to given value.
### GetNumberItem
@@ -63,22 +58,17 @@ GetNumberItem returns the NumberItem field if non-nil, zero value otherwise.
### GetNumberItemOk
`func (o *TypeHolderExample) GetNumberItemOk() (float32, bool)`
`func (o *TypeHolderExample) GetNumberItemOk() (*float32, bool)`
GetNumberItemOk returns a tuple with the NumberItem field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### HasNumberItem
`func (o *TypeHolderExample) HasNumberItem() bool`
HasNumberItem returns a boolean if a field has been set.
### SetNumberItem
`func (o *TypeHolderExample) SetNumberItem(v float32)`
SetNumberItem gets a reference to the given float32 and assigns it to the NumberItem field.
SetNumberItem sets NumberItem field to given value.
### GetFloatItem
@@ -88,22 +78,17 @@ GetFloatItem returns the FloatItem field if non-nil, zero value otherwise.
### GetFloatItemOk
`func (o *TypeHolderExample) GetFloatItemOk() (float32, bool)`
`func (o *TypeHolderExample) GetFloatItemOk() (*float32, bool)`
GetFloatItemOk returns a tuple with the FloatItem field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### HasFloatItem
`func (o *TypeHolderExample) HasFloatItem() bool`
HasFloatItem returns a boolean if a field has been set.
### SetFloatItem
`func (o *TypeHolderExample) SetFloatItem(v float32)`
SetFloatItem gets a reference to the given float32 and assigns it to the FloatItem field.
SetFloatItem sets FloatItem field to given value.
### GetIntegerItem
@@ -113,22 +98,17 @@ GetIntegerItem returns the IntegerItem field if non-nil, zero value otherwise.
### GetIntegerItemOk
`func (o *TypeHolderExample) GetIntegerItemOk() (int32, bool)`
`func (o *TypeHolderExample) GetIntegerItemOk() (*int32, bool)`
GetIntegerItemOk returns a tuple with the IntegerItem field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### HasIntegerItem
`func (o *TypeHolderExample) HasIntegerItem() bool`
HasIntegerItem returns a boolean if a field has been set.
### SetIntegerItem
`func (o *TypeHolderExample) SetIntegerItem(v int32)`
SetIntegerItem gets a reference to the given int32 and assigns it to the IntegerItem field.
SetIntegerItem sets IntegerItem field to given value.
### GetBoolItem
@@ -138,22 +118,17 @@ GetBoolItem returns the BoolItem field if non-nil, zero value otherwise.
### GetBoolItemOk
`func (o *TypeHolderExample) GetBoolItemOk() (bool, bool)`
`func (o *TypeHolderExample) GetBoolItemOk() (*bool, bool)`
GetBoolItemOk returns a tuple with the BoolItem field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### HasBoolItem
`func (o *TypeHolderExample) HasBoolItem() bool`
HasBoolItem returns a boolean if a field has been set.
### SetBoolItem
`func (o *TypeHolderExample) SetBoolItem(v bool)`
SetBoolItem gets a reference to the given bool and assigns it to the BoolItem field.
SetBoolItem sets BoolItem field to given value.
### GetArrayItem
@@ -163,22 +138,17 @@ GetArrayItem returns the ArrayItem field if non-nil, zero value otherwise.
### GetArrayItemOk
`func (o *TypeHolderExample) GetArrayItemOk() ([]int32, bool)`
`func (o *TypeHolderExample) GetArrayItemOk() (*[]int32, bool)`
GetArrayItemOk returns a tuple with the ArrayItem field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### HasArrayItem
`func (o *TypeHolderExample) HasArrayItem() bool`
HasArrayItem returns a boolean if a field has been set.
### SetArrayItem
`func (o *TypeHolderExample) SetArrayItem(v []int32)`
SetArrayItem gets a reference to the given []int32 and assigns it to the ArrayItem field.
SetArrayItem sets ArrayItem field to given value.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -40,23 +40,23 @@ GetId returns the Id field if non-nil, zero value otherwise.
### GetIdOk
`func (o *User) GetIdOk() (int64, bool)`
`func (o *User) GetIdOk() (*int64, bool)`
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetId
`func (o *User) SetId(v int64)`
SetId sets Id field to given value.
### HasId
`func (o *User) HasId() bool`
HasId returns a boolean if a field has been set.
### SetId
`func (o *User) SetId(v int64)`
SetId gets a reference to the given int64 and assigns it to the Id field.
### GetUsername
`func (o *User) GetUsername() string`
@@ -65,23 +65,23 @@ GetUsername returns the Username field if non-nil, zero value otherwise.
### GetUsernameOk
`func (o *User) GetUsernameOk() (string, bool)`
`func (o *User) GetUsernameOk() (*string, bool)`
GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetUsername
`func (o *User) SetUsername(v string)`
SetUsername sets Username field to given value.
### HasUsername
`func (o *User) HasUsername() bool`
HasUsername returns a boolean if a field has been set.
### SetUsername
`func (o *User) SetUsername(v string)`
SetUsername gets a reference to the given string and assigns it to the Username field.
### GetFirstName
`func (o *User) GetFirstName() string`
@@ -90,23 +90,23 @@ GetFirstName returns the FirstName field if non-nil, zero value otherwise.
### GetFirstNameOk
`func (o *User) GetFirstNameOk() (string, bool)`
`func (o *User) GetFirstNameOk() (*string, bool)`
GetFirstNameOk returns a tuple with the FirstName field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetFirstName
`func (o *User) SetFirstName(v string)`
SetFirstName sets FirstName field to given value.
### HasFirstName
`func (o *User) HasFirstName() bool`
HasFirstName returns a boolean if a field has been set.
### SetFirstName
`func (o *User) SetFirstName(v string)`
SetFirstName gets a reference to the given string and assigns it to the FirstName field.
### GetLastName
`func (o *User) GetLastName() string`
@@ -115,23 +115,23 @@ GetLastName returns the LastName field if non-nil, zero value otherwise.
### GetLastNameOk
`func (o *User) GetLastNameOk() (string, bool)`
`func (o *User) GetLastNameOk() (*string, bool)`
GetLastNameOk returns a tuple with the LastName field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetLastName
`func (o *User) SetLastName(v string)`
SetLastName sets LastName field to given value.
### HasLastName
`func (o *User) HasLastName() bool`
HasLastName returns a boolean if a field has been set.
### SetLastName
`func (o *User) SetLastName(v string)`
SetLastName gets a reference to the given string and assigns it to the LastName field.
### GetEmail
`func (o *User) GetEmail() string`
@@ -140,23 +140,23 @@ GetEmail returns the Email field if non-nil, zero value otherwise.
### GetEmailOk
`func (o *User) GetEmailOk() (string, bool)`
`func (o *User) GetEmailOk() (*string, bool)`
GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetEmail
`func (o *User) SetEmail(v string)`
SetEmail sets Email field to given value.
### HasEmail
`func (o *User) HasEmail() bool`
HasEmail returns a boolean if a field has been set.
### SetEmail
`func (o *User) SetEmail(v string)`
SetEmail gets a reference to the given string and assigns it to the Email field.
### GetPassword
`func (o *User) GetPassword() string`
@@ -165,23 +165,23 @@ GetPassword returns the Password field if non-nil, zero value otherwise.
### GetPasswordOk
`func (o *User) GetPasswordOk() (string, bool)`
`func (o *User) GetPasswordOk() (*string, bool)`
GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPassword
`func (o *User) SetPassword(v string)`
SetPassword sets Password field to given value.
### HasPassword
`func (o *User) HasPassword() bool`
HasPassword returns a boolean if a field has been set.
### SetPassword
`func (o *User) SetPassword(v string)`
SetPassword gets a reference to the given string and assigns it to the Password field.
### GetPhone
`func (o *User) GetPhone() string`
@@ -190,23 +190,23 @@ GetPhone returns the Phone field if non-nil, zero value otherwise.
### GetPhoneOk
`func (o *User) GetPhoneOk() (string, bool)`
`func (o *User) GetPhoneOk() (*string, bool)`
GetPhoneOk returns a tuple with the Phone field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPhone
`func (o *User) SetPhone(v string)`
SetPhone sets Phone field to given value.
### HasPhone
`func (o *User) HasPhone() bool`
HasPhone returns a boolean if a field has been set.
### SetPhone
`func (o *User) SetPhone(v string)`
SetPhone gets a reference to the given string and assigns it to the Phone field.
### GetUserStatus
`func (o *User) GetUserStatus() int32`
@@ -215,23 +215,23 @@ GetUserStatus returns the UserStatus field if non-nil, zero value otherwise.
### GetUserStatusOk
`func (o *User) GetUserStatusOk() (int32, bool)`
`func (o *User) GetUserStatusOk() (*int32, bool)`
GetUserStatusOk returns a tuple with the UserStatus field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetUserStatus
`func (o *User) SetUserStatus(v int32)`
SetUserStatus sets UserStatus field to given value.
### HasUserStatus
`func (o *User) HasUserStatus() bool`
HasUserStatus returns a boolean if a field has been set.
### SetUserStatus
`func (o *User) SetUserStatus(v int32)`
SetUserStatus gets a reference to the given int32 and assigns it to the UserStatus field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -61,23 +61,23 @@ GetAttributeString returns the AttributeString field if non-nil, zero value othe
### GetAttributeStringOk
`func (o *XmlItem) GetAttributeStringOk() (string, bool)`
`func (o *XmlItem) GetAttributeStringOk() (*string, bool)`
GetAttributeStringOk returns a tuple with the AttributeString field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetAttributeString
`func (o *XmlItem) SetAttributeString(v string)`
SetAttributeString sets AttributeString field to given value.
### HasAttributeString
`func (o *XmlItem) HasAttributeString() bool`
HasAttributeString returns a boolean if a field has been set.
### SetAttributeString
`func (o *XmlItem) SetAttributeString(v string)`
SetAttributeString gets a reference to the given string and assigns it to the AttributeString field.
### GetAttributeNumber
`func (o *XmlItem) GetAttributeNumber() float32`
@@ -86,23 +86,23 @@ GetAttributeNumber returns the AttributeNumber field if non-nil, zero value othe
### GetAttributeNumberOk
`func (o *XmlItem) GetAttributeNumberOk() (float32, bool)`
`func (o *XmlItem) GetAttributeNumberOk() (*float32, bool)`
GetAttributeNumberOk returns a tuple with the AttributeNumber field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetAttributeNumber
`func (o *XmlItem) SetAttributeNumber(v float32)`
SetAttributeNumber sets AttributeNumber field to given value.
### HasAttributeNumber
`func (o *XmlItem) HasAttributeNumber() bool`
HasAttributeNumber returns a boolean if a field has been set.
### SetAttributeNumber
`func (o *XmlItem) SetAttributeNumber(v float32)`
SetAttributeNumber gets a reference to the given float32 and assigns it to the AttributeNumber field.
### GetAttributeInteger
`func (o *XmlItem) GetAttributeInteger() int32`
@@ -111,23 +111,23 @@ GetAttributeInteger returns the AttributeInteger field if non-nil, zero value ot
### GetAttributeIntegerOk
`func (o *XmlItem) GetAttributeIntegerOk() (int32, bool)`
`func (o *XmlItem) GetAttributeIntegerOk() (*int32, bool)`
GetAttributeIntegerOk returns a tuple with the AttributeInteger field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetAttributeInteger
`func (o *XmlItem) SetAttributeInteger(v int32)`
SetAttributeInteger sets AttributeInteger field to given value.
### HasAttributeInteger
`func (o *XmlItem) HasAttributeInteger() bool`
HasAttributeInteger returns a boolean if a field has been set.
### SetAttributeInteger
`func (o *XmlItem) SetAttributeInteger(v int32)`
SetAttributeInteger gets a reference to the given int32 and assigns it to the AttributeInteger field.
### GetAttributeBoolean
`func (o *XmlItem) GetAttributeBoolean() bool`
@@ -136,23 +136,23 @@ GetAttributeBoolean returns the AttributeBoolean field if non-nil, zero value ot
### GetAttributeBooleanOk
`func (o *XmlItem) GetAttributeBooleanOk() (bool, bool)`
`func (o *XmlItem) GetAttributeBooleanOk() (*bool, bool)`
GetAttributeBooleanOk returns a tuple with the AttributeBoolean field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetAttributeBoolean
`func (o *XmlItem) SetAttributeBoolean(v bool)`
SetAttributeBoolean sets AttributeBoolean field to given value.
### HasAttributeBoolean
`func (o *XmlItem) HasAttributeBoolean() bool`
HasAttributeBoolean returns a boolean if a field has been set.
### SetAttributeBoolean
`func (o *XmlItem) SetAttributeBoolean(v bool)`
SetAttributeBoolean gets a reference to the given bool and assigns it to the AttributeBoolean field.
### GetWrappedArray
`func (o *XmlItem) GetWrappedArray() []int32`
@@ -161,23 +161,23 @@ GetWrappedArray returns the WrappedArray field if non-nil, zero value otherwise.
### GetWrappedArrayOk
`func (o *XmlItem) GetWrappedArrayOk() ([]int32, bool)`
`func (o *XmlItem) GetWrappedArrayOk() (*[]int32, bool)`
GetWrappedArrayOk returns a tuple with the WrappedArray field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetWrappedArray
`func (o *XmlItem) SetWrappedArray(v []int32)`
SetWrappedArray sets WrappedArray field to given value.
### HasWrappedArray
`func (o *XmlItem) HasWrappedArray() bool`
HasWrappedArray returns a boolean if a field has been set.
### SetWrappedArray
`func (o *XmlItem) SetWrappedArray(v []int32)`
SetWrappedArray gets a reference to the given []int32 and assigns it to the WrappedArray field.
### GetNameString
`func (o *XmlItem) GetNameString() string`
@@ -186,23 +186,23 @@ GetNameString returns the NameString field if non-nil, zero value otherwise.
### GetNameStringOk
`func (o *XmlItem) GetNameStringOk() (string, bool)`
`func (o *XmlItem) GetNameStringOk() (*string, bool)`
GetNameStringOk returns a tuple with the NameString field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetNameString
`func (o *XmlItem) SetNameString(v string)`
SetNameString sets NameString field to given value.
### HasNameString
`func (o *XmlItem) HasNameString() bool`
HasNameString returns a boolean if a field has been set.
### SetNameString
`func (o *XmlItem) SetNameString(v string)`
SetNameString gets a reference to the given string and assigns it to the NameString field.
### GetNameNumber
`func (o *XmlItem) GetNameNumber() float32`
@@ -211,23 +211,23 @@ GetNameNumber returns the NameNumber field if non-nil, zero value otherwise.
### GetNameNumberOk
`func (o *XmlItem) GetNameNumberOk() (float32, bool)`
`func (o *XmlItem) GetNameNumberOk() (*float32, bool)`
GetNameNumberOk returns a tuple with the NameNumber field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetNameNumber
`func (o *XmlItem) SetNameNumber(v float32)`
SetNameNumber sets NameNumber field to given value.
### HasNameNumber
`func (o *XmlItem) HasNameNumber() bool`
HasNameNumber returns a boolean if a field has been set.
### SetNameNumber
`func (o *XmlItem) SetNameNumber(v float32)`
SetNameNumber gets a reference to the given float32 and assigns it to the NameNumber field.
### GetNameInteger
`func (o *XmlItem) GetNameInteger() int32`
@@ -236,23 +236,23 @@ GetNameInteger returns the NameInteger field if non-nil, zero value otherwise.
### GetNameIntegerOk
`func (o *XmlItem) GetNameIntegerOk() (int32, bool)`
`func (o *XmlItem) GetNameIntegerOk() (*int32, bool)`
GetNameIntegerOk returns a tuple with the NameInteger field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetNameInteger
`func (o *XmlItem) SetNameInteger(v int32)`
SetNameInteger sets NameInteger field to given value.
### HasNameInteger
`func (o *XmlItem) HasNameInteger() bool`
HasNameInteger returns a boolean if a field has been set.
### SetNameInteger
`func (o *XmlItem) SetNameInteger(v int32)`
SetNameInteger gets a reference to the given int32 and assigns it to the NameInteger field.
### GetNameBoolean
`func (o *XmlItem) GetNameBoolean() bool`
@@ -261,23 +261,23 @@ GetNameBoolean returns the NameBoolean field if non-nil, zero value otherwise.
### GetNameBooleanOk
`func (o *XmlItem) GetNameBooleanOk() (bool, bool)`
`func (o *XmlItem) GetNameBooleanOk() (*bool, bool)`
GetNameBooleanOk returns a tuple with the NameBoolean field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetNameBoolean
`func (o *XmlItem) SetNameBoolean(v bool)`
SetNameBoolean sets NameBoolean field to given value.
### HasNameBoolean
`func (o *XmlItem) HasNameBoolean() bool`
HasNameBoolean returns a boolean if a field has been set.
### SetNameBoolean
`func (o *XmlItem) SetNameBoolean(v bool)`
SetNameBoolean gets a reference to the given bool and assigns it to the NameBoolean field.
### GetNameArray
`func (o *XmlItem) GetNameArray() []int32`
@@ -286,23 +286,23 @@ GetNameArray returns the NameArray field if non-nil, zero value otherwise.
### GetNameArrayOk
`func (o *XmlItem) GetNameArrayOk() ([]int32, bool)`
`func (o *XmlItem) GetNameArrayOk() (*[]int32, bool)`
GetNameArrayOk returns a tuple with the NameArray field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetNameArray
`func (o *XmlItem) SetNameArray(v []int32)`
SetNameArray sets NameArray field to given value.
### HasNameArray
`func (o *XmlItem) HasNameArray() bool`
HasNameArray returns a boolean if a field has been set.
### SetNameArray
`func (o *XmlItem) SetNameArray(v []int32)`
SetNameArray gets a reference to the given []int32 and assigns it to the NameArray field.
### GetNameWrappedArray
`func (o *XmlItem) GetNameWrappedArray() []int32`
@@ -311,23 +311,23 @@ GetNameWrappedArray returns the NameWrappedArray field if non-nil, zero value ot
### GetNameWrappedArrayOk
`func (o *XmlItem) GetNameWrappedArrayOk() ([]int32, bool)`
`func (o *XmlItem) GetNameWrappedArrayOk() (*[]int32, bool)`
GetNameWrappedArrayOk returns a tuple with the NameWrappedArray field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetNameWrappedArray
`func (o *XmlItem) SetNameWrappedArray(v []int32)`
SetNameWrappedArray sets NameWrappedArray field to given value.
### HasNameWrappedArray
`func (o *XmlItem) HasNameWrappedArray() bool`
HasNameWrappedArray returns a boolean if a field has been set.
### SetNameWrappedArray
`func (o *XmlItem) SetNameWrappedArray(v []int32)`
SetNameWrappedArray gets a reference to the given []int32 and assigns it to the NameWrappedArray field.
### GetPrefixString
`func (o *XmlItem) GetPrefixString() string`
@@ -336,23 +336,23 @@ GetPrefixString returns the PrefixString field if non-nil, zero value otherwise.
### GetPrefixStringOk
`func (o *XmlItem) GetPrefixStringOk() (string, bool)`
`func (o *XmlItem) GetPrefixStringOk() (*string, bool)`
GetPrefixStringOk returns a tuple with the PrefixString field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPrefixString
`func (o *XmlItem) SetPrefixString(v string)`
SetPrefixString sets PrefixString field to given value.
### HasPrefixString
`func (o *XmlItem) HasPrefixString() bool`
HasPrefixString returns a boolean if a field has been set.
### SetPrefixString
`func (o *XmlItem) SetPrefixString(v string)`
SetPrefixString gets a reference to the given string and assigns it to the PrefixString field.
### GetPrefixNumber
`func (o *XmlItem) GetPrefixNumber() float32`
@@ -361,23 +361,23 @@ GetPrefixNumber returns the PrefixNumber field if non-nil, zero value otherwise.
### GetPrefixNumberOk
`func (o *XmlItem) GetPrefixNumberOk() (float32, bool)`
`func (o *XmlItem) GetPrefixNumberOk() (*float32, bool)`
GetPrefixNumberOk returns a tuple with the PrefixNumber field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPrefixNumber
`func (o *XmlItem) SetPrefixNumber(v float32)`
SetPrefixNumber sets PrefixNumber field to given value.
### HasPrefixNumber
`func (o *XmlItem) HasPrefixNumber() bool`
HasPrefixNumber returns a boolean if a field has been set.
### SetPrefixNumber
`func (o *XmlItem) SetPrefixNumber(v float32)`
SetPrefixNumber gets a reference to the given float32 and assigns it to the PrefixNumber field.
### GetPrefixInteger
`func (o *XmlItem) GetPrefixInteger() int32`
@@ -386,23 +386,23 @@ GetPrefixInteger returns the PrefixInteger field if non-nil, zero value otherwis
### GetPrefixIntegerOk
`func (o *XmlItem) GetPrefixIntegerOk() (int32, bool)`
`func (o *XmlItem) GetPrefixIntegerOk() (*int32, bool)`
GetPrefixIntegerOk returns a tuple with the PrefixInteger field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPrefixInteger
`func (o *XmlItem) SetPrefixInteger(v int32)`
SetPrefixInteger sets PrefixInteger field to given value.
### HasPrefixInteger
`func (o *XmlItem) HasPrefixInteger() bool`
HasPrefixInteger returns a boolean if a field has been set.
### SetPrefixInteger
`func (o *XmlItem) SetPrefixInteger(v int32)`
SetPrefixInteger gets a reference to the given int32 and assigns it to the PrefixInteger field.
### GetPrefixBoolean
`func (o *XmlItem) GetPrefixBoolean() bool`
@@ -411,23 +411,23 @@ GetPrefixBoolean returns the PrefixBoolean field if non-nil, zero value otherwis
### GetPrefixBooleanOk
`func (o *XmlItem) GetPrefixBooleanOk() (bool, bool)`
`func (o *XmlItem) GetPrefixBooleanOk() (*bool, bool)`
GetPrefixBooleanOk returns a tuple with the PrefixBoolean field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPrefixBoolean
`func (o *XmlItem) SetPrefixBoolean(v bool)`
SetPrefixBoolean sets PrefixBoolean field to given value.
### HasPrefixBoolean
`func (o *XmlItem) HasPrefixBoolean() bool`
HasPrefixBoolean returns a boolean if a field has been set.
### SetPrefixBoolean
`func (o *XmlItem) SetPrefixBoolean(v bool)`
SetPrefixBoolean gets a reference to the given bool and assigns it to the PrefixBoolean field.
### GetPrefixArray
`func (o *XmlItem) GetPrefixArray() []int32`
@@ -436,23 +436,23 @@ GetPrefixArray returns the PrefixArray field if non-nil, zero value otherwise.
### GetPrefixArrayOk
`func (o *XmlItem) GetPrefixArrayOk() ([]int32, bool)`
`func (o *XmlItem) GetPrefixArrayOk() (*[]int32, bool)`
GetPrefixArrayOk returns a tuple with the PrefixArray field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPrefixArray
`func (o *XmlItem) SetPrefixArray(v []int32)`
SetPrefixArray sets PrefixArray field to given value.
### HasPrefixArray
`func (o *XmlItem) HasPrefixArray() bool`
HasPrefixArray returns a boolean if a field has been set.
### SetPrefixArray
`func (o *XmlItem) SetPrefixArray(v []int32)`
SetPrefixArray gets a reference to the given []int32 and assigns it to the PrefixArray field.
### GetPrefixWrappedArray
`func (o *XmlItem) GetPrefixWrappedArray() []int32`
@@ -461,23 +461,23 @@ GetPrefixWrappedArray returns the PrefixWrappedArray field if non-nil, zero valu
### GetPrefixWrappedArrayOk
`func (o *XmlItem) GetPrefixWrappedArrayOk() ([]int32, bool)`
`func (o *XmlItem) GetPrefixWrappedArrayOk() (*[]int32, bool)`
GetPrefixWrappedArrayOk returns a tuple with the PrefixWrappedArray field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPrefixWrappedArray
`func (o *XmlItem) SetPrefixWrappedArray(v []int32)`
SetPrefixWrappedArray sets PrefixWrappedArray field to given value.
### HasPrefixWrappedArray
`func (o *XmlItem) HasPrefixWrappedArray() bool`
HasPrefixWrappedArray returns a boolean if a field has been set.
### SetPrefixWrappedArray
`func (o *XmlItem) SetPrefixWrappedArray(v []int32)`
SetPrefixWrappedArray gets a reference to the given []int32 and assigns it to the PrefixWrappedArray field.
### GetNamespaceString
`func (o *XmlItem) GetNamespaceString() string`
@@ -486,23 +486,23 @@ GetNamespaceString returns the NamespaceString field if non-nil, zero value othe
### GetNamespaceStringOk
`func (o *XmlItem) GetNamespaceStringOk() (string, bool)`
`func (o *XmlItem) GetNamespaceStringOk() (*string, bool)`
GetNamespaceStringOk returns a tuple with the NamespaceString field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetNamespaceString
`func (o *XmlItem) SetNamespaceString(v string)`
SetNamespaceString sets NamespaceString field to given value.
### HasNamespaceString
`func (o *XmlItem) HasNamespaceString() bool`
HasNamespaceString returns a boolean if a field has been set.
### SetNamespaceString
`func (o *XmlItem) SetNamespaceString(v string)`
SetNamespaceString gets a reference to the given string and assigns it to the NamespaceString field.
### GetNamespaceNumber
`func (o *XmlItem) GetNamespaceNumber() float32`
@@ -511,23 +511,23 @@ GetNamespaceNumber returns the NamespaceNumber field if non-nil, zero value othe
### GetNamespaceNumberOk
`func (o *XmlItem) GetNamespaceNumberOk() (float32, bool)`
`func (o *XmlItem) GetNamespaceNumberOk() (*float32, bool)`
GetNamespaceNumberOk returns a tuple with the NamespaceNumber field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetNamespaceNumber
`func (o *XmlItem) SetNamespaceNumber(v float32)`
SetNamespaceNumber sets NamespaceNumber field to given value.
### HasNamespaceNumber
`func (o *XmlItem) HasNamespaceNumber() bool`
HasNamespaceNumber returns a boolean if a field has been set.
### SetNamespaceNumber
`func (o *XmlItem) SetNamespaceNumber(v float32)`
SetNamespaceNumber gets a reference to the given float32 and assigns it to the NamespaceNumber field.
### GetNamespaceInteger
`func (o *XmlItem) GetNamespaceInteger() int32`
@@ -536,23 +536,23 @@ GetNamespaceInteger returns the NamespaceInteger field if non-nil, zero value ot
### GetNamespaceIntegerOk
`func (o *XmlItem) GetNamespaceIntegerOk() (int32, bool)`
`func (o *XmlItem) GetNamespaceIntegerOk() (*int32, bool)`
GetNamespaceIntegerOk returns a tuple with the NamespaceInteger field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetNamespaceInteger
`func (o *XmlItem) SetNamespaceInteger(v int32)`
SetNamespaceInteger sets NamespaceInteger field to given value.
### HasNamespaceInteger
`func (o *XmlItem) HasNamespaceInteger() bool`
HasNamespaceInteger returns a boolean if a field has been set.
### SetNamespaceInteger
`func (o *XmlItem) SetNamespaceInteger(v int32)`
SetNamespaceInteger gets a reference to the given int32 and assigns it to the NamespaceInteger field.
### GetNamespaceBoolean
`func (o *XmlItem) GetNamespaceBoolean() bool`
@@ -561,23 +561,23 @@ GetNamespaceBoolean returns the NamespaceBoolean field if non-nil, zero value ot
### GetNamespaceBooleanOk
`func (o *XmlItem) GetNamespaceBooleanOk() (bool, bool)`
`func (o *XmlItem) GetNamespaceBooleanOk() (*bool, bool)`
GetNamespaceBooleanOk returns a tuple with the NamespaceBoolean field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetNamespaceBoolean
`func (o *XmlItem) SetNamespaceBoolean(v bool)`
SetNamespaceBoolean sets NamespaceBoolean field to given value.
### HasNamespaceBoolean
`func (o *XmlItem) HasNamespaceBoolean() bool`
HasNamespaceBoolean returns a boolean if a field has been set.
### SetNamespaceBoolean
`func (o *XmlItem) SetNamespaceBoolean(v bool)`
SetNamespaceBoolean gets a reference to the given bool and assigns it to the NamespaceBoolean field.
### GetNamespaceArray
`func (o *XmlItem) GetNamespaceArray() []int32`
@@ -586,23 +586,23 @@ GetNamespaceArray returns the NamespaceArray field if non-nil, zero value otherw
### GetNamespaceArrayOk
`func (o *XmlItem) GetNamespaceArrayOk() ([]int32, bool)`
`func (o *XmlItem) GetNamespaceArrayOk() (*[]int32, bool)`
GetNamespaceArrayOk returns a tuple with the NamespaceArray field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetNamespaceArray
`func (o *XmlItem) SetNamespaceArray(v []int32)`
SetNamespaceArray sets NamespaceArray field to given value.
### HasNamespaceArray
`func (o *XmlItem) HasNamespaceArray() bool`
HasNamespaceArray returns a boolean if a field has been set.
### SetNamespaceArray
`func (o *XmlItem) SetNamespaceArray(v []int32)`
SetNamespaceArray gets a reference to the given []int32 and assigns it to the NamespaceArray field.
### GetNamespaceWrappedArray
`func (o *XmlItem) GetNamespaceWrappedArray() []int32`
@@ -611,23 +611,23 @@ GetNamespaceWrappedArray returns the NamespaceWrappedArray field if non-nil, zer
### GetNamespaceWrappedArrayOk
`func (o *XmlItem) GetNamespaceWrappedArrayOk() ([]int32, bool)`
`func (o *XmlItem) GetNamespaceWrappedArrayOk() (*[]int32, bool)`
GetNamespaceWrappedArrayOk returns a tuple with the NamespaceWrappedArray field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetNamespaceWrappedArray
`func (o *XmlItem) SetNamespaceWrappedArray(v []int32)`
SetNamespaceWrappedArray sets NamespaceWrappedArray field to given value.
### HasNamespaceWrappedArray
`func (o *XmlItem) HasNamespaceWrappedArray() bool`
HasNamespaceWrappedArray returns a boolean if a field has been set.
### SetNamespaceWrappedArray
`func (o *XmlItem) SetNamespaceWrappedArray(v []int32)`
SetNamespaceWrappedArray gets a reference to the given []int32 and assigns it to the NamespaceWrappedArray field.
### GetPrefixNsString
`func (o *XmlItem) GetPrefixNsString() string`
@@ -636,23 +636,23 @@ GetPrefixNsString returns the PrefixNsString field if non-nil, zero value otherw
### GetPrefixNsStringOk
`func (o *XmlItem) GetPrefixNsStringOk() (string, bool)`
`func (o *XmlItem) GetPrefixNsStringOk() (*string, bool)`
GetPrefixNsStringOk returns a tuple with the PrefixNsString field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPrefixNsString
`func (o *XmlItem) SetPrefixNsString(v string)`
SetPrefixNsString sets PrefixNsString field to given value.
### HasPrefixNsString
`func (o *XmlItem) HasPrefixNsString() bool`
HasPrefixNsString returns a boolean if a field has been set.
### SetPrefixNsString
`func (o *XmlItem) SetPrefixNsString(v string)`
SetPrefixNsString gets a reference to the given string and assigns it to the PrefixNsString field.
### GetPrefixNsNumber
`func (o *XmlItem) GetPrefixNsNumber() float32`
@@ -661,23 +661,23 @@ GetPrefixNsNumber returns the PrefixNsNumber field if non-nil, zero value otherw
### GetPrefixNsNumberOk
`func (o *XmlItem) GetPrefixNsNumberOk() (float32, bool)`
`func (o *XmlItem) GetPrefixNsNumberOk() (*float32, bool)`
GetPrefixNsNumberOk returns a tuple with the PrefixNsNumber field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPrefixNsNumber
`func (o *XmlItem) SetPrefixNsNumber(v float32)`
SetPrefixNsNumber sets PrefixNsNumber field to given value.
### HasPrefixNsNumber
`func (o *XmlItem) HasPrefixNsNumber() bool`
HasPrefixNsNumber returns a boolean if a field has been set.
### SetPrefixNsNumber
`func (o *XmlItem) SetPrefixNsNumber(v float32)`
SetPrefixNsNumber gets a reference to the given float32 and assigns it to the PrefixNsNumber field.
### GetPrefixNsInteger
`func (o *XmlItem) GetPrefixNsInteger() int32`
@@ -686,23 +686,23 @@ GetPrefixNsInteger returns the PrefixNsInteger field if non-nil, zero value othe
### GetPrefixNsIntegerOk
`func (o *XmlItem) GetPrefixNsIntegerOk() (int32, bool)`
`func (o *XmlItem) GetPrefixNsIntegerOk() (*int32, bool)`
GetPrefixNsIntegerOk returns a tuple with the PrefixNsInteger field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPrefixNsInteger
`func (o *XmlItem) SetPrefixNsInteger(v int32)`
SetPrefixNsInteger sets PrefixNsInteger field to given value.
### HasPrefixNsInteger
`func (o *XmlItem) HasPrefixNsInteger() bool`
HasPrefixNsInteger returns a boolean if a field has been set.
### SetPrefixNsInteger
`func (o *XmlItem) SetPrefixNsInteger(v int32)`
SetPrefixNsInteger gets a reference to the given int32 and assigns it to the PrefixNsInteger field.
### GetPrefixNsBoolean
`func (o *XmlItem) GetPrefixNsBoolean() bool`
@@ -711,23 +711,23 @@ GetPrefixNsBoolean returns the PrefixNsBoolean field if non-nil, zero value othe
### GetPrefixNsBooleanOk
`func (o *XmlItem) GetPrefixNsBooleanOk() (bool, bool)`
`func (o *XmlItem) GetPrefixNsBooleanOk() (*bool, bool)`
GetPrefixNsBooleanOk returns a tuple with the PrefixNsBoolean field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPrefixNsBoolean
`func (o *XmlItem) SetPrefixNsBoolean(v bool)`
SetPrefixNsBoolean sets PrefixNsBoolean field to given value.
### HasPrefixNsBoolean
`func (o *XmlItem) HasPrefixNsBoolean() bool`
HasPrefixNsBoolean returns a boolean if a field has been set.
### SetPrefixNsBoolean
`func (o *XmlItem) SetPrefixNsBoolean(v bool)`
SetPrefixNsBoolean gets a reference to the given bool and assigns it to the PrefixNsBoolean field.
### GetPrefixNsArray
`func (o *XmlItem) GetPrefixNsArray() []int32`
@@ -736,23 +736,23 @@ GetPrefixNsArray returns the PrefixNsArray field if non-nil, zero value otherwis
### GetPrefixNsArrayOk
`func (o *XmlItem) GetPrefixNsArrayOk() ([]int32, bool)`
`func (o *XmlItem) GetPrefixNsArrayOk() (*[]int32, bool)`
GetPrefixNsArrayOk returns a tuple with the PrefixNsArray field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPrefixNsArray
`func (o *XmlItem) SetPrefixNsArray(v []int32)`
SetPrefixNsArray sets PrefixNsArray field to given value.
### HasPrefixNsArray
`func (o *XmlItem) HasPrefixNsArray() bool`
HasPrefixNsArray returns a boolean if a field has been set.
### SetPrefixNsArray
`func (o *XmlItem) SetPrefixNsArray(v []int32)`
SetPrefixNsArray gets a reference to the given []int32 and assigns it to the PrefixNsArray field.
### GetPrefixNsWrappedArray
`func (o *XmlItem) GetPrefixNsWrappedArray() []int32`
@@ -761,23 +761,23 @@ GetPrefixNsWrappedArray returns the PrefixNsWrappedArray field if non-nil, zero
### GetPrefixNsWrappedArrayOk
`func (o *XmlItem) GetPrefixNsWrappedArrayOk() ([]int32, bool)`
`func (o *XmlItem) GetPrefixNsWrappedArrayOk() (*[]int32, bool)`
GetPrefixNsWrappedArrayOk returns a tuple with the PrefixNsWrappedArray field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPrefixNsWrappedArray
`func (o *XmlItem) SetPrefixNsWrappedArray(v []int32)`
SetPrefixNsWrappedArray sets PrefixNsWrappedArray field to given value.
### HasPrefixNsWrappedArray
`func (o *XmlItem) HasPrefixNsWrappedArray() bool`
HasPrefixNsWrappedArray returns a boolean if a field has been set.
### SetPrefixNsWrappedArray
`func (o *XmlItem) SetPrefixNsWrappedArray(v []int32)`
SetPrefixNsWrappedArray gets a reference to the given []int32 and assigns it to the PrefixNsWrappedArray field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -10,7 +10,6 @@
package petstore
import (
"bytes"
"encoding/json"
)
@@ -25,16 +24,16 @@ type Model200Response struct {
// 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 NewModel200Response() *Model200Response {
this := Model200Response{}
return &this
this := Model200Response{}
return &this
}
// NewModel200ResponseWithDefaults instantiates a new Model200Response object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewModel200ResponseWithDefaults() *Model200Response {
this := Model200Response{}
return &this
this := Model200Response{}
return &this
}
// GetName returns the Name field value if set, zero value otherwise.
@@ -46,14 +45,13 @@ func (o *Model200Response) GetName() int32 {
return *o.Name
}
// GetNameOk returns a tuple with the Name field value if set, zero value otherwise
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Model200Response) GetNameOk() (int32, bool) {
func (o *Model200Response) GetNameOk() (*int32, bool) {
if o == nil || o.Name == nil {
var ret int32
return ret, false
return nil, false
}
return *o.Name, true
return o.Name, true
}
// HasName returns a boolean if a field has been set.
@@ -79,14 +77,13 @@ func (o *Model200Response) GetClass() string {
return *o.Class
}
// GetClassOk returns a tuple with the Class field value if set, zero value otherwise
// GetClassOk returns a tuple with the Class field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Model200Response) GetClassOk() (string, bool) {
func (o *Model200Response) GetClassOk() (*string, bool) {
if o == nil || o.Class == nil {
var ret string
return ret, false
return nil, false
}
return *o.Class, true
return o.Class, true
}
// HasClass returns a boolean if a field has been set.
@@ -103,25 +100,49 @@ func (o *Model200Response) SetClass(v string) {
o.Class = &v
}
func (o Model200Response) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.Name != nil {
toSerialize["name"] = o.Name
}
if o.Class != nil {
toSerialize["class"] = o.Class
}
return json.Marshal(toSerialize)
}
type NullableModel200Response struct {
Value Model200Response
ExplicitNull bool
value *Model200Response
isSet bool
}
func (v NullableModel200Response) Get() *Model200Response {
return v.value
}
func (v *NullableModel200Response) Set(val *Model200Response) {
v.value = val
v.isSet = true
}
func (v NullableModel200Response) IsSet() bool {
return v.isSet
}
func (v *NullableModel200Response) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableModel200Response(val *Model200Response) *NullableModel200Response {
return &NullableModel200Response{value: val, isSet: true}
}
func (v NullableModel200Response) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableModel200Response) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View File

@@ -10,7 +10,6 @@
package petstore
import (
"bytes"
"encoding/json"
)
@@ -24,16 +23,16 @@ type AdditionalPropertiesAnyType struct {
// 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 NewAdditionalPropertiesAnyType() *AdditionalPropertiesAnyType {
this := AdditionalPropertiesAnyType{}
return &this
this := AdditionalPropertiesAnyType{}
return &this
}
// NewAdditionalPropertiesAnyTypeWithDefaults instantiates a new AdditionalPropertiesAnyType object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewAdditionalPropertiesAnyTypeWithDefaults() *AdditionalPropertiesAnyType {
this := AdditionalPropertiesAnyType{}
return &this
this := AdditionalPropertiesAnyType{}
return &this
}
// GetName returns the Name field value if set, zero value otherwise.
@@ -45,14 +44,13 @@ func (o *AdditionalPropertiesAnyType) GetName() string {
return *o.Name
}
// GetNameOk returns a tuple with the Name field value if set, zero value otherwise
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AdditionalPropertiesAnyType) GetNameOk() (string, bool) {
func (o *AdditionalPropertiesAnyType) GetNameOk() (*string, bool) {
if o == nil || o.Name == nil {
var ret string
return ret, false
return nil, false
}
return *o.Name, true
return o.Name, true
}
// HasName returns a boolean if a field has been set.
@@ -69,25 +67,46 @@ func (o *AdditionalPropertiesAnyType) SetName(v string) {
o.Name = &v
}
func (o AdditionalPropertiesAnyType) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.Name != nil {
toSerialize["name"] = o.Name
}
return json.Marshal(toSerialize)
}
type NullableAdditionalPropertiesAnyType struct {
Value AdditionalPropertiesAnyType
ExplicitNull bool
value *AdditionalPropertiesAnyType
isSet bool
}
func (v NullableAdditionalPropertiesAnyType) Get() *AdditionalPropertiesAnyType {
return v.value
}
func (v *NullableAdditionalPropertiesAnyType) Set(val *AdditionalPropertiesAnyType) {
v.value = val
v.isSet = true
}
func (v NullableAdditionalPropertiesAnyType) IsSet() bool {
return v.isSet
}
func (v *NullableAdditionalPropertiesAnyType) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableAdditionalPropertiesAnyType(val *AdditionalPropertiesAnyType) *NullableAdditionalPropertiesAnyType {
return &NullableAdditionalPropertiesAnyType{value: val, isSet: true}
}
func (v NullableAdditionalPropertiesAnyType) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableAdditionalPropertiesAnyType) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View File

@@ -10,7 +10,6 @@
package petstore
import (
"bytes"
"encoding/json"
)
@@ -24,16 +23,16 @@ type AdditionalPropertiesArray struct {
// 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 NewAdditionalPropertiesArray() *AdditionalPropertiesArray {
this := AdditionalPropertiesArray{}
return &this
this := AdditionalPropertiesArray{}
return &this
}
// NewAdditionalPropertiesArrayWithDefaults instantiates a new AdditionalPropertiesArray object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewAdditionalPropertiesArrayWithDefaults() *AdditionalPropertiesArray {
this := AdditionalPropertiesArray{}
return &this
this := AdditionalPropertiesArray{}
return &this
}
// GetName returns the Name field value if set, zero value otherwise.
@@ -45,14 +44,13 @@ func (o *AdditionalPropertiesArray) GetName() string {
return *o.Name
}
// GetNameOk returns a tuple with the Name field value if set, zero value otherwise
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AdditionalPropertiesArray) GetNameOk() (string, bool) {
func (o *AdditionalPropertiesArray) GetNameOk() (*string, bool) {
if o == nil || o.Name == nil {
var ret string
return ret, false
return nil, false
}
return *o.Name, true
return o.Name, true
}
// HasName returns a boolean if a field has been set.
@@ -69,25 +67,46 @@ func (o *AdditionalPropertiesArray) SetName(v string) {
o.Name = &v
}
func (o AdditionalPropertiesArray) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.Name != nil {
toSerialize["name"] = o.Name
}
return json.Marshal(toSerialize)
}
type NullableAdditionalPropertiesArray struct {
Value AdditionalPropertiesArray
ExplicitNull bool
value *AdditionalPropertiesArray
isSet bool
}
func (v NullableAdditionalPropertiesArray) Get() *AdditionalPropertiesArray {
return v.value
}
func (v *NullableAdditionalPropertiesArray) Set(val *AdditionalPropertiesArray) {
v.value = val
v.isSet = true
}
func (v NullableAdditionalPropertiesArray) IsSet() bool {
return v.isSet
}
func (v *NullableAdditionalPropertiesArray) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableAdditionalPropertiesArray(val *AdditionalPropertiesArray) *NullableAdditionalPropertiesArray {
return &NullableAdditionalPropertiesArray{value: val, isSet: true}
}
func (v NullableAdditionalPropertiesArray) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableAdditionalPropertiesArray) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View File

@@ -10,7 +10,6 @@
package petstore
import (
"bytes"
"encoding/json"
)
@@ -24,16 +23,16 @@ type AdditionalPropertiesBoolean struct {
// 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 NewAdditionalPropertiesBoolean() *AdditionalPropertiesBoolean {
this := AdditionalPropertiesBoolean{}
return &this
this := AdditionalPropertiesBoolean{}
return &this
}
// NewAdditionalPropertiesBooleanWithDefaults instantiates a new AdditionalPropertiesBoolean object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewAdditionalPropertiesBooleanWithDefaults() *AdditionalPropertiesBoolean {
this := AdditionalPropertiesBoolean{}
return &this
this := AdditionalPropertiesBoolean{}
return &this
}
// GetName returns the Name field value if set, zero value otherwise.
@@ -45,14 +44,13 @@ func (o *AdditionalPropertiesBoolean) GetName() string {
return *o.Name
}
// GetNameOk returns a tuple with the Name field value if set, zero value otherwise
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AdditionalPropertiesBoolean) GetNameOk() (string, bool) {
func (o *AdditionalPropertiesBoolean) GetNameOk() (*string, bool) {
if o == nil || o.Name == nil {
var ret string
return ret, false
return nil, false
}
return *o.Name, true
return o.Name, true
}
// HasName returns a boolean if a field has been set.
@@ -69,25 +67,46 @@ func (o *AdditionalPropertiesBoolean) SetName(v string) {
o.Name = &v
}
func (o AdditionalPropertiesBoolean) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.Name != nil {
toSerialize["name"] = o.Name
}
return json.Marshal(toSerialize)
}
type NullableAdditionalPropertiesBoolean struct {
Value AdditionalPropertiesBoolean
ExplicitNull bool
value *AdditionalPropertiesBoolean
isSet bool
}
func (v NullableAdditionalPropertiesBoolean) Get() *AdditionalPropertiesBoolean {
return v.value
}
func (v *NullableAdditionalPropertiesBoolean) Set(val *AdditionalPropertiesBoolean) {
v.value = val
v.isSet = true
}
func (v NullableAdditionalPropertiesBoolean) IsSet() bool {
return v.isSet
}
func (v *NullableAdditionalPropertiesBoolean) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableAdditionalPropertiesBoolean(val *AdditionalPropertiesBoolean) *NullableAdditionalPropertiesBoolean {
return &NullableAdditionalPropertiesBoolean{value: val, isSet: true}
}
func (v NullableAdditionalPropertiesBoolean) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableAdditionalPropertiesBoolean) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View File

@@ -10,7 +10,6 @@
package petstore
import (
"bytes"
"encoding/json"
)
@@ -34,16 +33,16 @@ type AdditionalPropertiesClass struct {
// 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 NewAdditionalPropertiesClass() *AdditionalPropertiesClass {
this := AdditionalPropertiesClass{}
return &this
this := AdditionalPropertiesClass{}
return &this
}
// NewAdditionalPropertiesClassWithDefaults instantiates a new AdditionalPropertiesClass object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewAdditionalPropertiesClassWithDefaults() *AdditionalPropertiesClass {
this := AdditionalPropertiesClass{}
return &this
this := AdditionalPropertiesClass{}
return &this
}
// GetMapString returns the MapString field value if set, zero value otherwise.
@@ -55,14 +54,13 @@ func (o *AdditionalPropertiesClass) GetMapString() map[string]string {
return *o.MapString
}
// GetMapStringOk returns a tuple with the MapString field value if set, zero value otherwise
// GetMapStringOk returns a tuple with the MapString field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AdditionalPropertiesClass) GetMapStringOk() (map[string]string, bool) {
func (o *AdditionalPropertiesClass) GetMapStringOk() (*map[string]string, bool) {
if o == nil || o.MapString == nil {
var ret map[string]string
return ret, false
return nil, false
}
return *o.MapString, true
return o.MapString, true
}
// HasMapString returns a boolean if a field has been set.
@@ -88,14 +86,13 @@ func (o *AdditionalPropertiesClass) GetMapNumber() map[string]float32 {
return *o.MapNumber
}
// GetMapNumberOk returns a tuple with the MapNumber field value if set, zero value otherwise
// GetMapNumberOk returns a tuple with the MapNumber field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AdditionalPropertiesClass) GetMapNumberOk() (map[string]float32, bool) {
func (o *AdditionalPropertiesClass) GetMapNumberOk() (*map[string]float32, bool) {
if o == nil || o.MapNumber == nil {
var ret map[string]float32
return ret, false
return nil, false
}
return *o.MapNumber, true
return o.MapNumber, true
}
// HasMapNumber returns a boolean if a field has been set.
@@ -121,14 +118,13 @@ func (o *AdditionalPropertiesClass) GetMapInteger() map[string]int32 {
return *o.MapInteger
}
// GetMapIntegerOk returns a tuple with the MapInteger field value if set, zero value otherwise
// GetMapIntegerOk returns a tuple with the MapInteger field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AdditionalPropertiesClass) GetMapIntegerOk() (map[string]int32, bool) {
func (o *AdditionalPropertiesClass) GetMapIntegerOk() (*map[string]int32, bool) {
if o == nil || o.MapInteger == nil {
var ret map[string]int32
return ret, false
return nil, false
}
return *o.MapInteger, true
return o.MapInteger, true
}
// HasMapInteger returns a boolean if a field has been set.
@@ -154,14 +150,13 @@ func (o *AdditionalPropertiesClass) GetMapBoolean() map[string]bool {
return *o.MapBoolean
}
// GetMapBooleanOk returns a tuple with the MapBoolean field value if set, zero value otherwise
// GetMapBooleanOk returns a tuple with the MapBoolean field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AdditionalPropertiesClass) GetMapBooleanOk() (map[string]bool, bool) {
func (o *AdditionalPropertiesClass) GetMapBooleanOk() (*map[string]bool, bool) {
if o == nil || o.MapBoolean == nil {
var ret map[string]bool
return ret, false
return nil, false
}
return *o.MapBoolean, true
return o.MapBoolean, true
}
// HasMapBoolean returns a boolean if a field has been set.
@@ -187,14 +182,13 @@ func (o *AdditionalPropertiesClass) GetMapArrayInteger() map[string][]int32 {
return *o.MapArrayInteger
}
// GetMapArrayIntegerOk returns a tuple with the MapArrayInteger field value if set, zero value otherwise
// GetMapArrayIntegerOk returns a tuple with the MapArrayInteger field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AdditionalPropertiesClass) GetMapArrayIntegerOk() (map[string][]int32, bool) {
func (o *AdditionalPropertiesClass) GetMapArrayIntegerOk() (*map[string][]int32, bool) {
if o == nil || o.MapArrayInteger == nil {
var ret map[string][]int32
return ret, false
return nil, false
}
return *o.MapArrayInteger, true
return o.MapArrayInteger, true
}
// HasMapArrayInteger returns a boolean if a field has been set.
@@ -220,14 +214,13 @@ func (o *AdditionalPropertiesClass) GetMapArrayAnytype() map[string][]map[string
return *o.MapArrayAnytype
}
// GetMapArrayAnytypeOk returns a tuple with the MapArrayAnytype field value if set, zero value otherwise
// GetMapArrayAnytypeOk returns a tuple with the MapArrayAnytype field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AdditionalPropertiesClass) GetMapArrayAnytypeOk() (map[string][]map[string]interface{}, bool) {
func (o *AdditionalPropertiesClass) GetMapArrayAnytypeOk() (*map[string][]map[string]interface{}, bool) {
if o == nil || o.MapArrayAnytype == nil {
var ret map[string][]map[string]interface{}
return ret, false
return nil, false
}
return *o.MapArrayAnytype, true
return o.MapArrayAnytype, true
}
// HasMapArrayAnytype returns a boolean if a field has been set.
@@ -253,14 +246,13 @@ func (o *AdditionalPropertiesClass) GetMapMapString() map[string]map[string]stri
return *o.MapMapString
}
// GetMapMapStringOk returns a tuple with the MapMapString field value if set, zero value otherwise
// GetMapMapStringOk returns a tuple with the MapMapString field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AdditionalPropertiesClass) GetMapMapStringOk() (map[string]map[string]string, bool) {
func (o *AdditionalPropertiesClass) GetMapMapStringOk() (*map[string]map[string]string, bool) {
if o == nil || o.MapMapString == nil {
var ret map[string]map[string]string
return ret, false
return nil, false
}
return *o.MapMapString, true
return o.MapMapString, true
}
// HasMapMapString returns a boolean if a field has been set.
@@ -286,14 +278,13 @@ func (o *AdditionalPropertiesClass) GetMapMapAnytype() map[string]map[string]map
return *o.MapMapAnytype
}
// GetMapMapAnytypeOk returns a tuple with the MapMapAnytype field value if set, zero value otherwise
// GetMapMapAnytypeOk returns a tuple with the MapMapAnytype field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AdditionalPropertiesClass) GetMapMapAnytypeOk() (map[string]map[string]map[string]interface{}, bool) {
func (o *AdditionalPropertiesClass) GetMapMapAnytypeOk() (*map[string]map[string]map[string]interface{}, bool) {
if o == nil || o.MapMapAnytype == nil {
var ret map[string]map[string]map[string]interface{}
return ret, false
return nil, false
}
return *o.MapMapAnytype, true
return o.MapMapAnytype, true
}
// HasMapMapAnytype returns a boolean if a field has been set.
@@ -319,14 +310,13 @@ func (o *AdditionalPropertiesClass) GetAnytype1() map[string]interface{} {
return *o.Anytype1
}
// GetAnytype1Ok returns a tuple with the Anytype1 field value if set, zero value otherwise
// GetAnytype1Ok returns a tuple with the Anytype1 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AdditionalPropertiesClass) GetAnytype1Ok() (map[string]interface{}, bool) {
func (o *AdditionalPropertiesClass) GetAnytype1Ok() (*map[string]interface{}, bool) {
if o == nil || o.Anytype1 == nil {
var ret map[string]interface{}
return ret, false
return nil, false
}
return *o.Anytype1, true
return o.Anytype1, true
}
// HasAnytype1 returns a boolean if a field has been set.
@@ -352,14 +342,13 @@ func (o *AdditionalPropertiesClass) GetAnytype2() map[string]interface{} {
return *o.Anytype2
}
// GetAnytype2Ok returns a tuple with the Anytype2 field value if set, zero value otherwise
// GetAnytype2Ok returns a tuple with the Anytype2 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AdditionalPropertiesClass) GetAnytype2Ok() (map[string]interface{}, bool) {
func (o *AdditionalPropertiesClass) GetAnytype2Ok() (*map[string]interface{}, bool) {
if o == nil || o.Anytype2 == nil {
var ret map[string]interface{}
return ret, false
return nil, false
}
return *o.Anytype2, true
return o.Anytype2, true
}
// HasAnytype2 returns a boolean if a field has been set.
@@ -385,14 +374,13 @@ func (o *AdditionalPropertiesClass) GetAnytype3() map[string]interface{} {
return *o.Anytype3
}
// GetAnytype3Ok returns a tuple with the Anytype3 field value if set, zero value otherwise
// GetAnytype3Ok returns a tuple with the Anytype3 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AdditionalPropertiesClass) GetAnytype3Ok() (map[string]interface{}, bool) {
func (o *AdditionalPropertiesClass) GetAnytype3Ok() (*map[string]interface{}, bool) {
if o == nil || o.Anytype3 == nil {
var ret map[string]interface{}
return ret, false
return nil, false
}
return *o.Anytype3, true
return o.Anytype3, true
}
// HasAnytype3 returns a boolean if a field has been set.
@@ -409,25 +397,76 @@ func (o *AdditionalPropertiesClass) SetAnytype3(v map[string]interface{}) {
o.Anytype3 = &v
}
func (o AdditionalPropertiesClass) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.MapString != nil {
toSerialize["map_string"] = o.MapString
}
if o.MapNumber != nil {
toSerialize["map_number"] = o.MapNumber
}
if o.MapInteger != nil {
toSerialize["map_integer"] = o.MapInteger
}
if o.MapBoolean != nil {
toSerialize["map_boolean"] = o.MapBoolean
}
if o.MapArrayInteger != nil {
toSerialize["map_array_integer"] = o.MapArrayInteger
}
if o.MapArrayAnytype != nil {
toSerialize["map_array_anytype"] = o.MapArrayAnytype
}
if o.MapMapString != nil {
toSerialize["map_map_string"] = o.MapMapString
}
if o.MapMapAnytype != nil {
toSerialize["map_map_anytype"] = o.MapMapAnytype
}
if o.Anytype1 != nil {
toSerialize["anytype_1"] = o.Anytype1
}
if o.Anytype2 != nil {
toSerialize["anytype_2"] = o.Anytype2
}
if o.Anytype3 != nil {
toSerialize["anytype_3"] = o.Anytype3
}
return json.Marshal(toSerialize)
}
type NullableAdditionalPropertiesClass struct {
Value AdditionalPropertiesClass
ExplicitNull bool
value *AdditionalPropertiesClass
isSet bool
}
func (v NullableAdditionalPropertiesClass) Get() *AdditionalPropertiesClass {
return v.value
}
func (v *NullableAdditionalPropertiesClass) Set(val *AdditionalPropertiesClass) {
v.value = val
v.isSet = true
}
func (v NullableAdditionalPropertiesClass) IsSet() bool {
return v.isSet
}
func (v *NullableAdditionalPropertiesClass) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableAdditionalPropertiesClass(val *AdditionalPropertiesClass) *NullableAdditionalPropertiesClass {
return &NullableAdditionalPropertiesClass{value: val, isSet: true}
}
func (v NullableAdditionalPropertiesClass) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableAdditionalPropertiesClass) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View File

@@ -10,7 +10,6 @@
package petstore
import (
"bytes"
"encoding/json"
)
@@ -24,16 +23,16 @@ type AdditionalPropertiesInteger struct {
// 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 NewAdditionalPropertiesInteger() *AdditionalPropertiesInteger {
this := AdditionalPropertiesInteger{}
return &this
this := AdditionalPropertiesInteger{}
return &this
}
// NewAdditionalPropertiesIntegerWithDefaults instantiates a new AdditionalPropertiesInteger object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewAdditionalPropertiesIntegerWithDefaults() *AdditionalPropertiesInteger {
this := AdditionalPropertiesInteger{}
return &this
this := AdditionalPropertiesInteger{}
return &this
}
// GetName returns the Name field value if set, zero value otherwise.
@@ -45,14 +44,13 @@ func (o *AdditionalPropertiesInteger) GetName() string {
return *o.Name
}
// GetNameOk returns a tuple with the Name field value if set, zero value otherwise
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AdditionalPropertiesInteger) GetNameOk() (string, bool) {
func (o *AdditionalPropertiesInteger) GetNameOk() (*string, bool) {
if o == nil || o.Name == nil {
var ret string
return ret, false
return nil, false
}
return *o.Name, true
return o.Name, true
}
// HasName returns a boolean if a field has been set.
@@ -69,25 +67,46 @@ func (o *AdditionalPropertiesInteger) SetName(v string) {
o.Name = &v
}
func (o AdditionalPropertiesInteger) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.Name != nil {
toSerialize["name"] = o.Name
}
return json.Marshal(toSerialize)
}
type NullableAdditionalPropertiesInteger struct {
Value AdditionalPropertiesInteger
ExplicitNull bool
value *AdditionalPropertiesInteger
isSet bool
}
func (v NullableAdditionalPropertiesInteger) Get() *AdditionalPropertiesInteger {
return v.value
}
func (v *NullableAdditionalPropertiesInteger) Set(val *AdditionalPropertiesInteger) {
v.value = val
v.isSet = true
}
func (v NullableAdditionalPropertiesInteger) IsSet() bool {
return v.isSet
}
func (v *NullableAdditionalPropertiesInteger) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableAdditionalPropertiesInteger(val *AdditionalPropertiesInteger) *NullableAdditionalPropertiesInteger {
return &NullableAdditionalPropertiesInteger{value: val, isSet: true}
}
func (v NullableAdditionalPropertiesInteger) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableAdditionalPropertiesInteger) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View File

@@ -10,7 +10,6 @@
package petstore
import (
"bytes"
"encoding/json"
)
@@ -24,16 +23,16 @@ type AdditionalPropertiesNumber struct {
// 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 NewAdditionalPropertiesNumber() *AdditionalPropertiesNumber {
this := AdditionalPropertiesNumber{}
return &this
this := AdditionalPropertiesNumber{}
return &this
}
// NewAdditionalPropertiesNumberWithDefaults instantiates a new AdditionalPropertiesNumber object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewAdditionalPropertiesNumberWithDefaults() *AdditionalPropertiesNumber {
this := AdditionalPropertiesNumber{}
return &this
this := AdditionalPropertiesNumber{}
return &this
}
// GetName returns the Name field value if set, zero value otherwise.
@@ -45,14 +44,13 @@ func (o *AdditionalPropertiesNumber) GetName() string {
return *o.Name
}
// GetNameOk returns a tuple with the Name field value if set, zero value otherwise
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AdditionalPropertiesNumber) GetNameOk() (string, bool) {
func (o *AdditionalPropertiesNumber) GetNameOk() (*string, bool) {
if o == nil || o.Name == nil {
var ret string
return ret, false
return nil, false
}
return *o.Name, true
return o.Name, true
}
// HasName returns a boolean if a field has been set.
@@ -69,25 +67,46 @@ func (o *AdditionalPropertiesNumber) SetName(v string) {
o.Name = &v
}
func (o AdditionalPropertiesNumber) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.Name != nil {
toSerialize["name"] = o.Name
}
return json.Marshal(toSerialize)
}
type NullableAdditionalPropertiesNumber struct {
Value AdditionalPropertiesNumber
ExplicitNull bool
value *AdditionalPropertiesNumber
isSet bool
}
func (v NullableAdditionalPropertiesNumber) Get() *AdditionalPropertiesNumber {
return v.value
}
func (v *NullableAdditionalPropertiesNumber) Set(val *AdditionalPropertiesNumber) {
v.value = val
v.isSet = true
}
func (v NullableAdditionalPropertiesNumber) IsSet() bool {
return v.isSet
}
func (v *NullableAdditionalPropertiesNumber) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableAdditionalPropertiesNumber(val *AdditionalPropertiesNumber) *NullableAdditionalPropertiesNumber {
return &NullableAdditionalPropertiesNumber{value: val, isSet: true}
}
func (v NullableAdditionalPropertiesNumber) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableAdditionalPropertiesNumber) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View File

@@ -10,7 +10,6 @@
package petstore
import (
"bytes"
"encoding/json"
)
@@ -24,16 +23,16 @@ type AdditionalPropertiesObject struct {
// 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 NewAdditionalPropertiesObject() *AdditionalPropertiesObject {
this := AdditionalPropertiesObject{}
return &this
this := AdditionalPropertiesObject{}
return &this
}
// NewAdditionalPropertiesObjectWithDefaults instantiates a new AdditionalPropertiesObject object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewAdditionalPropertiesObjectWithDefaults() *AdditionalPropertiesObject {
this := AdditionalPropertiesObject{}
return &this
this := AdditionalPropertiesObject{}
return &this
}
// GetName returns the Name field value if set, zero value otherwise.
@@ -45,14 +44,13 @@ func (o *AdditionalPropertiesObject) GetName() string {
return *o.Name
}
// GetNameOk returns a tuple with the Name field value if set, zero value otherwise
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AdditionalPropertiesObject) GetNameOk() (string, bool) {
func (o *AdditionalPropertiesObject) GetNameOk() (*string, bool) {
if o == nil || o.Name == nil {
var ret string
return ret, false
return nil, false
}
return *o.Name, true
return o.Name, true
}
// HasName returns a boolean if a field has been set.
@@ -69,25 +67,46 @@ func (o *AdditionalPropertiesObject) SetName(v string) {
o.Name = &v
}
func (o AdditionalPropertiesObject) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.Name != nil {
toSerialize["name"] = o.Name
}
return json.Marshal(toSerialize)
}
type NullableAdditionalPropertiesObject struct {
Value AdditionalPropertiesObject
ExplicitNull bool
value *AdditionalPropertiesObject
isSet bool
}
func (v NullableAdditionalPropertiesObject) Get() *AdditionalPropertiesObject {
return v.value
}
func (v *NullableAdditionalPropertiesObject) Set(val *AdditionalPropertiesObject) {
v.value = val
v.isSet = true
}
func (v NullableAdditionalPropertiesObject) IsSet() bool {
return v.isSet
}
func (v *NullableAdditionalPropertiesObject) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableAdditionalPropertiesObject(val *AdditionalPropertiesObject) *NullableAdditionalPropertiesObject {
return &NullableAdditionalPropertiesObject{value: val, isSet: true}
}
func (v NullableAdditionalPropertiesObject) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableAdditionalPropertiesObject) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View File

@@ -10,7 +10,6 @@
package petstore
import (
"bytes"
"encoding/json"
)
@@ -24,16 +23,16 @@ type AdditionalPropertiesString struct {
// 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 NewAdditionalPropertiesString() *AdditionalPropertiesString {
this := AdditionalPropertiesString{}
return &this
this := AdditionalPropertiesString{}
return &this
}
// NewAdditionalPropertiesStringWithDefaults instantiates a new AdditionalPropertiesString object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewAdditionalPropertiesStringWithDefaults() *AdditionalPropertiesString {
this := AdditionalPropertiesString{}
return &this
this := AdditionalPropertiesString{}
return &this
}
// GetName returns the Name field value if set, zero value otherwise.
@@ -45,14 +44,13 @@ func (o *AdditionalPropertiesString) GetName() string {
return *o.Name
}
// GetNameOk returns a tuple with the Name field value if set, zero value otherwise
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AdditionalPropertiesString) GetNameOk() (string, bool) {
func (o *AdditionalPropertiesString) GetNameOk() (*string, bool) {
if o == nil || o.Name == nil {
var ret string
return ret, false
return nil, false
}
return *o.Name, true
return o.Name, true
}
// HasName returns a boolean if a field has been set.
@@ -69,25 +67,46 @@ func (o *AdditionalPropertiesString) SetName(v string) {
o.Name = &v
}
func (o AdditionalPropertiesString) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.Name != nil {
toSerialize["name"] = o.Name
}
return json.Marshal(toSerialize)
}
type NullableAdditionalPropertiesString struct {
Value AdditionalPropertiesString
ExplicitNull bool
value *AdditionalPropertiesString
isSet bool
}
func (v NullableAdditionalPropertiesString) Get() *AdditionalPropertiesString {
return v.value
}
func (v *NullableAdditionalPropertiesString) Set(val *AdditionalPropertiesString) {
v.value = val
v.isSet = true
}
func (v NullableAdditionalPropertiesString) IsSet() bool {
return v.isSet
}
func (v *NullableAdditionalPropertiesString) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableAdditionalPropertiesString(val *AdditionalPropertiesString) *NullableAdditionalPropertiesString {
return &NullableAdditionalPropertiesString{value: val, isSet: true}
}
func (v NullableAdditionalPropertiesString) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableAdditionalPropertiesString) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View File

@@ -10,7 +10,6 @@
package petstore
import (
"bytes"
"encoding/json"
)
@@ -25,26 +24,26 @@ type Animal struct {
// 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 NewAnimal(className string, ) *Animal {
this := Animal{}
this.ClassName = className
var color string = "red"
this.Color = &color
return &this
this := Animal{}
this.ClassName = className
var color string = "red"
this.Color = &color
return &this
}
// NewAnimalWithDefaults instantiates a new Animal object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewAnimalWithDefaults() *Animal {
this := Animal{}
var color string = "red"
this.Color = &color
return &this
this := Animal{}
var color string = "red"
this.Color = &color
return &this
}
// GetClassName returns the ClassName field value
func (o *Animal) GetClassName() string {
if o == nil {
if o == nil {
var ret string
return ret
}
@@ -52,6 +51,15 @@ func (o *Animal) GetClassName() string {
return o.ClassName
}
// GetClassNameOk returns a tuple with the ClassName field value
// and a boolean to check if the value has been set.
func (o *Animal) GetClassNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.ClassName, true
}
// SetClassName sets field value
func (o *Animal) SetClassName(v string) {
o.ClassName = v
@@ -66,14 +74,13 @@ func (o *Animal) GetColor() string {
return *o.Color
}
// GetColorOk returns a tuple with the Color field value if set, zero value otherwise
// GetColorOk returns a tuple with the Color field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Animal) GetColorOk() (string, bool) {
func (o *Animal) GetColorOk() (*string, bool) {
if o == nil || o.Color == nil {
var ret string
return ret, false
return nil, false
}
return *o.Color, true
return o.Color, true
}
// HasColor returns a boolean if a field has been set.
@@ -90,25 +97,49 @@ func (o *Animal) SetColor(v string) {
o.Color = &v
}
func (o Animal) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if true {
toSerialize["className"] = o.ClassName
}
if o.Color != nil {
toSerialize["color"] = o.Color
}
return json.Marshal(toSerialize)
}
type NullableAnimal struct {
Value Animal
ExplicitNull bool
value *Animal
isSet bool
}
func (v NullableAnimal) Get() *Animal {
return v.value
}
func (v *NullableAnimal) Set(val *Animal) {
v.value = val
v.isSet = true
}
func (v NullableAnimal) IsSet() bool {
return v.isSet
}
func (v *NullableAnimal) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableAnimal(val *Animal) *NullableAnimal {
return &NullableAnimal{value: val, isSet: true}
}
func (v NullableAnimal) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableAnimal) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View File

@@ -10,7 +10,6 @@
package petstore
import (
"bytes"
"encoding/json"
)
@@ -26,16 +25,16 @@ type ApiResponse struct {
// 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 NewApiResponse() *ApiResponse {
this := ApiResponse{}
return &this
this := ApiResponse{}
return &this
}
// NewApiResponseWithDefaults instantiates a new ApiResponse object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewApiResponseWithDefaults() *ApiResponse {
this := ApiResponse{}
return &this
this := ApiResponse{}
return &this
}
// GetCode returns the Code field value if set, zero value otherwise.
@@ -47,14 +46,13 @@ func (o *ApiResponse) GetCode() int32 {
return *o.Code
}
// GetCodeOk returns a tuple with the Code field value if set, zero value otherwise
// GetCodeOk returns a tuple with the Code field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ApiResponse) GetCodeOk() (int32, bool) {
func (o *ApiResponse) GetCodeOk() (*int32, bool) {
if o == nil || o.Code == nil {
var ret int32
return ret, false
return nil, false
}
return *o.Code, true
return o.Code, true
}
// HasCode returns a boolean if a field has been set.
@@ -80,14 +78,13 @@ func (o *ApiResponse) GetType() string {
return *o.Type
}
// GetTypeOk returns a tuple with the Type field value if set, zero value otherwise
// GetTypeOk returns a tuple with the Type field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ApiResponse) GetTypeOk() (string, bool) {
func (o *ApiResponse) GetTypeOk() (*string, bool) {
if o == nil || o.Type == nil {
var ret string
return ret, false
return nil, false
}
return *o.Type, true
return o.Type, true
}
// HasType returns a boolean if a field has been set.
@@ -113,14 +110,13 @@ func (o *ApiResponse) GetMessage() string {
return *o.Message
}
// GetMessageOk returns a tuple with the Message field value if set, zero value otherwise
// GetMessageOk returns a tuple with the Message field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ApiResponse) GetMessageOk() (string, bool) {
func (o *ApiResponse) GetMessageOk() (*string, bool) {
if o == nil || o.Message == nil {
var ret string
return ret, false
return nil, false
}
return *o.Message, true
return o.Message, true
}
// HasMessage returns a boolean if a field has been set.
@@ -137,25 +133,52 @@ func (o *ApiResponse) SetMessage(v string) {
o.Message = &v
}
func (o ApiResponse) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.Code != nil {
toSerialize["code"] = o.Code
}
if o.Type != nil {
toSerialize["type"] = o.Type
}
if o.Message != nil {
toSerialize["message"] = o.Message
}
return json.Marshal(toSerialize)
}
type NullableApiResponse struct {
Value ApiResponse
ExplicitNull bool
value *ApiResponse
isSet bool
}
func (v NullableApiResponse) Get() *ApiResponse {
return v.value
}
func (v *NullableApiResponse) Set(val *ApiResponse) {
v.value = val
v.isSet = true
}
func (v NullableApiResponse) IsSet() bool {
return v.isSet
}
func (v *NullableApiResponse) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableApiResponse(val *ApiResponse) *NullableApiResponse {
return &NullableApiResponse{value: val, isSet: true}
}
func (v NullableApiResponse) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableApiResponse) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View File

@@ -10,7 +10,6 @@
package petstore
import (
"bytes"
"encoding/json"
)
@@ -24,16 +23,16 @@ type ArrayOfArrayOfNumberOnly struct {
// 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 NewArrayOfArrayOfNumberOnly() *ArrayOfArrayOfNumberOnly {
this := ArrayOfArrayOfNumberOnly{}
return &this
this := ArrayOfArrayOfNumberOnly{}
return &this
}
// NewArrayOfArrayOfNumberOnlyWithDefaults instantiates a new ArrayOfArrayOfNumberOnly object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewArrayOfArrayOfNumberOnlyWithDefaults() *ArrayOfArrayOfNumberOnly {
this := ArrayOfArrayOfNumberOnly{}
return &this
this := ArrayOfArrayOfNumberOnly{}
return &this
}
// GetArrayArrayNumber returns the ArrayArrayNumber field value if set, zero value otherwise.
@@ -45,14 +44,13 @@ func (o *ArrayOfArrayOfNumberOnly) GetArrayArrayNumber() [][]float32 {
return *o.ArrayArrayNumber
}
// GetArrayArrayNumberOk returns a tuple with the ArrayArrayNumber field value if set, zero value otherwise
// GetArrayArrayNumberOk returns a tuple with the ArrayArrayNumber field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ArrayOfArrayOfNumberOnly) GetArrayArrayNumberOk() ([][]float32, bool) {
func (o *ArrayOfArrayOfNumberOnly) GetArrayArrayNumberOk() (*[][]float32, bool) {
if o == nil || o.ArrayArrayNumber == nil {
var ret [][]float32
return ret, false
return nil, false
}
return *o.ArrayArrayNumber, true
return o.ArrayArrayNumber, true
}
// HasArrayArrayNumber returns a boolean if a field has been set.
@@ -69,25 +67,46 @@ func (o *ArrayOfArrayOfNumberOnly) SetArrayArrayNumber(v [][]float32) {
o.ArrayArrayNumber = &v
}
func (o ArrayOfArrayOfNumberOnly) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.ArrayArrayNumber != nil {
toSerialize["ArrayArrayNumber"] = o.ArrayArrayNumber
}
return json.Marshal(toSerialize)
}
type NullableArrayOfArrayOfNumberOnly struct {
Value ArrayOfArrayOfNumberOnly
ExplicitNull bool
value *ArrayOfArrayOfNumberOnly
isSet bool
}
func (v NullableArrayOfArrayOfNumberOnly) Get() *ArrayOfArrayOfNumberOnly {
return v.value
}
func (v *NullableArrayOfArrayOfNumberOnly) Set(val *ArrayOfArrayOfNumberOnly) {
v.value = val
v.isSet = true
}
func (v NullableArrayOfArrayOfNumberOnly) IsSet() bool {
return v.isSet
}
func (v *NullableArrayOfArrayOfNumberOnly) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableArrayOfArrayOfNumberOnly(val *ArrayOfArrayOfNumberOnly) *NullableArrayOfArrayOfNumberOnly {
return &NullableArrayOfArrayOfNumberOnly{value: val, isSet: true}
}
func (v NullableArrayOfArrayOfNumberOnly) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableArrayOfArrayOfNumberOnly) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View File

@@ -10,7 +10,6 @@
package petstore
import (
"bytes"
"encoding/json"
)
@@ -24,16 +23,16 @@ type ArrayOfNumberOnly struct {
// 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 NewArrayOfNumberOnly() *ArrayOfNumberOnly {
this := ArrayOfNumberOnly{}
return &this
this := ArrayOfNumberOnly{}
return &this
}
// NewArrayOfNumberOnlyWithDefaults instantiates a new ArrayOfNumberOnly object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewArrayOfNumberOnlyWithDefaults() *ArrayOfNumberOnly {
this := ArrayOfNumberOnly{}
return &this
this := ArrayOfNumberOnly{}
return &this
}
// GetArrayNumber returns the ArrayNumber field value if set, zero value otherwise.
@@ -45,14 +44,13 @@ func (o *ArrayOfNumberOnly) GetArrayNumber() []float32 {
return *o.ArrayNumber
}
// GetArrayNumberOk returns a tuple with the ArrayNumber field value if set, zero value otherwise
// GetArrayNumberOk returns a tuple with the ArrayNumber field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ArrayOfNumberOnly) GetArrayNumberOk() ([]float32, bool) {
func (o *ArrayOfNumberOnly) GetArrayNumberOk() (*[]float32, bool) {
if o == nil || o.ArrayNumber == nil {
var ret []float32
return ret, false
return nil, false
}
return *o.ArrayNumber, true
return o.ArrayNumber, true
}
// HasArrayNumber returns a boolean if a field has been set.
@@ -69,25 +67,46 @@ func (o *ArrayOfNumberOnly) SetArrayNumber(v []float32) {
o.ArrayNumber = &v
}
func (o ArrayOfNumberOnly) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.ArrayNumber != nil {
toSerialize["ArrayNumber"] = o.ArrayNumber
}
return json.Marshal(toSerialize)
}
type NullableArrayOfNumberOnly struct {
Value ArrayOfNumberOnly
ExplicitNull bool
value *ArrayOfNumberOnly
isSet bool
}
func (v NullableArrayOfNumberOnly) Get() *ArrayOfNumberOnly {
return v.value
}
func (v *NullableArrayOfNumberOnly) Set(val *ArrayOfNumberOnly) {
v.value = val
v.isSet = true
}
func (v NullableArrayOfNumberOnly) IsSet() bool {
return v.isSet
}
func (v *NullableArrayOfNumberOnly) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableArrayOfNumberOnly(val *ArrayOfNumberOnly) *NullableArrayOfNumberOnly {
return &NullableArrayOfNumberOnly{value: val, isSet: true}
}
func (v NullableArrayOfNumberOnly) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableArrayOfNumberOnly) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View File

@@ -10,7 +10,6 @@
package petstore
import (
"bytes"
"encoding/json"
)
@@ -26,16 +25,16 @@ type ArrayTest struct {
// 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 NewArrayTest() *ArrayTest {
this := ArrayTest{}
return &this
this := ArrayTest{}
return &this
}
// NewArrayTestWithDefaults instantiates a new ArrayTest object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewArrayTestWithDefaults() *ArrayTest {
this := ArrayTest{}
return &this
this := ArrayTest{}
return &this
}
// GetArrayOfString returns the ArrayOfString field value if set, zero value otherwise.
@@ -47,14 +46,13 @@ func (o *ArrayTest) GetArrayOfString() []string {
return *o.ArrayOfString
}
// GetArrayOfStringOk returns a tuple with the ArrayOfString field value if set, zero value otherwise
// GetArrayOfStringOk returns a tuple with the ArrayOfString field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ArrayTest) GetArrayOfStringOk() ([]string, bool) {
func (o *ArrayTest) GetArrayOfStringOk() (*[]string, bool) {
if o == nil || o.ArrayOfString == nil {
var ret []string
return ret, false
return nil, false
}
return *o.ArrayOfString, true
return o.ArrayOfString, true
}
// HasArrayOfString returns a boolean if a field has been set.
@@ -80,14 +78,13 @@ func (o *ArrayTest) GetArrayArrayOfInteger() [][]int64 {
return *o.ArrayArrayOfInteger
}
// GetArrayArrayOfIntegerOk returns a tuple with the ArrayArrayOfInteger field value if set, zero value otherwise
// GetArrayArrayOfIntegerOk returns a tuple with the ArrayArrayOfInteger field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ArrayTest) GetArrayArrayOfIntegerOk() ([][]int64, bool) {
func (o *ArrayTest) GetArrayArrayOfIntegerOk() (*[][]int64, bool) {
if o == nil || o.ArrayArrayOfInteger == nil {
var ret [][]int64
return ret, false
return nil, false
}
return *o.ArrayArrayOfInteger, true
return o.ArrayArrayOfInteger, true
}
// HasArrayArrayOfInteger returns a boolean if a field has been set.
@@ -113,14 +110,13 @@ func (o *ArrayTest) GetArrayArrayOfModel() [][]ReadOnlyFirst {
return *o.ArrayArrayOfModel
}
// GetArrayArrayOfModelOk returns a tuple with the ArrayArrayOfModel field value if set, zero value otherwise
// GetArrayArrayOfModelOk returns a tuple with the ArrayArrayOfModel field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ArrayTest) GetArrayArrayOfModelOk() ([][]ReadOnlyFirst, bool) {
func (o *ArrayTest) GetArrayArrayOfModelOk() (*[][]ReadOnlyFirst, bool) {
if o == nil || o.ArrayArrayOfModel == nil {
var ret [][]ReadOnlyFirst
return ret, false
return nil, false
}
return *o.ArrayArrayOfModel, true
return o.ArrayArrayOfModel, true
}
// HasArrayArrayOfModel returns a boolean if a field has been set.
@@ -137,25 +133,52 @@ func (o *ArrayTest) SetArrayArrayOfModel(v [][]ReadOnlyFirst) {
o.ArrayArrayOfModel = &v
}
func (o ArrayTest) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.ArrayOfString != nil {
toSerialize["array_of_string"] = o.ArrayOfString
}
if o.ArrayArrayOfInteger != nil {
toSerialize["array_array_of_integer"] = o.ArrayArrayOfInteger
}
if o.ArrayArrayOfModel != nil {
toSerialize["array_array_of_model"] = o.ArrayArrayOfModel
}
return json.Marshal(toSerialize)
}
type NullableArrayTest struct {
Value ArrayTest
ExplicitNull bool
value *ArrayTest
isSet bool
}
func (v NullableArrayTest) Get() *ArrayTest {
return v.value
}
func (v *NullableArrayTest) Set(val *ArrayTest) {
v.value = val
v.isSet = true
}
func (v NullableArrayTest) IsSet() bool {
return v.isSet
}
func (v *NullableArrayTest) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableArrayTest(val *ArrayTest) *NullableArrayTest {
return &NullableArrayTest{value: val, isSet: true}
}
func (v NullableArrayTest) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableArrayTest) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View File

@@ -10,7 +10,6 @@
package petstore
import (
"bytes"
"encoding/json"
)
@@ -25,16 +24,16 @@ type BigCat struct {
// 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 NewBigCat() *BigCat {
this := BigCat{}
return &this
this := BigCat{}
return &this
}
// NewBigCatWithDefaults instantiates a new BigCat object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewBigCatWithDefaults() *BigCat {
this := BigCat{}
return &this
this := BigCat{}
return &this
}
// GetKind returns the Kind field value if set, zero value otherwise.
@@ -46,14 +45,13 @@ func (o *BigCat) GetKind() string {
return *o.Kind
}
// GetKindOk returns a tuple with the Kind field value if set, zero value otherwise
// GetKindOk returns a tuple with the Kind field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BigCat) GetKindOk() (string, bool) {
func (o *BigCat) GetKindOk() (*string, bool) {
if o == nil || o.Kind == nil {
var ret string
return ret, false
return nil, false
}
return *o.Kind, true
return o.Kind, true
}
// HasKind returns a boolean if a field has been set.
@@ -70,25 +68,54 @@ func (o *BigCat) SetKind(v string) {
o.Kind = &v
}
func (o BigCat) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
serializedCat, errCat := json.Marshal(o.Cat)
if errCat != nil {
return []byte{}, errCat
}
errCat = json.Unmarshal([]byte(serializedCat), &toSerialize)
if errCat != nil {
return []byte{}, errCat
}
if o.Kind != nil {
toSerialize["kind"] = o.Kind
}
return json.Marshal(toSerialize)
}
type NullableBigCat struct {
Value BigCat
ExplicitNull bool
value *BigCat
isSet bool
}
func (v NullableBigCat) Get() *BigCat {
return v.value
}
func (v *NullableBigCat) Set(val *BigCat) {
v.value = val
v.isSet = true
}
func (v NullableBigCat) IsSet() bool {
return v.isSet
}
func (v *NullableBigCat) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableBigCat(val *BigCat) *NullableBigCat {
return &NullableBigCat{value: val, isSet: true}
}
func (v NullableBigCat) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableBigCat) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View File

@@ -10,7 +10,6 @@
package petstore
import (
"bytes"
"encoding/json"
)
@@ -24,16 +23,16 @@ type BigCatAllOf struct {
// 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 NewBigCatAllOf() *BigCatAllOf {
this := BigCatAllOf{}
return &this
this := BigCatAllOf{}
return &this
}
// NewBigCatAllOfWithDefaults instantiates a new BigCatAllOf object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewBigCatAllOfWithDefaults() *BigCatAllOf {
this := BigCatAllOf{}
return &this
this := BigCatAllOf{}
return &this
}
// GetKind returns the Kind field value if set, zero value otherwise.
@@ -45,14 +44,13 @@ func (o *BigCatAllOf) GetKind() string {
return *o.Kind
}
// GetKindOk returns a tuple with the Kind field value if set, zero value otherwise
// GetKindOk returns a tuple with the Kind field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BigCatAllOf) GetKindOk() (string, bool) {
func (o *BigCatAllOf) GetKindOk() (*string, bool) {
if o == nil || o.Kind == nil {
var ret string
return ret, false
return nil, false
}
return *o.Kind, true
return o.Kind, true
}
// HasKind returns a boolean if a field has been set.
@@ -69,25 +67,46 @@ func (o *BigCatAllOf) SetKind(v string) {
o.Kind = &v
}
func (o BigCatAllOf) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.Kind != nil {
toSerialize["kind"] = o.Kind
}
return json.Marshal(toSerialize)
}
type NullableBigCatAllOf struct {
Value BigCatAllOf
ExplicitNull bool
value *BigCatAllOf
isSet bool
}
func (v NullableBigCatAllOf) Get() *BigCatAllOf {
return v.value
}
func (v *NullableBigCatAllOf) Set(val *BigCatAllOf) {
v.value = val
v.isSet = true
}
func (v NullableBigCatAllOf) IsSet() bool {
return v.isSet
}
func (v *NullableBigCatAllOf) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableBigCatAllOf(val *BigCatAllOf) *NullableBigCatAllOf {
return &NullableBigCatAllOf{value: val, isSet: true}
}
func (v NullableBigCatAllOf) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableBigCatAllOf) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View File

@@ -10,7 +10,6 @@
package petstore
import (
"bytes"
"encoding/json"
)
@@ -30,16 +29,16 @@ type Capitalization struct {
// 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 NewCapitalization() *Capitalization {
this := Capitalization{}
return &this
this := Capitalization{}
return &this
}
// NewCapitalizationWithDefaults instantiates a new Capitalization object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewCapitalizationWithDefaults() *Capitalization {
this := Capitalization{}
return &this
this := Capitalization{}
return &this
}
// GetSmallCamel returns the SmallCamel field value if set, zero value otherwise.
@@ -51,14 +50,13 @@ func (o *Capitalization) GetSmallCamel() string {
return *o.SmallCamel
}
// GetSmallCamelOk returns a tuple with the SmallCamel field value if set, zero value otherwise
// GetSmallCamelOk returns a tuple with the SmallCamel field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Capitalization) GetSmallCamelOk() (string, bool) {
func (o *Capitalization) GetSmallCamelOk() (*string, bool) {
if o == nil || o.SmallCamel == nil {
var ret string
return ret, false
return nil, false
}
return *o.SmallCamel, true
return o.SmallCamel, true
}
// HasSmallCamel returns a boolean if a field has been set.
@@ -84,14 +82,13 @@ func (o *Capitalization) GetCapitalCamel() string {
return *o.CapitalCamel
}
// GetCapitalCamelOk returns a tuple with the CapitalCamel field value if set, zero value otherwise
// GetCapitalCamelOk returns a tuple with the CapitalCamel field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Capitalization) GetCapitalCamelOk() (string, bool) {
func (o *Capitalization) GetCapitalCamelOk() (*string, bool) {
if o == nil || o.CapitalCamel == nil {
var ret string
return ret, false
return nil, false
}
return *o.CapitalCamel, true
return o.CapitalCamel, true
}
// HasCapitalCamel returns a boolean if a field has been set.
@@ -117,14 +114,13 @@ func (o *Capitalization) GetSmallSnake() string {
return *o.SmallSnake
}
// GetSmallSnakeOk returns a tuple with the SmallSnake field value if set, zero value otherwise
// GetSmallSnakeOk returns a tuple with the SmallSnake field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Capitalization) GetSmallSnakeOk() (string, bool) {
func (o *Capitalization) GetSmallSnakeOk() (*string, bool) {
if o == nil || o.SmallSnake == nil {
var ret string
return ret, false
return nil, false
}
return *o.SmallSnake, true
return o.SmallSnake, true
}
// HasSmallSnake returns a boolean if a field has been set.
@@ -150,14 +146,13 @@ func (o *Capitalization) GetCapitalSnake() string {
return *o.CapitalSnake
}
// GetCapitalSnakeOk returns a tuple with the CapitalSnake field value if set, zero value otherwise
// GetCapitalSnakeOk returns a tuple with the CapitalSnake field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Capitalization) GetCapitalSnakeOk() (string, bool) {
func (o *Capitalization) GetCapitalSnakeOk() (*string, bool) {
if o == nil || o.CapitalSnake == nil {
var ret string
return ret, false
return nil, false
}
return *o.CapitalSnake, true
return o.CapitalSnake, true
}
// HasCapitalSnake returns a boolean if a field has been set.
@@ -183,14 +178,13 @@ func (o *Capitalization) GetSCAETHFlowPoints() string {
return *o.SCAETHFlowPoints
}
// GetSCAETHFlowPointsOk returns a tuple with the SCAETHFlowPoints field value if set, zero value otherwise
// GetSCAETHFlowPointsOk returns a tuple with the SCAETHFlowPoints field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Capitalization) GetSCAETHFlowPointsOk() (string, bool) {
func (o *Capitalization) GetSCAETHFlowPointsOk() (*string, bool) {
if o == nil || o.SCAETHFlowPoints == nil {
var ret string
return ret, false
return nil, false
}
return *o.SCAETHFlowPoints, true
return o.SCAETHFlowPoints, true
}
// HasSCAETHFlowPoints returns a boolean if a field has been set.
@@ -216,14 +210,13 @@ func (o *Capitalization) GetATT_NAME() string {
return *o.ATT_NAME
}
// GetATT_NAMEOk returns a tuple with the ATT_NAME field value if set, zero value otherwise
// GetATT_NAMEOk returns a tuple with the ATT_NAME field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Capitalization) GetATT_NAMEOk() (string, bool) {
func (o *Capitalization) GetATT_NAMEOk() (*string, bool) {
if o == nil || o.ATT_NAME == nil {
var ret string
return ret, false
return nil, false
}
return *o.ATT_NAME, true
return o.ATT_NAME, true
}
// HasATT_NAME returns a boolean if a field has been set.
@@ -240,25 +233,61 @@ func (o *Capitalization) SetATT_NAME(v string) {
o.ATT_NAME = &v
}
func (o Capitalization) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.SmallCamel != nil {
toSerialize["smallCamel"] = o.SmallCamel
}
if o.CapitalCamel != nil {
toSerialize["CapitalCamel"] = o.CapitalCamel
}
if o.SmallSnake != nil {
toSerialize["small_Snake"] = o.SmallSnake
}
if o.CapitalSnake != nil {
toSerialize["Capital_Snake"] = o.CapitalSnake
}
if o.SCAETHFlowPoints != nil {
toSerialize["SCA_ETH_Flow_Points"] = o.SCAETHFlowPoints
}
if o.ATT_NAME != nil {
toSerialize["ATT_NAME"] = o.ATT_NAME
}
return json.Marshal(toSerialize)
}
type NullableCapitalization struct {
Value Capitalization
ExplicitNull bool
value *Capitalization
isSet bool
}
func (v NullableCapitalization) Get() *Capitalization {
return v.value
}
func (v *NullableCapitalization) Set(val *Capitalization) {
v.value = val
v.isSet = true
}
func (v NullableCapitalization) IsSet() bool {
return v.isSet
}
func (v *NullableCapitalization) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableCapitalization(val *Capitalization) *NullableCapitalization {
return &NullableCapitalization{value: val, isSet: true}
}
func (v NullableCapitalization) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableCapitalization) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View File

@@ -10,7 +10,6 @@
package petstore
import (
"bytes"
"encoding/json"
)
@@ -25,16 +24,16 @@ type Cat struct {
// 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 NewCat() *Cat {
this := Cat{}
return &this
this := Cat{}
return &this
}
// NewCatWithDefaults instantiates a new Cat object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewCatWithDefaults() *Cat {
this := Cat{}
return &this
this := Cat{}
return &this
}
// GetDeclawed returns the Declawed field value if set, zero value otherwise.
@@ -46,14 +45,13 @@ func (o *Cat) GetDeclawed() bool {
return *o.Declawed
}
// GetDeclawedOk returns a tuple with the Declawed field value if set, zero value otherwise
// GetDeclawedOk returns a tuple with the Declawed field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Cat) GetDeclawedOk() (bool, bool) {
func (o *Cat) GetDeclawedOk() (*bool, bool) {
if o == nil || o.Declawed == nil {
var ret bool
return ret, false
return nil, false
}
return *o.Declawed, true
return o.Declawed, true
}
// HasDeclawed returns a boolean if a field has been set.
@@ -70,25 +68,54 @@ func (o *Cat) SetDeclawed(v bool) {
o.Declawed = &v
}
func (o Cat) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
serializedAnimal, errAnimal := json.Marshal(o.Animal)
if errAnimal != nil {
return []byte{}, errAnimal
}
errAnimal = json.Unmarshal([]byte(serializedAnimal), &toSerialize)
if errAnimal != nil {
return []byte{}, errAnimal
}
if o.Declawed != nil {
toSerialize["declawed"] = o.Declawed
}
return json.Marshal(toSerialize)
}
type NullableCat struct {
Value Cat
ExplicitNull bool
value *Cat
isSet bool
}
func (v NullableCat) Get() *Cat {
return v.value
}
func (v *NullableCat) Set(val *Cat) {
v.value = val
v.isSet = true
}
func (v NullableCat) IsSet() bool {
return v.isSet
}
func (v *NullableCat) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableCat(val *Cat) *NullableCat {
return &NullableCat{value: val, isSet: true}
}
func (v NullableCat) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableCat) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View File

@@ -10,7 +10,6 @@
package petstore
import (
"bytes"
"encoding/json"
)
@@ -24,16 +23,16 @@ type CatAllOf struct {
// 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 NewCatAllOf() *CatAllOf {
this := CatAllOf{}
return &this
this := CatAllOf{}
return &this
}
// NewCatAllOfWithDefaults instantiates a new CatAllOf object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewCatAllOfWithDefaults() *CatAllOf {
this := CatAllOf{}
return &this
this := CatAllOf{}
return &this
}
// GetDeclawed returns the Declawed field value if set, zero value otherwise.
@@ -45,14 +44,13 @@ func (o *CatAllOf) GetDeclawed() bool {
return *o.Declawed
}
// GetDeclawedOk returns a tuple with the Declawed field value if set, zero value otherwise
// GetDeclawedOk returns a tuple with the Declawed field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CatAllOf) GetDeclawedOk() (bool, bool) {
func (o *CatAllOf) GetDeclawedOk() (*bool, bool) {
if o == nil || o.Declawed == nil {
var ret bool
return ret, false
return nil, false
}
return *o.Declawed, true
return o.Declawed, true
}
// HasDeclawed returns a boolean if a field has been set.
@@ -69,25 +67,46 @@ func (o *CatAllOf) SetDeclawed(v bool) {
o.Declawed = &v
}
func (o CatAllOf) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.Declawed != nil {
toSerialize["declawed"] = o.Declawed
}
return json.Marshal(toSerialize)
}
type NullableCatAllOf struct {
Value CatAllOf
ExplicitNull bool
value *CatAllOf
isSet bool
}
func (v NullableCatAllOf) Get() *CatAllOf {
return v.value
}
func (v *NullableCatAllOf) Set(val *CatAllOf) {
v.value = val
v.isSet = true
}
func (v NullableCatAllOf) IsSet() bool {
return v.isSet
}
func (v *NullableCatAllOf) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableCatAllOf(val *CatAllOf) *NullableCatAllOf {
return &NullableCatAllOf{value: val, isSet: true}
}
func (v NullableCatAllOf) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableCatAllOf) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View File

@@ -10,7 +10,6 @@
package petstore
import (
"bytes"
"encoding/json"
)
@@ -25,19 +24,19 @@ type Category struct {
// 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 NewCategory(name string, ) *Category {
this := Category{}
this.Name = name
return &this
this := Category{}
this.Name = name
return &this
}
// NewCategoryWithDefaults instantiates a new Category object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewCategoryWithDefaults() *Category {
this := Category{}
var name string = "default-name"
this.Name = name
return &this
this := Category{}
var name string = "default-name"
this.Name = name
return &this
}
// GetId returns the Id field value if set, zero value otherwise.
@@ -49,14 +48,13 @@ func (o *Category) GetId() int64 {
return *o.Id
}
// GetIdOk returns a tuple with the Id field value if set, zero value otherwise
// GetIdOk returns a tuple with the Id field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Category) GetIdOk() (int64, bool) {
func (o *Category) GetIdOk() (*int64, bool) {
if o == nil || o.Id == nil {
var ret int64
return ret, false
return nil, false
}
return *o.Id, true
return o.Id, true
}
// HasId returns a boolean if a field has been set.
@@ -75,7 +73,7 @@ func (o *Category) SetId(v int64) {
// GetName returns the Name field value
func (o *Category) GetName() string {
if o == nil {
if o == nil {
var ret string
return ret
}
@@ -83,30 +81,63 @@ func (o *Category) GetName() string {
return o.Name
}
// GetNameOk returns a tuple with the Name field value
// and a boolean to check if the value has been set.
func (o *Category) GetNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Name, true
}
// SetName sets field value
func (o *Category) SetName(v string) {
o.Name = v
}
func (o Category) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.Id != nil {
toSerialize["id"] = o.Id
}
if true {
toSerialize["name"] = o.Name
}
return json.Marshal(toSerialize)
}
type NullableCategory struct {
Value Category
ExplicitNull bool
value *Category
isSet bool
}
func (v NullableCategory) Get() *Category {
return v.value
}
func (v *NullableCategory) Set(val *Category) {
v.value = val
v.isSet = true
}
func (v NullableCategory) IsSet() bool {
return v.isSet
}
func (v *NullableCategory) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableCategory(val *Category) *NullableCategory {
return &NullableCategory{value: val, isSet: true}
}
func (v NullableCategory) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableCategory) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View File

@@ -10,7 +10,6 @@
package petstore
import (
"bytes"
"encoding/json"
)
@@ -24,16 +23,16 @@ type ClassModel struct {
// 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 NewClassModel() *ClassModel {
this := ClassModel{}
return &this
this := ClassModel{}
return &this
}
// NewClassModelWithDefaults instantiates a new ClassModel object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewClassModelWithDefaults() *ClassModel {
this := ClassModel{}
return &this
this := ClassModel{}
return &this
}
// GetClass returns the Class field value if set, zero value otherwise.
@@ -45,14 +44,13 @@ func (o *ClassModel) GetClass() string {
return *o.Class
}
// GetClassOk returns a tuple with the Class field value if set, zero value otherwise
// GetClassOk returns a tuple with the Class field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ClassModel) GetClassOk() (string, bool) {
func (o *ClassModel) GetClassOk() (*string, bool) {
if o == nil || o.Class == nil {
var ret string
return ret, false
return nil, false
}
return *o.Class, true
return o.Class, true
}
// HasClass returns a boolean if a field has been set.
@@ -69,25 +67,46 @@ func (o *ClassModel) SetClass(v string) {
o.Class = &v
}
func (o ClassModel) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.Class != nil {
toSerialize["_class"] = o.Class
}
return json.Marshal(toSerialize)
}
type NullableClassModel struct {
Value ClassModel
ExplicitNull bool
value *ClassModel
isSet bool
}
func (v NullableClassModel) Get() *ClassModel {
return v.value
}
func (v *NullableClassModel) Set(val *ClassModel) {
v.value = val
v.isSet = true
}
func (v NullableClassModel) IsSet() bool {
return v.isSet
}
func (v *NullableClassModel) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableClassModel(val *ClassModel) *NullableClassModel {
return &NullableClassModel{value: val, isSet: true}
}
func (v NullableClassModel) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableClassModel) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View File

@@ -10,7 +10,6 @@
package petstore
import (
"bytes"
"encoding/json"
)
@@ -24,16 +23,16 @@ type Client struct {
// 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 NewClient() *Client {
this := Client{}
return &this
this := Client{}
return &this
}
// NewClientWithDefaults instantiates a new Client object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewClientWithDefaults() *Client {
this := Client{}
return &this
this := Client{}
return &this
}
// GetClient returns the Client field value if set, zero value otherwise.
@@ -45,14 +44,13 @@ func (o *Client) GetClient() string {
return *o.Client
}
// GetClientOk returns a tuple with the Client field value if set, zero value otherwise
// GetClientOk returns a tuple with the Client field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Client) GetClientOk() (string, bool) {
func (o *Client) GetClientOk() (*string, bool) {
if o == nil || o.Client == nil {
var ret string
return ret, false
return nil, false
}
return *o.Client, true
return o.Client, true
}
// HasClient returns a boolean if a field has been set.
@@ -69,25 +67,46 @@ func (o *Client) SetClient(v string) {
o.Client = &v
}
func (o Client) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.Client != nil {
toSerialize["client"] = o.Client
}
return json.Marshal(toSerialize)
}
type NullableClient struct {
Value Client
ExplicitNull bool
value *Client
isSet bool
}
func (v NullableClient) Get() *Client {
return v.value
}
func (v *NullableClient) Set(val *Client) {
v.value = val
v.isSet = true
}
func (v NullableClient) IsSet() bool {
return v.isSet
}
func (v *NullableClient) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableClient(val *Client) *NullableClient {
return &NullableClient{value: val, isSet: true}
}
func (v NullableClient) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableClient) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View File

@@ -10,7 +10,6 @@
package petstore
import (
"bytes"
"encoding/json"
)
@@ -25,16 +24,16 @@ type Dog struct {
// 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 NewDog() *Dog {
this := Dog{}
return &this
this := Dog{}
return &this
}
// NewDogWithDefaults instantiates a new Dog object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewDogWithDefaults() *Dog {
this := Dog{}
return &this
this := Dog{}
return &this
}
// GetBreed returns the Breed field value if set, zero value otherwise.
@@ -46,14 +45,13 @@ func (o *Dog) GetBreed() string {
return *o.Breed
}
// GetBreedOk returns a tuple with the Breed field value if set, zero value otherwise
// GetBreedOk returns a tuple with the Breed field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Dog) GetBreedOk() (string, bool) {
func (o *Dog) GetBreedOk() (*string, bool) {
if o == nil || o.Breed == nil {
var ret string
return ret, false
return nil, false
}
return *o.Breed, true
return o.Breed, true
}
// HasBreed returns a boolean if a field has been set.
@@ -70,25 +68,54 @@ func (o *Dog) SetBreed(v string) {
o.Breed = &v
}
func (o Dog) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
serializedAnimal, errAnimal := json.Marshal(o.Animal)
if errAnimal != nil {
return []byte{}, errAnimal
}
errAnimal = json.Unmarshal([]byte(serializedAnimal), &toSerialize)
if errAnimal != nil {
return []byte{}, errAnimal
}
if o.Breed != nil {
toSerialize["breed"] = o.Breed
}
return json.Marshal(toSerialize)
}
type NullableDog struct {
Value Dog
ExplicitNull bool
value *Dog
isSet bool
}
func (v NullableDog) Get() *Dog {
return v.value
}
func (v *NullableDog) Set(val *Dog) {
v.value = val
v.isSet = true
}
func (v NullableDog) IsSet() bool {
return v.isSet
}
func (v *NullableDog) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableDog(val *Dog) *NullableDog {
return &NullableDog{value: val, isSet: true}
}
func (v NullableDog) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableDog) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View File

@@ -10,7 +10,6 @@
package petstore
import (
"bytes"
"encoding/json"
)
@@ -24,16 +23,16 @@ type DogAllOf struct {
// 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 NewDogAllOf() *DogAllOf {
this := DogAllOf{}
return &this
this := DogAllOf{}
return &this
}
// NewDogAllOfWithDefaults instantiates a new DogAllOf object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewDogAllOfWithDefaults() *DogAllOf {
this := DogAllOf{}
return &this
this := DogAllOf{}
return &this
}
// GetBreed returns the Breed field value if set, zero value otherwise.
@@ -45,14 +44,13 @@ func (o *DogAllOf) GetBreed() string {
return *o.Breed
}
// GetBreedOk returns a tuple with the Breed field value if set, zero value otherwise
// GetBreedOk returns a tuple with the Breed field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DogAllOf) GetBreedOk() (string, bool) {
func (o *DogAllOf) GetBreedOk() (*string, bool) {
if o == nil || o.Breed == nil {
var ret string
return ret, false
return nil, false
}
return *o.Breed, true
return o.Breed, true
}
// HasBreed returns a boolean if a field has been set.
@@ -69,25 +67,46 @@ func (o *DogAllOf) SetBreed(v string) {
o.Breed = &v
}
func (o DogAllOf) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.Breed != nil {
toSerialize["breed"] = o.Breed
}
return json.Marshal(toSerialize)
}
type NullableDogAllOf struct {
Value DogAllOf
ExplicitNull bool
value *DogAllOf
isSet bool
}
func (v NullableDogAllOf) Get() *DogAllOf {
return v.value
}
func (v *NullableDogAllOf) Set(val *DogAllOf) {
v.value = val
v.isSet = true
}
func (v NullableDogAllOf) IsSet() bool {
return v.isSet
}
func (v *NullableDogAllOf) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableDogAllOf(val *DogAllOf) *NullableDogAllOf {
return &NullableDogAllOf{value: val, isSet: true}
}
func (v NullableDogAllOf) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableDogAllOf) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View File

@@ -10,7 +10,6 @@
package petstore
import (
"bytes"
"encoding/json"
)
@@ -25,16 +24,16 @@ type EnumArrays struct {
// 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 NewEnumArrays() *EnumArrays {
this := EnumArrays{}
return &this
this := EnumArrays{}
return &this
}
// NewEnumArraysWithDefaults instantiates a new EnumArrays object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewEnumArraysWithDefaults() *EnumArrays {
this := EnumArrays{}
return &this
this := EnumArrays{}
return &this
}
// GetJustSymbol returns the JustSymbol field value if set, zero value otherwise.
@@ -46,14 +45,13 @@ func (o *EnumArrays) GetJustSymbol() string {
return *o.JustSymbol
}
// GetJustSymbolOk returns a tuple with the JustSymbol field value if set, zero value otherwise
// GetJustSymbolOk returns a tuple with the JustSymbol field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EnumArrays) GetJustSymbolOk() (string, bool) {
func (o *EnumArrays) GetJustSymbolOk() (*string, bool) {
if o == nil || o.JustSymbol == nil {
var ret string
return ret, false
return nil, false
}
return *o.JustSymbol, true
return o.JustSymbol, true
}
// HasJustSymbol returns a boolean if a field has been set.
@@ -79,14 +77,13 @@ func (o *EnumArrays) GetArrayEnum() []string {
return *o.ArrayEnum
}
// GetArrayEnumOk returns a tuple with the ArrayEnum field value if set, zero value otherwise
// GetArrayEnumOk returns a tuple with the ArrayEnum field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EnumArrays) GetArrayEnumOk() ([]string, bool) {
func (o *EnumArrays) GetArrayEnumOk() (*[]string, bool) {
if o == nil || o.ArrayEnum == nil {
var ret []string
return ret, false
return nil, false
}
return *o.ArrayEnum, true
return o.ArrayEnum, true
}
// HasArrayEnum returns a boolean if a field has been set.
@@ -103,25 +100,49 @@ func (o *EnumArrays) SetArrayEnum(v []string) {
o.ArrayEnum = &v
}
func (o EnumArrays) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.JustSymbol != nil {
toSerialize["just_symbol"] = o.JustSymbol
}
if o.ArrayEnum != nil {
toSerialize["array_enum"] = o.ArrayEnum
}
return json.Marshal(toSerialize)
}
type NullableEnumArrays struct {
Value EnumArrays
ExplicitNull bool
value *EnumArrays
isSet bool
}
func (v NullableEnumArrays) Get() *EnumArrays {
return v.value
}
func (v *NullableEnumArrays) Set(val *EnumArrays) {
v.value = val
v.isSet = true
}
func (v NullableEnumArrays) IsSet() bool {
return v.isSet
}
func (v *NullableEnumArrays) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableEnumArrays(val *EnumArrays) *NullableEnumArrays {
return &NullableEnumArrays{value: val, isSet: true}
}
func (v NullableEnumArrays) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableEnumArrays) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View File

@@ -10,7 +10,6 @@
package petstore
import (
"bytes"
"encoding/json"
)
@@ -31,24 +30,37 @@ func (v EnumClass) Ptr() *EnumClass {
type NullableEnumClass struct {
Value EnumClass
ExplicitNull bool
value *EnumClass
isSet bool
}
func (v NullableEnumClass) Get() *EnumClass {
return v.value
}
func (v *NullableEnumClass) Set(val *EnumClass) {
v.value = val
v.isSet = true
}
func (v NullableEnumClass) IsSet() bool {
return v.isSet
}
func (v *NullableEnumClass) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableEnumClass(val *EnumClass) *NullableEnumClass {
return &NullableEnumClass{value: val, isSet: true}
}
func (v NullableEnumClass) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableEnumClass) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View File

@@ -10,7 +10,6 @@
package petstore
import (
"bytes"
"encoding/json"
)
@@ -28,17 +27,17 @@ type EnumTest struct {
// 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 NewEnumTest(enumStringRequired string, ) *EnumTest {
this := EnumTest{}
this.EnumStringRequired = enumStringRequired
return &this
this := EnumTest{}
this.EnumStringRequired = enumStringRequired
return &this
}
// NewEnumTestWithDefaults instantiates a new EnumTest object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewEnumTestWithDefaults() *EnumTest {
this := EnumTest{}
return &this
this := EnumTest{}
return &this
}
// GetEnumString returns the EnumString field value if set, zero value otherwise.
@@ -50,14 +49,13 @@ func (o *EnumTest) GetEnumString() string {
return *o.EnumString
}
// GetEnumStringOk returns a tuple with the EnumString field value if set, zero value otherwise
// GetEnumStringOk returns a tuple with the EnumString field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EnumTest) GetEnumStringOk() (string, bool) {
func (o *EnumTest) GetEnumStringOk() (*string, bool) {
if o == nil || o.EnumString == nil {
var ret string
return ret, false
return nil, false
}
return *o.EnumString, true
return o.EnumString, true
}
// HasEnumString returns a boolean if a field has been set.
@@ -76,7 +74,7 @@ func (o *EnumTest) SetEnumString(v string) {
// GetEnumStringRequired returns the EnumStringRequired field value
func (o *EnumTest) GetEnumStringRequired() string {
if o == nil {
if o == nil {
var ret string
return ret
}
@@ -84,6 +82,15 @@ func (o *EnumTest) GetEnumStringRequired() string {
return o.EnumStringRequired
}
// GetEnumStringRequiredOk returns a tuple with the EnumStringRequired field value
// and a boolean to check if the value has been set.
func (o *EnumTest) GetEnumStringRequiredOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.EnumStringRequired, true
}
// SetEnumStringRequired sets field value
func (o *EnumTest) SetEnumStringRequired(v string) {
o.EnumStringRequired = v
@@ -98,14 +105,13 @@ func (o *EnumTest) GetEnumInteger() int32 {
return *o.EnumInteger
}
// GetEnumIntegerOk returns a tuple with the EnumInteger field value if set, zero value otherwise
// GetEnumIntegerOk returns a tuple with the EnumInteger field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EnumTest) GetEnumIntegerOk() (int32, bool) {
func (o *EnumTest) GetEnumIntegerOk() (*int32, bool) {
if o == nil || o.EnumInteger == nil {
var ret int32
return ret, false
return nil, false
}
return *o.EnumInteger, true
return o.EnumInteger, true
}
// HasEnumInteger returns a boolean if a field has been set.
@@ -131,14 +137,13 @@ func (o *EnumTest) GetEnumNumber() float64 {
return *o.EnumNumber
}
// GetEnumNumberOk returns a tuple with the EnumNumber field value if set, zero value otherwise
// GetEnumNumberOk returns a tuple with the EnumNumber field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EnumTest) GetEnumNumberOk() (float64, bool) {
func (o *EnumTest) GetEnumNumberOk() (*float64, bool) {
if o == nil || o.EnumNumber == nil {
var ret float64
return ret, false
return nil, false
}
return *o.EnumNumber, true
return o.EnumNumber, true
}
// HasEnumNumber returns a boolean if a field has been set.
@@ -164,14 +169,13 @@ func (o *EnumTest) GetOuterEnum() OuterEnum {
return *o.OuterEnum
}
// GetOuterEnumOk returns a tuple with the OuterEnum field value if set, zero value otherwise
// GetOuterEnumOk returns a tuple with the OuterEnum field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EnumTest) GetOuterEnumOk() (OuterEnum, bool) {
func (o *EnumTest) GetOuterEnumOk() (*OuterEnum, bool) {
if o == nil || o.OuterEnum == nil {
var ret OuterEnum
return ret, false
return nil, false
}
return *o.OuterEnum, true
return o.OuterEnum, true
}
// HasOuterEnum returns a boolean if a field has been set.
@@ -188,25 +192,58 @@ func (o *EnumTest) SetOuterEnum(v OuterEnum) {
o.OuterEnum = &v
}
func (o EnumTest) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.EnumString != nil {
toSerialize["enum_string"] = o.EnumString
}
if true {
toSerialize["enum_string_required"] = o.EnumStringRequired
}
if o.EnumInteger != nil {
toSerialize["enum_integer"] = o.EnumInteger
}
if o.EnumNumber != nil {
toSerialize["enum_number"] = o.EnumNumber
}
if o.OuterEnum != nil {
toSerialize["outerEnum"] = o.OuterEnum
}
return json.Marshal(toSerialize)
}
type NullableEnumTest struct {
Value EnumTest
ExplicitNull bool
value *EnumTest
isSet bool
}
func (v NullableEnumTest) Get() *EnumTest {
return v.value
}
func (v *NullableEnumTest) Set(val *EnumTest) {
v.value = val
v.isSet = true
}
func (v NullableEnumTest) IsSet() bool {
return v.isSet
}
func (v *NullableEnumTest) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableEnumTest(val *EnumTest) *NullableEnumTest {
return &NullableEnumTest{value: val, isSet: true}
}
func (v NullableEnumTest) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableEnumTest) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View File

@@ -10,7 +10,6 @@
package petstore
import (
"bytes"
"encoding/json"
)
@@ -25,16 +24,16 @@ type File struct {
// 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 NewFile() *File {
this := File{}
return &this
this := File{}
return &this
}
// NewFileWithDefaults instantiates a new File object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewFileWithDefaults() *File {
this := File{}
return &this
this := File{}
return &this
}
// GetSourceURI returns the SourceURI field value if set, zero value otherwise.
@@ -46,14 +45,13 @@ func (o *File) GetSourceURI() string {
return *o.SourceURI
}
// GetSourceURIOk returns a tuple with the SourceURI field value if set, zero value otherwise
// GetSourceURIOk returns a tuple with the SourceURI field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *File) GetSourceURIOk() (string, bool) {
func (o *File) GetSourceURIOk() (*string, bool) {
if o == nil || o.SourceURI == nil {
var ret string
return ret, false
return nil, false
}
return *o.SourceURI, true
return o.SourceURI, true
}
// HasSourceURI returns a boolean if a field has been set.
@@ -70,25 +68,46 @@ func (o *File) SetSourceURI(v string) {
o.SourceURI = &v
}
func (o File) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.SourceURI != nil {
toSerialize["sourceURI"] = o.SourceURI
}
return json.Marshal(toSerialize)
}
type NullableFile struct {
Value File
ExplicitNull bool
value *File
isSet bool
}
func (v NullableFile) Get() *File {
return v.value
}
func (v *NullableFile) Set(val *File) {
v.value = val
v.isSet = true
}
func (v NullableFile) IsSet() bool {
return v.isSet
}
func (v *NullableFile) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableFile(val *File) *NullableFile {
return &NullableFile{value: val, isSet: true}
}
func (v NullableFile) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableFile) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View File

@@ -10,7 +10,6 @@
package petstore
import (
"bytes"
"encoding/json"
)
@@ -25,16 +24,16 @@ type FileSchemaTestClass struct {
// 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 NewFileSchemaTestClass() *FileSchemaTestClass {
this := FileSchemaTestClass{}
return &this
this := FileSchemaTestClass{}
return &this
}
// NewFileSchemaTestClassWithDefaults instantiates a new FileSchemaTestClass object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewFileSchemaTestClassWithDefaults() *FileSchemaTestClass {
this := FileSchemaTestClass{}
return &this
this := FileSchemaTestClass{}
return &this
}
// GetFile returns the File field value if set, zero value otherwise.
@@ -46,14 +45,13 @@ func (o *FileSchemaTestClass) GetFile() File {
return *o.File
}
// GetFileOk returns a tuple with the File field value if set, zero value otherwise
// GetFileOk returns a tuple with the File field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FileSchemaTestClass) GetFileOk() (File, bool) {
func (o *FileSchemaTestClass) GetFileOk() (*File, bool) {
if o == nil || o.File == nil {
var ret File
return ret, false
return nil, false
}
return *o.File, true
return o.File, true
}
// HasFile returns a boolean if a field has been set.
@@ -79,14 +77,13 @@ func (o *FileSchemaTestClass) GetFiles() []File {
return *o.Files
}
// GetFilesOk returns a tuple with the Files field value if set, zero value otherwise
// GetFilesOk returns a tuple with the Files field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FileSchemaTestClass) GetFilesOk() ([]File, bool) {
func (o *FileSchemaTestClass) GetFilesOk() (*[]File, bool) {
if o == nil || o.Files == nil {
var ret []File
return ret, false
return nil, false
}
return *o.Files, true
return o.Files, true
}
// HasFiles returns a boolean if a field has been set.
@@ -103,25 +100,49 @@ func (o *FileSchemaTestClass) SetFiles(v []File) {
o.Files = &v
}
func (o FileSchemaTestClass) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.File != nil {
toSerialize["file"] = o.File
}
if o.Files != nil {
toSerialize["files"] = o.Files
}
return json.Marshal(toSerialize)
}
type NullableFileSchemaTestClass struct {
Value FileSchemaTestClass
ExplicitNull bool
value *FileSchemaTestClass
isSet bool
}
func (v NullableFileSchemaTestClass) Get() *FileSchemaTestClass {
return v.value
}
func (v *NullableFileSchemaTestClass) Set(val *FileSchemaTestClass) {
v.value = val
v.isSet = true
}
func (v NullableFileSchemaTestClass) IsSet() bool {
return v.isSet
}
func (v *NullableFileSchemaTestClass) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableFileSchemaTestClass(val *FileSchemaTestClass) *NullableFileSchemaTestClass {
return &NullableFileSchemaTestClass{value: val, isSet: true}
}
func (v NullableFileSchemaTestClass) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableFileSchemaTestClass) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View File

@@ -10,7 +10,6 @@
package petstore
import (
"bytes"
"encoding/json"
"os"
"time"
@@ -39,20 +38,20 @@ type FormatTest struct {
// 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 NewFormatTest(number float32, byte_ string, date string, password string, ) *FormatTest {
this := FormatTest{}
this.Number = number
this.Byte = byte_
this.Date = date
this.Password = password
return &this
this := FormatTest{}
this.Number = number
this.Byte = byte_
this.Date = date
this.Password = password
return &this
}
// NewFormatTestWithDefaults instantiates a new FormatTest object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewFormatTestWithDefaults() *FormatTest {
this := FormatTest{}
return &this
this := FormatTest{}
return &this
}
// GetInteger returns the Integer field value if set, zero value otherwise.
@@ -64,14 +63,13 @@ func (o *FormatTest) GetInteger() int32 {
return *o.Integer
}
// GetIntegerOk returns a tuple with the Integer field value if set, zero value otherwise
// GetIntegerOk returns a tuple with the Integer field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FormatTest) GetIntegerOk() (int32, bool) {
func (o *FormatTest) GetIntegerOk() (*int32, bool) {
if o == nil || o.Integer == nil {
var ret int32
return ret, false
return nil, false
}
return *o.Integer, true
return o.Integer, true
}
// HasInteger returns a boolean if a field has been set.
@@ -97,14 +95,13 @@ func (o *FormatTest) GetInt32() int32 {
return *o.Int32
}
// GetInt32Ok returns a tuple with the Int32 field value if set, zero value otherwise
// GetInt32Ok returns a tuple with the Int32 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FormatTest) GetInt32Ok() (int32, bool) {
func (o *FormatTest) GetInt32Ok() (*int32, bool) {
if o == nil || o.Int32 == nil {
var ret int32
return ret, false
return nil, false
}
return *o.Int32, true
return o.Int32, true
}
// HasInt32 returns a boolean if a field has been set.
@@ -130,14 +127,13 @@ func (o *FormatTest) GetInt64() int64 {
return *o.Int64
}
// GetInt64Ok returns a tuple with the Int64 field value if set, zero value otherwise
// GetInt64Ok returns a tuple with the Int64 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FormatTest) GetInt64Ok() (int64, bool) {
func (o *FormatTest) GetInt64Ok() (*int64, bool) {
if o == nil || o.Int64 == nil {
var ret int64
return ret, false
return nil, false
}
return *o.Int64, true
return o.Int64, true
}
// HasInt64 returns a boolean if a field has been set.
@@ -156,7 +152,7 @@ func (o *FormatTest) SetInt64(v int64) {
// GetNumber returns the Number field value
func (o *FormatTest) GetNumber() float32 {
if o == nil {
if o == nil {
var ret float32
return ret
}
@@ -164,6 +160,15 @@ func (o *FormatTest) GetNumber() float32 {
return o.Number
}
// GetNumberOk returns a tuple with the Number field value
// and a boolean to check if the value has been set.
func (o *FormatTest) GetNumberOk() (*float32, bool) {
if o == nil {
return nil, false
}
return &o.Number, true
}
// SetNumber sets field value
func (o *FormatTest) SetNumber(v float32) {
o.Number = v
@@ -178,14 +183,13 @@ func (o *FormatTest) GetFloat() float32 {
return *o.Float
}
// GetFloatOk returns a tuple with the Float field value if set, zero value otherwise
// GetFloatOk returns a tuple with the Float field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FormatTest) GetFloatOk() (float32, bool) {
func (o *FormatTest) GetFloatOk() (*float32, bool) {
if o == nil || o.Float == nil {
var ret float32
return ret, false
return nil, false
}
return *o.Float, true
return o.Float, true
}
// HasFloat returns a boolean if a field has been set.
@@ -211,14 +215,13 @@ func (o *FormatTest) GetDouble() float64 {
return *o.Double
}
// GetDoubleOk returns a tuple with the Double field value if set, zero value otherwise
// GetDoubleOk returns a tuple with the Double field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FormatTest) GetDoubleOk() (float64, bool) {
func (o *FormatTest) GetDoubleOk() (*float64, bool) {
if o == nil || o.Double == nil {
var ret float64
return ret, false
return nil, false
}
return *o.Double, true
return o.Double, true
}
// HasDouble returns a boolean if a field has been set.
@@ -244,14 +247,13 @@ func (o *FormatTest) GetString() string {
return *o.String
}
// GetStringOk returns a tuple with the String field value if set, zero value otherwise
// GetStringOk returns a tuple with the String field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FormatTest) GetStringOk() (string, bool) {
func (o *FormatTest) GetStringOk() (*string, bool) {
if o == nil || o.String == nil {
var ret string
return ret, false
return nil, false
}
return *o.String, true
return o.String, true
}
// HasString returns a boolean if a field has been set.
@@ -270,7 +272,7 @@ func (o *FormatTest) SetString(v string) {
// GetByte returns the Byte field value
func (o *FormatTest) GetByte() string {
if o == nil {
if o == nil {
var ret string
return ret
}
@@ -278,6 +280,15 @@ func (o *FormatTest) GetByte() string {
return o.Byte
}
// GetByteOk returns a tuple with the Byte field value
// and a boolean to check if the value has been set.
func (o *FormatTest) GetByteOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Byte, true
}
// SetByte sets field value
func (o *FormatTest) SetByte(v string) {
o.Byte = v
@@ -292,14 +303,13 @@ func (o *FormatTest) GetBinary() *os.File {
return *o.Binary
}
// GetBinaryOk returns a tuple with the Binary field value if set, zero value otherwise
// GetBinaryOk returns a tuple with the Binary field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FormatTest) GetBinaryOk() (*os.File, bool) {
func (o *FormatTest) GetBinaryOk() (**os.File, bool) {
if o == nil || o.Binary == nil {
var ret *os.File
return ret, false
return nil, false
}
return *o.Binary, true
return o.Binary, true
}
// HasBinary returns a boolean if a field has been set.
@@ -318,7 +328,7 @@ func (o *FormatTest) SetBinary(v *os.File) {
// GetDate returns the Date field value
func (o *FormatTest) GetDate() string {
if o == nil {
if o == nil {
var ret string
return ret
}
@@ -326,6 +336,15 @@ func (o *FormatTest) GetDate() string {
return o.Date
}
// GetDateOk returns a tuple with the Date field value
// and a boolean to check if the value has been set.
func (o *FormatTest) GetDateOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Date, true
}
// SetDate sets field value
func (o *FormatTest) SetDate(v string) {
o.Date = v
@@ -340,14 +359,13 @@ func (o *FormatTest) GetDateTime() time.Time {
return *o.DateTime
}
// GetDateTimeOk returns a tuple with the DateTime field value if set, zero value otherwise
// GetDateTimeOk returns a tuple with the DateTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FormatTest) GetDateTimeOk() (time.Time, bool) {
func (o *FormatTest) GetDateTimeOk() (*time.Time, bool) {
if o == nil || o.DateTime == nil {
var ret time.Time
return ret, false
return nil, false
}
return *o.DateTime, true
return o.DateTime, true
}
// HasDateTime returns a boolean if a field has been set.
@@ -373,14 +391,13 @@ func (o *FormatTest) GetUuid() string {
return *o.Uuid
}
// GetUuidOk returns a tuple with the Uuid field value if set, zero value otherwise
// GetUuidOk returns a tuple with the Uuid field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FormatTest) GetUuidOk() (string, bool) {
func (o *FormatTest) GetUuidOk() (*string, bool) {
if o == nil || o.Uuid == nil {
var ret string
return ret, false
return nil, false
}
return *o.Uuid, true
return o.Uuid, true
}
// HasUuid returns a boolean if a field has been set.
@@ -399,7 +416,7 @@ func (o *FormatTest) SetUuid(v string) {
// GetPassword returns the Password field value
func (o *FormatTest) GetPassword() string {
if o == nil {
if o == nil {
var ret string
return ret
}
@@ -407,6 +424,15 @@ func (o *FormatTest) GetPassword() string {
return o.Password
}
// GetPasswordOk returns a tuple with the Password field value
// and a boolean to check if the value has been set.
func (o *FormatTest) GetPasswordOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Password, true
}
// SetPassword sets field value
func (o *FormatTest) SetPassword(v string) {
o.Password = v
@@ -421,14 +447,13 @@ func (o *FormatTest) GetBigDecimal() float64 {
return *o.BigDecimal
}
// GetBigDecimalOk returns a tuple with the BigDecimal field value if set, zero value otherwise
// GetBigDecimalOk returns a tuple with the BigDecimal field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FormatTest) GetBigDecimalOk() (float64, bool) {
func (o *FormatTest) GetBigDecimalOk() (*float64, bool) {
if o == nil || o.BigDecimal == nil {
var ret float64
return ret, false
return nil, false
}
return *o.BigDecimal, true
return o.BigDecimal, true
}
// HasBigDecimal returns a boolean if a field has been set.
@@ -445,25 +470,85 @@ func (o *FormatTest) SetBigDecimal(v float64) {
o.BigDecimal = &v
}
func (o FormatTest) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.Integer != nil {
toSerialize["integer"] = o.Integer
}
if o.Int32 != nil {
toSerialize["int32"] = o.Int32
}
if o.Int64 != nil {
toSerialize["int64"] = o.Int64
}
if true {
toSerialize["number"] = o.Number
}
if o.Float != nil {
toSerialize["float"] = o.Float
}
if o.Double != nil {
toSerialize["double"] = o.Double
}
if o.String != nil {
toSerialize["string"] = o.String
}
if true {
toSerialize["byte"] = o.Byte
}
if o.Binary != nil {
toSerialize["binary"] = o.Binary
}
if true {
toSerialize["date"] = o.Date
}
if o.DateTime != nil {
toSerialize["dateTime"] = o.DateTime
}
if o.Uuid != nil {
toSerialize["uuid"] = o.Uuid
}
if true {
toSerialize["password"] = o.Password
}
if o.BigDecimal != nil {
toSerialize["BigDecimal"] = o.BigDecimal
}
return json.Marshal(toSerialize)
}
type NullableFormatTest struct {
Value FormatTest
ExplicitNull bool
value *FormatTest
isSet bool
}
func (v NullableFormatTest) Get() *FormatTest {
return v.value
}
func (v *NullableFormatTest) Set(val *FormatTest) {
v.value = val
v.isSet = true
}
func (v NullableFormatTest) IsSet() bool {
return v.isSet
}
func (v *NullableFormatTest) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableFormatTest(val *FormatTest) *NullableFormatTest {
return &NullableFormatTest{value: val, isSet: true}
}
func (v NullableFormatTest) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableFormatTest) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View File

@@ -10,7 +10,6 @@
package petstore
import (
"bytes"
"encoding/json"
)
@@ -25,16 +24,16 @@ type HasOnlyReadOnly struct {
// 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 NewHasOnlyReadOnly() *HasOnlyReadOnly {
this := HasOnlyReadOnly{}
return &this
this := HasOnlyReadOnly{}
return &this
}
// NewHasOnlyReadOnlyWithDefaults instantiates a new HasOnlyReadOnly object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewHasOnlyReadOnlyWithDefaults() *HasOnlyReadOnly {
this := HasOnlyReadOnly{}
return &this
this := HasOnlyReadOnly{}
return &this
}
// GetBar returns the Bar field value if set, zero value otherwise.
@@ -46,14 +45,13 @@ func (o *HasOnlyReadOnly) GetBar() string {
return *o.Bar
}
// GetBarOk returns a tuple with the Bar field value if set, zero value otherwise
// GetBarOk returns a tuple with the Bar field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *HasOnlyReadOnly) GetBarOk() (string, bool) {
func (o *HasOnlyReadOnly) GetBarOk() (*string, bool) {
if o == nil || o.Bar == nil {
var ret string
return ret, false
return nil, false
}
return *o.Bar, true
return o.Bar, true
}
// HasBar returns a boolean if a field has been set.
@@ -79,14 +77,13 @@ func (o *HasOnlyReadOnly) GetFoo() string {
return *o.Foo
}
// GetFooOk returns a tuple with the Foo field value if set, zero value otherwise
// GetFooOk returns a tuple with the Foo field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *HasOnlyReadOnly) GetFooOk() (string, bool) {
func (o *HasOnlyReadOnly) GetFooOk() (*string, bool) {
if o == nil || o.Foo == nil {
var ret string
return ret, false
return nil, false
}
return *o.Foo, true
return o.Foo, true
}
// HasFoo returns a boolean if a field has been set.
@@ -103,25 +100,49 @@ func (o *HasOnlyReadOnly) SetFoo(v string) {
o.Foo = &v
}
func (o HasOnlyReadOnly) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.Bar != nil {
toSerialize["bar"] = o.Bar
}
if o.Foo != nil {
toSerialize["foo"] = o.Foo
}
return json.Marshal(toSerialize)
}
type NullableHasOnlyReadOnly struct {
Value HasOnlyReadOnly
ExplicitNull bool
value *HasOnlyReadOnly
isSet bool
}
func (v NullableHasOnlyReadOnly) Get() *HasOnlyReadOnly {
return v.value
}
func (v *NullableHasOnlyReadOnly) Set(val *HasOnlyReadOnly) {
v.value = val
v.isSet = true
}
func (v NullableHasOnlyReadOnly) IsSet() bool {
return v.isSet
}
func (v *NullableHasOnlyReadOnly) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableHasOnlyReadOnly(val *HasOnlyReadOnly) *NullableHasOnlyReadOnly {
return &NullableHasOnlyReadOnly{value: val, isSet: true}
}
func (v NullableHasOnlyReadOnly) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableHasOnlyReadOnly) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View File

@@ -10,7 +10,6 @@
package petstore
import (
"bytes"
"encoding/json"
)
@@ -24,16 +23,16 @@ type List struct {
// 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 NewList() *List {
this := List{}
return &this
this := List{}
return &this
}
// NewListWithDefaults instantiates a new List object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewListWithDefaults() *List {
this := List{}
return &this
this := List{}
return &this
}
// GetVar123List returns the Var123List field value if set, zero value otherwise.
@@ -45,14 +44,13 @@ func (o *List) GetVar123List() string {
return *o.Var123List
}
// GetVar123ListOk returns a tuple with the Var123List field value if set, zero value otherwise
// GetVar123ListOk returns a tuple with the Var123List field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *List) GetVar123ListOk() (string, bool) {
func (o *List) GetVar123ListOk() (*string, bool) {
if o == nil || o.Var123List == nil {
var ret string
return ret, false
return nil, false
}
return *o.Var123List, true
return o.Var123List, true
}
// HasVar123List returns a boolean if a field has been set.
@@ -69,25 +67,46 @@ func (o *List) SetVar123List(v string) {
o.Var123List = &v
}
func (o List) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.Var123List != nil {
toSerialize["123-list"] = o.Var123List
}
return json.Marshal(toSerialize)
}
type NullableList struct {
Value List
ExplicitNull bool
value *List
isSet bool
}
func (v NullableList) Get() *List {
return v.value
}
func (v *NullableList) Set(val *List) {
v.value = val
v.isSet = true
}
func (v NullableList) IsSet() bool {
return v.isSet
}
func (v *NullableList) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableList(val *List) *NullableList {
return &NullableList{value: val, isSet: true}
}
func (v NullableList) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableList) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View File

@@ -10,7 +10,6 @@
package petstore
import (
"bytes"
"encoding/json"
)
@@ -27,16 +26,16 @@ type MapTest struct {
// 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 NewMapTest() *MapTest {
this := MapTest{}
return &this
this := MapTest{}
return &this
}
// NewMapTestWithDefaults instantiates a new MapTest object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewMapTestWithDefaults() *MapTest {
this := MapTest{}
return &this
this := MapTest{}
return &this
}
// GetMapMapOfString returns the MapMapOfString field value if set, zero value otherwise.
@@ -48,14 +47,13 @@ func (o *MapTest) GetMapMapOfString() map[string]map[string]string {
return *o.MapMapOfString
}
// GetMapMapOfStringOk returns a tuple with the MapMapOfString field value if set, zero value otherwise
// GetMapMapOfStringOk returns a tuple with the MapMapOfString field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MapTest) GetMapMapOfStringOk() (map[string]map[string]string, bool) {
func (o *MapTest) GetMapMapOfStringOk() (*map[string]map[string]string, bool) {
if o == nil || o.MapMapOfString == nil {
var ret map[string]map[string]string
return ret, false
return nil, false
}
return *o.MapMapOfString, true
return o.MapMapOfString, true
}
// HasMapMapOfString returns a boolean if a field has been set.
@@ -81,14 +79,13 @@ func (o *MapTest) GetMapOfEnumString() map[string]string {
return *o.MapOfEnumString
}
// GetMapOfEnumStringOk returns a tuple with the MapOfEnumString field value if set, zero value otherwise
// GetMapOfEnumStringOk returns a tuple with the MapOfEnumString field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MapTest) GetMapOfEnumStringOk() (map[string]string, bool) {
func (o *MapTest) GetMapOfEnumStringOk() (*map[string]string, bool) {
if o == nil || o.MapOfEnumString == nil {
var ret map[string]string
return ret, false
return nil, false
}
return *o.MapOfEnumString, true
return o.MapOfEnumString, true
}
// HasMapOfEnumString returns a boolean if a field has been set.
@@ -114,14 +111,13 @@ func (o *MapTest) GetDirectMap() map[string]bool {
return *o.DirectMap
}
// GetDirectMapOk returns a tuple with the DirectMap field value if set, zero value otherwise
// GetDirectMapOk returns a tuple with the DirectMap field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MapTest) GetDirectMapOk() (map[string]bool, bool) {
func (o *MapTest) GetDirectMapOk() (*map[string]bool, bool) {
if o == nil || o.DirectMap == nil {
var ret map[string]bool
return ret, false
return nil, false
}
return *o.DirectMap, true
return o.DirectMap, true
}
// HasDirectMap returns a boolean if a field has been set.
@@ -147,14 +143,13 @@ func (o *MapTest) GetIndirectMap() map[string]bool {
return *o.IndirectMap
}
// GetIndirectMapOk returns a tuple with the IndirectMap field value if set, zero value otherwise
// GetIndirectMapOk returns a tuple with the IndirectMap field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MapTest) GetIndirectMapOk() (map[string]bool, bool) {
func (o *MapTest) GetIndirectMapOk() (*map[string]bool, bool) {
if o == nil || o.IndirectMap == nil {
var ret map[string]bool
return ret, false
return nil, false
}
return *o.IndirectMap, true
return o.IndirectMap, true
}
// HasIndirectMap returns a boolean if a field has been set.
@@ -171,25 +166,55 @@ func (o *MapTest) SetIndirectMap(v map[string]bool) {
o.IndirectMap = &v
}
func (o MapTest) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.MapMapOfString != nil {
toSerialize["map_map_of_string"] = o.MapMapOfString
}
if o.MapOfEnumString != nil {
toSerialize["map_of_enum_string"] = o.MapOfEnumString
}
if o.DirectMap != nil {
toSerialize["direct_map"] = o.DirectMap
}
if o.IndirectMap != nil {
toSerialize["indirect_map"] = o.IndirectMap
}
return json.Marshal(toSerialize)
}
type NullableMapTest struct {
Value MapTest
ExplicitNull bool
value *MapTest
isSet bool
}
func (v NullableMapTest) Get() *MapTest {
return v.value
}
func (v *NullableMapTest) Set(val *MapTest) {
v.value = val
v.isSet = true
}
func (v NullableMapTest) IsSet() bool {
return v.isSet
}
func (v *NullableMapTest) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableMapTest(val *MapTest) *NullableMapTest {
return &NullableMapTest{value: val, isSet: true}
}
func (v NullableMapTest) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableMapTest) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View File

@@ -10,7 +10,6 @@
package petstore
import (
"bytes"
"encoding/json"
"time"
)
@@ -27,16 +26,16 @@ type MixedPropertiesAndAdditionalPropertiesClass struct {
// 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 NewMixedPropertiesAndAdditionalPropertiesClass() *MixedPropertiesAndAdditionalPropertiesClass {
this := MixedPropertiesAndAdditionalPropertiesClass{}
return &this
this := MixedPropertiesAndAdditionalPropertiesClass{}
return &this
}
// NewMixedPropertiesAndAdditionalPropertiesClassWithDefaults instantiates a new MixedPropertiesAndAdditionalPropertiesClass object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewMixedPropertiesAndAdditionalPropertiesClassWithDefaults() *MixedPropertiesAndAdditionalPropertiesClass {
this := MixedPropertiesAndAdditionalPropertiesClass{}
return &this
this := MixedPropertiesAndAdditionalPropertiesClass{}
return &this
}
// GetUuid returns the Uuid field value if set, zero value otherwise.
@@ -48,14 +47,13 @@ func (o *MixedPropertiesAndAdditionalPropertiesClass) GetUuid() string {
return *o.Uuid
}
// GetUuidOk returns a tuple with the Uuid field value if set, zero value otherwise
// GetUuidOk returns a tuple with the Uuid field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MixedPropertiesAndAdditionalPropertiesClass) GetUuidOk() (string, bool) {
func (o *MixedPropertiesAndAdditionalPropertiesClass) GetUuidOk() (*string, bool) {
if o == nil || o.Uuid == nil {
var ret string
return ret, false
return nil, false
}
return *o.Uuid, true
return o.Uuid, true
}
// HasUuid returns a boolean if a field has been set.
@@ -81,14 +79,13 @@ func (o *MixedPropertiesAndAdditionalPropertiesClass) GetDateTime() time.Time {
return *o.DateTime
}
// GetDateTimeOk returns a tuple with the DateTime field value if set, zero value otherwise
// GetDateTimeOk returns a tuple with the DateTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MixedPropertiesAndAdditionalPropertiesClass) GetDateTimeOk() (time.Time, bool) {
func (o *MixedPropertiesAndAdditionalPropertiesClass) GetDateTimeOk() (*time.Time, bool) {
if o == nil || o.DateTime == nil {
var ret time.Time
return ret, false
return nil, false
}
return *o.DateTime, true
return o.DateTime, true
}
// HasDateTime returns a boolean if a field has been set.
@@ -114,14 +111,13 @@ func (o *MixedPropertiesAndAdditionalPropertiesClass) GetMap() map[string]Animal
return *o.Map
}
// GetMapOk returns a tuple with the Map field value if set, zero value otherwise
// GetMapOk returns a tuple with the Map field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MixedPropertiesAndAdditionalPropertiesClass) GetMapOk() (map[string]Animal, bool) {
func (o *MixedPropertiesAndAdditionalPropertiesClass) GetMapOk() (*map[string]Animal, bool) {
if o == nil || o.Map == nil {
var ret map[string]Animal
return ret, false
return nil, false
}
return *o.Map, true
return o.Map, true
}
// HasMap returns a boolean if a field has been set.
@@ -138,25 +134,52 @@ func (o *MixedPropertiesAndAdditionalPropertiesClass) SetMap(v map[string]Animal
o.Map = &v
}
func (o MixedPropertiesAndAdditionalPropertiesClass) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.Uuid != nil {
toSerialize["uuid"] = o.Uuid
}
if o.DateTime != nil {
toSerialize["dateTime"] = o.DateTime
}
if o.Map != nil {
toSerialize["map"] = o.Map
}
return json.Marshal(toSerialize)
}
type NullableMixedPropertiesAndAdditionalPropertiesClass struct {
Value MixedPropertiesAndAdditionalPropertiesClass
ExplicitNull bool
value *MixedPropertiesAndAdditionalPropertiesClass
isSet bool
}
func (v NullableMixedPropertiesAndAdditionalPropertiesClass) Get() *MixedPropertiesAndAdditionalPropertiesClass {
return v.value
}
func (v *NullableMixedPropertiesAndAdditionalPropertiesClass) Set(val *MixedPropertiesAndAdditionalPropertiesClass) {
v.value = val
v.isSet = true
}
func (v NullableMixedPropertiesAndAdditionalPropertiesClass) IsSet() bool {
return v.isSet
}
func (v *NullableMixedPropertiesAndAdditionalPropertiesClass) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableMixedPropertiesAndAdditionalPropertiesClass(val *MixedPropertiesAndAdditionalPropertiesClass) *NullableMixedPropertiesAndAdditionalPropertiesClass {
return &NullableMixedPropertiesAndAdditionalPropertiesClass{value: val, isSet: true}
}
func (v NullableMixedPropertiesAndAdditionalPropertiesClass) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableMixedPropertiesAndAdditionalPropertiesClass) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View File

@@ -10,7 +10,6 @@
package petstore
import (
"bytes"
"encoding/json"
)
@@ -27,22 +26,22 @@ type Name struct {
// 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 NewName(name int32, ) *Name {
this := Name{}
this.Name = name
return &this
this := Name{}
this.Name = name
return &this
}
// NewNameWithDefaults instantiates a new Name object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewNameWithDefaults() *Name {
this := Name{}
return &this
this := Name{}
return &this
}
// GetName returns the Name field value
func (o *Name) GetName() int32 {
if o == nil {
if o == nil {
var ret int32
return ret
}
@@ -50,6 +49,15 @@ func (o *Name) GetName() int32 {
return o.Name
}
// GetNameOk returns a tuple with the Name field value
// and a boolean to check if the value has been set.
func (o *Name) GetNameOk() (*int32, bool) {
if o == nil {
return nil, false
}
return &o.Name, true
}
// SetName sets field value
func (o *Name) SetName(v int32) {
o.Name = v
@@ -64,14 +72,13 @@ func (o *Name) GetSnakeCase() int32 {
return *o.SnakeCase
}
// GetSnakeCaseOk returns a tuple with the SnakeCase field value if set, zero value otherwise
// GetSnakeCaseOk returns a tuple with the SnakeCase field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Name) GetSnakeCaseOk() (int32, bool) {
func (o *Name) GetSnakeCaseOk() (*int32, bool) {
if o == nil || o.SnakeCase == nil {
var ret int32
return ret, false
return nil, false
}
return *o.SnakeCase, true
return o.SnakeCase, true
}
// HasSnakeCase returns a boolean if a field has been set.
@@ -97,14 +104,13 @@ func (o *Name) GetProperty() string {
return *o.Property
}
// GetPropertyOk returns a tuple with the Property field value if set, zero value otherwise
// GetPropertyOk returns a tuple with the Property field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Name) GetPropertyOk() (string, bool) {
func (o *Name) GetPropertyOk() (*string, bool) {
if o == nil || o.Property == nil {
var ret string
return ret, false
return nil, false
}
return *o.Property, true
return o.Property, true
}
// HasProperty returns a boolean if a field has been set.
@@ -130,14 +136,13 @@ func (o *Name) GetVar123Number() int32 {
return *o.Var123Number
}
// GetVar123NumberOk returns a tuple with the Var123Number field value if set, zero value otherwise
// GetVar123NumberOk returns a tuple with the Var123Number field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Name) GetVar123NumberOk() (int32, bool) {
func (o *Name) GetVar123NumberOk() (*int32, bool) {
if o == nil || o.Var123Number == nil {
var ret int32
return ret, false
return nil, false
}
return *o.Var123Number, true
return o.Var123Number, true
}
// HasVar123Number returns a boolean if a field has been set.
@@ -154,25 +159,55 @@ func (o *Name) SetVar123Number(v int32) {
o.Var123Number = &v
}
func (o Name) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if true {
toSerialize["name"] = o.Name
}
if o.SnakeCase != nil {
toSerialize["snake_case"] = o.SnakeCase
}
if o.Property != nil {
toSerialize["property"] = o.Property
}
if o.Var123Number != nil {
toSerialize["123Number"] = o.Var123Number
}
return json.Marshal(toSerialize)
}
type NullableName struct {
Value Name
ExplicitNull bool
value *Name
isSet bool
}
func (v NullableName) Get() *Name {
return v.value
}
func (v *NullableName) Set(val *Name) {
v.value = val
v.isSet = true
}
func (v NullableName) IsSet() bool {
return v.isSet
}
func (v *NullableName) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableName(val *Name) *NullableName {
return &NullableName{value: val, isSet: true}
}
func (v NullableName) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableName) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View File

@@ -10,7 +10,6 @@
package petstore
import (
"bytes"
"encoding/json"
)
@@ -24,16 +23,16 @@ type NumberOnly struct {
// 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 NewNumberOnly() *NumberOnly {
this := NumberOnly{}
return &this
this := NumberOnly{}
return &this
}
// NewNumberOnlyWithDefaults instantiates a new NumberOnly object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewNumberOnlyWithDefaults() *NumberOnly {
this := NumberOnly{}
return &this
this := NumberOnly{}
return &this
}
// GetJustNumber returns the JustNumber field value if set, zero value otherwise.
@@ -45,14 +44,13 @@ func (o *NumberOnly) GetJustNumber() float32 {
return *o.JustNumber
}
// GetJustNumberOk returns a tuple with the JustNumber field value if set, zero value otherwise
// GetJustNumberOk returns a tuple with the JustNumber field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *NumberOnly) GetJustNumberOk() (float32, bool) {
func (o *NumberOnly) GetJustNumberOk() (*float32, bool) {
if o == nil || o.JustNumber == nil {
var ret float32
return ret, false
return nil, false
}
return *o.JustNumber, true
return o.JustNumber, true
}
// HasJustNumber returns a boolean if a field has been set.
@@ -69,25 +67,46 @@ func (o *NumberOnly) SetJustNumber(v float32) {
o.JustNumber = &v
}
func (o NumberOnly) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.JustNumber != nil {
toSerialize["JustNumber"] = o.JustNumber
}
return json.Marshal(toSerialize)
}
type NullableNumberOnly struct {
Value NumberOnly
ExplicitNull bool
value *NumberOnly
isSet bool
}
func (v NullableNumberOnly) Get() *NumberOnly {
return v.value
}
func (v *NullableNumberOnly) Set(val *NumberOnly) {
v.value = val
v.isSet = true
}
func (v NullableNumberOnly) IsSet() bool {
return v.isSet
}
func (v *NullableNumberOnly) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableNumberOnly(val *NumberOnly) *NullableNumberOnly {
return &NullableNumberOnly{value: val, isSet: true}
}
func (v NullableNumberOnly) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableNumberOnly) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View File

@@ -10,7 +10,6 @@
package petstore
import (
"bytes"
"encoding/json"
"time"
)
@@ -31,20 +30,20 @@ type Order struct {
// 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 NewOrder() *Order {
this := Order{}
var complete bool = false
this.Complete = &complete
return &this
this := Order{}
var complete bool = false
this.Complete = &complete
return &this
}
// NewOrderWithDefaults instantiates a new Order object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewOrderWithDefaults() *Order {
this := Order{}
var complete bool = false
this.Complete = &complete
return &this
this := Order{}
var complete bool = false
this.Complete = &complete
return &this
}
// GetId returns the Id field value if set, zero value otherwise.
@@ -56,14 +55,13 @@ func (o *Order) GetId() int64 {
return *o.Id
}
// GetIdOk returns a tuple with the Id field value if set, zero value otherwise
// GetIdOk returns a tuple with the Id field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Order) GetIdOk() (int64, bool) {
func (o *Order) GetIdOk() (*int64, bool) {
if o == nil || o.Id == nil {
var ret int64
return ret, false
return nil, false
}
return *o.Id, true
return o.Id, true
}
// HasId returns a boolean if a field has been set.
@@ -89,14 +87,13 @@ func (o *Order) GetPetId() int64 {
return *o.PetId
}
// GetPetIdOk returns a tuple with the PetId field value if set, zero value otherwise
// GetPetIdOk returns a tuple with the PetId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Order) GetPetIdOk() (int64, bool) {
func (o *Order) GetPetIdOk() (*int64, bool) {
if o == nil || o.PetId == nil {
var ret int64
return ret, false
return nil, false
}
return *o.PetId, true
return o.PetId, true
}
// HasPetId returns a boolean if a field has been set.
@@ -122,14 +119,13 @@ func (o *Order) GetQuantity() int32 {
return *o.Quantity
}
// GetQuantityOk returns a tuple with the Quantity field value if set, zero value otherwise
// GetQuantityOk returns a tuple with the Quantity field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Order) GetQuantityOk() (int32, bool) {
func (o *Order) GetQuantityOk() (*int32, bool) {
if o == nil || o.Quantity == nil {
var ret int32
return ret, false
return nil, false
}
return *o.Quantity, true
return o.Quantity, true
}
// HasQuantity returns a boolean if a field has been set.
@@ -155,14 +151,13 @@ func (o *Order) GetShipDate() time.Time {
return *o.ShipDate
}
// GetShipDateOk returns a tuple with the ShipDate field value if set, zero value otherwise
// GetShipDateOk returns a tuple with the ShipDate field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Order) GetShipDateOk() (time.Time, bool) {
func (o *Order) GetShipDateOk() (*time.Time, bool) {
if o == nil || o.ShipDate == nil {
var ret time.Time
return ret, false
return nil, false
}
return *o.ShipDate, true
return o.ShipDate, true
}
// HasShipDate returns a boolean if a field has been set.
@@ -188,14 +183,13 @@ func (o *Order) GetStatus() string {
return *o.Status
}
// GetStatusOk returns a tuple with the Status field value if set, zero value otherwise
// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Order) GetStatusOk() (string, bool) {
func (o *Order) GetStatusOk() (*string, bool) {
if o == nil || o.Status == nil {
var ret string
return ret, false
return nil, false
}
return *o.Status, true
return o.Status, true
}
// HasStatus returns a boolean if a field has been set.
@@ -221,14 +215,13 @@ func (o *Order) GetComplete() bool {
return *o.Complete
}
// GetCompleteOk returns a tuple with the Complete field value if set, zero value otherwise
// GetCompleteOk returns a tuple with the Complete field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Order) GetCompleteOk() (bool, bool) {
func (o *Order) GetCompleteOk() (*bool, bool) {
if o == nil || o.Complete == nil {
var ret bool
return ret, false
return nil, false
}
return *o.Complete, true
return o.Complete, true
}
// HasComplete returns a boolean if a field has been set.
@@ -245,25 +238,61 @@ func (o *Order) SetComplete(v bool) {
o.Complete = &v
}
func (o Order) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.Id != nil {
toSerialize["id"] = o.Id
}
if o.PetId != nil {
toSerialize["petId"] = o.PetId
}
if o.Quantity != nil {
toSerialize["quantity"] = o.Quantity
}
if o.ShipDate != nil {
toSerialize["shipDate"] = o.ShipDate
}
if o.Status != nil {
toSerialize["status"] = o.Status
}
if o.Complete != nil {
toSerialize["complete"] = o.Complete
}
return json.Marshal(toSerialize)
}
type NullableOrder struct {
Value Order
ExplicitNull bool
value *Order
isSet bool
}
func (v NullableOrder) Get() *Order {
return v.value
}
func (v *NullableOrder) Set(val *Order) {
v.value = val
v.isSet = true
}
func (v NullableOrder) IsSet() bool {
return v.isSet
}
func (v *NullableOrder) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableOrder(val *Order) *NullableOrder {
return &NullableOrder{value: val, isSet: true}
}
func (v NullableOrder) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableOrder) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View File

@@ -10,7 +10,6 @@
package petstore
import (
"bytes"
"encoding/json"
)
@@ -26,16 +25,16 @@ type OuterComposite struct {
// 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 NewOuterComposite() *OuterComposite {
this := OuterComposite{}
return &this
this := OuterComposite{}
return &this
}
// NewOuterCompositeWithDefaults instantiates a new OuterComposite object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewOuterCompositeWithDefaults() *OuterComposite {
this := OuterComposite{}
return &this
this := OuterComposite{}
return &this
}
// GetMyNumber returns the MyNumber field value if set, zero value otherwise.
@@ -47,14 +46,13 @@ func (o *OuterComposite) GetMyNumber() float32 {
return *o.MyNumber
}
// GetMyNumberOk returns a tuple with the MyNumber field value if set, zero value otherwise
// GetMyNumberOk returns a tuple with the MyNumber field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *OuterComposite) GetMyNumberOk() (float32, bool) {
func (o *OuterComposite) GetMyNumberOk() (*float32, bool) {
if o == nil || o.MyNumber == nil {
var ret float32
return ret, false
return nil, false
}
return *o.MyNumber, true
return o.MyNumber, true
}
// HasMyNumber returns a boolean if a field has been set.
@@ -80,14 +78,13 @@ func (o *OuterComposite) GetMyString() string {
return *o.MyString
}
// GetMyStringOk returns a tuple with the MyString field value if set, zero value otherwise
// GetMyStringOk returns a tuple with the MyString field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *OuterComposite) GetMyStringOk() (string, bool) {
func (o *OuterComposite) GetMyStringOk() (*string, bool) {
if o == nil || o.MyString == nil {
var ret string
return ret, false
return nil, false
}
return *o.MyString, true
return o.MyString, true
}
// HasMyString returns a boolean if a field has been set.
@@ -113,14 +110,13 @@ func (o *OuterComposite) GetMyBoolean() bool {
return *o.MyBoolean
}
// GetMyBooleanOk returns a tuple with the MyBoolean field value if set, zero value otherwise
// GetMyBooleanOk returns a tuple with the MyBoolean field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *OuterComposite) GetMyBooleanOk() (bool, bool) {
func (o *OuterComposite) GetMyBooleanOk() (*bool, bool) {
if o == nil || o.MyBoolean == nil {
var ret bool
return ret, false
return nil, false
}
return *o.MyBoolean, true
return o.MyBoolean, true
}
// HasMyBoolean returns a boolean if a field has been set.
@@ -137,25 +133,52 @@ func (o *OuterComposite) SetMyBoolean(v bool) {
o.MyBoolean = &v
}
func (o OuterComposite) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.MyNumber != nil {
toSerialize["my_number"] = o.MyNumber
}
if o.MyString != nil {
toSerialize["my_string"] = o.MyString
}
if o.MyBoolean != nil {
toSerialize["my_boolean"] = o.MyBoolean
}
return json.Marshal(toSerialize)
}
type NullableOuterComposite struct {
Value OuterComposite
ExplicitNull bool
value *OuterComposite
isSet bool
}
func (v NullableOuterComposite) Get() *OuterComposite {
return v.value
}
func (v *NullableOuterComposite) Set(val *OuterComposite) {
v.value = val
v.isSet = true
}
func (v NullableOuterComposite) IsSet() bool {
return v.isSet
}
func (v *NullableOuterComposite) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableOuterComposite(val *OuterComposite) *NullableOuterComposite {
return &NullableOuterComposite{value: val, isSet: true}
}
func (v NullableOuterComposite) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableOuterComposite) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View File

@@ -10,7 +10,6 @@
package petstore
import (
"bytes"
"encoding/json"
)
@@ -31,24 +30,37 @@ func (v OuterEnum) Ptr() *OuterEnum {
type NullableOuterEnum struct {
Value OuterEnum
ExplicitNull bool
value *OuterEnum
isSet bool
}
func (v NullableOuterEnum) Get() *OuterEnum {
return v.value
}
func (v *NullableOuterEnum) Set(val *OuterEnum) {
v.value = val
v.isSet = true
}
func (v NullableOuterEnum) IsSet() bool {
return v.isSet
}
func (v *NullableOuterEnum) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableOuterEnum(val *OuterEnum) *NullableOuterEnum {
return &NullableOuterEnum{value: val, isSet: true}
}
func (v NullableOuterEnum) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableOuterEnum) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View File

@@ -10,7 +10,6 @@
package petstore
import (
"bytes"
"encoding/json"
)
@@ -30,18 +29,18 @@ type Pet struct {
// 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 NewPet(name string, photoUrls []string, ) *Pet {
this := Pet{}
this.Name = name
this.PhotoUrls = photoUrls
return &this
this := Pet{}
this.Name = name
this.PhotoUrls = photoUrls
return &this
}
// NewPetWithDefaults instantiates a new Pet object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewPetWithDefaults() *Pet {
this := Pet{}
return &this
this := Pet{}
return &this
}
// GetId returns the Id field value if set, zero value otherwise.
@@ -53,14 +52,13 @@ func (o *Pet) GetId() int64 {
return *o.Id
}
// GetIdOk returns a tuple with the Id field value if set, zero value otherwise
// GetIdOk returns a tuple with the Id field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Pet) GetIdOk() (int64, bool) {
func (o *Pet) GetIdOk() (*int64, bool) {
if o == nil || o.Id == nil {
var ret int64
return ret, false
return nil, false
}
return *o.Id, true
return o.Id, true
}
// HasId returns a boolean if a field has been set.
@@ -86,14 +84,13 @@ func (o *Pet) GetCategory() Category {
return *o.Category
}
// GetCategoryOk returns a tuple with the Category field value if set, zero value otherwise
// GetCategoryOk returns a tuple with the Category field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Pet) GetCategoryOk() (Category, bool) {
func (o *Pet) GetCategoryOk() (*Category, bool) {
if o == nil || o.Category == nil {
var ret Category
return ret, false
return nil, false
}
return *o.Category, true
return o.Category, true
}
// HasCategory returns a boolean if a field has been set.
@@ -112,7 +109,7 @@ func (o *Pet) SetCategory(v Category) {
// GetName returns the Name field value
func (o *Pet) GetName() string {
if o == nil {
if o == nil {
var ret string
return ret
}
@@ -120,6 +117,15 @@ func (o *Pet) GetName() string {
return o.Name
}
// GetNameOk returns a tuple with the Name field value
// and a boolean to check if the value has been set.
func (o *Pet) GetNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Name, true
}
// SetName sets field value
func (o *Pet) SetName(v string) {
o.Name = v
@@ -127,7 +133,7 @@ func (o *Pet) SetName(v string) {
// GetPhotoUrls returns the PhotoUrls field value
func (o *Pet) GetPhotoUrls() []string {
if o == nil {
if o == nil {
var ret []string
return ret
}
@@ -135,6 +141,15 @@ func (o *Pet) GetPhotoUrls() []string {
return o.PhotoUrls
}
// GetPhotoUrlsOk returns a tuple with the PhotoUrls field value
// and a boolean to check if the value has been set.
func (o *Pet) GetPhotoUrlsOk() (*[]string, bool) {
if o == nil {
return nil, false
}
return &o.PhotoUrls, true
}
// SetPhotoUrls sets field value
func (o *Pet) SetPhotoUrls(v []string) {
o.PhotoUrls = v
@@ -149,14 +164,13 @@ func (o *Pet) GetTags() []Tag {
return *o.Tags
}
// GetTagsOk returns a tuple with the Tags field value if set, zero value otherwise
// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Pet) GetTagsOk() ([]Tag, bool) {
func (o *Pet) GetTagsOk() (*[]Tag, bool) {
if o == nil || o.Tags == nil {
var ret []Tag
return ret, false
return nil, false
}
return *o.Tags, true
return o.Tags, true
}
// HasTags returns a boolean if a field has been set.
@@ -182,14 +196,13 @@ func (o *Pet) GetStatus() string {
return *o.Status
}
// GetStatusOk returns a tuple with the Status field value if set, zero value otherwise
// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Pet) GetStatusOk() (string, bool) {
func (o *Pet) GetStatusOk() (*string, bool) {
if o == nil || o.Status == nil {
var ret string
return ret, false
return nil, false
}
return *o.Status, true
return o.Status, true
}
// HasStatus returns a boolean if a field has been set.
@@ -206,25 +219,61 @@ func (o *Pet) SetStatus(v string) {
o.Status = &v
}
func (o Pet) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.Id != nil {
toSerialize["id"] = o.Id
}
if o.Category != nil {
toSerialize["category"] = o.Category
}
if true {
toSerialize["name"] = o.Name
}
if true {
toSerialize["photoUrls"] = o.PhotoUrls
}
if o.Tags != nil {
toSerialize["tags"] = o.Tags
}
if o.Status != nil {
toSerialize["status"] = o.Status
}
return json.Marshal(toSerialize)
}
type NullablePet struct {
Value Pet
ExplicitNull bool
value *Pet
isSet bool
}
func (v NullablePet) Get() *Pet {
return v.value
}
func (v *NullablePet) Set(val *Pet) {
v.value = val
v.isSet = true
}
func (v NullablePet) IsSet() bool {
return v.isSet
}
func (v *NullablePet) Unset() {
v.value = nil
v.isSet = false
}
func NewNullablePet(val *Pet) *NullablePet {
return &NullablePet{value: val, isSet: true}
}
func (v NullablePet) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullablePet) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View File

@@ -10,7 +10,6 @@
package petstore
import (
"bytes"
"encoding/json"
)
@@ -25,16 +24,16 @@ type ReadOnlyFirst struct {
// 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 NewReadOnlyFirst() *ReadOnlyFirst {
this := ReadOnlyFirst{}
return &this
this := ReadOnlyFirst{}
return &this
}
// NewReadOnlyFirstWithDefaults instantiates a new ReadOnlyFirst object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewReadOnlyFirstWithDefaults() *ReadOnlyFirst {
this := ReadOnlyFirst{}
return &this
this := ReadOnlyFirst{}
return &this
}
// GetBar returns the Bar field value if set, zero value otherwise.
@@ -46,14 +45,13 @@ func (o *ReadOnlyFirst) GetBar() string {
return *o.Bar
}
// GetBarOk returns a tuple with the Bar field value if set, zero value otherwise
// GetBarOk returns a tuple with the Bar field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ReadOnlyFirst) GetBarOk() (string, bool) {
func (o *ReadOnlyFirst) GetBarOk() (*string, bool) {
if o == nil || o.Bar == nil {
var ret string
return ret, false
return nil, false
}
return *o.Bar, true
return o.Bar, true
}
// HasBar returns a boolean if a field has been set.
@@ -79,14 +77,13 @@ func (o *ReadOnlyFirst) GetBaz() string {
return *o.Baz
}
// GetBazOk returns a tuple with the Baz field value if set, zero value otherwise
// GetBazOk returns a tuple with the Baz field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ReadOnlyFirst) GetBazOk() (string, bool) {
func (o *ReadOnlyFirst) GetBazOk() (*string, bool) {
if o == nil || o.Baz == nil {
var ret string
return ret, false
return nil, false
}
return *o.Baz, true
return o.Baz, true
}
// HasBaz returns a boolean if a field has been set.
@@ -103,25 +100,49 @@ func (o *ReadOnlyFirst) SetBaz(v string) {
o.Baz = &v
}
func (o ReadOnlyFirst) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.Bar != nil {
toSerialize["bar"] = o.Bar
}
if o.Baz != nil {
toSerialize["baz"] = o.Baz
}
return json.Marshal(toSerialize)
}
type NullableReadOnlyFirst struct {
Value ReadOnlyFirst
ExplicitNull bool
value *ReadOnlyFirst
isSet bool
}
func (v NullableReadOnlyFirst) Get() *ReadOnlyFirst {
return v.value
}
func (v *NullableReadOnlyFirst) Set(val *ReadOnlyFirst) {
v.value = val
v.isSet = true
}
func (v NullableReadOnlyFirst) IsSet() bool {
return v.isSet
}
func (v *NullableReadOnlyFirst) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableReadOnlyFirst(val *ReadOnlyFirst) *NullableReadOnlyFirst {
return &NullableReadOnlyFirst{value: val, isSet: true}
}
func (v NullableReadOnlyFirst) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableReadOnlyFirst) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View File

@@ -10,7 +10,6 @@
package petstore
import (
"bytes"
"encoding/json"
)
@@ -24,16 +23,16 @@ type Return struct {
// 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 NewReturn() *Return {
this := Return{}
return &this
this := Return{}
return &this
}
// NewReturnWithDefaults instantiates a new Return object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewReturnWithDefaults() *Return {
this := Return{}
return &this
this := Return{}
return &this
}
// GetReturn returns the Return field value if set, zero value otherwise.
@@ -45,14 +44,13 @@ func (o *Return) GetReturn() int32 {
return *o.Return
}
// GetReturnOk returns a tuple with the Return field value if set, zero value otherwise
// GetReturnOk returns a tuple with the Return field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Return) GetReturnOk() (int32, bool) {
func (o *Return) GetReturnOk() (*int32, bool) {
if o == nil || o.Return == nil {
var ret int32
return ret, false
return nil, false
}
return *o.Return, true
return o.Return, true
}
// HasReturn returns a boolean if a field has been set.
@@ -69,25 +67,46 @@ func (o *Return) SetReturn(v int32) {
o.Return = &v
}
func (o Return) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.Return != nil {
toSerialize["return"] = o.Return
}
return json.Marshal(toSerialize)
}
type NullableReturn struct {
Value Return
ExplicitNull bool
value *Return
isSet bool
}
func (v NullableReturn) Get() *Return {
return v.value
}
func (v *NullableReturn) Set(val *Return) {
v.value = val
v.isSet = true
}
func (v NullableReturn) IsSet() bool {
return v.isSet
}
func (v *NullableReturn) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableReturn(val *Return) *NullableReturn {
return &NullableReturn{value: val, isSet: true}
}
func (v NullableReturn) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableReturn) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View File

@@ -10,7 +10,6 @@
package petstore
import (
"bytes"
"encoding/json"
)
@@ -24,16 +23,16 @@ type SpecialModelName struct {
// 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 NewSpecialModelName() *SpecialModelName {
this := SpecialModelName{}
return &this
this := SpecialModelName{}
return &this
}
// NewSpecialModelNameWithDefaults instantiates a new SpecialModelName object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewSpecialModelNameWithDefaults() *SpecialModelName {
this := SpecialModelName{}
return &this
this := SpecialModelName{}
return &this
}
// GetSpecialPropertyName returns the SpecialPropertyName field value if set, zero value otherwise.
@@ -45,14 +44,13 @@ func (o *SpecialModelName) GetSpecialPropertyName() int64 {
return *o.SpecialPropertyName
}
// GetSpecialPropertyNameOk returns a tuple with the SpecialPropertyName field value if set, zero value otherwise
// GetSpecialPropertyNameOk returns a tuple with the SpecialPropertyName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SpecialModelName) GetSpecialPropertyNameOk() (int64, bool) {
func (o *SpecialModelName) GetSpecialPropertyNameOk() (*int64, bool) {
if o == nil || o.SpecialPropertyName == nil {
var ret int64
return ret, false
return nil, false
}
return *o.SpecialPropertyName, true
return o.SpecialPropertyName, true
}
// HasSpecialPropertyName returns a boolean if a field has been set.
@@ -69,25 +67,46 @@ func (o *SpecialModelName) SetSpecialPropertyName(v int64) {
o.SpecialPropertyName = &v
}
func (o SpecialModelName) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.SpecialPropertyName != nil {
toSerialize["$special[property.name]"] = o.SpecialPropertyName
}
return json.Marshal(toSerialize)
}
type NullableSpecialModelName struct {
Value SpecialModelName
ExplicitNull bool
value *SpecialModelName
isSet bool
}
func (v NullableSpecialModelName) Get() *SpecialModelName {
return v.value
}
func (v *NullableSpecialModelName) Set(val *SpecialModelName) {
v.value = val
v.isSet = true
}
func (v NullableSpecialModelName) IsSet() bool {
return v.isSet
}
func (v *NullableSpecialModelName) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableSpecialModelName(val *SpecialModelName) *NullableSpecialModelName {
return &NullableSpecialModelName{value: val, isSet: true}
}
func (v NullableSpecialModelName) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableSpecialModelName) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View File

@@ -10,7 +10,6 @@
package petstore
import (
"bytes"
"encoding/json"
)
@@ -25,16 +24,16 @@ type Tag struct {
// 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 NewTag() *Tag {
this := Tag{}
return &this
this := Tag{}
return &this
}
// NewTagWithDefaults instantiates a new Tag object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewTagWithDefaults() *Tag {
this := Tag{}
return &this
this := Tag{}
return &this
}
// GetId returns the Id field value if set, zero value otherwise.
@@ -46,14 +45,13 @@ func (o *Tag) GetId() int64 {
return *o.Id
}
// GetIdOk returns a tuple with the Id field value if set, zero value otherwise
// GetIdOk returns a tuple with the Id field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Tag) GetIdOk() (int64, bool) {
func (o *Tag) GetIdOk() (*int64, bool) {
if o == nil || o.Id == nil {
var ret int64
return ret, false
return nil, false
}
return *o.Id, true
return o.Id, true
}
// HasId returns a boolean if a field has been set.
@@ -79,14 +77,13 @@ func (o *Tag) GetName() string {
return *o.Name
}
// GetNameOk returns a tuple with the Name field value if set, zero value otherwise
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Tag) GetNameOk() (string, bool) {
func (o *Tag) GetNameOk() (*string, bool) {
if o == nil || o.Name == nil {
var ret string
return ret, false
return nil, false
}
return *o.Name, true
return o.Name, true
}
// HasName returns a boolean if a field has been set.
@@ -103,25 +100,49 @@ func (o *Tag) SetName(v string) {
o.Name = &v
}
func (o Tag) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.Id != nil {
toSerialize["id"] = o.Id
}
if o.Name != nil {
toSerialize["name"] = o.Name
}
return json.Marshal(toSerialize)
}
type NullableTag struct {
Value Tag
ExplicitNull bool
value *Tag
isSet bool
}
func (v NullableTag) Get() *Tag {
return v.value
}
func (v *NullableTag) Set(val *Tag) {
v.value = val
v.isSet = true
}
func (v NullableTag) IsSet() bool {
return v.isSet
}
func (v *NullableTag) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableTag(val *Tag) *NullableTag {
return &NullableTag{value: val, isSet: true}
}
func (v NullableTag) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableTag) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View File

@@ -10,7 +10,6 @@
package petstore
import (
"bytes"
"encoding/json"
)
@@ -28,30 +27,30 @@ type TypeHolderDefault struct {
// 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 NewTypeHolderDefault(stringItem string, numberItem float32, integerItem int32, boolItem bool, arrayItem []int32, ) *TypeHolderDefault {
this := TypeHolderDefault{}
this.StringItem = stringItem
this.NumberItem = numberItem
this.IntegerItem = integerItem
this.BoolItem = boolItem
this.ArrayItem = arrayItem
return &this
this := TypeHolderDefault{}
this.StringItem = stringItem
this.NumberItem = numberItem
this.IntegerItem = integerItem
this.BoolItem = boolItem
this.ArrayItem = arrayItem
return &this
}
// NewTypeHolderDefaultWithDefaults instantiates a new TypeHolderDefault object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewTypeHolderDefaultWithDefaults() *TypeHolderDefault {
this := TypeHolderDefault{}
var stringItem string = "what"
this.StringItem = stringItem
var boolItem bool = true
this.BoolItem = boolItem
return &this
this := TypeHolderDefault{}
var stringItem string = "what"
this.StringItem = stringItem
var boolItem bool = true
this.BoolItem = boolItem
return &this
}
// GetStringItem returns the StringItem field value
func (o *TypeHolderDefault) GetStringItem() string {
if o == nil {
if o == nil {
var ret string
return ret
}
@@ -59,6 +58,15 @@ func (o *TypeHolderDefault) GetStringItem() string {
return o.StringItem
}
// GetStringItemOk returns a tuple with the StringItem field value
// and a boolean to check if the value has been set.
func (o *TypeHolderDefault) GetStringItemOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.StringItem, true
}
// SetStringItem sets field value
func (o *TypeHolderDefault) SetStringItem(v string) {
o.StringItem = v
@@ -66,7 +74,7 @@ func (o *TypeHolderDefault) SetStringItem(v string) {
// GetNumberItem returns the NumberItem field value
func (o *TypeHolderDefault) GetNumberItem() float32 {
if o == nil {
if o == nil {
var ret float32
return ret
}
@@ -74,6 +82,15 @@ func (o *TypeHolderDefault) GetNumberItem() float32 {
return o.NumberItem
}
// GetNumberItemOk returns a tuple with the NumberItem field value
// and a boolean to check if the value has been set.
func (o *TypeHolderDefault) GetNumberItemOk() (*float32, bool) {
if o == nil {
return nil, false
}
return &o.NumberItem, true
}
// SetNumberItem sets field value
func (o *TypeHolderDefault) SetNumberItem(v float32) {
o.NumberItem = v
@@ -81,7 +98,7 @@ func (o *TypeHolderDefault) SetNumberItem(v float32) {
// GetIntegerItem returns the IntegerItem field value
func (o *TypeHolderDefault) GetIntegerItem() int32 {
if o == nil {
if o == nil {
var ret int32
return ret
}
@@ -89,6 +106,15 @@ func (o *TypeHolderDefault) GetIntegerItem() int32 {
return o.IntegerItem
}
// GetIntegerItemOk returns a tuple with the IntegerItem field value
// and a boolean to check if the value has been set.
func (o *TypeHolderDefault) GetIntegerItemOk() (*int32, bool) {
if o == nil {
return nil, false
}
return &o.IntegerItem, true
}
// SetIntegerItem sets field value
func (o *TypeHolderDefault) SetIntegerItem(v int32) {
o.IntegerItem = v
@@ -96,7 +122,7 @@ func (o *TypeHolderDefault) SetIntegerItem(v int32) {
// GetBoolItem returns the BoolItem field value
func (o *TypeHolderDefault) GetBoolItem() bool {
if o == nil {
if o == nil {
var ret bool
return ret
}
@@ -104,6 +130,15 @@ func (o *TypeHolderDefault) GetBoolItem() bool {
return o.BoolItem
}
// GetBoolItemOk returns a tuple with the BoolItem field value
// and a boolean to check if the value has been set.
func (o *TypeHolderDefault) GetBoolItemOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.BoolItem, true
}
// SetBoolItem sets field value
func (o *TypeHolderDefault) SetBoolItem(v bool) {
o.BoolItem = v
@@ -111,7 +146,7 @@ func (o *TypeHolderDefault) SetBoolItem(v bool) {
// GetArrayItem returns the ArrayItem field value
func (o *TypeHolderDefault) GetArrayItem() []int32 {
if o == nil {
if o == nil {
var ret []int32
return ret
}
@@ -119,30 +154,72 @@ func (o *TypeHolderDefault) GetArrayItem() []int32 {
return o.ArrayItem
}
// GetArrayItemOk returns a tuple with the ArrayItem field value
// and a boolean to check if the value has been set.
func (o *TypeHolderDefault) GetArrayItemOk() (*[]int32, bool) {
if o == nil {
return nil, false
}
return &o.ArrayItem, true
}
// SetArrayItem sets field value
func (o *TypeHolderDefault) SetArrayItem(v []int32) {
o.ArrayItem = v
}
func (o TypeHolderDefault) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if true {
toSerialize["string_item"] = o.StringItem
}
if true {
toSerialize["number_item"] = o.NumberItem
}
if true {
toSerialize["integer_item"] = o.IntegerItem
}
if true {
toSerialize["bool_item"] = o.BoolItem
}
if true {
toSerialize["array_item"] = o.ArrayItem
}
return json.Marshal(toSerialize)
}
type NullableTypeHolderDefault struct {
Value TypeHolderDefault
ExplicitNull bool
value *TypeHolderDefault
isSet bool
}
func (v NullableTypeHolderDefault) Get() *TypeHolderDefault {
return v.value
}
func (v *NullableTypeHolderDefault) Set(val *TypeHolderDefault) {
v.value = val
v.isSet = true
}
func (v NullableTypeHolderDefault) IsSet() bool {
return v.isSet
}
func (v *NullableTypeHolderDefault) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableTypeHolderDefault(val *TypeHolderDefault) *NullableTypeHolderDefault {
return &NullableTypeHolderDefault{value: val, isSet: true}
}
func (v NullableTypeHolderDefault) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableTypeHolderDefault) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View File

@@ -10,7 +10,6 @@
package petstore
import (
"bytes"
"encoding/json"
)
@@ -29,27 +28,27 @@ type TypeHolderExample struct {
// 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 NewTypeHolderExample(stringItem string, numberItem float32, floatItem float32, integerItem int32, boolItem bool, arrayItem []int32, ) *TypeHolderExample {
this := TypeHolderExample{}
this.StringItem = stringItem
this.NumberItem = numberItem
this.FloatItem = floatItem
this.IntegerItem = integerItem
this.BoolItem = boolItem
this.ArrayItem = arrayItem
return &this
this := TypeHolderExample{}
this.StringItem = stringItem
this.NumberItem = numberItem
this.FloatItem = floatItem
this.IntegerItem = integerItem
this.BoolItem = boolItem
this.ArrayItem = arrayItem
return &this
}
// NewTypeHolderExampleWithDefaults instantiates a new TypeHolderExample object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewTypeHolderExampleWithDefaults() *TypeHolderExample {
this := TypeHolderExample{}
return &this
this := TypeHolderExample{}
return &this
}
// GetStringItem returns the StringItem field value
func (o *TypeHolderExample) GetStringItem() string {
if o == nil {
if o == nil {
var ret string
return ret
}
@@ -57,6 +56,15 @@ func (o *TypeHolderExample) GetStringItem() string {
return o.StringItem
}
// GetStringItemOk returns a tuple with the StringItem field value
// and a boolean to check if the value has been set.
func (o *TypeHolderExample) GetStringItemOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.StringItem, true
}
// SetStringItem sets field value
func (o *TypeHolderExample) SetStringItem(v string) {
o.StringItem = v
@@ -64,7 +72,7 @@ func (o *TypeHolderExample) SetStringItem(v string) {
// GetNumberItem returns the NumberItem field value
func (o *TypeHolderExample) GetNumberItem() float32 {
if o == nil {
if o == nil {
var ret float32
return ret
}
@@ -72,6 +80,15 @@ func (o *TypeHolderExample) GetNumberItem() float32 {
return o.NumberItem
}
// GetNumberItemOk returns a tuple with the NumberItem field value
// and a boolean to check if the value has been set.
func (o *TypeHolderExample) GetNumberItemOk() (*float32, bool) {
if o == nil {
return nil, false
}
return &o.NumberItem, true
}
// SetNumberItem sets field value
func (o *TypeHolderExample) SetNumberItem(v float32) {
o.NumberItem = v
@@ -79,7 +96,7 @@ func (o *TypeHolderExample) SetNumberItem(v float32) {
// GetFloatItem returns the FloatItem field value
func (o *TypeHolderExample) GetFloatItem() float32 {
if o == nil {
if o == nil {
var ret float32
return ret
}
@@ -87,6 +104,15 @@ func (o *TypeHolderExample) GetFloatItem() float32 {
return o.FloatItem
}
// GetFloatItemOk returns a tuple with the FloatItem field value
// and a boolean to check if the value has been set.
func (o *TypeHolderExample) GetFloatItemOk() (*float32, bool) {
if o == nil {
return nil, false
}
return &o.FloatItem, true
}
// SetFloatItem sets field value
func (o *TypeHolderExample) SetFloatItem(v float32) {
o.FloatItem = v
@@ -94,7 +120,7 @@ func (o *TypeHolderExample) SetFloatItem(v float32) {
// GetIntegerItem returns the IntegerItem field value
func (o *TypeHolderExample) GetIntegerItem() int32 {
if o == nil {
if o == nil {
var ret int32
return ret
}
@@ -102,6 +128,15 @@ func (o *TypeHolderExample) GetIntegerItem() int32 {
return o.IntegerItem
}
// GetIntegerItemOk returns a tuple with the IntegerItem field value
// and a boolean to check if the value has been set.
func (o *TypeHolderExample) GetIntegerItemOk() (*int32, bool) {
if o == nil {
return nil, false
}
return &o.IntegerItem, true
}
// SetIntegerItem sets field value
func (o *TypeHolderExample) SetIntegerItem(v int32) {
o.IntegerItem = v
@@ -109,7 +144,7 @@ func (o *TypeHolderExample) SetIntegerItem(v int32) {
// GetBoolItem returns the BoolItem field value
func (o *TypeHolderExample) GetBoolItem() bool {
if o == nil {
if o == nil {
var ret bool
return ret
}
@@ -117,6 +152,15 @@ func (o *TypeHolderExample) GetBoolItem() bool {
return o.BoolItem
}
// GetBoolItemOk returns a tuple with the BoolItem field value
// and a boolean to check if the value has been set.
func (o *TypeHolderExample) GetBoolItemOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.BoolItem, true
}
// SetBoolItem sets field value
func (o *TypeHolderExample) SetBoolItem(v bool) {
o.BoolItem = v
@@ -124,7 +168,7 @@ func (o *TypeHolderExample) SetBoolItem(v bool) {
// GetArrayItem returns the ArrayItem field value
func (o *TypeHolderExample) GetArrayItem() []int32 {
if o == nil {
if o == nil {
var ret []int32
return ret
}
@@ -132,30 +176,75 @@ func (o *TypeHolderExample) GetArrayItem() []int32 {
return o.ArrayItem
}
// GetArrayItemOk returns a tuple with the ArrayItem field value
// and a boolean to check if the value has been set.
func (o *TypeHolderExample) GetArrayItemOk() (*[]int32, bool) {
if o == nil {
return nil, false
}
return &o.ArrayItem, true
}
// SetArrayItem sets field value
func (o *TypeHolderExample) SetArrayItem(v []int32) {
o.ArrayItem = v
}
func (o TypeHolderExample) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if true {
toSerialize["string_item"] = o.StringItem
}
if true {
toSerialize["number_item"] = o.NumberItem
}
if true {
toSerialize["float_item"] = o.FloatItem
}
if true {
toSerialize["integer_item"] = o.IntegerItem
}
if true {
toSerialize["bool_item"] = o.BoolItem
}
if true {
toSerialize["array_item"] = o.ArrayItem
}
return json.Marshal(toSerialize)
}
type NullableTypeHolderExample struct {
Value TypeHolderExample
ExplicitNull bool
value *TypeHolderExample
isSet bool
}
func (v NullableTypeHolderExample) Get() *TypeHolderExample {
return v.value
}
func (v *NullableTypeHolderExample) Set(val *TypeHolderExample) {
v.value = val
v.isSet = true
}
func (v NullableTypeHolderExample) IsSet() bool {
return v.isSet
}
func (v *NullableTypeHolderExample) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableTypeHolderExample(val *TypeHolderExample) *NullableTypeHolderExample {
return &NullableTypeHolderExample{value: val, isSet: true}
}
func (v NullableTypeHolderExample) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableTypeHolderExample) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View File

@@ -10,7 +10,6 @@
package petstore
import (
"bytes"
"encoding/json"
)
@@ -32,16 +31,16 @@ type User struct {
// 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 NewUser() *User {
this := User{}
return &this
this := User{}
return &this
}
// NewUserWithDefaults instantiates a new User object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewUserWithDefaults() *User {
this := User{}
return &this
this := User{}
return &this
}
// GetId returns the Id field value if set, zero value otherwise.
@@ -53,14 +52,13 @@ func (o *User) GetId() int64 {
return *o.Id
}
// GetIdOk returns a tuple with the Id field value if set, zero value otherwise
// GetIdOk returns a tuple with the Id field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *User) GetIdOk() (int64, bool) {
func (o *User) GetIdOk() (*int64, bool) {
if o == nil || o.Id == nil {
var ret int64
return ret, false
return nil, false
}
return *o.Id, true
return o.Id, true
}
// HasId returns a boolean if a field has been set.
@@ -86,14 +84,13 @@ func (o *User) GetUsername() string {
return *o.Username
}
// GetUsernameOk returns a tuple with the Username field value if set, zero value otherwise
// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *User) GetUsernameOk() (string, bool) {
func (o *User) GetUsernameOk() (*string, bool) {
if o == nil || o.Username == nil {
var ret string
return ret, false
return nil, false
}
return *o.Username, true
return o.Username, true
}
// HasUsername returns a boolean if a field has been set.
@@ -119,14 +116,13 @@ func (o *User) GetFirstName() string {
return *o.FirstName
}
// GetFirstNameOk returns a tuple with the FirstName field value if set, zero value otherwise
// GetFirstNameOk returns a tuple with the FirstName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *User) GetFirstNameOk() (string, bool) {
func (o *User) GetFirstNameOk() (*string, bool) {
if o == nil || o.FirstName == nil {
var ret string
return ret, false
return nil, false
}
return *o.FirstName, true
return o.FirstName, true
}
// HasFirstName returns a boolean if a field has been set.
@@ -152,14 +148,13 @@ func (o *User) GetLastName() string {
return *o.LastName
}
// GetLastNameOk returns a tuple with the LastName field value if set, zero value otherwise
// GetLastNameOk returns a tuple with the LastName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *User) GetLastNameOk() (string, bool) {
func (o *User) GetLastNameOk() (*string, bool) {
if o == nil || o.LastName == nil {
var ret string
return ret, false
return nil, false
}
return *o.LastName, true
return o.LastName, true
}
// HasLastName returns a boolean if a field has been set.
@@ -185,14 +180,13 @@ func (o *User) GetEmail() string {
return *o.Email
}
// GetEmailOk returns a tuple with the Email field value if set, zero value otherwise
// GetEmailOk returns a tuple with the Email field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *User) GetEmailOk() (string, bool) {
func (o *User) GetEmailOk() (*string, bool) {
if o == nil || o.Email == nil {
var ret string
return ret, false
return nil, false
}
return *o.Email, true
return o.Email, true
}
// HasEmail returns a boolean if a field has been set.
@@ -218,14 +212,13 @@ func (o *User) GetPassword() string {
return *o.Password
}
// GetPasswordOk returns a tuple with the Password field value if set, zero value otherwise
// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *User) GetPasswordOk() (string, bool) {
func (o *User) GetPasswordOk() (*string, bool) {
if o == nil || o.Password == nil {
var ret string
return ret, false
return nil, false
}
return *o.Password, true
return o.Password, true
}
// HasPassword returns a boolean if a field has been set.
@@ -251,14 +244,13 @@ func (o *User) GetPhone() string {
return *o.Phone
}
// GetPhoneOk returns a tuple with the Phone field value if set, zero value otherwise
// GetPhoneOk returns a tuple with the Phone field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *User) GetPhoneOk() (string, bool) {
func (o *User) GetPhoneOk() (*string, bool) {
if o == nil || o.Phone == nil {
var ret string
return ret, false
return nil, false
}
return *o.Phone, true
return o.Phone, true
}
// HasPhone returns a boolean if a field has been set.
@@ -284,14 +276,13 @@ func (o *User) GetUserStatus() int32 {
return *o.UserStatus
}
// GetUserStatusOk returns a tuple with the UserStatus field value if set, zero value otherwise
// GetUserStatusOk returns a tuple with the UserStatus field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *User) GetUserStatusOk() (int32, bool) {
func (o *User) GetUserStatusOk() (*int32, bool) {
if o == nil || o.UserStatus == nil {
var ret int32
return ret, false
return nil, false
}
return *o.UserStatus, true
return o.UserStatus, true
}
// HasUserStatus returns a boolean if a field has been set.
@@ -308,25 +299,67 @@ func (o *User) SetUserStatus(v int32) {
o.UserStatus = &v
}
func (o User) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.Id != nil {
toSerialize["id"] = o.Id
}
if o.Username != nil {
toSerialize["username"] = o.Username
}
if o.FirstName != nil {
toSerialize["firstName"] = o.FirstName
}
if o.LastName != nil {
toSerialize["lastName"] = o.LastName
}
if o.Email != nil {
toSerialize["email"] = o.Email
}
if o.Password != nil {
toSerialize["password"] = o.Password
}
if o.Phone != nil {
toSerialize["phone"] = o.Phone
}
if o.UserStatus != nil {
toSerialize["userStatus"] = o.UserStatus
}
return json.Marshal(toSerialize)
}
type NullableUser struct {
Value User
ExplicitNull bool
value *User
isSet bool
}
func (v NullableUser) Get() *User {
return v.value
}
func (v *NullableUser) Set(val *User) {
v.value = val
v.isSet = true
}
func (v NullableUser) IsSet() bool {
return v.isSet
}
func (v *NullableUser) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableUser(val *User) *NullableUser {
return &NullableUser{value: val, isSet: true}
}
func (v NullableUser) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableUser) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View File

@@ -10,7 +10,6 @@
package petstore
import (
"bytes"
"encoding/json"
)
@@ -52,16 +51,16 @@ type XmlItem struct {
// 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 NewXmlItem() *XmlItem {
this := XmlItem{}
return &this
this := XmlItem{}
return &this
}
// NewXmlItemWithDefaults instantiates a new XmlItem object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewXmlItemWithDefaults() *XmlItem {
this := XmlItem{}
return &this
this := XmlItem{}
return &this
}
// GetAttributeString returns the AttributeString field value if set, zero value otherwise.
@@ -73,14 +72,13 @@ func (o *XmlItem) GetAttributeString() string {
return *o.AttributeString
}
// GetAttributeStringOk returns a tuple with the AttributeString field value if set, zero value otherwise
// GetAttributeStringOk returns a tuple with the AttributeString field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *XmlItem) GetAttributeStringOk() (string, bool) {
func (o *XmlItem) GetAttributeStringOk() (*string, bool) {
if o == nil || o.AttributeString == nil {
var ret string
return ret, false
return nil, false
}
return *o.AttributeString, true
return o.AttributeString, true
}
// HasAttributeString returns a boolean if a field has been set.
@@ -106,14 +104,13 @@ func (o *XmlItem) GetAttributeNumber() float32 {
return *o.AttributeNumber
}
// GetAttributeNumberOk returns a tuple with the AttributeNumber field value if set, zero value otherwise
// GetAttributeNumberOk returns a tuple with the AttributeNumber field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *XmlItem) GetAttributeNumberOk() (float32, bool) {
func (o *XmlItem) GetAttributeNumberOk() (*float32, bool) {
if o == nil || o.AttributeNumber == nil {
var ret float32
return ret, false
return nil, false
}
return *o.AttributeNumber, true
return o.AttributeNumber, true
}
// HasAttributeNumber returns a boolean if a field has been set.
@@ -139,14 +136,13 @@ func (o *XmlItem) GetAttributeInteger() int32 {
return *o.AttributeInteger
}
// GetAttributeIntegerOk returns a tuple with the AttributeInteger field value if set, zero value otherwise
// GetAttributeIntegerOk returns a tuple with the AttributeInteger field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *XmlItem) GetAttributeIntegerOk() (int32, bool) {
func (o *XmlItem) GetAttributeIntegerOk() (*int32, bool) {
if o == nil || o.AttributeInteger == nil {
var ret int32
return ret, false
return nil, false
}
return *o.AttributeInteger, true
return o.AttributeInteger, true
}
// HasAttributeInteger returns a boolean if a field has been set.
@@ -172,14 +168,13 @@ func (o *XmlItem) GetAttributeBoolean() bool {
return *o.AttributeBoolean
}
// GetAttributeBooleanOk returns a tuple with the AttributeBoolean field value if set, zero value otherwise
// GetAttributeBooleanOk returns a tuple with the AttributeBoolean field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *XmlItem) GetAttributeBooleanOk() (bool, bool) {
func (o *XmlItem) GetAttributeBooleanOk() (*bool, bool) {
if o == nil || o.AttributeBoolean == nil {
var ret bool
return ret, false
return nil, false
}
return *o.AttributeBoolean, true
return o.AttributeBoolean, true
}
// HasAttributeBoolean returns a boolean if a field has been set.
@@ -205,14 +200,13 @@ func (o *XmlItem) GetWrappedArray() []int32 {
return *o.WrappedArray
}
// GetWrappedArrayOk returns a tuple with the WrappedArray field value if set, zero value otherwise
// GetWrappedArrayOk returns a tuple with the WrappedArray field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *XmlItem) GetWrappedArrayOk() ([]int32, bool) {
func (o *XmlItem) GetWrappedArrayOk() (*[]int32, bool) {
if o == nil || o.WrappedArray == nil {
var ret []int32
return ret, false
return nil, false
}
return *o.WrappedArray, true
return o.WrappedArray, true
}
// HasWrappedArray returns a boolean if a field has been set.
@@ -238,14 +232,13 @@ func (o *XmlItem) GetNameString() string {
return *o.NameString
}
// GetNameStringOk returns a tuple with the NameString field value if set, zero value otherwise
// GetNameStringOk returns a tuple with the NameString field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *XmlItem) GetNameStringOk() (string, bool) {
func (o *XmlItem) GetNameStringOk() (*string, bool) {
if o == nil || o.NameString == nil {
var ret string
return ret, false
return nil, false
}
return *o.NameString, true
return o.NameString, true
}
// HasNameString returns a boolean if a field has been set.
@@ -271,14 +264,13 @@ func (o *XmlItem) GetNameNumber() float32 {
return *o.NameNumber
}
// GetNameNumberOk returns a tuple with the NameNumber field value if set, zero value otherwise
// GetNameNumberOk returns a tuple with the NameNumber field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *XmlItem) GetNameNumberOk() (float32, bool) {
func (o *XmlItem) GetNameNumberOk() (*float32, bool) {
if o == nil || o.NameNumber == nil {
var ret float32
return ret, false
return nil, false
}
return *o.NameNumber, true
return o.NameNumber, true
}
// HasNameNumber returns a boolean if a field has been set.
@@ -304,14 +296,13 @@ func (o *XmlItem) GetNameInteger() int32 {
return *o.NameInteger
}
// GetNameIntegerOk returns a tuple with the NameInteger field value if set, zero value otherwise
// GetNameIntegerOk returns a tuple with the NameInteger field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *XmlItem) GetNameIntegerOk() (int32, bool) {
func (o *XmlItem) GetNameIntegerOk() (*int32, bool) {
if o == nil || o.NameInteger == nil {
var ret int32
return ret, false
return nil, false
}
return *o.NameInteger, true
return o.NameInteger, true
}
// HasNameInteger returns a boolean if a field has been set.
@@ -337,14 +328,13 @@ func (o *XmlItem) GetNameBoolean() bool {
return *o.NameBoolean
}
// GetNameBooleanOk returns a tuple with the NameBoolean field value if set, zero value otherwise
// GetNameBooleanOk returns a tuple with the NameBoolean field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *XmlItem) GetNameBooleanOk() (bool, bool) {
func (o *XmlItem) GetNameBooleanOk() (*bool, bool) {
if o == nil || o.NameBoolean == nil {
var ret bool
return ret, false
return nil, false
}
return *o.NameBoolean, true
return o.NameBoolean, true
}
// HasNameBoolean returns a boolean if a field has been set.
@@ -370,14 +360,13 @@ func (o *XmlItem) GetNameArray() []int32 {
return *o.NameArray
}
// GetNameArrayOk returns a tuple with the NameArray field value if set, zero value otherwise
// GetNameArrayOk returns a tuple with the NameArray field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *XmlItem) GetNameArrayOk() ([]int32, bool) {
func (o *XmlItem) GetNameArrayOk() (*[]int32, bool) {
if o == nil || o.NameArray == nil {
var ret []int32
return ret, false
return nil, false
}
return *o.NameArray, true
return o.NameArray, true
}
// HasNameArray returns a boolean if a field has been set.
@@ -403,14 +392,13 @@ func (o *XmlItem) GetNameWrappedArray() []int32 {
return *o.NameWrappedArray
}
// GetNameWrappedArrayOk returns a tuple with the NameWrappedArray field value if set, zero value otherwise
// GetNameWrappedArrayOk returns a tuple with the NameWrappedArray field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *XmlItem) GetNameWrappedArrayOk() ([]int32, bool) {
func (o *XmlItem) GetNameWrappedArrayOk() (*[]int32, bool) {
if o == nil || o.NameWrappedArray == nil {
var ret []int32
return ret, false
return nil, false
}
return *o.NameWrappedArray, true
return o.NameWrappedArray, true
}
// HasNameWrappedArray returns a boolean if a field has been set.
@@ -436,14 +424,13 @@ func (o *XmlItem) GetPrefixString() string {
return *o.PrefixString
}
// GetPrefixStringOk returns a tuple with the PrefixString field value if set, zero value otherwise
// GetPrefixStringOk returns a tuple with the PrefixString field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *XmlItem) GetPrefixStringOk() (string, bool) {
func (o *XmlItem) GetPrefixStringOk() (*string, bool) {
if o == nil || o.PrefixString == nil {
var ret string
return ret, false
return nil, false
}
return *o.PrefixString, true
return o.PrefixString, true
}
// HasPrefixString returns a boolean if a field has been set.
@@ -469,14 +456,13 @@ func (o *XmlItem) GetPrefixNumber() float32 {
return *o.PrefixNumber
}
// GetPrefixNumberOk returns a tuple with the PrefixNumber field value if set, zero value otherwise
// GetPrefixNumberOk returns a tuple with the PrefixNumber field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *XmlItem) GetPrefixNumberOk() (float32, bool) {
func (o *XmlItem) GetPrefixNumberOk() (*float32, bool) {
if o == nil || o.PrefixNumber == nil {
var ret float32
return ret, false
return nil, false
}
return *o.PrefixNumber, true
return o.PrefixNumber, true
}
// HasPrefixNumber returns a boolean if a field has been set.
@@ -502,14 +488,13 @@ func (o *XmlItem) GetPrefixInteger() int32 {
return *o.PrefixInteger
}
// GetPrefixIntegerOk returns a tuple with the PrefixInteger field value if set, zero value otherwise
// GetPrefixIntegerOk returns a tuple with the PrefixInteger field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *XmlItem) GetPrefixIntegerOk() (int32, bool) {
func (o *XmlItem) GetPrefixIntegerOk() (*int32, bool) {
if o == nil || o.PrefixInteger == nil {
var ret int32
return ret, false
return nil, false
}
return *o.PrefixInteger, true
return o.PrefixInteger, true
}
// HasPrefixInteger returns a boolean if a field has been set.
@@ -535,14 +520,13 @@ func (o *XmlItem) GetPrefixBoolean() bool {
return *o.PrefixBoolean
}
// GetPrefixBooleanOk returns a tuple with the PrefixBoolean field value if set, zero value otherwise
// GetPrefixBooleanOk returns a tuple with the PrefixBoolean field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *XmlItem) GetPrefixBooleanOk() (bool, bool) {
func (o *XmlItem) GetPrefixBooleanOk() (*bool, bool) {
if o == nil || o.PrefixBoolean == nil {
var ret bool
return ret, false
return nil, false
}
return *o.PrefixBoolean, true
return o.PrefixBoolean, true
}
// HasPrefixBoolean returns a boolean if a field has been set.
@@ -568,14 +552,13 @@ func (o *XmlItem) GetPrefixArray() []int32 {
return *o.PrefixArray
}
// GetPrefixArrayOk returns a tuple with the PrefixArray field value if set, zero value otherwise
// GetPrefixArrayOk returns a tuple with the PrefixArray field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *XmlItem) GetPrefixArrayOk() ([]int32, bool) {
func (o *XmlItem) GetPrefixArrayOk() (*[]int32, bool) {
if o == nil || o.PrefixArray == nil {
var ret []int32
return ret, false
return nil, false
}
return *o.PrefixArray, true
return o.PrefixArray, true
}
// HasPrefixArray returns a boolean if a field has been set.
@@ -601,14 +584,13 @@ func (o *XmlItem) GetPrefixWrappedArray() []int32 {
return *o.PrefixWrappedArray
}
// GetPrefixWrappedArrayOk returns a tuple with the PrefixWrappedArray field value if set, zero value otherwise
// GetPrefixWrappedArrayOk returns a tuple with the PrefixWrappedArray field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *XmlItem) GetPrefixWrappedArrayOk() ([]int32, bool) {
func (o *XmlItem) GetPrefixWrappedArrayOk() (*[]int32, bool) {
if o == nil || o.PrefixWrappedArray == nil {
var ret []int32
return ret, false
return nil, false
}
return *o.PrefixWrappedArray, true
return o.PrefixWrappedArray, true
}
// HasPrefixWrappedArray returns a boolean if a field has been set.
@@ -634,14 +616,13 @@ func (o *XmlItem) GetNamespaceString() string {
return *o.NamespaceString
}
// GetNamespaceStringOk returns a tuple with the NamespaceString field value if set, zero value otherwise
// GetNamespaceStringOk returns a tuple with the NamespaceString field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *XmlItem) GetNamespaceStringOk() (string, bool) {
func (o *XmlItem) GetNamespaceStringOk() (*string, bool) {
if o == nil || o.NamespaceString == nil {
var ret string
return ret, false
return nil, false
}
return *o.NamespaceString, true
return o.NamespaceString, true
}
// HasNamespaceString returns a boolean if a field has been set.
@@ -667,14 +648,13 @@ func (o *XmlItem) GetNamespaceNumber() float32 {
return *o.NamespaceNumber
}
// GetNamespaceNumberOk returns a tuple with the NamespaceNumber field value if set, zero value otherwise
// GetNamespaceNumberOk returns a tuple with the NamespaceNumber field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *XmlItem) GetNamespaceNumberOk() (float32, bool) {
func (o *XmlItem) GetNamespaceNumberOk() (*float32, bool) {
if o == nil || o.NamespaceNumber == nil {
var ret float32
return ret, false
return nil, false
}
return *o.NamespaceNumber, true
return o.NamespaceNumber, true
}
// HasNamespaceNumber returns a boolean if a field has been set.
@@ -700,14 +680,13 @@ func (o *XmlItem) GetNamespaceInteger() int32 {
return *o.NamespaceInteger
}
// GetNamespaceIntegerOk returns a tuple with the NamespaceInteger field value if set, zero value otherwise
// GetNamespaceIntegerOk returns a tuple with the NamespaceInteger field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *XmlItem) GetNamespaceIntegerOk() (int32, bool) {
func (o *XmlItem) GetNamespaceIntegerOk() (*int32, bool) {
if o == nil || o.NamespaceInteger == nil {
var ret int32
return ret, false
return nil, false
}
return *o.NamespaceInteger, true
return o.NamespaceInteger, true
}
// HasNamespaceInteger returns a boolean if a field has been set.
@@ -733,14 +712,13 @@ func (o *XmlItem) GetNamespaceBoolean() bool {
return *o.NamespaceBoolean
}
// GetNamespaceBooleanOk returns a tuple with the NamespaceBoolean field value if set, zero value otherwise
// GetNamespaceBooleanOk returns a tuple with the NamespaceBoolean field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *XmlItem) GetNamespaceBooleanOk() (bool, bool) {
func (o *XmlItem) GetNamespaceBooleanOk() (*bool, bool) {
if o == nil || o.NamespaceBoolean == nil {
var ret bool
return ret, false
return nil, false
}
return *o.NamespaceBoolean, true
return o.NamespaceBoolean, true
}
// HasNamespaceBoolean returns a boolean if a field has been set.
@@ -766,14 +744,13 @@ func (o *XmlItem) GetNamespaceArray() []int32 {
return *o.NamespaceArray
}
// GetNamespaceArrayOk returns a tuple with the NamespaceArray field value if set, zero value otherwise
// GetNamespaceArrayOk returns a tuple with the NamespaceArray field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *XmlItem) GetNamespaceArrayOk() ([]int32, bool) {
func (o *XmlItem) GetNamespaceArrayOk() (*[]int32, bool) {
if o == nil || o.NamespaceArray == nil {
var ret []int32
return ret, false
return nil, false
}
return *o.NamespaceArray, true
return o.NamespaceArray, true
}
// HasNamespaceArray returns a boolean if a field has been set.
@@ -799,14 +776,13 @@ func (o *XmlItem) GetNamespaceWrappedArray() []int32 {
return *o.NamespaceWrappedArray
}
// GetNamespaceWrappedArrayOk returns a tuple with the NamespaceWrappedArray field value if set, zero value otherwise
// GetNamespaceWrappedArrayOk returns a tuple with the NamespaceWrappedArray field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *XmlItem) GetNamespaceWrappedArrayOk() ([]int32, bool) {
func (o *XmlItem) GetNamespaceWrappedArrayOk() (*[]int32, bool) {
if o == nil || o.NamespaceWrappedArray == nil {
var ret []int32
return ret, false
return nil, false
}
return *o.NamespaceWrappedArray, true
return o.NamespaceWrappedArray, true
}
// HasNamespaceWrappedArray returns a boolean if a field has been set.
@@ -832,14 +808,13 @@ func (o *XmlItem) GetPrefixNsString() string {
return *o.PrefixNsString
}
// GetPrefixNsStringOk returns a tuple with the PrefixNsString field value if set, zero value otherwise
// GetPrefixNsStringOk returns a tuple with the PrefixNsString field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *XmlItem) GetPrefixNsStringOk() (string, bool) {
func (o *XmlItem) GetPrefixNsStringOk() (*string, bool) {
if o == nil || o.PrefixNsString == nil {
var ret string
return ret, false
return nil, false
}
return *o.PrefixNsString, true
return o.PrefixNsString, true
}
// HasPrefixNsString returns a boolean if a field has been set.
@@ -865,14 +840,13 @@ func (o *XmlItem) GetPrefixNsNumber() float32 {
return *o.PrefixNsNumber
}
// GetPrefixNsNumberOk returns a tuple with the PrefixNsNumber field value if set, zero value otherwise
// GetPrefixNsNumberOk returns a tuple with the PrefixNsNumber field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *XmlItem) GetPrefixNsNumberOk() (float32, bool) {
func (o *XmlItem) GetPrefixNsNumberOk() (*float32, bool) {
if o == nil || o.PrefixNsNumber == nil {
var ret float32
return ret, false
return nil, false
}
return *o.PrefixNsNumber, true
return o.PrefixNsNumber, true
}
// HasPrefixNsNumber returns a boolean if a field has been set.
@@ -898,14 +872,13 @@ func (o *XmlItem) GetPrefixNsInteger() int32 {
return *o.PrefixNsInteger
}
// GetPrefixNsIntegerOk returns a tuple with the PrefixNsInteger field value if set, zero value otherwise
// GetPrefixNsIntegerOk returns a tuple with the PrefixNsInteger field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *XmlItem) GetPrefixNsIntegerOk() (int32, bool) {
func (o *XmlItem) GetPrefixNsIntegerOk() (*int32, bool) {
if o == nil || o.PrefixNsInteger == nil {
var ret int32
return ret, false
return nil, false
}
return *o.PrefixNsInteger, true
return o.PrefixNsInteger, true
}
// HasPrefixNsInteger returns a boolean if a field has been set.
@@ -931,14 +904,13 @@ func (o *XmlItem) GetPrefixNsBoolean() bool {
return *o.PrefixNsBoolean
}
// GetPrefixNsBooleanOk returns a tuple with the PrefixNsBoolean field value if set, zero value otherwise
// GetPrefixNsBooleanOk returns a tuple with the PrefixNsBoolean field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *XmlItem) GetPrefixNsBooleanOk() (bool, bool) {
func (o *XmlItem) GetPrefixNsBooleanOk() (*bool, bool) {
if o == nil || o.PrefixNsBoolean == nil {
var ret bool
return ret, false
return nil, false
}
return *o.PrefixNsBoolean, true
return o.PrefixNsBoolean, true
}
// HasPrefixNsBoolean returns a boolean if a field has been set.
@@ -964,14 +936,13 @@ func (o *XmlItem) GetPrefixNsArray() []int32 {
return *o.PrefixNsArray
}
// GetPrefixNsArrayOk returns a tuple with the PrefixNsArray field value if set, zero value otherwise
// GetPrefixNsArrayOk returns a tuple with the PrefixNsArray field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *XmlItem) GetPrefixNsArrayOk() ([]int32, bool) {
func (o *XmlItem) GetPrefixNsArrayOk() (*[]int32, bool) {
if o == nil || o.PrefixNsArray == nil {
var ret []int32
return ret, false
return nil, false
}
return *o.PrefixNsArray, true
return o.PrefixNsArray, true
}
// HasPrefixNsArray returns a boolean if a field has been set.
@@ -997,14 +968,13 @@ func (o *XmlItem) GetPrefixNsWrappedArray() []int32 {
return *o.PrefixNsWrappedArray
}
// GetPrefixNsWrappedArrayOk returns a tuple with the PrefixNsWrappedArray field value if set, zero value otherwise
// GetPrefixNsWrappedArrayOk returns a tuple with the PrefixNsWrappedArray field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *XmlItem) GetPrefixNsWrappedArrayOk() ([]int32, bool) {
func (o *XmlItem) GetPrefixNsWrappedArrayOk() (*[]int32, bool) {
if o == nil || o.PrefixNsWrappedArray == nil {
var ret []int32
return ret, false
return nil, false
}
return *o.PrefixNsWrappedArray, true
return o.PrefixNsWrappedArray, true
}
// HasPrefixNsWrappedArray returns a boolean if a field has been set.
@@ -1021,25 +991,130 @@ func (o *XmlItem) SetPrefixNsWrappedArray(v []int32) {
o.PrefixNsWrappedArray = &v
}
func (o XmlItem) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.AttributeString != nil {
toSerialize["attribute_string"] = o.AttributeString
}
if o.AttributeNumber != nil {
toSerialize["attribute_number"] = o.AttributeNumber
}
if o.AttributeInteger != nil {
toSerialize["attribute_integer"] = o.AttributeInteger
}
if o.AttributeBoolean != nil {
toSerialize["attribute_boolean"] = o.AttributeBoolean
}
if o.WrappedArray != nil {
toSerialize["wrapped_array"] = o.WrappedArray
}
if o.NameString != nil {
toSerialize["name_string"] = o.NameString
}
if o.NameNumber != nil {
toSerialize["name_number"] = o.NameNumber
}
if o.NameInteger != nil {
toSerialize["name_integer"] = o.NameInteger
}
if o.NameBoolean != nil {
toSerialize["name_boolean"] = o.NameBoolean
}
if o.NameArray != nil {
toSerialize["name_array"] = o.NameArray
}
if o.NameWrappedArray != nil {
toSerialize["name_wrapped_array"] = o.NameWrappedArray
}
if o.PrefixString != nil {
toSerialize["prefix_string"] = o.PrefixString
}
if o.PrefixNumber != nil {
toSerialize["prefix_number"] = o.PrefixNumber
}
if o.PrefixInteger != nil {
toSerialize["prefix_integer"] = o.PrefixInteger
}
if o.PrefixBoolean != nil {
toSerialize["prefix_boolean"] = o.PrefixBoolean
}
if o.PrefixArray != nil {
toSerialize["prefix_array"] = o.PrefixArray
}
if o.PrefixWrappedArray != nil {
toSerialize["prefix_wrapped_array"] = o.PrefixWrappedArray
}
if o.NamespaceString != nil {
toSerialize["namespace_string"] = o.NamespaceString
}
if o.NamespaceNumber != nil {
toSerialize["namespace_number"] = o.NamespaceNumber
}
if o.NamespaceInteger != nil {
toSerialize["namespace_integer"] = o.NamespaceInteger
}
if o.NamespaceBoolean != nil {
toSerialize["namespace_boolean"] = o.NamespaceBoolean
}
if o.NamespaceArray != nil {
toSerialize["namespace_array"] = o.NamespaceArray
}
if o.NamespaceWrappedArray != nil {
toSerialize["namespace_wrapped_array"] = o.NamespaceWrappedArray
}
if o.PrefixNsString != nil {
toSerialize["prefix_ns_string"] = o.PrefixNsString
}
if o.PrefixNsNumber != nil {
toSerialize["prefix_ns_number"] = o.PrefixNsNumber
}
if o.PrefixNsInteger != nil {
toSerialize["prefix_ns_integer"] = o.PrefixNsInteger
}
if o.PrefixNsBoolean != nil {
toSerialize["prefix_ns_boolean"] = o.PrefixNsBoolean
}
if o.PrefixNsArray != nil {
toSerialize["prefix_ns_array"] = o.PrefixNsArray
}
if o.PrefixNsWrappedArray != nil {
toSerialize["prefix_ns_wrapped_array"] = o.PrefixNsWrappedArray
}
return json.Marshal(toSerialize)
}
type NullableXmlItem struct {
Value XmlItem
ExplicitNull bool
value *XmlItem
isSet bool
}
func (v NullableXmlItem) Get() *XmlItem {
return v.value
}
func (v *NullableXmlItem) Set(val *XmlItem) {
v.value = val
v.isSet = true
}
func (v NullableXmlItem) IsSet() bool {
return v.isSet
}
func (v *NullableXmlItem) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableXmlItem(val *XmlItem) *NullableXmlItem {
return &NullableXmlItem{value: val, isSet: true}
}
func (v NullableXmlItem) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableXmlItem) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View File

@@ -10,14 +10,10 @@
package petstore
import (
"bytes"
"encoding/json"
"errors"
"time"
"encoding/json"
"time"
)
var ErrInvalidNullable = errors.New("nullable cannot have non-zero Value and ExplicitNull simultaneously")
// PtrBool is a helper routine that returns a pointer to given integer value.
func PtrBool(v bool) *bool { return &v }
@@ -43,202 +39,296 @@ func PtrString(v string) *string { return &v }
func PtrTime(v time.Time) *time.Time { return &v }
type NullableBool struct {
Value bool
ExplicitNull bool
value *bool
isSet bool
}
func (v NullableBool) Get() *bool {
return v.value
}
func (v *NullableBool) Set(val *bool) {
v.value = val
v.isSet = true
}
func (v NullableBool) IsSet() bool {
return v.isSet
}
func (v *NullableBool) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableBool(val *bool) *NullableBool {
return &NullableBool{value: val, isSet: true}
}
func (v NullableBool) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull && v.Value:
return nil, ErrInvalidNullable
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableBool) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}
type NullableInt struct {
Value int
ExplicitNull bool
value *int
isSet bool
}
func (v NullableInt) Get() *int {
return v.value
}
func (v *NullableInt) Set(val *int) {
v.value = val
v.isSet = true
}
func (v NullableInt) IsSet() bool {
return v.isSet
}
func (v *NullableInt) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableInt(val *int) *NullableInt {
return &NullableInt{value: val, isSet: true}
}
func (v NullableInt) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull && v.Value != 0:
return nil, ErrInvalidNullable
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableInt) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}
type NullableInt32 struct {
Value int32
ExplicitNull bool
value *int32
isSet bool
}
func (v NullableInt32) Get() *int32 {
return v.value
}
func (v *NullableInt32) Set(val *int32) {
v.value = val
v.isSet = true
}
func (v NullableInt32) IsSet() bool {
return v.isSet
}
func (v *NullableInt32) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableInt32(val *int32) *NullableInt32 {
return &NullableInt32{value: val, isSet: true}
}
func (v NullableInt32) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull && v.Value != 0:
return nil, ErrInvalidNullable
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableInt32) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}
type NullableInt64 struct {
Value int64
ExplicitNull bool
value *int64
isSet bool
}
func (v NullableInt64) Get() *int64 {
return v.value
}
func (v *NullableInt64) Set(val *int64) {
v.value = val
v.isSet = true
}
func (v NullableInt64) IsSet() bool {
return v.isSet
}
func (v *NullableInt64) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableInt64(val *int64) *NullableInt64 {
return &NullableInt64{value: val, isSet: true}
}
func (v NullableInt64) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull && v.Value != 0:
return nil, ErrInvalidNullable
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableInt64) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}
type NullableFloat32 struct {
Value float32
ExplicitNull bool
value *float32
isSet bool
}
func (v NullableFloat32) Get() *float32 {
return v.value
}
func (v *NullableFloat32) Set(val *float32) {
v.value = val
v.isSet = true
}
func (v NullableFloat32) IsSet() bool {
return v.isSet
}
func (v *NullableFloat32) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableFloat32(val *float32) *NullableFloat32 {
return &NullableFloat32{value: val, isSet: true}
}
func (v NullableFloat32) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull && v.Value != 0.0:
return nil, ErrInvalidNullable
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableFloat32) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}
type NullableFloat64 struct {
Value float64
ExplicitNull bool
value *float64
isSet bool
}
func (v NullableFloat64) Get() *float64 {
return v.value
}
func (v *NullableFloat64) Set(val *float64) {
v.value = val
v.isSet = true
}
func (v NullableFloat64) IsSet() bool {
return v.isSet
}
func (v *NullableFloat64) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableFloat64(val *float64) *NullableFloat64 {
return &NullableFloat64{value: val, isSet: true}
}
func (v NullableFloat64) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull && v.Value != 0.0:
return nil, ErrInvalidNullable
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableFloat64) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}
type NullableString struct {
Value string
ExplicitNull bool
value *string
isSet bool
}
func (v NullableString) Get() *string {
return v.value
}
func (v *NullableString) Set(val *string) {
v.value = val
v.isSet = true
}
func (v NullableString) IsSet() bool {
return v.isSet
}
func (v *NullableString) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableString(val *string) *NullableString {
return &NullableString{value: val, isSet: true}
}
func (v NullableString) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull && v.Value != "":
return nil, ErrInvalidNullable
case v.ExplicitNull:
return []byte("null"), nil
default:
return json.Marshal(v.Value)
}
return json.Marshal(v.value)
}
func (v *NullableString) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
v.isSet = true
return json.Unmarshal(src, &v.value)
}
type NullableTime struct {
Value time.Time
ExplicitNull bool
value *time.Time
isSet bool
}
func (v NullableTime) Get() *time.Time {
return v.value
}
func (v *NullableTime) Set(val *time.Time) {
v.value = val
v.isSet = true
}
func (v NullableTime) IsSet() bool {
return v.isSet
}
func (v *NullableTime) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableTime(val *time.Time) *NullableTime {
return &NullableTime{value: val, isSet: true}
}
func (v NullableTime) MarshalJSON() ([]byte, error) {
switch {
case v.ExplicitNull && !v.Value.IsZero():
return nil, ErrInvalidNullable
case v.ExplicitNull:
return []byte("null"), nil
default:
return v.Value.MarshalJSON()
}
return v.value.MarshalJSON()
}
func (v *NullableTime) UnmarshalJSON(src []byte) error {
if bytes.Equal(src, []byte("null")) {
v.ExplicitNull = true
return nil
}
return json.Unmarshal(src, &v.Value)
}
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View File

@@ -34,23 +34,23 @@ GetMapProperty returns the MapProperty field if non-nil, zero value otherwise.
### GetMapPropertyOk
`func (o *AdditionalPropertiesClass) GetMapPropertyOk() (map[string]string, bool)`
`func (o *AdditionalPropertiesClass) GetMapPropertyOk() (*map[string]string, bool)`
GetMapPropertyOk returns a tuple with the MapProperty field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetMapProperty
`func (o *AdditionalPropertiesClass) SetMapProperty(v map[string]string)`
SetMapProperty sets MapProperty field to given value.
### HasMapProperty
`func (o *AdditionalPropertiesClass) HasMapProperty() bool`
HasMapProperty returns a boolean if a field has been set.
### SetMapProperty
`func (o *AdditionalPropertiesClass) SetMapProperty(v map[string]string)`
SetMapProperty gets a reference to the given map[string]string and assigns it to the MapProperty field.
### GetMapOfMapProperty
`func (o *AdditionalPropertiesClass) GetMapOfMapProperty() map[string]map[string]string`
@@ -59,23 +59,23 @@ GetMapOfMapProperty returns the MapOfMapProperty field if non-nil, zero value ot
### GetMapOfMapPropertyOk
`func (o *AdditionalPropertiesClass) GetMapOfMapPropertyOk() (map[string]map[string]string, bool)`
`func (o *AdditionalPropertiesClass) GetMapOfMapPropertyOk() (*map[string]map[string]string, bool)`
GetMapOfMapPropertyOk returns a tuple with the MapOfMapProperty field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetMapOfMapProperty
`func (o *AdditionalPropertiesClass) SetMapOfMapProperty(v map[string]map[string]string)`
SetMapOfMapProperty sets MapOfMapProperty field to given value.
### HasMapOfMapProperty
`func (o *AdditionalPropertiesClass) HasMapOfMapProperty() bool`
HasMapOfMapProperty returns a boolean if a field has been set.
### SetMapOfMapProperty
`func (o *AdditionalPropertiesClass) SetMapOfMapProperty(v map[string]map[string]string)`
SetMapOfMapProperty gets a reference to the given map[string]map[string]string and assigns it to the MapOfMapProperty field.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Some files were not shown because too many files have changed in this diff Show More