models

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2022 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const (

	// DiffSnapshotInputFormatRaw captures enum value "raw"
	DiffSnapshotInputFormatRaw string = "raw"

	// DiffSnapshotInputFormatI18n captures enum value "i18n"
	DiffSnapshotInputFormatI18n string = "i18n"

	// DiffSnapshotInputFormatTypescript captures enum value "typescript"
	DiffSnapshotInputFormatTypescript string = "typescript"
)

Variables

This section is empty.

Functions

func Validate

func Validate(m Validator) error

Types

type APIError

type APIError struct {

	// details
	Details interface{} `json:"details,omitempty"`

	// error
	Error *Error `json:"error,omitempty"`
}

APIError API error

swagger:model APIError

func (*APIError) ContextValidate

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

ContextValidate validate this API error based on the context it is used

func (*APIError) MarshalBinary

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

MarshalBinary interface implementation

func (*APIError) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*APIError) Validate

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

Validate validates this API error

type Category

type Category struct {

	// Time of which the entity was created in the database
	// Required: true
	// Format: date-time
	CreatedAt *strfmt.DateTime `json:"created_at"`

	// User id refering to the user who created the item
	CreatedBy string `json:"created_by,omitempty"`

	// If set, the item is considered deleted. The item will normally not get deleted from the database,
	// but it may if cleanup is required.
	// Format: date-time
	Deleted strfmt.DateTime `json:"deleted,omitempty"`

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

	// Unique identifier of the entity
	// Required: true
	ID *string `json:"id"`

	// key
	Key string `json:"key,omitempty"`

	// project ID
	ProjectID string `json:"project_id,omitempty"`

	// title
	Title string `json:"title,omitempty"`

	// translation i ds
	TranslationIDs []string `json:"translation_ids"`

	// Time of which the entity was updated, if any
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"`

	// User id refering to who created the item
	UpdatedBy string `json:"updated_by,omitempty"`
}

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

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

Validate validates this category

type CategoryInput

type CategoryInput struct {

	// description
	// Max Length: 8000
	// Min Length: 3
	Description string `json:"description,omitempty"`

	// key
	// Required: true
	// Max Length: 100
	// Min Length: 1
	// Pattern: ^[^\s]*$
	Key *string `json:"key"`

	// project id
	// Required: true
	// Max Length: 100
	// Min Length: 1
	ProjectID *string `json:"project_id"`

	// title
	// Required: true
	// Max Length: 400
	// Min Length: 3
	Title *string `json:"title"`
}

CategoryInput category input

swagger:model CategoryInput

func (*CategoryInput) ContextValidate

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

ContextValidate validates this category input based on context it is used

func (*CategoryInput) MarshalBinary

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

MarshalBinary interface implementation

func (*CategoryInput) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CategoryInput) Validate

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

Validate validates this category input

type CategoryTreeNode

type CategoryTreeNode struct {

	// categories
	Categories map[string]CategoryTreeNode `json:"categories,omitempty"`

	// Time of which the entity was created in the database
	// Required: true
	// Format: date-time
	CreatedAt *strfmt.DateTime `json:"created_at"`

	// User id refering to the user who created the item
	CreatedBy string `json:"created_by,omitempty"`

	// If set, the item is considered deleted. The item will normally not get deleted from the database,
	// but it may if cleanup is required.
	// Format: date-time
	Deleted strfmt.DateTime `json:"deleted,omitempty"`

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

	// TODO: change to map
	Exists bool `json:"exists,omitempty"`

	// Unique identifier of the entity
	// Required: true
	ID *string `json:"id"`

	// key
	Key string `json:"key,omitempty"`

	// project ID
	ProjectID string `json:"project_id,omitempty"`

	// title
	Title string `json:"title,omitempty"`

	// translation i ds
	TranslationIDs []string `json:"translation_ids"`

	// translations
	Translations map[string]ExtendedTranslation `json:"translations,omitempty"`

	// Time of which the entity was updated, if any
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"`

	// User id refering to who created the item
	UpdatedBy string `json:"updated_by,omitempty"`
}

CategoryTreeNode category tree node

swagger:model CategoryTreeNode

func (*CategoryTreeNode) ContextValidate

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

ContextValidate validate this category tree node based on the context it is used

func (*CategoryTreeNode) MarshalBinary

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

MarshalBinary interface implementation

func (*CategoryTreeNode) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CategoryTreeNode) Validate

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

Validate validates this category tree node

type Change

type Change struct {

	// from
	From interface{} `json:"from,omitempty"`

	// path
	Path []string `json:"path"`

	// to
	To interface{} `json:"to,omitempty"`

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

Change Change stores information about a changed item

swagger:model Change

func (*Change) ContextValidate

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

ContextValidate validates this change based on context it is used

func (*Change) MarshalBinary

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

MarshalBinary interface implementation

func (*Change) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Change) Validate

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

Validate validates this change

type ChangePasswordInput

type ChangePasswordInput struct {

	// new password
	// Max Length: 2000
	// Min Length: 3
	NewPassword string `json:"new_password,omitempty"`

	// password
	// Required: true
	// Max Length: 2000
	// Min Length: 3
	Password *string `json:"password"`
}

ChangePasswordInput change password input

swagger:model ChangePasswordInput

func (*ChangePasswordInput) ContextValidate

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

ContextValidate validates this change password input based on context it is used

func (*ChangePasswordInput) MarshalBinary

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

MarshalBinary interface implementation

func (*ChangePasswordInput) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ChangePasswordInput) Validate

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

Validate validates this change password input

type Changelog

type Changelog []*Change

Changelog Changelog stores a list of changed items

swagger:model Changelog

func (Changelog) ContextValidate

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

ContextValidate validate this changelog based on the context it is used

func (Changelog) Validate

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

Validate validates this changelog

type CreateSnapshotInput

type CreateSnapshotInput struct {

	// description
	// Max Length: 300
	// Min Length: 3
	Description string `json:"description,omitempty"`

	// project id
	// Required: true
	// Max Length: 36
	// Min Length: 3
	ProjectID *string `json:"project_id"`

	// tag
	// Required: true
	// Max Length: 36
	// Min Length: 3
	// Pattern: ^[a-zA-Z0-9-_.]{3,36}$
	Tag *string `json:"tag"`
}

CreateSnapshotInput create snapshot input

swagger:model CreateSnapshotInput

func (*CreateSnapshotInput) ContextValidate

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

ContextValidate validates this create snapshot input based on context it is used

func (*CreateSnapshotInput) MarshalBinary

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

MarshalBinary interface implementation

func (*CreateSnapshotInput) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CreateSnapshotInput) Validate

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

Validate validates this create snapshot input

type CreateTokenInput

type CreateTokenInput struct {

	// description
	// Required: true
	// Max Length: 200
	// Min Length: 3
	Description *string `json:"description"`

	// Duration in hours of which the token should be valid
	// Required: true
	TTLHours *int64 `json:"ttl_hours"`
}

CreateTokenInput create token input

swagger:model CreateTokenInput

func (*CreateTokenInput) ContextValidate

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

ContextValidate validates this create token input based on context it is used

func (*CreateTokenInput) MarshalBinary

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

MarshalBinary interface implementation

func (*CreateTokenInput) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CreateTokenInput) Validate

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

Validate validates this create token input

type CreatorSource

type CreatorSource string

CreatorSource creator source

swagger:model CreatorSource

func (CreatorSource) ContextValidate

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

ContextValidate validates this creator source based on context it is used

func (CreatorSource) Validate

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

Validate validates this creator source

type DeleteInput

type DeleteInput struct {

	// Time of which the item at the earliest can be permanently deleted.
	//
	// Format: date-time
	ExpiryDate *strfmt.DateTime `json:"expiryDate,omitempty"`

	// If set, will bring the item back from the deletion-queue.
	Undelete bool `json:"undelete,omitempty"`
}

DeleteInput delete input

swagger:model DeleteInput

func (*DeleteInput) ContextValidate

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

ContextValidate validates this delete input based on context it is used

func (*DeleteInput) MarshalBinary

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

MarshalBinary interface implementation

func (*DeleteInput) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DeleteInput) Validate

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

Validate validates this delete input

type DiffSnapshotInput

type DiffSnapshotInput struct {

	// a
	// Required: true
	A *SnapshotSelector `json:"a"`

	// b
	// Required: true
	B *SnapshotSelector `json:"b"`

	// format
	// Enum: [raw i18n typescript]
	Format string `json:"format,omitempty"`
}

DiffSnapshotInput diff snapshot input

swagger:model DiffSnapshotInput

func (*DiffSnapshotInput) ContextValidate

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

ContextValidate validate this diff snapshot input based on the context it is used

func (*DiffSnapshotInput) MarshalBinary

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

MarshalBinary interface implementation

func (*DiffSnapshotInput) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DiffSnapshotInput) Validate

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

Validate validates this diff snapshot input

type Entity

type Entity struct {

	// Time of which the entity was created in the database
	// Required: true
	// Format: date-time
	CreatedAt *strfmt.DateTime `json:"created_at"`

	// User id refering to the user who created the item
	CreatedBy string `json:"created_by,omitempty"`

	// If set, the item is considered deleted. The item will normally not get deleted from the database,
	// but it may if cleanup is required.
	// Format: date-time
	Deleted strfmt.DateTime `json:"deleted,omitempty"`

	// Unique identifier of the entity
	// Required: true
	ID *string `json:"id"`

	// Time of which the entity was updated, if any
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"`

	// User id refering to who created the item
	UpdatedBy string `json:"updated_by,omitempty"`
}

Entity entity

swagger:model Entity

func (*Entity) ContextValidate

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

ContextValidate validates this entity based on context it is used

func (*Entity) MarshalBinary

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

MarshalBinary interface implementation

func (*Entity) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Entity) Validate

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

Validate validates this entity

type Error

type Error struct {

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

	// code
	Code ErrorCodes `json:"code,omitempty"`
}

Error error

swagger:model Error

func (*Error) ContextValidate

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

ContextValidate validate this error based on the 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) Validate

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

Validate validates this error

type ErrorCodes

type ErrorCodes string

ErrorCodes error codes

swagger:model ErrorCodes

func (ErrorCodes) ContextValidate

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

ContextValidate validates this error codes based on context it is used

func (ErrorCodes) Validate

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

Validate validates this error codes

type ExtendedCategory

type ExtendedCategory struct {

	// Time of which the entity was created in the database
	// Required: true
	// Format: date-time
	CreatedAt *strfmt.DateTime `json:"created_at"`

	// User id refering to the user who created the item
	CreatedBy string `json:"created_by,omitempty"`

	// If set, the item is considered deleted. The item will normally not get deleted from the database,
	// but it may if cleanup is required.
	// Format: date-time
	Deleted strfmt.DateTime `json:"deleted,omitempty"`

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

	// TODO: change to map
	Exists bool `json:"exists,omitempty"`

	// Unique identifier of the entity
	// Required: true
	ID *string `json:"id"`

	// key
	Key string `json:"key,omitempty"`

	// project ID
	ProjectID string `json:"project_id,omitempty"`

	// title
	Title string `json:"title,omitempty"`

	// translation i ds
	TranslationIDs []string `json:"translation_ids"`

	// translations
	Translations map[string]ExtendedTranslation `json:"translations,omitempty"`

	// Time of which the entity was updated, if any
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"`

	// User id refering to who created the item
	UpdatedBy string `json:"updated_by,omitempty"`
}

ExtendedCategory extended category

swagger:model ExtendedCategory

func (*ExtendedCategory) ContextValidate

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

ContextValidate validate this extended category based on the context it is used

func (*ExtendedCategory) MarshalBinary

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

MarshalBinary interface implementation

func (*ExtendedCategory) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ExtendedCategory) Validate

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

Validate validates this extended category

type ExtendedProject

type ExtendedProject struct {

	// categories
	Categories map[string]ExtendedCategory `json:"categories,omitempty"`

	// category i ds
	CategoryIDs []string `json:"category_ids"`

	// Time of which the entity was created in the database
	// Required: true
	// Format: date-time
	CreatedAt *strfmt.DateTime `json:"created_at"`

	// User id refering to the user who created the item
	CreatedBy string `json:"created_by,omitempty"`

	// If set, the item is considered deleted. The item will normally not get deleted from the database,
	// but it may if cleanup is required.
	// Format: date-time
	Deleted strfmt.DateTime `json:"deleted,omitempty"`

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

	// exists
	Exists bool `json:"exists,omitempty"`

	// Unique identifier of the entity
	// Required: true
	ID *string `json:"id"`

	// included tags
	IncludedTags []string `json:"included_tags"`

	// locales
	Locales map[string]Locale `json:"locales,omitempty"`

	// short name
	ShortName string `json:"short_name,omitempty"`

	// snapshots
	Snapshots map[string]ProjectSnapshotMeta `json:"snapshots,omitempty"`

	// title
	Title string `json:"title,omitempty"`

	// Time of which the entity was updated, if any
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"`

	// User id refering to who created the item
	UpdatedBy string `json:"updated_by,omitempty"`

	// category tree
	CategoryTree *CategoryTreeNode `json:"category_tree,omitempty"`
}

ExtendedProject extended project

swagger:model ExtendedProject

func (*ExtendedProject) ContextValidate

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

ContextValidate validate this extended project based on the context it is used

func (*ExtendedProject) MarshalBinary

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

MarshalBinary interface implementation

func (*ExtendedProject) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ExtendedProject) Validate

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

Validate validates this extended project

type ExtendedTranslation

type ExtendedTranslation struct {

	// aliases
	Aliases []string `json:"aliases"`

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

	// Time of which the entity was created in the database
	// Required: true
	// Format: date-time
	CreatedAt *strfmt.DateTime `json:"created_at"`

	// User id refering to the user who created the item
	CreatedBy string `json:"created_by,omitempty"`

	// If set, the item is considered deleted. The item will normally not get deleted from the database,
	// but it may if cleanup is required.
	// Format: date-time
	Deleted strfmt.DateTime `json:"deleted,omitempty"`

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

	// exists
	Exists bool `json:"exists,omitempty"`

	// Unique identifier of the entity
	// Required: true
	ID *string `json:"id"`

	// key
	Key string `json:"key,omitempty"`

	// parent translation ID
	ParentTranslationID string `json:"parent_translation,omitempty"`

	// references
	References []string `json:"references"`

	// tag
	Tag []string `json:"tags"`

	// title
	Title string `json:"title,omitempty"`

	// Time of which the entity was updated, if any
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"`

	// User id refering to who created the item
	UpdatedBy string `json:"updated_by,omitempty"`

	// value i ds
	ValueIDs []string `json:"value_ids"`

	// values
	Values map[string]TranslationValue `json:"values,omitempty"`

	// variables
	Variables map[string]interface{} `json:"variables,omitempty"`
}

ExtendedTranslation extended translation

swagger:model ExtendedTranslation

func (*ExtendedTranslation) ContextValidate

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

ContextValidate validate this extended translation based on the context it is used

func (*ExtendedTranslation) MarshalBinary

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

MarshalBinary interface implementation

func (*ExtendedTranslation) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ExtendedTranslation) Validate

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

Validate validates this extended translation

type ImportInput

type ImportInput interface{}

ImportInput import input

swagger:model ImportInput

type JoinInput

type JoinInput struct {
	LoginInput
}

JoinInput join input

swagger:model JoinInput

func (*JoinInput) ContextValidate

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

ContextValidate validate this join input based on the context it is used

func (*JoinInput) MarshalBinary

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

MarshalBinary interface implementation

func (JoinInput) MarshalJSON

func (m JoinInput) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*JoinInput) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*JoinInput) UnmarshalJSON

func (m *JoinInput) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*JoinInput) Validate

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

Validate validates this join input

type Locale

type Locale struct {

	// Time of which the entity was created in the database
	// Required: true
	// Format: date-time
	CreatedAt *strfmt.DateTime `json:"created_at"`

	// User id refering to the user who created the item
	CreatedBy string `json:"created_by,omitempty"`

	// If set, the item is considered deleted. The item will normally not get deleted from the database,
	// but it may if cleanup is required.
	// Format: date-time
	Deleted strfmt.DateTime `json:"deleted,omitempty"`

	// List of other Locales in preferred order for fallbacks
	Fallbacks []string `json:"fallbacks"`

	// Unique identifier of the entity
	// Required: true
	ID *string `json:"id"`

	// Represents the IETF language tag, e.g. en / en-US
	IETF string `json:"ietf,omitempty"`

	// Represents the ISO-639-1 string, e.g. en
	Iso6391 string `json:"iso_639_1,omitempty"`

	// Represents the ISO-639-2 string, e.g. eng
	Iso6392 string `json:"iso_639_2,omitempty"`

	// Represents the ISO-639-3 string, e.g. eng
	Iso6393 string `json:"iso_639_3,omitempty"`

	// title
	Title string `json:"title,omitempty"`

	// Time of which the entity was updated, if any
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"`

	// User id refering to who created the item
	UpdatedBy string `json:"updated_by,omitempty"`
}

Locale # See https://en.wikipedia.org/wiki/Language_code for more information TODO: consider supporting other standards here, like Windows(?), which seem to have their own thing.

swagger:model Locale

func (*Locale) ContextValidate

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

ContextValidate validates this locale based on context it is used

func (*Locale) MarshalBinary

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

MarshalBinary interface implementation

func (*Locale) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Locale) Validate

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

Validate validates this locale

type LocaleInput

type LocaleInput struct {

	// List of other Locales in preferred order for fallbacks
	// Required: true
	// Max Length: 12
	// Min Length: 2
	IetfTag *string `json:"ietf_tag"`

	// iso639 1
	// Required: true
	// Max Length: 2
	// Min Length: 2
	Iso6391 *string `json:"iso639_1"`

	// iso639 2
	// Required: true
	// Max Length: 3
	// Min Length: 3
	Iso6392 *string `json:"iso639_2"`

	// iso639 3
	// Required: true
	// Max Length: 3
	// Min Length: 3
	Iso6393 *string `json:"iso639_3"`

	// title
	// Required: true
	// Max Length: 300
	// Min Length: 3
	Title *string `json:"title"`
}

LocaleInput locale input

swagger:model LocaleInput

func (*LocaleInput) ContextValidate

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

ContextValidate validates this locale input based on context it is used

func (*LocaleInput) MarshalBinary

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

MarshalBinary interface implementation

func (*LocaleInput) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*LocaleInput) Validate

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

Validate validates this locale input

type LocaleSetting

type LocaleSetting struct {

	// If set, will allow registered translation-services to translate from other languages to this locale.
	// This might help speed up translations for new locales.
	// See the Config or Organization-settings for instructions on how to set up translation-services.
	//
	// Organization-settings are not yet available.
	//
	// TODO: implement organization-settings
	AutoTranslation bool `json:"auto_translation,omitempty"`

	// If set, the locale will be visible for editing.
	Enabled bool `json:"enabled,omitempty"`

	// If set, the associated translations will be published in releases.
	// This is useful for when adding new locales, and one don't want to publish it to users until it is complete
	Publish bool `json:"publish,omitempty"`
}

LocaleSetting locale setting

swagger:model LocaleSetting

func (*LocaleSetting) ContextValidate

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

ContextValidate validates this locale setting based on context it is used

func (*LocaleSetting) MarshalBinary

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

MarshalBinary interface implementation

func (*LocaleSetting) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*LocaleSetting) Validate

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

Validate validates this locale setting

type LocaleSettingInput

type LocaleSettingInput struct {

	// If set, will allow registered translation-services to translate from other languages to this locale.
	// This might help speed up translations for new locales.
	// See the Config or Organization-settings for instructions on how to set up translation-services.
	//
	// Organization-settings are not yet available.
	//
	// TODO: implement organization-settings
	AutoTranslation bool `json:"auto_translation,omitempty"`

	// If set, the locale will be visible for editing.
	Enabled bool `json:"enabled,omitempty"`

	// If set, the associated translations will be published in releases.
	// This is useful for when adding new locales, and one don't want to publish it to users until it is complete
	Publish bool `json:"publish,omitempty"`
}

LocaleSettingInput locale setting input

swagger:model LocaleSettingInput

func (*LocaleSettingInput) ContextValidate

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

ContextValidate validates this locale setting input based on context it is used

func (*LocaleSettingInput) MarshalBinary

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

MarshalBinary interface implementation

func (*LocaleSettingInput) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*LocaleSettingInput) Validate

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

Validate validates this locale setting input

type LoginInput

type LoginInput struct {

	// password
	// Required: true
	// Max Length: 400
	// Min Length: 3
	Password *string `json:"password"`

	// username
	// Example: abc123
	// Required: true
	// Max Length: 100
	// Min Length: 3
	// Pattern: ^[^\s]*$
	Username *string `json:"username"`
}

LoginInput login input

swagger:model LoginInput

func (*LoginInput) ContextValidate

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

ContextValidate validates this login input based on context it is used

func (*LoginInput) MarshalBinary

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

MarshalBinary interface implementation

func (*LoginInput) SuperValidate

func (m *LoginInput) SuperValidate(formats strfmt.Registry) error

func (*LoginInput) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*LoginInput) Validate

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

Validate validates this login input

type LoginResponse

type LoginResponse struct {

	// If not active, the account cannot be used until any issues are resolved.
	Active bool `json:"active,omitempty"`

	// can create locales
	CanCreateLocales bool `json:"can_create_locales,omitempty"`

	// can create organization
	CanCreateOrganization bool `json:"can_create_organization,omitempty"`

	// can create projects
	CanCreateProjects bool `json:"can_create_projects,omitempty"`

	// can create translations
	CanCreateTranslations bool `json:"can_create_translations,omitempty"`

	// can create users
	CanCreateUsers bool `json:"can_create_users,omitempty"`

	// can manage snapshots
	CanManageSnapshots bool `json:"can_manage_snapshots,omitempty"`

	// can update locales
	CanUpdateLocales bool `json:"can_update_locales,omitempty"`

	// can update organization
	CanUpdateOrganization bool `json:"can_update_organization,omitempty"`

	// can update projects
	CanUpdateProjects bool `json:"can_update_projects,omitempty"`

	// can update translations
	CanUpdateTranslations bool `json:"can_update_translations,omitempty"`

	// can update users
	CanUpdateUsers bool `json:"can_update_users,omitempty"`

	// Time of which the entity was created in the database
	// Required: true
	// Format: date-time
	CreatedAt *strfmt.DateTime `json:"created_at"`

	// User id refering to the user who created the item
	CreatedBy string `json:"created_by,omitempty"`

	// If set, the item is considered deleted. The item will normally not get deleted from the database,
	// but it may if cleanup is required.
	// Format: date-time
	Deleted strfmt.DateTime `json:"deleted,omitempty"`

	// expires
	// Format: date-time
	Expires strfmt.DateTime `json:"expires,omitempty"`

	// expires in
	ExpiresIn string `json:"expires_in,omitempty"`

	// Unique identifier of the entity
	// Required: true
	ID *string `json:"id"`

	// ok
	Ok bool `json:"ok,omitempty"`

	// If set, the user must change the password before the account can be used
	TemporaryPassword bool `json:"temporary_password,omitempty"`

	// Time of which the entity was updated, if any
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"`

	// User id refering to who created the item
	UpdatedBy string `json:"updated_by,omitempty"`

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

	// organization
	Organization *Organization `json:"organization,omitempty"`
}

LoginResponse login response

swagger:model LoginResponse

func (*LoginResponse) ContextValidate

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

ContextValidate validate this login response based on the context it is used

func (*LoginResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*LoginResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*LoginResponse) Validate

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

Validate validates this login response

type MissingTranslation

type MissingTranslation struct {

	// The reported category (may not exist), as reported by the client.
	Category string `json:"category,omitempty"`

	// category ID
	CategoryID string `json:"category_id,omitempty"`

	// Number of times it has been reported.
	Count int64 `json:"count,omitempty"`

	// Time of which the entity was created in the database
	// Required: true
	// Format: date-time
	CreatedAt *strfmt.DateTime `json:"created_at"`

	// User id refering to the user who created the item
	CreatedBy string `json:"created_by,omitempty"`

	// If set, the item is considered deleted. The item will normally not get deleted from the database,
	// but it may if cleanup is required.
	// Format: date-time
	Deleted strfmt.DateTime `json:"deleted,omitempty"`

	// first user agent
	FirstUserAgent string `json:"first_user_agent,omitempty"`

	// Unique identifier of the entity
	// Required: true
	ID *string `json:"id"`

	// latest user agent
	LatestUserAgent string `json:"latest_user_agent,omitempty"`

	// The reported locale (may not exist), as reported by the client.
	Locale string `json:"locale,omitempty"`

	// locale ID
	LocaleID string `json:"locale_id,omitempty"`

	// The reported project (may not exist), as reported by the client.
	Project string `json:"project,omitempty"`

	// project ID
	ProjectID string `json:"project_id,omitempty"`

	// The reported translation (may not exist), as reported by the client.
	Translation string `json:"translation,omitempty"`

	// translation ID
	TranslationID string `json:"translation_id,omitempty"`

	// Time of which the entity was updated, if any
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"`

	// User id refering to who created the item
	UpdatedBy string `json:"updated_by,omitempty"`
}

MissingTranslation missing translation

swagger:model MissingTranslation

func (*MissingTranslation) ContextValidate

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

ContextValidate validates this missing translation based on context it is used

