| @@ -91,14 +91,14 @@ var UploadSourceTypeUnion = types.NewTypeUnion[UploadSource]( | |||||
| var _ = serder.UseTypeUnionInternallyTagged(&UploadSourceTypeUnion, "type") | var _ = serder.UseTypeUnionInternallyTagged(&UploadSourceTypeUnion, "type") | ||||
| type PackageSource struct { | type PackageSource struct { | ||||
| serder.Metadata `union:"packageSource"` | |||||
| serder.Metadata `union:"jcs"` | |||||
| UploadSourceBase | UploadSourceBase | ||||
| Type string `json:"type"` | Type string `json:"type"` | ||||
| PackageID cdssdk.PackageID `json:"packageID"` | PackageID cdssdk.PackageID `json:"packageID"` | ||||
| } | } | ||||
| type UrlSource struct { | type UrlSource struct { | ||||
| serder.Metadata `union:"urlSource"` | |||||
| serder.Metadata `union:"url"` | |||||
| UploadSourceBase | UploadSourceBase | ||||
| Type string `json:"type"` | Type string `json:"type"` | ||||
| Url string `json:"url"` | Url string `json:"url"` | ||||
| @@ -122,6 +122,7 @@ var _ = serder.UseTypeUnionInternallyTagged(&UploadTargetTypeUnion, "type") | |||||
| type UrlTarget struct { | type UrlTarget struct { | ||||
| serder.Metadata `union:"url"` | serder.Metadata `union:"url"` | ||||
| UploadTargetBase | UploadTargetBase | ||||
| Type string `json:"type"` | |||||
| ClusterID ClusterID `json:"clusterId"` | ClusterID ClusterID `json:"clusterId"` | ||||
| JCSUploadInfo cdsapi.ObjectUploadInfo `form:"JCSUploadInfo"` | JCSUploadInfo cdsapi.ObjectUploadInfo `form:"JCSUploadInfo"` | ||||
| } | } | ||||
| @@ -129,6 +130,7 @@ type UrlTarget struct { | |||||
| type ApiTarget struct { | type ApiTarget struct { | ||||
| serder.Metadata `union:"api"` | serder.Metadata `union:"api"` | ||||
| UploadTargetBase | UploadTargetBase | ||||
| Type string `json:"type"` | |||||
| Clusters []ClusterID `json:"clusters"` | Clusters []ClusterID `json:"clusters"` | ||||
| } | } | ||||