java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,V>
java.util.LinkedHashMap<String,Object>
com.alibaba.dashscope.applications.agentstudio.model.Mount
All Implemented Interfaces:
Serializable, Cloneable, Map<String,Object>

public class Mount extends LinkedHashMap<String,Object>
Typed session-resource mount descriptor (create-time input on POST /sessions).

Extends LinkedHashMap so it fits the existing List<Map<String, Object>> resources parameter without conversion:


 List<Map<String, Object>> resources = new ArrayList<>();
 resources.add(Mount.oss("cn-beijing", "my-bucket", "datasets/", "/data")
     .readOnly());
 resources.add(Mount.bailianMemory("lib_xxx", "customer_001")
     .projectIds(Arrays.asList("fact_rule_1"))
     .profileSchema("schema_xxx"));
 
See Also: