models

package
v0.2.0-alpha Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {

	// address1
	// Max Length: 255
	Address1 string `json:"address1,omitempty"`

	// address2
	// Max Length: 255
	Address2 string `json:"address2,omitempty"`

	// address3
	// Max Length: 255
	Address3 string `json:"address3,omitempty"`

	// city
	// Max Length: 255
	City string `json:"city,omitempty"`

	// country code
	CountryCode string `json:"countryCode,omitempty"`

	// postal code
	// Max Length: 255
	PostalCode string `json:"postalCode,omitempty"`

	// region
	// Max Length: 255
	Region string `json:"region,omitempty"`
}

Address address

swagger:model Address

func (*Address) ContextValidate

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

ContextValidate validates this address based on context it is used

func (*Address) MarshalBinary

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

MarshalBinary interface implementation

func (*Address) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Address) Validate

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

Validate validates this address

type Affiliation

type Affiliation struct {

	// last changed date
	// Required: true
	// Format: date-time
	LastChangedDate *strfmt.DateTime `json:"lastChangedDate"`

	// org
	Org *Org `json:"org,omitempty"`

	// org Uid
	// Required: true
	// Format: uuid
	OrgUID *strfmt.UUID `json:"orgUid"`

	// person
	Person *Person `json:"person,omitempty"`

	// person Uid
	// Required: true
	// Format: uuid
	PersonUID *strfmt.UUID `json:"personUid"`

	// type
	// Required: true
	Type *AffiliationType `json:"type"`

	// uid
	// Required: true
	// Format: uuid
	UID *strfmt.UUID `json:"uid"`

	// valid from
	// Required: true
	// Format: date-time
	ValidFrom *strfmt.DateTime `json:"validFrom"`

	// valid to
	// Format: date-time
	ValidTo *strfmt.DateTime `json:"validTo,omitempty"`
}

Affiliation affiliation

swagger:model Affiliation

func (*Affiliation) ContextValidate

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

ContextValidate validate this affiliation based on the context it is used

func (*Affiliation) MarshalBinary

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

MarshalBinary interface implementation

func (*Affiliation) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Affiliation) Validate

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

Validate validates this affiliation

type AffiliationType

type AffiliationType string

AffiliationType affiliation type

swagger:model AffiliationType

const (

	// AffiliationTypeMember captures enum value "Member"
	AffiliationTypeMember AffiliationType = "Member"

	// AffiliationTypeAffiliate captures enum value "Affiliate"
	AffiliationTypeAffiliate AffiliationType = "Affiliate"

	// AffiliationTypeParticipant captures enum value "Participant"
	AffiliationTypeParticipant AffiliationType = "Participant"
)

func NewAffiliationType

func NewAffiliationType(value AffiliationType) *AffiliationType

func (AffiliationType) ContextValidate

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

ContextValidate validates this affiliation type based on context it is used

func (AffiliationType) Pointer

func (m AffiliationType) Pointer() *AffiliationType

Pointer returns a pointer to a freshly-allocated AffiliationType.

func (AffiliationType) Validate

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

Validate validates this affiliation type

type AffiliationWrite

type AffiliationWrite struct {

	// org Uid
	// Required: true
	// Format: uuid
	OrgUID *strfmt.UUID `json:"orgUid"`

	// person Uid
	// Required: true
	// Format: uuid
	PersonUID *strfmt.UUID `json:"personUid"`

	// type
	// Required: true
	Type *AffiliationType `json:"type"`

	// valid from
	// Required: true
	// Format: date-time
	ValidFrom *strfmt.DateTime `json:"validFrom"`

	// valid to
	// Format: date-time
	ValidTo *strfmt.DateTime `json:"validTo,omitempty"`
}

AffiliationWrite affiliation write

swagger:model AffiliationWrite

func (*AffiliationWrite) ContextValidate

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

ContextValidate validate this affiliation write based on the context it is used

func (*AffiliationWrite) MarshalBinary

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

MarshalBinary interface implementation

func (*AffiliationWrite) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AffiliationWrite) Validate

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

Validate validates this affiliation write

type Consent struct {

	// last changed date
	// Required: true
	// Format: date-time
	LastChangedDate *strfmt.DateTime `json:"lastChangedDate"`

	// org
	Org *Org `json:"org,omitempty"`

	// org Uid
	// Required: true
	// Format: uuid
	OrgUID *strfmt.UUID `json:"orgUid"`

	// person
	Person *Person `json:"person,omitempty"`

	// person Uid
	// Required: true
	// Format: uuid
	PersonUID *strfmt.UUID `json:"personUid"`

	// purpose
	// Required: true
	Purpose *ConsentPurpose `json:"purpose"`

	// uid
	// Required: true
	// Format: uuid
	UID *strfmt.UUID `json:"uid"`

	// valid from
	// Required: true
	// Format: date-time
	ValidFrom *strfmt.DateTime `json:"validFrom"`

	// valid to
	// Format: date-time
	ValidTo *strfmt.DateTime `json:"validTo,omitempty"`
}

Consent consent

swagger:model Consent

func (*Consent) ContextValidate

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

ContextValidate validate this consent based on the context it is used

func (*Consent) MarshalBinary

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

MarshalBinary interface implementation

func (*Consent) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Consent) Validate

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

Validate validates this consent

type ConsentPurpose

type ConsentPurpose string

ConsentPurpose consent purpose

swagger:model ConsentPurpose

const (

	// ConsentPurposeDataSharing captures enum value "DataSharing"
	ConsentPurposeDataSharing ConsentPurpose = "DataSharing"

	// ConsentPurposeTracking captures enum value "Tracking"
	ConsentPurposeTracking ConsentPurpose = "Tracking"
)

func NewConsentPurpose

func NewConsentPurpose(value ConsentPurpose) *ConsentPurpose

func (ConsentPurpose) ContextValidate

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

ContextValidate validates this consent purpose based on context it is used

func (ConsentPurpose) Pointer

func (m ConsentPurpose) Pointer() *ConsentPurpose

Pointer returns a pointer to a freshly-allocated ConsentPurpose.

func (ConsentPurpose) Validate

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

Validate validates this consent purpose

type ConsentWrite

type ConsentWrite struct {

	// org Uid
	// Required: true
	// Format: uuid
	OrgUID *strfmt.UUID `json:"orgUid"`

	// person Uid
	// Required: true
	// Format: uuid
	PersonUID *strfmt.UUID `json:"personUid"`

	// purpose
	// Required: true
	Purpose *ConsentPurpose `json:"purpose"`

	// valid from
	// Required: true
	// Format: date-time
	ValidFrom *strfmt.DateTime `json:"validFrom"`

	// valid to
	// Format: date-time
	ValidTo *strfmt.DateTime `json:"validTo,omitempty"`
}

ConsentWrite consent write

swagger:model ConsentWrite

func (*ConsentWrite) ContextValidate

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

ContextValidate validate this consent write based on the context it is used

func (*ConsentWrite) MarshalBinary

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

MarshalBinary interface implementation

func (*ConsentWrite) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ConsentWrite) Validate

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

Validate validates this consent write

type Country

type Country struct {

	// iso2 code
	// Required: true
	Iso2Code *string `json:"iso2Code"`

	// last changed date
	// Required: true
	// Format: date-time
	LastChangedDate *strfmt.DateTime `json:"lastChangedDate"`

	// name en
	// Required: true
	// Max Length: 255
	NameEn *string `json:"nameEn"`

	// name native
	// Required: true
	// Max Length: 255
	NameNative *string `json:"nameNative"`

	// name no
	// Required: true
	// Max Length: 255
	NameNo *string `json:"nameNo"`

	// uid
	// Required: true
	// Format: uuid
	UID *strfmt.UUID `json:"uid"`
}

Country country

swagger:model Country

func (*Country) ContextValidate

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

ContextValidate validates this country based on context it is used

func (*Country) MarshalBinary

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

MarshalBinary interface implementation

func (*Country) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Country) Validate

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

Validate validates this country

type CountryWrite

type CountryWrite struct {

	// iso2 code
	// Required: true
	Iso2Code *string `json:"iso2Code"`

	// name en
	// Required: true
	// Max Length: 255
	NameEn *string `json:"nameEn"`

	// name native
	// Required: true
	// Max Length: 255
	NameNative *string `json:"nameNative"`

	// name no
	// Required: true
	// Max Length: 255
	NameNo *string `json:"nameNo"`
}

CountryWrite country write

swagger:model CountryWrite

func (*CountryWrite) ContextValidate

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

ContextValidate validates this country write based on context it is used

func (*CountryWrite) MarshalBinary

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

MarshalBinary interface implementation

func (*CountryWrite) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CountryWrite) Validate

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

Validate validates this country write

type ErrorCode

type ErrorCode string

ErrorCode error code

swagger:model ErrorCode

const (

	// ErrorCodeNotDashFound captures enum value "not-found"
	ErrorCodeNotDashFound ErrorCode = "not-found"

	// ErrorCodeInvalidDashQuery captures enum value "invalid-query"
	ErrorCodeInvalidDashQuery ErrorCode = "invalid-query"

	// ErrorCodeInvalidDashBody captures enum value "invalid-body"
	ErrorCodeInvalidDashBody ErrorCode = "invalid-body"

	// ErrorCodeInvalidDashKeyDashReference captures enum value "invalid-key-reference"
	ErrorCodeInvalidDashKeyDashReference ErrorCode = "invalid-key-reference"

	// ErrorCodeDuplicateDashUniqueDashKey captures enum value "duplicate-unique-key"
	ErrorCodeDuplicateDashUniqueDashKey ErrorCode = "duplicate-unique-key"

	// ErrorCodeCannotDashParseDashToken captures enum value "cannot-parse-token"
	ErrorCodeCannotDashParseDashToken ErrorCode = "cannot-parse-token"

	// ErrorCodeInvalidDashToken captures enum value "invalid-token"
	ErrorCodeInvalidDashToken ErrorCode = "invalid-token"

	// ErrorCodeMissingDashScopes captures enum value "missing-scopes"
	ErrorCodeMissingDashScopes ErrorCode = "missing-scopes"

	// ErrorCodeInternalDashError captures enum value "internal-error"
	ErrorCodeInternalDashError ErrorCode = "internal-error"

	// ErrorCodeUnauthorized captures enum value "unauthorized"
	ErrorCodeUnauthorized ErrorCode = "unauthorized"

	// ErrorCodeInvalidDashAppDashUID captures enum value "invalid-app-uid"
	ErrorCodeInvalidDashAppDashUID ErrorCode = "invalid-app-uid"
)

func NewErrorCode

func NewErrorCode(value ErrorCode) *ErrorCode

func (ErrorCode) ContextValidate

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

ContextValidate validates this error code based on context it is used

func (ErrorCode) Pointer

func (m ErrorCode) Pointer() *ErrorCode

Pointer returns a pointer to a freshly-allocated ErrorCode.

func (ErrorCode) Validate

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

Validate validates this error code

type ErrorData

type ErrorData struct {

	// error
	// Required: true
	Error *ErrorDetails `json:"error"`
}

ErrorData error data

swagger:model ErrorData

func (*ErrorData) ContextValidate

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

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

func (*ErrorData) MarshalBinary

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

MarshalBinary interface implementation

func (*ErrorData) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ErrorData) Validate

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

Validate validates this error data

type ErrorDetails

type ErrorDetails struct {

	// code
	// Required: true
	Code *ErrorCode `json:"code"`

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

ErrorDetails error details

swagger:model ErrorDetails

func (*ErrorDetails) ContextValidate

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

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

func (*ErrorDetails) MarshalBinary

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

MarshalBinary interface implementation

func (*ErrorDetails) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ErrorDetails) Validate

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

Validate validates this error details

type Gender

type Gender string

Gender gender

swagger:model Gender

const (

	// GenderMale captures enum value "Male"
	GenderMale Gender = "Male"

	// GenderFemale captures enum value "Female"
	GenderFemale Gender = "Female"

	// GenderUnknown captures enum value "Unknown"
	GenderUnknown Gender = "Unknown"
)

func NewGender

func NewGender(value Gender) *Gender

func (Gender) ContextValidate

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

ContextValidate validates this gender based on context it is used

func (Gender) Pointer

func (m Gender) Pointer() *Gender

Pointer returns a pointer to a freshly-allocated Gender.

func (Gender) Validate

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

Validate validates this gender

type GrantType

type GrantType string

GrantType grant type

swagger:model GrantType

const (

	// GrantTypeDefault captures enum value "Default"
	GrantTypeDefault GrantType = "Default"

	// GrantTypeView captures enum value "View"
	GrantTypeView GrantType = "View"

	// GrantTypeAdministrate captures enum value "Administrate"
	GrantTypeAdministrate GrantType = "Administrate"

	// GrantTypeRepresent captures enum value "Represent"
	GrantTypeRepresent GrantType = "Represent"

	// GrantTypeNone captures enum value "None"
	GrantTypeNone GrantType = "None"
)

func NewGrantType

func NewGrantType(value GrantType) *GrantType

func (GrantType) ContextValidate

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

ContextValidate validates this grant type based on context it is used

func (GrantType) Pointer

func (m GrantType) Pointer() *GrantType

Pointer returns a pointer to a freshly-allocated GrantType.

func (GrantType) Validate

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

Validate validates this grant type

type Group

type Group struct {

	// app Uid
	// Required: true
	// Format: uuid
	AppUID *strfmt.UUID `json:"appUid"`

	// last changed date
	// Required: true
	// Format: date-time
	LastChangedDate *strfmt.DateTime `json:"lastChangedDate"`

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

	// org Uid
	// Format: uuid
	OrgUID strfmt.UUID `json:"orgUid,omitempty"`

	// rule
	Rule string `json:"rule,omitempty"`

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

	// type
	// Required: true
	Type *GroupType `json:"type"`

	// uid
	// Required: true
	// Format: uuid
	UID *strfmt.UUID `json:"uid"`
}

Group group

swagger:model Group

func (*Group) ContextValidate

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

ContextValidate validate this group based on the context it is used

func (*Group) MarshalBinary

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

MarshalBinary interface implementation

func (*Group) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Group) Validate

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

Validate validates this group

type GroupMember

type GroupMember struct {

	// group Uid
	// Required: true
	// Format: uuid
	GroupUID *strfmt.UUID `json:"groupUid"`

	// last changed date
	// Format: date-time
	LastChangedDate strfmt.DateTime `json:"lastChangedDate,omitempty"`

	// person
	Person *Person `json:"person,omitempty"`

	// person Uid
	// Required: true
	PersonUID *string `json:"personUid"`

	// uid
	// Required: true
	// Format: uuid
	UID *strfmt.UUID `json:"uid"`
}

GroupMember group member

swagger:model GroupMember

func (*GroupMember) ContextValidate

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

ContextValidate validate this group member based on the context it is used

func (*GroupMember) MarshalBinary

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

MarshalBinary interface implementation

func (*GroupMember) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GroupMember) Validate

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

Validate validates this group member

type GroupMemberWrite

type GroupMemberWrite struct {

	// person Uid
	// Required: true
	PersonUID *string `json:"personUid"`
}

GroupMemberWrite group member write

swagger:model GroupMemberWrite

func (*GroupMemberWrite) ContextValidate

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

ContextValidate validates this group member write based on context it is used

func (*GroupMemberWrite) MarshalBinary

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

MarshalBinary interface implementation

func (*GroupMemberWrite) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GroupMemberWrite) Validate

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

Validate validates this group member write

type GroupType

type GroupType string

GroupType group type

swagger:model GroupType

const (

	// GroupTypeStatic captures enum value "Static"
	GroupTypeStatic GroupType = "Static"

	// GroupTypeDynamic captures enum value "Dynamic"
	GroupTypeDynamic GroupType = "Dynamic"
)

func NewGroupType

func NewGroupType(value GroupType) *GroupType

func (GroupType) ContextValidate

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

ContextValidate validates this group type based on context it is used

func (GroupType) Pointer

func (m GroupType) Pointer() *GroupType

Pointer returns a pointer to a freshly-allocated GroupType.

func (GroupType) Validate

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

Validate validates this group type

type GroupWrite

type GroupWrite struct {

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

	// org Uid
	// Format: uuid
	OrgUID strfmt.UUID `json:"orgUid,omitempty"`

	// rule
	Rule string `json:"rule,omitempty"`

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

	// type
	// Required: true
	Type *GroupType `json:"type"`
}

GroupWrite group write

swagger:model GroupWrite

func (*GroupWrite) ContextValidate

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

ContextValidate validate this group write based on the context it is used

func (*GroupWrite) MarshalBinary

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

MarshalBinary interface implementation

func (*GroupWrite) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GroupWrite) Validate

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

Validate validates this group write

type MaritalStatus

type MaritalStatus string

MaritalStatus marital status

swagger:model MaritalStatus

const (

	// MaritalStatusSingle captures enum value "Single"
	MaritalStatusSingle MaritalStatus = "Single"

	// MaritalStatusMarried captures enum value "Married"
	MaritalStatusMarried MaritalStatus = "Married"

	// MaritalStatusWidowed captures enum value "Widowed"
	MaritalStatusWidowed MaritalStatus = "Widowed"

	// MaritalStatusSeparated captures enum value "Separated"
	MaritalStatusSeparated MaritalStatus = "Separated"

	// MaritalStatusSingleParent captures enum value "SingleParent"
	MaritalStatusSingleParent MaritalStatus = "SingleParent"

	// MaritalStatusUnknown captures enum value "Unknown"
	MaritalStatusUnknown MaritalStatus = "Unknown"
)

func NewMaritalStatus

func NewMaritalStatus(value MaritalStatus) *MaritalStatus

func (MaritalStatus) ContextValidate

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

ContextValidate validates this marital status based on context it is used

func (MaritalStatus) Pointer

func (m MaritalStatus) Pointer() *MaritalStatus

Pointer returns a pointer to a freshly-allocated MaritalStatus.

func (MaritalStatus) Validate

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

Validate validates this marital status

type Metadata

type Metadata struct {

	// limit
	// Required: true
	Limit *int64 `json:"limit"`

	// skipped
	// Required: true
	Skipped *int64 `json:"skipped"`

	// total
	// Required: true
	Total *int64 `json:"total"`
}

Metadata metadata

swagger:model Metadata

func (*Metadata) ContextValidate

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

ContextValidate validates this metadata based on context it is used

func (*Metadata) MarshalBinary

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

MarshalBinary interface implementation

func (*Metadata) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Metadata) Validate

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

Validate validates this metadata

type NationalID

type NationalID struct {

	// country iso2 code
	// Required: true
	CountryIso2Code *string `json:"countryIso2Code"`

	// id
	// Required: true
	ID *string `json:"id"`
}

NationalID national Id

swagger:model NationalId

func (*NationalID) ContextValidate

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

ContextValidate validates this national Id based on context it is used

func (*NationalID) MarshalBinary

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

MarshalBinary interface implementation

func (*NationalID) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NationalID) Validate

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

Validate validates this national Id

type Org

type Org struct {

	// active status
	// Required: true
	ActiveStatus OrgActiveStatus `json:"activeStatus"`

	// billing address
	BillingAddress *Address `json:"billingAddress,omitempty"`

	// district name
	// Required: true
	// Max Length: 255
	DistrictName *string `json:"districtName"`

	// last changed date
	// Required: true
	// Format: date-time
	LastChangedDate *strfmt.DateTime `json:"lastChangedDate"`

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

	// org ID
	// Required: true
	OrgID *int64 `json:"orgID"`

	// postal address
	PostalAddress *Address `json:"postalAddress,omitempty"`

	// type
	// Required: true
	Type OrgType `json:"type"`

	// uid
	// Required: true
	// Format: uuid
	UID *strfmt.UUID `json:"uid"`

	// visiting address
	VisitingAddress *Address `json:"visitingAddress,omitempty"`
}

