Help us shape the future of Go! Take the 2026 Go Developer Survey

basicclientmodels

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// NamespaceContextTypeGAME captures enum value "GAME"
	NamespaceContextTypeGAME string = "GAME"

	// NamespaceContextTypePUBLISHER captures enum value "PUBLISHER"
	NamespaceContextTypePUBLISHER string = "PUBLISHER"

	// NamespaceContextTypeSTUDIO captures enum value "STUDIO"
	NamespaceContextTypeSTUDIO string = "STUDIO"
)
View Source
const (

	// NamespaceInfoStatusACTIVE captures enum value "ACTIVE"
	NamespaceInfoStatusACTIVE string = "ACTIVE"

	// NamespaceInfoStatusDELETED captures enum value "DELETED"
	NamespaceInfoStatusDELETED string = "DELETED"

	// NamespaceInfoStatusINACTIVE captures enum value "INACTIVE"
	NamespaceInfoStatusINACTIVE string = "INACTIVE"
)
View Source
const (

	// NamespaceStatusUpdateStatusACTIVE captures enum value "ACTIVE"
	NamespaceStatusUpdateStatusACTIVE string = "ACTIVE"

	// NamespaceStatusUpdateStatusINACTIVE captures enum value "INACTIVE"
	NamespaceStatusUpdateStatusINACTIVE string = "INACTIVE"
)
View Source
const (

	// UserProfileAdminStatusACTIVE captures enum value "ACTIVE"
	UserProfileAdminStatusACTIVE string = "ACTIVE"

	// UserProfileAdminStatusINACTIVE captures enum value "INACTIVE"
	UserProfileAdminStatusINACTIVE string = "INACTIVE"
)
View Source
const (

	// UserProfileInfoStatusACTIVE captures enum value "ACTIVE"
	UserProfileInfoStatusACTIVE string = "ACTIVE"

	// UserProfileInfoStatusINACTIVE captures enum value "INACTIVE"
	UserProfileInfoStatusINACTIVE string = "INACTIVE"
)
View Source
const (

	// UserProfilePrivateInfoStatusACTIVE captures enum value "ACTIVE"
	UserProfilePrivateInfoStatusACTIVE string = "ACTIVE"

	// UserProfilePrivateInfoStatusINACTIVE captures enum value "INACTIVE"
	UserProfilePrivateInfoStatusINACTIVE string = "INACTIVE"
)
View Source
const (

	// UserProfileStatusUpdateStatusACTIVE captures enum value "ACTIVE"
	UserProfileStatusUpdateStatusACTIVE string = "ACTIVE"

	// UserProfileStatusUpdateStatusINACTIVE captures enum value "INACTIVE"
	UserProfileStatusUpdateStatusINACTIVE string = "INACTIVE"
)

Variables

View Source
var (
	Error11121 = ApiError{Code: "11121", Message: "Unable to {action}: category {category} is not valid"}
	Error11131 = ApiError{Code: "11131", Message: "Unable to {action}: File type is not supported"}
	Error11132 = ApiError{Code: "11132", Message: "Unable to {action}: file storage exceed limitation, user ID: {userId}, namespace: {namespace}"}
	Error11233 = ApiError{Code: "11233", Message: "Unable to {action}: Country group with code [{countryGroupCode}] is not found"}
	Error11234 = ApiError{Code: "11234", Message: "Unable to {action}: A country can't be assigned to more than one country group"}
	Error11235 = ApiError{Code: "11235", Message: "Unable to {action}: Country group with specified code is already exist"}
	Error11336 = ApiError{Code: "11336", Message: "Unable to {action}: Namespace already exists"}
	Error11337 = ApiError{Code: "11337", Message: "Unable to {action}: Namespace not found"}
	Error11338 = ApiError{Code: "11338", Message: "Unable to {action}: Namespace contains invalid character(s)"}
	Error11339 = ApiError{Code: "11339", Message: "Unable to {action}: Display name contains invalid character(s)"}
	Error11340 = ApiError{Code: "11340", Message: "Unable to {action}: The maximum number of games namespace for studio:{studio} has been exceeded"}
	Error11440 = ApiError{Code: "11440", Message: "Unable to {action}: User profile not found in namespace [{namespace}]"}
	Error11441 = ApiError{Code: "11441", Message: "Unable to {action}: User profile already exists"}
	Error11469 = ApiError{Code: "11469", Message: "User profile with publicId [{publicId}] not found in namespace [{namespace}]"}
	Error11741 = ApiError{Code: "11741", Message: "Unable to {action}: Config not found"}
	Error11771 = ApiError{Code: "11771", Message: "Unable to {action}: Config already exists"}
	Error20000 = ApiError{Code: "20000", Message: "internal server error"}
	Error20001 = ApiError{Code: "20001", Message: "unauthorized"}
	Error20002 = ApiError{Code: "20002", Message: "validation error"}
	Error20006 = ApiError{Code: "20006", Message: "optimistic lock"}
	Error20008 = ApiError{Code: "20008", Message: "user not found"}
	Error20013 = ApiError{Code: "20013", Message: "insufficient permission"}
	Error20017 = ApiError{Code: "20017", Message: "user not linked"}
	Error20019 = ApiError{Code: "20019", Message: "unable to parse request body"}
)

