models

package
v3.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2019 License: Apache-2.0 Imports: 9 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BadRequest

type BadRequest struct {

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

BadRequest bad request swagger:model BadRequest

func (BadRequest) Error

func (o BadRequest) Error() string

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 Branch added in v1.14.0

type Branch string

Branch branch swagger:model Branch

const (
	// BranchMaster captures enum value "master"
	BranchMaster Branch = "master"
	// BranchDEVBRANCH captures enum value "DEV_BRANCH"
	BranchDEVBRANCH Branch = "DEV_BRANCH"
	// BranchTest captures enum value "test"
	BranchTest Branch = "test"
)

func (Branch) Validate added in v1.14.0

func (m Branch) Validate(formats strfmt.Registry) error

Validate validates this branch

type Category

type Category string

Category category swagger:model Category

const (
	// CategoryA captures enum value "a"
	CategoryA Category = "a"
	// CategoryB captures enum value "b"
	CategoryB Category = "b"
)

func (Category) Validate

func (m Category) Validate(formats strfmt.Registry) error

Validate validates this category

type Deployment

type Deployment struct {

	// application
	Application string `json:"application,omitempty"`

	// date
	Date strfmt.DateTime `json:"date,omitempty"`

	// environment
	Environment string `json:"environment,omitempty"`

	// version
	Version string `json:"version,omitempty"`
}

Deployment deployment swagger:model Deployment

func (*Deployment) MarshalBinary

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

MarshalBinary interface implementation

func (*Deployment) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Deployment) Validate

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

Validate validates this deployment

type HealthCheckInput

type HealthCheckInput struct {
}

HealthCheckInput holds the input parameters for a healthCheck operation.

func (HealthCheckInput) Path

func (i HealthCheckInput) Path() (string, error)

Path returns the URI path for the input.

func (HealthCheckInput) Validate

func (i HealthCheckInput) Validate() error

Validate returns an error if any of the HealthCheckInput parameters don't satisfy the requirements from the swagger yml file.

type InternalError

type InternalError struct {

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

InternalError internal error swagger:model InternalError

func (InternalError) Error

func (o InternalError) Error() string

func (*InternalError) MarshalBinary

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

MarshalBinary interface implementation

func (*InternalError) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*InternalError) Validate

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

Validate validates this internal error

type NoRangeThingWithCompositeAttributes

type NoRangeThingWithCompositeAttributes struct {

	// branch
	// Required: true
	Branch *string `json:"branch"`

	// date
	// Required: true
	Date *strfmt.DateTime `json:"date"`

	// name
	// Required: true
	Name *string `json:"name"`

	// version
	Version int64 `json:"version,omitempty"`
}

NoRangeThingWithCompositeAttributes no range thing with composite attributes swagger:model NoRangeThingWithCompositeAttributes

func (*NoRangeThingWithCompositeAttributes) MarshalBinary

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

MarshalBinary interface implementation

func (*NoRangeThingWithCompositeAttributes) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NoRangeThingWithCompositeAttributes) Validate

Validate validates this no range thing with composite attributes

type Object

type Object struct {

	// bar
	Bar string `json:"bar,omitempty"`

	// foo
	Foo string `json:"foo,omitempty"`
}

Object object swagger:model Object

func (*Object) MarshalBinary

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

MarshalBinary interface implementation

func (*Object) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Object) Validate

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

Validate validates this object

type SimpleThing

type SimpleThing struct {

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

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

SimpleThing simple thing swagger:model SimpleThing

func (*SimpleThing) MarshalBinary

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

MarshalBinary interface implementation

func (*SimpleThing) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SimpleThing) Validate

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

Validate validates this simple thing

type TeacherSharingRule added in v1.12.0

type TeacherSharingRule struct {

	// app
	App string `json:"app,omitempty"`

	// district
	District string `json:"district,omitempty"`

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

	// school
	School string `json:"school,omitempty"`

	// sections
	Sections []string `json:"sections"`

	// teacher
	Teacher string `json:"teacher,omitempty"`
}

TeacherSharingRule teacher sharing rule swagger:model TeacherSharingRule

func (*TeacherSharingRule) MarshalBinary added in v1.12.0

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

MarshalBinary interface implementation

func (*TeacherSharingRule) UnmarshalBinary added in v1.12.0

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

UnmarshalBinary interface implementation

func (*TeacherSharingRule) Validate added in v1.12.0

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

Validate validates this teacher sharing rule

type Thing

type Thing struct {

	// category
	Category Category `json:"category,omitempty"`

	// created at
	CreatedAt strfmt.DateTime `json:"createdAt,omitempty"`

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

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

	// nested object
	NestedObject *Object `json:"nestedObject,omitempty"`

	// version
	Version int64 `json:"version,omitempty"`
}

Thing thing swagger:model Thing

func (*Thing) MarshalBinary

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

MarshalBinary interface implementation

func (*Thing) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Thing) Validate

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

Validate validates this thing

type ThingWithCompositeAttributes added in v1.12.0

