Skip to content

Commit

Permalink
release 3.1.113 source code
Browse files Browse the repository at this point in the history
  • Loading branch information
Huaweicloud-SDK committed Dec 5, 2024
1 parent bbcf151 commit ba1976d
Show file tree
Hide file tree
Showing 78 changed files with 6,846 additions and 4 deletions.
66 changes: 66 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,69 @@
# 3.1.113 2024-12-05

### HuaweiCloud SDK CTS

- _API Version_
- V3
- _Features_
- None
- _Bug Fix_
- None
- _Change_
- **ListTraces**
- changes of response param
- `+ traces.read_only`
- `+ traces.operation_id`

### HuaweiCloud SDK DDS

- _API Version_
- V3
- _Features_
- None
- _Bug Fix_
- None
- _Change_
- **ShowInstanceConfigurationModifyHistory**
- changes of request param
- `+ entity_id`

### HuaweiCloud SDK DRS

- _API Version_
- V5
- _Features_
- None
- _Bug Fix_
- None
- _Change_
- **ListAsyncJobDetail**
- changes of response param
- `+ jobs.compare_result.data_compare_task_list.dynamic_compare_delay`
- **ShowJobDetail**
- changes of response param
- `+ job.compare_result.data_compare_task_list.dynamic_compare_delay`

### HuaweiCloud SDK GaussDBforNoSQL

- _API Version_
- V3
- _Features_
- Support the following APIs:
- `SwitchOver`
- `BatchDeleteManualBackup`
- `ShowDisasterRecoverySettings`
- `SetDisasterRecoverySettings`
- `ShowRedisHotKeys`
- `ShowRedisDisabledCommands`
- `SaveRedisDisabledCommands`
- `DeleteRedisDisabledCommands`
- `ListInstanceSessions`
- `ClearInstanceSessions`
- _Bug Fix_
- None
- _Change_
- None

# 3.1.112 2024-11-28

### HuaweiCloud SDK CBR
Expand Down
66 changes: 66 additions & 0 deletions CHANGELOG_CN.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,69 @@
# 3.1.113 2024-12-05

### HuaweiCloud SDK CTS

- _接口版本_
- V3
- _新增特性_
- 无
- _解决问题_
- 无
- _特性变更_
- **ListTraces**
- 响应参数变更
- `+ traces.read_only`
- `+ traces.operation_id`

### HuaweiCloud SDK DDS

- _接口版本_
- V3
- _新增特性_
- 无
- _解决问题_
- 无
- _特性变更_
- **ShowInstanceConfigurationModifyHistory**
- 请求参数变更
- `+ entity_id`

### HuaweiCloud SDK DRS

- _接口版本_
- V5
- _新增特性_
- 无
- _解决问题_
- 无
- _特性变更_
- **ListAsyncJobDetail**
- 响应参数变更
- `+ jobs.compare_result.data_compare_task_list.dynamic_compare_delay`
- **ShowJobDetail**
- 响应参数变更
- `+ job.compare_result.data_compare_task_list.dynamic_compare_delay`

### HuaweiCloud SDK GaussDBforNoSQL

- _接口版本_
- V3
- _新增特性_
- 支持以下接口:
- `SwitchOver`
- `BatchDeleteManualBackup`
- `ShowDisasterRecoverySettings`
- `SetDisasterRecoverySettings`
- `ShowRedisHotKeys`
- `ShowRedisDisabledCommands`
- `SaveRedisDisabledCommands`
- `DeleteRedisDisabledCommands`
- `ListInstanceSessions`
- `ClearInstanceSessions`
- _解决问题_
- 无
- _特性变更_
- 无

# 3.1.112 2024-11-28

### HuaweiCloud SDK CBR
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.1.112
3.1.113
22 changes: 22 additions & 0 deletions cts/include/huaweicloud/cts/v3/model/Traces.h
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,24 @@ class HUAWEICLOUD_CTS_V3_EXPORT Traces
void unsetresourceAccountId();
void setResourceAccountId(const std::string& value);

/// <summary>
/// 标识用户请求是不是只读。
/// </summary>

