Просмотр исходного кода

Support DryRun for DeleteInstance.

sdk-team 2 лет назад
Родитель
Сommit
31b4d82c33

+ 1 - 1
VERSION

@@ -1 +1 @@
-1.36.1858
+1.36.1859

+ 3 - 0
ecs/include/alibabacloud/ecs/model/DeleteInstanceRequest.h

@@ -34,6 +34,8 @@ public:
 	void setResourceOwnerId(long resourceOwnerId);
 	void setResourceOwnerId(long resourceOwnerId);
 	bool getTerminateSubscription() const;
 	bool getTerminateSubscription() const;
 	void setTerminateSubscription(bool terminateSubscription);
 	void setTerminateSubscription(bool terminateSubscription);
+	bool getDryRun() const;
+	void setDryRun(bool dryRun);
 	std::string getResourceOwnerAccount() const;
 	std::string getResourceOwnerAccount() const;
 	void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
 	void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
 	std::string getOwnerAccount() const;
 	std::string getOwnerAccount() const;
@@ -48,6 +50,7 @@ public:
 private:
 private:
 	long resourceOwnerId_;
 	long resourceOwnerId_;
 	bool terminateSubscription_;
 	bool terminateSubscription_;
+	bool dryRun_;
 	std::string resourceOwnerAccount_;
 	std::string resourceOwnerAccount_;
 	std::string ownerAccount_;
 	std::string ownerAccount_;
 	long ownerId_;
 	long ownerId_;

+ 3 - 0
ecs/include/alibabacloud/ecs/model/ModifyInstanceSpecRequest.h

@@ -51,6 +51,8 @@ public:
 	void setTemporaryEndTime(const std::string &temporaryEndTime);
 	void setTemporaryEndTime(const std::string &temporaryEndTime);
 	std::string getModifyMode() const;
 	std::string getModifyMode() const;
 	void setModifyMode(const std::string &modifyMode);
 	void setModifyMode(const std::string &modifyMode);
+	bool getDryRun() const;
+	void setDryRun(bool dryRun);
 	std::string getResourceOwnerAccount() const;
 	std::string getResourceOwnerAccount() const;
 	void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
 	void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
 	std::string getOwnerAccount() const;
 	std::string getOwnerAccount() const;
@@ -79,6 +81,7 @@ private:
 	std::string instanceType_;
 	std::string instanceType_;
 	std::string temporaryEndTime_;
 	std::string temporaryEndTime_;
 	std::string modifyMode_;
 	std::string modifyMode_;
+	bool dryRun_;
 	std::string resourceOwnerAccount_;
 	std::string resourceOwnerAccount_;
 	std::string ownerAccount_;
 	std::string ownerAccount_;
 	long ownerId_;
 	long ownerId_;

+ 9 - 0
ecs/src/model/DeleteInstanceRequest.cc

@@ -43,6 +43,15 @@ void DeleteInstanceRequest::setTerminateSubscription(bool terminateSubscription)
   setParameter(std::string("TerminateSubscription"), terminateSubscription ? "true" : "false");
   setParameter(std::string("TerminateSubscription"), terminateSubscription ? "true" : "false");
 }
 }
 
 
+bool DeleteInstanceRequest::getDryRun() const {
+  return dryRun_;
+}
+
+void DeleteInstanceRequest::setDryRun(bool dryRun) {
+  dryRun_ = dryRun;
+  setParameter(std::string("DryRun"), dryRun ? "true" : "false");
+}
+
 std::string DeleteInstanceRequest::getResourceOwnerAccount() const {
 std::string DeleteInstanceRequest::getResourceOwnerAccount() const {
   return resourceOwnerAccount_;
   return resourceOwnerAccount_;
 }
 }

+ 9 - 0
ecs/src/model/ModifyInstanceSpecRequest.cc

@@ -97,6 +97,15 @@ void ModifyInstanceSpecRequest::setModifyMode(const std::string &modifyMode) {
   setParameter(std::string("ModifyMode"), modifyMode);
   setParameter(std::string("ModifyMode"), modifyMode);
 }
 }
 
 
+bool ModifyInstanceSpecRequest::getDryRun() const {
+  return dryRun_;
+}
+
+void ModifyInstanceSpecRequest::setDryRun(bool dryRun) {
+  dryRun_ = dryRun;
+  setParameter(std::string("DryRun"), dryRun ? "true" : "false");
+}
+
 std::string ModifyInstanceSpecRequest::getResourceOwnerAccount() const {
 std::string ModifyInstanceSpecRequest::getResourceOwnerAccount() const {
   return resourceOwnerAccount_;
   return resourceOwnerAccount_;
 }
 }