Skip to content

Commit

Permalink
release 3.1.120 source code
Browse files Browse the repository at this point in the history
  • Loading branch information
Huaweicloud-SDK committed Jan 16, 2025
1 parent 4bf6801 commit 4d19d40
Show file tree
Hide file tree
Showing 102 changed files with 7,235 additions and 120 deletions.
79 changes: 79 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,82 @@
# 3.1.120 2025-01-16

### HuaweiCloud SDK CodeArtsDeploy

- _API Version_
- V2
- _Features_
- None
- _Bug Fix_
- None
- _Change_
- **ListHostClusters**
- changes of response param
- `+ result.is_proxy_mode`
- `- result.created_by`
- `+ result.permission.can_copy`
- **ShowHostClusterDetail**
- changes of response param
- `+ result.permission.can_copy`

### HuaweiCloud SDK GaussDB

- _API Version_
- V3
- _Features_
- Support the APIs `UpgradeSrKernelVersion`, `ListStarRocksDataReplicationConfigByDataBase`, `ModifyDataSync`
- _Bug Fix_
- None
- _Change_
- **ListStarRocksDbParameters**
- changes of request param
- `+ add_task_scenario`
- changes of response param
- `+ db_parameters.is_modifiable`

### HuaweiCloud SDK OCR

- _API Version_
- V1
- _Features_
- None
- _Bug Fix_
- None
- _Change_
- **RecognizeVehicleLicense**
- changes of request param
- `+ recognize_electronic_license`
- changes of response param
- `+ result.type`
- `+ result.color`
- `+ result.mandatory_scrapping_date`
- `+ result.status`

### HuaweiCloud SDK SMN

- _API Version_
- V2
- _Features_
- Support the APIs `ShowNotifyPolicy`, `CreateNotifyPolicy`, `UpdateNotifyPolicy`, `DeleteNotifyPolicy`
- _Bug Fix_
- None
- _Change_
- **PublishMessage**
- changes of request param
- `+ locale`
- **AddSubscription**
- changes of request param
- `+ subscriptions`
- `+ extension.header`
- `+ extension.app_key`
- `+ extension.app_secret`
- `+ extension.robot_code`
- **ListResourceInstances**
- changes of request param
- `+ without_any_tag`
- **ListTopicAttributes**
- changes of request param
- `* name: required -> optional`

# 3.1.119 2025-01-09

### HuaweiCloud SDK DRS
Expand Down
79 changes: 79 additions & 0 deletions CHANGELOG_CN.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,82 @@
# 3.1.120 2025-01-16

### HuaweiCloud SDK CodeArtsDeploy

- _接口版本_
- V2
- _新增特性_
- 无
- _解决问题_
- 无
- _特性变更_
- **ListHostClusters**
- 响应参数变更
- `+ result.is_proxy_mode`
- `- result.created_by`
- `+ result.permission.can_copy`
- **ShowHostClusterDetail**
- 响应参数变更
- `+ result.permission.can_copy`

### HuaweiCloud SDK GaussDB

- _接口版本_
- V3
- _新增特性_
- 支持接口`UpgradeSrKernelVersion`、`ListStarRocksDataReplicationConfigByDataBase`、`ModifyDataSync`
- _解决问题_
- 无
- _特性变更_
- **ListStarRocksDbParameters**
- 请求参数变更
- `+ add_task_scenario`
- 响应参数变更
- `+ db_parameters.is_modifiable`

### HuaweiCloud SDK OCR

- _接口版本_
- V1
- _新增特性_
- 无
- _解决问题_
- 无
- _特性变更_
- **RecognizeVehicleLicense**
- 请求参数变更
- `+ recognize_electronic_license`
- 响应参数变更
- `+ result.type`
- `+ result.color`
- `+ result.mandatory_scrapping_date`
- `+ result.status`

### HuaweiCloud SDK SMN