Org org

swagger:model Org

func (*Org) ContextValidate

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

ContextValidate validate this org based on the context it is used

func (*Org) MarshalBinary

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

MarshalBinary interface implementation

func (*Org) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Org) Validate

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

Validate validates this org

type OrgActiveStatus

type OrgActiveStatus string

OrgActiveStatus org active status

swagger:model OrgActiveStatus

const (

	// OrgActiveStatusActive captures enum value "Active"
	OrgActiveStatusActive OrgActiveStatus = "Active"

	// OrgActiveStatusInactive captures enum value "Inactive"
	OrgActiveStatusInactive OrgActiveStatus = "Inactive"
)

func NewOrgActiveStatus

func NewOrgActiveStatus(value OrgActiveStatus) *OrgActiveStatus

func (OrgActiveStatus) ContextValidate

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

ContextValidate validates this org active status based on context it is used

func (OrgActiveStatus) Pointer

func (m OrgActiveStatus) Pointer() *OrgActiveStatus

Pointer returns a pointer to a freshly-allocated OrgActiveStatus.

func (OrgActiveStatus) Validate

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

Validate validates this org active status

type OrgType

type OrgType string

OrgType org type

swagger:model OrgType

const (

	// OrgTypeChurch captures enum value "Church"
	OrgTypeChurch OrgType = "Church"

	// OrgTypeClub captures enum value "Club"
	OrgTypeClub OrgType = "Club"

	// OrgTypeOrg captures enum value "Org"
	OrgTypeOrg OrgType = "Org"
)

func NewOrgType

func NewOrgType(value OrgType) *OrgType

func (OrgType) ContextValidate

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

ContextValidate validates this org type based on context it is used

func (OrgType) Pointer

func (m OrgType) Pointer() *OrgType

Pointer returns a pointer to a freshly-allocated OrgType.

func (OrgType) Validate

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

Validate validates this org type

type OrgWrite

type OrgWrite struct {

	// active status
	// Required: true
	ActiveStatus OrgActiveStatus `json:"activeStatus"`

	// billing address
	BillingAddress *Address `json:"billingAddress,omitempty"`

	// district name
	// Required: true
	// Max Length: 255
	DistrictName *string `json:"districtName"`

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

	// postal address
	PostalAddress *Address `json:"postalAddress,omitempty"`

	// type
	// Required: true
	Type OrgType `json:"type"`

	// visiting address
	VisitingAddress *Address `json:"visitingAddress,omitempty"`
}

OrgWrite org write

swagger:model OrgWrite

func (*OrgWrite) ContextValidate

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

ContextValidate validate this org write based on the context it is used

func (*OrgWrite) MarshalBinary

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

MarshalBinary interface implementation

func (*OrgWrite) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*OrgWrite) Validate

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

Validate validates this org write

type Person

type Person struct {

	// address
	Address *Address `json:"address,omitempty"`

	// affiliations
	Affiliations []*Affiliation `json:"affiliations"`

	// birth date
	// Required: true
	// Format: date
	BirthDate *strfmt.Date `json:"birthDate"`

	// cell phone
	CellPhone string `json:"cellPhone,omitempty"`

	// cell phone verified
	CellPhoneVerified bool `json:"cellPhoneVerified,omitempty"`

	// consents
	Consents []*Consent `json:"consents"`

	// deceased date
	// Format: date
	DeceasedDate *strfmt.Date `json:"deceasedDate,omitempty"`

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

	// email
	Email string `json:"email,omitempty"`

	// email verified
	EmailVerified bool `json:"emailVerified,omitempty"`

	// first name
	// Required: true
	// Max Length: 255
	FirstName *string `json:"firstName"`

	// gender
	// Required: true
	Gender *Gender `json:"gender"`

	// home phone
	HomePhone string `json:"homePhone,omitempty"`

	// last changed date
	// Required: true
	// Format: date-time
	LastChangedDate *strfmt.DateTime `json:"lastChangedDate"`

	// last name
	// Required: true
	// Max Length: 255
	LastName *string `json:"lastName"`

	// marital status
	// Required: true
	MaritalStatus *MaritalStatus `json:"maritalStatus"`

	// middle name
	// Max Length: 255
	MiddleName string `json:"middleName,omitempty"`

	// national ids
	NationalIds []*NationalID `json:"nationalIds"`

	// person ID
	// Required: true
	PersonID *int64 `json:"personID"`

	// preferences
	Preferences *Preferences `json:"preferences,omitempty"`

	// URL of person's profile picture
	// Max Length: 512
	ProfilePicture string `json:"profilePicture,omitempty"`

	// relations
	Relations []*PersonRelation `json:"relations"`

	// role assignments
	RoleAssignments []*RoleAssignment `json:"roleAssignments"`

	// uid
	// Required: true
	// Format: uuid
	UID *strfmt.UUID `json:"uid"`
}

Person person

swagger:model Person

func (*Person) ContextValidate

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

ContextValidate validate this person based on the context it is used

func (*Person) MarshalBinary

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

MarshalBinary interface implementation

func (*Person) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Person) Validate

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

