models

package
v0.0.0-...-a755168 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateErrorFromDiscriminatorValue

CreateErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value

func CreatePetFromDiscriminatorValue

CreatePetFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value

Types

type Error

type Error struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError
	// contains filtered or unexported fields
}

Error

func NewError

func NewError() *Error

NewError instantiates a new Error and sets the default values.

func (*Error) Error

func (m *Error) Error() string

Error the primary error message.

func (*Error) GetAdditionalData

func (m *Error) GetAdditionalData() map[string]any

GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

func (*Error) GetCode

func (m *Error) GetCode() *int32

GetCode gets the code property value. The code property

func (*Error) GetFieldDeserializers

GetFieldDeserializers the deserialization information for the current model

func (*Error) GetMessage

func (m *Error) GetMessage() *string

GetMessage gets the message property value. The message property

func (*Error) Serialize

Serialize serializes information the current object

func (*Error) SetAdditionalData

func (m *Error) SetAdditionalData(value map[string]any)

SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

func (*Error) SetCode

func (m *Error) SetCode(value *int32)

SetCode sets the code property value. The code property

func (*Error) SetMessage

func (m *Error) SetMessage(value *string)

SetMessage sets the message property value. The message property

type Pet

type Pet struct {
	// contains filtered or unexported fields
}

Pet

func NewPet

func NewPet() *Pet

NewPet instantiates a new Pet and sets the default values.

func (*Pet) GetAdditionalData

func (m *Pet) GetAdditionalData() map[string]any

GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

func (*Pet) GetFieldDeserializers

GetFieldDeserializers the deserialization information for the current model

func (*Pet) GetId

func (m *Pet) GetId() *int64

GetId gets the id property value. The id property

func (*Pet) GetName

func (m *Pet) GetName() *string

GetName gets the name property value. The name property

func (*Pet) GetTag

func (m *Pet) GetTag() *string

GetTag gets the tag property value. The tag property

func (*Pet) Serialize

Serialize serializes information the current object

func (*Pet) SetAdditionalData

func (m *Pet) SetAdditionalData(value map[string]any)

SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

func (*Pet) SetId

func (m *Pet) SetId(value *int64)

SetId sets the id property value. The id property

func (*Pet) SetName

func (m *Pet) SetName(value *string)

SetName sets the name property value. The name property

func (*Pet) SetTag

func (m *Pet) SetTag(value *string)

SetTag sets the tag property value. The tag property

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL