applied models changes
This commit is contained in:
@@ -27,30 +27,30 @@ type RepositoryModel struct {
|
||||
}
|
||||
|
||||
type ComputingNEWModel struct {
|
||||
Description string `json:"description,omitempty" required:"true"`
|
||||
Name string `json:"name,omitempty" required:"true" validate:"required" description:"Name of the computing"`
|
||||
Description string `json:"description,omitempty" required:"true"`
|
||||
ShortDescription string `json:"short_description,omitempty" required:"true" validate:"required"`
|
||||
Logo string `json:"logo,omitempty" required:"true" validate:"required"`
|
||||
|
||||
Type string `json:"type,omitempty" required:"true"`
|
||||
// Type string `json:"type,omitempty" required:"true"`
|
||||
Owner string `json:"owner,omitempty"`
|
||||
License string `json:"license,omitempty"`
|
||||
Price uint `json:"price,omitempty"`
|
||||
|
||||
ExecutionRequirements ExecutionRequirementsModel `json:"execution_requirements,omitempty"`
|
||||
|
||||
Dinputs []string `json:"dinputs,omitempty"`
|
||||
Doutputs []string `json:"doutputs,omitempty"`
|
||||
// Dinputs []string `json:"dinputs,omitempty"` // Possibly redundant with Links object in oc-schedule
|
||||
// Doutputs []string `json:"doutputs,omitempty"` // Possibly redundant with Links objects in oc-schedule
|
||||
|
||||
Image string `json:"image,omitempty"`
|
||||
Command string `json:"command,omitempty"`
|
||||
Arguments []string `json:"arguments,omitempty"`
|
||||
Environment []string `json:"environment,omitempty"`
|
||||
Ports []string `json:"ports,omitempty"`
|
||||
// Ports []string `json:"ports,omitempty"`
|
||||
|
||||
CustomDeployment string `json:"custom_deployment,omitempty"`
|
||||
// CustomDeployment string `json:"custom_deployment,omitempty"`
|
||||
|
||||
Repository RepositoryModel `json:"repository,omitempty"`
|
||||
// Repository RepositoryModel `json:"repository,omitempty"`
|
||||
}
|
||||
|
||||
type ComputingModel struct {
|
||||
|
||||
@@ -11,15 +11,15 @@ import (
|
||||
// TODO: review why swagger are not using the metadata when we do herarchy
|
||||
type DataNEWModel struct {
|
||||
Name string `json:"name,omitempty" required:"true" validate:"required" description:"Name of the data"`
|
||||
Description string `json:"description" required:"true" validate:"required"`
|
||||
ShortDescription string `json:"short_description" required:"true" validate:"required"`
|
||||
Logo string `json:"logo" required:"true" validate:"required"`
|
||||
Description string `json:"description" required:"true" validate:"required"`
|
||||
|
||||
// Dtype string `json:"dtype"`
|
||||
Type string `json:"type,omitempty" required:"true" validate:"required" description:"Define type of data" example:"file"`
|
||||
Example string `json:"example" required:"true" validate:"required" description:"base64 encoded data"`
|
||||
Location string `json:"location" required:"true" validate:"required"`
|
||||
Dtype string `json:"dtype"`
|
||||
Protocol []string `json:"protocol"` //TODO Enum type
|
||||
Location string `json:"location" required:"true" validate:"required"`
|
||||
}
|
||||
|
||||
type DataModel struct {
|
||||
|
||||
@@ -32,9 +32,9 @@ type DatacenterGpuModel struct {
|
||||
|
||||
type DatacenterNEWModel struct {
|
||||
Name string `json:"name" required:"true"`
|
||||
Type string `json:"type,omitempty" required:"true"`
|
||||
// Type string `json:"type,omitempty" required:"true"`
|
||||
Acronym string `json:"acronym" required:"true" description:"id of the DC"`
|
||||
Hosts []string `json:"hosts" required:"true" description:"list of host:port"`
|
||||
// Hosts []string `json:"hosts" required:"true" description:"list of host:port"`
|
||||
Description string `json:"description" required:"true"`
|
||||
ShortDescription string `json:"short_description" required:"true" validate:"required"`
|
||||
Logo string `json:"logo" required:"true" validate:"required"`
|
||||
|
||||
@@ -12,9 +12,10 @@ type StorageNEWModel struct {
|
||||
Description string `json:"description" required:"true"`
|
||||
ShortDescription string `json:"short_description" required:"true" validate:"required"`
|
||||
Logo string `json:"logo" required:"true" validate:"required"`
|
||||
Type string `json:"type,omitempty" required:"true"`
|
||||
// Type string `json:"type,omitempty" required:"true"`
|
||||
|
||||
DCacronym string `json:"DCacronym" required:"true" description:"Unique ID of the DC where it is the storage"`
|
||||
URL string `json:"URL"`
|
||||
|
||||
Size uint `json:"size" required:"true"`
|
||||
Encryption bool `json:"encryption" `
|
||||
|
||||
Reference in New Issue
Block a user