From ba1976dbb411129d9d9a31ecb18047cee62fb73e Mon Sep 17 00:00:00 2001 From: Huaweicloud-SDK Date: Thu, 5 Dec 2024 15:56:55 +0800 Subject: [PATCH] release 3.1.113 source code --- CHANGELOG.md | 66 +++ CHANGELOG_CN.md | 66 +++ VERSION | 2 +- cts/include/huaweicloud/cts/v3/model/Traces.h | 22 + cts/src/v3/model/Traces.cpp | 70 +++ ...nstanceConfigurationModifyHistoryRequest.h | 11 + dds/src/v3/DdsClient.cpp | 3 + dds/src/v3/DdsMeta.cpp | 3 + ...tanceConfigurationModifyHistoryRequest.cpp | 35 ++ drs/include/huaweicloud/drs/v3/DrsRegion.h | 4 + drs/include/huaweicloud/drs/v5/DrsRegion.h | 4 + .../huaweicloud/drs/v5/model/CompareJobInfo.h | 11 + drs/src/v5/model/CompareJobInfo.cpp | 35 ++ ecs/include/huaweicloud/ecs/v2/EcsRegion.h | 4 + .../huaweicloud/gaussdb/v3/GaussDBRegion.h | 12 + .../v3/GaussDBforNoSQLClient.h | 110 ++++- .../gaussdbfornosql/v3/GaussDBforNoSQLMeta.h | 10 + .../v3/model/BatchDeleteManualBackupRequest.h | 83 ++++ .../BatchDeleteManualBackupRequestBody.h | 65 +++ .../model/BatchDeleteManualBackupResponse.h | 55 +++ .../v3/model/ClearInstanceSessionsRequest.h | 82 ++++ .../v3/model/ClearInstanceSessionsResponse.h | 55 +++ .../DeleteRedisDisabledCommandsRequest.h | 83 ++++ .../DeleteRedisDisabledCommandsRequestBody.h | 88 ++++ .../DeleteRedisDisabledCommandsResponse.h | 55 +++ .../v3/model/HotKeysInfoResponseBody.h | 108 +++++ .../v3/model/ListInstanceSessionsRequest.h | 82 ++++ .../v3/model/ListInstanceSessionsResponse.h | 68 +++ .../v3/model/ListNodeSessionsResult.h | 88 ++++ .../model/ListNodeSessionsResult_sessions.h | 174 +++++++ .../v3/model/RedisDisabledCommandsDetail.h | 87 ++++ .../model/SaveRedisDisabledCommandsRequest.h | 83 ++++ .../SaveRedisDisabledCommandsRequestBody.h | 88 ++++ .../model/SaveRedisDisabledCommandsResponse.h | 55 +++ .../SetDisasterRecoverySettingsRequest.h | 71 +++ .../SetDisasterRecoverySettingsRequestBody.h | 65 +++ .../SetDisasterRecoverySettingsResponse.h | 68 +++ .../ShowDisasterRecoverySettingsRequest.h | 93 ++++ .../ShowDisasterRecoverySettingsResponse.h | 79 ++++ .../model/ShowRedisDisabledCommandsRequest.h | 104 +++++ .../model/ShowRedisDisabledCommandsResponse.h | 102 +++++ .../v3/model/ShowRedisHotKeysRequest.h | 93 ++++ .../v3/model/ShowRedisHotKeysResponse.h | 79 ++++ .../v3/model/SwitchOverRequest.h | 71 +++ .../v3/model/SwitchOverResponse.h | 67 +++ .../v3/model/SwitchoverRatioInfo.h | 75 +++ .../src/v3/GaussDBforNoSQLClient.cpp | 378 +++++++++++++++ .../src/v3/GaussDBforNoSQLMeta.cpp | 101 +++++ .../model/BatchDeleteManualBackupRequest.cpp | 113 +++++ .../BatchDeleteManualBackupRequestBody.cpp | 78 ++++ .../model/BatchDeleteManualBackupResponse.cpp | 44 ++ .../v3/model/ClearInstanceSessionsRequest.cpp | 114 +++++ .../model/ClearInstanceSessionsResponse.cpp | 44 ++ .../DeleteRedisDisabledCommandsRequest.cpp | 113 +++++ ...DeleteRedisDisabledCommandsRequestBody.cpp | 147 ++++++ .../DeleteRedisDisabledCommandsResponse.cpp | 44 ++ .../src/v3/model/HotKeysInfoResponseBody.cpp | 219 +++++++++ .../v3/model/ListInstanceSessionsRequest.cpp | 114 +++++ .../v3/model/ListInstanceSessionsResponse.cpp | 78 ++++ .../src/v3/model/ListNodeSessionsResult.cpp | 148 ++++++ .../model/ListNodeSessionsResult_sessions.cpp | 429 ++++++++++++++++++ .../v3/model/RedisDisabledCommandsDetail.cpp | 148 ++++++ .../SaveRedisDisabledCommandsRequest.cpp | 113 +++++ .../SaveRedisDisabledCommandsRequestBody.cpp | 147 ++++++ .../SaveRedisDisabledCommandsResponse.cpp | 44 ++ .../SetDisasterRecoverySettingsRequest.cpp | 78 ++++ ...SetDisasterRecoverySettingsRequestBody.cpp | 78 ++++ .../SetDisasterRecoverySettingsResponse.cpp | 78 ++++ .../ShowDisasterRecoverySettingsRequest.cpp | 149 ++++++ .../ShowDisasterRecoverySettingsResponse.cpp | 113 +++++ .../ShowRedisDisabledCommandsRequest.cpp | 184 ++++++++ .../ShowRedisDisabledCommandsResponse.cpp | 182 ++++++++ .../src/v3/model/ShowRedisHotKeysRequest.cpp | 149 ++++++ .../src/v3/model/ShowRedisHotKeysResponse.cpp | 113 +++++ .../src/v3/model/SwitchOverRequest.cpp | 79 ++++ .../src/v3/model/SwitchOverResponse.cpp | 79 ++++ .../src/v3/model/SwitchoverRatioInfo.cpp | 114 +++++ ims/include/huaweicloud/ims/v2/ImsRegion.h | 4 + 78 files changed, 6846 insertions(+), 4 deletions(-) create mode 100644 gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/BatchDeleteManualBackupRequest.h create mode 100644 gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/BatchDeleteManualBackupRequestBody.h create mode 100644 gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/BatchDeleteManualBackupResponse.h create mode 100644 gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/ClearInstanceSessionsRequest.h create mode 100644 gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/ClearInstanceSessionsResponse.h create mode 100644 gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/DeleteRedisDisabledCommandsRequest.h create mode 100644 gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/DeleteRedisDisabledCommandsRequestBody.h create mode 100644 gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/DeleteRedisDisabledCommandsResponse.h create mode 100644 gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/HotKeysInfoResponseBody.h create mode 100644 gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/ListInstanceSessionsRequest.h create mode 100644 gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/ListInstanceSessionsResponse.h create mode 100644 gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/ListNodeSessionsResult.h create mode 100644 gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/ListNodeSessionsResult_sessions.h create mode 100644 gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/RedisDisabledCommandsDetail.h create mode 100644 gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/SaveRedisDisabledCommandsRequest.h create mode 100644 gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/SaveRedisDisabledCommandsRequestBody.h create mode 100644 gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/SaveRedisDisabledCommandsResponse.h create mode 100644 gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/SetDisasterRecoverySettingsRequest.h create mode 100644 gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/SetDisasterRecoverySettingsRequestBody.h create mode 100644 gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/SetDisasterRecoverySettingsResponse.h create mode 100644 gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/ShowDisasterRecoverySettingsRequest.h create mode 100644 gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/ShowDisasterRecoverySettingsResponse.h create mode 100644 gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/ShowRedisDisabledCommandsRequest.h create mode 100644 gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/ShowRedisDisabledCommandsResponse.h create mode 100644 gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/ShowRedisHotKeysRequest.h create mode 100644 gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/ShowRedisHotKeysResponse.h create mode 100644 gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/SwitchOverRequest.h create mode 100644 gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/SwitchOverResponse.h create mode 100644 gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/SwitchoverRatioInfo.h create mode 100644 gaussdbfornosql/src/v3/model/BatchDeleteManualBackupRequest.cpp create mode 100644 gaussdbfornosql/src/v3/model/BatchDeleteManualBackupRequestBody.cpp create mode 100644 gaussdbfornosql/src/v3/model/BatchDeleteManualBackupResponse.cpp create mode 100644 gaussdbfornosql/src/v3/model/ClearInstanceSessionsRequest.cpp create mode 100644 gaussdbfornosql/src/v3/model/ClearInstanceSessionsResponse.cpp create mode 100644 gaussdbfornosql/src/v3/model/DeleteRedisDisabledCommandsRequest.cpp create mode 100644 gaussdbfornosql/src/v3/model/DeleteRedisDisabledCommandsRequestBody.cpp create mode 100644 gaussdbfornosql/src/v3/model/DeleteRedisDisabledCommandsResponse.cpp create mode 100644 gaussdbfornosql/src/v3/model/HotKeysInfoResponseBody.cpp create mode 100644 gaussdbfornosql/src/v3/model/ListInstanceSessionsRequest.cpp create mode 100644 gaussdbfornosql/src/v3/model/ListInstanceSessionsResponse.cpp create mode 100644 gaussdbfornosql/src/v3/model/ListNodeSessionsResult.cpp create mode 100644 gaussdbfornosql/src/v3/model/ListNodeSessionsResult_sessions.cpp create mode 100644 gaussdbfornosql/src/v3/model/RedisDisabledCommandsDetail.cpp create mode 100644 gaussdbfornosql/src/v3/model/SaveRedisDisabledCommandsRequest.cpp create mode 100644 gaussdbfornosql/src/v3/model/SaveRedisDisabledCommandsRequestBody.cpp create mode 100644 gaussdbfornosql/src/v3/model/SaveRedisDisabledCommandsResponse.cpp create mode 100644 gaussdbfornosql/src/v3/model/SetDisasterRecoverySettingsRequest.cpp create mode 100644 gaussdbfornosql/src/v3/model/SetDisasterRecoverySettingsRequestBody.cpp create mode 100644 gaussdbfornosql/src/v3/model/SetDisasterRecoverySettingsResponse.cpp create mode 100644 gaussdbfornosql/src/v3/model/ShowDisasterRecoverySettingsRequest.cpp create mode 100644 gaussdbfornosql/src/v3/model/ShowDisasterRecoverySettingsResponse.cpp create mode 100644 gaussdbfornosql/src/v3/model/ShowRedisDisabledCommandsRequest.cpp create mode 100644 gaussdbfornosql/src/v3/model/ShowRedisDisabledCommandsResponse.cpp create mode 100644 gaussdbfornosql/src/v3/model/ShowRedisHotKeysRequest.cpp create mode 100644 gaussdbfornosql/src/v3/model/ShowRedisHotKeysResponse.cpp create mode 100644 gaussdbfornosql/src/v3/model/SwitchOverRequest.cpp create mode 100644 gaussdbfornosql/src/v3/model/SwitchOverResponse.cpp create mode 100644 gaussdbfornosql/src/v3/model/SwitchoverRatioInfo.cpp diff --git a/CHANGELOG.md b/CHANGELOG.md index b232b2e2a..1ada0d113 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/CHANGELOG_CN.md b/CHANGELOG_CN.md index 635abebb8..b221ef7bf 100644 --- a/CHANGELOG_CN.md +++ b/CHANGELOG_CN.md @@ -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 diff --git a/VERSION b/VERSION index 4643dda91..71ba69ad2 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.1.112 +3.1.113 diff --git a/cts/include/huaweicloud/cts/v3/model/Traces.h b/cts/include/huaweicloud/cts/v3/model/Traces.h index 81f47ace1..f456a3984 100644 --- a/cts/include/huaweicloud/cts/v3/model/Traces.h +++ b/cts/include/huaweicloud/cts/v3/model/Traces.h @@ -246,6 +246,24 @@ class HUAWEICLOUD_CTS_V3_EXPORT Traces void unsetresourceAccountId(); void setResourceAccountId(const std::string& value); + /// + /// 标识用户请求是不是只读。 + /// + + bool isReadOnly() const; + bool readOnlyIsSet() const; + void unsetreadOnly(); + void setReadOnly(bool value); + + /// + /// 记录事件对应的操作ID。 + /// + + std::string getOperationId() const; + bool operationIdIsSet() const; + void unsetoperationId(); + void setOperationId(const std::string& value); + protected: std::string resourceId_; @@ -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_; }; diff --git a/cts/src/v3/model/Traces.cpp b/cts/src/v3/model/Traces.cpp index f2a3c0a32..820cbf02b 100644 --- a/cts/src/v3/model/Traces.cpp +++ b/cts/src/v3/model/Traces.cpp @@ -57,6 +57,10 @@ Traces::Traces() enterpriseProjectIdIsSet_ = false; resourceAccountId_ = ""; resourceAccountIdIsSet_ = false; + readOnly_ = false; + readOnlyIsSet_ = false; + operationId_ = ""; + operationIdIsSet_ = false; } Traces::~Traces() = default; @@ -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; } @@ -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; } @@ -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; +} + } } } diff --git a/dds/include/huaweicloud/dds/v3/model/ShowInstanceConfigurationModifyHistoryRequest.h b/dds/include/huaweicloud/dds/v3/model/ShowInstanceConfigurationModifyHistoryRequest.h index bfac498f0..07fb573ea 100644 --- a/dds/include/huaweicloud/dds/v3/model/ShowInstanceConfigurationModifyHistoryRequest.h +++ b/dds/include/huaweicloud/dds/v3/model/ShowInstanceConfigurationModifyHistoryRequest.h @@ -47,6 +47,15 @@ class HUAWEICLOUD_DDS_V3_EXPORT ShowInstanceConfigurationModifyHistoryRequest void unsetinstanceId(); void setInstanceId(const std::string& value); + /// + /// 实例ID或组ID或节点ID。可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。 + /// + + std::string getEntityId() const; + bool entityIdIsSet() const; + void unsetentityId(); + void setEntityId(const std::string& value); + /// /// 索引位置,偏移量。 从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询)。 取值必须为数字,不能为负数。 /// @@ -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_; diff --git a/dds/src/v3/DdsClient.cpp b/dds/src/v3/DdsClient.cpp index b47ec8651..323b57ff5 100644 --- a/dds/src/v3/DdsClient.cpp +++ b/dds/src/v3/DdsClient.cpp @@ -3601,6 +3601,9 @@ std::shared_ptr 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()); } diff --git a/dds/src/v3/DdsMeta.cpp b/dds/src/v3/DdsMeta.cpp index 65495f585..2e45ada29 100644 --- a/dds/src/v3/DdsMeta.cpp +++ b/dds/src/v3/DdsMeta.cpp @@ -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_)); diff --git a/dds/src/v3/model/ShowInstanceConfigurationModifyHistoryRequest.cpp b/dds/src/v3/model/ShowInstanceConfigurationModifyHistoryRequest.cpp index a2592fe0c..b244e6486 100644 --- a/dds/src/v3/model/ShowInstanceConfigurationModifyHistoryRequest.cpp +++ b/dds/src/v3/model/ShowInstanceConfigurationModifyHistoryRequest.cpp @@ -14,6 +14,8 @@ ShowInstanceConfigurationModifyHistoryRequest::ShowInstanceConfigurationModifyHi { instanceId_ = ""; instanceIdIsSet_ = false; + entityId_ = ""; + entityIdIsSet_ = false; offset_ = 0; offsetIsSet_ = false; limit_ = 0; @@ -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_); } @@ -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()) @@ -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_; diff --git a/drs/include/huaweicloud/drs/v3/DrsRegion.h b/drs/include/huaweicloud/drs/v3/DrsRegion.h index 8c6aa794b..0c598657e 100644 --- a/drs/include/huaweicloud/drs/v3/DrsRegion.h +++ b/drs/include/huaweicloud/drs/v3/DrsRegion.h @@ -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: diff --git a/drs/include/huaweicloud/drs/v5/DrsRegion.h b/drs/include/huaweicloud/drs/v5/DrsRegion.h index 2b9852c14..cd5e03d2a 100644 --- a/drs/include/huaweicloud/drs/v5/DrsRegion.h +++ b/drs/include/huaweicloud/drs/v5/DrsRegion.h @@ -126,6 +126,10 @@ class HUAWEICLOUD_DRS_V5_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: diff --git a/drs/include/huaweicloud/drs/v5/model/CompareJobInfo.h b/drs/include/huaweicloud/drs/v5/model/CompareJobInfo.h index 4a5e5fed6..256650969 100644 --- a/drs/include/huaweicloud/drs/v5/model/CompareJobInfo.h +++ b/drs/include/huaweicloud/drs/v5/model/CompareJobInfo.h @@ -139,6 +139,15 @@ class HUAWEICLOUD_DRS_V5_EXPORT CompareJobInfo void unseterrorMsg(); void setErrorMsg(const std::string& value); + /// + /// 动态比对时延。 + /// + + int64_t getDynamicCompareDelay() const; + bool dynamicCompareDelayIsSet() const; + void unsetdynamicCompareDelay(); + void setDynamicCompareDelay(int64_t value); + protected: std::string id_; @@ -163,6 +172,8 @@ class HUAWEICLOUD_DRS_V5_EXPORT CompareJobInfo bool optionsIsSet_; std::string errorMsg_; bool errorMsgIsSet_; + int64_t dynamicCompareDelay_; + bool dynamicCompareDelayIsSet_; }; diff --git a/drs/src/v5/model/CompareJobInfo.cpp b/drs/src/v5/model/CompareJobInfo.cpp index 4e2c58559..3423472c4 100644 --- a/drs/src/v5/model/CompareJobInfo.cpp +++ b/drs/src/v5/model/CompareJobInfo.cpp @@ -32,6 +32,8 @@ CompareJobInfo::CompareJobInfo() optionsIsSet_ = false; errorMsg_ = ""; errorMsgIsSet_ = false; + dynamicCompareDelay_ = 0L; + dynamicCompareDelayIsSet_ = false; } CompareJobInfo::~CompareJobInfo() = default; @@ -77,6 +79,9 @@ web::json::value CompareJobInfo::toJson() const if(errorMsgIsSet_) { val[utility::conversions::to_string_t("error_msg")] = ModelBase::toJson(errorMsg_); } + if(dynamicCompareDelayIsSet_) { + val[utility::conversions::to_string_t("dynamic_compare_delay")] = ModelBase::toJson(dynamicCompareDelay_); + } return val; } @@ -183,6 +188,15 @@ bool CompareJobInfo::fromJson(const web::json::value& val) setErrorMsg(refVal); } } + if(val.has_field(utility::conversions::to_string_t("dynamic_compare_delay"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("dynamic_compare_delay")); + if(!fieldValue.is_null()) + { + int64_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDynamicCompareDelay(refVal); + } + } return ok; } @@ -418,6 +432,27 @@ void CompareJobInfo::unseterrorMsg() errorMsgIsSet_ = false; } +int64_t CompareJobInfo::getDynamicCompareDelay() const +{ + return dynamicCompareDelay_; +} + +void CompareJobInfo::setDynamicCompareDelay(int64_t value) +{ + dynamicCompareDelay_ = value; + dynamicCompareDelayIsSet_ = true; +} + +bool CompareJobInfo::dynamicCompareDelayIsSet() const +{ + return dynamicCompareDelayIsSet_; +} + +void CompareJobInfo::unsetdynamicCompareDelay() +{ + dynamicCompareDelayIsSet_ = false; +} + } } } diff --git a/ecs/include/huaweicloud/ecs/v2/EcsRegion.h b/ecs/include/huaweicloud/ecs/v2/EcsRegion.h index 1dbb240f6..f1ebeac40 100644 --- a/ecs/include/huaweicloud/ecs/v2/EcsRegion.h +++ b/ecs/include/huaweicloud/ecs/v2/EcsRegion.h @@ -138,6 +138,10 @@ class HUAWEICLOUD_ECS_V2_EXPORT EcsRegion { { "https://ecs.ru-moscow-1.myhuaweicloud.com" }); + regions["ap-southeast-5"] = Region("ap-southeast-5", + { + "https://ecs.ap-southeast-5.myhuaweicloud.com" + }); return regions; } private: diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/GaussDBRegion.h b/gaussdb/include/huaweicloud/gaussdb/v3/GaussDBRegion.h index 5ce5c5495..4af2b561d 100644 --- a/gaussdb/include/huaweicloud/gaussdb/v3/GaussDBRegion.h +++ b/gaussdb/include/huaweicloud/gaussdb/v3/GaussDBRegion.h @@ -78,6 +78,18 @@ class HUAWEICLOUD_GAUSSDB_V3_EXPORT GaussDBRegion { { "https://gaussdb-mysql.af-south-1.myhuaweicloud.com" }); + regions["cn-south-4"] = Region("cn-south-4", + { + "https://gaussdb.cn-south-4.myhuaweicloud.com" + }); + regions["cn-north-11"] = Region("cn-north-11", + { + "https://gaussdbformysql.cn-north-11.myhuaweicloud.com" + }); + regions["me-east-1"] = Region("me-east-1", + { + "https://gaussdbformysql.me-east-1.myhuaweicloud.com" + }); return regions; } private: diff --git a/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/GaussDBforNoSQLClient.h b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/GaussDBforNoSQLClient.h index f78a5b7a5..e4ad4061e 100644 --- a/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/GaussDBforNoSQLClient.h +++ b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/GaussDBforNoSQLClient.h @@ -13,6 +13,9 @@ #include #include #include +#include +#include +#include #include #include #include @@ -26,6 +29,8 @@ #include #include #include +#include +#include #include #include #include @@ -79,6 +84,9 @@ #include #include #include +#include +#include +#include #include #include #include @@ -117,6 +125,8 @@ #include #include #include +#include +#include #include #include #include @@ -216,12 +226,18 @@ #include #include #include +#include +#include +#include #include #include #include #include #include #include +#include +#include +#include #include #include #include @@ -246,6 +262,8 @@ #include #include #include +#include +#include #include #include #include @@ -273,6 +291,10 @@ #include #include #include +#include +#include +#include +#include #include #include #include @@ -292,6 +314,8 @@ #include #include #include +#include +#include #include #include #include @@ -385,6 +409,14 @@ class HUAWEICLOUD_GAUSSDBFORNOSQL_V3_EXPORT GaussDBforNoSQLClient : public Clie std::shared_ptr applyConfigurationToInstances( ApplyConfigurationToInstancesRequest &request ); + // 批量删除手动备份 + // + // 批量删除数据库实例的手动备份。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr batchDeleteManualBackup( + BatchDeleteManualBackupRequest &request + ); // 批量添加或删除资源标签 // // 批量添加或删除指定数据库实例的标签。 @@ -426,6 +458,14 @@ class HUAWEICLOUD_GAUSSDBFORNOSQL_V3_EXPORT GaussDBforNoSQLClient : public Clie std::shared_ptr checkWeekPassword( CheckWeekPasswordRequest &request ); + // 关闭实例所有节点会话 + // + // 关闭实例所有节点会话。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr clearInstanceSessions( + ClearInstanceSessionsRequest &request + ); // 参数模板比较 // // 比较两个参数模板之间的差异 @@ -586,6 +626,14 @@ class HUAWEICLOUD_GAUSSDBFORNOSQL_V3_EXPORT GaussDBforNoSQLClient : public Clie std::shared_ptr deleteLtsConfigs( DeleteLtsConfigsRequest &request ); + // 删除Redis禁用命令 + // + // 删除Redis禁用命令。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr deleteRedisDisabledCommands( + DeleteRedisDisabledCommandsRequest &request + ); // 扩容指定集群实例的节点数量 // // 扩容指定集群实例的节点数量。 @@ -714,14 +762,22 @@ class HUAWEICLOUD_GAUSSDBFORNOSQL_V3_EXPORT GaussDBforNoSQLClient : public Clie std::shared_ptr listInstanceDatabases( ListInstanceDatabasesRequest &request ); - // - // // 查询实例可维护时间段 + // + // 查询实例可维护时间段。 // // Please refer to HUAWEI cloud API Explorer for details. std::shared_ptr listInstanceMaintenanceWindow( ListInstanceMaintenanceWindowRequest &request ); + // 获取实例的会话 + // + // 获取实例的会话。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr listInstanceSessions( + ListInstanceSessionsRequest &request + ); // 查询资源标签 // // 查询指定实例的标签信息。 @@ -890,7 +946,7 @@ class HUAWEICLOUD_GAUSSDBFORNOSQL_V3_EXPORT GaussDBforNoSQLClient : public Clie std::shared_ptr modifyEpsQuotas( ModifyEpsQuotasRequest &request ); - // 查询实例可维护时间段 + // 设置实例可维护时间段 // // 设置指定实例可维护时间段。 // @@ -1022,6 +1078,14 @@ class HUAWEICLOUD_GAUSSDBFORNOSQL_V3_EXPORT GaussDBforNoSQLClient : public Clie std::shared_ptr saveLtsConfigs( SaveLtsConfigsRequest &request ); + // 设置Redis禁用命令 + // + // 设置Redis禁用命令。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr saveRedisDisabledCommands( + SaveRedisDisabledCommandsRequest &request + ); // 设置磁盘自动扩容策略 // // 设置磁盘自动扩容策略。 @@ -1038,6 +1102,14 @@ class HUAWEICLOUD_GAUSSDBFORNOSQL_V3_EXPORT GaussDBforNoSQLClient : public Clie std::shared_ptr setBackupPolicy( SetBackupPolicyRequest &request ); + // 设置实例容灾切换的故障节点比例 + // + // 设置实例容灾切换的故障节点比例。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr setDisasterRecoverySettings( + SetDisasterRecoverySettingsRequest &request + ); // 开启/关闭实例数据导出 // // 开启/关闭实例数据导出。 @@ -1126,6 +1198,14 @@ class HUAWEICLOUD_GAUSSDBFORNOSQL_V3_EXPORT GaussDBforNoSQLClient : public Clie std::shared_ptr showConfigurationDetail( ShowConfigurationDetailRequest &request ); + // 查询实例容灾切换的故障节点比例 + // + // 查询实例容灾切换的故障节点比例。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr showDisasterRecoverySettings( + ShowDisasterRecoverySettingsRequest &request + ); // 查询实例负载均衡的IP访问黑白名单 // // 查询实例负载均衡的IP访问黑白名单。 @@ -1230,6 +1310,22 @@ class HUAWEICLOUD_GAUSSDBFORNOSQL_V3_EXPORT GaussDBforNoSQLClient : public Clie std::shared_ptr showRedisBigKeys( ShowRedisBigKeysRequest &request ); + // 查询Redis禁用命令 + // + // 查询Redis禁用命令。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr showRedisDisabledCommands( + ShowRedisDisabledCommandsRequest &request + ); + // 查询Redis实例的热key + // + // 支持查询Redis实例的热key。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr showRedisHotKeys( + ShowRedisHotKeysRequest &request + ); // 查询Redis实例指定时间点恢复所占用的存储空间 // // 查询Redis实例指定时间点恢复所占用的存储空间。 @@ -1294,6 +1390,14 @@ class HUAWEICLOUD_GAUSSDBFORNOSQL_V3_EXPORT GaussDBforNoSQLClient : public Clie std::shared_ptr switchIpGroup( SwitchIpGroupRequest &request ); + // Redis主备切换 + // + // 切换实例下的主备节点 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr switchOver( + SwitchOverRequest &request + ); // 开启/关闭秒级监控 // // 开启或关闭指定实例的5秒级监控。 diff --git a/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/GaussDBforNoSQLMeta.h b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/GaussDBforNoSQLMeta.h index cfc702570..ba356af59 100644 --- a/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/GaussDBforNoSQLMeta.h +++ b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/GaussDBforNoSQLMeta.h @@ -15,11 +15,13 @@ class HUAWEICLOUD_GAUSSDBFORNOSQL_V3_EXPORT GaussDBforNoSQLMeta { public: static HttpRequestDef genRequestDefForApplyConfiguration(); static HttpRequestDef genRequestDefForApplyConfigurationToInstances(); + static HttpRequestDef genRequestDefForBatchDeleteManualBackup(); static HttpRequestDef genRequestDefForBatchTagAction(); static HttpRequestDef genRequestDefForBatchUpgradeDatabaseVersion(); static HttpRequestDef genRequestDefForCancelInstanceScheduleWindow(); static HttpRequestDef genRequestDefForCheckDisasterRecoveryOperation(); static HttpRequestDef genRequestDefForCheckWeekPassword(); + static HttpRequestDef genRequestDefForClearInstanceSessions(); static HttpRequestDef genRequestDefForCompareConfiguration(); static HttpRequestDef genRequestDefForCopyConfiguration(); static HttpRequestDef genRequestDefForCreateBack(); @@ -40,6 +42,7 @@ class HUAWEICLOUD_GAUSSDBFORNOSQL_V3_EXPORT GaussDBforNoSQLMeta { static HttpRequestDef genRequestDefForDeleteInstance(); static HttpRequestDef genRequestDefForDeleteInstancesSession(); static HttpRequestDef genRequestDefForDeleteLtsConfigs(); + static HttpRequestDef genRequestDefForDeleteRedisDisabledCommands(); static HttpRequestDef genRequestDefForExpandInstanceNode(); static HttpRequestDef genRequestDefForListAvailableFlavorInfos(); static HttpRequestDef genRequestDefForListCassandraSlowLogs(); @@ -57,6 +60,7 @@ class HUAWEICLOUD_GAUSSDBFORNOSQL_V3_EXPORT GaussDBforNoSQLMeta { static HttpRequestDef genRequestDefForListInfluxdbSlowLogs(); static HttpRequestDef genRequestDefForListInstanceDatabases(); static HttpRequestDef genRequestDefForListInstanceMaintenanceWindow(); + static HttpRequestDef genRequestDefForListInstanceSessions(); static HttpRequestDef genRequestDefForListInstanceTags(); static HttpRequestDef genRequestDefForListInstances(); static HttpRequestDef genRequestDefForListInstancesByResourceTags(); @@ -94,8 +98,10 @@ class HUAWEICLOUD_GAUSSDBFORNOSQL_V3_EXPORT GaussDBforNoSQLMeta { static HttpRequestDef genRequestDefForRestoreExistingInstance(); static HttpRequestDef genRequestDefForRestoreRedisPitr(); static HttpRequestDef genRequestDefForSaveLtsConfigs(); + static HttpRequestDef genRequestDefForSaveRedisDisabledCommands(); static HttpRequestDef genRequestDefForSetAutoEnlargePolicy(); static HttpRequestDef genRequestDefForSetBackupPolicy(); + static HttpRequestDef genRequestDefForSetDisasterRecoverySettings(); static HttpRequestDef genRequestDefForSetInstanceDataDump(); static HttpRequestDef genRequestDefForSetRecyclePolicy(); static HttpRequestDef genRequestDefForSetRedisPitrPolicy(); @@ -107,6 +113,7 @@ class HUAWEICLOUD_GAUSSDBFORNOSQL_V3_EXPORT GaussDBforNoSQLMeta { static HttpRequestDef genRequestDefForShowBackupPolicies(); static HttpRequestDef genRequestDefForShowBackupPolicy(); static HttpRequestDef genRequestDefForShowConfigurationDetail(); + static HttpRequestDef genRequestDefForShowDisasterRecoverySettings(); static HttpRequestDef genRequestDefForShowElbIpGroup(); static HttpRequestDef genRequestDefForShowErrorLog(); static HttpRequestDef genRequestDefForShowHighRiskCommands(); @@ -120,6 +127,8 @@ class HUAWEICLOUD_GAUSSDBFORNOSQL_V3_EXPORT GaussDBforNoSQLMeta { static HttpRequestDef genRequestDefForShowQuotas(); static HttpRequestDef genRequestDefForShowRecyclePolicy(); static HttpRequestDef genRequestDefForShowRedisBigKeys(); + static HttpRequestDef genRequestDefForShowRedisDisabledCommands(); + static HttpRequestDef genRequestDefForShowRedisHotKeys(); static HttpRequestDef genRequestDefForShowRedisPitrInfo(); static HttpRequestDef genRequestDefForShowRedisPitrPolicy(); static HttpRequestDef genRequestDefForShowRestorableList(); @@ -128,6 +137,7 @@ class HUAWEICLOUD_GAUSSDBFORNOSQL_V3_EXPORT GaussDBforNoSQLMeta { static HttpRequestDef genRequestDefForShrinkInstanceNode(); static HttpRequestDef genRequestDefForStopBackup(); static HttpRequestDef genRequestDefForSwitchIpGroup(); + static HttpRequestDef genRequestDefForSwitchOver(); static HttpRequestDef genRequestDefForSwitchSecondLevelMonitoring(); static HttpRequestDef genRequestDefForSwitchSlowlogDesensitization(); static HttpRequestDef genRequestDefForSwitchSsl(); diff --git a/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/BatchDeleteManualBackupRequest.h b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/BatchDeleteManualBackupRequest.h new file mode 100644 index 000000000..bd6911d5e --- /dev/null +++ b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/BatchDeleteManualBackupRequest.h @@ -0,0 +1,83 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_BatchDeleteManualBackupRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_BatchDeleteManualBackupRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GAUSSDBFORNOSQL_V3_EXPORT BatchDeleteManualBackupRequest + : public ModelBase +{ +public: + BatchDeleteManualBackupRequest(); + virtual ~BatchDeleteManualBackupRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// BatchDeleteManualBackupRequest members + + /// + /// 语言。 + /// + + std::string getXLanguage() const; + bool xLanguageIsSet() const; + void unsetxLanguage(); + void setXLanguage(const std::string& value); + + /// + /// + /// + + BatchDeleteManualBackupRequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const BatchDeleteManualBackupRequestBody& value); + + +protected: + std::string xLanguage_; + bool xLanguageIsSet_; + BatchDeleteManualBackupRequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + BatchDeleteManualBackupRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_BatchDeleteManualBackupRequest_H_ diff --git a/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/BatchDeleteManualBackupRequestBody.h b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/BatchDeleteManualBackupRequestBody.h new file mode 100644 index 000000000..e4ca4291b --- /dev/null +++ b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/BatchDeleteManualBackupRequestBody.h @@ -0,0 +1,65 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_BatchDeleteManualBackupRequestBody_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_BatchDeleteManualBackupRequestBody_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GAUSSDBFORNOSQL_V3_EXPORT BatchDeleteManualBackupRequestBody + : public ModelBase +{ +public: + BatchDeleteManualBackupRequestBody(); + virtual ~BatchDeleteManualBackupRequestBody(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// BatchDeleteManualBackupRequestBody members + + /// + /// 需要批量删除的手动备份id列表,最多一次不超过10条 + /// + + std::vector& getBackupIds(); + bool backupIdsIsSet() const; + void unsetbackupIds(); + void setBackupIds(const std::vector& value); + + +protected: + std::vector backupIds_; + bool backupIdsIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_BatchDeleteManualBackupRequestBody_H_ diff --git a/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/BatchDeleteManualBackupResponse.h b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/BatchDeleteManualBackupResponse.h new file mode 100644 index 000000000..b22a377b4 --- /dev/null +++ b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/BatchDeleteManualBackupResponse.h @@ -0,0 +1,55 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_BatchDeleteManualBackupResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_BatchDeleteManualBackupResponse_H_ + + +#include + +#include +#include +#include + + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GAUSSDBFORNOSQL_V3_EXPORT BatchDeleteManualBackupResponse + : public ModelBase, public HttpResponse +{ +public: + BatchDeleteManualBackupResponse(); + virtual ~BatchDeleteManualBackupResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// BatchDeleteManualBackupResponse members + + +protected: + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_BatchDeleteManualBackupResponse_H_ diff --git a/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/ClearInstanceSessionsRequest.h b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/ClearInstanceSessionsRequest.h new file mode 100644 index 000000000..8d14fd533 --- /dev/null +++ b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/ClearInstanceSessionsRequest.h @@ -0,0 +1,82 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_ClearInstanceSessionsRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_ClearInstanceSessionsRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GAUSSDBFORNOSQL_V3_EXPORT ClearInstanceSessionsRequest + : public ModelBase +{ +public: + ClearInstanceSessionsRequest(); + virtual ~ClearInstanceSessionsRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ClearInstanceSessionsRequest members + + /// + /// 实例ID。 + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// 节点ID。 + /// + + std::string getNodeId() const; + bool nodeIdIsSet() const; + void unsetnodeId(); + void setNodeId(const std::string& value); + + +protected: + std::string instanceId_; + bool instanceIdIsSet_; + std::string nodeId_; + bool nodeIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ClearInstanceSessionsRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_ClearInstanceSessionsRequest_H_ diff --git a/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/ClearInstanceSessionsResponse.h b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/ClearInstanceSessionsResponse.h new file mode 100644 index 000000000..1e8331682 --- /dev/null +++ b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/ClearInstanceSessionsResponse.h @@ -0,0 +1,55 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_ClearInstanceSessionsResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_ClearInstanceSessionsResponse_H_ + + +#include + +#include +#include +#include + + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GAUSSDBFORNOSQL_V3_EXPORT ClearInstanceSessionsResponse + : public ModelBase, public HttpResponse +{ +public: + ClearInstanceSessionsResponse(); + virtual ~ClearInstanceSessionsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ClearInstanceSessionsResponse members + + +protected: + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_ClearInstanceSessionsResponse_H_ diff --git a/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/DeleteRedisDisabledCommandsRequest.h b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/DeleteRedisDisabledCommandsRequest.h new file mode 100644 index 000000000..5b1e17686 --- /dev/null +++ b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/DeleteRedisDisabledCommandsRequest.h @@ -0,0 +1,83 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_DeleteRedisDisabledCommandsRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_DeleteRedisDisabledCommandsRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GAUSSDBFORNOSQL_V3_EXPORT DeleteRedisDisabledCommandsRequest + : public ModelBase +{ +public: + DeleteRedisDisabledCommandsRequest(); + virtual ~DeleteRedisDisabledCommandsRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DeleteRedisDisabledCommandsRequest members + + /// + /// 实例ID。 + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// + /// + + DeleteRedisDisabledCommandsRequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const DeleteRedisDisabledCommandsRequestBody& value); + + +protected: + std::string instanceId_; + bool instanceIdIsSet_; + DeleteRedisDisabledCommandsRequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + DeleteRedisDisabledCommandsRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_DeleteRedisDisabledCommandsRequest_H_ diff --git a/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/DeleteRedisDisabledCommandsRequestBody.h b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/DeleteRedisDisabledCommandsRequestBody.h new file mode 100644 index 000000000..a59cd0a52 --- /dev/null +++ b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/DeleteRedisDisabledCommandsRequestBody.h @@ -0,0 +1,88 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_DeleteRedisDisabledCommandsRequestBody_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_DeleteRedisDisabledCommandsRequestBody_H_ + + +#include + +#include +#include +#include + +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GAUSSDBFORNOSQL_V3_EXPORT DeleteRedisDisabledCommandsRequestBody + : public ModelBase +{ +public: + DeleteRedisDisabledCommandsRequestBody(); + virtual ~DeleteRedisDisabledCommandsRequestBody(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DeleteRedisDisabledCommandsRequestBody members + + /// + /// 禁用类型。 + /// + + std::string getDisabledType() const; + bool disabledTypeIsSet() const; + void unsetdisabledType(); + void setDisabledType(const std::string& value); + + /// + /// disabled_type为command时传入该参数。 + /// + + std::vector& getCommands(); + bool commandsIsSet() const; + void unsetcommands(); + void setCommands(const std::vector& value); + + /// + /// disabled_type为key时传入该参数,最多20个。 + /// + + std::vector& getKeys(); + bool keysIsSet() const; + void unsetkeys(); + void setKeys(const std::vector& value); + + +protected: + std::string disabledType_; + bool disabledTypeIsSet_; + std::vector commands_; + bool commandsIsSet_; + std::vector keys_; + bool keysIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_DeleteRedisDisabledCommandsRequestBody_H_ diff --git a/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/DeleteRedisDisabledCommandsResponse.h b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/DeleteRedisDisabledCommandsResponse.h new file mode 100644 index 000000000..f561416b0 --- /dev/null +++ b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/DeleteRedisDisabledCommandsResponse.h @@ -0,0 +1,55 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_DeleteRedisDisabledCommandsResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_DeleteRedisDisabledCommandsResponse_H_ + + +#include + +#include +#include +#include + + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GAUSSDBFORNOSQL_V3_EXPORT DeleteRedisDisabledCommandsResponse + : public ModelBase, public HttpResponse +{ +public: + DeleteRedisDisabledCommandsResponse(); + virtual ~DeleteRedisDisabledCommandsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DeleteRedisDisabledCommandsResponse members + + +protected: + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_DeleteRedisDisabledCommandsResponse_H_ diff --git a/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/HotKeysInfoResponseBody.h b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/HotKeysInfoResponseBody.h new file mode 100644 index 000000000..73f5f2f23 --- /dev/null +++ b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/HotKeysInfoResponseBody.h @@ -0,0 +1,108 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_HotKeysInfoResponseBody_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_HotKeysInfoResponseBody_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GAUSSDBFORNOSQL_V3_EXPORT HotKeysInfoResponseBody + : public ModelBase +{ +public: + HotKeysInfoResponseBody(); + virtual ~HotKeysInfoResponseBody(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// HotKeysInfoResponseBody members + + /// + /// 热Key名。 + /// + + std::string getName() const; + bool nameIsSet() const; + void unsetname(); + void setName(const std::string& value); + + /// + /// 热Key类型。 + /// + + std::string getType() const; + bool typeIsSet() const; + void unsettype(); + void setType(const std::string& value); + + /// + /// 热Key命令。 + /// + + std::string getCommand() const; + bool commandIsSet() const; + void unsetcommand(); + void setCommand(const std::string& value); + + /// + /// 热Key QPS。 + /// + + int32_t getQps() const; + bool qpsIsSet() const; + void unsetqps(); + void setQps(int32_t value); + + /// + /// 热key所在的DB。 + /// + + int32_t getDbId() const; + bool dbIdIsSet() const; + void unsetdbId(); + void setDbId(int32_t value); + + +protected: + std::string name_; + bool nameIsSet_; + std::string type_; + bool typeIsSet_; + std::string command_; + bool commandIsSet_; + int32_t qps_; + bool qpsIsSet_; + int32_t dbId_; + bool dbIdIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_HotKeysInfoResponseBody_H_ diff --git a/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/ListInstanceSessionsRequest.h b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/ListInstanceSessionsRequest.h new file mode 100644 index 000000000..5cc43fe2d --- /dev/null +++ b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/ListInstanceSessionsRequest.h @@ -0,0 +1,82 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_ListInstanceSessionsRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_ListInstanceSessionsRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GAUSSDBFORNOSQL_V3_EXPORT ListInstanceSessionsRequest + : public ModelBase +{ +public: + ListInstanceSessionsRequest(); + virtual ~ListInstanceSessionsRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListInstanceSessionsRequest members + + /// + /// 实例ID。 + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// 节点ID。 + /// + + std::string getNodeId() const; + bool nodeIdIsSet() const; + void unsetnodeId(); + void setNodeId(const std::string& value); + + +protected: + std::string instanceId_; + bool instanceIdIsSet_; + std::string nodeId_; + bool nodeIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ListInstanceSessionsRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_ListInstanceSessionsRequest_H_ diff --git a/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/ListInstanceSessionsResponse.h b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/ListInstanceSessionsResponse.h new file mode 100644 index 000000000..491f67b24 --- /dev/null +++ b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/ListInstanceSessionsResponse.h @@ -0,0 +1,68 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_ListInstanceSessionsResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_ListInstanceSessionsResponse_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GAUSSDBFORNOSQL_V3_EXPORT ListInstanceSessionsResponse + : public ModelBase, public HttpResponse +{ +public: + ListInstanceSessionsResponse(); + virtual ~ListInstanceSessionsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListInstanceSessionsResponse members + + /// + /// 节点的会话信息列表。 + /// + + std::vector& getNodeSessions(); + bool nodeSessionsIsSet() const; + void unsetnodeSessions(); + void setNodeSessions(const std::vector& value); + + +protected: + std::vector nodeSessions_; + bool nodeSessionsIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_ListInstanceSessionsResponse_H_ diff --git a/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/ListNodeSessionsResult.h b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/ListNodeSessionsResult.h new file mode 100644 index 000000000..6be279e06 --- /dev/null +++ b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/ListNodeSessionsResult.h @@ -0,0 +1,88 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_ListNodeSessionsResult_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_ListNodeSessionsResult_H_ + + +#include + +#include +#include +#include + +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GAUSSDBFORNOSQL_V3_EXPORT ListNodeSessionsResult + : public ModelBase +{ +public: + ListNodeSessionsResult(); + virtual ~ListNodeSessionsResult(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListNodeSessionsResult members + + /// + /// 节点ID。 + /// + + std::string getNodeId() const; + bool nodeIdIsSet() const; + void unsetnodeId(); + void setNodeId(const std::string& value); + + /// + /// 总会话数。 + /// + + int32_t getTotalCount() const; + bool totalCountIsSet() const; + void unsettotalCount(); + void setTotalCount(int32_t value); + + /// + /// 节点会话详细信息列表。 + /// + + std::vector& getSessions(); + bool sessionsIsSet() const; + void unsetsessions(); + void setSessions(const std::vector& value); + + +protected: + std::string nodeId_; + bool nodeIdIsSet_; + int32_t totalCount_; + bool totalCountIsSet_; + std::vector sessions_; + bool sessionsIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_ListNodeSessionsResult_H_ diff --git a/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/ListNodeSessionsResult_sessions.h b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/ListNodeSessionsResult_sessions.h new file mode 100644 index 000000000..884e3b663 --- /dev/null +++ b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/ListNodeSessionsResult_sessions.h @@ -0,0 +1,174 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_ListNodeSessionsResult_sessions_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_ListNodeSessionsResult_sessions_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GAUSSDBFORNOSQL_V3_EXPORT ListNodeSessionsResult_sessions + : public ModelBase +{ +public: + ListNodeSessionsResult_sessions(); + virtual ~ListNodeSessionsResult_sessions(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListNodeSessionsResult_sessions members + + /// + /// 会话ID。 + /// + + std::string getId() const; + bool idIsSet() const; + void unsetid(); + void setId(const std::string& value); + + /// + /// 连接名。 + /// + + std::string getName() const; + bool nameIsSet() const; + void unsetname(); + void setName(const std::string& value); + + /// + /// 最近一次执行的命令。 + /// + + std::string getCmd() const; + bool cmdIsSet() const; + void unsetcmd(); + void setCmd(const std::string& value); + + /// + /// 以秒计算的已连接时长。 + /// + + std::string getAge() const; + bool ageIsSet() const; + void unsetage(); + void setAge(const std::string& value); + + /// + /// 以秒计算的空闲时长。 + /// + + std::string getIdle() const; + bool idleIsSet() const; + void unsetidle(); + void setIdle(const std::string& value); + + /// + /// 该客户端正在使用的数据库ID。 + /// + + std::string getDb() const; + bool dbIsSet() const; + void unsetdb(); + void setDb(const std::string& value); + + /// + /// 客户端的地址和端口。 + /// + + std::string getAddr() const; + bool addrIsSet() const; + void unsetaddr(); + void setAddr(const std::string& value); + + /// + /// 套接字所使用的文件描述符。 + /// + + std::string getFd() const; + bool fdIsSet() const; + void unsetfd(); + void setFd(const std::string& value); + + /// + /// 已订阅频道的数量。 + /// + + std::string getSub() const; + bool subIsSet() const; + void unsetsub(); + void setSub(const std::string& value); + + /// + /// 已订阅模式的数量。 + /// + + std::string getPsub() const; + bool psubIsSet() const; + void unsetpsub(); + void setPsub(const std::string& value); + + /// + /// 在事务中被执行的命令数量。 + /// + + std::string getMulti() const; + bool multiIsSet() const; + void unsetmulti(); + void setMulti(const std::string& value); + + +protected: + std::string id_; + bool idIsSet_; + std::string name_; + bool nameIsSet_; + std::string cmd_; + bool cmdIsSet_; + std::string age_; + bool ageIsSet_; + std::string idle_; + bool idleIsSet_; + std::string db_; + bool dbIsSet_; + std::string addr_; + bool addrIsSet_; + std::string fd_; + bool fdIsSet_; + std::string sub_; + bool subIsSet_; + std::string psub_; + bool psubIsSet_; + std::string multi_; + bool multiIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_ListNodeSessionsResult_sessions_H_ diff --git a/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/RedisDisabledCommandsDetail.h b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/RedisDisabledCommandsDetail.h new file mode 100644 index 000000000..2be56b918 --- /dev/null +++ b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/RedisDisabledCommandsDetail.h @@ -0,0 +1,87 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_RedisDisabledCommandsDetail_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_RedisDisabledCommandsDetail_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GAUSSDBFORNOSQL_V3_EXPORT RedisDisabledCommandsDetail + : public ModelBase +{ +public: + RedisDisabledCommandsDetail(); + virtual ~RedisDisabledCommandsDetail(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// RedisDisabledCommandsDetail members + + /// + /// key所在的DB。 + /// + + std::string getDbId() const; + bool dbIdIsSet() const; + void unsetdbId(); + void setDbId(const std::string& value); + + /// + /// key名。 + /// + + std::string getKey() const; + bool keyIsSet() const; + void unsetkey(); + void setKey(const std::string& value); + + /// + /// 命令列表。 + /// + + std::vector& getCommands(); + bool commandsIsSet() const; + void unsetcommands(); + void setCommands(const std::vector& value); + + +protected: + std::string dbId_; + bool dbIdIsSet_; + std::string key_; + bool keyIsSet_; + std::vector commands_; + bool commandsIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_RedisDisabledCommandsDetail_H_ diff --git a/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/SaveRedisDisabledCommandsRequest.h b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/SaveRedisDisabledCommandsRequest.h new file mode 100644 index 000000000..8eccc2087 --- /dev/null +++ b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/SaveRedisDisabledCommandsRequest.h @@ -0,0 +1,83 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_SaveRedisDisabledCommandsRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_SaveRedisDisabledCommandsRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GAUSSDBFORNOSQL_V3_EXPORT SaveRedisDisabledCommandsRequest + : public ModelBase +{ +public: + SaveRedisDisabledCommandsRequest(); + virtual ~SaveRedisDisabledCommandsRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// SaveRedisDisabledCommandsRequest members + + /// + /// 实例ID。 + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// + /// + + SaveRedisDisabledCommandsRequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const SaveRedisDisabledCommandsRequestBody& value); + + +protected: + std::string instanceId_; + bool instanceIdIsSet_; + SaveRedisDisabledCommandsRequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + SaveRedisDisabledCommandsRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_SaveRedisDisabledCommandsRequest_H_ diff --git a/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/SaveRedisDisabledCommandsRequestBody.h b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/SaveRedisDisabledCommandsRequestBody.h new file mode 100644 index 000000000..12f4e4e0c --- /dev/null +++ b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/SaveRedisDisabledCommandsRequestBody.h @@ -0,0 +1,88 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_SaveRedisDisabledCommandsRequestBody_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_SaveRedisDisabledCommandsRequestBody_H_ + + +#include + +#include +#include +#include + +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GAUSSDBFORNOSQL_V3_EXPORT SaveRedisDisabledCommandsRequestBody + : public ModelBase +{ +public: + SaveRedisDisabledCommandsRequestBody(); + virtual ~SaveRedisDisabledCommandsRequestBody(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// SaveRedisDisabledCommandsRequestBody members + + /// + /// 禁用类型。 + /// + + std::string getDisabledType() const; + bool disabledTypeIsSet() const; + void unsetdisabledType(); + void setDisabledType(const std::string& value); + + /// + /// disabled_type为command时传入该参数。 + /// + + std::vector& getCommands(); + bool commandsIsSet() const; + void unsetcommands(); + void setCommands(const std::vector& value); + + /// + /// disabled_type为key时传入该参数,最多20个。 + /// + + std::vector& getKeys(); + bool keysIsSet() const; + void unsetkeys(); + void setKeys(const std::vector& value); + + +protected: + std::string disabledType_; + bool disabledTypeIsSet_; + std::vector commands_; + bool commandsIsSet_; + std::vector keys_; + bool keysIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_SaveRedisDisabledCommandsRequestBody_H_ diff --git a/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/SaveRedisDisabledCommandsResponse.h b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/SaveRedisDisabledCommandsResponse.h new file mode 100644 index 000000000..09b97aa74 --- /dev/null +++ b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/SaveRedisDisabledCommandsResponse.h @@ -0,0 +1,55 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_SaveRedisDisabledCommandsResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_SaveRedisDisabledCommandsResponse_H_ + + +#include + +#include +#include +#include + + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GAUSSDBFORNOSQL_V3_EXPORT SaveRedisDisabledCommandsResponse + : public ModelBase, public HttpResponse +{ +public: + SaveRedisDisabledCommandsResponse(); + virtual ~SaveRedisDisabledCommandsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// SaveRedisDisabledCommandsResponse members + + +protected: + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_SaveRedisDisabledCommandsResponse_H_ diff --git a/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/SetDisasterRecoverySettingsRequest.h b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/SetDisasterRecoverySettingsRequest.h new file mode 100644 index 000000000..fec09b31e --- /dev/null +++ b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/SetDisasterRecoverySettingsRequest.h @@ -0,0 +1,71 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_SetDisasterRecoverySettingsRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_SetDisasterRecoverySettingsRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GAUSSDBFORNOSQL_V3_EXPORT SetDisasterRecoverySettingsRequest + : public ModelBase +{ +public: + SetDisasterRecoverySettingsRequest(); + virtual ~SetDisasterRecoverySettingsRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// SetDisasterRecoverySettingsRequest members + + /// + /// + /// + + SetDisasterRecoverySettingsRequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const SetDisasterRecoverySettingsRequestBody& value); + + +protected: + SetDisasterRecoverySettingsRequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + SetDisasterRecoverySettingsRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_SetDisasterRecoverySettingsRequest_H_ diff --git a/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/SetDisasterRecoverySettingsRequestBody.h b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/SetDisasterRecoverySettingsRequestBody.h new file mode 100644 index 000000000..11c44f26e --- /dev/null +++ b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/SetDisasterRecoverySettingsRequestBody.h @@ -0,0 +1,65 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_SetDisasterRecoverySettingsRequestBody_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_SetDisasterRecoverySettingsRequestBody_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GAUSSDBFORNOSQL_V3_EXPORT SetDisasterRecoverySettingsRequestBody + : public ModelBase +{ +public: + SetDisasterRecoverySettingsRequestBody(); + virtual ~SetDisasterRecoverySettingsRequestBody(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// SetDisasterRecoverySettingsRequestBody members + + /// + /// 容灾切换的故障节点比例列表。 + /// + + std::vector& getDisasterRecoverySettings(); + bool disasterRecoverySettingsIsSet() const; + void unsetdisasterRecoverySettings(); + void setDisasterRecoverySettings(const std::vector& value); + + +protected: + std::vector disasterRecoverySettings_; + bool disasterRecoverySettingsIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_SetDisasterRecoverySettingsRequestBody_H_ diff --git a/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/SetDisasterRecoverySettingsResponse.h b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/SetDisasterRecoverySettingsResponse.h new file mode 100644 index 000000000..eea2c8045 --- /dev/null +++ b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/SetDisasterRecoverySettingsResponse.h @@ -0,0 +1,68 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_SetDisasterRecoverySettingsResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_SetDisasterRecoverySettingsResponse_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GAUSSDBFORNOSQL_V3_EXPORT SetDisasterRecoverySettingsResponse + : public ModelBase, public HttpResponse +{ +public: + SetDisasterRecoverySettingsResponse(); + virtual ~SetDisasterRecoverySettingsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// SetDisasterRecoverySettingsResponse members + + /// + /// 设置容灾切换故障节点比例成功的实例列表。 + /// + + std::vector& getSuccessedInstanceIds(); + bool successedInstanceIdsIsSet() const; + void unsetsuccessedInstanceIds(); + void setSuccessedInstanceIds(const std::vector& value); + + +protected: + std::vector successedInstanceIds_; + bool successedInstanceIdsIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_SetDisasterRecoverySettingsResponse_H_ diff --git a/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/ShowDisasterRecoverySettingsRequest.h b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/ShowDisasterRecoverySettingsRequest.h new file mode 100644 index 000000000..096b4eddc --- /dev/null +++ b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/ShowDisasterRecoverySettingsRequest.h @@ -0,0 +1,93 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_ShowDisasterRecoverySettingsRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_ShowDisasterRecoverySettingsRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GAUSSDBFORNOSQL_V3_EXPORT ShowDisasterRecoverySettingsRequest + : public ModelBase +{ +public: + ShowDisasterRecoverySettingsRequest(); + virtual ~ShowDisasterRecoverySettingsRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ShowDisasterRecoverySettingsRequest members + + /// + /// 实例ID。 + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// 索引位置偏移量,表示从指定offset条数据后查询对应的实例信息。 取值大于或等于0。不传该参数时,查询偏移量默认为0。 + /// + + int32_t getOffset() const; + bool offsetIsSet() const; + void unsetoffset(); + void setOffset(int32_t value); + + /// + /// 查询实例个数上限值。 取值范围:1~50。不传该参数时,默认查询前50条实例信息。 + /// + + int32_t getLimit() const; + bool limitIsSet() const; + void unsetlimit(); + void setLimit(int32_t value); + + +protected: + std::string instanceId_; + bool instanceIdIsSet_; + int32_t offset_; + bool offsetIsSet_; + int32_t limit_; + bool limitIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ShowDisasterRecoverySettingsRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_ShowDisasterRecoverySettingsRequest_H_ diff --git a/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/ShowDisasterRecoverySettingsResponse.h b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/ShowDisasterRecoverySettingsResponse.h new file mode 100644 index 000000000..62fb4d51b --- /dev/null +++ b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/ShowDisasterRecoverySettingsResponse.h @@ -0,0 +1,79 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_ShowDisasterRecoverySettingsResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_ShowDisasterRecoverySettingsResponse_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GAUSSDBFORNOSQL_V3_EXPORT ShowDisasterRecoverySettingsResponse + : public ModelBase, public HttpResponse +{ +public: + ShowDisasterRecoverySettingsResponse(); + virtual ~ShowDisasterRecoverySettingsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ShowDisasterRecoverySettingsResponse members + + /// + /// 容灾切换的故障节点比例列表。 + /// + + std::vector& getDisasterRecoverySettings(); + bool disasterRecoverySettingsIsSet() const; + void unsetdisasterRecoverySettings(); + void setDisasterRecoverySettings(const std::vector& value); + + /// + /// 总记录数。 + /// + + int32_t getTotalCount() const; + bool totalCountIsSet() const; + void unsettotalCount(); + void setTotalCount(int32_t value); + + +protected: + std::vector disasterRecoverySettings_; + bool disasterRecoverySettingsIsSet_; + int32_t totalCount_; + bool totalCountIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_ShowDisasterRecoverySettingsResponse_H_ diff --git a/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/ShowRedisDisabledCommandsRequest.h b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/ShowRedisDisabledCommandsRequest.h new file mode 100644 index 000000000..42871c2de --- /dev/null +++ b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/ShowRedisDisabledCommandsRequest.h @@ -0,0 +1,104 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_ShowRedisDisabledCommandsRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_ShowRedisDisabledCommandsRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GAUSSDBFORNOSQL_V3_EXPORT ShowRedisDisabledCommandsRequest + : public ModelBase +{ +public: + ShowRedisDisabledCommandsRequest(); + virtual ~ShowRedisDisabledCommandsRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ShowRedisDisabledCommandsRequest members + + /// + /// 实例ID。 + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// 指令类型 + /// + + std::string getType() const; + bool typeIsSet() const; + void unsettype(); + void setType(const std::string& value); + + /// + /// 索引位置偏移量,表示从指定offset条数据后查询对应的实例信息。 取值大于或等于0。不传该参数时,查询偏移量默认为0。 + /// + + int32_t getOffset() const; + bool offsetIsSet() const; + void unsetoffset(); + void setOffset(int32_t value); + + /// + /// 查询专属资源个数上限值。 - 取值范围:1~50。不传该参数时,默认查询前50条实例信息。 + /// + + int32_t getLimit() const; + bool limitIsSet() const; + void unsetlimit(); + void setLimit(int32_t value); + + +protected: + std::string instanceId_; + bool instanceIdIsSet_; + std::string type_; + bool typeIsSet_; + int32_t offset_; + bool offsetIsSet_; + int32_t limit_; + bool limitIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ShowRedisDisabledCommandsRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_ShowRedisDisabledCommandsRequest_H_ diff --git a/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/ShowRedisDisabledCommandsResponse.h b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/ShowRedisDisabledCommandsResponse.h new file mode 100644 index 000000000..6bfca95df --- /dev/null +++ b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/ShowRedisDisabledCommandsResponse.h @@ -0,0 +1,102 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_ShowRedisDisabledCommandsResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_ShowRedisDisabledCommandsResponse_H_ + + +#include + +#include +#include +#include + +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GAUSSDBFORNOSQL_V3_EXPORT ShowRedisDisabledCommandsResponse + : public ModelBase, public HttpResponse +{ +public: + ShowRedisDisabledCommandsResponse(); + virtual ~ShowRedisDisabledCommandsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ShowRedisDisabledCommandsResponse members + + /// + /// 总数。 + /// + + std::string getTotalCount() const; + bool totalCountIsSet() const; + void unsettotalCount(); + void setTotalCount(const std::string& value); + + /// + /// 禁用类型。 + /// + + std::string getDisabledType() const; + bool disabledTypeIsSet() const; + void unsetdisabledType(); + void setDisabledType(const std::string& value); + + /// + /// disabled_type为command时展示该参数。 + /// + + std::vector& getCommands(); + bool commandsIsSet() const; + void unsetcommands(); + void setCommands(const std::vector& value); + + /// + /// disabled_type为key时展示该参数,最多20个。 + /// + + std::vector& getKeys(); + bool keysIsSet() const; + void unsetkeys(); + void setKeys(const std::vector& value); + + +protected: + std::string totalCount_; + bool totalCountIsSet_; + std::string disabledType_; + bool disabledTypeIsSet_; + std::vector commands_; + bool commandsIsSet_; + std::vector keys_; + bool keysIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_ShowRedisDisabledCommandsResponse_H_ diff --git a/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/ShowRedisHotKeysRequest.h b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/ShowRedisHotKeysRequest.h new file mode 100644 index 000000000..0add8a68f --- /dev/null +++ b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/ShowRedisHotKeysRequest.h @@ -0,0 +1,93 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_ShowRedisHotKeysRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_ShowRedisHotKeysRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GAUSSDBFORNOSQL_V3_EXPORT ShowRedisHotKeysRequest + : public ModelBase +{ +public: + ShowRedisHotKeysRequest(); + virtual ~ShowRedisHotKeysRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ShowRedisHotKeysRequest members + + /// + /// 实例ID。 + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// 索引位置偏移量,表示从指定offset条数据后查询对应的实例信息。 取值大于或等于0。不传该参数时,查询偏移量默认为0。 + /// + + int32_t getOffset() const; + bool offsetIsSet() const; + void unsetoffset(); + void setOffset(int32_t value); + + /// + /// 查询数据的上限值。 - 取值范围:1~50。不传该参数时,默认查询前50条实例信息。 + /// + + int32_t getLimit() const; + bool limitIsSet() const; + void unsetlimit(); + void setLimit(int32_t value); + + +protected: + std::string instanceId_; + bool instanceIdIsSet_; + int32_t offset_; + bool offsetIsSet_; + int32_t limit_; + bool limitIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ShowRedisHotKeysRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_ShowRedisHotKeysRequest_H_ diff --git a/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/ShowRedisHotKeysResponse.h b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/ShowRedisHotKeysResponse.h new file mode 100644 index 000000000..32a615406 --- /dev/null +++ b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/ShowRedisHotKeysResponse.h @@ -0,0 +1,79 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_ShowRedisHotKeysResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_ShowRedisHotKeysResponse_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GAUSSDBFORNOSQL_V3_EXPORT ShowRedisHotKeysResponse + : public ModelBase, public HttpResponse +{ +public: + ShowRedisHotKeysResponse(); + virtual ~ShowRedisHotKeysResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ShowRedisHotKeysResponse members + + /// + /// 查询到的热Key列表。 + /// + + std::vector& getKeys(); + bool keysIsSet() const; + void unsetkeys(); + void setKeys(const std::vector& value); + + /// + /// 总数。 + /// + + int32_t getCount() const; + bool countIsSet() const; + void unsetcount(); + void setCount(int32_t value); + + +protected: + std::vector keys_; + bool keysIsSet_; + int32_t count_; + bool countIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_ShowRedisHotKeysResponse_H_ diff --git a/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/SwitchOverRequest.h b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/SwitchOverRequest.h new file mode 100644 index 000000000..861e49a25 --- /dev/null +++ b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/SwitchOverRequest.h @@ -0,0 +1,71 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_SwitchOverRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_SwitchOverRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GAUSSDBFORNOSQL_V3_EXPORT SwitchOverRequest + : public ModelBase +{ +public: + SwitchOverRequest(); + virtual ~SwitchOverRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// SwitchOverRequest 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: + SwitchOverRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_SwitchOverRequest_H_ diff --git a/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/SwitchOverResponse.h b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/SwitchOverResponse.h new file mode 100644 index 000000000..4658a8dc7 --- /dev/null +++ b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/SwitchOverResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_SwitchOverResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_SwitchOverResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GAUSSDBFORNOSQL_V3_EXPORT SwitchOverResponse + : public ModelBase, public HttpResponse +{ +public: + SwitchOverResponse(); + virtual ~SwitchOverResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// SwitchOverResponse 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_GAUSSDBFORNOSQL_V3_MODEL_SwitchOverResponse_H_ diff --git a/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/SwitchoverRatioInfo.h b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/SwitchoverRatioInfo.h new file mode 100644 index 000000000..49d484638 --- /dev/null +++ b/gaussdbfornosql/include/huaweicloud/gaussdbfornosql/v3/model/SwitchoverRatioInfo.h @@ -0,0 +1,75 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_SwitchoverRatioInfo_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_SwitchoverRatioInfo_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GAUSSDBFORNOSQL_V3_EXPORT SwitchoverRatioInfo + : public ModelBase +{ +public: + SwitchoverRatioInfo(); + virtual ~SwitchoverRatioInfo(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// SwitchoverRatioInfo members + + /// + /// 实例ID。 + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// 容灾切换的故障节点比例,下限是50,步长是10,最大是100,默认为100。 + /// + + int32_t getSwitchoverRatio() const; + bool switchoverRatioIsSet() const; + void unsetswitchoverRatio(); + void setSwitchoverRatio(int32_t value); + + +protected: + std::string instanceId_; + bool instanceIdIsSet_; + int32_t switchoverRatio_; + bool switchoverRatioIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFORNOSQL_V3_MODEL_SwitchoverRatioInfo_H_ diff --git a/gaussdbfornosql/src/v3/GaussDBforNoSQLClient.cpp b/gaussdbfornosql/src/v3/GaussDBforNoSQLClient.cpp index abcaa0ba9..3d3e6d8fd 100644 --- a/gaussdbfornosql/src/v3/GaussDBforNoSQLClient.cpp +++ b/gaussdbfornosql/src/v3/GaussDBforNoSQLClient.cpp @@ -116,6 +116,50 @@ std::shared_ptr GaussDBforNoSQLClient::ap return localVarResult; } +std::shared_ptr GaussDBforNoSQLClient::batchDeleteManualBackup(BatchDeleteManualBackupRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/instances/backups"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + + 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("DELETE", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBforNoSQLMeta::genRequestDefForBatchDeleteManualBackup()); + + 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 GaussDBforNoSQLClient::batchTagAction(BatchTagActionRequest &request) { std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/tags/action"; @@ -312,6 +356,39 @@ std::shared_ptr GaussDBforNoSQLClient::checkWeekPassw return localVarResult; } +std::shared_ptr GaussDBforNoSQLClient::clearInstanceSessions(ClearInstanceSessionsRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/sessions"; + + 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.nodeIdIsSet()) { + localVarQueryParams["node_id"] = parameterToString(request.getNodeId()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("DELETE", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBforNoSQLMeta::genRequestDefForClearInstanceSessions()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} std::shared_ptr GaussDBforNoSQLClient::compareConfiguration(CompareConfigurationRequest &request) { std::string localVarPath = "/v3/{project_id}/configurations/comparison"; @@ -1099,6 +1176,48 @@ std::shared_ptr GaussDBforNoSQLClient::deleteLtsConfig return localVarResult; } +std::shared_ptr GaussDBforNoSQLClient::deleteRedisDisabledCommands(DeleteRedisDisabledCommandsRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/redis/instances/{instance_id}/disabled-commands"; + + 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; + 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("DELETE", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBforNoSQLMeta::genRequestDefForDeleteRedisDisabledCommands()); + + 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 GaussDBforNoSQLClient::expandInstanceNode(ExpandInstanceNodeRequest &request) { std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/enlarge-node"; @@ -1738,6 +1857,39 @@ std::shared_ptr GaussDBforNoSQLClient::li return localVarResult; } +std::shared_ptr GaussDBforNoSQLClient::listInstanceSessions(ListInstanceSessionsRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/sessions"; + + 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.nodeIdIsSet()) { + localVarQueryParams["node_id"] = parameterToString(request.getNodeId()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBforNoSQLMeta::genRequestDefForListInstanceSessions()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} std::shared_ptr GaussDBforNoSQLClient::listInstanceTags(ListInstanceTagsRequest &request) { std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/tags"; @@ -3259,6 +3411,48 @@ std::shared_ptr GaussDBforNoSQLClient::saveLtsConfigs(Sa return localVarResult; } +std::shared_ptr GaussDBforNoSQLClient::saveRedisDisabledCommands(SaveRedisDisabledCommandsRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/redis/instances/{instance_id}/disabled-commands"; + + 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; + 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, GaussDBforNoSQLMeta::genRequestDefForSaveRedisDisabledCommands()); + + 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 GaussDBforNoSQLClient::setAutoEnlargePolicy(SetAutoEnlargePolicyRequest &request) { std::string localVarPath = "/v3/{project_id}/instances/disk-auto-expansion"; @@ -3342,6 +3536,47 @@ std::shared_ptr GaussDBforNoSQLClient::setBackupPolicy( return localVarResult; } +std::shared_ptr GaussDBforNoSQLClient::setDisasterRecoverySettings(SetDisasterRecoverySettingsRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/instances/disaster-recovery/settings"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + + 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; + 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("PUT", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBforNoSQLMeta::genRequestDefForSetDisasterRecoverySettings()); + + 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 GaussDBforNoSQLClient::setInstanceDataDump(SetInstanceDataDumpRequest &request) { std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/data-dump"; @@ -3768,6 +4003,44 @@ std::shared_ptr GaussDBforNoSQLClient::showConf return localVarResult; } +std::shared_ptr GaussDBforNoSQLClient::showDisasterRecoverySettings(ShowDisasterRecoverySettingsRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/instances/disaster-recovery/settings"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + if (request.instanceIdIsSet()) { + localVarQueryParams["instance_id"] = parameterToString(request.getInstanceId()); + } + if (request.offsetIsSet()) { + localVarQueryParams["offset"] = parameterToString(request.getOffset()); + } + if (request.limitIsSet()) { + localVarQueryParams["limit"] = parameterToString(request.getLimit()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBforNoSQLMeta::genRequestDefForShowDisasterRecoverySettings()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} std::shared_ptr GaussDBforNoSQLClient::showElbIpGroup(ShowElbIpGroupRequest &request) { std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/lb/access-control"; @@ -4218,6 +4491,81 @@ std::shared_ptr GaussDBforNoSQLClient::showRedisBigKey return localVarResult; } +std::shared_ptr GaussDBforNoSQLClient::showRedisDisabledCommands(ShowRedisDisabledCommandsRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/redis/instances/{instance_id}/disabled-commands"; + + 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.typeIsSet()) { + localVarQueryParams["type"] = parameterToString(request.getType()); + } + if (request.offsetIsSet()) { + localVarQueryParams["offset"] = parameterToString(request.getOffset()); + } + if (request.limitIsSet()) { + localVarQueryParams["limit"] = parameterToString(request.getLimit()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBforNoSQLMeta::genRequestDefForShowRedisDisabledCommands()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GaussDBforNoSQLClient::showRedisHotKeys(ShowRedisHotKeysRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/hot-keys"; + + 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.offsetIsSet()) { + localVarQueryParams["offset"] = parameterToString(request.getOffset()); + } + if (request.limitIsSet()) { + localVarQueryParams["limit"] = parameterToString(request.getLimit()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBforNoSQLMeta::genRequestDefForShowRedisHotKeys()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} std::shared_ptr GaussDBforNoSQLClient::showRedisPitrInfo(ShowRedisPitrInfoRequest &request) { std::string localVarPath = "/v3/{project_id}/redis/instances/{instance_id}/pitr"; @@ -4500,6 +4848,36 @@ std::shared_ptr GaussDBforNoSQLClient::switchIpGroup(Swit return localVarResult; } +std::shared_ptr GaussDBforNoSQLClient::switchOver(SwitchOverRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/instance/{instance_id}/switchover"; + + 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("PUT", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBforNoSQLMeta::genRequestDefForSwitchOver()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} std::shared_ptr GaussDBforNoSQLClient::switchSecondLevelMonitoring(SwitchSecondLevelMonitoringRequest &request) { std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/monitoring-by-seconds/switch"; diff --git a/gaussdbfornosql/src/v3/GaussDBforNoSQLMeta.cpp b/gaussdbfornosql/src/v3/GaussDBforNoSQLMeta.cpp index 74e78830c..cbb7d2ac3 100644 --- a/gaussdbfornosql/src/v3/GaussDBforNoSQLMeta.cpp +++ b/gaussdbfornosql/src/v3/GaussDBforNoSQLMeta.cpp @@ -26,6 +26,20 @@ HttpRequestDef GaussDBforNoSQLMeta::genRequestDefForApplyConfigurationToInstance return reqDefBuilder; } +HttpRequestDef GaussDBforNoSQLMeta::genRequestDefForBatchDeleteManualBackup() { + 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 GaussDBforNoSQLMeta::genRequestDefForBatchTagAction() { HttpRequestDef reqDefBuilder; FieldDef bodyParam; @@ -67,6 +81,14 @@ HttpRequestDef GaussDBforNoSQLMeta::genRequestDefForCheckWeekPassword() { return reqDefBuilder; } +HttpRequestDef GaussDBforNoSQLMeta::genRequestDefForClearInstanceSessions() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("NodeId") + .withJsonTag("node_id") + .withLocationType(Query_)); + return reqDefBuilder; +} + HttpRequestDef GaussDBforNoSQLMeta::genRequestDefForCompareConfiguration() { HttpRequestDef reqDefBuilder; FieldDef bodyParam; @@ -236,6 +258,15 @@ HttpRequestDef GaussDBforNoSQLMeta::genRequestDefForDeleteLtsConfigs() { return reqDefBuilder; } +HttpRequestDef GaussDBforNoSQLMeta::genRequestDefForDeleteRedisDisabledCommands() { + HttpRequestDef reqDefBuilder; + FieldDef bodyParam; + reqDefBuilder.withRequestField(bodyParam. + withName("Body"). + withLocationType(Body_)); + return reqDefBuilder; +} + HttpRequestDef GaussDBforNoSQLMeta::genRequestDefForExpandInstanceNode() { HttpRequestDef reqDefBuilder; FieldDef bodyParam; @@ -435,6 +466,14 @@ HttpRequestDef GaussDBforNoSQLMeta::genRequestDefForListInstanceMaintenanceWindo return reqDefBuilder; } +HttpRequestDef GaussDBforNoSQLMeta::genRequestDefForListInstanceSessions() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("NodeId") + .withJsonTag("node_id") + .withLocationType(Query_)); + return reqDefBuilder; +} + HttpRequestDef GaussDBforNoSQLMeta::genRequestDefForListInstanceTags() { HttpRequestDef reqDefBuilder; return reqDefBuilder; @@ -878,6 +917,15 @@ HttpRequestDef GaussDBforNoSQLMeta::genRequestDefForSaveLtsConfigs() { return reqDefBuilder; } +HttpRequestDef GaussDBforNoSQLMeta::genRequestDefForSaveRedisDisabledCommands() { + HttpRequestDef reqDefBuilder; + FieldDef bodyParam; + reqDefBuilder.withRequestField(bodyParam. + withName("Body"). + withLocationType(Body_)); + return reqDefBuilder; +} + HttpRequestDef GaussDBforNoSQLMeta::genRequestDefForSetAutoEnlargePolicy() { HttpRequestDef reqDefBuilder; FieldDef bodyParam; @@ -896,6 +944,15 @@ HttpRequestDef GaussDBforNoSQLMeta::genRequestDefForSetBackupPolicy() { return reqDefBuilder; } +HttpRequestDef GaussDBforNoSQLMeta::genRequestDefForSetDisasterRecoverySettings() { + HttpRequestDef reqDefBuilder; + FieldDef bodyParam; + reqDefBuilder.withRequestField(bodyParam. + withName("Body"). + withLocationType(Body_)); + return reqDefBuilder; +} + HttpRequestDef GaussDBforNoSQLMeta::genRequestDefForSetInstanceDataDump() { HttpRequestDef reqDefBuilder; FieldDef bodyParam; @@ -1026,6 +1083,20 @@ HttpRequestDef GaussDBforNoSQLMeta::genRequestDefForShowConfigurationDetail() { return reqDefBuilder; } +HttpRequestDef GaussDBforNoSQLMeta::genRequestDefForShowDisasterRecoverySettings() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("InstanceId") + .withJsonTag("instance_id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Offset") + .withJsonTag("offset") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Limit") + .withJsonTag("limit") + .withLocationType(Query_)); + return reqDefBuilder; +} + HttpRequestDef GaussDBforNoSQLMeta::genRequestDefForShowElbIpGroup() { HttpRequestDef reqDefBuilder; return reqDefBuilder; @@ -1148,6 +1219,31 @@ HttpRequestDef GaussDBforNoSQLMeta::genRequestDefForShowRedisBigKeys() { return reqDefBuilder; } +HttpRequestDef GaussDBforNoSQLMeta::genRequestDefForShowRedisDisabledCommands() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("Type") + .withJsonTag("type") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Offset") + .withJsonTag("offset") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Limit") + .withJsonTag("limit") + .withLocationType(Query_)); + return reqDefBuilder; +} + +HttpRequestDef GaussDBforNoSQLMeta::genRequestDefForShowRedisHotKeys() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("Offset") + .withJsonTag("offset") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Limit") + .withJsonTag("limit") + .withLocationType(Query_)); + return reqDefBuilder; +} + HttpRequestDef GaussDBforNoSQLMeta::genRequestDefForShowRedisPitrInfo() { HttpRequestDef reqDefBuilder; return reqDefBuilder; @@ -1206,6 +1302,11 @@ HttpRequestDef GaussDBforNoSQLMeta::genRequestDefForSwitchIpGroup() { return reqDefBuilder; } +HttpRequestDef GaussDBforNoSQLMeta::genRequestDefForSwitchOver() { + HttpRequestDef reqDefBuilder; + return reqDefBuilder; +} + HttpRequestDef GaussDBforNoSQLMeta::genRequestDefForSwitchSecondLevelMonitoring() { HttpRequestDef reqDefBuilder; FieldDef bodyParam; diff --git a/gaussdbfornosql/src/v3/model/BatchDeleteManualBackupRequest.cpp b/gaussdbfornosql/src/v3/model/BatchDeleteManualBackupRequest.cpp new file mode 100644 index 000000000..08398711d --- /dev/null +++ b/gaussdbfornosql/src/v3/model/BatchDeleteManualBackupRequest.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/gaussdbfornosql/v3/model/BatchDeleteManualBackupRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + + + + +BatchDeleteManualBackupRequest::BatchDeleteManualBackupRequest() +{ + xLanguage_ = ""; + xLanguageIsSet_ = false; + bodyIsSet_ = false; +} + +BatchDeleteManualBackupRequest::~BatchDeleteManualBackupRequest() = default; + +void BatchDeleteManualBackupRequest::validate() +{ +} + +web::json::value BatchDeleteManualBackupRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + 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 BatchDeleteManualBackupRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + 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()) + { + BatchDeleteManualBackupRequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string BatchDeleteManualBackupRequest::getXLanguage() const +{ + return xLanguage_; +} + +void BatchDeleteManualBackupRequest::setXLanguage(const std::string& value) +{ + xLanguage_ = value; + xLanguageIsSet_ = true; +} + +bool BatchDeleteManualBackupRequest::xLanguageIsSet() const +{ + return xLanguageIsSet_; +} + +void BatchDeleteManualBackupRequest::unsetxLanguage() +{ + xLanguageIsSet_ = false; +} + +BatchDeleteManualBackupRequestBody BatchDeleteManualBackupRequest::getBody() const +{ + return body_; +} + +void BatchDeleteManualBackupRequest::setBody(const BatchDeleteManualBackupRequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool BatchDeleteManualBackupRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void BatchDeleteManualBackupRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbfornosql/src/v3/model/BatchDeleteManualBackupRequestBody.cpp b/gaussdbfornosql/src/v3/model/BatchDeleteManualBackupRequestBody.cpp new file mode 100644 index 000000000..6f764ee34 --- /dev/null +++ b/gaussdbfornosql/src/v3/model/BatchDeleteManualBackupRequestBody.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/gaussdbfornosql/v3/model/BatchDeleteManualBackupRequestBody.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + + + + +BatchDeleteManualBackupRequestBody::BatchDeleteManualBackupRequestBody() +{ + backupIdsIsSet_ = false; +} + +BatchDeleteManualBackupRequestBody::~BatchDeleteManualBackupRequestBody() = default; + +void BatchDeleteManualBackupRequestBody::validate() +{ +} + +web::json::value BatchDeleteManualBackupRequestBody::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(backupIdsIsSet_) { + val[utility::conversions::to_string_t("backup_ids")] = ModelBase::toJson(backupIds_); + } + + return val; +} +bool BatchDeleteManualBackupRequestBody::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("backup_ids"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("backup_ids")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBackupIds(refVal); + } + } + return ok; +} + + +std::vector& BatchDeleteManualBackupRequestBody::getBackupIds() +{ + return backupIds_; +} + +void BatchDeleteManualBackupRequestBody::setBackupIds(const std::vector& value) +{ + backupIds_ = value; + backupIdsIsSet_ = true; +} + +bool BatchDeleteManualBackupRequestBody::backupIdsIsSet() const +{ + return backupIdsIsSet_; +} + +void BatchDeleteManualBackupRequestBody::unsetbackupIds() +{ + backupIdsIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbfornosql/src/v3/model/BatchDeleteManualBackupResponse.cpp b/gaussdbfornosql/src/v3/model/BatchDeleteManualBackupResponse.cpp new file mode 100644 index 000000000..9ab4c8dd6 --- /dev/null +++ b/gaussdbfornosql/src/v3/model/BatchDeleteManualBackupResponse.cpp @@ -0,0 +1,44 @@ + + +#include "huaweicloud/gaussdbfornosql/v3/model/BatchDeleteManualBackupResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + + + + +BatchDeleteManualBackupResponse::BatchDeleteManualBackupResponse() +{ +} + +BatchDeleteManualBackupResponse::~BatchDeleteManualBackupResponse() = default; + +void BatchDeleteManualBackupResponse::validate() +{ +} + +web::json::value BatchDeleteManualBackupResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + + return val; +} +bool BatchDeleteManualBackupResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + return ok; +} + + +} +} +} +} +} + + diff --git a/gaussdbfornosql/src/v3/model/ClearInstanceSessionsRequest.cpp b/gaussdbfornosql/src/v3/model/ClearInstanceSessionsRequest.cpp new file mode 100644 index 000000000..f9b065c81 --- /dev/null +++ b/gaussdbfornosql/src/v3/model/ClearInstanceSessionsRequest.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/gaussdbfornosql/v3/model/ClearInstanceSessionsRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + + + + +ClearInstanceSessionsRequest::ClearInstanceSessionsRequest() +{ + instanceId_ = ""; + instanceIdIsSet_ = false; + nodeId_ = ""; + nodeIdIsSet_ = false; +} + +ClearInstanceSessionsRequest::~ClearInstanceSessionsRequest() = default; + +void ClearInstanceSessionsRequest::validate() +{ +} + +web::json::value ClearInstanceSessionsRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + if(nodeIdIsSet_) { + val[utility::conversions::to_string_t("node_id")] = ModelBase::toJson(nodeId_); + } + + return val; +} +bool ClearInstanceSessionsRequest::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("node_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("node_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setNodeId(refVal); + } + } + return ok; +} + + +std::string ClearInstanceSessionsRequest::getInstanceId() const +{ + return instanceId_; +} + +void ClearInstanceSessionsRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool ClearInstanceSessionsRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void ClearInstanceSessionsRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +std::string ClearInstanceSessionsRequest::getNodeId() const +{ + return nodeId_; +} + +void ClearInstanceSessionsRequest::setNodeId(const std::string& value) +{ + nodeId_ = value; + nodeIdIsSet_ = true; +} + +bool ClearInstanceSessionsRequest::nodeIdIsSet() const +{ + return nodeIdIsSet_; +} + +void ClearInstanceSessionsRequest::unsetnodeId() +{ + nodeIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbfornosql/src/v3/model/ClearInstanceSessionsResponse.cpp b/gaussdbfornosql/src/v3/model/ClearInstanceSessionsResponse.cpp new file mode 100644 index 000000000..5ab24397b --- /dev/null +++ b/gaussdbfornosql/src/v3/model/ClearInstanceSessionsResponse.cpp @@ -0,0 +1,44 @@ + + +#include "huaweicloud/gaussdbfornosql/v3/model/ClearInstanceSessionsResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + + + + +ClearInstanceSessionsResponse::ClearInstanceSessionsResponse() +{ +} + +ClearInstanceSessionsResponse::~ClearInstanceSessionsResponse() = default; + +void ClearInstanceSessionsResponse::validate() +{ +} + +web::json::value ClearInstanceSessionsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + + return val; +} +bool ClearInstanceSessionsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + return ok; +} + + +} +} +} +} +} + + diff --git a/gaussdbfornosql/src/v3/model/DeleteRedisDisabledCommandsRequest.cpp b/gaussdbfornosql/src/v3/model/DeleteRedisDisabledCommandsRequest.cpp new file mode 100644 index 000000000..c8249d596 --- /dev/null +++ b/gaussdbfornosql/src/v3/model/DeleteRedisDisabledCommandsRequest.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/gaussdbfornosql/v3/model/DeleteRedisDisabledCommandsRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + + + + +DeleteRedisDisabledCommandsRequest::DeleteRedisDisabledCommandsRequest() +{ + instanceId_ = ""; + instanceIdIsSet_ = false; + bodyIsSet_ = false; +} + +DeleteRedisDisabledCommandsRequest::~DeleteRedisDisabledCommandsRequest() = default; + +void DeleteRedisDisabledCommandsRequest::validate() +{ +} + +web::json::value DeleteRedisDisabledCommandsRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + + return val; +} +bool DeleteRedisDisabledCommandsRequest::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("body"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("body")); + if(!fieldValue.is_null()) + { + DeleteRedisDisabledCommandsRequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string DeleteRedisDisabledCommandsRequest::getInstanceId() const +{ + return instanceId_; +} + +void DeleteRedisDisabledCommandsRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool DeleteRedisDisabledCommandsRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void DeleteRedisDisabledCommandsRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +DeleteRedisDisabledCommandsRequestBody DeleteRedisDisabledCommandsRequest::getBody() const +{ + return body_; +} + +void DeleteRedisDisabledCommandsRequest::setBody(const DeleteRedisDisabledCommandsRequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool DeleteRedisDisabledCommandsRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void DeleteRedisDisabledCommandsRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbfornosql/src/v3/model/DeleteRedisDisabledCommandsRequestBody.cpp b/gaussdbfornosql/src/v3/model/DeleteRedisDisabledCommandsRequestBody.cpp new file mode 100644 index 000000000..9871859f6 --- /dev/null +++ b/gaussdbfornosql/src/v3/model/DeleteRedisDisabledCommandsRequestBody.cpp @@ -0,0 +1,147 @@ + + +#include "huaweicloud/gaussdbfornosql/v3/model/DeleteRedisDisabledCommandsRequestBody.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + + + + +DeleteRedisDisabledCommandsRequestBody::DeleteRedisDisabledCommandsRequestBody() +{ + disabledType_ = ""; + disabledTypeIsSet_ = false; + commandsIsSet_ = false; + keysIsSet_ = false; +} + +DeleteRedisDisabledCommandsRequestBody::~DeleteRedisDisabledCommandsRequestBody() = default; + +void DeleteRedisDisabledCommandsRequestBody::validate() +{ +} + +web::json::value DeleteRedisDisabledCommandsRequestBody::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(disabledTypeIsSet_) { + val[utility::conversions::to_string_t("disabled_type")] = ModelBase::toJson(disabledType_); + } + if(commandsIsSet_) { + val[utility::conversions::to_string_t("commands")] = ModelBase::toJson(commands_); + } + if(keysIsSet_) { + val[utility::conversions::to_string_t("keys")] = ModelBase::toJson(keys_); + } + + return val; +} +bool DeleteRedisDisabledCommandsRequestBody::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("disabled_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("disabled_type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDisabledType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("commands"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("commands")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCommands(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("keys"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("keys")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setKeys(refVal); + } + } + return ok; +} + + +std::string DeleteRedisDisabledCommandsRequestBody::getDisabledType() const +{ + return disabledType_; +} + +void DeleteRedisDisabledCommandsRequestBody::setDisabledType(const std::string& value) +{ + disabledType_ = value; + disabledTypeIsSet_ = true; +} + +bool DeleteRedisDisabledCommandsRequestBody::disabledTypeIsSet() const +{ + return disabledTypeIsSet_; +} + +void DeleteRedisDisabledCommandsRequestBody::unsetdisabledType() +{ + disabledTypeIsSet_ = false; +} + +std::vector& DeleteRedisDisabledCommandsRequestBody::getCommands() +{ + return commands_; +} + +void DeleteRedisDisabledCommandsRequestBody::setCommands(const std::vector& value) +{ + commands_ = value; + commandsIsSet_ = true; +} + +bool DeleteRedisDisabledCommandsRequestBody::commandsIsSet() const +{ + return commandsIsSet_; +} + +void DeleteRedisDisabledCommandsRequestBody::unsetcommands() +{ + commandsIsSet_ = false; +} + +std::vector& DeleteRedisDisabledCommandsRequestBody::getKeys() +{ + return keys_; +} + +void DeleteRedisDisabledCommandsRequestBody::setKeys(const std::vector& value) +{ + keys_ = value; + keysIsSet_ = true; +} + +bool DeleteRedisDisabledCommandsRequestBody::keysIsSet() const +{ + return keysIsSet_; +} + +void DeleteRedisDisabledCommandsRequestBody::unsetkeys() +{ + keysIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbfornosql/src/v3/model/DeleteRedisDisabledCommandsResponse.cpp b/gaussdbfornosql/src/v3/model/DeleteRedisDisabledCommandsResponse.cpp new file mode 100644 index 000000000..f87121096 --- /dev/null +++ b/gaussdbfornosql/src/v3/model/DeleteRedisDisabledCommandsResponse.cpp @@ -0,0 +1,44 @@ + + +#include "huaweicloud/gaussdbfornosql/v3/model/DeleteRedisDisabledCommandsResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + + + + +DeleteRedisDisabledCommandsResponse::DeleteRedisDisabledCommandsResponse() +{ +} + +DeleteRedisDisabledCommandsResponse::~DeleteRedisDisabledCommandsResponse() = default; + +void DeleteRedisDisabledCommandsResponse::validate() +{ +} + +web::json::value DeleteRedisDisabledCommandsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + + return val; +} +bool DeleteRedisDisabledCommandsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + return ok; +} + + +} +} +} +} +} + + diff --git a/gaussdbfornosql/src/v3/model/HotKeysInfoResponseBody.cpp b/gaussdbfornosql/src/v3/model/HotKeysInfoResponseBody.cpp new file mode 100644 index 000000000..80a6fc493 --- /dev/null +++ b/gaussdbfornosql/src/v3/model/HotKeysInfoResponseBody.cpp @@ -0,0 +1,219 @@ + + +#include "huaweicloud/gaussdbfornosql/v3/model/HotKeysInfoResponseBody.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + + + + +HotKeysInfoResponseBody::HotKeysInfoResponseBody() +{ + name_ = ""; + nameIsSet_ = false; + type_ = ""; + typeIsSet_ = false; + command_ = ""; + commandIsSet_ = false; + qps_ = 0; + qpsIsSet_ = false; + dbId_ = 0; + dbIdIsSet_ = false; +} + +HotKeysInfoResponseBody::~HotKeysInfoResponseBody() = default; + +void HotKeysInfoResponseBody::validate() +{ +} + +web::json::value HotKeysInfoResponseBody::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(nameIsSet_) { + val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); + } + if(typeIsSet_) { + val[utility::conversions::to_string_t("type")] = ModelBase::toJson(type_); + } + if(commandIsSet_) { + val[utility::conversions::to_string_t("command")] = ModelBase::toJson(command_); + } + if(qpsIsSet_) { + val[utility::conversions::to_string_t("qps")] = ModelBase::toJson(qps_); + } + if(dbIdIsSet_) { + val[utility::conversions::to_string_t("db_id")] = ModelBase::toJson(dbId_); + } + + return val; +} +bool HotKeysInfoResponseBody::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("type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("command"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("command")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCommand(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("qps"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("qps")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setQps(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("db_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("db_id")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDbId(refVal); + } + } + return ok; +} + + +std::string HotKeysInfoResponseBody::getName() const +{ + return name_; +} + +void HotKeysInfoResponseBody::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool HotKeysInfoResponseBody::nameIsSet() const +{ + return nameIsSet_; +} + +void HotKeysInfoResponseBody::unsetname() +{ + nameIsSet_ = false; +} + +std::string HotKeysInfoResponseBody::getType() const +{ + return type_; +} + +void HotKeysInfoResponseBody::setType(const std::string& value) +{ + type_ = value; + typeIsSet_ = true; +} + +bool HotKeysInfoResponseBody::typeIsSet() const +{ + return typeIsSet_; +} + +void HotKeysInfoResponseBody::unsettype() +{ + typeIsSet_ = false; +} + +std::string HotKeysInfoResponseBody::getCommand() const +{ + return command_; +} + +void HotKeysInfoResponseBody::setCommand(const std::string& value) +{ + command_ = value; + commandIsSet_ = true; +} + +bool HotKeysInfoResponseBody::commandIsSet() const +{ + return commandIsSet_; +} + +void HotKeysInfoResponseBody::unsetcommand() +{ + commandIsSet_ = false; +} + +int32_t HotKeysInfoResponseBody::getQps() const +{ + return qps_; +} + +void HotKeysInfoResponseBody::setQps(int32_t value) +{ + qps_ = value; + qpsIsSet_ = true; +} + +bool HotKeysInfoResponseBody::qpsIsSet() const +{ + return qpsIsSet_; +} + +void HotKeysInfoResponseBody::unsetqps() +{ + qpsIsSet_ = false; +} + +int32_t HotKeysInfoResponseBody::getDbId() const +{ + return dbId_; +} + +void HotKeysInfoResponseBody::setDbId(int32_t value) +{ + dbId_ = value; + dbIdIsSet_ = true; +} + +bool HotKeysInfoResponseBody::dbIdIsSet() const +{ + return dbIdIsSet_; +} + +void HotKeysInfoResponseBody::unsetdbId() +{ + dbIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbfornosql/src/v3/model/ListInstanceSessionsRequest.cpp b/gaussdbfornosql/src/v3/model/ListInstanceSessionsRequest.cpp new file mode 100644 index 000000000..9ff34fc1e --- /dev/null +++ b/gaussdbfornosql/src/v3/model/ListInstanceSessionsRequest.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/gaussdbfornosql/v3/model/ListInstanceSessionsRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + + + + +ListInstanceSessionsRequest::ListInstanceSessionsRequest() +{ + instanceId_ = ""; + instanceIdIsSet_ = false; + nodeId_ = ""; + nodeIdIsSet_ = false; +} + +ListInstanceSessionsRequest::~ListInstanceSessionsRequest() = default; + +void ListInstanceSessionsRequest::validate() +{ +} + +web::json::value ListInstanceSessionsRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + if(nodeIdIsSet_) { + val[utility::conversions::to_string_t("node_id")] = ModelBase::toJson(nodeId_); + } + + return val; +} +bool ListInstanceSessionsRequest::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("node_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("node_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setNodeId(refVal); + } + } + return ok; +} + + +std::string ListInstanceSessionsRequest::getInstanceId() const +{ + return instanceId_; +} + +void ListInstanceSessionsRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool ListInstanceSessionsRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void ListInstanceSessionsRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +std::string ListInstanceSessionsRequest::getNodeId() const +{ + return nodeId_; +} + +void ListInstanceSessionsRequest::setNodeId(const std::string& value) +{ + nodeId_ = value; + nodeIdIsSet_ = true; +} + +bool ListInstanceSessionsRequest::nodeIdIsSet() const +{ + return nodeIdIsSet_; +} + +void ListInstanceSessionsRequest::unsetnodeId() +{ + nodeIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbfornosql/src/v3/model/ListInstanceSessionsResponse.cpp b/gaussdbfornosql/src/v3/model/ListInstanceSessionsResponse.cpp new file mode 100644 index 000000000..aab975d6e --- /dev/null +++ b/gaussdbfornosql/src/v3/model/ListInstanceSessionsResponse.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/gaussdbfornosql/v3/model/ListInstanceSessionsResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + + + + +ListInstanceSessionsResponse::ListInstanceSessionsResponse() +{ + nodeSessionsIsSet_ = false; +} + +ListInstanceSessionsResponse::~ListInstanceSessionsResponse() = default; + +void ListInstanceSessionsResponse::validate() +{ +} + +web::json::value ListInstanceSessionsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(nodeSessionsIsSet_) { + val[utility::conversions::to_string_t("node_sessions")] = ModelBase::toJson(nodeSessions_); + } + + return val; +} +bool ListInstanceSessionsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("node_sessions"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("node_sessions")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setNodeSessions(refVal); + } + } + return ok; +} + + +std::vector& ListInstanceSessionsResponse::getNodeSessions() +{ + return nodeSessions_; +} + +void ListInstanceSessionsResponse::setNodeSessions(const std::vector& value) +{ + nodeSessions_ = value; + nodeSessionsIsSet_ = true; +} + +bool ListInstanceSessionsResponse::nodeSessionsIsSet() const +{ + return nodeSessionsIsSet_; +} + +void ListInstanceSessionsResponse::unsetnodeSessions() +{ + nodeSessionsIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbfornosql/src/v3/model/ListNodeSessionsResult.cpp b/gaussdbfornosql/src/v3/model/ListNodeSessionsResult.cpp new file mode 100644 index 000000000..219eb9599 --- /dev/null +++ b/gaussdbfornosql/src/v3/model/ListNodeSessionsResult.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/gaussdbfornosql/v3/model/ListNodeSessionsResult.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + + + + +ListNodeSessionsResult::ListNodeSessionsResult() +{ + nodeId_ = ""; + nodeIdIsSet_ = false; + totalCount_ = 0; + totalCountIsSet_ = false; + sessionsIsSet_ = false; +} + +ListNodeSessionsResult::~ListNodeSessionsResult() = default; + +void ListNodeSessionsResult::validate() +{ +} + +web::json::value ListNodeSessionsResult::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(nodeIdIsSet_) { + val[utility::conversions::to_string_t("node_id")] = ModelBase::toJson(nodeId_); + } + if(totalCountIsSet_) { + val[utility::conversions::to_string_t("total_count")] = ModelBase::toJson(totalCount_); + } + if(sessionsIsSet_) { + val[utility::conversions::to_string_t("sessions")] = ModelBase::toJson(sessions_); + } + + return val; +} +bool ListNodeSessionsResult::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("node_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("node_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setNodeId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("total_count"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("total_count")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTotalCount(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("sessions"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sessions")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSessions(refVal); + } + } + return ok; +} + + +std::string ListNodeSessionsResult::getNodeId() const +{ + return nodeId_; +} + +void ListNodeSessionsResult::setNodeId(const std::string& value) +{ + nodeId_ = value; + nodeIdIsSet_ = true; +} + +bool ListNodeSessionsResult::nodeIdIsSet() const +{ + return nodeIdIsSet_; +} + +void ListNodeSessionsResult::unsetnodeId() +{ + nodeIdIsSet_ = false; +} + +int32_t ListNodeSessionsResult::getTotalCount() const +{ + return totalCount_; +} + +void ListNodeSessionsResult::setTotalCount(int32_t value) +{ + totalCount_ = value; + totalCountIsSet_ = true; +} + +bool ListNodeSessionsResult::totalCountIsSet() const +{ + return totalCountIsSet_; +} + +void ListNodeSessionsResult::unsettotalCount() +{ + totalCountIsSet_ = false; +} + +std::vector& ListNodeSessionsResult::getSessions() +{ + return sessions_; +} + +void ListNodeSessionsResult::setSessions(const std::vector& value) +{ + sessions_ = value; + sessionsIsSet_ = true; +} + +bool ListNodeSessionsResult::sessionsIsSet() const +{ + return sessionsIsSet_; +} + +void ListNodeSessionsResult::unsetsessions() +{ + sessionsIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbfornosql/src/v3/model/ListNodeSessionsResult_sessions.cpp b/gaussdbfornosql/src/v3/model/ListNodeSessionsResult_sessions.cpp new file mode 100644 index 000000000..ff986179c --- /dev/null +++ b/gaussdbfornosql/src/v3/model/ListNodeSessionsResult_sessions.cpp @@ -0,0 +1,429 @@ + + +#include "huaweicloud/gaussdbfornosql/v3/model/ListNodeSessionsResult_sessions.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + + + + +ListNodeSessionsResult_sessions::ListNodeSessionsResult_sessions() +{ + id_ = ""; + idIsSet_ = false; + name_ = ""; + nameIsSet_ = false; + cmd_ = ""; + cmdIsSet_ = false; + age_ = ""; + ageIsSet_ = false; + idle_ = ""; + idleIsSet_ = false; + db_ = ""; + dbIsSet_ = false; + addr_ = ""; + addrIsSet_ = false; + fd_ = ""; + fdIsSet_ = false; + sub_ = ""; + subIsSet_ = false; + psub_ = ""; + psubIsSet_ = false; + multi_ = ""; + multiIsSet_ = false; +} + +ListNodeSessionsResult_sessions::~ListNodeSessionsResult_sessions() = default; + +void ListNodeSessionsResult_sessions::validate() +{ +} + +web::json::value ListNodeSessionsResult_sessions::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(idIsSet_) { + val[utility::conversions::to_string_t("id")] = ModelBase::toJson(id_); + } + if(nameIsSet_) { + val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); + } + if(cmdIsSet_) { + val[utility::conversions::to_string_t("cmd")] = ModelBase::toJson(cmd_); + } + if(ageIsSet_) { + val[utility::conversions::to_string_t("age")] = ModelBase::toJson(age_); + } + if(idleIsSet_) { + val[utility::conversions::to_string_t("idle")] = ModelBase::toJson(idle_); + } + if(dbIsSet_) { + val[utility::conversions::to_string_t("db")] = ModelBase::toJson(db_); + } + if(addrIsSet_) { + val[utility::conversions::to_string_t("addr")] = ModelBase::toJson(addr_); + } + if(fdIsSet_) { + val[utility::conversions::to_string_t("fd")] = ModelBase::toJson(fd_); + } + if(subIsSet_) { + val[utility::conversions::to_string_t("sub")] = ModelBase::toJson(sub_); + } + if(psubIsSet_) { + val[utility::conversions::to_string_t("psub")] = ModelBase::toJson(psub_); + } + if(multiIsSet_) { + val[utility::conversions::to_string_t("multi")] = ModelBase::toJson(multi_); + } + + return val; +} +bool ListNodeSessionsResult_sessions::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setId(refVal); + } + } + 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("cmd"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("cmd")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCmd(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("age"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("age")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAge(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("idle"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("idle")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIdle(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("db"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("db")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDb(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("addr"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("addr")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAddr(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("fd"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("fd")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFd(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("sub"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sub")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSub(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("psub"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("psub")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPsub(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("multi"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("multi")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setMulti(refVal); + } + } + return ok; +} + + +std::string ListNodeSessionsResult_sessions::getId() const +{ + return id_; +} + +void ListNodeSessionsResult_sessions::setId(const std::string& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool ListNodeSessionsResult_sessions::idIsSet() const +{ + return idIsSet_; +} + +void ListNodeSessionsResult_sessions::unsetid() +{ + idIsSet_ = false; +} + +std::string ListNodeSessionsResult_sessions::getName() const +{ + return name_; +} + +void ListNodeSessionsResult_sessions::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool ListNodeSessionsResult_sessions::nameIsSet() const +{ + return nameIsSet_; +} + +void ListNodeSessionsResult_sessions::unsetname() +{ + nameIsSet_ = false; +} + +std::string ListNodeSessionsResult_sessions::getCmd() const +{ + return cmd_; +} + +void ListNodeSessionsResult_sessions::setCmd(const std::string& value) +{ + cmd_ = value; + cmdIsSet_ = true; +} + +bool ListNodeSessionsResult_sessions::cmdIsSet() const +{ + return cmdIsSet_; +} + +void ListNodeSessionsResult_sessions::unsetcmd() +{ + cmdIsSet_ = false; +} + +std::string ListNodeSessionsResult_sessions::getAge() const +{ + return age_; +} + +void ListNodeSessionsResult_sessions::setAge(const std::string& value) +{ + age_ = value; + ageIsSet_ = true; +} + +bool ListNodeSessionsResult_sessions::ageIsSet() const +{ + return ageIsSet_; +} + +void ListNodeSessionsResult_sessions::unsetage() +{ + ageIsSet_ = false; +} + +std::string ListNodeSessionsResult_sessions::getIdle() const +{ + return idle_; +} + +void ListNodeSessionsResult_sessions::setIdle(const std::string& value) +{ + idle_ = value; + idleIsSet_ = true; +} + +bool ListNodeSessionsResult_sessions::idleIsSet() const +{ + return idleIsSet_; +} + +void ListNodeSessionsResult_sessions::unsetidle() +{ + idleIsSet_ = false; +} + +std::string ListNodeSessionsResult_sessions::getDb() const +{ + return db_; +} + +void ListNodeSessionsResult_sessions::setDb(const std::string& value) +{ + db_ = value; + dbIsSet_ = true; +} + +bool ListNodeSessionsResult_sessions::dbIsSet() const +{ + return dbIsSet_; +} + +void ListNodeSessionsResult_sessions::unsetdb() +{ + dbIsSet_ = false; +} + +std::string ListNodeSessionsResult_sessions::getAddr() const +{ + return addr_; +} + +void ListNodeSessionsResult_sessions::setAddr(const std::string& value) +{ + addr_ = value; + addrIsSet_ = true; +} + +bool ListNodeSessionsResult_sessions::addrIsSet() const +{ + return addrIsSet_; +} + +void ListNodeSessionsResult_sessions::unsetaddr() +{ + addrIsSet_ = false; +} + +std::string ListNodeSessionsResult_sessions::getFd() const +{ + return fd_; +} + +void ListNodeSessionsResult_sessions::setFd(const std::string& value) +{ + fd_ = value; + fdIsSet_ = true; +} + +bool ListNodeSessionsResult_sessions::fdIsSet() const +{ + return fdIsSet_; +} + +void ListNodeSessionsResult_sessions::unsetfd() +{ + fdIsSet_ = false; +} + +std::string ListNodeSessionsResult_sessions::getSub() const +{ + return sub_; +} + +void ListNodeSessionsResult_sessions::setSub(const std::string& value) +{ + sub_ = value; + subIsSet_ = true; +} + +bool ListNodeSessionsResult_sessions::subIsSet() const +{ + return subIsSet_; +} + +void ListNodeSessionsResult_sessions::unsetsub() +{ + subIsSet_ = false; +} + +std::string ListNodeSessionsResult_sessions::getPsub() const +{ + return psub_; +} + +void ListNodeSessionsResult_sessions::setPsub(const std::string& value) +{ + psub_ = value; + psubIsSet_ = true; +} + +bool ListNodeSessionsResult_sessions::psubIsSet() const +{ + return psubIsSet_; +} + +void ListNodeSessionsResult_sessions::unsetpsub() +{ + psubIsSet_ = false; +} + +std::string ListNodeSessionsResult_sessions::getMulti() const +{ + return multi_; +} + +void ListNodeSessionsResult_sessions::setMulti(const std::string& value) +{ + multi_ = value; + multiIsSet_ = true; +} + +bool ListNodeSessionsResult_sessions::multiIsSet() const +{ + return multiIsSet_; +} + +void ListNodeSessionsResult_sessions::unsetmulti() +{ + multiIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbfornosql/src/v3/model/RedisDisabledCommandsDetail.cpp b/gaussdbfornosql/src/v3/model/RedisDisabledCommandsDetail.cpp new file mode 100644 index 000000000..b8bb3be13 --- /dev/null +++ b/gaussdbfornosql/src/v3/model/RedisDisabledCommandsDetail.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/gaussdbfornosql/v3/model/RedisDisabledCommandsDetail.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + + + + +RedisDisabledCommandsDetail::RedisDisabledCommandsDetail() +{ + dbId_ = ""; + dbIdIsSet_ = false; + key_ = ""; + keyIsSet_ = false; + commandsIsSet_ = false; +} + +RedisDisabledCommandsDetail::~RedisDisabledCommandsDetail() = default; + +void RedisDisabledCommandsDetail::validate() +{ +} + +web::json::value RedisDisabledCommandsDetail::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(dbIdIsSet_) { + val[utility::conversions::to_string_t("db_id")] = ModelBase::toJson(dbId_); + } + if(keyIsSet_) { + val[utility::conversions::to_string_t("key")] = ModelBase::toJson(key_); + } + if(commandsIsSet_) { + val[utility::conversions::to_string_t("commands")] = ModelBase::toJson(commands_); + } + + return val; +} +bool RedisDisabledCommandsDetail::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("db_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("db_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDbId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("key"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("key")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setKey(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("commands"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("commands")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCommands(refVal); + } + } + return ok; +} + + +std::string RedisDisabledCommandsDetail::getDbId() const +{ + return dbId_; +} + +void RedisDisabledCommandsDetail::setDbId(const std::string& value) +{ + dbId_ = value; + dbIdIsSet_ = true; +} + +bool RedisDisabledCommandsDetail::dbIdIsSet() const +{ + return dbIdIsSet_; +} + +void RedisDisabledCommandsDetail::unsetdbId() +{ + dbIdIsSet_ = false; +} + +std::string RedisDisabledCommandsDetail::getKey() const +{ + return key_; +} + +void RedisDisabledCommandsDetail::setKey(const std::string& value) +{ + key_ = value; + keyIsSet_ = true; +} + +bool RedisDisabledCommandsDetail::keyIsSet() const +{ + return keyIsSet_; +} + +void RedisDisabledCommandsDetail::unsetkey() +{ + keyIsSet_ = false; +} + +std::vector& RedisDisabledCommandsDetail::getCommands() +{ + return commands_; +} + +void RedisDisabledCommandsDetail::setCommands(const std::vector& value) +{ + commands_ = value; + commandsIsSet_ = true; +} + +bool RedisDisabledCommandsDetail::commandsIsSet() const +{ + return commandsIsSet_; +} + +void RedisDisabledCommandsDetail::unsetcommands() +{ + commandsIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbfornosql/src/v3/model/SaveRedisDisabledCommandsRequest.cpp b/gaussdbfornosql/src/v3/model/SaveRedisDisabledCommandsRequest.cpp new file mode 100644 index 000000000..229b44e29 --- /dev/null +++ b/gaussdbfornosql/src/v3/model/SaveRedisDisabledCommandsRequest.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/gaussdbfornosql/v3/model/SaveRedisDisabledCommandsRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + + + + +SaveRedisDisabledCommandsRequest::SaveRedisDisabledCommandsRequest() +{ + instanceId_ = ""; + instanceIdIsSet_ = false; + bodyIsSet_ = false; +} + +SaveRedisDisabledCommandsRequest::~SaveRedisDisabledCommandsRequest() = default; + +void SaveRedisDisabledCommandsRequest::validate() +{ +} + +web::json::value SaveRedisDisabledCommandsRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + + return val; +} +bool SaveRedisDisabledCommandsRequest::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("body"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("body")); + if(!fieldValue.is_null()) + { + SaveRedisDisabledCommandsRequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string SaveRedisDisabledCommandsRequest::getInstanceId() const +{ + return instanceId_; +} + +void SaveRedisDisabledCommandsRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool SaveRedisDisabledCommandsRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void SaveRedisDisabledCommandsRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +SaveRedisDisabledCommandsRequestBody SaveRedisDisabledCommandsRequest::getBody() const +{ + return body_; +} + +void SaveRedisDisabledCommandsRequest::setBody(const SaveRedisDisabledCommandsRequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool SaveRedisDisabledCommandsRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void SaveRedisDisabledCommandsRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbfornosql/src/v3/model/SaveRedisDisabledCommandsRequestBody.cpp b/gaussdbfornosql/src/v3/model/SaveRedisDisabledCommandsRequestBody.cpp new file mode 100644 index 000000000..2a6f9eb61 --- /dev/null +++ b/gaussdbfornosql/src/v3/model/SaveRedisDisabledCommandsRequestBody.cpp @@ -0,0 +1,147 @@ + + +#include "huaweicloud/gaussdbfornosql/v3/model/SaveRedisDisabledCommandsRequestBody.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + + + + +SaveRedisDisabledCommandsRequestBody::SaveRedisDisabledCommandsRequestBody() +{ + disabledType_ = ""; + disabledTypeIsSet_ = false; + commandsIsSet_ = false; + keysIsSet_ = false; +} + +SaveRedisDisabledCommandsRequestBody::~SaveRedisDisabledCommandsRequestBody() = default; + +void SaveRedisDisabledCommandsRequestBody::validate() +{ +} + +web::json::value SaveRedisDisabledCommandsRequestBody::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(disabledTypeIsSet_) { + val[utility::conversions::to_string_t("disabled_type")] = ModelBase::toJson(disabledType_); + } + if(commandsIsSet_) { + val[utility::conversions::to_string_t("commands")] = ModelBase::toJson(commands_); + } + if(keysIsSet_) { + val[utility::conversions::to_string_t("keys")] = ModelBase::toJson(keys_); + } + + return val; +} +bool SaveRedisDisabledCommandsRequestBody::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("disabled_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("disabled_type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDisabledType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("commands"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("commands")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCommands(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("keys"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("keys")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setKeys(refVal); + } + } + return ok; +} + + +std::string SaveRedisDisabledCommandsRequestBody::getDisabledType() const +{ + return disabledType_; +} + +void SaveRedisDisabledCommandsRequestBody::setDisabledType(const std::string& value) +{ + disabledType_ = value; + disabledTypeIsSet_ = true; +} + +bool SaveRedisDisabledCommandsRequestBody::disabledTypeIsSet() const +{ + return disabledTypeIsSet_; +} + +void SaveRedisDisabledCommandsRequestBody::unsetdisabledType() +{ + disabledTypeIsSet_ = false; +} + +std::vector& SaveRedisDisabledCommandsRequestBody::getCommands() +{ + return commands_; +} + +void SaveRedisDisabledCommandsRequestBody::setCommands(const std::vector& value) +{ + commands_ = value; + commandsIsSet_ = true; +} + +bool SaveRedisDisabledCommandsRequestBody::commandsIsSet() const +{ + return commandsIsSet_; +} + +void SaveRedisDisabledCommandsRequestBody::unsetcommands() +{ + commandsIsSet_ = false; +} + +std::vector& SaveRedisDisabledCommandsRequestBody::getKeys() +{ + return keys_; +} + +void SaveRedisDisabledCommandsRequestBody::setKeys(const std::vector& value) +{ + keys_ = value; + keysIsSet_ = true; +} + +bool SaveRedisDisabledCommandsRequestBody::keysIsSet() const +{ + return keysIsSet_; +} + +void SaveRedisDisabledCommandsRequestBody::unsetkeys() +{ + keysIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbfornosql/src/v3/model/SaveRedisDisabledCommandsResponse.cpp b/gaussdbfornosql/src/v3/model/SaveRedisDisabledCommandsResponse.cpp new file mode 100644 index 000000000..ea6bf8922 --- /dev/null +++ b/gaussdbfornosql/src/v3/model/SaveRedisDisabledCommandsResponse.cpp @@ -0,0 +1,44 @@ + + +#include "huaweicloud/gaussdbfornosql/v3/model/SaveRedisDisabledCommandsResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + + + + +SaveRedisDisabledCommandsResponse::SaveRedisDisabledCommandsResponse() +{ +} + +SaveRedisDisabledCommandsResponse::~SaveRedisDisabledCommandsResponse() = default; + +void SaveRedisDisabledCommandsResponse::validate() +{ +} + +web::json::value SaveRedisDisabledCommandsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + + return val; +} +bool SaveRedisDisabledCommandsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + return ok; +} + + +} +} +} +} +} + + diff --git a/gaussdbfornosql/src/v3/model/SetDisasterRecoverySettingsRequest.cpp b/gaussdbfornosql/src/v3/model/SetDisasterRecoverySettingsRequest.cpp new file mode 100644 index 000000000..d31846849 --- /dev/null +++ b/gaussdbfornosql/src/v3/model/SetDisasterRecoverySettingsRequest.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/gaussdbfornosql/v3/model/SetDisasterRecoverySettingsRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + + + + +SetDisasterRecoverySettingsRequest::SetDisasterRecoverySettingsRequest() +{ + bodyIsSet_ = false; +} + +SetDisasterRecoverySettingsRequest::~SetDisasterRecoverySettingsRequest() = default; + +void SetDisasterRecoverySettingsRequest::validate() +{ +} + +web::json::value SetDisasterRecoverySettingsRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + + return val; +} +bool SetDisasterRecoverySettingsRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + 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()) + { + SetDisasterRecoverySettingsRequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +SetDisasterRecoverySettingsRequestBody SetDisasterRecoverySettingsRequest::getBody() const +{ + return body_; +} + +void SetDisasterRecoverySettingsRequest::setBody(const SetDisasterRecoverySettingsRequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool SetDisasterRecoverySettingsRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void SetDisasterRecoverySettingsRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbfornosql/src/v3/model/SetDisasterRecoverySettingsRequestBody.cpp b/gaussdbfornosql/src/v3/model/SetDisasterRecoverySettingsRequestBody.cpp new file mode 100644 index 000000000..0122cffe7 --- /dev/null +++ b/gaussdbfornosql/src/v3/model/SetDisasterRecoverySettingsRequestBody.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/gaussdbfornosql/v3/model/SetDisasterRecoverySettingsRequestBody.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + + + + +SetDisasterRecoverySettingsRequestBody::SetDisasterRecoverySettingsRequestBody() +{ + disasterRecoverySettingsIsSet_ = false; +} + +SetDisasterRecoverySettingsRequestBody::~SetDisasterRecoverySettingsRequestBody() = default; + +void SetDisasterRecoverySettingsRequestBody::validate() +{ +} + +web::json::value SetDisasterRecoverySettingsRequestBody::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(disasterRecoverySettingsIsSet_) { + val[utility::conversions::to_string_t("disaster_recovery_settings")] = ModelBase::toJson(disasterRecoverySettings_); + } + + return val; +} +bool SetDisasterRecoverySettingsRequestBody::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("disaster_recovery_settings"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("disaster_recovery_settings")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDisasterRecoverySettings(refVal); + } + } + return ok; +} + + +std::vector& SetDisasterRecoverySettingsRequestBody::getDisasterRecoverySettings() +{ + return disasterRecoverySettings_; +} + +void SetDisasterRecoverySettingsRequestBody::setDisasterRecoverySettings(const std::vector& value) +{ + disasterRecoverySettings_ = value; + disasterRecoverySettingsIsSet_ = true; +} + +bool SetDisasterRecoverySettingsRequestBody::disasterRecoverySettingsIsSet() const +{ + return disasterRecoverySettingsIsSet_; +} + +void SetDisasterRecoverySettingsRequestBody::unsetdisasterRecoverySettings() +{ + disasterRecoverySettingsIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbfornosql/src/v3/model/SetDisasterRecoverySettingsResponse.cpp b/gaussdbfornosql/src/v3/model/SetDisasterRecoverySettingsResponse.cpp new file mode 100644 index 000000000..7d0bf9128 --- /dev/null +++ b/gaussdbfornosql/src/v3/model/SetDisasterRecoverySettingsResponse.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/gaussdbfornosql/v3/model/SetDisasterRecoverySettingsResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + + + + +SetDisasterRecoverySettingsResponse::SetDisasterRecoverySettingsResponse() +{ + successedInstanceIdsIsSet_ = false; +} + +SetDisasterRecoverySettingsResponse::~SetDisasterRecoverySettingsResponse() = default; + +void SetDisasterRecoverySettingsResponse::validate() +{ +} + +web::json::value SetDisasterRecoverySettingsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(successedInstanceIdsIsSet_) { + val[utility::conversions::to_string_t("successed_instance_ids")] = ModelBase::toJson(successedInstanceIds_); + } + + return val; +} +bool SetDisasterRecoverySettingsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("successed_instance_ids"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("successed_instance_ids")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSuccessedInstanceIds(refVal); + } + } + return ok; +} + + +std::vector& SetDisasterRecoverySettingsResponse::getSuccessedInstanceIds() +{ + return successedInstanceIds_; +} + +void SetDisasterRecoverySettingsResponse::setSuccessedInstanceIds(const std::vector& value) +{ + successedInstanceIds_ = value; + successedInstanceIdsIsSet_ = true; +} + +bool SetDisasterRecoverySettingsResponse::successedInstanceIdsIsSet() const +{ + return successedInstanceIdsIsSet_; +} + +void SetDisasterRecoverySettingsResponse::unsetsuccessedInstanceIds() +{ + successedInstanceIdsIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbfornosql/src/v3/model/ShowDisasterRecoverySettingsRequest.cpp b/gaussdbfornosql/src/v3/model/ShowDisasterRecoverySettingsRequest.cpp new file mode 100644 index 000000000..d6a20c5da --- /dev/null +++ b/gaussdbfornosql/src/v3/model/ShowDisasterRecoverySettingsRequest.cpp @@ -0,0 +1,149 @@ + + +#include "huaweicloud/gaussdbfornosql/v3/model/ShowDisasterRecoverySettingsRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + + + + +ShowDisasterRecoverySettingsRequest::ShowDisasterRecoverySettingsRequest() +{ + instanceId_ = ""; + instanceIdIsSet_ = false; + offset_ = 0; + offsetIsSet_ = false; + limit_ = 0; + limitIsSet_ = false; +} + +ShowDisasterRecoverySettingsRequest::~ShowDisasterRecoverySettingsRequest() = default; + +void ShowDisasterRecoverySettingsRequest::validate() +{ +} + +web::json::value ShowDisasterRecoverySettingsRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + if(offsetIsSet_) { + val[utility::conversions::to_string_t("offset")] = ModelBase::toJson(offset_); + } + if(limitIsSet_) { + val[utility::conversions::to_string_t("limit")] = ModelBase::toJson(limit_); + } + + return val; +} +bool ShowDisasterRecoverySettingsRequest::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("offset"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("offset")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setOffset(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("limit"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("limit")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLimit(refVal); + } + } + return ok; +} + + +std::string ShowDisasterRecoverySettingsRequest::getInstanceId() const +{ + return instanceId_; +} + +void ShowDisasterRecoverySettingsRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool ShowDisasterRecoverySettingsRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void ShowDisasterRecoverySettingsRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +int32_t ShowDisasterRecoverySettingsRequest::getOffset() const +{ + return offset_; +} + +void ShowDisasterRecoverySettingsRequest::setOffset(int32_t value) +{ + offset_ = value; + offsetIsSet_ = true; +} + +bool ShowDisasterRecoverySettingsRequest::offsetIsSet() const +{ + return offsetIsSet_; +} + +void ShowDisasterRecoverySettingsRequest::unsetoffset() +{ + offsetIsSet_ = false; +} + +int32_t ShowDisasterRecoverySettingsRequest::getLimit() const +{ + return limit_; +} + +void ShowDisasterRecoverySettingsRequest::setLimit(int32_t value) +{ + limit_ = value; + limitIsSet_ = true; +} + +bool ShowDisasterRecoverySettingsRequest::limitIsSet() const +{ + return limitIsSet_; +} + +void ShowDisasterRecoverySettingsRequest::unsetlimit() +{ + limitIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbfornosql/src/v3/model/ShowDisasterRecoverySettingsResponse.cpp b/gaussdbfornosql/src/v3/model/ShowDisasterRecoverySettingsResponse.cpp new file mode 100644 index 000000000..2711ba54b --- /dev/null +++ b/gaussdbfornosql/src/v3/model/ShowDisasterRecoverySettingsResponse.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/gaussdbfornosql/v3/model/ShowDisasterRecoverySettingsResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + + + + +ShowDisasterRecoverySettingsResponse::ShowDisasterRecoverySettingsResponse() +{ + disasterRecoverySettingsIsSet_ = false; + totalCount_ = 0; + totalCountIsSet_ = false; +} + +ShowDisasterRecoverySettingsResponse::~ShowDisasterRecoverySettingsResponse() = default; + +void ShowDisasterRecoverySettingsResponse::validate() +{ +} + +web::json::value ShowDisasterRecoverySettingsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(disasterRecoverySettingsIsSet_) { + val[utility::conversions::to_string_t("disaster_recovery_settings")] = ModelBase::toJson(disasterRecoverySettings_); + } + if(totalCountIsSet_) { + val[utility::conversions::to_string_t("total_count")] = ModelBase::toJson(totalCount_); + } + + return val; +} +bool ShowDisasterRecoverySettingsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("disaster_recovery_settings"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("disaster_recovery_settings")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDisasterRecoverySettings(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("total_count"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("total_count")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTotalCount(refVal); + } + } + return ok; +} + + +std::vector& ShowDisasterRecoverySettingsResponse::getDisasterRecoverySettings() +{ + return disasterRecoverySettings_; +} + +void ShowDisasterRecoverySettingsResponse::setDisasterRecoverySettings(const std::vector& value) +{ + disasterRecoverySettings_ = value; + disasterRecoverySettingsIsSet_ = true; +} + +bool ShowDisasterRecoverySettingsResponse::disasterRecoverySettingsIsSet() const +{ + return disasterRecoverySettingsIsSet_; +} + +void ShowDisasterRecoverySettingsResponse::unsetdisasterRecoverySettings() +{ + disasterRecoverySettingsIsSet_ = false; +} + +int32_t ShowDisasterRecoverySettingsResponse::getTotalCount() const +{ + return totalCount_; +} + +void ShowDisasterRecoverySettingsResponse::setTotalCount(int32_t value) +{ + totalCount_ = value; + totalCountIsSet_ = true; +} + +bool ShowDisasterRecoverySettingsResponse::totalCountIsSet() const +{ + return totalCountIsSet_; +} + +void ShowDisasterRecoverySettingsResponse::unsettotalCount() +{ + totalCountIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbfornosql/src/v3/model/ShowRedisDisabledCommandsRequest.cpp b/gaussdbfornosql/src/v3/model/ShowRedisDisabledCommandsRequest.cpp new file mode 100644 index 000000000..1fa283718 --- /dev/null +++ b/gaussdbfornosql/src/v3/model/ShowRedisDisabledCommandsRequest.cpp @@ -0,0 +1,184 @@ + + +#include "huaweicloud/gaussdbfornosql/v3/model/ShowRedisDisabledCommandsRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + + + + +ShowRedisDisabledCommandsRequest::ShowRedisDisabledCommandsRequest() +{ + instanceId_ = ""; + instanceIdIsSet_ = false; + type_ = ""; + typeIsSet_ = false; + offset_ = 0; + offsetIsSet_ = false; + limit_ = 0; + limitIsSet_ = false; +} + +ShowRedisDisabledCommandsRequest::~ShowRedisDisabledCommandsRequest() = default; + +void ShowRedisDisabledCommandsRequest::validate() +{ +} + +web::json::value ShowRedisDisabledCommandsRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + if(typeIsSet_) { + val[utility::conversions::to_string_t("type")] = ModelBase::toJson(type_); + } + if(offsetIsSet_) { + val[utility::conversions::to_string_t("offset")] = ModelBase::toJson(offset_); + } + if(limitIsSet_) { + val[utility::conversions::to_string_t("limit")] = ModelBase::toJson(limit_); + } + + return val; +} +bool ShowRedisDisabledCommandsRequest::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("type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setType(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()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setOffset(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("limit"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("limit")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLimit(refVal); + } + } + return ok; +} + + +std::string ShowRedisDisabledCommandsRequest::getInstanceId() const +{ + return instanceId_; +} + +void ShowRedisDisabledCommandsRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool ShowRedisDisabledCommandsRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void ShowRedisDisabledCommandsRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +std::string ShowRedisDisabledCommandsRequest::getType() const +{ + return type_; +} + +void ShowRedisDisabledCommandsRequest::setType(const std::string& value) +{ + type_ = value; + typeIsSet_ = true; +} + +bool ShowRedisDisabledCommandsRequest::typeIsSet() const +{ + return typeIsSet_; +} + +void ShowRedisDisabledCommandsRequest::unsettype() +{ + typeIsSet_ = false; +} + +int32_t ShowRedisDisabledCommandsRequest::getOffset() const +{ + return offset_; +} + +void ShowRedisDisabledCommandsRequest::setOffset(int32_t value) +{ + offset_ = value; + offsetIsSet_ = true; +} + +bool ShowRedisDisabledCommandsRequest::offsetIsSet() const +{ + return offsetIsSet_; +} + +void ShowRedisDisabledCommandsRequest::unsetoffset() +{ + offsetIsSet_ = false; +} + +int32_t ShowRedisDisabledCommandsRequest::getLimit() const +{ + return limit_; +} + +void ShowRedisDisabledCommandsRequest::setLimit(int32_t value) +{ + limit_ = value; + limitIsSet_ = true; +} + +bool ShowRedisDisabledCommandsRequest::limitIsSet() const +{ + return limitIsSet_; +} + +void ShowRedisDisabledCommandsRequest::unsetlimit() +{ + limitIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbfornosql/src/v3/model/ShowRedisDisabledCommandsResponse.cpp b/gaussdbfornosql/src/v3/model/ShowRedisDisabledCommandsResponse.cpp new file mode 100644 index 000000000..63d8a0a72 --- /dev/null +++ b/gaussdbfornosql/src/v3/model/ShowRedisDisabledCommandsResponse.cpp @@ -0,0 +1,182 @@ + + +#include "huaweicloud/gaussdbfornosql/v3/model/ShowRedisDisabledCommandsResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + + + + +ShowRedisDisabledCommandsResponse::ShowRedisDisabledCommandsResponse() +{ + totalCount_ = ""; + totalCountIsSet_ = false; + disabledType_ = ""; + disabledTypeIsSet_ = false; + commandsIsSet_ = false; + keysIsSet_ = false; +} + +ShowRedisDisabledCommandsResponse::~ShowRedisDisabledCommandsResponse() = default; + +void ShowRedisDisabledCommandsResponse::validate() +{ +} + +web::json::value ShowRedisDisabledCommandsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(totalCountIsSet_) { + val[utility::conversions::to_string_t("total_count")] = ModelBase::toJson(totalCount_); + } + if(disabledTypeIsSet_) { + val[utility::conversions::to_string_t("disabled_type")] = ModelBase::toJson(disabledType_); + } + if(commandsIsSet_) { + val[utility::conversions::to_string_t("commands")] = ModelBase::toJson(commands_); + } + if(keysIsSet_) { + val[utility::conversions::to_string_t("keys")] = ModelBase::toJson(keys_); + } + + return val; +} +bool ShowRedisDisabledCommandsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("total_count"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("total_count")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTotalCount(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("disabled_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("disabled_type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDisabledType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("commands"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("commands")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCommands(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("keys"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("keys")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setKeys(refVal); + } + } + return ok; +} + + +std::string ShowRedisDisabledCommandsResponse::getTotalCount() const +{ + return totalCount_; +} + +void ShowRedisDisabledCommandsResponse::setTotalCount(const std::string& value) +{ + totalCount_ = value; + totalCountIsSet_ = true; +} + +bool ShowRedisDisabledCommandsResponse::totalCountIsSet() const +{ + return totalCountIsSet_; +} + +void ShowRedisDisabledCommandsResponse::unsettotalCount() +{ + totalCountIsSet_ = false; +} + +std::string ShowRedisDisabledCommandsResponse::getDisabledType() const +{ + return disabledType_; +} + +void ShowRedisDisabledCommandsResponse::setDisabledType(const std::string& value) +{ + disabledType_ = value; + disabledTypeIsSet_ = true; +} + +bool ShowRedisDisabledCommandsResponse::disabledTypeIsSet() const +{ + return disabledTypeIsSet_; +} + +void ShowRedisDisabledCommandsResponse::unsetdisabledType() +{ + disabledTypeIsSet_ = false; +} + +std::vector& ShowRedisDisabledCommandsResponse::getCommands() +{ + return commands_; +} + +void ShowRedisDisabledCommandsResponse::setCommands(const std::vector& value) +{ + commands_ = value; + commandsIsSet_ = true; +} + +bool ShowRedisDisabledCommandsResponse::commandsIsSet() const +{ + return commandsIsSet_; +} + +void ShowRedisDisabledCommandsResponse::unsetcommands() +{ + commandsIsSet_ = false; +} + +std::vector& ShowRedisDisabledCommandsResponse::getKeys() +{ + return keys_; +} + +void ShowRedisDisabledCommandsResponse::setKeys(const std::vector& value) +{ + keys_ = value; + keysIsSet_ = true; +} + +bool ShowRedisDisabledCommandsResponse::keysIsSet() const +{ + return keysIsSet_; +} + +void ShowRedisDisabledCommandsResponse::unsetkeys() +{ + keysIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbfornosql/src/v3/model/ShowRedisHotKeysRequest.cpp b/gaussdbfornosql/src/v3/model/ShowRedisHotKeysRequest.cpp new file mode 100644 index 000000000..b4520eb6c --- /dev/null +++ b/gaussdbfornosql/src/v3/model/ShowRedisHotKeysRequest.cpp @@ -0,0 +1,149 @@ + + +#include "huaweicloud/gaussdbfornosql/v3/model/ShowRedisHotKeysRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + + + + +ShowRedisHotKeysRequest::ShowRedisHotKeysRequest() +{ + instanceId_ = ""; + instanceIdIsSet_ = false; + offset_ = 0; + offsetIsSet_ = false; + limit_ = 0; + limitIsSet_ = false; +} + +ShowRedisHotKeysRequest::~ShowRedisHotKeysRequest() = default; + +void ShowRedisHotKeysRequest::validate() +{ +} + +web::json::value ShowRedisHotKeysRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + if(offsetIsSet_) { + val[utility::conversions::to_string_t("offset")] = ModelBase::toJson(offset_); + } + if(limitIsSet_) { + val[utility::conversions::to_string_t("limit")] = ModelBase::toJson(limit_); + } + + return val; +} +bool ShowRedisHotKeysRequest::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("offset"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("offset")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setOffset(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("limit"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("limit")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLimit(refVal); + } + } + return ok; +} + + +std::string ShowRedisHotKeysRequest::getInstanceId() const +{ + return instanceId_; +} + +void ShowRedisHotKeysRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool ShowRedisHotKeysRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void ShowRedisHotKeysRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +int32_t ShowRedisHotKeysRequest::getOffset() const +{ + return offset_; +} + +void ShowRedisHotKeysRequest::setOffset(int32_t value) +{ + offset_ = value; + offsetIsSet_ = true; +} + +bool ShowRedisHotKeysRequest::offsetIsSet() const +{ + return offsetIsSet_; +} + +void ShowRedisHotKeysRequest::unsetoffset() +{ + offsetIsSet_ = false; +} + +int32_t ShowRedisHotKeysRequest::getLimit() const +{ + return limit_; +} + +void ShowRedisHotKeysRequest::setLimit(int32_t value) +{ + limit_ = value; + limitIsSet_ = true; +} + +bool ShowRedisHotKeysRequest::limitIsSet() const +{ + return limitIsSet_; +} + +void ShowRedisHotKeysRequest::unsetlimit() +{ + limitIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbfornosql/src/v3/model/ShowRedisHotKeysResponse.cpp b/gaussdbfornosql/src/v3/model/ShowRedisHotKeysResponse.cpp new file mode 100644 index 000000000..ef5726b06 --- /dev/null +++ b/gaussdbfornosql/src/v3/model/ShowRedisHotKeysResponse.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/gaussdbfornosql/v3/model/ShowRedisHotKeysResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + + + + +ShowRedisHotKeysResponse::ShowRedisHotKeysResponse() +{ + keysIsSet_ = false; + count_ = 0; + countIsSet_ = false; +} + +ShowRedisHotKeysResponse::~ShowRedisHotKeysResponse() = default; + +void ShowRedisHotKeysResponse::validate() +{ +} + +web::json::value ShowRedisHotKeysResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(keysIsSet_) { + val[utility::conversions::to_string_t("keys")] = ModelBase::toJson(keys_); + } + if(countIsSet_) { + val[utility::conversions::to_string_t("count")] = ModelBase::toJson(count_); + } + + return val; +} +bool ShowRedisHotKeysResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("keys"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("keys")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setKeys(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("count"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("count")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCount(refVal); + } + } + return ok; +} + + +std::vector& ShowRedisHotKeysResponse::getKeys() +{ + return keys_; +} + +void ShowRedisHotKeysResponse::setKeys(const std::vector& value) +{ + keys_ = value; + keysIsSet_ = true; +} + +bool ShowRedisHotKeysResponse::keysIsSet() const +{ + return keysIsSet_; +} + +void ShowRedisHotKeysResponse::unsetkeys() +{ + keysIsSet_ = false; +} + +int32_t ShowRedisHotKeysResponse::getCount() const +{ + return count_; +} + +void ShowRedisHotKeysResponse::setCount(int32_t value) +{ + count_ = value; + countIsSet_ = true; +} + +bool ShowRedisHotKeysResponse::countIsSet() const +{ + return countIsSet_; +} + +void ShowRedisHotKeysResponse::unsetcount() +{ + countIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbfornosql/src/v3/model/SwitchOverRequest.cpp b/gaussdbfornosql/src/v3/model/SwitchOverRequest.cpp new file mode 100644 index 000000000..31e6c1f49 --- /dev/null +++ b/gaussdbfornosql/src/v3/model/SwitchOverRequest.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/gaussdbfornosql/v3/model/SwitchOverRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + + + + +SwitchOverRequest::SwitchOverRequest() +{ + instanceId_ = ""; + instanceIdIsSet_ = false; +} + +SwitchOverRequest::~SwitchOverRequest() = default; + +void SwitchOverRequest::validate() +{ +} + +web::json::value SwitchOverRequest::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 SwitchOverRequest::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 SwitchOverRequest::getInstanceId() const +{ + return instanceId_; +} + +void SwitchOverRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool SwitchOverRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void SwitchOverRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbfornosql/src/v3/model/SwitchOverResponse.cpp b/gaussdbfornosql/src/v3/model/SwitchOverResponse.cpp new file mode 100644 index 000000000..dcf37833e --- /dev/null +++ b/gaussdbfornosql/src/v3/model/SwitchOverResponse.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/gaussdbfornosql/v3/model/SwitchOverResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + + + + +SwitchOverResponse::SwitchOverResponse() +{ + jobId_ = ""; + jobIdIsSet_ = false; +} + +SwitchOverResponse::~SwitchOverResponse() = default; + +void SwitchOverResponse::validate() +{ +} + +web::json::value SwitchOverResponse::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 SwitchOverResponse::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 SwitchOverResponse::getJobId() const +{ + return jobId_; +} + +void SwitchOverResponse::setJobId(const std::string& value) +{ + jobId_ = value; + jobIdIsSet_ = true; +} + +bool SwitchOverResponse::jobIdIsSet() const +{ + return jobIdIsSet_; +} + +void SwitchOverResponse::unsetjobId() +{ + jobIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbfornosql/src/v3/model/SwitchoverRatioInfo.cpp b/gaussdbfornosql/src/v3/model/SwitchoverRatioInfo.cpp new file mode 100644 index 000000000..37d3b5058 --- /dev/null +++ b/gaussdbfornosql/src/v3/model/SwitchoverRatioInfo.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/gaussdbfornosql/v3/model/SwitchoverRatioInfo.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbfornosql { +namespace V3 { +namespace Model { + + + + +SwitchoverRatioInfo::SwitchoverRatioInfo() +{ + instanceId_ = ""; + instanceIdIsSet_ = false; + switchoverRatio_ = 0; + switchoverRatioIsSet_ = false; +} + +SwitchoverRatioInfo::~SwitchoverRatioInfo() = default; + +void SwitchoverRatioInfo::validate() +{ +} + +web::json::value SwitchoverRatioInfo::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + if(switchoverRatioIsSet_) { + val[utility::conversions::to_string_t("switchover_ratio")] = ModelBase::toJson(switchoverRatio_); + } + + return val; +} +bool SwitchoverRatioInfo::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("switchover_ratio"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("switchover_ratio")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSwitchoverRatio(refVal); + } + } + return ok; +} + + +std::string SwitchoverRatioInfo::getInstanceId() const +{ + return instanceId_; +} + +void SwitchoverRatioInfo::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool SwitchoverRatioInfo::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void SwitchoverRatioInfo::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +int32_t SwitchoverRatioInfo::getSwitchoverRatio() const +{ + return switchoverRatio_; +} + +void SwitchoverRatioInfo::setSwitchoverRatio(int32_t value) +{ + switchoverRatio_ = value; + switchoverRatioIsSet_ = true; +} + +bool SwitchoverRatioInfo::switchoverRatioIsSet() const +{ + return switchoverRatioIsSet_; +} + +void SwitchoverRatioInfo::unsetswitchoverRatio() +{ + switchoverRatioIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/ims/include/huaweicloud/ims/v2/ImsRegion.h b/ims/include/huaweicloud/ims/v2/ImsRegion.h index 1e51406a5..ce8a8e027 100644 --- a/ims/include/huaweicloud/ims/v2/ImsRegion.h +++ b/ims/include/huaweicloud/ims/v2/ImsRegion.h @@ -138,6 +138,10 @@ class HUAWEICLOUD_IMS_V2_EXPORT ImsRegion { { "https://ims.ru-moscow-1.myhuaweicloud.com" }); + regions["ap-southeast-5"] = Region("ap-southeast-5", + { + "https://ims.ap-southeast-5.myhuaweicloud.com" + }); return regions; } private: