Generated 2020-06-01 for SWAS-OPEN.

This commit is contained in:
sdk-team
2025-02-11 08:53:45 +00:00
parent cd9e24cdd0
commit a09160460b
7 changed files with 33 additions and 1 deletions

View File

@@ -1 +1 @@
1.36.2042
1.36.2043

View File

@@ -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;

View File

@@ -42,6 +42,7 @@ namespace AlibabaCloud
std::string planId;
std::string currency;
int diskSize;
std::string planType;
int core;
int flow;
};

View File

@@ -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_;
};

View File

@@ -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)
{

View File

@@ -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);
}

View File

@@ -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_;
}