func (*MissingTranslation) MarshalBinary

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

MarshalBinary interface implementation

func (*MissingTranslation) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*MissingTranslation) Validate

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

Validate validates this missing translation

type OkResponse

type OkResponse struct {

	// ok
	// Required: true
	Ok *bool `json:"ok"`
}

OkResponse ok response

swagger:model OkResponse

func (*OkResponse) ContextValidate

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

ContextValidate validates this ok response based on context it is used

func (*OkResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*OkResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*OkResponse) Validate

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

Validate validates this ok response

type Organization

type Organization struct {

	// created at
	// Format: date-time
	CreatedAt strfmt.DateTime `json:"created_at,omitempty"`

	// created by
	CreatedBy string `json:"created_by,omitempty"`

	// deleted
	// Format: date-time
	Deleted strfmt.DateTime `json:"deleted,omitempty"`

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

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

	// This will allow anybody with the id to create a standard user, and join the organization
	// The first user to join, gets priviliges to administer the organization.
	JoinID string `json:"join_id,omitempty"`

	// join ID expires
	// Format: date-time
	JoinIDExpires strfmt.DateTime `json:"join_id_expires,omitempty"`

	// title
	Title string `json:"title,omitempty"`

	// updated at
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"`

	// updated by
	UpdatedBy string `json:"updated_by,omitempty"`
}

Organization organization

swagger:model Organization

func (*Organization) ContextValidate

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

ContextValidate validates this organization based on context it is used

func (*Organization) MarshalBinary

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

MarshalBinary interface implementation

func (*Organization) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Organization) Validate

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

Validate validates this organization

type OrganizationInput

type OrganizationInput struct {

	// title
	// Required: true
	// Max Length: 300
	// Min Length: 3
	Title *string `json:"title"`
}

OrganizationInput organization input

swagger:model OrganizationInput

func (*OrganizationInput) ContextValidate

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

ContextValidate validates this organization input based on context it is used

func (*OrganizationInput) MarshalBinary

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

MarshalBinary interface implementation

func (*OrganizationInput) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*OrganizationInput) Validate

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

Validate validates this organization input

type Project

type Project struct {

	// category i ds
	CategoryIDs []string `json:"category_ids"`

	// Time of which the entity was created in the database
	// Required: true
	// Format: date-time
	CreatedAt *strfmt.DateTime `json:"created_at"`

	// User id refering to the user who created the item
	CreatedBy string `json:"created_by,omitempty"`

	// If set, the item is considered deleted. The item will normally not get deleted from the database,
	// but it may if cleanup is required.
	// Format: date-time
	Deleted strfmt.DateTime `json:"deleted,omitempty"`

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

	// Unique identifier of the entity
	// Required: true
	ID *string `json:"id"`

	// included tags
	IncludedTags []string `json:"included_tags"`

	// locale i ds
	LocaleIDs map[string]LocaleSetting `json:"locales,omitempty"`

	// short name
	ShortName string `json:"short_name,omitempty"`

	// snapshots
	Snapshots map[string]ProjectSnapshotMeta `json:"snapshots,omitempty"`

	// title
	Title string `json:"title,omitempty"`

	// Time of which the entity was updated, if any
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"`

	// User id refering to who created the item
	UpdatedBy string `json:"updated_by,omitempty"`
}

Project project

swagger:model Project

func (*Project) ContextValidate

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

ContextValidate validate this project based on the context it is used

func (*Project) MarshalBinary

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

MarshalBinary interface implementation

func (*Project) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Project) Validate

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

Validate validates this project

type ProjectDiffResponse added in v0.8.1

type ProjectDiffResponse struct {

	// a
	A *ProjectStats `json:"a,omitempty"`

	// b
	B *ProjectStats `json:"b,omitempty"`

	// diff
	Diff Changelog `json:"diff,omitempty"`
}

ProjectDiffResponse project diff response

swagger:model ProjectDiffResponse

func (*ProjectDiffResponse) ContextValidate added in v0.8.1

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

ContextValidate validate this project diff response based on the context it is used

func (*ProjectDiffResponse) MarshalBinary added in v0.8.1

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

MarshalBinary interface implementation

func (*ProjectDiffResponse) UnmarshalBinary added in v0.8.1

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

UnmarshalBinary interface implementation

func (*ProjectDiffResponse) Validate added in v0.8.1

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

Validate validates this project diff response

type ProjectInput

type ProjectInput struct {

	// description
	// Max Length: 8000
	// Min Length: 1
	Description string `json:"description,omitempty"`

	// locales
	Locales map[string]LocaleSetting `json:"locales,omitempty"`

	// short name
	// Required: true
	// Max Length: 20
	// Min Length: 1
	// Pattern: ^[a-z1-9]*$
	ShortName *string `json:"short_name"`

	// title
	// Required: true
	// Max Length: 400
	// Min Length: 1
	Title *string `json:"title"`
}

ProjectInput project input

swagger:model ProjectInput

func (*ProjectInput) ContextValidate

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

ContextValidate validate this project input based on the context it is used

func (*ProjectInput) MarshalBinary

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

MarshalBinary interface implementation

func (*ProjectInput) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ProjectInput) Validate

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

Validate validates this project input

type ProjectSnapshot

type ProjectSnapshot struct {

	// Time of which the entity was created in the database
	// Required: true
	// Format: date-time
	CreatedAt *strfmt.DateTime `json:"created_at"`

	// User id refering to the user who created the item
	CreatedBy string `json:"created_by,omitempty"`

	// If set, the item is considered deleted. The item will normally not get deleted from the database,
	// but it may if cleanup is required.
	// Format: date-time
	Deleted strfmt.DateTime `json:"deleted,omitempty"`

	// Unique identifier of the entity
	// Required: true
	ID *string `json:"id"`

	// project hash
	ProjectHash uint64 `json:"project_hash,omitempty"`

	// Time of which the entity was updated, if any
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"`

	// User id refering to who created the item
	UpdatedBy string `json:"updated_by,omitempty"`

	// project
	Project *ExtendedProject `json:"project,omitempty"`
}

ProjectSnapshot project snapshot

swagger:model ProjectSnapshot

func (*ProjectSnapshot) ContextValidate

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

ContextValidate validate this project snapshot based on the context it is used

func (*ProjectSnapshot) MarshalBinary

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

MarshalBinary interface implementation

func (*ProjectSnapshot) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ProjectSnapshot) Validate

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

Validate validates this project snapshot

type ProjectSnapshotMeta

type ProjectSnapshotMeta struct {

	// created at
	// Format: date-time
	CreatedAt strfmt.DateTime `json:"created_at,omitempty"`

	// created by
	CreatedBy string `json:"created_by,omitempty"`

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

	// hash
	Hash uint64 `json:"hash,omitempty"`

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

	// upload meta
	UploadMeta []*UploadMeta `json:"uploadMeta"`
}

ProjectSnapshotMeta project snapshot meta

swagger:model ProjectSnapshotMeta

func (*ProjectSnapshotMeta) ContextValidate

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

ContextValidate validate this project snapshot meta based on the context it is used

func (*ProjectSnapshotMeta) MarshalBinary

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

MarshalBinary interface implementation

func (*ProjectSnapshotMeta) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ProjectSnapshotMeta) Validate

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

Validate validates this project snapshot meta

type ProjectStats added in v0.8.1

type ProjectStats struct {

	// hash
	Hash string `json:"hash,omitempty"`

	// identi hash
	IdentiHash []uint8 `json:"identi_hash"`

	// project ID
	ProjectID string `json:"project_id,omitempty"`

	// size
	Size uint64 `json:"size,omitempty"`

	// size humanized
	SizeHumanized string `json:"size_humanized,omitempty"`

	// tag
	Tag string `json:"tag,omitempty"`
}

ProjectStats project stats

swagger:model ProjectStats

func (*ProjectStats) ContextValidate added in v0.8.1

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

ContextValidate validates this project stats based on context it is used

func (*ProjectStats) MarshalBinary added in v0.8.1

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

MarshalBinary interface implementation

func (*ProjectStats) UnmarshalBinary added in v0.8.1

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

UnmarshalBinary interface implementation

func (*ProjectStats) Validate added in v0.8.1

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

Validate validates this project stats

type ReleaseInfo

type ReleaseInfo struct {

	// assets URL
	AssetsURL string `json:"assets_url,omitempty"`

	// body
	Body string `json:"body,omitempty"`

	// created at
	CreatedAt string `json:"created_at,omitempty"`

	// draft
	Draft bool `json:"draft,omitempty"`

	// HTML URL
	HTMLURL string `json:"html_url,omitempty"`

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

	// prerelease
	Prerelease bool `json:"prerelease,omitempty"`

	// published at
	PublishedAt string `json:"published_at,omitempty"`

	// tag name
	TagName string `json:"tag_name,omitempty"`

	// target commitish
	TargetCommitish string `json:"target_commitish,omitempty"`

	// URL
	URL string `json:"url,omitempty"`

	// upload URL
	UploadURL string `json:"upload_url,omitempty"`
}

ReleaseInfo release info

swagger:model ReleaseInfo

func (*ReleaseInfo) ContextValidate

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

ContextValidate validates this release info based on context it is used

func (*ReleaseInfo) MarshalBinary

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

MarshalBinary interface implementation

func (*ReleaseInfo) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ReleaseInfo) Validate

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

Validate validates this release info

type ReportMissingInput

type ReportMissingInput map[string]string

ReportMissingInput report missing input

swagger:model ReportMissingInput

func (ReportMissingInput) ContextValidate

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

ContextValidate validates this report missing input based on context it is used

func (ReportMissingInput) Validate

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

Validate validates this report missing input

type ServerInfo

type ServerInfo struct {

	// Date of build
	// Format: date-time
	BuildDate strfmt.DateTime `json:"build_date,omitempty"`

	// The minimum version of skiver-cli that can be used with this server.
	// The is [semver](https://semver.org/)-compatible, but has a leading `v`, like `v1.2.3`
	CliVersionConstraints string `json:"cli_version_contraints,omitempty"`

	// Size of database.
	DatabaseSize int64 `json:"database_size,omitempty"`

	// database size str
	DatabaseSizeStr string `json:"database_size_str,omitempty"`

	// Short githash for current commit
	GitHash string `json:"git_hash,omitempty"`

	// Hash of the current host. Should be semi-stable
	HostHash string `json:"host_hash,omitempty"`

	// Server-instance. This will change on every restart.
	Instance string `json:"instance,omitempty"`

	// When the server was started
	// Format: date-time
	ServerStartedAt strfmt.DateTime `json:"server_started_at,omitempty"`

	// Version-number for commit
	Version string `json:"version,omitempty"`

	// latest cli release
	LatestCliRelease *ReleaseInfo `json:"latest_cli_release,omitempty"`

	// latest release
	LatestRelease *ReleaseInfo `json:"latest_release,omitempty"`
}

ServerInfo server info

swagger:model ServerInfo

func (*ServerInfo) ContextValidate

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

ContextValidate validate this server info based on the context it is used

func (*ServerInfo) MarshalBinary

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

MarshalBinary interface implementation

func (*ServerInfo) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ServerInfo) Validate

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

Validate validates this server info

type SimpleUser

type SimpleUser string

SimpleUser simple user

swagger:model SimpleUser

func (SimpleUser) ContextValidate

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

ContextValidate validates this simple user based on context it is used

func (SimpleUser) Validate

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

Validate validates this simple user

type SnapshotSelector

type SnapshotSelector struct {

	// project id
	// Required: true
	// Max Length: 36
	ProjectID *string `json:"project_id"`

	// raw
	Raw interface{} `json:"raw,omitempty"`

	// tag
	// Max Length: 36
	Tag string `json:"tag,omitempty"`
}

SnapshotSelector snapshot selector

swagger:model snapshotSelector

func (*SnapshotSelector) ContextValidate

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

ContextValidate validates this snapshot selector based on context it is used

func (*SnapshotSelector) MarshalBinary

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

MarshalBinary interface implementation

func (*SnapshotSelector) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SnapshotSelector) Validate

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

Validate validates this snapshot selector

type SuperValidator

type SuperValidator interface {
	SuperValidate(formats strfmt.Registry) error
}

type TokenResponse