bool isReadOnly() const;
bool readOnlyIsSet() const;
void unsetreadOnly();
void setReadOnly(bool value);

/// <summary>
/// 记录事件对应的操作ID。
/// </summary>

std::string getOperationId() const;
bool operationIdIsSet() const;
void unsetoperationId();
void setOperationId(const std::string& value);


protected:
std::string resourceId_;
Expand Down Expand Up @@ -294,6 +312,10 @@ class HUAWEICLOUD_CTS_V3_EXPORT Traces
bool enterpriseProjectIdIsSet_;
std::string resourceAccountId_;
bool resourceAccountIdIsSet_;
bool readOnly_;
bool readOnlyIsSet_;
std::string operationId_;
bool operationIdIsSet_;

};

Expand Down
70 changes: 70 additions & 0 deletions cts/src/v3/model/Traces.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ Traces::Traces()
enterpriseProjectIdIsSet_ = false;
resourceAccountId_ = "";
resourceAccountIdIsSet_ = false;
readOnly_ = false;
readOnlyIsSet_ = false;
operationId_ = "";
operationIdIsSet_ = false;
}

Traces::~Traces() = default;
Expand Down Expand Up @@ -138,6 +142,12 @@ web::json::value Traces::toJson() const
if(resourceAccountIdIsSet_) {
val[utility::conversions::to_string_t("resource_account_id")] = ModelBase::toJson(resourceAccountId_);
}
if(readOnlyIsSet_) {
val[utility::conversions::to_string_t("read_only")] = ModelBase::toJson(readOnly_);
}
if(operationIdIsSet_) {
val[utility::conversions::to_string_t("operation_id")] = ModelBase::toJson(operationId_);
}

return val;
}
Expand Down Expand Up @@ -352,6 +362,24 @@ bool Traces::fromJson(const web::json::value& val)
setResourceAccountId(refVal);
}
}
if(val.has_field(utility::conversions::to_string_t("read_only"))) {
const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("read_only"));
if(!fieldValue.is_null())
{
bool refVal;
ok &= ModelBase::fromJson(fieldValue, refVal);
setReadOnly(refVal);
}
}
if(val.has_field(utility::conversions::to_string_t("operation_id"))) {
const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("operation_id"));
if(!fieldValue.is_null())
{
std::string refVal;
ok &= ModelBase::fromJson(fieldValue, refVal);
setOperationId(refVal);
}
}
return ok;
}

Expand Down Expand Up @@ -839,6 +867,48 @@ void Traces::unsetresourceAccountId()
resourceAccountIdIsSet_ = false;
}

bool Traces::isReadOnly() const
{
return readOnly_;
}

void Traces::setReadOnly(bool value)
{
readOnly_ = value;
readOnlyIsSet_ = true;
}

bool Traces::readOnlyIsSet() const
{
return readOnlyIsSet_;
}

void Traces::unsetreadOnly()
{
readOnlyIsSet_ = false;
}

std::string Traces::getOperationId() const
{
return operationId_;
}

void Traces::setOperationId(const std::string& value)
{
operationId_ = value;
operationIdIsSet_ = true;
}

bool Traces::operationIdIsSet() const
{
return operationIdIsSet_;
}

void Traces::unsetoperationId()
{
operationIdIsSet_ = false;
}

}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,15 @@ class HUAWEICLOUD_DDS_V3_EXPORT ShowInstanceConfigurationModifyHistoryRequest
void unsetinstanceId();
void setInstanceId(const std::string& value);

/// <summary>
/// 实例ID或组ID或节点ID。可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
/// </summary>

std::string getEntityId() const;
bool entityIdIsSet() const;
void unsetentityId();
void setEntityId(const std::string& value);

/// <summary>
/// 索引位置,偏移量。 从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询)。 取值必须为数字,不能为负数。
/// </summary>
Expand All @@ -69,6 +78,8 @@ class HUAWEICLOUD_DDS_V3_EXPORT ShowInstanceConfigurationModifyHistoryRequest
protected:
std::string instanceId_;
bool instanceIdIsSet_;
std::string entityId_;
bool entityIdIsSet_;
int32_t offset_;
bool offsetIsSet_;
int32_t limit_;
Expand Down
3 changes: 3 additions & 0 deletions dds/src/v3/DdsClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3601,6 +3601,9 @@ std::shared_ptr<ShowInstanceConfigurationModifyHistoryResponse> DdsClient::showI
std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson);
localVarHeaderParams["Content-Type"] = contentType;

