model

package
v0.0.0-...-b26f218 Latest Latest
Warning

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

Go to latest
Published: May 14, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// TranslationFileStorageTypeLocal captures enum value "local"
	TranslationFileStorageTypeLocal string = "local"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Category

type Category struct {

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

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

Category category

swagger:model Category

func (*Category) ContextValidate

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

ContextValidate validates this category based on context it is used

func (*Category) MarshalBinary

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

MarshalBinary interface implementation

func (*Category) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Category) UnmarshalJSON

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

UnmarshalJSON unmarshals this object while disallowing additional properties from JSON

func (*Category) Validate

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

Validate validates this category

type Error

type Error struct {

	// HTTP status
	// Required: true
	Code *int32 `json:"code"`

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

Error error

swagger:model Error

func (*Error) ContextValidate

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

ContextValidate validates this error based on context it is used

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 Identifier

type Identifier struct {

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

	// description
	Description string `json:"description,omitempty"`

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

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

	// platforms
	// Required: true
	Platforms []string `json:"platforms"`

	// text plural
	TextPlural string `json:"text_plural,omitempty"`

	// text singular
	TextSingular string `json:"text_singular,omitempty"`
}

Identifier identifier

swagger:model Identifier

func (*Identifier) ContextValidate

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

ContextValidate validate this identifier based on the context it is used

func (*Identifier) MarshalBinary

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

MarshalBinary interface implementation

func (*Identifier) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Identifier) UnmarshalJSON

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

UnmarshalJSON unmarshals this object while disallowing additional properties from JSON

func (*Identifier) Validate

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

Validate validates this identifier

type Info

type Info struct {

	// configuration
	// Required: true
	Configuration *InfoConfiguration `json:"configuration"`

	// user
	// Required: true
	User *User `json:"user"`
}

Info info

swagger:model Info

func (*Info) ContextValidate

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

ContextValidate validate this info based on the context it is used

func (*Info) MarshalBinary

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

MarshalBinary interface implementation

func (*Info) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Info) UnmarshalJSON

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

UnmarshalJSON unmarshals this object while disallowing additional properties from JSON

func (*Info) Validate

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

Validate validates this info

type InfoConfiguration

type InfoConfiguration struct {

	// has auto translation
	// Required: true
	HasAutoTranslation *bool `json:"has_auto_translation"`
}

InfoConfiguration info configuration

swagger:model InfoConfiguration

func (*InfoConfiguration) ContextValidate

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

ContextValidate validates this info configuration based on context it is used

func (*InfoConfiguration) MarshalBinary

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

MarshalBinary interface implementation

func (*InfoConfiguration) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*InfoConfiguration) UnmarshalJSON

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

UnmarshalJSON unmarshals this object while disallowing additional properties from JSON

func (*InfoConfiguration) Validate

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

Validate validates this info configuration

type Language

type Language struct {

	// code
	// Required: true
	// Min Length: 2
	Code *string `json:"code"`

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

Language language

swagger:model Language

func (*Language) ContextValidate

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

ContextValidate validates this language based on context it is used

func (*Language) MarshalBinary

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

MarshalBinary interface implementation

func (*Language) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Language) UnmarshalJSON

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

UnmarshalJSON unmarshals this object while disallowing additional properties from JSON

func (*Language) Validate

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

Validate validates this language

type Localization

type Localization struct {

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

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

	// lang name
	// Required: true
	LangName *string `json:"lang_name"`

	// locale
	// Required: true
	Locale *string `json:"locale"`
}

Localization localization

swagger:model Localization

func (*Localization) ContextValidate

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

ContextValidate validates this localization based on context it is used

func (*Localization) MarshalBinary

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

MarshalBinary interface implementation

func (*Localization) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Localization) UnmarshalJSON

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

UnmarshalJSON unmarshals this object while disallowing additional properties from JSON

func (*Localization) Validate

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

Validate validates this localization

type S3StorageConfiguration

type S3StorageConfiguration struct {

	// access key id
	// Required: true
	AccessKeyID *string `json:"access_key_id"`

	// disable s s l
	// Required: true
	DisableSSL *string `json:"disableSSL"`

	// endpoint
	// Required: true
	Endpoint *string `json:"endpoint"`

	// force path style
	// Required: true
	ForcePathStyle *string `json:"force_path_style"`

	// region
	// Required: true
	Region *string `json:"region"`

	// secret access key
	// Required: true
	SecretAccessKey *string `json:"secret_access_key"`
}

S3StorageConfiguration s3 storage configuration

swagger:model S3StorageConfiguration

func (*S3StorageConfiguration) ContextValidate

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

ContextValidate validates this s3 storage configuration based on context it is used

