models

package
v0.0.0-...-65287e9 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProtobufAny

type ProtobufAny struct {

	// type Url
	TypeURL string `json:"typeUrl,omitempty"`

	// value
	// Format: byte
	Value strfmt.Base64 `json:"value,omitempty"`
}

ProtobufAny protobuf any

swagger:model protobufAny

func (*ProtobufAny) ContextValidate

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

ContextValidate validates this protobuf any based on context it is used

func (*ProtobufAny) MarshalBinary

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

MarshalBinary interface implementation

func (*ProtobufAny) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ProtobufAny) Validate

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

Validate validates this protobuf any

type RPCStatus

type RPCStatus struct {

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

	// details
	Details []*ProtobufAny `json:"details"`

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

RPCStatus rpc status

swagger:model rpcStatus

func (*RPCStatus) ContextValidate

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

ContextValidate validate this rpc status based on the context it is used

func (*RPCStatus) MarshalBinary

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

MarshalBinary interface implementation

func (*RPCStatus) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RPCStatus) Validate

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

Validate validates this rpc status

type UserEmpty

type UserEmpty interface{}

UserEmpty user empty

swagger:model userEmpty

type UserLink struct {

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

	// group type
	GroupType string `json:"groupType,omitempty"`

	// personal data
	PersonalData bool `json:"personalData,omitempty"`

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

	// uri
	URI string `json:"uri,omitempty"`
}

UserLink user link

swagger:model userLink

func (*UserLink) ContextValidate

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

ContextValidate validates this user link based on context it is used

func (*UserLink) MarshalBinary

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

MarshalBinary interface implementation

func (*UserLink) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserLink) Validate

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

Validate validates this user link

type UserTag

type UserTag struct {

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

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

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

UserTag user tag

swagger:model userTag

func (*UserTag) ContextValidate

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

ContextValidate validates this user tag based on context it is used

func (*UserTag) MarshalBinary

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

MarshalBinary interface implementation

func (*UserTag) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserTag) Validate

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

Validate validates this user tag

type UserUserAddRequest

type UserUserAddRequest struct {

	// country
	Country string `json:"country,omitempty"`

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

	// followed groups
	FollowedGroups []string `json:"followedGroups"`

	// full name
	FullName string `json:"fullName,omitempty"`

	// last name
	LastName string `json:"lastName,omitempty"`

	// member
	Member bool `json:"member,omitempty"`

	// newsletter notification
	NewsletterNotification bool `json:"newsletterNotification,omitempty"`

	// role Id
	RoleID int32 `json:"roleId,omitempty"`

	// username
	Username string `json:"username,omitempty"`
}

UserUserAddRequest user user add request

swagger:model userUserAddRequest

func (*UserUserAddRequest) ContextValidate

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

ContextValidate validates this user user add request based on context it is used

func (*UserUserAddRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*UserUserAddRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserUserAddRequest) Validate

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

Validate validates this user user add request

type UserUserCreditResponse

type UserUserCreditResponse struct {

	// total
	Total string `json:"total,omitempty"`
}

UserUserCreditResponse user user credit response

swagger:model userUserCreditResponse

func (*UserUserCreditResponse) ContextValidate

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

ContextValidate validates this user user credit response based on context it is used

func (*UserUserCreditResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*UserUserCreditResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserUserCreditResponse) Validate

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

Validate validates this user user credit response

type UserUserGroupCreateRequest

type UserUserGroupCreateRequest struct {

	// avatar
	Avatar string `json:"avatar,omitempty"`

	// banner
	Banner string `json:"banner,omitempty"`

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

	// display name
	DisplayName string `json:"displayName,omitempty"`

	// group email
	GroupEmail string `json:"groupEmail,omitempty"`

	// group type
	GroupType string `json:"groupType,omitempty"`

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

	// links
	Links []string `json:"links"`

	// short bio
	ShortBio string `json:"shortBio,omitempty"`

	// tags
	Tags []string `json:"tags"`
}

UserUserGroupCreateRequest user user group create request

swagger:model userUserGroupCreateRequest

func (*UserUserGroupCreateRequest) ContextValidate

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

ContextValidate validates this user user group create request based on context it is used

func (*UserUserGroupCreateRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*UserUserGroupCreateRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserUserGroupCreateRequest) Validate

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

Validate validates this user user group create request

type UserUserGroupListResponse

type UserUserGroupListResponse struct {

	// usergroup
	Usergroup []*UserUserGroupPrivateResponse `json:"usergroup"`
}

UserUserGroupListResponse user user group list response

swagger:model userUserGroupListResponse

func (*UserUserGroupListResponse) ContextValidate

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

ContextValidate validate this user user group list response based on the context it is used

