Skip to content

Commit a091604

Browse files
committed
Generated 2020-06-01 for SWAS-OPEN.
1 parent cd9e24c commit a091604

File tree

7 files changed

+33
-1
lines changed

7 files changed

+33
-1
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.36.2042
1+
1.36.2043

swas-open/include/alibabacloud/swas-open/model/ListCustomImagesResult.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,14 @@ namespace AlibabaCloud
4444
bool inShare;
4545
std::string resourceGroupId;
4646
std::string instanceId;
47+
int requiredDataDiskSize;
48+
std::string sourceImageName;
4749
bool inShareUser;
4850
std::string systemSnapshotId;
4951
std::string systemSnapshotName;
52+
std::string sourceImageVersion;
5053
std::string dataSnapshotId;
54+
int requiredSystemDiskSize;
5155
std::string name;
5256
std::string dataSnapshotName;
5357
std::string instanceName;

swas-open/include/alibabacloud/swas-open/model/ListPlansResult.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ namespace AlibabaCloud
4242
std::string planId;
4343
std::string currency;
4444
int diskSize;
45+
std::string planType;
4546
int core;
4647
int flow;
4748
};

swas-open/include/alibabacloud/swas-open/model/ResetSystemRequest.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,18 @@ namespace SWAS_OPEN {
2828
namespace Model {
2929
class ALIBABACLOUD_SWAS_OPEN_EXPORT ResetSystemRequest : public RpcServiceRequest {
3030
public:
31+
struct LoginCredentials {
32+
std::string password;
33+
std::string keyPairName;
34+
};
3135
ResetSystemRequest();
3236
~ResetSystemRequest();
3337
std::string getImageId() const;
3438
void setImageId(const std::string &imageId);
3539
std::string getClientToken() const;
3640
void setClientToken(const std::string &clientToken);
41+
LoginCredentials getLoginCredentials() const;
42+
void setLoginCredentials(const LoginCredentials &loginCredentials);
3743
std::string getInstanceId() const;
3844
void setInstanceId(const std::string &instanceId);
3945
std::string getRegionId() const;
@@ -42,6 +48,7 @@ class ALIBABACLOUD_SWAS_OPEN_EXPORT ResetSystemRequest : public RpcServiceReques
4248
private:
4349
std::string imageId_;
4450
std::string clientToken_;
51+
LoginCredentials loginCredentials_;
4552
std::string instanceId_;
4653
std::string regionId_;
4754
};

swas-open/src/model/ListCustomImagesResult.cc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,14 @@ void ListCustomImagesResult::parse(const std::string &payload)
7777
customImagesObject.userId = std::stol(valueCustomImagesCustomImage["UserId"].asString());
7878
if(!valueCustomImagesCustomImage["OsType"].isNull())
7979
customImagesObject.osType = valueCustomImagesCustomImage["OsType"].asString();
80+
if(!valueCustomImagesCustomImage["RequiredSystemDiskSize"].isNull())
81+
customImagesObject.requiredSystemDiskSize = std::stoi(valueCustomImagesCustomImage["RequiredSystemDiskSize"].asString());
82+
if(!valueCustomImagesCustomImage["RequiredDataDiskSize"].isNull())
83+
customImagesObject.requiredDataDiskSize = std::stoi(valueCustomImagesCustomImage["RequiredDataDiskSize"].asString());
84+
if(!valueCustomImagesCustomImage["SourceImageName"].isNull())
85+
customImagesObject.sourceImageName = valueCustomImagesCustomImage["SourceImageName"].asString();
86+
if(!valueCustomImagesCustomImage["SourceImageVersion"].isNull())
87+
customImagesObject.sourceImageVersion = valueCustomImagesCustomImage["SourceImageVersion"].asString();
8088
auto allTagsNode = valueCustomImagesCustomImage["Tags"]["tag"];
8189
for (auto valueCustomImagesCustomImageTagstag : allTagsNode)
8290
{

swas-open/src/model/ListPlansResult.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ void ListPlansResult::parse(const std::string &payload)
6363
plansObject.currency = valuePlansPlan["Currency"].asString();
6464
if(!valuePlansPlan["SupportPlatform"].isNull())
6565
plansObject.supportPlatform = valuePlansPlan["SupportPlatform"].asString();
66+
if(!valuePlansPlan["PlanType"].isNull())
67+
plansObject.planType = valuePlansPlan["PlanType"].asString();
6668
plans_.push_back(plansObject);
6769
}
6870

swas-open/src/model/ResetSystemRequest.cc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,16 @@ void ResetSystemRequest::setClientToken(const std::string &clientToken) {
4343
setParameter(std::string("ClientToken"), clientToken);
4444
}
4545

46+
ResetSystemRequest::LoginCredentials ResetSystemRequest::getLoginCredentials() const {
47+
return loginCredentials_;
48+
}
49+
50+
void ResetSystemRequest::setLoginCredentials(const ResetSystemRequest::LoginCredentials &loginCredentials) {
51+
loginCredentials_ = loginCredentials;
52+
setParameter(std::string("LoginCredentials") + ".Password", loginCredentials.password);
53+
setParameter(std::string("LoginCredentials") + ".KeyPairName", loginCredentials.keyPairName);
54+
}
55+
4656
std::string ResetSystemRequest::getInstanceId() const {
4757
return instanceId_;
4858
}

0 commit comments

Comments
 (0)