Validate validates this person

type PersonRelation

type PersonRelation struct {

	// Permission of target on origin
	// Required: true
	GrantToOrigin GrantType `json:"grantToOrigin"`

	// Permission of origin on target
	// Required: true
	GrantToTarget GrantType `json:"grantToTarget"`

	// target
	Target *Person `json:"target,omitempty"`

	// target Uid
	// Required: true
	// Format: uuid
	TargetUID *strfmt.UUID `json:"targetUid"`

	// Type of relation, defined as {target} is {type} of {origin}
	// Required: true
	Type PersonRelationType `json:"type"`

	// valid from
	// Required: true
	// Format: date-time
	ValidFrom *strfmt.DateTime `json:"validFrom"`

	// valid to
	// Format: date-time
	ValidTo *strfmt.DateTime `json:"validTo,omitempty"`
}

PersonRelation person relation

swagger:model PersonRelation

func (*PersonRelation) ContextValidate

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

ContextValidate validate this person relation based on the context it is used

func (*PersonRelation) MarshalBinary

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

MarshalBinary interface implementation

func (*PersonRelation) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PersonRelation) Validate

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

Validate validates this person relation

type PersonRelationType

type PersonRelationType string

PersonRelationType person relation type

swagger:model PersonRelationType

const (

	// PersonRelationTypeChild captures enum value "Child"
	PersonRelationTypeChild PersonRelationType = "Child"

	// PersonRelationTypeParent captures enum value "Parent"
	PersonRelationTypeParent PersonRelationType = "Parent"

	// PersonRelationTypeSpouse captures enum value "Spouse"
	PersonRelationTypeSpouse PersonRelationType = "Spouse"

	// PersonRelationTypeLegalDependent captures enum value "LegalDependent"
	PersonRelationTypeLegalDependent PersonRelationType = "LegalDependent"

	// PersonRelationTypeLegalGuardian captures enum value "LegalGuardian"
	PersonRelationTypeLegalGuardian PersonRelationType = "LegalGuardian"

	// PersonRelationTypeFosterChild captures enum value "FosterChild"
	PersonRelationTypeFosterChild PersonRelationType = "FosterChild"

	// PersonRelationTypeFosterParent captures enum value "FosterParent"
	PersonRelationTypeFosterParent PersonRelationType = "FosterParent"

	// PersonRelationTypeContactDependent captures enum value "ContactDependent"
	PersonRelationTypeContactDependent PersonRelationType = "ContactDependent"

	// PersonRelationTypeContactPerson captures enum value "ContactPerson"
	PersonRelationTypeContactPerson PersonRelationType = "ContactPerson"
)

func NewPersonRelationType

func NewPersonRelationType(value PersonRelationType) *PersonRelationType

func (PersonRelationType) ContextValidate

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

ContextValidate validates this person relation type based on context it is used

func (PersonRelationType) Pointer

Pointer returns a pointer to a freshly-allocated PersonRelationType.

func (PersonRelationType) Validate

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

Validate validates this person relation type

type PersonWrite

type PersonWrite struct {

	// address
	Address *Address `json:"address,omitempty"`

	// birth date
	// Required: true
	// Format: date
	BirthDate *strfmt.Date `json:"birthDate"`

	// cell phone
	CellPhone string `json:"cellPhone,omitempty"`

	// cell phone verified
	CellPhoneVerified bool `json:"cellPhoneVerified,omitempty"`

	// deceased date
	// Format: date
	DeceasedDate *strfmt.Date `json:"deceasedDate,omitempty"`

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

	// email
	Email string `json:"email,omitempty"`

	// email verified
	EmailVerified bool `json:"emailVerified,omitempty"`

	// first name
	// Required: true
	// Max Length: 255
	FirstName *string `json:"firstName"`

	// gender
	// Required: true
	Gender *Gender `json:"gender"`

	// home phone
	HomePhone string `json:"homePhone,omitempty"`

	// last name
	// Required: true
	// Max Length: 255
	LastName *string `json:"lastName"`

	// marital status
	// Required: true
	MaritalStatus *MaritalStatus `json:"maritalStatus"`

	// middle name
	// Max Length: 255
	MiddleName string `json:"middleName,omitempty"`

	// national ids
	NationalIds []*NationalID `json:"nationalIds"`

	// preferences
	Preferences *Preferences `json:"preferences,omitempty"`

	// URL of person's profile picture
	// Max Length: 512
	ProfilePicture string `json:"profilePicture,omitempty"`
}

PersonWrite person write

swagger:model PersonWrite

func (*PersonWrite) ContextValidate

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

ContextValidate validate this person write based on the context it is used

func (*PersonWrite) MarshalBinary

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

MarshalBinary interface implementation

func (*PersonWrite) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PersonWrite) Validate

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

Validate validates this person write

type Preferences

type Preferences struct {

	// content languages
	ContentLanguages []string `json:"contentLanguages"`

	// ui languages
	UILanguages []string `json:"uiLanguages"`

	// visibility
	Visibility *VisibilityPreferences `json:"visibility,omitempty"`
}

Preferences preferences