type ThingWithCompositeAttributes struct {

	// branch
	// Required: true
	Branch *string `json:"branch"`

	// date
	// Required: true
	Date *strfmt.DateTime `json:"date"`

	// name
	// Required: true
	Name *string `json:"name"`

	// version
	Version int64 `json:"version,omitempty"`
}

ThingWithCompositeAttributes thing with composite attributes swagger:model ThingWithCompositeAttributes

func (*ThingWithCompositeAttributes) MarshalBinary added in v1.12.0

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

MarshalBinary interface implementation

func (*ThingWithCompositeAttributes) UnmarshalBinary added in v1.12.0

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

UnmarshalBinary interface implementation

func (*ThingWithCompositeAttributes) Validate added in v1.12.0

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

Validate validates this thing with composite attributes

type ThingWithCompositeEnumAttributes added in v1.14.0

type ThingWithCompositeEnumAttributes struct {

	// branch ID
	// Required: true
	BranchID Branch `json:"branchID"`

	// date
	// Required: true
	Date *strfmt.DateTime `json:"date"`

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

ThingWithCompositeEnumAttributes thing with composite enum attributes swagger:model ThingWithCompositeEnumAttributes

func (*ThingWithCompositeEnumAttributes) MarshalBinary added in v1.14.0

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

MarshalBinary interface implementation

func (*ThingWithCompositeEnumAttributes) UnmarshalBinary added in v1.14.0

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

UnmarshalBinary interface implementation

func (*ThingWithCompositeEnumAttributes) Validate added in v1.14.0

Validate validates this thing with composite enum attributes

type ThingWithDateRange

type ThingWithDateRange struct {

	// date
	Date strfmt.DateTime `json:"date,omitempty"`

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

ThingWithDateRange thing with date range swagger:model ThingWithDateRange

func (*ThingWithDateRange) MarshalBinary

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

MarshalBinary interface implementation

func (*ThingWithDateRange) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ThingWithDateRange) Validate

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

Validate validates this thing with date range

type ThingWithDateTimeComposite added in v1.14.1

type ThingWithDateTimeComposite struct {

	// created
	Created strfmt.DateTime `json:"created,omitempty"`

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

	// resource
	Resource string `json:"resource,omitempty"`

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

ThingWithDateTimeComposite thing with date time composite swagger:model ThingWithDateTimeComposite

func (*ThingWithDateTimeComposite) MarshalBinary added in v1.14.1

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

MarshalBinary interface implementation

func (*ThingWithDateTimeComposite) UnmarshalBinary added in v1.14.1

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

UnmarshalBinary interface implementation

func (*ThingWithDateTimeComposite) Validate added in v1.14.1

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

Validate validates this thing with date time composite

type ThingWithMatchingKeys

type ThingWithMatchingKeys struct {

	// assoc ID
	AssocID string `json:"assocID,omitempty"`

	// assoc type
	AssocType string `json:"assocType,omitempty"`

	// bear
	Bear string `json:"bear,omitempty"`

	// created
	Created strfmt.DateTime `json:"created,omitempty"`
}

ThingWithMatchingKeys thing with matching keys swagger:model ThingWithMatchingKeys

func (*ThingWithMatchingKeys) MarshalBinary

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

MarshalBinary interface implementation

func (*ThingWithMatchingKeys) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ThingWithMatchingKeys) Validate

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

Validate validates this thing with matching keys

type ThingWithRequiredFields added in v1.13.0

type ThingWithRequiredFields struct {

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

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

ThingWithRequiredFields thing with required fields swagger:model ThingWithRequiredFields

func (*ThingWithRequiredFields) MarshalBinary added in v1.13.0

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

MarshalBinary interface implementation

func (*ThingWithRequiredFields) UnmarshalBinary added in v1.13.0

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

UnmarshalBinary interface implementation

func (*ThingWithRequiredFields) Validate added in v1.13.0

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

Validate validates this thing with required fields

type ThingWithRequiredFields2

type ThingWithRequiredFields2 struct {

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

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

ThingWithRequiredFields2 thing with required fields2 swagger:model ThingWithRequiredFields2

func (*ThingWithRequiredFields2) MarshalBinary

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

MarshalBinary interface implementation

func (*ThingWithRequiredFields2) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ThingWithRequiredFields2) Validate

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

Validate validates this thing with required fields2

type ThingWithUnderscores added in v1.7.1

type ThingWithUnderscores struct {

	// id app
	IDApp string `json:"id_app,omitempty"`
}

ThingWithUnderscores thing with underscores swagger:model ThingWithUnderscores

func (*ThingWithUnderscores) MarshalBinary added in v1.7.1

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

MarshalBinary interface implementation

func (*ThingWithUnderscores) UnmarshalBinary added in v1.7.1

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

UnmarshalBinary interface implementation

func (*ThingWithUnderscores) Validate added in v1.7.1

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

Validate validates this thing with underscores

Directories

Path Synopsis
module

Jump to

Keyboard shortcuts

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