Supported CheckBlockVolumeName api for Checking the volume name has been already used by the OSS bucket folder.

This commit is contained in:
sdk-team
2021-12-24 08:41:09 +00:00
parent 116e803463
commit 15e8858e41
4 changed files with 19 additions and 7 deletions

View File

@@ -1,3 +1,6 @@
2021-12-24 Version: 1.36.993
- Supported CheckBlockVolumeName api for Checking the volume name has been already used by the OSS bucket folder.
2021-12-23 Version: 1.36.992
- Fix array params.

View File

@@ -1 +1 @@
1.36.992
1.36.993

View File

@@ -40,6 +40,7 @@ namespace AlibabaCloud
std::string getIsRequireRecovery()const;
std::string getMessage()const;
std::string getCode()const;
bool getIsAlreadyExist()const;
bool getSuccess()const;
protected:
@@ -48,6 +49,7 @@ namespace AlibabaCloud
std::string isRequireRecovery_;
std::string message_;
std::string code_;
bool isAlreadyExist_;
bool success_;
};

View File

@@ -39,14 +39,16 @@ void CheckBlockVolumeNameResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["IsRequireRecovery"].isNull())
isRequireRecovery_ = value["IsRequireRecovery"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["IsAlreadyExist"].isNull())
isAlreadyExist_ = value["IsAlreadyExist"].asString() == "true";
}
@@ -65,6 +67,11 @@ std::string CheckBlockVolumeNameResult::getCode()const
return code_;
}
bool CheckBlockVolumeNameResult::getIsAlreadyExist()const
{
return isAlreadyExist_;
}
bool CheckBlockVolumeNameResult::getSuccess()const
{
return success_;