|
|
|
@@ -192,9 +192,38 @@ type HPCParameter struct { |
|
|
|
} |
|
|
|
|
|
|
|
type HPCBindingFile struct { |
|
|
|
ParamName string `json:"paramName"` |
|
|
|
ObjectID cdssdk.ObjectID `json:"objectID"` |
|
|
|
Path string `json:"path"` |
|
|
|
ParamName string `json:"paramName"` |
|
|
|
Resource HPCFile `json:"resource"` |
|
|
|
} |
|
|
|
|
|
|
|
type HPCFile interface { |
|
|
|
Noop() |
|
|
|
} |
|
|
|
|
|
|
|
var HPCFileTypeUnion = types.NewTypeUnion[HPCFile]( |
|
|
|
(*HPCObject)(nil), |
|
|
|
(*HPCPath)(nil), |
|
|
|
) |
|
|
|
|
|
|
|
var _ = serder.UseTypeUnionInternallyTagged(&HPCFileTypeUnion, "type") |
|
|
|
|
|
|
|
type HPCFileBase struct{} |
|
|
|
|
|
|
|
func (d *HPCFileBase) Noop() {} |
|
|
|
|
|
|
|
type HPCObject struct { |
|
|
|
serder.Metadata `union:"object"` |
|
|
|
HPCFileBase |
|
|
|
Type string `json:"type"` |
|
|
|
ObjectID cdssdk.ObjectID `json:"objectID"` |
|
|
|
} |
|
|
|
|
|
|
|
type HPCPath struct { |
|
|
|
serder.Metadata `union:"path"` |
|
|
|
HPCFileBase |
|
|
|
Type string `json:"type"` |
|
|
|
PackageID cdssdk.PackageID `json:"packageID"` |
|
|
|
Path string `json:"path"` |
|
|
|
} |
|
|
|
|
|
|
|
type JobResources struct { |
|
|
|
|