models

package
v0.0.0-...-f3ca651 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BadRequest

type BadRequest struct {

	// error type
	ErrorType string `json:"error_type,omitempty"`

	// message
	Message string `json:"message,omitempty"`
}

BadRequest bad request swagger:model BadRequest

func (*BadRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*BadRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*BadRequest) Validate

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

Validate validates this bad request

type InternalServerError

type InternalServerError struct {

	// error type
	ErrorType string `json:"error_type,omitempty"`

	// message
	Message string `json:"message,omitempty"`
}

InternalServerError internal server error swagger:model InternalServerError

func (*InternalServerError) MarshalBinary

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

MarshalBinary interface implementation

func (*InternalServerError) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*InternalServerError) Validate

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

Validate validates this internal server error

type NotFoundError

type NotFoundError struct {

	// error type
	ErrorType string `json:"error_type,omitempty"`

	// message
	Message string `json:"message,omitempty"`
}

NotFoundError not found error swagger:model NotFoundError

func (*NotFoundError) MarshalBinary

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

MarshalBinary interface implementation

func (*NotFoundError) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NotFoundError) Validate

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

Validate validates this not found error

type Principal

type Principal struct {

	// is service
	IsService bool `json:"is_service,omitempty"`

	// permissions
	Permissions string `json:"permissions,omitempty"`

	// user id
	UserID string `json:"user_id,omitempty"`
}

Principal principal swagger:model Principal

func (*Principal) MarshalBinary

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

MarshalBinary interface implementation

func (*Principal) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Principal) Validate

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

Validate validates this principal

type QueryResult

type QueryResult struct {

	// records
	// Required: true
	Records []*RecordOutput `json:"records"`
}

QueryResult query result swagger:model QueryResult

func (*QueryResult) MarshalBinary

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

MarshalBinary interface implementation

func (*QueryResult) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*QueryResult) Validate

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

Validate validates this query result

type RecordInput

type RecordInput struct {

	// id
	ID string `json:"id,omitempty"`

	// path
	// Required: true
	Path *string `json:"path"`

	// properties
	// Required: true
	Properties map[string]interface{} `json:"properties"`
}

RecordInput record input swagger:model RecordInput

func (*RecordInput) MarshalBinary

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

MarshalBinary interface implementation

func (*RecordInput) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RecordInput) Validate

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

Validate validates this record input

type RecordOutput

type RecordOutput struct {

	// created at
	// Required: true
	CreatedAt *string `json:"created_at"`

	// created by
	// Required: true
	CreatedBy *string `json:"created_by"`

	// id
	// Required: true
	ID *string `json:"id"`

	// parent
	// Required: true
	Parent *string `json:"parent"`

	// path
	// Required: true
	Path *string `json:"path"`

	// properties
	// Required: true
	Properties map[string]interface{} `json:"properties"`

	// updated at
	// Required: true
	UpdatedAt *string `json:"updated_at"`

	// updated by
	// Required: true
	UpdatedBy *string `json:"updated_by"`
}

RecordOutput record output swagger:model RecordOutput

func (*RecordOutput) MarshalBinary

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

MarshalBinary interface implementation

func (*RecordOutput) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RecordOutput) Validate

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

Validate validates this record output

type ValidationError

type ValidationError struct {

	// error type
	ErrorType string `json:"error_type,omitempty"`

	// message
	Message string `json:"message,omitempty"`
}

ValidationError validation error swagger:model ValidationError

func (*ValidationError) MarshalBinary

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

MarshalBinary interface implementation

func (*ValidationError) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ValidationError) Validate

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

Validate validates this validation error

Jump to

Keyboard shortcuts

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