Functions

This section is empty.

Types

type AddCountryGroupRequest

type AddCountryGroupRequest struct {

	// countries
	Countries []*CountryObject `json:"countries,omitempty"`

	// countrygroupcode
	CountryGroupCode string `json:"countryGroupCode,omitempty"`

	// countrygroupname
	CountryGroupName string `json:"countryGroupName,omitempty"`
}

AddCountryGroupRequest Add country group request

swagger:model Add country group request.

func (*AddCountryGroupRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*AddCountryGroupRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AddCountryGroupRequest) Validate

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

Validate validates this Add country group request

type AddCountryGroupResponse

type AddCountryGroupResponse struct {

	// countries
	Countries []*CountryObject `json:"countries,omitempty"`

	// countrygroupcode
	CountryGroupCode string `json:"countryGroupCode,omitempty"`

	// countrygroupname
	CountryGroupName string `json:"countryGroupName,omitempty"`
}

AddCountryGroupResponse Add country group response

swagger:model Add country group response.

func (*AddCountryGroupResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*AddCountryGroupResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AddCountryGroupResponse) Validate

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

Validate validates this Add country group response

type ApiError

type ApiError struct {
	Code    string
	Message string
}

func (*ApiError) Error

func (e *ApiError) Error() string

func (*ApiError) IsAvailable

func (e *ApiError) IsAvailable() bool

type ApiResponse

type ApiResponse struct {
	IsSuccess   bool
	StatusCode  int
	ContentType *string
	Error       *ApiError
}

type ConfigCreate

type ConfigCreate struct {

	// key, only accept alphabet and numeric
	// Required: true
	Key *string `json:"key"`

	// value
	// Required: true
	Value *string `json:"value"`
}

ConfigCreate Config create

swagger:model Config create.

func (*ConfigCreate) MarshalBinary

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

MarshalBinary interface implementation

func (*ConfigCreate) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ConfigCreate) Validate

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

Validate validates this Config create

type ConfigInfo

type ConfigInfo struct {

	// createdat
	// Format: date-time
	CreatedAt *strfmt.DateTime `json:"createdAt,omitempty"`

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

	// namespace
	Namespace string `json:"namespace,omitempty"`

	// updatedat
	// Format: date-time
	UpdatedAt *strfmt.DateTime `json:"updatedAt,omitempty"`

	// value
	Value string `json:"value,omitempty"`
}

ConfigInfo Config info

swagger:model Config info.

func (*ConfigInfo) MarshalBinary

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

MarshalBinary interface implementation

func (*ConfigInfo) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ConfigInfo) Validate

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

Validate validates this Config info

type ConfigUpdate

type ConfigUpdate struct {

	// value
	// Required: true
	Value *string `json:"value"`
}

ConfigUpdate Config update

swagger:model Config update.

func (*ConfigUpdate) MarshalBinary

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

MarshalBinary interface implementation

func (*ConfigUpdate) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ConfigUpdate) Validate

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

Validate validates this Config update

type CountryGroupObject

type CountryGroupObject struct {

	// countries
	Countries []*CountryObject `json:"countries,omitempty"`

	// countrygroupcode
	CountryGroupCode string `json:"countryGroupCode,omitempty"`

	// countrygroupname
	CountryGroupName string `json:"countryGroupName,omitempty"`
}

CountryGroupObject Country group object

swagger:model Country group object.

func (*CountryGroupObject) MarshalBinary

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

MarshalBinary interface implementation

func (*CountryGroupObject) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CountryGroupObject) Validate

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

Validate validates this Country group object

type CountryObject

type CountryObject struct {

	// code
	Code string `json:"code,omitempty"`

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

CountryObject Country object

swagger:model Country object.

func (*CountryObject) MarshalBinary

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

MarshalBinary interface implementation

func (*CountryObject) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CountryObject) Validate

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

Validate validates this Country object

type ErrorEntity

type ErrorEntity struct {

	// internal server error stack trace in configured environment
	DevStackTrace string `json:"devStackTrace,omitempty"`

	// numeric error code
	// Required: true
	// Format: int32
	ErrorCode *int32 `json:"errorCode"`

	// error message
	// Required: true
	ErrorMessage *string `json:"errorMessage"`

	// message variables
	MessageVariables map[string]string `json:"messageVariables,omitempty"`

	// requiredpermission
	RequiredPermission *Permission `json:"requiredPermission,omitempty"`
}

ErrorEntity Error entity

swagger:model Error entity.

func (*ErrorEntity) MarshalBinary

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

MarshalBinary interface implementation

func (*ErrorEntity) TranslateToApiError

func (m *ErrorEntity) TranslateToApiError() (*ApiError, error)

func (*ErrorEntity) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ErrorEntity) Validate

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

Validate validates this Error entity

type FieldValidationError

type FieldValidationError struct {

	// errorcode
	ErrorCode string `json:"errorCode,omitempty"`

	// errorfield
	ErrorField string `json:"errorField,omitempty"`

	// errormessage
	ErrorMessage string `json:"errorMessage,omitempty"`

	// errorvalue
	ErrorValue string `json:"errorValue,omitempty"`

	// messagevariables
	MessageVariables map[string]string `json:"messageVariables,omitempty"`
}

FieldValidationError Field validation error

swagger:model Field validation error.

func (*FieldValidationError) MarshalBinary

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

MarshalBinary interface implementation

func (*FieldValidationError) TranslateToApiError

func (m *FieldValidationError) TranslateToApiError() (*ApiError, error)

func (*FieldValidationError) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*FieldValidationError) Validate

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

Validate validates this Field validation error

type FileUploadURLInfo

type FileUploadURLInfo struct {

	// URL for accessing file
	AccessURL string `json:"accessUrl,omitempty"`

	// File content-type
	ContentType string `json:"contentType,omitempty"`

	// HTTP method for uploading file
	Method string `json:"method,omitempty"`

	// URL for uploading file (S3 presigned URL)
	URL string `json:"url,omitempty"`
}

FileUploadURLInfo File upload url info

swagger:model File upload url info.

func (*FileUploadURLInfo) MarshalBinary

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

MarshalBinary interface implementation

func (*FileUploadURLInfo) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*FileUploadURLInfo) Validate

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

Validate validates this File upload url info

type NamespaceContext

type NamespaceContext struct {

	// target namespace which need to get its context
	Namespace string `json:"namespace,omitempty"`

	// publisher namespace
	PublisherNamespace string `json:"publisherNamespace,omitempty"`

	// studio namespace, it will be empty when input namespace is publisher namespace
	StudioNamespace string `json:"studioNamespace,omitempty"`

	// input namespace type
	// Enum: ['Game', 'Publisher', 'Studio']
	Type string `json:"type,omitempty"`
}

