models

package
v0.0.5-dev.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: MIT Imports: 3 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorMessage

type ErrorMessage struct {

	// details
	Details string `json:"Details,omitempty"`

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

	// msg
	Msg string `json:"Msg,omitempty"`
}

ErrorMessage error message

swagger:model ErrorMessage

func (*ErrorMessage) ContextValidate

func (m *ErrorMessage) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this error message based on context it is used

func (*ErrorMessage) MarshalBinary

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

MarshalBinary interface implementation

func (*ErrorMessage) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ErrorMessage) Validate

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

Validate validates this error message

type Group

type Group struct {

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

	// members
	Members []string `json:"Members"`

	// name
	Name string `json:"Name,omitempty"`

	// type
	Type string `json:"Type,omitempty"`

	// Extra
	Extra map[string]interface{}
}

Group group

swagger:model Group

func (*Group) ContextValidate

func (m *Group) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this group based on context it is used

func (*Group) MarshalBinary

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

MarshalBinary interface implementation

func (*Group) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Group) Validate

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

Validate validates this group

type User

type User struct {

	// company
	Company string `json:"Company,omitempty"`

	// department
	Department string `json:"Department,omitempty"`

	// email
	Email string `json:"Email,omitempty"`

	// first name
	FirstName string `json:"FirstName,omitempty"`

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

	// job title
	JobTitle string `json:"JobTitle,omitempty"`

	// last name
	LastName string `json:"LastName,omitempty"`

	// mobile phone
	MobilePhone string `json:"MobilePhone,omitempty"`

	// must change password
	MustChangePassword bool `json:"MustChangePassword,omitempty"`

	// office phone
	OfficePhone string `json:"OfficePhone,omitempty"`

	// password
	Password string `json:"-"`

	// status
	Status string `json:"Status,omitempty"`

	// user name
	UserName string `json:"UserName,omitempty"`

	// user name
	DisplayName string `json:"DisplayName,omitempty"`

	Extra map[string]interface{}
}

User user

swagger:model User

func (*User) ContextValidate

func (m *User) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this user based on context it is used

func (*User) MarshalBinary

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

MarshalBinary interface implementation

func (*User) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*User) Validate

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

Validate validates this user

Jump to

Keyboard shortcuts

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