in pai-dsw-20210226/include/alibabacloud/pai_dsw_20210226.hpp [925:1053]
void fromMap(map<string, boost::any> m) override {
if (m.find("AccumulativeRunningTimeInMillis") != m.end() && !m["AccumulativeRunningTimeInMillis"].empty()) {
accumulativeRunningTimeInMillis = make_shared<long>(boost::any_cast<long>(m["AccumulativeRunningTimeInMillis"]));
}
if (m.find("AccumulativeRunningTimeInMinutes") != m.end() && !m["AccumulativeRunningTimeInMinutes"].empty()) {
accumulativeRunningTimeInMinutes = make_shared<long>(boost::any_cast<long>(m["AccumulativeRunningTimeInMinutes"]));
}
if (m.find("CreateUser") != m.end() && !m["CreateUser"].empty()) {
createUser = make_shared<string>(boost::any_cast<string>(m["CreateUser"]));
}
if (m.find("DatasetList") != m.end() && !m["DatasetList"].empty()) {
if (typeid(vector<boost::any>) == m["DatasetList"].type()) {
vector<Dataset> expect1;
for(auto item1:boost::any_cast<vector<boost::any>>(m["DatasetList"])){
if (typeid(map<string, boost::any>) == item1.type()) {
Dataset model2;
model2.fromMap(boost::any_cast<map<string, boost::any>>(item1));
expect1.push_back(model2);
}
}
datasetList = make_shared<vector<Dataset>>(expect1);
}
}
if (m.find("EcsSpec") != m.end() && !m["EcsSpec"].empty()) {
ecsSpec = make_shared<string>(boost::any_cast<string>(m["EcsSpec"]));
}
if (m.find("GmtCreateTime") != m.end() && !m["GmtCreateTime"].empty()) {
gmtCreateTime = make_shared<string>(boost::any_cast<string>(m["GmtCreateTime"]));
}
if (m.find("GmtModifiedTime") != m.end() && !m["GmtModifiedTime"].empty()) {
gmtModifiedTime = make_shared<string>(boost::any_cast<string>(m["GmtModifiedTime"]));
}
if (m.find("ImageId") != m.end() && !m["ImageId"].empty()) {
imageId = make_shared<string>(boost::any_cast<string>(m["ImageId"]));
}
if (m.find("ImageName") != m.end() && !m["ImageName"].empty()) {
imageName = make_shared<string>(boost::any_cast<string>(m["ImageName"]));
}
if (m.find("ImageType") != m.end() && !m["ImageType"].empty()) {
imageType = make_shared<string>(boost::any_cast<string>(m["ImageType"]));
}
if (m.find("ImageUrl") != m.end() && !m["ImageUrl"].empty()) {
imageUrl = make_shared<string>(boost::any_cast<string>(m["ImageUrl"]));
}
if (m.find("InstanceId") != m.end() && !m["InstanceId"].empty()) {
instanceId = make_shared<string>(boost::any_cast<string>(m["InstanceId"]));
}
if (m.find("InstanceName") != m.end() && !m["InstanceName"].empty()) {
instanceName = make_shared<string>(boost::any_cast<string>(m["InstanceName"]));
}
if (m.find("InstanceShutdownTimer") != m.end() && !m["InstanceShutdownTimer"].empty()) {
if (typeid(map<string, boost::any>) == m["InstanceShutdownTimer"].type()) {
InstanceShutdownTimer model1;
model1.fromMap(boost::any_cast<map<string, boost::any>>(m["InstanceShutdownTimer"]));
instanceShutdownTimer = make_shared<InstanceShutdownTimer>(model1);
}
}
if (m.find("InstanceStatus") != m.end() && !m["InstanceStatus"].empty()) {
instanceStatus = make_shared<string>(boost::any_cast<string>(m["InstanceStatus"]));
}
if (m.find("InstanceUrl") != m.end() && !m["InstanceUrl"].empty()) {
instanceUrl = make_shared<string>(boost::any_cast<string>(m["InstanceUrl"]));
}
if (m.find("InstanceVersion") != m.end() && !m["InstanceVersion"].empty()) {
instanceVersion = make_shared<string>(boost::any_cast<string>(m["InstanceVersion"]));
}
if (m.find("IsPublic") != m.end() && !m["IsPublic"].empty()) {
isPublic = make_shared<long>(boost::any_cast<long>(m["IsPublic"]));
}
if (m.find("JupyterlabUrl") != m.end() && !m["JupyterlabUrl"].empty()) {
jupyterlabUrl = make_shared<string>(boost::any_cast<string>(m["JupyterlabUrl"]));
}
if (m.find("Message") != m.end() && !m["Message"].empty()) {
message = make_shared<string>(boost::any_cast<string>(m["Message"]));
}
if (m.find("NasFileSystemId") != m.end() && !m["NasFileSystemId"].empty()) {
nasFileSystemId = make_shared<string>(boost::any_cast<string>(m["NasFileSystemId"]));
}
if (m.find("PayType") != m.end() && !m["PayType"].empty()) {
payType = make_shared<long>(boost::any_cast<long>(m["PayType"]));
}
if (m.find("PayTypeName") != m.end() && !m["PayTypeName"].empty()) {
payTypeName = make_shared<string>(boost::any_cast<string>(m["PayTypeName"]));
}
if (m.find("Resource") != m.end() && !m["Resource"].empty()) {
resource = make_shared<string>(boost::any_cast<string>(m["Resource"]));
}
if (m.find("ResourceType") != m.end() && !m["ResourceType"].empty()) {
resourceType = make_shared<long>(boost::any_cast<long>(m["ResourceType"]));
}
if (m.find("ShutdownEnabled") != m.end() && !m["ShutdownEnabled"].empty()) {
shutdownEnabled = make_shared<bool>(boost::any_cast<bool>(m["ShutdownEnabled"]));
}
if (m.find("TerminalUrl") != m.end() && !m["TerminalUrl"].empty()) {
terminalUrl = make_shared<string>(boost::any_cast<string>(m["TerminalUrl"]));
}
if (m.find("UserId") != m.end() && !m["UserId"].empty()) {
userId = make_shared<string>(boost::any_cast<string>(m["UserId"]));
}
if (m.find("UserImageList") != m.end() && !m["UserImageList"].empty()) {
if (typeid(vector<boost::any>) == m["UserImageList"].type()) {
vector<Image> expect1;
for(auto item1:boost::any_cast<vector<boost::any>>(m["UserImageList"])){
if (typeid(map<string, boost::any>) == item1.type()) {
Image model2;
model2.fromMap(boost::any_cast<map<string, boost::any>>(item1));
expect1.push_back(model2);
}
}
userImageList = make_shared<vector<Image>>(expect1);
}
}
if (m.find("UserVpc") != m.end() && !m["UserVpc"].empty()) {
if (typeid(map<string, boost::any>) == m["UserVpc"].type()) {
UserVpc model1;
model1.fromMap(boost::any_cast<map<string, boost::any>>(m["UserVpc"]));
userVpc = make_shared<UserVpc>(model1);
}
}
if (m.find("WebIdeUrl") != m.end() && !m["WebIdeUrl"].empty()) {
webIdeUrl = make_shared<string>(boost::any_cast<string>(m["WebIdeUrl"]));
}
if (m.find("WorkspaceId") != m.end() && !m["WorkspaceId"].empty()) {
workspaceId = make_shared<string>(boost::any_cast<string>(m["WorkspaceId"]));
}
if (m.find("WorkspaceName") != m.end() && !m["WorkspaceName"].empty()) {
workspaceName = make_shared<string>(boost::any_cast<string>(m["WorkspaceName"]));
}
}