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