models

package
v0.0.0-...-036f9fd Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {

	// Error code
	// Required: true
	Code *int64 `json:"code"`

	// A detail description about the error message.
	//
	Description string `json:"description,omitempty"`

	// If there are more than one error list them out.
	// For example, list out validation errors by each field.
	//
	Error []*ErrorListItem `json:"error"`

	// Error message.
	// Required: true
	Message *string `json:"message"`

	// Preferably an url with more details about the error.
	//
	MoreInfo string `json:"moreInfo,omitempty"`
}

Error Error object returned with 4XX HTTP status

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

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

Validate validates this error

type ErrorListItem

type ErrorListItem struct {

	// Error code
	// Required: true
	Code *string `json:"code"`

	// Description about individual errors occurred
	//
	// Required: true
	Message *string `json:"message"`
}

ErrorListItem Description of individual errors that may have occurred during a request.

swagger:model ErrorListItem

func (*ErrorListItem) MarshalBinary

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

MarshalBinary interface implementation

func (*ErrorListItem) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ErrorListItem) Validate

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

Validate validates this error list item

type Principal

type Principal struct {

	// tenant
	Tenant string `json:"tenant,omitempty"`

	// token
	Token string `json:"token,omitempty"`

	// username
	Username string `json:"username,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

Jump to

Keyboard shortcuts

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