Skip to content

Commit

Permalink
release 3.1.98 source code
Browse files Browse the repository at this point in the history
  • Loading branch information
Huaweicloud-SDK committed Aug 15, 2024
1 parent 29d18c0 commit e5ddbff
Show file tree
Hide file tree
Showing 75 changed files with 777 additions and 117 deletions.
77 changes: 77 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,80 @@
# 3.1.98 2024-08-15

### HuaweiCloud SDK EIP

- _Features_
- None
- _Bug Fix_
- None
- _Change_
- **UpdatePrePaidBandwidth**
- changes of request param
- `+ extendParam.period_type`
- `+ extendParam.period_num`
- **ListEipBandwidths**
- changes of response param
- `* eip_bandwidths.tenant_id: uuid -> string`
- **ListProjectGeipBindings**
- changes of response param
- `* geip_bindings.vnic.vni: int32 -> string`

### HuaweiCloud SDK GaussDBforopenGauss

- _Features_
- None
- _Bug Fix_
- None
- _Change_
- **CreateInstance**
- changes of request param
- `+ ha.instance_mode`
- **ShowBatchUpgradeCandidateVersions**
- changes of response param
- `+ hotfix_rollback_infos`

### HuaweiCloud SDK IMS

- _Features_
- None
- _Bug Fix_
- None
- _Change_
- **ListImages**
- changes of request param
- `+ visibility: enum value [shared]`
- changes of response param
- `+ images.visibility: enum value [shared]`
- **UpdateImage**
- changes of response param
- `+ visibility: enum value [shared]`

### HuaweiCloud SDK LTS

- _Features_
- None
- _Bug Fix_
- None
- _Change_
- **ListLogs**
- changes of request param
- `+ query`
- `+ is_analysis_query`
- changes of response param
- `+ analysisLogs`

### HuaweiCloud SDK OCR

- _Features_
- None
- _Bug Fix_
- None
- _Change_
- **RecognizeTransportationLicense**
- changes of response param
- `+ result.expiry_date`
- `+ result.review_expiry_date`
- `+ result.assessed_technical_level`

# 3.1.97 2024-08-08

### HuaweiCloud SDK KVS
Expand Down
77 changes: 77 additions & 0 deletions CHANGELOG_CN.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,80 @@
# 3.1.98 2024-08-15

### HuaweiCloud SDK EIP

- _新增特性_
-
- _解决问题_
-
- _特性变更_
- **UpdatePrePaidBandwidth**
- 请求参数变更
- `+ extendParam.period_type`
- `+ extendParam.period_num`
- **ListEipBandwidths**
- 响应参数变更
- `* eip_bandwidths.tenant_id: uuid -> string`
- **ListProjectGeipBindings**
- 响应参数变更
- `* geip_bindings.vnic.vni: int32 -> string`

### HuaweiCloud SDK GaussDBforopenGauss

- _新增特性_
-
- _解决问题_
-
- _特性变更_
- **CreateInstance**
- 请求参数变更
- `+ ha.instance_mode`
- **ShowBatchUpgradeCandidateVersions**
- 响应参数变更
- `+ hotfix_rollback_infos`

### HuaweiCloud SDK IMS

- _新增特性_
-
- _解决问题_
-
- _特性变更_
- **ListImages**
- 请求参数变更
- `+ visibility: enum value [shared]`
- 响应参数变更
- `+ images.visibility: enum value [shared]`
- **UpdateImage**
- 响应参数变更
- `+ visibility: enum value [shared]`

### HuaweiCloud SDK LTS

- _新增特性_
-
- _解决问题_
-
- _特性变更_
- **ListLogs**
- 请求参数变更
- `+ query`
- `+ is_analysis_query`
- 响应参数变更
- `+ analysisLogs`

### HuaweiCloud SDK OCR

- _新增特性_
-
- _解决问题_
-
- _特性变更_
- **RecognizeTransportationLicense**
- 响应参数变更
- `+ result.expiry_date`
- `+ result.review_expiry_date`
- `+ result.assessed_technical_level`

# 3.1.97 2024-08-08

### HuaweiCloud SDK KVS
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.1.97
3.1.98
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <huaweicloud/core/utils/Utils.h>
#include <huaweicloud/core/http/HttpResponse.h>

#include <string>

