From a09160460ba3a73737697a965a3f496fc746ec20 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Tue, 11 Feb 2025 08:53:45 +0000 Subject: [PATCH] Generated 2020-06-01 for SWAS-OPEN. --- VERSION | 2 +- .../swas-open/model/ListCustomImagesResult.h | 4 ++++ .../alibabacloud/swas-open/model/ListPlansResult.h | 1 + .../alibabacloud/swas-open/model/ResetSystemRequest.h | 7 +++++++ swas-open/src/model/ListCustomImagesResult.cc | 8 ++++++++ swas-open/src/model/ListPlansResult.cc | 2 ++ swas-open/src/model/ResetSystemRequest.cc | 10 ++++++++++ 7 files changed, 33 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index b0fba2f7a..af0b6a995 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.2042 \ No newline at end of file +1.36.2043 \ No newline at end of file diff --git a/swas-open/include/alibabacloud/swas-open/model/ListCustomImagesResult.h b/swas-open/include/alibabacloud/swas-open/model/ListCustomImagesResult.h index e5dc22f46..4543ad168 100644 --- a/swas-open/include/alibabacloud/swas-open/model/ListCustomImagesResult.h +++ b/swas-open/include/alibabacloud/swas-open/model/ListCustomImagesResult.h @@ -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; diff --git a/swas-open/include/alibabacloud/swas-open/model/ListPlansResult.h b/swas-open/include/alibabacloud/swas-open/model/ListPlansResult.h index 1df62fe27..12aac7312 100644 --- a/swas-open/include/alibabacloud/swas-open/model/ListPlansResult.h +++ b/swas-open/include/alibabacloud/swas-open/model/ListPlansResult.h @@ -42,6 +42,7 @@ namespace AlibabaCloud std::string planId; std::string currency; int diskSize; + std::string planType; int core; int flow; }; diff --git a/swas-open/include/alibabacloud/swas-open/model/ResetSystemRequest.h b/swas-open/include/alibabacloud/swas-open/model/ResetSystemRequest.h index 52ff1d63f..856dc31d0 100644 --- a/swas-open/include/alibabacloud/swas-open/model/ResetSystemRequest.h +++ b/swas-open/include/alibabacloud/swas-open/model/ResetSystemRequest.h @@ -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_; }; diff --git a/swas-open/src/model/ListCustomImagesResult.cc b/swas-open/src/model/ListCustomImagesResult.cc index 0ff2d3643..0e3fc4269 100644 --- a/swas-open/src/model/ListCustomImagesResult.cc +++ b/swas-open/src/model/ListCustomImagesResult.cc @@ -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) { diff --git a/swas-open/src/model/ListPlansResult.cc b/swas-open/src/model/ListPlansResult.cc index 879ed6e40..e2d61a260 100644 --- a/swas-open/src/model/ListPlansResult.cc +++ b/swas-open/src/model/ListPlansResult.cc @@ -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); } diff --git a/swas-open/src/model/ResetSystemRequest.cc b/swas-open/src/model/ResetSystemRequest.cc index 1e4978e59..3ceb61860 100644 --- a/swas-open/src/model/ResetSystemRequest.cc +++ b/swas-open/src/model/ResetSystemRequest.cc @@ -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_; }