func (*UserUserGroupListResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*UserUserGroupListResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserUserGroupListResponse) Validate

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

Validate validates this user user group list response

type UserUserGroupPrivateResponse

type UserUserGroupPrivateResponse struct {

	// avatar
	Avatar string `json:"avatar,omitempty"`

	// banner
	Banner string `json:"banner,omitempty"`

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

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

	// display name
	DisplayName string `json:"displayName,omitempty"`

	// repeated string followers = 9;
	// repeated string members = 10;
	// repeated string memberOfGroups = 11;
	// repeated string links = 12;
	// repeated string tags = 13;
	//  StreetAddress address = 13;
	// Privacy privacy = 14;
	// repeated RelatedUserGroup recommended_artists = 15;
	// map<string, string> publisher = 16;
	// map<string, string> pro = 17;
	GroupEmail string `json:"groupEmail,omitempty"`

	// group type
	GroupType string `json:"groupType,omitempty"`

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

	// owner Id
	OwnerID string `json:"ownerId,omitempty"`

	// short bio
	ShortBio string `json:"shortBio,omitempty"`

	// updated at
	UpdatedAt string `json:"updatedAt,omitempty"`
}

UserUserGroupPrivateResponse user user group private response

swagger:model userUserGroupPrivateResponse

func (*UserUserGroupPrivateResponse) ContextValidate

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

ContextValidate validates this user user group private response based on context it is used

func (*UserUserGroupPrivateResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*UserUserGroupPrivateResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserUserGroupPrivateResponse) Validate

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

Validate validates this user user group private response

type UserUserGroupPublicResponse

type UserUserGroupPublicResponse struct {

	// avatar
	Avatar string `json:"avatar,omitempty"`

	// banner
	Banner string `json:"banner,omitempty"`

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

	// display name
	DisplayName string `json:"displayName,omitempty"`

	// followers
	Followers []string `json:"followers"`

	// repeated RelatedUserGroup recommended_artists = 17;
	// map<string, string> publisher = 21;
	// map<string, string> pro = 22;
	GroupEmail string `json:"groupEmail,omitempty"`

	// group type
	GroupType string `json:"groupType,omitempty"`

	// links
	Links []*UserLink `json:"links"`

	// member of groups
	MemberOfGroups []string `json:"memberOfGroups"`

	// members
	Members []string `json:"members"`

	// short bio
	ShortBio string `json:"shortBio,omitempty"`

	// tags
	Tags []string `json:"tags"`
}

UserUserGroupPublicResponse user user group public response

swagger:model userUserGroupPublicResponse

func (*UserUserGroupPublicResponse) ContextValidate

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

ContextValidate validate this user user group public response based on the context it is used

func (*UserUserGroupPublicResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*UserUserGroupPublicResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserUserGroupPublicResponse) Validate

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

Validate validates this user user group public response

type UserUserGroupUpdateRequest

type UserUserGroupUpdateRequest struct {

	// avatar
	Avatar string `json:"avatar,omitempty"`

	// banner
	Banner string `json:"banner,omitempty"`

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

	// display name
	DisplayName string `json:"displayName,omitempty"`

	// group email
	GroupEmail string `json:"groupEmail,omitempty"`

	// group type
	GroupType string `json:"groupType,omitempty"`

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

	// links
	Links []string `json:"links"`

	// owner Id
	OwnerID string `json:"ownerId,omitempty"`

	// short bio
	ShortBio string `json:"shortBio,omitempty"`

	// tags
	Tags []string `json:"tags"`
}

UserUserGroupUpdateRequest user user group update request

swagger:model userUserGroupUpdateRequest

func (*UserUserGroupUpdateRequest) ContextValidate

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

ContextValidate validates this user user group update request based on context it is used

func (*UserUserGroupUpdateRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*UserUserGroupUpdateRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserUserGroupUpdateRequest) Validate

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

Validate validates this user user group update request

type UserUserListResponse

type UserUserListResponse struct {

	// user
	User []*UserUserPrivateResponse `json:"user"`
}

UserUserListResponse user user list response

swagger:model userUserListResponse

func (*UserUserListResponse) ContextValidate

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

ContextValidate validate this user user list response based on the context it is used

func (*UserUserListResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*UserUserListResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserUserListResponse) Validate

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

Validate validates this user user list response

type UserUserMembershipResponse

type UserUserMembershipResponse struct {

	// end
	End string `json:"end,omitempty"`

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

	// membership class
	MembershipClass string `json:"membershipClass,omitempty"`

	// start
	Start string `json:"start,omitempty"`
}

UserUserMembershipResponse user user membership response

swagger:model userUserMembershipResponse

func (*UserUserMembershipResponse) ContextValidate

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

