models

package
v0.0.0-...-16f5455 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateApiResponseFromDiscriminatorValue

CreateApiResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful

func CreateCategoryFromDiscriminatorValue

CreateCategoryFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful

func CreateOrderFromDiscriminatorValue

CreateOrderFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful

func CreatePetFromDiscriminatorValue

CreatePetFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful

func CreateTagFromDiscriminatorValue

CreateTagFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful

func CreateUserFromDiscriminatorValue

CreateUserFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful

func ParseOrder_status

func ParseOrder_status(v string) (any, error)

func ParsePet_status

func ParsePet_status(v string) (any, error)

func SerializeOrder_status

func SerializeOrder_status(values []Order_status) []string

func SerializePet_status

func SerializePet_status(values []Pet_status) []string

Types

type ApiResponse

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

func NewApiResponse

func NewApiResponse() *ApiResponse

NewApiResponse instantiates a new ApiResponse and sets the default values.

func (*ApiResponse) GetAdditionalData

func (m *ApiResponse) 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. returns a map[string]any when successful

func (*ApiResponse) GetCode

func (m *ApiResponse) GetCode() *int32

GetCode gets the code property value. The code property returns a *int32 when successful

func (*ApiResponse) GetFieldDeserializers

GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful

func (*ApiResponse) GetMessage

func (m *ApiResponse) GetMessage() *string

GetMessage gets the message property value. The message property returns a *string when successful

func (*ApiResponse) GetTypeEscaped

func (m *ApiResponse) GetTypeEscaped() *string

GetTypeEscaped gets the type property value. The type property returns a *string when successful

func (*ApiResponse) Serialize

Serialize serializes information the current object

func (*ApiResponse) SetAdditionalData

func (m *ApiResponse) 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 (*ApiResponse) SetCode

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

SetCode sets the code property value. The code property

func (*ApiResponse) SetMessage

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

SetMessage sets the message property value. The message property

func (*ApiResponse) SetTypeEscaped

func (m *ApiResponse) SetTypeEscaped(value *string)

SetTypeEscaped sets the type property value. The type property

type ApiResponseable

type ApiResponseable interface {
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
	GetCode() *int32
	GetMessage() *string
	GetTypeEscaped() *string
	SetCode(value *int32)
	SetMessage(value *string)
	SetTypeEscaped(value *string)
}

type Category

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

func NewCategory

func NewCategory() *Category

NewCategory instantiates a new Category and sets the default values.

func (*Category) GetAdditionalData

func (m *Category) 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. returns a map[string]any when successful

func (*Category) GetFieldDeserializers

GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful

func (*Category) GetId

func (m *Category) GetId() *int64

GetId gets the id property value. The id property returns a *int64 when successful

func (*Category) GetName

func (m *Category) GetName() *string

GetName gets the name property value. The name property returns a *string when successful

func (*Category) Serialize

Serialize serializes information the current object

func (*Category) SetAdditionalData

func (m *Category) 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 (*Category) SetId

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

SetId sets the id property value. The id property

func (*Category) SetName

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

SetName sets the name property value. The name property

type Order

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

func NewOrder

func NewOrder() *Order

NewOrder instantiates a new Order and sets the default values.

func (*Order) GetAdditionalData

func (m *Order) 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. returns a map[string]any when successful

func (*Order) GetComplete

func (m *Order) GetComplete() *bool

GetComplete gets the complete property value. The complete property returns a *bool when successful

func (*Order) GetFieldDeserializers

GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful

func (*Order) GetId

func (m *Order) GetId() *int64

GetId gets the id property value. The id property returns a *int64 when successful

func (*Order) GetPetId

func (m *Order) GetPetId() *int64

GetPetId gets the petId property value. The petId property returns a *int64 when successful

func (*Order) GetQuantity

func (m *Order) GetQuantity() *int32

GetQuantity gets the quantity property value. The quantity property returns a *int32 when successful

func (*Order) GetShipDate

GetShipDate gets the shipDate property value. The shipDate property returns a *Time when successful

func (*Order) GetStatus

func (m *Order) GetStatus() *Order_status

GetStatus gets the status property value. Order Status returns a *Order_status when successful

func (*Order) Serialize

Serialize serializes information the current object

func (*Order) SetAdditionalData

func (m *Order) 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 (*Order) SetComplete

func (m *Order) SetComplete(value *bool)

SetComplete sets the complete property value. The complete property

func (*Order) SetId

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

SetId sets the id property value. The id property

func (*Order) SetPetId

func (m *Order) SetPetId(value *int64)

SetPetId sets the petId property value. The petId property

func (*Order) SetQuantity

func (m *Order) SetQuantity(value *int32)

SetQuantity sets the quantity property value. The quantity property

func (*Order) SetShipDate

SetShipDate sets the shipDate property value. The shipDate property

func (*Order) SetStatus

func (m *Order) SetStatus(value *Order_status)

SetStatus sets the status property value. Order Status

type Order_status

type Order_status int

Order Status

const (
	PLACED_ORDER_STATUS Order_status = iota
	APPROVED_ORDER_STATUS
	DELIVERED_ORDER_STATUS
)

func (Order_status) String

func (i Order_status) String() string

type Pet

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

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. returns a map[string]any when successful

func (*Pet) GetCategory

func (m *Pet) GetCategory() Categoryable

GetCategory gets the category property value. The category property returns a Categoryable when successful

func (*Pet) GetFieldDeserializers

GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful

func (*Pet) GetId

func (m *Pet) GetId() *int64

