Support DryRun for DeleteInstance.
This commit is contained in:
@@ -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_;
|
||||
|
||||
@@ -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_;
|
||||
|
||||
@@ -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_;
|
||||
}
|
||||
|
||||
@@ -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_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user