diff --git a/CHANGELOG.md b/CHANGELOG.md index 118876975..cb5257fca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,73 @@ +# 3.1.74 2024-02-22 + +### HuaweiCloud SDK GaussDB + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ModifyGaussMySqlProxyRouteMode** + - changes of request param + - `+ new_node_auto_add_status` + - `+ new_node_weight` + +### HuaweiCloud SDK GaussDBforopenGauss + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ListRecycleInstances** + - changes of response param + - `+ instances.engine_name` + - `+ instances.volume_size` + - `+ instances.enterprise_project_name` + - `+ instances.backup_level` + +### HuaweiCloud SDK IMS + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ListImages** + - changes of response param + - `+ images.__image_displayname` + - **UpdateImage** + - changes of response param + - `+ __image_displayname` + +### HuaweiCloud SDK OCR + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **RecognizeTrainTicket** + - changes of response param + - `+ result.invoice_style` + - `+ result.issue_date` + - `+ result.discount_mark` + - `+ result.serial_number` + - `+ result.tax_amount` + - `+ result.tax_rate` + - `+ result.air_conditioning` + - `+ result.original_invoice_number` + - `+ result.unified_social_credit_code` + - `+ result.buyer_name` + - `+ result.total_amount_excluding_tax` + - `+ result.invoice_number` + - `+ result.seal_mark` + - `+ result.title` + - `+ result.area` + - `+ result.receipt_number` + - `+ result.amount_in_figures` + - `+ result.amount_in_words` + # 3.1.73 2024-02-07 ### HuaweiCloud SDK GEIP diff --git a/CHANGELOG_CN.md b/CHANGELOG_CN.md index e59510046..4604ff009 100644 --- a/CHANGELOG_CN.md +++ b/CHANGELOG_CN.md @@ -1,3 +1,73 @@ +# 3.1.74 2024-02-22 + +### HuaweiCloud SDK GaussDB + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ModifyGaussMySqlProxyRouteMode** + - 请求参数变更 + - `+ new_node_auto_add_status` + - `+ new_node_weight` + +### HuaweiCloud SDK GaussDBforopenGauss + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ListRecycleInstances** + - 响应参数变更 + - `+ instances.engine_name` + - `+ instances.volume_size` + - `+ instances.enterprise_project_name` + - `+ instances.backup_level` + +### HuaweiCloud SDK IMS + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ListImages** + - 响应参数变更 + - `+ images.__image_displayname` + - **UpdateImage** + - 响应参数变更 + - `+ __image_displayname` + +### HuaweiCloud SDK OCR + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **RecognizeTrainTicket** + - 响应参数变更 + - `+ result.invoice_style` + - `+ result.issue_date` + - `+ result.discount_mark` + - `+ result.serial_number` + - `+ result.tax_amount` + - `+ result.tax_rate` + - `+ result.air_conditioning` + - `+ result.original_invoice_number` + - `+ result.unified_social_credit_code` + - `+ result.buyer_name` + - `+ result.total_amount_excluding_tax` + - `+ result.invoice_number` + - `+ result.seal_mark` + - `+ result.title` + - `+ result.area` + - `+ result.receipt_number` + - `+ result.amount_in_figures` + - `+ result.amount_in_words` + # 3.1.73 2024-02-07 ### HuaweiCloud SDK GEIP diff --git a/VERSION b/VERSION index b68260bfd..e29564d45 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.1.73 +3.1.74 diff --git a/cbr/include/huaweicloud/cbr/v1/CbrRegion.h b/cbr/include/huaweicloud/cbr/v1/CbrRegion.h index c9a4a442d..52969c0b6 100644 --- a/cbr/include/huaweicloud/cbr/v1/CbrRegion.h +++ b/cbr/include/huaweicloud/cbr/v1/CbrRegion.h @@ -114,6 +114,14 @@ class HUAWEICLOUD_CBR_V1_EXPORT CbrRegion { { "https://cbr.ae-ad-1.myhuaweicloud.com" }); + regions["eu-west-0"] = Region("eu-west-0", + { + "https://cbr.eu-west-0.myhuaweicloud.com" + }); + regions["my-kualalumpur-1"] = Region("my-kualalumpur-1", + { + "https://cbr.my-kualalumpur-1.myhuaweicloud.com" + }); return regions; } private: diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ModifyGaussMySqlProxyRouteModeRequestBody.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ModifyGaussMySqlProxyRouteModeRequestBody.h index 6649d1a04..faa06eb89 100644 --- a/gaussdb/include/huaweicloud/gaussdb/v3/model/ModifyGaussMySqlProxyRouteModeRequestBody.h +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ModifyGaussMySqlProxyRouteModeRequestBody.h @@ -9,6 +9,7 @@ #include #include +#include #include #include @@ -66,6 +67,24 @@ class HUAWEICLOUD_GAUSSDB_V3_EXPORT ModifyGaussMySqlProxyRouteModeRequestBody void unsetreadonlyNodes(); void setReadonlyNodes(const std::vector& value); + /// + /// 是否开启新增节点自动加入该Proxy。如果需要设置是否开启新增节点自动加入该Proxy,请联系客服人员添加白名单,加入白名单后,方可输入该字段。 取值范围: - ON:开启。 - OFF:关闭。 + /// + + std::string getNewNodeAutoAddStatus() const; + bool newNodeAutoAddStatusIsSet() const; + void unsetnewNodeAutoAddStatus(); + void setNewNodeAutoAddStatus(const std::string& value); + + /// + /// 新增节点的读权重: - 如果路由模式为0,新增节点自动加入为ON,取值为0~1000。 - 如果路由模式不为0或新增节点自动加入为OFF,则可不输入读权重。 + /// + + int32_t getNewNodeWeight() const; + bool newNodeWeightIsSet() const; + void unsetnewNodeWeight(); + void setNewNodeWeight(int32_t value); + protected: int32_t routeMode_; @@ -74,6 +93,10 @@ class HUAWEICLOUD_GAUSSDB_V3_EXPORT ModifyGaussMySqlProxyRouteModeRequestBody bool masterWeightIsSet_; std::vector readonlyNodes_; bool readonlyNodesIsSet_; + std::string newNodeAutoAddStatus_; + bool newNodeAutoAddStatusIsSet_; + int32_t newNodeWeight_; + bool newNodeWeightIsSet_; }; diff --git a/gaussdb/src/v3/model/ModifyGaussMySqlProxyRouteModeRequestBody.cpp b/gaussdb/src/v3/model/ModifyGaussMySqlProxyRouteModeRequestBody.cpp index 7a43cad1a..0da87afb4 100644 --- a/gaussdb/src/v3/model/ModifyGaussMySqlProxyRouteModeRequestBody.cpp +++ b/gaussdb/src/v3/model/ModifyGaussMySqlProxyRouteModeRequestBody.cpp @@ -17,6 +17,10 @@ ModifyGaussMySqlProxyRouteModeRequestBody::ModifyGaussMySqlProxyRouteModeRequest masterWeight_ = 0; masterWeightIsSet_ = false; readonlyNodesIsSet_ = false; + newNodeAutoAddStatus_ = ""; + newNodeAutoAddStatusIsSet_ = false; + newNodeWeight_ = 0; + newNodeWeightIsSet_ = false; } ModifyGaussMySqlProxyRouteModeRequestBody::~ModifyGaussMySqlProxyRouteModeRequestBody() = default; @@ -38,6 +42,12 @@ web::json::value ModifyGaussMySqlProxyRouteModeRequestBody::toJson() const if(readonlyNodesIsSet_) { val[utility::conversions::to_string_t("readonly_nodes")] = ModelBase::toJson(readonlyNodes_); } + if(newNodeAutoAddStatusIsSet_) { + val[utility::conversions::to_string_t("new_node_auto_add_status")] = ModelBase::toJson(newNodeAutoAddStatus_); + } + if(newNodeWeightIsSet_) { + val[utility::conversions::to_string_t("new_node_weight")] = ModelBase::toJson(newNodeWeight_); + } return val; } @@ -72,6 +82,24 @@ bool ModifyGaussMySqlProxyRouteModeRequestBody::fromJson(const web::json::value& setReadonlyNodes(refVal); } } + if(val.has_field(utility::conversions::to_string_t("new_node_auto_add_status"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("new_node_auto_add_status")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setNewNodeAutoAddStatus(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("new_node_weight"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("new_node_weight")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setNewNodeWeight(refVal); + } + } return ok; } @@ -139,6 +167,48 @@ void ModifyGaussMySqlProxyRouteModeRequestBody::unsetreadonlyNodes() readonlyNodesIsSet_ = false; } +std::string ModifyGaussMySqlProxyRouteModeRequestBody::getNewNodeAutoAddStatus() const +{ + return newNodeAutoAddStatus_; +} + +void ModifyGaussMySqlProxyRouteModeRequestBody::setNewNodeAutoAddStatus(const std::string& value) +{ + newNodeAutoAddStatus_ = value; + newNodeAutoAddStatusIsSet_ = true; +} + +bool ModifyGaussMySqlProxyRouteModeRequestBody::newNodeAutoAddStatusIsSet() const +{ + return newNodeAutoAddStatusIsSet_; +} + +void ModifyGaussMySqlProxyRouteModeRequestBody::unsetnewNodeAutoAddStatus() +{ + newNodeAutoAddStatusIsSet_ = false; +} + +int32_t ModifyGaussMySqlProxyRouteModeRequestBody::getNewNodeWeight() const +{ + return newNodeWeight_; +} + +void ModifyGaussMySqlProxyRouteModeRequestBody::setNewNodeWeight(int32_t value) +{ + newNodeWeight_ = value; + newNodeWeightIsSet_ = true; +} + +bool ModifyGaussMySqlProxyRouteModeRequestBody::newNodeWeightIsSet() const +{ + return newNodeWeightIsSet_; +} + +void ModifyGaussMySqlProxyRouteModeRequestBody::unsetnewNodeWeight() +{ + newNodeWeightIsSet_ = false; +} + } } } diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/RecycleInstancesDetailResult.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/RecycleInstancesDetailResult.h index f3873abd7..411640cf2 100644 --- a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/RecycleInstancesDetailResult.h +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/RecycleInstancesDetailResult.h @@ -65,6 +65,15 @@ class HUAWEICLOUD_GAUSSDBFOROPENGAUSS_V3_EXPORT RecycleInstancesDetailResult void unsethaMode(); void setHaMode(const std::string& value); + /// + /// 引擎名称 + /// + + std::string getEngineName() const; + bool engineNameIsSet() const; + void unsetengineName(); + void setEngineName(const std::string& value); + /// /// 引擎版本号。 /// @@ -110,6 +119,15 @@ class HUAWEICLOUD_GAUSSDBFOROPENGAUSS_V3_EXPORT RecycleInstancesDetailResult void unsetvolumeType(); void setVolumeType(const std::string& value); + /// + /// 磁盘大小 + /// + + std::string getVolumeSize() const; + bool volumeSizeIsSet() const; + void unsetvolumeSize(); + void setVolumeSize(const std::string& value); + /// /// 数据vip。 /// @@ -128,6 +146,24 @@ class HUAWEICLOUD_GAUSSDBFOROPENGAUSS_V3_EXPORT RecycleInstancesDetailResult void unsetenterpriseProjectId(); void setEnterpriseProjectId(const std::string& value); + /// + /// 企业项目名称 + /// + + std::string getEnterpriseProjectName() const; + bool enterpriseProjectNameIsSet() const; + void unsetenterpriseProjectName(); + void setEnterpriseProjectName(const std::string& value); + + /// + /// 备份级别 + /// + + std::string getBackupLevel() const; + bool backupLevelIsSet() const; + void unsetbackupLevel(); + void setBackupLevel(const std::string& value); + /// /// 备份ID。(指删除实例时产生备份信息中的备份ID)。 /// @@ -163,6 +199,8 @@ class HUAWEICLOUD_GAUSSDBFOROPENGAUSS_V3_EXPORT RecycleInstancesDetailResult bool nameIsSet_; std::string haMode_; bool haModeIsSet_; + std::string engineName_; + bool engineNameIsSet_; std::string engineVersion_; bool engineVersionIsSet_; std::string payModel_; @@ -173,10 +211,16 @@ class HUAWEICLOUD_GAUSSDBFOROPENGAUSS_V3_EXPORT RecycleInstancesDetailResult bool deletedAtIsSet_; std::string volumeType_; bool volumeTypeIsSet_; + std::string volumeSize_; + bool volumeSizeIsSet_; std::string dataVip_; bool dataVipIsSet_; std::string enterpriseProjectId_; bool enterpriseProjectIdIsSet_; + std::string enterpriseProjectName_; + bool enterpriseProjectNameIsSet_; + std::string backupLevel_; + bool backupLevelIsSet_; std::string recycleBackupId_; bool recycleBackupIdIsSet_; std::string recycleStatus_; diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/SetRecyclePolicyResponse.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/SetRecyclePolicyResponse.h index 6aa647a21..8ec31def5 100644 --- a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/SetRecyclePolicyResponse.h +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/SetRecyclePolicyResponse.h @@ -9,6 +9,7 @@ #include #include +#include namespace HuaweiCloud { namespace Sdk { @@ -37,8 +38,19 @@ class HUAWEICLOUD_GAUSSDBFOROPENGAUSS_V3_EXPORT SetRecyclePolicyResponse ///////////////////////////////////////////// /// SetRecyclePolicyResponse members + /// + /// 修改结果,“success”表示修改成功 + /// + + std::string getResult() const; + bool resultIsSet() const; + void unsetresult(); + void setResult(const std::string& value); + protected: + std::string result_; + bool resultIsSet_; #ifdef RTTR_FLAG RTTR_ENABLE() diff --git a/gaussdbforopengauss/src/v3/model/RecycleInstancesDetailResult.cpp b/gaussdbforopengauss/src/v3/model/RecycleInstancesDetailResult.cpp index f9bacabb2..fdb4c57a0 100644 --- a/gaussdbforopengauss/src/v3/model/RecycleInstancesDetailResult.cpp +++ b/gaussdbforopengauss/src/v3/model/RecycleInstancesDetailResult.cpp @@ -18,6 +18,8 @@ RecycleInstancesDetailResult::RecycleInstancesDetailResult() nameIsSet_ = false; haMode_ = ""; haModeIsSet_ = false; + engineName_ = ""; + engineNameIsSet_ = false; engineVersion_ = ""; engineVersionIsSet_ = false; payModel_ = ""; @@ -28,10 +30,16 @@ RecycleInstancesDetailResult::RecycleInstancesDetailResult() deletedAtIsSet_ = false; volumeType_ = ""; volumeTypeIsSet_ = false; + volumeSize_ = ""; + volumeSizeIsSet_ = false; dataVip_ = ""; dataVipIsSet_ = false; enterpriseProjectId_ = ""; enterpriseProjectIdIsSet_ = false; + enterpriseProjectName_ = ""; + enterpriseProjectNameIsSet_ = false; + backupLevel_ = ""; + backupLevelIsSet_ = false; recycleBackupId_ = ""; recycleBackupIdIsSet_ = false; recycleStatus_ = ""; @@ -59,6 +67,9 @@ web::json::value RecycleInstancesDetailResult::toJson() const if(haModeIsSet_) { val[utility::conversions::to_string_t("ha_mode")] = ModelBase::toJson(haMode_); } + if(engineNameIsSet_) { + val[utility::conversions::to_string_t("engine_name")] = ModelBase::toJson(engineName_); + } if(engineVersionIsSet_) { val[utility::conversions::to_string_t("engine_version")] = ModelBase::toJson(engineVersion_); } @@ -74,12 +85,21 @@ web::json::value RecycleInstancesDetailResult::toJson() const if(volumeTypeIsSet_) { val[utility::conversions::to_string_t("volume_type")] = ModelBase::toJson(volumeType_); } + if(volumeSizeIsSet_) { + val[utility::conversions::to_string_t("volume_size")] = ModelBase::toJson(volumeSize_); + } if(dataVipIsSet_) { val[utility::conversions::to_string_t("data_vip")] = ModelBase::toJson(dataVip_); } if(enterpriseProjectIdIsSet_) { val[utility::conversions::to_string_t("enterprise_project_id")] = ModelBase::toJson(enterpriseProjectId_); } + if(enterpriseProjectNameIsSet_) { + val[utility::conversions::to_string_t("enterprise_project_name")] = ModelBase::toJson(enterpriseProjectName_); + } + if(backupLevelIsSet_) { + val[utility::conversions::to_string_t("backup_level")] = ModelBase::toJson(backupLevel_); + } if(recycleBackupIdIsSet_) { val[utility::conversions::to_string_t("recycle_backup_id")] = ModelBase::toJson(recycleBackupId_); } @@ -123,6 +143,15 @@ bool RecycleInstancesDetailResult::fromJson(const web::json::value& val) setHaMode(refVal); } } + if(val.has_field(utility::conversions::to_string_t("engine_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("engine_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEngineName(refVal); + } + } if(val.has_field(utility::conversions::to_string_t("engine_version"))) { const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("engine_version")); if(!fieldValue.is_null()) @@ -168,6 +197,15 @@ bool RecycleInstancesDetailResult::fromJson(const web::json::value& val) setVolumeType(refVal); } } + if(val.has_field(utility::conversions::to_string_t("volume_size"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("volume_size")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setVolumeSize(refVal); + } + } if(val.has_field(utility::conversions::to_string_t("data_vip"))) { const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("data_vip")); if(!fieldValue.is_null()) @@ -186,6 +224,24 @@ bool RecycleInstancesDetailResult::fromJson(const web::json::value& val) setEnterpriseProjectId(refVal); } } + if(val.has_field(utility::conversions::to_string_t("enterprise_project_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("enterprise_project_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnterpriseProjectName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("backup_level"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("backup_level")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBackupLevel(refVal); + } + } if(val.has_field(utility::conversions::to_string_t("recycle_backup_id"))) { const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("recycle_backup_id")); if(!fieldValue.is_null()) @@ -280,6 +336,27 @@ void RecycleInstancesDetailResult::unsethaMode() haModeIsSet_ = false; } +std::string RecycleInstancesDetailResult::getEngineName() const +{ + return engineName_; +} + +void RecycleInstancesDetailResult::setEngineName(const std::string& value) +{ + engineName_ = value; + engineNameIsSet_ = true; +} + +bool RecycleInstancesDetailResult::engineNameIsSet() const +{ + return engineNameIsSet_; +} + +void RecycleInstancesDetailResult::unsetengineName() +{ + engineNameIsSet_ = false; +} + std::string RecycleInstancesDetailResult::getEngineVersion() const { return engineVersion_; @@ -385,6 +462,27 @@ void RecycleInstancesDetailResult::unsetvolumeType() volumeTypeIsSet_ = false; } +std::string RecycleInstancesDetailResult::getVolumeSize() const +{ + return volumeSize_; +} + +void RecycleInstancesDetailResult::setVolumeSize(const std::string& value) +{ + volumeSize_ = value; + volumeSizeIsSet_ = true; +} + +bool RecycleInstancesDetailResult::volumeSizeIsSet() const +{ + return volumeSizeIsSet_; +} + +void RecycleInstancesDetailResult::unsetvolumeSize() +{ + volumeSizeIsSet_ = false; +} + std::string RecycleInstancesDetailResult::getDataVip() const { return dataVip_; @@ -427,6 +525,48 @@ void RecycleInstancesDetailResult::unsetenterpriseProjectId() enterpriseProjectIdIsSet_ = false; } +std::string RecycleInstancesDetailResult::getEnterpriseProjectName() const +{ + return enterpriseProjectName_; +} + +void RecycleInstancesDetailResult::setEnterpriseProjectName(const std::string& value) +{ + enterpriseProjectName_ = value; + enterpriseProjectNameIsSet_ = true; +} + +bool RecycleInstancesDetailResult::enterpriseProjectNameIsSet() const +{ + return enterpriseProjectNameIsSet_; +} + +void RecycleInstancesDetailResult::unsetenterpriseProjectName() +{ + enterpriseProjectNameIsSet_ = false; +} + +std::string RecycleInstancesDetailResult::getBackupLevel() const +{ + return backupLevel_; +} + +void RecycleInstancesDetailResult::setBackupLevel(const std::string& value) +{ + backupLevel_ = value; + backupLevelIsSet_ = true; +} + +bool RecycleInstancesDetailResult::backupLevelIsSet() const +{ + return backupLevelIsSet_; +} + +void RecycleInstancesDetailResult::unsetbackupLevel() +{ + backupLevelIsSet_ = false; +} + std::string RecycleInstancesDetailResult::getRecycleBackupId() const { return recycleBackupId_; diff --git a/gaussdbforopengauss/src/v3/model/SetRecyclePolicyResponse.cpp b/gaussdbforopengauss/src/v3/model/SetRecyclePolicyResponse.cpp index e6b5cda0d..90b584638 100644 --- a/gaussdbforopengauss/src/v3/model/SetRecyclePolicyResponse.cpp +++ b/gaussdbforopengauss/src/v3/model/SetRecyclePolicyResponse.cpp @@ -12,6 +12,8 @@ namespace Model { SetRecyclePolicyResponse::SetRecyclePolicyResponse() { + result_ = ""; + resultIsSet_ = false; } SetRecyclePolicyResponse::~SetRecyclePolicyResponse() = default; @@ -24,6 +26,9 @@ web::json::value SetRecyclePolicyResponse::toJson() const { web::json::value val = web::json::value::object(); + if(resultIsSet_) { + val[utility::conversions::to_string_t("result")] = ModelBase::toJson(result_); + } return val; } @@ -31,10 +36,40 @@ bool SetRecyclePolicyResponse::fromJson(const web::json::value& val) { bool ok = true; + if(val.has_field(utility::conversions::to_string_t("result"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("result")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setResult(refVal); + } + } return ok; } +std::string SetRecyclePolicyResponse::getResult() const +{ + return result_; +} + +void SetRecyclePolicyResponse::setResult(const std::string& value) +{ + result_ = value; + resultIsSet_ = true; +} + +bool SetRecyclePolicyResponse::resultIsSet() const +{ + return resultIsSet_; +} + +void SetRecyclePolicyResponse::unsetresult() +{ + resultIsSet_ = false; +} + } } } diff --git a/ims/include/huaweicloud/ims/v2/model/ImageInfo.h b/ims/include/huaweicloud/ims/v2/model/ImageInfo.h index 7ce3115c6..a7b88d3dd 100644 --- a/ims/include/huaweicloud/ims/v2/model/ImageInfo.h +++ b/ims/include/huaweicloud/ims/v2/model/ImageInfo.h @@ -561,6 +561,15 @@ class HUAWEICLOUD_IMS_V2_EXPORT ImageInfo void unsetsupportAgentList(); void setSupportAgentList(const std::string& value); + /// + /// 对外展示名称。 + /// + + std::string getImageDisplayname() const; + bool imageDisplaynameIsSet() const; + void unsetimageDisplayname(); + void setImageDisplayname(const std::string& value); + /// /// 是否是AMD架构类型的镜像。取值为“true”或者“false”。 /// @@ -688,6 +697,8 @@ class HUAWEICLOUD_IMS_V2_EXPORT ImageInfo bool activeAtIsSet_; std::string supportAgentList_; bool supportAgentListIsSet_; + std::string imageDisplayname_; + bool imageDisplaynameIsSet_; std::string supportAmd_; bool supportAmdIsSet_; diff --git a/ims/include/huaweicloud/ims/v2/model/UpdateImageResponse.h b/ims/include/huaweicloud/ims/v2/model/UpdateImageResponse.h index be15604e1..425d66114 100644 --- a/ims/include/huaweicloud/ims/v2/model/UpdateImageResponse.h +++ b/ims/include/huaweicloud/ims/v2/model/UpdateImageResponse.h @@ -561,6 +561,15 @@ class HUAWEICLOUD_IMS_V2_EXPORT UpdateImageResponse void unsetsupportAgentList(); void setSupportAgentList(const std::string& value); + /// + /// 对外展示名称。 + /// + + std::string getImageDisplayname() const; + bool imageDisplaynameIsSet() const; + void unsetimageDisplayname(); + void setImageDisplayname(const std::string& value); + /// /// 是否是AMD架构类型的镜像。取值为“true”或者“false”。 /// @@ -688,6 +697,8 @@ class HUAWEICLOUD_IMS_V2_EXPORT UpdateImageResponse bool activeAtIsSet_; std::string supportAgentList_; bool supportAgentListIsSet_; + std::string imageDisplayname_; + bool imageDisplaynameIsSet_; std::string supportAmd_; bool supportAmdIsSet_; diff --git a/ims/src/v2/model/ImageInfo.cpp b/ims/src/v2/model/ImageInfo.cpp index 397619a00..53de3f26f 100644 --- a/ims/src/v2/model/ImageInfo.cpp +++ b/ims/src/v2/model/ImageInfo.cpp @@ -127,6 +127,8 @@ ImageInfo::ImageInfo() activeAtIsSet_ = false; supportAgentList_ = ""; supportAgentListIsSet_ = false; + imageDisplayname_ = ""; + imageDisplaynameIsSet_ = false; supportAmd_ = ""; supportAmdIsSet_ = false; } @@ -315,6 +317,9 @@ web::json::value ImageInfo::toJson() const if(supportAgentListIsSet_) { val[utility::conversions::to_string_t("__support_agent_list")] = ModelBase::toJson(supportAgentList_); } + if(imageDisplaynameIsSet_) { + val[utility::conversions::to_string_t("__image_displayname")] = ModelBase::toJson(imageDisplayname_); + } if(supportAmdIsSet_) { val[utility::conversions::to_string_t("__support_amd")] = ModelBase::toJson(supportAmd_); } @@ -847,6 +852,15 @@ bool ImageInfo::fromJson(const web::json::value& val) setSupportAgentList(refVal); } } + if(val.has_field(utility::conversions::to_string_t("__image_displayname"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("__image_displayname")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setImageDisplayname(refVal); + } + } if(val.has_field(utility::conversions::to_string_t("__support_amd"))) { const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("__support_amd")); if(!fieldValue.is_null()) @@ -2078,6 +2092,27 @@ void ImageInfo::unsetsupportAgentList() supportAgentListIsSet_ = false; } +std::string ImageInfo::getImageDisplayname() const +{ + return imageDisplayname_; +} + +void ImageInfo::setImageDisplayname(const std::string& value) +{ + imageDisplayname_ = value; + imageDisplaynameIsSet_ = true; +} + +bool ImageInfo::imageDisplaynameIsSet() const +{ + return imageDisplaynameIsSet_; +} + +void ImageInfo::unsetimageDisplayname() +{ + imageDisplaynameIsSet_ = false; +} + std::string ImageInfo::getSupportAmd() const { return supportAmd_; diff --git a/ims/src/v2/model/UpdateImageResponse.cpp b/ims/src/v2/model/UpdateImageResponse.cpp index 85b0e56ce..24c63b3a4 100644 --- a/ims/src/v2/model/UpdateImageResponse.cpp +++ b/ims/src/v2/model/UpdateImageResponse.cpp @@ -127,6 +127,8 @@ UpdateImageResponse::UpdateImageResponse() activeAtIsSet_ = false; supportAgentList_ = ""; supportAgentListIsSet_ = false; + imageDisplayname_ = ""; + imageDisplaynameIsSet_ = false; supportAmd_ = ""; supportAmdIsSet_ = false; } @@ -315,6 +317,9 @@ web::json::value UpdateImageResponse::toJson() const if(supportAgentListIsSet_) { val[utility::conversions::to_string_t("__support_agent_list")] = ModelBase::toJson(supportAgentList_); } + if(imageDisplaynameIsSet_) { + val[utility::conversions::to_string_t("__image_displayname")] = ModelBase::toJson(imageDisplayname_); + } if(supportAmdIsSet_) { val[utility::conversions::to_string_t("__support_amd")] = ModelBase::toJson(supportAmd_); } @@ -847,6 +852,15 @@ bool UpdateImageResponse::fromJson(const web::json::value& val) setSupportAgentList(refVal); } } + if(val.has_field(utility::conversions::to_string_t("__image_displayname"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("__image_displayname")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setImageDisplayname(refVal); + } + } if(val.has_field(utility::conversions::to_string_t("__support_amd"))) { const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("__support_amd")); if(!fieldValue.is_null()) @@ -2078,6 +2092,27 @@ void UpdateImageResponse::unsetsupportAgentList() supportAgentListIsSet_ = false; } +std::string UpdateImageResponse::getImageDisplayname() const +{ + return imageDisplayname_; +} + +void UpdateImageResponse::setImageDisplayname(const std::string& value) +{ + imageDisplayname_ = value; + imageDisplaynameIsSet_ = true; +} + +bool UpdateImageResponse::imageDisplaynameIsSet() const +{ + return imageDisplaynameIsSet_; +} + +void UpdateImageResponse::unsetimageDisplayname() +{ + imageDisplaynameIsSet_ = false; +} + std::string UpdateImageResponse::getSupportAmd() const { return supportAmd_; diff --git a/ocr/include/huaweicloud/ocr/v1/model/TrainTicketResult.h b/ocr/include/huaweicloud/ocr/v1/model/TrainTicketResult.h index 3f5275966..053e80e9e 100644 --- a/ocr/include/huaweicloud/ocr/v1/model/TrainTicketResult.h +++ b/ocr/include/huaweicloud/ocr/v1/model/TrainTicketResult.h @@ -192,6 +192,168 @@ class HUAWEICLOUD_OCR_V1_EXPORT TrainTicketResult void unsetsaleLocation(); void setSaleLocation(const std::string& value); + /// + /// 类型。包含以下几种类型: - paper:纸质火车票 - electronic:电子发票 - refund_old:旧版退票凭证 - refund_new:新版退票凭证 + /// + + std::string getInvoiceStyle() const; + bool invoiceStyleIsSet() const; + void unsetinvoiceStyle(); + void setInvoiceStyle(const std::string& value); + + /// + /// 开票时间 + /// + + std::string getIssueDate() const; + bool issueDateIsSet() const; + void unsetissueDate(); + void setIssueDate(const std::string& value); + + /// + /// 打折标识 + /// + + std::string getDiscountMark() const; + bool discountMarkIsSet() const; + void unsetdiscountMark(); + void setDiscountMark(const std::string& value); + + /// + /// 电子客票号 + /// + + std::string getSerialNumber() const; + bool serialNumberIsSet() const; + void unsetserialNumber(); + void setSerialNumber(const std::string& value); + + /// + /// 税金价格 + /// + + std::string getTaxAmount() const; + bool taxAmountIsSet() const; + void unsettaxAmount(); + void setTaxAmount(const std::string& value); + + /// + /// 税率 + /// + + std::string getTaxRate() const; + bool taxRateIsSet() const; + void unsettaxRate(); + void setTaxRate(const std::string& value); + + /// + /// 是否是空调车厢 + /// + + std::string getAirConditioning() const; + bool airConditioningIsSet() const; + void unsetairConditioning(); + void setAirConditioning(const std::string& value); + + /// + /// 原发票号码 + /// + + std::string getOriginalInvoiceNumber() const; + bool originalInvoiceNumberIsSet() const; + void unsetoriginalInvoiceNumber(); + void setOriginalInvoiceNumber(const std::string& value); + + /// + /// 统一社会信用号码 + /// + + std::string getUnifiedSocialCreditCode() const; + bool unifiedSocialCreditCodeIsSet() const; + void unsetunifiedSocialCreditCode(); + void setUnifiedSocialCreditCode(const std::string& value); + + /// + /// 购买方名称 + /// + + std::string getBuyerName() const; + bool buyerNameIsSet() const; + void unsetbuyerName(); + void setBuyerName(const std::string& value); + + /// + /// 不含税价格 + /// + + std::string getTotalAmountExcludingTax() const; + bool totalAmountExcludingTaxIsSet() const; + void unsettotalAmountExcludingTax(); + void setTotalAmountExcludingTax(const std::string& value); + + /// + /// 发票号码 + /// + + std::string getInvoiceNumber() const; + bool invoiceNumberIsSet() const; + void unsetinvoiceNumber(); + void setInvoiceNumber(const std::string& value); + + /// + /// 是否有印章,True表示有印章,False表示不含印章,字段默认为False + /// + + bool isSealMark() const; + bool sealMarkIsSet() const; + void unsetsealMark(); + void setSealMark(bool value); + + /// + /// 标题 + /// + + std::string getTitle() const; + bool titleIsSet() const; + void unsettitle(); + void setTitle(const std::string& value); + + /// + /// 地区 + /// + + std::string getArea() const; + bool areaIsSet() const; + void unsetarea(); + void setArea(const std::string& value); + + /// + /// 收据编码 + /// + + std::string getReceiptNumber() const; + bool receiptNumberIsSet() const; + void unsetreceiptNumber(); + void setReceiptNumber(const std::string& value); + + /// + /// 小写票据金额 + /// + + std::string getAmountInFigures() const; + bool amountInFiguresIsSet() const; + void unsetamountInFigures(); + void setAmountInFigures(const std::string& value); + + /// + /// 大写票据金额 + /// + + std::string getAmountInWords() const; + bool amountInWordsIsSet() const; + void unsetamountInWords(); + void setAmountInWords(const std::string& value); + /// /// 相关字段的置信度信息,置信度越大,表示本次识别的对应字段的可靠性越高,在统计意义上,置信度越大,准确率越高。 置信度由算法给出,不直接等价于对应字段的准确率。 /// @@ -246,6 +408,42 @@ class HUAWEICLOUD_OCR_V1_EXPORT TrainTicketResult bool logIdIsSet_; std::string saleLocation_; bool saleLocationIsSet_; + std::string invoiceStyle_; + bool invoiceStyleIsSet_; + std::string issueDate_; + bool issueDateIsSet_; + std::string discountMark_; + bool discountMarkIsSet_; + std::string serialNumber_; + bool serialNumberIsSet_; + std::string taxAmount_; + bool taxAmountIsSet_; + std::string taxRate_; + bool taxRateIsSet_; + std::string airConditioning_; + bool airConditioningIsSet_; + std::string originalInvoiceNumber_; + bool originalInvoiceNumberIsSet_; + std::string unifiedSocialCreditCode_; + bool unifiedSocialCreditCodeIsSet_; + std::string buyerName_; + bool buyerNameIsSet_; + std::string totalAmountExcludingTax_; + bool totalAmountExcludingTaxIsSet_; + std::string invoiceNumber_; + bool invoiceNumberIsSet_; + bool sealMark_; + bool sealMarkIsSet_; + std::string title_; + bool titleIsSet_; + std::string area_; + bool areaIsSet_; + std::string receiptNumber_; + bool receiptNumberIsSet_; + std::string amountInFigures_; + bool amountInFiguresIsSet_; + std::string amountInWords_; + bool amountInWordsIsSet_; Object confidence_; bool confidenceIsSet_; Object textLocation_; diff --git a/ocr/src/v1/model/TrainTicketResult.cpp b/ocr/src/v1/model/TrainTicketResult.cpp index 3704886d3..bf49743f0 100644 --- a/ocr/src/v1/model/TrainTicketResult.cpp +++ b/ocr/src/v1/model/TrainTicketResult.cpp @@ -46,6 +46,42 @@ TrainTicketResult::TrainTicketResult() logIdIsSet_ = false; saleLocation_ = ""; saleLocationIsSet_ = false; + invoiceStyle_ = ""; + invoiceStyleIsSet_ = false; + issueDate_ = ""; + issueDateIsSet_ = false; + discountMark_ = ""; + discountMarkIsSet_ = false; + serialNumber_ = ""; + serialNumberIsSet_ = false; + taxAmount_ = ""; + taxAmountIsSet_ = false; + taxRate_ = ""; + taxRateIsSet_ = false; + airConditioning_ = ""; + airConditioningIsSet_ = false; + originalInvoiceNumber_ = ""; + originalInvoiceNumberIsSet_ = false; + unifiedSocialCreditCode_ = ""; + unifiedSocialCreditCodeIsSet_ = false; + buyerName_ = ""; + buyerNameIsSet_ = false; + totalAmountExcludingTax_ = ""; + totalAmountExcludingTaxIsSet_ = false; + invoiceNumber_ = ""; + invoiceNumberIsSet_ = false; + sealMark_ = false; + sealMarkIsSet_ = false; + title_ = ""; + titleIsSet_ = false; + area_ = ""; + areaIsSet_ = false; + receiptNumber_ = ""; + receiptNumberIsSet_ = false; + amountInFigures_ = ""; + amountInFiguresIsSet_ = false; + amountInWords_ = ""; + amountInWordsIsSet_ = false; confidenceIsSet_ = false; textLocationIsSet_ = false; } @@ -111,6 +147,60 @@ web::json::value TrainTicketResult::toJson() const if(saleLocationIsSet_) { val[utility::conversions::to_string_t("sale_location")] = ModelBase::toJson(saleLocation_); } + if(invoiceStyleIsSet_) { + val[utility::conversions::to_string_t("invoice_style")] = ModelBase::toJson(invoiceStyle_); + } + if(issueDateIsSet_) { + val[utility::conversions::to_string_t("issue_date")] = ModelBase::toJson(issueDate_); + } + if(discountMarkIsSet_) { + val[utility::conversions::to_string_t("discount_mark")] = ModelBase::toJson(discountMark_); + } + if(serialNumberIsSet_) { + val[utility::conversions::to_string_t("serial_number")] = ModelBase::toJson(serialNumber_); + } + if(taxAmountIsSet_) { + val[utility::conversions::to_string_t("tax_amount")] = ModelBase::toJson(taxAmount_); + } + if(taxRateIsSet_) { + val[utility::conversions::to_string_t("tax_rate")] = ModelBase::toJson(taxRate_); + } + if(airConditioningIsSet_) { + val[utility::conversions::to_string_t("air_conditioning")] = ModelBase::toJson(airConditioning_); + } + if(originalInvoiceNumberIsSet_) { + val[utility::conversions::to_string_t("original_invoice_number")] = ModelBase::toJson(originalInvoiceNumber_); + } + if(unifiedSocialCreditCodeIsSet_) { + val[utility::conversions::to_string_t("unified_social_credit_code")] = ModelBase::toJson(unifiedSocialCreditCode_); + } + if(buyerNameIsSet_) { + val[utility::conversions::to_string_t("buyer_name")] = ModelBase::toJson(buyerName_); + } + if(totalAmountExcludingTaxIsSet_) { + val[utility::conversions::to_string_t("total_amount_excluding_tax")] = ModelBase::toJson(totalAmountExcludingTax_); + } + if(invoiceNumberIsSet_) { + val[utility::conversions::to_string_t("invoice_number")] = ModelBase::toJson(invoiceNumber_); + } + if(sealMarkIsSet_) { + val[utility::conversions::to_string_t("seal_mark")] = ModelBase::toJson(sealMark_); + } + if(titleIsSet_) { + val[utility::conversions::to_string_t("title")] = ModelBase::toJson(title_); + } + if(areaIsSet_) { + val[utility::conversions::to_string_t("area")] = ModelBase::toJson(area_); + } + if(receiptNumberIsSet_) { + val[utility::conversions::to_string_t("receipt_number")] = ModelBase::toJson(receiptNumber_); + } + if(amountInFiguresIsSet_) { + val[utility::conversions::to_string_t("amount_in_figures")] = ModelBase::toJson(amountInFigures_); + } + if(amountInWordsIsSet_) { + val[utility::conversions::to_string_t("amount_in_words")] = ModelBase::toJson(amountInWords_); + } if(confidenceIsSet_) { val[utility::conversions::to_string_t("confidence")] = ModelBase::toJson(confidence_); } @@ -277,6 +367,168 @@ bool TrainTicketResult::fromJson(const web::json::value& val) setSaleLocation(refVal); } } + if(val.has_field(utility::conversions::to_string_t("invoice_style"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("invoice_style")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInvoiceStyle(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("issue_date"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("issue_date")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIssueDate(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("discount_mark"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("discount_mark")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDiscountMark(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("serial_number"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("serial_number")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSerialNumber(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("tax_amount"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tax_amount")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTaxAmount(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("tax_rate"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tax_rate")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTaxRate(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("air_conditioning"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("air_conditioning")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAirConditioning(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("original_invoice_number"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("original_invoice_number")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setOriginalInvoiceNumber(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("unified_social_credit_code"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("unified_social_credit_code")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setUnifiedSocialCreditCode(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("buyer_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("buyer_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBuyerName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("total_amount_excluding_tax"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("total_amount_excluding_tax")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTotalAmountExcludingTax(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("invoice_number"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("invoice_number")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInvoiceNumber(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("seal_mark"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("seal_mark")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSealMark(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("title"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("title")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTitle(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("area"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("area")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setArea(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("receipt_number"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("receipt_number")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setReceiptNumber(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("amount_in_figures"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("amount_in_figures")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAmountInFigures(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("amount_in_words"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("amount_in_words")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAmountInWords(refVal); + } + } if(val.has_field(utility::conversions::to_string_t("confidence"))) { const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("confidence")); if(!fieldValue.is_null()) @@ -656,6 +908,384 @@ void TrainTicketResult::unsetsaleLocation() saleLocationIsSet_ = false; } +std::string TrainTicketResult::getInvoiceStyle() const +{ + return invoiceStyle_; +} + +void TrainTicketResult::setInvoiceStyle(const std::string& value) +{ + invoiceStyle_ = value; + invoiceStyleIsSet_ = true; +} + +bool TrainTicketResult::invoiceStyleIsSet() const +{ + return invoiceStyleIsSet_; +} + +void TrainTicketResult::unsetinvoiceStyle() +{ + invoiceStyleIsSet_ = false; +} + +std::string TrainTicketResult::getIssueDate() const +{ + return issueDate_; +} + +void TrainTicketResult::setIssueDate(const std::string& value) +{ + issueDate_ = value; + issueDateIsSet_ = true; +} + +bool TrainTicketResult::issueDateIsSet() const +{ + return issueDateIsSet_; +} + +void TrainTicketResult::unsetissueDate() +{ + issueDateIsSet_ = false; +} + +std::string TrainTicketResult::getDiscountMark() const +{ + return discountMark_; +} + +void TrainTicketResult::setDiscountMark(const std::string& value) +{ + discountMark_ = value; + discountMarkIsSet_ = true; +} + +bool TrainTicketResult::discountMarkIsSet() const +{ + return discountMarkIsSet_; +} + +void TrainTicketResult::unsetdiscountMark() +{ + discountMarkIsSet_ = false; +} + +std::string TrainTicketResult::getSerialNumber() const +{ + return serialNumber_; +} + +void TrainTicketResult::setSerialNumber(const std::string& value) +{ + serialNumber_ = value; + serialNumberIsSet_ = true; +} + +bool TrainTicketResult::serialNumberIsSet() const +{ + return serialNumberIsSet_; +} + +void TrainTicketResult::unsetserialNumber() +{ + serialNumberIsSet_ = false; +} + +std::string TrainTicketResult::getTaxAmount() const +{ + return taxAmount_; +} + +void TrainTicketResult::setTaxAmount(const std::string& value) +{ + taxAmount_ = value; + taxAmountIsSet_ = true; +} + +bool TrainTicketResult::taxAmountIsSet() const +{ + return taxAmountIsSet_; +} + +void TrainTicketResult::unsettaxAmount() +{ + taxAmountIsSet_ = false; +} + +std::string TrainTicketResult::getTaxRate() const +{ + return taxRate_; +} + +void TrainTicketResult::setTaxRate(const std::string& value) +{ + taxRate_ = value; + taxRateIsSet_ = true; +} + +bool TrainTicketResult::taxRateIsSet() const +{ + return taxRateIsSet_; +} + +void TrainTicketResult::unsettaxRate() +{ + taxRateIsSet_ = false; +} + +std::string TrainTicketResult::getAirConditioning() const +{ + return airConditioning_; +} + +void TrainTicketResult::setAirConditioning(const std::string& value) +{ + airConditioning_ = value; + airConditioningIsSet_ = true; +} + +bool TrainTicketResult::airConditioningIsSet() const +{ + return airConditioningIsSet_; +} + +void TrainTicketResult::unsetairConditioning() +{ + airConditioningIsSet_ = false; +} + +std::string TrainTicketResult::getOriginalInvoiceNumber() const +{ + return originalInvoiceNumber_; +} + +void TrainTicketResult::setOriginalInvoiceNumber(const std::string& value) +{ + originalInvoiceNumber_ = value; + originalInvoiceNumberIsSet_ = true; +} + +bool TrainTicketResult::originalInvoiceNumberIsSet() const +{ + return originalInvoiceNumberIsSet_; +} + +void TrainTicketResult::unsetoriginalInvoiceNumber() +{ + originalInvoiceNumberIsSet_ = false; +} + +std::string TrainTicketResult::getUnifiedSocialCreditCode() const +{ + return unifiedSocialCreditCode_; +} + +void TrainTicketResult::setUnifiedSocialCreditCode(const std::string& value) +{ + unifiedSocialCreditCode_ = value; + unifiedSocialCreditCodeIsSet_ = true; +} + +bool TrainTicketResult::unifiedSocialCreditCodeIsSet() const +{ + return unifiedSocialCreditCodeIsSet_; +} + +void TrainTicketResult::unsetunifiedSocialCreditCode() +{ + unifiedSocialCreditCodeIsSet_ = false; +} + +std::string TrainTicketResult::getBuyerName() const +{ + return buyerName_; +} + +void TrainTicketResult::setBuyerName(const std::string& value) +{ + buyerName_ = value; + buyerNameIsSet_ = true; +} + +bool TrainTicketResult::buyerNameIsSet() const +{ + return buyerNameIsSet_; +} + +void TrainTicketResult::unsetbuyerName() +{ + buyerNameIsSet_ = false; +} + +std::string TrainTicketResult::getTotalAmountExcludingTax() const +{ + return totalAmountExcludingTax_; +} + +void TrainTicketResult::setTotalAmountExcludingTax(const std::string& value) +{ + totalAmountExcludingTax_ = value; + totalAmountExcludingTaxIsSet_ = true; +} + +bool TrainTicketResult::totalAmountExcludingTaxIsSet() const +{ + return totalAmountExcludingTaxIsSet_; +} + +void TrainTicketResult::unsettotalAmountExcludingTax() +{ + totalAmountExcludingTaxIsSet_ = false; +} + +std::string TrainTicketResult::getInvoiceNumber() const +{ + return invoiceNumber_; +} + +void TrainTicketResult::setInvoiceNumber(const std::string& value) +{ + invoiceNumber_ = value; + invoiceNumberIsSet_ = true; +} + +bool TrainTicketResult::invoiceNumberIsSet() const +{ + return invoiceNumberIsSet_; +} + +void TrainTicketResult::unsetinvoiceNumber() +{ + invoiceNumberIsSet_ = false; +} + +bool TrainTicketResult::isSealMark() const +{ + return sealMark_; +} + +void TrainTicketResult::setSealMark(bool value) +{ + sealMark_ = value; + sealMarkIsSet_ = true; +} + +bool TrainTicketResult::sealMarkIsSet() const +{ + return sealMarkIsSet_; +} + +void TrainTicketResult::unsetsealMark() +{ + sealMarkIsSet_ = false; +} + +std::string TrainTicketResult::getTitle() const +{ + return title_; +} + +void TrainTicketResult::setTitle(const std::string& value) +{ + title_ = value; + titleIsSet_ = true; +} + +bool TrainTicketResult::titleIsSet() const +{ + return titleIsSet_; +} + +void TrainTicketResult::unsettitle() +{ + titleIsSet_ = false; +} + +std::string TrainTicketResult::getArea() const +{ + return area_; +} + +void TrainTicketResult::setArea(const std::string& value) +{ + area_ = value; + areaIsSet_ = true; +} + +bool TrainTicketResult::areaIsSet() const +{ + return areaIsSet_; +} + +void TrainTicketResult::unsetarea() +{ + areaIsSet_ = false; +} + +std::string TrainTicketResult::getReceiptNumber() const +{ + return receiptNumber_; +} + +void TrainTicketResult::setReceiptNumber(const std::string& value) +{ + receiptNumber_ = value; + receiptNumberIsSet_ = true; +} + +bool TrainTicketResult::receiptNumberIsSet() const +{ + return receiptNumberIsSet_; +} + +void TrainTicketResult::unsetreceiptNumber() +{ + receiptNumberIsSet_ = false; +} + +std::string TrainTicketResult::getAmountInFigures() const +{ + return amountInFigures_; +} + +void TrainTicketResult::setAmountInFigures(const std::string& value) +{ + amountInFigures_ = value; + amountInFiguresIsSet_ = true; +} + +bool TrainTicketResult::amountInFiguresIsSet() const +{ + return amountInFiguresIsSet_; +} + +void TrainTicketResult::unsetamountInFigures() +{ + amountInFiguresIsSet_ = false; +} + +std::string TrainTicketResult::getAmountInWords() const +{ + return amountInWords_; +} + +void TrainTicketResult::setAmountInWords(const std::string& value) +{ + amountInWords_ = value; + amountInWordsIsSet_ = true; +} + +bool TrainTicketResult::amountInWordsIsSet() const +{ + return amountInWordsIsSet_; +} + +void TrainTicketResult::unsetamountInWords() +{ + amountInWordsIsSet_ = false; +} + Object TrainTicketResult::getConfidence() const { return confidence_; diff --git a/smn/include/huaweicloud/smn/v2/SmnRegion.h b/smn/include/huaweicloud/smn/v2/SmnRegion.h index 8245e80f6..56b030c20 100644 --- a/smn/include/huaweicloud/smn/v2/SmnRegion.h +++ b/smn/include/huaweicloud/smn/v2/SmnRegion.h @@ -98,6 +98,18 @@ class HUAWEICLOUD_SMN_V2_EXPORT SmnRegion { { "https://smn.tr-west-1.myhuaweicloud.com" }); + regions["eu-west-101"] = Region("eu-west-101", + { + "https://smn.eu-west-101.myhuaweicloud.eu" + }); + regions["eu-west-0"] = Region("eu-west-0", + { + "https://smn.eu-west-0.myhuaweicloud.com" + }); + regions["my-kualalumpur-1"] = Region("my-kualalumpur-1", + { + "https://smn.my-kualalumpur-1.myhuaweicloud.com" + }); return regions; } private: