Documentation ¶
Index ¶
- Constants
- func Validate(m Validator) error
- type APIError
- type Category
- type CategoryInput
- type CategoryTreeNode
- type Change
- type ChangePasswordInput
- type Changelog
- type CreateSnapshotInput
- type CreateTokenInput
- type CreatorSource
- type DeleteInput
- type DiffSnapshotInput
- type Entity
- type Error
- type ErrorCodes
- type ExtendedCategory
- type ExtendedProject
- type ExtendedTranslation
- type ImportInput
- type JoinInput
- func (m *JoinInput) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *JoinInput) MarshalBinary() ([]byte, error)
- func (m JoinInput) MarshalJSON() ([]byte, error)
- func (m *JoinInput) UnmarshalBinary(b []byte) error
- func (m *JoinInput) UnmarshalJSON(raw []byte) error
- func (m *JoinInput) Validate(formats strfmt.Registry) error
- type Locale
- type LocaleInput
- type LocaleSetting
- type LocaleSettingInput
- type LoginInput
- func (m *LoginInput) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *LoginInput) MarshalBinary() ([]byte, error)
- func (m *LoginInput) SuperValidate(formats strfmt.Registry) error
- func (m *LoginInput) UnmarshalBinary(b []byte) error
- func (m *LoginInput) Validate(formats strfmt.Registry) error
- type LoginResponse
- type MissingTranslation
- type OkResponse
- type Organization
- type OrganizationInput
- type Project
- type ProjectDiffResponse
- type ProjectInput
- type ProjectSnapshot
- type ProjectSnapshotMeta
- type ProjectStats
- type ReleaseInfo
- type ReportMissingInput
- type ServerInfo
- type SimpleUser
- type SnapshotSelector
- type SuperValidator
- type TokenResponse
- type Translation
- type TranslationInput
- type TranslationValue
- type TranslationValueInput
- type UpdateCategoryInput
- type UpdateOrganizationInput
- func (m *UpdateOrganizationInput) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *UpdateOrganizationInput) MarshalBinary() ([]byte, error)
- func (m *UpdateOrganizationInput) UnmarshalBinary(b []byte) error
- func (m *UpdateOrganizationInput) Validate(formats strfmt.Registry) error
- type UpdateProjectInput
- type UpdateTranslationInput
- func (m *UpdateTranslationInput) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *UpdateTranslationInput) MarshalBinary() ([]byte, error)
- func (m *UpdateTranslationInput) UnmarshalBinary(b []byte) error
- func (m *UpdateTranslationInput) Validate(formats strfmt.Registry) error
- type UpdateTranslationValueInput
- func (m *UpdateTranslationValueInput) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *UpdateTranslationValueInput) MarshalBinary() ([]byte, error)
- func (m *UpdateTranslationValueInput) UnmarshalBinary(b []byte) error
- func (m *UpdateTranslationValueInput) Validate(formats strfmt.Registry) error
- type UploadMeta
- type User
- type Validator
Constants ¶
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 ¶
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 ¶
ContextValidate validate this API error based on the context it is used
func (*APIError) MarshalBinary ¶
MarshalBinary interface implementation
func (*APIError) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
ContextValidate validates this category based on context it is used
func (*Category) MarshalBinary ¶
MarshalBinary interface implementation
func (*Category) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
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
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 ¶
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
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 ¶
ContextValidate validates this change based on context it is used
func (*Change) MarshalBinary ¶
MarshalBinary interface implementation
func (*Change) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
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
type Changelog ¶
type Changelog []*Change
Changelog Changelog stores a list of changed items
swagger:model Changelog
func (Changelog) ContextValidate ¶
ContextValidate validate this changelog based on the context it is used
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 ¶
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
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 ¶
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
type CreatorSource ¶
type CreatorSource string
CreatorSource creator source
swagger:model CreatorSource
func (CreatorSource) ContextValidate ¶
ContextValidate validates this creator source based on context it is used
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 ¶
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
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 ¶
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
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 ¶
ContextValidate validates this entity based on context it is used
func (*Entity) MarshalBinary ¶
MarshalBinary interface implementation
func (*Entity) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
ContextValidate validate this error based on the context it is used
func (*Error) MarshalBinary ¶
MarshalBinary interface implementation
func (*Error) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type ErrorCodes ¶
type ErrorCodes string
ErrorCodes error codes
swagger:model ErrorCodes
func (ErrorCodes) ContextValidate ¶
ContextValidate validates this error codes based on context it is used
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 ¶
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
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 ¶
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
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 ¶
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
type JoinInput ¶
type JoinInput struct {
LoginInput
}
JoinInput join input
swagger:model JoinInput
func (*JoinInput) ContextValidate ¶
ContextValidate validate this join input based on the context it is used
func (*JoinInput) MarshalBinary ¶
MarshalBinary interface implementation
func (JoinInput) MarshalJSON ¶
MarshalJSON marshals this object to a JSON structure
func (*JoinInput) UnmarshalBinary ¶
UnmarshalBinary interface implementation
func (*JoinInput) UnmarshalJSON ¶
UnmarshalJSON unmarshals this object from a JSON structure
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 ¶
ContextValidate validates this locale based on context it is used
func (*Locale) MarshalBinary ¶
MarshalBinary interface implementation
func (*Locale) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
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
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 ¶
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
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 ¶
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
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 ¶
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
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 ¶
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
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 ¶
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
type OkResponse ¶
type OkResponse struct { // ok // Required: true Ok *bool `json:"ok"` }
OkResponse ok response
swagger:model OkResponse
func (*OkResponse) ContextValidate ¶
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
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 ¶
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
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 ¶
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
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 ¶
ContextValidate validate this project based on the context it is used
func (*Project) MarshalBinary ¶
MarshalBinary interface implementation
func (*Project) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
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
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 ¶
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
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 ¶
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
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 ¶
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
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
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
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 ¶
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
type ReportMissingInput ¶
ReportMissingInput report missing input
swagger:model ReportMissingInput
func (ReportMissingInput) ContextValidate ¶
ContextValidate validates this report missing input based on context it is used
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 ¶
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
type SimpleUser ¶
type SimpleUser string
SimpleUser simple user
swagger:model SimpleUser
func (SimpleUser) ContextValidate ¶
ContextValidate validates this simple user based on context it is used
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 ¶
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
type SuperValidator ¶
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 ¶
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
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 ¶
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
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 ¶
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
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 ¶
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
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 ¶
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
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 ¶
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
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
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 ¶
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
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
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
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
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
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 ¶
ContextValidate validates this user based on context it is used
func (*User) MarshalBinary ¶
MarshalBinary interface implementation
func (*User) UnmarshalBinary ¶
UnmarshalBinary interface implementation
Source Files ¶
- api_error.go
- category.go
- category_input.go
- category_tree_node.go
- change.go
- change_password_input.go
- changelog.go
- create_snapshot_input.go
- create_token_input.go
- creator_source.go
- delete_input.go
- diff_snapshot_input.go
- entity.go
- error.go
- error_codes.go
- extended_category.go
- extended_project.go
- extended_translation.go
- import_input.go
- join_input.go
- locale.go
- locale_input.go
- locale_setting.go
- locale_setting_input.go
- login_input.go
- login_response.go
- missing_translation.go
- ok_response.go
- organization.go
- organization_input.go
- project.go
- project_diff_response.go
- project_input.go
- project_snapshot.go
- project_snapshot_meta.go
- project_stats.go
- release_info.go
- report_missing_input.go
- server_info.go
- simple_user.go
- snapshot_selector.go
- token_response.go
- translation.go
- translation_input.go
- translation_value.go
- translation_value_input.go
- update_category_input.go
- update_organization_input.go
- update_project_input.go
- update_translation_input.go
- update_translation_value_input.go
- upload_meta.go
- user.go
- validation.go
- validation_login.go