- _接口版本_
- V2
- _新增特性_
- 支持接口`ShowNotifyPolicy`、`CreateNotifyPolicy`、`UpdateNotifyPolicy`、`DeleteNotifyPolicy`
- _解决问题_
- 无
- _特性变更_
- **PublishMessage**
- 请求参数变更
- `+ locale`
- **AddSubscription**
- 请求参数变更
- `+ subscriptions`
- `+ extension.header`
- `+ extension.app_key`
- `+ extension.app_secret`
- `+ extension.robot_code`
- **ListResourceInstances**
- 请求参数变更
- `+ without_any_tag`
- **ListTopicAttributes**
- 请求参数变更
- `* name: required -> optional`

# 3.1.119 2025-01-09

### HuaweiCloud SDK DRS
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.1.119
3.1.120
16 changes: 16 additions & 0 deletions cfw/include/huaweicloud/cfw/v1/CfwRegion.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,22 @@ class HUAWEICLOUD_CFW_V1_EXPORT CfwRegion {
{
"https://cfw.cn-south-2.myhuaweicloud.com"
});
regions["cn-east-4"] = Region("cn-east-4",
{
"https://cfw.cn-east-4.myhuaweicloud.com"
});
regions["ap-southeast-5"] = Region("ap-southeast-5",
{
"https://cfw.ap-southeast-5.myhuaweicloud.com"
});
regions["af-north-1"] = Region("af-north-1",
{
"https://cfw.af-north-1.myhuaweicloud.com"
});
regions["cn-east-5"] = Region("cn-east-5",
{
"https://cfw.cn-east-5.myhuaweicloud.com"
});
return regions;
}
private:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

#include <huaweicloud/codeartsdeploy/v2/model/PermissionClusterDetail.h>
#include <string>
#include <huaweicloud/codeartsdeploy/v2/model/UserInfo.h>

namespace HuaweiCloud {
namespace Sdk {
Expand Down Expand Up @@ -94,15 +93,6 @@ class HUAWEICLOUD_CODEARTSDEPLOY_V2_EXPORT HostClusterInfo
void unsetslaveClusterId();
void setSlaveClusterId(const std::string& value);

/// <summary>
///
/// </summary>

UserInfo getCreatedBy() const;
bool createdByIsSet() const;
void unsetcreatedBy();
void setCreatedBy(const UserInfo& value);

/// <summary>
/// 描述
/// </summary>
Expand Down Expand Up @@ -139,6 +129,15 @@ class HUAWEICLOUD_CODEARTSDEPLOY_V2_EXPORT HostClusterInfo
void unsetenvCount();
void setEnvCount(int32_t value);

/// <summary>
/// 主机集群是否为代理机接入模式, 1:是 0:否
/// </summary>

int32_t getIsProxyMode() const;
bool isProxyModeIsSet() const;
void unsetisProxyMode();
void setIsProxyMode(int32_t value);


protected:
std::string id_;
Expand All @@ -153,8 +152,6 @@ class HUAWEICLOUD_CODEARTSDEPLOY_V2_EXPORT HostClusterInfo
bool osIsSet_;
std::string slaveClusterId_;
bool slaveClusterIdIsSet_;
UserInfo createdBy_;
bool createdByIsSet_;
std::string description_;
bool descriptionIsSet_;
PermissionClusterDetail permission_;
Expand All @@ -163,6 +160,8 @@ class HUAWEICLOUD_CODEARTSDEPLOY_V2_EXPORT HostClusterInfo
bool nickNameIsSet_;
int32_t envCount_;
bool envCountIsSet_;
int32_t isProxyMode_;
bool isProxyModeIsSet_;

};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,15 @@ class HUAWEICLOUD_CODEARTSDEPLOY_V2_EXPORT PermissionClusterDetail
void unsetcanManage();
void setCanManage(bool value);

/// <summary>
/// 是否有复制主机权限
/// </summary>

bool isCanCopy() const;
bool canCopyIsSet() const;
void unsetcanCopy();
void setCanCopy(bool value);


protected:
bool canView_;
Expand All @@ -94,6 +103,8 @@ class HUAWEICLOUD_CODEARTSDEPLOY_V2_EXPORT PermissionClusterDetail
bool canAddHostIsSet_;
bool canManage_;
bool canManageIsSet_;
bool canCopy_;
bool canCopyIsSet_;

};

