| @@ -70,6 +70,7 @@ var JobInfoTypeUnion = types.NewTypeUnion[JobInfo]( | |||||
| (*HPCJobInfo)(nil), | (*HPCJobInfo)(nil), | ||||
| (*BindingJobInfo)(nil), | (*BindingJobInfo)(nil), | ||||
| (*PCMInferenceJobInfo)(nil), | (*PCMInferenceJobInfo)(nil), | ||||
| (*FinishJobInfo)(nil), | |||||
| ) | ) | ||||
| var _ = serder.UseTypeUnionInternallyTagged(&JobInfoTypeUnion, "type") | var _ = serder.UseTypeUnionInternallyTagged(&JobInfoTypeUnion, "type") | ||||
| @@ -148,6 +149,12 @@ type AIJobInfo struct { | |||||
| ResourceChoice ResourceChoice `json:"resourceChoice"` | ResourceChoice ResourceChoice `json:"resourceChoice"` | ||||
| } | } | ||||
| type FinishJobInfo struct { | |||||
| serder.Metadata `union:"finish"` | |||||
| JobInfoBase | |||||
| Type string `json:"type"` | |||||
| } | |||||
| type ResourceChoice struct { | type ResourceChoice struct { | ||||
| Type string `json:"type"` | Type string `json:"type"` | ||||
| ResourceScopes []ResourceScope `json:"resourceScopes"` | ResourceScopes []ResourceScope `json:"resourceScopes"` | ||||