NamespaceContext Namespace context

swagger:model Namespace context.

func (*NamespaceContext) MarshalBinary

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

MarshalBinary interface implementation

func (*NamespaceContext) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NamespaceContext) Validate

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

Validate validates this Namespace context

type NamespaceCreate

type NamespaceCreate struct {

	// display name
	// Required: true
	DisplayName *string `json:"displayName"`

	// flag to indicate whether the namespace is for testing purposes. In multi-tenant mode, only applicable for studio namespaces
	IsTesting bool `json:"isTesting"`

	// namespace, only accept alphabet and numeric. Will be converted to lowercase
	// Required: true
	Namespace *string `json:"namespace"`
}

NamespaceCreate Namespace create

swagger:model Namespace create.

func (*NamespaceCreate) MarshalBinary

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

MarshalBinary interface implementation

func (*NamespaceCreate) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NamespaceCreate) Validate

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

Validate validates this Namespace create

type NamespaceInfo

type NamespaceInfo struct {

	// clientId is only present on multi tenant mode with namespace is not publisher namespace
	ClientID string `json:"clientId,omitempty"`

	// createdat
	// Format: date-time
	CreatedAt *strfmt.DateTime `json:"createdAt,omitempty"`

	// namespace display name
	// Required: true
	DisplayName *string `json:"displayName"`

	// isTesting flag to indicate whether the namespace is for testing purposes. In multi-tenant mode, only applicable for studio namespaces
	IsTesting bool `json:"isTesting"`

	// namespace
	// Required: true
	Namespace *string `json:"namespace"`

	// parentNamespace is only present in multi tenant mode
	ParentNamespace string `json:"parentNamespace,omitempty"`

	// status
	// Enum: ['ACTIVE', 'DELETED', 'INACTIVE']
	Status string `json:"status,omitempty"`

	// updatedat
	// Format: date-time
	UpdatedAt *strfmt.DateTime `json:"updatedAt,omitempty"`
}

NamespaceInfo Namespace info

swagger:model Namespace info.

func (*NamespaceInfo) MarshalBinary

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

MarshalBinary interface implementation

func (*NamespaceInfo) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NamespaceInfo) Validate

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

Validate validates this Namespace info

type NamespacePublisherInfo

type NamespacePublisherInfo struct {

	// inform whether the specified namespace is publisher namespace or not
	Publisher bool `json:"publisher"`

	// name of publisher namespace
	PublisherNamespace string `json:"publisherNamespace,omitempty"`
}

NamespacePublisherInfo Namespace publisher info

swagger:model Namespace publisher info.

func (*NamespacePublisherInfo) MarshalBinary

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

MarshalBinary interface implementation

func (*NamespacePublisherInfo) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NamespacePublisherInfo) Validate

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

Validate validates this Namespace publisher info

type NamespaceSimpleInfo

type NamespaceSimpleInfo struct {

	// namespace display name
	// Required: true
	DisplayName *string `json:"displayName"`
}

NamespaceSimpleInfo Namespace simple info

swagger:model Namespace simple info.

func (*NamespaceSimpleInfo) MarshalBinary

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

MarshalBinary interface implementation

func (*NamespaceSimpleInfo) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NamespaceSimpleInfo) Validate

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

Validate validates this Namespace simple info

type NamespaceStatusUpdate

type NamespaceStatusUpdate struct {

	// namespace status
	// Enum: ['ACTIVE', 'INACTIVE']
	// Required: true
	Status *string `json:"status"`
}

NamespaceStatusUpdate Namespace status update

swagger:model Namespace status update.

func (*NamespaceStatusUpdate) MarshalBinary

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

MarshalBinary interface implementation

func (*NamespaceStatusUpdate) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NamespaceStatusUpdate) Validate

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

Validate validates this Namespace status update

type NamespaceTestingFlagUpdate added in v0.3.0

type NamespaceTestingFlagUpdate struct {

	// testing flag to indicate whether the namespace is for testing purposes
	// Required: true
	IsTesting *bool `json:"isTesting"`
}

NamespaceTestingFlagUpdate Namespace testing flag update

swagger:model Namespace testing flag update.

func (*NamespaceTestingFlagUpdate) MarshalBinary added in v0.3.0

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

MarshalBinary interface implementation

func (*NamespaceTestingFlagUpdate) UnmarshalBinary added in v0.3.0

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

UnmarshalBinary interface implementation

func (*NamespaceTestingFlagUpdate) Validate added in v0.3.0

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

Validate validates this Namespace testing flag update

type NamespaceUpdate

type NamespaceUpdate struct {

	// display name
	// Required: true
	DisplayName *string `json:"displayName"`
}

NamespaceUpdate Namespace update

swagger:model Namespace update.

func (*NamespaceUpdate) MarshalBinary

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

MarshalBinary interface implementation

func (*NamespaceUpdate) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NamespaceUpdate) Validate

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

Validate validates this Namespace update

type Permission

type Permission struct {

	// action
	// Format: int32
	Action int32 `json:"action,omitempty"`

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

Permission Permission

swagger:model Permission.

func (*Permission) MarshalBinary

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

MarshalBinary interface implementation

func (*Permission) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Permission) Validate

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

Validate validates this Permission

type RetrieveCountryGroupResponse

type RetrieveCountryGroupResponse struct {

	// countries
	Countries []*CountryObject `json:"countries,omitempty"`

	// countrygroupcode
	CountryGroupCode string `json:"countryGroupCode,omitempty"`

	// countrygroupname
	CountryGroupName string `json:"countryGroupName,omitempty"`
}

RetrieveCountryGroupResponse Retrieve country group response

swagger:model Retrieve country group response.

func (*RetrieveCountryGroupResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*RetrieveCountryGroupResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RetrieveCountryGroupResponse) Validate

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

Validate validates this Retrieve country group response

type RetrieveTimeResponse

type RetrieveTimeResponse struct {

	// currenttime
	CurrentTime string `json:"currentTime,omitempty"`
}

RetrieveTimeResponse Retrieve time response

swagger:model Retrieve time response.

func (*RetrieveTimeResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*RetrieveTimeResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RetrieveTimeResponse) Validate

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

Validate validates this Retrieve time response

type UpdateCountryGroupRequest

type UpdateCountryGroupRequest struct {

	// countries
	Countries []*CountryObject `json:"countries,omitempty"`

	// countrygroupname
	CountryGroupName string `json:"countryGroupName,omitempty"`
}

UpdateCountryGroupRequest Update country group request

swagger:model Update country group request.

func (*UpdateCountryGroupRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*UpdateCountryGroupRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UpdateCountryGroupRequest) Validate

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

Validate validates this Update country group request

type UserProfileAdmin

type UserProfileAdmin struct {

	// should be comply with OWASP url format
	AvatarLargeURL string `json:"avatarLargeUrl,omitempty"`

	// should be comply with OWASP url format
	AvatarSmallURL string `json:"avatarSmallUrl,omitempty"`

	// should be comply with OWASP url format
	AvatarURL string `json:"avatarUrl,omitempty"`

	// customattributes
	CustomAttributes interface{} `json:"customAttributes,omitempty"`

	// date of birth, allowed format: yyyy-MM-dd, valid date range from 1905-01-01 until present
	// Format: date
	DateOfBirth *string `json:"dateOfBirth,omitempty"`

	// deprecated
	FirstName string `json:"firstName,omitempty"`

	// language value from language tag, allowed format: en, en-US.<p>Supported language tag : [RFC5646](https://gist.github.com/msikma/8912e62ed866778ff8cd) and [IETF](https://datahub.io/core/language-codes#resource-ietf-language-tags)</p>
	Language string `json:"language,omitempty"`

	// deprecated
	LastName string `json:"lastName,omitempty"`

	// privatecustomattributes
	PrivateCustomAttributes interface{} `json:"privateCustomAttributes,omitempty"`

	// status
	// Enum: ['ACTIVE', 'INACTIVE']
	Status string `json:"status,omitempty"`

	// time zone, allowed IANA time zone, e.g.Asia/Shanghai
	TimeZone string `json:"timeZone,omitempty"`

	// zip code
	ZipCode string `json:"zipCode,omitempty"`
}

UserProfileAdmin User profile admin

swagger:model User profile admin.

func (*UserProfileAdmin) MarshalBinary

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

MarshalBinary interface implementation

func (*UserProfileAdmin) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserProfileAdmin) Validate

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

Validate validates this User profile admin

type UserProfileBulkRequest

type UserProfileBulkRequest struct {

	// User IDs, list of User ID with limit max to 100 User ID
	UserIds []string `json:"userIds,omitempty"`
}

UserProfileBulkRequest User profile bulk request

swagger:model User profile bulk request.

func (*UserProfileBulkRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*UserProfileBulkRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserProfileBulkRequest) Validate

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

Validate validates this User profile bulk request

type UserProfileCreate

type UserProfileCreate struct {

	// should be comply with OWASP url format
	AvatarLargeURL string `json:"avatarLargeUrl,omitempty"`

	// should be comply with OWASP url format
	AvatarSmallURL string `json:"avatarSmallUrl,omitempty"`

	// should be comply with OWASP url format
	AvatarURL string `json:"avatarUrl,omitempty"`

	// customattributes
	CustomAttributes interface{} `json:"customAttributes,omitempty"`

	// date of birth, allowed format: yyyy-MM-dd, valid date range from 1905-01-01 until present
	// Format: date
	DateOfBirth *string `json:"dateOfBirth,omitempty"`

	// deprecated
	FirstName string `json:"firstName,omitempty"`

	// language value from language tag, allowed format: en, en-US.<p>Supported language tag : [RFC5646](https://gist.github.com/msikma/8912e62ed866778ff8cd) and [IETF](https://datahub.io/core/language-codes#resource-ietf-language-tags)</p>
	Language string `json:"language,omitempty"`

	// deprecated
	LastName string `json:"lastName,omitempty"`

	// time zone, allowed IANA time zone, e.g.Asia/Shanghai
	TimeZone string `json:"timeZone,omitempty"`
}

UserProfileCreate User profile create

swagger:model User profile create.

func (*UserProfileCreate) MarshalBinary

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

MarshalBinary interface implementation

func (*UserProfileCreate) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserProfileCreate) Validate

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

Validate validates this User profile create

type UserProfileInfo

type UserProfileInfo struct {

	// avatarlargeurl
	AvatarLargeURL string `json:"avatarLargeUrl,omitempty"`

	// avatarsmallurl
	AvatarSmallURL string `json:"avatarSmallUrl,omitempty"`

	// avatarurl
	AvatarURL string `json:"avatarUrl,omitempty"`

	// customattributes
	CustomAttributes interface{} `json:"customAttributes,omitempty"`

	// dateofbirth
	// Format: date
	DateOfBirth *string `json:"dateOfBirth,omitempty"`

	// deprecated
	FirstName string `json:"firstName,omitempty"`

	// language
	Language string `json:"language,omitempty"`

	// deprecated
	LastName string `json:"lastName,omitempty"`

	// namespace
	Namespace string `json:"namespace,omitempty"`

	// publicid
	PublicID string `json:"publicId,omitempty"`

	// status
	// Enum: ['ACTIVE', 'INACTIVE']
	Status string `json:"status,omitempty"`

	// timezone
	TimeZone string `json:"timeZone,omitempty"`

	// userid
	UserID string `json:"userId,omitempty"`

	// zipcode
	ZipCode string `json:"zipCode,omitempty"`
}

UserProfileInfo User profile info

swagger:model User profile info.

func (*UserProfileInfo) MarshalBinary

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

MarshalBinary interface implementation

func (*UserProfileInfo) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserProfileInfo) Validate

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

Validate validates this User profile info

type UserProfilePrivateCreate

