in pai-dsw-20220101/include/alibabacloud/pai_dsw_20220101.hpp [3714:3887]
map<string, boost::any> toMap() override {
map<string, boost::any> res;
if (acceleratorType) {
res["AcceleratorType"] = boost::any(*acceleratorType);
}
if (accessibility) {
res["Accessibility"] = boost::any(*accessibility);
}
if (accumulatedRunningTimeInMs) {
res["AccumulatedRunningTimeInMs"] = boost::any(*accumulatedRunningTimeInMs);
}
if (affinity) {
res["Affinity"] = affinity ? boost::any(affinity->toMap()) : boost::any(map<string,boost::any>({}));
}
if (cloudDisks) {
vector<boost::any> temp1;
for(auto item1:*cloudDisks){
temp1.push_back(boost::any(item1.toMap()));
}
res["CloudDisks"] = boost::any(temp1);
}
if (code) {
res["Code"] = boost::any(*code);
}
if (credentialConfig) {
res["CredentialConfig"] = credentialConfig ? boost::any(credentialConfig->toMap()) : boost::any(map<string,boost::any>({}));
}
if (datasets) {
vector<boost::any> temp1;
for(auto item1:*datasets){
temp1.push_back(boost::any(item1.toMap()));
}
res["Datasets"] = boost::any(temp1);
}
if (driver) {
res["Driver"] = boost::any(*driver);
}
if (dynamicMount) {
res["DynamicMount"] = dynamicMount ? boost::any(dynamicMount->toMap()) : boost::any(map<string,boost::any>({}));
}
if (ecsSpec) {
res["EcsSpec"] = boost::any(*ecsSpec);
}
if (environmentVariables) {
res["EnvironmentVariables"] = boost::any(*environmentVariables);
}
if (gmtCreateTime) {
res["GmtCreateTime"] = boost::any(*gmtCreateTime);
}
if (gmtModifiedTime) {
res["GmtModifiedTime"] = boost::any(*gmtModifiedTime);
}
if (httpStatusCode) {
res["HttpStatusCode"] = boost::any(*httpStatusCode);
}
if (idleInstanceCuller) {
res["IdleInstanceCuller"] = idleInstanceCuller ? boost::any(idleInstanceCuller->toMap()) : boost::any(map<string,boost::any>({}));
}
if (imageAuth) {
res["ImageAuth"] = boost::any(*imageAuth);
}
if (imageId) {
res["ImageId"] = boost::any(*imageId);
}
if (imageName) {
res["ImageName"] = boost::any(*imageName);
}
if (imageUrl) {
res["ImageUrl"] = boost::any(*imageUrl);
}
if (instanceId) {
res["InstanceId"] = boost::any(*instanceId);
}
if (instanceName) {
res["InstanceName"] = boost::any(*instanceName);
}
if (instanceShutdownTimer) {
res["InstanceShutdownTimer"] = instanceShutdownTimer ? boost::any(instanceShutdownTimer->toMap()) : boost::any(map<string,boost::any>({}));
}
if (instanceSnapshotList) {
vector<boost::any> temp1;
for(auto item1:*instanceSnapshotList){
temp1.push_back(boost::any(item1.toMap()));
}
res["InstanceSnapshotList"] = boost::any(temp1);
}
if (instanceUrl) {
res["InstanceUrl"] = boost::any(*instanceUrl);
}
if (jupyterlabUrl) {
res["JupyterlabUrl"] = boost::any(*jupyterlabUrl);
}
if (labels) {
vector<boost::any> temp1;
for(auto item1:*labels){
temp1.push_back(boost::any(item1.toMap()));
}
res["Labels"] = boost::any(temp1);
}
if (latestSnapshot) {
res["LatestSnapshot"] = latestSnapshot ? boost::any(latestSnapshot->toMap()) : boost::any(map<string,boost::any>({}));
}
if (message) {
res["Message"] = boost::any(*message);
}
if (nodeErrorRecovery) {
res["NodeErrorRecovery"] = nodeErrorRecovery ? boost::any(nodeErrorRecovery->toMap()) : boost::any(map<string,boost::any>({}));
}
if (paymentType) {
res["PaymentType"] = boost::any(*paymentType);
}
if (priority) {
res["Priority"] = boost::any(*priority);
}
if (proxyPath) {
res["ProxyPath"] = boost::any(*proxyPath);
}
if (reasonCode) {
res["ReasonCode"] = boost::any(*reasonCode);
}
if (reasonMessage) {
res["ReasonMessage"] = boost::any(*reasonMessage);
}
if (requestId) {
res["RequestId"] = boost::any(*requestId);
}
if (requestedResource) {
res["RequestedResource"] = requestedResource ? boost::any(requestedResource->toMap()) : boost::any(map<string,boost::any>({}));
}
if (resourceId) {
res["ResourceId"] = boost::any(*resourceId);
}
if (resourceName) {
res["ResourceName"] = boost::any(*resourceName);
}
if (status) {
res["Status"] = boost::any(*status);
}
if (success) {
res["Success"] = boost::any(*success);
}
if (tags) {
vector<boost::any> temp1;
for(auto item1:*tags){
temp1.push_back(boost::any(item1.toMap()));
}
res["Tags"] = boost::any(temp1);
}
if (terminalUrl) {
res["TerminalUrl"] = boost::any(*terminalUrl);
}
if (userId) {
res["UserId"] = boost::any(*userId);
}
if (userName) {
res["UserName"] = boost::any(*userName);
}
if (userVpc) {
res["UserVpc"] = userVpc ? boost::any(userVpc->toMap()) : boost::any(map<string,boost::any>({}));
}
if (webIDEUrl) {
res["WebIDEUrl"] = boost::any(*webIDEUrl);
}
if (workspaceId) {
res["WorkspaceId"] = boost::any(*workspaceId);
}
if (workspaceName) {
res["WorkspaceName"] = boost::any(*workspaceName);
}
if (workspaceSource) {
res["WorkspaceSource"] = boost::any(*workspaceSource);
}
return res;
}