ContextValidate validates this user user membership response based on context it is used

func (*UserUserMembershipResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*UserUserMembershipResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserUserMembershipResponse) Validate

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

Validate validates this user user membership response

type UserUserPrivateResponse

type UserUserPrivateResponse struct {

	// country
	Country string `json:"country,omitempty"`

	// email confirmed
	EmailConfirmed bool `json:"emailConfirmed,omitempty"`

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

	// followed groups
	FollowedGroups []string `json:"followedGroups"`

	// full name
	FullName string `json:"fullName,omitempty"`

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

	// last name
	LastName string `json:"lastName,omitempty"`

	// legacy Id
	LegacyID int32 `json:"legacyId,omitempty"`

	// member
	Member bool `json:"member,omitempty"`

	// newsletter notification
	NewsletterNotification bool `json:"newsletterNotification,omitempty"`

	// owned groups
	OwnedGroups []string `json:"ownedGroups"`

	// personas
	Personas []string `json:"personas"`

	// role Id
	RoleID int32 `json:"roleId,omitempty"`

	// tenant Id
	TenantID int32 `json:"tenantId,omitempty"`

	// username
	Username string `json:"username,omitempty"`
}

UserUserPrivateResponse user user private response

swagger:model userUserPrivateResponse

func (*UserUserPrivateResponse) ContextValidate

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

ContextValidate validates this user user private response based on context it is used

func (*UserUserPrivateResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*UserUserPrivateResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserUserPrivateResponse) Validate

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

Validate validates this user user private response

type UserUserPublicResponse

type UserUserPublicResponse struct {

	// country
	Country string `json:"country,omitempty"`

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

	// followed groups
	FollowedGroups []string `json:"followedGroups"`

	// full name
	FullName string `json:"fullName,omitempty"`

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

	// last name
	LastName string `json:"lastName,omitempty"`

	// legacy Id
	LegacyID int32 `json:"legacyId,omitempty"`

	// member
	Member bool `json:"member,omitempty"`

	// owned groups
	OwnedGroups []string `json:"ownedGroups"`

	// personas
	Personas []string `json:"personas"`

	// role Id
	RoleID int32 `json:"roleId,omitempty"`

	// username
	Username string `json:"username,omitempty"`
}

UserUserPublicResponse user user public response

swagger:model userUserPublicResponse

func (*UserUserPublicResponse) ContextValidate

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

ContextValidate validates this user user public response based on context it is used

func (*UserUserPublicResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*UserUserPublicResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserUserPublicResponse) Validate

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

Validate validates this user user public response

type UserUserRequest

type UserUserRequest struct {

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

UserUserRequest user user request

swagger:model userUserRequest

func (*UserUserRequest) ContextValidate

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

ContextValidate validates this user user request based on context it is used

func (*UserUserRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*UserUserRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserUserRequest) Validate

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

Validate validates this user user request

type UserUserUpdateRequest

type UserUserUpdateRequest struct {

	// country
	Country string `json:"country,omitempty"`

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

	// full name
	FullName string `json:"fullName,omitempty"`

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

	// last name
	LastName string `json:"lastName,omitempty"`

	// newsletter notification
	NewsletterNotification bool `json:"newsletterNotification,omitempty"`

	// role Id
	RoleID int32 `json:"roleId,omitempty"`

	// username
	Username string `json:"username,omitempty"`
}

UserUserUpdateRequest user user update request

swagger:model userUserUpdateRequest

func (*UserUserUpdateRequest) ContextValidate

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

ContextValidate validates this user user update request based on context it is used

func (*UserUserUpdateRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*UserUserUpdateRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserUserUpdateRequest) Validate

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

Validate validates this user user update request

type UserUserUpdateRestrictedRequest

type UserUserUpdateRestrictedRequest struct {

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

	// full name
	FullName string `json:"fullName,omitempty"`

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

	// last name
	LastName string `json:"lastName,omitempty"`

	// member
	Member bool `json:"member,omitempty"`

	// newsletter notification
	NewsletterNotification bool `json:"newsletterNotification,omitempty"`

	// role Id
	RoleID int32 `json:"roleId,omitempty"`

	// tenant Id
	TenantID int32 `json:"tenantId,omitempty"`

	// username
	Username string `json:"username,omitempty"`
}

UserUserUpdateRestrictedRequest user user update restricted request

swagger:model userUserUpdateRestrictedRequest

func (*UserUserUpdateRestrictedRequest) ContextValidate

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

ContextValidate validates this user user update restricted request based on context it is used

func (*UserUserUpdateRestrictedRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*UserUserUpdateRestrictedRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserUserUpdateRestrictedRequest) Validate

Validate validates this user user update restricted request

Jump to

Keyboard shortcuts

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