Support DryRun for DeleteInstance.

This commit is contained in:
sdk-team
2024-02-01 08:18:15 +00:00
parent a6e305285a
commit 31b4d82c33
5 changed files with 25 additions and 1 deletions

View File

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

View File

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

View File

@@ -43,6 +43,15 @@ void DeleteInstanceRequest::setTerminateSubscription(bool terminateSubscription)
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 {
return resourceOwnerAccount_;
}

View File

@@ -97,6 +97,15 @@ void ModifyInstanceSpecRequest::setModifyMode(const std::string &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 {
return resourceOwnerAccount_;
}