func (*S3StorageConfiguration) MarshalBinary

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

MarshalBinary interface implementation

func (*S3StorageConfiguration) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*S3StorageConfiguration) UnmarshalJSON

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

UnmarshalJSON unmarshals this object while disallowing additional properties from JSON

func (*S3StorageConfiguration) Validate

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

Validate validates this s3 storage configuration

type StorageConfiguration

type StorageConfiguration struct {

	// s3 storage conf
	S3StorageConf *S3StorageConfiguration `json:"s3_storage_conf,omitempty"`

	// use
	// Required: true
	Use *int32 `json:"use"`
}

StorageConfiguration storage configuration

swagger:model StorageConfiguration

func (*StorageConfiguration) ContextValidate

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

ContextValidate validate this storage configuration based on the context it is used

func (*StorageConfiguration) MarshalBinary

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

MarshalBinary interface implementation

func (*StorageConfiguration) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*StorageConfiguration) UnmarshalJSON

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

UnmarshalJSON unmarshals this object while disallowing additional properties from JSON

func (*StorageConfiguration) Validate

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

Validate validates this storage configuration

type Translation

type Translation struct {

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

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

	// identifier
	// Required: true
	Identifier *Identifier `json:"identifier"`

	// localization
	// Required: true
	Localization *Localization `json:"localization"`

	// plural
	// Required: true
	Plural *string `json:"plural"`

	// singular
	// Required: true
	Singular *string `json:"singular"`

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

Translation translation

swagger:model Translation

func (*Translation) ContextValidate

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

ContextValidate validate this translation based on the context it is used

func (*Translation) MarshalBinary

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

MarshalBinary interface implementation

func (*Translation) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Translation) UnmarshalJSON

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

UnmarshalJSON unmarshals this object while disallowing additional properties from JSON

func (*Translation) Validate

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

Validate validates this translation

type TranslationConfiguration

type TranslationConfiguration struct {

	// auto
	// Required: true
	Auto *bool `json:"auto"`

	// main language
	// Required: true
	MainLanguage *string `json:"main_language"`

	// use
	// Required: true
	Use *int32 `json:"use"`
}

TranslationConfiguration translation configuration

swagger:model TranslationConfiguration

func (*TranslationConfiguration) ContextValidate

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

ContextValidate validates this translation configuration based on context it is used

func (*TranslationConfiguration) MarshalBinary

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

MarshalBinary interface implementation

func (*TranslationConfiguration) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TranslationConfiguration) UnmarshalJSON

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

UnmarshalJSON unmarshals this object while disallowing additional properties from JSON

func (*TranslationConfiguration) Validate

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

Validate validates this translation configuration

type TranslationFile

type TranslationFile struct {

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

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

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

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

	// platform
	// Required: true
	Platform *string `json:"platform"`

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

	// storage type
	// Required: true
	// Enum: [local]
	StorageType *string `json:"storage_type"`

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

TranslationFile translation file

swagger:model TranslationFile

func (*TranslationFile) ContextValidate

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

ContextValidate validates this translation file based on context it is used

func (*TranslationFile) MarshalBinary

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

MarshalBinary interface implementation

func (*TranslationFile) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TranslationFile) UnmarshalJSON

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

UnmarshalJSON unmarshals this object while disallowing additional properties from JSON

func (*TranslationFile) Validate

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

Validate validates this translation file

type User

type User struct {

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

	// email
	// Required: true
	Email *string `json:"email"`

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

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

	// role
	// Required: true
	Role *string `json:"role"`

	// second name
	SecondName string `json:"second_name,omitempty"`

	// status
	// Required: true
	Status *string `json:"status"`

	// uuid id
	// Required: true
	UUIDID *string `json:"uuid_id"`
}

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

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

UnmarshalJSON unmarshals this object while disallowing additional properties from JSON

func (*User) Validate

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

Validate validates this user

type Version

type Version struct {

	// lang name
	LangName string `json:"lang_name,omitempty"`

	// locale
	// Required: true
	Locale *string `json:"locale"`

	// localization id
	LocalizationID int64 `json:"localization_id,omitempty"`

	// path
	Path string `json:"path,omitempty"`

	// platform
	Platform int64 `json:"platform,omitempty"`

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

Version version

swagger:model Version

func (*Version) ContextValidate

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

ContextValidate validates this version based on context it is used

func (*Version) MarshalBinary

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

MarshalBinary interface implementation

func (*Version) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Version) UnmarshalJSON

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

UnmarshalJSON unmarshals this object while disallowing additional properties from JSON

func (*Version) Validate

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

Validate validates this version

Jump to

Keyboard shortcuts

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