Expand Down
69 changes: 35 additions & 34 deletions codeartsdeploy/src/v2/model/HostClusterInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,15 @@ HostClusterInfo::HostClusterInfo()
osIsSet_ = false;
slaveClusterId_ = "";
slaveClusterIdIsSet_ = false;
createdByIsSet_ = false;
description_ = "";
descriptionIsSet_ = false;
permissionIsSet_ = false;
nickName_ = "";
nickNameIsSet_ = false;
envCount_ = 0;
envCountIsSet_ = false;
isProxyMode_ = 0;
isProxyModeIsSet_ = false;
}

HostClusterInfo::~HostClusterInfo() = default;
Expand Down Expand Up @@ -62,9 +63,6 @@ web::json::value HostClusterInfo::toJson() const
if(slaveClusterIdIsSet_) {
val[utility::conversions::to_string_t("slave_cluster_id")] = ModelBase::toJson(slaveClusterId_);
}
if(createdByIsSet_) {
val[utility::conversions::to_string_t("created_by")] = ModelBase::toJson(createdBy_);
}
if(descriptionIsSet_) {
val[utility::conversions::to_string_t("description")] = ModelBase::toJson(description_);
}
Expand All @@ -77,6 +75,9 @@ web::json::value HostClusterInfo::toJson() const
if(envCountIsSet_) {
val[utility::conversions::to_string_t("env_count")] = ModelBase::toJson(envCount_);
}
if(isProxyModeIsSet_) {
val[utility::conversions::to_string_t("is_proxy_mode")] = ModelBase::toJson(isProxyMode_);
}

return val;
}
Expand Down Expand Up @@ -138,15 +139,6 @@ bool HostClusterInfo::fromJson(const web::json::value& val)
setSlaveClusterId(refVal);
}
}
if(val.has_field(utility::conversions::to_string_t("created_by"))) {
const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("created_by"));
if(!fieldValue.is_null())
{
UserInfo refVal;
ok &= ModelBase::fromJson(fieldValue, refVal);
setCreatedBy(refVal);
}
}
if(val.has_field(utility::conversions::to_string_t("description"))) {
const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("description"));
if(!fieldValue.is_null())
Expand Down Expand Up @@ -183,6 +175,15 @@ bool HostClusterInfo::fromJson(const web::json::value& val)
setEnvCount(refVal);
}
}
if(val.has_field(utility::conversions::to_string_t("is_proxy_mode"))) {
const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("is_proxy_mode"));
if(!fieldValue.is_null())
{
int32_t refVal;
ok &= ModelBase::fromJson(fieldValue, refVal);
setIsProxyMode(refVal);
}
}
return ok;
}

Expand Down Expand Up @@ -313,27 +314,6 @@ void HostClusterInfo::unsetslaveClusterId()
slaveClusterIdIsSet_ = false;
}

UserInfo HostClusterInfo::getCreatedBy() const
{
return createdBy_;
}

void HostClusterInfo::setCreatedBy(const UserInfo& value)
{
createdBy_ = value;
createdByIsSet_ = true;
}

bool HostClusterInfo::createdByIsSet() const
{
return createdByIsSet_;
}

void HostClusterInfo::unsetcreatedBy()
{
createdByIsSet_ = false;
}

std::string HostClusterInfo::getDescription() const
{
return description_;
Expand Down Expand Up @@ -418,6 +398,27 @@ void HostClusterInfo::unsetenvCount()
envCountIsSet_ = false;
}

int32_t HostClusterInfo::getIsProxyMode() const
{
return isProxyMode_;
}

void HostClusterInfo::setIsProxyMode(int32_t value)
{
isProxyMode_ = value;
isProxyModeIsSet_ = true;
}

bool HostClusterInfo::isProxyModeIsSet() const
{
return isProxyModeIsSet_;
}

void HostClusterInfo::unsetisProxyMode()
{
isProxyModeIsSet_ = false;
}

}
}
}
Expand Down
Loading

0 comments on commit 4d19d40

Please sign in to comment.