namespace HuaweiCloud {
namespace Sdk {
Expand All @@ -19,7 +20,7 @@ namespace Model {
using namespace HuaweiCloud::Sdk::Core::Utils;
using namespace HuaweiCloud::Sdk::Core::Http;
/// <summary>
/// 扩展参数,用于包周期资源申请
/// 扩展参数,用于包周期资源变更
/// </summary>
class HUAWEICLOUD_EIP_V2_EXPORT UpdatePrePaidBandwidthExtendParamOption
: public ModelBase
Expand All @@ -38,7 +39,25 @@ class HUAWEICLOUD_EIP_V2_EXPORT UpdatePrePaidBandwidthExtendParamOption
/// UpdatePrePaidBandwidthExtendParamOption members

/// <summary>
/// 功能说明:下单订购后,是否自动从客户的账户中支付,而不需要客户手动去进行支付;系统默认是“非自动支付”。 取值范围: true:是(自动支付) false:否(默认值,需要客户手动去支付) 约束:自动支付时,只能使用账户的现金支付;如果要使用代金券,请选择不自动支付,然后在用户费用中心,选择代金券支付。
/// - 功能说明:变更资源的周期类型(包年、包月等),可选字段。 - 取值范围: - month-月 - year-年 - 约束:只有在资源续费降配的时候必须传,其他场景不需要传,如果传入默认忽略。
/// </summary>

std::string getPeriodType() const;
bool periodTypeIsSet() const;
void unsetperiodType();
void setPeriodType(const std::string& value);

/// <summary>
/// - 功能说明:订购周期数,和period_type同步传入,可选字段 - 取值范围:(后续会随运营策略变化) - period_type为month时,为[1,9] - period_type为year时,为[1,3] - 约束:只有在资源续费降配的时候必须传,其他场景不需要传,如果传入默认忽略。该字段需要和period_type同步传入或同步不传
/// </summary>

int32_t getPeriodNum() const;
bool periodNumIsSet() const;
void unsetperiodNum();
void setPeriodNum(int32_t value);

/// <summary>
/// - 功能说明:下单订购后,是否自动从客户的账户中支付,而不需要客户手动去进行支付;系统默认是“非自动支付”。 - 取值范围: - true:是(自动支付,从账户余额自动扣费) - false:否(默认值,需要客户手动去支付) - 约束:资源升配或续费降配时,该参数为必传字段。自动支付时,只能使用账户的现金支付;如果要使用代金券,请选择不自动支付,然后在用户费用中心,选择代金券支付。
/// </summary>

bool isIsAutoPay() const;
Expand All @@ -48,6 +67,10 @@ class HUAWEICLOUD_EIP_V2_EXPORT UpdatePrePaidBandwidthExtendParamOption


protected:
std::string periodType_;
bool periodTypeIsSet_;
int32_t periodNum_;
bool periodNumIsSet_;
bool isAutoPay_;
bool isAutoPayIsSet_;

Expand Down
6 changes: 3 additions & 3 deletions eip/include/huaweicloud/eip/v3/model/InstanceVnicResp.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ class HUAWEICLOUD_EIP_V3_EXPORT InstanceVnicResp
/// port的vni
/// </summary>

int32_t getVni() const;
std::string getVni() const;
bool vniIsSet() const;
void unsetvni();
void setVni(int32_t value);
void setVni(const std::string& value);

/// <summary>
/// port的实例id
Expand Down Expand Up @@ -153,7 +153,7 @@ class HUAWEICLOUD_EIP_V3_EXPORT InstanceVnicResp
bool macIsSet_;
std::string vtep_;
bool vtepIsSet_;
int32_t vni_;
std::string vni_;
bool vniIsSet_;
std::string instanceId_;
bool instanceIdIsSet_;
Expand Down
70 changes: 70 additions & 0 deletions eip/src/v2/model/UpdatePrePaidBandwidthExtendParamOption.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ namespace Model {

UpdatePrePaidBandwidthExtendParamOption::UpdatePrePaidBandwidthExtendParamOption()
{
periodType_ = "";
periodTypeIsSet_ = false;
periodNum_ = 0;
periodNumIsSet_ = false;
isAutoPay_ = false;
isAutoPayIsSet_ = false;
}
Expand All @@ -26,6 +30,12 @@ web::json::value UpdatePrePaidBandwidthExtendParamOption::toJson() const
{
web::json::value val = web::json::value::object();

if(periodTypeIsSet_) {
val[utility::conversions::to_string_t("period_type")] = ModelBase::toJson(periodType_);
}
if(periodNumIsSet_) {
val[utility::conversions::to_string_t("period_num")] = ModelBase::toJson(periodNum_);
}
if(isAutoPayIsSet_) {
val[utility::conversions::to_string_t("is_auto_pay")] = ModelBase::toJson(isAutoPay_);
}
Expand All @@ -36,6 +46,24 @@ bool UpdatePrePaidBandwidthExtendParamOption::fromJson(const web::json::value& v
{
bool ok = true;

if(val.has_field(utility::conversions::to_string_t("period_type"))) {
const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("period_type"));
if(!fieldValue.is_null())
{
std::string refVal;
ok &= ModelBase::fromJson(fieldValue, refVal);
setPeriodType(refVal);
}
}
if(val.has_field(utility::conversions::to_string_t("period_num"))) {
const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("period_num"));
if(!fieldValue.is_null())
{
int32_t refVal;
ok &= ModelBase::fromJson(fieldValue, refVal);
setPeriodNum(refVal);
}
}
if(val.has_field(utility::conversions::to_string_t("is_auto_pay"))) {
const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("is_auto_pay"));
if(!fieldValue.is_null())
Expand All @@ -49,6 +77,48 @@ bool UpdatePrePaidBandwidthExtendParamOption::fromJson(const web::json::value& v
}


std::string UpdatePrePaidBandwidthExtendParamOption::getPeriodType() const
{
return periodType_;
}

void UpdatePrePaidBandwidthExtendParamOption::setPeriodType(const std::string& value)
{
periodType_ = value;
periodTypeIsSet_ = true;
}

bool UpdatePrePaidBandwidthExtendParamOption::periodTypeIsSet() const
{
return periodTypeIsSet_;
}

void UpdatePrePaidBandwidthExtendParamOption::unsetperiodType()
{
periodTypeIsSet_ = false;
}

int32_t UpdatePrePaidBandwidthExtendParamOption::getPeriodNum() const
{
return periodNum_;
}

void UpdatePrePaidBandwidthExtendParamOption::setPeriodNum(int32_t value)
{
periodNum_ = value;
periodNumIsSet_ = true;
}

bool UpdatePrePaidBandwidthExtendParamOption::periodNumIsSet() const
{
return periodNumIsSet_;
}

void UpdatePrePaidBandwidthExtendParamOption::unsetperiodNum()
{
periodNumIsSet_ = false;
}

bool UpdatePrePaidBandwidthExtendParamOption::isIsAutoPay() const
{
return isAutoPay_;
Expand Down
8 changes: 4 additions & 4 deletions eip/src/v3/model/InstanceVnicResp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ InstanceVnicResp::InstanceVnicResp()
macIsSet_ = false;
vtep_ = "";
vtepIsSet_ = false;
vni_ = 0;
vni_ = "";
vniIsSet_ = false;
instanceId_ = "";
instanceIdIsSet_ = false;
Expand Down Expand Up @@ -153,7 +153,7 @@ bool InstanceVnicResp::fromJson(const web::json::value& val)
const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("vni"));
if(!fieldValue.is_null())
{
int32_t refVal;
std::string refVal;
ok &= ModelBase::fromJson(fieldValue, refVal);
setVni(refVal);
}
Expand Down Expand Up @@ -336,12 +336,12 @@ void InstanceVnicResp::unsetvtep()
vtepIsSet_ = false;
}

int32_t InstanceVnicResp::getVni() const
std::string InstanceVnicResp::getVni() const
{
return vni_;
}

void InstanceVnicResp::setVni(int32_t value)
void InstanceVnicResp::setVni(const std::string& value)
{
vni_ = value;
vniIsSet_ = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -867,9 +867,9 @@ class HUAWEICLOUD_GAUSSDBFOROPENGAUSS_V3_EXPORT GaussDBforopenGaussClient : pub
std::shared_ptr<ShowBalanceStatusResponse> showBalanceStatus(
ShowBalanceStatusRequest &request
);
// 查询批量实例可升级的版本和升级类型
// 查询批量实例可升级的版本和升级类型
//
// 查询批量实例可升级的版本和升级类型
// 查询批量实例可升级的版本和升级类型
//
// Please refer to HUAWEI cloud API Explorer for details.
std::shared_ptr<ShowBatchUpgradeCandidateVersionsResponse> showBatchUpgradeCandidateVersions(
Expand Down Expand Up @@ -972,7 +972,7 @@ class HUAWEICLOUD_GAUSSDBFOROPENGAUSS_V3_EXPORT GaussDBforopenGaussClient : pub
);
// 查询实例可升级版本
//
// 查询实例可升级版本
// 查询实例可升级版本
//
// Please refer to HUAWEI cloud API Explorer for details.
std::shared_ptr<ShowUpgradeCandidateVersionsResponse> showUpgradeCandidateVersions(
Expand Down
Loading

0 comments on commit e5ddbff

Please sign in to comment.