type TokenResponse struct {

	// Description of user-generated-token, or for login-tokens, this will be the last User-Agent used
	Description string `json:"description,omitempty"`

	// expires
	// Format: date-time
	Expires strfmt.DateTime `json:"expires,omitempty"`

	// issued
	// Format: date-time
	Issued strfmt.DateTime `json:"issued,omitempty"`

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

TokenResponse token response

swagger:model TokenResponse

func (*TokenResponse) ContextValidate

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

ContextValidate validates this token response based on context it is used

func (*TokenResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*TokenResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TokenResponse) Validate

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

Validate validates this token response

type Translation

type Translation struct {

	// aliases
	Aliases []string `json:"aliases"`

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

	// Time of which the entity was created in the database
	// Required: true
	// Format: date-time
	CreatedAt *strfmt.DateTime `json:"created_at"`

	// User id refering to the user who created the item
	CreatedBy string `json:"created_by,omitempty"`

	// If set, the item is considered deleted. The item will normally not get deleted from the database,
	// but it may if cleanup is required.
	// Format: date-time
	Deleted strfmt.DateTime `json:"deleted,omitempty"`

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

	// Unique identifier of the entity
	// Required: true
	ID *string `json:"id"`

	// key
	Key string `json:"key,omitempty"`

	// parent translation ID
	ParentTranslationID string `json:"parent_translation,omitempty"`

	// references
	References []string `json:"references"`

	// tag
	Tag []string `json:"tags"`

	// title
	Title string `json:"title,omitempty"`

	// Time of which the entity was updated, if any
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"`

	// User id refering to who created the item
	UpdatedBy string `json:"updated_by,omitempty"`

	// value i ds
	ValueIDs []string `json:"value_ids"`

	// variables
	Variables map[string]interface{} `json:"variables,omitempty"`
}

Translation translation

swagger:model Translation

func (*Translation) ContextValidate

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

ContextValidate validates this translation based on 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) Validate

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

Validate validates this translation

type TranslationInput

type TranslationInput struct {

	// category id
	// Required: true
	// Max Length: 100
	// Min Length: 3
	CategoryID *string `json:"category_id"`

	// description
	// Max Length: 8000
	// Min Length: 1
	Description string `json:"description,omitempty"`

	// key
	// Required: true
	// Max Length: 400
	// Min Length: 1
	// Pattern: ^[^\s]*$
	Key *string `json:"key"`

	// title
	// Max Length: 400
	// Min Length: 1
	Title string `json:"title,omitempty"`

	// key/value type. The value can be any type, but the key must a string.
	Variables map[string]interface{} `json:"variables,omitempty"`
}

TranslationInput translation input

swagger:model TranslationInput

func (*TranslationInput) ContextValidate

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

ContextValidate validates this translation input based on context it is used

func (*TranslationInput) MarshalBinary

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

MarshalBinary interface implementation

func (*TranslationInput) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TranslationInput) Validate

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

Validate validates this translation input

type TranslationValue

type TranslationValue struct {

	// context
	Context map[string]string `json:"context,omitempty"`

	// Time of which the entity was created in the database
	// Required: true
	// Format: date-time
	CreatedAt *strfmt.DateTime `json:"created_at"`

	// User id refering to the user who created the item
	CreatedBy string `json:"created_by,omitempty"`

	// If set, the item is considered deleted. The item will normally not get deleted from the database,
	// but it may if cleanup is required.
	// Format: date-time
	Deleted strfmt.DateTime `json:"deleted,omitempty"`

	// Unique identifier of the entity
	// Required: true
	ID *string `json:"id"`

	// locale ID
	LocaleID string `json:"locale_id,omitempty"`

	// Translation ID
	TranslationID string `json:"translation_id,omitempty"`

	// Time of which the entity was updated, if any
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"`

	// User id refering to who created the item
	UpdatedBy string `json:"updated_by,omitempty"`

	// The pre-interpolated value to use  with translations
	// Example: The {{productName}} fires up to {{count}} bullets of {{subject}}.
	Value string `json:"value,omitempty"`

	// source
	Source CreatorSource `json:"source,omitempty"`
}

TranslationValue translation value

swagger:model TranslationValue

func (*TranslationValue) ContextValidate

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

ContextValidate validate this translation value based on the context it is used

func (*TranslationValue) MarshalBinary

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

MarshalBinary interface implementation

func (*TranslationValue) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TranslationValue) Validate

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

Validate validates this translation value

type TranslationValueInput

type TranslationValueInput struct {

	// If set, it will add/update the context for that key instead of the original value
	// Max Length: 100
	// Min Length: 1
	// Pattern: ^[^\s]*$
	ContextKey string `json:"context_key,omitempty"`

	// locale id
	// Required: true
	// Max Length: 100
	// Min Length: 1
	LocaleID *string `json:"locale_id"`

	// translation id
	// Required: true
	// Max Length: 100
	// Min Length: 1
	TranslationID *string `json:"translation_id"`

	// value
	// Max Length: 8000
	// Min Length: 0
	Value *string `json:"value,omitempty"`
}

TranslationValueInput translation value input

swagger:model TranslationValueInput

func (*TranslationValueInput) ContextValidate

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

ContextValidate validates this translation value input based on context it is used

func (*TranslationValueInput) MarshalBinary

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

MarshalBinary interface implementation

func (*TranslationValueInput) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TranslationValueInput) Validate

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

Validate validates this translation value input

type UpdateCategoryInput

type UpdateCategoryInput struct {

	// description
	// Max Length: 8000
	// Min Length: 3
	Description string `json:"description,omitempty"`

	// id
	// Max Length: 100
	// Min Length: 1
	ID string `json:"id,omitempty"`

	// key
	// Max Length: 100
	// Min Length: 1
	// Pattern: ^[^\s]*$
	Key string `json:"key,omitempty"`

	// project id
	// Max Length: 100
	// Min Length: 1
	ProjectID string `json:"project_id,omitempty"`

	// title
	// Max Length: 400
	// Min Length: 3
	Title string `json:"title,omitempty"`
}

UpdateCategoryInput update category input

swagger:model UpdateCategoryInput

func (*UpdateCategoryInput) ContextValidate

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

ContextValidate validates this update category input based on context it is used

func (*UpdateCategoryInput) MarshalBinary

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

MarshalBinary interface implementation

func (*UpdateCategoryInput) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UpdateCategoryInput) Validate

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

Validate validates this update category input

type UpdateOrganizationInput added in v0.8.0

type UpdateOrganizationInput struct {

	// id
	// Required: true
	// Max Length: 36
	// Min Length: 3
	ID *string `json:"id"`

	// join id
	// Max Length: 100
	// Min Length: 1
	JoinID string `json:"join_id,omitempty"`

	// join id expires
	// Max Length: 100
	// Min Length: 1
	// Format: date-time
	JoinIDExpires *strfmt.DateTime `json:"join_id_expires,omitempty"`
}

UpdateOrganizationInput update organization input

swagger:model UpdateOrganizationInput

func (*UpdateOrganizationInput) ContextValidate added in v0.8.0

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

