Generated 2020-06-01 for SWAS-OPEN.
This commit is contained in:
@@ -44,10 +44,14 @@ namespace AlibabaCloud
|
||||
bool inShare;
|
||||
std::string resourceGroupId;
|
||||
std::string instanceId;
|
||||
int requiredDataDiskSize;
|
||||
std::string sourceImageName;
|
||||
bool inShareUser;
|
||||
std::string systemSnapshotId;
|
||||
std::string systemSnapshotName;
|
||||
std::string sourceImageVersion;
|
||||
std::string dataSnapshotId;
|
||||
int requiredSystemDiskSize;
|
||||
std::string name;
|
||||
std::string dataSnapshotName;
|
||||
std::string instanceName;
|
||||
|
||||
@@ -42,6 +42,7 @@ namespace AlibabaCloud
|
||||
std::string planId;
|
||||
std::string currency;
|
||||
int diskSize;
|
||||
std::string planType;
|
||||
int core;
|
||||
int flow;
|
||||
};
|
||||
|
||||
@@ -28,12 +28,18 @@ namespace SWAS_OPEN {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_SWAS_OPEN_EXPORT ResetSystemRequest : public RpcServiceRequest {
|
||||
public:
|
||||
struct LoginCredentials {
|
||||
std::string password;
|
||||
std::string keyPairName;
|
||||
};
|
||||
ResetSystemRequest();
|
||||
~ResetSystemRequest();
|
||||
std::string getImageId() const;
|
||||
void setImageId(const std::string &imageId);
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
LoginCredentials getLoginCredentials() const;
|
||||
void setLoginCredentials(const LoginCredentials &loginCredentials);
|
||||
std::string getInstanceId() const;
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
std::string getRegionId() const;
|
||||
@@ -42,6 +48,7 @@ public:
|
||||
private:
|
||||
std::string imageId_;
|
||||
std::string clientToken_;
|
||||
LoginCredentials loginCredentials_;
|
||||
std::string instanceId_;
|
||||
std::string regionId_;
|
||||
};
|
||||
|
||||
@@ -77,6 +77,14 @@ void ListCustomImagesResult::parse(const std::string &payload)
|
||||
customImagesObject.userId = std::stol(valueCustomImagesCustomImage["UserId"].asString());
|
||||
if(!valueCustomImagesCustomImage["OsType"].isNull())
|
||||
customImagesObject.osType = valueCustomImagesCustomImage["OsType"].asString();
|
||||
if(!valueCustomImagesCustomImage["RequiredSystemDiskSize"].isNull())
|
||||
customImagesObject.requiredSystemDiskSize = std::stoi(valueCustomImagesCustomImage["RequiredSystemDiskSize"].asString());
|
||||
if(!valueCustomImagesCustomImage["RequiredDataDiskSize"].isNull())
|
||||
customImagesObject.requiredDataDiskSize = std::stoi(valueCustomImagesCustomImage["RequiredDataDiskSize"].asString());
|
||||
if(!valueCustomImagesCustomImage["SourceImageName"].isNull())
|
||||
customImagesObject.sourceImageName = valueCustomImagesCustomImage["SourceImageName"].asString();
|
||||
if(!valueCustomImagesCustomImage["SourceImageVersion"].isNull())
|
||||
customImagesObject.sourceImageVersion = valueCustomImagesCustomImage["SourceImageVersion"].asString();
|
||||
auto allTagsNode = valueCustomImagesCustomImage["Tags"]["tag"];
|
||||
for (auto valueCustomImagesCustomImageTagstag : allTagsNode)
|
||||
{
|
||||
|
||||
@@ -63,6 +63,8 @@ void ListPlansResult::parse(const std::string &payload)
|
||||
plansObject.currency = valuePlansPlan["Currency"].asString();
|
||||
if(!valuePlansPlan["SupportPlatform"].isNull())
|
||||
plansObject.supportPlatform = valuePlansPlan["SupportPlatform"].asString();
|
||||
if(!valuePlansPlan["PlanType"].isNull())
|
||||
plansObject.planType = valuePlansPlan["PlanType"].asString();
|
||||
plans_.push_back(plansObject);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,6 +43,16 @@ void ResetSystemRequest::setClientToken(const std::string &clientToken) {
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
ResetSystemRequest::LoginCredentials ResetSystemRequest::getLoginCredentials() const {
|
||||
return loginCredentials_;
|
||||
}
|
||||
|
||||
void ResetSystemRequest::setLoginCredentials(const ResetSystemRequest::LoginCredentials &loginCredentials) {
|
||||
loginCredentials_ = loginCredentials;
|
||||
setParameter(std::string("LoginCredentials") + ".Password", loginCredentials.password);
|
||||
setParameter(std::string("LoginCredentials") + ".KeyPairName", loginCredentials.keyPairName);
|
||||
}
|
||||
|
||||
std::string ResetSystemRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user