type UserProfilePrivateCreate struct {

	// should be comply with OWASP url format
	AvatarLargeURL string `json:"avatarLargeUrl,omitempty"`

	// should be comply with OWASP url format
	AvatarSmallURL string `json:"avatarSmallUrl,omitempty"`

	// should be comply with OWASP url format
	AvatarURL string `json:"avatarUrl,omitempty"`

	// customattributes
	CustomAttributes interface{} `json:"customAttributes,omitempty"`

	// date of birth, allowed format: yyyy-MM-dd, valid date range from 1905-01-01 until present
	// Format: date
	DateOfBirth *string `json:"dateOfBirth,omitempty"`

	// deprecated
	FirstName string `json:"firstName,omitempty"`

	// language value from language tag, allowed format: en, en-US.<p>Supported language tag : [RFC5646](https://gist.github.com/msikma/8912e62ed866778ff8cd) and [IETF](https://datahub.io/core/language-codes#resource-ietf-language-tags)</p>
	Language string `json:"language,omitempty"`

	// deprecated
	LastName string `json:"lastName,omitempty"`

	// privatecustomattributes
	PrivateCustomAttributes interface{} `json:"privateCustomAttributes,omitempty"`

	// time zone, allowed IANA time zone, e.g.Asia/Shanghai
	TimeZone string `json:"timeZone,omitempty"`
}

UserProfilePrivateCreate User profile private create

swagger:model User profile private create.

func (*UserProfilePrivateCreate) MarshalBinary

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

MarshalBinary interface implementation

func (*UserProfilePrivateCreate) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserProfilePrivateCreate) Validate

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

Validate validates this User profile private create

type UserProfilePrivateInfo

type UserProfilePrivateInfo struct {

	// avatarlargeurl
	AvatarLargeURL string `json:"avatarLargeUrl,omitempty"`

	// avatarsmallurl
	AvatarSmallURL string `json:"avatarSmallUrl,omitempty"`

	// avatarurl
	AvatarURL string `json:"avatarUrl,omitempty"`

	// customattributes
	CustomAttributes interface{} `json:"customAttributes,omitempty"`

	// dateofbirth
	// Format: date
	DateOfBirth *string `json:"dateOfBirth,omitempty"`

	// deprecated
	FirstName string `json:"firstName,omitempty"`

	// language
	Language string `json:"language,omitempty"`

	// deprecated
	LastName string `json:"lastName,omitempty"`

	// namespace
	Namespace string `json:"namespace,omitempty"`

	// privatecustomattributes
	PrivateCustomAttributes interface{} `json:"privateCustomAttributes,omitempty"`

	// publicid
	PublicID string `json:"publicId,omitempty"`

	// status
	// Enum: ['ACTIVE', 'INACTIVE']
	Status string `json:"status,omitempty"`

	// timezone
	TimeZone string `json:"timeZone,omitempty"`

	// userid
	UserID string `json:"userId,omitempty"`

	// zipcode
	ZipCode string `json:"zipCode,omitempty"`
}

UserProfilePrivateInfo User profile private info

swagger:model User profile private info.

func (*UserProfilePrivateInfo) MarshalBinary

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

MarshalBinary interface implementation

func (*UserProfilePrivateInfo) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserProfilePrivateInfo) Validate

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

Validate validates this User profile private info

type UserProfilePublicInfo

type UserProfilePublicInfo struct {

	// avatarlargeurl
	AvatarLargeURL string `json:"avatarLargeUrl,omitempty"`

	// avatarsmallurl
	AvatarSmallURL string `json:"avatarSmallUrl,omitempty"`

	// avatarurl
	AvatarURL string `json:"avatarUrl,omitempty"`

	// customattributes
	CustomAttributes interface{} `json:"customAttributes,omitempty"`

	// namespace
	Namespace string `json:"namespace,omitempty"`

	// publicid
	PublicID string `json:"publicId,omitempty"`

	// timezone
	TimeZone string `json:"timeZone,omitempty"`

	// userid
	UserID string `json:"userId,omitempty"`
}

UserProfilePublicInfo User profile public info

swagger:model User profile public info.

func (*UserProfilePublicInfo) MarshalBinary

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

MarshalBinary interface implementation

func (*UserProfilePublicInfo) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserProfilePublicInfo) Validate

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

Validate validates this User profile public info

type UserProfileStatusUpdate

type UserProfileStatusUpdate struct {

	// status, ACTIVE or INACTIVE
	// Enum: ['ACTIVE', 'INACTIVE']
	// Required: true
	Status *string `json:"status"`
}

UserProfileStatusUpdate User profile status update

swagger:model User profile status update.

func (*UserProfileStatusUpdate) MarshalBinary

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

MarshalBinary interface implementation

func (*UserProfileStatusUpdate) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserProfileStatusUpdate) Validate

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

Validate validates this User profile status update

type UserProfileUpdate

type UserProfileUpdate struct {

	// should be comply with OWASP url format
	AvatarLargeURL string `json:"avatarLargeUrl,omitempty"`

	// should be comply with OWASP url format
	AvatarSmallURL string `json:"avatarSmallUrl,omitempty"`

	// should be comply with OWASP url format
	AvatarURL string `json:"avatarUrl,omitempty"`

	// customattributes
	CustomAttributes interface{} `json:"customAttributes,omitempty"`

	// date of birth, allowed format: yyyy-MM-dd, valid date range from 1905-01-01 until present
	// Format: date
	DateOfBirth *string `json:"dateOfBirth,omitempty"`

	// deprecated
	FirstName string `json:"firstName,omitempty"`

	// language value from language tag, allowed format: en, en-US.<p>Supported language tag : [RFC5646](https://gist.github.com/msikma/8912e62ed866778ff8cd) and [IETF](https://datahub.io/core/language-codes#resource-ietf-language-tags)</p>
	Language string `json:"language,omitempty"`

	// deprecated
	LastName string `json:"lastName,omitempty"`

	// privatecustomattributes
	PrivateCustomAttributes interface{} `json:"privateCustomAttributes,omitempty"`

	// time zone, allowed IANA time zone, e.g.Asia/Shanghai
	TimeZone string `json:"timeZone,omitempty"`

	// zip code
	ZipCode string `json:"zipCode,omitempty"`
}

UserProfileUpdate User profile update

swagger:model User profile update.

func (*UserProfileUpdate) MarshalBinary

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

MarshalBinary interface implementation

func (*UserProfileUpdate) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserProfileUpdate) Validate

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

Validate validates this User profile update

type UserZipCode

type UserZipCode struct {

	// zipcode
	ZipCode string `json:"zipCode,omitempty"`
}

UserZipCode User zip code

swagger:model User zip code.

func (*UserZipCode) MarshalBinary

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

MarshalBinary interface implementation

func (*UserZipCode) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserZipCode) Validate

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

Validate validates this User zip code

type UserZipCodeUpdate

type UserZipCodeUpdate struct {

	// zip code, accept alphabet and numeric string default
	// Required: true
	ZipCode *string `json:"zipCode"`
}

UserZipCodeUpdate User zip code update

swagger:model User zip code update.

func (*UserZipCodeUpdate) MarshalBinary

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

MarshalBinary interface implementation

func (*UserZipCodeUpdate) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserZipCodeUpdate) Validate

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

Validate validates this User zip code update

type ValidationErrorEntity

type ValidationErrorEntity struct {

	// numeric error code
	// Required: true
	// Format: int32
	ErrorCode *int32 `json:"errorCode"`

	// error message
	// Required: true
	ErrorMessage *string `json:"errorMessage"`

	// errors
	Errors []*FieldValidationError `json:"errors,omitempty"`
}

ValidationErrorEntity Validation error entity

swagger:model Validation error entity.

func (*ValidationErrorEntity) MarshalBinary

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

MarshalBinary interface implementation

func (*ValidationErrorEntity) TranslateToApiError

func (m *ValidationErrorEntity) TranslateToApiError() (*ApiError, error)

func (*ValidationErrorEntity) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ValidationErrorEntity) Validate

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

Validate validates this Validation error entity

Jump to

Keyboard shortcuts

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