models

package
v0.0.0-...-e9fb2cd Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CollectionState

type CollectionState string

CollectionState collection state

swagger:model collectionState

const (

	// CollectionStateEditable captures enum value "editable"
	CollectionStateEditable CollectionState = "editable"

	// CollectionStateReviewableInternal captures enum value "reviewable_internal"
	CollectionStateReviewableInternal CollectionState = "reviewable_internal"

	// CollectionStateReviewableExternal captures enum value "reviewable_external"
	CollectionStateReviewableExternal CollectionState = "reviewable_external"

	// CollectionStateArchived captures enum value "archived"
	CollectionStateArchived CollectionState = "archived"

	// CollectionStatePublished captures enum value "published"
	CollectionStatePublished CollectionState = "published"

	// CollectionStateUnknown captures enum value "unknown"
	CollectionStateUnknown CollectionState = "unknown"
)

func NewCollectionState

func NewCollectionState(value CollectionState) *CollectionState

func (CollectionState) ContextValidate

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

ContextValidate validates this collection state based on context it is used

func (CollectionState) Pointer

func (m CollectionState) Pointer() *CollectionState

Pointer returns a pointer to a freshly-allocated CollectionState.

func (CollectionState) Validate

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

Validate validates this collection state

type CollectionType

type CollectionType string

CollectionType collection type

swagger:model collectionType

const (

	// CollectionTypeDac captures enum value "dac"
	CollectionTypeDac CollectionType = "dac"

	// CollectionTypeRdc captures enum value "rdc"
	CollectionTypeRdc CollectionType = "rdc"

	// CollectionTypeDsc captures enum value "dsc"
	CollectionTypeDsc CollectionType = "dsc"

	// CollectionTypeUnknown captures enum value "unknown"
	CollectionTypeUnknown CollectionType = "unknown"
)

func NewCollectionType

func NewCollectionType(value CollectionType) *CollectionType

func (CollectionType) ContextValidate

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

ContextValidate validates this collection type based on context it is used

func (CollectionType) Pointer

func (m CollectionType) Pointer() *CollectionType

Pointer returns a pointer to a freshly-allocated CollectionType.

func (CollectionType) Validate

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

Validate validates this collection type

type Principal

type Principal string

Principal principal

swagger:model principal

func (Principal) ContextValidate

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

ContextValidate validates this principal based on context it is used

func (Principal) Validate

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

Validate validates this principal

type ResponseBody500

type ResponseBody500 struct {

	// server-side error message.
	ErrorMessage string `json:"errorMessage,omitempty"`

	// server-side exit code.
	ExitCode int64 `json:"exitCode,omitempty"`
}

ResponseBody500 JSON object containing server side error.

swagger:model responseBody500

func (*ResponseBody500) ContextValidate

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

ContextValidate validates this response body500 based on context it is used

func (*ResponseBody500) MarshalBinary

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

MarshalBinary interface implementation

func (*ResponseBody500) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ResponseBody500) Validate

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

Validate validates this response body500

type ResponseBodyCollectionMetadata

type ResponseBodyCollectionMetadata struct {

	// collection identifier
	// Required: true
	Identifier *string `json:"identifier"`

	// collection DOI
	// Required: true
	IdentifierDOI *string `json:"identifierDOI"`

	// number of files in the collection
	// Required: true
	NumberOfFiles *int64 `json:"numberOfFiles"`

	// organisational unit
	// Required: true
	OrganisationalUnit *string `json:"organisationalUnit"`

	// collection path
	// Required: true
	Path *string `json:"path"`

	// project identifier
	// Required: true
	ProjectID *string `json:"projectID"`

	// collection storage quota
	// Required: true
	QuotaInBytes *int64 `json:"quotaInBytes"`

	// size of data in the collection
	// Required: true
	SizeInBytes *int64 `json:"sizeInBytes"`

	// state
	// Required: true
	State *CollectionState `json:"state"`

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

ResponseBodyCollectionMetadata JSON object containing collection metadata.

swagger:model responseBodyCollectionMetadata

func (*ResponseBodyCollectionMetadata) ContextValidate

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

ContextValidate validate this response body collection metadata based on the context it is used

func (*ResponseBodyCollectionMetadata) MarshalBinary

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

MarshalBinary interface implementation

func (*ResponseBodyCollectionMetadata) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ResponseBodyCollectionMetadata) Validate

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

Validate validates this response body collection metadata

type ResponseBodyCollections

type ResponseBodyCollections struct {

	// collections
	Collections []*ResponseBodyCollectionMetadata `json:"collections"`
}

ResponseBodyCollections JSON list containing a list of collections

swagger:model responseBodyCollections

func (*ResponseBodyCollections) ContextValidate

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

ContextValidate validate this response body collections based on the context it is used

func (*ResponseBodyCollections) MarshalBinary

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

MarshalBinary interface implementation

func (*ResponseBodyCollections) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ResponseBodyCollections) Validate

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

Validate validates this response body collections

type ResponseBodyUserMetadata

type ResponseBodyUserMetadata struct {

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

	// email address
	// Format: email
	Email strfmt.Email `json:"email,omitempty"`

	// identity provider
	// Required: true
	IdentityProvider *string `json:"identityProvider"`

	// organisational units
	// Required: true
	OrganisationalUnits []string `json:"organisationalUnits"`
}

ResponseBodyUserMetadata JSON object containing user metadata.

swagger:model responseBodyUserMetadata

func (*ResponseBodyUserMetadata) ContextValidate

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

ContextValidate validates this response body user metadata based on context it is used

func (*ResponseBodyUserMetadata) MarshalBinary

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

MarshalBinary interface implementation

func (*ResponseBodyUserMetadata) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ResponseBodyUserMetadata) Validate

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

Validate validates this response body user metadata

type ResponseBodyUsers

type ResponseBodyUsers struct {

	// users
	Users []*ResponseBodyUserMetadata `json:"users"`
}

ResponseBodyUsers JSON list containing a list of users

swagger:model responseBodyUsers

func (*ResponseBodyUsers) ContextValidate

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

ContextValidate validate this response body users based on the context it is used

func (*ResponseBodyUsers) MarshalBinary

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

MarshalBinary interface implementation

func (*ResponseBodyUsers) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ResponseBodyUsers) Validate

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

Validate validates this response body users

Jump to

Keyboard shortcuts

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