Documentation ¶
Index ¶
- func CreateApiResponseFromDiscriminatorValue(...) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, ...)
- func CreateCategoryFromDiscriminatorValue(...) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, ...)
- func CreateOrderFromDiscriminatorValue(...) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, ...)
- func CreatePetFromDiscriminatorValue(...) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, ...)
- func CreateTagFromDiscriminatorValue(...) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, ...)
- func CreateUserFromDiscriminatorValue(...) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, ...)
- func ParseOrder_status(v string) (any, error)
- func ParsePet_status(v string) (any, error)
- func SerializeOrder_status(values []Order_status) []string
- func SerializePet_status(values []Pet_status) []string
- type ApiResponse
- func (m *ApiResponse) GetAdditionalData() map[string]any
- func (m *ApiResponse) GetCode() *int32
- func (m *ApiResponse) GetFieldDeserializers() ...
- func (m *ApiResponse) GetMessage() *string
- func (m *ApiResponse) GetTypeEscaped() *string
- func (m *ApiResponse) Serialize(...) error
- func (m *ApiResponse) SetAdditionalData(value map[string]any)
- func (m *ApiResponse) SetCode(value *int32)
- func (m *ApiResponse) SetMessage(value *string)
- func (m *ApiResponse) SetTypeEscaped(value *string)
- type ApiResponseable
- type Category
- func (m *Category) GetAdditionalData() map[string]any
- func (m *Category) GetFieldDeserializers() ...
- func (m *Category) GetId() *int64
- func (m *Category) GetName() *string
- func (m *Category) Serialize(...) error
- func (m *Category) SetAdditionalData(value map[string]any)
- func (m *Category) SetId(value *int64)
- func (m *Category) SetName(value *string)
- type Categoryable
- type Order
- func (m *Order) GetAdditionalData() map[string]any
- func (m *Order) GetComplete() *bool
- func (m *Order) GetFieldDeserializers() ...
- func (m *Order) GetId() *int64
- func (m *Order) GetPetId() *int64
- func (m *Order) GetQuantity() *int32
- func (m *Order) GetShipDate() *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time
- func (m *Order) GetStatus() *Order_status
- func (m *Order) Serialize(...) error
- func (m *Order) SetAdditionalData(value map[string]any)
- func (m *Order) SetComplete(value *bool)
- func (m *Order) SetId(value *int64)
- func (m *Order) SetPetId(value *int64)
- func (m *Order) SetQuantity(value *int32)
- func (m *Order) SetShipDate(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
- func (m *Order) SetStatus(value *Order_status)
- type Order_status
- type Orderable
- type Pet
- func (m *Pet) GetAdditionalData() map[string]any
- func (m *Pet) GetCategory() Categoryable
- func (m *Pet) GetFieldDeserializers() ...
- func (m *Pet) GetId() *int64
- func (m *Pet) GetName() *string
- func (m *Pet) GetPhotoUrls() []string
- func (m *Pet) GetStatus() *Pet_status
- func (m *Pet) GetTags() []Tagable
- func (m *Pet) Serialize(...) error
- func (m *Pet) SetAdditionalData(value map[string]any)
- func (m *Pet) SetCategory(value Categoryable)
- func (m *Pet) SetId(value *int64)
- func (m *Pet) SetName(value *string)
- func (m *Pet) SetPhotoUrls(value []string)
- func (m *Pet) SetStatus(value *Pet_status)
- func (m *Pet) SetTags(value []Tagable)
- type Pet_status
- type Petable
- type Tag
- func (m *Tag) GetAdditionalData() map[string]any
- func (m *Tag) GetFieldDeserializers() ...
- func (m *Tag) GetId() *int64
- func (m *Tag) GetName() *string
- func (m *Tag) Serialize(...) error
- func (m *Tag) SetAdditionalData(value map[string]any)
- func (m *Tag) SetId(value *int64)
- func (m *Tag) SetName(value *string)
- type Tagable
- type User
- func (m *User) GetAdditionalData() map[string]any
- func (m *User) GetEmail() *string
- func (m *User) GetFieldDeserializers() ...
- func (m *User) GetFirstName() *string
- func (m *User) GetId() *int64
- func (m *User) GetLastName() *string
- func (m *User) GetPassword() *string
- func (m *User) GetPhone() *string
- func (m *User) GetUserStatus() *int32
- func (m *User) GetUsername() *string
- func (m *User) Serialize(...) error
- func (m *User) SetAdditionalData(value map[string]any)
- func (m *User) SetEmail(value *string)
- func (m *User) SetFirstName(value *string)
- func (m *User) SetId(value *int64)
- func (m *User) SetLastName(value *string)
- func (m *User) SetPassword(value *string)
- func (m *User) SetPhone(value *string)
- func (m *User) SetUserStatus(value *int32)
- func (m *User) SetUsername(value *string)
- type Userable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateApiResponseFromDiscriminatorValue ¶
func CreateApiResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)
CreateApiResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful
func CreateCategoryFromDiscriminatorValue ¶
func CreateCategoryFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)
CreateCategoryFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful
func CreateOrderFromDiscriminatorValue ¶
func CreateOrderFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)
CreateOrderFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful
func CreatePetFromDiscriminatorValue ¶
func CreatePetFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)
CreatePetFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful
func CreateTagFromDiscriminatorValue ¶
func CreateTagFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)
CreateTagFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful
func CreateUserFromDiscriminatorValue ¶
func CreateUserFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)
CreateUserFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful
func ParseOrder_status ¶
func ParsePet_status ¶
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 ¶
func (m *ApiResponse) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error
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 ¶
func (m *ApiResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error
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 ¶
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 ¶
func (m *Category) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error
GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful
func (*Category) GetId ¶
GetId gets the id property value. The id property returns a *int64 when successful
func (*Category) GetName ¶
GetName gets the name property value. The name property returns a *string when successful
func (*Category) Serialize ¶
func (m *Category) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error
Serialize serializes information the current object
func (*Category) SetAdditionalData ¶
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.
type Categoryable ¶
type Categoryable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetId() *int64 GetName() *string SetId(value *int64) SetName(value *string) }
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 ¶
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 ¶
GetComplete gets the complete property value. The complete property returns a *bool when successful
func (*Order) GetFieldDeserializers ¶
func (m *Order) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error
GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful
func (*Order) GetId ¶
GetId gets the id property value. The id property returns a *int64 when successful
func (*Order) GetPetId ¶
GetPetId gets the petId property value. The petId property returns a *int64 when successful
func (*Order) GetQuantity ¶
GetQuantity gets the quantity property value. The quantity property returns a *int32 when successful
func (*Order) GetShipDate ¶
func (m *Order) GetShipDate() *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time
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 ¶
func (m *Order) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error
Serialize serializes information the current object
func (*Order) SetAdditionalData ¶
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 ¶
SetComplete sets the complete property value. The complete property
func (*Order) SetQuantity ¶
SetQuantity sets the quantity property value. The quantity property
func (*Order) SetShipDate ¶
func (m *Order) SetShipDate(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
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 Orderable ¶
type Orderable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetComplete() *bool GetId() *int64 GetPetId() *int64 GetQuantity() *int32 GetShipDate() *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time GetStatus() *Order_status SetComplete(value *bool) SetId(value *int64) SetPetId(value *int64) SetQuantity(value *int32) SetShipDate(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) SetStatus(value *Order_status) }
type Pet ¶
type Pet struct {
// contains filtered or unexported fields
}
func (*Pet) GetAdditionalData ¶
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 ¶
func (m *Pet) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error
GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful
func (*Pet) GetId ¶
GetId gets the id property value. The id property returns a *int64 when successful
func (*Pet) GetName ¶
GetName gets the name property value. The name property returns a *string when successful
func (*Pet) GetPhotoUrls ¶
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 ¶
GetTags gets the tags property value. The tags property returns a []Tagable when successful
func (*Pet) Serialize ¶
func (m *Pet) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error
Serialize serializes information the current object
func (*Pet) SetAdditionalData ¶
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) SetPhotoUrls ¶
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
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 (*Tag) GetAdditionalData ¶
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 ¶
func (m *Tag) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error
GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful
func (*Tag) GetId ¶
GetId gets the id property value. The id property returns a *int64 when successful
func (*Tag) GetName ¶
GetName gets the name property value. The name property returns a *string when successful
func (*Tag) Serialize ¶
func (m *Tag) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error
Serialize serializes information the current object
func (*Tag) SetAdditionalData ¶
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.
type Tagable ¶
type Tagable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetId() *int64 GetName() *string SetId(value *int64) SetName(value *string) }
type User ¶
type User struct {
// contains filtered or unexported fields
}
func (*User) GetAdditionalData ¶
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 ¶
GetEmail gets the email property value. The email property returns a *string when successful
func (*User) GetFieldDeserializers ¶
func (m *User) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error
GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful
func (*User) GetFirstName ¶
GetFirstName gets the firstName property value. The firstName property returns a *string when successful
func (*User) GetId ¶
GetId gets the id property value. The id property returns a *int64 when successful
func (*User) GetLastName ¶
GetLastName gets the lastName property value. The lastName property returns a *string when successful
func (*User) GetPassword ¶
GetPassword gets the password property value. The password property returns a *string when successful
func (*User) GetPhone ¶
GetPhone gets the phone property value. The phone property returns a *string when successful
func (*User) GetUserStatus ¶
GetUserStatus gets the userStatus property value. User Status returns a *int32 when successful
func (*User) GetUsername ¶
GetUsername gets the username property value. The username property returns a *string when successful
func (*User) Serialize ¶
func (m *User) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error
Serialize serializes information the current object
func (*User) SetAdditionalData ¶
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) SetFirstName ¶
SetFirstName sets the firstName property value. The firstName property
func (*User) SetLastName ¶
SetLastName sets the lastName property value. The lastName property
func (*User) SetPassword ¶
SetPassword sets the password property value. The password property
func (*User) SetUserStatus ¶
SetUserStatus sets the userStatus property value. User Status
func (*User) SetUsername ¶
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) }