GetId gets the id property value. The id property returns a *int64 when successful

func (*Pet) GetName

func (m *Pet) GetName() *string

GetName gets the name property value. The name property returns a *string when successful

func (*Pet) GetPhotoUrls

func (m *Pet) GetPhotoUrls() []string

GetPhotoUrls gets the photoUrls property value. The photoUrls property returns a []string when successful

func (*Pet) GetStatus

func (m *Pet) GetStatus() *Pet_status

GetStatus gets the status property value. pet status in the store returns a *Pet_status when successful

func (*Pet) GetTags

func (m *Pet) GetTags() []Tagable

GetTags gets the tags property value. The tags property returns a []Tagable when successful

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) SetCategory

func (m *Pet) SetCategory(value Categoryable)

SetCategory sets the category property value. The category property

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) SetPhotoUrls

func (m *Pet) SetPhotoUrls(value []string)

SetPhotoUrls sets the photoUrls property value. The photoUrls property

func (*Pet) SetStatus

func (m *Pet) SetStatus(value *Pet_status)

SetStatus sets the status property value. pet status in the store

func (*Pet) SetTags

func (m *Pet) SetTags(value []Tagable)

SetTags sets the tags property value. The tags property

type Pet_status

type Pet_status int

pet status in the store

const (
	AVAILABLE_PET_STATUS Pet_status = iota
	PENDING_PET_STATUS
	SOLD_PET_STATUS
)

func (Pet_status) String

func (i Pet_status) String() string

type Petable

type Petable interface {
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
	GetCategory() Categoryable
	GetId() *int64
	GetName() *string
	GetPhotoUrls() []string
	GetStatus() *Pet_status
	GetTags() []Tagable
	SetCategory(value Categoryable)
	SetId(value *int64)
	SetName(value *string)
	SetPhotoUrls(value []string)
	SetStatus(value *Pet_status)
	SetTags(value []Tagable)
}

type Tag

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

func NewTag

func NewTag() *Tag

NewTag instantiates a new Tag and sets the default values.

func (*Tag) GetAdditionalData

func (m *Tag) 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. returns a map[string]any when successful

func (*Tag) GetFieldDeserializers

GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful

func (*Tag) GetId

func (m *Tag) GetId() *int64

GetId gets the id property value. The id property returns a *int64 when successful

func (*Tag) GetName

func (m *Tag) GetName() *string

GetName gets the name property value. The name property returns a *string when successful

func (*Tag) Serialize

Serialize serializes information the current object

func (*Tag) SetAdditionalData

func (m *Tag) 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 (*Tag) SetId

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

SetId sets the id property value. The id property

func (*Tag) SetName

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

SetName sets the name property value. The name property

type User

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

func NewUser

func NewUser() *User

NewUser instantiates a new User and sets the default values.

func (*User) GetAdditionalData

func (m *User) 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. returns a map[string]any when successful

func (*User) GetEmail

func (m *User) GetEmail() *string

GetEmail gets the email property value. The email property returns a *string when successful

func (*User) GetFieldDeserializers

GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful

func (*User) GetFirstName

func (m *User) GetFirstName() *string

GetFirstName gets the firstName property value. The firstName property returns a *string when successful

func (*User) GetId

func (m *User) GetId() *int64

GetId gets the id property value. The id property returns a *int64 when successful

func (*User) GetLastName

func (m *User) GetLastName() *string

GetLastName gets the lastName property value. The lastName property returns a *string when successful

func (*User) GetPassword

func (m *User) GetPassword() *string

GetPassword gets the password property value. The password property returns a *string when successful

func (*User) GetPhone

func (m *User) GetPhone() *string

GetPhone gets the phone property value. The phone property returns a *string when successful

func (*User) GetUserStatus

func (m *User) GetUserStatus() *int32

GetUserStatus gets the userStatus property value. User Status returns a *int32 when successful

func (*User) GetUsername

func (m *User) GetUsername() *string

GetUsername gets the username property value. The username property returns a *string when successful

func (*User) Serialize

Serialize serializes information the current object

func (*User) SetAdditionalData

func (m *User) 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 (*User) SetEmail

func (m *User) SetEmail(value *string)

SetEmail sets the email property value. The email property

func (*User) SetFirstName

func (m *User) SetFirstName(value *string)

SetFirstName sets the firstName property value. The firstName property

func (*User) SetId

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

SetId sets the id property value. The id property

func (*User) SetLastName

func (m *User) SetLastName(value *string)

SetLastName sets the lastName property value. The lastName property

func (*User) SetPassword

func (m *User) SetPassword(value *string)

SetPassword sets the password property value. The password property

func (*User) SetPhone

func (m *User) SetPhone(value *string)

SetPhone sets the phone property value. The phone property

func (*User) SetUserStatus

func (m *User) SetUserStatus(value *int32)

SetUserStatus sets the userStatus property value. User Status

func (*User) SetUsername

func (m *User) SetUsername(value *string)

SetUsername sets the username property value. The username property

type Userable

type Userable interface {
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
	GetEmail() *string
	GetFirstName() *string
	GetId() *int64
	GetLastName() *string
	GetPassword() *string
	GetPhone() *string
	GetUsername() *string
	GetUserStatus() *int32
	SetEmail(value *string)
	SetFirstName(value *string)
	SetId(value *int64)
	SetLastName(value *string)
	SetPassword(value *string)
	SetPhone(value *string)
	SetUsername(value *string)
	SetUserStatus(value *int32)
}

Jump to

Keyboard shortcuts

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