model

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Contact

type Contact struct {

	// id
	// Read Only: true
	ID int32 `json:"id,omitempty"`

	// name
	// Required: true
	// Min Length: 1
	Name *string `json:"name"`
}

Contact contact

swagger:model Contact

func (*Contact) MarshalBinary

func (m *Contact) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Contact) UnmarshalBinary

func (m *Contact) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Contact) UnmarshalJSON

func (m *Contact) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals this object while disallowing additional properties from JSON

func (*Contact) Validate

func (m *Contact) Validate(formats strfmt.Registry) error

Validate validates this contact

type Error

type Error struct {

	// Either same as HTTP Status Code OR >= 600 with HTTP Status Code 422.
	// Required: true
	Code *int32 `json:"code"`

	// message
	// Required: true
	Message *string `json:"message"`
}

Error error

swagger:model Error

func (*Error) MarshalBinary

func (m *Error) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

func (m *Error) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Error) UnmarshalJSON

func (m *Error) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals this object while disallowing additional properties from JSON

func (*Error) Validate

func (m *Error) Validate(formats strfmt.Registry) error

Validate validates this error

type SeekPagination added in v1.3.0

type SeekPagination struct {

	// Include items with ID greater than since_id.
	// Required: true
	// Minimum: 0
	SinceID *int32 `json:"since_id"`

	// Maximum amount of items to return.
	// Required: true
	// Maximum: 100
	// Minimum: 1
	Limit *int32 `json:"limit"`
}

SeekPagination Query paginated list starting with a specific item.

swagger:model SeekPagination

func (*SeekPagination) MarshalBinary added in v1.3.0

func (m *SeekPagination) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SeekPagination) UnmarshalBinary added in v1.3.0

func (m *SeekPagination) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SeekPagination) UnmarshalJSON added in v1.3.0

func (m *SeekPagination) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals this object while disallowing additional properties from JSON

func (*SeekPagination) Validate added in v1.3.0

func (m *SeekPagination) Validate(formats strfmt.Registry) error

Validate validates this seek pagination

Jump to

Keyboard shortcuts

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