Class OssMediaUpload
java.lang.Object
com.alibaba.dashscope.resources.oss.OssMediaUpload
Recursive media upload walk (Python v2
upload_media_value parity): strings, lists and
maps are walked; every string that is a file:// URI or an existing local path is uploaded
via OssUploader and replaced by its oss:// URL; existing oss:// strings
pass through and also flag the resolve header. Any upload or oss presence sets isOssResolve(), and the caller then sends X-DashScope-OssResourceResolve: enable. The
policy certificate is fetched lazily once per walk and reused.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleantrue when any string was an oss:// reference or was uploaded.Walk one value; returns the transformed value (identity when nothing needed uploading).
-
Field Details
-
RESOLVE_HEADER
- See Also:
-
RESOLVE_ENABLE
- See Also:
-
-
Constructor Details
-
OssMediaUpload
-
-
Method Details
-
process
Walk one value; returns the transformed value (identity when nothing needed uploading). -
isOssResolve
public boolean isOssResolve()true when any string was an oss:// reference or was uploaded.
-