if (request.entityIdIsSet()) {
localVarQueryParams["entity_id"] = parameterToString(request.getEntityId());
}
if (request.offsetIsSet()) {
localVarQueryParams["offset"] = parameterToString(request.getOffset());
}
Expand Down
3 changes: 3 additions & 0 deletions dds/src/v3/DdsMeta.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -996,6 +996,9 @@ HttpRequestDef DdsMeta::genRequestDefForShowEntityConfiguration() {

HttpRequestDef DdsMeta::genRequestDefForShowInstanceConfigurationModifyHistory() {
HttpRequestDef reqDefBuilder;
reqDefBuilder.withRequestField(FieldDef().withName("EntityId")
.withJsonTag("entity_id")
.withLocationType(Query_));
reqDefBuilder.withRequestField(FieldDef().withName("Offset")
.withJsonTag("offset")
.withLocationType(Query_));
Expand Down
35 changes: 35 additions & 0 deletions dds/src/v3/model/ShowInstanceConfigurationModifyHistoryRequest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ ShowInstanceConfigurationModifyHistoryRequest::ShowInstanceConfigurationModifyHi
{
instanceId_ = "";
instanceIdIsSet_ = false;
entityId_ = "";
entityIdIsSet_ = false;
offset_ = 0;
offsetIsSet_ = false;
limit_ = 0;
Expand All @@ -33,6 +35,9 @@ web::json::value ShowInstanceConfigurationModifyHistoryRequest::toJson() const
if(instanceIdIsSet_) {
val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_);
}
if(entityIdIsSet_) {
val[utility::conversions::to_string_t("entity_id")] = ModelBase::toJson(entityId_);
}
if(offsetIsSet_) {
val[utility::conversions::to_string_t("offset")] = ModelBase::toJson(offset_);
}
Expand All @@ -55,6 +60,15 @@ bool ShowInstanceConfigurationModifyHistoryRequest::fromJson(const web::json::va
setInstanceId(refVal);
}
}
if(val.has_field(utility::conversions::to_string_t("entity_id"))) {
const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("entity_id"));
if(!fieldValue.is_null())
{
std::string refVal;
ok &= ModelBase::fromJson(fieldValue, refVal);
setEntityId(refVal);
}
}
if(val.has_field(utility::conversions::to_string_t("offset"))) {
const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("offset"));
if(!fieldValue.is_null())
Expand Down Expand Up @@ -98,6 +112,27 @@ void ShowInstanceConfigurationModifyHistoryRequest::unsetinstanceId()
instanceIdIsSet_ = false;
}

std::string ShowInstanceConfigurationModifyHistoryRequest::getEntityId() const
{
return entityId_;
}

void ShowInstanceConfigurationModifyHistoryRequest::setEntityId(const std::string& value)
{
entityId_ = value;
entityIdIsSet_ = true;
}

bool ShowInstanceConfigurationModifyHistoryRequest::entityIdIsSet() const
{
return entityIdIsSet_;
}

void ShowInstanceConfigurationModifyHistoryRequest::unsetentityId()
{
entityIdIsSet_ = false;
}

int32_t ShowInstanceConfigurationModifyHistoryRequest::getOffset() const
{
return offset_;
Expand Down
4 changes: 4 additions & 0 deletions drs/include/huaweicloud/drs/v3/DrsRegion.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ class HUAWEICLOUD_DRS_V3_EXPORT DrsRegion {
{
"https://drs.ru-northwest-2.myhuaweicloud.com"
});
regions["ap-southeast-5"] = Region("ap-southeast-5",
{
"https://drs.ap-southeast-5.myhuaweicloud.com"
});
return regions;
}
private:
Expand Down
Loading

0 comments on commit ba1976d

Please sign in to comment.