swagger:model Preferences

func (*Preferences) ContextValidate

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

ContextValidate validate this preferences based on the context it is used

func (*Preferences) MarshalBinary

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

MarshalBinary interface implementation

func (*Preferences) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Preferences) Validate

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

Validate validates this preferences

type Relation

type Relation struct {

	// Permission of target on origin
	// Required: true
	GrantToOrigin GrantType `json:"grantToOrigin"`

	// Permission of origin on target
	// Required: true
	GrantToTarget GrantType `json:"grantToTarget"`

	// last changed date
	// Required: true
	// Format: date-time
	LastChangedDate *strfmt.DateTime `json:"lastChangedDate"`

	// origin
	Origin *Person `json:"origin,omitempty"`

	// origin Uid
	// Required: true
	// Format: uuid
	OriginUID *strfmt.UUID `json:"originUid"`

	// target
	Target *Person `json:"target,omitempty"`

	// target Uid
	// Required: true
	// Format: uuid
	TargetUID *strfmt.UUID `json:"targetUid"`

	// Type of the relation, defined as {origin} is {type} (of) {target}
	// Required: true
	Type RelationType `json:"type"`

	// uid
	// Required: true
	// Format: uuid
	UID *strfmt.UUID `json:"uid"`

	// valid from
	// Required: true
	// Format: date-time
	ValidFrom *strfmt.DateTime `json:"validFrom"`

	// valid to
	// Format: date-time
	ValidTo *strfmt.DateTime `json:"validTo,omitempty"`
}

Relation relation

swagger:model Relation

func (*Relation) ContextValidate

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

ContextValidate validate this relation based on the context it is used

func (*Relation) MarshalBinary

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

MarshalBinary interface implementation

func (*Relation) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Relation) Validate

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

Validate validates this relation

type RelationType

type RelationType string

RelationType relation type

swagger:model RelationType

const (

	// RelationTypeChildOf captures enum value "ChildOf"
	RelationTypeChildOf RelationType = "ChildOf"

	// RelationTypeSpouseOf captures enum value "SpouseOf"
	RelationTypeSpouseOf RelationType = "SpouseOf"

	// RelationTypeLegalDependentOf captures enum value "LegalDependentOf"
	RelationTypeLegalDependentOf RelationType = "LegalDependentOf"

	// RelationTypeFosterChildOf captures enum value "FosterChildOf"
	RelationTypeFosterChildOf RelationType = "FosterChildOf"

	// RelationTypeContactDependentOf captures enum value "ContactDependentOf"
	RelationTypeContactDependentOf RelationType = "ContactDependentOf"
)

func NewRelationType

func NewRelationType(value RelationType) *RelationType

func (RelationType) ContextValidate

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

ContextValidate validates this relation type based on context it is used

func (RelationType) Pointer

func (m RelationType) Pointer() *RelationType

Pointer returns a pointer to a freshly-allocated RelationType.

func (RelationType) Validate

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

Validate validates this relation type

type RelationWrite

type RelationWrite struct {

	// Permission of target on origin
	// Required: true
	GrantToOrigin GrantType `json:"grantToOrigin"`

	// Permission of origin on target
	// Required: true
	GrantToTarget GrantType `json:"grantToTarget"`

	// origin Uid
	// Required: true
	// Format: uuid
	OriginUID *strfmt.UUID `json:"originUid"`

	// target Uid
	// Required: true
	// Format: uuid
	TargetUID *strfmt.UUID `json:"targetUid"`

	// Type of the relation, defined as {origin} is {type} (of) {target}
	// Required: true
	Type RelationType `json:"type"`

	// valid from
	// Required: true
	// Format: date-time
	ValidFrom *strfmt.DateTime `json:"validFrom"`

	// valid to
	// Format: date-time
	ValidTo *strfmt.DateTime `json:"validTo,omitempty"`
}

RelationWrite relation write

swagger:model RelationWrite

func (*RelationWrite) ContextValidate

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

ContextValidate validate this relation write based on the context it is used

func (*RelationWrite) MarshalBinary

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

MarshalBinary interface implementation

func (*RelationWrite) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RelationWrite) Validate

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

Validate validates this relation write

type Role

type Role struct {

	// last changed date
	// Required: true
	// Format: date-time
	LastChangedDate *strfmt.DateTime `json:"lastChangedDate"`

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

	// scope
	Scope RoleScope `json:"scope,omitempty"`

	// uid
	// Required: true
	// Format: uuid
	UID *strfmt.UUID `json:"uid"`
}

Role role

swagger:model Role

func (*Role) ContextValidate

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

ContextValidate validate this role based on the context it is used

func (*Role) MarshalBinary

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

MarshalBinary interface implementation

func (*Role) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Role) Validate

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

Validate validates this role

type RoleAssignment

