From 1fee9c75aface8b99d2a655dfd352c390153f4ef Mon Sep 17 00:00:00 2001 From: Huaweicloud-SDK Date: Thu, 2 Jan 2025 16:06:51 +0800 Subject: [PATCH] release 3.1.118 source code --- CHANGELOG.md | 52 +++++ CHANGELOG_CN.md | 52 +++++ VERSION | 2 +- ...VO.h => HttpListCustomerIpsResponseData.h} | 42 ++-- .../cfw/v1/model/ListCustomerIpsResponse.h | 8 +- .../cfw/v1/model/ShowIpsUpdateTimeResponse.h | 67 ------ .../huaweicloud/cfw/v1/model/SubnetInfo.h | 2 +- .../cfw/v1/model/UpdateLogConfigRequest.h | 2 +- ...pp => HttpListCustomerIpsResponseData.cpp} | 88 ++++---- cfw/src/v1/model/ListCustomerIpsResponse.cpp | 6 +- .../v1/model/ShowIpsUpdateTimeResponse.cpp | 210 ------------------ .../v3/GaussDBforopenGaussRegion.h | 36 +++ .../ocr/v1/model/GeneralTextRequestBody.h | 2 +- rds/include/huaweicloud/rds/v3/RdsClient.h | 21 ++ rds/include/huaweicloud/rds/v3/RdsMeta.h | 2 + .../huaweicloud/rds/v3/model/Auditlog.h | 6 +- .../rds/v3/model/DelayRestoreDatabase.h | 88 ++++++++ .../rds/v3/model/DelayRestoreSchema.h | 88 ++++++++ .../rds/v3/model/DelayRestoreTable.h | 64 ++++++ .../huaweicloud/rds/v3/model/InstanceDrInfo.h | 11 + .../model/ListReadOnlyReplayDatabaseRequest.h | 71 ++++++ .../ListReadOnlyReplayDatabaseResponse.h | 101 +++++++++ .../rds/v3/model/LogReplayDatabaseReq.h | 65 ++++++ .../huaweicloud/rds/v3/model/RestoreInfo.h | 75 +++++++ .../model/RestoreLogReplayDatabaseRequest.h | 94 ++++++++ .../model/RestoreLogReplayDatabaseResponse.h | 67 ++++++ rds/src/v3/RdsClient.cpp | 75 +++++++ rds/src/v3/RdsMeta.cpp | 19 ++ rds/src/v3/model/Auditlog.cpp | 8 +- rds/src/v3/model/DelayRestoreDatabase.cpp | 148 ++++++++++++ rds/src/v3/model/DelayRestoreSchema.cpp | 148 ++++++++++++ rds/src/v3/model/DelayRestoreTable.cpp | 79 +++++++ rds/src/v3/model/InstanceDrInfo.cpp | 35 +++ .../ListReadOnlyReplayDatabaseRequest.cpp | 79 +++++++ .../ListReadOnlyReplayDatabaseResponse.cpp | 183 +++++++++++++++ rds/src/v3/model/LogReplayDatabaseReq.cpp | 78 +++++++ rds/src/v3/model/RestoreInfo.cpp | 114 ++++++++++ .../model/RestoreLogReplayDatabaseRequest.cpp | 148 ++++++++++++ .../RestoreLogReplayDatabaseResponse.cpp | 79 +++++++ 39 files changed, 2155 insertions(+), 360 deletions(-) rename cfw/include/huaweicloud/cfw/v1/model/{PageInfoCustomerIpsListVO.h => HttpListCustomerIpsResponseData.h} (71%) rename cfw/src/v1/model/{PageInfoCustomerIpsListVO.cpp => HttpListCustomerIpsResponseData.cpp} (66%) create mode 100644 rds/include/huaweicloud/rds/v3/model/DelayRestoreDatabase.h create mode 100644 rds/include/huaweicloud/rds/v3/model/DelayRestoreSchema.h create mode 100644 rds/include/huaweicloud/rds/v3/model/DelayRestoreTable.h create mode 100644 rds/include/huaweicloud/rds/v3/model/ListReadOnlyReplayDatabaseRequest.h create mode 100644 rds/include/huaweicloud/rds/v3/model/ListReadOnlyReplayDatabaseResponse.h create mode 100644 rds/include/huaweicloud/rds/v3/model/LogReplayDatabaseReq.h create mode 100644 rds/include/huaweicloud/rds/v3/model/RestoreInfo.h create mode 100644 rds/include/huaweicloud/rds/v3/model/RestoreLogReplayDatabaseRequest.h create mode 100644 rds/include/huaweicloud/rds/v3/model/RestoreLogReplayDatabaseResponse.h create mode 100644 rds/src/v3/model/DelayRestoreDatabase.cpp create mode 100644 rds/src/v3/model/DelayRestoreSchema.cpp create mode 100644 rds/src/v3/model/DelayRestoreTable.cpp create mode 100644 rds/src/v3/model/ListReadOnlyReplayDatabaseRequest.cpp create mode 100644 rds/src/v3/model/ListReadOnlyReplayDatabaseResponse.cpp create mode 100644 rds/src/v3/model/LogReplayDatabaseReq.cpp create mode 100644 rds/src/v3/model/RestoreInfo.cpp create mode 100644 rds/src/v3/model/RestoreLogReplayDatabaseRequest.cpp create mode 100644 rds/src/v3/model/RestoreLogReplayDatabaseResponse.cpp diff --git a/CHANGELOG.md b/CHANGELOG.md index d57a763f1..dbcefe871 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,55 @@ +# 3.1.118 2025-01-02 + +### HuaweiCloud SDK CFW + +- _API Version_ + - V1 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ShowIpsUpdateTime** + - changes of response param + - `- trace_id` + - `- error_description` + - `- job_id` + - `- error_code` + - `- fail_reason` + - `- order_id` + - **ListCustomerIps** + - changes of response param + - `* data: object -> object` + +### HuaweiCloud SDK RDS + +- _API Version_ + - V3 +- _Features_ + - Support the APIs `ListReadOnlyReplayDatabase`, `RestoreLogReplayDatabase` +- _Bug Fix_ + - None +- _Change_ + - **ListAuditlogs** + - changes of response param + - `* auditlogs.size: int64 -> double` + - **ListDrInfos** + - changes of response param + - `+ instance_dr_infos.build_process` + +### HuaweiCloud SDK VPC + +- _API Version_ + - V3 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ListVpcs** + - changes of request param + - `+ enterprise_project_id` + # 3.1.117 2024-12-26 ### HuaweiCloud SDK CBR diff --git a/CHANGELOG_CN.md b/CHANGELOG_CN.md index ccd079dc8..1f91fa7ed 100644 --- a/CHANGELOG_CN.md +++ b/CHANGELOG_CN.md @@ -1,3 +1,55 @@ +# 3.1.118 2025-01-02 + +### HuaweiCloud SDK CFW + +- _接口版本_ + - V1 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ShowIpsUpdateTime** + - 响应参数变更 + - `- trace_id` + - `- error_description` + - `- job_id` + - `- error_code` + - `- fail_reason` + - `- order_id` + - **ListCustomerIps** + - 响应参数变更 + - `* data: object -> object` + +### HuaweiCloud SDK RDS + +- _接口版本_ + - V3 +- _新增特性_ + - 支持接口`ListReadOnlyReplayDatabase`、`RestoreLogReplayDatabase` +- _解决问题_ + - 无 +- _特性变更_ + - **ListAuditlogs** + - 响应参数变更 + - `* auditlogs.size: int64 -> double` + - **ListDrInfos** + - 响应参数变更 + - `+ instance_dr_infos.build_process` + +### HuaweiCloud SDK VPC + +- _接口版本_ + - V3 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ListVpcs** + - 请求参数变更 + - `+ enterprise_project_id` + # 3.1.117 2024-12-26 ### HuaweiCloud SDK CBR diff --git a/VERSION b/VERSION index 14a3dc385..d19308490 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.1.117 +3.1.118 diff --git a/cfw/include/huaweicloud/cfw/v1/model/PageInfoCustomerIpsListVO.h b/cfw/include/huaweicloud/cfw/v1/model/HttpListCustomerIpsResponseData.h similarity index 71% rename from cfw/include/huaweicloud/cfw/v1/model/PageInfoCustomerIpsListVO.h rename to cfw/include/huaweicloud/cfw/v1/model/HttpListCustomerIpsResponseData.h index 74bdbbc6e..334cb76c3 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/PageInfoCustomerIpsListVO.h +++ b/cfw/include/huaweicloud/cfw/v1/model/HttpListCustomerIpsResponseData.h @@ -1,6 +1,6 @@ -#ifndef HUAWEICLOUD_SDK_CFW_V1_MODEL_PageInfoCustomerIpsListVO_H_ -#define HUAWEICLOUD_SDK_CFW_V1_MODEL_PageInfoCustomerIpsListVO_H_ +#ifndef HUAWEICLOUD_SDK_CFW_V1_MODEL_HttpListCustomerIpsResponseData_H_ +#define HUAWEICLOUD_SDK_CFW_V1_MODEL_HttpListCustomerIpsResponseData_H_ #include @@ -23,12 +23,12 @@ using namespace HuaweiCloud::Sdk::Core::Http; /// /// /// -class HUAWEICLOUD_CFW_V1_EXPORT PageInfoCustomerIpsListVO +class HUAWEICLOUD_CFW_V1_EXPORT HttpListCustomerIpsResponseData : public ModelBase { public: - PageInfoCustomerIpsListVO(); - virtual ~PageInfoCustomerIpsListVO(); + HttpListCustomerIpsResponseData(); + virtual ~HttpListCustomerIpsResponseData(); ///////////////////////////////////////////// /// ModelBase overrides @@ -37,10 +37,10 @@ class HUAWEICLOUD_CFW_V1_EXPORT PageInfoCustomerIpsListVO web::json::value toJson() const override; bool fromJson(const web::json::value& json) override; ///////////////////////////////////////////// - /// PageInfoCustomerIpsListVO members + /// HttpListCustomerIpsResponseData members /// - /// + /// 每页显示个数,范围为1-1024 /// int32_t getLimit() const; @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT PageInfoCustomerIpsListVO void setLimit(int32_t value); /// - /// + /// 偏移量:指定返回记录的开始位置,必须为数字,取值范围为大于或等于0,默认0 /// int32_t getOffset() const; @@ -58,16 +58,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT PageInfoCustomerIpsListVO void setOffset(int32_t value); /// - /// - /// - - std::vector& getRecords(); - bool recordsIsSet() const; - void unsetrecords(); - void setRecords(const std::vector& value); - - /// - /// + /// 查询获得自定义ips规则列表总数 /// int32_t getTotal() const; @@ -75,16 +66,25 @@ class HUAWEICLOUD_CFW_V1_EXPORT PageInfoCustomerIpsListVO void unsettotal(); void setTotal(int32_t value); + /// + /// 自定义ips规则记录 + /// + + std::vector& getRecords(); + bool recordsIsSet() const; + void unsetrecords(); + void setRecords(const std::vector& value); + protected: int32_t limit_; bool limitIsSet_; int32_t offset_; bool offsetIsSet_; - std::vector records_; - bool recordsIsSet_; int32_t total_; bool totalIsSet_; + std::vector records_; + bool recordsIsSet_; }; @@ -95,4 +95,4 @@ class HUAWEICLOUD_CFW_V1_EXPORT PageInfoCustomerIpsListVO } } -#endif // HUAWEICLOUD_SDK_CFW_V1_MODEL_PageInfoCustomerIpsListVO_H_ +#endif // HUAWEICLOUD_SDK_CFW_V1_MODEL_HttpListCustomerIpsResponseData_H_ diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListCustomerIpsResponse.h b/cfw/include/huaweicloud/cfw/v1/model/ListCustomerIpsResponse.h index 913d6b46b..fd8f2cde4 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ListCustomerIpsResponse.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ListCustomerIpsResponse.h @@ -9,7 +9,7 @@ #include #include -#include +#include namespace HuaweiCloud { namespace Sdk { @@ -42,14 +42,14 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListCustomerIpsResponse /// /// - PageInfoCustomerIpsListVO getData() const; + HttpListCustomerIpsResponseData getData() const; bool dataIsSet() const; void unsetdata(); - void setData(const PageInfoCustomerIpsListVO& value); + void setData(const HttpListCustomerIpsResponseData& value); protected: - PageInfoCustomerIpsListVO data_; + HttpListCustomerIpsResponseData data_; bool dataIsSet_; #ifdef RTTR_FLAG diff --git a/cfw/include/huaweicloud/cfw/v1/model/ShowIpsUpdateTimeResponse.h b/cfw/include/huaweicloud/cfw/v1/model/ShowIpsUpdateTimeResponse.h index 9e8a6bbac..4af20ad0d 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ShowIpsUpdateTimeResponse.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ShowIpsUpdateTimeResponse.h @@ -10,7 +10,6 @@ #include #include -#include #include namespace HuaweiCloud { @@ -49,76 +48,10 @@ class HUAWEICLOUD_CFW_V1_EXPORT ShowIpsUpdateTimeResponse void unsetdata(); void setData(const std::vector& value); - /// - /// - /// - - std::string getErrorCode() const; - bool errorCodeIsSet() const; - void unseterrorCode(); - void setErrorCode(const std::string& value); - - /// - /// - /// - - std::string getErrorDescription() const; - bool errorDescriptionIsSet() const; - void unseterrorDescription(); - void setErrorDescription(const std::string& value); - - /// - /// - /// - - std::string getFailReason() const; - bool failReasonIsSet() const; - void unsetfailReason(); - void setFailReason(const std::string& value); - - /// - /// - /// - - std::string getJobId() const; - bool jobIdIsSet() const; - void unsetjobId(); - void setJobId(const std::string& value); - - /// - /// - /// - - std::string getOrderId() const; - bool orderIdIsSet() const; - void unsetorderId(); - void setOrderId(const std::string& value); - - /// - /// - /// - - std::string getTraceId() const; - bool traceIdIsSet() const; - void unsettraceId(); - void setTraceId(const std::string& value); - protected: std::vector data_; bool dataIsSet_; - std::string errorCode_; - bool errorCodeIsSet_; - std::string errorDescription_; - bool errorDescriptionIsSet_; - std::string failReason_; - bool failReasonIsSet_; - std::string jobId_; - bool jobIdIsSet_; - std::string orderId_; - bool orderIdIsSet_; - std::string traceId_; - bool traceIdIsSet_; #ifdef RTTR_FLAG RTTR_ENABLE() diff --git a/cfw/include/huaweicloud/cfw/v1/model/SubnetInfo.h b/cfw/include/huaweicloud/cfw/v1/model/SubnetInfo.h index 5cec9a3ff..e459fdd33 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/SubnetInfo.h +++ b/cfw/include/huaweicloud/cfw/v1/model/SubnetInfo.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT SubnetInfo /// SubnetInfo members /// - /// 子网所在的可用区标识,从终端节点获取,参考[终端节点](cfw_02_0003.xml) + /// 子网所在的可用区标识,从终端节点获取,参考[终端节点](cfw_02_0000.xml) /// std::string getAvailabilityZone() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/UpdateLogConfigRequest.h b/cfw/include/huaweicloud/cfw/v1/model/UpdateLogConfigRequest.h index 700b97e66..9ac6ac77b 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/UpdateLogConfigRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/UpdateLogConfigRequest.h @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateLogConfigRequest /// UpdateLogConfigRequest members /// - /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取(ListFirewallDetail.xml)。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取。 /// std::string getFwInstanceId() const; diff --git a/cfw/src/v1/model/PageInfoCustomerIpsListVO.cpp b/cfw/src/v1/model/HttpListCustomerIpsResponseData.cpp similarity index 66% rename from cfw/src/v1/model/PageInfoCustomerIpsListVO.cpp rename to cfw/src/v1/model/HttpListCustomerIpsResponseData.cpp index 7b5b19a17..f13ef62c4 100644 --- a/cfw/src/v1/model/PageInfoCustomerIpsListVO.cpp +++ b/cfw/src/v1/model/HttpListCustomerIpsResponseData.cpp @@ -1,6 +1,6 @@ -#include "huaweicloud/cfw/v1/model/PageInfoCustomerIpsListVO.h" +#include "huaweicloud/cfw/v1/model/HttpListCustomerIpsResponseData.h" namespace HuaweiCloud { namespace Sdk { namespace Cfw { @@ -10,24 +10,24 @@ namespace Model { -PageInfoCustomerIpsListVO::PageInfoCustomerIpsListVO() +HttpListCustomerIpsResponseData::HttpListCustomerIpsResponseData() { limit_ = 0; limitIsSet_ = false; offset_ = 0; offsetIsSet_ = false; - recordsIsSet_ = false; total_ = 0; totalIsSet_ = false; + recordsIsSet_ = false; } -PageInfoCustomerIpsListVO::~PageInfoCustomerIpsListVO() = default; +HttpListCustomerIpsResponseData::~HttpListCustomerIpsResponseData() = default; -void PageInfoCustomerIpsListVO::validate() +void HttpListCustomerIpsResponseData::validate() { } -web::json::value PageInfoCustomerIpsListVO::toJson() const +web::json::value HttpListCustomerIpsResponseData::toJson() const { web::json::value val = web::json::value::object(); @@ -37,16 +37,16 @@ web::json::value PageInfoCustomerIpsListVO::toJson() const if(offsetIsSet_) { val[utility::conversions::to_string_t("offset")] = ModelBase::toJson(offset_); } - if(recordsIsSet_) { - val[utility::conversions::to_string_t("records")] = ModelBase::toJson(records_); - } if(totalIsSet_) { val[utility::conversions::to_string_t("total")] = ModelBase::toJson(total_); } + if(recordsIsSet_) { + val[utility::conversions::to_string_t("records")] = ModelBase::toJson(records_); + } return val; } -bool PageInfoCustomerIpsListVO::fromJson(const web::json::value& val) +bool HttpListCustomerIpsResponseData::fromJson(const web::json::value& val) { bool ok = true; @@ -68,110 +68,110 @@ bool PageInfoCustomerIpsListVO::fromJson(const web::json::value& val) setOffset(refVal); } } - if(val.has_field(utility::conversions::to_string_t("records"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("records")); + if(val.has_field(utility::conversions::to_string_t("total"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("total")); if(!fieldValue.is_null()) { - std::vector refVal; + int32_t refVal; ok &= ModelBase::fromJson(fieldValue, refVal); - setRecords(refVal); + setTotal(refVal); } } - if(val.has_field(utility::conversions::to_string_t("total"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("total")); + if(val.has_field(utility::conversions::to_string_t("records"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("records")); if(!fieldValue.is_null()) { - int32_t refVal; + std::vector refVal; ok &= ModelBase::fromJson(fieldValue, refVal); - setTotal(refVal); + setRecords(refVal); } } return ok; } -int32_t PageInfoCustomerIpsListVO::getLimit() const +int32_t HttpListCustomerIpsResponseData::getLimit() const { return limit_; } -void PageInfoCustomerIpsListVO::setLimit(int32_t value) +void HttpListCustomerIpsResponseData::setLimit(int32_t value) { limit_ = value; limitIsSet_ = true; } -bool PageInfoCustomerIpsListVO::limitIsSet() const +bool HttpListCustomerIpsResponseData::limitIsSet() const { return limitIsSet_; } -void PageInfoCustomerIpsListVO::unsetlimit() +void HttpListCustomerIpsResponseData::unsetlimit() { limitIsSet_ = false; } -int32_t PageInfoCustomerIpsListVO::getOffset() const +int32_t HttpListCustomerIpsResponseData::getOffset() const { return offset_; } -void PageInfoCustomerIpsListVO::setOffset(int32_t value) +void HttpListCustomerIpsResponseData::setOffset(int32_t value) { offset_ = value; offsetIsSet_ = true; } -bool PageInfoCustomerIpsListVO::offsetIsSet() const +bool HttpListCustomerIpsResponseData::offsetIsSet() const { return offsetIsSet_; } -void PageInfoCustomerIpsListVO::unsetoffset() +void HttpListCustomerIpsResponseData::unsetoffset() { offsetIsSet_ = false; } -std::vector& PageInfoCustomerIpsListVO::getRecords() +int32_t HttpListCustomerIpsResponseData::getTotal() const { - return records_; + return total_; } -void PageInfoCustomerIpsListVO::setRecords(const std::vector& value) +void HttpListCustomerIpsResponseData::setTotal(int32_t value) { - records_ = value; - recordsIsSet_ = true; + total_ = value; + totalIsSet_ = true; } -bool PageInfoCustomerIpsListVO::recordsIsSet() const +bool HttpListCustomerIpsResponseData::totalIsSet() const { - return recordsIsSet_; + return totalIsSet_; } -void PageInfoCustomerIpsListVO::unsetrecords() +void HttpListCustomerIpsResponseData::unsettotal() { - recordsIsSet_ = false; + totalIsSet_ = false; } -int32_t PageInfoCustomerIpsListVO::getTotal() const +std::vector& HttpListCustomerIpsResponseData::getRecords() { - return total_; + return records_; } -void PageInfoCustomerIpsListVO::setTotal(int32_t value) +void HttpListCustomerIpsResponseData::setRecords(const std::vector& value) { - total_ = value; - totalIsSet_ = true; + records_ = value; + recordsIsSet_ = true; } -bool PageInfoCustomerIpsListVO::totalIsSet() const +bool HttpListCustomerIpsResponseData::recordsIsSet() const { - return totalIsSet_; + return recordsIsSet_; } -void PageInfoCustomerIpsListVO::unsettotal() +void HttpListCustomerIpsResponseData::unsetrecords() { - totalIsSet_ = false; + recordsIsSet_ = false; } } diff --git a/cfw/src/v1/model/ListCustomerIpsResponse.cpp b/cfw/src/v1/model/ListCustomerIpsResponse.cpp index f5aa91406..5c06f654e 100644 --- a/cfw/src/v1/model/ListCustomerIpsResponse.cpp +++ b/cfw/src/v1/model/ListCustomerIpsResponse.cpp @@ -39,7 +39,7 @@ bool ListCustomerIpsResponse::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("data")); if(!fieldValue.is_null()) { - PageInfoCustomerIpsListVO refVal; + HttpListCustomerIpsResponseData refVal; ok &= ModelBase::fromJson(fieldValue, refVal); setData(refVal); } @@ -48,12 +48,12 @@ bool ListCustomerIpsResponse::fromJson(const web::json::value& val) } -PageInfoCustomerIpsListVO ListCustomerIpsResponse::getData() const +HttpListCustomerIpsResponseData ListCustomerIpsResponse::getData() const { return data_; } -void ListCustomerIpsResponse::setData(const PageInfoCustomerIpsListVO& value) +void ListCustomerIpsResponse::setData(const HttpListCustomerIpsResponseData& value) { data_ = value; dataIsSet_ = true; diff --git a/cfw/src/v1/model/ShowIpsUpdateTimeResponse.cpp b/cfw/src/v1/model/ShowIpsUpdateTimeResponse.cpp index 4f7959266..cbecfcb17 100644 --- a/cfw/src/v1/model/ShowIpsUpdateTimeResponse.cpp +++ b/cfw/src/v1/model/ShowIpsUpdateTimeResponse.cpp @@ -13,18 +13,6 @@ namespace Model { ShowIpsUpdateTimeResponse::ShowIpsUpdateTimeResponse() { dataIsSet_ = false; - errorCode_ = ""; - errorCodeIsSet_ = false; - errorDescription_ = ""; - errorDescriptionIsSet_ = false; - failReason_ = ""; - failReasonIsSet_ = false; - jobId_ = ""; - jobIdIsSet_ = false; - orderId_ = ""; - orderIdIsSet_ = false; - traceId_ = ""; - traceIdIsSet_ = false; } ShowIpsUpdateTimeResponse::~ShowIpsUpdateTimeResponse() = default; @@ -40,24 +28,6 @@ web::json::value ShowIpsUpdateTimeResponse::toJson() const if(dataIsSet_) { val[utility::conversions::to_string_t("data")] = ModelBase::toJson(data_); } - if(errorCodeIsSet_) { - val[utility::conversions::to_string_t("error_code")] = ModelBase::toJson(errorCode_); - } - if(errorDescriptionIsSet_) { - val[utility::conversions::to_string_t("error_description")] = ModelBase::toJson(errorDescription_); - } - if(failReasonIsSet_) { - val[utility::conversions::to_string_t("fail_reason")] = ModelBase::toJson(failReason_); - } - if(jobIdIsSet_) { - val[utility::conversions::to_string_t("job_id")] = ModelBase::toJson(jobId_); - } - if(orderIdIsSet_) { - val[utility::conversions::to_string_t("order_id")] = ModelBase::toJson(orderId_); - } - if(traceIdIsSet_) { - val[utility::conversions::to_string_t("trace_id")] = ModelBase::toJson(traceId_); - } return val; } @@ -74,60 +44,6 @@ bool ShowIpsUpdateTimeResponse::fromJson(const web::json::value& val) setData(refVal); } } - if(val.has_field(utility::conversions::to_string_t("error_code"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("error_code")); - if(!fieldValue.is_null()) - { - std::string refVal; - ok &= ModelBase::fromJson(fieldValue, refVal); - setErrorCode(refVal); - } - } - if(val.has_field(utility::conversions::to_string_t("error_description"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("error_description")); - if(!fieldValue.is_null()) - { - std::string refVal; - ok &= ModelBase::fromJson(fieldValue, refVal); - setErrorDescription(refVal); - } - } - if(val.has_field(utility::conversions::to_string_t("fail_reason"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("fail_reason")); - if(!fieldValue.is_null()) - { - std::string refVal; - ok &= ModelBase::fromJson(fieldValue, refVal); - setFailReason(refVal); - } - } - if(val.has_field(utility::conversions::to_string_t("job_id"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("job_id")); - if(!fieldValue.is_null()) - { - std::string refVal; - ok &= ModelBase::fromJson(fieldValue, refVal); - setJobId(refVal); - } - } - if(val.has_field(utility::conversions::to_string_t("order_id"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("order_id")); - if(!fieldValue.is_null()) - { - std::string refVal; - ok &= ModelBase::fromJson(fieldValue, refVal); - setOrderId(refVal); - } - } - if(val.has_field(utility::conversions::to_string_t("trace_id"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("trace_id")); - if(!fieldValue.is_null()) - { - std::string refVal; - ok &= ModelBase::fromJson(fieldValue, refVal); - setTraceId(refVal); - } - } return ok; } @@ -153,132 +69,6 @@ void ShowIpsUpdateTimeResponse::unsetdata() dataIsSet_ = false; } -std::string ShowIpsUpdateTimeResponse::getErrorCode() const -{ - return errorCode_; -} - -void ShowIpsUpdateTimeResponse::setErrorCode(const std::string& value) -{ - errorCode_ = value; - errorCodeIsSet_ = true; -} - -bool ShowIpsUpdateTimeResponse::errorCodeIsSet() const -{ - return errorCodeIsSet_; -} - -void ShowIpsUpdateTimeResponse::unseterrorCode() -{ - errorCodeIsSet_ = false; -} - -std::string ShowIpsUpdateTimeResponse::getErrorDescription() const -{ - return errorDescription_; -} - -void ShowIpsUpdateTimeResponse::setErrorDescription(const std::string& value) -{ - errorDescription_ = value; - errorDescriptionIsSet_ = true; -} - -bool ShowIpsUpdateTimeResponse::errorDescriptionIsSet() const -{ - return errorDescriptionIsSet_; -} - -void ShowIpsUpdateTimeResponse::unseterrorDescription() -{ - errorDescriptionIsSet_ = false; -} - -std::string ShowIpsUpdateTimeResponse::getFailReason() const -{ - return failReason_; -} - -void ShowIpsUpdateTimeResponse::setFailReason(const std::string& value) -{ - failReason_ = value; - failReasonIsSet_ = true; -} - -bool ShowIpsUpdateTimeResponse::failReasonIsSet() const -{ - return failReasonIsSet_; -} - -void ShowIpsUpdateTimeResponse::unsetfailReason() -{ - failReasonIsSet_ = false; -} - -std::string ShowIpsUpdateTimeResponse::getJobId() const -{ - return jobId_; -} - -void ShowIpsUpdateTimeResponse::setJobId(const std::string& value) -{ - jobId_ = value; - jobIdIsSet_ = true; -} - -bool ShowIpsUpdateTimeResponse::jobIdIsSet() const -{ - return jobIdIsSet_; -} - -void ShowIpsUpdateTimeResponse::unsetjobId() -{ - jobIdIsSet_ = false; -} - -std::string ShowIpsUpdateTimeResponse::getOrderId() const -{ - return orderId_; -} - -void ShowIpsUpdateTimeResponse::setOrderId(const std::string& value) -{ - orderId_ = value; - orderIdIsSet_ = true; -} - -bool ShowIpsUpdateTimeResponse::orderIdIsSet() const -{ - return orderIdIsSet_; -} - -void ShowIpsUpdateTimeResponse::unsetorderId() -{ - orderIdIsSet_ = false; -} - -std::string ShowIpsUpdateTimeResponse::getTraceId() const -{ - return traceId_; -} - -void ShowIpsUpdateTimeResponse::setTraceId(const std::string& value) -{ - traceId_ = value; - traceIdIsSet_ = true; -} - -bool ShowIpsUpdateTimeResponse::traceIdIsSet() const -{ - return traceIdIsSet_; -} - -void ShowIpsUpdateTimeResponse::unsettraceId() -{ - traceIdIsSet_ = false; -} - } } } diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/GaussDBforopenGaussRegion.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/GaussDBforopenGaussRegion.h index 0a36a5ce3..8b7143057 100644 --- a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/GaussDBforopenGaussRegion.h +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/GaussDBforopenGaussRegion.h @@ -78,6 +78,42 @@ class HUAWEICLOUD_GAUSSDBFOROPENGAUSS_V3_EXPORT GaussDBforopenGaussRegion { { "https://gaussdb-opengauss.cn-north-9.myhuaweicloud.com" }); + regions["cn-south-2"] = Region("cn-south-2", + { + "https://gaussdb-opengauss.cn-south-2.myhuaweicloud.com" + }); + regions["cn-east-4"] = Region("cn-east-4", + { + "https://gaussdb.cn-east-4.myhuaweicloud.com" + }); + regions["cn-east-5"] = Region("cn-east-5", + { + "https://gaussdb.cn-east-5.myhuaweicloud.com" + }); + regions["ap-southeast-5"] = Region("ap-southeast-5", + { + "https://gaussdb.ap-southeast-5.myhuaweicloud.com" + }); + regions["tr-west-1"] = Region("tr-west-1", + { + "https://gaussdb.tr-west-1.myhuaweicloud.com" + }); + regions["me-east-1"] = Region("me-east-1", + { + "https://gaussdb.me-east-1.myhuaweicloud.com" + }); + regions["af-north-1"] = Region("af-north-1", + { + "https://gaussdb.af-north-1.myhuaweicloud.com" + }); + regions["ap-southeast-4"] = Region("ap-southeast-4", + { + "https://gaussdb-opengauss.ap-southeast-4.myhuaweicloud.com" + }); + regions["cn-east-2"] = Region("cn-east-2", + { + "https://gaussdb.cn-east-2.myhuaweicloud.com" + }); return regions; } private: diff --git a/ocr/include/huaweicloud/ocr/v1/model/GeneralTextRequestBody.h b/ocr/include/huaweicloud/ocr/v1/model/GeneralTextRequestBody.h index a2953d98b..df004d9cf 100644 --- a/ocr/include/huaweicloud/ocr/v1/model/GeneralTextRequestBody.h +++ b/ocr/include/huaweicloud/ocr/v1/model/GeneralTextRequestBody.h @@ -93,7 +93,7 @@ class HUAWEICLOUD_OCR_V1_EXPORT GeneralTextRequestBody void setLanguage(const std::string& value); /// - /// 单朝向模式开关。可选值包括: - true:打开单朝向模式 - false:关闭单朝向模 图片文字方向一致时,打开该开关可提升识别精度;图片文字方向不一致时,关闭该开关可支持多朝向文字识别。未传入该参数时默认为false,即默认图片中的字段为多朝向。 + /// 单朝向模式开关。可选值包括: - true:打开单朝向模式 - false:关闭单朝向模式 图片文字方向一致时,打开该开关可提升识别精度;图片文字方向不一致时,关闭该开关可支持多朝向文字识别。未传入该参数时默认为false,即默认图片中的字段为多朝向。 /// bool isSingleOrientationMode() const; diff --git a/rds/include/huaweicloud/rds/v3/RdsClient.h b/rds/include/huaweicloud/rds/v3/RdsClient.h index 5c437c2a8..62b45d4e9 100644 --- a/rds/include/huaweicloud/rds/v3/RdsClient.h +++ b/rds/include/huaweicloud/rds/v3/RdsClient.h @@ -179,6 +179,8 @@ #include #include #include +#include +#include #include #include #include @@ -211,6 +213,7 @@ #include #include #include +#include #include #include #include @@ -236,6 +239,8 @@ #include #include #include +#include +#include #include #include #include @@ -1154,6 +1159,14 @@ class HUAWEICLOUD_RDS_V3_EXPORT RdsClient : public Client std::shared_ptr listRdSforMysqlProxyFlavors( ListRdSforMysqlProxyFlavorsRequest &request ); + // 查询只读实例可恢复到主实例的库 + // + // 查询只读实例可恢复到主实例的库 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr listReadOnlyReplayDatabase( + ListReadOnlyReplayDatabaseRequest &request + ); // 查询回收站 // // 查询回收站实例信息 @@ -1317,6 +1330,14 @@ class HUAWEICLOUD_RDS_V3_EXPORT RdsClient : public Client std::shared_ptr restoreExistInstance( RestoreExistInstanceRequest &request ); + // 延迟库只读,恢复库到主实例 + // + // 延迟库只读,恢复库到主实例 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr restoreLogReplayDatabase( + RestoreLogReplayDatabaseRequest &request + ); // 表级时间点恢复(MySQL) // // 表级时间点恢复(MySQL)。 diff --git a/rds/include/huaweicloud/rds/v3/RdsMeta.h b/rds/include/huaweicloud/rds/v3/RdsMeta.h index dda613581..b01490541 100644 --- a/rds/include/huaweicloud/rds/v3/RdsMeta.h +++ b/rds/include/huaweicloud/rds/v3/RdsMeta.h @@ -81,6 +81,7 @@ class HUAWEICLOUD_RDS_V3_EXPORT RdsMeta { static HttpRequestDef genRequestDefForListProjectTags(); static HttpRequestDef genRequestDefForListRdSforMySqlProxy(); static HttpRequestDef genRequestDefForListRdSforMysqlProxyFlavors(); + static HttpRequestDef genRequestDefForListReadOnlyReplayDatabase(); static HttpRequestDef genRequestDefForListRecycleInstances(); static HttpRequestDef genRequestDefForListRestoreTimes(); static HttpRequestDef genRequestDefForListShareBackups(); @@ -101,6 +102,7 @@ class HUAWEICLOUD_RDS_V3_EXPORT RdsMeta { static HttpRequestDef genRequestDefForModifyPostgresqlHbaConf(); static HttpRequestDef genRequestDefForModifyRdSforMySqlProxyRouteMode(); static HttpRequestDef genRequestDefForRestoreExistInstance(); + static HttpRequestDef genRequestDefForRestoreLogReplayDatabase(); static HttpRequestDef genRequestDefForRestoreTables(); static HttpRequestDef genRequestDefForRestoreTablesNew(); static HttpRequestDef genRequestDefForRestoreToExistingInstance(); diff --git a/rds/include/huaweicloud/rds/v3/model/Auditlog.h b/rds/include/huaweicloud/rds/v3/model/Auditlog.h index ddb82edfa..ba17c635e 100644 --- a/rds/include/huaweicloud/rds/v3/model/Auditlog.h +++ b/rds/include/huaweicloud/rds/v3/model/Auditlog.h @@ -60,10 +60,10 @@ class HUAWEICLOUD_RDS_V3_EXPORT Auditlog /// 审计日志大小,单位:KB。 /// - int64_t getSize() const; + double getSize() const; bool sizeIsSet() const; void unsetsize(); - void setSize(int64_t value); + void setSize(double value); /// /// 审计日志开始时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始,Z指时区偏移量,例如北京时间偏移显示为+0800。 @@ -89,7 +89,7 @@ class HUAWEICLOUD_RDS_V3_EXPORT Auditlog bool idIsSet_; std::string name_; bool nameIsSet_; - int64_t size_; + double size_; bool sizeIsSet_; std::string beginTime_; bool beginTimeIsSet_; diff --git a/rds/include/huaweicloud/rds/v3/model/DelayRestoreDatabase.h b/rds/include/huaweicloud/rds/v3/model/DelayRestoreDatabase.h new file mode 100644 index 000000000..17e99f4d0 --- /dev/null +++ b/rds/include/huaweicloud/rds/v3/model/DelayRestoreDatabase.h @@ -0,0 +1,88 @@ + +#ifndef HUAWEICLOUD_SDK_RDS_V3_MODEL_DelayRestoreDatabase_H_ +#define HUAWEICLOUD_SDK_RDS_V3_MODEL_DelayRestoreDatabase_H_ + + +#include + +#include +#include +#include + +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Rds { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_RDS_V3_EXPORT DelayRestoreDatabase + : public ModelBase +{ +public: + DelayRestoreDatabase(); + virtual ~DelayRestoreDatabase(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DelayRestoreDatabase members + + /// + /// 数据库名称 + /// + + std::string getName() const; + bool nameIsSet() const; + void unsetname(); + void setName(const std::string& value); + + /// + /// 返回该库下的总表数量 + /// + + int32_t getTotalTables() const; + bool totalTablesIsSet() const; + void unsettotalTables(); + void setTotalTables(int32_t value); + + /// + /// 该库下的schema列表 + /// + + std::vector& getSchemas(); + bool schemasIsSet() const; + void unsetschemas(); + void setSchemas(const std::vector& value); + + +protected: + std::string name_; + bool nameIsSet_; + int32_t totalTables_; + bool totalTablesIsSet_; + std::vector schemas_; + bool schemasIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_RDS_V3_MODEL_DelayRestoreDatabase_H_ diff --git a/rds/include/huaweicloud/rds/v3/model/DelayRestoreSchema.h b/rds/include/huaweicloud/rds/v3/model/DelayRestoreSchema.h new file mode 100644 index 000000000..3f44ab254 --- /dev/null +++ b/rds/include/huaweicloud/rds/v3/model/DelayRestoreSchema.h @@ -0,0 +1,88 @@ + +#ifndef HUAWEICLOUD_SDK_RDS_V3_MODEL_DelayRestoreSchema_H_ +#define HUAWEICLOUD_SDK_RDS_V3_MODEL_DelayRestoreSchema_H_ + + +#include + +#include +#include +#include + +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Rds { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_RDS_V3_EXPORT DelayRestoreSchema + : public ModelBase +{ +public: + DelayRestoreSchema(); + virtual ~DelayRestoreSchema(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DelayRestoreSchema members + + /// + /// schema名称 + /// + + std::string getName() const; + bool nameIsSet() const; + void unsetname(); + void setName(const std::string& value); + + /// + /// 返回该schema下的总表数量 + /// + + int32_t getTotalTables() const; + bool totalTablesIsSet() const; + void unsettotalTables(); + void setTotalTables(int32_t value); + + /// + /// 该schema下的表列表 + /// + + std::vector& getTables(); + bool tablesIsSet() const; + void unsettables(); + void setTables(const std::vector& value); + + +protected: + std::string name_; + bool nameIsSet_; + int32_t totalTables_; + bool totalTablesIsSet_; + std::vector tables_; + bool tablesIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_RDS_V3_MODEL_DelayRestoreSchema_H_ diff --git a/rds/include/huaweicloud/rds/v3/model/DelayRestoreTable.h b/rds/include/huaweicloud/rds/v3/model/DelayRestoreTable.h new file mode 100644 index 000000000..e7deadb64 --- /dev/null +++ b/rds/include/huaweicloud/rds/v3/model/DelayRestoreTable.h @@ -0,0 +1,64 @@ + +#ifndef HUAWEICLOUD_SDK_RDS_V3_MODEL_DelayRestoreTable_H_ +#define HUAWEICLOUD_SDK_RDS_V3_MODEL_DelayRestoreTable_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Rds { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_RDS_V3_EXPORT DelayRestoreTable + : public ModelBase +{ +public: + DelayRestoreTable(); + virtual ~DelayRestoreTable(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DelayRestoreTable members + + /// + /// 表名称 + /// + + std::string getName() const; + bool nameIsSet() const; + void unsetname(); + void setName(const std::string& value); + + +protected: + std::string name_; + bool nameIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_RDS_V3_MODEL_DelayRestoreTable_H_ diff --git a/rds/include/huaweicloud/rds/v3/model/InstanceDrInfo.h b/rds/include/huaweicloud/rds/v3/model/InstanceDrInfo.h index 05c964c78..d8c01a003 100644 --- a/rds/include/huaweicloud/rds/v3/model/InstanceDrInfo.h +++ b/rds/include/huaweicloud/rds/v3/model/InstanceDrInfo.h @@ -137,6 +137,15 @@ class HUAWEICLOUD_RDS_V3_EXPORT InstanceDrInfo void unsetslaveRegion(); void setSlaveRegion(const std::string& value); + /// + /// 搭建流程。master表示配置主实例容灾能力流程。slave表示配置灾备实例容灾能力流程。 + /// + + std::string getBuildProcess() const; + bool buildProcessIsSet() const; + void unsetbuildProcess(); + void setBuildProcess(const std::string& value); + /// /// 灾备搭建时间 /// @@ -170,6 +179,8 @@ class HUAWEICLOUD_RDS_V3_EXPORT InstanceDrInfo bool slaveInstanceIdIsSet_; std::string slaveRegion_; bool slaveRegionIsSet_; + std::string buildProcess_; + bool buildProcessIsSet_; int64_t time_; bool timeIsSet_; diff --git a/rds/include/huaweicloud/rds/v3/model/ListReadOnlyReplayDatabaseRequest.h b/rds/include/huaweicloud/rds/v3/model/ListReadOnlyReplayDatabaseRequest.h new file mode 100644 index 000000000..8818103b1 --- /dev/null +++ b/rds/include/huaweicloud/rds/v3/model/ListReadOnlyReplayDatabaseRequest.h @@ -0,0 +1,71 @@ + +#ifndef HUAWEICLOUD_SDK_RDS_V3_MODEL_ListReadOnlyReplayDatabaseRequest_H_ +#define HUAWEICLOUD_SDK_RDS_V3_MODEL_ListReadOnlyReplayDatabaseRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Rds { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_RDS_V3_EXPORT ListReadOnlyReplayDatabaseRequest + : public ModelBase +{ +public: + ListReadOnlyReplayDatabaseRequest(); + virtual ~ListReadOnlyReplayDatabaseRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListReadOnlyReplayDatabaseRequest members + + /// + /// 实例id + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + +protected: + std::string instanceId_; + bool instanceIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ListReadOnlyReplayDatabaseRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_RDS_V3_MODEL_ListReadOnlyReplayDatabaseRequest_H_ diff --git a/rds/include/huaweicloud/rds/v3/model/ListReadOnlyReplayDatabaseResponse.h b/rds/include/huaweicloud/rds/v3/model/ListReadOnlyReplayDatabaseResponse.h new file mode 100644 index 000000000..257bde15e --- /dev/null +++ b/rds/include/huaweicloud/rds/v3/model/ListReadOnlyReplayDatabaseResponse.h @@ -0,0 +1,101 @@ + +#ifndef HUAWEICLOUD_SDK_RDS_V3_MODEL_ListReadOnlyReplayDatabaseResponse_H_ +#define HUAWEICLOUD_SDK_RDS_V3_MODEL_ListReadOnlyReplayDatabaseResponse_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Rds { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_RDS_V3_EXPORT ListReadOnlyReplayDatabaseResponse + : public ModelBase, public HttpResponse +{ +public: + ListReadOnlyReplayDatabaseResponse(); + virtual ~ListReadOnlyReplayDatabaseResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListReadOnlyReplayDatabaseResponse members + + /// + /// 每次返回的库上限数量 + /// + + int32_t getDatabaseLimit() const; + bool databaseLimitIsSet() const; + void unsetdatabaseLimit(); + void setDatabaseLimit(int32_t value); + + /// + /// 返回的总表数量 + /// + + int32_t getTotalTables() const; + bool totalTablesIsSet() const; + void unsettotalTables(); + void setTotalTables(int32_t value); + + /// + /// 每次返回的表上限数量 + /// + + int32_t getTableLimit() const; + bool tableLimitIsSet() const; + void unsettableLimit(); + void setTableLimit(int32_t value); + + /// + /// 可恢复到主实例的数据库列表 + /// + + std::vector& getDatabases(); + bool databasesIsSet() const; + void unsetdatabases(); + void setDatabases(const std::vector& value); + + +protected: + int32_t databaseLimit_; + bool databaseLimitIsSet_; + int32_t totalTables_; + bool totalTablesIsSet_; + int32_t tableLimit_; + bool tableLimitIsSet_; + std::vector databases_; + bool databasesIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_RDS_V3_MODEL_ListReadOnlyReplayDatabaseResponse_H_ diff --git a/rds/include/huaweicloud/rds/v3/model/LogReplayDatabaseReq.h b/rds/include/huaweicloud/rds/v3/model/LogReplayDatabaseReq.h new file mode 100644 index 000000000..19886838c --- /dev/null +++ b/rds/include/huaweicloud/rds/v3/model/LogReplayDatabaseReq.h @@ -0,0 +1,65 @@ + +#ifndef HUAWEICLOUD_SDK_RDS_V3_MODEL_LogReplayDatabaseReq_H_ +#define HUAWEICLOUD_SDK_RDS_V3_MODEL_LogReplayDatabaseReq_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Rds { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 库回放请求体 +/// +class HUAWEICLOUD_RDS_V3_EXPORT LogReplayDatabaseReq + : public ModelBase +{ +public: + LogReplayDatabaseReq(); + virtual ~LogReplayDatabaseReq(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// LogReplayDatabaseReq members + + /// + /// 需要恢复的库名列表 + /// + + std::vector& getDatabases(); + bool databasesIsSet() const; + void unsetdatabases(); + void setDatabases(const std::vector& value); + + +protected: + std::vector databases_; + bool databasesIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_RDS_V3_MODEL_LogReplayDatabaseReq_H_ diff --git a/rds/include/huaweicloud/rds/v3/model/RestoreInfo.h b/rds/include/huaweicloud/rds/v3/model/RestoreInfo.h new file mode 100644 index 000000000..cbfec4b49 --- /dev/null +++ b/rds/include/huaweicloud/rds/v3/model/RestoreInfo.h @@ -0,0 +1,75 @@ + +#ifndef HUAWEICLOUD_SDK_RDS_V3_MODEL_RestoreInfo_H_ +#define HUAWEICLOUD_SDK_RDS_V3_MODEL_RestoreInfo_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Rds { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_RDS_V3_EXPORT RestoreInfo + : public ModelBase +{ +public: + RestoreInfo(); + virtual ~RestoreInfo(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// RestoreInfo members + + /// + /// 需恢复的原库名称 + /// + + std::string getOldName() const; + bool oldNameIsSet() const; + void unsetoldName(); + void setOldName(const std::string& value); + + /// + /// 恢复后的新库名称 + /// + + std::string getNewName() const; + bool newNameIsSet() const; + void unsetnewName(); + void setNewName(const std::string& value); + + +protected: + std::string oldName_; + bool oldNameIsSet_; + std::string newName_; + bool newNameIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_RDS_V3_MODEL_RestoreInfo_H_ diff --git a/rds/include/huaweicloud/rds/v3/model/RestoreLogReplayDatabaseRequest.h b/rds/include/huaweicloud/rds/v3/model/RestoreLogReplayDatabaseRequest.h new file mode 100644 index 000000000..33d4af69f --- /dev/null +++ b/rds/include/huaweicloud/rds/v3/model/RestoreLogReplayDatabaseRequest.h @@ -0,0 +1,94 @@ + +#ifndef HUAWEICLOUD_SDK_RDS_V3_MODEL_RestoreLogReplayDatabaseRequest_H_ +#define HUAWEICLOUD_SDK_RDS_V3_MODEL_RestoreLogReplayDatabaseRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Rds { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_RDS_V3_EXPORT RestoreLogReplayDatabaseRequest + : public ModelBase +{ +public: + RestoreLogReplayDatabaseRequest(); + virtual ~RestoreLogReplayDatabaseRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// RestoreLogReplayDatabaseRequest members + + /// + /// 实例id + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// 语言 + /// + + std::string getXLanguage() const; + bool xLanguageIsSet() const; + void unsetxLanguage(); + void setXLanguage(const std::string& value); + + /// + /// + /// + + LogReplayDatabaseReq getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const LogReplayDatabaseReq& value); + + +protected: + std::string instanceId_; + bool instanceIdIsSet_; + std::string xLanguage_; + bool xLanguageIsSet_; + LogReplayDatabaseReq body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + RestoreLogReplayDatabaseRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_RDS_V3_MODEL_RestoreLogReplayDatabaseRequest_H_ diff --git a/rds/include/huaweicloud/rds/v3/model/RestoreLogReplayDatabaseResponse.h b/rds/include/huaweicloud/rds/v3/model/RestoreLogReplayDatabaseResponse.h new file mode 100644 index 000000000..991698bd0 --- /dev/null +++ b/rds/include/huaweicloud/rds/v3/model/RestoreLogReplayDatabaseResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_RDS_V3_MODEL_RestoreLogReplayDatabaseResponse_H_ +#define HUAWEICLOUD_SDK_RDS_V3_MODEL_RestoreLogReplayDatabaseResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Rds { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_RDS_V3_EXPORT RestoreLogReplayDatabaseResponse + : public ModelBase, public HttpResponse +{ +public: + RestoreLogReplayDatabaseResponse(); + virtual ~RestoreLogReplayDatabaseResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// RestoreLogReplayDatabaseResponse members + + /// + /// 任务流id + /// + + std::string getJobId() const; + bool jobIdIsSet() const; + void unsetjobId(); + void setJobId(const std::string& value); + + +protected: + std::string jobId_; + bool jobIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_RDS_V3_MODEL_RestoreLogReplayDatabaseResponse_H_ diff --git a/rds/src/v3/RdsClient.cpp b/rds/src/v3/RdsClient.cpp index 59c8a6c70..89247514b 100644 --- a/rds/src/v3/RdsClient.cpp +++ b/rds/src/v3/RdsClient.cpp @@ -2859,6 +2859,36 @@ std::shared_ptr RdsClient::listRdSforMysqlP return localVarResult; } +std::shared_ptr RdsClient::listReadOnlyReplayDatabase(ListReadOnlyReplayDatabaseRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/log-replay/database"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["instance_id"] = parameterToString(request.getInstanceId()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, RdsMeta::genRequestDefForListReadOnlyReplayDatabase()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} std::shared_ptr RdsClient::listRecycleInstances(ListRecycleInstancesRequest &request) { std::string localVarPath = "/v3/{project_id}/recycle-instances"; @@ -3702,6 +3732,51 @@ std::shared_ptr RdsClient::restoreExistInstance(Re return localVarResult; } +std::shared_ptr RdsClient::restoreLogReplayDatabase(RestoreLogReplayDatabaseRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/log-replay/database"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["instance_id"] = parameterToString(request.getInstanceId()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + if (request.xLanguageIsSet()) { + localVarHeaderParams["X-Language"] = parameterToString(request.getXLanguage()); + } + + std::string localVarHttpBody; + if (isJson) { + // handle json input + web::json::value localVarJson; + localVarJson = ModelBase::toJson(request.getBody()); + localVarHttpBody = utility::conversions::to_utf8string(localVarJson.serialize()); + } + + std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, RdsMeta::genRequestDefForRestoreLogReplayDatabase()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + if (!res->getHttpBody().empty()) { + spdlog::info("parse json format response"); + utility::string_t localVarResponse = utility::conversions::to_string_t(res->getHttpBody()); + web::json::value localVarJson = web::json::value::parse(localVarResponse); + localVarResult->fromJson(localVarJson); + } + + return localVarResult; +} std::shared_ptr RdsClient::restoreTables(RestoreTablesRequest &request) { std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/restore/tables"; diff --git a/rds/src/v3/RdsMeta.cpp b/rds/src/v3/RdsMeta.cpp index d97dcb9d6..70c5bdd0b 100644 --- a/rds/src/v3/RdsMeta.cpp +++ b/rds/src/v3/RdsMeta.cpp @@ -1015,6 +1015,11 @@ HttpRequestDef RdsMeta::genRequestDefForListRdSforMysqlProxyFlavors() { return reqDefBuilder; } +HttpRequestDef RdsMeta::genRequestDefForListReadOnlyReplayDatabase() { + HttpRequestDef reqDefBuilder; + return reqDefBuilder; +} + HttpRequestDef RdsMeta::genRequestDefForListRecycleInstances() { HttpRequestDef reqDefBuilder; reqDefBuilder.withRequestField(FieldDef().withName("Offset") @@ -1337,6 +1342,20 @@ HttpRequestDef RdsMeta::genRequestDefForRestoreExistInstance() { return reqDefBuilder; } +HttpRequestDef RdsMeta::genRequestDefForRestoreLogReplayDatabase() { + HttpRequestDef reqDefBuilder; + FieldDef headerParamXLanguage; + reqDefBuilder.withRequestField(headerParamXLanguage + .withName("XLanguage") + .withJsonTag("X-Language") + .withLocationType(Header_)); + FieldDef bodyParam; + reqDefBuilder.withRequestField(bodyParam. + withName("Body"). + withLocationType(Body_)); + return reqDefBuilder; +} + HttpRequestDef RdsMeta::genRequestDefForRestoreTables() { HttpRequestDef reqDefBuilder; FieldDef headerParamXLanguage; diff --git a/rds/src/v3/model/Auditlog.cpp b/rds/src/v3/model/Auditlog.cpp index b1d7e0dbd..233cda879 100644 --- a/rds/src/v3/model/Auditlog.cpp +++ b/rds/src/v3/model/Auditlog.cpp @@ -16,7 +16,7 @@ Auditlog::Auditlog() idIsSet_ = false; name_ = ""; nameIsSet_ = false; - size_ = 0L; + size_ = 0.0; sizeIsSet_ = false; beginTime_ = ""; beginTimeIsSet_ = false; @@ -78,7 +78,7 @@ bool Auditlog::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("size")); if(!fieldValue.is_null()) { - int64_t refVal; + double refVal; ok &= ModelBase::fromJson(fieldValue, refVal); setSize(refVal); } @@ -147,12 +147,12 @@ void Auditlog::unsetname() nameIsSet_ = false; } -int64_t Auditlog::getSize() const +double Auditlog::getSize() const { return size_; } -void Auditlog::setSize(int64_t value) +void Auditlog::setSize(double value) { size_ = value; sizeIsSet_ = true; diff --git a/rds/src/v3/model/DelayRestoreDatabase.cpp b/rds/src/v3/model/DelayRestoreDatabase.cpp new file mode 100644 index 000000000..273918c42 --- /dev/null +++ b/rds/src/v3/model/DelayRestoreDatabase.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/rds/v3/model/DelayRestoreDatabase.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Rds { +namespace V3 { +namespace Model { + + + + +DelayRestoreDatabase::DelayRestoreDatabase() +{ + name_ = ""; + nameIsSet_ = false; + totalTables_ = 0; + totalTablesIsSet_ = false; + schemasIsSet_ = false; +} + +DelayRestoreDatabase::~DelayRestoreDatabase() = default; + +void DelayRestoreDatabase::validate() +{ +} + +web::json::value DelayRestoreDatabase::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(nameIsSet_) { + val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); + } + if(totalTablesIsSet_) { + val[utility::conversions::to_string_t("total_tables")] = ModelBase::toJson(totalTables_); + } + if(schemasIsSet_) { + val[utility::conversions::to_string_t("schemas")] = ModelBase::toJson(schemas_); + } + + return val; +} +bool DelayRestoreDatabase::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("total_tables"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("total_tables")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTotalTables(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("schemas"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("schemas")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSchemas(refVal); + } + } + return ok; +} + + +std::string DelayRestoreDatabase::getName() const +{ + return name_; +} + +void DelayRestoreDatabase::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool DelayRestoreDatabase::nameIsSet() const +{ + return nameIsSet_; +} + +void DelayRestoreDatabase::unsetname() +{ + nameIsSet_ = false; +} + +int32_t DelayRestoreDatabase::getTotalTables() const +{ + return totalTables_; +} + +void DelayRestoreDatabase::setTotalTables(int32_t value) +{ + totalTables_ = value; + totalTablesIsSet_ = true; +} + +bool DelayRestoreDatabase::totalTablesIsSet() const +{ + return totalTablesIsSet_; +} + +void DelayRestoreDatabase::unsettotalTables() +{ + totalTablesIsSet_ = false; +} + +std::vector& DelayRestoreDatabase::getSchemas() +{ + return schemas_; +} + +void DelayRestoreDatabase::setSchemas(const std::vector& value) +{ + schemas_ = value; + schemasIsSet_ = true; +} + +bool DelayRestoreDatabase::schemasIsSet() const +{ + return schemasIsSet_; +} + +void DelayRestoreDatabase::unsetschemas() +{ + schemasIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/rds/src/v3/model/DelayRestoreSchema.cpp b/rds/src/v3/model/DelayRestoreSchema.cpp new file mode 100644 index 000000000..1fdfd71c4 --- /dev/null +++ b/rds/src/v3/model/DelayRestoreSchema.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/rds/v3/model/DelayRestoreSchema.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Rds { +namespace V3 { +namespace Model { + + + + +DelayRestoreSchema::DelayRestoreSchema() +{ + name_ = ""; + nameIsSet_ = false; + totalTables_ = 0; + totalTablesIsSet_ = false; + tablesIsSet_ = false; +} + +DelayRestoreSchema::~DelayRestoreSchema() = default; + +void DelayRestoreSchema::validate() +{ +} + +web::json::value DelayRestoreSchema::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(nameIsSet_) { + val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); + } + if(totalTablesIsSet_) { + val[utility::conversions::to_string_t("total_tables")] = ModelBase::toJson(totalTables_); + } + if(tablesIsSet_) { + val[utility::conversions::to_string_t("tables")] = ModelBase::toJson(tables_); + } + + return val; +} +bool DelayRestoreSchema::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("total_tables"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("total_tables")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTotalTables(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("tables"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tables")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTables(refVal); + } + } + return ok; +} + + +std::string DelayRestoreSchema::getName() const +{ + return name_; +} + +void DelayRestoreSchema::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool DelayRestoreSchema::nameIsSet() const +{ + return nameIsSet_; +} + +void DelayRestoreSchema::unsetname() +{ + nameIsSet_ = false; +} + +int32_t DelayRestoreSchema::getTotalTables() const +{ + return totalTables_; +} + +void DelayRestoreSchema::setTotalTables(int32_t value) +{ + totalTables_ = value; + totalTablesIsSet_ = true; +} + +bool DelayRestoreSchema::totalTablesIsSet() const +{ + return totalTablesIsSet_; +} + +void DelayRestoreSchema::unsettotalTables() +{ + totalTablesIsSet_ = false; +} + +std::vector& DelayRestoreSchema::getTables() +{ + return tables_; +} + +void DelayRestoreSchema::setTables(const std::vector& value) +{ + tables_ = value; + tablesIsSet_ = true; +} + +bool DelayRestoreSchema::tablesIsSet() const +{ + return tablesIsSet_; +} + +void DelayRestoreSchema::unsettables() +{ + tablesIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/rds/src/v3/model/DelayRestoreTable.cpp b/rds/src/v3/model/DelayRestoreTable.cpp new file mode 100644 index 000000000..b3581caff --- /dev/null +++ b/rds/src/v3/model/DelayRestoreTable.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/rds/v3/model/DelayRestoreTable.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Rds { +namespace V3 { +namespace Model { + + + + +DelayRestoreTable::DelayRestoreTable() +{ + name_ = ""; + nameIsSet_ = false; +} + +DelayRestoreTable::~DelayRestoreTable() = default; + +void DelayRestoreTable::validate() +{ +} + +web::json::value DelayRestoreTable::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(nameIsSet_) { + val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); + } + + return val; +} +bool DelayRestoreTable::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setName(refVal); + } + } + return ok; +} + + +std::string DelayRestoreTable::getName() const +{ + return name_; +} + +void DelayRestoreTable::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool DelayRestoreTable::nameIsSet() const +{ + return nameIsSet_; +} + +void DelayRestoreTable::unsetname() +{ + nameIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/rds/src/v3/model/InstanceDrInfo.cpp b/rds/src/v3/model/InstanceDrInfo.cpp index 722e82ec7..be745ad24 100644 --- a/rds/src/v3/model/InstanceDrInfo.cpp +++ b/rds/src/v3/model/InstanceDrInfo.cpp @@ -34,6 +34,8 @@ InstanceDrInfo::InstanceDrInfo() slaveInstanceIdIsSet_ = false; slaveRegion_ = ""; slaveRegionIsSet_ = false; + buildProcess_ = ""; + buildProcessIsSet_ = false; time_ = 0L; timeIsSet_ = false; } @@ -81,6 +83,9 @@ web::json::value InstanceDrInfo::toJson() const if(slaveRegionIsSet_) { val[utility::conversions::to_string_t("slave_region")] = ModelBase::toJson(slaveRegion_); } + if(buildProcessIsSet_) { + val[utility::conversions::to_string_t("build_process")] = ModelBase::toJson(buildProcess_); + } if(timeIsSet_) { val[utility::conversions::to_string_t("time")] = ModelBase::toJson(time_); } @@ -190,6 +195,15 @@ bool InstanceDrInfo::fromJson(const web::json::value& val) setSlaveRegion(refVal); } } + if(val.has_field(utility::conversions::to_string_t("build_process"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("build_process")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBuildProcess(refVal); + } + } if(val.has_field(utility::conversions::to_string_t("time"))) { const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("time")); if(!fieldValue.is_null()) @@ -434,6 +448,27 @@ void InstanceDrInfo::unsetslaveRegion() slaveRegionIsSet_ = false; } +std::string InstanceDrInfo::getBuildProcess() const +{ + return buildProcess_; +} + +void InstanceDrInfo::setBuildProcess(const std::string& value) +{ + buildProcess_ = value; + buildProcessIsSet_ = true; +} + +bool InstanceDrInfo::buildProcessIsSet() const +{ + return buildProcessIsSet_; +} + +void InstanceDrInfo::unsetbuildProcess() +{ + buildProcessIsSet_ = false; +} + int64_t InstanceDrInfo::getTime() const { return time_; diff --git a/rds/src/v3/model/ListReadOnlyReplayDatabaseRequest.cpp b/rds/src/v3/model/ListReadOnlyReplayDatabaseRequest.cpp new file mode 100644 index 000000000..650443e73 --- /dev/null +++ b/rds/src/v3/model/ListReadOnlyReplayDatabaseRequest.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/rds/v3/model/ListReadOnlyReplayDatabaseRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Rds { +namespace V3 { +namespace Model { + + + + +ListReadOnlyReplayDatabaseRequest::ListReadOnlyReplayDatabaseRequest() +{ + instanceId_ = ""; + instanceIdIsSet_ = false; +} + +ListReadOnlyReplayDatabaseRequest::~ListReadOnlyReplayDatabaseRequest() = default; + +void ListReadOnlyReplayDatabaseRequest::validate() +{ +} + +web::json::value ListReadOnlyReplayDatabaseRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + + return val; +} +bool ListReadOnlyReplayDatabaseRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("instance_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("instance_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInstanceId(refVal); + } + } + return ok; +} + + +std::string ListReadOnlyReplayDatabaseRequest::getInstanceId() const +{ + return instanceId_; +} + +void ListReadOnlyReplayDatabaseRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool ListReadOnlyReplayDatabaseRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void ListReadOnlyReplayDatabaseRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/rds/src/v3/model/ListReadOnlyReplayDatabaseResponse.cpp b/rds/src/v3/model/ListReadOnlyReplayDatabaseResponse.cpp new file mode 100644 index 000000000..c148368d2 --- /dev/null +++ b/rds/src/v3/model/ListReadOnlyReplayDatabaseResponse.cpp @@ -0,0 +1,183 @@ + + +#include "huaweicloud/rds/v3/model/ListReadOnlyReplayDatabaseResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Rds { +namespace V3 { +namespace Model { + + + + +ListReadOnlyReplayDatabaseResponse::ListReadOnlyReplayDatabaseResponse() +{ + databaseLimit_ = 0; + databaseLimitIsSet_ = false; + totalTables_ = 0; + totalTablesIsSet_ = false; + tableLimit_ = 0; + tableLimitIsSet_ = false; + databasesIsSet_ = false; +} + +ListReadOnlyReplayDatabaseResponse::~ListReadOnlyReplayDatabaseResponse() = default; + +void ListReadOnlyReplayDatabaseResponse::validate() +{ +} + +web::json::value ListReadOnlyReplayDatabaseResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(databaseLimitIsSet_) { + val[utility::conversions::to_string_t("database_limit")] = ModelBase::toJson(databaseLimit_); + } + if(totalTablesIsSet_) { + val[utility::conversions::to_string_t("total_tables")] = ModelBase::toJson(totalTables_); + } + if(tableLimitIsSet_) { + val[utility::conversions::to_string_t("table_limit")] = ModelBase::toJson(tableLimit_); + } + if(databasesIsSet_) { + val[utility::conversions::to_string_t("databases")] = ModelBase::toJson(databases_); + } + + return val; +} +bool ListReadOnlyReplayDatabaseResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("database_limit"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("database_limit")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDatabaseLimit(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("total_tables"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("total_tables")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTotalTables(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("table_limit"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("table_limit")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTableLimit(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("databases"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("databases")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDatabases(refVal); + } + } + return ok; +} + + +int32_t ListReadOnlyReplayDatabaseResponse::getDatabaseLimit() const +{ + return databaseLimit_; +} + +void ListReadOnlyReplayDatabaseResponse::setDatabaseLimit(int32_t value) +{ + databaseLimit_ = value; + databaseLimitIsSet_ = true; +} + +bool ListReadOnlyReplayDatabaseResponse::databaseLimitIsSet() const +{ + return databaseLimitIsSet_; +} + +void ListReadOnlyReplayDatabaseResponse::unsetdatabaseLimit() +{ + databaseLimitIsSet_ = false; +} + +int32_t ListReadOnlyReplayDatabaseResponse::getTotalTables() const +{ + return totalTables_; +} + +void ListReadOnlyReplayDatabaseResponse::setTotalTables(int32_t value) +{ + totalTables_ = value; + totalTablesIsSet_ = true; +} + +bool ListReadOnlyReplayDatabaseResponse::totalTablesIsSet() const +{ + return totalTablesIsSet_; +} + +void ListReadOnlyReplayDatabaseResponse::unsettotalTables() +{ + totalTablesIsSet_ = false; +} + +int32_t ListReadOnlyReplayDatabaseResponse::getTableLimit() const +{ + return tableLimit_; +} + +void ListReadOnlyReplayDatabaseResponse::setTableLimit(int32_t value) +{ + tableLimit_ = value; + tableLimitIsSet_ = true; +} + +bool ListReadOnlyReplayDatabaseResponse::tableLimitIsSet() const +{ + return tableLimitIsSet_; +} + +void ListReadOnlyReplayDatabaseResponse::unsettableLimit() +{ + tableLimitIsSet_ = false; +} + +std::vector& ListReadOnlyReplayDatabaseResponse::getDatabases() +{ + return databases_; +} + +void ListReadOnlyReplayDatabaseResponse::setDatabases(const std::vector& value) +{ + databases_ = value; + databasesIsSet_ = true; +} + +bool ListReadOnlyReplayDatabaseResponse::databasesIsSet() const +{ + return databasesIsSet_; +} + +void ListReadOnlyReplayDatabaseResponse::unsetdatabases() +{ + databasesIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/rds/src/v3/model/LogReplayDatabaseReq.cpp b/rds/src/v3/model/LogReplayDatabaseReq.cpp new file mode 100644 index 000000000..2a6035986 --- /dev/null +++ b/rds/src/v3/model/LogReplayDatabaseReq.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/rds/v3/model/LogReplayDatabaseReq.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Rds { +namespace V3 { +namespace Model { + + + + +LogReplayDatabaseReq::LogReplayDatabaseReq() +{ + databasesIsSet_ = false; +} + +LogReplayDatabaseReq::~LogReplayDatabaseReq() = default; + +void LogReplayDatabaseReq::validate() +{ +} + +web::json::value LogReplayDatabaseReq::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(databasesIsSet_) { + val[utility::conversions::to_string_t("databases")] = ModelBase::toJson(databases_); + } + + return val; +} +bool LogReplayDatabaseReq::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("databases"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("databases")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDatabases(refVal); + } + } + return ok; +} + + +std::vector& LogReplayDatabaseReq::getDatabases() +{ + return databases_; +} + +void LogReplayDatabaseReq::setDatabases(const std::vector& value) +{ + databases_ = value; + databasesIsSet_ = true; +} + +bool LogReplayDatabaseReq::databasesIsSet() const +{ + return databasesIsSet_; +} + +void LogReplayDatabaseReq::unsetdatabases() +{ + databasesIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/rds/src/v3/model/RestoreInfo.cpp b/rds/src/v3/model/RestoreInfo.cpp new file mode 100644 index 000000000..1f30acbce --- /dev/null +++ b/rds/src/v3/model/RestoreInfo.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/rds/v3/model/RestoreInfo.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Rds { +namespace V3 { +namespace Model { + + + + +RestoreInfo::RestoreInfo() +{ + oldName_ = ""; + oldNameIsSet_ = false; + newName_ = ""; + newNameIsSet_ = false; +} + +RestoreInfo::~RestoreInfo() = default; + +void RestoreInfo::validate() +{ +} + +web::json::value RestoreInfo::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(oldNameIsSet_) { + val[utility::conversions::to_string_t("old_name")] = ModelBase::toJson(oldName_); + } + if(newNameIsSet_) { + val[utility::conversions::to_string_t("new_name")] = ModelBase::toJson(newName_); + } + + return val; +} +bool RestoreInfo::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("old_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("old_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setOldName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("new_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("new_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setNewName(refVal); + } + } + return ok; +} + + +std::string RestoreInfo::getOldName() const +{ + return oldName_; +} + +void RestoreInfo::setOldName(const std::string& value) +{ + oldName_ = value; + oldNameIsSet_ = true; +} + +bool RestoreInfo::oldNameIsSet() const +{ + return oldNameIsSet_; +} + +void RestoreInfo::unsetoldName() +{ + oldNameIsSet_ = false; +} + +std::string RestoreInfo::getNewName() const +{ + return newName_; +} + +void RestoreInfo::setNewName(const std::string& value) +{ + newName_ = value; + newNameIsSet_ = true; +} + +bool RestoreInfo::newNameIsSet() const +{ + return newNameIsSet_; +} + +void RestoreInfo::unsetnewName() +{ + newNameIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/rds/src/v3/model/RestoreLogReplayDatabaseRequest.cpp b/rds/src/v3/model/RestoreLogReplayDatabaseRequest.cpp new file mode 100644 index 000000000..e7c2bac14 --- /dev/null +++ b/rds/src/v3/model/RestoreLogReplayDatabaseRequest.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/rds/v3/model/RestoreLogReplayDatabaseRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Rds { +namespace V3 { +namespace Model { + + + + +RestoreLogReplayDatabaseRequest::RestoreLogReplayDatabaseRequest() +{ + instanceId_ = ""; + instanceIdIsSet_ = false; + xLanguage_ = ""; + xLanguageIsSet_ = false; + bodyIsSet_ = false; +} + +RestoreLogReplayDatabaseRequest::~RestoreLogReplayDatabaseRequest() = default; + +void RestoreLogReplayDatabaseRequest::validate() +{ +} + +web::json::value RestoreLogReplayDatabaseRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + if(xLanguageIsSet_) { + val[utility::conversions::to_string_t("X-Language")] = ModelBase::toJson(xLanguage_); + } + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + + return val; +} +bool RestoreLogReplayDatabaseRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("instance_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("instance_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInstanceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("X-Language"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Language")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setXLanguage(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("body"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("body")); + if(!fieldValue.is_null()) + { + LogReplayDatabaseReq refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string RestoreLogReplayDatabaseRequest::getInstanceId() const +{ + return instanceId_; +} + +void RestoreLogReplayDatabaseRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool RestoreLogReplayDatabaseRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void RestoreLogReplayDatabaseRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +std::string RestoreLogReplayDatabaseRequest::getXLanguage() const +{ + return xLanguage_; +} + +void RestoreLogReplayDatabaseRequest::setXLanguage(const std::string& value) +{ + xLanguage_ = value; + xLanguageIsSet_ = true; +} + +bool RestoreLogReplayDatabaseRequest::xLanguageIsSet() const +{ + return xLanguageIsSet_; +} + +void RestoreLogReplayDatabaseRequest::unsetxLanguage() +{ + xLanguageIsSet_ = false; +} + +LogReplayDatabaseReq RestoreLogReplayDatabaseRequest::getBody() const +{ + return body_; +} + +void RestoreLogReplayDatabaseRequest::setBody(const LogReplayDatabaseReq& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool RestoreLogReplayDatabaseRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void RestoreLogReplayDatabaseRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/rds/src/v3/model/RestoreLogReplayDatabaseResponse.cpp b/rds/src/v3/model/RestoreLogReplayDatabaseResponse.cpp new file mode 100644 index 000000000..f1a3cbc6d --- /dev/null +++ b/rds/src/v3/model/RestoreLogReplayDatabaseResponse.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/rds/v3/model/RestoreLogReplayDatabaseResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Rds { +namespace V3 { +namespace Model { + + + + +RestoreLogReplayDatabaseResponse::RestoreLogReplayDatabaseResponse() +{ + jobId_ = ""; + jobIdIsSet_ = false; +} + +RestoreLogReplayDatabaseResponse::~RestoreLogReplayDatabaseResponse() = default; + +void RestoreLogReplayDatabaseResponse::validate() +{ +} + +web::json::value RestoreLogReplayDatabaseResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(jobIdIsSet_) { + val[utility::conversions::to_string_t("job_id")] = ModelBase::toJson(jobId_); + } + + return val; +} +bool RestoreLogReplayDatabaseResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("job_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("job_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setJobId(refVal); + } + } + return ok; +} + + +std::string RestoreLogReplayDatabaseResponse::getJobId() const +{ + return jobId_; +} + +void RestoreLogReplayDatabaseResponse::setJobId(const std::string& value) +{ + jobId_ = value; + jobIdIsSet_ = true; +} + +bool RestoreLogReplayDatabaseResponse::jobIdIsSet() const +{ + return jobIdIsSet_; +} + +void RestoreLogReplayDatabaseResponse::unsetjobId() +{ + jobIdIsSet_ = false; +} + +} +} +} +} +} + +