ContextValidate validates this update organization input based on context it is used

func (*UpdateOrganizationInput) MarshalBinary added in v0.8.0

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

MarshalBinary interface implementation

func (*UpdateOrganizationInput) UnmarshalBinary added in v0.8.0

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

UnmarshalBinary interface implementation

func (*UpdateOrganizationInput) Validate added in v0.8.0

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

Validate validates this update organization input

type UpdateProjectInput

type UpdateProjectInput struct {

	// description
	// Max Length: 8000
	// Min Length: 1
	Description string `json:"description,omitempty"`

	// id
	// Required: true
	// Max Length: 36
	// Min Length: 3
	ID *string `json:"id"`

	// locales
	Locales map[string]LocaleSettingInput `json:"locales,omitempty"`

	// short name
	// Max Length: 20
	// Min Length: 1
	// Pattern: ^[a-z1-9]*$
	ShortName string `json:"short_name,omitempty"`

	// title
	// Max Length: 400
	// Min Length: 1
	Title string `json:"title,omitempty"`
}

UpdateProjectInput update project input

swagger:model UpdateProjectInput

func (*UpdateProjectInput) ContextValidate

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

ContextValidate validate this update project input based on the context it is used

func (*UpdateProjectInput) MarshalBinary

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

MarshalBinary interface implementation

func (*UpdateProjectInput) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UpdateProjectInput) Validate

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

Validate validates this update project input

type UpdateTranslationInput

type UpdateTranslationInput struct {

	// description
	// Max Length: 8000
	// Min Length: 0
	Description *string `json:"description,omitempty"`

	// id
	// Required: true
	// Max Length: 36
	// Min Length: 3
	ID *string `json:"id"`

	// key
	// Max Length: 400
	// Min Length: 1
	// Pattern: ^[^\s]*$
	Key string `json:"key,omitempty"`

	// title
	// Max Length: 300
	// Min Length: 0
	Title *string `json:"title,omitempty"`

	// variables
	Variables interface{} `json:"variables,omitempty"`
}

UpdateTranslationInput update translation input

swagger:model UpdateTranslationInput

func (*UpdateTranslationInput) ContextValidate

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

ContextValidate validates this update translation input based on context it is used

func (*UpdateTranslationInput) MarshalBinary

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

MarshalBinary interface implementation

func (*UpdateTranslationInput) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UpdateTranslationInput) Validate

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

Validate validates this update translation input

type UpdateTranslationValueInput

type UpdateTranslationValueInput struct {

	// If set, it will add/update the context for that key instead of the original value
	// Max Length: 100
	// Min Length: 1
	// Pattern: ^[^\s]*$
	ContextKey string `json:"context_key,omitempty"`

	// id
	// Required: true
	// Max Length: 36
	// Min Length: 3
	ID *string `json:"id"`

	// value
	// Max Length: 8000
	// Min Length: 0
	Value *string `json:"value,omitempty"`
}

UpdateTranslationValueInput update translation value input

swagger:model UpdateTranslationValueInput

func (*UpdateTranslationValueInput) ContextValidate

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

ContextValidate validates this update translation value input based on context it is used

func (*UpdateTranslationValueInput) MarshalBinary

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

MarshalBinary interface implementation

func (*UpdateTranslationValueInput) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UpdateTranslationValueInput) Validate

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

Validate validates this update translation value input

type UploadMeta added in v0.8.0

type UploadMeta struct {

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

	// locale
	Locale string `json:"locale,omitempty"`

	// locale key
	LocaleKey string `json:"locale_key,omitempty"`

	// parent
	Parent string `json:"parent,omitempty"`

	// provider ID
	ProviderID string `json:"provider_id,omitempty"`

	// provider name
	ProviderName string `json:"provider_name,omitempty"`

	// size
	Size int64 `json:"size,omitempty"`

	// tag
	Tag string `json:"tag,omitempty"`

	// URL
	URL string `json:"url,omitempty"`
}

UploadMeta upload meta

swagger:model UploadMeta

func (*UploadMeta) ContextValidate added in v0.8.0

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

ContextValidate validates this upload meta based on context it is used

func (*UploadMeta) MarshalBinary added in v0.8.0

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

MarshalBinary interface implementation

func (*UploadMeta) UnmarshalBinary added in v0.8.0

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

UnmarshalBinary interface implementation

func (*UploadMeta) Validate added in v0.8.0

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

Validate validates this upload meta

type User

type User struct {

	// If not active, the account cannot be used until any issues are resolved.
	Active bool `json:"active,omitempty"`

	// can create locales
	CanCreateLocales bool `json:"can_create_locales,omitempty"`

	// can create organization
	CanCreateOrganization bool `json:"can_create_organization,omitempty"`

	// can create projects
	CanCreateProjects bool `json:"can_create_projects,omitempty"`

	// can create translations
	CanCreateTranslations bool `json:"can_create_translations,omitempty"`

	// can create users
	CanCreateUsers bool `json:"can_create_users,omitempty"`

	// can manage snapshots
	CanManageSnapshots bool `json:"can_manage_snapshots,omitempty"`

	// can update locales
	CanUpdateLocales bool `json:"can_update_locales,omitempty"`

	// can update organization
	CanUpdateOrganization bool `json:"can_update_organization,omitempty"`

	// can update projects
	CanUpdateProjects bool `json:"can_update_projects,omitempty"`

	// can update translations
	CanUpdateTranslations bool `json:"can_update_translations,omitempty"`

	// can update users
	CanUpdateUsers bool `json:"can_update_users,omitempty"`

	// Time of which the entity was created in the database
	// Required: true
	// Format: date-time
	CreatedAt *strfmt.DateTime `json:"created_at"`

	// User id refering to the user who created the item
	CreatedBy string `json:"created_by,omitempty"`

	// If set, the item is considered deleted. The item will normally not get deleted from the database,
	// but it may if cleanup is required.
	// Format: date-time
	Deleted strfmt.DateTime `json:"deleted,omitempty"`

	// Unique identifier of the entity
	// Required: true
	ID *string `json:"id"`

	// If set, the user must change the password before the account can be used
	TemporaryPassword bool `json:"temporary_password,omitempty"`

	// Time of which the entity was updated, if any
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"`

	// User id refering to who created the item
	UpdatedBy string `json:"updated_by,omitempty"`

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

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

type Validator

type Validator interface {
	Validate(formats strfmt.Registry) error
}

Jump to

Keyboard shortcuts

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