type RoleAssignment struct {

	// last changed date
	// Required: true
	// Format: date-time
	LastChangedDate *strfmt.DateTime `json:"lastChangedDate"`

	// org
	Org *Org `json:"org,omitempty"`

	// org Uid
	// Format: uuid
	OrgUID strfmt.UUID `json:"orgUid,omitempty"`

	// person
	Person *Person `json:"person,omitempty"`

	// person Uid
	// Required: true
	// Format: uuid
	PersonUID *strfmt.UUID `json:"personUid"`

	// role
	Role *Role `json:"role,omitempty"`

	// role Uid
	// Required: true
	// Format: uuid
	RoleUID *strfmt.UUID `json:"roleUid"`

	// uid
	// Required: true
	// Format: uuid
	UID *strfmt.UUID `json:"uid"`

	// valid from
	// Required: true
	// Format: date-time
	ValidFrom *strfmt.DateTime `json:"validFrom"`

	// valid to
	// Format: date-time
	ValidTo *strfmt.DateTime `json:"validTo,omitempty"`
}

RoleAssignment role assignment

swagger:model RoleAssignment

func (*RoleAssignment) ContextValidate

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

ContextValidate validate this role assignment based on the context it is used

func (*RoleAssignment) MarshalBinary

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

MarshalBinary interface implementation

func (*RoleAssignment) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RoleAssignment) Validate

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

Validate validates this role assignment

type RoleAssignmentWrite

type RoleAssignmentWrite struct {

	// org Uid
	// Format: uuid
	OrgUID strfmt.UUID `json:"orgUid,omitempty"`

	// person Uid
	// Required: true
	// Format: uuid
	PersonUID *strfmt.UUID `json:"personUid"`

	// role Uid
	// Required: true
	// Format: uuid
	RoleUID *strfmt.UUID `json:"roleUid"`

	// valid from
	// Required: true
	// Format: date-time
	ValidFrom *strfmt.DateTime `json:"validFrom"`

	// valid to
	// Format: date-time
	ValidTo *strfmt.DateTime `json:"validTo,omitempty"`
}

RoleAssignmentWrite role assignment write

swagger:model RoleAssignmentWrite

func (*RoleAssignmentWrite) ContextValidate

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

ContextValidate validates this role assignment write based on context it is used

func (*RoleAssignmentWrite) MarshalBinary

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

MarshalBinary interface implementation

func (*RoleAssignmentWrite) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RoleAssignmentWrite) Validate

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

Validate validates this role assignment write

type RoleScope

type RoleScope string

RoleScope role scope

swagger:model RoleScope

const (

	// RoleScopeGlobal captures enum value "Global"
	RoleScopeGlobal RoleScope = "Global"

	// RoleScopeOrg captures enum value "Org"
	RoleScopeOrg RoleScope = "Org"
)

func NewRoleScope

func NewRoleScope(value RoleScope) *RoleScope

func (RoleScope) ContextValidate

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

ContextValidate validates this role scope based on context it is used

func (RoleScope) Pointer

func (m RoleScope) Pointer() *RoleScope

Pointer returns a pointer to a freshly-allocated RoleScope.

func (RoleScope) Validate

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

Validate validates this role scope

type RoleWrite

type RoleWrite struct {

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

	// scope
	Scope RoleScope `json:"scope,omitempty"`
}

RoleWrite role write

swagger:model RoleWrite

func (*RoleWrite) ContextValidate

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

ContextValidate validate this role write based on the context it is used

func (*RoleWrite) MarshalBinary

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

MarshalBinary interface implementation

func (*RoleWrite) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RoleWrite) Validate

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

Validate validates this role write

type SearchVisibility

type SearchVisibility string

SearchVisibility search visibility

swagger:model SearchVisibility

const (

	// SearchVisibilityGlobal captures enum value "Global"
	SearchVisibilityGlobal SearchVisibility = "Global"

	// SearchVisibilityDistrict captures enum value "District"
	SearchVisibilityDistrict SearchVisibility = "District"

	// SearchVisibilityHidden captures enum value "Hidden"
	SearchVisibilityHidden SearchVisibility = "Hidden"
)

func NewSearchVisibility

func NewSearchVisibility(value SearchVisibility) *SearchVisibility

func (SearchVisibility) ContextValidate

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

ContextValidate validates this search visibility based on context it is used

func (SearchVisibility) Pointer

func (m SearchVisibility) Pointer() *SearchVisibility

Pointer returns a pointer to a freshly-allocated SearchVisibility.

func (SearchVisibility) Validate

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

Validate validates this search visibility

type VisibilityPreferences

type VisibilityPreferences struct {

	// birthday list
	BirthdayList bool `json:"birthdayList,omitempty"`

	// search
	// Required: true
	Search *SearchVisibility `json:"search"`
}

VisibilityPreferences visibility preferences

swagger:model VisibilityPreferences

func (*VisibilityPreferences) ContextValidate

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

ContextValidate validate this visibility preferences based on the context it is used

func (*VisibilityPreferences) MarshalBinary

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

MarshalBinary interface implementation

func (*VisibilityPreferences) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*VisibilityPreferences) Validate

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

Validate validates this visibility preferences

type Wrapped

type Wrapped[T any] struct {
	Data T
}

type WrappedWithMeta

type WrappedWithMeta[T any] struct {
	Data T
	Meta Metadata
}

Jump to

Keyboard shortcuts

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