From dbe338edb3939fa1906de97ec6bdf3f23ba06f54 Mon Sep 17 00:00:00 2001 From: Huaweicloud-SDK Date: Thu, 27 Jun 2024 19:15:48 +0800 Subject: [PATCH] release 3.1.91 source code --- CHANGELOG.md | 408 +++++ CHANGELOG_CN.md | 408 +++++ CMakeLists.txt | 2 +- VERSION | 2 +- cfw/include/huaweicloud/cfw/v1/CfwClient.h | 75 + cfw/include/huaweicloud/cfw/v1/CfwMeta.h | 7 + .../cfw/v1/model/AddAclRuleRequest.h | 2 +- .../cfw/v1/model/AddAddressItemRequest.h | 2 +- .../cfw/v1/model/AddAddressSetDto.h | 2 +- .../cfw/v1/model/AddAddressSetRequest.h | 2 +- .../cfw/v1/model/AddBlackWhiteListDto.h | 4 +- .../cfw/v1/model/AddBlackWhiteListRequest.h | 2 +- .../cfw/v1/model/AddDomainListDto.h | 4 +- .../cfw/v1/model/AddDomainSetInfoDto.h | 6 +- .../cfw/v1/model/AddDomainSetRequest.h | 2 +- .../cfw/v1/model/AddDomainsRequest.h | 2 +- .../cfw/v1/model/AddLogConfigRequest.h | 2 +- .../huaweicloud/cfw/v1/model/AddRuleAclDto.h | 2 +- .../cfw/v1/model/AddRuleAclDto_rules.h | 12 - .../cfw/v1/model/AddServiceItemsRequest.h | 2 +- ...eItemsUsingPOSTRequestBody_service_items.h | 22 - .../cfw/v1/model/AddServiceSetRequest.h | 2 +- .../cfw/v1/model/AddServiceSetResponse.h | 8 +- .../model/AddServiceSetUsingPOSTRequestBody.h | 2 +- .../huaweicloud/cfw/v1/model/AddressGroupVO.h | 40 +- .../AddressSetListResponseDTO_data_records.h | 2 +- .../cfw/v1/model/BatchDeleteAclRulesRequest.h | 2 +- .../v1/model/BatchDeleteAddressItemsRequest.h | 2 +- .../v1/model/BatchDeleteServiceItemsRequest.h | 2 +- .../v1/model/BlackWhiteListResponse_data.h | 12 - .../BlackWhiteListResponse_data_records.h | 2 +- .../cfw/v1/model/CancelCaptureTaskDto.h | 64 + .../cfw/v1/model/CancelCaptureTaskRequest.h | 94 + .../cfw/v1/model/CancelCaptureTaskResponse.h | 67 + .../huaweicloud/cfw/v1/model/CaptureFile.h | 86 + .../cfw/v1/model/CaptureResultUrlVO.h | 111 ++ .../cfw/v1/model/CaptureRuleAddressDto.h | 86 + .../cfw/v1/model/CaptureServiceDto.h | 86 + .../huaweicloud/cfw/v1/model/CaptureTaskDto.h | 121 ++ .../huaweicloud/cfw/v1/model/CaptureTaskVO.h | 240 +++ .../ChangeEastWestFirewallStatusRequest.h | 2 +- .../cfw/v1/model/ChangeEipStatusRequest.h | 2 +- .../v1/model/ChangeIpsProtectModeRequest.h | 2 +- .../v1/model/ChangeIpsProtectModeResponse.h | 8 +- .../v1/model/ChangeIpsSwitchStatusRequest.h | 2 +- .../v1/model/ChangeIpsSwitchStatusResponse.h | 12 - .../v1/model/ChangeProtectStatusRequestBody.h | 2 +- .../cfw/v1/model/CreateCaptureTaskRequest.h | 94 + .../cfw/v1/model/CreateCaptureTaskResponse.h | 67 + .../v1/model/CreateEWFirewallInspectVpcResp.h | 76 + .../cfw/v1/model/CreateEWFirewallResp.h | 88 + .../v1/model/CreateEastWestFirewallRequest.h | 2 +- .../v1/model/CreateEastWestFirewallResponse.h | 8 +- .../cfw/v1/model/CreateFirewallRequest.h | 11 - .../cfw/v1/model/{Tag.h => CreateTag.h} | 14 +- .../cfw/v1/model/CreateTagRequest.h | 83 + .../cfw/v1/model/CreateTagResponse.h | 67 + .../huaweicloud/cfw/v1/model/CreateTagsDto.h | 65 + .../v1/model/DeleteAclRuleHitCountRequest.h | 2 +- .../cfw/v1/model/DeleteAclRuleRequest.h | 2 +- .../cfw/v1/model/DeleteAddressItemRequest.h | 2 +- .../cfw/v1/model/DeleteAddressSetRequest.h | 2 +- .../v1/model/DeleteBlackWhiteListRequest.h | 2 +- .../cfw/v1/model/DeleteCaptureTaskDto.h | 65 + .../cfw/v1/model/DeleteCaptureTaskRequest.h | 94 + .../cfw/v1/model/DeleteCaptureTaskResponse.h | 67 + .../cfw/v1/model/DeleteDomainDto.h | 4 +- .../cfw/v1/model/DeleteDomainSetRequest.h | 2 +- .../cfw/v1/model/DeleteRuleAclDto.h | 2 +- .../cfw/v1/model/DeleteServiceItemRequest.h | 2 +- .../cfw/v1/model/DeleteServiceSetRequest.h | 2 +- .../cfw/v1/model/DeleteTagRequest.h | 83 + .../cfw/v1/model/DeleteTagResponse.h | 67 + .../huaweicloud/cfw/v1/model/DeleteTagsDto.h | 65 + .../huaweicloud/cfw/v1/model/DomainSetVo.h | 2 +- .../cfw/v1/model/EIPSwitchStatusVO.h | 2 +- cfw/include/huaweicloud/cfw/v1/model/ER.h | 75 + .../cfw/v1/model/EipCountRespData.h | 2 +- .../cfw/v1/model/EipOperateProtectReq.h | 2 +- .../huaweicloud/cfw/v1/model/EipResource.h | 4 +- .../huaweicloud/cfw/v1/model/ErInstance.h | 11 + .../cfw/v1/model/FirewallInstanceVO.h | 2 +- cfw/include/huaweicloud/cfw/v1/model/Flavor.h | 55 - .../model/GetEastWestFirewallResponseBody.h | 2 +- .../model/GetFirewallInstanceResponseRecord.h | 2 +- .../{RuleProfileDto.h => HostHeaderInfo.h} | 28 +- .../model/HttpQueryCaptureTaskResponseData.h | 121 ++ ...ssControllerLogsResponseDTO_data_records.h | 90 +- ...eryCfwAttackLogsResponseDTO_data_records.h | 109 +- ...QueryCfwFlowLogsResponseDTO_data_records.h | 92 +- .../huaweicloud/cfw/v1/model/IpsProtectDTO.h | 2 +- .../huaweicloud/cfw/v1/model/IpsSwitchDTO.h | 2 +- .../v1/model/ListAccessControlLogsRequest.h | 62 +- .../cfw/v1/model/ListAclRuleHitCountRequest.h | 2 +- .../cfw/v1/model/ListAclRulesRequest.h | 17 +- .../cfw/v1/model/ListAddressItemsRequest.h | 2 +- .../v1/model/ListAddressSetDetailRequest.h | 2 +- .../cfw/v1/model/ListAddressSetsRequest.h | 4 +- .../cfw/v1/model/ListAttackLogsRequest.h | 77 +- .../cfw/v1/model/ListBlackWhiteListsRequest.h | 6 +- .../cfw/v1/model/ListCaptureResultRequest.h | 116 ++ .../cfw/v1/model/ListCaptureResultResponse.h | 67 + .../cfw/v1/model/ListCaptureTaskRequest.h | 104 ++ .../cfw/v1/model/ListCaptureTaskResponse.h | 68 + .../cfw/v1/model/ListDnsServersRequest.h | 2 +- .../v1/model/ListDomainParseDetailRequest.h | 10 +- .../cfw/v1/model/ListDomainSetsRequest.h | 6 +- .../cfw/v1/model/ListDomainsRequest.h | 26 +- .../v1/model/ListEastWestFirewallRequest.h | 2 +- .../cfw/v1/model/ListEipCountRequest.h | 4 +- .../cfw/v1/model/ListEipsRequest.h | 4 +- .../cfw/v1/model/ListFirewallDetailRequest.h | 2 +- .../cfw/v1/model/ListFlowLogsRequest.h | 62 +- .../cfw/v1/model/ListIpsProtectModeRequest.h | 4 +- .../cfw/v1/model/ListIpsSwitchStatusRequest.h | 4 +- .../cfw/v1/model/ListLogConfigRequest.h | 2 +- .../cfw/v1/model/ListProtectedVpcsRequest.h | 4 +- .../cfw/v1/model/ListProtectedVpcsResponse.h | 12 - .../cfw/v1/model/ListRuleAclTagsRequest.h | 2 +- .../cfw/v1/model/ListServiceItemsRequest.h | 4 +- .../v1/model/ListServiceSetDetailRequest.h | 2 +- .../cfw/v1/model/ListServiceSetsRequest.h | 4 +- .../cfw/v1/model/ProtectObjectVO.h | 2 +- .../huaweicloud/cfw/v1/model/ResourceTag.h | 86 + .../v1/model/RuleAclListResponseDTO_data.h | 2 +- .../RuleAclListResponseDTO_data_records.h | 78 +- .../cfw/v1/model/RuleAddressDtoForRequest.h | 11 + .../cfw/v1/model/RuleAddressDtoForResponse.h | 210 +++ .../huaweicloud/cfw/v1/model/RuleServiceDto.h | 8 +- .../cfw/v1/model/RuleServiceDtoForResponse.h | 177 ++ .../huaweicloud/cfw/v1/model/ServiceGroupVO.h | 98 ++ .../huaweicloud/cfw/v1/model/ServiceItemIds.h | 8 +- .../cfw/v1/model/ServiceItemIds_items.h | 64 + .../ServiceItemListResponseDto_data_records.h | 11 - .../huaweicloud/cfw/v1/model/ServiceSet.h | 11 - .../cfw/v1/model/UpdateAclRuleOrderRequest.h | 2 +- .../cfw/v1/model/UpdateAclRuleRequest.h | 2 +- .../cfw/v1/model/UpdateAddressSetDto.h | 11 - .../cfw/v1/model/UpdateAddressSetRequest.h | 2 +- .../cfw/v1/model/UpdateBlackWhiteListDto.h | 24 +- .../v1/model/UpdateBlackWhiteListRequest.h | 2 +- .../cfw/v1/model/UpdateDnsServersRequest.h | 2 +- .../cfw/v1/model/UpdateDomainSetInfoDto.h | 22 - .../cfw/v1/model/UpdateDomainSetRequest.h | 4 +- .../cfw/v1/model/UpdateLogConfigRequest.h | 2 +- .../cfw/v1/model/UpdateRuleAclDto.h | 12 - .../v1/model/UpdateSecurityPolciesActionDto.h | 2 +- .../cfw/v1/model/UpdateServiceSetRequest.h | 2 +- .../cfw/v1/model/UpdateServiceSetResponse.h | 8 +- .../cfw/v1/model/VpcAttachmentDetail.h | 123 -- cfw/src/v1/CfwClient.cpp | 361 +++- cfw/src/v1/CfwMeta.cpp | 153 +- cfw/src/v1/model/AddRuleAclDto_rules.cpp | 34 - ...temsUsingPOSTRequestBody_service_items.cpp | 70 - cfw/src/v1/model/AddServiceSetResponse.cpp | 6 +- cfw/src/v1/model/AddressGroupVO.cpp | 102 +- .../v1/model/BlackWhiteListResponse_data.cpp | 35 - cfw/src/v1/model/CancelCaptureTaskDto.cpp | 79 + cfw/src/v1/model/CancelCaptureTaskRequest.cpp | 148 ++ .../v1/model/CancelCaptureTaskResponse.cpp | 78 + cfw/src/v1/model/CaptureFile.cpp | 149 ++ cfw/src/v1/model/CaptureResultUrlVO.cpp | 217 +++ cfw/src/v1/model/CaptureRuleAddressDto.cpp | 149 ++ cfw/src/v1/model/CaptureServiceDto.cpp | 149 ++ cfw/src/v1/model/CaptureTaskDto.cpp | 251 +++ cfw/src/v1/model/CaptureTaskVO.cpp | 639 +++++++ .../v1/model/ChangeIpsProtectModeResponse.cpp | 6 +- .../model/ChangeIpsSwitchStatusResponse.cpp | 35 - cfw/src/v1/model/CreateCaptureTaskRequest.cpp | 148 ++ .../v1/model/CreateCaptureTaskResponse.cpp | 78 + .../model/CreateEWFirewallInspectVpcResp.cpp | 113 ++ cfw/src/v1/model/CreateEWFirewallResp.cpp | 147 ++ .../model/CreateEastWestFirewallResponse.cpp | 6 +- cfw/src/v1/model/CreateFirewallRequest.cpp | 35 - cfw/src/v1/model/{Tag.cpp => CreateTag.cpp} | 28 +- cfw/src/v1/model/CreateTagRequest.cpp | 113 ++ cfw/src/v1/model/CreateTagResponse.cpp | 79 + cfw/src/v1/model/CreateTagsDto.cpp | 78 + cfw/src/v1/model/DeleteCaptureTaskDto.cpp | 78 + cfw/src/v1/model/DeleteCaptureTaskRequest.cpp | 148 ++ .../v1/model/DeleteCaptureTaskResponse.cpp | 78 + cfw/src/v1/model/DeleteTagRequest.cpp | 113 ++ cfw/src/v1/model/DeleteTagResponse.cpp | 79 + cfw/src/v1/model/DeleteTagsDto.cpp | 78 + cfw/src/v1/model/ER.cpp | 114 ++ cfw/src/v1/model/ErInstance.cpp | 35 + cfw/src/v1/model/Flavor.cpp | 175 -- cfw/src/v1/model/HostHeaderInfo.cpp | 79 + .../HttpQueryCaptureTaskResponseData.cpp | 253 +++ ...ControllerLogsResponseDTO_data_records.cpp | 280 +++ ...yCfwAttackLogsResponseDTO_data_records.cpp | 323 +++- ...eryCfwFlowLogsResponseDTO_data_records.cpp | 280 +++ .../v1/model/ListAccessControlLogsRequest.cpp | 140 ++ cfw/src/v1/model/ListAclRulesRequest.cpp | 35 - cfw/src/v1/model/ListAttackLogsRequest.cpp | 175 +- cfw/src/v1/model/ListCaptureResultRequest.cpp | 218 +++ .../v1/model/ListCaptureResultResponse.cpp | 78 + cfw/src/v1/model/ListCaptureTaskRequest.cpp | 184 ++ cfw/src/v1/model/ListCaptureTaskResponse.cpp | 78 + .../v1/model/ListDomainParseDetailRequest.cpp | 8 +- cfw/src/v1/model/ListDomainsRequest.cpp | 70 - cfw/src/v1/model/ListFlowLogsRequest.cpp | 140 ++ .../v1/model/ListProtectedVpcsResponse.cpp | 35 - cfw/src/v1/model/ResourceTag.cpp | 149 ++ .../RuleAclListResponseDTO_data_records.cpp | 190 +-- cfw/src/v1/model/RuleAddressDtoForRequest.cpp | 34 + .../v1/model/RuleAddressDtoForResponse.cpp | 530 ++++++ cfw/src/v1/model/RuleProfileDto.cpp | 79 - cfw/src/v1/model/RuleServiceDto.cpp | 6 +- .../v1/model/RuleServiceDtoForResponse.cpp | 425 +++++ cfw/src/v1/model/ServiceGroupVO.cpp | 183 ++ cfw/src/v1/model/ServiceItemIds.cpp | 6 +- cfw/src/v1/model/ServiceItemIds_items.cpp | 79 + ...erviceItemListResponseDto_data_records.cpp | 35 - cfw/src/v1/model/ServiceSet.cpp | 35 - cfw/src/v1/model/UpdateAddressSetDto.cpp | 35 - cfw/src/v1/model/UpdateBlackWhiteListDto.cpp | 70 - cfw/src/v1/model/UpdateDomainSetInfoDto.cpp | 70 - cfw/src/v1/model/UpdateRuleAclDto.cpp | 34 - cfw/src/v1/model/UpdateServiceSetResponse.cpp | 6 +- cfw/src/v1/model/VpcAttachmentDetail.cpp | 384 ----- csms/include/huaweicloud/csms/v1/CsmsRegion.h | 8 + cts/include/huaweicloud/cts/v3/CtsRegion.h | 4 + dds/include/huaweicloud/dds/v3/DdsRegion.h | 6 +- .../huaweicloud/drs/v3/model/CreateJobReq.h | 15 +- .../huaweicloud/drs/v3/model/QueryJobResp.h | 19 +- .../huaweicloud/drs/v3/model/QueryJobsReq.h | 2 +- .../huaweicloud/drs/v5/model/ActionReq.h | 2 +- .../huaweicloud/drs/v5/model/BaseEndpoint.h | 2 +- .../drs/v5/model/ContentCompareOverviewInfo.h | 2 +- .../model/DownloadDbObjectTemplateRequest.h | 2 +- .../huaweicloud/drs/v5/model/JobBaseInfo.h | 11 + .../drs/v5/model/ReplayErrorClassification.h | 97 ++ .../drs/v5/model/ReplayErrorSqlTemplateResp.h | 11 + .../drs/v5/model/ReplaySlowSqlTemplateResp.h | 11 + .../ShowDbObjectTemplateProgressRequest.h | 11 + .../model/ShowDbObjectTemplateResultRequest.h | 11 + .../drs/v5/model/ShowReplayResultsRequest.h | 35 +- .../drs/v5/model/ShowReplayResultsResponse.h | 12 + .../v5/model/ShowSupportObjectTypeResponse.h | 11 + .../v5/model/UploadDbObjectTemplateRequest.h | 2 +- drs/src/v3/model/CreateJobReq.cpp | 35 + drs/src/v3/model/QueryJobResp.cpp | 35 + drs/src/v5/DrsClient.cpp | 15 + drs/src/v5/DrsMeta.cpp | 15 + drs/src/v5/model/JobBaseInfo.cpp | 35 + .../v5/model/ReplayErrorClassification.cpp | 184 ++ .../v5/model/ReplayErrorSqlTemplateResp.cpp | 35 + .../v5/model/ReplaySlowSqlTemplateResp.cpp | 35 + .../ShowDbObjectTemplateProgressRequest.cpp | 35 + .../ShowDbObjectTemplateResultRequest.cpp | 35 + drs/src/v5/model/ShowReplayResultsRequest.cpp | 105 ++ .../v5/model/ShowReplayResultsResponse.cpp | 34 + .../model/ShowSupportObjectTypeResponse.cpp | 35 + .../ecs/v2/model/FlavorExtraSpec.h | 22 + ecs/src/v2/model/FlavorExtraSpec.cpp | 70 + .../huaweicloud/gaussdb/v3/GaussDBClient.h | 316 ++++ .../huaweicloud/gaussdb/v3/GaussDBMeta.h | 30 + .../v3/model/ChDatabaseConfigCheckResult.h | 86 + .../v3/model/ChDatabaseConfigResponse.h | 77 + .../gaussdb/v3/model/ChDatabaseConfigsInfo.h | 75 + .../v3/model/ChDatabaseParameterInfo.h | 108 ++ .../v3/model/ChDatabaseReplicationInfo.h | 119 ++ .../model/ChDatabaseTableConfigCheckResult.h | 86 + .../v3/model/ChDatabaseTableReplConfigInfo.h | 76 + .../v3/model/ChDatabaseTablesConfigsInfo.h | 75 + .../v3/model/ChEnlargeVolumeRequestBody.h | 63 + .../gaussdb/v3/model/ChInstanceLtsConfigs.h | 77 + .../v3/model/ChInstanceLtsConfigs_instance.h | 141 ++ .../model/ChInstancesInfoRsponse_instance.h | 489 ++++++ .../ChInstancesInfoRsponse_instance_groups.h | 99 ++ ...InstancesInfoRsponse_instance_ops_window.h | 86 + ...nstancesInfoRsponse_instance_param_group.h | 75 + ...hInstancesInfoRsponse_instance_port_info.h | 107 ++ .../gaussdb/v3/model/ChLtsConfigs.h | 97 ++ .../gaussdb/v3/model/ChQueryActionInfo.h | 141 ++ .../ChSlowLogDetailResponse_slow_log_list.h | 196 +++ .../v3/model/ChSlowLogQueryRequestBody.h | 130 ++ .../v3/model/ChSlowlogSensitiveResponse.h | 64 + .../model/CheckChDatabaseConfigRequestBody.h | 111 ++ .../CheckChDatabaseTableConfigRequestBody.h | 123 ++ .../CheckClickHouseDataBaseConfigRequest.h | 94 + .../CheckClickHouseDataBaseConfigResponse.h | 80 + .../model/CheckClickHouseTableConfigRequest.h | 94 + .../CheckClickHouseTableConfigResponse.h | 80 + .../v3/model/ClickHouseDatabaseUserInfo.h | 98 ++ .../v3/model/ClickHouseDatabaseUserPSinfo.h | 87 + .../v3/model/ClickHouseDatabaseUserPWinfo.h | 75 + .../gaussdb/v3/model/ClickHouseEngineInfo.h | 75 + .../gaussdb/v3/model/ClickHouseNodeInfo.h | 407 +++++ ...ClickHouseNodeInfoResponseBody_node_list.h | 86 + .../v3/model/ClickHouseNodeInfo_datastore.h | 86 + .../v3/model/ClickHouseNodeInfo_volume.h | 97 ++ .../model/ClickHouseResizeFlavorRequestBody.h | 86 + .../CreateChDatabaseReplicationRequestBody.h | 86 + .../gaussdb/v3/model/CreateChInstanceInfo.h | 232 +++ .../v3/model/CreateChInstanceInfo_pay_info.h | 108 ++ .../v3/model/CreateChInstanceInfo_tags_info.h | 76 + ... => CreateChInstanceInfo_tags_info_tags.h} | 14 +- .../v3/model/CreateChInstanceRequestBody.h | 179 ++ .../v3/model/CreateChInstanceRequestBody_ha.h | 64 + .../CreateChInstanceRequestBody_pay_info.h | 108 ++ .../CreateChInstanceRequestBody_tags_info.h | 65 + ...ChInstanceRequestBody_tags_info_sys_tags.h | 75 + .../CreateChInstanceRequestBody_volume.h | 75 + .../v3/model/CreateChLtsConfigRequestBody.h | 65 + ...CreateChLtsConfigRequestBody_log_configs.h | 97 ++ ...eateClickHouseDataBaseReplicationRequest.h | 94 + ...ateClickHouseDataBaseReplicationResponse.h | 67 + .../CreateClickHouseDatabaseUserRequest.h | 94 + .../CreateClickHouseDatabaseUserResponse.h | 67 + .../model/CreateClickHouseInstanceRequest.h | 94 + .../model/CreateClickHouseInstanceResponse.h | 79 + .../v3/model/DeleteChLtsConfigRequestBody.h | 65 + ...DeleteChLtsConfigRequestBody_log_configs.h | 75 + .../DeleteClickHouseDataBaseConfigRequest.h | 93 + .../DeleteClickHouseDataBaseConfigResponse.h | 67 + ...leteClickHouseDataBaseReplicationRequest.h | 93 + ...eteClickHouseDataBaseReplicationResponse.h | 67 + .../DeleteClickHouseDatabaseUserRequest.h | 93 + .../DeleteClickHouseDatabaseUserResponse.h | 67 + .../model/DeleteClickHouseInstanceRequest.h | 93 + .../model/DeleteClickHouseInstanceResponse.h | 67 + .../model/DeleteClickHouseLtsConfigRequest.h | 83 + .../model/DeleteClickHouseLtsConfigResponse.h | 55 + .../ListClickHouseDataBaseParameterRequest.h | 82 + .../ListClickHouseDataBaseParameterResponse.h | 68 + ...ickHouseDataBaseReplicationConfigRequest.h | 93 + ...ckHouseDataBaseReplicationConfigResponse.h | 148 ++ ...ListClickHouseDataBaseReplicationRequest.h | 104 ++ ...istClickHouseDataBaseReplicationResponse.h | 91 + .../v3/model/ListClickHouseDataBaseRequest.h | 115 ++ .../v3/model/ListClickHouseDataBaseResponse.h | 79 + .../model/ListClickHouseInstanceNodeRequest.h | 82 + .../ListClickHouseInstanceNodeResponse.h | 68 + .../v3/model/ListClickHouseInstanceRequest.h | 93 + .../v3/model/ListClickHouseInstanceResponse.h | 67 + .../v3/model/PauseStarRocksDataReplication.h | 64 + .../PauseStarRocksDataReplicationRequest.h | 94 + .../PauseStarRocksDataReplicationResponse.h | 67 + .../model/RebootClickHouseInstanceRequest.h | 82 + .../model/RebootClickHouseInstanceResponse.h | 67 + .../v3/model/ResizeClickHouseFlavorRequest.h | 94 + .../v3/model/ResizeClickHouseFlavorResponse.h | 67 + .../model/ResizeClickHouseInstanceRequest.h | 94 + .../model/ResizeClickHouseInstanceResponse.h | 67 + .../v3/model/ResumeStarRocksDataReplication.h | 64 + .../ResumeStarRocksDataReplicationRequest.h | 94 + .../ResumeStarRocksDataReplicationResponse.h | 67 + .../model/ShowClickHouseDatabaseUserRequest.h | 115 ++ .../ShowClickHouseDatabaseUserResponse.h | 79 + ...ShowClickHouseDatabaseUsers_user_details.h | 98 ++ .../v3/model/ShowClickHouseLtsConfigRequest.h | 126 ++ .../model/ShowClickHouseLtsConfigResponse.h | 79 + .../ShowClickHouseSlowLogDetailRequest.h | 94 + .../ShowClickHouseSlowLogDetailResponse.h | 68 + ...wClickHouseSlowLogSensitiveStatusRequest.h | 82 + ...ClickHouseSlowLogSensitiveStatusResponse.h | 67 + .../SrCreateInstanceRsp_instance_tags_info.h | 8 +- .../model/UpdateChDatabaseConfigRequestBody.h | 97 ++ .../UpdateClickHouseDataBaseConfigRequest.h | 94 + .../UpdateClickHouseDataBaseConfigResponse.h | 67 + ...ateClickHouseDatabaseUserPasswordRequest.h | 94 + ...teClickHouseDatabaseUserPasswordResponse.h | 67 + ...eClickHouseDatabaseUserPermissionRequest.h | 94 + ...ClickHouseDatabaseUserPermissionResponse.h | 67 + .../model/UpdateClickHouseLtsConfigRequest.h | 83 + .../model/UpdateClickHouseLtsConfigResponse.h | 55 + ...eClickHouseSlowLogSensitiveStatusRequest.h | 94 + ...ClickHouseSlowLogSensitiveStatusResponse.h | 67 + gaussdb/src/v3/GaussDBClient.cpp | 1514 +++++++++++++++-- gaussdb/src/v3/GaussDBMeta.cpp | 409 +++++ .../v3/model/ChDatabaseConfigCheckResult.cpp | 149 ++ .../src/v3/model/ChDatabaseConfigResponse.cpp | 113 ++ .../src/v3/model/ChDatabaseConfigsInfo.cpp | 114 ++ .../src/v3/model/ChDatabaseParameterInfo.cpp | 219 +++ .../v3/model/ChDatabaseReplicationInfo.cpp | 254 +++ .../ChDatabaseTableConfigCheckResult.cpp | 149 ++ .../model/ChDatabaseTableReplConfigInfo.cpp | 113 ++ .../v3/model/ChDatabaseTablesConfigsInfo.cpp | 114 ++ .../v3/model/ChEnlargeVolumeRequestBody.cpp | 79 + gaussdb/src/v3/model/ChInstanceLtsConfigs.cpp | 112 ++ .../model/ChInstanceLtsConfigs_instance.cpp | 324 ++++ .../model/ChInstancesInfoRsponse_instance.cpp | 1403 +++++++++++++++ ...ChInstancesInfoRsponse_instance_groups.cpp | 183 ++ ...stancesInfoRsponse_instance_ops_window.cpp | 149 ++ ...tancesInfoRsponse_instance_param_group.cpp | 114 ++ ...nstancesInfoRsponse_instance_port_info.cpp | 219 +++ gaussdb/src/v3/model/ChLtsConfigs.cpp | 184 ++ gaussdb/src/v3/model/ChQueryActionInfo.cpp | 324 ++++ .../ChSlowLogDetailResponse_slow_log_list.cpp | 499 ++++++ .../v3/model/ChSlowLogQueryRequestBody.cpp | 289 ++++ .../v3/model/ChSlowlogSensitiveResponse.cpp | 79 + .../CheckChDatabaseConfigRequestBody.cpp | 217 +++ .../CheckChDatabaseTableConfigRequestBody.cpp | 251 +++ .../CheckClickHouseDataBaseConfigRequest.cpp | 148 ++ .../CheckClickHouseDataBaseConfigResponse.cpp | 113 ++ .../CheckClickHouseTableConfigRequest.cpp | 148 ++ .../CheckClickHouseTableConfigResponse.cpp | 113 ++ .../v3/model/ClickHouseDatabaseUserInfo.cpp | 183 ++ .../v3/model/ClickHouseDatabaseUserPSinfo.cpp | 148 ++ .../v3/model/ClickHouseDatabaseUserPWinfo.cpp | 114 ++ gaussdb/src/v3/model/ClickHouseEngineInfo.cpp | 114 ++ gaussdb/src/v3/model/ClickHouseNodeInfo.cpp | 1162 +++++++++++++ ...ickHouseNodeInfoResponseBody_node_list.cpp | 149 ++ .../v3/model/ClickHouseNodeInfo_datastore.cpp | 149 ++ .../v3/model/ClickHouseNodeInfo_volume.cpp | 184 ++ .../ClickHouseResizeFlavorRequestBody.cpp | 149 ++ ...CreateChDatabaseReplicationRequestBody.cpp | 149 ++ gaussdb/src/v3/model/CreateChInstanceInfo.cpp | 601 +++++++ .../model/CreateChInstanceInfo_pay_info.cpp | 219 +++ .../model/CreateChInstanceInfo_tags_info.cpp | 112 ++ ...> CreateChInstanceInfo_tags_info_tags.cpp} | 28 +- .../v3/model/CreateChInstanceRequestBody.cpp | 424 +++++ .../model/CreateChInstanceRequestBody_ha.cpp | 79 + .../CreateChInstanceRequestBody_pay_info.cpp | 219 +++ .../CreateChInstanceRequestBody_tags_info.cpp | 78 + ...InstanceRequestBody_tags_info_sys_tags.cpp | 114 ++ .../CreateChInstanceRequestBody_volume.cpp | 114 ++ .../v3/model/CreateChLtsConfigRequestBody.cpp | 78 + ...eateChLtsConfigRequestBody_log_configs.cpp | 184 ++ ...teClickHouseDataBaseReplicationRequest.cpp | 148 ++ ...eClickHouseDataBaseReplicationResponse.cpp | 79 + .../CreateClickHouseDatabaseUserRequest.cpp | 148 ++ .../CreateClickHouseDatabaseUserResponse.cpp | 79 + .../model/CreateClickHouseInstanceRequest.cpp | 148 ++ .../CreateClickHouseInstanceResponse.cpp | 113 ++ .../v3/model/DeleteChLtsConfigRequestBody.cpp | 78 + ...leteChLtsConfigRequestBody_log_configs.cpp | 114 ++ .../DeleteClickHouseDataBaseConfigRequest.cpp | 149 ++ ...DeleteClickHouseDataBaseConfigResponse.cpp | 79 + ...teClickHouseDataBaseReplicationRequest.cpp | 149 ++ ...eClickHouseDataBaseReplicationResponse.cpp | 79 + .../DeleteClickHouseDatabaseUserRequest.cpp | 149 ++ .../DeleteClickHouseDatabaseUserResponse.cpp | 79 + .../model/DeleteClickHouseInstanceRequest.cpp | 149 ++ .../DeleteClickHouseInstanceResponse.cpp | 79 + .../DeleteClickHouseLtsConfigRequest.cpp | 113 ++ .../DeleteClickHouseLtsConfigResponse.cpp | 44 + ...ListClickHouseDataBaseParameterRequest.cpp | 114 ++ ...istClickHouseDataBaseParameterResponse.cpp | 78 + ...kHouseDataBaseReplicationConfigRequest.cpp | 149 ++ ...HouseDataBaseReplicationConfigResponse.cpp | 320 ++++ ...stClickHouseDataBaseReplicationRequest.cpp | 184 ++ ...tClickHouseDataBaseReplicationResponse.cpp | 148 ++ .../model/ListClickHouseDataBaseRequest.cpp | 219 +++ .../model/ListClickHouseDataBaseResponse.cpp | 113 ++ .../ListClickHouseInstanceNodeRequest.cpp | 114 ++ .../ListClickHouseInstanceNodeResponse.cpp | 78 + .../model/ListClickHouseInstanceRequest.cpp | 149 ++ .../model/ListClickHouseInstanceResponse.cpp | 78 + .../model/PauseStarRocksDataReplication.cpp | 79 + .../PauseStarRocksDataReplicationRequest.cpp | 148 ++ .../PauseStarRocksDataReplicationResponse.cpp | 79 + .../model/RebootClickHouseInstanceRequest.cpp | 114 ++ .../RebootClickHouseInstanceResponse.cpp | 79 + .../model/ResizeClickHouseFlavorRequest.cpp | 148 ++ .../model/ResizeClickHouseFlavorResponse.cpp | 79 + .../model/ResizeClickHouseInstanceRequest.cpp | 148 ++ .../ResizeClickHouseInstanceResponse.cpp | 79 + .../model/ResumeStarRocksDataReplication.cpp | 79 + .../ResumeStarRocksDataReplicationRequest.cpp | 148 ++ ...ResumeStarRocksDataReplicationResponse.cpp | 79 + .../ShowClickHouseDatabaseUserRequest.cpp | 219 +++ .../ShowClickHouseDatabaseUserResponse.cpp | 113 ++ ...owClickHouseDatabaseUsers_user_details.cpp | 183 ++ .../model/ShowClickHouseLtsConfigRequest.cpp | 254 +++ .../model/ShowClickHouseLtsConfigResponse.cpp | 113 ++ .../ShowClickHouseSlowLogDetailRequest.cpp | 148 ++ .../ShowClickHouseSlowLogDetailResponse.cpp | 78 + ...lickHouseSlowLogSensitiveStatusRequest.cpp | 114 ++ ...ickHouseSlowLogSensitiveStatusResponse.cpp | 79 + ...SrCreateInstanceRsp_instance_tags_info.cpp | 6 +- .../UpdateChDatabaseConfigRequestBody.cpp | 184 ++ .../UpdateClickHouseDataBaseConfigRequest.cpp | 148 ++ ...UpdateClickHouseDataBaseConfigResponse.cpp | 79 + ...eClickHouseDatabaseUserPasswordRequest.cpp | 148 ++ ...ClickHouseDatabaseUserPasswordResponse.cpp | 79 + ...lickHouseDatabaseUserPermissionRequest.cpp | 148 ++ ...ickHouseDatabaseUserPermissionResponse.cpp | 79 + .../UpdateClickHouseLtsConfigRequest.cpp | 113 ++ .../UpdateClickHouseLtsConfigResponse.cpp | 44 + ...lickHouseSlowLogSensitiveStatusRequest.cpp | 148 ++ ...ickHouseSlowLogSensitiveStatusResponse.cpp | 79 + .../v3/GaussDBforopenGaussClient.h | 64 + .../v3/GaussDBforopenGaussMeta.h | 5 + .../v3/model/BackupPolicyInfo.h | 141 ++ .../v3/model/ConfirmRestoredDataRequest.h | 82 + .../v3/model/ConfirmRestoredDataResponse.h | 67 + .../GaussDBUpgradeInstancesVersionRequest.h | 98 ++ .../gaussdbforopengauss/v3/model/HotfixInfo.h | 97 ++ .../v3/model/HotfixVersionInfo.h | 75 + .../v3/model/ListInstanceDatastore.h | 121 ++ .../v3/model/ListInstanceDetailsRequest.h | 182 ++ .../v3/model/ListInstanceDetailsResponse.h | 79 + .../v3/model/ListInstancesResult.h | 415 +++++ .../v3/model/MySQLCompatibilityResult.h | 64 + .../v3/model/OpenGaussInstanceRequest.h | 2 +- .../v3/model/OpenGaussInstanceRequestBody.h | 2 +- .../v3/model/SetNewBackupPolicyRequest.h | 94 + .../v3/model/SetNewBackupPolicyRequestBody.h | 64 + .../v3/model/SetNewBackupPolicyResponse.h | 55 + ...ShowBatchUpgradeCandidateVersionsRequest.h | 83 + ...howBatchUpgradeCandidateVersionsResponse.h | 103 ++ .../v3/model/UpgradeInstancesRequestBody.h | 65 + .../v3/model/UpgradeInstancesVersionRequest.h | 83 + .../model/UpgradeInstancesVersionResponse.h | 112 ++ .../src/v3/GaussDBforopenGaussClient.cpp | 228 +++ .../src/v3/GaussDBforopenGaussMeta.cpp | 92 + .../src/v3/model/BackupPolicyInfo.cpp | 324 ++++ .../v3/model/ConfirmRestoredDataRequest.cpp | 114 ++ .../v3/model/ConfirmRestoredDataResponse.cpp | 79 + .../GaussDBUpgradeInstancesVersionRequest.cpp | 183 ++ .../src/v3/model/HotfixInfo.cpp | 184 ++ .../src/v3/model/HotfixVersionInfo.cpp | 114 ++ .../src/v3/model/ListInstanceDatastore.cpp | 253 +++ .../v3/model/ListInstanceDetailsRequest.cpp | 428 +++++ .../v3/model/ListInstanceDetailsResponse.cpp | 113 ++ .../src/v3/model/ListInstancesResult.cpp | 1153 +++++++++++++ .../src/v3/model/MySQLCompatibilityResult.cpp | 79 + .../v3/model/SetNewBackupPolicyRequest.cpp | 148 ++ .../model/SetNewBackupPolicyRequestBody.cpp | 78 + .../v3/model/SetNewBackupPolicyResponse.cpp | 44 + ...owBatchUpgradeCandidateVersionsRequest.cpp | 113 ++ ...wBatchUpgradeCandidateVersionsResponse.cpp | 181 ++ .../v3/model/UpgradeInstancesRequestBody.cpp | 78 + .../model/UpgradeInstancesVersionRequest.cpp | 113 ++ .../model/UpgradeInstancesVersionResponse.cpp | 216 +++ kms/include/huaweicloud/kms/v2/KmsRegion.h | 8 + kvs/include/huaweicloud/kvs/v1/KvsClient.h | 4 +- .../kvs/v1/model/Composed_expression.h | 80 - .../kvs/v1/model/Condition_expression.h | 24 - .../kvs/v1/model/DeleteKvResponse.h | 24 - .../huaweicloud/kvs/v1/model/Expression.h | 67 - .../huaweicloud/kvs/v1/model/GetKvResponse.h | 12 - .../huaweicloud/kvs/v1/model/Kv_blob.h | 89 - .../huaweicloud/kvs/v1/model/Kv_blob_data.h | 122 -- .../huaweicloud/kvs/v1/model/Kv_options.h | 66 - .../kvs/v1/model/PutKvRequestBody.h | 12 - kvs/include/huaweicloud/kvs/v1/model/Put_kv.h | 12 - .../kvs/v1/model/Returned_kv_item.h | 12 - .../kvs/v1/model/Single_kv_expression.h | 67 - .../kvs/v1/model/UpdateKvRequestBody.h | 24 - .../kvs/v1/model/UpdateKvResponse.h | 24 - .../huaweicloud/kvs/v1/model/Update_blob.h | 100 -- kvs/src/v1/model/Composed_expression.cpp | 119 -- kvs/src/v1/model/Condition_expression.cpp | 68 - kvs/src/v1/model/DeleteKvResponse.cpp | 68 - kvs/src/v1/model/Expression.cpp | 84 - kvs/src/v1/model/GetKvResponse.cpp | 34 - kvs/src/v1/model/Kv_blob.cpp | 152 -- kvs/src/v1/model/Kv_blob_data.cpp | 257 --- kvs/src/v1/model/Kv_options.cpp | 85 - kvs/src/v1/model/PutKvRequestBody.cpp | 34 - kvs/src/v1/model/Put_kv.cpp | 34 - kvs/src/v1/model/Returned_kv_item.cpp | 34 - kvs/src/v1/model/Single_kv_expression.cpp | 85 - kvs/src/v1/model/UpdateKvRequestBody.cpp | 68 - kvs/src/v1/model/UpdateKvResponse.cpp | 68 - kvs/src/v1/model/Update_blob.cpp | 188 -- 560 files changed, 50724 insertions(+), 4554 deletions(-) create mode 100644 cfw/include/huaweicloud/cfw/v1/model/CancelCaptureTaskDto.h create mode 100644 cfw/include/huaweicloud/cfw/v1/model/CancelCaptureTaskRequest.h create mode 100644 cfw/include/huaweicloud/cfw/v1/model/CancelCaptureTaskResponse.h create mode 100644 cfw/include/huaweicloud/cfw/v1/model/CaptureFile.h create mode 100644 cfw/include/huaweicloud/cfw/v1/model/CaptureResultUrlVO.h create mode 100644 cfw/include/huaweicloud/cfw/v1/model/CaptureRuleAddressDto.h create mode 100644 cfw/include/huaweicloud/cfw/v1/model/CaptureServiceDto.h create mode 100644 cfw/include/huaweicloud/cfw/v1/model/CaptureTaskDto.h create mode 100644 cfw/include/huaweicloud/cfw/v1/model/CaptureTaskVO.h create mode 100644 cfw/include/huaweicloud/cfw/v1/model/CreateCaptureTaskRequest.h create mode 100644 cfw/include/huaweicloud/cfw/v1/model/CreateCaptureTaskResponse.h create mode 100644 cfw/include/huaweicloud/cfw/v1/model/CreateEWFirewallInspectVpcResp.h create mode 100644 cfw/include/huaweicloud/cfw/v1/model/CreateEWFirewallResp.h rename cfw/include/huaweicloud/cfw/v1/model/{Tag.h => CreateTag.h} (81%) create mode 100644 cfw/include/huaweicloud/cfw/v1/model/CreateTagRequest.h create mode 100644 cfw/include/huaweicloud/cfw/v1/model/CreateTagResponse.h create mode 100644 cfw/include/huaweicloud/cfw/v1/model/CreateTagsDto.h create mode 100644 cfw/include/huaweicloud/cfw/v1/model/DeleteCaptureTaskDto.h create mode 100644 cfw/include/huaweicloud/cfw/v1/model/DeleteCaptureTaskRequest.h create mode 100644 cfw/include/huaweicloud/cfw/v1/model/DeleteCaptureTaskResponse.h create mode 100644 cfw/include/huaweicloud/cfw/v1/model/DeleteTagRequest.h create mode 100644 cfw/include/huaweicloud/cfw/v1/model/DeleteTagResponse.h create mode 100644 cfw/include/huaweicloud/cfw/v1/model/DeleteTagsDto.h create mode 100644 cfw/include/huaweicloud/cfw/v1/model/ER.h rename cfw/include/huaweicloud/cfw/v1/model/{RuleProfileDto.h => HostHeaderInfo.h} (61%) create mode 100644 cfw/include/huaweicloud/cfw/v1/model/HttpQueryCaptureTaskResponseData.h create mode 100644 cfw/include/huaweicloud/cfw/v1/model/ListCaptureResultRequest.h create mode 100644 cfw/include/huaweicloud/cfw/v1/model/ListCaptureResultResponse.h create mode 100644 cfw/include/huaweicloud/cfw/v1/model/ListCaptureTaskRequest.h create mode 100644 cfw/include/huaweicloud/cfw/v1/model/ListCaptureTaskResponse.h create mode 100644 cfw/include/huaweicloud/cfw/v1/model/ResourceTag.h create mode 100644 cfw/include/huaweicloud/cfw/v1/model/RuleAddressDtoForResponse.h create mode 100644 cfw/include/huaweicloud/cfw/v1/model/RuleServiceDtoForResponse.h create mode 100644 cfw/include/huaweicloud/cfw/v1/model/ServiceGroupVO.h create mode 100644 cfw/include/huaweicloud/cfw/v1/model/ServiceItemIds_items.h create mode 100644 cfw/src/v1/model/CancelCaptureTaskDto.cpp create mode 100644 cfw/src/v1/model/CancelCaptureTaskRequest.cpp create mode 100644 cfw/src/v1/model/CancelCaptureTaskResponse.cpp create mode 100644 cfw/src/v1/model/CaptureFile.cpp create mode 100644 cfw/src/v1/model/CaptureResultUrlVO.cpp create mode 100644 cfw/src/v1/model/CaptureRuleAddressDto.cpp create mode 100644 cfw/src/v1/model/CaptureServiceDto.cpp create mode 100644 cfw/src/v1/model/CaptureTaskDto.cpp create mode 100644 cfw/src/v1/model/CaptureTaskVO.cpp create mode 100644 cfw/src/v1/model/CreateCaptureTaskRequest.cpp create mode 100644 cfw/src/v1/model/CreateCaptureTaskResponse.cpp create mode 100644 cfw/src/v1/model/CreateEWFirewallInspectVpcResp.cpp create mode 100644 cfw/src/v1/model/CreateEWFirewallResp.cpp rename cfw/src/v1/model/{Tag.cpp => CreateTag.cpp} (73%) create mode 100644 cfw/src/v1/model/CreateTagRequest.cpp create mode 100644 cfw/src/v1/model/CreateTagResponse.cpp create mode 100644 cfw/src/v1/model/CreateTagsDto.cpp create mode 100644 cfw/src/v1/model/DeleteCaptureTaskDto.cpp create mode 100644 cfw/src/v1/model/DeleteCaptureTaskRequest.cpp create mode 100644 cfw/src/v1/model/DeleteCaptureTaskResponse.cpp create mode 100644 cfw/src/v1/model/DeleteTagRequest.cpp create mode 100644 cfw/src/v1/model/DeleteTagResponse.cpp create mode 100644 cfw/src/v1/model/DeleteTagsDto.cpp create mode 100644 cfw/src/v1/model/ER.cpp create mode 100644 cfw/src/v1/model/HostHeaderInfo.cpp create mode 100644 cfw/src/v1/model/HttpQueryCaptureTaskResponseData.cpp create mode 100644 cfw/src/v1/model/ListCaptureResultRequest.cpp create mode 100644 cfw/src/v1/model/ListCaptureResultResponse.cpp create mode 100644 cfw/src/v1/model/ListCaptureTaskRequest.cpp create mode 100644 cfw/src/v1/model/ListCaptureTaskResponse.cpp create mode 100644 cfw/src/v1/model/ResourceTag.cpp create mode 100644 cfw/src/v1/model/RuleAddressDtoForResponse.cpp delete mode 100644 cfw/src/v1/model/RuleProfileDto.cpp create mode 100644 cfw/src/v1/model/RuleServiceDtoForResponse.cpp create mode 100644 cfw/src/v1/model/ServiceGroupVO.cpp create mode 100644 cfw/src/v1/model/ServiceItemIds_items.cpp create mode 100644 drs/include/huaweicloud/drs/v5/model/ReplayErrorClassification.h create mode 100644 drs/src/v5/model/ReplayErrorClassification.cpp create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ChDatabaseConfigCheckResult.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ChDatabaseConfigResponse.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ChDatabaseConfigsInfo.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ChDatabaseParameterInfo.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ChDatabaseReplicationInfo.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ChDatabaseTableConfigCheckResult.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ChDatabaseTableReplConfigInfo.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ChDatabaseTablesConfigsInfo.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ChEnlargeVolumeRequestBody.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ChInstanceLtsConfigs.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ChInstanceLtsConfigs_instance.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ChInstancesInfoRsponse_instance.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ChInstancesInfoRsponse_instance_groups.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ChInstancesInfoRsponse_instance_ops_window.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ChInstancesInfoRsponse_instance_param_group.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ChInstancesInfoRsponse_instance_port_info.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ChLtsConfigs.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ChQueryActionInfo.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ChSlowLogDetailResponse_slow_log_list.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ChSlowLogQueryRequestBody.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ChSlowlogSensitiveResponse.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/CheckChDatabaseConfigRequestBody.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/CheckChDatabaseTableConfigRequestBody.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/CheckClickHouseDataBaseConfigRequest.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/CheckClickHouseDataBaseConfigResponse.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/CheckClickHouseTableConfigRequest.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/CheckClickHouseTableConfigResponse.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ClickHouseDatabaseUserInfo.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ClickHouseDatabaseUserPSinfo.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ClickHouseDatabaseUserPWinfo.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ClickHouseEngineInfo.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ClickHouseNodeInfo.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ClickHouseNodeInfoResponseBody_node_list.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ClickHouseNodeInfo_datastore.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ClickHouseNodeInfo_volume.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ClickHouseResizeFlavorRequestBody.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/CreateChDatabaseReplicationRequestBody.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/CreateChInstanceInfo.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/CreateChInstanceInfo_pay_info.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/CreateChInstanceInfo_tags_info.h rename gaussdb/include/huaweicloud/gaussdb/v3/model/{SrCreateInstanceRsp_instance_tags_info_tags.h => CreateChInstanceInfo_tags_info_tags.h} (70%) create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/CreateChInstanceRequestBody.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/CreateChInstanceRequestBody_ha.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/CreateChInstanceRequestBody_pay_info.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/CreateChInstanceRequestBody_tags_info.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/CreateChInstanceRequestBody_tags_info_sys_tags.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/CreateChInstanceRequestBody_volume.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/CreateChLtsConfigRequestBody.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/CreateChLtsConfigRequestBody_log_configs.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/CreateClickHouseDataBaseReplicationRequest.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/CreateClickHouseDataBaseReplicationResponse.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/CreateClickHouseDatabaseUserRequest.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/CreateClickHouseDatabaseUserResponse.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/CreateClickHouseInstanceRequest.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/CreateClickHouseInstanceResponse.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/DeleteChLtsConfigRequestBody.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/DeleteChLtsConfigRequestBody_log_configs.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/DeleteClickHouseDataBaseConfigRequest.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/DeleteClickHouseDataBaseConfigResponse.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/DeleteClickHouseDataBaseReplicationRequest.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/DeleteClickHouseDataBaseReplicationResponse.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/DeleteClickHouseDatabaseUserRequest.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/DeleteClickHouseDatabaseUserResponse.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/DeleteClickHouseInstanceRequest.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/DeleteClickHouseInstanceResponse.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/DeleteClickHouseLtsConfigRequest.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/DeleteClickHouseLtsConfigResponse.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ListClickHouseDataBaseParameterRequest.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ListClickHouseDataBaseParameterResponse.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ListClickHouseDataBaseReplicationConfigRequest.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ListClickHouseDataBaseReplicationConfigResponse.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ListClickHouseDataBaseReplicationRequest.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ListClickHouseDataBaseReplicationResponse.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ListClickHouseDataBaseRequest.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ListClickHouseDataBaseResponse.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ListClickHouseInstanceNodeRequest.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ListClickHouseInstanceNodeResponse.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ListClickHouseInstanceRequest.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ListClickHouseInstanceResponse.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/PauseStarRocksDataReplication.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/PauseStarRocksDataReplicationRequest.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/PauseStarRocksDataReplicationResponse.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/RebootClickHouseInstanceRequest.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/RebootClickHouseInstanceResponse.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ResizeClickHouseFlavorRequest.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ResizeClickHouseFlavorResponse.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ResizeClickHouseInstanceRequest.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ResizeClickHouseInstanceResponse.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ResumeStarRocksDataReplication.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ResumeStarRocksDataReplicationRequest.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ResumeStarRocksDataReplicationResponse.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ShowClickHouseDatabaseUserRequest.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ShowClickHouseDatabaseUserResponse.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ShowClickHouseDatabaseUsers_user_details.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ShowClickHouseLtsConfigRequest.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ShowClickHouseLtsConfigResponse.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ShowClickHouseSlowLogDetailRequest.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ShowClickHouseSlowLogDetailResponse.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ShowClickHouseSlowLogSensitiveStatusRequest.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/ShowClickHouseSlowLogSensitiveStatusResponse.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/UpdateChDatabaseConfigRequestBody.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/UpdateClickHouseDataBaseConfigRequest.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/UpdateClickHouseDataBaseConfigResponse.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/UpdateClickHouseDatabaseUserPasswordRequest.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/UpdateClickHouseDatabaseUserPasswordResponse.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/UpdateClickHouseDatabaseUserPermissionRequest.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/UpdateClickHouseDatabaseUserPermissionResponse.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/UpdateClickHouseLtsConfigRequest.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/UpdateClickHouseLtsConfigResponse.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/UpdateClickHouseSlowLogSensitiveStatusRequest.h create mode 100644 gaussdb/include/huaweicloud/gaussdb/v3/model/UpdateClickHouseSlowLogSensitiveStatusResponse.h create mode 100644 gaussdb/src/v3/model/ChDatabaseConfigCheckResult.cpp create mode 100644 gaussdb/src/v3/model/ChDatabaseConfigResponse.cpp create mode 100644 gaussdb/src/v3/model/ChDatabaseConfigsInfo.cpp create mode 100644 gaussdb/src/v3/model/ChDatabaseParameterInfo.cpp create mode 100644 gaussdb/src/v3/model/ChDatabaseReplicationInfo.cpp create mode 100644 gaussdb/src/v3/model/ChDatabaseTableConfigCheckResult.cpp create mode 100644 gaussdb/src/v3/model/ChDatabaseTableReplConfigInfo.cpp create mode 100644 gaussdb/src/v3/model/ChDatabaseTablesConfigsInfo.cpp create mode 100644 gaussdb/src/v3/model/ChEnlargeVolumeRequestBody.cpp create mode 100644 gaussdb/src/v3/model/ChInstanceLtsConfigs.cpp create mode 100644 gaussdb/src/v3/model/ChInstanceLtsConfigs_instance.cpp create mode 100644 gaussdb/src/v3/model/ChInstancesInfoRsponse_instance.cpp create mode 100644 gaussdb/src/v3/model/ChInstancesInfoRsponse_instance_groups.cpp create mode 100644 gaussdb/src/v3/model/ChInstancesInfoRsponse_instance_ops_window.cpp create mode 100644 gaussdb/src/v3/model/ChInstancesInfoRsponse_instance_param_group.cpp create mode 100644 gaussdb/src/v3/model/ChInstancesInfoRsponse_instance_port_info.cpp create mode 100644 gaussdb/src/v3/model/ChLtsConfigs.cpp create mode 100644 gaussdb/src/v3/model/ChQueryActionInfo.cpp create mode 100644 gaussdb/src/v3/model/ChSlowLogDetailResponse_slow_log_list.cpp create mode 100644 gaussdb/src/v3/model/ChSlowLogQueryRequestBody.cpp create mode 100644 gaussdb/src/v3/model/ChSlowlogSensitiveResponse.cpp create mode 100644 gaussdb/src/v3/model/CheckChDatabaseConfigRequestBody.cpp create mode 100644 gaussdb/src/v3/model/CheckChDatabaseTableConfigRequestBody.cpp create mode 100644 gaussdb/src/v3/model/CheckClickHouseDataBaseConfigRequest.cpp create mode 100644 gaussdb/src/v3/model/CheckClickHouseDataBaseConfigResponse.cpp create mode 100644 gaussdb/src/v3/model/CheckClickHouseTableConfigRequest.cpp create mode 100644 gaussdb/src/v3/model/CheckClickHouseTableConfigResponse.cpp create mode 100644 gaussdb/src/v3/model/ClickHouseDatabaseUserInfo.cpp create mode 100644 gaussdb/src/v3/model/ClickHouseDatabaseUserPSinfo.cpp create mode 100644 gaussdb/src/v3/model/ClickHouseDatabaseUserPWinfo.cpp create mode 100644 gaussdb/src/v3/model/ClickHouseEngineInfo.cpp create mode 100644 gaussdb/src/v3/model/ClickHouseNodeInfo.cpp create mode 100644 gaussdb/src/v3/model/ClickHouseNodeInfoResponseBody_node_list.cpp create mode 100644 gaussdb/src/v3/model/ClickHouseNodeInfo_datastore.cpp create mode 100644 gaussdb/src/v3/model/ClickHouseNodeInfo_volume.cpp create mode 100644 gaussdb/src/v3/model/ClickHouseResizeFlavorRequestBody.cpp create mode 100644 gaussdb/src/v3/model/CreateChDatabaseReplicationRequestBody.cpp create mode 100644 gaussdb/src/v3/model/CreateChInstanceInfo.cpp create mode 100644 gaussdb/src/v3/model/CreateChInstanceInfo_pay_info.cpp create mode 100644 gaussdb/src/v3/model/CreateChInstanceInfo_tags_info.cpp rename gaussdb/src/v3/model/{SrCreateInstanceRsp_instance_tags_info_tags.cpp => CreateChInstanceInfo_tags_info_tags.cpp} (58%) create mode 100644 gaussdb/src/v3/model/CreateChInstanceRequestBody.cpp create mode 100644 gaussdb/src/v3/model/CreateChInstanceRequestBody_ha.cpp create mode 100644 gaussdb/src/v3/model/CreateChInstanceRequestBody_pay_info.cpp create mode 100644 gaussdb/src/v3/model/CreateChInstanceRequestBody_tags_info.cpp create mode 100644 gaussdb/src/v3/model/CreateChInstanceRequestBody_tags_info_sys_tags.cpp create mode 100644 gaussdb/src/v3/model/CreateChInstanceRequestBody_volume.cpp create mode 100644 gaussdb/src/v3/model/CreateChLtsConfigRequestBody.cpp create mode 100644 gaussdb/src/v3/model/CreateChLtsConfigRequestBody_log_configs.cpp create mode 100644 gaussdb/src/v3/model/CreateClickHouseDataBaseReplicationRequest.cpp create mode 100644 gaussdb/src/v3/model/CreateClickHouseDataBaseReplicationResponse.cpp create mode 100644 gaussdb/src/v3/model/CreateClickHouseDatabaseUserRequest.cpp create mode 100644 gaussdb/src/v3/model/CreateClickHouseDatabaseUserResponse.cpp create mode 100644 gaussdb/src/v3/model/CreateClickHouseInstanceRequest.cpp create mode 100644 gaussdb/src/v3/model/CreateClickHouseInstanceResponse.cpp create mode 100644 gaussdb/src/v3/model/DeleteChLtsConfigRequestBody.cpp create mode 100644 gaussdb/src/v3/model/DeleteChLtsConfigRequestBody_log_configs.cpp create mode 100644 gaussdb/src/v3/model/DeleteClickHouseDataBaseConfigRequest.cpp create mode 100644 gaussdb/src/v3/model/DeleteClickHouseDataBaseConfigResponse.cpp create mode 100644 gaussdb/src/v3/model/DeleteClickHouseDataBaseReplicationRequest.cpp create mode 100644 gaussdb/src/v3/model/DeleteClickHouseDataBaseReplicationResponse.cpp create mode 100644 gaussdb/src/v3/model/DeleteClickHouseDatabaseUserRequest.cpp create mode 100644 gaussdb/src/v3/model/DeleteClickHouseDatabaseUserResponse.cpp create mode 100644 gaussdb/src/v3/model/DeleteClickHouseInstanceRequest.cpp create mode 100644 gaussdb/src/v3/model/DeleteClickHouseInstanceResponse.cpp create mode 100644 gaussdb/src/v3/model/DeleteClickHouseLtsConfigRequest.cpp create mode 100644 gaussdb/src/v3/model/DeleteClickHouseLtsConfigResponse.cpp create mode 100644 gaussdb/src/v3/model/ListClickHouseDataBaseParameterRequest.cpp create mode 100644 gaussdb/src/v3/model/ListClickHouseDataBaseParameterResponse.cpp create mode 100644 gaussdb/src/v3/model/ListClickHouseDataBaseReplicationConfigRequest.cpp create mode 100644 gaussdb/src/v3/model/ListClickHouseDataBaseReplicationConfigResponse.cpp create mode 100644 gaussdb/src/v3/model/ListClickHouseDataBaseReplicationRequest.cpp create mode 100644 gaussdb/src/v3/model/ListClickHouseDataBaseReplicationResponse.cpp create mode 100644 gaussdb/src/v3/model/ListClickHouseDataBaseRequest.cpp create mode 100644 gaussdb/src/v3/model/ListClickHouseDataBaseResponse.cpp create mode 100644 gaussdb/src/v3/model/ListClickHouseInstanceNodeRequest.cpp create mode 100644 gaussdb/src/v3/model/ListClickHouseInstanceNodeResponse.cpp create mode 100644 gaussdb/src/v3/model/ListClickHouseInstanceRequest.cpp create mode 100644 gaussdb/src/v3/model/ListClickHouseInstanceResponse.cpp create mode 100644 gaussdb/src/v3/model/PauseStarRocksDataReplication.cpp create mode 100644 gaussdb/src/v3/model/PauseStarRocksDataReplicationRequest.cpp create mode 100644 gaussdb/src/v3/model/PauseStarRocksDataReplicationResponse.cpp create mode 100644 gaussdb/src/v3/model/RebootClickHouseInstanceRequest.cpp create mode 100644 gaussdb/src/v3/model/RebootClickHouseInstanceResponse.cpp create mode 100644 gaussdb/src/v3/model/ResizeClickHouseFlavorRequest.cpp create mode 100644 gaussdb/src/v3/model/ResizeClickHouseFlavorResponse.cpp create mode 100644 gaussdb/src/v3/model/ResizeClickHouseInstanceRequest.cpp create mode 100644 gaussdb/src/v3/model/ResizeClickHouseInstanceResponse.cpp create mode 100644 gaussdb/src/v3/model/ResumeStarRocksDataReplication.cpp create mode 100644 gaussdb/src/v3/model/ResumeStarRocksDataReplicationRequest.cpp create mode 100644 gaussdb/src/v3/model/ResumeStarRocksDataReplicationResponse.cpp create mode 100644 gaussdb/src/v3/model/ShowClickHouseDatabaseUserRequest.cpp create mode 100644 gaussdb/src/v3/model/ShowClickHouseDatabaseUserResponse.cpp create mode 100644 gaussdb/src/v3/model/ShowClickHouseDatabaseUsers_user_details.cpp create mode 100644 gaussdb/src/v3/model/ShowClickHouseLtsConfigRequest.cpp create mode 100644 gaussdb/src/v3/model/ShowClickHouseLtsConfigResponse.cpp create mode 100644 gaussdb/src/v3/model/ShowClickHouseSlowLogDetailRequest.cpp create mode 100644 gaussdb/src/v3/model/ShowClickHouseSlowLogDetailResponse.cpp create mode 100644 gaussdb/src/v3/model/ShowClickHouseSlowLogSensitiveStatusRequest.cpp create mode 100644 gaussdb/src/v3/model/ShowClickHouseSlowLogSensitiveStatusResponse.cpp create mode 100644 gaussdb/src/v3/model/UpdateChDatabaseConfigRequestBody.cpp create mode 100644 gaussdb/src/v3/model/UpdateClickHouseDataBaseConfigRequest.cpp create mode 100644 gaussdb/src/v3/model/UpdateClickHouseDataBaseConfigResponse.cpp create mode 100644 gaussdb/src/v3/model/UpdateClickHouseDatabaseUserPasswordRequest.cpp create mode 100644 gaussdb/src/v3/model/UpdateClickHouseDatabaseUserPasswordResponse.cpp create mode 100644 gaussdb/src/v3/model/UpdateClickHouseDatabaseUserPermissionRequest.cpp create mode 100644 gaussdb/src/v3/model/UpdateClickHouseDatabaseUserPermissionResponse.cpp create mode 100644 gaussdb/src/v3/model/UpdateClickHouseLtsConfigRequest.cpp create mode 100644 gaussdb/src/v3/model/UpdateClickHouseLtsConfigResponse.cpp create mode 100644 gaussdb/src/v3/model/UpdateClickHouseSlowLogSensitiveStatusRequest.cpp create mode 100644 gaussdb/src/v3/model/UpdateClickHouseSlowLogSensitiveStatusResponse.cpp create mode 100644 gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/BackupPolicyInfo.h create mode 100644 gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ConfirmRestoredDataRequest.h create mode 100644 gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ConfirmRestoredDataResponse.h create mode 100644 gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/GaussDBUpgradeInstancesVersionRequest.h create mode 100644 gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/HotfixInfo.h create mode 100644 gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/HotfixVersionInfo.h create mode 100644 gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ListInstanceDatastore.h create mode 100644 gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ListInstanceDetailsRequest.h create mode 100644 gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ListInstanceDetailsResponse.h create mode 100644 gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ListInstancesResult.h create mode 100644 gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/MySQLCompatibilityResult.h create mode 100644 gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/SetNewBackupPolicyRequest.h create mode 100644 gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/SetNewBackupPolicyRequestBody.h create mode 100644 gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/SetNewBackupPolicyResponse.h create mode 100644 gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ShowBatchUpgradeCandidateVersionsRequest.h create mode 100644 gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ShowBatchUpgradeCandidateVersionsResponse.h create mode 100644 gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/UpgradeInstancesRequestBody.h create mode 100644 gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/UpgradeInstancesVersionRequest.h create mode 100644 gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/UpgradeInstancesVersionResponse.h create mode 100644 gaussdbforopengauss/src/v3/model/BackupPolicyInfo.cpp create mode 100644 gaussdbforopengauss/src/v3/model/ConfirmRestoredDataRequest.cpp create mode 100644 gaussdbforopengauss/src/v3/model/ConfirmRestoredDataResponse.cpp create mode 100644 gaussdbforopengauss/src/v3/model/GaussDBUpgradeInstancesVersionRequest.cpp create mode 100644 gaussdbforopengauss/src/v3/model/HotfixInfo.cpp create mode 100644 gaussdbforopengauss/src/v3/model/HotfixVersionInfo.cpp create mode 100644 gaussdbforopengauss/src/v3/model/ListInstanceDatastore.cpp create mode 100644 gaussdbforopengauss/src/v3/model/ListInstanceDetailsRequest.cpp create mode 100644 gaussdbforopengauss/src/v3/model/ListInstanceDetailsResponse.cpp create mode 100644 gaussdbforopengauss/src/v3/model/ListInstancesResult.cpp create mode 100644 gaussdbforopengauss/src/v3/model/MySQLCompatibilityResult.cpp create mode 100644 gaussdbforopengauss/src/v3/model/SetNewBackupPolicyRequest.cpp create mode 100644 gaussdbforopengauss/src/v3/model/SetNewBackupPolicyRequestBody.cpp create mode 100644 gaussdbforopengauss/src/v3/model/SetNewBackupPolicyResponse.cpp create mode 100644 gaussdbforopengauss/src/v3/model/ShowBatchUpgradeCandidateVersionsRequest.cpp create mode 100644 gaussdbforopengauss/src/v3/model/ShowBatchUpgradeCandidateVersionsResponse.cpp create mode 100644 gaussdbforopengauss/src/v3/model/UpgradeInstancesRequestBody.cpp create mode 100644 gaussdbforopengauss/src/v3/model/UpgradeInstancesVersionRequest.cpp create mode 100644 gaussdbforopengauss/src/v3/model/UpgradeInstancesVersionResponse.cpp delete mode 100644 kvs/include/huaweicloud/kvs/v1/model/Composed_expression.h delete mode 100644 kvs/include/huaweicloud/kvs/v1/model/Expression.h delete mode 100644 kvs/include/huaweicloud/kvs/v1/model/Kv_blob.h delete mode 100644 kvs/include/huaweicloud/kvs/v1/model/Kv_blob_data.h delete mode 100644 kvs/include/huaweicloud/kvs/v1/model/Kv_options.h delete mode 100644 kvs/include/huaweicloud/kvs/v1/model/Single_kv_expression.h delete mode 100644 kvs/include/huaweicloud/kvs/v1/model/Update_blob.h delete mode 100644 kvs/src/v1/model/Composed_expression.cpp delete mode 100644 kvs/src/v1/model/Expression.cpp delete mode 100644 kvs/src/v1/model/Kv_blob.cpp delete mode 100644 kvs/src/v1/model/Kv_blob_data.cpp delete mode 100644 kvs/src/v1/model/Kv_options.cpp delete mode 100644 kvs/src/v1/model/Single_kv_expression.cpp delete mode 100644 kvs/src/v1/model/Update_blob.cpp diff --git a/CHANGELOG.md b/CHANGELOG.md index e692fff37..8795b1aae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,411 @@ +# 3.1.91 2024-06-27 + +### HuaweiCloud SDK CFW + +- _Features_ + - Support the following APIs: + - `CreateTag` + - `DeleteTag` + - `ListCaptureTask` + - `CreateCaptureTask` + - `DeleteCaptureTask` + - `ListCaptureResult` + - `CancelCaptureTask` +- _Bug Fix_ + - None +- _Change_ + - **ListFlowLogs** + - changes of request param + - `+ src_province_name` + - `+ dst_province_name` + - `+ src_city_name` + - `+ dst_city_name` + - `+ protocol: enum value [6,17,1,58]` + - changes of response param + - `+ data.records.dst_province_id` + - `+ data.records.dst_province_name` + - `+ data.records.dst_city_id` + - `+ data.records.dst_city_name` + - `+ data.records.src_province_id` + - `+ data.records.src_province_name` + - `+ data.records.src_city_id` + - `+ data.records.src_city_name` + - **ListAccessControlLogs** + - changes of request param + - `+ src_province_name` + - `+ dst_province_name` + - `+ src_city_name` + - `+ dst_city_name` + - changes of response param + - `+ data.records.src_province_id` + - `+ data.records.src_province_name` + - `+ data.records.src_city_id` + - `+ data.records.src_city_name` + - `+ data.records.dst_province_id` + - `+ data.records.dst_province_name` + - `+ data.records.dst_city_id` + - `+ data.records.dst_city_name` + - **ListBlackWhiteLists** + - changes of request param + - `+ address_type: enum value [0,1,2]` + - changes of response param + - `- data.object_id` + - **AddServiceSet** + - changes of response param + - `- data.name` + - `* data: object -> object` + - **ListDomainParseDetail** + - changes of request param + - `* address_type: string -> int32` + - **UpdateDnsServers** + - changes of request param + - `* fw_instance_id: optional -> required` + - **ListDnsServers** + - changes of request param + - `* fw_instance_id: optional -> required` + - **ChangeIpsSwitchStatus** + - changes of response param + - `- trace_id` + - **ListAttackLogs** + - changes of request param + - `+ src_province_name` + - `+ dst_province_name` + - `+ src_city_name` + - `+ dst_city_name` + - `- source` + - `+ protocol: enum value [6,17,1,58]` + - `+ action: enum value [0,1]` + - `+ direction: enum value [0,1]` + - changes of response param + - `+ data.records.src_province_id` + - `+ data.records.src_province_name` + - `+ data.records.src_city_id` + - `+ data.records.src_city_name` + - `+ data.records.dst_province_id` + - `+ data.records.dst_province_name` + - `+ data.records.dst_city_id` + - `+ data.records.dst_city_name` + - `- data.records.dst_host` + - `* data.records.hit_time: int32 -> int64` + - **UpdateBlackWhiteList** + - changes of request param + - `- list_type` + - `- object_id` + - **ChangeIpsProtectMode** + - changes of response param + - `- data.name` + - `* data: object -> object` + - **UpdateServiceSet** + - changes of response param + - `- data.name` + - `* data: object -> object` + - **ListServiceItems** + - changes of response param + - `- data.records.name` + - **AddServiceItems** + - changes of request param + - `- service_items.item_id` + - `- service_items.name` + - changes of response param + - `- data.items.name` + - `* data.items: list -> list` + - **CreateFirewall** + - changes of request param + - `- X-Trace-Id` + - **UpdateAddressSet** + - changes of request param + - `- address_type` + - **UpdateDomainSet** + - changes of request param + - `* fw_instance_id: optional -> required` + - `- set_id` + - `- domain_set_type` + - **ListProtectedVpcs** + - changes of response param + - `- trace_id` + - `- data.protect_vpcs.id` + - `- data.protect_vpcs.name` + - `- data.protect_vpcs.virsubnet_id` + - `- data.protect_vpcs.state` + - `- data.protect_vpcs.created_at` + - `- data.protect_vpcs.updated_at` + - `- data.protect_vpcs.tags` + - `- data.protect_vpcs.description` + - `- data.protect_vpcs.project_id` + - `- data.protect_vpcs.vpc_project_id` + - `- data.protect_vpcs.enterprise_project_id` + - **CreateEastWestFirewall** + - changes of response param + - `+ data.er` + - `+ data.inspertion_vpc` + - `- data.name` + - `* data: object -> object` + - **ListEastWestFirewall** + - changes of request param + - `* fw_instance_id: optional -> required` + - changes of response param + - `+ data.er.attachment_id` + - **AddAclRule** + - changes of request param + - `- rules.profile` + - `+ rules.source.address_group` + - `* rules.service.service_group_names: list -> list` + - **UpdateAclRule** + - changes of request param + - `- profile` + - `+ source.address_group_names.address_set_type` + - `- source.address_group_names.protocols` + - `- source.address_group_names.service_set_type` + - **ListAclRules** + - changes of request param + - `- protocol` + - changes of response param + - `- data.records.sequence` + - `- data.records.source.predefined_group` + - `+ data.records.source.address_group_names.address_set_type` + - `- data.records.source.address_group_names.protocols` + - `- data.records.source.address_group_names.service_set_type` + - `* data.records.source: object -> object` + - `- data.records.service.predefined_group` + - `* data.records.service: object -> object` + - **ListServiceSets** + - changes of response param + - `- data.records.status` + - **ListDomains** + - changes of request param + - `- description` + - `- set_id` + - **ListFirewallDetail** + - changes of response param + - `- data.records.flavor.session_concurrent` + - `- data.records.flavor.session_create` + - `- data.records.flavor.total_rule_count` + - `- data.records.flavor.used_rule_count` + - `- data.records.flavor.vpc_bandwith` + - **ListFirewallList** + - changes of response param + - `- data.records.flavor.session_concurrent` + - `- data.records.flavor.session_create` + - `- data.records.flavor.total_rule_count` + - `- data.records.flavor.used_rule_count` + - `- data.records.flavor.vpc_bandwith` + +### HuaweiCloud SDK DRS + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **BatchCreateJobs** + - changes of request param + - `+ jobs.is_open_fast_clean` + - **BatchListJobDetails** + - changes of response param + - `+ results.is_open_fast_clean` + - **ShowDbObjectTemplateResult** + - changes of request param + - `+ file_export_object_level` + - **DownloadDbObjectTemplate** + - changes of request param + - `+ file_import_db_level: enum value [column]` + - **UploadDbObjectTemplate** + - changes of request param + - `+ file_import_db_level: enum value [column]` + - **ShowDbObjectTemplateProgress** + - changes of request param + - `+ type` + - **ShowSupportObjectType** + - changes of response param + - `+ is_import_cloumn` + - **ShowReplayResults** + - changes of request param + - `+ is_sample` + - `+ error_type` + - `+ sql_template_md5` + - `+ type: enum value [error_classification]` + - changes of response param + - `+ error_classifications` + - `+ slow_sql_templates.sql_template_md5` + - `+ error_sql_templates.sql_template_md5` + - **CreateJob** + - changes of request param + - `+ job.base_info.is_open_fast_clean` + - `+ job.source_endpoint.endpoint.endpoint_name: enum value [postgresql,ecs_postgresql,cloud_postgresql,mongodb,ecs_mongodb,cloud_mongodb]` + - **BatchCreateJobsAsync** + - changes of request param + - `+ jobs.base_info.is_open_fast_clean` + - `+ jobs.source_endpoint.endpoint.endpoint_name: enum value [postgresql,ecs_postgresql,cloud_postgresql,mongodb,ecs_mongodb,cloud_mongodb]` + - **ListAsyncJobDetail** + - changes of response param + - `+ jobs.base_info.is_open_fast_clean` + - `+ jobs.source_endpoint.endpoint.endpoint_name: enum value [postgresql,ecs_postgresql,cloud_postgresql,mongodb,ecs_mongodb,cloud_mongodb]` + - **UpdateBatchAsyncJobs** + - changes of request param + - `+ jobs.params.base_info.is_open_fast_clean` + - `+ jobs.params.source_endpoint.endpoint.endpoint_name: enum value [postgresql,ecs_postgresql,cloud_postgresql,mongodb,ecs_mongodb,cloud_mongodb]` + - **ShowJobDetail** + - changes of response param + - `+ job.base_info.is_open_fast_clean` + - `+ job.source_endpoint.endpoint.endpoint_name: enum value [postgresql,ecs_postgresql,cloud_postgresql,mongodb,ecs_mongodb,cloud_mongodb]` + - **UpdateJob** + - changes of request param + - `+ job.params.base_info.is_open_fast_clean` + - `+ job.params.source_endpoint.endpoint.endpoint_name: enum value [postgresql,ecs_postgresql,cloud_postgresql,mongodb,ecs_mongodb,cloud_mongodb]` + - **ExecuteJobAction** + - changes of request param + - `+ job.action_name: enum value [set_readonly]` + - `+ job.action_params.endpoints.endpoint.endpoint_name: enum value [postgresql,ecs_postgresql,cloud_postgresql,mongodb,ecs_mongodb,cloud_mongodb]` + - **BatchExecuteJobActions** + - changes of request param + - `+ jobs.action_name: enum value [set_readonly]` + - `+ jobs.action_params.endpoints.endpoint.endpoint_name: enum value [postgresql,ecs_postgresql,cloud_postgresql,mongodb,ecs_mongodb,cloud_mongodb]` + +### HuaweiCloud SDK ECS + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ListFlavors** + - changes of response param + - `+ flavors.os_extra_specs.network_interface:traffic_mirroring_supported` + - `+ flavors.os_extra_specs.security:enclave_supported` + - **ListResizeFlavors** + - changes of response param + - `+ flavors.extra_specs.network_interface:traffic_mirroring_supported` + - `+ flavors.extra_specs.security:enclave_supported` + +### HuaweiCloud SDK GaussDB + +- _Features_ + - Support the following APIs: + - `ResumeStarRocksDataReplication` + - `PauseStarRocksDataReplication` + - `ListClickHouseInstanceNode` + - `ShowClickHouseSlowLogDetail` + - `ShowClickHouseSlowLogSensitiveStatus` + - `UpdateClickHouseSlowLogSensitiveStatus` + - `ShowClickHouseLtsConfig` + - `UpdateClickHouseLtsConfig` + - `DeleteClickHouseLtsConfig` + - `CheckClickHouseDataBaseConfig` + - `CheckClickHouseTableConfig` + - `ListClickHouseDataBase` + - `ListClickHouseDataBaseReplicationConfig` + - `ListClickHouseDataBaseParameter` + - `CreateClickHouseInstance` + - `ListClickHouseInstance` + - `DeleteClickHouseInstance` + - `ResizeClickHouseInstance` + - `RebootClickHouseInstance` + - `ShowClickHouseDatabaseUser` + - `CreateClickHouseDatabaseUser` + - `UpdateClickHouseDatabaseUserPassword` + - `UpdateClickHouseDatabaseUserPermission` + - `ListClickHouseDataBaseReplication` + - `CreateClickHouseDataBaseReplication` + - `DeleteClickHouseDataBaseReplication` + - `UpdateClickHouseDataBaseConfig` + - `DeleteClickHouseDataBaseConfig` + - `ResizeClickHouseFlavor` + - `DeleteClickHouseDatabaseUser` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK GaussDBforopenGauss + +- _Features_ + - Support the following APIs: + - `SetNewBackupPolicy` + - `ListInstanceDetails` + - `ShowBatchUpgradeCandidateVersions` + - `UpgradeInstancesVersion` + - `ConfirmRestoredData` +- _Bug Fix_ + - None +- _Change_ + - **CreateInstance** + - changes of request param + - `- replica_num: enum value [2]` + - **CreateDbInstance** + - changes of request param + - `- replica_num: enum value [2]` + +### HuaweiCloud SDK KVS + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **GetKv** + - changes of response param + - `- kv_blob_data` + - **PutKv** + - changes of request param + - `- kv_blob` + - `- condition_expression.single_kv_expression` + - `- condition_expression.composed_expression` + - **UpdateKv** + - changes of request param + - `- kv_options` + - `- update_blob` + - `- condition_expression.single_kv_expression` + - `- condition_expression.composed_expression` + - **DeleteKv** + - changes of request param + - `- condition_expression.single_kv_expression` + - `- condition_expression.composed_expression` + - **ScanKv** + - changes of request param + - `- filter_expression.single_kv_expression` + - `- filter_expression.composed_expression` + - changes of response param + - `- returned_kv_items.kv_blob_data` + - **ScanSkeyKv** + - changes of request param + - `- filter_expression.single_kv_expression` + - `- filter_expression.composed_expression` + - changes of response param + - `- returned_kv_items.kv_blob_data` + - **BatchWriteKv** + - changes of request param + - `- table_opers.kv_opers.put_kv.kv_blob` + +### HuaweiCloud SDK VPC + +- _Features_ + - Support the following APIs: + - `CountPortsByTags` + - `ListPortsByTags` + - `ShowPortTags` + - `CreatePortTag` + - `ListPortTags` + - `BatchCreatePortTags` + - `DeletePortTag` + - `BatchDeletePortTags` +- _Bug Fix_ + - None +- _Change_ + - **ListFirewallTags** + - changes of request param + - `+ limit` + - `+ offset` + - changes of response param + - `+ total_count` + - `* tags: object -> list` + - **ShowFirewallTags** + - changes of response param + - `- sys_tags` + - `* tags: object -> list` + - **BatchDeleteFirewallTags** + - changes of request param + - `* tags: list -> list` + # 3.1.90 2024-06-13 ### HuaweiCloud SDK ECS diff --git a/CHANGELOG_CN.md b/CHANGELOG_CN.md index 885d796b9..466d2a6ed 100644 --- a/CHANGELOG_CN.md +++ b/CHANGELOG_CN.md @@ -1,3 +1,411 @@ +# 3.1.91 2024-06-27 + +### HuaweiCloud SDK CFW + +- _新增特性_ + - 支持以下接口: + - `CreateTag` + - `DeleteTag` + - `ListCaptureTask` + - `CreateCaptureTask` + - `DeleteCaptureTask` + - `ListCaptureResult` + - `CancelCaptureTask` +- _解决问题_ + - 无 +- _特性变更_ + - **ListFlowLogs** + - 请求参数变更 + - `+ src_province_name` + - `+ dst_province_name` + - `+ src_city_name` + - `+ dst_city_name` + - `+ protocol: enum value [6,17,1,58]` + - 响应参数变更 + - `+ data.records.dst_province_id` + - `+ data.records.dst_province_name` + - `+ data.records.dst_city_id` + - `+ data.records.dst_city_name` + - `+ data.records.src_province_id` + - `+ data.records.src_province_name` + - `+ data.records.src_city_id` + - `+ data.records.src_city_name` + - **ListAccessControlLogs** + - 请求参数变更 + - `+ src_province_name` + - `+ dst_province_name` + - `+ src_city_name` + - `+ dst_city_name` + - 响应参数变更 + - `+ data.records.src_province_id` + - `+ data.records.src_province_name` + - `+ data.records.src_city_id` + - `+ data.records.src_city_name` + - `+ data.records.dst_province_id` + - `+ data.records.dst_province_name` + - `+ data.records.dst_city_id` + - `+ data.records.dst_city_name` + - **ListBlackWhiteLists** + - 请求参数变更 + - `+ address_type: enum value [0,1,2]` + - 响应参数变更 + - `- data.object_id` + - **AddServiceSet** + - 响应参数变更 + - `- data.name` + - `* data: object -> object` + - **ListDomainParseDetail** + - 请求参数变更 + - `* address_type: string -> int32` + - **UpdateDnsServers** + - 请求参数变更 + - `* fw_instance_id: optional -> required` + - **ListDnsServers** + - 请求参数变更 + - `* fw_instance_id: optional -> required` + - **ChangeIpsSwitchStatus** + - 响应参数变更 + - `- trace_id` + - **ListAttackLogs** + - 请求参数变更 + - `+ src_province_name` + - `+ dst_province_name` + - `+ src_city_name` + - `+ dst_city_name` + - `- source` + - `+ protocol: enum value [6,17,1,58]` + - `+ action: enum value [0,1]` + - `+ direction: enum value [0,1]` + - 响应参数变更 + - `+ data.records.src_province_id` + - `+ data.records.src_province_name` + - `+ data.records.src_city_id` + - `+ data.records.src_city_name` + - `+ data.records.dst_province_id` + - `+ data.records.dst_province_name` + - `+ data.records.dst_city_id` + - `+ data.records.dst_city_name` + - `- data.records.dst_host` + - `* data.records.hit_time: int32 -> int64` + - **UpdateBlackWhiteList** + - 请求参数变更 + - `- list_type` + - `- object_id` + - **ChangeIpsProtectMode** + - 响应参数变更 + - `- data.name` + - `* data: object -> object` + - **UpdateServiceSet** + - 响应参数变更 + - `- data.name` + - `* data: object -> object` + - **ListServiceItems** + - 响应参数变更 + - `- data.records.name` + - **AddServiceItems** + - 请求参数变更 + - `- service_items.item_id` + - `- service_items.name` + - 响应参数变更 + - `- data.items.name` + - `* data.items: list -> list` + - **CreateFirewall** + - 请求参数变更 + - `- X-Trace-Id` + - **UpdateAddressSet** + - 请求参数变更 + - `- address_type` + - **UpdateDomainSet** + - 请求参数变更 + - `* fw_instance_id: optional -> required` + - `- set_id` + - `- domain_set_type` + - **ListProtectedVpcs** + - 响应参数变更 + - `- trace_id` + - `- data.protect_vpcs.id` + - `- data.protect_vpcs.name` + - `- data.protect_vpcs.virsubnet_id` + - `- data.protect_vpcs.state` + - `- data.protect_vpcs.created_at` + - `- data.protect_vpcs.updated_at` + - `- data.protect_vpcs.tags` + - `- data.protect_vpcs.description` + - `- data.protect_vpcs.project_id` + - `- data.protect_vpcs.vpc_project_id` + - `- data.protect_vpcs.enterprise_project_id` + - **CreateEastWestFirewall** + - 响应参数变更 + - `+ data.er` + - `+ data.inspertion_vpc` + - `- data.name` + - `* data: object -> object` + - **ListEastWestFirewall** + - 请求参数变更 + - `* fw_instance_id: optional -> required` + - 响应参数变更 + - `+ data.er.attachment_id` + - **AddAclRule** + - 请求参数变更 + - `- rules.profile` + - `+ rules.source.address_group` + - `* rules.service.service_group_names: list -> list` + - **UpdateAclRule** + - 请求参数变更 + - `- profile` + - `+ source.address_group_names.address_set_type` + - `- source.address_group_names.protocols` + - `- source.address_group_names.service_set_type` + - **ListAclRules** + - 请求参数变更 + - `- protocol` + - 响应参数变更 + - `- data.records.sequence` + - `- data.records.source.predefined_group` + - `+ data.records.source.address_group_names.address_set_type` + - `- data.records.source.address_group_names.protocols` + - `- data.records.source.address_group_names.service_set_type` + - `* data.records.source: object -> object` + - `- data.records.service.predefined_group` + - `* data.records.service: object -> object` + - **ListServiceSets** + - 响应参数变更 + - `- data.records.status` + - **ListDomains** + - 请求参数变更 + - `- description` + - `- set_id` + - **ListFirewallDetail** + - 响应参数变更 + - `- data.records.flavor.session_concurrent` + - `- data.records.flavor.session_create` + - `- data.records.flavor.total_rule_count` + - `- data.records.flavor.used_rule_count` + - `- data.records.flavor.vpc_bandwith` + - **ListFirewallList** + - 响应参数变更 + - `- data.records.flavor.session_concurrent` + - `- data.records.flavor.session_create` + - `- data.records.flavor.total_rule_count` + - `- data.records.flavor.used_rule_count` + - `- data.records.flavor.vpc_bandwith` + +### HuaweiCloud SDK DRS + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **BatchCreateJobs** + - 请求参数变更 + - `+ jobs.is_open_fast_clean` + - **BatchListJobDetails** + - 响应参数变更 + - `+ results.is_open_fast_clean` + - **ShowDbObjectTemplateResult** + - 请求参数变更 + - `+ file_export_object_level` + - **DownloadDbObjectTemplate** + - 请求参数变更 + - `+ file_import_db_level: enum value [column]` + - **UploadDbObjectTemplate** + - 请求参数变更 + - `+ file_import_db_level: enum value [column]` + - **ShowDbObjectTemplateProgress** + - 请求参数变更 + - `+ type` + - **ShowSupportObjectType** + - 响应参数变更 + - `+ is_import_cloumn` + - **ShowReplayResults** + - 请求参数变更 + - `+ is_sample` + - `+ error_type` + - `+ sql_template_md5` + - `+ type: enum value [error_classification]` + - 响应参数变更 + - `+ error_classifications` + - `+ slow_sql_templates.sql_template_md5` + - `+ error_sql_templates.sql_template_md5` + - **CreateJob** + - 请求参数变更 + - `+ job.base_info.is_open_fast_clean` + - `+ job.source_endpoint.endpoint.endpoint_name: enum value [postgresql,ecs_postgresql,cloud_postgresql,mongodb,ecs_mongodb,cloud_mongodb]` + - **BatchCreateJobsAsync** + - 请求参数变更 + - `+ jobs.base_info.is_open_fast_clean` + - `+ jobs.source_endpoint.endpoint.endpoint_name: enum value [postgresql,ecs_postgresql,cloud_postgresql,mongodb,ecs_mongodb,cloud_mongodb]` + - **ListAsyncJobDetail** + - 响应参数变更 + - `+ jobs.base_info.is_open_fast_clean` + - `+ jobs.source_endpoint.endpoint.endpoint_name: enum value [postgresql,ecs_postgresql,cloud_postgresql,mongodb,ecs_mongodb,cloud_mongodb]` + - **UpdateBatchAsyncJobs** + - 请求参数变更 + - `+ jobs.params.base_info.is_open_fast_clean` + - `+ jobs.params.source_endpoint.endpoint.endpoint_name: enum value [postgresql,ecs_postgresql,cloud_postgresql,mongodb,ecs_mongodb,cloud_mongodb]` + - **ShowJobDetail** + - 响应参数变更 + - `+ job.base_info.is_open_fast_clean` + - `+ job.source_endpoint.endpoint.endpoint_name: enum value [postgresql,ecs_postgresql,cloud_postgresql,mongodb,ecs_mongodb,cloud_mongodb]` + - **UpdateJob** + - 请求参数变更 + - `+ job.params.base_info.is_open_fast_clean` + - `+ job.params.source_endpoint.endpoint.endpoint_name: enum value [postgresql,ecs_postgresql,cloud_postgresql,mongodb,ecs_mongodb,cloud_mongodb]` + - **ExecuteJobAction** + - 请求参数变更 + - `+ job.action_name: enum value [set_readonly]` + - `+ job.action_params.endpoints.endpoint.endpoint_name: enum value [postgresql,ecs_postgresql,cloud_postgresql,mongodb,ecs_mongodb,cloud_mongodb]` + - **BatchExecuteJobActions** + - 请求参数变更 + - `+ jobs.action_name: enum value [set_readonly]` + - `+ jobs.action_params.endpoints.endpoint.endpoint_name: enum value [postgresql,ecs_postgresql,cloud_postgresql,mongodb,ecs_mongodb,cloud_mongodb]` + +### HuaweiCloud SDK ECS + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ListFlavors** + - 响应参数变更 + - `+ flavors.os_extra_specs.network_interface:traffic_mirroring_supported` + - `+ flavors.os_extra_specs.security:enclave_supported` + - **ListResizeFlavors** + - 响应参数变更 + - `+ flavors.extra_specs.network_interface:traffic_mirroring_supported` + - `+ flavors.extra_specs.security:enclave_supported` + +### HuaweiCloud SDK GaussDB + +- _新增特性_ + - 支持以下接口: + - `ResumeStarRocksDataReplication` + - `PauseStarRocksDataReplication` + - `ListClickHouseInstanceNode` + - `ShowClickHouseSlowLogDetail` + - `ShowClickHouseSlowLogSensitiveStatus` + - `UpdateClickHouseSlowLogSensitiveStatus` + - `ShowClickHouseLtsConfig` + - `UpdateClickHouseLtsConfig` + - `DeleteClickHouseLtsConfig` + - `CheckClickHouseDataBaseConfig` + - `CheckClickHouseTableConfig` + - `ListClickHouseDataBase` + - `ListClickHouseDataBaseReplicationConfig` + - `ListClickHouseDataBaseParameter` + - `CreateClickHouseInstance` + - `ListClickHouseInstance` + - `DeleteClickHouseInstance` + - `ResizeClickHouseInstance` + - `RebootClickHouseInstance` + - `ShowClickHouseDatabaseUser` + - `CreateClickHouseDatabaseUser` + - `UpdateClickHouseDatabaseUserPassword` + - `UpdateClickHouseDatabaseUserPermission` + - `ListClickHouseDataBaseReplication` + - `CreateClickHouseDataBaseReplication` + - `DeleteClickHouseDataBaseReplication` + - `UpdateClickHouseDataBaseConfig` + - `DeleteClickHouseDataBaseConfig` + - `ResizeClickHouseFlavor` + - `DeleteClickHouseDatabaseUser` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK GaussDBforopenGauss + +- _新增特性_ + - 支持以下接口: + - `SetNewBackupPolicy` + - `ListInstanceDetails` + - `ShowBatchUpgradeCandidateVersions` + - `UpgradeInstancesVersion` + - `ConfirmRestoredData` +- _解决问题_ + - 无 +- _特性变更_ + - **CreateInstance** + - 请求参数变更 + - `- replica_num: enum value [2]` + - **CreateDbInstance** + - 请求参数变更 + - `- replica_num: enum value [2]` + +### HuaweiCloud SDK KVS + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **GetKv** + - 响应参数变更 + - `- kv_blob_data` + - **PutKv** + - 请求参数变更 + - `- kv_blob` + - `- condition_expression.single_kv_expression` + - `- condition_expression.composed_expression` + - **UpdateKv** + - 请求参数变更 + - `- kv_options` + - `- update_blob` + - `- condition_expression.single_kv_expression` + - `- condition_expression.composed_expression` + - **DeleteKv** + - 请求参数变更 + - `- condition_expression.single_kv_expression` + - `- condition_expression.composed_expression` + - **ScanKv** + - 请求参数变更 + - `- filter_expression.single_kv_expression` + - `- filter_expression.composed_expression` + - 响应参数变更 + - `- returned_kv_items.kv_blob_data` + - **ScanSkeyKv** + - 请求参数变更 + - `- filter_expression.single_kv_expression` + - `- filter_expression.composed_expression` + - 响应参数变更 + - `- returned_kv_items.kv_blob_data` + - **BatchWriteKv** + - 请求参数变更 + - `- table_opers.kv_opers.put_kv.kv_blob` + +### HuaweiCloud SDK VPC + +- _新增特性_ + - 支持以下接口: + - `CountPortsByTags` + - `ListPortsByTags` + - `ShowPortTags` + - `CreatePortTag` + - `ListPortTags` + - `BatchCreatePortTags` + - `DeletePortTag` + - `BatchDeletePortTags` +- _解决问题_ + - 无 +- _特性变更_ + - **ListFirewallTags** + - 请求参数变更 + - `+ limit` + - `+ offset` + - 响应参数变更 + - `+ total_count` + - `* tags: object -> list` + - **ShowFirewallTags** + - 响应参数变更 + - `- sys_tags` + - `* tags: object -> list` + - **BatchDeleteFirewallTags** + - 请求参数变更 + - `* tags: list -> list` + # 3.1.90 2024-06-13 ### HuaweiCloud SDK ECS diff --git a/CMakeLists.txt b/CMakeLists.txt index ac7ad2f39..2eaab95f7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,7 +25,7 @@ if(ENABLE_BSON) add_definitions(-DHUAWEICLOUD_SDK_BSON_) endif() -SET(BUILD_SERVICE organizations) +SET(BUILD_SERVICE all) SET(SERVICE_VERSION v1) if(BUILD_SERVICE STREQUAL "all" OR BUILD_SERVICE STREQUAL "") diff --git a/VERSION b/VERSION index e55b56f5e..d1aca36ce 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.1.90 +3.1.91 diff --git a/cfw/include/huaweicloud/cfw/v1/CfwClient.h b/cfw/include/huaweicloud/cfw/v1/CfwClient.h index 6e10d2e7f..bf0fcebe0 100644 --- a/cfw/include/huaweicloud/cfw/v1/CfwClient.h +++ b/cfw/include/huaweicloud/cfw/v1/CfwClient.h @@ -33,15 +33,24 @@ #include #include #include +#include +#include +#include +#include #include #include #include +#include +#include #include #include #include #include #include #include +#include +#include +#include #include #include #include @@ -49,6 +58,9 @@ #include #include #include +#include +#include +#include #include #include #include @@ -61,6 +73,9 @@ #include #include #include +#include +#include +#include #include #include #include @@ -73,6 +88,10 @@ #include #include #include +#include +#include +#include +#include #include #include #include @@ -276,6 +295,14 @@ class HUAWEICLOUD_CFW_V1_EXPORT CfwClient : public Client std::shared_ptr batchDeleteServiceItems( BatchDeleteServiceItemsRequest &request ); + // 取消抓包任务 + // + // 取消抓包任务 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr cancelCaptureTask( + CancelCaptureTaskRequest &request + ); // 修改东西向防火墙防护状态 // // 东西向防护资源防护开启/关闭 @@ -284,6 +311,14 @@ class HUAWEICLOUD_CFW_V1_EXPORT CfwClient : public Client std::shared_ptr changeEastWestFirewallStatus( ChangeEastWestFirewallStatusRequest &request ); + // 创建抓包任务 + // + // 创建抓包任务 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr createCaptureTask( + CreateCaptureTaskRequest &request + ); // 创建东西向防火墙 // // 创建东西向防火墙 @@ -300,6 +335,14 @@ class HUAWEICLOUD_CFW_V1_EXPORT CfwClient : public Client std::shared_ptr createFirewall( CreateFirewallRequest &request ); + // 标签创建接口 + // + // 创建标签 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr createTag( + CreateTagRequest &request + ); // 删除地址组成员 // // 删除地址组成员 @@ -324,6 +367,14 @@ class HUAWEICLOUD_CFW_V1_EXPORT CfwClient : public Client std::shared_ptr deleteBlackWhiteList( DeleteBlackWhiteListRequest &request ); + // 删除抓包任务 + // + // 删除抓包任务 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr deleteCaptureTask( + DeleteCaptureTaskRequest &request + ); // 删除域名组 // // 删除域名组 @@ -364,6 +415,14 @@ class HUAWEICLOUD_CFW_V1_EXPORT CfwClient : public Client std::shared_ptr deleteServiceSet( DeleteServiceSetRequest &request ); + // 删除标签 + // + // 删除标签 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr deleteTag( + DeleteTagRequest &request + ); // 查询访问控制日志 // // 查询访问控制日志 @@ -412,6 +471,22 @@ class HUAWEICLOUD_CFW_V1_EXPORT CfwClient : public Client std::shared_ptr listBlackWhiteLists( ListBlackWhiteListsRequest &request ); + // 获取抓包任务结果 + // + // 获取抓包任务结果 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr listCaptureResult( + ListCaptureResultRequest &request + ); + // 查询抓包任务 + // + // 查询抓包任务 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr listCaptureTask( + ListCaptureTaskRequest &request + ); // 查询dns服务器列表 // // 查询dns服务器列表 diff --git a/cfw/include/huaweicloud/cfw/v1/CfwMeta.h b/cfw/include/huaweicloud/cfw/v1/CfwMeta.h index 456cffdb2..016f11dc8 100644 --- a/cfw/include/huaweicloud/cfw/v1/CfwMeta.h +++ b/cfw/include/huaweicloud/cfw/v1/CfwMeta.h @@ -23,23 +23,30 @@ class HUAWEICLOUD_CFW_V1_EXPORT CfwMeta { static HttpRequestDef genRequestDefForAddServiceSet(); static HttpRequestDef genRequestDefForBatchDeleteAddressItems(); static HttpRequestDef genRequestDefForBatchDeleteServiceItems(); + static HttpRequestDef genRequestDefForCancelCaptureTask(); static HttpRequestDef genRequestDefForChangeEastWestFirewallStatus(); + static HttpRequestDef genRequestDefForCreateCaptureTask(); static HttpRequestDef genRequestDefForCreateEastWestFirewall(); static HttpRequestDef genRequestDefForCreateFirewall(); + static HttpRequestDef genRequestDefForCreateTag(); static HttpRequestDef genRequestDefForDeleteAddressItem(); static HttpRequestDef genRequestDefForDeleteAddressSet(); static HttpRequestDef genRequestDefForDeleteBlackWhiteList(); + static HttpRequestDef genRequestDefForDeleteCaptureTask(); static HttpRequestDef genRequestDefForDeleteDomainSet(); static HttpRequestDef genRequestDefForDeleteDomains(); static HttpRequestDef genRequestDefForDeleteFirewall(); static HttpRequestDef genRequestDefForDeleteServiceItem(); static HttpRequestDef genRequestDefForDeleteServiceSet(); + static HttpRequestDef genRequestDefForDeleteTag(); static HttpRequestDef genRequestDefForListAccessControlLogs(); static HttpRequestDef genRequestDefForListAddressItems(); static HttpRequestDef genRequestDefForListAddressSetDetail(); static HttpRequestDef genRequestDefForListAddressSets(); static HttpRequestDef genRequestDefForListAttackLogs(); static HttpRequestDef genRequestDefForListBlackWhiteLists(); + static HttpRequestDef genRequestDefForListCaptureResult(); + static HttpRequestDef genRequestDefForListCaptureTask(); static HttpRequestDef genRequestDefForListDnsServers(); static HttpRequestDef genRequestDefForListDomainParseDetail(); static HttpRequestDef genRequestDefForListDomainSets(); diff --git a/cfw/include/huaweicloud/cfw/v1/model/AddAclRuleRequest.h b/cfw/include/huaweicloud/cfw/v1/model/AddAclRuleRequest.h index 2612ab33e..d19cf25c0 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/AddAclRuleRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/AddAclRuleRequest.h @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddAclRuleRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/AddAddressItemRequest.h b/cfw/include/huaweicloud/cfw/v1/model/AddAddressItemRequest.h index da2a54f31..febd2fdc9 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/AddAddressItemRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/AddAddressItemRequest.h @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddAddressItemRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/AddAddressSetDto.h b/cfw/include/huaweicloud/cfw/v1/model/AddAddressSetDto.h index bf62bc729..87b0c90bd 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/AddAddressSetDto.h +++ b/cfw/include/huaweicloud/cfw/v1/model/AddAddressSetDto.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddAddressSetDto /// AddAddressSetDto members /// - /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用查询防火墙实例接口获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。具体可参考APIExlorer和帮助中心FAQ。 + /// 互联网边界防护对象id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),type为0的为互联网边界防护对象id。 /// std::string getObjectId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/AddAddressSetRequest.h b/cfw/include/huaweicloud/cfw/v1/model/AddAddressSetRequest.h index d670da521..7b44633ed 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/AddAddressSetRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/AddAddressSetRequest.h @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddAddressSetRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/AddBlackWhiteListDto.h b/cfw/include/huaweicloud/cfw/v1/model/AddBlackWhiteListDto.h index c63d04b96..c48daccf6 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/AddBlackWhiteListDto.h +++ b/cfw/include/huaweicloud/cfw/v1/model/AddBlackWhiteListDto.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddBlackWhiteListDto /// AddBlackWhiteListDto members /// - /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用查询防火墙实例接口获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。具体可参考APIExlorer和帮助中心FAQ。 + /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。 /// std::string getObjectId() const; @@ -66,7 +66,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddBlackWhiteListDto void setDirection(int32_t value); /// - /// Ip地址类型 0:ipv4,1:ipv6,2:domain + /// Ip地址类型 0:ipv4,1:ipv6 /// int32_t getAddressType() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/AddBlackWhiteListRequest.h b/cfw/include/huaweicloud/cfw/v1/model/AddBlackWhiteListRequest.h index d4bcce912..341c1e695 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/AddBlackWhiteListRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/AddBlackWhiteListRequest.h @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddBlackWhiteListRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)接口获得,默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/AddDomainListDto.h b/cfw/include/huaweicloud/cfw/v1/model/AddDomainListDto.h index ffc3aa911..2098df943 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/AddDomainListDto.h +++ b/cfw/include/huaweicloud/cfw/v1/model/AddDomainListDto.h @@ -41,7 +41,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddDomainListDto /// AddDomainListDto members /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 /// std::string getFwInstanceId() const; @@ -50,7 +50,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddDomainListDto void setFwInstanceId(const std::string& value); /// - /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用查询防火墙实例接口获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。具体可参考APIExlorer和帮助中心FAQ。 + /// 互联网边界防护对象id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),type为0的为互联网边界防护对象id。 /// std::string getObjectId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/AddDomainSetInfoDto.h b/cfw/include/huaweicloud/cfw/v1/model/AddDomainSetInfoDto.h index e1421bce3..95c57bda6 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/AddDomainSetInfoDto.h +++ b/cfw/include/huaweicloud/cfw/v1/model/AddDomainSetInfoDto.h @@ -41,7 +41,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddDomainSetInfoDto /// AddDomainSetInfoDto members /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 /// std::string getFwInstanceId() const; @@ -50,7 +50,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddDomainSetInfoDto void setFwInstanceId(const std::string& value); /// - /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用查询防火墙实例接口获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。具体可参考APIExlorer和帮助中心FAQ。 + /// 互联网边界防护对象id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),type为0的为互联网边界防护对象id。 /// std::string getObjectId() const; @@ -86,7 +86,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddDomainSetInfoDto void setDomainNames(const std::vector& value); /// - /// 域名组类型,0表示URL过滤,1表示地址解析 + /// 域名组类型,0表示应用域名组,1表示网络域名组 /// int32_t getDomainSetType() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/AddDomainSetRequest.h b/cfw/include/huaweicloud/cfw/v1/model/AddDomainSetRequest.h index 5c65309de..6aadd6245 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/AddDomainSetRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/AddDomainSetRequest.h @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddDomainSetRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/AddDomainsRequest.h b/cfw/include/huaweicloud/cfw/v1/model/AddDomainsRequest.h index f79838b2c..81a51141a 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/AddDomainsRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/AddDomainsRequest.h @@ -58,7 +58,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddDomainsRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/AddLogConfigRequest.h b/cfw/include/huaweicloud/cfw/v1/model/AddLogConfigRequest.h index 012d4bb2d..7768e35bf 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/AddLogConfigRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/AddLogConfigRequest.h @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddLogConfigRequest /// AddLogConfigRequest members /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)。 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/AddRuleAclDto.h b/cfw/include/huaweicloud/cfw/v1/model/AddRuleAclDto.h index ba0fab5f4..728760ef6 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/AddRuleAclDto.h +++ b/cfw/include/huaweicloud/cfw/v1/model/AddRuleAclDto.h @@ -41,7 +41,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddRuleAclDto /// AddRuleAclDto members /// - /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用查询防火墙实例接口获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。具体可参考APIExlorer和帮助中心FAQ。 + /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。 /// std::string getObjectId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/AddRuleAclDto_rules.h b/cfw/include/huaweicloud/cfw/v1/model/AddRuleAclDto_rules.h index 5908bed8d..d803dc140 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/AddRuleAclDto_rules.h +++ b/cfw/include/huaweicloud/cfw/v1/model/AddRuleAclDto_rules.h @@ -15,7 +15,6 @@ #include #include #include -#include namespace HuaweiCloud { namespace Sdk { @@ -174,15 +173,6 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddRuleAclDto_rules /// /// - RuleProfileDto getProfile() const; - bool profileIsSet() const; - void unsetprofile(); - void setProfile(const RuleProfileDto& value); - - /// - /// - /// - RuleAddressDtoForRequest getSource() const; bool sourceIsSet() const; void unsetsource(); @@ -245,8 +235,6 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddRuleAclDto_rules bool descriptionIsSet_; int32_t direction_; bool directionIsSet_; - RuleProfileDto profile_; - bool profileIsSet_; RuleAddressDtoForRequest source_; bool sourceIsSet_; RuleAddressDtoForRequest destination_; diff --git a/cfw/include/huaweicloud/cfw/v1/model/AddServiceItemsRequest.h b/cfw/include/huaweicloud/cfw/v1/model/AddServiceItemsRequest.h index b8454fac0..3909de816 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/AddServiceItemsRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/AddServiceItemsRequest.h @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddServiceItemsRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/AddServiceItemsUsingPOSTRequestBody_service_items.h b/cfw/include/huaweicloud/cfw/v1/model/AddServiceItemsUsingPOSTRequestBody_service_items.h index 7635b7b94..d820173cc 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/AddServiceItemsUsingPOSTRequestBody_service_items.h +++ b/cfw/include/huaweicloud/cfw/v1/model/AddServiceItemsUsingPOSTRequestBody_service_items.h @@ -38,15 +38,6 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddServiceItemsUsingPOSTRequestBody_service_ite ///////////////////////////////////////////// /// AddServiceItemsUsingPOSTRequestBody_service_items members - /// - /// 服务成员id - /// - - std::string getItemId() const; - bool itemIdIsSet() const; - void unsetitemId(); - void setItemId(const std::string& value); - /// /// 协议类型:TCP为6,UDP为17,ICMP为1,ICMPV6为58,ANY为-1,手动类型不为空,自动类型为空 /// @@ -74,15 +65,6 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddServiceItemsUsingPOSTRequestBody_service_ite void unsetdestPort(); void setDestPort(const std::string& value); - /// - /// 服务成员名称 - /// - - std::string getName() const; - bool nameIsSet() const; - void unsetname(); - void setName(const std::string& value); - /// /// 服务成员描述 /// @@ -94,16 +76,12 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddServiceItemsUsingPOSTRequestBody_service_ite protected: - std::string itemId_; - bool itemIdIsSet_; int32_t protocol_; bool protocolIsSet_; std::string sourcePort_; bool sourcePortIsSet_; std::string destPort_; bool destPortIsSet_; - std::string name_; - bool nameIsSet_; std::string description_; bool descriptionIsSet_; diff --git a/cfw/include/huaweicloud/cfw/v1/model/AddServiceSetRequest.h b/cfw/include/huaweicloud/cfw/v1/model/AddServiceSetRequest.h index e150bb74c..013be343d 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/AddServiceSetRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/AddServiceSetRequest.h @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddServiceSetRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/AddServiceSetResponse.h b/cfw/include/huaweicloud/cfw/v1/model/AddServiceSetResponse.h index fdf89c82b..37b43dfd9 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/AddServiceSetResponse.h +++ b/cfw/include/huaweicloud/cfw/v1/model/AddServiceSetResponse.h @@ -9,7 +9,7 @@ #include #include -#include +#include namespace HuaweiCloud { namespace Sdk { @@ -42,14 +42,14 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddServiceSetResponse /// /// - IdObject getData() const; + CommonResponseDTO_data getData() const; bool dataIsSet() const; void unsetdata(); - void setData(const IdObject& value); + void setData(const CommonResponseDTO_data& value); protected: - IdObject data_; + CommonResponseDTO_data data_; bool dataIsSet_; #ifdef RTTR_FLAG diff --git a/cfw/include/huaweicloud/cfw/v1/model/AddServiceSetUsingPOSTRequestBody.h b/cfw/include/huaweicloud/cfw/v1/model/AddServiceSetUsingPOSTRequestBody.h index 16f241364..1263040e7 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/AddServiceSetUsingPOSTRequestBody.h +++ b/cfw/include/huaweicloud/cfw/v1/model/AddServiceSetUsingPOSTRequestBody.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddServiceSetUsingPOSTRequestBody /// AddServiceSetUsingPOSTRequestBody members /// - /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用查询防火墙实例接口获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。具体可参考APIExlorer和帮助中心FAQ。 + /// 互联网边界防护对象id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),type为0的为互联网边界防护对象id。 /// std::string getObjectId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/AddressGroupVO.h b/cfw/include/huaweicloud/cfw/v1/model/AddressGroupVO.h index 18c07b9b1..715ed61e3 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/AddressGroupVO.h +++ b/cfw/include/huaweicloud/cfw/v1/model/AddressGroupVO.h @@ -10,7 +10,6 @@ #include #include -#include namespace HuaweiCloud { namespace Sdk { @@ -40,13 +39,13 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddressGroupVO /// AddressGroupVO members /// - /// 地址组id + /// 地址组类型,0表示自定义地址组,1表示WAF回源IP地址组,2表示DDoS回源IP地址组,3表示NAT64转换地址组 /// - std::string getSetId() const; - bool setIdIsSet() const; - void unsetsetId(); - void setSetId(const std::string& value); + int32_t getAddressSetType() const; + bool addressSetTypeIsSet() const; + void unsetaddressSetType(); + void setAddressSetType(int32_t value); /// /// 地址组名称 @@ -58,33 +57,22 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddressGroupVO void setName(const std::string& value); /// - /// 协议列表,协议类型:TCP为6, UDP为17,ICMP为1,ICMPV6为58,ANY为-1,手动类型不为空,自动类型为空 - /// - - std::vector& getProtocols(); - bool protocolsIsSet() const; - void unsetprotocols(); - void setProtocols(std::vector value); - - /// - /// 服务组类型,0表示自定义服务组,1表示常用WEB服务,2表示常用远程登录和PING,3表示常用数据库 + /// 地址组id /// - int32_t getServiceSetType() const; - bool serviceSetTypeIsSet() const; - void unsetserviceSetType(); - void setServiceSetType(int32_t value); + std::string getSetId() const; + bool setIdIsSet() const; + void unsetsetId(); + void setSetId(const std::string& value); protected: - std::string setId_; - bool setIdIsSet_; + int32_t addressSetType_; + bool addressSetTypeIsSet_; std::string name_; bool nameIsSet_; - std::vector protocols_; - bool protocolsIsSet_; - int32_t serviceSetType_; - bool serviceSetTypeIsSet_; + std::string setId_; + bool setIdIsSet_; }; diff --git a/cfw/include/huaweicloud/cfw/v1/model/AddressSetListResponseDTO_data_records.h b/cfw/include/huaweicloud/cfw/v1/model/AddressSetListResponseDTO_data_records.h index 1537970be..ae1e9e327 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/AddressSetListResponseDTO_data_records.h +++ b/cfw/include/huaweicloud/cfw/v1/model/AddressSetListResponseDTO_data_records.h @@ -84,7 +84,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddressSetListResponseDTO_data_records void setAddressType(int32_t value); /// - /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用查询防火墙实例接口获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。具体可参考APIExlorer和帮助中心FAQ。 + /// 互联网边界防护对象id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),type为0的为互联网边界防护对象id。 /// std::string getObjectId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/BatchDeleteAclRulesRequest.h b/cfw/include/huaweicloud/cfw/v1/model/BatchDeleteAclRulesRequest.h index 4073b25c2..167615360 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/BatchDeleteAclRulesRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/BatchDeleteAclRulesRequest.h @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT BatchDeleteAclRulesRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/BatchDeleteAddressItemsRequest.h b/cfw/include/huaweicloud/cfw/v1/model/BatchDeleteAddressItemsRequest.h index f5b58a2ad..266b5b0e2 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/BatchDeleteAddressItemsRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/BatchDeleteAddressItemsRequest.h @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT BatchDeleteAddressItemsRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/BatchDeleteServiceItemsRequest.h b/cfw/include/huaweicloud/cfw/v1/model/BatchDeleteServiceItemsRequest.h index ad83f3f83..de0707be6 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/BatchDeleteServiceItemsRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/BatchDeleteServiceItemsRequest.h @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT BatchDeleteServiceItemsRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/BlackWhiteListResponse_data.h b/cfw/include/huaweicloud/cfw/v1/model/BlackWhiteListResponse_data.h index f646120d9..ac9522e96 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/BlackWhiteListResponse_data.h +++ b/cfw/include/huaweicloud/cfw/v1/model/BlackWhiteListResponse_data.h @@ -10,7 +10,6 @@ #include #include -#include #include namespace HuaweiCloud { @@ -40,15 +39,6 @@ class HUAWEICLOUD_CFW_V1_EXPORT BlackWhiteListResponse_data ///////////////////////////////////////////// /// BlackWhiteListResponse_data members - /// - /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用查询防火墙实例接口获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。具体可参考APIExlorer和帮助中心FAQ。 - /// - - std::string getObjectId() const; - bool objectIdIsSet() const; - void unsetobjectId(); - void setObjectId(const std::string& value); - /// /// 偏移量:指定返回记录的开始位置,必须为数字,取值范围为大于或等于0,默认0 /// @@ -87,8 +77,6 @@ class HUAWEICLOUD_CFW_V1_EXPORT BlackWhiteListResponse_data protected: - std::string objectId_; - bool objectIdIsSet_; int32_t offset_; bool offsetIsSet_; int32_t limit_; diff --git a/cfw/include/huaweicloud/cfw/v1/model/BlackWhiteListResponse_data_records.h b/cfw/include/huaweicloud/cfw/v1/model/BlackWhiteListResponse_data_records.h index 8fce199d3..6c2c280f4 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/BlackWhiteListResponse_data_records.h +++ b/cfw/include/huaweicloud/cfw/v1/model/BlackWhiteListResponse_data_records.h @@ -57,7 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT BlackWhiteListResponse_data_records void setDirection(int32_t value); /// - /// IP地址类型0:ipv4,1:ipv6,2:domain + /// IP地址类型0:ipv4,1:ipv6 /// int32_t getAddressType() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/CancelCaptureTaskDto.h b/cfw/include/huaweicloud/cfw/v1/model/CancelCaptureTaskDto.h new file mode 100644 index 000000000..9857edd7f --- /dev/null +++ b/cfw/include/huaweicloud/cfw/v1/model/CancelCaptureTaskDto.h @@ -0,0 +1,64 @@ + +#ifndef HUAWEICLOUD_SDK_CFW_V1_MODEL_CancelCaptureTaskDto_H_ +#define HUAWEICLOUD_SDK_CFW_V1_MODEL_CancelCaptureTaskDto_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_CFW_V1_EXPORT CancelCaptureTaskDto + : public ModelBase +{ +public: + CancelCaptureTaskDto(); + virtual ~CancelCaptureTaskDto(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CancelCaptureTaskDto members + + /// + /// 抓包任务id + /// + + std::string getTaskId() const; + bool taskIdIsSet() const; + void unsettaskId(); + void setTaskId(const std::string& value); + + +protected: + std::string taskId_; + bool taskIdIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CFW_V1_MODEL_CancelCaptureTaskDto_H_ diff --git a/cfw/include/huaweicloud/cfw/v1/model/CancelCaptureTaskRequest.h b/cfw/include/huaweicloud/cfw/v1/model/CancelCaptureTaskRequest.h new file mode 100644 index 000000000..df37c2dff --- /dev/null +++ b/cfw/include/huaweicloud/cfw/v1/model/CancelCaptureTaskRequest.h @@ -0,0 +1,94 @@ + +#ifndef HUAWEICLOUD_SDK_CFW_V1_MODEL_CancelCaptureTaskRequest_H_ +#define HUAWEICLOUD_SDK_CFW_V1_MODEL_CancelCaptureTaskRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_CFW_V1_EXPORT CancelCaptureTaskRequest + : public ModelBase +{ +public: + CancelCaptureTaskRequest(); + virtual ~CancelCaptureTaskRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CancelCaptureTaskRequest members + + /// + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// + + std::string getFwInstanceId() const; + bool fwInstanceIdIsSet() const; + void unsetfwInstanceId(); + void setFwInstanceId(const std::string& value); + + /// + /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// + + std::string getEnterpriseProjectId() const; + bool enterpriseProjectIdIsSet() const; + void unsetenterpriseProjectId(); + void setEnterpriseProjectId(const std::string& value); + + /// + /// + /// + + CancelCaptureTaskDto getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const CancelCaptureTaskDto& value); + + +protected: + std::string fwInstanceId_; + bool fwInstanceIdIsSet_; + std::string enterpriseProjectId_; + bool enterpriseProjectIdIsSet_; + CancelCaptureTaskDto body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + CancelCaptureTaskRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CFW_V1_MODEL_CancelCaptureTaskRequest_H_ diff --git a/cfw/include/huaweicloud/cfw/v1/model/CancelCaptureTaskResponse.h b/cfw/include/huaweicloud/cfw/v1/model/CancelCaptureTaskResponse.h new file mode 100644 index 000000000..4ae497f2c --- /dev/null +++ b/cfw/include/huaweicloud/cfw/v1/model/CancelCaptureTaskResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_CFW_V1_MODEL_CancelCaptureTaskResponse_H_ +#define HUAWEICLOUD_SDK_CFW_V1_MODEL_CancelCaptureTaskResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_CFW_V1_EXPORT CancelCaptureTaskResponse + : public ModelBase, public HttpResponse +{ +public: + CancelCaptureTaskResponse(); + virtual ~CancelCaptureTaskResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CancelCaptureTaskResponse members + + /// + /// + /// + + IdObject getData() const; + bool dataIsSet() const; + void unsetdata(); + void setData(const IdObject& value); + + +protected: + IdObject data_; + bool dataIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CFW_V1_MODEL_CancelCaptureTaskResponse_H_ diff --git a/cfw/include/huaweicloud/cfw/v1/model/CaptureFile.h b/cfw/include/huaweicloud/cfw/v1/model/CaptureFile.h new file mode 100644 index 000000000..ba48536bb --- /dev/null +++ b/cfw/include/huaweicloud/cfw/v1/model/CaptureFile.h @@ -0,0 +1,86 @@ + +#ifndef HUAWEICLOUD_SDK_CFW_V1_MODEL_CaptureFile_H_ +#define HUAWEICLOUD_SDK_CFW_V1_MODEL_CaptureFile_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_CFW_V1_EXPORT CaptureFile + : public ModelBase +{ +public: + CaptureFile(); + virtual ~CaptureFile(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CaptureFile members + + /// + /// 文件名称 + /// + + std::string getFileName() const; + bool fileNameIsSet() const; + void unsetfileName(); + void setFileName(const std::string& value); + + /// + /// 下载链接 + /// + + std::string getUrl() const; + bool urlIsSet() const; + void unseturl(); + void setUrl(const std::string& value); + + /// + /// 文件路径 + /// + + std::string getFilePath() const; + bool filePathIsSet() const; + void unsetfilePath(); + void setFilePath(const std::string& value); + + +protected: + std::string fileName_; + bool fileNameIsSet_; + std::string url_; + bool urlIsSet_; + std::string filePath_; + bool filePathIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CFW_V1_MODEL_CaptureFile_H_ diff --git a/cfw/include/huaweicloud/cfw/v1/model/CaptureResultUrlVO.h b/cfw/include/huaweicloud/cfw/v1/model/CaptureResultUrlVO.h new file mode 100644 index 000000000..51aba84c8 --- /dev/null +++ b/cfw/include/huaweicloud/cfw/v1/model/CaptureResultUrlVO.h @@ -0,0 +1,111 @@ + +#ifndef HUAWEICLOUD_SDK_CFW_V1_MODEL_CaptureResultUrlVO_H_ +#define HUAWEICLOUD_SDK_CFW_V1_MODEL_CaptureResultUrlVO_H_ + + +#include + +#include +#include +#include + +#include +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_CFW_V1_EXPORT CaptureResultUrlVO + : public ModelBase +{ +public: + CaptureResultUrlVO(); + virtual ~CaptureResultUrlVO(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CaptureResultUrlVO members + + /// + /// 下载链接提取码 + /// + + std::string getCaptcha() const; + bool captchaIsSet() const; + void unsetcaptcha(); + void setCaptcha(const std::string& value); + + /// + /// 下载链接过期时间 + /// + + int64_t getExpires() const; + bool expiresIsSet() const; + void unsetexpires(); + void setExpires(int64_t value); + + /// + /// 抓包文件列表 + /// + + std::vector& getFileList(); + bool fileListIsSet() const; + void unsetfileList(); + void setFileList(const std::vector& value); + + /// + /// + /// + + HostHeaderInfo getRequestHeader() const; + bool requestHeaderIsSet() const; + void unsetrequestHeader(); + void setRequestHeader(const HostHeaderInfo& value); + + /// + /// 下载链接 + /// + + std::string getUrl() const; + bool urlIsSet() const; + void unseturl(); + void setUrl(const std::string& value); + + +protected: + std::string captcha_; + bool captchaIsSet_; + int64_t expires_; + bool expiresIsSet_; + std::vector fileList_; + bool fileListIsSet_; + HostHeaderInfo requestHeader_; + bool requestHeaderIsSet_; + std::string url_; + bool urlIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CFW_V1_MODEL_CaptureResultUrlVO_H_ diff --git a/cfw/include/huaweicloud/cfw/v1/model/CaptureRuleAddressDto.h b/cfw/include/huaweicloud/cfw/v1/model/CaptureRuleAddressDto.h new file mode 100644 index 000000000..736980321 --- /dev/null +++ b/cfw/include/huaweicloud/cfw/v1/model/CaptureRuleAddressDto.h @@ -0,0 +1,86 @@ + +#ifndef HUAWEICLOUD_SDK_CFW_V1_MODEL_CaptureRuleAddressDto_H_ +#define HUAWEICLOUD_SDK_CFW_V1_MODEL_CaptureRuleAddressDto_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_CFW_V1_EXPORT CaptureRuleAddressDto + : public ModelBase +{ +public: + CaptureRuleAddressDto(); + virtual ~CaptureRuleAddressDto(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CaptureRuleAddressDto members + + /// + /// 地址 + /// + + std::string getAddress() const; + bool addressIsSet() const; + void unsetaddress(); + void setAddress(const std::string& value); + + /// + /// 目的地址类型0 ipv4,1 ipv6 + /// + + int32_t getAddressType() const; + bool addressTypeIsSet() const; + void unsetaddressType(); + void setAddressType(int32_t value); + + /// + /// 输入地址类型,目前只支持0,手工输入类型 + /// + + int32_t getType() const; + bool typeIsSet() const; + void unsettype(); + void setType(int32_t value); + + +protected: + std::string address_; + bool addressIsSet_; + int32_t addressType_; + bool addressTypeIsSet_; + int32_t type_; + bool typeIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CFW_V1_MODEL_CaptureRuleAddressDto_H_ diff --git a/cfw/include/huaweicloud/cfw/v1/model/CaptureServiceDto.h b/cfw/include/huaweicloud/cfw/v1/model/CaptureServiceDto.h new file mode 100644 index 000000000..d2a02aa72 --- /dev/null +++ b/cfw/include/huaweicloud/cfw/v1/model/CaptureServiceDto.h @@ -0,0 +1,86 @@ + +#ifndef HUAWEICLOUD_SDK_CFW_V1_MODEL_CaptureServiceDto_H_ +#define HUAWEICLOUD_SDK_CFW_V1_MODEL_CaptureServiceDto_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_CFW_V1_EXPORT CaptureServiceDto + : public ModelBase +{ +public: + CaptureServiceDto(); + virtual ~CaptureServiceDto(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CaptureServiceDto members + + /// + /// 目的端口 + /// + + std::string getDestPort() const; + bool destPortIsSet() const; + void unsetdestPort(); + void setDestPort(const std::string& value); + + /// + /// 协议类型:TCP为6,UDP为17,ICMP为1,ICMPV6为58,ANY为-1,手动类型不为空,自动类型为空 + /// + + int32_t getProtocol() const; + bool protocolIsSet() const; + void unsetprotocol(); + void setProtocol(int32_t value); + + /// + /// 源端口 + /// + + std::string getSourcePort() const; + bool sourcePortIsSet() const; + void unsetsourcePort(); + void setSourcePort(const std::string& value); + + +protected: + std::string destPort_; + bool destPortIsSet_; + int32_t protocol_; + bool protocolIsSet_; + std::string sourcePort_; + bool sourcePortIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CFW_V1_MODEL_CaptureServiceDto_H_ diff --git a/cfw/include/huaweicloud/cfw/v1/model/CaptureTaskDto.h b/cfw/include/huaweicloud/cfw/v1/model/CaptureTaskDto.h new file mode 100644 index 000000000..82ddd6c53 --- /dev/null +++ b/cfw/include/huaweicloud/cfw/v1/model/CaptureTaskDto.h @@ -0,0 +1,121 @@ + +#ifndef HUAWEICLOUD_SDK_CFW_V1_MODEL_CaptureTaskDto_H_ +#define HUAWEICLOUD_SDK_CFW_V1_MODEL_CaptureTaskDto_H_ + + +#include + +#include +#include +#include + +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_CFW_V1_EXPORT CaptureTaskDto + : public ModelBase +{ +public: + CaptureTaskDto(); + virtual ~CaptureTaskDto(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CaptureTaskDto members + + /// + /// + /// + + CaptureRuleAddressDto getDestination() const; + bool destinationIsSet() const; + void unsetdestination(); + void setDestination(const CaptureRuleAddressDto& value); + + /// + /// 抓包时长 + /// + + int32_t getDuration() const; + bool durationIsSet() const; + void unsetduration(); + void setDuration(int32_t value); + + /// + /// 最大抓包数 + /// + + int32_t getMaxPackets() const; + bool maxPacketsIsSet() const; + void unsetmaxPackets(); + void setMaxPackets(int32_t value); + + /// + /// 抓包任务名称 + /// + + std::string getName() const; + bool nameIsSet() const; + void unsetname(); + void setName(const std::string& value); + + /// + /// + /// + + CaptureServiceDto getService() const; + bool serviceIsSet() const; + void unsetservice(); + void setService(const CaptureServiceDto& value); + + /// + /// + /// + + CaptureRuleAddressDto getSource() const; + bool sourceIsSet() const; + void unsetsource(); + void setSource(const CaptureRuleAddressDto& value); + + +protected: + CaptureRuleAddressDto destination_; + bool destinationIsSet_; + int32_t duration_; + bool durationIsSet_; + int32_t maxPackets_; + bool maxPacketsIsSet_; + std::string name_; + bool nameIsSet_; + CaptureServiceDto service_; + bool serviceIsSet_; + CaptureRuleAddressDto source_; + bool sourceIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CFW_V1_MODEL_CaptureTaskDto_H_ diff --git a/cfw/include/huaweicloud/cfw/v1/model/CaptureTaskVO.h b/cfw/include/huaweicloud/cfw/v1/model/CaptureTaskVO.h new file mode 100644 index 000000000..f0dd5b8fc --- /dev/null +++ b/cfw/include/huaweicloud/cfw/v1/model/CaptureTaskVO.h @@ -0,0 +1,240 @@ + +#ifndef HUAWEICLOUD_SDK_CFW_V1_MODEL_CaptureTaskVO_H_ +#define HUAWEICLOUD_SDK_CFW_V1_MODEL_CaptureTaskVO_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_CFW_V1_EXPORT CaptureTaskVO + : public ModelBase +{ +public: + CaptureTaskVO(); + virtual ~CaptureTaskVO(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CaptureTaskVO members + + /// + /// 抓包大小 + /// + + std::string getCaptureSize() const; + bool captureSizeIsSet() const; + void unsetcaptureSize(); + void setCaptureSize(const std::string& value); + + /// + /// 抓包创建时间 + /// + + std::string getCreatedDate() const; + bool createdDateIsSet() const; + void unsetcreatedDate(); + void setCreatedDate(const std::string& value); + + /// + /// 目的地址 + /// + + std::string getDestAddress() const; + bool destAddressIsSet() const; + void unsetdestAddress(); + void setDestAddress(const std::string& value); + + /// + /// 目的地址类型0 ipv4,1 ipv6 + /// + + int32_t getDestAddressType() const; + bool destAddressTypeIsSet() const; + void unsetdestAddressType(); + void setDestAddressType(int32_t value); + + /// + /// 目的端口 + /// + + std::string getDestPort() const; + bool destPortIsSet() const; + void unsetdestPort(); + void setDestPort(const std::string& value); + + /// + /// 抓包时长 + /// + + int32_t getDuration() const; + bool durationIsSet() const; + void unsetduration(); + void setDuration(int32_t value); + + /// + /// 是否被删除,0否 1是 + /// + + int32_t getIsDeleted() const; + bool isDeletedIsSet() const; + void unsetisDeleted(); + void setIsDeleted(int32_t value); + + /// + /// 最大抓包数 + /// + + int32_t getMaxPackets() const; + bool maxPacketsIsSet() const; + void unsetmaxPackets(); + void setMaxPackets(int32_t value); + + /// + /// 修改日期 + /// + + std::string getModifiedDate() const; + bool modifiedDateIsSet() const; + void unsetmodifiedDate(); + void setModifiedDate(const std::string& value); + + /// + /// 抓包任务名称 + /// + + std::string getName() const; + bool nameIsSet() const; + void unsetname(); + void setName(const std::string& value); + + /// + /// 协议类型:TCP为6,UDP为17,ICMP为1,ICMPV6为58,ANY为-1,手动类型不为空,自动类型为空 + /// + + int32_t getProtocol() const; + bool protocolIsSet() const; + void unsetprotocol(); + void setProtocol(int32_t value); + + /// + /// 剩余保留天数 + /// + + int32_t getRemainingDays() const; + bool remainingDaysIsSet() const; + void unsetremainingDays(); + void setRemainingDays(int32_t value); + + /// + /// 源地址 + /// + + std::string getSourceAddress() const; + bool sourceAddressIsSet() const; + void unsetsourceAddress(); + void setSourceAddress(const std::string& value); + + /// + /// 源地址类型0 ipv4,1 ipv6 + /// + + int32_t getSourceAddressType() const; + bool sourceAddressTypeIsSet() const; + void unsetsourceAddressType(); + void setSourceAddressType(int32_t value); + + /// + /// 源端口 + /// + + std::string getSourcePort() const; + bool sourcePortIsSet() const; + void unsetsourcePort(); + void setSourcePort(const std::string& value); + + /// + /// 抓包任务状态 + /// + + int32_t getStatus() const; + bool statusIsSet() const; + void unsetstatus(); + void setStatus(int32_t value); + + /// + /// 抓包任务id + /// + + std::string getTaskId() const; + bool taskIdIsSet() const; + void unsettaskId(); + void setTaskId(const std::string& value); + + +protected: + std::string captureSize_; + bool captureSizeIsSet_; + std::string createdDate_; + bool createdDateIsSet_; + std::string destAddress_; + bool destAddressIsSet_; + int32_t destAddressType_; + bool destAddressTypeIsSet_; + std::string destPort_; + bool destPortIsSet_; + int32_t duration_; + bool durationIsSet_; + int32_t isDeleted_; + bool isDeletedIsSet_; + int32_t maxPackets_; + bool maxPacketsIsSet_; + std::string modifiedDate_; + bool modifiedDateIsSet_; + std::string name_; + bool nameIsSet_; + int32_t protocol_; + bool protocolIsSet_; + int32_t remainingDays_; + bool remainingDaysIsSet_; + std::string sourceAddress_; + bool sourceAddressIsSet_; + int32_t sourceAddressType_; + bool sourceAddressTypeIsSet_; + std::string sourcePort_; + bool sourcePortIsSet_; + int32_t status_; + bool statusIsSet_; + std::string taskId_; + bool taskIdIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CFW_V1_MODEL_CaptureTaskVO_H_ diff --git a/cfw/include/huaweicloud/cfw/v1/model/ChangeEastWestFirewallStatusRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ChangeEastWestFirewallStatusRequest.h index 262ba5d29..e55f2236e 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ChangeEastWestFirewallStatusRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ChangeEastWestFirewallStatusRequest.h @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ChangeEastWestFirewallStatusRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ChangeEipStatusRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ChangeEipStatusRequest.h index 6064f3f08..8fe73a393 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ChangeEipStatusRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ChangeEipStatusRequest.h @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ChangeEipStatusRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ChangeIpsProtectModeRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ChangeIpsProtectModeRequest.h index ed85b8835..fe2abb79c 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ChangeIpsProtectModeRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ChangeIpsProtectModeRequest.h @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ChangeIpsProtectModeRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ChangeIpsProtectModeResponse.h b/cfw/include/huaweicloud/cfw/v1/model/ChangeIpsProtectModeResponse.h index 402d3d69b..b6106cd22 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ChangeIpsProtectModeResponse.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ChangeIpsProtectModeResponse.h @@ -9,7 +9,7 @@ #include #include -#include +#include namespace HuaweiCloud { namespace Sdk { @@ -42,14 +42,14 @@ class HUAWEICLOUD_CFW_V1_EXPORT ChangeIpsProtectModeResponse /// /// - IdObject getData() const; + CommonResponseDTO_data getData() const; bool dataIsSet() const; void unsetdata(); - void setData(const IdObject& value); + void setData(const CommonResponseDTO_data& value); protected: - IdObject data_; + CommonResponseDTO_data data_; bool dataIsSet_; #ifdef RTTR_FLAG diff --git a/cfw/include/huaweicloud/cfw/v1/model/ChangeIpsSwitchStatusRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ChangeIpsSwitchStatusRequest.h index 1888a014a..00f90020a 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ChangeIpsSwitchStatusRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ChangeIpsSwitchStatusRequest.h @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ChangeIpsSwitchStatusRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ChangeIpsSwitchStatusResponse.h b/cfw/include/huaweicloud/cfw/v1/model/ChangeIpsSwitchStatusResponse.h index 586e09b65..b3ad9f14a 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ChangeIpsSwitchStatusResponse.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ChangeIpsSwitchStatusResponse.h @@ -9,7 +9,6 @@ #include #include -#include #include namespace HuaweiCloud { @@ -39,15 +38,6 @@ class HUAWEICLOUD_CFW_V1_EXPORT ChangeIpsSwitchStatusResponse ///////////////////////////////////////////// /// ChangeIpsSwitchStatusResponse members - /// - /// trace_id - /// - - std::string getTraceId() const; - bool traceIdIsSet() const; - void unsettraceId(); - void setTraceId(const std::string& value); - /// /// /// @@ -59,8 +49,6 @@ class HUAWEICLOUD_CFW_V1_EXPORT ChangeIpsSwitchStatusResponse protected: - std::string traceId_; - bool traceIdIsSet_; CommonResponseDTO_data data_; bool dataIsSet_; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ChangeProtectStatusRequestBody.h b/cfw/include/huaweicloud/cfw/v1/model/ChangeProtectStatusRequestBody.h index b259e3958..17cb62457 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ChangeProtectStatusRequestBody.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ChangeProtectStatusRequestBody.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ChangeProtectStatusRequestBody /// ChangeProtectStatusRequestBody members /// - /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用查询防火墙实例接口获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。具体可参考APIExlorer和帮助中心FAQ。 + /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。 /// std::string getObjectId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/CreateCaptureTaskRequest.h b/cfw/include/huaweicloud/cfw/v1/model/CreateCaptureTaskRequest.h new file mode 100644 index 000000000..1b4d12ac6 --- /dev/null +++ b/cfw/include/huaweicloud/cfw/v1/model/CreateCaptureTaskRequest.h @@ -0,0 +1,94 @@ + +#ifndef HUAWEICLOUD_SDK_CFW_V1_MODEL_CreateCaptureTaskRequest_H_ +#define HUAWEICLOUD_SDK_CFW_V1_MODEL_CreateCaptureTaskRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_CFW_V1_EXPORT CreateCaptureTaskRequest + : public ModelBase +{ +public: + CreateCaptureTaskRequest(); + virtual ~CreateCaptureTaskRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateCaptureTaskRequest members + + /// + /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// + + std::string getEnterpriseProjectId() const; + bool enterpriseProjectIdIsSet() const; + void unsetenterpriseProjectId(); + void setEnterpriseProjectId(const std::string& value); + + /// + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// + + std::string getFwInstanceId() const; + bool fwInstanceIdIsSet() const; + void unsetfwInstanceId(); + void setFwInstanceId(const std::string& value); + + /// + /// + /// + + CaptureTaskDto getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const CaptureTaskDto& value); + + +protected: + std::string enterpriseProjectId_; + bool enterpriseProjectIdIsSet_; + std::string fwInstanceId_; + bool fwInstanceIdIsSet_; + CaptureTaskDto body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + CreateCaptureTaskRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CFW_V1_MODEL_CreateCaptureTaskRequest_H_ diff --git a/cfw/include/huaweicloud/cfw/v1/model/CreateCaptureTaskResponse.h b/cfw/include/huaweicloud/cfw/v1/model/CreateCaptureTaskResponse.h new file mode 100644 index 000000000..450c8f6c8 --- /dev/null +++ b/cfw/include/huaweicloud/cfw/v1/model/CreateCaptureTaskResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_CFW_V1_MODEL_CreateCaptureTaskResponse_H_ +#define HUAWEICLOUD_SDK_CFW_V1_MODEL_CreateCaptureTaskResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_CFW_V1_EXPORT CreateCaptureTaskResponse + : public ModelBase, public HttpResponse +{ +public: + CreateCaptureTaskResponse(); + virtual ~CreateCaptureTaskResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateCaptureTaskResponse members + + /// + /// + /// + + IdObject getData() const; + bool dataIsSet() const; + void unsetdata(); + void setData(const IdObject& value); + + +protected: + IdObject data_; + bool dataIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CFW_V1_MODEL_CreateCaptureTaskResponse_H_ diff --git a/cfw/include/huaweicloud/cfw/v1/model/CreateEWFirewallInspectVpcResp.h b/cfw/include/huaweicloud/cfw/v1/model/CreateEWFirewallInspectVpcResp.h new file mode 100644 index 000000000..6581f6ad5 --- /dev/null +++ b/cfw/include/huaweicloud/cfw/v1/model/CreateEWFirewallInspectVpcResp.h @@ -0,0 +1,76 @@ + +#ifndef HUAWEICLOUD_SDK_CFW_V1_MODEL_CreateEWFirewallInspectVpcResp_H_ +#define HUAWEICLOUD_SDK_CFW_V1_MODEL_CreateEWFirewallInspectVpcResp_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_CFW_V1_EXPORT CreateEWFirewallInspectVpcResp + : public ModelBase +{ +public: + CreateEWFirewallInspectVpcResp(); + virtual ~CreateEWFirewallInspectVpcResp(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateEWFirewallInspectVpcResp members + + /// + /// vpc id + /// + + std::string getVpcId() const; + bool vpcIdIsSet() const; + void unsetvpcId(); + void setVpcId(const std::string& value); + + /// + /// 子网列表 + /// + + std::vector& getSubnetIds(); + bool subnetIdsIsSet() const; + void unsetsubnetIds(); + void setSubnetIds(const std::vector& value); + + +protected: + std::string vpcId_; + bool vpcIdIsSet_; + std::vector subnetIds_; + bool subnetIdsIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CFW_V1_MODEL_CreateEWFirewallInspectVpcResp_H_ diff --git a/cfw/include/huaweicloud/cfw/v1/model/CreateEWFirewallResp.h b/cfw/include/huaweicloud/cfw/v1/model/CreateEWFirewallResp.h new file mode 100644 index 000000000..6f8df0631 --- /dev/null +++ b/cfw/include/huaweicloud/cfw/v1/model/CreateEWFirewallResp.h @@ -0,0 +1,88 @@ + +#ifndef HUAWEICLOUD_SDK_CFW_V1_MODEL_CreateEWFirewallResp_H_ +#define HUAWEICLOUD_SDK_CFW_V1_MODEL_CreateEWFirewallResp_H_ + + +#include + +#include +#include +#include + +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_CFW_V1_EXPORT CreateEWFirewallResp + : public ModelBase +{ +public: + CreateEWFirewallResp(); + virtual ~CreateEWFirewallResp(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateEWFirewallResp members + + /// + /// 东西向防护id + /// + + std::string getId() const; + bool idIsSet() const; + void unsetid(); + void setId(const std::string& value); + + /// + /// + /// + + ER getEr() const; + bool erIsSet() const; + void unseter(); + void setEr(const ER& value); + + /// + /// + /// + + CreateEWFirewallInspectVpcResp getInspertionVpc() const; + bool inspertionVpcIsSet() const; + void unsetinspertionVpc(); + void setInspertionVpc(const CreateEWFirewallInspectVpcResp& value); + + +protected: + std::string id_; + bool idIsSet_; + ER er_; + bool erIsSet_; + CreateEWFirewallInspectVpcResp inspertionVpc_; + bool inspertionVpcIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CFW_V1_MODEL_CreateEWFirewallResp_H_ diff --git a/cfw/include/huaweicloud/cfw/v1/model/CreateEastWestFirewallRequest.h b/cfw/include/huaweicloud/cfw/v1/model/CreateEastWestFirewallRequest.h index 6924a510a..d16b9dc9f 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/CreateEastWestFirewallRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/CreateEastWestFirewallRequest.h @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT CreateEastWestFirewallRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/CreateEastWestFirewallResponse.h b/cfw/include/huaweicloud/cfw/v1/model/CreateEastWestFirewallResponse.h index 3c801ccd2..bd2e38b23 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/CreateEastWestFirewallResponse.h +++ b/cfw/include/huaweicloud/cfw/v1/model/CreateEastWestFirewallResponse.h @@ -9,7 +9,7 @@ #include #include -#include +#include namespace HuaweiCloud { namespace Sdk { @@ -42,14 +42,14 @@ class HUAWEICLOUD_CFW_V1_EXPORT CreateEastWestFirewallResponse /// /// - IdObject getData() const; + CreateEWFirewallResp getData() const; bool dataIsSet() const; void unsetdata(); - void setData(const IdObject& value); + void setData(const CreateEWFirewallResp& value); protected: - IdObject data_; + CreateEWFirewallResp data_; bool dataIsSet_; #ifdef RTTR_FLAG diff --git a/cfw/include/huaweicloud/cfw/v1/model/CreateFirewallRequest.h b/cfw/include/huaweicloud/cfw/v1/model/CreateFirewallRequest.h index 793478e9e..1f76252fb 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/CreateFirewallRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/CreateFirewallRequest.h @@ -52,15 +52,6 @@ class HUAWEICLOUD_CFW_V1_EXPORT CreateFirewallRequest /// /// - std::string getXTraceId() const; - bool xTraceIdIsSet() const; - void unsetxTraceId(); - void setXTraceId(const std::string& value); - - /// - /// - /// - CreateFirewallReq getBody() const; bool bodyIsSet() const; void unsetbody(); @@ -70,8 +61,6 @@ class HUAWEICLOUD_CFW_V1_EXPORT CreateFirewallRequest protected: std::string xClientToken_; bool xClientTokenIsSet_; - std::string xTraceId_; - bool xTraceIdIsSet_; CreateFirewallReq body_; bool bodyIsSet_; diff --git a/cfw/include/huaweicloud/cfw/v1/model/Tag.h b/cfw/include/huaweicloud/cfw/v1/model/CreateTag.h similarity index 81% rename from cfw/include/huaweicloud/cfw/v1/model/Tag.h rename to cfw/include/huaweicloud/cfw/v1/model/CreateTag.h index 47932721d..fc439e52e 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/Tag.h +++ b/cfw/include/huaweicloud/cfw/v1/model/CreateTag.h @@ -1,6 +1,6 @@ -#ifndef HUAWEICLOUD_SDK_CFW_V1_MODEL_Tag_H_ -#define HUAWEICLOUD_SDK_CFW_V1_MODEL_Tag_H_ +#ifndef HUAWEICLOUD_SDK_CFW_V1_MODEL_CreateTag_H_ +#define HUAWEICLOUD_SDK_CFW_V1_MODEL_CreateTag_H_ #include @@ -22,12 +22,12 @@ using namespace HuaweiCloud::Sdk::Core::Http; /// /// /// -class HUAWEICLOUD_CFW_V1_EXPORT Tag +class HUAWEICLOUD_CFW_V1_EXPORT CreateTag : public ModelBase { public: - Tag(); - virtual ~Tag(); + CreateTag(); + virtual ~CreateTag(); ///////////////////////////////////////////// /// ModelBase overrides @@ -36,7 +36,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT Tag web::json::value toJson() const override; bool fromJson(const web::json::value& json) override; ///////////////////////////////////////////// - /// Tag members + /// CreateTag members /// /// 键 @@ -72,4 +72,4 @@ class HUAWEICLOUD_CFW_V1_EXPORT Tag } } -#endif // HUAWEICLOUD_SDK_CFW_V1_MODEL_Tag_H_ +#endif // HUAWEICLOUD_SDK_CFW_V1_MODEL_CreateTag_H_ diff --git a/cfw/include/huaweicloud/cfw/v1/model/CreateTagRequest.h b/cfw/include/huaweicloud/cfw/v1/model/CreateTagRequest.h new file mode 100644 index 000000000..f3ddaf624 --- /dev/null +++ b/cfw/include/huaweicloud/cfw/v1/model/CreateTagRequest.h @@ -0,0 +1,83 @@ + +#ifndef HUAWEICLOUD_SDK_CFW_V1_MODEL_CreateTagRequest_H_ +#define HUAWEICLOUD_SDK_CFW_V1_MODEL_CreateTagRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_CFW_V1_EXPORT CreateTagRequest + : public ModelBase +{ +public: + CreateTagRequest(); + virtual ~CreateTagRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateTagRequest members + + /// + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// + + std::string getFwInstanceId() const; + bool fwInstanceIdIsSet() const; + void unsetfwInstanceId(); + void setFwInstanceId(const std::string& value); + + /// + /// + /// + + CreateTagsDto getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const CreateTagsDto& value); + + +protected: + std::string fwInstanceId_; + bool fwInstanceIdIsSet_; + CreateTagsDto body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + CreateTagRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CFW_V1_MODEL_CreateTagRequest_H_ diff --git a/cfw/include/huaweicloud/cfw/v1/model/CreateTagResponse.h b/cfw/include/huaweicloud/cfw/v1/model/CreateTagResponse.h new file mode 100644 index 000000000..f05776307 --- /dev/null +++ b/cfw/include/huaweicloud/cfw/v1/model/CreateTagResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_CFW_V1_MODEL_CreateTagResponse_H_ +#define HUAWEICLOUD_SDK_CFW_V1_MODEL_CreateTagResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_CFW_V1_EXPORT CreateTagResponse + : public ModelBase, public HttpResponse +{ +public: + CreateTagResponse(); + virtual ~CreateTagResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateTagResponse members + + /// + /// + /// + + std::string getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const std::string& value); + + +protected: + std::string body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CFW_V1_MODEL_CreateTagResponse_H_ diff --git a/cfw/include/huaweicloud/cfw/v1/model/CreateTagsDto.h b/cfw/include/huaweicloud/cfw/v1/model/CreateTagsDto.h new file mode 100644 index 000000000..3326d0a6a --- /dev/null +++ b/cfw/include/huaweicloud/cfw/v1/model/CreateTagsDto.h @@ -0,0 +1,65 @@ + +#ifndef HUAWEICLOUD_SDK_CFW_V1_MODEL_CreateTagsDto_H_ +#define HUAWEICLOUD_SDK_CFW_V1_MODEL_CreateTagsDto_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_CFW_V1_EXPORT CreateTagsDto + : public ModelBase +{ +public: + CreateTagsDto(); + virtual ~CreateTagsDto(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateTagsDto members + + /// + /// 标签列表 + /// + + std::vector& getTags(); + bool tagsIsSet() const; + void unsettags(); + void setTags(const std::vector& value); + + +protected: + std::vector tags_; + bool tagsIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CFW_V1_MODEL_CreateTagsDto_H_ diff --git a/cfw/include/huaweicloud/cfw/v1/model/DeleteAclRuleHitCountRequest.h b/cfw/include/huaweicloud/cfw/v1/model/DeleteAclRuleHitCountRequest.h index 02772710b..de6593818 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/DeleteAclRuleHitCountRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/DeleteAclRuleHitCountRequest.h @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteAclRuleHitCountRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/DeleteAclRuleRequest.h b/cfw/include/huaweicloud/cfw/v1/model/DeleteAclRuleRequest.h index 80f628417..dfb486abd 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/DeleteAclRuleRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/DeleteAclRuleRequest.h @@ -57,7 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteAclRuleRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/DeleteAddressItemRequest.h b/cfw/include/huaweicloud/cfw/v1/model/DeleteAddressItemRequest.h index f6f54c9ee..7b84723d3 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/DeleteAddressItemRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/DeleteAddressItemRequest.h @@ -57,7 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteAddressItemRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/DeleteAddressSetRequest.h b/cfw/include/huaweicloud/cfw/v1/model/DeleteAddressSetRequest.h index 6d5a8379d..444a5a70f 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/DeleteAddressSetRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/DeleteAddressSetRequest.h @@ -57,7 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteAddressSetRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/DeleteBlackWhiteListRequest.h b/cfw/include/huaweicloud/cfw/v1/model/DeleteBlackWhiteListRequest.h index 59ba9e1b9..c06a63150 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/DeleteBlackWhiteListRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/DeleteBlackWhiteListRequest.h @@ -57,7 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteBlackWhiteListRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/DeleteCaptureTaskDto.h b/cfw/include/huaweicloud/cfw/v1/model/DeleteCaptureTaskDto.h new file mode 100644 index 000000000..853f4bd97 --- /dev/null +++ b/cfw/include/huaweicloud/cfw/v1/model/DeleteCaptureTaskDto.h @@ -0,0 +1,65 @@ + +#ifndef HUAWEICLOUD_SDK_CFW_V1_MODEL_DeleteCaptureTaskDto_H_ +#define HUAWEICLOUD_SDK_CFW_V1_MODEL_DeleteCaptureTaskDto_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_CFW_V1_EXPORT DeleteCaptureTaskDto + : public ModelBase +{ +public: + DeleteCaptureTaskDto(); + virtual ~DeleteCaptureTaskDto(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DeleteCaptureTaskDto members + + /// + /// 抓包任务id列表 + /// + + std::vector& getTaskIds(); + bool taskIdsIsSet() const; + void unsettaskIds(); + void setTaskIds(const std::vector& value); + + +protected: + std::vector taskIds_; + bool taskIdsIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CFW_V1_MODEL_DeleteCaptureTaskDto_H_ diff --git a/cfw/include/huaweicloud/cfw/v1/model/DeleteCaptureTaskRequest.h b/cfw/include/huaweicloud/cfw/v1/model/DeleteCaptureTaskRequest.h new file mode 100644 index 000000000..655024742 --- /dev/null +++ b/cfw/include/huaweicloud/cfw/v1/model/DeleteCaptureTaskRequest.h @@ -0,0 +1,94 @@ + +#ifndef HUAWEICLOUD_SDK_CFW_V1_MODEL_DeleteCaptureTaskRequest_H_ +#define HUAWEICLOUD_SDK_CFW_V1_MODEL_DeleteCaptureTaskRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_CFW_V1_EXPORT DeleteCaptureTaskRequest + : public ModelBase +{ +public: + DeleteCaptureTaskRequest(); + virtual ~DeleteCaptureTaskRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DeleteCaptureTaskRequest members + + /// + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// + + std::string getFwInstanceId() const; + bool fwInstanceIdIsSet() const; + void unsetfwInstanceId(); + void setFwInstanceId(const std::string& value); + + /// + /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// + + std::string getEnterpriseProjectId() const; + bool enterpriseProjectIdIsSet() const; + void unsetenterpriseProjectId(); + void setEnterpriseProjectId(const std::string& value); + + /// + /// + /// + + DeleteCaptureTaskDto getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const DeleteCaptureTaskDto& value); + + +protected: + std::string fwInstanceId_; + bool fwInstanceIdIsSet_; + std::string enterpriseProjectId_; + bool enterpriseProjectIdIsSet_; + DeleteCaptureTaskDto body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + DeleteCaptureTaskRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CFW_V1_MODEL_DeleteCaptureTaskRequest_H_ diff --git a/cfw/include/huaweicloud/cfw/v1/model/DeleteCaptureTaskResponse.h b/cfw/include/huaweicloud/cfw/v1/model/DeleteCaptureTaskResponse.h new file mode 100644 index 000000000..fd655eabf --- /dev/null +++ b/cfw/include/huaweicloud/cfw/v1/model/DeleteCaptureTaskResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_CFW_V1_MODEL_DeleteCaptureTaskResponse_H_ +#define HUAWEICLOUD_SDK_CFW_V1_MODEL_DeleteCaptureTaskResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_CFW_V1_EXPORT DeleteCaptureTaskResponse + : public ModelBase, public HttpResponse +{ +public: + DeleteCaptureTaskResponse(); + virtual ~DeleteCaptureTaskResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DeleteCaptureTaskResponse members + + /// + /// + /// + + IdObject getData() const; + bool dataIsSet() const; + void unsetdata(); + void setData(const IdObject& value); + + +protected: + IdObject data_; + bool dataIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CFW_V1_MODEL_DeleteCaptureTaskResponse_H_ diff --git a/cfw/include/huaweicloud/cfw/v1/model/DeleteDomainDto.h b/cfw/include/huaweicloud/cfw/v1/model/DeleteDomainDto.h index deb2c75ac..53178e517 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/DeleteDomainDto.h +++ b/cfw/include/huaweicloud/cfw/v1/model/DeleteDomainDto.h @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteDomainDto /// DeleteDomainDto members /// - /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用查询防火墙实例接口获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。具体可参考APIExlorer和帮助中心FAQ。 + /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。 /// std::string getObjectId() const; @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteDomainDto void setObjectId(const std::string& value); /// - /// 域名地址组 + /// 域名id列表 /// std::vector& getDomainAddressIds(); diff --git a/cfw/include/huaweicloud/cfw/v1/model/DeleteDomainSetRequest.h b/cfw/include/huaweicloud/cfw/v1/model/DeleteDomainSetRequest.h index 066b6d68b..ae4c485fd 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/DeleteDomainSetRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/DeleteDomainSetRequest.h @@ -57,7 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteDomainSetRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/DeleteRuleAclDto.h b/cfw/include/huaweicloud/cfw/v1/model/DeleteRuleAclDto.h index ff1f1335c..473496242 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/DeleteRuleAclDto.h +++ b/cfw/include/huaweicloud/cfw/v1/model/DeleteRuleAclDto.h @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteRuleAclDto /// DeleteRuleAclDto members /// - /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用查询防火墙实例接口获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。具体可参考APIExlorer和帮助中心FAQ。 + /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。 /// std::string getObjectId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/DeleteServiceItemRequest.h b/cfw/include/huaweicloud/cfw/v1/model/DeleteServiceItemRequest.h index e261286c5..401e71cbf 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/DeleteServiceItemRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/DeleteServiceItemRequest.h @@ -57,7 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteServiceItemRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/DeleteServiceSetRequest.h b/cfw/include/huaweicloud/cfw/v1/model/DeleteServiceSetRequest.h index ec696bb91..464a13ee0 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/DeleteServiceSetRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/DeleteServiceSetRequest.h @@ -57,7 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteServiceSetRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/DeleteTagRequest.h b/cfw/include/huaweicloud/cfw/v1/model/DeleteTagRequest.h new file mode 100644 index 000000000..bc34fe9d5 --- /dev/null +++ b/cfw/include/huaweicloud/cfw/v1/model/DeleteTagRequest.h @@ -0,0 +1,83 @@ + +#ifndef HUAWEICLOUD_SDK_CFW_V1_MODEL_DeleteTagRequest_H_ +#define HUAWEICLOUD_SDK_CFW_V1_MODEL_DeleteTagRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_CFW_V1_EXPORT DeleteTagRequest + : public ModelBase +{ +public: + DeleteTagRequest(); + virtual ~DeleteTagRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DeleteTagRequest members + + /// + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// + + std::string getFwInstanceId() const; + bool fwInstanceIdIsSet() const; + void unsetfwInstanceId(); + void setFwInstanceId(const std::string& value); + + /// + /// + /// + + DeleteTagsDto getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const DeleteTagsDto& value); + + +protected: + std::string fwInstanceId_; + bool fwInstanceIdIsSet_; + DeleteTagsDto body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + DeleteTagRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CFW_V1_MODEL_DeleteTagRequest_H_ diff --git a/cfw/include/huaweicloud/cfw/v1/model/DeleteTagResponse.h b/cfw/include/huaweicloud/cfw/v1/model/DeleteTagResponse.h new file mode 100644 index 000000000..d08f6edcc --- /dev/null +++ b/cfw/include/huaweicloud/cfw/v1/model/DeleteTagResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_CFW_V1_MODEL_DeleteTagResponse_H_ +#define HUAWEICLOUD_SDK_CFW_V1_MODEL_DeleteTagResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_CFW_V1_EXPORT DeleteTagResponse + : public ModelBase, public HttpResponse +{ +public: + DeleteTagResponse(); + virtual ~DeleteTagResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DeleteTagResponse members + + /// + /// + /// + + std::string getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const std::string& value); + + +protected: + std::string body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CFW_V1_MODEL_DeleteTagResponse_H_ diff --git a/cfw/include/huaweicloud/cfw/v1/model/DeleteTagsDto.h b/cfw/include/huaweicloud/cfw/v1/model/DeleteTagsDto.h new file mode 100644 index 000000000..c20a976b8 --- /dev/null +++ b/cfw/include/huaweicloud/cfw/v1/model/DeleteTagsDto.h @@ -0,0 +1,65 @@ + +#ifndef HUAWEICLOUD_SDK_CFW_V1_MODEL_DeleteTagsDto_H_ +#define HUAWEICLOUD_SDK_CFW_V1_MODEL_DeleteTagsDto_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_CFW_V1_EXPORT DeleteTagsDto + : public ModelBase +{ +public: + DeleteTagsDto(); + virtual ~DeleteTagsDto(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DeleteTagsDto members + + /// + /// 标签列表 + /// + + std::vector& getTags(); + bool tagsIsSet() const; + void unsettags(); + void setTags(const std::vector& value); + + +protected: + std::vector tags_; + bool tagsIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CFW_V1_MODEL_DeleteTagsDto_H_ diff --git a/cfw/include/huaweicloud/cfw/v1/model/DomainSetVo.h b/cfw/include/huaweicloud/cfw/v1/model/DomainSetVo.h index c14338a92..89590b649 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/DomainSetVo.h +++ b/cfw/include/huaweicloud/cfw/v1/model/DomainSetVo.h @@ -77,7 +77,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DomainSetVo void setRefCount(int32_t value); /// - /// 域名组类型,0表示URL过滤,1表示地址解析 + /// 域名组类型,0表示应用域名组,1表示网络域名组 /// int32_t getDomainSetType() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/EIPSwitchStatusVO.h b/cfw/include/huaweicloud/cfw/v1/model/EIPSwitchStatusVO.h index 5e2780345..97d1d84cb 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/EIPSwitchStatusVO.h +++ b/cfw/include/huaweicloud/cfw/v1/model/EIPSwitchStatusVO.h @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT EIPSwitchStatusVO /// EIPSwitchStatusVO members /// - /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用查询防火墙实例接口获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。具体可参考APIExlorer和帮助中心FAQ。 + /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。 /// std::string getObjectId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ER.h b/cfw/include/huaweicloud/cfw/v1/model/ER.h new file mode 100644 index 000000000..3082f5b34 --- /dev/null +++ b/cfw/include/huaweicloud/cfw/v1/model/ER.h @@ -0,0 +1,75 @@ + +#ifndef HUAWEICLOUD_SDK_CFW_V1_MODEL_ER_H_ +#define HUAWEICLOUD_SDK_CFW_V1_MODEL_ER_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_CFW_V1_EXPORT ER + : public ModelBase +{ +public: + ER(); + virtual ~ER(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ER members + + /// + /// ER ID + /// + + std::string getErId() const; + bool erIdIsSet() const; + void unseterId(); + void setErId(const std::string& value); + + /// + /// ER连接ID + /// + + std::string getErAttachId() const; + bool erAttachIdIsSet() const; + void unseterAttachId(); + void setErAttachId(const std::string& value); + + +protected: + std::string erId_; + bool erIdIsSet_; + std::string erAttachId_; + bool erAttachIdIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CFW_V1_MODEL_ER_H_ diff --git a/cfw/include/huaweicloud/cfw/v1/model/EipCountRespData.h b/cfw/include/huaweicloud/cfw/v1/model/EipCountRespData.h index bc6f1f16e..c74378f84 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/EipCountRespData.h +++ b/cfw/include/huaweicloud/cfw/v1/model/EipCountRespData.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT EipCountRespData /// EipCountRespData members /// - /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用查询防火墙实例接口获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。具体可参考APIExlorer和帮助中心FAQ。 + /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。 /// std::string getObjectId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/EipOperateProtectReq.h b/cfw/include/huaweicloud/cfw/v1/model/EipOperateProtectReq.h index 1e54524a9..4a1f70f34 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/EipOperateProtectReq.h +++ b/cfw/include/huaweicloud/cfw/v1/model/EipOperateProtectReq.h @@ -41,7 +41,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT EipOperateProtectReq /// EipOperateProtectReq members /// - /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用查询防火墙实例接口获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。具体可参考APIExlorer和帮助中心FAQ。 + /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。 /// std::string getObjectId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/EipResource.h b/cfw/include/huaweicloud/cfw/v1/model/EipResource.h index b571ede61..61114ab77 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/EipResource.h +++ b/cfw/include/huaweicloud/cfw/v1/model/EipResource.h @@ -129,7 +129,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT EipResource void setFwInstanceName(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)。 /// std::string getFwInstanceId() const; @@ -147,7 +147,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT EipResource void setFwEnterpriseProjectId(const std::string& value); /// - /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用查询防火墙实例接口获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。具体可参考APIExlorer和帮助中心FAQ。 + /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。 /// std::string getObjectId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ErInstance.h b/cfw/include/huaweicloud/cfw/v1/model/ErInstance.h index 73cbb3ffe..2411580e5 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ErInstance.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ErInstance.h @@ -92,6 +92,15 @@ class HUAWEICLOUD_CFW_V1_EXPORT ErInstance void unsetenableIpv6(); void setEnableIpv6(const std::string& value); + /// + /// 连接id + /// + + std::string getAttachmentId() const; + bool attachmentIdIsSet() const; + void unsetattachmentId(); + void setAttachmentId(const std::string& value); + protected: std::string id_; @@ -106,6 +115,8 @@ class HUAWEICLOUD_CFW_V1_EXPORT ErInstance bool projectIdIsSet_; std::string enableIpv6_; bool enableIpv6IsSet_; + std::string attachmentId_; + bool attachmentIdIsSet_; }; diff --git a/cfw/include/huaweicloud/cfw/v1/model/FirewallInstanceVO.h b/cfw/include/huaweicloud/cfw/v1/model/FirewallInstanceVO.h index 3cf3218a4..31bccc9a6 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/FirewallInstanceVO.h +++ b/cfw/include/huaweicloud/cfw/v1/model/FirewallInstanceVO.h @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT FirewallInstanceVO /// FirewallInstanceVO members /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/Flavor.h b/cfw/include/huaweicloud/cfw/v1/model/Flavor.h index 1526205a5..e0fa9f1f2 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/Flavor.h +++ b/cfw/include/huaweicloud/cfw/v1/model/Flavor.h @@ -82,51 +82,6 @@ class HUAWEICLOUD_CFW_V1_EXPORT Flavor void unsetlogStorage(); void setLogStorage(int32_t value); - /// - /// 目前的会话数 - /// - - int32_t getSessionConcurrent() const; - bool sessionConcurrentIsSet() const; - void unsetsessionConcurrent(); - void setSessionConcurrent(int32_t value); - - /// - /// 创建会话数 - /// - - int32_t getSessionCreate() const; - bool sessionCreateIsSet() const; - void unsetsessionCreate(); - void setSessionCreate(int32_t value); - - /// - /// 总计规则数 - /// - - int32_t getTotalRuleCount() const; - bool totalRuleCountIsSet() const; - void unsettotalRuleCount(); - void setTotalRuleCount(int32_t value); - - /// - /// 已使用规则数 - /// - - int32_t getUsedRuleCount() const; - bool usedRuleCountIsSet() const; - void unsetusedRuleCount(); - void setUsedRuleCount(int32_t value); - - /// - /// vpc间带宽 - /// - - int32_t getVpcBandwith() const; - bool vpcBandwithIsSet() const; - void unsetvpcBandwith(); - void setVpcBandwith(int32_t value); - /// /// 默认防火墙带宽 /// @@ -175,16 +130,6 @@ class HUAWEICLOUD_CFW_V1_EXPORT Flavor bool bandwidthIsSet_; int32_t logStorage_; bool logStorageIsSet_; - int32_t sessionConcurrent_; - bool sessionConcurrentIsSet_; - int32_t sessionCreate_; - bool sessionCreateIsSet_; - int32_t totalRuleCount_; - bool totalRuleCountIsSet_; - int32_t usedRuleCount_; - bool usedRuleCountIsSet_; - int32_t vpcBandwith_; - bool vpcBandwithIsSet_; int32_t defaultBandwidth_; bool defaultBandwidthIsSet_; int32_t defaultEipCount_; diff --git a/cfw/include/huaweicloud/cfw/v1/model/GetEastWestFirewallResponseBody.h b/cfw/include/huaweicloud/cfw/v1/model/GetEastWestFirewallResponseBody.h index 00b36a52c..5372662da 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/GetEastWestFirewallResponseBody.h +++ b/cfw/include/huaweicloud/cfw/v1/model/GetEastWestFirewallResponseBody.h @@ -44,7 +44,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT GetEastWestFirewallResponseBody /// GetEastWestFirewallResponseBody members /// - /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用查询防火墙实例接口获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。具体可参考APIExlorer和帮助中心FAQ。 + /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。 /// std::string getObjectId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/GetFirewallInstanceResponseRecord.h b/cfw/include/huaweicloud/cfw/v1/model/GetFirewallInstanceResponseRecord.h index a3110619d..7730260c4 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/GetFirewallInstanceResponseRecord.h +++ b/cfw/include/huaweicloud/cfw/v1/model/GetFirewallInstanceResponseRecord.h @@ -44,7 +44,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT GetFirewallInstanceResponseRecord /// GetFirewallInstanceResponseRecord members /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)。 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/RuleProfileDto.h b/cfw/include/huaweicloud/cfw/v1/model/HostHeaderInfo.h similarity index 61% rename from cfw/include/huaweicloud/cfw/v1/model/RuleProfileDto.h rename to cfw/include/huaweicloud/cfw/v1/model/HostHeaderInfo.h index e8b46c088..3a6778ceb 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/RuleProfileDto.h +++ b/cfw/include/huaweicloud/cfw/v1/model/HostHeaderInfo.h @@ -1,6 +1,6 @@ -#ifndef HUAWEICLOUD_SDK_CFW_V1_MODEL_RuleProfileDto_H_ -#define HUAWEICLOUD_SDK_CFW_V1_MODEL_RuleProfileDto_H_ +#ifndef HUAWEICLOUD_SDK_CFW_V1_MODEL_HostHeaderInfo_H_ +#define HUAWEICLOUD_SDK_CFW_V1_MODEL_HostHeaderInfo_H_ #include @@ -22,12 +22,12 @@ using namespace HuaweiCloud::Sdk::Core::Http; /// /// /// -class HUAWEICLOUD_CFW_V1_EXPORT RuleProfileDto +class HUAWEICLOUD_CFW_V1_EXPORT HostHeaderInfo : public ModelBase { public: - RuleProfileDto(); - virtual ~RuleProfileDto(); + HostHeaderInfo(); + virtual ~HostHeaderInfo(); ///////////////////////////////////////////// /// ModelBase overrides @@ -36,21 +36,21 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleProfileDto web::json::value toJson() const override; bool fromJson(const web::json::value& json) override; ///////////////////////////////////////////// - /// RuleProfileDto members + /// HostHeaderInfo members /// - /// 域名url + /// 主机 /// - std::string getUrl() const; - bool urlIsSet() const; - void unseturl(); - void setUrl(const std::string& value); + std::string getHost() const; + bool hostIsSet() const; + void unsethost(); + void setHost(const std::string& value); protected: - std::string url_; - bool urlIsSet_; + std::string host_; + bool hostIsSet_; }; @@ -61,4 +61,4 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleProfileDto } } -#endif // HUAWEICLOUD_SDK_CFW_V1_MODEL_RuleProfileDto_H_ +#endif // HUAWEICLOUD_SDK_CFW_V1_MODEL_HostHeaderInfo_H_ diff --git a/cfw/include/huaweicloud/cfw/v1/model/HttpQueryCaptureTaskResponseData.h b/cfw/include/huaweicloud/cfw/v1/model/HttpQueryCaptureTaskResponseData.h new file mode 100644 index 000000000..f82bedc0c --- /dev/null +++ b/cfw/include/huaweicloud/cfw/v1/model/HttpQueryCaptureTaskResponseData.h @@ -0,0 +1,121 @@ + +#ifndef HUAWEICLOUD_SDK_CFW_V1_MODEL_HttpQueryCaptureTaskResponseData_H_ +#define HUAWEICLOUD_SDK_CFW_V1_MODEL_HttpQueryCaptureTaskResponseData_H_ + + +#include + +#include +#include +#include + +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_CFW_V1_EXPORT HttpQueryCaptureTaskResponseData + : public ModelBase +{ +public: + HttpQueryCaptureTaskResponseData(); + virtual ~HttpQueryCaptureTaskResponseData(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// HttpQueryCaptureTaskResponseData members + + /// + /// 每页显示个数,范围为1-1024 + /// + + int32_t getLimit() const; + bool limitIsSet() const; + void unsetlimit(); + void setLimit(int32_t value); + + /// + /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。 + /// + + std::string getObjectId() const; + bool objectIdIsSet() const; + void unsetobjectId(); + void setObjectId(const std::string& value); + + /// + /// 偏移量:指定返回记录的开始位置,必须为数字,取值范围为大于或等于0,默认0 + /// + + int32_t getOffset() const; + bool offsetIsSet() const; + void unsetoffset(); + void setOffset(int32_t value); + + /// + /// 租户project_id + /// + + std::string getProjectId() const; + bool projectIdIsSet() const; + void unsetprojectId(); + void setProjectId(const std::string& value); + + /// + /// 抓包任务总数 + /// + + int64_t getTotal() const; + bool totalIsSet() const; + void unsettotal(); + void setTotal(int64_t value); + + /// + /// 抓包任务列表 + /// + + std::vector& getRecords(); + bool recordsIsSet() const; + void unsetrecords(); + void setRecords(const std::vector& value); + + +protected: + int32_t limit_; + bool limitIsSet_; + std::string objectId_; + bool objectIdIsSet_; + int32_t offset_; + bool offsetIsSet_; + std::string projectId_; + bool projectIdIsSet_; + int64_t total_; + bool totalIsSet_; + std::vector records_; + bool recordsIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CFW_V1_MODEL_HttpQueryCaptureTaskResponseData_H_ diff --git a/cfw/include/huaweicloud/cfw/v1/model/HttpQueryCfwAccessControllerLogsResponseDTO_data_records.h b/cfw/include/huaweicloud/cfw/v1/model/HttpQueryCfwAccessControllerLogsResponseDTO_data_records.h index 56e035492..43af3391d 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/HttpQueryCfwAccessControllerLogsResponseDTO_data_records.h +++ b/cfw/include/huaweicloud/cfw/v1/model/HttpQueryCfwAccessControllerLogsResponseDTO_data_records.h @@ -66,7 +66,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT HttpQueryCfwAccessControllerLogsResponseDTO_dat void setRuleId(const std::string& value); /// - /// 命中时间 + /// 命中时间,以毫秒为单位的时间戳,如1718936272648 /// int64_t getHitTime() const; @@ -182,6 +182,78 @@ class HUAWEICLOUD_CFW_V1_EXPORT HttpQueryCfwAccessControllerLogsResponseDTO_dat void unsetdstHost(); void setDstHost(const std::string& value); + /// + /// 源省份id + /// + + std::string getSrcProvinceId() const; + bool srcProvinceIdIsSet() const; + void unsetsrcProvinceId(); + void setSrcProvinceId(const std::string& value); + + /// + /// 源省份名称 + /// + + std::string getSrcProvinceName() const; + bool srcProvinceNameIsSet() const; + void unsetsrcProvinceName(); + void setSrcProvinceName(const std::string& value); + + /// + /// 源城市id + /// + + std::string getSrcCityId() const; + bool srcCityIdIsSet() const; + void unsetsrcCityId(); + void setSrcCityId(const std::string& value); + + /// + /// 源城市名称 + /// + + std::string getSrcCityName() const; + bool srcCityNameIsSet() const; + void unsetsrcCityName(); + void setSrcCityName(const std::string& value); + + /// + /// 目的省份id + /// + + std::string getDstProvinceId() const; + bool dstProvinceIdIsSet() const; + void unsetdstProvinceId(); + void setDstProvinceId(const std::string& value); + + /// + /// 目的省份名称 + /// + + std::string getDstProvinceName() const; + bool dstProvinceNameIsSet() const; + void unsetdstProvinceName(); + void setDstProvinceName(const std::string& value); + + /// + /// 目的城市id + /// + + std::string getDstCityId() const; + bool dstCityIdIsSet() const; + void unsetdstCityId(); + void setDstCityId(const std::string& value); + + /// + /// 目的城市名称 + /// + + std::string getDstCityName() const; + bool dstCityNameIsSet() const; + void unsetdstCityName(); + void setDstCityName(const std::string& value); + protected: std::string action_; @@ -216,6 +288,22 @@ class HUAWEICLOUD_CFW_V1_EXPORT HttpQueryCfwAccessControllerLogsResponseDTO_dat bool appIsSet_; std::string dstHost_; bool dstHostIsSet_; + std::string srcProvinceId_; + bool srcProvinceIdIsSet_; + std::string srcProvinceName_; + bool srcProvinceNameIsSet_; + std::string srcCityId_; + bool srcCityIdIsSet_; + std::string srcCityName_; + bool srcCityNameIsSet_; + std::string dstProvinceId_; + bool dstProvinceIdIsSet_; + std::string dstProvinceName_; + bool dstProvinceNameIsSet_; + std::string dstCityId_; + bool dstCityIdIsSet_; + std::string dstCityName_; + bool dstCityNameIsSet_; }; diff --git a/cfw/include/huaweicloud/cfw/v1/model/HttpQueryCfwAttackLogsResponseDTO_data_records.h b/cfw/include/huaweicloud/cfw/v1/model/HttpQueryCfwAttackLogsResponseDTO_data_records.h index c47aeff50..3e57ccf62 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/HttpQueryCfwAttackLogsResponseDTO_data_records.h +++ b/cfw/include/huaweicloud/cfw/v1/model/HttpQueryCfwAttackLogsResponseDTO_data_records.h @@ -59,7 +59,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT HttpQueryCfwAttackLogsResponseDTO_data_records void setAction(const std::string& value); /// - /// 事件时间 + /// 事件时间,以毫秒为单位的时间戳,如1718936272648 /// int64_t getEventTime() const; @@ -122,13 +122,13 @@ class HUAWEICLOUD_CFW_V1_EXPORT HttpQueryCfwAttackLogsResponseDTO_data_records void setAttackRuleId(const std::string& value); /// - /// 命中时间 + /// 命中时间,以毫秒为单位的时间戳,如1718936272648 /// - int32_t getHitTime() const; + int64_t getHitTime() const; bool hitTimeIsSet() const; void unsethitTime(); - void setHitTime(int32_t value); + void setHitTime(int64_t value); /// /// 日志ID @@ -211,15 +211,6 @@ class HUAWEICLOUD_CFW_V1_EXPORT HttpQueryCfwAttackLogsResponseDTO_data_records void unsetpacketMessages(); void setPacketMessages(const std::vector& value); - /// - /// 目标主机 - /// - - std::string getDstHost() const; - bool dstHostIsSet() const; - void unsetdstHost(); - void setDstHost(const std::string& value); - /// /// 源区域id /// @@ -256,6 +247,78 @@ class HUAWEICLOUD_CFW_V1_EXPORT HttpQueryCfwAttackLogsResponseDTO_data_records void unsetdstRegionName(); void setDstRegionName(const std::string& value); + /// + /// 源省份id + /// + + std::string getSrcProvinceId() const; + bool srcProvinceIdIsSet() const; + void unsetsrcProvinceId(); + void setSrcProvinceId(const std::string& value); + + /// + /// 源省份名称 + /// + + std::string getSrcProvinceName() const; + bool srcProvinceNameIsSet() const; + void unsetsrcProvinceName(); + void setSrcProvinceName(const std::string& value); + + /// + /// 源城市id + /// + + std::string getSrcCityId() const; + bool srcCityIdIsSet() const; + void unsetsrcCityId(); + void setSrcCityId(const std::string& value); + + /// + /// 源城市名称 + /// + + std::string getSrcCityName() const; + bool srcCityNameIsSet() const; + void unsetsrcCityName(); + void setSrcCityName(const std::string& value); + + /// + /// 目的省份id + /// + + std::string getDstProvinceId() const; + bool dstProvinceIdIsSet() const; + void unsetdstProvinceId(); + void setDstProvinceId(const std::string& value); + + /// + /// 目的省份名称 + /// + + std::string getDstProvinceName() const; + bool dstProvinceNameIsSet() const; + void unsetdstProvinceName(); + void setDstProvinceName(const std::string& value); + + /// + /// 目的城市id + /// + + std::string getDstCityId() const; + bool dstCityIdIsSet() const; + void unsetdstCityId(); + void setDstCityId(const std::string& value); + + /// + /// 目的城市名称 + /// + + std::string getDstCityName() const; + bool dstCityNameIsSet() const; + void unsetdstCityName(); + void setDstCityName(const std::string& value); + protected: std::string direction_; @@ -276,7 +339,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT HttpQueryCfwAttackLogsResponseDTO_data_records bool packetLengthIsSet_; std::string attackRuleId_; bool attackRuleIdIsSet_; - int32_t hitTime_; + int64_t hitTime_; bool hitTimeIsSet_; std::string logId_; bool logIdIsSet_; @@ -296,8 +359,6 @@ class HUAWEICLOUD_CFW_V1_EXPORT HttpQueryCfwAttackLogsResponseDTO_data_records bool appIsSet_; std::vector packetMessages_; bool packetMessagesIsSet_; - std::string dstHost_; - bool dstHostIsSet_; std::string srcRegionId_; bool srcRegionIdIsSet_; std::string srcRegionName_; @@ -306,6 +367,22 @@ class HUAWEICLOUD_CFW_V1_EXPORT HttpQueryCfwAttackLogsResponseDTO_data_records bool dstRegionIdIsSet_; std::string dstRegionName_; bool dstRegionNameIsSet_; + std::string srcProvinceId_; + bool srcProvinceIdIsSet_; + std::string srcProvinceName_; + bool srcProvinceNameIsSet_; + std::string srcCityId_; + bool srcCityIdIsSet_; + std::string srcCityName_; + bool srcCityNameIsSet_; + std::string dstProvinceId_; + bool dstProvinceIdIsSet_; + std::string dstProvinceName_; + bool dstProvinceNameIsSet_; + std::string dstCityId_; + bool dstCityIdIsSet_; + std::string dstCityName_; + bool dstCityNameIsSet_; }; diff --git a/cfw/include/huaweicloud/cfw/v1/model/HttpQueryCfwFlowLogsResponseDTO_data_records.h b/cfw/include/huaweicloud/cfw/v1/model/HttpQueryCfwFlowLogsResponseDTO_data_records.h index 43ddaa6b3..f5907baae 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/HttpQueryCfwFlowLogsResponseDTO_data_records.h +++ b/cfw/include/huaweicloud/cfw/v1/model/HttpQueryCfwFlowLogsResponseDTO_data_records.h @@ -66,7 +66,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT HttpQueryCfwFlowLogsResponseDTO_data_records void setPackets(int32_t value); /// - /// 开始时间 + /// 开始时间,以毫秒为单位的时间戳,如1718936272648 /// int64_t getStartTime() const; @@ -75,7 +75,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT HttpQueryCfwFlowLogsResponseDTO_data_records void setStartTime(int64_t value); /// - /// 结束时间 + /// 结束时间,以毫秒为单位的时间戳,如1718936272648 /// int64_t getEndTime() const; @@ -191,6 +191,78 @@ class HUAWEICLOUD_CFW_V1_EXPORT HttpQueryCfwFlowLogsResponseDTO_data_records void unsetsrcRegionName(); void setSrcRegionName(const std::string& value); + /// + /// 目的省份id + /// + + std::string getDstProvinceId() const; + bool dstProvinceIdIsSet() const; + void unsetdstProvinceId(); + void setDstProvinceId(const std::string& value); + + /// + /// 目的省份名称 + /// + + std::string getDstProvinceName() const; + bool dstProvinceNameIsSet() const; + void unsetdstProvinceName(); + void setDstProvinceName(const std::string& value); + + /// + /// 目的城市id + /// + + std::string getDstCityId() const; + bool dstCityIdIsSet() const; + void unsetdstCityId(); + void setDstCityId(const std::string& value); + + /// + /// 目的城市名称 + /// + + std::string getDstCityName() const; + bool dstCityNameIsSet() const; + void unsetdstCityName(); + void setDstCityName(const std::string& value); + + /// + /// 源省份id + /// + + std::string getSrcProvinceId() const; + bool srcProvinceIdIsSet() const; + void unsetsrcProvinceId(); + void setSrcProvinceId(const std::string& value); + + /// + /// 源省份名称 + /// + + std::string getSrcProvinceName() const; + bool srcProvinceNameIsSet() const; + void unsetsrcProvinceName(); + void setSrcProvinceName(const std::string& value); + + /// + /// 源城市id + /// + + std::string getSrcCityId() const; + bool srcCityIdIsSet() const; + void unsetsrcCityId(); + void setSrcCityId(const std::string& value); + + /// + /// 源城市名称 + /// + + std::string getSrcCityName() const; + bool srcCityNameIsSet() const; + void unsetsrcCityName(); + void setSrcCityName(const std::string& value); + protected: double bytes_; @@ -227,6 +299,22 @@ class HUAWEICLOUD_CFW_V1_EXPORT HttpQueryCfwFlowLogsResponseDTO_data_records bool srcRegionIdIsSet_; std::string srcRegionName_; bool srcRegionNameIsSet_; + std::string dstProvinceId_; + bool dstProvinceIdIsSet_; + std::string dstProvinceName_; + bool dstProvinceNameIsSet_; + std::string dstCityId_; + bool dstCityIdIsSet_; + std::string dstCityName_; + bool dstCityNameIsSet_; + std::string srcProvinceId_; + bool srcProvinceIdIsSet_; + std::string srcProvinceName_; + bool srcProvinceNameIsSet_; + std::string srcCityId_; + bool srcCityIdIsSet_; + std::string srcCityName_; + bool srcCityNameIsSet_; }; diff --git a/cfw/include/huaweicloud/cfw/v1/model/IpsProtectDTO.h b/cfw/include/huaweicloud/cfw/v1/model/IpsProtectDTO.h index ea591c8a6..8f98f6974 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/IpsProtectDTO.h +++ b/cfw/include/huaweicloud/cfw/v1/model/IpsProtectDTO.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT IpsProtectDTO /// IpsProtectDTO members /// - /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用查询防火墙实例接口获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。具体可参考APIExlorer和帮助中心FAQ。 + /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。 /// std::string getObjectId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/IpsSwitchDTO.h b/cfw/include/huaweicloud/cfw/v1/model/IpsSwitchDTO.h index 283787e32..e6a20c73d 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/IpsSwitchDTO.h +++ b/cfw/include/huaweicloud/cfw/v1/model/IpsSwitchDTO.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT IpsSwitchDTO /// IpsSwitchDTO members /// - /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用查询防火墙实例接口获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。具体可参考APIExlorer和帮助中心FAQ。 + /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。 /// std::string getObjectId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListAccessControlLogsRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ListAccessControlLogsRequest.h index 8d05fa78a..783f17b41 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ListAccessControlLogsRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ListAccessControlLogsRequest.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAccessControlLogsRequest /// ListAccessControlLogsRequest members /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)。 /// std::string getFwInstanceId() const; @@ -57,7 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAccessControlLogsRequest void setRuleId(const std::string& value); /// - /// 开始时间 + /// 开始时间,以毫秒为单位的时间戳,如1718936272648 /// int64_t getStartTime() const; @@ -66,7 +66,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAccessControlLogsRequest void setStartTime(int64_t value); /// - /// 结束时间 + /// 结束时间,以毫秒为单位的时间戳,如1718936272648 /// int64_t getEndTime() const; @@ -111,7 +111,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAccessControlLogsRequest void setDstPort(int32_t value); /// - /// 协议 + /// 协议类型,包含TCP, UDP,ICMP,ICMPV6等。 /// std::string getProtocol() const; @@ -129,7 +129,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAccessControlLogsRequest void setApp(const std::string& value); /// - /// 文档ID,第一页为空,其他页不为空 + /// 文档ID,第一页为空,其他页不为空,其他页可取上一次查询最后一条数据的log_id /// std::string getLogId() const; @@ -138,7 +138,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAccessControlLogsRequest void setLogId(const std::string& value); /// - /// 日期,第一页为空,其他页不为空 + /// 下个日期,当是第一页时为空,不是第一页时不为空,其他页可取上一次查询最后一条数据的start_time /// int32_t getNextDate() const; @@ -147,7 +147,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAccessControlLogsRequest void setNextDate(int32_t value); /// - /// 偏移量:指定返回记录的开始位置,必须为数字,取值范围为大于或等于0,默认0 + /// 偏移量:指定返回记录的开始位置,必须为数字,取值范围为大于0,首页时为空,非首页时不为空 /// int32_t getOffset() const; @@ -165,7 +165,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAccessControlLogsRequest void setLimit(int32_t value); /// - /// 日志类型 + /// 日志类型包括:internet,vpc,nat /// std::string getLogType() const; @@ -201,7 +201,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAccessControlLogsRequest void setRuleName(const std::string& value); /// - /// 动作0:permit,1:deny + /// 动作包含permit,deny /// std::string getAction() const; @@ -227,6 +227,42 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAccessControlLogsRequest void unsetdstRegionName(); void setDstRegionName(const std::string& value); + /// + /// 源省份名称 + /// + + std::string getSrcProvinceName() const; + bool srcProvinceNameIsSet() const; + void unsetsrcProvinceName(); + void setSrcProvinceName(const std::string& value); + + /// + /// 目的省份名称 + /// + + std::string getDstProvinceName() const; + bool dstProvinceNameIsSet() const; + void unsetdstProvinceName(); + void setDstProvinceName(const std::string& value); + + /// + /// 源城市名称 + /// + + std::string getSrcCityName() const; + bool srcCityNameIsSet() const; + void unsetsrcCityName(); + void setSrcCityName(const std::string& value); + + /// + /// 目的城市名称 + /// + + std::string getDstCityName() const; + bool dstCityNameIsSet() const; + void unsetdstCityName(); + void setDstCityName(const std::string& value); + protected: std::string fwInstanceId_; @@ -271,6 +307,14 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAccessControlLogsRequest bool srcRegionNameIsSet_; std::string dstRegionName_; bool dstRegionNameIsSet_; + std::string srcProvinceName_; + bool srcProvinceNameIsSet_; + std::string dstProvinceName_; + bool dstProvinceNameIsSet_; + std::string srcCityName_; + bool srcCityNameIsSet_; + std::string dstCityName_; + bool dstCityNameIsSet_; #ifdef RTTR_FLAG RTTR_ENABLE() diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListAclRuleHitCountRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ListAclRuleHitCountRequest.h index 85632fc85..9a8e0a29a 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ListAclRuleHitCountRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ListAclRuleHitCountRequest.h @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAclRuleHitCountRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListAclRulesRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ListAclRulesRequest.h index 2a802ecad..72941df64 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ListAclRulesRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ListAclRulesRequest.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAclRulesRequest /// ListAclRulesRequest members /// - /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用查询防火墙实例接口获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。具体可参考APIExlorer和帮助中心FAQ。 + /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。 /// std::string getObjectId() const; @@ -56,15 +56,6 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAclRulesRequest void unsettype(); void setType(int32_t value); - /// - /// 协议类型:TCP为6, UDP为17,ICMP为1,ICMPV6为58,ANY为-1 - /// - - int32_t getProtocol() const; - bool protocolIsSet() const; - void unsetprotocol(); - void setProtocol(int32_t value); - /// /// ip地址 /// @@ -111,7 +102,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAclRulesRequest void setActionType(int32_t value); /// - /// 地址类型0 ipv4,1 ipv6,2 domain + /// 地址类型0 ipv4 /// int32_t getAddressType() const; @@ -147,7 +138,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAclRulesRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 /// std::string getFwInstanceId() const; @@ -206,8 +197,6 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAclRulesRequest bool objectIdIsSet_; int32_t type_; bool typeIsSet_; - int32_t protocol_; - bool protocolIsSet_; std::string ip_; bool ipIsSet_; std::string name_; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListAddressItemsRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ListAddressItemsRequest.h index 0edd4c687..d3f85e653 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ListAddressItemsRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ListAddressItemsRequest.h @@ -93,7 +93,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAddressItemsRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListAddressSetDetailRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ListAddressSetDetailRequest.h index ee5d94db0..1177e2bce 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ListAddressSetDetailRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ListAddressSetDetailRequest.h @@ -57,7 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAddressSetDetailRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListAddressSetsRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ListAddressSetsRequest.h index 98233ad9a..bd3a937b0 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ListAddressSetsRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ListAddressSetsRequest.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAddressSetsRequest /// ListAddressSetsRequest members /// - /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用查询防火墙实例接口获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。具体可参考APIExlorer和帮助中心FAQ。 + /// 互联网边界防护对象id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),type为0的为互联网边界防护对象id。 /// std::string getObjectId() const; @@ -102,7 +102,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAddressSetsRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListAttackLogsRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ListAttackLogsRequest.h index 355633f0d..6fbf07a7d 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ListAttackLogsRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ListAttackLogsRequest.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAttackLogsRequest /// ListAttackLogsRequest members /// - /// 开始时间 + /// 开始时间,以毫秒为单位的时间戳,如1718936272648 /// int64_t getStartTime() const; @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAttackLogsRequest void setStartTime(int64_t value); /// - /// 结束时间 + /// 结束时间,以毫秒为单位的时间戳,如1718936272648 /// int64_t getEndTime() const; @@ -93,7 +93,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAttackLogsRequest void setDstPort(int32_t value); /// - /// 协议类型:TCP为6, UDP为17,ICMP为1,ICMPV6为58,ANY为-1,手动类型不为空,自动类型为空 + /// 协议类型,包含TCP, UDP,ICMP,ICMPV6等。 /// std::string getProtocol() const; @@ -111,7 +111,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAttackLogsRequest void setApp(const std::string& value); /// - /// 日志ID,当是第一页时为空,不是第一页时不为空 + /// 文档ID,第一页为空,其他页不为空,其他页可取上一次查询最后一条数据的log_id /// std::string getLogId() const; @@ -120,7 +120,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAttackLogsRequest void setLogId(const std::string& value); /// - /// 下个日期,当是第一页时为空,不是第一页时不为空 + /// 下个日期,当是第一页时为空,不是第一页时不为空,其他页可取上一次查询最后一条数据的event_time /// int64_t getNextDate() const; @@ -129,7 +129,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAttackLogsRequest void setNextDate(int64_t value); /// - /// 偏移量:指定返回记录的开始位置,必须为数字,取值范围为大于或等于0,默认0 + /// 偏移量:指定返回记录的开始位置,必须为数字,取值范围为大于0,首页时为空,非首页时不为空 /// int32_t getOffset() const; @@ -147,7 +147,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAttackLogsRequest void setLimit(int32_t value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)。 /// std::string getFwInstanceId() const; @@ -156,7 +156,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAttackLogsRequest void setFwInstanceId(const std::string& value); /// - /// 动作0:permit,1:deny + /// 动作包含permit,deny /// std::string getAction() const; @@ -165,7 +165,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAttackLogsRequest void setAction(const std::string& value); /// - /// 方向0:外到内1:内到外 + /// 方向,包含in2out,out2in /// std::string getDirection() const; @@ -192,7 +192,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAttackLogsRequest void setAttackRule(const std::string& value); /// - /// 威胁等级 + /// 威胁等级,包括CRITICAL、HIGH、MEDIUM、LOW /// std::string getLevel() const; @@ -200,15 +200,6 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAttackLogsRequest void unsetlevel(); void setLevel(const std::string& value); - /// - /// 判断来源 - /// - - std::string getSource() const; - bool sourceIsSet() const; - void unsetsource(); - void setSource(const std::string& value); - /// /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 /// @@ -228,7 +219,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAttackLogsRequest void setDstHost(const std::string& value); /// - /// 日志类型 + /// 日志类型包括:internet,vpc,nat /// std::string getLogType() const; @@ -263,6 +254,42 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAttackLogsRequest void unsetdstRegionName(); void setDstRegionName(const std::string& value); + /// + /// 源省份名称 + /// + + std::string getSrcProvinceName() const; + bool srcProvinceNameIsSet() const; + void unsetsrcProvinceName(); + void setSrcProvinceName(const std::string& value); + + /// + /// 目的省份名称 + /// + + std::string getDstProvinceName() const; + bool dstProvinceNameIsSet() const; + void unsetdstProvinceName(); + void setDstProvinceName(const std::string& value); + + /// + /// 源城市名称 + /// + + std::string getSrcCityName() const; + bool srcCityNameIsSet() const; + void unsetsrcCityName(); + void setSrcCityName(const std::string& value); + + /// + /// 目的城市名称 + /// + + std::string getDstCityName() const; + bool dstCityNameIsSet() const; + void unsetdstCityName(); + void setDstCityName(const std::string& value); + protected: int64_t startTime_; @@ -301,8 +328,6 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAttackLogsRequest bool attackRuleIsSet_; std::string level_; bool levelIsSet_; - std::string source_; - bool sourceIsSet_; std::string enterpriseProjectId_; bool enterpriseProjectIdIsSet_; std::string dstHost_; @@ -315,6 +340,14 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAttackLogsRequest bool srcRegionNameIsSet_; std::string dstRegionName_; bool dstRegionNameIsSet_; + std::string srcProvinceName_; + bool srcProvinceNameIsSet_; + std::string dstProvinceName_; + bool dstProvinceNameIsSet_; + std::string srcCityName_; + bool srcCityNameIsSet_; + std::string dstCityName_; + bool dstCityNameIsSet_; #ifdef RTTR_FLAG RTTR_ENABLE() diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListBlackWhiteListsRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ListBlackWhiteListsRequest.h index 555a218fd..cd616f040 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ListBlackWhiteListsRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ListBlackWhiteListsRequest.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListBlackWhiteListsRequest /// ListBlackWhiteListsRequest members /// - /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用查询防火墙实例接口获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。具体可参考APIExlorer和帮助中心FAQ。 + /// 互联网边界防护对象id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),type为0的为互联网边界防护对象id。 /// std::string getObjectId() const; @@ -57,7 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListBlackWhiteListsRequest void setListType(int32_t value); /// - /// IP地址类型0:ipv4,1:ipv6,2:domain + /// IP地址类型0:ipv4,1:ipv6 /// int32_t getAddressType() const; @@ -111,7 +111,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListBlackWhiteListsRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListCaptureResultRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ListCaptureResultRequest.h new file mode 100644 index 000000000..3f4900916 --- /dev/null +++ b/cfw/include/huaweicloud/cfw/v1/model/ListCaptureResultRequest.h @@ -0,0 +1,116 @@ + +#ifndef HUAWEICLOUD_SDK_CFW_V1_MODEL_ListCaptureResultRequest_H_ +#define HUAWEICLOUD_SDK_CFW_V1_MODEL_ListCaptureResultRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_CFW_V1_EXPORT ListCaptureResultRequest + : public ModelBase +{ +public: + ListCaptureResultRequest(); + virtual ~ListCaptureResultRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListCaptureResultRequest members + + /// + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// + + std::string getFwInstanceId() const; + bool fwInstanceIdIsSet() const; + void unsetfwInstanceId(); + void setFwInstanceId(const std::string& value); + + /// + /// 抓包任务id + /// + + std::string getTaskId() const; + bool taskIdIsSet() const; + void unsettaskId(); + void setTaskId(const std::string& value); + + /// + /// 是否指定公网ip下载,0:无限制,1:指定公网ip下载 + /// + + int32_t getType() const; + bool typeIsSet() const; + void unsettype(); + void setType(int32_t value); + + /// + /// 指定公网ip + /// + + std::vector& getIp(); + bool ipIsSet() const; + void unsetip(); + void setIp(const std::vector& value); + + /// + /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// + + std::string getEnterpriseProjectId() const; + bool enterpriseProjectIdIsSet() const; + void unsetenterpriseProjectId(); + void setEnterpriseProjectId(const std::string& value); + + +protected: + std::string fwInstanceId_; + bool fwInstanceIdIsSet_; + std::string taskId_; + bool taskIdIsSet_; + int32_t type_; + bool typeIsSet_; + std::vector ip_; + bool ipIsSet_; + std::string enterpriseProjectId_; + bool enterpriseProjectIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ListCaptureResultRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CFW_V1_MODEL_ListCaptureResultRequest_H_ diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListCaptureResultResponse.h b/cfw/include/huaweicloud/cfw/v1/model/ListCaptureResultResponse.h new file mode 100644 index 000000000..67954543d --- /dev/null +++ b/cfw/include/huaweicloud/cfw/v1/model/ListCaptureResultResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_CFW_V1_MODEL_ListCaptureResultResponse_H_ +#define HUAWEICLOUD_SDK_CFW_V1_MODEL_ListCaptureResultResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_CFW_V1_EXPORT ListCaptureResultResponse + : public ModelBase, public HttpResponse +{ +public: + ListCaptureResultResponse(); + virtual ~ListCaptureResultResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListCaptureResultResponse members + + /// + /// + /// + + CaptureResultUrlVO getData() const; + bool dataIsSet() const; + void unsetdata(); + void setData(const CaptureResultUrlVO& value); + + +protected: + CaptureResultUrlVO data_; + bool dataIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CFW_V1_MODEL_ListCaptureResultResponse_H_ diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListCaptureTaskRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ListCaptureTaskRequest.h new file mode 100644 index 000000000..08b6f1d6f --- /dev/null +++ b/cfw/include/huaweicloud/cfw/v1/model/ListCaptureTaskRequest.h @@ -0,0 +1,104 @@ + +#ifndef HUAWEICLOUD_SDK_CFW_V1_MODEL_ListCaptureTaskRequest_H_ +#define HUAWEICLOUD_SDK_CFW_V1_MODEL_ListCaptureTaskRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_CFW_V1_EXPORT ListCaptureTaskRequest + : public ModelBase +{ +public: + ListCaptureTaskRequest(); + virtual ~ListCaptureTaskRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListCaptureTaskRequest members + + /// + /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// + + std::string getEnterpriseProjectId() const; + bool enterpriseProjectIdIsSet() const; + void unsetenterpriseProjectId(); + void setEnterpriseProjectId(const std::string& value); + + /// + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// + + std::string getFwInstanceId() const; + bool fwInstanceIdIsSet() const; + void unsetfwInstanceId(); + void setFwInstanceId(const std::string& value); + + /// + /// 每页显示个数,范围为1-1024 + /// + + int32_t getLimit() const; + bool limitIsSet() const; + void unsetlimit(); + void setLimit(int32_t value); + + /// + /// 偏移量:指定返回记录的开始位置,必须为数字,取值范围为大于或等于0,默认0 + /// + + int32_t getOffset() const; + bool offsetIsSet() const; + void unsetoffset(); + void setOffset(int32_t value); + + +protected: + std::string enterpriseProjectId_; + bool enterpriseProjectIdIsSet_; + std::string fwInstanceId_; + bool fwInstanceIdIsSet_; + int32_t limit_; + bool limitIsSet_; + int32_t offset_; + bool offsetIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ListCaptureTaskRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CFW_V1_MODEL_ListCaptureTaskRequest_H_ diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListCaptureTaskResponse.h b/cfw/include/huaweicloud/cfw/v1/model/ListCaptureTaskResponse.h new file mode 100644 index 000000000..e646c7975 --- /dev/null +++ b/cfw/include/huaweicloud/cfw/v1/model/ListCaptureTaskResponse.h @@ -0,0 +1,68 @@ + +#ifndef HUAWEICLOUD_SDK_CFW_V1_MODEL_ListCaptureTaskResponse_H_ +#define HUAWEICLOUD_SDK_CFW_V1_MODEL_ListCaptureTaskResponse_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_CFW_V1_EXPORT ListCaptureTaskResponse + : public ModelBase, public HttpResponse +{ +public: + ListCaptureTaskResponse(); + virtual ~ListCaptureTaskResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListCaptureTaskResponse members + + /// + /// 查询抓包任务返回值。 + /// + + std::vector& getData(); + bool dataIsSet() const; + void unsetdata(); + void setData(const std::vector& value); + + +protected: + std::vector data_; + bool dataIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CFW_V1_MODEL_ListCaptureTaskResponse_H_ diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListDnsServersRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ListDnsServersRequest.h index 41711e1dd..931bbb55b 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ListDnsServersRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ListDnsServersRequest.h @@ -57,7 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListDnsServersRequest void setOffset(int32_t value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。若object_Id非空,默认返回object_Id对应墙的信息;填写时object_Id需要属于fw_instance_Id对应的墙。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)接口获得,默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。若object_Id非空,默认返回object_Id对应墙的信息;填写时object_Id需要属于fw_instance_Id对应的墙。 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListDomainParseDetailRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ListDomainParseDetailRequest.h index 31cb57101..46afdef0c 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ListDomainParseDetailRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ListDomainParseDetailRequest.h @@ -57,7 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListDomainParseDetailRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 /// std::string getFwInstanceId() const; @@ -66,13 +66,13 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListDomainParseDetailRequest void setFwInstanceId(const std::string& value); /// - /// 地址类型,0 ipv4,1 ipv6,2 domain + /// 地址类型,0 ipv4,1 ipv6 /// - std::string getAddressType() const; + int32_t getAddressType() const; bool addressTypeIsSet() const; void unsetaddressType(); - void setAddressType(const std::string& value); + void setAddressType(int32_t value); protected: @@ -82,7 +82,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListDomainParseDetailRequest bool enterpriseProjectIdIsSet_; std::string fwInstanceId_; bool fwInstanceIdIsSet_; - std::string addressType_; + int32_t addressType_; bool addressTypeIsSet_; #ifdef RTTR_FLAG diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListDomainSetsRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ListDomainSetsRequest.h index af63f3b68..ce99fd9ce 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ListDomainSetsRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ListDomainSetsRequest.h @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListDomainSetsRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 /// std::string getFwInstanceId() const; @@ -75,7 +75,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListDomainSetsRequest void setOffset(int32_t value); /// - /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用查询防火墙实例接口获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。具体可参考APIExlorer和帮助中心FAQ。 + /// 互联网边界防护对象id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),type为0的为互联网边界防护对象id。 /// std::string getObjectId() const; @@ -93,7 +93,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListDomainSetsRequest void setKeyWord(const std::string& value); /// - /// 域名组类型,0表示URL过滤,1表示地址解析 + /// 域名组类型,0表示应用域名组,1表示网络域名组 /// int32_t getDomainSetType() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListDomainsRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ListDomainsRequest.h index 9ff3f29ef..7546d753f 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ListDomainsRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ListDomainsRequest.h @@ -57,7 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListDomainsRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 /// std::string getFwInstanceId() const; @@ -93,25 +93,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListDomainsRequest void setDomainName(const std::string& value); /// - /// 描述 - /// - - std::string getDescription() const; - bool descriptionIsSet() const; - void unsetdescription(); - void setDescription(const std::string& value); - - /// - /// 域名组id - /// - - std::string getSetId() const; - bool setIdIsSet() const; - void unsetsetId(); - void setSetId(const std::string& value); - - /// - /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用查询防火墙实例接口获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。具体可参考APIExlorer和帮助中心FAQ。 + /// 互联网边界防护对象id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),type为0的为互联网边界防护对象id。 /// std::string getObjectId() const; @@ -133,10 +115,6 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListDomainsRequest bool offsetIsSet_; std::string domainName_; bool domainNameIsSet_; - std::string description_; - bool descriptionIsSet_; - std::string setId_; - bool setIdIsSet_; std::string objectId_; bool objectIdIsSet_; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListEastWestFirewallRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ListEastWestFirewallRequest.h index 284093088..d13fbd2bd 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ListEastWestFirewallRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ListEastWestFirewallRequest.h @@ -66,7 +66,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListEastWestFirewallRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListEipCountRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ListEipCountRequest.h index 86994bce4..b01c65aca 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ListEipCountRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ListEipCountRequest.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListEipCountRequest /// ListEipCountRequest members /// - /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用查询防火墙实例接口获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。具体可参考APIExlorer和帮助中心FAQ。 + /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。 /// std::string getObjectId() const; @@ -57,7 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListEipCountRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListEipsRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ListEipsRequest.h index 379e023f7..5e7ac214e 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ListEipsRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ListEipsRequest.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListEipsRequest /// ListEipsRequest members /// - /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用查询防火墙实例接口获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。具体可参考APIExlorer和帮助中心FAQ。 + /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。 /// std::string getObjectId() const; @@ -120,7 +120,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListEipsRequest void setAddressType(int32_t value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListFirewallDetailRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ListFirewallDetailRequest.h index 62f223ba2..21290bee1 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ListFirewallDetailRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ListFirewallDetailRequest.h @@ -75,7 +75,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListFirewallDetailRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListFlowLogsRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ListFlowLogsRequest.h index 52f1ded5b..5d06b0249 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ListFlowLogsRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ListFlowLogsRequest.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListFlowLogsRequest /// ListFlowLogsRequest members /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)。 /// std::string getFwInstanceId() const; @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListFlowLogsRequest void setFwInstanceId(const std::string& value); /// - /// 方向 + /// 方向,包含in2out,out2in /// std::string getDirection() const; @@ -57,7 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListFlowLogsRequest void setDirection(const std::string& value); /// - /// 日志类型 + /// 日志类型包括:internet,vpc,nat /// std::string getLogType() const; @@ -66,7 +66,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListFlowLogsRequest void setLogType(const std::string& value); /// - /// 开始时间 + /// 开始时间,以毫秒为单位的时间戳,如1718936272648 /// int64_t getStartTime() const; @@ -75,7 +75,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListFlowLogsRequest void setStartTime(int64_t value); /// - /// 结束时间 + /// 结束时间,以毫秒为单位的时间戳,如1718936272648 /// int64_t getEndTime() const; @@ -120,7 +120,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListFlowLogsRequest void setDstPort(int32_t value); /// - /// 协议类型:TCP为6, UDP为17,ICMP为1,ICMPV6为58,ANY为-1,手动类型不为空,自动类型为空 + /// 协议类型,包含TCP, UDP,ICMP,ICMPV6等。 /// std::string getProtocol() const; @@ -138,7 +138,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListFlowLogsRequest void setApp(const std::string& value); /// - /// 文档ID,首页时为null,非首页时不为null + /// 文档ID,第一页为空,其他页不为空,其他页可取上一次查询最后一条数据的log_id /// std::string getLogId() const; @@ -147,7 +147,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListFlowLogsRequest void setLogId(const std::string& value); /// - /// 日期,首页时为null,非首页时不为null + /// 下个日期,当是第一页时为空,不是第一页时不为空,其他页可取上一次查询最后一条数据的start_time /// int64_t getNextDate() const; @@ -156,7 +156,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListFlowLogsRequest void setNextDate(int64_t value); /// - /// 偏移量:指定返回记录的开始位置,必须为数字,取值范围为大于或等于0,默认0 + /// 偏移量:指定返回记录的开始位置,必须为数字,取值范围为大于0,首页时为空,非首页时不为空 /// int32_t getOffset() const; @@ -209,6 +209,42 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListFlowLogsRequest void unsetdstRegionName(); void setDstRegionName(const std::string& value); + /// + /// 源省份名称 + /// + + std::string getSrcProvinceName() const; + bool srcProvinceNameIsSet() const; + void unsetsrcProvinceName(); + void setSrcProvinceName(const std::string& value); + + /// + /// 目的省份名称 + /// + + std::string getDstProvinceName() const; + bool dstProvinceNameIsSet() const; + void unsetdstProvinceName(); + void setDstProvinceName(const std::string& value); + + /// + /// 源城市名称 + /// + + std::string getSrcCityName() const; + bool srcCityNameIsSet() const; + void unsetsrcCityName(); + void setSrcCityName(const std::string& value); + + /// + /// 目的城市名称 + /// + + std::string getDstCityName() const; + bool dstCityNameIsSet() const; + void unsetdstCityName(); + void setDstCityName(const std::string& value); + protected: std::string fwInstanceId_; @@ -249,6 +285,14 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListFlowLogsRequest bool srcRegionNameIsSet_; std::string dstRegionName_; bool dstRegionNameIsSet_; + std::string srcProvinceName_; + bool srcProvinceNameIsSet_; + std::string dstProvinceName_; + bool dstProvinceNameIsSet_; + std::string srcCityName_; + bool srcCityNameIsSet_; + std::string dstCityName_; + bool dstCityNameIsSet_; #ifdef RTTR_FLAG RTTR_ENABLE() diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListIpsProtectModeRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ListIpsProtectModeRequest.h index edc4e4b81..33f3a56c1 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ListIpsProtectModeRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ListIpsProtectModeRequest.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListIpsProtectModeRequest /// ListIpsProtectModeRequest members /// - /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用查询防火墙实例接口获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。具体可参考APIExlorer和帮助中心FAQ。 + /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。 /// std::string getObjectId() const; @@ -57,7 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListIpsProtectModeRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListIpsSwitchStatusRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ListIpsSwitchStatusRequest.h index 048723ba9..1a9218c95 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ListIpsSwitchStatusRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ListIpsSwitchStatusRequest.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListIpsSwitchStatusRequest /// ListIpsSwitchStatusRequest members /// - /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用查询防火墙实例接口获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。具体可参考APIExlorer和帮助中心FAQ。 + /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。 /// std::string getObjectId() const; @@ -57,7 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListIpsSwitchStatusRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListLogConfigRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ListLogConfigRequest.h index 833d38920..2bb63cc76 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ListLogConfigRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ListLogConfigRequest.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListLogConfigRequest /// ListLogConfigRequest members /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)。 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListProtectedVpcsRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ListProtectedVpcsRequest.h index f334374eb..540e9c0f7 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ListProtectedVpcsRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ListProtectedVpcsRequest.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListProtectedVpcsRequest /// ListProtectedVpcsRequest members /// - /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用查询防火墙实例接口获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。具体可参考APIExlorer和帮助中心FAQ。 + /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。 /// std::string getObjectId() const; @@ -57,7 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListProtectedVpcsRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)获得,默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListProtectedVpcsResponse.h b/cfw/include/huaweicloud/cfw/v1/model/ListProtectedVpcsResponse.h index 135adcf45..d6fef242a 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ListProtectedVpcsResponse.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ListProtectedVpcsResponse.h @@ -9,7 +9,6 @@ #include #include -#include #include namespace HuaweiCloud { @@ -39,15 +38,6 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListProtectedVpcsResponse ///////////////////////////////////////////// /// ListProtectedVpcsResponse members - /// - /// 调用链id - /// - - std::string getTraceId() const; - bool traceIdIsSet() const; - void unsettraceId(); - void setTraceId(const std::string& value); - /// /// /// @@ -59,8 +49,6 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListProtectedVpcsResponse protected: - std::string traceId_; - bool traceIdIsSet_; VPCProtectsVo data_; bool dataIsSet_; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListRuleAclTagsRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ListRuleAclTagsRequest.h index a31620fd0..5dcadf3df 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ListRuleAclTagsRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ListRuleAclTagsRequest.h @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListRuleAclTagsRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListServiceItemsRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ListServiceItemsRequest.h index dbc7afdc6..b0431f7cd 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ListServiceItemsRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ListServiceItemsRequest.h @@ -84,7 +84,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListServiceItemsRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 /// std::string getFwInstanceId() const; @@ -93,7 +93,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListServiceItemsRequest void setFwInstanceId(const std::string& value); /// - /// 查询服务组类型,0表示自定义服务组,1表示预定义服务组 + /// 查询服务组类型,0表示自定义服务组,1表示预定义服务组。仅当set_id为预定义服务组id时生效 /// int32_t getQueryServiceSetType() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListServiceSetDetailRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ListServiceSetDetailRequest.h index 4a30755c4..8f27d8565 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ListServiceSetDetailRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ListServiceSetDetailRequest.h @@ -57,7 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListServiceSetDetailRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListServiceSetsRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ListServiceSetsRequest.h index 59ac83892..755087d52 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ListServiceSetsRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ListServiceSetsRequest.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListServiceSetsRequest /// ListServiceSetsRequest members /// - /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用查询防火墙实例接口获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。具体可参考APIExlorer和帮助中心FAQ。 + /// 互联网边界防护对象id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),type为0的为互联网边界防护对象id。 /// std::string getObjectId() const; @@ -84,7 +84,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListServiceSetsRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ProtectObjectVO.h b/cfw/include/huaweicloud/cfw/v1/model/ProtectObjectVO.h index b4e9c7c7f..afb0da32b 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ProtectObjectVO.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ProtectObjectVO.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ProtectObjectVO /// ProtectObjectVO members /// - /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用查询防火墙实例接口获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。具体可参考APIExlorer和帮助中心FAQ。 + /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。 /// std::string getObjectId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ResourceTag.h b/cfw/include/huaweicloud/cfw/v1/model/ResourceTag.h new file mode 100644 index 000000000..f2346f7f4 --- /dev/null +++ b/cfw/include/huaweicloud/cfw/v1/model/ResourceTag.h @@ -0,0 +1,86 @@ + +#ifndef HUAWEICLOUD_SDK_CFW_V1_MODEL_ResourceTag_H_ +#define HUAWEICLOUD_SDK_CFW_V1_MODEL_ResourceTag_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_CFW_V1_EXPORT ResourceTag + : public ModelBase +{ +public: + ResourceTag(); + virtual ~ResourceTag(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ResourceTag members + + /// + /// 键 + /// + + std::string getKey() const; + bool keyIsSet() const; + void unsetkey(); + void setKey(const std::string& value); + + /// + /// 值 + /// + + std::string getValue() const; + bool valueIsSet() const; + void unsetvalue(); + void setValue(const std::string& value); + + /// + /// 更新时间 + /// + + std::string getUpdateTime() const; + bool updateTimeIsSet() const; + void unsetupdateTime(); + void setUpdateTime(const std::string& value); + + +protected: + std::string key_; + bool keyIsSet_; + std::string value_; + bool valueIsSet_; + std::string updateTime_; + bool updateTimeIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CFW_V1_MODEL_ResourceTag_H_ diff --git a/cfw/include/huaweicloud/cfw/v1/model/RuleAclListResponseDTO_data.h b/cfw/include/huaweicloud/cfw/v1/model/RuleAclListResponseDTO_data.h index 0d59dfac4..ec112ecf5 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/RuleAclListResponseDTO_data.h +++ b/cfw/include/huaweicloud/cfw/v1/model/RuleAclListResponseDTO_data.h @@ -68,7 +68,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleAclListResponseDTO_data void setTotal(int32_t value); /// - /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用查询防火墙实例接口获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。具体可参考APIExlorer和帮助中心FAQ。 + /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。 /// std::string getObjectId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/RuleAclListResponseDTO_data_records.h b/cfw/include/huaweicloud/cfw/v1/model/RuleAclListResponseDTO_data_records.h index 9b706c60b..927ef432d 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/RuleAclListResponseDTO_data_records.h +++ b/cfw/include/huaweicloud/cfw/v1/model/RuleAclListResponseDTO_data_records.h @@ -9,11 +9,10 @@ #include #include -#include #include +#include #include -#include -#include +#include namespace HuaweiCloud { namespace Sdk { @@ -69,15 +68,6 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleAclListResponseDTO_data_records void unsetname(); void setName(const std::string& value); - /// - /// - /// - - OrderRuleAclDto getSequence() const; - bool sequenceIsSet() const; - void unsetsequence(); - void setSequence(const OrderRuleAclDto& value); - /// /// 规则方向0:外到内1:内到外 /// @@ -114,6 +104,24 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleAclListResponseDTO_data_records void unsetdescription(); void setDescription(const std::string& value); + /// + /// 长连接时长 + /// + + int64_t getLongConnectTime() const; + bool longConnectTimeIsSet() const; + void unsetlongConnectTime(); + void setLongConnectTime(int64_t value); + + /// + /// 长连接支持 + /// + + int32_t getLongConnectEnable() const; + bool longConnectEnableIsSet() const; + void unsetlongConnectEnable(); + void setLongConnectEnable(int32_t value); + /// /// 长连接时长小时 /// @@ -141,50 +149,32 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleAclListResponseDTO_data_records void unsetlongConnectTimeSecond(); void setLongConnectTimeSecond(int64_t value); - /// - /// 长连接时长 - /// - - int64_t getLongConnectTime() const; - bool longConnectTimeIsSet() const; - void unsetlongConnectTime(); - void setLongConnectTime(int64_t value); - - /// - /// 长连接支持 - /// - - int32_t getLongConnectEnable() const; - bool longConnectEnableIsSet() const; - void unsetlongConnectEnable(); - void setLongConnectEnable(int32_t value); - /// /// /// - RuleAddressDto getSource() const; + RuleAddressDtoForResponse getSource() const; bool sourceIsSet() const; void unsetsource(); - void setSource(const RuleAddressDto& value); + void setSource(const RuleAddressDtoForResponse& value); /// /// /// - RuleAddressDto getDestination() const; + RuleAddressDtoForResponse getDestination() const; bool destinationIsSet() const; void unsetdestination(); - void setDestination(const RuleAddressDto& value); + void setDestination(const RuleAddressDtoForResponse& value); /// /// /// - RuleServiceDto getService() const; + RuleServiceDtoForResponse getService() const; bool serviceIsSet() const; void unsetservice(); - void setService(const RuleServiceDto& value); + void setService(const RuleServiceDtoForResponse& value); /// /// 规则type,0:互联网规则,1:vpc规则,2:nat规则 @@ -230,8 +220,6 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleAclListResponseDTO_data_records bool addressTypeIsSet_; std::string name_; bool nameIsSet_; - OrderRuleAclDto sequence_; - bool sequenceIsSet_; int32_t direction_; bool directionIsSet_; int32_t actionType_; @@ -240,21 +228,21 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleAclListResponseDTO_data_records bool statusIsSet_; std::string description_; bool descriptionIsSet_; + int64_t longConnectTime_; + bool longConnectTimeIsSet_; + int32_t longConnectEnable_; + bool longConnectEnableIsSet_; int64_t longConnectTimeHour_; bool longConnectTimeHourIsSet_; int64_t longConnectTimeMinute_; bool longConnectTimeMinuteIsSet_; int64_t longConnectTimeSecond_; bool longConnectTimeSecondIsSet_; - int64_t longConnectTime_; - bool longConnectTimeIsSet_; - int32_t longConnectEnable_; - bool longConnectEnableIsSet_; - RuleAddressDto source_; + RuleAddressDtoForResponse source_; bool sourceIsSet_; - RuleAddressDto destination_; + RuleAddressDtoForResponse destination_; bool destinationIsSet_; - RuleServiceDto service_; + RuleServiceDtoForResponse service_; bool serviceIsSet_; int32_t type_; bool typeIsSet_; diff --git a/cfw/include/huaweicloud/cfw/v1/model/RuleAddressDtoForRequest.h b/cfw/include/huaweicloud/cfw/v1/model/RuleAddressDtoForRequest.h index f1e5543c6..c4896d857 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/RuleAddressDtoForRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/RuleAddressDtoForRequest.h @@ -157,6 +157,15 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleAddressDtoForRequest void unsetpredefinedGroup(); void setPredefinedGroup(const std::vector& value); + /// + /// 地址组列表 + /// + + std::vector& getAddressGroup(); + bool addressGroupIsSet() const; + void unsetaddressGroup(); + void setAddressGroup(const std::vector& value); + protected: int32_t type_; @@ -185,6 +194,8 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleAddressDtoForRequest bool addressSetTypeIsSet_; std::vector predefinedGroup_; bool predefinedGroupIsSet_; + std::vector addressGroup_; + bool addressGroupIsSet_; }; diff --git a/cfw/include/huaweicloud/cfw/v1/model/RuleAddressDtoForResponse.h b/cfw/include/huaweicloud/cfw/v1/model/RuleAddressDtoForResponse.h new file mode 100644 index 000000000..1999b5a24 --- /dev/null +++ b/cfw/include/huaweicloud/cfw/v1/model/RuleAddressDtoForResponse.h @@ -0,0 +1,210 @@ + +#ifndef HUAWEICLOUD_SDK_CFW_V1_MODEL_RuleAddressDtoForResponse_H_ +#define HUAWEICLOUD_SDK_CFW_V1_MODEL_RuleAddressDtoForResponse_H_ + + +#include + +#include +#include +#include + +#include +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 规则地址dto +/// +class HUAWEICLOUD_CFW_V1_EXPORT RuleAddressDtoForResponse + : public ModelBase +{ +public: + RuleAddressDtoForResponse(); + virtual ~RuleAddressDtoForResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// RuleAddressDtoForResponse members + + /// + /// 源类型0手工输入,1关联IP地址组,2域名,3地理位置,4域名组,5多对象,6域名组-DNS解析,7域名组-URL过滤。 + /// + + int32_t getType() const; + bool typeIsSet() const; + void unsettype(); + void setType(int32_t value); + + /// + /// 源类型0 ipv4,1 ipv6 + /// + + int32_t getAddressType() const; + bool addressTypeIsSet() const; + void unsetaddressType(); + void setAddressType(int32_t value); + + /// + /// 源IP,手动类型不能为空,自动及domain类型为空 + /// + + std::string getAddress() const; + bool addressIsSet() const; + void unsetaddress(); + void setAddress(const std::string& value); + + /// + /// 关联IP地址组ID,自动类型不能为空,手动类型合domain类型为空 + /// + + std::string getAddressSetId() const; + bool addressSetIdIsSet() const; + void unsetaddressSetId(); + void setAddressSetId(const std::string& value); + + /// + /// 地址组名称 + /// + + std::string getAddressSetName() const; + bool addressSetNameIsSet() const; + void unsetaddressSetName(); + void setAddressSetName(const std::string& value); + + /// + /// 域名地址名称,域名类型时不能为空,手动类型及自动类型时为空 + /// + + std::string getDomainAddressName() const; + bool domainAddressNameIsSet() const; + void unsetdomainAddressName(); + void setDomainAddressName(const std::string& value); + + /// + /// 规则region列表json值 + /// + + std::string getRegionListJson() const; + bool regionListJsonIsSet() const; + void unsetregionListJson(); + void setRegionListJson(const std::string& value); + + /// + /// 规则region列表 + /// + + std::vector& getRegionList(); + bool regionListIsSet() const; + void unsetregionList(); + void setRegionList(const std::vector& value); + + /// + /// 域名组id + /// + + std::string getDomainSetId() const; + bool domainSetIdIsSet() const; + void unsetdomainSetId(); + void setDomainSetId(const std::string& value); + + /// + /// 域名组名称 + /// + + std::string getDomainSetName() const; + bool domainSetNameIsSet() const; + void unsetdomainSetName(); + void setDomainSetName(const std::string& value); + + /// + /// IP地址列表 + /// + + std::vector& getIpAddress(); + bool ipAddressIsSet() const; + void unsetipAddress(); + void setIpAddress(const std::vector& value); + + /// + /// 地址组列表 + /// + + std::vector& getAddressGroup(); + bool addressGroupIsSet() const; + void unsetaddressGroup(); + void setAddressGroup(const std::vector& value); + + /// + /// 地址组名称列表 + /// + + std::vector& getAddressGroupNames(); + bool addressGroupNamesIsSet() const; + void unsetaddressGroupNames(); + void setAddressGroupNames(const std::vector& value); + + /// + /// 地址组类型,0表示自定义地址组,1表示WAF回源IP地址组,2表示DDoS回源IP地址组,3表示NAT64转换地址组 + /// + + int32_t getAddressSetType() const; + bool addressSetTypeIsSet() const; + void unsetaddressSetType(); + void setAddressSetType(int32_t value); + + +protected: + int32_t type_; + bool typeIsSet_; + int32_t addressType_; + bool addressTypeIsSet_; + std::string address_; + bool addressIsSet_; + std::string addressSetId_; + bool addressSetIdIsSet_; + std::string addressSetName_; + bool addressSetNameIsSet_; + std::string domainAddressName_; + bool domainAddressNameIsSet_; + std::string regionListJson_; + bool regionListJsonIsSet_; + std::vector regionList_; + bool regionListIsSet_; + std::string domainSetId_; + bool domainSetIdIsSet_; + std::string domainSetName_; + bool domainSetNameIsSet_; + std::vector ipAddress_; + bool ipAddressIsSet_; + std::vector addressGroup_; + bool addressGroupIsSet_; + std::vector addressGroupNames_; + bool addressGroupNamesIsSet_; + int32_t addressSetType_; + bool addressSetTypeIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CFW_V1_MODEL_RuleAddressDtoForResponse_H_ diff --git a/cfw/include/huaweicloud/cfw/v1/model/RuleServiceDto.h b/cfw/include/huaweicloud/cfw/v1/model/RuleServiceDto.h index 8bbb20b74..b93faf4cf 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/RuleServiceDto.h +++ b/cfw/include/huaweicloud/cfw/v1/model/RuleServiceDto.h @@ -9,9 +9,9 @@ #include #include +#include #include #include -#include #include namespace HuaweiCloud { @@ -135,10 +135,10 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleServiceDto /// 服务组名称列表 /// - std::vector& getServiceGroupNames(); + std::vector& getServiceGroupNames(); bool serviceGroupNamesIsSet() const; void unsetserviceGroupNames(); - void setServiceGroupNames(const std::vector& value); + void setServiceGroupNames(const std::vector& value); /// /// 服务组类型,0表示自定义服务组,1表示常用WEB服务,2表示常用远程登录和PING,3表示常用数据库 @@ -171,7 +171,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleServiceDto bool predefinedGroupIsSet_; std::vector serviceGroup_; bool serviceGroupIsSet_; - std::vector serviceGroupNames_; + std::vector serviceGroupNames_; bool serviceGroupNamesIsSet_; int32_t serviceSetType_; bool serviceSetTypeIsSet_; diff --git a/cfw/include/huaweicloud/cfw/v1/model/RuleServiceDtoForResponse.h b/cfw/include/huaweicloud/cfw/v1/model/RuleServiceDtoForResponse.h new file mode 100644 index 000000000..250f0bf1e --- /dev/null +++ b/cfw/include/huaweicloud/cfw/v1/model/RuleServiceDtoForResponse.h @@ -0,0 +1,177 @@ + +#ifndef HUAWEICLOUD_SDK_CFW_V1_MODEL_RuleServiceDtoForResponse_H_ +#define HUAWEICLOUD_SDK_CFW_V1_MODEL_RuleServiceDtoForResponse_H_ + + +#include + +#include +#include +#include + +#include +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// RuleServiceDtoForResponse +/// +class HUAWEICLOUD_CFW_V1_EXPORT RuleServiceDtoForResponse + : public ModelBase +{ +public: + RuleServiceDtoForResponse(); + virtual ~RuleServiceDtoForResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// RuleServiceDtoForResponse members + + /// + /// 服务输入类型,0为手动输入类型,1为自动输入类型 + /// + + int32_t getType() const; + bool typeIsSet() const; + void unsettype(); + void setType(int32_t value); + + /// + /// 协议类型:TCP为6, UDP为17,ICMP为1,ICMPV6为58,ANY为-1,手动类型不为空,自动类型为空 + /// + + int32_t getProtocol() const; + bool protocolIsSet() const; + void unsetprotocol(); + void setProtocol(int32_t value); + + /// + /// 协议列表,协议类型:TCP为6, UDP为17,ICMP为1,ICMPV6为58,ANY为-1,手动类型不为空,自动类型为空 + /// + + std::vector& getProtocols(); + bool protocolsIsSet() const; + void unsetprotocols(); + void setProtocols(std::vector value); + + /// + /// 源端口 + /// + + std::string getSourcePort() const; + bool sourcePortIsSet() const; + void unsetsourcePort(); + void setSourcePort(const std::string& value); + + /// + /// 目的端口 + /// + + std::string getDestPort() const; + bool destPortIsSet() const; + void unsetdestPort(); + void setDestPort(const std::string& value); + + /// + /// 服务组id,手动类型为空,自动类型为非空 + /// + + std::string getServiceSetId() const; + bool serviceSetIdIsSet() const; + void unsetserviceSetId(); + void setServiceSetId(const std::string& value); + + /// + /// 服务组名称 + /// + + std::string getServiceSetName() const; + bool serviceSetNameIsSet() const; + void unsetserviceSetName(); + void setServiceSetName(const std::string& value); + + /// + /// 自定义服务 + /// + + std::vector& getCustomService(); + bool customServiceIsSet() const; + void unsetcustomService(); + void setCustomService(const std::vector& value); + + /// + /// 服务组列表 + /// + + std::vector& getServiceGroup(); + bool serviceGroupIsSet() const; + void unsetserviceGroup(); + void setServiceGroup(const std::vector& value); + + /// + /// 服务组名称列表 + /// + + std::vector& getServiceGroupNames(); + bool serviceGroupNamesIsSet() const; + void unsetserviceGroupNames(); + void setServiceGroupNames(const std::vector& value); + + /// + /// 服务组类型,0表示自定义服务组,1表示常用WEB服务,2表示常用远程登录和PING,3表示常用数据库 + /// + + int32_t getServiceSetType() const; + bool serviceSetTypeIsSet() const; + void unsetserviceSetType(); + void setServiceSetType(int32_t value); + + +protected: + int32_t type_; + bool typeIsSet_; + int32_t protocol_; + bool protocolIsSet_; + std::vector protocols_; + bool protocolsIsSet_; + std::string sourcePort_; + bool sourcePortIsSet_; + std::string destPort_; + bool destPortIsSet_; + std::string serviceSetId_; + bool serviceSetIdIsSet_; + std::string serviceSetName_; + bool serviceSetNameIsSet_; + std::vector customService_; + bool customServiceIsSet_; + std::vector serviceGroup_; + bool serviceGroupIsSet_; + std::vector serviceGroupNames_; + bool serviceGroupNamesIsSet_; + int32_t serviceSetType_; + bool serviceSetTypeIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CFW_V1_MODEL_RuleServiceDtoForResponse_H_ diff --git a/cfw/include/huaweicloud/cfw/v1/model/ServiceGroupVO.h b/cfw/include/huaweicloud/cfw/v1/model/ServiceGroupVO.h new file mode 100644 index 000000000..d2155ac8a --- /dev/null +++ b/cfw/include/huaweicloud/cfw/v1/model/ServiceGroupVO.h @@ -0,0 +1,98 @@ + +#ifndef HUAWEICLOUD_SDK_CFW_V1_MODEL_ServiceGroupVO_H_ +#define HUAWEICLOUD_SDK_CFW_V1_MODEL_ServiceGroupVO_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_CFW_V1_EXPORT ServiceGroupVO + : public ModelBase +{ +public: + ServiceGroupVO(); + virtual ~ServiceGroupVO(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ServiceGroupVO members + + /// + /// 服务组名称 + /// + + std::string getName() const; + bool nameIsSet() const; + void unsetname(); + void setName(const std::string& value); + + /// + /// 协议列表 + /// + + std::vector& getProtocols(); + bool protocolsIsSet() const; + void unsetprotocols(); + void setProtocols(std::vector value); + + /// + /// 服务组类型,0表示自定义服务组,1表示常用WEB服务,2表示常用远程登录和PING,3表示常用数据库 + /// + + int32_t getServiceSetType() const; + bool serviceSetTypeIsSet() const; + void unsetserviceSetType(); + void setServiceSetType(int32_t value); + + /// + /// 服务组ID + /// + + std::string getSetId() const; + bool setIdIsSet() const; + void unsetsetId(); + void setSetId(const std::string& value); + + +protected: + std::string name_; + bool nameIsSet_; + std::vector protocols_; + bool protocolsIsSet_; + int32_t serviceSetType_; + bool serviceSetTypeIsSet_; + std::string setId_; + bool setIdIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CFW_V1_MODEL_ServiceGroupVO_H_ diff --git a/cfw/include/huaweicloud/cfw/v1/model/ServiceItemIds.h b/cfw/include/huaweicloud/cfw/v1/model/ServiceItemIds.h index 56de07161..ab95c2939 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ServiceItemIds.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ServiceItemIds.h @@ -9,8 +9,8 @@ #include #include -#include #include +#include namespace HuaweiCloud { namespace Sdk { @@ -43,14 +43,14 @@ class HUAWEICLOUD_CFW_V1_EXPORT ServiceItemIds /// 服务组成员id列表 /// - std::vector& getItems(); + std::vector& getItems(); bool itemsIsSet() const; void unsetitems(); - void setItems(const std::vector& value); + void setItems(const std::vector& value); protected: - std::vector items_; + std::vector items_; bool itemsIsSet_; }; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ServiceItemIds_items.h b/cfw/include/huaweicloud/cfw/v1/model/ServiceItemIds_items.h new file mode 100644 index 000000000..efd2d088e --- /dev/null +++ b/cfw/include/huaweicloud/cfw/v1/model/ServiceItemIds_items.h @@ -0,0 +1,64 @@ + +#ifndef HUAWEICLOUD_SDK_CFW_V1_MODEL_ServiceItemIds_items_H_ +#define HUAWEICLOUD_SDK_CFW_V1_MODEL_ServiceItemIds_items_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_CFW_V1_EXPORT ServiceItemIds_items + : public ModelBase +{ +public: + ServiceItemIds_items(); + virtual ~ServiceItemIds_items(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ServiceItemIds_items members + + /// + /// id值 + /// + + std::string getId() const; + bool idIsSet() const; + void unsetid(); + void setId(const std::string& value); + + +protected: + std::string id_; + bool idIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CFW_V1_MODEL_ServiceItemIds_items_H_ diff --git a/cfw/include/huaweicloud/cfw/v1/model/ServiceItemListResponseDto_data_records.h b/cfw/include/huaweicloud/cfw/v1/model/ServiceItemListResponseDto_data_records.h index c0b8fe29c..33a843980 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ServiceItemListResponseDto_data_records.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ServiceItemListResponseDto_data_records.h @@ -74,15 +74,6 @@ class HUAWEICLOUD_CFW_V1_EXPORT ServiceItemListResponseDto_data_records void unsetdestPort(); void setDestPort(const std::string& value); - /// - /// 服务成员名称 - /// - - std::string getName() const; - bool nameIsSet() const; - void unsetname(); - void setName(const std::string& value); - /// /// 服务成员描述 /// @@ -102,8 +93,6 @@ class HUAWEICLOUD_CFW_V1_EXPORT ServiceItemListResponseDto_data_records bool sourcePortIsSet_; std::string destPort_; bool destPortIsSet_; - std::string name_; - bool nameIsSet_; std::string description_; bool descriptionIsSet_; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ServiceSet.h b/cfw/include/huaweicloud/cfw/v1/model/ServiceSet.h index 7fddce2e8..be06be8a6 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ServiceSet.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ServiceSet.h @@ -84,15 +84,6 @@ class HUAWEICLOUD_CFW_V1_EXPORT ServiceSet void unsetrefCount(); void setRefCount(int32_t value); - /// - /// 状态 - /// - - std::string getStatus() const; - bool statusIsSet() const; - void unsetstatus(); - void setStatus(const std::string& value); - /// /// 项目id /// @@ -123,8 +114,6 @@ class HUAWEICLOUD_CFW_V1_EXPORT ServiceSet bool serviceSetTypeIsSet_; int32_t refCount_; bool refCountIsSet_; - std::string status_; - bool statusIsSet_; std::string projectId_; bool projectIdIsSet_; std::vector protocols_; diff --git a/cfw/include/huaweicloud/cfw/v1/model/UpdateAclRuleOrderRequest.h b/cfw/include/huaweicloud/cfw/v1/model/UpdateAclRuleOrderRequest.h index 8fe82fac1..e8f1afb37 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/UpdateAclRuleOrderRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/UpdateAclRuleOrderRequest.h @@ -58,7 +58,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateAclRuleOrderRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)获得,默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/UpdateAclRuleRequest.h b/cfw/include/huaweicloud/cfw/v1/model/UpdateAclRuleRequest.h index ee00bf6d5..421111d93 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/UpdateAclRuleRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/UpdateAclRuleRequest.h @@ -58,7 +58,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateAclRuleRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/UpdateAddressSetDto.h b/cfw/include/huaweicloud/cfw/v1/model/UpdateAddressSetDto.h index 1293c1bb1..441cbfa86 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/UpdateAddressSetDto.h +++ b/cfw/include/huaweicloud/cfw/v1/model/UpdateAddressSetDto.h @@ -56,23 +56,12 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateAddressSetDto void unsetdescription(); void setDescription(const std::string& value); - /// - /// 地址类型0 ipv4,1 ipv6,2 domain - /// - - int32_t getAddressType() const; - bool addressTypeIsSet() const; - void unsetaddressType(); - void setAddressType(int32_t value); - protected: std::string name_; bool nameIsSet_; std::string description_; bool descriptionIsSet_; - int32_t addressType_; - bool addressTypeIsSet_; }; diff --git a/cfw/include/huaweicloud/cfw/v1/model/UpdateAddressSetRequest.h b/cfw/include/huaweicloud/cfw/v1/model/UpdateAddressSetRequest.h index 3e7bb6e5a..7cef3fa1d 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/UpdateAddressSetRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/UpdateAddressSetRequest.h @@ -58,7 +58,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateAddressSetRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/UpdateBlackWhiteListDto.h b/cfw/include/huaweicloud/cfw/v1/model/UpdateBlackWhiteListDto.h index 143e6bad5..3c5c2afb7 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/UpdateBlackWhiteListDto.h +++ b/cfw/include/huaweicloud/cfw/v1/model/UpdateBlackWhiteListDto.h @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateBlackWhiteListDto void setDirection(int32_t value); /// - /// 地址类型0:ipv4,1:ipv6,2:domain + /// 地址类型0:ipv4,1:ipv6 /// int32_t getAddressType() const; @@ -83,24 +83,6 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateBlackWhiteListDto void unsetport(); void setPort(const std::string& value); - /// - /// 黑白名单类型4:黑名单,5:白名单 - /// - - int32_t getListType() const; - bool listTypeIsSet() const; - void unsetlistType(); - void setListType(int32_t value); - - /// - /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用查询防火墙实例接口获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。具体可参考APIExlorer和帮助中心FAQ。 - /// - - std::string getObjectId() const; - bool objectIdIsSet() const; - void unsetobjectId(); - void setObjectId(const std::string& value); - /// /// 描述 /// @@ -122,10 +104,6 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateBlackWhiteListDto bool protocolIsSet_; std::string port_; bool portIsSet_; - int32_t listType_; - bool listTypeIsSet_; - std::string objectId_; - bool objectIdIsSet_; std::string description_; bool descriptionIsSet_; diff --git a/cfw/include/huaweicloud/cfw/v1/model/UpdateBlackWhiteListRequest.h b/cfw/include/huaweicloud/cfw/v1/model/UpdateBlackWhiteListRequest.h index 81a61a4ae..f5808fd2e 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/UpdateBlackWhiteListRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/UpdateBlackWhiteListRequest.h @@ -58,7 +58,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateBlackWhiteListRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/UpdateDnsServersRequest.h b/cfw/include/huaweicloud/cfw/v1/model/UpdateDnsServersRequest.h index e490ba4eb..a46b95312 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/UpdateDnsServersRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/UpdateDnsServersRequest.h @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateDnsServersRequest /// UpdateDnsServersRequest members /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。若object_Id非空,默认返回object_Id对应墙的信息;填写时object_Id需要属于fw_instance_Id对应的墙。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)获得,默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。若object_Id非空,默认返回object_Id对应墙的信息;填写时object_Id需要属于fw_instance_Id对应的墙。 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/UpdateDomainSetInfoDto.h b/cfw/include/huaweicloud/cfw/v1/model/UpdateDomainSetInfoDto.h index 5954fa94a..8c6e6c203 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/UpdateDomainSetInfoDto.h +++ b/cfw/include/huaweicloud/cfw/v1/model/UpdateDomainSetInfoDto.h @@ -56,34 +56,12 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateDomainSetInfoDto void unsetdescription(); void setDescription(const std::string& value); - /// - /// 域名组id - /// - - std::string getSetId() const; - bool setIdIsSet() const; - void unsetsetId(); - void setSetId(const std::string& value); - - /// - /// 域名组类型,0表示URL过滤,1表示地址解析 - /// - - int32_t getDomainSetType() const; - bool domainSetTypeIsSet() const; - void unsetdomainSetType(); - void setDomainSetType(int32_t value); - protected: std::string name_; bool nameIsSet_; std::string description_; bool descriptionIsSet_; - std::string setId_; - bool setIdIsSet_; - int32_t domainSetType_; - bool domainSetTypeIsSet_; }; diff --git a/cfw/include/huaweicloud/cfw/v1/model/UpdateDomainSetRequest.h b/cfw/include/huaweicloud/cfw/v1/model/UpdateDomainSetRequest.h index cf8cf9635..7c3c71ff1 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/UpdateDomainSetRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/UpdateDomainSetRequest.h @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateDomainSetRequest /// UpdateDomainSetRequest members /// - /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用查询防火墙实例接口获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。具体可参考APIExlorer和帮助中心FAQ。 + /// 域名组id /// std::string getSetId() const; @@ -58,7 +58,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateDomainSetRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)。 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/UpdateLogConfigRequest.h b/cfw/include/huaweicloud/cfw/v1/model/UpdateLogConfigRequest.h index a2c8ebb39..8d1f5790c 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/UpdateLogConfigRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/UpdateLogConfigRequest.h @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateLogConfigRequest /// UpdateLogConfigRequest members /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)。 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/UpdateRuleAclDto.h b/cfw/include/huaweicloud/cfw/v1/model/UpdateRuleAclDto.h index 951927d79..d4605bbea 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/UpdateRuleAclDto.h +++ b/cfw/include/huaweicloud/cfw/v1/model/UpdateRuleAclDto.h @@ -15,7 +15,6 @@ #include #include #include -#include namespace HuaweiCloud { namespace Sdk { @@ -174,15 +173,6 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateRuleAclDto /// /// - RuleProfileDto getProfile() const; - bool profileIsSet() const; - void unsetprofile(); - void setProfile(const RuleProfileDto& value); - - /// - /// - /// - RuleAddressDto getSource() const; bool sourceIsSet() const; void unsetsource(); @@ -254,8 +244,6 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateRuleAclDto bool longConnectTimeIsSet_; int32_t longConnectEnable_; bool longConnectEnableIsSet_; - RuleProfileDto profile_; - bool profileIsSet_; RuleAddressDto source_; bool sourceIsSet_; RuleAddressDto destination_; diff --git a/cfw/include/huaweicloud/cfw/v1/model/UpdateSecurityPolciesActionDto.h b/cfw/include/huaweicloud/cfw/v1/model/UpdateSecurityPolciesActionDto.h index ae957bdfa..93bd17b68 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/UpdateSecurityPolciesActionDto.h +++ b/cfw/include/huaweicloud/cfw/v1/model/UpdateSecurityPolciesActionDto.h @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateSecurityPolciesActionDto /// UpdateSecurityPolciesActionDto members /// - /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用查询防火墙实例接口获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。具体可参考APIExlorer和帮助中心FAQ。 + /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。 /// std::string getObjectId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/UpdateServiceSetRequest.h b/cfw/include/huaweicloud/cfw/v1/model/UpdateServiceSetRequest.h index 69dd5c3bf..330e115fc 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/UpdateServiceSetRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/UpdateServiceSetRequest.h @@ -58,7 +58,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateServiceSetRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/UpdateServiceSetResponse.h b/cfw/include/huaweicloud/cfw/v1/model/UpdateServiceSetResponse.h index 62dd55f1a..dc9c3f195 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/UpdateServiceSetResponse.h +++ b/cfw/include/huaweicloud/cfw/v1/model/UpdateServiceSetResponse.h @@ -9,7 +9,7 @@ #include #include -#include +#include namespace HuaweiCloud { namespace Sdk { @@ -42,14 +42,14 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateServiceSetResponse /// /// - IdObject getData() const; + CommonResponseDTO_data getData() const; bool dataIsSet() const; void unsetdata(); - void setData(const IdObject& value); + void setData(const CommonResponseDTO_data& value); protected: - IdObject data_; + CommonResponseDTO_data data_; bool dataIsSet_; #ifdef RTTR_FLAG diff --git a/cfw/include/huaweicloud/cfw/v1/model/VpcAttachmentDetail.h b/cfw/include/huaweicloud/cfw/v1/model/VpcAttachmentDetail.h index e63e3c762..c69aa7add 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/VpcAttachmentDetail.h +++ b/cfw/include/huaweicloud/cfw/v1/model/VpcAttachmentDetail.h @@ -9,9 +9,7 @@ #include #include -#include #include -#include namespace HuaweiCloud { namespace Sdk { @@ -40,24 +38,6 @@ class HUAWEICLOUD_CFW_V1_EXPORT VpcAttachmentDetail ///////////////////////////////////////////// /// VpcAttachmentDetail 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); - /// /// vpc id /// @@ -67,113 +47,10 @@ class HUAWEICLOUD_CFW_V1_EXPORT VpcAttachmentDetail void unsetvpcId(); void setVpcId(const std::string& value); - /// - /// 子网id - /// - - std::string getVirsubnetId() const; - bool virsubnetIdIsSet() const; - void unsetvirsubnetId(); - void setVirsubnetId(const std::string& value); - - /// - /// 状态 - /// - - std::string getState() const; - bool stateIsSet() const; - void unsetstate(); - void setState(const std::string& value); - - /// - /// 创建时间 - /// - - std::string getCreatedAt() const; - bool createdAtIsSet() const; - void unsetcreatedAt(); - void setCreatedAt(const std::string& value); - - /// - /// 更新时间 - /// - - std::string getUpdatedAt() const; - bool updatedAtIsSet() const; - void unsetupdatedAt(); - void setUpdatedAt(const std::string& value); - - /// - /// 标签 - /// - - std::vector& getTags(); - bool tagsIsSet() const; - void unsettags(); - void setTags(const std::vector& value); - - /// - /// 描述 - /// - - std::string getDescription() const; - bool descriptionIsSet() const; - void unsetdescription(); - void setDescription(const std::string& value); - - /// - /// 项目id - /// - - std::string getProjectId() const; - bool projectIdIsSet() const; - void unsetprojectId(); - void setProjectId(const std::string& value); - - /// - /// vpc项目id - /// - - std::string getVpcProjectId() const; - bool vpcProjectIdIsSet() const; - void unsetvpcProjectId(); - void setVpcProjectId(const std::string& value); - - /// - /// 企业项目id - /// - - std::string getEnterpriseProjectId() const; - bool enterpriseProjectIdIsSet() const; - void unsetenterpriseProjectId(); - void setEnterpriseProjectId(const std::string& value); - protected: - std::string id_; - bool idIsSet_; - std::string name_; - bool nameIsSet_; std::string vpcId_; bool vpcIdIsSet_; - std::string virsubnetId_; - bool virsubnetIdIsSet_; - std::string state_; - bool stateIsSet_; - std::string createdAt_; - bool createdAtIsSet_; - std::string updatedAt_; - bool updatedAtIsSet_; - std::vector tags_; - bool tagsIsSet_; - std::string description_; - bool descriptionIsSet_; - std::string projectId_; - bool projectIdIsSet_; - std::string vpcProjectId_; - bool vpcProjectIdIsSet_; - std::string enterpriseProjectId_; - bool enterpriseProjectIdIsSet_; }; diff --git a/cfw/src/v1/CfwClient.cpp b/cfw/src/v1/CfwClient.cpp index da98b4034..2ca719f25 100644 --- a/cfw/src/v1/CfwClient.cpp +++ b/cfw/src/v1/CfwClient.cpp @@ -503,6 +503,53 @@ std::shared_ptr CfwClient::batchDeleteServiceIt return localVarResult; } +std::shared_ptr CfwClient::cancelCaptureTask(CancelCaptureTaskRequest &request) +{ + std::string localVarPath = "/v1/{project_id}/capture-task/stop"; + + 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.fwInstanceIdIsSet()) { + localVarQueryParams["fw_instance_id"] = parameterToString(request.getFwInstanceId()); + } + if (request.enterpriseProjectIdIsSet()) { + localVarQueryParams["enterprise_project_id"] = parameterToString(request.getEnterpriseProjectId()); + } + + 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, CfwMeta::genRequestDefForCancelCaptureTask()); + + 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 CfwClient::changeEastWestFirewallStatus(ChangeEastWestFirewallStatusRequest &request) { std::string localVarPath = "/v1/{project_id}/firewall/east-west/protect"; @@ -550,6 +597,53 @@ std::shared_ptr CfwClient::changeEastWestF return localVarResult; } +std::shared_ptr CfwClient::createCaptureTask(CreateCaptureTaskRequest &request) +{ + std::string localVarPath = "/v1/{project_id}/capture-task"; + + 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.enterpriseProjectIdIsSet()) { + localVarQueryParams["enterprise_project_id"] = parameterToString(request.getEnterpriseProjectId()); + } + if (request.fwInstanceIdIsSet()) { + localVarQueryParams["fw_instance_id"] = parameterToString(request.getFwInstanceId()); + } + + 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, CfwMeta::genRequestDefForCreateCaptureTask()); + + 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 CfwClient::createEastWestFirewall(CreateEastWestFirewallRequest &request) { std::string localVarPath = "/v1/{project_id}/firewall/east-west"; @@ -616,9 +710,6 @@ std::shared_ptr CfwClient::createFirewall(CreateFirewall if (request.xClientTokenIsSet()) { localVarHeaderParams["X-Client-Token"] = parameterToString(request.getXClientToken()); } - if (request.xTraceIdIsSet()) { - localVarHeaderParams["X-Trace-Id"] = parameterToString(request.getXTraceId()); - } std::string localVarHttpBody; if (isJson) { @@ -644,6 +735,48 @@ std::shared_ptr CfwClient::createFirewall(CreateFirewall return localVarResult; } +std::shared_ptr CfwClient::createTag(CreateTagRequest &request) +{ + std::string localVarPath = "/v2/{project_id}/cfw-cfw/{fw_instance_id}/tags/create"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["fw_instance_id"] = parameterToString(request.getFwInstanceId()); + + 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, CfwMeta::genRequestDefForCreateTag()); + + 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 CfwClient::deleteAddressItem(DeleteAddressItemRequest &request) { std::string localVarPath = "/v1/{project_id}/address-items/{item_id}"; @@ -752,6 +885,53 @@ std::shared_ptr CfwClient::deleteBlackWhiteList(De return localVarResult; } +std::shared_ptr CfwClient::deleteCaptureTask(DeleteCaptureTaskRequest &request) +{ + std::string localVarPath = "/v1/{project_id}/capture-task/batch-delete"; + + 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.fwInstanceIdIsSet()) { + localVarQueryParams["fw_instance_id"] = parameterToString(request.getFwInstanceId()); + } + if (request.enterpriseProjectIdIsSet()) { + localVarQueryParams["enterprise_project_id"] = parameterToString(request.getEnterpriseProjectId()); + } + + 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, CfwMeta::genRequestDefForDeleteCaptureTask()); + + 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 CfwClient::deleteDomainSet(DeleteDomainSetRequest &request) { std::string localVarPath = "/v1/{project_id}/domain-set/{set_id}"; @@ -935,6 +1115,48 @@ std::shared_ptr CfwClient::deleteServiceSet(DeleteServ return localVarResult; } +std::shared_ptr CfwClient::deleteTag(DeleteTagRequest &request) +{ + std::string localVarPath = "/v2/{project_id}/cfw-cfw/{fw_instance_id}/tags/delete"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["fw_instance_id"] = parameterToString(request.getFwInstanceId()); + + 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, CfwMeta::genRequestDefForDeleteTag()); + + 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 CfwClient::listAccessControlLogs(ListAccessControlLogsRequest &request) { std::string localVarPath = "/v1/{project_id}/cfw/logs/access-control"; @@ -1014,6 +1236,18 @@ std::shared_ptr CfwClient::listAccessControlLogs( if (request.dstRegionNameIsSet()) { localVarQueryParams["dst_region_name"] = parameterToString(request.getDstRegionName()); } + if (request.srcProvinceNameIsSet()) { + localVarQueryParams["src_province_name"] = parameterToString(request.getSrcProvinceName()); + } + if (request.dstProvinceNameIsSet()) { + localVarQueryParams["dst_province_name"] = parameterToString(request.getDstProvinceName()); + } + if (request.srcCityNameIsSet()) { + localVarQueryParams["src_city_name"] = parameterToString(request.getSrcCityName()); + } + if (request.dstCityNameIsSet()) { + localVarQueryParams["dst_city_name"] = parameterToString(request.getDstCityName()); + } std::string localVarHttpBody; @@ -1248,9 +1482,6 @@ std::shared_ptr CfwClient::listAttackLogs(ListAttackLogs if (request.levelIsSet()) { localVarQueryParams["level"] = parameterToString(request.getLevel()); } - if (request.sourceIsSet()) { - localVarQueryParams["source"] = parameterToString(request.getSource()); - } if (request.enterpriseProjectIdIsSet()) { localVarQueryParams["enterprise_project_id"] = parameterToString(request.getEnterpriseProjectId()); } @@ -1269,6 +1500,18 @@ std::shared_ptr CfwClient::listAttackLogs(ListAttackLogs if (request.dstRegionNameIsSet()) { localVarQueryParams["dst_region_name"] = parameterToString(request.getDstRegionName()); } + if (request.srcProvinceNameIsSet()) { + localVarQueryParams["src_province_name"] = parameterToString(request.getSrcProvinceName()); + } + if (request.dstProvinceNameIsSet()) { + localVarQueryParams["dst_province_name"] = parameterToString(request.getDstProvinceName()); + } + if (request.srcCityNameIsSet()) { + localVarQueryParams["src_city_name"] = parameterToString(request.getSrcCityName()); + } + if (request.dstCityNameIsSet()) { + localVarQueryParams["dst_city_name"] = parameterToString(request.getDstCityName()); + } std::string localVarHttpBody; @@ -1338,6 +1581,91 @@ std::shared_ptr CfwClient::listBlackWhiteLists(List return localVarResult; } +std::shared_ptr CfwClient::listCaptureResult(ListCaptureResultRequest &request) +{ + std::string localVarPath = "/v1/{project_id}/capture-task/capture-result"; + + 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.fwInstanceIdIsSet()) { + localVarQueryParams["fw_instance_id"] = parameterToString(request.getFwInstanceId()); + } + if (request.taskIdIsSet()) { + localVarQueryParams["task_id"] = parameterToString(request.getTaskId()); + } + if (request.typeIsSet()) { + localVarQueryParams["type"] = parameterToString(request.getType()); + } + if (request.ipIsSet()) { + localVarQueryParams["ip"] = parameterToString(request.getIp()); + } + if (request.enterpriseProjectIdIsSet()) { + localVarQueryParams["enterprise_project_id"] = parameterToString(request.getEnterpriseProjectId()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, CfwMeta::genRequestDefForListCaptureResult()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr CfwClient::listCaptureTask(ListCaptureTaskRequest &request) +{ + std::string localVarPath = "/v1/{project_id}/capture-task"; + + 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.enterpriseProjectIdIsSet()) { + localVarQueryParams["enterprise_project_id"] = parameterToString(request.getEnterpriseProjectId()); + } + if (request.fwInstanceIdIsSet()) { + localVarQueryParams["fw_instance_id"] = parameterToString(request.getFwInstanceId()); + } + if (request.limitIsSet()) { + localVarQueryParams["limit"] = parameterToString(request.getLimit()); + } + if (request.offsetIsSet()) { + localVarQueryParams["offset"] = parameterToString(request.getOffset()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, CfwMeta::genRequestDefForListCaptureTask()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} std::shared_ptr CfwClient::listDnsServers(ListDnsServersRequest &request) { std::string localVarPath = "/v1/{project_id}/dns/servers"; @@ -1503,12 +1831,6 @@ std::shared_ptr CfwClient::listDomains(ListDomainsRequest & if (request.domainNameIsSet()) { localVarQueryParams["domain_name"] = parameterToString(request.getDomainName()); } - if (request.descriptionIsSet()) { - localVarQueryParams["description"] = parameterToString(request.getDescription()); - } - if (request.setIdIsSet()) { - localVarQueryParams["set_id"] = parameterToString(request.getSetId()); - } if (request.objectIdIsSet()) { localVarQueryParams["object_Id"] = parameterToString(request.getObjectId()); } @@ -1730,6 +2052,18 @@ std::shared_ptr CfwClient::listFlowLogs(ListFlowLogsReques if (request.dstRegionNameIsSet()) { localVarQueryParams["dst_region_name"] = parameterToString(request.getDstRegionName()); } + if (request.srcProvinceNameIsSet()) { + localVarQueryParams["src_province_name"] = parameterToString(request.getSrcProvinceName()); + } + if (request.dstProvinceNameIsSet()) { + localVarQueryParams["dst_province_name"] = parameterToString(request.getDstProvinceName()); + } + if (request.srcCityNameIsSet()) { + localVarQueryParams["src_city_name"] = parameterToString(request.getSrcCityName()); + } + if (request.dstCityNameIsSet()) { + localVarQueryParams["dst_city_name"] = parameterToString(request.getDstCityName()); + } std::string localVarHttpBody; @@ -2561,9 +2895,6 @@ std::shared_ptr CfwClient::listAclRules(ListAclRulesReques if (request.typeIsSet()) { localVarQueryParams["type"] = parameterToString(request.getType()); } - if (request.protocolIsSet()) { - localVarQueryParams["protocol"] = parameterToString(request.getProtocol()); - } if (request.ipIsSet()) { localVarQueryParams["ip"] = parameterToString(request.getIp()); } diff --git a/cfw/src/v1/CfwMeta.cpp b/cfw/src/v1/CfwMeta.cpp index 1a4b1c13e..f9c99b2b3 100644 --- a/cfw/src/v1/CfwMeta.cpp +++ b/cfw/src/v1/CfwMeta.cpp @@ -158,6 +158,21 @@ HttpRequestDef CfwMeta::genRequestDefForBatchDeleteServiceItems() { return reqDefBuilder; } +HttpRequestDef CfwMeta::genRequestDefForCancelCaptureTask() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("FwInstanceId") + .withJsonTag("fw_instance_id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("EnterpriseProjectId") + .withJsonTag("enterprise_project_id") + .withLocationType(Query_)); + FieldDef bodyParam; + reqDefBuilder.withRequestField(bodyParam. + withName("Body"). + withLocationType(Body_)); + return reqDefBuilder; +} + HttpRequestDef CfwMeta::genRequestDefForChangeEastWestFirewallStatus() { HttpRequestDef reqDefBuilder; reqDefBuilder.withRequestField(FieldDef().withName("EnterpriseProjectId") @@ -173,6 +188,21 @@ HttpRequestDef CfwMeta::genRequestDefForChangeEastWestFirewallStatus() { return reqDefBuilder; } +HttpRequestDef CfwMeta::genRequestDefForCreateCaptureTask() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("EnterpriseProjectId") + .withJsonTag("enterprise_project_id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("FwInstanceId") + .withJsonTag("fw_instance_id") + .withLocationType(Query_)); + FieldDef bodyParam; + reqDefBuilder.withRequestField(bodyParam. + withName("Body"). + withLocationType(Body_)); + return reqDefBuilder; +} + HttpRequestDef CfwMeta::genRequestDefForCreateEastWestFirewall() { HttpRequestDef reqDefBuilder; reqDefBuilder.withRequestField(FieldDef().withName("EnterpriseProjectId") @@ -195,11 +225,15 @@ HttpRequestDef CfwMeta::genRequestDefForCreateFirewall() { .withName("XClientToken") .withJsonTag("X-Client-Token") .withLocationType(Header_)); - FieldDef headerParamXTraceId; - reqDefBuilder.withRequestField(headerParamXTraceId - .withName("XTraceId") - .withJsonTag("X-Trace-Id") - .withLocationType(Header_)); + FieldDef bodyParam; + reqDefBuilder.withRequestField(bodyParam. + withName("Body"). + withLocationType(Body_)); + return reqDefBuilder; +} + +HttpRequestDef CfwMeta::genRequestDefForCreateTag() { + HttpRequestDef reqDefBuilder; FieldDef bodyParam; reqDefBuilder.withRequestField(bodyParam. withName("Body"). @@ -240,6 +274,21 @@ HttpRequestDef CfwMeta::genRequestDefForDeleteBlackWhiteList() { return reqDefBuilder; } +HttpRequestDef CfwMeta::genRequestDefForDeleteCaptureTask() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("FwInstanceId") + .withJsonTag("fw_instance_id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("EnterpriseProjectId") + .withJsonTag("enterprise_project_id") + .withLocationType(Query_)); + FieldDef bodyParam; + reqDefBuilder.withRequestField(bodyParam. + withName("Body"). + withLocationType(Body_)); + return reqDefBuilder; +} + HttpRequestDef CfwMeta::genRequestDefForDeleteDomainSet() { HttpRequestDef reqDefBuilder; reqDefBuilder.withRequestField(FieldDef().withName("EnterpriseProjectId") @@ -290,6 +339,15 @@ HttpRequestDef CfwMeta::genRequestDefForDeleteServiceSet() { return reqDefBuilder; } +HttpRequestDef CfwMeta::genRequestDefForDeleteTag() { + HttpRequestDef reqDefBuilder; + FieldDef bodyParam; + reqDefBuilder.withRequestField(bodyParam. + withName("Body"). + withLocationType(Body_)); + return reqDefBuilder; +} + HttpRequestDef CfwMeta::genRequestDefForListAccessControlLogs() { HttpRequestDef reqDefBuilder; reqDefBuilder.withRequestField(FieldDef().withName("FwInstanceId") @@ -355,6 +413,18 @@ HttpRequestDef CfwMeta::genRequestDefForListAccessControlLogs() { reqDefBuilder.withRequestField(FieldDef().withName("DstRegionName") .withJsonTag("dst_region_name") .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("SrcProvinceName") + .withJsonTag("src_province_name") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("DstProvinceName") + .withJsonTag("dst_province_name") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("SrcCityName") + .withJsonTag("src_city_name") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("DstCityName") + .withJsonTag("dst_city_name") + .withLocationType(Query_)); return reqDefBuilder; } @@ -492,9 +562,6 @@ HttpRequestDef CfwMeta::genRequestDefForListAttackLogs() { reqDefBuilder.withRequestField(FieldDef().withName("Level") .withJsonTag("level") .withLocationType(Query_)); - reqDefBuilder.withRequestField(FieldDef().withName("Source") - .withJsonTag("source") - .withLocationType(Query_)); reqDefBuilder.withRequestField(FieldDef().withName("EnterpriseProjectId") .withJsonTag("enterprise_project_id") .withLocationType(Query_)); @@ -513,6 +580,18 @@ HttpRequestDef CfwMeta::genRequestDefForListAttackLogs() { reqDefBuilder.withRequestField(FieldDef().withName("DstRegionName") .withJsonTag("dst_region_name") .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("SrcProvinceName") + .withJsonTag("src_province_name") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("DstProvinceName") + .withJsonTag("dst_province_name") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("SrcCityName") + .withJsonTag("src_city_name") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("DstCityName") + .withJsonTag("dst_city_name") + .withLocationType(Query_)); return reqDefBuilder; } @@ -548,6 +627,43 @@ HttpRequestDef CfwMeta::genRequestDefForListBlackWhiteLists() { return reqDefBuilder; } +HttpRequestDef CfwMeta::genRequestDefForListCaptureResult() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("FwInstanceId") + .withJsonTag("fw_instance_id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("TaskId") + .withJsonTag("task_id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Type") + .withJsonTag("type") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Ip") + .withJsonTag("ip") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("EnterpriseProjectId") + .withJsonTag("enterprise_project_id") + .withLocationType(Query_)); + return reqDefBuilder; +} + +HttpRequestDef CfwMeta::genRequestDefForListCaptureTask() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("EnterpriseProjectId") + .withJsonTag("enterprise_project_id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("FwInstanceId") + .withJsonTag("fw_instance_id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Limit") + .withJsonTag("limit") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Offset") + .withJsonTag("offset") + .withLocationType(Query_)); + return reqDefBuilder; +} + HttpRequestDef CfwMeta::genRequestDefForListDnsServers() { HttpRequestDef reqDefBuilder; reqDefBuilder.withRequestField(FieldDef().withName("Limit") @@ -625,12 +741,6 @@ HttpRequestDef CfwMeta::genRequestDefForListDomains() { reqDefBuilder.withRequestField(FieldDef().withName("DomainName") .withJsonTag("domain_name") .withLocationType(Query_)); - reqDefBuilder.withRequestField(FieldDef().withName("Description") - .withJsonTag("description") - .withLocationType(Query_)); - reqDefBuilder.withRequestField(FieldDef().withName("SetId") - .withJsonTag("set_id") - .withLocationType(Query_)); reqDefBuilder.withRequestField(FieldDef().withName("ObjectId") .withJsonTag("object_Id") .withLocationType(Query_)); @@ -748,6 +858,18 @@ HttpRequestDef CfwMeta::genRequestDefForListFlowLogs() { reqDefBuilder.withRequestField(FieldDef().withName("DstRegionName") .withJsonTag("dst_region_name") .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("SrcProvinceName") + .withJsonTag("src_province_name") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("DstProvinceName") + .withJsonTag("dst_province_name") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("SrcCityName") + .withJsonTag("src_city_name") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("DstCityName") + .withJsonTag("dst_city_name") + .withLocationType(Query_)); return reqDefBuilder; } @@ -1028,9 +1150,6 @@ HttpRequestDef CfwMeta::genRequestDefForListAclRules() { reqDefBuilder.withRequestField(FieldDef().withName("Type") .withJsonTag("type") .withLocationType(Query_)); - reqDefBuilder.withRequestField(FieldDef().withName("Protocol") - .withJsonTag("protocol") - .withLocationType(Query_)); reqDefBuilder.withRequestField(FieldDef().withName("Ip") .withJsonTag("ip") .withLocationType(Query_)); diff --git a/cfw/src/v1/model/AddRuleAclDto_rules.cpp b/cfw/src/v1/model/AddRuleAclDto_rules.cpp index 5fcfde1cb..700a803ac 100644 --- a/cfw/src/v1/model/AddRuleAclDto_rules.cpp +++ b/cfw/src/v1/model/AddRuleAclDto_rules.cpp @@ -38,7 +38,6 @@ AddRuleAclDto_rules::AddRuleAclDto_rules() descriptionIsSet_ = false; direction_ = 0; directionIsSet_ = false; - profileIsSet_ = false; sourceIsSet_ = false; destinationIsSet_ = false; serviceIsSet_ = false; @@ -97,9 +96,6 @@ web::json::value AddRuleAclDto_rules::toJson() const if(directionIsSet_) { val[utility::conversions::to_string_t("direction")] = ModelBase::toJson(direction_); } - if(profileIsSet_) { - val[utility::conversions::to_string_t("profile")] = ModelBase::toJson(profile_); - } if(sourceIsSet_) { val[utility::conversions::to_string_t("source")] = ModelBase::toJson(source_); } @@ -245,15 +241,6 @@ bool AddRuleAclDto_rules::fromJson(const web::json::value& val) setDirection(refVal); } } - if(val.has_field(utility::conversions::to_string_t("profile"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("profile")); - if(!fieldValue.is_null()) - { - RuleProfileDto refVal; - ok &= ModelBase::fromJson(fieldValue, refVal); - setProfile(refVal); - } - } if(val.has_field(utility::conversions::to_string_t("source"))) { const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("source")); if(!fieldValue.is_null()) @@ -588,27 +575,6 @@ void AddRuleAclDto_rules::unsetdirection() directionIsSet_ = false; } -RuleProfileDto AddRuleAclDto_rules::getProfile() const -{ - return profile_; -} - -void AddRuleAclDto_rules::setProfile(const RuleProfileDto& value) -{ - profile_ = value; - profileIsSet_ = true; -} - -bool AddRuleAclDto_rules::profileIsSet() const -{ - return profileIsSet_; -} - -void AddRuleAclDto_rules::unsetprofile() -{ - profileIsSet_ = false; -} - RuleAddressDtoForRequest AddRuleAclDto_rules::getSource() const { return source_; diff --git a/cfw/src/v1/model/AddServiceItemsUsingPOSTRequestBody_service_items.cpp b/cfw/src/v1/model/AddServiceItemsUsingPOSTRequestBody_service_items.cpp index 0b4eda431..4b86806ad 100644 --- a/cfw/src/v1/model/AddServiceItemsUsingPOSTRequestBody_service_items.cpp +++ b/cfw/src/v1/model/AddServiceItemsUsingPOSTRequestBody_service_items.cpp @@ -12,16 +12,12 @@ namespace Model { AddServiceItemsUsingPOSTRequestBody_service_items::AddServiceItemsUsingPOSTRequestBody_service_items() { - itemId_ = ""; - itemIdIsSet_ = false; protocol_ = 0; protocolIsSet_ = false; sourcePort_ = ""; sourcePortIsSet_ = false; destPort_ = ""; destPortIsSet_ = false; - name_ = ""; - nameIsSet_ = false; description_ = ""; descriptionIsSet_ = false; } @@ -36,9 +32,6 @@ web::json::value AddServiceItemsUsingPOSTRequestBody_service_items::toJson() con { web::json::value val = web::json::value::object(); - if(itemIdIsSet_) { - val[utility::conversions::to_string_t("item_id")] = ModelBase::toJson(itemId_); - } if(protocolIsSet_) { val[utility::conversions::to_string_t("protocol")] = ModelBase::toJson(protocol_); } @@ -48,9 +41,6 @@ web::json::value AddServiceItemsUsingPOSTRequestBody_service_items::toJson() con if(destPortIsSet_) { val[utility::conversions::to_string_t("dest_port")] = ModelBase::toJson(destPort_); } - if(nameIsSet_) { - val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); - } if(descriptionIsSet_) { val[utility::conversions::to_string_t("description")] = ModelBase::toJson(description_); } @@ -61,15 +51,6 @@ bool AddServiceItemsUsingPOSTRequestBody_service_items::fromJson(const web::json { bool ok = true; - if(val.has_field(utility::conversions::to_string_t("item_id"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("item_id")); - if(!fieldValue.is_null()) - { - std::string refVal; - ok &= ModelBase::fromJson(fieldValue, refVal); - setItemId(refVal); - } - } if(val.has_field(utility::conversions::to_string_t("protocol"))) { const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("protocol")); if(!fieldValue.is_null()) @@ -97,15 +78,6 @@ bool AddServiceItemsUsingPOSTRequestBody_service_items::fromJson(const web::json setDestPort(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("description"))) { const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("description")); if(!fieldValue.is_null()) @@ -119,27 +91,6 @@ bool AddServiceItemsUsingPOSTRequestBody_service_items::fromJson(const web::json } -std::string AddServiceItemsUsingPOSTRequestBody_service_items::getItemId() const -{ - return itemId_; -} - -void AddServiceItemsUsingPOSTRequestBody_service_items::setItemId(const std::string& value) -{ - itemId_ = value; - itemIdIsSet_ = true; -} - -bool AddServiceItemsUsingPOSTRequestBody_service_items::itemIdIsSet() const -{ - return itemIdIsSet_; -} - -void AddServiceItemsUsingPOSTRequestBody_service_items::unsetitemId() -{ - itemIdIsSet_ = false; -} - int32_t AddServiceItemsUsingPOSTRequestBody_service_items::getProtocol() const { return protocol_; @@ -203,27 +154,6 @@ void AddServiceItemsUsingPOSTRequestBody_service_items::unsetdestPort() destPortIsSet_ = false; } -std::string AddServiceItemsUsingPOSTRequestBody_service_items::getName() const -{ - return name_; -} - -void AddServiceItemsUsingPOSTRequestBody_service_items::setName(const std::string& value) -{ - name_ = value; - nameIsSet_ = true; -} - -bool AddServiceItemsUsingPOSTRequestBody_service_items::nameIsSet() const -{ - return nameIsSet_; -} - -void AddServiceItemsUsingPOSTRequestBody_service_items::unsetname() -{ - nameIsSet_ = false; -} - std::string AddServiceItemsUsingPOSTRequestBody_service_items::getDescription() const { return description_; diff --git a/cfw/src/v1/model/AddServiceSetResponse.cpp b/cfw/src/v1/model/AddServiceSetResponse.cpp index cfd3584a4..90cd0f764 100644 --- a/cfw/src/v1/model/AddServiceSetResponse.cpp +++ b/cfw/src/v1/model/AddServiceSetResponse.cpp @@ -39,7 +39,7 @@ bool AddServiceSetResponse::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("data")); if(!fieldValue.is_null()) { - IdObject refVal; + CommonResponseDTO_data refVal; ok &= ModelBase::fromJson(fieldValue, refVal); setData(refVal); } @@ -48,12 +48,12 @@ bool AddServiceSetResponse::fromJson(const web::json::value& val) } -IdObject AddServiceSetResponse::getData() const +CommonResponseDTO_data AddServiceSetResponse::getData() const { return data_; } -void AddServiceSetResponse::setData(const IdObject& value) +void AddServiceSetResponse::setData(const CommonResponseDTO_data& value) { data_ = value; dataIsSet_ = true; diff --git a/cfw/src/v1/model/AddressGroupVO.cpp b/cfw/src/v1/model/AddressGroupVO.cpp index dd8742752..d797ee3e4 100644 --- a/cfw/src/v1/model/AddressGroupVO.cpp +++ b/cfw/src/v1/model/AddressGroupVO.cpp @@ -12,13 +12,12 @@ namespace Model { AddressGroupVO::AddressGroupVO() { - setId_ = ""; - setIdIsSet_ = false; + addressSetType_ = 0; + addressSetTypeIsSet_ = false; name_ = ""; nameIsSet_ = false; - protocolsIsSet_ = false; - serviceSetType_ = 0; - serviceSetTypeIsSet_ = false; + setId_ = ""; + setIdIsSet_ = false; } AddressGroupVO::~AddressGroupVO() = default; @@ -31,17 +30,14 @@ web::json::value AddressGroupVO::toJson() const { web::json::value val = web::json::value::object(); - if(setIdIsSet_) { - val[utility::conversions::to_string_t("set_id")] = ModelBase::toJson(setId_); + if(addressSetTypeIsSet_) { + val[utility::conversions::to_string_t("address_set_type")] = ModelBase::toJson(addressSetType_); } if(nameIsSet_) { val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); } - if(protocolsIsSet_) { - val[utility::conversions::to_string_t("protocols")] = ModelBase::toJson(protocols_); - } - if(serviceSetTypeIsSet_) { - val[utility::conversions::to_string_t("service_set_type")] = ModelBase::toJson(serviceSetType_); + if(setIdIsSet_) { + val[utility::conversions::to_string_t("set_id")] = ModelBase::toJson(setId_); } return val; @@ -50,13 +46,13 @@ bool AddressGroupVO::fromJson(const web::json::value& val) { bool ok = true; - if(val.has_field(utility::conversions::to_string_t("set_id"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("set_id")); + if(val.has_field(utility::conversions::to_string_t("address_set_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("address_set_type")); if(!fieldValue.is_null()) { - std::string refVal; + int32_t refVal; ok &= ModelBase::fromJson(fieldValue, refVal); - setSetId(refVal); + setAddressSetType(refVal); } } if(val.has_field(utility::conversions::to_string_t("name"))) { @@ -68,47 +64,38 @@ bool AddressGroupVO::fromJson(const web::json::value& val) setName(refVal); } } - if(val.has_field(utility::conversions::to_string_t("protocols"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("protocols")); - if(!fieldValue.is_null()) - { - std::vector refVal; - ok &= ModelBase::fromJson(fieldValue, refVal); - setProtocols(refVal); - } - } - if(val.has_field(utility::conversions::to_string_t("service_set_type"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("service_set_type")); + if(val.has_field(utility::conversions::to_string_t("set_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("set_id")); if(!fieldValue.is_null()) { - int32_t refVal; + std::string refVal; ok &= ModelBase::fromJson(fieldValue, refVal); - setServiceSetType(refVal); + setSetId(refVal); } } return ok; } -std::string AddressGroupVO::getSetId() const +int32_t AddressGroupVO::getAddressSetType() const { - return setId_; + return addressSetType_; } -void AddressGroupVO::setSetId(const std::string& value) +void AddressGroupVO::setAddressSetType(int32_t value) { - setId_ = value; - setIdIsSet_ = true; + addressSetType_ = value; + addressSetTypeIsSet_ = true; } -bool AddressGroupVO::setIdIsSet() const +bool AddressGroupVO::addressSetTypeIsSet() const { - return setIdIsSet_; + return addressSetTypeIsSet_; } -void AddressGroupVO::unsetsetId() +void AddressGroupVO::unsetaddressSetType() { - setIdIsSet_ = false; + addressSetTypeIsSet_ = false; } std::string AddressGroupVO::getName() const @@ -132,46 +119,25 @@ void AddressGroupVO::unsetname() nameIsSet_ = false; } -std::vector& AddressGroupVO::getProtocols() -{ - return protocols_; -} - -void AddressGroupVO::setProtocols(std::vector value) -{ - protocols_ = value; - protocolsIsSet_ = true; -} - -bool AddressGroupVO::protocolsIsSet() const -{ - return protocolsIsSet_; -} - -void AddressGroupVO::unsetprotocols() -{ - protocolsIsSet_ = false; -} - -int32_t AddressGroupVO::getServiceSetType() const +std::string AddressGroupVO::getSetId() const { - return serviceSetType_; + return setId_; } -void AddressGroupVO::setServiceSetType(int32_t value) +void AddressGroupVO::setSetId(const std::string& value) { - serviceSetType_ = value; - serviceSetTypeIsSet_ = true; + setId_ = value; + setIdIsSet_ = true; } -bool AddressGroupVO::serviceSetTypeIsSet() const +bool AddressGroupVO::setIdIsSet() const { - return serviceSetTypeIsSet_; + return setIdIsSet_; } -void AddressGroupVO::unsetserviceSetType() +void AddressGroupVO::unsetsetId() { - serviceSetTypeIsSet_ = false; + setIdIsSet_ = false; } } diff --git a/cfw/src/v1/model/BlackWhiteListResponse_data.cpp b/cfw/src/v1/model/BlackWhiteListResponse_data.cpp index 561c5dabf..a2c057113 100644 --- a/cfw/src/v1/model/BlackWhiteListResponse_data.cpp +++ b/cfw/src/v1/model/BlackWhiteListResponse_data.cpp @@ -12,8 +12,6 @@ namespace Model { BlackWhiteListResponse_data::BlackWhiteListResponse_data() { - objectId_ = ""; - objectIdIsSet_ = false; offset_ = 0; offsetIsSet_ = false; limit_ = 0; @@ -33,9 +31,6 @@ web::json::value BlackWhiteListResponse_data::toJson() const { web::json::value val = web::json::value::object(); - if(objectIdIsSet_) { - val[utility::conversions::to_string_t("object_id")] = ModelBase::toJson(objectId_); - } if(offsetIsSet_) { val[utility::conversions::to_string_t("offset")] = ModelBase::toJson(offset_); } @@ -55,15 +50,6 @@ bool BlackWhiteListResponse_data::fromJson(const web::json::value& val) { bool ok = true; - if(val.has_field(utility::conversions::to_string_t("object_id"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("object_id")); - if(!fieldValue.is_null()) - { - std::string refVal; - ok &= ModelBase::fromJson(fieldValue, refVal); - setObjectId(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()) @@ -104,27 +90,6 @@ bool BlackWhiteListResponse_data::fromJson(const web::json::value& val) } -std::string BlackWhiteListResponse_data::getObjectId() const -{ - return objectId_; -} - -void BlackWhiteListResponse_data::setObjectId(const std::string& value) -{ - objectId_ = value; - objectIdIsSet_ = true; -} - -bool BlackWhiteListResponse_data::objectIdIsSet() const -{ - return objectIdIsSet_; -} - -void BlackWhiteListResponse_data::unsetobjectId() -{ - objectIdIsSet_ = false; -} - int32_t BlackWhiteListResponse_data::getOffset() const { return offset_; diff --git a/cfw/src/v1/model/CancelCaptureTaskDto.cpp b/cfw/src/v1/model/CancelCaptureTaskDto.cpp new file mode 100644 index 000000000..402390538 --- /dev/null +++ b/cfw/src/v1/model/CancelCaptureTaskDto.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/cfw/v1/model/CancelCaptureTaskDto.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + + + + +CancelCaptureTaskDto::CancelCaptureTaskDto() +{ + taskId_ = ""; + taskIdIsSet_ = false; +} + +CancelCaptureTaskDto::~CancelCaptureTaskDto() = default; + +void CancelCaptureTaskDto::validate() +{ +} + +web::json::value CancelCaptureTaskDto::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(taskIdIsSet_) { + val[utility::conversions::to_string_t("task_id")] = ModelBase::toJson(taskId_); + } + + return val; +} +bool CancelCaptureTaskDto::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("task_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("task_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTaskId(refVal); + } + } + return ok; +} + + +std::string CancelCaptureTaskDto::getTaskId() const +{ + return taskId_; +} + +void CancelCaptureTaskDto::setTaskId(const std::string& value) +{ + taskId_ = value; + taskIdIsSet_ = true; +} + +bool CancelCaptureTaskDto::taskIdIsSet() const +{ + return taskIdIsSet_; +} + +void CancelCaptureTaskDto::unsettaskId() +{ + taskIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cfw/src/v1/model/CancelCaptureTaskRequest.cpp b/cfw/src/v1/model/CancelCaptureTaskRequest.cpp new file mode 100644 index 000000000..7131fec9e --- /dev/null +++ b/cfw/src/v1/model/CancelCaptureTaskRequest.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/cfw/v1/model/CancelCaptureTaskRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + + + + +CancelCaptureTaskRequest::CancelCaptureTaskRequest() +{ + fwInstanceId_ = ""; + fwInstanceIdIsSet_ = false; + enterpriseProjectId_ = ""; + enterpriseProjectIdIsSet_ = false; + bodyIsSet_ = false; +} + +CancelCaptureTaskRequest::~CancelCaptureTaskRequest() = default; + +void CancelCaptureTaskRequest::validate() +{ +} + +web::json::value CancelCaptureTaskRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(fwInstanceIdIsSet_) { + val[utility::conversions::to_string_t("fw_instance_id")] = ModelBase::toJson(fwInstanceId_); + } + if(enterpriseProjectIdIsSet_) { + val[utility::conversions::to_string_t("enterprise_project_id")] = ModelBase::toJson(enterpriseProjectId_); + } + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + + return val; +} +bool CancelCaptureTaskRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("fw_instance_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("fw_instance_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFwInstanceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("enterprise_project_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("enterprise_project_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnterpriseProjectId(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()) + { + CancelCaptureTaskDto refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string CancelCaptureTaskRequest::getFwInstanceId() const +{ + return fwInstanceId_; +} + +void CancelCaptureTaskRequest::setFwInstanceId(const std::string& value) +{ + fwInstanceId_ = value; + fwInstanceIdIsSet_ = true; +} + +bool CancelCaptureTaskRequest::fwInstanceIdIsSet() const +{ + return fwInstanceIdIsSet_; +} + +void CancelCaptureTaskRequest::unsetfwInstanceId() +{ + fwInstanceIdIsSet_ = false; +} + +std::string CancelCaptureTaskRequest::getEnterpriseProjectId() const +{ + return enterpriseProjectId_; +} + +void CancelCaptureTaskRequest::setEnterpriseProjectId(const std::string& value) +{ + enterpriseProjectId_ = value; + enterpriseProjectIdIsSet_ = true; +} + +bool CancelCaptureTaskRequest::enterpriseProjectIdIsSet() const +{ + return enterpriseProjectIdIsSet_; +} + +void CancelCaptureTaskRequest::unsetenterpriseProjectId() +{ + enterpriseProjectIdIsSet_ = false; +} + +CancelCaptureTaskDto CancelCaptureTaskRequest::getBody() const +{ + return body_; +} + +void CancelCaptureTaskRequest::setBody(const CancelCaptureTaskDto& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool CancelCaptureTaskRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void CancelCaptureTaskRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cfw/src/v1/model/CancelCaptureTaskResponse.cpp b/cfw/src/v1/model/CancelCaptureTaskResponse.cpp new file mode 100644 index 000000000..f9878377a --- /dev/null +++ b/cfw/src/v1/model/CancelCaptureTaskResponse.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/cfw/v1/model/CancelCaptureTaskResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + + + + +CancelCaptureTaskResponse::CancelCaptureTaskResponse() +{ + dataIsSet_ = false; +} + +CancelCaptureTaskResponse::~CancelCaptureTaskResponse() = default; + +void CancelCaptureTaskResponse::validate() +{ +} + +web::json::value CancelCaptureTaskResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(dataIsSet_) { + val[utility::conversions::to_string_t("data")] = ModelBase::toJson(data_); + } + + return val; +} +bool CancelCaptureTaskResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("data"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("data")); + if(!fieldValue.is_null()) + { + IdObject refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setData(refVal); + } + } + return ok; +} + + +IdObject CancelCaptureTaskResponse::getData() const +{ + return data_; +} + +void CancelCaptureTaskResponse::setData(const IdObject& value) +{ + data_ = value; + dataIsSet_ = true; +} + +bool CancelCaptureTaskResponse::dataIsSet() const +{ + return dataIsSet_; +} + +void CancelCaptureTaskResponse::unsetdata() +{ + dataIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cfw/src/v1/model/CaptureFile.cpp b/cfw/src/v1/model/CaptureFile.cpp new file mode 100644 index 000000000..44e130385 --- /dev/null +++ b/cfw/src/v1/model/CaptureFile.cpp @@ -0,0 +1,149 @@ + + +#include "huaweicloud/cfw/v1/model/CaptureFile.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + + + + +CaptureFile::CaptureFile() +{ + fileName_ = ""; + fileNameIsSet_ = false; + url_ = ""; + urlIsSet_ = false; + filePath_ = ""; + filePathIsSet_ = false; +} + +CaptureFile::~CaptureFile() = default; + +void CaptureFile::validate() +{ +} + +web::json::value CaptureFile::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(fileNameIsSet_) { + val[utility::conversions::to_string_t("file_name")] = ModelBase::toJson(fileName_); + } + if(urlIsSet_) { + val[utility::conversions::to_string_t("url")] = ModelBase::toJson(url_); + } + if(filePathIsSet_) { + val[utility::conversions::to_string_t("file_path")] = ModelBase::toJson(filePath_); + } + + return val; +} +bool CaptureFile::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("file_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("file_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFileName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("url"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("url")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setUrl(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("file_path"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("file_path")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFilePath(refVal); + } + } + return ok; +} + + +std::string CaptureFile::getFileName() const +{ + return fileName_; +} + +void CaptureFile::setFileName(const std::string& value) +{ + fileName_ = value; + fileNameIsSet_ = true; +} + +bool CaptureFile::fileNameIsSet() const +{ + return fileNameIsSet_; +} + +void CaptureFile::unsetfileName() +{ + fileNameIsSet_ = false; +} + +std::string CaptureFile::getUrl() const +{ + return url_; +} + +void CaptureFile::setUrl(const std::string& value) +{ + url_ = value; + urlIsSet_ = true; +} + +bool CaptureFile::urlIsSet() const +{ + return urlIsSet_; +} + +void CaptureFile::unseturl() +{ + urlIsSet_ = false; +} + +std::string CaptureFile::getFilePath() const +{ + return filePath_; +} + +void CaptureFile::setFilePath(const std::string& value) +{ + filePath_ = value; + filePathIsSet_ = true; +} + +bool CaptureFile::filePathIsSet() const +{ + return filePathIsSet_; +} + +void CaptureFile::unsetfilePath() +{ + filePathIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cfw/src/v1/model/CaptureResultUrlVO.cpp b/cfw/src/v1/model/CaptureResultUrlVO.cpp new file mode 100644 index 000000000..8f5eb723d --- /dev/null +++ b/cfw/src/v1/model/CaptureResultUrlVO.cpp @@ -0,0 +1,217 @@ + + +#include "huaweicloud/cfw/v1/model/CaptureResultUrlVO.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + + + + +CaptureResultUrlVO::CaptureResultUrlVO() +{ + captcha_ = ""; + captchaIsSet_ = false; + expires_ = 0L; + expiresIsSet_ = false; + fileListIsSet_ = false; + requestHeaderIsSet_ = false; + url_ = ""; + urlIsSet_ = false; +} + +CaptureResultUrlVO::~CaptureResultUrlVO() = default; + +void CaptureResultUrlVO::validate() +{ +} + +web::json::value CaptureResultUrlVO::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(captchaIsSet_) { + val[utility::conversions::to_string_t("captcha")] = ModelBase::toJson(captcha_); + } + if(expiresIsSet_) { + val[utility::conversions::to_string_t("expires")] = ModelBase::toJson(expires_); + } + if(fileListIsSet_) { + val[utility::conversions::to_string_t("file_list")] = ModelBase::toJson(fileList_); + } + if(requestHeaderIsSet_) { + val[utility::conversions::to_string_t("request_header")] = ModelBase::toJson(requestHeader_); + } + if(urlIsSet_) { + val[utility::conversions::to_string_t("url")] = ModelBase::toJson(url_); + } + + return val; +} +bool CaptureResultUrlVO::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("captcha"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("captcha")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCaptcha(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("expires"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("expires")); + if(!fieldValue.is_null()) + { + int64_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setExpires(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("file_list"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("file_list")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFileList(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("request_header"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("request_header")); + if(!fieldValue.is_null()) + { + HostHeaderInfo refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRequestHeader(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("url"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("url")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setUrl(refVal); + } + } + return ok; +} + + +std::string CaptureResultUrlVO::getCaptcha() const +{ + return captcha_; +} + +void CaptureResultUrlVO::setCaptcha(const std::string& value) +{ + captcha_ = value; + captchaIsSet_ = true; +} + +bool CaptureResultUrlVO::captchaIsSet() const +{ + return captchaIsSet_; +} + +void CaptureResultUrlVO::unsetcaptcha() +{ + captchaIsSet_ = false; +} + +int64_t CaptureResultUrlVO::getExpires() const +{ + return expires_; +} + +void CaptureResultUrlVO::setExpires(int64_t value) +{ + expires_ = value; + expiresIsSet_ = true; +} + +bool CaptureResultUrlVO::expiresIsSet() const +{ + return expiresIsSet_; +} + +void CaptureResultUrlVO::unsetexpires() +{ + expiresIsSet_ = false; +} + +std::vector& CaptureResultUrlVO::getFileList() +{ + return fileList_; +} + +void CaptureResultUrlVO::setFileList(const std::vector& value) +{ + fileList_ = value; + fileListIsSet_ = true; +} + +bool CaptureResultUrlVO::fileListIsSet() const +{ + return fileListIsSet_; +} + +void CaptureResultUrlVO::unsetfileList() +{ + fileListIsSet_ = false; +} + +HostHeaderInfo CaptureResultUrlVO::getRequestHeader() const +{ + return requestHeader_; +} + +void CaptureResultUrlVO::setRequestHeader(const HostHeaderInfo& value) +{ + requestHeader_ = value; + requestHeaderIsSet_ = true; +} + +bool CaptureResultUrlVO::requestHeaderIsSet() const +{ + return requestHeaderIsSet_; +} + +void CaptureResultUrlVO::unsetrequestHeader() +{ + requestHeaderIsSet_ = false; +} + +std::string CaptureResultUrlVO::getUrl() const +{ + return url_; +} + +void CaptureResultUrlVO::setUrl(const std::string& value) +{ + url_ = value; + urlIsSet_ = true; +} + +bool CaptureResultUrlVO::urlIsSet() const +{ + return urlIsSet_; +} + +void CaptureResultUrlVO::unseturl() +{ + urlIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cfw/src/v1/model/CaptureRuleAddressDto.cpp b/cfw/src/v1/model/CaptureRuleAddressDto.cpp new file mode 100644 index 000000000..d01e701b0 --- /dev/null +++ b/cfw/src/v1/model/CaptureRuleAddressDto.cpp @@ -0,0 +1,149 @@ + + +#include "huaweicloud/cfw/v1/model/CaptureRuleAddressDto.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + + + + +CaptureRuleAddressDto::CaptureRuleAddressDto() +{ + address_ = ""; + addressIsSet_ = false; + addressType_ = 0; + addressTypeIsSet_ = false; + type_ = 0; + typeIsSet_ = false; +} + +CaptureRuleAddressDto::~CaptureRuleAddressDto() = default; + +void CaptureRuleAddressDto::validate() +{ +} + +web::json::value CaptureRuleAddressDto::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(addressIsSet_) { + val[utility::conversions::to_string_t("address")] = ModelBase::toJson(address_); + } + if(addressTypeIsSet_) { + val[utility::conversions::to_string_t("address_type")] = ModelBase::toJson(addressType_); + } + if(typeIsSet_) { + val[utility::conversions::to_string_t("type")] = ModelBase::toJson(type_); + } + + return val; +} +bool CaptureRuleAddressDto::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("address"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("address")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAddress(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("address_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("address_type")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAddressType(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()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setType(refVal); + } + } + return ok; +} + + +std::string CaptureRuleAddressDto::getAddress() const +{ + return address_; +} + +void CaptureRuleAddressDto::setAddress(const std::string& value) +{ + address_ = value; + addressIsSet_ = true; +} + +bool CaptureRuleAddressDto::addressIsSet() const +{ + return addressIsSet_; +} + +void CaptureRuleAddressDto::unsetaddress() +{ + addressIsSet_ = false; +} + +int32_t CaptureRuleAddressDto::getAddressType() const +{ + return addressType_; +} + +void CaptureRuleAddressDto::setAddressType(int32_t value) +{ + addressType_ = value; + addressTypeIsSet_ = true; +} + +bool CaptureRuleAddressDto::addressTypeIsSet() const +{ + return addressTypeIsSet_; +} + +void CaptureRuleAddressDto::unsetaddressType() +{ + addressTypeIsSet_ = false; +} + +int32_t CaptureRuleAddressDto::getType() const +{ + return type_; +} + +void CaptureRuleAddressDto::setType(int32_t value) +{ + type_ = value; + typeIsSet_ = true; +} + +bool CaptureRuleAddressDto::typeIsSet() const +{ + return typeIsSet_; +} + +void CaptureRuleAddressDto::unsettype() +{ + typeIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cfw/src/v1/model/CaptureServiceDto.cpp b/cfw/src/v1/model/CaptureServiceDto.cpp new file mode 100644 index 000000000..8c26a9321 --- /dev/null +++ b/cfw/src/v1/model/CaptureServiceDto.cpp @@ -0,0 +1,149 @@ + + +#include "huaweicloud/cfw/v1/model/CaptureServiceDto.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + + + + +CaptureServiceDto::CaptureServiceDto() +{ + destPort_ = ""; + destPortIsSet_ = false; + protocol_ = 0; + protocolIsSet_ = false; + sourcePort_ = ""; + sourcePortIsSet_ = false; +} + +CaptureServiceDto::~CaptureServiceDto() = default; + +void CaptureServiceDto::validate() +{ +} + +web::json::value CaptureServiceDto::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(destPortIsSet_) { + val[utility::conversions::to_string_t("dest_port")] = ModelBase::toJson(destPort_); + } + if(protocolIsSet_) { + val[utility::conversions::to_string_t("protocol")] = ModelBase::toJson(protocol_); + } + if(sourcePortIsSet_) { + val[utility::conversions::to_string_t("source_port")] = ModelBase::toJson(sourcePort_); + } + + return val; +} +bool CaptureServiceDto::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("dest_port"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("dest_port")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDestPort(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("protocol"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("protocol")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setProtocol(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("source_port"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("source_port")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSourcePort(refVal); + } + } + return ok; +} + + +std::string CaptureServiceDto::getDestPort() const +{ + return destPort_; +} + +void CaptureServiceDto::setDestPort(const std::string& value) +{ + destPort_ = value; + destPortIsSet_ = true; +} + +bool CaptureServiceDto::destPortIsSet() const +{ + return destPortIsSet_; +} + +void CaptureServiceDto::unsetdestPort() +{ + destPortIsSet_ = false; +} + +int32_t CaptureServiceDto::getProtocol() const +{ + return protocol_; +} + +void CaptureServiceDto::setProtocol(int32_t value) +{ + protocol_ = value; + protocolIsSet_ = true; +} + +bool CaptureServiceDto::protocolIsSet() const +{ + return protocolIsSet_; +} + +void CaptureServiceDto::unsetprotocol() +{ + protocolIsSet_ = false; +} + +std::string CaptureServiceDto::getSourcePort() const +{ + return sourcePort_; +} + +void CaptureServiceDto::setSourcePort(const std::string& value) +{ + sourcePort_ = value; + sourcePortIsSet_ = true; +} + +bool CaptureServiceDto::sourcePortIsSet() const +{ + return sourcePortIsSet_; +} + +void CaptureServiceDto::unsetsourcePort() +{ + sourcePortIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cfw/src/v1/model/CaptureTaskDto.cpp b/cfw/src/v1/model/CaptureTaskDto.cpp new file mode 100644 index 000000000..aca91ed15 --- /dev/null +++ b/cfw/src/v1/model/CaptureTaskDto.cpp @@ -0,0 +1,251 @@ + + +#include "huaweicloud/cfw/v1/model/CaptureTaskDto.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + + + + +CaptureTaskDto::CaptureTaskDto() +{ + destinationIsSet_ = false; + duration_ = 0; + durationIsSet_ = false; + maxPackets_ = 0; + maxPacketsIsSet_ = false; + name_ = ""; + nameIsSet_ = false; + serviceIsSet_ = false; + sourceIsSet_ = false; +} + +CaptureTaskDto::~CaptureTaskDto() = default; + +void CaptureTaskDto::validate() +{ +} + +web::json::value CaptureTaskDto::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(destinationIsSet_) { + val[utility::conversions::to_string_t("destination")] = ModelBase::toJson(destination_); + } + if(durationIsSet_) { + val[utility::conversions::to_string_t("duration")] = ModelBase::toJson(duration_); + } + if(maxPacketsIsSet_) { + val[utility::conversions::to_string_t("max_packets")] = ModelBase::toJson(maxPackets_); + } + if(nameIsSet_) { + val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); + } + if(serviceIsSet_) { + val[utility::conversions::to_string_t("service")] = ModelBase::toJson(service_); + } + if(sourceIsSet_) { + val[utility::conversions::to_string_t("source")] = ModelBase::toJson(source_); + } + + return val; +} +bool CaptureTaskDto::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("destination"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("destination")); + if(!fieldValue.is_null()) + { + CaptureRuleAddressDto refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDestination(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("duration"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("duration")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDuration(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("max_packets"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("max_packets")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setMaxPackets(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("service"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("service")); + if(!fieldValue.is_null()) + { + CaptureServiceDto refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setService(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("source"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("source")); + if(!fieldValue.is_null()) + { + CaptureRuleAddressDto refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSource(refVal); + } + } + return ok; +} + + +CaptureRuleAddressDto CaptureTaskDto::getDestination() const +{ + return destination_; +} + +void CaptureTaskDto::setDestination(const CaptureRuleAddressDto& value) +{ + destination_ = value; + destinationIsSet_ = true; +} + +bool CaptureTaskDto::destinationIsSet() const +{ + return destinationIsSet_; +} + +void CaptureTaskDto::unsetdestination() +{ + destinationIsSet_ = false; +} + +int32_t CaptureTaskDto::getDuration() const +{ + return duration_; +} + +void CaptureTaskDto::setDuration(int32_t value) +{ + duration_ = value; + durationIsSet_ = true; +} + +bool CaptureTaskDto::durationIsSet() const +{ + return durationIsSet_; +} + +void CaptureTaskDto::unsetduration() +{ + durationIsSet_ = false; +} + +int32_t CaptureTaskDto::getMaxPackets() const +{ + return maxPackets_; +} + +void CaptureTaskDto::setMaxPackets(int32_t value) +{ + maxPackets_ = value; + maxPacketsIsSet_ = true; +} + +bool CaptureTaskDto::maxPacketsIsSet() const +{ + return maxPacketsIsSet_; +} + +void CaptureTaskDto::unsetmaxPackets() +{ + maxPacketsIsSet_ = false; +} + +std::string CaptureTaskDto::getName() const +{ + return name_; +} + +void CaptureTaskDto::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool CaptureTaskDto::nameIsSet() const +{ + return nameIsSet_; +} + +void CaptureTaskDto::unsetname() +{ + nameIsSet_ = false; +} + +CaptureServiceDto CaptureTaskDto::getService() const +{ + return service_; +} + +void CaptureTaskDto::setService(const CaptureServiceDto& value) +{ + service_ = value; + serviceIsSet_ = true; +} + +bool CaptureTaskDto::serviceIsSet() const +{ + return serviceIsSet_; +} + +void CaptureTaskDto::unsetservice() +{ + serviceIsSet_ = false; +} + +CaptureRuleAddressDto CaptureTaskDto::getSource() const +{ + return source_; +} + +void CaptureTaskDto::setSource(const CaptureRuleAddressDto& value) +{ + source_ = value; + sourceIsSet_ = true; +} + +bool CaptureTaskDto::sourceIsSet() const +{ + return sourceIsSet_; +} + +void CaptureTaskDto::unsetsource() +{ + sourceIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cfw/src/v1/model/CaptureTaskVO.cpp b/cfw/src/v1/model/CaptureTaskVO.cpp new file mode 100644 index 000000000..36038eb83 --- /dev/null +++ b/cfw/src/v1/model/CaptureTaskVO.cpp @@ -0,0 +1,639 @@ + + +#include "huaweicloud/cfw/v1/model/CaptureTaskVO.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + + + + +CaptureTaskVO::CaptureTaskVO() +{ + captureSize_ = ""; + captureSizeIsSet_ = false; + createdDate_ = ""; + createdDateIsSet_ = false; + destAddress_ = ""; + destAddressIsSet_ = false; + destAddressType_ = 0; + destAddressTypeIsSet_ = false; + destPort_ = ""; + destPortIsSet_ = false; + duration_ = 0; + durationIsSet_ = false; + isDeleted_ = 0; + isDeletedIsSet_ = false; + maxPackets_ = 0; + maxPacketsIsSet_ = false; + modifiedDate_ = ""; + modifiedDateIsSet_ = false; + name_ = ""; + nameIsSet_ = false; + protocol_ = 0; + protocolIsSet_ = false; + remainingDays_ = 0; + remainingDaysIsSet_ = false; + sourceAddress_ = ""; + sourceAddressIsSet_ = false; + sourceAddressType_ = 0; + sourceAddressTypeIsSet_ = false; + sourcePort_ = ""; + sourcePortIsSet_ = false; + status_ = 0; + statusIsSet_ = false; + taskId_ = ""; + taskIdIsSet_ = false; +} + +CaptureTaskVO::~CaptureTaskVO() = default; + +void CaptureTaskVO::validate() +{ +} + +web::json::value CaptureTaskVO::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(captureSizeIsSet_) { + val[utility::conversions::to_string_t("capture_size")] = ModelBase::toJson(captureSize_); + } + if(createdDateIsSet_) { + val[utility::conversions::to_string_t("created_date")] = ModelBase::toJson(createdDate_); + } + if(destAddressIsSet_) { + val[utility::conversions::to_string_t("dest_address")] = ModelBase::toJson(destAddress_); + } + if(destAddressTypeIsSet_) { + val[utility::conversions::to_string_t("dest_address_type")] = ModelBase::toJson(destAddressType_); + } + if(destPortIsSet_) { + val[utility::conversions::to_string_t("dest_port")] = ModelBase::toJson(destPort_); + } + if(durationIsSet_) { + val[utility::conversions::to_string_t("duration")] = ModelBase::toJson(duration_); + } + if(isDeletedIsSet_) { + val[utility::conversions::to_string_t("is_deleted")] = ModelBase::toJson(isDeleted_); + } + if(maxPacketsIsSet_) { + val[utility::conversions::to_string_t("max_packets")] = ModelBase::toJson(maxPackets_); + } + if(modifiedDateIsSet_) { + val[utility::conversions::to_string_t("modified_date")] = ModelBase::toJson(modifiedDate_); + } + if(nameIsSet_) { + val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); + } + if(protocolIsSet_) { + val[utility::conversions::to_string_t("protocol")] = ModelBase::toJson(protocol_); + } + if(remainingDaysIsSet_) { + val[utility::conversions::to_string_t("remaining_days")] = ModelBase::toJson(remainingDays_); + } + if(sourceAddressIsSet_) { + val[utility::conversions::to_string_t("source_address")] = ModelBase::toJson(sourceAddress_); + } + if(sourceAddressTypeIsSet_) { + val[utility::conversions::to_string_t("source_address_type")] = ModelBase::toJson(sourceAddressType_); + } + if(sourcePortIsSet_) { + val[utility::conversions::to_string_t("source_port")] = ModelBase::toJson(sourcePort_); + } + if(statusIsSet_) { + val[utility::conversions::to_string_t("status")] = ModelBase::toJson(status_); + } + if(taskIdIsSet_) { + val[utility::conversions::to_string_t("task_id")] = ModelBase::toJson(taskId_); + } + + return val; +} +bool CaptureTaskVO::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("capture_size"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("capture_size")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCaptureSize(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("created_date"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("created_date")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCreatedDate(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("dest_address"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("dest_address")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDestAddress(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("dest_address_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("dest_address_type")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDestAddressType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("dest_port"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("dest_port")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDestPort(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("duration"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("duration")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDuration(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("is_deleted"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("is_deleted")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIsDeleted(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("max_packets"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("max_packets")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setMaxPackets(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("modified_date"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("modified_date")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setModifiedDate(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("protocol"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("protocol")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setProtocol(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("remaining_days"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("remaining_days")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRemainingDays(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("source_address"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("source_address")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSourceAddress(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("source_address_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("source_address_type")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSourceAddressType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("source_port"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("source_port")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSourcePort(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("status"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("status")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setStatus(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("task_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("task_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTaskId(refVal); + } + } + return ok; +} + + +std::string CaptureTaskVO::getCaptureSize() const +{ + return captureSize_; +} + +void CaptureTaskVO::setCaptureSize(const std::string& value) +{ + captureSize_ = value; + captureSizeIsSet_ = true; +} + +bool CaptureTaskVO::captureSizeIsSet() const +{ + return captureSizeIsSet_; +} + +void CaptureTaskVO::unsetcaptureSize() +{ + captureSizeIsSet_ = false; +} + +std::string CaptureTaskVO::getCreatedDate() const +{ + return createdDate_; +} + +void CaptureTaskVO::setCreatedDate(const std::string& value) +{ + createdDate_ = value; + createdDateIsSet_ = true; +} + +bool CaptureTaskVO::createdDateIsSet() const +{ + return createdDateIsSet_; +} + +void CaptureTaskVO::unsetcreatedDate() +{ + createdDateIsSet_ = false; +} + +std::string CaptureTaskVO::getDestAddress() const +{ + return destAddress_; +} + +void CaptureTaskVO::setDestAddress(const std::string& value) +{ + destAddress_ = value; + destAddressIsSet_ = true; +} + +bool CaptureTaskVO::destAddressIsSet() const +{ + return destAddressIsSet_; +} + +void CaptureTaskVO::unsetdestAddress() +{ + destAddressIsSet_ = false; +} + +int32_t CaptureTaskVO::getDestAddressType() const +{ + return destAddressType_; +} + +void CaptureTaskVO::setDestAddressType(int32_t value) +{ + destAddressType_ = value; + destAddressTypeIsSet_ = true; +} + +bool CaptureTaskVO::destAddressTypeIsSet() const +{ + return destAddressTypeIsSet_; +} + +void CaptureTaskVO::unsetdestAddressType() +{ + destAddressTypeIsSet_ = false; +} + +std::string CaptureTaskVO::getDestPort() const +{ + return destPort_; +} + +void CaptureTaskVO::setDestPort(const std::string& value) +{ + destPort_ = value; + destPortIsSet_ = true; +} + +bool CaptureTaskVO::destPortIsSet() const +{ + return destPortIsSet_; +} + +void CaptureTaskVO::unsetdestPort() +{ + destPortIsSet_ = false; +} + +int32_t CaptureTaskVO::getDuration() const +{ + return duration_; +} + +void CaptureTaskVO::setDuration(int32_t value) +{ + duration_ = value; + durationIsSet_ = true; +} + +bool CaptureTaskVO::durationIsSet() const +{ + return durationIsSet_; +} + +void CaptureTaskVO::unsetduration() +{ + durationIsSet_ = false; +} + +int32_t CaptureTaskVO::getIsDeleted() const +{ + return isDeleted_; +} + +void CaptureTaskVO::setIsDeleted(int32_t value) +{ + isDeleted_ = value; + isDeletedIsSet_ = true; +} + +bool CaptureTaskVO::isDeletedIsSet() const +{ + return isDeletedIsSet_; +} + +void CaptureTaskVO::unsetisDeleted() +{ + isDeletedIsSet_ = false; +} + +int32_t CaptureTaskVO::getMaxPackets() const +{ + return maxPackets_; +} + +void CaptureTaskVO::setMaxPackets(int32_t value) +{ + maxPackets_ = value; + maxPacketsIsSet_ = true; +} + +bool CaptureTaskVO::maxPacketsIsSet() const +{ + return maxPacketsIsSet_; +} + +void CaptureTaskVO::unsetmaxPackets() +{ + maxPacketsIsSet_ = false; +} + +std::string CaptureTaskVO::getModifiedDate() const +{ + return modifiedDate_; +} + +void CaptureTaskVO::setModifiedDate(const std::string& value) +{ + modifiedDate_ = value; + modifiedDateIsSet_ = true; +} + +bool CaptureTaskVO::modifiedDateIsSet() const +{ + return modifiedDateIsSet_; +} + +void CaptureTaskVO::unsetmodifiedDate() +{ + modifiedDateIsSet_ = false; +} + +std::string CaptureTaskVO::getName() const +{ + return name_; +} + +void CaptureTaskVO::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool CaptureTaskVO::nameIsSet() const +{ + return nameIsSet_; +} + +void CaptureTaskVO::unsetname() +{ + nameIsSet_ = false; +} + +int32_t CaptureTaskVO::getProtocol() const +{ + return protocol_; +} + +void CaptureTaskVO::setProtocol(int32_t value) +{ + protocol_ = value; + protocolIsSet_ = true; +} + +bool CaptureTaskVO::protocolIsSet() const +{ + return protocolIsSet_; +} + +void CaptureTaskVO::unsetprotocol() +{ + protocolIsSet_ = false; +} + +int32_t CaptureTaskVO::getRemainingDays() const +{ + return remainingDays_; +} + +void CaptureTaskVO::setRemainingDays(int32_t value) +{ + remainingDays_ = value; + remainingDaysIsSet_ = true; +} + +bool CaptureTaskVO::remainingDaysIsSet() const +{ + return remainingDaysIsSet_; +} + +void CaptureTaskVO::unsetremainingDays() +{ + remainingDaysIsSet_ = false; +} + +std::string CaptureTaskVO::getSourceAddress() const +{ + return sourceAddress_; +} + +void CaptureTaskVO::setSourceAddress(const std::string& value) +{ + sourceAddress_ = value; + sourceAddressIsSet_ = true; +} + +bool CaptureTaskVO::sourceAddressIsSet() const +{ + return sourceAddressIsSet_; +} + +void CaptureTaskVO::unsetsourceAddress() +{ + sourceAddressIsSet_ = false; +} + +int32_t CaptureTaskVO::getSourceAddressType() const +{ + return sourceAddressType_; +} + +void CaptureTaskVO::setSourceAddressType(int32_t value) +{ + sourceAddressType_ = value; + sourceAddressTypeIsSet_ = true; +} + +bool CaptureTaskVO::sourceAddressTypeIsSet() const +{ + return sourceAddressTypeIsSet_; +} + +void CaptureTaskVO::unsetsourceAddressType() +{ + sourceAddressTypeIsSet_ = false; +} + +std::string CaptureTaskVO::getSourcePort() const +{ + return sourcePort_; +} + +void CaptureTaskVO::setSourcePort(const std::string& value) +{ + sourcePort_ = value; + sourcePortIsSet_ = true; +} + +bool CaptureTaskVO::sourcePortIsSet() const +{ + return sourcePortIsSet_; +} + +void CaptureTaskVO::unsetsourcePort() +{ + sourcePortIsSet_ = false; +} + +int32_t CaptureTaskVO::getStatus() const +{ + return status_; +} + +void CaptureTaskVO::setStatus(int32_t value) +{ + status_ = value; + statusIsSet_ = true; +} + +bool CaptureTaskVO::statusIsSet() const +{ + return statusIsSet_; +} + +void CaptureTaskVO::unsetstatus() +{ + statusIsSet_ = false; +} + +std::string CaptureTaskVO::getTaskId() const +{ + return taskId_; +} + +void CaptureTaskVO::setTaskId(const std::string& value) +{ + taskId_ = value; + taskIdIsSet_ = true; +} + +bool CaptureTaskVO::taskIdIsSet() const +{ + return taskIdIsSet_; +} + +void CaptureTaskVO::unsettaskId() +{ + taskIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cfw/src/v1/model/ChangeIpsProtectModeResponse.cpp b/cfw/src/v1/model/ChangeIpsProtectModeResponse.cpp index f4bcfa23c..579b8a671 100644 --- a/cfw/src/v1/model/ChangeIpsProtectModeResponse.cpp +++ b/cfw/src/v1/model/ChangeIpsProtectModeResponse.cpp @@ -39,7 +39,7 @@ bool ChangeIpsProtectModeResponse::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("data")); if(!fieldValue.is_null()) { - IdObject refVal; + CommonResponseDTO_data refVal; ok &= ModelBase::fromJson(fieldValue, refVal); setData(refVal); } @@ -48,12 +48,12 @@ bool ChangeIpsProtectModeResponse::fromJson(const web::json::value& val) } -IdObject ChangeIpsProtectModeResponse::getData() const +CommonResponseDTO_data ChangeIpsProtectModeResponse::getData() const { return data_; } -void ChangeIpsProtectModeResponse::setData(const IdObject& value) +void ChangeIpsProtectModeResponse::setData(const CommonResponseDTO_data& value) { data_ = value; dataIsSet_ = true; diff --git a/cfw/src/v1/model/ChangeIpsSwitchStatusResponse.cpp b/cfw/src/v1/model/ChangeIpsSwitchStatusResponse.cpp index dc019f62b..7c70afea0 100644 --- a/cfw/src/v1/model/ChangeIpsSwitchStatusResponse.cpp +++ b/cfw/src/v1/model/ChangeIpsSwitchStatusResponse.cpp @@ -12,8 +12,6 @@ namespace Model { ChangeIpsSwitchStatusResponse::ChangeIpsSwitchStatusResponse() { - traceId_ = ""; - traceIdIsSet_ = false; dataIsSet_ = false; } @@ -27,9 +25,6 @@ web::json::value ChangeIpsSwitchStatusResponse::toJson() const { web::json::value val = web::json::value::object(); - if(traceIdIsSet_) { - val[utility::conversions::to_string_t("trace_id")] = ModelBase::toJson(traceId_); - } if(dataIsSet_) { val[utility::conversions::to_string_t("data")] = ModelBase::toJson(data_); } @@ -40,15 +35,6 @@ bool ChangeIpsSwitchStatusResponse::fromJson(const web::json::value& val) { bool ok = true; - if(val.has_field(utility::conversions::to_string_t("trace_id"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("trace_id")); - if(!fieldValue.is_null()) - { - std::string refVal; - ok &= ModelBase::fromJson(fieldValue, refVal); - setTraceId(refVal); - } - } if(val.has_field(utility::conversions::to_string_t("data"))) { const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("data")); if(!fieldValue.is_null()) @@ -62,27 +48,6 @@ bool ChangeIpsSwitchStatusResponse::fromJson(const web::json::value& val) } -std::string ChangeIpsSwitchStatusResponse::getTraceId() const -{ - return traceId_; -} - -void ChangeIpsSwitchStatusResponse::setTraceId(const std::string& value) -{ - traceId_ = value; - traceIdIsSet_ = true; -} - -bool ChangeIpsSwitchStatusResponse::traceIdIsSet() const -{ - return traceIdIsSet_; -} - -void ChangeIpsSwitchStatusResponse::unsettraceId() -{ - traceIdIsSet_ = false; -} - CommonResponseDTO_data ChangeIpsSwitchStatusResponse::getData() const { return data_; diff --git a/cfw/src/v1/model/CreateCaptureTaskRequest.cpp b/cfw/src/v1/model/CreateCaptureTaskRequest.cpp new file mode 100644 index 000000000..51fe2655e --- /dev/null +++ b/cfw/src/v1/model/CreateCaptureTaskRequest.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/cfw/v1/model/CreateCaptureTaskRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + + + + +CreateCaptureTaskRequest::CreateCaptureTaskRequest() +{ + enterpriseProjectId_ = ""; + enterpriseProjectIdIsSet_ = false; + fwInstanceId_ = ""; + fwInstanceIdIsSet_ = false; + bodyIsSet_ = false; +} + +CreateCaptureTaskRequest::~CreateCaptureTaskRequest() = default; + +void CreateCaptureTaskRequest::validate() +{ +} + +web::json::value CreateCaptureTaskRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(enterpriseProjectIdIsSet_) { + val[utility::conversions::to_string_t("enterprise_project_id")] = ModelBase::toJson(enterpriseProjectId_); + } + if(fwInstanceIdIsSet_) { + val[utility::conversions::to_string_t("fw_instance_id")] = ModelBase::toJson(fwInstanceId_); + } + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + + return val; +} +bool CreateCaptureTaskRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("enterprise_project_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("enterprise_project_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnterpriseProjectId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("fw_instance_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("fw_instance_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFwInstanceId(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()) + { + CaptureTaskDto refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string CreateCaptureTaskRequest::getEnterpriseProjectId() const +{ + return enterpriseProjectId_; +} + +void CreateCaptureTaskRequest::setEnterpriseProjectId(const std::string& value) +{ + enterpriseProjectId_ = value; + enterpriseProjectIdIsSet_ = true; +} + +bool CreateCaptureTaskRequest::enterpriseProjectIdIsSet() const +{ + return enterpriseProjectIdIsSet_; +} + +void CreateCaptureTaskRequest::unsetenterpriseProjectId() +{ + enterpriseProjectIdIsSet_ = false; +} + +std::string CreateCaptureTaskRequest::getFwInstanceId() const +{ + return fwInstanceId_; +} + +void CreateCaptureTaskRequest::setFwInstanceId(const std::string& value) +{ + fwInstanceId_ = value; + fwInstanceIdIsSet_ = true; +} + +bool CreateCaptureTaskRequest::fwInstanceIdIsSet() const +{ + return fwInstanceIdIsSet_; +} + +void CreateCaptureTaskRequest::unsetfwInstanceId() +{ + fwInstanceIdIsSet_ = false; +} + +CaptureTaskDto CreateCaptureTaskRequest::getBody() const +{ + return body_; +} + +void CreateCaptureTaskRequest::setBody(const CaptureTaskDto& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool CreateCaptureTaskRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void CreateCaptureTaskRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cfw/src/v1/model/CreateCaptureTaskResponse.cpp b/cfw/src/v1/model/CreateCaptureTaskResponse.cpp new file mode 100644 index 000000000..55bb8bdcd --- /dev/null +++ b/cfw/src/v1/model/CreateCaptureTaskResponse.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/cfw/v1/model/CreateCaptureTaskResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + + + + +CreateCaptureTaskResponse::CreateCaptureTaskResponse() +{ + dataIsSet_ = false; +} + +CreateCaptureTaskResponse::~CreateCaptureTaskResponse() = default; + +void CreateCaptureTaskResponse::validate() +{ +} + +web::json::value CreateCaptureTaskResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(dataIsSet_) { + val[utility::conversions::to_string_t("data")] = ModelBase::toJson(data_); + } + + return val; +} +bool CreateCaptureTaskResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("data"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("data")); + if(!fieldValue.is_null()) + { + IdObject refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setData(refVal); + } + } + return ok; +} + + +IdObject CreateCaptureTaskResponse::getData() const +{ + return data_; +} + +void CreateCaptureTaskResponse::setData(const IdObject& value) +{ + data_ = value; + dataIsSet_ = true; +} + +bool CreateCaptureTaskResponse::dataIsSet() const +{ + return dataIsSet_; +} + +void CreateCaptureTaskResponse::unsetdata() +{ + dataIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cfw/src/v1/model/CreateEWFirewallInspectVpcResp.cpp b/cfw/src/v1/model/CreateEWFirewallInspectVpcResp.cpp new file mode 100644 index 000000000..c5404d628 --- /dev/null +++ b/cfw/src/v1/model/CreateEWFirewallInspectVpcResp.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/cfw/v1/model/CreateEWFirewallInspectVpcResp.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + + + + +CreateEWFirewallInspectVpcResp::CreateEWFirewallInspectVpcResp() +{ + vpcId_ = ""; + vpcIdIsSet_ = false; + subnetIdsIsSet_ = false; +} + +CreateEWFirewallInspectVpcResp::~CreateEWFirewallInspectVpcResp() = default; + +void CreateEWFirewallInspectVpcResp::validate() +{ +} + +web::json::value CreateEWFirewallInspectVpcResp::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(vpcIdIsSet_) { + val[utility::conversions::to_string_t("vpc_id")] = ModelBase::toJson(vpcId_); + } + if(subnetIdsIsSet_) { + val[utility::conversions::to_string_t("subnet_ids")] = ModelBase::toJson(subnetIds_); + } + + return val; +} +bool CreateEWFirewallInspectVpcResp::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("vpc_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("vpc_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setVpcId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("subnet_ids"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("subnet_ids")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSubnetIds(refVal); + } + } + return ok; +} + + +std::string CreateEWFirewallInspectVpcResp::getVpcId() const +{ + return vpcId_; +} + +void CreateEWFirewallInspectVpcResp::setVpcId(const std::string& value) +{ + vpcId_ = value; + vpcIdIsSet_ = true; +} + +bool CreateEWFirewallInspectVpcResp::vpcIdIsSet() const +{ + return vpcIdIsSet_; +} + +void CreateEWFirewallInspectVpcResp::unsetvpcId() +{ + vpcIdIsSet_ = false; +} + +std::vector& CreateEWFirewallInspectVpcResp::getSubnetIds() +{ + return subnetIds_; +} + +void CreateEWFirewallInspectVpcResp::setSubnetIds(const std::vector& value) +{ + subnetIds_ = value; + subnetIdsIsSet_ = true; +} + +bool CreateEWFirewallInspectVpcResp::subnetIdsIsSet() const +{ + return subnetIdsIsSet_; +} + +void CreateEWFirewallInspectVpcResp::unsetsubnetIds() +{ + subnetIdsIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cfw/src/v1/model/CreateEWFirewallResp.cpp b/cfw/src/v1/model/CreateEWFirewallResp.cpp new file mode 100644 index 000000000..4362ab555 --- /dev/null +++ b/cfw/src/v1/model/CreateEWFirewallResp.cpp @@ -0,0 +1,147 @@ + + +#include "huaweicloud/cfw/v1/model/CreateEWFirewallResp.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + + + + +CreateEWFirewallResp::CreateEWFirewallResp() +{ + id_ = ""; + idIsSet_ = false; + erIsSet_ = false; + inspertionVpcIsSet_ = false; +} + +CreateEWFirewallResp::~CreateEWFirewallResp() = default; + +void CreateEWFirewallResp::validate() +{ +} + +web::json::value CreateEWFirewallResp::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(idIsSet_) { + val[utility::conversions::to_string_t("id")] = ModelBase::toJson(id_); + } + if(erIsSet_) { + val[utility::conversions::to_string_t("er")] = ModelBase::toJson(er_); + } + if(inspertionVpcIsSet_) { + val[utility::conversions::to_string_t("inspertion_vpc")] = ModelBase::toJson(inspertionVpc_); + } + + return val; +} +bool CreateEWFirewallResp::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("er"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("er")); + if(!fieldValue.is_null()) + { + ER refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEr(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("inspertion_vpc"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("inspertion_vpc")); + if(!fieldValue.is_null()) + { + CreateEWFirewallInspectVpcResp refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInspertionVpc(refVal); + } + } + return ok; +} + + +std::string CreateEWFirewallResp::getId() const +{ + return id_; +} + +void CreateEWFirewallResp::setId(const std::string& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool CreateEWFirewallResp::idIsSet() const +{ + return idIsSet_; +} + +void CreateEWFirewallResp::unsetid() +{ + idIsSet_ = false; +} + +ER CreateEWFirewallResp::getEr() const +{ + return er_; +} + +void CreateEWFirewallResp::setEr(const ER& value) +{ + er_ = value; + erIsSet_ = true; +} + +bool CreateEWFirewallResp::erIsSet() const +{ + return erIsSet_; +} + +void CreateEWFirewallResp::unseter() +{ + erIsSet_ = false; +} + +CreateEWFirewallInspectVpcResp CreateEWFirewallResp::getInspertionVpc() const +{ + return inspertionVpc_; +} + +void CreateEWFirewallResp::setInspertionVpc(const CreateEWFirewallInspectVpcResp& value) +{ + inspertionVpc_ = value; + inspertionVpcIsSet_ = true; +} + +bool CreateEWFirewallResp::inspertionVpcIsSet() const +{ + return inspertionVpcIsSet_; +} + +void CreateEWFirewallResp::unsetinspertionVpc() +{ + inspertionVpcIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cfw/src/v1/model/CreateEastWestFirewallResponse.cpp b/cfw/src/v1/model/CreateEastWestFirewallResponse.cpp index 1af941f8b..f8bcd7b52 100644 --- a/cfw/src/v1/model/CreateEastWestFirewallResponse.cpp +++ b/cfw/src/v1/model/CreateEastWestFirewallResponse.cpp @@ -39,7 +39,7 @@ bool CreateEastWestFirewallResponse::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("data")); if(!fieldValue.is_null()) { - IdObject refVal; + CreateEWFirewallResp refVal; ok &= ModelBase::fromJson(fieldValue, refVal); setData(refVal); } @@ -48,12 +48,12 @@ bool CreateEastWestFirewallResponse::fromJson(const web::json::value& val) } -IdObject CreateEastWestFirewallResponse::getData() const +CreateEWFirewallResp CreateEastWestFirewallResponse::getData() const { return data_; } -void CreateEastWestFirewallResponse::setData(const IdObject& value) +void CreateEastWestFirewallResponse::setData(const CreateEWFirewallResp& value) { data_ = value; dataIsSet_ = true; diff --git a/cfw/src/v1/model/CreateFirewallRequest.cpp b/cfw/src/v1/model/CreateFirewallRequest.cpp index bb049f84d..2017adab0 100644 --- a/cfw/src/v1/model/CreateFirewallRequest.cpp +++ b/cfw/src/v1/model/CreateFirewallRequest.cpp @@ -14,8 +14,6 @@ CreateFirewallRequest::CreateFirewallRequest() { xClientToken_ = ""; xClientTokenIsSet_ = false; - xTraceId_ = ""; - xTraceIdIsSet_ = false; bodyIsSet_ = false; } @@ -32,9 +30,6 @@ web::json::value CreateFirewallRequest::toJson() const if(xClientTokenIsSet_) { val[utility::conversions::to_string_t("X-Client-Token")] = ModelBase::toJson(xClientToken_); } - if(xTraceIdIsSet_) { - val[utility::conversions::to_string_t("X-Trace-Id")] = ModelBase::toJson(xTraceId_); - } if(bodyIsSet_) { val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); } @@ -54,15 +49,6 @@ bool CreateFirewallRequest::fromJson(const web::json::value& val) setXClientToken(refVal); } } - if(val.has_field(utility::conversions::to_string_t("X-Trace-Id"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("X-Trace-Id")); - if(!fieldValue.is_null()) - { - std::string refVal; - ok &= ModelBase::fromJson(fieldValue, refVal); - setXTraceId(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()) @@ -97,27 +83,6 @@ void CreateFirewallRequest::unsetxClientToken() xClientTokenIsSet_ = false; } -std::string CreateFirewallRequest::getXTraceId() const -{ - return xTraceId_; -} - -void CreateFirewallRequest::setXTraceId(const std::string& value) -{ - xTraceId_ = value; - xTraceIdIsSet_ = true; -} - -bool CreateFirewallRequest::xTraceIdIsSet() const -{ - return xTraceIdIsSet_; -} - -void CreateFirewallRequest::unsetxTraceId() -{ - xTraceIdIsSet_ = false; -} - CreateFirewallReq CreateFirewallRequest::getBody() const { return body_; diff --git a/cfw/src/v1/model/Tag.cpp b/cfw/src/v1/model/CreateTag.cpp similarity index 73% rename from cfw/src/v1/model/Tag.cpp rename to cfw/src/v1/model/CreateTag.cpp index 507ade720..c25ac952c 100644 --- a/cfw/src/v1/model/Tag.cpp +++ b/cfw/src/v1/model/CreateTag.cpp @@ -1,6 +1,6 @@ -#include "huaweicloud/cfw/v1/model/Tag.h" +#include "huaweicloud/cfw/v1/model/CreateTag.h" namespace HuaweiCloud { namespace Sdk { namespace Cfw { @@ -10,7 +10,7 @@ namespace Model { -Tag::Tag() +CreateTag::CreateTag() { key_ = ""; keyIsSet_ = false; @@ -18,13 +18,13 @@ Tag::Tag() valueIsSet_ = false; } -Tag::~Tag() = default; +CreateTag::~CreateTag() = default; -void Tag::validate() +void CreateTag::validate() { } -web::json::value Tag::toJson() const +web::json::value CreateTag::toJson() const { web::json::value val = web::json::value::object(); @@ -37,7 +37,7 @@ web::json::value Tag::toJson() const return val; } -bool Tag::fromJson(const web::json::value& val) +bool CreateTag::fromJson(const web::json::value& val) { bool ok = true; @@ -63,44 +63,44 @@ bool Tag::fromJson(const web::json::value& val) } -std::string Tag::getKey() const +std::string CreateTag::getKey() const { return key_; } -void Tag::setKey(const std::string& value) +void CreateTag::setKey(const std::string& value) { key_ = value; keyIsSet_ = true; } -bool Tag::keyIsSet() const +bool CreateTag::keyIsSet() const { return keyIsSet_; } -void Tag::unsetkey() +void CreateTag::unsetkey() { keyIsSet_ = false; } -std::string Tag::getValue() const +std::string CreateTag::getValue() const { return value_; } -void Tag::setValue(const std::string& value) +void CreateTag::setValue(const std::string& value) { value_ = value; valueIsSet_ = true; } -bool Tag::valueIsSet() const +bool CreateTag::valueIsSet() const { return valueIsSet_; } -void Tag::unsetvalue() +void CreateTag::unsetvalue() { valueIsSet_ = false; } diff --git a/cfw/src/v1/model/CreateTagRequest.cpp b/cfw/src/v1/model/CreateTagRequest.cpp new file mode 100644 index 000000000..611ff6653 --- /dev/null +++ b/cfw/src/v1/model/CreateTagRequest.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/cfw/v1/model/CreateTagRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + + + + +CreateTagRequest::CreateTagRequest() +{ + fwInstanceId_ = ""; + fwInstanceIdIsSet_ = false; + bodyIsSet_ = false; +} + +CreateTagRequest::~CreateTagRequest() = default; + +void CreateTagRequest::validate() +{ +} + +web::json::value CreateTagRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(fwInstanceIdIsSet_) { + val[utility::conversions::to_string_t("fw_instance_id")] = ModelBase::toJson(fwInstanceId_); + } + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + + return val; +} +bool CreateTagRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("fw_instance_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("fw_instance_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFwInstanceId(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()) + { + CreateTagsDto refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string CreateTagRequest::getFwInstanceId() const +{ + return fwInstanceId_; +} + +void CreateTagRequest::setFwInstanceId(const std::string& value) +{ + fwInstanceId_ = value; + fwInstanceIdIsSet_ = true; +} + +bool CreateTagRequest::fwInstanceIdIsSet() const +{ + return fwInstanceIdIsSet_; +} + +void CreateTagRequest::unsetfwInstanceId() +{ + fwInstanceIdIsSet_ = false; +} + +CreateTagsDto CreateTagRequest::getBody() const +{ + return body_; +} + +void CreateTagRequest::setBody(const CreateTagsDto& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool CreateTagRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void CreateTagRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cfw/src/v1/model/CreateTagResponse.cpp b/cfw/src/v1/model/CreateTagResponse.cpp new file mode 100644 index 000000000..4bb1c5897 --- /dev/null +++ b/cfw/src/v1/model/CreateTagResponse.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/cfw/v1/model/CreateTagResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + + + + +CreateTagResponse::CreateTagResponse() +{ + body_ = ""; + bodyIsSet_ = false; +} + +CreateTagResponse::~CreateTagResponse() = default; + +void CreateTagResponse::validate() +{ +} + +web::json::value CreateTagResponse::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 CreateTagResponse::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()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string CreateTagResponse::getBody() const +{ + return body_; +} + +void CreateTagResponse::setBody(const std::string& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool CreateTagResponse::bodyIsSet() const +{ + return bodyIsSet_; +} + +void CreateTagResponse::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cfw/src/v1/model/CreateTagsDto.cpp b/cfw/src/v1/model/CreateTagsDto.cpp new file mode 100644 index 000000000..b3463a317 --- /dev/null +++ b/cfw/src/v1/model/CreateTagsDto.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/cfw/v1/model/CreateTagsDto.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + + + + +CreateTagsDto::CreateTagsDto() +{ + tagsIsSet_ = false; +} + +CreateTagsDto::~CreateTagsDto() = default; + +void CreateTagsDto::validate() +{ +} + +web::json::value CreateTagsDto::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(tagsIsSet_) { + val[utility::conversions::to_string_t("tags")] = ModelBase::toJson(tags_); + } + + return val; +} +bool CreateTagsDto::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTags(refVal); + } + } + return ok; +} + + +std::vector& CreateTagsDto::getTags() +{ + return tags_; +} + +void CreateTagsDto::setTags(const std::vector& value) +{ + tags_ = value; + tagsIsSet_ = true; +} + +bool CreateTagsDto::tagsIsSet() const +{ + return tagsIsSet_; +} + +void CreateTagsDto::unsettags() +{ + tagsIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cfw/src/v1/model/DeleteCaptureTaskDto.cpp b/cfw/src/v1/model/DeleteCaptureTaskDto.cpp new file mode 100644 index 000000000..5f8912b9e --- /dev/null +++ b/cfw/src/v1/model/DeleteCaptureTaskDto.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/cfw/v1/model/DeleteCaptureTaskDto.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + + + + +DeleteCaptureTaskDto::DeleteCaptureTaskDto() +{ + taskIdsIsSet_ = false; +} + +DeleteCaptureTaskDto::~DeleteCaptureTaskDto() = default; + +void DeleteCaptureTaskDto::validate() +{ +} + +web::json::value DeleteCaptureTaskDto::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(taskIdsIsSet_) { + val[utility::conversions::to_string_t("task_ids")] = ModelBase::toJson(taskIds_); + } + + return val; +} +bool DeleteCaptureTaskDto::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("task_ids"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("task_ids")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTaskIds(refVal); + } + } + return ok; +} + + +std::vector& DeleteCaptureTaskDto::getTaskIds() +{ + return taskIds_; +} + +void DeleteCaptureTaskDto::setTaskIds(const std::vector& value) +{ + taskIds_ = value; + taskIdsIsSet_ = true; +} + +bool DeleteCaptureTaskDto::taskIdsIsSet() const +{ + return taskIdsIsSet_; +} + +void DeleteCaptureTaskDto::unsettaskIds() +{ + taskIdsIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cfw/src/v1/model/DeleteCaptureTaskRequest.cpp b/cfw/src/v1/model/DeleteCaptureTaskRequest.cpp new file mode 100644 index 000000000..13c723dd7 --- /dev/null +++ b/cfw/src/v1/model/DeleteCaptureTaskRequest.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/cfw/v1/model/DeleteCaptureTaskRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + + + + +DeleteCaptureTaskRequest::DeleteCaptureTaskRequest() +{ + fwInstanceId_ = ""; + fwInstanceIdIsSet_ = false; + enterpriseProjectId_ = ""; + enterpriseProjectIdIsSet_ = false; + bodyIsSet_ = false; +} + +DeleteCaptureTaskRequest::~DeleteCaptureTaskRequest() = default; + +void DeleteCaptureTaskRequest::validate() +{ +} + +web::json::value DeleteCaptureTaskRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(fwInstanceIdIsSet_) { + val[utility::conversions::to_string_t("fw_instance_id")] = ModelBase::toJson(fwInstanceId_); + } + if(enterpriseProjectIdIsSet_) { + val[utility::conversions::to_string_t("enterprise_project_id")] = ModelBase::toJson(enterpriseProjectId_); + } + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + + return val; +} +bool DeleteCaptureTaskRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("fw_instance_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("fw_instance_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFwInstanceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("enterprise_project_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("enterprise_project_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnterpriseProjectId(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()) + { + DeleteCaptureTaskDto refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string DeleteCaptureTaskRequest::getFwInstanceId() const +{ + return fwInstanceId_; +} + +void DeleteCaptureTaskRequest::setFwInstanceId(const std::string& value) +{ + fwInstanceId_ = value; + fwInstanceIdIsSet_ = true; +} + +bool DeleteCaptureTaskRequest::fwInstanceIdIsSet() const +{ + return fwInstanceIdIsSet_; +} + +void DeleteCaptureTaskRequest::unsetfwInstanceId() +{ + fwInstanceIdIsSet_ = false; +} + +std::string DeleteCaptureTaskRequest::getEnterpriseProjectId() const +{ + return enterpriseProjectId_; +} + +void DeleteCaptureTaskRequest::setEnterpriseProjectId(const std::string& value) +{ + enterpriseProjectId_ = value; + enterpriseProjectIdIsSet_ = true; +} + +bool DeleteCaptureTaskRequest::enterpriseProjectIdIsSet() const +{ + return enterpriseProjectIdIsSet_; +} + +void DeleteCaptureTaskRequest::unsetenterpriseProjectId() +{ + enterpriseProjectIdIsSet_ = false; +} + +DeleteCaptureTaskDto DeleteCaptureTaskRequest::getBody() const +{ + return body_; +} + +void DeleteCaptureTaskRequest::setBody(const DeleteCaptureTaskDto& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool DeleteCaptureTaskRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void DeleteCaptureTaskRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cfw/src/v1/model/DeleteCaptureTaskResponse.cpp b/cfw/src/v1/model/DeleteCaptureTaskResponse.cpp new file mode 100644 index 000000000..2ba98c9b8 --- /dev/null +++ b/cfw/src/v1/model/DeleteCaptureTaskResponse.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/cfw/v1/model/DeleteCaptureTaskResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + + + + +DeleteCaptureTaskResponse::DeleteCaptureTaskResponse() +{ + dataIsSet_ = false; +} + +DeleteCaptureTaskResponse::~DeleteCaptureTaskResponse() = default; + +void DeleteCaptureTaskResponse::validate() +{ +} + +web::json::value DeleteCaptureTaskResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(dataIsSet_) { + val[utility::conversions::to_string_t("data")] = ModelBase::toJson(data_); + } + + return val; +} +bool DeleteCaptureTaskResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("data"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("data")); + if(!fieldValue.is_null()) + { + IdObject refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setData(refVal); + } + } + return ok; +} + + +IdObject DeleteCaptureTaskResponse::getData() const +{ + return data_; +} + +void DeleteCaptureTaskResponse::setData(const IdObject& value) +{ + data_ = value; + dataIsSet_ = true; +} + +bool DeleteCaptureTaskResponse::dataIsSet() const +{ + return dataIsSet_; +} + +void DeleteCaptureTaskResponse::unsetdata() +{ + dataIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cfw/src/v1/model/DeleteTagRequest.cpp b/cfw/src/v1/model/DeleteTagRequest.cpp new file mode 100644 index 000000000..598a786bd --- /dev/null +++ b/cfw/src/v1/model/DeleteTagRequest.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/cfw/v1/model/DeleteTagRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + + + + +DeleteTagRequest::DeleteTagRequest() +{ + fwInstanceId_ = ""; + fwInstanceIdIsSet_ = false; + bodyIsSet_ = false; +} + +DeleteTagRequest::~DeleteTagRequest() = default; + +void DeleteTagRequest::validate() +{ +} + +web::json::value DeleteTagRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(fwInstanceIdIsSet_) { + val[utility::conversions::to_string_t("fw_instance_id")] = ModelBase::toJson(fwInstanceId_); + } + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + + return val; +} +bool DeleteTagRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("fw_instance_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("fw_instance_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFwInstanceId(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()) + { + DeleteTagsDto refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string DeleteTagRequest::getFwInstanceId() const +{ + return fwInstanceId_; +} + +void DeleteTagRequest::setFwInstanceId(const std::string& value) +{ + fwInstanceId_ = value; + fwInstanceIdIsSet_ = true; +} + +bool DeleteTagRequest::fwInstanceIdIsSet() const +{ + return fwInstanceIdIsSet_; +} + +void DeleteTagRequest::unsetfwInstanceId() +{ + fwInstanceIdIsSet_ = false; +} + +DeleteTagsDto DeleteTagRequest::getBody() const +{ + return body_; +} + +void DeleteTagRequest::setBody(const DeleteTagsDto& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool DeleteTagRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void DeleteTagRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cfw/src/v1/model/DeleteTagResponse.cpp b/cfw/src/v1/model/DeleteTagResponse.cpp new file mode 100644 index 000000000..33bc96b7e --- /dev/null +++ b/cfw/src/v1/model/DeleteTagResponse.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/cfw/v1/model/DeleteTagResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + + + + +DeleteTagResponse::DeleteTagResponse() +{ + body_ = ""; + bodyIsSet_ = false; +} + +DeleteTagResponse::~DeleteTagResponse() = default; + +void DeleteTagResponse::validate() +{ +} + +web::json::value DeleteTagResponse::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 DeleteTagResponse::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()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string DeleteTagResponse::getBody() const +{ + return body_; +} + +void DeleteTagResponse::setBody(const std::string& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool DeleteTagResponse::bodyIsSet() const +{ + return bodyIsSet_; +} + +void DeleteTagResponse::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cfw/src/v1/model/DeleteTagsDto.cpp b/cfw/src/v1/model/DeleteTagsDto.cpp new file mode 100644 index 000000000..57360df2a --- /dev/null +++ b/cfw/src/v1/model/DeleteTagsDto.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/cfw/v1/model/DeleteTagsDto.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + + + + +DeleteTagsDto::DeleteTagsDto() +{ + tagsIsSet_ = false; +} + +DeleteTagsDto::~DeleteTagsDto() = default; + +void DeleteTagsDto::validate() +{ +} + +web::json::value DeleteTagsDto::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(tagsIsSet_) { + val[utility::conversions::to_string_t("tags")] = ModelBase::toJson(tags_); + } + + return val; +} +bool DeleteTagsDto::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTags(refVal); + } + } + return ok; +} + + +std::vector& DeleteTagsDto::getTags() +{ + return tags_; +} + +void DeleteTagsDto::setTags(const std::vector& value) +{ + tags_ = value; + tagsIsSet_ = true; +} + +bool DeleteTagsDto::tagsIsSet() const +{ + return tagsIsSet_; +} + +void DeleteTagsDto::unsettags() +{ + tagsIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cfw/src/v1/model/ER.cpp b/cfw/src/v1/model/ER.cpp new file mode 100644 index 000000000..055cf04ed --- /dev/null +++ b/cfw/src/v1/model/ER.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/cfw/v1/model/ER.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + + + + +ER::ER() +{ + erId_ = ""; + erIdIsSet_ = false; + erAttachId_ = ""; + erAttachIdIsSet_ = false; +} + +ER::~ER() = default; + +void ER::validate() +{ +} + +web::json::value ER::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(erIdIsSet_) { + val[utility::conversions::to_string_t("er_id")] = ModelBase::toJson(erId_); + } + if(erAttachIdIsSet_) { + val[utility::conversions::to_string_t("er_attach_id")] = ModelBase::toJson(erAttachId_); + } + + return val; +} +bool ER::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("er_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("er_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setErId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("er_attach_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("er_attach_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setErAttachId(refVal); + } + } + return ok; +} + + +std::string ER::getErId() const +{ + return erId_; +} + +void ER::setErId(const std::string& value) +{ + erId_ = value; + erIdIsSet_ = true; +} + +bool ER::erIdIsSet() const +{ + return erIdIsSet_; +} + +void ER::unseterId() +{ + erIdIsSet_ = false; +} + +std::string ER::getErAttachId() const +{ + return erAttachId_; +} + +void ER::setErAttachId(const std::string& value) +{ + erAttachId_ = value; + erAttachIdIsSet_ = true; +} + +bool ER::erAttachIdIsSet() const +{ + return erAttachIdIsSet_; +} + +void ER::unseterAttachId() +{ + erAttachIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cfw/src/v1/model/ErInstance.cpp b/cfw/src/v1/model/ErInstance.cpp index daec224cf..73e573fbc 100644 --- a/cfw/src/v1/model/ErInstance.cpp +++ b/cfw/src/v1/model/ErInstance.cpp @@ -24,6 +24,8 @@ ErInstance::ErInstance() projectIdIsSet_ = false; enableIpv6_ = ""; enableIpv6IsSet_ = false; + attachmentId_ = ""; + attachmentIdIsSet_ = false; } ErInstance::~ErInstance() = default; @@ -54,6 +56,9 @@ web::json::value ErInstance::toJson() const if(enableIpv6IsSet_) { val[utility::conversions::to_string_t("enable_ipv6")] = ModelBase::toJson(enableIpv6_); } + if(attachmentIdIsSet_) { + val[utility::conversions::to_string_t("attachment_id")] = ModelBase::toJson(attachmentId_); + } return val; } @@ -115,6 +120,15 @@ bool ErInstance::fromJson(const web::json::value& val) setEnableIpv6(refVal); } } + if(val.has_field(utility::conversions::to_string_t("attachment_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("attachment_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAttachmentId(refVal); + } + } return ok; } @@ -245,6 +259,27 @@ void ErInstance::unsetenableIpv6() enableIpv6IsSet_ = false; } +std::string ErInstance::getAttachmentId() const +{ + return attachmentId_; +} + +void ErInstance::setAttachmentId(const std::string& value) +{ + attachmentId_ = value; + attachmentIdIsSet_ = true; +} + +bool ErInstance::attachmentIdIsSet() const +{ + return attachmentIdIsSet_; +} + +void ErInstance::unsetattachmentId() +{ + attachmentIdIsSet_ = false; +} + } } } diff --git a/cfw/src/v1/model/Flavor.cpp b/cfw/src/v1/model/Flavor.cpp index 6867cf3b1..5ccd440a8 100644 --- a/cfw/src/v1/model/Flavor.cpp +++ b/cfw/src/v1/model/Flavor.cpp @@ -22,16 +22,6 @@ Flavor::Flavor() bandwidthIsSet_ = false; logStorage_ = 0; logStorageIsSet_ = false; - sessionConcurrent_ = 0; - sessionConcurrentIsSet_ = false; - sessionCreate_ = 0; - sessionCreateIsSet_ = false; - totalRuleCount_ = 0; - totalRuleCountIsSet_ = false; - usedRuleCount_ = 0; - usedRuleCountIsSet_ = false; - vpcBandwith_ = 0; - vpcBandwithIsSet_ = false; defaultBandwidth_ = 0; defaultBandwidthIsSet_ = false; defaultEipCount_ = 0; @@ -67,21 +57,6 @@ web::json::value Flavor::toJson() const if(logStorageIsSet_) { val[utility::conversions::to_string_t("log_storage")] = ModelBase::toJson(logStorage_); } - if(sessionConcurrentIsSet_) { - val[utility::conversions::to_string_t("session_concurrent")] = ModelBase::toJson(sessionConcurrent_); - } - if(sessionCreateIsSet_) { - val[utility::conversions::to_string_t("session_create")] = ModelBase::toJson(sessionCreate_); - } - if(totalRuleCountIsSet_) { - val[utility::conversions::to_string_t("total_rule_count")] = ModelBase::toJson(totalRuleCount_); - } - if(usedRuleCountIsSet_) { - val[utility::conversions::to_string_t("used_rule_count")] = ModelBase::toJson(usedRuleCount_); - } - if(vpcBandwithIsSet_) { - val[utility::conversions::to_string_t("vpc_bandwith")] = ModelBase::toJson(vpcBandwith_); - } if(defaultBandwidthIsSet_) { val[utility::conversions::to_string_t("default_bandwidth")] = ModelBase::toJson(defaultBandwidth_); } @@ -146,51 +121,6 @@ bool Flavor::fromJson(const web::json::value& val) setLogStorage(refVal); } } - if(val.has_field(utility::conversions::to_string_t("session_concurrent"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("session_concurrent")); - if(!fieldValue.is_null()) - { - int32_t refVal; - ok &= ModelBase::fromJson(fieldValue, refVal); - setSessionConcurrent(refVal); - } - } - if(val.has_field(utility::conversions::to_string_t("session_create"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("session_create")); - if(!fieldValue.is_null()) - { - int32_t refVal; - ok &= ModelBase::fromJson(fieldValue, refVal); - setSessionCreate(refVal); - } - } - if(val.has_field(utility::conversions::to_string_t("total_rule_count"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("total_rule_count")); - if(!fieldValue.is_null()) - { - int32_t refVal; - ok &= ModelBase::fromJson(fieldValue, refVal); - setTotalRuleCount(refVal); - } - } - if(val.has_field(utility::conversions::to_string_t("used_rule_count"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("used_rule_count")); - if(!fieldValue.is_null()) - { - int32_t refVal; - ok &= ModelBase::fromJson(fieldValue, refVal); - setUsedRuleCount(refVal); - } - } - if(val.has_field(utility::conversions::to_string_t("vpc_bandwith"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("vpc_bandwith")); - if(!fieldValue.is_null()) - { - int32_t refVal; - ok &= ModelBase::fromJson(fieldValue, refVal); - setVpcBandwith(refVal); - } - } if(val.has_field(utility::conversions::to_string_t("default_bandwidth"))) { const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("default_bandwidth")); if(!fieldValue.is_null()) @@ -336,111 +266,6 @@ void Flavor::unsetlogStorage() logStorageIsSet_ = false; } -int32_t Flavor::getSessionConcurrent() const -{ - return sessionConcurrent_; -} - -void Flavor::setSessionConcurrent(int32_t value) -{ - sessionConcurrent_ = value; - sessionConcurrentIsSet_ = true; -} - -bool Flavor::sessionConcurrentIsSet() const -{ - return sessionConcurrentIsSet_; -} - -void Flavor::unsetsessionConcurrent() -{ - sessionConcurrentIsSet_ = false; -} - -int32_t Flavor::getSessionCreate() const -{ - return sessionCreate_; -} - -void Flavor::setSessionCreate(int32_t value) -{ - sessionCreate_ = value; - sessionCreateIsSet_ = true; -} - -bool Flavor::sessionCreateIsSet() const -{ - return sessionCreateIsSet_; -} - -void Flavor::unsetsessionCreate() -{ - sessionCreateIsSet_ = false; -} - -int32_t Flavor::getTotalRuleCount() const -{ - return totalRuleCount_; -} - -void Flavor::setTotalRuleCount(int32_t value) -{ - totalRuleCount_ = value; - totalRuleCountIsSet_ = true; -} - -bool Flavor::totalRuleCountIsSet() const -{ - return totalRuleCountIsSet_; -} - -void Flavor::unsettotalRuleCount() -{ - totalRuleCountIsSet_ = false; -} - -int32_t Flavor::getUsedRuleCount() const -{ - return usedRuleCount_; -} - -void Flavor::setUsedRuleCount(int32_t value) -{ - usedRuleCount_ = value; - usedRuleCountIsSet_ = true; -} - -bool Flavor::usedRuleCountIsSet() const -{ - return usedRuleCountIsSet_; -} - -void Flavor::unsetusedRuleCount() -{ - usedRuleCountIsSet_ = false; -} - -int32_t Flavor::getVpcBandwith() const -{ - return vpcBandwith_; -} - -void Flavor::setVpcBandwith(int32_t value) -{ - vpcBandwith_ = value; - vpcBandwithIsSet_ = true; -} - -bool Flavor::vpcBandwithIsSet() const -{ - return vpcBandwithIsSet_; -} - -void Flavor::unsetvpcBandwith() -{ - vpcBandwithIsSet_ = false; -} - int32_t Flavor::getDefaultBandwidth() const { return defaultBandwidth_; diff --git a/cfw/src/v1/model/HostHeaderInfo.cpp b/cfw/src/v1/model/HostHeaderInfo.cpp new file mode 100644 index 000000000..ef0c40128 --- /dev/null +++ b/cfw/src/v1/model/HostHeaderInfo.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/cfw/v1/model/HostHeaderInfo.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + + + + +HostHeaderInfo::HostHeaderInfo() +{ + host_ = ""; + hostIsSet_ = false; +} + +HostHeaderInfo::~HostHeaderInfo() = default; + +void HostHeaderInfo::validate() +{ +} + +web::json::value HostHeaderInfo::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(hostIsSet_) { + val[utility::conversions::to_string_t("Host")] = ModelBase::toJson(host_); + } + + return val; +} +bool HostHeaderInfo::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("Host"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("Host")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setHost(refVal); + } + } + return ok; +} + + +std::string HostHeaderInfo::getHost() const +{ + return host_; +} + +void HostHeaderInfo::setHost(const std::string& value) +{ + host_ = value; + hostIsSet_ = true; +} + +bool HostHeaderInfo::hostIsSet() const +{ + return hostIsSet_; +} + +void HostHeaderInfo::unsethost() +{ + hostIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cfw/src/v1/model/HttpQueryCaptureTaskResponseData.cpp b/cfw/src/v1/model/HttpQueryCaptureTaskResponseData.cpp new file mode 100644 index 000000000..180ef810c --- /dev/null +++ b/cfw/src/v1/model/HttpQueryCaptureTaskResponseData.cpp @@ -0,0 +1,253 @@ + + +#include "huaweicloud/cfw/v1/model/HttpQueryCaptureTaskResponseData.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + + + + +HttpQueryCaptureTaskResponseData::HttpQueryCaptureTaskResponseData() +{ + limit_ = 0; + limitIsSet_ = false; + objectId_ = ""; + objectIdIsSet_ = false; + offset_ = 0; + offsetIsSet_ = false; + projectId_ = ""; + projectIdIsSet_ = false; + total_ = 0L; + totalIsSet_ = false; + recordsIsSet_ = false; +} + +HttpQueryCaptureTaskResponseData::~HttpQueryCaptureTaskResponseData() = default; + +void HttpQueryCaptureTaskResponseData::validate() +{ +} + +web::json::value HttpQueryCaptureTaskResponseData::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(limitIsSet_) { + val[utility::conversions::to_string_t("limit")] = ModelBase::toJson(limit_); + } + if(objectIdIsSet_) { + val[utility::conversions::to_string_t("object_id")] = ModelBase::toJson(objectId_); + } + if(offsetIsSet_) { + val[utility::conversions::to_string_t("offset")] = ModelBase::toJson(offset_); + } + if(projectIdIsSet_) { + val[utility::conversions::to_string_t("project_id")] = ModelBase::toJson(projectId_); + } + if(totalIsSet_) { + val[utility::conversions::to_string_t("total")] = ModelBase::toJson(total_); + } + if(recordsIsSet_) { + val[utility::conversions::to_string_t("records")] = ModelBase::toJson(records_); + } + + return val; +} +bool HttpQueryCaptureTaskResponseData::fromJson(const web::json::value& val) +{ + bool ok = true; + + 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); + } + } + if(val.has_field(utility::conversions::to_string_t("object_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("object_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setObjectId(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("project_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("project_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setProjectId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("total"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("total")); + if(!fieldValue.is_null()) + { + int64_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTotal(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("records"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("records")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRecords(refVal); + } + } + return ok; +} + + +int32_t HttpQueryCaptureTaskResponseData::getLimit() const +{ + return limit_; +} + +void HttpQueryCaptureTaskResponseData::setLimit(int32_t value) +{ + limit_ = value; + limitIsSet_ = true; +} + +bool HttpQueryCaptureTaskResponseData::limitIsSet() const +{ + return limitIsSet_; +} + +void HttpQueryCaptureTaskResponseData::unsetlimit() +{ + limitIsSet_ = false; +} + +std::string HttpQueryCaptureTaskResponseData::getObjectId() const +{ + return objectId_; +} + +void HttpQueryCaptureTaskResponseData::setObjectId(const std::string& value) +{ + objectId_ = value; + objectIdIsSet_ = true; +} + +bool HttpQueryCaptureTaskResponseData::objectIdIsSet() const +{ + return objectIdIsSet_; +} + +void HttpQueryCaptureTaskResponseData::unsetobjectId() +{ + objectIdIsSet_ = false; +} + +int32_t HttpQueryCaptureTaskResponseData::getOffset() const +{ + return offset_; +} + +void HttpQueryCaptureTaskResponseData::setOffset(int32_t value) +{ + offset_ = value; + offsetIsSet_ = true; +} + +bool HttpQueryCaptureTaskResponseData::offsetIsSet() const +{ + return offsetIsSet_; +} + +void HttpQueryCaptureTaskResponseData::unsetoffset() +{ + offsetIsSet_ = false; +} + +std::string HttpQueryCaptureTaskResponseData::getProjectId() const +{ + return projectId_; +} + +void HttpQueryCaptureTaskResponseData::setProjectId(const std::string& value) +{ + projectId_ = value; + projectIdIsSet_ = true; +} + +bool HttpQueryCaptureTaskResponseData::projectIdIsSet() const +{ + return projectIdIsSet_; +} + +void HttpQueryCaptureTaskResponseData::unsetprojectId() +{ + projectIdIsSet_ = false; +} + +int64_t HttpQueryCaptureTaskResponseData::getTotal() const +{ + return total_; +} + +void HttpQueryCaptureTaskResponseData::setTotal(int64_t value) +{ + total_ = value; + totalIsSet_ = true; +} + +bool HttpQueryCaptureTaskResponseData::totalIsSet() const +{ + return totalIsSet_; +} + +void HttpQueryCaptureTaskResponseData::unsettotal() +{ + totalIsSet_ = false; +} + +std::vector& HttpQueryCaptureTaskResponseData::getRecords() +{ + return records_; +} + +void HttpQueryCaptureTaskResponseData::setRecords(const std::vector& value) +{ + records_ = value; + recordsIsSet_ = true; +} + +bool HttpQueryCaptureTaskResponseData::recordsIsSet() const +{ + return recordsIsSet_; +} + +void HttpQueryCaptureTaskResponseData::unsetrecords() +{ + recordsIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cfw/src/v1/model/HttpQueryCfwAccessControllerLogsResponseDTO_data_records.cpp b/cfw/src/v1/model/HttpQueryCfwAccessControllerLogsResponseDTO_data_records.cpp index 007ea2ae9..b291f786e 100644 --- a/cfw/src/v1/model/HttpQueryCfwAccessControllerLogsResponseDTO_data_records.cpp +++ b/cfw/src/v1/model/HttpQueryCfwAccessControllerLogsResponseDTO_data_records.cpp @@ -44,6 +44,22 @@ HttpQueryCfwAccessControllerLogsResponseDTO_data_records::HttpQueryCfwAccessCont appIsSet_ = false; dstHost_ = ""; dstHostIsSet_ = false; + srcProvinceId_ = ""; + srcProvinceIdIsSet_ = false; + srcProvinceName_ = ""; + srcProvinceNameIsSet_ = false; + srcCityId_ = ""; + srcCityIdIsSet_ = false; + srcCityName_ = ""; + srcCityNameIsSet_ = false; + dstProvinceId_ = ""; + dstProvinceIdIsSet_ = false; + dstProvinceName_ = ""; + dstProvinceNameIsSet_ = false; + dstCityId_ = ""; + dstCityIdIsSet_ = false; + dstCityName_ = ""; + dstCityNameIsSet_ = false; } HttpQueryCfwAccessControllerLogsResponseDTO_data_records::~HttpQueryCfwAccessControllerLogsResponseDTO_data_records() = default; @@ -104,6 +120,30 @@ web::json::value HttpQueryCfwAccessControllerLogsResponseDTO_data_records::toJso if(dstHostIsSet_) { val[utility::conversions::to_string_t("dst_host")] = ModelBase::toJson(dstHost_); } + if(srcProvinceIdIsSet_) { + val[utility::conversions::to_string_t("src_province_id")] = ModelBase::toJson(srcProvinceId_); + } + if(srcProvinceNameIsSet_) { + val[utility::conversions::to_string_t("src_province_name")] = ModelBase::toJson(srcProvinceName_); + } + if(srcCityIdIsSet_) { + val[utility::conversions::to_string_t("src_city_id")] = ModelBase::toJson(srcCityId_); + } + if(srcCityNameIsSet_) { + val[utility::conversions::to_string_t("src_city_name")] = ModelBase::toJson(srcCityName_); + } + if(dstProvinceIdIsSet_) { + val[utility::conversions::to_string_t("dst_province_id")] = ModelBase::toJson(dstProvinceId_); + } + if(dstProvinceNameIsSet_) { + val[utility::conversions::to_string_t("dst_province_name")] = ModelBase::toJson(dstProvinceName_); + } + if(dstCityIdIsSet_) { + val[utility::conversions::to_string_t("dst_city_id")] = ModelBase::toJson(dstCityId_); + } + if(dstCityNameIsSet_) { + val[utility::conversions::to_string_t("dst_city_name")] = ModelBase::toJson(dstCityName_); + } return val; } @@ -255,6 +295,78 @@ bool HttpQueryCfwAccessControllerLogsResponseDTO_data_records::fromJson(const we setDstHost(refVal); } } + if(val.has_field(utility::conversions::to_string_t("src_province_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("src_province_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSrcProvinceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("src_province_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("src_province_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSrcProvinceName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("src_city_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("src_city_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSrcCityId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("src_city_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("src_city_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSrcCityName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("dst_province_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("dst_province_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDstProvinceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("dst_province_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("dst_province_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDstProvinceName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("dst_city_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("dst_city_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDstCityId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("dst_city_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("dst_city_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDstCityName(refVal); + } + } return ok; } @@ -595,6 +707,174 @@ void HttpQueryCfwAccessControllerLogsResponseDTO_data_records::unsetdstHost() dstHostIsSet_ = false; } +std::string HttpQueryCfwAccessControllerLogsResponseDTO_data_records::getSrcProvinceId() const +{ + return srcProvinceId_; +} + +void HttpQueryCfwAccessControllerLogsResponseDTO_data_records::setSrcProvinceId(const std::string& value) +{ + srcProvinceId_ = value; + srcProvinceIdIsSet_ = true; +} + +bool HttpQueryCfwAccessControllerLogsResponseDTO_data_records::srcProvinceIdIsSet() const +{ + return srcProvinceIdIsSet_; +} + +void HttpQueryCfwAccessControllerLogsResponseDTO_data_records::unsetsrcProvinceId() +{ + srcProvinceIdIsSet_ = false; +} + +std::string HttpQueryCfwAccessControllerLogsResponseDTO_data_records::getSrcProvinceName() const +{ + return srcProvinceName_; +} + +void HttpQueryCfwAccessControllerLogsResponseDTO_data_records::setSrcProvinceName(const std::string& value) +{ + srcProvinceName_ = value; + srcProvinceNameIsSet_ = true; +} + +bool HttpQueryCfwAccessControllerLogsResponseDTO_data_records::srcProvinceNameIsSet() const +{ + return srcProvinceNameIsSet_; +} + +void HttpQueryCfwAccessControllerLogsResponseDTO_data_records::unsetsrcProvinceName() +{ + srcProvinceNameIsSet_ = false; +} + +std::string HttpQueryCfwAccessControllerLogsResponseDTO_data_records::getSrcCityId() const +{ + return srcCityId_; +} + +void HttpQueryCfwAccessControllerLogsResponseDTO_data_records::setSrcCityId(const std::string& value) +{ + srcCityId_ = value; + srcCityIdIsSet_ = true; +} + +bool HttpQueryCfwAccessControllerLogsResponseDTO_data_records::srcCityIdIsSet() const +{ + return srcCityIdIsSet_; +} + +void HttpQueryCfwAccessControllerLogsResponseDTO_data_records::unsetsrcCityId() +{ + srcCityIdIsSet_ = false; +} + +std::string HttpQueryCfwAccessControllerLogsResponseDTO_data_records::getSrcCityName() const +{ + return srcCityName_; +} + +void HttpQueryCfwAccessControllerLogsResponseDTO_data_records::setSrcCityName(const std::string& value) +{ + srcCityName_ = value; + srcCityNameIsSet_ = true; +} + +bool HttpQueryCfwAccessControllerLogsResponseDTO_data_records::srcCityNameIsSet() const +{ + return srcCityNameIsSet_; +} + +void HttpQueryCfwAccessControllerLogsResponseDTO_data_records::unsetsrcCityName() +{ + srcCityNameIsSet_ = false; +} + +std::string HttpQueryCfwAccessControllerLogsResponseDTO_data_records::getDstProvinceId() const +{ + return dstProvinceId_; +} + +void HttpQueryCfwAccessControllerLogsResponseDTO_data_records::setDstProvinceId(const std::string& value) +{ + dstProvinceId_ = value; + dstProvinceIdIsSet_ = true; +} + +bool HttpQueryCfwAccessControllerLogsResponseDTO_data_records::dstProvinceIdIsSet() const +{ + return dstProvinceIdIsSet_; +} + +void HttpQueryCfwAccessControllerLogsResponseDTO_data_records::unsetdstProvinceId() +{ + dstProvinceIdIsSet_ = false; +} + +std::string HttpQueryCfwAccessControllerLogsResponseDTO_data_records::getDstProvinceName() const +{ + return dstProvinceName_; +} + +void HttpQueryCfwAccessControllerLogsResponseDTO_data_records::setDstProvinceName(const std::string& value) +{ + dstProvinceName_ = value; + dstProvinceNameIsSet_ = true; +} + +bool HttpQueryCfwAccessControllerLogsResponseDTO_data_records::dstProvinceNameIsSet() const +{ + return dstProvinceNameIsSet_; +} + +void HttpQueryCfwAccessControllerLogsResponseDTO_data_records::unsetdstProvinceName() +{ + dstProvinceNameIsSet_ = false; +} + +std::string HttpQueryCfwAccessControllerLogsResponseDTO_data_records::getDstCityId() const +{ + return dstCityId_; +} + +void HttpQueryCfwAccessControllerLogsResponseDTO_data_records::setDstCityId(const std::string& value) +{ + dstCityId_ = value; + dstCityIdIsSet_ = true; +} + +bool HttpQueryCfwAccessControllerLogsResponseDTO_data_records::dstCityIdIsSet() const +{ + return dstCityIdIsSet_; +} + +void HttpQueryCfwAccessControllerLogsResponseDTO_data_records::unsetdstCityId() +{ + dstCityIdIsSet_ = false; +} + +std::string HttpQueryCfwAccessControllerLogsResponseDTO_data_records::getDstCityName() const +{ + return dstCityName_; +} + +void HttpQueryCfwAccessControllerLogsResponseDTO_data_records::setDstCityName(const std::string& value) +{ + dstCityName_ = value; + dstCityNameIsSet_ = true; +} + +bool HttpQueryCfwAccessControllerLogsResponseDTO_data_records::dstCityNameIsSet() const +{ + return dstCityNameIsSet_; +} + +void HttpQueryCfwAccessControllerLogsResponseDTO_data_records::unsetdstCityName() +{ + dstCityNameIsSet_ = false; +} + } } } diff --git a/cfw/src/v1/model/HttpQueryCfwAttackLogsResponseDTO_data_records.cpp b/cfw/src/v1/model/HttpQueryCfwAttackLogsResponseDTO_data_records.cpp index 9438f0758..eda6607e3 100644 --- a/cfw/src/v1/model/HttpQueryCfwAttackLogsResponseDTO_data_records.cpp +++ b/cfw/src/v1/model/HttpQueryCfwAttackLogsResponseDTO_data_records.cpp @@ -30,7 +30,7 @@ HttpQueryCfwAttackLogsResponseDTO_data_records::HttpQueryCfwAttackLogsResponseDT packetLengthIsSet_ = false; attackRuleId_ = ""; attackRuleIdIsSet_ = false; - hitTime_ = 0; + hitTime_ = 0L; hitTimeIsSet_ = false; logId_ = ""; logIdIsSet_ = false; @@ -49,8 +49,6 @@ HttpQueryCfwAttackLogsResponseDTO_data_records::HttpQueryCfwAttackLogsResponseDT app_ = ""; appIsSet_ = false; packetMessagesIsSet_ = false; - dstHost_ = ""; - dstHostIsSet_ = false; srcRegionId_ = ""; srcRegionIdIsSet_ = false; srcRegionName_ = ""; @@ -59,6 +57,22 @@ HttpQueryCfwAttackLogsResponseDTO_data_records::HttpQueryCfwAttackLogsResponseDT dstRegionIdIsSet_ = false; dstRegionName_ = ""; dstRegionNameIsSet_ = false; + srcProvinceId_ = ""; + srcProvinceIdIsSet_ = false; + srcProvinceName_ = ""; + srcProvinceNameIsSet_ = false; + srcCityId_ = ""; + srcCityIdIsSet_ = false; + srcCityName_ = ""; + srcCityNameIsSet_ = false; + dstProvinceId_ = ""; + dstProvinceIdIsSet_ = false; + dstProvinceName_ = ""; + dstProvinceNameIsSet_ = false; + dstCityId_ = ""; + dstCityIdIsSet_ = false; + dstCityName_ = ""; + dstCityNameIsSet_ = false; } HttpQueryCfwAttackLogsResponseDTO_data_records::~HttpQueryCfwAttackLogsResponseDTO_data_records() = default; @@ -128,9 +142,6 @@ web::json::value HttpQueryCfwAttackLogsResponseDTO_data_records::toJson() const if(packetMessagesIsSet_) { val[utility::conversions::to_string_t("packetMessages")] = ModelBase::toJson(packetMessages_); } - if(dstHostIsSet_) { - val[utility::conversions::to_string_t("dst_host")] = ModelBase::toJson(dstHost_); - } if(srcRegionIdIsSet_) { val[utility::conversions::to_string_t("src_region_id")] = ModelBase::toJson(srcRegionId_); } @@ -143,6 +154,30 @@ web::json::value HttpQueryCfwAttackLogsResponseDTO_data_records::toJson() const if(dstRegionNameIsSet_) { val[utility::conversions::to_string_t("dst_region_name")] = ModelBase::toJson(dstRegionName_); } + if(srcProvinceIdIsSet_) { + val[utility::conversions::to_string_t("src_province_id")] = ModelBase::toJson(srcProvinceId_); + } + if(srcProvinceNameIsSet_) { + val[utility::conversions::to_string_t("src_province_name")] = ModelBase::toJson(srcProvinceName_); + } + if(srcCityIdIsSet_) { + val[utility::conversions::to_string_t("src_city_id")] = ModelBase::toJson(srcCityId_); + } + if(srcCityNameIsSet_) { + val[utility::conversions::to_string_t("src_city_name")] = ModelBase::toJson(srcCityName_); + } + if(dstProvinceIdIsSet_) { + val[utility::conversions::to_string_t("dst_province_id")] = ModelBase::toJson(dstProvinceId_); + } + if(dstProvinceNameIsSet_) { + val[utility::conversions::to_string_t("dst_province_name")] = ModelBase::toJson(dstProvinceName_); + } + if(dstCityIdIsSet_) { + val[utility::conversions::to_string_t("dst_city_id")] = ModelBase::toJson(dstCityId_); + } + if(dstCityNameIsSet_) { + val[utility::conversions::to_string_t("dst_city_name")] = ModelBase::toJson(dstCityName_); + } return val; } @@ -235,7 +270,7 @@ bool HttpQueryCfwAttackLogsResponseDTO_data_records::fromJson(const web::json::v const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("hit_time")); if(!fieldValue.is_null()) { - int32_t refVal; + int64_t refVal; ok &= ModelBase::fromJson(fieldValue, refVal); setHitTime(refVal); } @@ -321,15 +356,6 @@ bool HttpQueryCfwAttackLogsResponseDTO_data_records::fromJson(const web::json::v setPacketMessages(refVal); } } - if(val.has_field(utility::conversions::to_string_t("dst_host"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("dst_host")); - if(!fieldValue.is_null()) - { - std::string refVal; - ok &= ModelBase::fromJson(fieldValue, refVal); - setDstHost(refVal); - } - } if(val.has_field(utility::conversions::to_string_t("src_region_id"))) { const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("src_region_id")); if(!fieldValue.is_null()) @@ -366,6 +392,78 @@ bool HttpQueryCfwAttackLogsResponseDTO_data_records::fromJson(const web::json::v setDstRegionName(refVal); } } + if(val.has_field(utility::conversions::to_string_t("src_province_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("src_province_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSrcProvinceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("src_province_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("src_province_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSrcProvinceName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("src_city_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("src_city_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSrcCityId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("src_city_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("src_city_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSrcCityName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("dst_province_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("dst_province_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDstProvinceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("dst_province_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("dst_province_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDstProvinceName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("dst_city_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("dst_city_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDstCityId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("dst_city_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("dst_city_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDstCityName(refVal); + } + } return ok; } @@ -559,12 +657,12 @@ void HttpQueryCfwAttackLogsResponseDTO_data_records::unsetattackRuleId() attackRuleIdIsSet_ = false; } -int32_t HttpQueryCfwAttackLogsResponseDTO_data_records::getHitTime() const +int64_t HttpQueryCfwAttackLogsResponseDTO_data_records::getHitTime() const { return hitTime_; } -void HttpQueryCfwAttackLogsResponseDTO_data_records::setHitTime(int32_t value) +void HttpQueryCfwAttackLogsResponseDTO_data_records::setHitTime(int64_t value) { hitTime_ = value; hitTimeIsSet_ = true; @@ -769,27 +867,6 @@ void HttpQueryCfwAttackLogsResponseDTO_data_records::unsetpacketMessages() packetMessagesIsSet_ = false; } -std::string HttpQueryCfwAttackLogsResponseDTO_data_records::getDstHost() const -{ - return dstHost_; -} - -void HttpQueryCfwAttackLogsResponseDTO_data_records::setDstHost(const std::string& value) -{ - dstHost_ = value; - dstHostIsSet_ = true; -} - -bool HttpQueryCfwAttackLogsResponseDTO_data_records::dstHostIsSet() const -{ - return dstHostIsSet_; -} - -void HttpQueryCfwAttackLogsResponseDTO_data_records::unsetdstHost() -{ - dstHostIsSet_ = false; -} - std::string HttpQueryCfwAttackLogsResponseDTO_data_records::getSrcRegionId() const { return srcRegionId_; @@ -874,6 +951,174 @@ void HttpQueryCfwAttackLogsResponseDTO_data_records::unsetdstRegionName() dstRegionNameIsSet_ = false; } +std::string HttpQueryCfwAttackLogsResponseDTO_data_records::getSrcProvinceId() const +{ + return srcProvinceId_; +} + +void HttpQueryCfwAttackLogsResponseDTO_data_records::setSrcProvinceId(const std::string& value) +{ + srcProvinceId_ = value; + srcProvinceIdIsSet_ = true; +} + +bool HttpQueryCfwAttackLogsResponseDTO_data_records::srcProvinceIdIsSet() const +{ + return srcProvinceIdIsSet_; +} + +void HttpQueryCfwAttackLogsResponseDTO_data_records::unsetsrcProvinceId() +{ + srcProvinceIdIsSet_ = false; +} + +std::string HttpQueryCfwAttackLogsResponseDTO_data_records::getSrcProvinceName() const +{ + return srcProvinceName_; +} + +void HttpQueryCfwAttackLogsResponseDTO_data_records::setSrcProvinceName(const std::string& value) +{ + srcProvinceName_ = value; + srcProvinceNameIsSet_ = true; +} + +bool HttpQueryCfwAttackLogsResponseDTO_data_records::srcProvinceNameIsSet() const +{ + return srcProvinceNameIsSet_; +} + +void HttpQueryCfwAttackLogsResponseDTO_data_records::unsetsrcProvinceName() +{ + srcProvinceNameIsSet_ = false; +} + +std::string HttpQueryCfwAttackLogsResponseDTO_data_records::getSrcCityId() const +{ + return srcCityId_; +} + +void HttpQueryCfwAttackLogsResponseDTO_data_records::setSrcCityId(const std::string& value) +{ + srcCityId_ = value; + srcCityIdIsSet_ = true; +} + +bool HttpQueryCfwAttackLogsResponseDTO_data_records::srcCityIdIsSet() const +{ + return srcCityIdIsSet_; +} + +void HttpQueryCfwAttackLogsResponseDTO_data_records::unsetsrcCityId() +{ + srcCityIdIsSet_ = false; +} + +std::string HttpQueryCfwAttackLogsResponseDTO_data_records::getSrcCityName() const +{ + return srcCityName_; +} + +void HttpQueryCfwAttackLogsResponseDTO_data_records::setSrcCityName(const std::string& value) +{ + srcCityName_ = value; + srcCityNameIsSet_ = true; +} + +bool HttpQueryCfwAttackLogsResponseDTO_data_records::srcCityNameIsSet() const +{ + return srcCityNameIsSet_; +} + +void HttpQueryCfwAttackLogsResponseDTO_data_records::unsetsrcCityName() +{ + srcCityNameIsSet_ = false; +} + +std::string HttpQueryCfwAttackLogsResponseDTO_data_records::getDstProvinceId() const +{ + return dstProvinceId_; +} + +void HttpQueryCfwAttackLogsResponseDTO_data_records::setDstProvinceId(const std::string& value) +{ + dstProvinceId_ = value; + dstProvinceIdIsSet_ = true; +} + +bool HttpQueryCfwAttackLogsResponseDTO_data_records::dstProvinceIdIsSet() const +{ + return dstProvinceIdIsSet_; +} + +void HttpQueryCfwAttackLogsResponseDTO_data_records::unsetdstProvinceId() +{ + dstProvinceIdIsSet_ = false; +} + +std::string HttpQueryCfwAttackLogsResponseDTO_data_records::getDstProvinceName() const +{ + return dstProvinceName_; +} + +void HttpQueryCfwAttackLogsResponseDTO_data_records::setDstProvinceName(const std::string& value) +{ + dstProvinceName_ = value; + dstProvinceNameIsSet_ = true; +} + +bool HttpQueryCfwAttackLogsResponseDTO_data_records::dstProvinceNameIsSet() const +{ + return dstProvinceNameIsSet_; +} + +void HttpQueryCfwAttackLogsResponseDTO_data_records::unsetdstProvinceName() +{ + dstProvinceNameIsSet_ = false; +} + +std::string HttpQueryCfwAttackLogsResponseDTO_data_records::getDstCityId() const +{ + return dstCityId_; +} + +void HttpQueryCfwAttackLogsResponseDTO_data_records::setDstCityId(const std::string& value) +{ + dstCityId_ = value; + dstCityIdIsSet_ = true; +} + +bool HttpQueryCfwAttackLogsResponseDTO_data_records::dstCityIdIsSet() const +{ + return dstCityIdIsSet_; +} + +void HttpQueryCfwAttackLogsResponseDTO_data_records::unsetdstCityId() +{ + dstCityIdIsSet_ = false; +} + +std::string HttpQueryCfwAttackLogsResponseDTO_data_records::getDstCityName() const +{ + return dstCityName_; +} + +void HttpQueryCfwAttackLogsResponseDTO_data_records::setDstCityName(const std::string& value) +{ + dstCityName_ = value; + dstCityNameIsSet_ = true; +} + +bool HttpQueryCfwAttackLogsResponseDTO_data_records::dstCityNameIsSet() const +{ + return dstCityNameIsSet_; +} + +void HttpQueryCfwAttackLogsResponseDTO_data_records::unsetdstCityName() +{ + dstCityNameIsSet_ = false; +} + } } } diff --git a/cfw/src/v1/model/HttpQueryCfwFlowLogsResponseDTO_data_records.cpp b/cfw/src/v1/model/HttpQueryCfwFlowLogsResponseDTO_data_records.cpp index 217a72545..fb2ad755d 100644 --- a/cfw/src/v1/model/HttpQueryCfwFlowLogsResponseDTO_data_records.cpp +++ b/cfw/src/v1/model/HttpQueryCfwFlowLogsResponseDTO_data_records.cpp @@ -46,6 +46,22 @@ HttpQueryCfwFlowLogsResponseDTO_data_records::HttpQueryCfwFlowLogsResponseDTO_da srcRegionIdIsSet_ = false; srcRegionName_ = ""; srcRegionNameIsSet_ = false; + dstProvinceId_ = ""; + dstProvinceIdIsSet_ = false; + dstProvinceName_ = ""; + dstProvinceNameIsSet_ = false; + dstCityId_ = ""; + dstCityIdIsSet_ = false; + dstCityName_ = ""; + dstCityNameIsSet_ = false; + srcProvinceId_ = ""; + srcProvinceIdIsSet_ = false; + srcProvinceName_ = ""; + srcProvinceNameIsSet_ = false; + srcCityId_ = ""; + srcCityIdIsSet_ = false; + srcCityName_ = ""; + srcCityNameIsSet_ = false; } HttpQueryCfwFlowLogsResponseDTO_data_records::~HttpQueryCfwFlowLogsResponseDTO_data_records() = default; @@ -109,6 +125,30 @@ web::json::value HttpQueryCfwFlowLogsResponseDTO_data_records::toJson() const if(srcRegionNameIsSet_) { val[utility::conversions::to_string_t("src_region_name")] = ModelBase::toJson(srcRegionName_); } + if(dstProvinceIdIsSet_) { + val[utility::conversions::to_string_t("dst_province_id")] = ModelBase::toJson(dstProvinceId_); + } + if(dstProvinceNameIsSet_) { + val[utility::conversions::to_string_t("dst_province_name")] = ModelBase::toJson(dstProvinceName_); + } + if(dstCityIdIsSet_) { + val[utility::conversions::to_string_t("dst_city_id")] = ModelBase::toJson(dstCityId_); + } + if(dstCityNameIsSet_) { + val[utility::conversions::to_string_t("dst_city_name")] = ModelBase::toJson(dstCityName_); + } + if(srcProvinceIdIsSet_) { + val[utility::conversions::to_string_t("src_province_id")] = ModelBase::toJson(srcProvinceId_); + } + if(srcProvinceNameIsSet_) { + val[utility::conversions::to_string_t("src_province_name")] = ModelBase::toJson(srcProvinceName_); + } + if(srcCityIdIsSet_) { + val[utility::conversions::to_string_t("src_city_id")] = ModelBase::toJson(srcCityId_); + } + if(srcCityNameIsSet_) { + val[utility::conversions::to_string_t("src_city_name")] = ModelBase::toJson(srcCityName_); + } return val; } @@ -269,6 +309,78 @@ bool HttpQueryCfwFlowLogsResponseDTO_data_records::fromJson(const web::json::val setSrcRegionName(refVal); } } + if(val.has_field(utility::conversions::to_string_t("dst_province_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("dst_province_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDstProvinceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("dst_province_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("dst_province_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDstProvinceName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("dst_city_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("dst_city_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDstCityId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("dst_city_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("dst_city_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDstCityName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("src_province_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("src_province_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSrcProvinceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("src_province_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("src_province_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSrcProvinceName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("src_city_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("src_city_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSrcCityId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("src_city_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("src_city_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSrcCityName(refVal); + } + } return ok; } @@ -630,6 +742,174 @@ void HttpQueryCfwFlowLogsResponseDTO_data_records::unsetsrcRegionName() srcRegionNameIsSet_ = false; } +std::string HttpQueryCfwFlowLogsResponseDTO_data_records::getDstProvinceId() const +{ + return dstProvinceId_; +} + +void HttpQueryCfwFlowLogsResponseDTO_data_records::setDstProvinceId(const std::string& value) +{ + dstProvinceId_ = value; + dstProvinceIdIsSet_ = true; +} + +bool HttpQueryCfwFlowLogsResponseDTO_data_records::dstProvinceIdIsSet() const +{ + return dstProvinceIdIsSet_; +} + +void HttpQueryCfwFlowLogsResponseDTO_data_records::unsetdstProvinceId() +{ + dstProvinceIdIsSet_ = false; +} + +std::string HttpQueryCfwFlowLogsResponseDTO_data_records::getDstProvinceName() const +{ + return dstProvinceName_; +} + +void HttpQueryCfwFlowLogsResponseDTO_data_records::setDstProvinceName(const std::string& value) +{ + dstProvinceName_ = value; + dstProvinceNameIsSet_ = true; +} + +bool HttpQueryCfwFlowLogsResponseDTO_data_records::dstProvinceNameIsSet() const +{ + return dstProvinceNameIsSet_; +} + +void HttpQueryCfwFlowLogsResponseDTO_data_records::unsetdstProvinceName() +{ + dstProvinceNameIsSet_ = false; +} + +std::string HttpQueryCfwFlowLogsResponseDTO_data_records::getDstCityId() const +{ + return dstCityId_; +} + +void HttpQueryCfwFlowLogsResponseDTO_data_records::setDstCityId(const std::string& value) +{ + dstCityId_ = value; + dstCityIdIsSet_ = true; +} + +bool HttpQueryCfwFlowLogsResponseDTO_data_records::dstCityIdIsSet() const +{ + return dstCityIdIsSet_; +} + +void HttpQueryCfwFlowLogsResponseDTO_data_records::unsetdstCityId() +{ + dstCityIdIsSet_ = false; +} + +std::string HttpQueryCfwFlowLogsResponseDTO_data_records::getDstCityName() const +{ + return dstCityName_; +} + +void HttpQueryCfwFlowLogsResponseDTO_data_records::setDstCityName(const std::string& value) +{ + dstCityName_ = value; + dstCityNameIsSet_ = true; +} + +bool HttpQueryCfwFlowLogsResponseDTO_data_records::dstCityNameIsSet() const +{ + return dstCityNameIsSet_; +} + +void HttpQueryCfwFlowLogsResponseDTO_data_records::unsetdstCityName() +{ + dstCityNameIsSet_ = false; +} + +std::string HttpQueryCfwFlowLogsResponseDTO_data_records::getSrcProvinceId() const +{ + return srcProvinceId_; +} + +void HttpQueryCfwFlowLogsResponseDTO_data_records::setSrcProvinceId(const std::string& value) +{ + srcProvinceId_ = value; + srcProvinceIdIsSet_ = true; +} + +bool HttpQueryCfwFlowLogsResponseDTO_data_records::srcProvinceIdIsSet() const +{ + return srcProvinceIdIsSet_; +} + +void HttpQueryCfwFlowLogsResponseDTO_data_records::unsetsrcProvinceId() +{ + srcProvinceIdIsSet_ = false; +} + +std::string HttpQueryCfwFlowLogsResponseDTO_data_records::getSrcProvinceName() const +{ + return srcProvinceName_; +} + +void HttpQueryCfwFlowLogsResponseDTO_data_records::setSrcProvinceName(const std::string& value) +{ + srcProvinceName_ = value; + srcProvinceNameIsSet_ = true; +} + +bool HttpQueryCfwFlowLogsResponseDTO_data_records::srcProvinceNameIsSet() const +{ + return srcProvinceNameIsSet_; +} + +void HttpQueryCfwFlowLogsResponseDTO_data_records::unsetsrcProvinceName() +{ + srcProvinceNameIsSet_ = false; +} + +std::string HttpQueryCfwFlowLogsResponseDTO_data_records::getSrcCityId() const +{ + return srcCityId_; +} + +void HttpQueryCfwFlowLogsResponseDTO_data_records::setSrcCityId(const std::string& value) +{ + srcCityId_ = value; + srcCityIdIsSet_ = true; +} + +bool HttpQueryCfwFlowLogsResponseDTO_data_records::srcCityIdIsSet() const +{ + return srcCityIdIsSet_; +} + +void HttpQueryCfwFlowLogsResponseDTO_data_records::unsetsrcCityId() +{ + srcCityIdIsSet_ = false; +} + +std::string HttpQueryCfwFlowLogsResponseDTO_data_records::getSrcCityName() const +{ + return srcCityName_; +} + +void HttpQueryCfwFlowLogsResponseDTO_data_records::setSrcCityName(const std::string& value) +{ + srcCityName_ = value; + srcCityNameIsSet_ = true; +} + +bool HttpQueryCfwFlowLogsResponseDTO_data_records::srcCityNameIsSet() const +{ + return srcCityNameIsSet_; +} + +void HttpQueryCfwFlowLogsResponseDTO_data_records::unsetsrcCityName() +{ + srcCityNameIsSet_ = false; +} + } } } diff --git a/cfw/src/v1/model/ListAccessControlLogsRequest.cpp b/cfw/src/v1/model/ListAccessControlLogsRequest.cpp index 9e31138d6..24d1d5d66 100644 --- a/cfw/src/v1/model/ListAccessControlLogsRequest.cpp +++ b/cfw/src/v1/model/ListAccessControlLogsRequest.cpp @@ -54,6 +54,14 @@ ListAccessControlLogsRequest::ListAccessControlLogsRequest() srcRegionNameIsSet_ = false; dstRegionName_ = ""; dstRegionNameIsSet_ = false; + srcProvinceName_ = ""; + srcProvinceNameIsSet_ = false; + dstProvinceName_ = ""; + dstProvinceNameIsSet_ = false; + srcCityName_ = ""; + srcCityNameIsSet_ = false; + dstCityName_ = ""; + dstCityNameIsSet_ = false; } ListAccessControlLogsRequest::~ListAccessControlLogsRequest() = default; @@ -129,6 +137,18 @@ web::json::value ListAccessControlLogsRequest::toJson() const if(dstRegionNameIsSet_) { val[utility::conversions::to_string_t("dst_region_name")] = ModelBase::toJson(dstRegionName_); } + if(srcProvinceNameIsSet_) { + val[utility::conversions::to_string_t("src_province_name")] = ModelBase::toJson(srcProvinceName_); + } + if(dstProvinceNameIsSet_) { + val[utility::conversions::to_string_t("dst_province_name")] = ModelBase::toJson(dstProvinceName_); + } + if(srcCityNameIsSet_) { + val[utility::conversions::to_string_t("src_city_name")] = ModelBase::toJson(srcCityName_); + } + if(dstCityNameIsSet_) { + val[utility::conversions::to_string_t("dst_city_name")] = ModelBase::toJson(dstCityName_); + } return val; } @@ -325,6 +345,42 @@ bool ListAccessControlLogsRequest::fromJson(const web::json::value& val) setDstRegionName(refVal); } } + if(val.has_field(utility::conversions::to_string_t("src_province_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("src_province_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSrcProvinceName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("dst_province_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("dst_province_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDstProvinceName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("src_city_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("src_city_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSrcCityName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("dst_city_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("dst_city_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDstCityName(refVal); + } + } return ok; } @@ -770,6 +826,90 @@ void ListAccessControlLogsRequest::unsetdstRegionName() dstRegionNameIsSet_ = false; } +std::string ListAccessControlLogsRequest::getSrcProvinceName() const +{ + return srcProvinceName_; +} + +void ListAccessControlLogsRequest::setSrcProvinceName(const std::string& value) +{ + srcProvinceName_ = value; + srcProvinceNameIsSet_ = true; +} + +bool ListAccessControlLogsRequest::srcProvinceNameIsSet() const +{ + return srcProvinceNameIsSet_; +} + +void ListAccessControlLogsRequest::unsetsrcProvinceName() +{ + srcProvinceNameIsSet_ = false; +} + +std::string ListAccessControlLogsRequest::getDstProvinceName() const +{ + return dstProvinceName_; +} + +void ListAccessControlLogsRequest::setDstProvinceName(const std::string& value) +{ + dstProvinceName_ = value; + dstProvinceNameIsSet_ = true; +} + +bool ListAccessControlLogsRequest::dstProvinceNameIsSet() const +{ + return dstProvinceNameIsSet_; +} + +void ListAccessControlLogsRequest::unsetdstProvinceName() +{ + dstProvinceNameIsSet_ = false; +} + +std::string ListAccessControlLogsRequest::getSrcCityName() const +{ + return srcCityName_; +} + +void ListAccessControlLogsRequest::setSrcCityName(const std::string& value) +{ + srcCityName_ = value; + srcCityNameIsSet_ = true; +} + +bool ListAccessControlLogsRequest::srcCityNameIsSet() const +{ + return srcCityNameIsSet_; +} + +void ListAccessControlLogsRequest::unsetsrcCityName() +{ + srcCityNameIsSet_ = false; +} + +std::string ListAccessControlLogsRequest::getDstCityName() const +{ + return dstCityName_; +} + +void ListAccessControlLogsRequest::setDstCityName(const std::string& value) +{ + dstCityName_ = value; + dstCityNameIsSet_ = true; +} + +bool ListAccessControlLogsRequest::dstCityNameIsSet() const +{ + return dstCityNameIsSet_; +} + +void ListAccessControlLogsRequest::unsetdstCityName() +{ + dstCityNameIsSet_ = false; +} + } } } diff --git a/cfw/src/v1/model/ListAclRulesRequest.cpp b/cfw/src/v1/model/ListAclRulesRequest.cpp index 02aa88c40..0ad29171f 100644 --- a/cfw/src/v1/model/ListAclRulesRequest.cpp +++ b/cfw/src/v1/model/ListAclRulesRequest.cpp @@ -16,8 +16,6 @@ ListAclRulesRequest::ListAclRulesRequest() objectIdIsSet_ = false; type_ = 0; typeIsSet_ = false; - protocol_ = 0; - protocolIsSet_ = false; ip_ = ""; ipIsSet_ = false; name_ = ""; @@ -66,9 +64,6 @@ web::json::value ListAclRulesRequest::toJson() const if(typeIsSet_) { val[utility::conversions::to_string_t("type")] = ModelBase::toJson(type_); } - if(protocolIsSet_) { - val[utility::conversions::to_string_t("protocol")] = ModelBase::toJson(protocol_); - } if(ipIsSet_) { val[utility::conversions::to_string_t("ip")] = ModelBase::toJson(ip_); } @@ -139,15 +134,6 @@ bool ListAclRulesRequest::fromJson(const web::json::value& val) setType(refVal); } } - if(val.has_field(utility::conversions::to_string_t("protocol"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("protocol")); - if(!fieldValue.is_null()) - { - int32_t refVal; - ok &= ModelBase::fromJson(fieldValue, refVal); - setProtocol(refVal); - } - } if(val.has_field(utility::conversions::to_string_t("ip"))) { const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ip")); if(!fieldValue.is_null()) @@ -329,27 +315,6 @@ void ListAclRulesRequest::unsettype() typeIsSet_ = false; } -int32_t ListAclRulesRequest::getProtocol() const -{ - return protocol_; -} - -void ListAclRulesRequest::setProtocol(int32_t value) -{ - protocol_ = value; - protocolIsSet_ = true; -} - -bool ListAclRulesRequest::protocolIsSet() const -{ - return protocolIsSet_; -} - -void ListAclRulesRequest::unsetprotocol() -{ - protocolIsSet_ = false; -} - std::string ListAclRulesRequest::getIp() const { return ip_; diff --git a/cfw/src/v1/model/ListAttackLogsRequest.cpp b/cfw/src/v1/model/ListAttackLogsRequest.cpp index 3db544340..a73a7edbb 100644 --- a/cfw/src/v1/model/ListAttackLogsRequest.cpp +++ b/cfw/src/v1/model/ListAttackLogsRequest.cpp @@ -48,8 +48,6 @@ ListAttackLogsRequest::ListAttackLogsRequest() attackRuleIsSet_ = false; level_ = ""; levelIsSet_ = false; - source_ = ""; - sourceIsSet_ = false; enterpriseProjectId_ = ""; enterpriseProjectIdIsSet_ = false; dstHost_ = ""; @@ -62,6 +60,14 @@ ListAttackLogsRequest::ListAttackLogsRequest() srcRegionNameIsSet_ = false; dstRegionName_ = ""; dstRegionNameIsSet_ = false; + srcProvinceName_ = ""; + srcProvinceNameIsSet_ = false; + dstProvinceName_ = ""; + dstProvinceNameIsSet_ = false; + srcCityName_ = ""; + srcCityNameIsSet_ = false; + dstCityName_ = ""; + dstCityNameIsSet_ = false; } ListAttackLogsRequest::~ListAttackLogsRequest() = default; @@ -128,9 +134,6 @@ web::json::value ListAttackLogsRequest::toJson() const if(levelIsSet_) { val[utility::conversions::to_string_t("level")] = ModelBase::toJson(level_); } - if(sourceIsSet_) { - val[utility::conversions::to_string_t("source")] = ModelBase::toJson(source_); - } if(enterpriseProjectIdIsSet_) { val[utility::conversions::to_string_t("enterprise_project_id")] = ModelBase::toJson(enterpriseProjectId_); } @@ -149,6 +152,18 @@ web::json::value ListAttackLogsRequest::toJson() const if(dstRegionNameIsSet_) { val[utility::conversions::to_string_t("dst_region_name")] = ModelBase::toJson(dstRegionName_); } + if(srcProvinceNameIsSet_) { + val[utility::conversions::to_string_t("src_province_name")] = ModelBase::toJson(srcProvinceName_); + } + if(dstProvinceNameIsSet_) { + val[utility::conversions::to_string_t("dst_province_name")] = ModelBase::toJson(dstProvinceName_); + } + if(srcCityNameIsSet_) { + val[utility::conversions::to_string_t("src_city_name")] = ModelBase::toJson(srcCityName_); + } + if(dstCityNameIsSet_) { + val[utility::conversions::to_string_t("dst_city_name")] = ModelBase::toJson(dstCityName_); + } return val; } @@ -318,15 +333,6 @@ bool ListAttackLogsRequest::fromJson(const web::json::value& val) setLevel(refVal); } } - if(val.has_field(utility::conversions::to_string_t("source"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("source")); - if(!fieldValue.is_null()) - { - std::string refVal; - ok &= ModelBase::fromJson(fieldValue, refVal); - setSource(refVal); - } - } if(val.has_field(utility::conversions::to_string_t("enterprise_project_id"))) { const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("enterprise_project_id")); if(!fieldValue.is_null()) @@ -381,6 +387,42 @@ bool ListAttackLogsRequest::fromJson(const web::json::value& val) setDstRegionName(refVal); } } + if(val.has_field(utility::conversions::to_string_t("src_province_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("src_province_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSrcProvinceName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("dst_province_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("dst_province_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDstProvinceName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("src_city_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("src_city_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSrcCityName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("dst_city_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("dst_city_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDstCityName(refVal); + } + } return ok; } @@ -763,27 +805,6 @@ void ListAttackLogsRequest::unsetlevel() levelIsSet_ = false; } -std::string ListAttackLogsRequest::getSource() const -{ - return source_; -} - -void ListAttackLogsRequest::setSource(const std::string& value) -{ - source_ = value; - sourceIsSet_ = true; -} - -bool ListAttackLogsRequest::sourceIsSet() const -{ - return sourceIsSet_; -} - -void ListAttackLogsRequest::unsetsource() -{ - sourceIsSet_ = false; -} - std::string ListAttackLogsRequest::getEnterpriseProjectId() const { return enterpriseProjectId_; @@ -910,6 +931,90 @@ void ListAttackLogsRequest::unsetdstRegionName() dstRegionNameIsSet_ = false; } +std::string ListAttackLogsRequest::getSrcProvinceName() const +{ + return srcProvinceName_; +} + +void ListAttackLogsRequest::setSrcProvinceName(const std::string& value) +{ + srcProvinceName_ = value; + srcProvinceNameIsSet_ = true; +} + +bool ListAttackLogsRequest::srcProvinceNameIsSet() const +{ + return srcProvinceNameIsSet_; +} + +void ListAttackLogsRequest::unsetsrcProvinceName() +{ + srcProvinceNameIsSet_ = false; +} + +std::string ListAttackLogsRequest::getDstProvinceName() const +{ + return dstProvinceName_; +} + +void ListAttackLogsRequest::setDstProvinceName(const std::string& value) +{ + dstProvinceName_ = value; + dstProvinceNameIsSet_ = true; +} + +bool ListAttackLogsRequest::dstProvinceNameIsSet() const +{ + return dstProvinceNameIsSet_; +} + +void ListAttackLogsRequest::unsetdstProvinceName() +{ + dstProvinceNameIsSet_ = false; +} + +std::string ListAttackLogsRequest::getSrcCityName() const +{ + return srcCityName_; +} + +void ListAttackLogsRequest::setSrcCityName(const std::string& value) +{ + srcCityName_ = value; + srcCityNameIsSet_ = true; +} + +bool ListAttackLogsRequest::srcCityNameIsSet() const +{ + return srcCityNameIsSet_; +} + +void ListAttackLogsRequest::unsetsrcCityName() +{ + srcCityNameIsSet_ = false; +} + +std::string ListAttackLogsRequest::getDstCityName() const +{ + return dstCityName_; +} + +void ListAttackLogsRequest::setDstCityName(const std::string& value) +{ + dstCityName_ = value; + dstCityNameIsSet_ = true; +} + +bool ListAttackLogsRequest::dstCityNameIsSet() const +{ + return dstCityNameIsSet_; +} + +void ListAttackLogsRequest::unsetdstCityName() +{ + dstCityNameIsSet_ = false; +} + } } } diff --git a/cfw/src/v1/model/ListCaptureResultRequest.cpp b/cfw/src/v1/model/ListCaptureResultRequest.cpp new file mode 100644 index 000000000..21487e794 --- /dev/null +++ b/cfw/src/v1/model/ListCaptureResultRequest.cpp @@ -0,0 +1,218 @@ + + +#include "huaweicloud/cfw/v1/model/ListCaptureResultRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + + + + +ListCaptureResultRequest::ListCaptureResultRequest() +{ + fwInstanceId_ = ""; + fwInstanceIdIsSet_ = false; + taskId_ = ""; + taskIdIsSet_ = false; + type_ = 0; + typeIsSet_ = false; + ipIsSet_ = false; + enterpriseProjectId_ = ""; + enterpriseProjectIdIsSet_ = false; +} + +ListCaptureResultRequest::~ListCaptureResultRequest() = default; + +void ListCaptureResultRequest::validate() +{ +} + +web::json::value ListCaptureResultRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(fwInstanceIdIsSet_) { + val[utility::conversions::to_string_t("fw_instance_id")] = ModelBase::toJson(fwInstanceId_); + } + if(taskIdIsSet_) { + val[utility::conversions::to_string_t("task_id")] = ModelBase::toJson(taskId_); + } + if(typeIsSet_) { + val[utility::conversions::to_string_t("type")] = ModelBase::toJson(type_); + } + if(ipIsSet_) { + val[utility::conversions::to_string_t("ip")] = ModelBase::toJson(ip_); + } + if(enterpriseProjectIdIsSet_) { + val[utility::conversions::to_string_t("enterprise_project_id")] = ModelBase::toJson(enterpriseProjectId_); + } + + return val; +} +bool ListCaptureResultRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("fw_instance_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("fw_instance_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFwInstanceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("task_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("task_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTaskId(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()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ip"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ip")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIp(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("enterprise_project_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("enterprise_project_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnterpriseProjectId(refVal); + } + } + return ok; +} + + +std::string ListCaptureResultRequest::getFwInstanceId() const +{ + return fwInstanceId_; +} + +void ListCaptureResultRequest::setFwInstanceId(const std::string& value) +{ + fwInstanceId_ = value; + fwInstanceIdIsSet_ = true; +} + +bool ListCaptureResultRequest::fwInstanceIdIsSet() const +{ + return fwInstanceIdIsSet_; +} + +void ListCaptureResultRequest::unsetfwInstanceId() +{ + fwInstanceIdIsSet_ = false; +} + +std::string ListCaptureResultRequest::getTaskId() const +{ + return taskId_; +} + +void ListCaptureResultRequest::setTaskId(const std::string& value) +{ + taskId_ = value; + taskIdIsSet_ = true; +} + +bool ListCaptureResultRequest::taskIdIsSet() const +{ + return taskIdIsSet_; +} + +void ListCaptureResultRequest::unsettaskId() +{ + taskIdIsSet_ = false; +} + +int32_t ListCaptureResultRequest::getType() const +{ + return type_; +} + +void ListCaptureResultRequest::setType(int32_t value) +{ + type_ = value; + typeIsSet_ = true; +} + +bool ListCaptureResultRequest::typeIsSet() const +{ + return typeIsSet_; +} + +void ListCaptureResultRequest::unsettype() +{ + typeIsSet_ = false; +} + +std::vector& ListCaptureResultRequest::getIp() +{ + return ip_; +} + +void ListCaptureResultRequest::setIp(const std::vector& value) +{ + ip_ = value; + ipIsSet_ = true; +} + +bool ListCaptureResultRequest::ipIsSet() const +{ + return ipIsSet_; +} + +void ListCaptureResultRequest::unsetip() +{ + ipIsSet_ = false; +} + +std::string ListCaptureResultRequest::getEnterpriseProjectId() const +{ + return enterpriseProjectId_; +} + +void ListCaptureResultRequest::setEnterpriseProjectId(const std::string& value) +{ + enterpriseProjectId_ = value; + enterpriseProjectIdIsSet_ = true; +} + +bool ListCaptureResultRequest::enterpriseProjectIdIsSet() const +{ + return enterpriseProjectIdIsSet_; +} + +void ListCaptureResultRequest::unsetenterpriseProjectId() +{ + enterpriseProjectIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cfw/src/v1/model/ListCaptureResultResponse.cpp b/cfw/src/v1/model/ListCaptureResultResponse.cpp new file mode 100644 index 000000000..172b0b434 --- /dev/null +++ b/cfw/src/v1/model/ListCaptureResultResponse.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/cfw/v1/model/ListCaptureResultResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + + + + +ListCaptureResultResponse::ListCaptureResultResponse() +{ + dataIsSet_ = false; +} + +ListCaptureResultResponse::~ListCaptureResultResponse() = default; + +void ListCaptureResultResponse::validate() +{ +} + +web::json::value ListCaptureResultResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(dataIsSet_) { + val[utility::conversions::to_string_t("data")] = ModelBase::toJson(data_); + } + + return val; +} +bool ListCaptureResultResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("data"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("data")); + if(!fieldValue.is_null()) + { + CaptureResultUrlVO refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setData(refVal); + } + } + return ok; +} + + +CaptureResultUrlVO ListCaptureResultResponse::getData() const +{ + return data_; +} + +void ListCaptureResultResponse::setData(const CaptureResultUrlVO& value) +{ + data_ = value; + dataIsSet_ = true; +} + +bool ListCaptureResultResponse::dataIsSet() const +{ + return dataIsSet_; +} + +void ListCaptureResultResponse::unsetdata() +{ + dataIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cfw/src/v1/model/ListCaptureTaskRequest.cpp b/cfw/src/v1/model/ListCaptureTaskRequest.cpp new file mode 100644 index 000000000..1d2b0626c --- /dev/null +++ b/cfw/src/v1/model/ListCaptureTaskRequest.cpp @@ -0,0 +1,184 @@ + + +#include "huaweicloud/cfw/v1/model/ListCaptureTaskRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + + + + +ListCaptureTaskRequest::ListCaptureTaskRequest() +{ + enterpriseProjectId_ = ""; + enterpriseProjectIdIsSet_ = false; + fwInstanceId_ = ""; + fwInstanceIdIsSet_ = false; + limit_ = 0; + limitIsSet_ = false; + offset_ = 0; + offsetIsSet_ = false; +} + +ListCaptureTaskRequest::~ListCaptureTaskRequest() = default; + +void ListCaptureTaskRequest::validate() +{ +} + +web::json::value ListCaptureTaskRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(enterpriseProjectIdIsSet_) { + val[utility::conversions::to_string_t("enterprise_project_id")] = ModelBase::toJson(enterpriseProjectId_); + } + if(fwInstanceIdIsSet_) { + val[utility::conversions::to_string_t("fw_instance_id")] = ModelBase::toJson(fwInstanceId_); + } + if(limitIsSet_) { + val[utility::conversions::to_string_t("limit")] = ModelBase::toJson(limit_); + } + if(offsetIsSet_) { + val[utility::conversions::to_string_t("offset")] = ModelBase::toJson(offset_); + } + + return val; +} +bool ListCaptureTaskRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("enterprise_project_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("enterprise_project_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnterpriseProjectId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("fw_instance_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("fw_instance_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFwInstanceId(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); + } + } + 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); + } + } + return ok; +} + + +std::string ListCaptureTaskRequest::getEnterpriseProjectId() const +{ + return enterpriseProjectId_; +} + +void ListCaptureTaskRequest::setEnterpriseProjectId(const std::string& value) +{ + enterpriseProjectId_ = value; + enterpriseProjectIdIsSet_ = true; +} + +bool ListCaptureTaskRequest::enterpriseProjectIdIsSet() const +{ + return enterpriseProjectIdIsSet_; +} + +void ListCaptureTaskRequest::unsetenterpriseProjectId() +{ + enterpriseProjectIdIsSet_ = false; +} + +std::string ListCaptureTaskRequest::getFwInstanceId() const +{ + return fwInstanceId_; +} + +void ListCaptureTaskRequest::setFwInstanceId(const std::string& value) +{ + fwInstanceId_ = value; + fwInstanceIdIsSet_ = true; +} + +bool ListCaptureTaskRequest::fwInstanceIdIsSet() const +{ + return fwInstanceIdIsSet_; +} + +void ListCaptureTaskRequest::unsetfwInstanceId() +{ + fwInstanceIdIsSet_ = false; +} + +int32_t ListCaptureTaskRequest::getLimit() const +{ + return limit_; +} + +void ListCaptureTaskRequest::setLimit(int32_t value) +{ + limit_ = value; + limitIsSet_ = true; +} + +bool ListCaptureTaskRequest::limitIsSet() const +{ + return limitIsSet_; +} + +void ListCaptureTaskRequest::unsetlimit() +{ + limitIsSet_ = false; +} + +int32_t ListCaptureTaskRequest::getOffset() const +{ + return offset_; +} + +void ListCaptureTaskRequest::setOffset(int32_t value) +{ + offset_ = value; + offsetIsSet_ = true; +} + +bool ListCaptureTaskRequest::offsetIsSet() const +{ + return offsetIsSet_; +} + +void ListCaptureTaskRequest::unsetoffset() +{ + offsetIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cfw/src/v1/model/ListCaptureTaskResponse.cpp b/cfw/src/v1/model/ListCaptureTaskResponse.cpp new file mode 100644 index 000000000..0e75daeb0 --- /dev/null +++ b/cfw/src/v1/model/ListCaptureTaskResponse.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/cfw/v1/model/ListCaptureTaskResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + + + + +ListCaptureTaskResponse::ListCaptureTaskResponse() +{ + dataIsSet_ = false; +} + +ListCaptureTaskResponse::~ListCaptureTaskResponse() = default; + +void ListCaptureTaskResponse::validate() +{ +} + +web::json::value ListCaptureTaskResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(dataIsSet_) { + val[utility::conversions::to_string_t("data")] = ModelBase::toJson(data_); + } + + return val; +} +bool ListCaptureTaskResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("data"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("data")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setData(refVal); + } + } + return ok; +} + + +std::vector& ListCaptureTaskResponse::getData() +{ + return data_; +} + +void ListCaptureTaskResponse::setData(const std::vector& value) +{ + data_ = value; + dataIsSet_ = true; +} + +bool ListCaptureTaskResponse::dataIsSet() const +{ + return dataIsSet_; +} + +void ListCaptureTaskResponse::unsetdata() +{ + dataIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cfw/src/v1/model/ListDomainParseDetailRequest.cpp b/cfw/src/v1/model/ListDomainParseDetailRequest.cpp index fec740692..44f3d4114 100644 --- a/cfw/src/v1/model/ListDomainParseDetailRequest.cpp +++ b/cfw/src/v1/model/ListDomainParseDetailRequest.cpp @@ -18,7 +18,7 @@ ListDomainParseDetailRequest::ListDomainParseDetailRequest() enterpriseProjectIdIsSet_ = false; fwInstanceId_ = ""; fwInstanceIdIsSet_ = false; - addressType_ = ""; + addressType_ = 0; addressTypeIsSet_ = false; } @@ -82,7 +82,7 @@ bool ListDomainParseDetailRequest::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("address_type")); if(!fieldValue.is_null()) { - std::string refVal; + int32_t refVal; ok &= ModelBase::fromJson(fieldValue, refVal); setAddressType(refVal); } @@ -154,12 +154,12 @@ void ListDomainParseDetailRequest::unsetfwInstanceId() fwInstanceIdIsSet_ = false; } -std::string ListDomainParseDetailRequest::getAddressType() const +int32_t ListDomainParseDetailRequest::getAddressType() const { return addressType_; } -void ListDomainParseDetailRequest::setAddressType(const std::string& value) +void ListDomainParseDetailRequest::setAddressType(int32_t value) { addressType_ = value; addressTypeIsSet_ = true; diff --git a/cfw/src/v1/model/ListDomainsRequest.cpp b/cfw/src/v1/model/ListDomainsRequest.cpp index c1aa6fa23..881f1cbd5 100644 --- a/cfw/src/v1/model/ListDomainsRequest.cpp +++ b/cfw/src/v1/model/ListDomainsRequest.cpp @@ -24,10 +24,6 @@ ListDomainsRequest::ListDomainsRequest() offsetIsSet_ = false; domainName_ = ""; domainNameIsSet_ = false; - description_ = ""; - descriptionIsSet_ = false; - setId_ = ""; - setIdIsSet_ = false; objectId_ = ""; objectIdIsSet_ = false; } @@ -60,12 +56,6 @@ web::json::value ListDomainsRequest::toJson() const if(domainNameIsSet_) { val[utility::conversions::to_string_t("domain_name")] = ModelBase::toJson(domainName_); } - if(descriptionIsSet_) { - val[utility::conversions::to_string_t("description")] = ModelBase::toJson(description_); - } - if(setIdIsSet_) { - val[utility::conversions::to_string_t("set_id")] = ModelBase::toJson(setId_); - } if(objectIdIsSet_) { val[utility::conversions::to_string_t("object_Id")] = ModelBase::toJson(objectId_); } @@ -130,24 +120,6 @@ bool ListDomainsRequest::fromJson(const web::json::value& val) setDomainName(refVal); } } - if(val.has_field(utility::conversions::to_string_t("description"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("description")); - if(!fieldValue.is_null()) - { - std::string refVal; - ok &= ModelBase::fromJson(fieldValue, refVal); - setDescription(refVal); - } - } - if(val.has_field(utility::conversions::to_string_t("set_id"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("set_id")); - if(!fieldValue.is_null()) - { - std::string refVal; - ok &= ModelBase::fromJson(fieldValue, refVal); - setSetId(refVal); - } - } if(val.has_field(utility::conversions::to_string_t("object_Id"))) { const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("object_Id")); if(!fieldValue.is_null()) @@ -287,48 +259,6 @@ void ListDomainsRequest::unsetdomainName() domainNameIsSet_ = false; } -std::string ListDomainsRequest::getDescription() const -{ - return description_; -} - -void ListDomainsRequest::setDescription(const std::string& value) -{ - description_ = value; - descriptionIsSet_ = true; -} - -bool ListDomainsRequest::descriptionIsSet() const -{ - return descriptionIsSet_; -} - -void ListDomainsRequest::unsetdescription() -{ - descriptionIsSet_ = false; -} - -std::string ListDomainsRequest::getSetId() const -{ - return setId_; -} - -void ListDomainsRequest::setSetId(const std::string& value) -{ - setId_ = value; - setIdIsSet_ = true; -} - -bool ListDomainsRequest::setIdIsSet() const -{ - return setIdIsSet_; -} - -void ListDomainsRequest::unsetsetId() -{ - setIdIsSet_ = false; -} - std::string ListDomainsRequest::getObjectId() const { return objectId_; diff --git a/cfw/src/v1/model/ListFlowLogsRequest.cpp b/cfw/src/v1/model/ListFlowLogsRequest.cpp index c674bf46d..c625fe0e9 100644 --- a/cfw/src/v1/model/ListFlowLogsRequest.cpp +++ b/cfw/src/v1/model/ListFlowLogsRequest.cpp @@ -50,6 +50,14 @@ ListFlowLogsRequest::ListFlowLogsRequest() srcRegionNameIsSet_ = false; dstRegionName_ = ""; dstRegionNameIsSet_ = false; + srcProvinceName_ = ""; + srcProvinceNameIsSet_ = false; + dstProvinceName_ = ""; + dstProvinceNameIsSet_ = false; + srcCityName_ = ""; + srcCityNameIsSet_ = false; + dstCityName_ = ""; + dstCityNameIsSet_ = false; } ListFlowLogsRequest::~ListFlowLogsRequest() = default; @@ -119,6 +127,18 @@ web::json::value ListFlowLogsRequest::toJson() const if(dstRegionNameIsSet_) { val[utility::conversions::to_string_t("dst_region_name")] = ModelBase::toJson(dstRegionName_); } + if(srcProvinceNameIsSet_) { + val[utility::conversions::to_string_t("src_province_name")] = ModelBase::toJson(srcProvinceName_); + } + if(dstProvinceNameIsSet_) { + val[utility::conversions::to_string_t("dst_province_name")] = ModelBase::toJson(dstProvinceName_); + } + if(srcCityNameIsSet_) { + val[utility::conversions::to_string_t("src_city_name")] = ModelBase::toJson(srcCityName_); + } + if(dstCityNameIsSet_) { + val[utility::conversions::to_string_t("dst_city_name")] = ModelBase::toJson(dstCityName_); + } return val; } @@ -297,6 +317,42 @@ bool ListFlowLogsRequest::fromJson(const web::json::value& val) setDstRegionName(refVal); } } + if(val.has_field(utility::conversions::to_string_t("src_province_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("src_province_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSrcProvinceName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("dst_province_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("dst_province_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDstProvinceName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("src_city_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("src_city_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSrcCityName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("dst_city_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("dst_city_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDstCityName(refVal); + } + } return ok; } @@ -700,6 +756,90 @@ void ListFlowLogsRequest::unsetdstRegionName() dstRegionNameIsSet_ = false; } +std::string ListFlowLogsRequest::getSrcProvinceName() const +{ + return srcProvinceName_; +} + +void ListFlowLogsRequest::setSrcProvinceName(const std::string& value) +{ + srcProvinceName_ = value; + srcProvinceNameIsSet_ = true; +} + +bool ListFlowLogsRequest::srcProvinceNameIsSet() const +{ + return srcProvinceNameIsSet_; +} + +void ListFlowLogsRequest::unsetsrcProvinceName() +{ + srcProvinceNameIsSet_ = false; +} + +std::string ListFlowLogsRequest::getDstProvinceName() const +{ + return dstProvinceName_; +} + +void ListFlowLogsRequest::setDstProvinceName(const std::string& value) +{ + dstProvinceName_ = value; + dstProvinceNameIsSet_ = true; +} + +bool ListFlowLogsRequest::dstProvinceNameIsSet() const +{ + return dstProvinceNameIsSet_; +} + +void ListFlowLogsRequest::unsetdstProvinceName() +{ + dstProvinceNameIsSet_ = false; +} + +std::string ListFlowLogsRequest::getSrcCityName() const +{ + return srcCityName_; +} + +void ListFlowLogsRequest::setSrcCityName(const std::string& value) +{ + srcCityName_ = value; + srcCityNameIsSet_ = true; +} + +bool ListFlowLogsRequest::srcCityNameIsSet() const +{ + return srcCityNameIsSet_; +} + +void ListFlowLogsRequest::unsetsrcCityName() +{ + srcCityNameIsSet_ = false; +} + +std::string ListFlowLogsRequest::getDstCityName() const +{ + return dstCityName_; +} + +void ListFlowLogsRequest::setDstCityName(const std::string& value) +{ + dstCityName_ = value; + dstCityNameIsSet_ = true; +} + +bool ListFlowLogsRequest::dstCityNameIsSet() const +{ + return dstCityNameIsSet_; +} + +void ListFlowLogsRequest::unsetdstCityName() +{ + dstCityNameIsSet_ = false; +} + } } } diff --git a/cfw/src/v1/model/ListProtectedVpcsResponse.cpp b/cfw/src/v1/model/ListProtectedVpcsResponse.cpp index 8ade4ffe3..053bc93a6 100644 --- a/cfw/src/v1/model/ListProtectedVpcsResponse.cpp +++ b/cfw/src/v1/model/ListProtectedVpcsResponse.cpp @@ -12,8 +12,6 @@ namespace Model { ListProtectedVpcsResponse::ListProtectedVpcsResponse() { - traceId_ = ""; - traceIdIsSet_ = false; dataIsSet_ = false; } @@ -27,9 +25,6 @@ web::json::value ListProtectedVpcsResponse::toJson() const { web::json::value val = web::json::value::object(); - if(traceIdIsSet_) { - val[utility::conversions::to_string_t("trace_id")] = ModelBase::toJson(traceId_); - } if(dataIsSet_) { val[utility::conversions::to_string_t("data")] = ModelBase::toJson(data_); } @@ -40,15 +35,6 @@ bool ListProtectedVpcsResponse::fromJson(const web::json::value& val) { bool ok = true; - if(val.has_field(utility::conversions::to_string_t("trace_id"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("trace_id")); - if(!fieldValue.is_null()) - { - std::string refVal; - ok &= ModelBase::fromJson(fieldValue, refVal); - setTraceId(refVal); - } - } if(val.has_field(utility::conversions::to_string_t("data"))) { const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("data")); if(!fieldValue.is_null()) @@ -62,27 +48,6 @@ bool ListProtectedVpcsResponse::fromJson(const web::json::value& val) } -std::string ListProtectedVpcsResponse::getTraceId() const -{ - return traceId_; -} - -void ListProtectedVpcsResponse::setTraceId(const std::string& value) -{ - traceId_ = value; - traceIdIsSet_ = true; -} - -bool ListProtectedVpcsResponse::traceIdIsSet() const -{ - return traceIdIsSet_; -} - -void ListProtectedVpcsResponse::unsettraceId() -{ - traceIdIsSet_ = false; -} - VPCProtectsVo ListProtectedVpcsResponse::getData() const { return data_; diff --git a/cfw/src/v1/model/ResourceTag.cpp b/cfw/src/v1/model/ResourceTag.cpp new file mode 100644 index 000000000..503d592b6 --- /dev/null +++ b/cfw/src/v1/model/ResourceTag.cpp @@ -0,0 +1,149 @@ + + +#include "huaweicloud/cfw/v1/model/ResourceTag.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + + + + +ResourceTag::ResourceTag() +{ + key_ = ""; + keyIsSet_ = false; + value_ = ""; + valueIsSet_ = false; + updateTime_ = ""; + updateTimeIsSet_ = false; +} + +ResourceTag::~ResourceTag() = default; + +void ResourceTag::validate() +{ +} + +web::json::value ResourceTag::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(keyIsSet_) { + val[utility::conversions::to_string_t("key")] = ModelBase::toJson(key_); + } + if(valueIsSet_) { + val[utility::conversions::to_string_t("value")] = ModelBase::toJson(value_); + } + if(updateTimeIsSet_) { + val[utility::conversions::to_string_t("update_time")] = ModelBase::toJson(updateTime_); + } + + return val; +} +bool ResourceTag::fromJson(const web::json::value& val) +{ + bool ok = true; + + 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("value"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("value")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setValue(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("update_time"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("update_time")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setUpdateTime(refVal); + } + } + return ok; +} + + +std::string ResourceTag::getKey() const +{ + return key_; +} + +void ResourceTag::setKey(const std::string& value) +{ + key_ = value; + keyIsSet_ = true; +} + +bool ResourceTag::keyIsSet() const +{ + return keyIsSet_; +} + +void ResourceTag::unsetkey() +{ + keyIsSet_ = false; +} + +std::string ResourceTag::getValue() const +{ + return value_; +} + +void ResourceTag::setValue(const std::string& value) +{ + value_ = value; + valueIsSet_ = true; +} + +bool ResourceTag::valueIsSet() const +{ + return valueIsSet_; +} + +void ResourceTag::unsetvalue() +{ + valueIsSet_ = false; +} + +std::string ResourceTag::getUpdateTime() const +{ + return updateTime_; +} + +void ResourceTag::setUpdateTime(const std::string& value) +{ + updateTime_ = value; + updateTimeIsSet_ = true; +} + +bool ResourceTag::updateTimeIsSet() const +{ + return updateTimeIsSet_; +} + +void ResourceTag::unsetupdateTime() +{ + updateTimeIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cfw/src/v1/model/RuleAclListResponseDTO_data_records.cpp b/cfw/src/v1/model/RuleAclListResponseDTO_data_records.cpp index d8ca03966..f0e2cf256 100644 --- a/cfw/src/v1/model/RuleAclListResponseDTO_data_records.cpp +++ b/cfw/src/v1/model/RuleAclListResponseDTO_data_records.cpp @@ -18,7 +18,6 @@ RuleAclListResponseDTO_data_records::RuleAclListResponseDTO_data_records() addressTypeIsSet_ = false; name_ = ""; nameIsSet_ = false; - sequenceIsSet_ = false; direction_ = 0; directionIsSet_ = false; actionType_ = 0; @@ -27,16 +26,16 @@ RuleAclListResponseDTO_data_records::RuleAclListResponseDTO_data_records() statusIsSet_ = false; description_ = ""; descriptionIsSet_ = false; + longConnectTime_ = 0L; + longConnectTimeIsSet_ = false; + longConnectEnable_ = 0; + longConnectEnableIsSet_ = false; longConnectTimeHour_ = 0L; longConnectTimeHourIsSet_ = false; longConnectTimeMinute_ = 0L; longConnectTimeMinuteIsSet_ = false; longConnectTimeSecond_ = 0L; longConnectTimeSecondIsSet_ = false; - longConnectTime_ = 0L; - longConnectTimeIsSet_ = false; - longConnectEnable_ = 0; - longConnectEnableIsSet_ = false; sourceIsSet_ = false; destinationIsSet_ = false; serviceIsSet_ = false; @@ -68,9 +67,6 @@ web::json::value RuleAclListResponseDTO_data_records::toJson() const if(nameIsSet_) { val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); } - if(sequenceIsSet_) { - val[utility::conversions::to_string_t("sequence")] = ModelBase::toJson(sequence_); - } if(directionIsSet_) { val[utility::conversions::to_string_t("direction")] = ModelBase::toJson(direction_); } @@ -83,6 +79,12 @@ web::json::value RuleAclListResponseDTO_data_records::toJson() const if(descriptionIsSet_) { val[utility::conversions::to_string_t("description")] = ModelBase::toJson(description_); } + if(longConnectTimeIsSet_) { + val[utility::conversions::to_string_t("long_connect_time")] = ModelBase::toJson(longConnectTime_); + } + if(longConnectEnableIsSet_) { + val[utility::conversions::to_string_t("long_connect_enable")] = ModelBase::toJson(longConnectEnable_); + } if(longConnectTimeHourIsSet_) { val[utility::conversions::to_string_t("long_connect_time_hour")] = ModelBase::toJson(longConnectTimeHour_); } @@ -92,12 +94,6 @@ web::json::value RuleAclListResponseDTO_data_records::toJson() const if(longConnectTimeSecondIsSet_) { val[utility::conversions::to_string_t("long_connect_time_second")] = ModelBase::toJson(longConnectTimeSecond_); } - if(longConnectTimeIsSet_) { - val[utility::conversions::to_string_t("long_connect_time")] = ModelBase::toJson(longConnectTime_); - } - if(longConnectEnableIsSet_) { - val[utility::conversions::to_string_t("long_connect_enable")] = ModelBase::toJson(longConnectEnable_); - } if(sourceIsSet_) { val[utility::conversions::to_string_t("source")] = ModelBase::toJson(source_); } @@ -153,15 +149,6 @@ bool RuleAclListResponseDTO_data_records::fromJson(const web::json::value& val) setName(refVal); } } - if(val.has_field(utility::conversions::to_string_t("sequence"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sequence")); - if(!fieldValue.is_null()) - { - OrderRuleAclDto refVal; - ok &= ModelBase::fromJson(fieldValue, refVal); - setSequence(refVal); - } - } if(val.has_field(utility::conversions::to_string_t("direction"))) { const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("direction")); if(!fieldValue.is_null()) @@ -198,56 +185,56 @@ bool RuleAclListResponseDTO_data_records::fromJson(const web::json::value& val) setDescription(refVal); } } - if(val.has_field(utility::conversions::to_string_t("long_connect_time_hour"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("long_connect_time_hour")); + if(val.has_field(utility::conversions::to_string_t("long_connect_time"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("long_connect_time")); if(!fieldValue.is_null()) { int64_t refVal; ok &= ModelBase::fromJson(fieldValue, refVal); - setLongConnectTimeHour(refVal); + setLongConnectTime(refVal); } } - if(val.has_field(utility::conversions::to_string_t("long_connect_time_minute"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("long_connect_time_minute")); + if(val.has_field(utility::conversions::to_string_t("long_connect_enable"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("long_connect_enable")); if(!fieldValue.is_null()) { - int64_t refVal; + int32_t refVal; ok &= ModelBase::fromJson(fieldValue, refVal); - setLongConnectTimeMinute(refVal); + setLongConnectEnable(refVal); } } - if(val.has_field(utility::conversions::to_string_t("long_connect_time_second"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("long_connect_time_second")); + if(val.has_field(utility::conversions::to_string_t("long_connect_time_hour"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("long_connect_time_hour")); if(!fieldValue.is_null()) { int64_t refVal; ok &= ModelBase::fromJson(fieldValue, refVal); - setLongConnectTimeSecond(refVal); + setLongConnectTimeHour(refVal); } } - if(val.has_field(utility::conversions::to_string_t("long_connect_time"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("long_connect_time")); + if(val.has_field(utility::conversions::to_string_t("long_connect_time_minute"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("long_connect_time_minute")); if(!fieldValue.is_null()) { int64_t refVal; ok &= ModelBase::fromJson(fieldValue, refVal); - setLongConnectTime(refVal); + setLongConnectTimeMinute(refVal); } } - if(val.has_field(utility::conversions::to_string_t("long_connect_enable"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("long_connect_enable")); + if(val.has_field(utility::conversions::to_string_t("long_connect_time_second"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("long_connect_time_second")); if(!fieldValue.is_null()) { - int32_t refVal; + int64_t refVal; ok &= ModelBase::fromJson(fieldValue, refVal); - setLongConnectEnable(refVal); + setLongConnectTimeSecond(refVal); } } if(val.has_field(utility::conversions::to_string_t("source"))) { const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("source")); if(!fieldValue.is_null()) { - RuleAddressDto refVal; + RuleAddressDtoForResponse refVal; ok &= ModelBase::fromJson(fieldValue, refVal); setSource(refVal); } @@ -256,7 +243,7 @@ bool RuleAclListResponseDTO_data_records::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("destination")); if(!fieldValue.is_null()) { - RuleAddressDto refVal; + RuleAddressDtoForResponse refVal; ok &= ModelBase::fromJson(fieldValue, refVal); setDestination(refVal); } @@ -265,7 +252,7 @@ bool RuleAclListResponseDTO_data_records::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("service")); if(!fieldValue.is_null()) { - RuleServiceDto refVal; + RuleServiceDtoForResponse refVal; ok &= ModelBase::fromJson(fieldValue, refVal); setService(refVal); } @@ -373,27 +360,6 @@ void RuleAclListResponseDTO_data_records::unsetname() nameIsSet_ = false; } -OrderRuleAclDto RuleAclListResponseDTO_data_records::getSequence() const -{ - return sequence_; -} - -void RuleAclListResponseDTO_data_records::setSequence(const OrderRuleAclDto& value) -{ - sequence_ = value; - sequenceIsSet_ = true; -} - -bool RuleAclListResponseDTO_data_records::sequenceIsSet() const -{ - return sequenceIsSet_; -} - -void RuleAclListResponseDTO_data_records::unsetsequence() -{ - sequenceIsSet_ = false; -} - int32_t RuleAclListResponseDTO_data_records::getDirection() const { return direction_; @@ -478,6 +444,48 @@ void RuleAclListResponseDTO_data_records::unsetdescription() descriptionIsSet_ = false; } +int64_t RuleAclListResponseDTO_data_records::getLongConnectTime() const +{ + return longConnectTime_; +} + +void RuleAclListResponseDTO_data_records::setLongConnectTime(int64_t value) +{ + longConnectTime_ = value; + longConnectTimeIsSet_ = true; +} + +bool RuleAclListResponseDTO_data_records::longConnectTimeIsSet() const +{ + return longConnectTimeIsSet_; +} + +void RuleAclListResponseDTO_data_records::unsetlongConnectTime() +{ + longConnectTimeIsSet_ = false; +} + +int32_t RuleAclListResponseDTO_data_records::getLongConnectEnable() const +{ + return longConnectEnable_; +} + +void RuleAclListResponseDTO_data_records::setLongConnectEnable(int32_t value) +{ + longConnectEnable_ = value; + longConnectEnableIsSet_ = true; +} + +bool RuleAclListResponseDTO_data_records::longConnectEnableIsSet() const +{ + return longConnectEnableIsSet_; +} + +void RuleAclListResponseDTO_data_records::unsetlongConnectEnable() +{ + longConnectEnableIsSet_ = false; +} + int64_t RuleAclListResponseDTO_data_records::getLongConnectTimeHour() const { return longConnectTimeHour_; @@ -541,54 +549,12 @@ void RuleAclListResponseDTO_data_records::unsetlongConnectTimeSecond() longConnectTimeSecondIsSet_ = false; } -int64_t RuleAclListResponseDTO_data_records::getLongConnectTime() const -{ - return longConnectTime_; -} - -void RuleAclListResponseDTO_data_records::setLongConnectTime(int64_t value) -{ - longConnectTime_ = value; - longConnectTimeIsSet_ = true; -} - -bool RuleAclListResponseDTO_data_records::longConnectTimeIsSet() const -{ - return longConnectTimeIsSet_; -} - -void RuleAclListResponseDTO_data_records::unsetlongConnectTime() -{ - longConnectTimeIsSet_ = false; -} - -int32_t RuleAclListResponseDTO_data_records::getLongConnectEnable() const -{ - return longConnectEnable_; -} - -void RuleAclListResponseDTO_data_records::setLongConnectEnable(int32_t value) -{ - longConnectEnable_ = value; - longConnectEnableIsSet_ = true; -} - -bool RuleAclListResponseDTO_data_records::longConnectEnableIsSet() const -{ - return longConnectEnableIsSet_; -} - -void RuleAclListResponseDTO_data_records::unsetlongConnectEnable() -{ - longConnectEnableIsSet_ = false; -} - -RuleAddressDto RuleAclListResponseDTO_data_records::getSource() const +RuleAddressDtoForResponse RuleAclListResponseDTO_data_records::getSource() const { return source_; } -void RuleAclListResponseDTO_data_records::setSource(const RuleAddressDto& value) +void RuleAclListResponseDTO_data_records::setSource(const RuleAddressDtoForResponse& value) { source_ = value; sourceIsSet_ = true; @@ -604,12 +570,12 @@ void RuleAclListResponseDTO_data_records::unsetsource() sourceIsSet_ = false; } -RuleAddressDto RuleAclListResponseDTO_data_records::getDestination() const +RuleAddressDtoForResponse RuleAclListResponseDTO_data_records::getDestination() const { return destination_; } -void RuleAclListResponseDTO_data_records::setDestination(const RuleAddressDto& value) +void RuleAclListResponseDTO_data_records::setDestination(const RuleAddressDtoForResponse& value) { destination_ = value; destinationIsSet_ = true; @@ -625,12 +591,12 @@ void RuleAclListResponseDTO_data_records::unsetdestination() destinationIsSet_ = false; } -RuleServiceDto RuleAclListResponseDTO_data_records::getService() const +RuleServiceDtoForResponse RuleAclListResponseDTO_data_records::getService() const { return service_; } -void RuleAclListResponseDTO_data_records::setService(const RuleServiceDto& value) +void RuleAclListResponseDTO_data_records::setService(const RuleServiceDtoForResponse& value) { service_ = value; serviceIsSet_ = true; diff --git a/cfw/src/v1/model/RuleAddressDtoForRequest.cpp b/cfw/src/v1/model/RuleAddressDtoForRequest.cpp index 41091a066..b5465867a 100644 --- a/cfw/src/v1/model/RuleAddressDtoForRequest.cpp +++ b/cfw/src/v1/model/RuleAddressDtoForRequest.cpp @@ -35,6 +35,7 @@ RuleAddressDtoForRequest::RuleAddressDtoForRequest() addressSetType_ = 0; addressSetTypeIsSet_ = false; predefinedGroupIsSet_ = false; + addressGroupIsSet_ = false; } RuleAddressDtoForRequest::~RuleAddressDtoForRequest() = default; @@ -86,6 +87,9 @@ web::json::value RuleAddressDtoForRequest::toJson() const if(predefinedGroupIsSet_) { val[utility::conversions::to_string_t("predefined_group")] = ModelBase::toJson(predefinedGroup_); } + if(addressGroupIsSet_) { + val[utility::conversions::to_string_t("address_group")] = ModelBase::toJson(addressGroup_); + } return val; } @@ -210,6 +214,15 @@ bool RuleAddressDtoForRequest::fromJson(const web::json::value& val) setPredefinedGroup(refVal); } } + if(val.has_field(utility::conversions::to_string_t("address_group"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("address_group")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAddressGroup(refVal); + } + } return ok; } @@ -487,6 +500,27 @@ void RuleAddressDtoForRequest::unsetpredefinedGroup() predefinedGroupIsSet_ = false; } +std::vector& RuleAddressDtoForRequest::getAddressGroup() +{ + return addressGroup_; +} + +void RuleAddressDtoForRequest::setAddressGroup(const std::vector& value) +{ + addressGroup_ = value; + addressGroupIsSet_ = true; +} + +bool RuleAddressDtoForRequest::addressGroupIsSet() const +{ + return addressGroupIsSet_; +} + +void RuleAddressDtoForRequest::unsetaddressGroup() +{ + addressGroupIsSet_ = false; +} + } } } diff --git a/cfw/src/v1/model/RuleAddressDtoForResponse.cpp b/cfw/src/v1/model/RuleAddressDtoForResponse.cpp new file mode 100644 index 000000000..c36abd520 --- /dev/null +++ b/cfw/src/v1/model/RuleAddressDtoForResponse.cpp @@ -0,0 +1,530 @@ + + +#include "huaweicloud/cfw/v1/model/RuleAddressDtoForResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + + + + +RuleAddressDtoForResponse::RuleAddressDtoForResponse() +{ + type_ = 0; + typeIsSet_ = false; + addressType_ = 0; + addressTypeIsSet_ = false; + address_ = ""; + addressIsSet_ = false; + addressSetId_ = ""; + addressSetIdIsSet_ = false; + addressSetName_ = ""; + addressSetNameIsSet_ = false; + domainAddressName_ = ""; + domainAddressNameIsSet_ = false; + regionListJson_ = ""; + regionListJsonIsSet_ = false; + regionListIsSet_ = false; + domainSetId_ = ""; + domainSetIdIsSet_ = false; + domainSetName_ = ""; + domainSetNameIsSet_ = false; + ipAddressIsSet_ = false; + addressGroupIsSet_ = false; + addressGroupNamesIsSet_ = false; + addressSetType_ = 0; + addressSetTypeIsSet_ = false; +} + +RuleAddressDtoForResponse::~RuleAddressDtoForResponse() = default; + +void RuleAddressDtoForResponse::validate() +{ +} + +web::json::value RuleAddressDtoForResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(typeIsSet_) { + val[utility::conversions::to_string_t("type")] = ModelBase::toJson(type_); + } + if(addressTypeIsSet_) { + val[utility::conversions::to_string_t("address_type")] = ModelBase::toJson(addressType_); + } + if(addressIsSet_) { + val[utility::conversions::to_string_t("address")] = ModelBase::toJson(address_); + } + if(addressSetIdIsSet_) { + val[utility::conversions::to_string_t("address_set_id")] = ModelBase::toJson(addressSetId_); + } + if(addressSetNameIsSet_) { + val[utility::conversions::to_string_t("address_set_name")] = ModelBase::toJson(addressSetName_); + } + if(domainAddressNameIsSet_) { + val[utility::conversions::to_string_t("domain_address_name")] = ModelBase::toJson(domainAddressName_); + } + if(regionListJsonIsSet_) { + val[utility::conversions::to_string_t("region_list_json")] = ModelBase::toJson(regionListJson_); + } + if(regionListIsSet_) { + val[utility::conversions::to_string_t("region_list")] = ModelBase::toJson(regionList_); + } + if(domainSetIdIsSet_) { + val[utility::conversions::to_string_t("domain_set_id")] = ModelBase::toJson(domainSetId_); + } + if(domainSetNameIsSet_) { + val[utility::conversions::to_string_t("domain_set_name")] = ModelBase::toJson(domainSetName_); + } + if(ipAddressIsSet_) { + val[utility::conversions::to_string_t("ip_address")] = ModelBase::toJson(ipAddress_); + } + if(addressGroupIsSet_) { + val[utility::conversions::to_string_t("address_group")] = ModelBase::toJson(addressGroup_); + } + if(addressGroupNamesIsSet_) { + val[utility::conversions::to_string_t("address_group_names")] = ModelBase::toJson(addressGroupNames_); + } + if(addressSetTypeIsSet_) { + val[utility::conversions::to_string_t("address_set_type")] = ModelBase::toJson(addressSetType_); + } + + return val; +} +bool RuleAddressDtoForResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + 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()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("address_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("address_type")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAddressType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("address"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("address")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAddress(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("address_set_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("address_set_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAddressSetId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("address_set_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("address_set_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAddressSetName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("domain_address_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("domain_address_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDomainAddressName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("region_list_json"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("region_list_json")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRegionListJson(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("region_list"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("region_list")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRegionList(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("domain_set_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("domain_set_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDomainSetId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("domain_set_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("domain_set_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDomainSetName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ip_address"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ip_address")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIpAddress(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("address_group"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("address_group")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAddressGroup(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("address_group_names"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("address_group_names")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAddressGroupNames(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("address_set_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("address_set_type")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAddressSetType(refVal); + } + } + return ok; +} + + +int32_t RuleAddressDtoForResponse::getType() const +{ + return type_; +} + +void RuleAddressDtoForResponse::setType(int32_t value) +{ + type_ = value; + typeIsSet_ = true; +} + +bool RuleAddressDtoForResponse::typeIsSet() const +{ + return typeIsSet_; +} + +void RuleAddressDtoForResponse::unsettype() +{ + typeIsSet_ = false; +} + +int32_t RuleAddressDtoForResponse::getAddressType() const +{ + return addressType_; +} + +void RuleAddressDtoForResponse::setAddressType(int32_t value) +{ + addressType_ = value; + addressTypeIsSet_ = true; +} + +bool RuleAddressDtoForResponse::addressTypeIsSet() const +{ + return addressTypeIsSet_; +} + +void RuleAddressDtoForResponse::unsetaddressType() +{ + addressTypeIsSet_ = false; +} + +std::string RuleAddressDtoForResponse::getAddress() const +{ + return address_; +} + +void RuleAddressDtoForResponse::setAddress(const std::string& value) +{ + address_ = value; + addressIsSet_ = true; +} + +bool RuleAddressDtoForResponse::addressIsSet() const +{ + return addressIsSet_; +} + +void RuleAddressDtoForResponse::unsetaddress() +{ + addressIsSet_ = false; +} + +std::string RuleAddressDtoForResponse::getAddressSetId() const +{ + return addressSetId_; +} + +void RuleAddressDtoForResponse::setAddressSetId(const std::string& value) +{ + addressSetId_ = value; + addressSetIdIsSet_ = true; +} + +bool RuleAddressDtoForResponse::addressSetIdIsSet() const +{ + return addressSetIdIsSet_; +} + +void RuleAddressDtoForResponse::unsetaddressSetId() +{ + addressSetIdIsSet_ = false; +} + +std::string RuleAddressDtoForResponse::getAddressSetName() const +{ + return addressSetName_; +} + +void RuleAddressDtoForResponse::setAddressSetName(const std::string& value) +{ + addressSetName_ = value; + addressSetNameIsSet_ = true; +} + +bool RuleAddressDtoForResponse::addressSetNameIsSet() const +{ + return addressSetNameIsSet_; +} + +void RuleAddressDtoForResponse::unsetaddressSetName() +{ + addressSetNameIsSet_ = false; +} + +std::string RuleAddressDtoForResponse::getDomainAddressName() const +{ + return domainAddressName_; +} + +void RuleAddressDtoForResponse::setDomainAddressName(const std::string& value) +{ + domainAddressName_ = value; + domainAddressNameIsSet_ = true; +} + +bool RuleAddressDtoForResponse::domainAddressNameIsSet() const +{ + return domainAddressNameIsSet_; +} + +void RuleAddressDtoForResponse::unsetdomainAddressName() +{ + domainAddressNameIsSet_ = false; +} + +std::string RuleAddressDtoForResponse::getRegionListJson() const +{ + return regionListJson_; +} + +void RuleAddressDtoForResponse::setRegionListJson(const std::string& value) +{ + regionListJson_ = value; + regionListJsonIsSet_ = true; +} + +bool RuleAddressDtoForResponse::regionListJsonIsSet() const +{ + return regionListJsonIsSet_; +} + +void RuleAddressDtoForResponse::unsetregionListJson() +{ + regionListJsonIsSet_ = false; +} + +std::vector& RuleAddressDtoForResponse::getRegionList() +{ + return regionList_; +} + +void RuleAddressDtoForResponse::setRegionList(const std::vector& value) +{ + regionList_ = value; + regionListIsSet_ = true; +} + +bool RuleAddressDtoForResponse::regionListIsSet() const +{ + return regionListIsSet_; +} + +void RuleAddressDtoForResponse::unsetregionList() +{ + regionListIsSet_ = false; +} + +std::string RuleAddressDtoForResponse::getDomainSetId() const +{ + return domainSetId_; +} + +void RuleAddressDtoForResponse::setDomainSetId(const std::string& value) +{ + domainSetId_ = value; + domainSetIdIsSet_ = true; +} + +bool RuleAddressDtoForResponse::domainSetIdIsSet() const +{ + return domainSetIdIsSet_; +} + +void RuleAddressDtoForResponse::unsetdomainSetId() +{ + domainSetIdIsSet_ = false; +} + +std::string RuleAddressDtoForResponse::getDomainSetName() const +{ + return domainSetName_; +} + +void RuleAddressDtoForResponse::setDomainSetName(const std::string& value) +{ + domainSetName_ = value; + domainSetNameIsSet_ = true; +} + +bool RuleAddressDtoForResponse::domainSetNameIsSet() const +{ + return domainSetNameIsSet_; +} + +void RuleAddressDtoForResponse::unsetdomainSetName() +{ + domainSetNameIsSet_ = false; +} + +std::vector& RuleAddressDtoForResponse::getIpAddress() +{ + return ipAddress_; +} + +void RuleAddressDtoForResponse::setIpAddress(const std::vector& value) +{ + ipAddress_ = value; + ipAddressIsSet_ = true; +} + +bool RuleAddressDtoForResponse::ipAddressIsSet() const +{ + return ipAddressIsSet_; +} + +void RuleAddressDtoForResponse::unsetipAddress() +{ + ipAddressIsSet_ = false; +} + +std::vector& RuleAddressDtoForResponse::getAddressGroup() +{ + return addressGroup_; +} + +void RuleAddressDtoForResponse::setAddressGroup(const std::vector& value) +{ + addressGroup_ = value; + addressGroupIsSet_ = true; +} + +bool RuleAddressDtoForResponse::addressGroupIsSet() const +{ + return addressGroupIsSet_; +} + +void RuleAddressDtoForResponse::unsetaddressGroup() +{ + addressGroupIsSet_ = false; +} + +std::vector& RuleAddressDtoForResponse::getAddressGroupNames() +{ + return addressGroupNames_; +} + +void RuleAddressDtoForResponse::setAddressGroupNames(const std::vector& value) +{ + addressGroupNames_ = value; + addressGroupNamesIsSet_ = true; +} + +bool RuleAddressDtoForResponse::addressGroupNamesIsSet() const +{ + return addressGroupNamesIsSet_; +} + +void RuleAddressDtoForResponse::unsetaddressGroupNames() +{ + addressGroupNamesIsSet_ = false; +} + +int32_t RuleAddressDtoForResponse::getAddressSetType() const +{ + return addressSetType_; +} + +void RuleAddressDtoForResponse::setAddressSetType(int32_t value) +{ + addressSetType_ = value; + addressSetTypeIsSet_ = true; +} + +bool RuleAddressDtoForResponse::addressSetTypeIsSet() const +{ + return addressSetTypeIsSet_; +} + +void RuleAddressDtoForResponse::unsetaddressSetType() +{ + addressSetTypeIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cfw/src/v1/model/RuleProfileDto.cpp b/cfw/src/v1/model/RuleProfileDto.cpp deleted file mode 100644 index 284b3dd31..000000000 --- a/cfw/src/v1/model/RuleProfileDto.cpp +++ /dev/null @@ -1,79 +0,0 @@ - - -#include "huaweicloud/cfw/v1/model/RuleProfileDto.h" -namespace HuaweiCloud { -namespace Sdk { -namespace Cfw { -namespace V1 { -namespace Model { - - - - -RuleProfileDto::RuleProfileDto() -{ - url_ = ""; - urlIsSet_ = false; -} - -RuleProfileDto::~RuleProfileDto() = default; - -void RuleProfileDto::validate() -{ -} - -web::json::value RuleProfileDto::toJson() const -{ - web::json::value val = web::json::value::object(); - - if(urlIsSet_) { - val[utility::conversions::to_string_t("url")] = ModelBase::toJson(url_); - } - - return val; -} -bool RuleProfileDto::fromJson(const web::json::value& val) -{ - bool ok = true; - - if(val.has_field(utility::conversions::to_string_t("url"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("url")); - if(!fieldValue.is_null()) - { - std::string refVal; - ok &= ModelBase::fromJson(fieldValue, refVal); - setUrl(refVal); - } - } - return ok; -} - - -std::string RuleProfileDto::getUrl() const -{ - return url_; -} - -void RuleProfileDto::setUrl(const std::string& value) -{ - url_ = value; - urlIsSet_ = true; -} - -bool RuleProfileDto::urlIsSet() const -{ - return urlIsSet_; -} - -void RuleProfileDto::unseturl() -{ - urlIsSet_ = false; -} - -} -} -} -} -} - - diff --git a/cfw/src/v1/model/RuleServiceDto.cpp b/cfw/src/v1/model/RuleServiceDto.cpp index cd65e0738..55a0a93a3 100644 --- a/cfw/src/v1/model/RuleServiceDto.cpp +++ b/cfw/src/v1/model/RuleServiceDto.cpp @@ -180,7 +180,7 @@ bool RuleServiceDto::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("service_group_names")); if(!fieldValue.is_null()) { - std::vector refVal; + std::vector refVal; ok &= ModelBase::fromJson(fieldValue, refVal); setServiceGroupNames(refVal); } @@ -408,12 +408,12 @@ void RuleServiceDto::unsetserviceGroup() serviceGroupIsSet_ = false; } -std::vector& RuleServiceDto::getServiceGroupNames() +std::vector& RuleServiceDto::getServiceGroupNames() { return serviceGroupNames_; } -void RuleServiceDto::setServiceGroupNames(const std::vector& value) +void RuleServiceDto::setServiceGroupNames(const std::vector& value) { serviceGroupNames_ = value; serviceGroupNamesIsSet_ = true; diff --git a/cfw/src/v1/model/RuleServiceDtoForResponse.cpp b/cfw/src/v1/model/RuleServiceDtoForResponse.cpp new file mode 100644 index 000000000..9e132bd06 --- /dev/null +++ b/cfw/src/v1/model/RuleServiceDtoForResponse.cpp @@ -0,0 +1,425 @@ + + +#include "huaweicloud/cfw/v1/model/RuleServiceDtoForResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + + + + +RuleServiceDtoForResponse::RuleServiceDtoForResponse() +{ + type_ = 0; + typeIsSet_ = false; + protocol_ = 0; + protocolIsSet_ = false; + protocolsIsSet_ = false; + sourcePort_ = ""; + sourcePortIsSet_ = false; + destPort_ = ""; + destPortIsSet_ = false; + serviceSetId_ = ""; + serviceSetIdIsSet_ = false; + serviceSetName_ = ""; + serviceSetNameIsSet_ = false; + customServiceIsSet_ = false; + serviceGroupIsSet_ = false; + serviceGroupNamesIsSet_ = false; + serviceSetType_ = 0; + serviceSetTypeIsSet_ = false; +} + +RuleServiceDtoForResponse::~RuleServiceDtoForResponse() = default; + +void RuleServiceDtoForResponse::validate() +{ +} + +web::json::value RuleServiceDtoForResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(typeIsSet_) { + val[utility::conversions::to_string_t("type")] = ModelBase::toJson(type_); + } + if(protocolIsSet_) { + val[utility::conversions::to_string_t("protocol")] = ModelBase::toJson(protocol_); + } + if(protocolsIsSet_) { + val[utility::conversions::to_string_t("protocols")] = ModelBase::toJson(protocols_); + } + if(sourcePortIsSet_) { + val[utility::conversions::to_string_t("source_port")] = ModelBase::toJson(sourcePort_); + } + if(destPortIsSet_) { + val[utility::conversions::to_string_t("dest_port")] = ModelBase::toJson(destPort_); + } + if(serviceSetIdIsSet_) { + val[utility::conversions::to_string_t("service_set_id")] = ModelBase::toJson(serviceSetId_); + } + if(serviceSetNameIsSet_) { + val[utility::conversions::to_string_t("service_set_name")] = ModelBase::toJson(serviceSetName_); + } + if(customServiceIsSet_) { + val[utility::conversions::to_string_t("custom_service")] = ModelBase::toJson(customService_); + } + if(serviceGroupIsSet_) { + val[utility::conversions::to_string_t("service_group")] = ModelBase::toJson(serviceGroup_); + } + if(serviceGroupNamesIsSet_) { + val[utility::conversions::to_string_t("service_group_names")] = ModelBase::toJson(serviceGroupNames_); + } + if(serviceSetTypeIsSet_) { + val[utility::conversions::to_string_t("service_set_type")] = ModelBase::toJson(serviceSetType_); + } + + return val; +} +bool RuleServiceDtoForResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + 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()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("protocol"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("protocol")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setProtocol(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("protocols"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("protocols")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setProtocols(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("source_port"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("source_port")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSourcePort(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("dest_port"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("dest_port")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDestPort(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("service_set_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("service_set_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setServiceSetId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("service_set_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("service_set_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setServiceSetName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("custom_service"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("custom_service")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCustomService(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("service_group"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("service_group")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setServiceGroup(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("service_group_names"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("service_group_names")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setServiceGroupNames(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("service_set_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("service_set_type")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setServiceSetType(refVal); + } + } + return ok; +} + + +int32_t RuleServiceDtoForResponse::getType() const +{ + return type_; +} + +void RuleServiceDtoForResponse::setType(int32_t value) +{ + type_ = value; + typeIsSet_ = true; +} + +bool RuleServiceDtoForResponse::typeIsSet() const +{ + return typeIsSet_; +} + +void RuleServiceDtoForResponse::unsettype() +{ + typeIsSet_ = false; +} + +int32_t RuleServiceDtoForResponse::getProtocol() const +{ + return protocol_; +} + +void RuleServiceDtoForResponse::setProtocol(int32_t value) +{ + protocol_ = value; + protocolIsSet_ = true; +} + +bool RuleServiceDtoForResponse::protocolIsSet() const +{ + return protocolIsSet_; +} + +void RuleServiceDtoForResponse::unsetprotocol() +{ + protocolIsSet_ = false; +} + +std::vector& RuleServiceDtoForResponse::getProtocols() +{ + return protocols_; +} + +void RuleServiceDtoForResponse::setProtocols(std::vector value) +{ + protocols_ = value; + protocolsIsSet_ = true; +} + +bool RuleServiceDtoForResponse::protocolsIsSet() const +{ + return protocolsIsSet_; +} + +void RuleServiceDtoForResponse::unsetprotocols() +{ + protocolsIsSet_ = false; +} + +std::string RuleServiceDtoForResponse::getSourcePort() const +{ + return sourcePort_; +} + +void RuleServiceDtoForResponse::setSourcePort(const std::string& value) +{ + sourcePort_ = value; + sourcePortIsSet_ = true; +} + +bool RuleServiceDtoForResponse::sourcePortIsSet() const +{ + return sourcePortIsSet_; +} + +void RuleServiceDtoForResponse::unsetsourcePort() +{ + sourcePortIsSet_ = false; +} + +std::string RuleServiceDtoForResponse::getDestPort() const +{ + return destPort_; +} + +void RuleServiceDtoForResponse::setDestPort(const std::string& value) +{ + destPort_ = value; + destPortIsSet_ = true; +} + +bool RuleServiceDtoForResponse::destPortIsSet() const +{ + return destPortIsSet_; +} + +void RuleServiceDtoForResponse::unsetdestPort() +{ + destPortIsSet_ = false; +} + +std::string RuleServiceDtoForResponse::getServiceSetId() const +{ + return serviceSetId_; +} + +void RuleServiceDtoForResponse::setServiceSetId(const std::string& value) +{ + serviceSetId_ = value; + serviceSetIdIsSet_ = true; +} + +bool RuleServiceDtoForResponse::serviceSetIdIsSet() const +{ + return serviceSetIdIsSet_; +} + +void RuleServiceDtoForResponse::unsetserviceSetId() +{ + serviceSetIdIsSet_ = false; +} + +std::string RuleServiceDtoForResponse::getServiceSetName() const +{ + return serviceSetName_; +} + +void RuleServiceDtoForResponse::setServiceSetName(const std::string& value) +{ + serviceSetName_ = value; + serviceSetNameIsSet_ = true; +} + +bool RuleServiceDtoForResponse::serviceSetNameIsSet() const +{ + return serviceSetNameIsSet_; +} + +void RuleServiceDtoForResponse::unsetserviceSetName() +{ + serviceSetNameIsSet_ = false; +} + +std::vector& RuleServiceDtoForResponse::getCustomService() +{ + return customService_; +} + +void RuleServiceDtoForResponse::setCustomService(const std::vector& value) +{ + customService_ = value; + customServiceIsSet_ = true; +} + +bool RuleServiceDtoForResponse::customServiceIsSet() const +{ + return customServiceIsSet_; +} + +void RuleServiceDtoForResponse::unsetcustomService() +{ + customServiceIsSet_ = false; +} + +std::vector& RuleServiceDtoForResponse::getServiceGroup() +{ + return serviceGroup_; +} + +void RuleServiceDtoForResponse::setServiceGroup(const std::vector& value) +{ + serviceGroup_ = value; + serviceGroupIsSet_ = true; +} + +bool RuleServiceDtoForResponse::serviceGroupIsSet() const +{ + return serviceGroupIsSet_; +} + +void RuleServiceDtoForResponse::unsetserviceGroup() +{ + serviceGroupIsSet_ = false; +} + +std::vector& RuleServiceDtoForResponse::getServiceGroupNames() +{ + return serviceGroupNames_; +} + +void RuleServiceDtoForResponse::setServiceGroupNames(const std::vector& value) +{ + serviceGroupNames_ = value; + serviceGroupNamesIsSet_ = true; +} + +bool RuleServiceDtoForResponse::serviceGroupNamesIsSet() const +{ + return serviceGroupNamesIsSet_; +} + +void RuleServiceDtoForResponse::unsetserviceGroupNames() +{ + serviceGroupNamesIsSet_ = false; +} + +int32_t RuleServiceDtoForResponse::getServiceSetType() const +{ + return serviceSetType_; +} + +void RuleServiceDtoForResponse::setServiceSetType(int32_t value) +{ + serviceSetType_ = value; + serviceSetTypeIsSet_ = true; +} + +bool RuleServiceDtoForResponse::serviceSetTypeIsSet() const +{ + return serviceSetTypeIsSet_; +} + +void RuleServiceDtoForResponse::unsetserviceSetType() +{ + serviceSetTypeIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cfw/src/v1/model/ServiceGroupVO.cpp b/cfw/src/v1/model/ServiceGroupVO.cpp new file mode 100644 index 000000000..2ab4f663b --- /dev/null +++ b/cfw/src/v1/model/ServiceGroupVO.cpp @@ -0,0 +1,183 @@ + + +#include "huaweicloud/cfw/v1/model/ServiceGroupVO.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + + + + +ServiceGroupVO::ServiceGroupVO() +{ + name_ = ""; + nameIsSet_ = false; + protocolsIsSet_ = false; + serviceSetType_ = 0; + serviceSetTypeIsSet_ = false; + setId_ = ""; + setIdIsSet_ = false; +} + +ServiceGroupVO::~ServiceGroupVO() = default; + +void ServiceGroupVO::validate() +{ +} + +web::json::value ServiceGroupVO::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(nameIsSet_) { + val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); + } + if(protocolsIsSet_) { + val[utility::conversions::to_string_t("protocols")] = ModelBase::toJson(protocols_); + } + if(serviceSetTypeIsSet_) { + val[utility::conversions::to_string_t("service_set_type")] = ModelBase::toJson(serviceSetType_); + } + if(setIdIsSet_) { + val[utility::conversions::to_string_t("set_id")] = ModelBase::toJson(setId_); + } + + return val; +} +bool ServiceGroupVO::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("protocols"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("protocols")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setProtocols(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("service_set_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("service_set_type")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setServiceSetType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("set_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("set_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSetId(refVal); + } + } + return ok; +} + + +std::string ServiceGroupVO::getName() const +{ + return name_; +} + +void ServiceGroupVO::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool ServiceGroupVO::nameIsSet() const +{ + return nameIsSet_; +} + +void ServiceGroupVO::unsetname() +{ + nameIsSet_ = false; +} + +std::vector& ServiceGroupVO::getProtocols() +{ + return protocols_; +} + +void ServiceGroupVO::setProtocols(std::vector value) +{ + protocols_ = value; + protocolsIsSet_ = true; +} + +bool ServiceGroupVO::protocolsIsSet() const +{ + return protocolsIsSet_; +} + +void ServiceGroupVO::unsetprotocols() +{ + protocolsIsSet_ = false; +} + +int32_t ServiceGroupVO::getServiceSetType() const +{ + return serviceSetType_; +} + +void ServiceGroupVO::setServiceSetType(int32_t value) +{ + serviceSetType_ = value; + serviceSetTypeIsSet_ = true; +} + +bool ServiceGroupVO::serviceSetTypeIsSet() const +{ + return serviceSetTypeIsSet_; +} + +void ServiceGroupVO::unsetserviceSetType() +{ + serviceSetTypeIsSet_ = false; +} + +std::string ServiceGroupVO::getSetId() const +{ + return setId_; +} + +void ServiceGroupVO::setSetId(const std::string& value) +{ + setId_ = value; + setIdIsSet_ = true; +} + +bool ServiceGroupVO::setIdIsSet() const +{ + return setIdIsSet_; +} + +void ServiceGroupVO::unsetsetId() +{ + setIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cfw/src/v1/model/ServiceItemIds.cpp b/cfw/src/v1/model/ServiceItemIds.cpp index 47962ebd9..4a497eead 100644 --- a/cfw/src/v1/model/ServiceItemIds.cpp +++ b/cfw/src/v1/model/ServiceItemIds.cpp @@ -39,7 +39,7 @@ bool ServiceItemIds::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("items")); if(!fieldValue.is_null()) { - std::vector refVal; + std::vector refVal; ok &= ModelBase::fromJson(fieldValue, refVal); setItems(refVal); } @@ -48,12 +48,12 @@ bool ServiceItemIds::fromJson(const web::json::value& val) } -std::vector& ServiceItemIds::getItems() +std::vector& ServiceItemIds::getItems() { return items_; } -void ServiceItemIds::setItems(const std::vector& value) +void ServiceItemIds::setItems(const std::vector& value) { items_ = value; itemsIsSet_ = true; diff --git a/cfw/src/v1/model/ServiceItemIds_items.cpp b/cfw/src/v1/model/ServiceItemIds_items.cpp new file mode 100644 index 000000000..dc7d5c0f1 --- /dev/null +++ b/cfw/src/v1/model/ServiceItemIds_items.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/cfw/v1/model/ServiceItemIds_items.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + + + + +ServiceItemIds_items::ServiceItemIds_items() +{ + id_ = ""; + idIsSet_ = false; +} + +ServiceItemIds_items::~ServiceItemIds_items() = default; + +void ServiceItemIds_items::validate() +{ +} + +web::json::value ServiceItemIds_items::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(idIsSet_) { + val[utility::conversions::to_string_t("id")] = ModelBase::toJson(id_); + } + + return val; +} +bool ServiceItemIds_items::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); + } + } + return ok; +} + + +std::string ServiceItemIds_items::getId() const +{ + return id_; +} + +void ServiceItemIds_items::setId(const std::string& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool ServiceItemIds_items::idIsSet() const +{ + return idIsSet_; +} + +void ServiceItemIds_items::unsetid() +{ + idIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cfw/src/v1/model/ServiceItemListResponseDto_data_records.cpp b/cfw/src/v1/model/ServiceItemListResponseDto_data_records.cpp index aea177d81..394171a55 100644 --- a/cfw/src/v1/model/ServiceItemListResponseDto_data_records.cpp +++ b/cfw/src/v1/model/ServiceItemListResponseDto_data_records.cpp @@ -20,8 +20,6 @@ ServiceItemListResponseDto_data_records::ServiceItemListResponseDto_data_records sourcePortIsSet_ = false; destPort_ = ""; destPortIsSet_ = false; - name_ = ""; - nameIsSet_ = false; description_ = ""; descriptionIsSet_ = false; } @@ -48,9 +46,6 @@ web::json::value ServiceItemListResponseDto_data_records::toJson() const if(destPortIsSet_) { val[utility::conversions::to_string_t("dest_port")] = ModelBase::toJson(destPort_); } - if(nameIsSet_) { - val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); - } if(descriptionIsSet_) { val[utility::conversions::to_string_t("description")] = ModelBase::toJson(description_); } @@ -97,15 +92,6 @@ bool ServiceItemListResponseDto_data_records::fromJson(const web::json::value& v setDestPort(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("description"))) { const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("description")); if(!fieldValue.is_null()) @@ -203,27 +189,6 @@ void ServiceItemListResponseDto_data_records::unsetdestPort() destPortIsSet_ = false; } -std::string ServiceItemListResponseDto_data_records::getName() const -{ - return name_; -} - -void ServiceItemListResponseDto_data_records::setName(const std::string& value) -{ - name_ = value; - nameIsSet_ = true; -} - -bool ServiceItemListResponseDto_data_records::nameIsSet() const -{ - return nameIsSet_; -} - -void ServiceItemListResponseDto_data_records::unsetname() -{ - nameIsSet_ = false; -} - std::string ServiceItemListResponseDto_data_records::getDescription() const { return description_; diff --git a/cfw/src/v1/model/ServiceSet.cpp b/cfw/src/v1/model/ServiceSet.cpp index feaeecc30..4b6587340 100644 --- a/cfw/src/v1/model/ServiceSet.cpp +++ b/cfw/src/v1/model/ServiceSet.cpp @@ -22,8 +22,6 @@ ServiceSet::ServiceSet() serviceSetTypeIsSet_ = false; refCount_ = 0; refCountIsSet_ = false; - status_ = ""; - statusIsSet_ = false; projectId_ = ""; projectIdIsSet_ = false; protocolsIsSet_ = false; @@ -54,9 +52,6 @@ web::json::value ServiceSet::toJson() const if(refCountIsSet_) { val[utility::conversions::to_string_t("ref_count")] = ModelBase::toJson(refCount_); } - if(statusIsSet_) { - val[utility::conversions::to_string_t("status")] = ModelBase::toJson(status_); - } if(projectIdIsSet_) { val[utility::conversions::to_string_t("project_id")] = ModelBase::toJson(projectId_); } @@ -115,15 +110,6 @@ bool ServiceSet::fromJson(const web::json::value& val) setRefCount(refVal); } } - if(val.has_field(utility::conversions::to_string_t("status"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("status")); - if(!fieldValue.is_null()) - { - std::string refVal; - ok &= ModelBase::fromJson(fieldValue, refVal); - setStatus(refVal); - } - } if(val.has_field(utility::conversions::to_string_t("project_id"))) { const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("project_id")); if(!fieldValue.is_null()) @@ -251,27 +237,6 @@ void ServiceSet::unsetrefCount() refCountIsSet_ = false; } -std::string ServiceSet::getStatus() const -{ - return status_; -} - -void ServiceSet::setStatus(const std::string& value) -{ - status_ = value; - statusIsSet_ = true; -} - -bool ServiceSet::statusIsSet() const -{ - return statusIsSet_; -} - -void ServiceSet::unsetstatus() -{ - statusIsSet_ = false; -} - std::string ServiceSet::getProjectId() const { return projectId_; diff --git a/cfw/src/v1/model/UpdateAddressSetDto.cpp b/cfw/src/v1/model/UpdateAddressSetDto.cpp index 605ed6ec0..1f1e54fe2 100644 --- a/cfw/src/v1/model/UpdateAddressSetDto.cpp +++ b/cfw/src/v1/model/UpdateAddressSetDto.cpp @@ -16,8 +16,6 @@ UpdateAddressSetDto::UpdateAddressSetDto() nameIsSet_ = false; description_ = ""; descriptionIsSet_ = false; - addressType_ = 0; - addressTypeIsSet_ = false; } UpdateAddressSetDto::~UpdateAddressSetDto() = default; @@ -36,9 +34,6 @@ web::json::value UpdateAddressSetDto::toJson() const if(descriptionIsSet_) { val[utility::conversions::to_string_t("description")] = ModelBase::toJson(description_); } - if(addressTypeIsSet_) { - val[utility::conversions::to_string_t("address_type")] = ModelBase::toJson(addressType_); - } return val; } @@ -64,15 +59,6 @@ bool UpdateAddressSetDto::fromJson(const web::json::value& val) setDescription(refVal); } } - if(val.has_field(utility::conversions::to_string_t("address_type"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("address_type")); - if(!fieldValue.is_null()) - { - int32_t refVal; - ok &= ModelBase::fromJson(fieldValue, refVal); - setAddressType(refVal); - } - } return ok; } @@ -119,27 +105,6 @@ void UpdateAddressSetDto::unsetdescription() descriptionIsSet_ = false; } -int32_t UpdateAddressSetDto::getAddressType() const -{ - return addressType_; -} - -void UpdateAddressSetDto::setAddressType(int32_t value) -{ - addressType_ = value; - addressTypeIsSet_ = true; -} - -bool UpdateAddressSetDto::addressTypeIsSet() const -{ - return addressTypeIsSet_; -} - -void UpdateAddressSetDto::unsetaddressType() -{ - addressTypeIsSet_ = false; -} - } } } diff --git a/cfw/src/v1/model/UpdateBlackWhiteListDto.cpp b/cfw/src/v1/model/UpdateBlackWhiteListDto.cpp index 425be9e4a..7c8f0a92a 100644 --- a/cfw/src/v1/model/UpdateBlackWhiteListDto.cpp +++ b/cfw/src/v1/model/UpdateBlackWhiteListDto.cpp @@ -22,10 +22,6 @@ UpdateBlackWhiteListDto::UpdateBlackWhiteListDto() protocolIsSet_ = false; port_ = ""; portIsSet_ = false; - listType_ = 0; - listTypeIsSet_ = false; - objectId_ = ""; - objectIdIsSet_ = false; description_ = ""; descriptionIsSet_ = false; } @@ -55,12 +51,6 @@ web::json::value UpdateBlackWhiteListDto::toJson() const if(portIsSet_) { val[utility::conversions::to_string_t("port")] = ModelBase::toJson(port_); } - if(listTypeIsSet_) { - val[utility::conversions::to_string_t("list_type")] = ModelBase::toJson(listType_); - } - if(objectIdIsSet_) { - val[utility::conversions::to_string_t("object_id")] = ModelBase::toJson(objectId_); - } if(descriptionIsSet_) { val[utility::conversions::to_string_t("description")] = ModelBase::toJson(description_); } @@ -116,24 +106,6 @@ bool UpdateBlackWhiteListDto::fromJson(const web::json::value& val) setPort(refVal); } } - if(val.has_field(utility::conversions::to_string_t("list_type"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("list_type")); - if(!fieldValue.is_null()) - { - int32_t refVal; - ok &= ModelBase::fromJson(fieldValue, refVal); - setListType(refVal); - } - } - if(val.has_field(utility::conversions::to_string_t("object_id"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("object_id")); - if(!fieldValue.is_null()) - { - std::string refVal; - ok &= ModelBase::fromJson(fieldValue, refVal); - setObjectId(refVal); - } - } if(val.has_field(utility::conversions::to_string_t("description"))) { const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("description")); if(!fieldValue.is_null()) @@ -252,48 +224,6 @@ void UpdateBlackWhiteListDto::unsetport() portIsSet_ = false; } -int32_t UpdateBlackWhiteListDto::getListType() const -{ - return listType_; -} - -void UpdateBlackWhiteListDto::setListType(int32_t value) -{ - listType_ = value; - listTypeIsSet_ = true; -} - -bool UpdateBlackWhiteListDto::listTypeIsSet() const -{ - return listTypeIsSet_; -} - -void UpdateBlackWhiteListDto::unsetlistType() -{ - listTypeIsSet_ = false; -} - -std::string UpdateBlackWhiteListDto::getObjectId() const -{ - return objectId_; -} - -void UpdateBlackWhiteListDto::setObjectId(const std::string& value) -{ - objectId_ = value; - objectIdIsSet_ = true; -} - -bool UpdateBlackWhiteListDto::objectIdIsSet() const -{ - return objectIdIsSet_; -} - -void UpdateBlackWhiteListDto::unsetobjectId() -{ - objectIdIsSet_ = false; -} - std::string UpdateBlackWhiteListDto::getDescription() const { return description_; diff --git a/cfw/src/v1/model/UpdateDomainSetInfoDto.cpp b/cfw/src/v1/model/UpdateDomainSetInfoDto.cpp index 3504e2463..adcd5d3d3 100644 --- a/cfw/src/v1/model/UpdateDomainSetInfoDto.cpp +++ b/cfw/src/v1/model/UpdateDomainSetInfoDto.cpp @@ -16,10 +16,6 @@ UpdateDomainSetInfoDto::UpdateDomainSetInfoDto() nameIsSet_ = false; description_ = ""; descriptionIsSet_ = false; - setId_ = ""; - setIdIsSet_ = false; - domainSetType_ = 0; - domainSetTypeIsSet_ = false; } UpdateDomainSetInfoDto::~UpdateDomainSetInfoDto() = default; @@ -38,12 +34,6 @@ web::json::value UpdateDomainSetInfoDto::toJson() const if(descriptionIsSet_) { val[utility::conversions::to_string_t("description")] = ModelBase::toJson(description_); } - if(setIdIsSet_) { - val[utility::conversions::to_string_t("set_id")] = ModelBase::toJson(setId_); - } - if(domainSetTypeIsSet_) { - val[utility::conversions::to_string_t("domain_set_type")] = ModelBase::toJson(domainSetType_); - } return val; } @@ -69,24 +59,6 @@ bool UpdateDomainSetInfoDto::fromJson(const web::json::value& val) setDescription(refVal); } } - if(val.has_field(utility::conversions::to_string_t("set_id"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("set_id")); - if(!fieldValue.is_null()) - { - std::string refVal; - ok &= ModelBase::fromJson(fieldValue, refVal); - setSetId(refVal); - } - } - if(val.has_field(utility::conversions::to_string_t("domain_set_type"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("domain_set_type")); - if(!fieldValue.is_null()) - { - int32_t refVal; - ok &= ModelBase::fromJson(fieldValue, refVal); - setDomainSetType(refVal); - } - } return ok; } @@ -133,48 +105,6 @@ void UpdateDomainSetInfoDto::unsetdescription() descriptionIsSet_ = false; } -std::string UpdateDomainSetInfoDto::getSetId() const -{ - return setId_; -} - -void UpdateDomainSetInfoDto::setSetId(const std::string& value) -{ - setId_ = value; - setIdIsSet_ = true; -} - -bool UpdateDomainSetInfoDto::setIdIsSet() const -{ - return setIdIsSet_; -} - -void UpdateDomainSetInfoDto::unsetsetId() -{ - setIdIsSet_ = false; -} - -int32_t UpdateDomainSetInfoDto::getDomainSetType() const -{ - return domainSetType_; -} - -void UpdateDomainSetInfoDto::setDomainSetType(int32_t value) -{ - domainSetType_ = value; - domainSetTypeIsSet_ = true; -} - -bool UpdateDomainSetInfoDto::domainSetTypeIsSet() const -{ - return domainSetTypeIsSet_; -} - -void UpdateDomainSetInfoDto::unsetdomainSetType() -{ - domainSetTypeIsSet_ = false; -} - } } } diff --git a/cfw/src/v1/model/UpdateRuleAclDto.cpp b/cfw/src/v1/model/UpdateRuleAclDto.cpp index 2d61163a7..48b9b28cd 100644 --- a/cfw/src/v1/model/UpdateRuleAclDto.cpp +++ b/cfw/src/v1/model/UpdateRuleAclDto.cpp @@ -38,7 +38,6 @@ UpdateRuleAclDto::UpdateRuleAclDto() longConnectTimeIsSet_ = false; longConnectEnable_ = 0; longConnectEnableIsSet_ = false; - profileIsSet_ = false; sourceIsSet_ = false; destinationIsSet_ = false; serviceIsSet_ = false; @@ -99,9 +98,6 @@ web::json::value UpdateRuleAclDto::toJson() const if(longConnectEnableIsSet_) { val[utility::conversions::to_string_t("long_connect_enable")] = ModelBase::toJson(longConnectEnable_); } - if(profileIsSet_) { - val[utility::conversions::to_string_t("profile")] = ModelBase::toJson(profile_); - } if(sourceIsSet_) { val[utility::conversions::to_string_t("source")] = ModelBase::toJson(source_); } @@ -250,15 +246,6 @@ bool UpdateRuleAclDto::fromJson(const web::json::value& val) setLongConnectEnable(refVal); } } - if(val.has_field(utility::conversions::to_string_t("profile"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("profile")); - if(!fieldValue.is_null()) - { - RuleProfileDto refVal; - ok &= ModelBase::fromJson(fieldValue, refVal); - setProfile(refVal); - } - } if(val.has_field(utility::conversions::to_string_t("source"))) { const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("source")); if(!fieldValue.is_null()) @@ -602,27 +589,6 @@ void UpdateRuleAclDto::unsetlongConnectEnable() longConnectEnableIsSet_ = false; } -RuleProfileDto UpdateRuleAclDto::getProfile() const -{ - return profile_; -} - -void UpdateRuleAclDto::setProfile(const RuleProfileDto& value) -{ - profile_ = value; - profileIsSet_ = true; -} - -bool UpdateRuleAclDto::profileIsSet() const -{ - return profileIsSet_; -} - -void UpdateRuleAclDto::unsetprofile() -{ - profileIsSet_ = false; -} - RuleAddressDto UpdateRuleAclDto::getSource() const { return source_; diff --git a/cfw/src/v1/model/UpdateServiceSetResponse.cpp b/cfw/src/v1/model/UpdateServiceSetResponse.cpp index 80871ea2d..f29f11d39 100644 --- a/cfw/src/v1/model/UpdateServiceSetResponse.cpp +++ b/cfw/src/v1/model/UpdateServiceSetResponse.cpp @@ -39,7 +39,7 @@ bool UpdateServiceSetResponse::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("data")); if(!fieldValue.is_null()) { - IdObject refVal; + CommonResponseDTO_data refVal; ok &= ModelBase::fromJson(fieldValue, refVal); setData(refVal); } @@ -48,12 +48,12 @@ bool UpdateServiceSetResponse::fromJson(const web::json::value& val) } -IdObject UpdateServiceSetResponse::getData() const +CommonResponseDTO_data UpdateServiceSetResponse::getData() const { return data_; } -void UpdateServiceSetResponse::setData(const IdObject& value) +void UpdateServiceSetResponse::setData(const CommonResponseDTO_data& value) { data_ = value; dataIsSet_ = true; diff --git a/cfw/src/v1/model/VpcAttachmentDetail.cpp b/cfw/src/v1/model/VpcAttachmentDetail.cpp index 81a81b7cf..bbfd8bc7d 100644 --- a/cfw/src/v1/model/VpcAttachmentDetail.cpp +++ b/cfw/src/v1/model/VpcAttachmentDetail.cpp @@ -12,29 +12,8 @@ namespace Model { VpcAttachmentDetail::VpcAttachmentDetail() { - id_ = ""; - idIsSet_ = false; - name_ = ""; - nameIsSet_ = false; vpcId_ = ""; vpcIdIsSet_ = false; - virsubnetId_ = ""; - virsubnetIdIsSet_ = false; - state_ = ""; - stateIsSet_ = false; - createdAt_ = ""; - createdAtIsSet_ = false; - updatedAt_ = ""; - updatedAtIsSet_ = false; - tagsIsSet_ = false; - description_ = ""; - descriptionIsSet_ = false; - projectId_ = ""; - projectIdIsSet_ = false; - vpcProjectId_ = ""; - vpcProjectIdIsSet_ = false; - enterpriseProjectId_ = ""; - enterpriseProjectIdIsSet_ = false; } VpcAttachmentDetail::~VpcAttachmentDetail() = default; @@ -47,42 +26,9 @@ web::json::value VpcAttachmentDetail::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(vpcIdIsSet_) { val[utility::conversions::to_string_t("vpc_id")] = ModelBase::toJson(vpcId_); } - if(virsubnetIdIsSet_) { - val[utility::conversions::to_string_t("virsubnet_id")] = ModelBase::toJson(virsubnetId_); - } - if(stateIsSet_) { - val[utility::conversions::to_string_t("state")] = ModelBase::toJson(state_); - } - if(createdAtIsSet_) { - val[utility::conversions::to_string_t("created_at")] = ModelBase::toJson(createdAt_); - } - if(updatedAtIsSet_) { - val[utility::conversions::to_string_t("updated_at")] = ModelBase::toJson(updatedAt_); - } - if(tagsIsSet_) { - val[utility::conversions::to_string_t("tags")] = ModelBase::toJson(tags_); - } - if(descriptionIsSet_) { - val[utility::conversions::to_string_t("description")] = ModelBase::toJson(description_); - } - if(projectIdIsSet_) { - val[utility::conversions::to_string_t("project_id")] = ModelBase::toJson(projectId_); - } - if(vpcProjectIdIsSet_) { - val[utility::conversions::to_string_t("vpc_project_id")] = ModelBase::toJson(vpcProjectId_); - } - if(enterpriseProjectIdIsSet_) { - val[utility::conversions::to_string_t("enterprise_project_id")] = ModelBase::toJson(enterpriseProjectId_); - } return val; } @@ -90,24 +36,6 @@ bool VpcAttachmentDetail::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("vpc_id"))) { const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("vpc_id")); if(!fieldValue.is_null()) @@ -117,133 +45,10 @@ bool VpcAttachmentDetail::fromJson(const web::json::value& val) setVpcId(refVal); } } - if(val.has_field(utility::conversions::to_string_t("virsubnet_id"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("virsubnet_id")); - if(!fieldValue.is_null()) - { - std::string refVal; - ok &= ModelBase::fromJson(fieldValue, refVal); - setVirsubnetId(refVal); - } - } - if(val.has_field(utility::conversions::to_string_t("state"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("state")); - if(!fieldValue.is_null()) - { - std::string refVal; - ok &= ModelBase::fromJson(fieldValue, refVal); - setState(refVal); - } - } - if(val.has_field(utility::conversions::to_string_t("created_at"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("created_at")); - if(!fieldValue.is_null()) - { - std::string refVal; - ok &= ModelBase::fromJson(fieldValue, refVal); - setCreatedAt(refVal); - } - } - if(val.has_field(utility::conversions::to_string_t("updated_at"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("updated_at")); - if(!fieldValue.is_null()) - { - std::string refVal; - ok &= ModelBase::fromJson(fieldValue, refVal); - setUpdatedAt(refVal); - } - } - if(val.has_field(utility::conversions::to_string_t("tags"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tags")); - if(!fieldValue.is_null()) - { - std::vector refVal; - ok &= ModelBase::fromJson(fieldValue, refVal); - setTags(refVal); - } - } - if(val.has_field(utility::conversions::to_string_t("description"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("description")); - if(!fieldValue.is_null()) - { - std::string refVal; - ok &= ModelBase::fromJson(fieldValue, refVal); - setDescription(refVal); - } - } - if(val.has_field(utility::conversions::to_string_t("project_id"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("project_id")); - if(!fieldValue.is_null()) - { - std::string refVal; - ok &= ModelBase::fromJson(fieldValue, refVal); - setProjectId(refVal); - } - } - if(val.has_field(utility::conversions::to_string_t("vpc_project_id"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("vpc_project_id")); - if(!fieldValue.is_null()) - { - std::string refVal; - ok &= ModelBase::fromJson(fieldValue, refVal); - setVpcProjectId(refVal); - } - } - if(val.has_field(utility::conversions::to_string_t("enterprise_project_id"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("enterprise_project_id")); - if(!fieldValue.is_null()) - { - std::string refVal; - ok &= ModelBase::fromJson(fieldValue, refVal); - setEnterpriseProjectId(refVal); - } - } return ok; } -std::string VpcAttachmentDetail::getId() const -{ - return id_; -} - -void VpcAttachmentDetail::setId(const std::string& value) -{ - id_ = value; - idIsSet_ = true; -} - -bool VpcAttachmentDetail::idIsSet() const -{ - return idIsSet_; -} - -void VpcAttachmentDetail::unsetid() -{ - idIsSet_ = false; -} - -std::string VpcAttachmentDetail::getName() const -{ - return name_; -} - -void VpcAttachmentDetail::setName(const std::string& value) -{ - name_ = value; - nameIsSet_ = true; -} - -bool VpcAttachmentDetail::nameIsSet() const -{ - return nameIsSet_; -} - -void VpcAttachmentDetail::unsetname() -{ - nameIsSet_ = false; -} - std::string VpcAttachmentDetail::getVpcId() const { return vpcId_; @@ -265,195 +70,6 @@ void VpcAttachmentDetail::unsetvpcId() vpcIdIsSet_ = false; } -std::string VpcAttachmentDetail::getVirsubnetId() const -{ - return virsubnetId_; -} - -void VpcAttachmentDetail::setVirsubnetId(const std::string& value) -{ - virsubnetId_ = value; - virsubnetIdIsSet_ = true; -} - -bool VpcAttachmentDetail::virsubnetIdIsSet() const -{ - return virsubnetIdIsSet_; -} - -void VpcAttachmentDetail::unsetvirsubnetId() -{ - virsubnetIdIsSet_ = false; -} - -std::string VpcAttachmentDetail::getState() const -{ - return state_; -} - -void VpcAttachmentDetail::setState(const std::string& value) -{ - state_ = value; - stateIsSet_ = true; -} - -bool VpcAttachmentDetail::stateIsSet() const -{ - return stateIsSet_; -} - -void VpcAttachmentDetail::unsetstate() -{ - stateIsSet_ = false; -} - -std::string VpcAttachmentDetail::getCreatedAt() const -{ - return createdAt_; -} - -void VpcAttachmentDetail::setCreatedAt(const std::string& value) -{ - createdAt_ = value; - createdAtIsSet_ = true; -} - -bool VpcAttachmentDetail::createdAtIsSet() const -{ - return createdAtIsSet_; -} - -void VpcAttachmentDetail::unsetcreatedAt() -{ - createdAtIsSet_ = false; -} - -std::string VpcAttachmentDetail::getUpdatedAt() const -{ - return updatedAt_; -} - -void VpcAttachmentDetail::setUpdatedAt(const std::string& value) -{ - updatedAt_ = value; - updatedAtIsSet_ = true; -} - -bool VpcAttachmentDetail::updatedAtIsSet() const -{ - return updatedAtIsSet_; -} - -void VpcAttachmentDetail::unsetupdatedAt() -{ - updatedAtIsSet_ = false; -} - -std::vector& VpcAttachmentDetail::getTags() -{ - return tags_; -} - -void VpcAttachmentDetail::setTags(const std::vector& value) -{ - tags_ = value; - tagsIsSet_ = true; -} - -bool VpcAttachmentDetail::tagsIsSet() const -{ - return tagsIsSet_; -} - -void VpcAttachmentDetail::unsettags() -{ - tagsIsSet_ = false; -} - -std::string VpcAttachmentDetail::getDescription() const -{ - return description_; -} - -void VpcAttachmentDetail::setDescription(const std::string& value) -{ - description_ = value; - descriptionIsSet_ = true; -} - -bool VpcAttachmentDetail::descriptionIsSet() const -{ - return descriptionIsSet_; -} - -void VpcAttachmentDetail::unsetdescription() -{ - descriptionIsSet_ = false; -} - -std::string VpcAttachmentDetail::getProjectId() const -{ - return projectId_; -} - -void VpcAttachmentDetail::setProjectId(const std::string& value) -{ - projectId_ = value; - projectIdIsSet_ = true; -} - -bool VpcAttachmentDetail::projectIdIsSet() const -{ - return projectIdIsSet_; -} - -void VpcAttachmentDetail::unsetprojectId() -{ - projectIdIsSet_ = false; -} - -std::string VpcAttachmentDetail::getVpcProjectId() const -{ - return vpcProjectId_; -} - -void VpcAttachmentDetail::setVpcProjectId(const std::string& value) -{ - vpcProjectId_ = value; - vpcProjectIdIsSet_ = true; -} - -bool VpcAttachmentDetail::vpcProjectIdIsSet() const -{ - return vpcProjectIdIsSet_; -} - -void VpcAttachmentDetail::unsetvpcProjectId() -{ - vpcProjectIdIsSet_ = false; -} - -std::string VpcAttachmentDetail::getEnterpriseProjectId() const -{ - return enterpriseProjectId_; -} - -void VpcAttachmentDetail::setEnterpriseProjectId(const std::string& value) -{ - enterpriseProjectId_ = value; - enterpriseProjectIdIsSet_ = true; -} - -bool VpcAttachmentDetail::enterpriseProjectIdIsSet() const -{ - return enterpriseProjectIdIsSet_; -} - -void VpcAttachmentDetail::unsetenterpriseProjectId() -{ - enterpriseProjectIdIsSet_ = false; -} - } } } diff --git a/csms/include/huaweicloud/csms/v1/CsmsRegion.h b/csms/include/huaweicloud/csms/v1/CsmsRegion.h index 5d3f77f22..9d9518f26 100644 --- a/csms/include/huaweicloud/csms/v1/CsmsRegion.h +++ b/csms/include/huaweicloud/csms/v1/CsmsRegion.h @@ -102,6 +102,14 @@ class HUAWEICLOUD_CSMS_V1_EXPORT CsmsRegion { { "https://kms.ae-ad-1.myhuaweicloud.com" }); + regions["my-kualalumpur-1"] = Region("my-kualalumpur-1", + { + "https://kms.my-kualalumpur-1.myhuaweicloud.com" + }); + regions["ru-moscow-1"] = Region("ru-moscow-1", + { + "https://kms.ru-moscow-1.myhuaweicloud.com" + }); return regions; } private: diff --git a/cts/include/huaweicloud/cts/v3/CtsRegion.h b/cts/include/huaweicloud/cts/v3/CtsRegion.h index 2fc08c990..5c5fb77f8 100644 --- a/cts/include/huaweicloud/cts/v3/CtsRegion.h +++ b/cts/include/huaweicloud/cts/v3/CtsRegion.h @@ -164,6 +164,10 @@ class HUAWEICLOUD_CTS_V3_EXPORT CtsRegion { { "https://cts.my-kualalumpur-1.myhuaweicloud.com" }); + regions["ru-moscow-1"] = Region("ru-moscow-1", + { + "https://cts.ru-moscow-1.myhuaweicloud.com" + }); return regions; } private: diff --git a/dds/include/huaweicloud/dds/v3/DdsRegion.h b/dds/include/huaweicloud/dds/v3/DdsRegion.h index 909a1f193..3bf338b8f 100644 --- a/dds/include/huaweicloud/dds/v3/DdsRegion.h +++ b/dds/include/huaweicloud/dds/v3/DdsRegion.h @@ -116,7 +116,11 @@ class HUAWEICLOUD_DDS_V3_EXPORT DdsRegion { }); regions["my-kualalumpur-1"] = Region("my-kualalumpur-1", { - "https://dd.my-kualalumpur-1.myhuaweicloud.com" + "https://dds.my-kualalumpur-1.myhuaweicloud.com" + }); + regions["ru-moscow-1"] = Region("ru-moscow-1", + { + "https://dds.ru-moscow-1.myhuaweicloud.com" }); return regions; } diff --git a/drs/include/huaweicloud/drs/v3/model/CreateJobReq.h b/drs/include/huaweicloud/drs/v3/model/CreateJobReq.h index 08f5d275f..8dc4473cf 100644 --- a/drs/include/huaweicloud/drs/v3/model/CreateJobReq.h +++ b/drs/include/huaweicloud/drs/v3/model/CreateJobReq.h @@ -197,7 +197,7 @@ class HUAWEICLOUD_DRS_V3_EXPORT CreateJobReq void setProductId(const std::string& value); /// - /// 企业项目,不填默认为default,key值必须为_sys_enterprise_project_id,value为企业项目ID,只能有一个企业项目。 + /// 企业项目,不填默认为default,key值必须为_sys_enterprise_project_id,value为企业项目ID,只能填一个企业项目。 /// std::vector& getSysTags(); @@ -251,7 +251,7 @@ class HUAWEICLOUD_DRS_V3_EXPORT CreateJobReq void setPeriodOrder(const PeriodOrderInfo& value); /// - /// 指定公网IP的信息 + /// 指定公网IP的信息。 /// std::vector& getPublicIpList(); @@ -259,6 +259,15 @@ class HUAWEICLOUD_DRS_V3_EXPORT CreateJobReq void unsetpublicIpList(); void setPublicIpList(const std::vector& value); + /// + /// 是否开启云数据库RDS for MySQL/MariaDB的binlog快速清理。不传默认为false,不开启快速清理。 + /// + + bool isIsOpenFastClean() const; + bool isOpenFastCleanIsSet() const; + void unsetisOpenFastClean(); + void setIsOpenFastClean(bool value); + protected: bool bindEip_; @@ -309,6 +318,8 @@ class HUAWEICLOUD_DRS_V3_EXPORT CreateJobReq bool periodOrderIsSet_; std::vector publicIpList_; bool publicIpListIsSet_; + bool isOpenFastClean_; + bool isOpenFastCleanIsSet_; }; diff --git a/drs/include/huaweicloud/drs/v3/model/QueryJobResp.h b/drs/include/huaweicloud/drs/v3/model/QueryJobResp.h index 193cb6a76..c302a4632 100644 --- a/drs/include/huaweicloud/drs/v3/model/QueryJobResp.h +++ b/drs/include/huaweicloud/drs/v3/model/QueryJobResp.h @@ -555,7 +555,7 @@ class HUAWEICLOUD_DRS_V3_EXPORT QueryJobResp void setDataTransformation(const GetDataTransformationResp& value); /// - /// DRS任务标签 + /// DRS任务标签。 /// std::vector& getTags(); @@ -564,7 +564,7 @@ class HUAWEICLOUD_DRS_V3_EXPORT QueryJobResp void setTags(const std::vector& value); /// - /// 指定公网Ip的信息 + /// 指定公网Ip的信息。 /// std::vector& getPublicIpList(); @@ -573,7 +573,7 @@ class HUAWEICLOUD_DRS_V3_EXPORT QueryJobResp void setPublicIpList(const std::vector& value); /// - /// 是否成功绑定公网IP + /// 是否成功绑定公网IP。 /// std::string getBindPublicIpState() const; @@ -582,7 +582,7 @@ class HUAWEICLOUD_DRS_V3_EXPORT QueryJobResp void setBindPublicIpState(const std::string& value); /// - /// 多任务时,存在子任务绑定失败时,返回子任务的信息 + /// 多任务时,存在子任务绑定失败时,返回子任务的信息。 /// std::vector& getChildren(); @@ -590,6 +590,15 @@ class HUAWEICLOUD_DRS_V3_EXPORT QueryJobResp void unsetchildren(); void setChildren(const std::vector& value); + /// + /// 是否开启云数据库RDS for MySQL/MariaDB的binlog快速清理。 + /// + + bool isIsOpenFastClean() const; + bool isOpenFastCleanIsSet() const; + void unsetisOpenFastClean(); + void setIsOpenFastClean(bool value); + protected: std::string id_; @@ -712,6 +721,8 @@ class HUAWEICLOUD_DRS_V3_EXPORT QueryJobResp bool bindPublicIpStateIsSet_; std::vector children_; bool childrenIsSet_; + bool isOpenFastClean_; + bool isOpenFastCleanIsSet_; }; diff --git a/drs/include/huaweicloud/drs/v3/model/QueryJobsReq.h b/drs/include/huaweicloud/drs/v3/model/QueryJobsReq.h index 83e08d7f8..e6ea53667 100644 --- a/drs/include/huaweicloud/drs/v3/model/QueryJobsReq.h +++ b/drs/include/huaweicloud/drs/v3/model/QueryJobsReq.h @@ -86,7 +86,7 @@ class HUAWEICLOUD_DRS_V3_EXPORT QueryJobsReq void setEnterpriseProjectId(const std::string& value); /// - /// name或id + /// Name或ID。支持传入多个任务ID,逗号分隔,最多100个。 /// std::string getName() const; diff --git a/drs/include/huaweicloud/drs/v5/model/ActionReq.h b/drs/include/huaweicloud/drs/v5/model/ActionReq.h index 3a51da4e7..c08d8a018 100644 --- a/drs/include/huaweicloud/drs/v5/model/ActionReq.h +++ b/drs/include/huaweicloud/drs/v5/model/ActionReq.h @@ -49,7 +49,7 @@ class HUAWEICLOUD_DRS_V5_EXPORT ActionReq void setJobId(const std::string& value); /// - /// 操作任务动作名称。取值: - network:测试连接源库/目标库。 - precheck:执行预检查。 - start:启动任务。 - stop:暂停任务。 - restart:重试任务。 - reset:重置任务。 - terminate:结束任务。 - skip_precheck:跳过预检查。 - create_compare:创建对比任务。 - cancel_compare:取消对比任务。 - column_limit:字段过滤。 - reload_parameters:重新加载任务参数。 - bind_eip:绑定公网IP。 - unbind_eip:解绑公网IP。 - set_writable:目标库解除只读。 - cloud_connection:录制回放他云连通性测试。 + /// 操作任务动作名称。取值: - network:测试连接源库/目标库。 - precheck:执行预检查。 - start:启动任务。 - stop:暂停任务。 - restart:重试任务。 - reset:重置任务,需要先调用预检查接口并且预检查通过率为100%。 - terminate:结束任务。 - skip_precheck:跳过预检查。 - create_compare:创建对比任务。 - cancel_compare:取消对比任务。 - column_limit:字段过滤。 - reload_parameters:重新加载任务参数。 - bind_eip:绑定公网IP。 - unbind_eip:解绑公网IP。 - set_writable:目标库解除只读。 - cloud_connection:录制回放他云连通性测试。 - set_readonly: 灾备任务目标库设置只读。 /// std::string getActionName() const; diff --git a/drs/include/huaweicloud/drs/v5/model/BaseEndpoint.h b/drs/include/huaweicloud/drs/v5/model/BaseEndpoint.h index bc8c19b39..1c45b7f71 100644 --- a/drs/include/huaweicloud/drs/v5/model/BaseEndpoint.h +++ b/drs/include/huaweicloud/drs/v5/model/BaseEndpoint.h @@ -50,7 +50,7 @@ class HUAWEICLOUD_DRS_V5_EXPORT BaseEndpoint void setId(const std::string& value); /// - /// 数据库场景类型。取值: - oracle:云下自建Oracle数据库。 - ecs_oracle:华为云ECS自建Oracle数据库。 - cloud_gaussdbv5:华为云数据库GaussDB分布式。 - mysql:他云/本地自建MySQL数据库。 - ecs_mysql:华为云ECS自建MySQL数据库。 - cloud_mysql:华为云数据库RDS for MySQL。 - redis:云下自建Redis数据。 - ecs_redis:华为云ECS自建Redis数据。 - rediscluster:云下自建Redis集群数据库。 - ecs_rediscluster:华为云ECS自建Redis集群数据库。 - cloud_gaussdb_redis:华为云数据库GeminiDB Redis。 + /// 数据库场景类型。取值: - oracle:云下自建Oracle数据库。 - ecs_oracle:华为云ECS自建Oracle数据库。 - cloud_gaussdbv5:华为云数据库GaussDB分布式。 - mysql:他云/本地自建MySQL数据库。 - ecs_mysql:华为云ECS自建MySQL数据库。 - cloud_mysql:华为云数据库RDS for MySQL。 - redis:云下自建Redis数据。 - ecs_redis:华为云ECS自建Redis数据。 - rediscluster:云下自建Redis集群数据库。 - ecs_rediscluster:华为云ECS自建Redis集群数据库。 - cloud_gaussdb_redis:华为云数据库GeminiDB Redis。 - postgresql: 云下自建PostgreSQL数据库。 - ecs_postgresql: 华为云ECS自建PostgreSQL数据库。 - cloud_postgresql: 华为云数据库RDS for PostgreSQL。 - mongodb: 云下自建MongoDB数据库。 - ecs_mongodb: 华为云ECS自建MongoDB数据库。 - cloud_mongodb: 华为云文档数据库服务DDS。 /// std::string getEndpointName() const; diff --git a/drs/include/huaweicloud/drs/v5/model/ContentCompareOverviewInfo.h b/drs/include/huaweicloud/drs/v5/model/ContentCompareOverviewInfo.h index 95beb3b06..743d86ce8 100644 --- a/drs/include/huaweicloud/drs/v5/model/ContentCompareOverviewInfo.h +++ b/drs/include/huaweicloud/drs/v5/model/ContentCompareOverviewInfo.h @@ -57,7 +57,7 @@ class HUAWEICLOUD_DRS_V5_EXPORT ContentCompareOverviewInfo void setTargetDb(const std::string& value); /// - /// 对比结果。取值: - CONSISTENT:一致。 - INCONSISTENT:不一致。 - COMPARING:正在对比。 - WAITING_FOR_COMPARISON:等待对比。 - FAILED_TO_COMPARE:对比失败。 - TARGET_DB_NOT_EXIST:目标库不存在。 - CAN_NOT_COMPARE:无法对比。 - WAIT_FOR_COMPARE:命令已下发,等待对比结果 - CANCELED:已取消 + /// 对比结果。取值: - CONSISTENT:一致。 - INCONSISTENT:不一致。 - COMPARING:正在对比。 - WAITING_FOR_COMPARISON:等待对比。 - FAILED_TO_COMPARE:对比失败。 - TARGET_DB_NOT_EXIST:目标库不存在。 - CAN_NOT_COMPARE:无法对比。 - WAIT_FOR_COMPARE:命令已下发,等待对比结果。 - CANCELED:已取消。 /// std::string getStatus() const; diff --git a/drs/include/huaweicloud/drs/v5/model/DownloadDbObjectTemplateRequest.h b/drs/include/huaweicloud/drs/v5/model/DownloadDbObjectTemplateRequest.h index bd0782cec..eee6907ea 100644 --- a/drs/include/huaweicloud/drs/v5/model/DownloadDbObjectTemplateRequest.h +++ b/drs/include/huaweicloud/drs/v5/model/DownloadDbObjectTemplateRequest.h @@ -57,7 +57,7 @@ class HUAWEICLOUD_DRS_V5_EXPORT DownloadDbObjectTemplateRequest void setXLanguage(const std::string& value); /// - /// 文件模板支持数据同步级别,不填默认为table表级。 - database:库级 - table:表级 + /// 文件模板支持数据同步级别,不填默认为table表级。 - database:库级 - table:表级 - column:列级 /// std::string getFileImportDbLevel() const; diff --git a/drs/include/huaweicloud/drs/v5/model/JobBaseInfo.h b/drs/include/huaweicloud/drs/v5/model/JobBaseInfo.h index e911e6fc3..90b646343 100644 --- a/drs/include/huaweicloud/drs/v5/model/JobBaseInfo.h +++ b/drs/include/huaweicloud/drs/v5/model/JobBaseInfo.h @@ -157,6 +157,15 @@ class HUAWEICLOUD_DRS_V5_EXPORT JobBaseInfo void unsettags(); void setTags(const std::vector& value); + /// + /// 是否开启云数据库RDS for MySQL/MariaDB的binlog快速清理。 + /// + + bool isIsOpenFastClean() const; + bool isOpenFastCleanIsSet() const; + void unsetisOpenFastClean(); + void setIsOpenFastClean(bool value); + protected: std::string name_; @@ -185,6 +194,8 @@ class HUAWEICLOUD_DRS_V5_EXPORT JobBaseInfo bool expiredDaysIsSet_; std::vector tags_; bool tagsIsSet_; + bool isOpenFastClean_; + bool isOpenFastCleanIsSet_; }; diff --git a/drs/include/huaweicloud/drs/v5/model/ReplayErrorClassification.h b/drs/include/huaweicloud/drs/v5/model/ReplayErrorClassification.h new file mode 100644 index 000000000..09a6525f2 --- /dev/null +++ b/drs/include/huaweicloud/drs/v5/model/ReplayErrorClassification.h @@ -0,0 +1,97 @@ + +#ifndef HUAWEICLOUD_SDK_DRS_V5_MODEL_ReplayErrorClassification_H_ +#define HUAWEICLOUD_SDK_DRS_V5_MODEL_ReplayErrorClassification_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Drs { +namespace V5 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 回放异常SQL分类数据项 +/// +class HUAWEICLOUD_DRS_V5_EXPORT ReplayErrorClassification + : public ModelBase +{ +public: + ReplayErrorClassification(); + virtual ~ReplayErrorClassification(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ReplayErrorClassification members + + /// + /// 目标库标识 + /// + + std::string getTargetName() const; + bool targetNameIsSet() const; + void unsettargetName(); + void setTargetName(const std::string& value); + + /// + /// 异常SQL分类 + /// + + std::string getErrorType() const; + bool errorTypeIsSet() const; + void unseterrorType(); + void setErrorType(const std::string& value); + + /// + /// 异常SQL数量 + /// + + std::string getErrorCnt() const; + bool errorCntIsSet() const; + void unseterrorCnt(); + void setErrorCnt(const std::string& value); + + /// + /// 异常SQL模板数量 + /// + + std::string getErrorTemplateCnt() const; + bool errorTemplateCntIsSet() const; + void unseterrorTemplateCnt(); + void setErrorTemplateCnt(const std::string& value); + + +protected: + std::string targetName_; + bool targetNameIsSet_; + std::string errorType_; + bool errorTypeIsSet_; + std::string errorCnt_; + bool errorCntIsSet_; + std::string errorTemplateCnt_; + bool errorTemplateCntIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_DRS_V5_MODEL_ReplayErrorClassification_H_ diff --git a/drs/include/huaweicloud/drs/v5/model/ReplayErrorSqlTemplateResp.h b/drs/include/huaweicloud/drs/v5/model/ReplayErrorSqlTemplateResp.h index 100508b9c..5c2ad4692 100644 --- a/drs/include/huaweicloud/drs/v5/model/ReplayErrorSqlTemplateResp.h +++ b/drs/include/huaweicloud/drs/v5/model/ReplayErrorSqlTemplateResp.h @@ -47,6 +47,15 @@ class HUAWEICLOUD_DRS_V5_EXPORT ReplayErrorSqlTemplateResp void unsetsqlTemplate(); void setSqlTemplate(const std::string& value); + /// + /// SQL模板MD5 + /// + + std::string getSqlTemplateMd5() const; + bool sqlTemplateMd5IsSet() const; + void unsetsqlTemplateMd5(); + void setSqlTemplateMd5(const std::string& value); + /// /// 目标库昵称 /// @@ -96,6 +105,8 @@ class HUAWEICLOUD_DRS_V5_EXPORT ReplayErrorSqlTemplateResp protected: std::string sqlTemplate_; bool sqlTemplateIsSet_; + std::string sqlTemplateMd5_; + bool sqlTemplateMd5IsSet_; std::string targetName_; bool targetNameIsSet_; std::string schemaName_; diff --git a/drs/include/huaweicloud/drs/v5/model/ReplaySlowSqlTemplateResp.h b/drs/include/huaweicloud/drs/v5/model/ReplaySlowSqlTemplateResp.h index 4bf5895a3..90af36269 100644 --- a/drs/include/huaweicloud/drs/v5/model/ReplaySlowSqlTemplateResp.h +++ b/drs/include/huaweicloud/drs/v5/model/ReplaySlowSqlTemplateResp.h @@ -47,6 +47,15 @@ class HUAWEICLOUD_DRS_V5_EXPORT ReplaySlowSqlTemplateResp void unsetsqlTemplate(); void setSqlTemplate(const std::string& value); + /// + /// SQL语句模板MD5 + /// + + std::string getSqlTemplateMd5() const; + bool sqlTemplateMd5IsSet() const; + void unsetsqlTemplateMd5(); + void setSqlTemplateMd5(const std::string& value); + /// /// 目标库别名 /// @@ -132,6 +141,8 @@ class HUAWEICLOUD_DRS_V5_EXPORT ReplaySlowSqlTemplateResp protected: std::string sqlTemplate_; bool sqlTemplateIsSet_; + std::string sqlTemplateMd5_; + bool sqlTemplateMd5IsSet_; std::string targetName_; bool targetNameIsSet_; std::string schemaName_; diff --git a/drs/include/huaweicloud/drs/v5/model/ShowDbObjectTemplateProgressRequest.h b/drs/include/huaweicloud/drs/v5/model/ShowDbObjectTemplateProgressRequest.h index 0248832d6..b93f0f2ed 100644 --- a/drs/include/huaweicloud/drs/v5/model/ShowDbObjectTemplateProgressRequest.h +++ b/drs/include/huaweicloud/drs/v5/model/ShowDbObjectTemplateProgressRequest.h @@ -74,6 +74,15 @@ class HUAWEICLOUD_DRS_V5_EXPORT ShowDbObjectTemplateProgressRequest void unsetlimit(); void setLimit(int32_t value); + /// + /// 默认为空。 - column:当进行列加工导入时,查询列加工导入进度。 + /// + + std::string getType() const; + bool typeIsSet() const; + void unsettype(); + void setType(const std::string& value); + protected: std::string jobId_; @@ -84,6 +93,8 @@ class HUAWEICLOUD_DRS_V5_EXPORT ShowDbObjectTemplateProgressRequest bool offsetIsSet_; int32_t limit_; bool limitIsSet_; + std::string type_; + bool typeIsSet_; #ifdef RTTR_FLAG RTTR_ENABLE() diff --git a/drs/include/huaweicloud/drs/v5/model/ShowDbObjectTemplateResultRequest.h b/drs/include/huaweicloud/drs/v5/model/ShowDbObjectTemplateResultRequest.h index 4300b4dff..4d5ab3463 100644 --- a/drs/include/huaweicloud/drs/v5/model/ShowDbObjectTemplateResultRequest.h +++ b/drs/include/huaweicloud/drs/v5/model/ShowDbObjectTemplateResultRequest.h @@ -65,6 +65,15 @@ class HUAWEICLOUD_DRS_V5_EXPORT ShowDbObjectTemplateResultRequest void unsettype(); void setType(const std::string& value); + /// + /// 默认为空。当进行列加工导入时,查询列加工导入进度,取值column。 + /// + + std::string getFileExportObjectLevel() const; + bool fileExportObjectLevelIsSet() const; + void unsetfileExportObjectLevel(); + void setFileExportObjectLevel(const std::string& value); + protected: std::string jobId_; @@ -73,6 +82,8 @@ class HUAWEICLOUD_DRS_V5_EXPORT ShowDbObjectTemplateResultRequest bool xLanguageIsSet_; std::string type_; bool typeIsSet_; + std::string fileExportObjectLevel_; + bool fileExportObjectLevelIsSet_; #ifdef RTTR_FLAG RTTR_ENABLE() diff --git a/drs/include/huaweicloud/drs/v5/model/ShowReplayResultsRequest.h b/drs/include/huaweicloud/drs/v5/model/ShowReplayResultsRequest.h index 15d1cca2d..47c3a1ba3 100644 --- a/drs/include/huaweicloud/drs/v5/model/ShowReplayResultsRequest.h +++ b/drs/include/huaweicloud/drs/v5/model/ShowReplayResultsRequest.h @@ -57,7 +57,7 @@ class HUAWEICLOUD_DRS_V5_EXPORT ShowReplayResultsRequest void setXLanguage(const std::string& value); /// - /// 结果类型。取值: - shard_statistics:回放概览基于时间维度统计信息。 - slow_sql:慢SQL详情。 - error_sql: 回放异常SQL详情。 - slow_sql_template:慢SQL统计信息。 - error_sql_template:异常SQL统计信息。 - replaying_sql:正在回放SQL详情。 + /// 结果类型。取值: - shard_statistics:回放概览基于时间维度统计信息。 - slow_sql:慢SQL详情。 - error_sql: 回放异常SQL详情。 - slow_sql_template:慢SQL统计信息。 - error_sql_template:异常SQL统计信息。 - replaying_sql:正在回放SQL详情。 - error_classification:回放异常SQL分类。 /// std::string getType() const; @@ -128,6 +128,33 @@ class HUAWEICLOUD_DRS_V5_EXPORT ShowReplayResultsRequest void unsettargetName(); void setTargetName(const std::string& value); + /// + /// 是否查询样例true/false,type=slow_sql/error_sql时生效,值为true时只查询一条样例数据。 + /// + + bool isIsSample() const; + bool isSampleIsSet() const; + void unsetisSample(); + void setIsSample(bool value); + + /// + /// 错误分类,type=error_sql/error_sql_template时生效,根据错误分类过滤数据。 + /// + + std::string getErrorType() const; + bool errorTypeIsSet() const; + void unseterrorType(); + void setErrorType(const std::string& value); + + /// + /// sql模板md5,type=slow_sql/error_sql时生效,根据模板过滤对应的异常SQL和慢SQL,该值为本接口type=slow_sql_template/error_sql_template时的返回字段。 + /// + + std::string getSqlTemplateMd5() const; + bool sqlTemplateMd5IsSet() const; + void unsetsqlTemplateMd5(); + void setSqlTemplateMd5(const std::string& value); + protected: std::string jobId_; @@ -150,6 +177,12 @@ class HUAWEICLOUD_DRS_V5_EXPORT ShowReplayResultsRequest bool sortDirIsSet_; std::string targetName_; bool targetNameIsSet_; + bool isSample_; + bool isSampleIsSet_; + std::string errorType_; + bool errorTypeIsSet_; + std::string sqlTemplateMd5_; + bool sqlTemplateMd5IsSet_; #ifdef RTTR_FLAG RTTR_ENABLE() diff --git a/drs/include/huaweicloud/drs/v5/model/ShowReplayResultsResponse.h b/drs/include/huaweicloud/drs/v5/model/ShowReplayResultsResponse.h index 94e4291eb..15403d8f0 100644 --- a/drs/include/huaweicloud/drs/v5/model/ShowReplayResultsResponse.h +++ b/drs/include/huaweicloud/drs/v5/model/ShowReplayResultsResponse.h @@ -13,6 +13,7 @@ #include #include #include +#include #include #include #include @@ -107,6 +108,15 @@ class HUAWEICLOUD_DRS_V5_EXPORT ShowReplayResultsResponse void unsetreplayingSqls(); void setReplayingSqls(const std::vector& value); + /// + /// 回放异常SQL分类信息,在type为error_classification时返回 + /// + + std::vector& getErrorClassifications(); + bool errorClassificationsIsSet() const; + void unseterrorClassifications(); + void setErrorClassifications(const std::vector& value); + protected: int64_t totalCount_; @@ -123,6 +133,8 @@ class HUAWEICLOUD_DRS_V5_EXPORT ShowReplayResultsResponse bool errorSqlTemplatesIsSet_; std::vector replayingSqls_; bool replayingSqlsIsSet_; + std::vector errorClassifications_; + bool errorClassificationsIsSet_; #ifdef RTTR_FLAG RTTR_ENABLE() diff --git a/drs/include/huaweicloud/drs/v5/model/ShowSupportObjectTypeResponse.h b/drs/include/huaweicloud/drs/v5/model/ShowSupportObjectTypeResponse.h index 306e836c2..1e8073229 100644 --- a/drs/include/huaweicloud/drs/v5/model/ShowSupportObjectTypeResponse.h +++ b/drs/include/huaweicloud/drs/v5/model/ShowSupportObjectTypeResponse.h @@ -138,6 +138,15 @@ class HUAWEICLOUD_DRS_V5_EXPORT ShowSupportObjectTypeResponse void unsetimportLevel(); void setImportLevel(const std::string& value); + /// + /// 取值: - true: 当前任务上次选择列加工方式为导入方式 - false 或者 空:当前任务上次选择列加工方式为手动选择方式 + /// + + bool isIsImportCloumn() const; + bool isImportCloumnIsSet() const; + void unsetisImportCloumn(); + void setIsImportCloumn(bool value); + protected: bool isFullTransSupportObject_; @@ -162,6 +171,8 @@ class HUAWEICLOUD_DRS_V5_EXPORT ShowSupportObjectTypeResponse bool previousSelectIsSet_; std::string importLevel_; bool importLevelIsSet_; + bool isImportCloumn_; + bool isImportCloumnIsSet_; #ifdef RTTR_FLAG RTTR_ENABLE() diff --git a/drs/include/huaweicloud/drs/v5/model/UploadDbObjectTemplateRequest.h b/drs/include/huaweicloud/drs/v5/model/UploadDbObjectTemplateRequest.h index b2165b2e5..1e98a7f88 100644 --- a/drs/include/huaweicloud/drs/v5/model/UploadDbObjectTemplateRequest.h +++ b/drs/include/huaweicloud/drs/v5/model/UploadDbObjectTemplateRequest.h @@ -58,7 +58,7 @@ class HUAWEICLOUD_DRS_V5_EXPORT UploadDbObjectTemplateRequest void setXLanguage(const std::string& value); /// - /// 文件模板支持数据同步级别,不填默认为table表级。 - database:库级 - table:表级 + /// 文件模板支持数据同步级别,不填默认为table表级。 - database:库级 - table:表级 - column:列级 /// std::string getFileImportDbLevel() const; diff --git a/drs/src/v3/model/CreateJobReq.cpp b/drs/src/v3/model/CreateJobReq.cpp index bd9a7110b..98b5d445a 100644 --- a/drs/src/v3/model/CreateJobReq.cpp +++ b/drs/src/v3/model/CreateJobReq.cpp @@ -54,6 +54,8 @@ CreateJobReq::CreateJobReq() chargingModeIsSet_ = false; periodOrderIsSet_ = false; publicIpListIsSet_ = false; + isOpenFastClean_ = false; + isOpenFastCleanIsSet_ = false; } CreateJobReq::~CreateJobReq() = default; @@ -138,6 +140,9 @@ web::json::value CreateJobReq::toJson() const if(publicIpListIsSet_) { val[utility::conversions::to_string_t("public_ip_list")] = ModelBase::toJson(publicIpList_); } + if(isOpenFastCleanIsSet_) { + val[utility::conversions::to_string_t("is_open_fast_clean")] = ModelBase::toJson(isOpenFastClean_); + } return val; } @@ -361,6 +366,15 @@ bool CreateJobReq::fromJson(const web::json::value& val) setPublicIpList(refVal); } } + if(val.has_field(utility::conversions::to_string_t("is_open_fast_clean"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("is_open_fast_clean")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIsOpenFastClean(refVal); + } + } return ok; } @@ -869,6 +883,27 @@ void CreateJobReq::unsetpublicIpList() publicIpListIsSet_ = false; } +bool CreateJobReq::isIsOpenFastClean() const +{ + return isOpenFastClean_; +} + +void CreateJobReq::setIsOpenFastClean(bool value) +{ + isOpenFastClean_ = value; + isOpenFastCleanIsSet_ = true; +} + +bool CreateJobReq::isOpenFastCleanIsSet() const +{ + return isOpenFastCleanIsSet_; +} + +void CreateJobReq::unsetisOpenFastClean() +{ + isOpenFastCleanIsSet_ = false; +} + } } } diff --git a/drs/src/v3/model/QueryJobResp.cpp b/drs/src/v3/model/QueryJobResp.cpp index 02512fa4e..c786f1fc6 100644 --- a/drs/src/v3/model/QueryJobResp.cpp +++ b/drs/src/v3/model/QueryJobResp.cpp @@ -118,6 +118,8 @@ QueryJobResp::QueryJobResp() bindPublicIpState_ = ""; bindPublicIpStateIsSet_ = false; childrenIsSet_ = false; + isOpenFastClean_ = false; + isOpenFastCleanIsSet_ = false; } QueryJobResp::~QueryJobResp() = default; @@ -310,6 +312,9 @@ web::json::value QueryJobResp::toJson() const if(childrenIsSet_) { val[utility::conversions::to_string_t("children")] = ModelBase::toJson(children_); } + if(isOpenFastCleanIsSet_) { + val[utility::conversions::to_string_t("is_open_fast_clean")] = ModelBase::toJson(isOpenFastClean_); + } return val; } @@ -857,6 +862,15 @@ bool QueryJobResp::fromJson(const web::json::value& val) setChildren(refVal); } } + if(val.has_field(utility::conversions::to_string_t("is_open_fast_clean"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("is_open_fast_clean")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIsOpenFastClean(refVal); + } + } return ok; } @@ -2121,6 +2135,27 @@ void QueryJobResp::unsetchildren() childrenIsSet_ = false; } +bool QueryJobResp::isIsOpenFastClean() const +{ + return isOpenFastClean_; +} + +void QueryJobResp::setIsOpenFastClean(bool value) +{ + isOpenFastClean_ = value; + isOpenFastCleanIsSet_ = true; +} + +bool QueryJobResp::isOpenFastCleanIsSet() const +{ + return isOpenFastCleanIsSet_; +} + +void QueryJobResp::unsetisOpenFastClean() +{ + isOpenFastCleanIsSet_ = false; +} + } } } diff --git a/drs/src/v5/DrsClient.cpp b/drs/src/v5/DrsClient.cpp index 14e9ef17a..52fd9f2a1 100644 --- a/drs/src/v5/DrsClient.cpp +++ b/drs/src/v5/DrsClient.cpp @@ -1842,6 +1842,9 @@ std::shared_ptr DrsClient::showDbObjectTem if (request.limitIsSet()) { localVarQueryParams["limit"] = parameterToString(request.getLimit()); } + if (request.typeIsSet()) { + localVarQueryParams["type"] = parameterToString(request.getType()); + } if (request.xLanguageIsSet()) { localVarHeaderParams["X-Language"] = parameterToString(request.getXLanguage()); } @@ -1878,6 +1881,9 @@ std::shared_ptr DrsClient::showDbObjectTempl if (request.typeIsSet()) { localVarQueryParams["type"] = parameterToString(request.getType()); } + if (request.fileExportObjectLevelIsSet()) { + localVarQueryParams["file_export_object_level"] = parameterToString(request.getFileExportObjectLevel()); + } if (request.xLanguageIsSet()) { localVarHeaderParams["X-Language"] = parameterToString(request.getXLanguage()); } @@ -2490,6 +2496,15 @@ std::shared_ptr DrsClient::showReplayResults(ShowRepl if (request.targetNameIsSet()) { localVarQueryParams["target_name"] = parameterToString(request.getTargetName()); } + if (request.isSampleIsSet()) { + localVarQueryParams["is_sample"] = parameterToString(request.isIsSample()); + } + if (request.errorTypeIsSet()) { + localVarQueryParams["error_type"] = parameterToString(request.getErrorType()); + } + if (request.sqlTemplateMd5IsSet()) { + localVarQueryParams["sql_template_md5"] = parameterToString(request.getSqlTemplateMd5()); + } if (request.xLanguageIsSet()) { localVarHeaderParams["X-Language"] = parameterToString(request.getXLanguage()); } diff --git a/drs/src/v5/DrsMeta.cpp b/drs/src/v5/DrsMeta.cpp index 3bda11d8f..7c9c564bb 100644 --- a/drs/src/v5/DrsMeta.cpp +++ b/drs/src/v5/DrsMeta.cpp @@ -693,6 +693,9 @@ HttpRequestDef DrsMeta::genRequestDefForShowDbObjectTemplateProgress() { reqDefBuilder.withRequestField(FieldDef().withName("Limit") .withJsonTag("limit") .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Type") + .withJsonTag("type") + .withLocationType(Query_)); FieldDef headerParamXLanguage; reqDefBuilder.withRequestField(headerParamXLanguage .withName("XLanguage") @@ -706,6 +709,9 @@ HttpRequestDef DrsMeta::genRequestDefForShowDbObjectTemplateResult() { reqDefBuilder.withRequestField(FieldDef().withName("Type") .withJsonTag("type") .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("FileExportObjectLevel") + .withJsonTag("file_export_object_level") + .withLocationType(Query_)); FieldDef headerParamXLanguage; reqDefBuilder.withRequestField(headerParamXLanguage .withName("XLanguage") @@ -962,6 +968,15 @@ HttpRequestDef DrsMeta::genRequestDefForShowReplayResults() { reqDefBuilder.withRequestField(FieldDef().withName("TargetName") .withJsonTag("target_name") .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("IsSample") + .withJsonTag("is_sample") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("ErrorType") + .withJsonTag("error_type") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("SqlTemplateMd5") + .withJsonTag("sql_template_md5") + .withLocationType(Query_)); FieldDef headerParamXLanguage; reqDefBuilder.withRequestField(headerParamXLanguage .withName("XLanguage") diff --git a/drs/src/v5/model/JobBaseInfo.cpp b/drs/src/v5/model/JobBaseInfo.cpp index 41d6a8293..4f401eba5 100644 --- a/drs/src/v5/model/JobBaseInfo.cpp +++ b/drs/src/v5/model/JobBaseInfo.cpp @@ -37,6 +37,8 @@ JobBaseInfo::JobBaseInfo() expiredDays_ = ""; expiredDaysIsSet_ = false; tagsIsSet_ = false; + isOpenFastClean_ = false; + isOpenFastCleanIsSet_ = false; } JobBaseInfo::~JobBaseInfo() = default; @@ -88,6 +90,9 @@ web::json::value JobBaseInfo::toJson() const if(tagsIsSet_) { val[utility::conversions::to_string_t("tags")] = ModelBase::toJson(tags_); } + if(isOpenFastCleanIsSet_) { + val[utility::conversions::to_string_t("is_open_fast_clean")] = ModelBase::toJson(isOpenFastClean_); + } return val; } @@ -212,6 +217,15 @@ bool JobBaseInfo::fromJson(const web::json::value& val) setTags(refVal); } } + if(val.has_field(utility::conversions::to_string_t("is_open_fast_clean"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("is_open_fast_clean")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIsOpenFastClean(refVal); + } + } return ok; } @@ -489,6 +503,27 @@ void JobBaseInfo::unsettags() tagsIsSet_ = false; } +bool JobBaseInfo::isIsOpenFastClean() const +{ + return isOpenFastClean_; +} + +void JobBaseInfo::setIsOpenFastClean(bool value) +{ + isOpenFastClean_ = value; + isOpenFastCleanIsSet_ = true; +} + +bool JobBaseInfo::isOpenFastCleanIsSet() const +{ + return isOpenFastCleanIsSet_; +} + +void JobBaseInfo::unsetisOpenFastClean() +{ + isOpenFastCleanIsSet_ = false; +} + } } } diff --git a/drs/src/v5/model/ReplayErrorClassification.cpp b/drs/src/v5/model/ReplayErrorClassification.cpp new file mode 100644 index 000000000..c08a93dc1 --- /dev/null +++ b/drs/src/v5/model/ReplayErrorClassification.cpp @@ -0,0 +1,184 @@ + + +#include "huaweicloud/drs/v5/model/ReplayErrorClassification.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Drs { +namespace V5 { +namespace Model { + + + + +ReplayErrorClassification::ReplayErrorClassification() +{ + targetName_ = ""; + targetNameIsSet_ = false; + errorType_ = ""; + errorTypeIsSet_ = false; + errorCnt_ = ""; + errorCntIsSet_ = false; + errorTemplateCnt_ = ""; + errorTemplateCntIsSet_ = false; +} + +ReplayErrorClassification::~ReplayErrorClassification() = default; + +void ReplayErrorClassification::validate() +{ +} + +web::json::value ReplayErrorClassification::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(targetNameIsSet_) { + val[utility::conversions::to_string_t("target_name")] = ModelBase::toJson(targetName_); + } + if(errorTypeIsSet_) { + val[utility::conversions::to_string_t("error_type")] = ModelBase::toJson(errorType_); + } + if(errorCntIsSet_) { + val[utility::conversions::to_string_t("error_cnt")] = ModelBase::toJson(errorCnt_); + } + if(errorTemplateCntIsSet_) { + val[utility::conversions::to_string_t("error_template_cnt")] = ModelBase::toJson(errorTemplateCnt_); + } + + return val; +} +bool ReplayErrorClassification::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("target_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("target_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTargetName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("error_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("error_type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setErrorType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("error_cnt"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("error_cnt")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setErrorCnt(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("error_template_cnt"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("error_template_cnt")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setErrorTemplateCnt(refVal); + } + } + return ok; +} + + +std::string ReplayErrorClassification::getTargetName() const +{ + return targetName_; +} + +void ReplayErrorClassification::setTargetName(const std::string& value) +{ + targetName_ = value; + targetNameIsSet_ = true; +} + +bool ReplayErrorClassification::targetNameIsSet() const +{ + return targetNameIsSet_; +} + +void ReplayErrorClassification::unsettargetName() +{ + targetNameIsSet_ = false; +} + +std::string ReplayErrorClassification::getErrorType() const +{ + return errorType_; +} + +void ReplayErrorClassification::setErrorType(const std::string& value) +{ + errorType_ = value; + errorTypeIsSet_ = true; +} + +bool ReplayErrorClassification::errorTypeIsSet() const +{ + return errorTypeIsSet_; +} + +void ReplayErrorClassification::unseterrorType() +{ + errorTypeIsSet_ = false; +} + +std::string ReplayErrorClassification::getErrorCnt() const +{ + return errorCnt_; +} + +void ReplayErrorClassification::setErrorCnt(const std::string& value) +{ + errorCnt_ = value; + errorCntIsSet_ = true; +} + +bool ReplayErrorClassification::errorCntIsSet() const +{ + return errorCntIsSet_; +} + +void ReplayErrorClassification::unseterrorCnt() +{ + errorCntIsSet_ = false; +} + +std::string ReplayErrorClassification::getErrorTemplateCnt() const +{ + return errorTemplateCnt_; +} + +void ReplayErrorClassification::setErrorTemplateCnt(const std::string& value) +{ + errorTemplateCnt_ = value; + errorTemplateCntIsSet_ = true; +} + +bool ReplayErrorClassification::errorTemplateCntIsSet() const +{ + return errorTemplateCntIsSet_; +} + +void ReplayErrorClassification::unseterrorTemplateCnt() +{ + errorTemplateCntIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/drs/src/v5/model/ReplayErrorSqlTemplateResp.cpp b/drs/src/v5/model/ReplayErrorSqlTemplateResp.cpp index 07d8b6295..d80a0d0aa 100644 --- a/drs/src/v5/model/ReplayErrorSqlTemplateResp.cpp +++ b/drs/src/v5/model/ReplayErrorSqlTemplateResp.cpp @@ -14,6 +14,8 @@ ReplayErrorSqlTemplateResp::ReplayErrorSqlTemplateResp() { sqlTemplate_ = ""; sqlTemplateIsSet_ = false; + sqlTemplateMd5_ = ""; + sqlTemplateMd5IsSet_ = false; targetName_ = ""; targetNameIsSet_ = false; schemaName_ = ""; @@ -39,6 +41,9 @@ web::json::value ReplayErrorSqlTemplateResp::toJson() const if(sqlTemplateIsSet_) { val[utility::conversions::to_string_t("sql_template")] = ModelBase::toJson(sqlTemplate_); } + if(sqlTemplateMd5IsSet_) { + val[utility::conversions::to_string_t("sql_template_md5")] = ModelBase::toJson(sqlTemplateMd5_); + } if(targetNameIsSet_) { val[utility::conversions::to_string_t("target_name")] = ModelBase::toJson(targetName_); } @@ -70,6 +75,15 @@ bool ReplayErrorSqlTemplateResp::fromJson(const web::json::value& val) setSqlTemplate(refVal); } } + if(val.has_field(utility::conversions::to_string_t("sql_template_md5"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sql_template_md5")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSqlTemplateMd5(refVal); + } + } if(val.has_field(utility::conversions::to_string_t("target_name"))) { const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("target_name")); if(!fieldValue.is_null()) @@ -140,6 +154,27 @@ void ReplayErrorSqlTemplateResp::unsetsqlTemplate() sqlTemplateIsSet_ = false; } +std::string ReplayErrorSqlTemplateResp::getSqlTemplateMd5() const +{ + return sqlTemplateMd5_; +} + +void ReplayErrorSqlTemplateResp::setSqlTemplateMd5(const std::string& value) +{ + sqlTemplateMd5_ = value; + sqlTemplateMd5IsSet_ = true; +} + +bool ReplayErrorSqlTemplateResp::sqlTemplateMd5IsSet() const +{ + return sqlTemplateMd5IsSet_; +} + +void ReplayErrorSqlTemplateResp::unsetsqlTemplateMd5() +{ + sqlTemplateMd5IsSet_ = false; +} + std::string ReplayErrorSqlTemplateResp::getTargetName() const { return targetName_; diff --git a/drs/src/v5/model/ReplaySlowSqlTemplateResp.cpp b/drs/src/v5/model/ReplaySlowSqlTemplateResp.cpp index a507a6653..57fa57c76 100644 --- a/drs/src/v5/model/ReplaySlowSqlTemplateResp.cpp +++ b/drs/src/v5/model/ReplaySlowSqlTemplateResp.cpp @@ -14,6 +14,8 @@ ReplaySlowSqlTemplateResp::ReplaySlowSqlTemplateResp() { sqlTemplate_ = ""; sqlTemplateIsSet_ = false; + sqlTemplateMd5_ = ""; + sqlTemplateMd5IsSet_ = false; targetName_ = ""; targetNameIsSet_ = false; schemaName_ = ""; @@ -47,6 +49,9 @@ web::json::value ReplaySlowSqlTemplateResp::toJson() const if(sqlTemplateIsSet_) { val[utility::conversions::to_string_t("sql_template")] = ModelBase::toJson(sqlTemplate_); } + if(sqlTemplateMd5IsSet_) { + val[utility::conversions::to_string_t("sql_template_md5")] = ModelBase::toJson(sqlTemplateMd5_); + } if(targetNameIsSet_) { val[utility::conversions::to_string_t("target_name")] = ModelBase::toJson(targetName_); } @@ -90,6 +95,15 @@ bool ReplaySlowSqlTemplateResp::fromJson(const web::json::value& val) setSqlTemplate(refVal); } } + if(val.has_field(utility::conversions::to_string_t("sql_template_md5"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sql_template_md5")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSqlTemplateMd5(refVal); + } + } if(val.has_field(utility::conversions::to_string_t("target_name"))) { const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("target_name")); if(!fieldValue.is_null()) @@ -196,6 +210,27 @@ void ReplaySlowSqlTemplateResp::unsetsqlTemplate() sqlTemplateIsSet_ = false; } +std::string ReplaySlowSqlTemplateResp::getSqlTemplateMd5() const +{ + return sqlTemplateMd5_; +} + +void ReplaySlowSqlTemplateResp::setSqlTemplateMd5(const std::string& value) +{ + sqlTemplateMd5_ = value; + sqlTemplateMd5IsSet_ = true; +} + +bool ReplaySlowSqlTemplateResp::sqlTemplateMd5IsSet() const +{ + return sqlTemplateMd5IsSet_; +} + +void ReplaySlowSqlTemplateResp::unsetsqlTemplateMd5() +{ + sqlTemplateMd5IsSet_ = false; +} + std::string ReplaySlowSqlTemplateResp::getTargetName() const { return targetName_; diff --git a/drs/src/v5/model/ShowDbObjectTemplateProgressRequest.cpp b/drs/src/v5/model/ShowDbObjectTemplateProgressRequest.cpp index 448296d6d..f9b96be1e 100644 --- a/drs/src/v5/model/ShowDbObjectTemplateProgressRequest.cpp +++ b/drs/src/v5/model/ShowDbObjectTemplateProgressRequest.cpp @@ -20,6 +20,8 @@ ShowDbObjectTemplateProgressRequest::ShowDbObjectTemplateProgressRequest() offsetIsSet_ = false; limit_ = 0; limitIsSet_ = false; + type_ = ""; + typeIsSet_ = false; } ShowDbObjectTemplateProgressRequest::~ShowDbObjectTemplateProgressRequest() = default; @@ -44,6 +46,9 @@ web::json::value ShowDbObjectTemplateProgressRequest::toJson() const if(limitIsSet_) { val[utility::conversions::to_string_t("limit")] = ModelBase::toJson(limit_); } + if(typeIsSet_) { + val[utility::conversions::to_string_t("type")] = ModelBase::toJson(type_); + } return val; } @@ -87,6 +92,15 @@ bool ShowDbObjectTemplateProgressRequest::fromJson(const web::json::value& val) setLimit(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); + } + } return ok; } @@ -175,6 +189,27 @@ void ShowDbObjectTemplateProgressRequest::unsetlimit() limitIsSet_ = false; } +std::string ShowDbObjectTemplateProgressRequest::getType() const +{ + return type_; +} + +void ShowDbObjectTemplateProgressRequest::setType(const std::string& value) +{ + type_ = value; + typeIsSet_ = true; +} + +bool ShowDbObjectTemplateProgressRequest::typeIsSet() const +{ + return typeIsSet_; +} + +void ShowDbObjectTemplateProgressRequest::unsettype() +{ + typeIsSet_ = false; +} + } } } diff --git a/drs/src/v5/model/ShowDbObjectTemplateResultRequest.cpp b/drs/src/v5/model/ShowDbObjectTemplateResultRequest.cpp index 1b20218cb..48e4dfcd2 100644 --- a/drs/src/v5/model/ShowDbObjectTemplateResultRequest.cpp +++ b/drs/src/v5/model/ShowDbObjectTemplateResultRequest.cpp @@ -18,6 +18,8 @@ ShowDbObjectTemplateResultRequest::ShowDbObjectTemplateResultRequest() xLanguageIsSet_ = false; type_ = ""; typeIsSet_ = false; + fileExportObjectLevel_ = ""; + fileExportObjectLevelIsSet_ = false; } ShowDbObjectTemplateResultRequest::~ShowDbObjectTemplateResultRequest() = default; @@ -39,6 +41,9 @@ web::json::value ShowDbObjectTemplateResultRequest::toJson() const if(typeIsSet_) { val[utility::conversions::to_string_t("type")] = ModelBase::toJson(type_); } + if(fileExportObjectLevelIsSet_) { + val[utility::conversions::to_string_t("file_export_object_level")] = ModelBase::toJson(fileExportObjectLevel_); + } return val; } @@ -73,6 +78,15 @@ bool ShowDbObjectTemplateResultRequest::fromJson(const web::json::value& val) setType(refVal); } } + if(val.has_field(utility::conversions::to_string_t("file_export_object_level"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("file_export_object_level")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFileExportObjectLevel(refVal); + } + } return ok; } @@ -140,6 +154,27 @@ void ShowDbObjectTemplateResultRequest::unsettype() typeIsSet_ = false; } +std::string ShowDbObjectTemplateResultRequest::getFileExportObjectLevel() const +{ + return fileExportObjectLevel_; +} + +void ShowDbObjectTemplateResultRequest::setFileExportObjectLevel(const std::string& value) +{ + fileExportObjectLevel_ = value; + fileExportObjectLevelIsSet_ = true; +} + +bool ShowDbObjectTemplateResultRequest::fileExportObjectLevelIsSet() const +{ + return fileExportObjectLevelIsSet_; +} + +void ShowDbObjectTemplateResultRequest::unsetfileExportObjectLevel() +{ + fileExportObjectLevelIsSet_ = false; +} + } } } diff --git a/drs/src/v5/model/ShowReplayResultsRequest.cpp b/drs/src/v5/model/ShowReplayResultsRequest.cpp index 4f21ffebf..9da58e233 100644 --- a/drs/src/v5/model/ShowReplayResultsRequest.cpp +++ b/drs/src/v5/model/ShowReplayResultsRequest.cpp @@ -32,6 +32,12 @@ ShowReplayResultsRequest::ShowReplayResultsRequest() sortDirIsSet_ = false; targetName_ = ""; targetNameIsSet_ = false; + isSample_ = false; + isSampleIsSet_ = false; + errorType_ = ""; + errorTypeIsSet_ = false; + sqlTemplateMd5_ = ""; + sqlTemplateMd5IsSet_ = false; } ShowReplayResultsRequest::~ShowReplayResultsRequest() = default; @@ -74,6 +80,15 @@ web::json::value ShowReplayResultsRequest::toJson() const if(targetNameIsSet_) { val[utility::conversions::to_string_t("target_name")] = ModelBase::toJson(targetName_); } + if(isSampleIsSet_) { + val[utility::conversions::to_string_t("is_sample")] = ModelBase::toJson(isSample_); + } + if(errorTypeIsSet_) { + val[utility::conversions::to_string_t("error_type")] = ModelBase::toJson(errorType_); + } + if(sqlTemplateMd5IsSet_) { + val[utility::conversions::to_string_t("sql_template_md5")] = ModelBase::toJson(sqlTemplateMd5_); + } return val; } @@ -171,6 +186,33 @@ bool ShowReplayResultsRequest::fromJson(const web::json::value& val) setTargetName(refVal); } } + if(val.has_field(utility::conversions::to_string_t("is_sample"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("is_sample")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIsSample(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("error_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("error_type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setErrorType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("sql_template_md5"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sql_template_md5")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSqlTemplateMd5(refVal); + } + } return ok; } @@ -385,6 +427,69 @@ void ShowReplayResultsRequest::unsettargetName() targetNameIsSet_ = false; } +bool ShowReplayResultsRequest::isIsSample() const +{ + return isSample_; +} + +void ShowReplayResultsRequest::setIsSample(bool value) +{ + isSample_ = value; + isSampleIsSet_ = true; +} + +bool ShowReplayResultsRequest::isSampleIsSet() const +{ + return isSampleIsSet_; +} + +void ShowReplayResultsRequest::unsetisSample() +{ + isSampleIsSet_ = false; +} + +std::string ShowReplayResultsRequest::getErrorType() const +{ + return errorType_; +} + +void ShowReplayResultsRequest::setErrorType(const std::string& value) +{ + errorType_ = value; + errorTypeIsSet_ = true; +} + +bool ShowReplayResultsRequest::errorTypeIsSet() const +{ + return errorTypeIsSet_; +} + +void ShowReplayResultsRequest::unseterrorType() +{ + errorTypeIsSet_ = false; +} + +std::string ShowReplayResultsRequest::getSqlTemplateMd5() const +{ + return sqlTemplateMd5_; +} + +void ShowReplayResultsRequest::setSqlTemplateMd5(const std::string& value) +{ + sqlTemplateMd5_ = value; + sqlTemplateMd5IsSet_ = true; +} + +bool ShowReplayResultsRequest::sqlTemplateMd5IsSet() const +{ + return sqlTemplateMd5IsSet_; +} + +void ShowReplayResultsRequest::unsetsqlTemplateMd5() +{ + sqlTemplateMd5IsSet_ = false; +} + } } } diff --git a/drs/src/v5/model/ShowReplayResultsResponse.cpp b/drs/src/v5/model/ShowReplayResultsResponse.cpp index e1c514375..2e3a734a5 100644 --- a/drs/src/v5/model/ShowReplayResultsResponse.cpp +++ b/drs/src/v5/model/ShowReplayResultsResponse.cpp @@ -20,6 +20,7 @@ ShowReplayResultsResponse::ShowReplayResultsResponse() errorSqlsIsSet_ = false; errorSqlTemplatesIsSet_ = false; replayingSqlsIsSet_ = false; + errorClassificationsIsSet_ = false; } ShowReplayResultsResponse::~ShowReplayResultsResponse() = default; @@ -53,6 +54,9 @@ web::json::value ShowReplayResultsResponse::toJson() const if(replayingSqlsIsSet_) { val[utility::conversions::to_string_t("replaying_sqls")] = ModelBase::toJson(replayingSqls_); } + if(errorClassificationsIsSet_) { + val[utility::conversions::to_string_t("error_classifications")] = ModelBase::toJson(errorClassifications_); + } return val; } @@ -123,6 +127,15 @@ bool ShowReplayResultsResponse::fromJson(const web::json::value& val) setReplayingSqls(refVal); } } + if(val.has_field(utility::conversions::to_string_t("error_classifications"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("error_classifications")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setErrorClassifications(refVal); + } + } return ok; } @@ -274,6 +287,27 @@ void ShowReplayResultsResponse::unsetreplayingSqls() replayingSqlsIsSet_ = false; } +std::vector& ShowReplayResultsResponse::getErrorClassifications() +{ + return errorClassifications_; +} + +void ShowReplayResultsResponse::setErrorClassifications(const std::vector& value) +{ + errorClassifications_ = value; + errorClassificationsIsSet_ = true; +} + +bool ShowReplayResultsResponse::errorClassificationsIsSet() const +{ + return errorClassificationsIsSet_; +} + +void ShowReplayResultsResponse::unseterrorClassifications() +{ + errorClassificationsIsSet_ = false; +} + } } } diff --git a/drs/src/v5/model/ShowSupportObjectTypeResponse.cpp b/drs/src/v5/model/ShowSupportObjectTypeResponse.cpp index b5c8f1321..707344756 100644 --- a/drs/src/v5/model/ShowSupportObjectTypeResponse.cpp +++ b/drs/src/v5/model/ShowSupportObjectTypeResponse.cpp @@ -33,6 +33,8 @@ ShowSupportObjectTypeResponse::ShowSupportObjectTypeResponse() previousSelectIsSet_ = false; importLevel_ = ""; importLevelIsSet_ = false; + isImportCloumn_ = false; + isImportCloumnIsSet_ = false; } ShowSupportObjectTypeResponse::~ShowSupportObjectTypeResponse() = default; @@ -78,6 +80,9 @@ web::json::value ShowSupportObjectTypeResponse::toJson() const if(importLevelIsSet_) { val[utility::conversions::to_string_t("import_level")] = ModelBase::toJson(importLevel_); } + if(isImportCloumnIsSet_) { + val[utility::conversions::to_string_t("is_import_cloumn")] = ModelBase::toJson(isImportCloumn_); + } return val; } @@ -184,6 +189,15 @@ bool ShowSupportObjectTypeResponse::fromJson(const web::json::value& val) setImportLevel(refVal); } } + if(val.has_field(utility::conversions::to_string_t("is_import_cloumn"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("is_import_cloumn")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIsImportCloumn(refVal); + } + } return ok; } @@ -419,6 +433,27 @@ void ShowSupportObjectTypeResponse::unsetimportLevel() importLevelIsSet_ = false; } +bool ShowSupportObjectTypeResponse::isIsImportCloumn() const +{ + return isImportCloumn_; +} + +void ShowSupportObjectTypeResponse::setIsImportCloumn(bool value) +{ + isImportCloumn_ = value; + isImportCloumnIsSet_ = true; +} + +bool ShowSupportObjectTypeResponse::isImportCloumnIsSet() const +{ + return isImportCloumnIsSet_; +} + +void ShowSupportObjectTypeResponse::unsetisImportCloumn() +{ + isImportCloumnIsSet_ = false; +} + } } } diff --git a/ecs/include/huaweicloud/ecs/v2/model/FlavorExtraSpec.h b/ecs/include/huaweicloud/ecs/v2/model/FlavorExtraSpec.h index 92b9ec5ae..eb2bab43b 100644 --- a/ecs/include/huaweicloud/ecs/v2/model/FlavorExtraSpec.h +++ b/ecs/include/huaweicloud/ecs/v2/model/FlavorExtraSpec.h @@ -362,6 +362,24 @@ class HUAWEICLOUD_ECS_V2_EXPORT FlavorExtraSpec void unsetecsInstanceArchitecture(); void setEcsInstanceArchitecture(const std::string& value); + /// + /// 该规格是否支持流量镜像。 + /// + + std::string getNetworkInterfaceTrafficMirroringSupported() const; + bool networkInterfaceTrafficMirroringSupportedIsSet() const; + void unsetnetworkInterfaceTrafficMirroringSupported(); + void setNetworkInterfaceTrafficMirroringSupported(const std::string& value); + + /// + /// 该规格是否支持QingTian Enclave。 + /// + + std::string getSecurityEnclaveSupported() const; + bool securityEnclaveSupportedIsSet() const; + void unsetsecurityEnclaveSupported(); + void setSecurityEnclaveSupported(const std::string& value); + protected: std::string ecsPerformancetype_; @@ -436,6 +454,10 @@ class HUAWEICLOUD_ECS_V2_EXPORT FlavorExtraSpec bool quotaSubNetworkInterfaceMaxNumIsSet_; std::string ecsInstanceArchitecture_; bool ecsInstanceArchitectureIsSet_; + std::string networkInterfaceTrafficMirroringSupported_; + bool networkInterfaceTrafficMirroringSupportedIsSet_; + std::string securityEnclaveSupported_; + bool securityEnclaveSupportedIsSet_; }; diff --git a/ecs/src/v2/model/FlavorExtraSpec.cpp b/ecs/src/v2/model/FlavorExtraSpec.cpp index 1834bcacd..0331ec756 100644 --- a/ecs/src/v2/model/FlavorExtraSpec.cpp +++ b/ecs/src/v2/model/FlavorExtraSpec.cpp @@ -84,6 +84,10 @@ FlavorExtraSpec::FlavorExtraSpec() quotaSubNetworkInterfaceMaxNumIsSet_ = false; ecsInstanceArchitecture_ = ""; ecsInstanceArchitectureIsSet_ = false; + networkInterfaceTrafficMirroringSupported_ = ""; + networkInterfaceTrafficMirroringSupportedIsSet_ = false; + securityEnclaveSupported_ = ""; + securityEnclaveSupportedIsSet_ = false; } FlavorExtraSpec::~FlavorExtraSpec() = default; @@ -204,6 +208,12 @@ web::json::value FlavorExtraSpec::toJson() const if(ecsInstanceArchitectureIsSet_) { val[utility::conversions::to_string_t("ecs:instance_architecture")] = ModelBase::toJson(ecsInstanceArchitecture_); } + if(networkInterfaceTrafficMirroringSupportedIsSet_) { + val[utility::conversions::to_string_t("network_interface:traffic_mirroring_supported")] = ModelBase::toJson(networkInterfaceTrafficMirroringSupported_); + } + if(securityEnclaveSupportedIsSet_) { + val[utility::conversions::to_string_t("security:enclave_supported")] = ModelBase::toJson(securityEnclaveSupported_); + } return val; } @@ -535,6 +545,24 @@ bool FlavorExtraSpec::fromJson(const web::json::value& val) setEcsInstanceArchitecture(refVal); } } + if(val.has_field(utility::conversions::to_string_t("network_interface:traffic_mirroring_supported"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("network_interface:traffic_mirroring_supported")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setNetworkInterfaceTrafficMirroringSupported(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("security:enclave_supported"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("security:enclave_supported")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSecurityEnclaveSupported(refVal); + } + } return ok; } @@ -1295,6 +1323,48 @@ void FlavorExtraSpec::unsetecsInstanceArchitecture() ecsInstanceArchitectureIsSet_ = false; } +std::string FlavorExtraSpec::getNetworkInterfaceTrafficMirroringSupported() const +{ + return networkInterfaceTrafficMirroringSupported_; +} + +void FlavorExtraSpec::setNetworkInterfaceTrafficMirroringSupported(const std::string& value) +{ + networkInterfaceTrafficMirroringSupported_ = value; + networkInterfaceTrafficMirroringSupportedIsSet_ = true; +} + +bool FlavorExtraSpec::networkInterfaceTrafficMirroringSupportedIsSet() const +{ + return networkInterfaceTrafficMirroringSupportedIsSet_; +} + +void FlavorExtraSpec::unsetnetworkInterfaceTrafficMirroringSupported() +{ + networkInterfaceTrafficMirroringSupportedIsSet_ = false; +} + +std::string FlavorExtraSpec::getSecurityEnclaveSupported() const +{ + return securityEnclaveSupported_; +} + +void FlavorExtraSpec::setSecurityEnclaveSupported(const std::string& value) +{ + securityEnclaveSupported_ = value; + securityEnclaveSupportedIsSet_ = true; +} + +bool FlavorExtraSpec::securityEnclaveSupportedIsSet() const +{ + return securityEnclaveSupportedIsSet_; +} + +void FlavorExtraSpec::unsetsecurityEnclaveSupported() +{ + securityEnclaveSupportedIsSet_ = false; +} + } } } diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/GaussDBClient.h b/gaussdb/include/huaweicloud/gaussdb/v3/GaussDBClient.h index c1d780821..35a329b89 100644 --- a/gaussdb/include/huaweicloud/gaussdb/v3/GaussDBClient.h +++ b/gaussdb/include/huaweicloud/gaussdb/v3/GaussDBClient.h @@ -354,12 +354,34 @@ #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include @@ -368,6 +390,17 @@ #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include @@ -375,6 +408,18 @@ #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include @@ -393,11 +438,31 @@ #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include @@ -405,6 +470,17 @@ #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include @@ -1533,6 +1609,22 @@ class HUAWEICLOUD_GAUSSDB_V3_EXPORT GaussDBClient : public Client UpgradeProxyVersionRequest &request ); + // 数据同步库配置校验 + // + // 数据同步库配置校验。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr checkClickHouseDataBaseConfig( + CheckClickHouseDataBaseConfigRequest &request + ); + // 数据同步表配置校验 + // + // 数据同步表配置校验。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr checkClickHouseTableConfig( + CheckClickHouseTableConfigRequest &request + ); // HTAP数据同步库配置校验 // // HTAP数据同步库配置校验。 @@ -1557,6 +1649,30 @@ class HUAWEICLOUD_GAUSSDB_V3_EXPORT GaussDBClient : public Client std::shared_ptr checkTableConfig( CheckTableConfigRequest &request ); + // 创建数据同步 + // + // 创建数据同步。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr createClickHouseDataBaseReplication( + CreateClickHouseDataBaseReplicationRequest &request + ); + // 创建数据库账号 + // + // 创建数据库账号。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr createClickHouseDatabaseUser( + CreateClickHouseDatabaseUserRequest &request + ); + // 创建实例 + // + // 创建实例。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr createClickHouseInstance( + CreateClickHouseInstanceRequest &request + ); // 创建StarRocks数据同步 // // 创建StarRocks数据同步。 @@ -1581,6 +1697,46 @@ class HUAWEICLOUD_GAUSSDB_V3_EXPORT GaussDBClient : public Client std::shared_ptr createStarrocksInstance( CreateStarrocksInstanceRequest &request ); + // 停止修改数据同步 + // + // 停止修改数据同步。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr deleteClickHouseDataBaseConfig( + DeleteClickHouseDataBaseConfigRequest &request + ); + // 删除数据同步 + // + // 删除数据同步。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr deleteClickHouseDataBaseReplication( + DeleteClickHouseDataBaseReplicationRequest &request + ); + // 删除数据库账户 + // + // 删除数据库账户。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr deleteClickHouseDatabaseUser( + DeleteClickHouseDatabaseUserRequest &request + ); + // 删除实例 + // + // 删除实例。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr deleteClickHouseInstance( + DeleteClickHouseInstanceRequest &request + ); + // 批量解除LTS日志配置 + // + // 批量解除LTS日志配置。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr deleteClickHouseLtsConfig( + DeleteClickHouseLtsConfigRequest &request + ); // 删除StarRocks数据同步 // // 删除StarRocks数据同步。 @@ -1605,6 +1761,54 @@ class HUAWEICLOUD_GAUSSDB_V3_EXPORT GaussDBClient : public Client std::shared_ptr deleteStarrocksInstance( DeleteStarrocksInstanceRequest &request ); + // 查询数据库列表 + // + // 查询数据库列表。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr listClickHouseDataBase( + ListClickHouseDataBaseRequest &request + ); + // 查询数据同步的库参数配置 + // + // 查询数据同步的库参数配置。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr listClickHouseDataBaseParameter( + ListClickHouseDataBaseParameterRequest &request + ); + // 查询数据同步信息 + // + // 查询数据同步信息。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr listClickHouseDataBaseReplication( + ListClickHouseDataBaseReplicationRequest &request + ); + // 查看数据同步配置 + // + // 查看数据同步配置。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr listClickHouseDataBaseReplicationConfig( + ListClickHouseDataBaseReplicationConfigRequest &request + ); + // 查询实例详情 + // + // 查询实例详情。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr listClickHouseInstance( + ListClickHouseInstanceRequest &request + ); + // 查询错误日志、慢日志节点信息 + // + // 查询错误日志、慢日志节点信息。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr listClickHouseInstanceNode( + ListClickHouseInstanceNodeRequest &request + ); // HTAP引擎资源查询 // // HTAP引擎资源查询。 @@ -1677,6 +1881,38 @@ class HUAWEICLOUD_GAUSSDB_V3_EXPORT GaussDBClient : public Client std::shared_ptr listStarrocksInstanceInfo( ListStarrocksInstanceInfoRequest &request ); + // 暂停StarRocks数据同步 + // + // 暂停StarRocks数据同步。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr pauseStarRocksDataReplication( + PauseStarRocksDataReplicationRequest &request + ); + // 重启实例 + // + // 重启实例。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr rebootClickHouseInstance( + RebootClickHouseInstanceRequest &request + ); + // 实例规格变更 + // + // 实例规格变更。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr resizeClickHouseFlavor( + ResizeClickHouseFlavorRequest &request + ); + // 实例磁盘扩容 + // + // 实例磁盘扩容。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr resizeClickHouseInstance( + ResizeClickHouseInstanceRequest &request + ); // 重启StarRocks实例 // // 重启StarRocks实例。 @@ -1693,6 +1929,46 @@ class HUAWEICLOUD_GAUSSDB_V3_EXPORT GaussDBClient : public Client std::shared_ptr restartStarrocksNode( RestartStarrocksNodeRequest &request ); + // 恢复StarRocks数据同步 + // + // 恢复StarRocks数据同步。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr resumeStarRocksDataReplication( + ResumeStarRocksDataReplicationRequest &request + ); + // 查询数据库账户 + // + // 查询数据库账户。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr showClickHouseDatabaseUser( + ShowClickHouseDatabaseUserRequest &request + ); + // 查询实例LTS日志配置列表 + // + // 查询实例LTS日志配置列表。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr showClickHouseLtsConfig( + ShowClickHouseLtsConfigRequest &request + ); + // 查询慢日志 + // + // 获取内核慢日志信息。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr showClickHouseSlowLogDetail( + ShowClickHouseSlowLogDetailRequest &request + ); + // 查询慢日志脱敏状态 + // + // 查询慢日志脱敏状态。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr showClickHouseSlowLogSensitiveStatus( + ShowClickHouseSlowLogSensitiveStatusRequest &request + ); // 查询数据库账户 // // 查询StarRocks数据库账户。 @@ -1701,6 +1977,46 @@ class HUAWEICLOUD_GAUSSDB_V3_EXPORT GaussDBClient : public Client std::shared_ptr showStarRocksDatabaseUser( ShowStarRocksDatabaseUserRequest &request ); + // 修改数据同步 + // + // 修改数据同步。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr updateClickHouseDataBaseConfig( + UpdateClickHouseDataBaseConfigRequest &request + ); + // 修改数据库账号密码 + // + // 修改数据库账号密码。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr updateClickHouseDatabaseUserPassword( + UpdateClickHouseDatabaseUserPasswordRequest &request + ); + // 修改数据库账号权限 + // + // 修改数据库账号权限。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr updateClickHouseDatabaseUserPermission( + UpdateClickHouseDatabaseUserPermissionRequest &request + ); + // 批量创建LTS日志配置 + // + // 批量创建LTS日志配置。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr updateClickHouseLtsConfig( + UpdateClickHouseLtsConfigRequest &request + ); + // 修改慢日志脱敏状态 + // + // 修改慢日志脱敏状态。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr updateClickHouseSlowLogSensitiveStatus( + UpdateClickHouseSlowLogSensitiveStatusRequest &request + ); // 修改数据库账号密码 // // 修改StarRocks数据库账号密码。 diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/GaussDBMeta.h b/gaussdb/include/huaweicloud/gaussdb/v3/GaussDBMeta.h index bff0002c5..8b360a5f7 100644 --- a/gaussdb/include/huaweicloud/gaussdb/v3/GaussDBMeta.h +++ b/gaussdb/include/huaweicloud/gaussdb/v3/GaussDBMeta.h @@ -148,15 +148,31 @@ class HUAWEICLOUD_GAUSSDB_V3_EXPORT GaussDBMeta { static HttpRequestDef genRequestDefForUpdateTransactionSplitStatus(); static HttpRequestDef genRequestDefForUpgradeGaussMySqlInstanceDatabase(); static HttpRequestDef genRequestDefForUpgradeProxyVersion(); + static HttpRequestDef genRequestDefForCheckClickHouseDataBaseConfig(); + static HttpRequestDef genRequestDefForCheckClickHouseTableConfig(); static HttpRequestDef genRequestDefForCheckDataBaseConfig(); static HttpRequestDef genRequestDefForCheckStarRocksResource(); static HttpRequestDef genRequestDefForCheckTableConfig(); + static HttpRequestDef genRequestDefForCreateClickHouseDataBaseReplication(); + static HttpRequestDef genRequestDefForCreateClickHouseDatabaseUser(); + static HttpRequestDef genRequestDefForCreateClickHouseInstance(); static HttpRequestDef genRequestDefForCreateStarRocksDataReplication(); static HttpRequestDef genRequestDefForCreateStarRocksDatabaseUser(); static HttpRequestDef genRequestDefForCreateStarrocksInstance(); + static HttpRequestDef genRequestDefForDeleteClickHouseDataBaseConfig(); + static HttpRequestDef genRequestDefForDeleteClickHouseDataBaseReplication(); + static HttpRequestDef genRequestDefForDeleteClickHouseDatabaseUser(); + static HttpRequestDef genRequestDefForDeleteClickHouseInstance(); + static HttpRequestDef genRequestDefForDeleteClickHouseLtsConfig(); static HttpRequestDef genRequestDefForDeleteStarRocksDataReplication(); static HttpRequestDef genRequestDefForDeleteStarRocksDatabaseUser(); static HttpRequestDef genRequestDefForDeleteStarrocksInstance(); + static HttpRequestDef genRequestDefForListClickHouseDataBase(); + static HttpRequestDef genRequestDefForListClickHouseDataBaseParameter(); + static HttpRequestDef genRequestDefForListClickHouseDataBaseReplication(); + static HttpRequestDef genRequestDefForListClickHouseDataBaseReplicationConfig(); + static HttpRequestDef genRequestDefForListClickHouseInstance(); + static HttpRequestDef genRequestDefForListClickHouseInstanceNode(); static HttpRequestDef genRequestDefForListHtapDataStore(); static HttpRequestDef genRequestDefForListHtapFlavor(); static HttpRequestDef genRequestDefForListHtapInstanceInfo(); @@ -166,9 +182,23 @@ class HUAWEICLOUD_GAUSSDB_V3_EXPORT GaussDBMeta { static HttpRequestDef genRequestDefForListStarRocksDataReplications(); static HttpRequestDef genRequestDefForListStarRocksDbParameters(); static HttpRequestDef genRequestDefForListStarrocksInstanceInfo(); + static HttpRequestDef genRequestDefForPauseStarRocksDataReplication(); + static HttpRequestDef genRequestDefForRebootClickHouseInstance(); + static HttpRequestDef genRequestDefForResizeClickHouseFlavor(); + static HttpRequestDef genRequestDefForResizeClickHouseInstance(); static HttpRequestDef genRequestDefForRestartStarrocksInstance(); static HttpRequestDef genRequestDefForRestartStarrocksNode(); + static HttpRequestDef genRequestDefForResumeStarRocksDataReplication(); + static HttpRequestDef genRequestDefForShowClickHouseDatabaseUser(); + static HttpRequestDef genRequestDefForShowClickHouseLtsConfig(); + static HttpRequestDef genRequestDefForShowClickHouseSlowLogDetail(); + static HttpRequestDef genRequestDefForShowClickHouseSlowLogSensitiveStatus(); static HttpRequestDef genRequestDefForShowStarRocksDatabaseUser(); + static HttpRequestDef genRequestDefForUpdateClickHouseDataBaseConfig(); + static HttpRequestDef genRequestDefForUpdateClickHouseDatabaseUserPassword(); + static HttpRequestDef genRequestDefForUpdateClickHouseDatabaseUserPermission(); + static HttpRequestDef genRequestDefForUpdateClickHouseLtsConfig(); + static HttpRequestDef genRequestDefForUpdateClickHouseSlowLogSensitiveStatus(); static HttpRequestDef genRequestDefForUpdateStarRocksDatabaseUserPassword(); static HttpRequestDef genRequestDefForUpdateStarRocksDatabaseUserPermission(); static HttpRequestDef genRequestDefForDeleteSqlFilterRule(); diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ChDatabaseConfigCheckResult.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ChDatabaseConfigCheckResult.h new file mode 100644 index 000000000..42ee22e31 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ChDatabaseConfigCheckResult.h @@ -0,0 +1,86 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChDatabaseConfigCheckResult_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChDatabaseConfigCheckResult_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 库配置校验检查结果。 +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ChDatabaseConfigCheckResult + : public ModelBase +{ +public: + ChDatabaseConfigCheckResult(); + virtual ~ChDatabaseConfigCheckResult(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ChDatabaseConfigCheckResult members + + /// + /// 库同步配置参数名。 + /// + + std::string getParamName() const; + bool paramNameIsSet() const; + void unsetparamName(); + void setParamName(const std::string& value); + + /// + /// 库同步配置参数值。 + /// + + std::string getValue() const; + bool valueIsSet() const; + void unsetvalue(); + void setValue(const std::string& value); + + /// + /// 校验结果。 取值范围: - success:成功 - fail:失败 + /// + + std::string getCheckResult() const; + bool checkResultIsSet() const; + void unsetcheckResult(); + void setCheckResult(const std::string& value); + + +protected: + std::string paramName_; + bool paramNameIsSet_; + std::string value_; + bool valueIsSet_; + std::string checkResult_; + bool checkResultIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChDatabaseConfigCheckResult_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ChDatabaseConfigResponse.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ChDatabaseConfigResponse.h new file mode 100644 index 000000000..ab0674a7a --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ChDatabaseConfigResponse.h @@ -0,0 +1,77 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChDatabaseConfigResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChDatabaseConfigResponse_H_ + + +#include + +#include +#include +#include + +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 库配置校验成功返回值。 +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ChDatabaseConfigResponse + : public ModelBase +{ +public: + ChDatabaseConfigResponse(); + virtual ~ChDatabaseConfigResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ChDatabaseConfigResponse members + + /// + /// 源数据库名称。 + /// + + std::string getDatabaseName() const; + bool databaseNameIsSet() const; + void unsetdatabaseName(); + void setDatabaseName(const std::string& value); + + /// + /// 源数据库配置检查结果。 + /// + + std::vector& getDbConfigCheckResults(); + bool dbConfigCheckResultsIsSet() const; + void unsetdbConfigCheckResults(); + void setDbConfigCheckResults(const std::vector& value); + + +protected: + std::string databaseName_; + bool databaseNameIsSet_; + std::vector dbConfigCheckResults_; + bool dbConfigCheckResultsIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChDatabaseConfigResponse_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ChDatabaseConfigsInfo.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ChDatabaseConfigsInfo.h new file mode 100644 index 000000000..fc2a2bf55 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ChDatabaseConfigsInfo.h @@ -0,0 +1,75 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChDatabaseConfigsInfo_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChDatabaseConfigsInfo_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 库配置列表。 +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ChDatabaseConfigsInfo + : public ModelBase +{ +public: + ChDatabaseConfigsInfo(); + virtual ~ChDatabaseConfigsInfo(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ChDatabaseConfigsInfo members + + /// + /// 库同步配置参数名。可通过“查询ClickHouse数据同步的库参数配置”接口查询。 + /// + + std::string getParamName() const; + bool paramNameIsSet() const; + void unsetparamName(); + void setParamName(const std::string& value); + + /// + /// 库同步配置参数值。 + /// + + std::string getValue() const; + bool valueIsSet() const; + void unsetvalue(); + void setValue(const std::string& value); + + +protected: + std::string paramName_; + bool paramNameIsSet_; + std::string value_; + bool valueIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChDatabaseConfigsInfo_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ChDatabaseParameterInfo.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ChDatabaseParameterInfo.h new file mode 100644 index 000000000..e6e73bfe4 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ChDatabaseParameterInfo.h @@ -0,0 +1,108 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChDatabaseParameterInfo_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChDatabaseParameterInfo_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 数据库配置参数。 +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ChDatabaseParameterInfo + : public ModelBase +{ +public: + ChDatabaseParameterInfo(); + virtual ~ChDatabaseParameterInfo(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ChDatabaseParameterInfo members + + /// + /// 参数名称。 + /// + + std::string getParamName() const; + bool paramNameIsSet() const; + void unsetparamName(); + void setParamName(const std::string& value); + + /// + /// 参数类型。 + /// + + std::string getDataType() const; + bool dataTypeIsSet() const; + void unsetdataType(); + void setDataType(const std::string& value); + + /// + /// 参数默认值。 + /// + + std::string getDefaultValue() const; + bool defaultValueIsSet() const; + void unsetdefaultValue(); + void setDefaultValue(const std::string& value); + + /// + /// 参数取值范围。 + /// + + std::string getValueRange() const; + bool valueRangeIsSet() const; + void unsetvalueRange(); + void setValueRange(const std::string& value); + + /// + /// 参数描述。 + /// + + std::string getDescription() const; + bool descriptionIsSet() const; + void unsetdescription(); + void setDescription(const std::string& value); + + +protected: + std::string paramName_; + bool paramNameIsSet_; + std::string dataType_; + bool dataTypeIsSet_; + std::string defaultValue_; + bool defaultValueIsSet_; + std::string valueRange_; + bool valueRangeIsSet_; + std::string description_; + bool descriptionIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChDatabaseParameterInfo_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ChDatabaseReplicationInfo.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ChDatabaseReplicationInfo.h new file mode 100644 index 000000000..832c04d24 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ChDatabaseReplicationInfo.h @@ -0,0 +1,119 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChDatabaseReplicationInfo_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChDatabaseReplicationInfo_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// ClickHouse同步信息。 +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ChDatabaseReplicationInfo + : public ModelBase +{ +public: + ChDatabaseReplicationInfo(); + virtual ~ChDatabaseReplicationInfo(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ChDatabaseReplicationInfo members + + /// + /// 源数据库。 + /// + + std::string getSourceDatabase() const; + bool sourceDatabaseIsSet() const; + void unsetsourceDatabase(); + void setSourceDatabase(const std::string& value); + + /// + /// 目标数据库。 + /// + + std::string getTargetDatabase() const; + bool targetDatabaseIsSet() const; + void unsettargetDatabase(); + void setTargetDatabase(const std::string& value); + + /// + /// 当前状态。 取值范围: - normal:正常 - abnormal:异常 + /// + + std::string getStatus() const; + bool statusIsSet() const; + void unsetstatus(); + void setStatus(const std::string& value); + + /// + /// 同步阶段。 取值范围: - wait:等待同步 - failed:同步失败 - incremental:增量同步 - full:全量同步 - other:其他 + /// + + std::string getStage() const; + bool stageIsSet() const; + void unsetstage(); + void setStage(const std::string& value); + + /// + /// 进度百分比。 + /// + + std::string getPercentage() const; + bool percentageIsSet() const; + void unsetpercentage(); + void setPercentage(const std::string& value); + + /// + /// 追赶阶段。 取值范围: - wait:等待同步 - failed:同步失败 - incremental:增量同步 - full:全量同步 - other:其他 + /// + + std::string getCatchupStage() const; + bool catchupStageIsSet() const; + void unsetcatchupStage(); + void setCatchupStage(const std::string& value); + + +protected: + std::string sourceDatabase_; + bool sourceDatabaseIsSet_; + std::string targetDatabase_; + bool targetDatabaseIsSet_; + std::string status_; + bool statusIsSet_; + std::string stage_; + bool stageIsSet_; + std::string percentage_; + bool percentageIsSet_; + std::string catchupStage_; + bool catchupStageIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChDatabaseReplicationInfo_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ChDatabaseTableConfigCheckResult.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ChDatabaseTableConfigCheckResult.h new file mode 100644 index 000000000..c311a8bd9 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ChDatabaseTableConfigCheckResult.h @@ -0,0 +1,86 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChDatabaseTableConfigCheckResult_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChDatabaseTableConfigCheckResult_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 表配置校验结果。 +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ChDatabaseTableConfigCheckResult + : public ModelBase +{ +public: + ChDatabaseTableConfigCheckResult(); + virtual ~ChDatabaseTableConfigCheckResult(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ChDatabaseTableConfigCheckResult members + + /// + /// 数据库表名。 + /// + + std::string getTableName() const; + bool tableNameIsSet() const; + void unsettableName(); + void setTableName(const std::string& value); + + /// + /// 表配置项。 允许输入的列操作有:PARTITION BY, COLUMNS, ORDER BY, SAMPLE BY, PRIMARY KEY, TTL + /// + + std::string getTableConfig() const; + bool tableConfigIsSet() const; + void unsettableConfig(); + void setTableConfig(const std::string& value); + + /// + /// 校验结果。 + /// + + std::string getCheckResult() const; + bool checkResultIsSet() const; + void unsetcheckResult(); + void setCheckResult(const std::string& value); + + +protected: + std::string tableName_; + bool tableNameIsSet_; + std::string tableConfig_; + bool tableConfigIsSet_; + std::string checkResult_; + bool checkResultIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChDatabaseTableConfigCheckResult_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ChDatabaseTableReplConfigInfo.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ChDatabaseTableReplConfigInfo.h new file mode 100644 index 000000000..381f9a47a --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ChDatabaseTableReplConfigInfo.h @@ -0,0 +1,76 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChDatabaseTableReplConfigInfo_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChDatabaseTableReplConfigInfo_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 表配置信息。 +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ChDatabaseTableReplConfigInfo + : public ModelBase +{ +public: + ChDatabaseTableReplConfigInfo(); + virtual ~ChDatabaseTableReplConfigInfo(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ChDatabaseTableReplConfigInfo members + + /// + /// 表同步类型。 取值范围: - white_list:白名单,此时表范围不能为空。 - black_list:黑名单,此时表范围为空则选择所有表。 + /// + + std::string getReplType() const; + bool replTypeIsSet() const; + void unsetreplType(); + void setReplType(const std::string& value); + + /// + /// 白名单或黑名单的表范围。 + /// + + std::vector& getTables(); + bool tablesIsSet() const; + void unsettables(); + void setTables(const std::vector& value); + + +protected: + std::string replType_; + bool replTypeIsSet_; + std::vector tables_; + bool tablesIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChDatabaseTableReplConfigInfo_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ChDatabaseTablesConfigsInfo.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ChDatabaseTablesConfigsInfo.h new file mode 100644 index 000000000..b495cf6cc --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ChDatabaseTablesConfigsInfo.h @@ -0,0 +1,75 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChDatabaseTablesConfigsInfo_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChDatabaseTablesConfigsInfo_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 表配置。 +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ChDatabaseTablesConfigsInfo + : public ModelBase +{ +public: + ChDatabaseTablesConfigsInfo(); + virtual ~ChDatabaseTablesConfigsInfo(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ChDatabaseTablesConfigsInfo members + + /// + /// 数据库表名。 + /// + + std::string getTableName() const; + bool tableNameIsSet() const; + void unsettableName(); + void setTableName(const std::string& value); + + /// + /// 表配置值。 允许输入的列操作有:PARTITION BY, COLUMNS, ORDER BY, SAMPLE BY, PRIMARY KEY, TTL + /// + + std::string getTableConfig() const; + bool tableConfigIsSet() const; + void unsettableConfig(); + void setTableConfig(const std::string& value); + + +protected: + std::string tableName_; + bool tableNameIsSet_; + std::string tableConfig_; + bool tableConfigIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChDatabaseTablesConfigsInfo_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ChEnlargeVolumeRequestBody.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ChEnlargeVolumeRequestBody.h new file mode 100644 index 000000000..e223ebf5d --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ChEnlargeVolumeRequestBody.h @@ -0,0 +1,63 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChEnlargeVolumeRequestBody_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChEnlargeVolumeRequestBody_H_ + + +#include + +#include +#include +#include + + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 磁盘扩容请求体。 +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ChEnlargeVolumeRequestBody + : public ModelBase +{ +public: + ChEnlargeVolumeRequestBody(); + virtual ~ChEnlargeVolumeRequestBody(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ChEnlargeVolumeRequestBody members + + /// + /// 磁盘容量。取值范围:50GB~32000GB。 + /// + + int32_t getSizeInGb() const; + bool sizeInGbIsSet() const; + void unsetsizeInGb(); + void setSizeInGb(int32_t value); + + +protected: + int32_t sizeInGb_; + bool sizeInGbIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChEnlargeVolumeRequestBody_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ChInstanceLtsConfigs.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ChInstanceLtsConfigs.h new file mode 100644 index 000000000..f4c6356a4 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ChInstanceLtsConfigs.h @@ -0,0 +1,77 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChInstanceLtsConfigs_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChInstanceLtsConfigs_H_ + + +#include + +#include +#include +#include + +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ChInstanceLtsConfigs + : public ModelBase +{ +public: + ChInstanceLtsConfigs(); + virtual ~ChInstanceLtsConfigs(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ChInstanceLtsConfigs members + + /// + /// 实例LTS配置信息。 + /// + + std::vector& getLtsConfigs(); + bool ltsConfigsIsSet() const; + void unsetltsConfigs(); + void setLtsConfigs(const std::vector& value); + + /// + /// + /// + + ChInstanceLtsConfigs_instance getInstance() const; + bool instanceIsSet() const; + void unsetinstance(); + void setInstance(const ChInstanceLtsConfigs_instance& value); + + +protected: + std::vector ltsConfigs_; + bool ltsConfigsIsSet_; + ChInstanceLtsConfigs_instance instance_; + bool instanceIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChInstanceLtsConfigs_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ChInstanceLtsConfigs_instance.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ChInstanceLtsConfigs_instance.h new file mode 100644 index 000000000..3ff753029 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ChInstanceLtsConfigs_instance.h @@ -0,0 +1,141 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChInstanceLtsConfigs_instance_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChInstanceLtsConfigs_instance_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// htap实例信息。 +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ChInstanceLtsConfigs_instance + : public ModelBase +{ +public: + ChInstanceLtsConfigs_instance(); + virtual ~ChInstanceLtsConfigs_instance(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ChInstanceLtsConfigs_instance members + + /// + /// ClickHouse实例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 getMode() const; + bool modeIsSet() const; + void unsetmode(); + void setMode(const std::string& value); + + /// + /// 引擎类型。 + /// + + std::string getEngineName() const; + bool engineNameIsSet() const; + void unsetengineName(); + void setEngineName(const std::string& value); + + /// + /// 引擎版本。 + /// + + std::string getEngineVersion() const; + bool engineVersionIsSet() const; + void unsetengineVersion(); + void setEngineVersion(const std::string& value); + + /// + /// 实例状态。 + /// + + std::string getStatus() const; + bool statusIsSet() const; + void unsetstatus(); + void setStatus(const std::string& value); + + /// + /// 企业project id。 + /// + + std::string getEnterpriseProjectId() const; + bool enterpriseProjectIdIsSet() const; + void unsetenterpriseProjectId(); + void setEnterpriseProjectId(const std::string& value); + + /// + /// 企业project名。 + /// + + std::string getEnterpriseProjectName() const; + bool enterpriseProjectNameIsSet() const; + void unsetenterpriseProjectName(); + void setEnterpriseProjectName(const std::string& value); + + +protected: + std::string id_; + bool idIsSet_; + std::string name_; + bool nameIsSet_; + std::string mode_; + bool modeIsSet_; + std::string engineName_; + bool engineNameIsSet_; + std::string engineVersion_; + bool engineVersionIsSet_; + std::string status_; + bool statusIsSet_; + std::string enterpriseProjectId_; + bool enterpriseProjectIdIsSet_; + std::string enterpriseProjectName_; + bool enterpriseProjectNameIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChInstanceLtsConfigs_instance_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ChInstancesInfoRsponse_instance.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ChInstancesInfoRsponse_instance.h new file mode 100644 index 000000000..5fab89e96 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ChInstancesInfoRsponse_instance.h @@ -0,0 +1,489 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChInstancesInfoRsponse_instance_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChInstancesInfoRsponse_instance_H_ + + +#include + +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 实例信息。 +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ChInstancesInfoRsponse_instance + : public ModelBase +{ +public: + ChInstancesInfoRsponse_instance(); + virtual ~ChInstancesInfoRsponse_instance(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ChInstancesInfoRsponse_instance 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); + + /// + /// 租户在某一Region下的project ID。 + /// + + std::string getProjectId() const; + bool projectIdIsSet() const; + void unsetprojectId(); + void setProjectId(const std::string& value); + + /// + /// 公网访问IP。 + /// + + std::string getPublicIp() const; + bool publicIpIsSet() const; + void unsetpublicIp(); + void setPublicIp(const std::string& value); + + /// + /// 是否可公网访问。 + /// + + bool isCanEnablePublicAccess() const; + bool canEnablePublicAccessIsSet() const; + void unsetcanEnablePublicAccess(); + void setCanEnablePublicAccess(bool value); + + /// + /// 备份节点ID。 + /// + + std::string getCurrentBackupNodeId() const; + bool currentBackupNodeIdIsSet() const; + void unsetcurrentBackupNodeId(); + void setCurrentBackupNodeId(const std::string& value); + + /// + /// 部署模式。 取值范围: - Single:单机 - Ha:主备 + /// + + std::string getClusterMode() const; + bool clusterModeIsSet() const; + void unsetclusterMode(); + void setClusterMode(const std::string& value); + + /// + /// 实例状态。 + /// + + std::string getStatus() const; + bool statusIsSet() const; + void unsetstatus(); + void setStatus(const std::string& value); + + /// + /// 是否冻结。 取值范围: - 0:不冻结 - 1:冻结 + /// + + int32_t getIsFrozen() const; + bool isFrozenIsSet() const; + void unsetisFrozen(); + void setIsFrozen(int32_t value); + + /// + /// 冻结时间。 + /// + + std::string getFrozenTime() const; + bool frozenTimeIsSet() const; + void unsetfrozenTime(); + void setFrozenTime(const std::string& value); + + /// + /// 默认用户。 + /// + + std::string getDbUser() const; + bool dbUserIsSet() const; + void unsetdbUser(); + void setDbUser(const std::string& value); + + /// + /// 备份周期。 + /// + + std::string getBakPeriod() const; + bool bakPeriodIsSet() const; + void unsetbakPeriod(); + void setBakPeriod(const std::string& value); + + /// + /// 备份保存天数。 + /// + + int32_t getBakKeepDay() const; + bool bakKeepDayIsSet() const; + void unsetbakKeepDay(); + void setBakKeepDay(int32_t value); + + /// + /// 备份预计开始时间。 + /// + + std::string getBakExpectedStartTime() const; + bool bakExpectedStartTimeIsSet() const; + void unsetbakExpectedStartTime(); + void setBakExpectedStartTime(const std::string& value); + + /// + /// 数据库版本ID。 + /// + + std::string getDatastoreVersionId() const; + bool datastoreVersionIdIsSet() const; + void unsetdatastoreVersionId(); + void setDatastoreVersionId(const std::string& value); + + /// + /// 数据库版本。 + /// + + std::string getDatastoreVersion() const; + bool datastoreVersionIsSet() const; + void unsetdatastoreVersion(); + void setDatastoreVersion(const std::string& value); + + /// + /// 数据库引擎。 + /// + + std::string getDatastoreType() const; + bool datastoreTypeIsSet() const; + void unsetdatastoreType(); + void setDatastoreType(const std::string& value); + + /// + /// 实例创建时间。 + /// + + int64_t getCreateAt() const; + bool createAtIsSet() const; + void unsetcreateAt(); + void setCreateAt(int64_t value); + + /// + /// 实例更新时间。 + /// + + int64_t getUpdateAt() const; + bool updateAtIsSet() const; + void unsetupdateAt(); + void setUpdateAt(int64_t value); + + /// + /// 实例删除时间。 + /// + + int64_t getDeleteAt() const; + bool deleteAtIsSet() const; + void unsetdeleteAt(); + void setDeleteAt(int64_t value); + + /// + /// 数据库端口号。取值范围0~65535。 + /// + + std::string getDbPort() const; + bool dbPortIsSet() const; + void unsetdbPort(); + void setDbPort(const std::string& value); + + /// + /// + /// + + ChInstancesInfoRsponse_instance_param_group getParamGroup() const; + bool paramGroupIsSet() const; + void unsetparamGroup(); + void setParamGroup(const ChInstancesInfoRsponse_instance_param_group& value); + + /// + /// 实例动作。 + /// + + std::vector& getActions(); + bool actionsIsSet() const; + void unsetactions(); + void setActions(const std::vector& value); + + /// + /// 实例创建失败错误码。 + /// + + std::string getCreateFailErrorCode() const; + bool createFailErrorCodeIsSet() const; + void unsetcreateFailErrorCode(); + void setCreateFailErrorCode(const std::string& value); + + /// + /// 实例分组。 + /// + + std::vector& getGroups(); + bool groupsIsSet() const; + void unsetgroups(); + void setGroups(const std::vector& value); + + /// + /// + /// + + ChInstancesInfoRsponse_instance_ops_window getOpsWindow() const; + bool opsWindowIsSet() const; + void unsetopsWindow(); + void setOpsWindow(const ChInstancesInfoRsponse_instance_ops_window& value); + + /// + /// + /// + + CreateChInstanceInfo_tags_info getTagsInfo() const; + bool tagsInfoIsSet() const; + void unsettagsInfo(); + void setTagsInfo(const CreateChInstanceInfo_tags_info& value); + + /// + /// 时区。 + /// + + std::string getTimeZone() const; + bool timeZoneIsSet() const; + void unsettimeZone(); + void setTimeZone(const std::string& value); + + /// + /// 备份使用空间。 + /// + + std::string getBackupUsedSpace() const; + bool backupUsedSpaceIsSet() const; + void unsetbackupUsedSpace(); + void setBackupUsedSpace(const std::string& value); + + /// + /// 可用区模式。 取值范围: - single:单可用区 - double:多可用区- + /// + + std::string getAzMode() const; + bool azModeIsSet() const; + void unsetazMode(); + void setAzMode(const std::string& value); + + /// + /// 主可用区。 + /// + + std::string getMasterAzCode() const; + bool masterAzCodeIsSet() const; + void unsetmasterAzCode(); + void setMasterAzCode(const std::string& value); + + /// + /// 企业项目ID。 + /// + + std::string getEnterpriseProjectId() const; + bool enterpriseProjectIdIsSet() const; + void unsetenterpriseProjectId(); + void setEnterpriseProjectId(const std::string& value); + + /// + /// + /// + + ChInstancesInfoRsponse_instance_port_info getPortInfo() const; + bool portInfoIsSet() const; + void unsetportInfo(); + void setPortInfo(const ChInstancesInfoRsponse_instance_port_info& value); + + /// + /// 磁盘规格码。 + /// + + std::string getVolumeCode() const; + bool volumeCodeIsSet() const; + void unsetvolumeCode(); + void setVolumeCode(const std::string& value); + + /// + /// 是否支持副本。 + /// + + bool isSupportDataReplication() const; + bool supportDataReplicationIsSet() const; + void unsetsupportDataReplication(); + void setSupportDataReplication(bool value); + + /// + /// 是否有数据库新版本。 + /// + + bool isNewVersionAvailable() const; + bool newVersionAvailableIsSet() const; + void unsetnewVersionAvailable(); + void setNewVersionAvailable(bool value); + + /// + /// SSL开关。 + /// + + bool isSslOption() const; + bool sslOptionIsSet() const; + void unsetsslOption(); + void setSslOption(bool value); + + /// + /// 专属资源池ID。 + /// + + std::string getDedicatedResourceId() const; + bool dedicatedResourceIdIsSet() const; + void unsetdedicatedResourceId(); + void setDedicatedResourceId(const std::string& value); + + /// + /// 支付模式。 取值范围: - 0:按需计费 - 1:包周期- + /// + + std::string getPayModel() const; + bool payModelIsSet() const; + void unsetpayModel(); + void setPayModel(const std::string& value); + + +protected: + std::string id_; + bool idIsSet_; + std::string name_; + bool nameIsSet_; + std::string projectId_; + bool projectIdIsSet_; + std::string publicIp_; + bool publicIpIsSet_; + bool canEnablePublicAccess_; + bool canEnablePublicAccessIsSet_; + std::string currentBackupNodeId_; + bool currentBackupNodeIdIsSet_; + std::string clusterMode_; + bool clusterModeIsSet_; + std::string status_; + bool statusIsSet_; + int32_t isFrozen_; + bool isFrozenIsSet_; + std::string frozenTime_; + bool frozenTimeIsSet_; + std::string dbUser_; + bool dbUserIsSet_; + std::string bakPeriod_; + bool bakPeriodIsSet_; + int32_t bakKeepDay_; + bool bakKeepDayIsSet_; + std::string bakExpectedStartTime_; + bool bakExpectedStartTimeIsSet_; + std::string datastoreVersionId_; + bool datastoreVersionIdIsSet_; + std::string datastoreVersion_; + bool datastoreVersionIsSet_; + std::string datastoreType_; + bool datastoreTypeIsSet_; + int64_t createAt_; + bool createAtIsSet_; + int64_t updateAt_; + bool updateAtIsSet_; + int64_t deleteAt_; + bool deleteAtIsSet_; + std::string dbPort_; + bool dbPortIsSet_; + ChInstancesInfoRsponse_instance_param_group paramGroup_; + bool paramGroupIsSet_; + std::vector actions_; + bool actionsIsSet_; + std::string createFailErrorCode_; + bool createFailErrorCodeIsSet_; + std::vector groups_; + bool groupsIsSet_; + ChInstancesInfoRsponse_instance_ops_window opsWindow_; + bool opsWindowIsSet_; + CreateChInstanceInfo_tags_info tagsInfo_; + bool tagsInfoIsSet_; + std::string timeZone_; + bool timeZoneIsSet_; + std::string backupUsedSpace_; + bool backupUsedSpaceIsSet_; + std::string azMode_; + bool azModeIsSet_; + std::string masterAzCode_; + bool masterAzCodeIsSet_; + std::string enterpriseProjectId_; + bool enterpriseProjectIdIsSet_; + ChInstancesInfoRsponse_instance_port_info portInfo_; + bool portInfoIsSet_; + std::string volumeCode_; + bool volumeCodeIsSet_; + bool supportDataReplication_; + bool supportDataReplicationIsSet_; + bool newVersionAvailable_; + bool newVersionAvailableIsSet_; + bool sslOption_; + bool sslOptionIsSet_; + std::string dedicatedResourceId_; + bool dedicatedResourceIdIsSet_; + std::string payModel_; + bool payModelIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChInstancesInfoRsponse_instance_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ChInstancesInfoRsponse_instance_groups.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ChInstancesInfoRsponse_instance_groups.h new file mode 100644 index 000000000..e94de5d67 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ChInstancesInfoRsponse_instance_groups.h @@ -0,0 +1,99 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChInstancesInfoRsponse_instance_groups_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChInstancesInfoRsponse_instance_groups_H_ + + +#include + +#include +#include +#include + +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ChInstancesInfoRsponse_instance_groups + : public ModelBase +{ +public: + ChInstancesInfoRsponse_instance_groups(); + virtual ~ChInstancesInfoRsponse_instance_groups(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ChInstancesInfoRsponse_instance_groups 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); + + /// + /// 实例分组类型名,现在只支持clickhouse。 + /// + + std::string getGroupTypeName() const; + bool groupTypeNameIsSet() const; + void unsetgroupTypeName(); + void setGroupTypeName(const std::string& value); + + /// + /// 实例节点信息。 + /// + + std::vector& getNodes(); + bool nodesIsSet() const; + void unsetnodes(); + void setNodes(const std::vector& value); + + +protected: + std::string id_; + bool idIsSet_; + std::string name_; + bool nameIsSet_; + std::string groupTypeName_; + bool groupTypeNameIsSet_; + std::vector nodes_; + bool nodesIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChInstancesInfoRsponse_instance_groups_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ChInstancesInfoRsponse_instance_ops_window.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ChInstancesInfoRsponse_instance_ops_window.h new file mode 100644 index 000000000..bbd4b3c97 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ChInstancesInfoRsponse_instance_ops_window.h @@ -0,0 +1,86 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChInstancesInfoRsponse_instance_ops_window_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChInstancesInfoRsponse_instance_ops_window_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 实例操作时间窗。 +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ChInstancesInfoRsponse_instance_ops_window + : public ModelBase +{ +public: + ChInstancesInfoRsponse_instance_ops_window(); + virtual ~ChInstancesInfoRsponse_instance_ops_window(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ChInstancesInfoRsponse_instance_ops_window members + + /// + /// 时间窗周期。 + /// + + std::string getPeriod() const; + bool periodIsSet() const; + void unsetperiod(); + void setPeriod(const std::string& value); + + /// + /// 时间窗开始时间。 + /// + + std::string getStartTime() const; + bool startTimeIsSet() const; + void unsetstartTime(); + void setStartTime(const std::string& value); + + /// + /// 时间窗结束时间。 + /// + + std::string getEndTime() const; + bool endTimeIsSet() const; + void unsetendTime(); + void setEndTime(const std::string& value); + + +protected: + std::string period_; + bool periodIsSet_; + std::string startTime_; + bool startTimeIsSet_; + std::string endTime_; + bool endTimeIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChInstancesInfoRsponse_instance_ops_window_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ChInstancesInfoRsponse_instance_param_group.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ChInstancesInfoRsponse_instance_param_group.h new file mode 100644 index 000000000..ac0687db6 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ChInstancesInfoRsponse_instance_param_group.h @@ -0,0 +1,75 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChInstancesInfoRsponse_instance_param_group_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChInstancesInfoRsponse_instance_param_group_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 参数组。 +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ChInstancesInfoRsponse_instance_param_group + : public ModelBase +{ +public: + ChInstancesInfoRsponse_instance_param_group(); + virtual ~ChInstancesInfoRsponse_instance_param_group(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ChInstancesInfoRsponse_instance_param_group 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); + + +protected: + std::string id_; + bool idIsSet_; + std::string name_; + bool nameIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChInstancesInfoRsponse_instance_param_group_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ChInstancesInfoRsponse_instance_port_info.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ChInstancesInfoRsponse_instance_port_info.h new file mode 100644 index 000000000..c048cda73 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ChInstancesInfoRsponse_instance_port_info.h @@ -0,0 +1,107 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChInstancesInfoRsponse_instance_port_info_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChInstancesInfoRsponse_instance_port_info_H_ + + +#include + +#include +#include +#include + + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 端口信息。 +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ChInstancesInfoRsponse_instance_port_info + : public ModelBase +{ +public: + ChInstancesInfoRsponse_instance_port_info(); + virtual ~ChInstancesInfoRsponse_instance_port_info(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ChInstancesInfoRsponse_instance_port_info members + + /// + /// tep端口。取值范围:0~65535。 + /// + + int32_t getTepPort() const; + bool tepPortIsSet() const; + void unsettepPort(); + void setTepPort(int32_t value); + + /// + /// http端口。取值范围:0~65535。 + /// + + int32_t getHttpPort() const; + bool httpPortIsSet() const; + void unsethttpPort(); + void setHttpPort(int32_t value); + + /// + /// MySql端口号。取值范围:0~65535。 + /// + + int32_t getMysqlPort() const; + bool mysqlPortIsSet() const; + void unsetmysqlPort(); + void setMysqlPort(int32_t value); + + /// + /// https端口号。取值范围:0~65535。 + /// + + int32_t getHttpsPort() const; + bool httpsPortIsSet() const; + void unsethttpsPort(); + void setHttpsPort(int32_t value); + + /// + /// tep安全端口。取值范围:0~65535。 + /// + + int32_t getTepSecurePort() const; + bool tepSecurePortIsSet() const; + void unsettepSecurePort(); + void setTepSecurePort(int32_t value); + + +protected: + int32_t tepPort_; + bool tepPortIsSet_; + int32_t httpPort_; + bool httpPortIsSet_; + int32_t mysqlPort_; + bool mysqlPortIsSet_; + int32_t httpsPort_; + bool httpsPortIsSet_; + int32_t tepSecurePort_; + bool tepSecurePortIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChInstancesInfoRsponse_instance_port_info_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ChLtsConfigs.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ChLtsConfigs.h new file mode 100644 index 000000000..5c8a9e9a3 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ChLtsConfigs.h @@ -0,0 +1,97 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChLtsConfigs_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChLtsConfigs_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ChLtsConfigs + : public ModelBase +{ +public: + ChLtsConfigs(); + virtual ~ChLtsConfigs(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ChLtsConfigs members + + /// + /// 日志类型。 + /// + + std::string getLogType() const; + bool logTypeIsSet() const; + void unsetlogType(); + void setLogType(const std::string& value); + + /// + /// LTS日志组id。 + /// + + std::string getLtsGroupId() const; + bool ltsGroupIdIsSet() const; + void unsetltsGroupId(); + void setLtsGroupId(const std::string& value); + + /// + /// LTS日志流id。 + /// + + std::string getLtsStreamId() const; + bool ltsStreamIdIsSet() const; + void unsetltsStreamId(); + void setLtsStreamId(const std::string& value); + + /// + /// LTS配置开关状态。 + /// + + bool isEnabled() const; + bool enabledIsSet() const; + void unsetenabled(); + void setEnabled(bool value); + + +protected: + std::string logType_; + bool logTypeIsSet_; + std::string ltsGroupId_; + bool ltsGroupIdIsSet_; + std::string ltsStreamId_; + bool ltsStreamIdIsSet_; + bool enabled_; + bool enabledIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChLtsConfigs_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ChQueryActionInfo.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ChQueryActionInfo.h new file mode 100644 index 000000000..8aabd35e7 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ChQueryActionInfo.h @@ -0,0 +1,141 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChQueryActionInfo_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChQueryActionInfo_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 实例操作动作。 +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ChQueryActionInfo + : public ModelBase +{ +public: + ChQueryActionInfo(); + virtual ~ChQueryActionInfo(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ChQueryActionInfo members + + /// + /// 实例动作ID。 + /// + + std::string getId() const; + bool idIsSet() const; + void unsetid(); + void setId(const std::string& value); + + /// + /// 实例动作名称。 + /// + + std::string getAction() const; + bool actionIsSet() const; + void unsetaction(); + void setAction(const std::string& value); + + /// + /// 实例动作对象ID。 + /// + + std::string getObjectId() const; + bool objectIdIsSet() const; + void unsetobjectId(); + void setObjectId(const std::string& value); + + /// + /// 实例动作类型。 + /// + + std::string getType() const; + bool typeIsSet() const; + void unsettype(); + void setType(const std::string& value); + + /// + /// 实例动作任务ID。 + /// + + std::string getJobId() const; + bool jobIdIsSet() const; + void unsetjobId(); + void setJobId(const std::string& value); + + /// + /// 实例动作状态。 + /// + + std::string getStatus() const; + bool statusIsSet() const; + void unsetstatus(); + void setStatus(const std::string& value); + + /// + /// 实例动作创建时间。 + /// + + int64_t getCreatedAt() const; + bool createdAtIsSet() const; + void unsetcreatedAt(); + void setCreatedAt(int64_t value); + + /// + /// 实例动作更新时间。 + /// + + int64_t getUpdatedAt() const; + bool updatedAtIsSet() const; + void unsetupdatedAt(); + void setUpdatedAt(int64_t value); + + +protected: + std::string id_; + bool idIsSet_; + std::string action_; + bool actionIsSet_; + std::string objectId_; + bool objectIdIsSet_; + std::string type_; + bool typeIsSet_; + std::string jobId_; + bool jobIdIsSet_; + std::string status_; + bool statusIsSet_; + int64_t createdAt_; + bool createdAtIsSet_; + int64_t updatedAt_; + bool updatedAtIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChQueryActionInfo_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ChSlowLogDetailResponse_slow_log_list.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ChSlowLogDetailResponse_slow_log_list.h new file mode 100644 index 000000000..2651e798e --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ChSlowLogDetailResponse_slow_log_list.h @@ -0,0 +1,196 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChSlowLogDetailResponse_slow_log_list_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChSlowLogDetailResponse_slow_log_list_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ChSlowLogDetailResponse_slow_log_list + : public ModelBase +{ +public: + ChSlowLogDetailResponse_slow_log_list(); + virtual ~ChSlowLogDetailResponse_slow_log_list(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ChSlowLogDetailResponse_slow_log_list members + + /// + /// ClickHouse实例节点ID。 + /// + + std::string getNodeId() const; + bool nodeIdIsSet() const; + void unsetnodeId(); + void setNodeId(const std::string& value); + + /// + /// 数据库语句执行时间。 + /// + + std::string getTime() const; + bool timeIsSet() const; + void unsettime(); + void setTime(const std::string& value); + + /// + /// 数据库语句等待锁时间。 + /// + + std::string getLockTime() const; + bool lockTimeIsSet() const; + void unsetlockTime(); + void setLockTime(const std::string& value); + + /// + /// 数据库语句执行结果行数。 + /// + + int32_t getRowsSent() const; + bool rowsSentIsSet() const; + void unsetrowsSent(); + void setRowsSent(int32_t value); + + /// + /// 数据库语句扫描行数。 + /// + + int32_t getRowsExamined() const; + bool rowsExaminedIsSet() const; + void unsetrowsExamined(); + void setRowsExamined(int32_t value); + + /// + /// 所属数据库名。 + /// + + std::string getDatabase() const; + bool databaseIsSet() const; + void unsetdatabase(); + void setDatabase(const std::string& value); + + /// + /// 执行语句账号。 + /// + + std::string getUsers() const; + bool usersIsSet() const; + void unsetusers(); + void setUsers(const std::string& value); + + /// + /// 数据库执行语句。 + /// + + std::string getQuerySample() const; + bool querySampleIsSet() const; + void unsetquerySample(); + void setQuerySample(const std::string& value); + + /// + /// 数据库语句类型。 + /// + + std::string getType() const; + bool typeIsSet() const; + void unsettype(); + void setType(const std::string& value); + + /// + /// IP地址。 + /// + + std::string getClientIp() const; + bool clientIpIsSet() const; + void unsetclientIp(); + void setClientIp(const std::string& value); + + /// + /// 数据库语句发生时间。 + /// + + std::string getStartTime() const; + bool startTimeIsSet() const; + void unsetstartTime(); + void setStartTime(const std::string& value); + + /// + /// 日志单行序列号,第一次查询时不需要此参数,后续分页查询时需要使用,可从上次查询的返回信息中获取。 + /// + + std::string getLineNum() const; + bool lineNumIsSet() const; + void unsetlineNum(); + void setLineNum(const std::string& value); + + /// + /// 慢日志数量。 + /// + + std::string getCount() const; + bool countIsSet() const; + void unsetcount(); + void setCount(const std::string& value); + + +protected: + std::string nodeId_; + bool nodeIdIsSet_; + std::string time_; + bool timeIsSet_; + std::string lockTime_; + bool lockTimeIsSet_; + int32_t rowsSent_; + bool rowsSentIsSet_; + int32_t rowsExamined_; + bool rowsExaminedIsSet_; + std::string database_; + bool databaseIsSet_; + std::string users_; + bool usersIsSet_; + std::string querySample_; + bool querySampleIsSet_; + std::string type_; + bool typeIsSet_; + std::string clientIp_; + bool clientIpIsSet_; + std::string startTime_; + bool startTimeIsSet_; + std::string lineNum_; + bool lineNumIsSet_; + std::string count_; + bool countIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChSlowLogDetailResponse_slow_log_list_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ChSlowLogQueryRequestBody.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ChSlowLogQueryRequestBody.h new file mode 100644 index 000000000..e50e8c7be --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ChSlowLogQueryRequestBody.h @@ -0,0 +1,130 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChSlowLogQueryRequestBody_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChSlowLogQueryRequestBody_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 查询慢日志请求体。 +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ChSlowLogQueryRequestBody + : public ModelBase +{ +public: + ChSlowLogQueryRequestBody(); + virtual ~ChSlowLogQueryRequestBody(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ChSlowLogQueryRequestBody members + + /// + /// 实例节点ID。 + /// + + std::string getNodeId() const; + bool nodeIdIsSet() const; + void unsetnodeId(); + void setNodeId(const std::string& value); + + /// + /// 开始时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100。 + /// + + std::string getStartTime() const; + bool startTimeIsSet() const; + void unsetstartTime(); + void setStartTime(const std::string& value); + + /// + /// 开始时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100。 + /// + + std::string getEndTime() const; + bool endTimeIsSet() const; + void unsetendTime(); + void setEndTime(const std::string& value); + + /// + /// 查询记录数。 + /// + + int32_t getLimit() const; + bool limitIsSet() const; + void unsetlimit(); + void setLimit(int32_t value); + + /// + /// 日志单行序列号,第一次查询时不需要此参数,后续分页查询时需要使用,可从上次查询的返回信息中获取。 + /// + + std::string getLineNum() const; + bool lineNumIsSet() const; + void unsetlineNum(); + void setLineNum(const std::string& value); + + /// + /// 慢日志操作类型。 + /// + + std::string getOperateType() const; + bool operateTypeIsSet() const; + void unsetoperateType(); + void setOperateType(const std::string& value); + + /// + /// 数据库名。 + /// + + std::string getDatabase() const; + bool databaseIsSet() const; + void unsetdatabase(); + void setDatabase(const std::string& value); + + +protected: + std::string nodeId_; + bool nodeIdIsSet_; + std::string startTime_; + bool startTimeIsSet_; + std::string endTime_; + bool endTimeIsSet_; + int32_t limit_; + bool limitIsSet_; + std::string lineNum_; + bool lineNumIsSet_; + std::string operateType_; + bool operateTypeIsSet_; + std::string database_; + bool databaseIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChSlowLogQueryRequestBody_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ChSlowlogSensitiveResponse.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ChSlowlogSensitiveResponse.h new file mode 100644 index 000000000..ab54ddd47 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ChSlowlogSensitiveResponse.h @@ -0,0 +1,64 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChSlowlogSensitiveResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChSlowlogSensitiveResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ChSlowlogSensitiveResponse + : public ModelBase +{ +public: + ChSlowlogSensitiveResponse(); + virtual ~ChSlowlogSensitiveResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ChSlowlogSensitiveResponse members + + /// + /// 慢日志脱敏开关。 + /// + + std::string getOpenSlowLogSwitch() const; + bool openSlowLogSwitchIsSet() const; + void unsetopenSlowLogSwitch(); + void setOpenSlowLogSwitch(const std::string& value); + + +protected: + std::string openSlowLogSwitch_; + bool openSlowLogSwitchIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ChSlowlogSensitiveResponse_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/CheckChDatabaseConfigRequestBody.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/CheckChDatabaseConfigRequestBody.h new file mode 100644 index 000000000..143e9a511 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/CheckChDatabaseConfigRequestBody.h @@ -0,0 +1,111 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CheckChDatabaseConfigRequestBody_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CheckChDatabaseConfigRequestBody_H_ + + +#include + +#include +#include +#include + +#include +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 库配置校验参数。 +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT CheckChDatabaseConfigRequestBody + : public ModelBase +{ +public: + CheckChDatabaseConfigRequestBody(); + virtual ~CheckChDatabaseConfigRequestBody(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CheckChDatabaseConfigRequestBody members + + /// + /// 源实例ID,严格匹配UUID规则。 + /// + + std::string getSourceInstanceId() const; + bool sourceInstanceIdIsSet() const; + void unsetsourceInstanceId(); + void setSourceInstanceId(const std::string& value); + + /// + /// 源节点ID。GaussDB(for MySQL)只读节点ID。如为空,则取GaussDB(for MySQL)主节点ID。 + /// + + std::string getSourceNodeId() const; + bool sourceNodeIdIsSet() const; + void unsetsourceNodeId(); + void setSourceNodeId(const std::string& value); + + /// + /// 源数据库名。 + /// + + std::string getSourceDatabaseName() const; + bool sourceDatabaseNameIsSet() const; + void unsetsourceDatabaseName(); + void setSourceDatabaseName(const std::string& value); + + /// + /// 库配置列表。 + /// + + std::vector& getDbConfigs(); + bool dbConfigsIsSet() const; + void unsetdbConfigs(); + void setDbConfigs(const std::vector& value); + + /// + /// + /// + + ChDatabaseTableReplConfigInfo getTableReplConfig() const; + bool tableReplConfigIsSet() const; + void unsettableReplConfig(); + void setTableReplConfig(const ChDatabaseTableReplConfigInfo& value); + + +protected: + std::string sourceInstanceId_; + bool sourceInstanceIdIsSet_; + std::string sourceNodeId_; + bool sourceNodeIdIsSet_; + std::string sourceDatabaseName_; + bool sourceDatabaseNameIsSet_; + std::vector dbConfigs_; + bool dbConfigsIsSet_; + ChDatabaseTableReplConfigInfo tableReplConfig_; + bool tableReplConfigIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CheckChDatabaseConfigRequestBody_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/CheckChDatabaseTableConfigRequestBody.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/CheckChDatabaseTableConfigRequestBody.h new file mode 100644 index 000000000..f1b648f94 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/CheckChDatabaseTableConfigRequestBody.h @@ -0,0 +1,123 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CheckChDatabaseTableConfigRequestBody_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CheckChDatabaseTableConfigRequestBody_H_ + + +#include + +#include +#include +#include + +#include +#include +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 表配置校验请求体。 +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT CheckChDatabaseTableConfigRequestBody + : public ModelBase +{ +public: + CheckChDatabaseTableConfigRequestBody(); + virtual ~CheckChDatabaseTableConfigRequestBody(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CheckChDatabaseTableConfigRequestBody members + + /// + /// 源实例ID。 + /// + + std::string getSourceInstanceId() const; + bool sourceInstanceIdIsSet() const; + void unsetsourceInstanceId(); + void setSourceInstanceId(const std::string& value); + + /// + /// 源节点ID。GaussDB(for MySQL)只读节点ID。如为空,则取GaussDB(for MySQL)主节点ID。 + /// + + std::string getSourceNodeId() const; + bool sourceNodeIdIsSet() const; + void unsetsourceNodeId(); + void setSourceNodeId(const std::string& value); + + /// + /// 源数据库名。 + /// + + std::string getSourceDatabaseName() const; + bool sourceDatabaseNameIsSet() const; + void unsetsourceDatabaseName(); + void setSourceDatabaseName(const std::string& value); + + /// + /// 库配置列表。 + /// + + std::vector& getDbConfigs(); + bool dbConfigsIsSet() const; + void unsetdbConfigs(); + void setDbConfigs(const std::vector& value); + + /// + /// 表配置信息。 + /// + + std::vector& getTablesConfigs(); + bool tablesConfigsIsSet() const; + void unsettablesConfigs(); + void setTablesConfigs(const std::vector& value); + + /// + /// + /// + + ChDatabaseTableReplConfigInfo getTableReplConfig() const; + bool tableReplConfigIsSet() const; + void unsettableReplConfig(); + void setTableReplConfig(const ChDatabaseTableReplConfigInfo& value); + + +protected: + std::string sourceInstanceId_; + bool sourceInstanceIdIsSet_; + std::string sourceNodeId_; + bool sourceNodeIdIsSet_; + std::string sourceDatabaseName_; + bool sourceDatabaseNameIsSet_; + std::vector dbConfigs_; + bool dbConfigsIsSet_; + std::vector tablesConfigs_; + bool tablesConfigsIsSet_; + ChDatabaseTableReplConfigInfo tableReplConfig_; + bool tableReplConfigIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CheckChDatabaseTableConfigRequestBody_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/CheckClickHouseDataBaseConfigRequest.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/CheckClickHouseDataBaseConfigRequest.h new file mode 100644 index 000000000..b3d660aba --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/CheckClickHouseDataBaseConfigRequest.h @@ -0,0 +1,94 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CheckClickHouseDataBaseConfigRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CheckClickHouseDataBaseConfigRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT CheckClickHouseDataBaseConfigRequest + : public ModelBase +{ +public: + CheckClickHouseDataBaseConfigRequest(); + virtual ~CheckClickHouseDataBaseConfigRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CheckClickHouseDataBaseConfigRequest members + + /// + /// ClickHouse实例ID,严格匹配UUID规则。 + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn + /// + + std::string getXLanguage() const; + bool xLanguageIsSet() const; + void unsetxLanguage(); + void setXLanguage(const std::string& value); + + /// + /// + /// + + CheckChDatabaseConfigRequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const CheckChDatabaseConfigRequestBody& value); + + +protected: + std::string instanceId_; + bool instanceIdIsSet_; + std::string xLanguage_; + bool xLanguageIsSet_; + CheckChDatabaseConfigRequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + CheckClickHouseDataBaseConfigRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CheckClickHouseDataBaseConfigRequest_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/CheckClickHouseDataBaseConfigResponse.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/CheckClickHouseDataBaseConfigResponse.h new file mode 100644 index 000000000..df0651591 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/CheckClickHouseDataBaseConfigResponse.h @@ -0,0 +1,80 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CheckClickHouseDataBaseConfigResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CheckClickHouseDataBaseConfigResponse_H_ + + +#include + +#include +#include +#include + +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT CheckClickHouseDataBaseConfigResponse + : public ModelBase, public HttpResponse +{ +public: + CheckClickHouseDataBaseConfigResponse(); + virtual ~CheckClickHouseDataBaseConfigResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CheckClickHouseDataBaseConfigResponse members + + /// + /// 源数据库名称。 + /// + + std::string getDatabaseName() const; + bool databaseNameIsSet() const; + void unsetdatabaseName(); + void setDatabaseName(const std::string& value); + + /// + /// 源数据库配置检查结果。 + /// + + std::vector& getDbConfigCheckResults(); + bool dbConfigCheckResultsIsSet() const; + void unsetdbConfigCheckResults(); + void setDbConfigCheckResults(const std::vector& value); + + +protected: + std::string databaseName_; + bool databaseNameIsSet_; + std::vector dbConfigCheckResults_; + bool dbConfigCheckResultsIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CheckClickHouseDataBaseConfigResponse_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/CheckClickHouseTableConfigRequest.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/CheckClickHouseTableConfigRequest.h new file mode 100644 index 000000000..df47273a5 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/CheckClickHouseTableConfigRequest.h @@ -0,0 +1,94 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CheckClickHouseTableConfigRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CheckClickHouseTableConfigRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT CheckClickHouseTableConfigRequest + : public ModelBase +{ +public: + CheckClickHouseTableConfigRequest(); + virtual ~CheckClickHouseTableConfigRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CheckClickHouseTableConfigRequest members + + /// + /// ClickHouse实例ID,严格匹配UUID规则。 + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn + /// + + std::string getXLanguage() const; + bool xLanguageIsSet() const; + void unsetxLanguage(); + void setXLanguage(const std::string& value); + + /// + /// + /// + + CheckChDatabaseTableConfigRequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const CheckChDatabaseTableConfigRequestBody& value); + + +protected: + std::string instanceId_; + bool instanceIdIsSet_; + std::string xLanguage_; + bool xLanguageIsSet_; + CheckChDatabaseTableConfigRequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + CheckClickHouseTableConfigRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CheckClickHouseTableConfigRequest_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/CheckClickHouseTableConfigResponse.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/CheckClickHouseTableConfigResponse.h new file mode 100644 index 000000000..eb868d41d --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/CheckClickHouseTableConfigResponse.h @@ -0,0 +1,80 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CheckClickHouseTableConfigResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CheckClickHouseTableConfigResponse_H_ + + +#include + +#include +#include +#include + +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT CheckClickHouseTableConfigResponse + : public ModelBase, public HttpResponse +{ +public: + CheckClickHouseTableConfigResponse(); + virtual ~CheckClickHouseTableConfigResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CheckClickHouseTableConfigResponse members + + /// + /// 源数据库名。 + /// + + std::string getSourceDatabaseName() const; + bool sourceDatabaseNameIsSet() const; + void unsetsourceDatabaseName(); + void setSourceDatabaseName(const std::string& value); + + /// + /// 表配置检查结果。 + /// + + std::vector& getTableConfigCheckResults(); + bool tableConfigCheckResultsIsSet() const; + void unsettableConfigCheckResults(); + void setTableConfigCheckResults(const std::vector& value); + + +protected: + std::string sourceDatabaseName_; + bool sourceDatabaseNameIsSet_; + std::vector tableConfigCheckResults_; + bool tableConfigCheckResultsIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CheckClickHouseTableConfigResponse_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ClickHouseDatabaseUserInfo.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ClickHouseDatabaseUserInfo.h new file mode 100644 index 000000000..0c2982e18 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ClickHouseDatabaseUserInfo.h @@ -0,0 +1,98 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ClickHouseDatabaseUserInfo_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ClickHouseDatabaseUserInfo_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 账户信息。 +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ClickHouseDatabaseUserInfo + : public ModelBase +{ +public: + ClickHouseDatabaseUserInfo(); + virtual ~ClickHouseDatabaseUserInfo(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ClickHouseDatabaseUserInfo members + + /// + /// 数据库账户名。长度为2-32个字符,必须以小写字母开头,小写字母或数字结尾,可以包含小写字母、数字以及下划线,不能包含其它特殊字符。 + /// + + std::string getUserName() const; + bool userNameIsSet() const; + void unsetuserName(); + void setUserName(const std::string& value); + + /// + /// 账户密码。 - 8-32个字符 - 至少包含以下字符中的三种:大写字母、小写字母、数字和特殊字符~!@#%^*-_=+? - 不能与用户名或倒序的用户名相同 + /// + + std::string getPassword() const; + bool passwordIsSet() const; + void unsetpassword(); + void setPassword(const std::string& value); + + /// + /// 数据库列表。“*”表示所有数据库。 + /// + + std::vector& getDatabases(); + bool databasesIsSet() const; + void unsetdatabases(); + void setDatabases(const std::vector& value); + + /// + /// DML权限,默认2。 取值范围: - 1:只读权限 - 2:读取和设置权限 + /// + + int32_t getDml() const; + bool dmlIsSet() const; + void unsetdml(); + void setDml(int32_t value); + + +protected: + std::string userName_; + bool userNameIsSet_; + std::string password_; + bool passwordIsSet_; + std::vector databases_; + bool databasesIsSet_; + int32_t dml_; + bool dmlIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ClickHouseDatabaseUserInfo_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ClickHouseDatabaseUserPSinfo.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ClickHouseDatabaseUserPSinfo.h new file mode 100644 index 000000000..a1899a0b0 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ClickHouseDatabaseUserPSinfo.h @@ -0,0 +1,87 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ClickHouseDatabaseUserPSinfo_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ClickHouseDatabaseUserPSinfo_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 修改数据库账号权限。 +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ClickHouseDatabaseUserPSinfo + : public ModelBase +{ +public: + ClickHouseDatabaseUserPSinfo(); + virtual ~ClickHouseDatabaseUserPSinfo(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ClickHouseDatabaseUserPSinfo members + + /// + /// 数据库账号名。 + /// + + std::string getUserName() const; + bool userNameIsSet() const; + void unsetuserName(); + void setUserName(const std::string& value); + + /// + /// 数据库列表。“*”表示所有数据库。 + /// + + std::vector& getDatabases(); + bool databasesIsSet() const; + void unsetdatabases(); + void setDatabases(const std::vector& value); + + /// + /// DML权限。 取值范围: - 1:只读权限 - 2:读取和设置权限 + /// + + int32_t getDml() const; + bool dmlIsSet() const; + void unsetdml(); + void setDml(int32_t value); + + +protected: + std::string userName_; + bool userNameIsSet_; + std::vector databases_; + bool databasesIsSet_; + int32_t dml_; + bool dmlIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ClickHouseDatabaseUserPSinfo_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ClickHouseDatabaseUserPWinfo.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ClickHouseDatabaseUserPWinfo.h new file mode 100644 index 000000000..f66833b49 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ClickHouseDatabaseUserPWinfo.h @@ -0,0 +1,75 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ClickHouseDatabaseUserPWinfo_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ClickHouseDatabaseUserPWinfo_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 修改数据库账号密码。 +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ClickHouseDatabaseUserPWinfo + : public ModelBase +{ +public: + ClickHouseDatabaseUserPWinfo(); + virtual ~ClickHouseDatabaseUserPWinfo(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ClickHouseDatabaseUserPWinfo members + + /// + /// 数据库账号名。 + /// + + std::string getUserName() const; + bool userNameIsSet() const; + void unsetuserName(); + void setUserName(const std::string& value); + + /// + /// 数据库账号密码。 - 8-32个字符 - 至少包含以下字符中的三种:大写字母、小写字母、数字和特殊字符~!@#%^*-_=+?, - 不能与用户名或倒序的用户名相同 + /// + + std::string getPassword() const; + bool passwordIsSet() const; + void unsetpassword(); + void setPassword(const std::string& value); + + +protected: + std::string userName_; + bool userNameIsSet_; + std::string password_; + bool passwordIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ClickHouseDatabaseUserPWinfo_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ClickHouseEngineInfo.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ClickHouseEngineInfo.h new file mode 100644 index 000000000..8ee3011a8 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ClickHouseEngineInfo.h @@ -0,0 +1,75 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ClickHouseEngineInfo_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ClickHouseEngineInfo_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 引擎信息。 +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ClickHouseEngineInfo + : public ModelBase +{ +public: + ClickHouseEngineInfo(); + virtual ~ClickHouseEngineInfo(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ClickHouseEngineInfo members + + /// + /// 数据库引擎类型,现在只支持click-house。 + /// + + std::string getType() const; + bool typeIsSet() const; + void unsettype(); + void setType(const std::string& value); + + /// + /// 数据库版本,可通过“HTAP查询引擎信息”获取。 一位数的大版本号。 + /// + + std::string getVersion() const; + bool versionIsSet() const; + void unsetversion(); + void setVersion(const std::string& value); + + +protected: + std::string type_; + bool typeIsSet_; + std::string version_; + bool versionIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ClickHouseEngineInfo_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ClickHouseNodeInfo.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ClickHouseNodeInfo.h new file mode 100644 index 000000000..b6e46218c --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ClickHouseNodeInfo.h @@ -0,0 +1,407 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ClickHouseNodeInfo_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ClickHouseNodeInfo_H_ + + +#include + +#include +#include +#include + +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 节点信息。 +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ClickHouseNodeInfo + : public ModelBase +{ +public: + ClickHouseNodeInfo(); + virtual ~ClickHouseNodeInfo(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ClickHouseNodeInfo 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); + + /// + /// 实例节点类型。 取值范围: - master:主节点 - slave:备节点 + /// + + std::string getType() const; + bool typeIsSet() const; + void unsettype(); + void setType(const std::string& value); + + /// + /// 实例节点状态。 + /// + + std::string getStatus() const; + bool statusIsSet() const; + void unsetstatus(); + void setStatus(const std::string& value); + + /// + /// 实例节点周期。 + /// + + std::string getPeriod() const; + bool periodIsSet() const; + void unsetperiod(); + void setPeriod(const std::string& value); + + /// + /// + /// + + ClickHouseNodeInfo_volume getVolume() const; + bool volumeIsSet() const; + void unsetvolume(); + void setVolume(const ClickHouseNodeInfo_volume& value); + + /// + /// 实例节点cpu数量。 + /// + + std::string getCpu() const; + bool cpuIsSet() const; + void unsetcpu(); + void setCpu(const std::string& value); + + /// + /// 实例节点内存大小(GB)。 + /// + + std::string getMem() const; + bool memIsSet() const; + void unsetmem(); + void setMem(const std::string& value); + + /// + /// + /// + + ClickHouseNodeInfo_datastore getDatastore() const; + bool datastoreIsSet() const; + void unsetdatastore(); + void setDatastore(const ClickHouseNodeInfo_datastore& value); + + /// + /// 节点优先级。 + /// + + int32_t getPriority() const; + bool priorityIsSet() const; + void unsetpriority(); + void setPriority(int32_t value); + + /// + /// 冻结标志。 取值范围: - 0:不冻结 - 1:冻结 + /// + + int32_t getFrozenFlag() const; + bool frozenFlagIsSet() const; + void unsetfrozenFlag(); + void setFrozenFlag(int32_t value); + + /// + /// 数据库端口号。取值范围:0~65535。 + /// + + int32_t getDbPort() const; + bool dbPortIsSet() const; + void unsetdbPort(); + void setDbPort(int32_t value); + + /// + /// 支付模式。 取值范围: - 0:按需计费 - 1:包周期 + /// + + std::string getPayModel() const; + bool payModelIsSet() const; + void unsetpayModel(); + void setPayModel(const std::string& value); + + /// + /// 包周期订单ID。 + /// + + std::string getOrderId() const; + bool orderIdIsSet() const; + void unsetorderId(); + void setOrderId(const std::string& value); + + /// + /// 节点数据ip。 + /// + + std::string getTrafficIp() const; + bool trafficIpIsSet() const; + void unsettrafficIp(); + void setTrafficIp(const std::string& value); + + /// + /// 节点数据ipv6。 + /// + + std::string getTrafficIpv6() const; + bool trafficIpv6IsSet() const; + void unsettrafficIpv6(); + void setTrafficIpv6(const std::string& value); + + /// + /// 节点数据vip。 + /// + + std::string getTrafficVip() const; + bool trafficVipIsSet() const; + void unsettrafficVip(); + void setTrafficVip(const std::string& value); + + /// + /// 节点数据vipV6。 + /// + + std::string getTrafficVipv6() const; + bool trafficVipv6IsSet() const; + void unsettrafficVipv6(); + void setTrafficVipv6(const std::string& value); + + /// + /// 可用区。 + /// + + std::string getAzCode() const; + bool azCodeIsSet() const; + void unsetazCode(); + void setAzCode(const std::string& value); + + /// + /// 可用区描述。 + /// + + std::string getAzDescription() const; + bool azDescriptionIsSet() const; + void unsetazDescription(); + void setAzDescription(const std::string& value); + + /// + /// 可用区类型。 + /// + + std::string getAzType() const; + bool azTypeIsSet() const; + void unsetazType(); + void setAzType(const std::string& value); + + /// + /// 节点所在区。 + /// + + std::string getRegion() const; + bool regionIsSet() const; + void unsetregion(); + void setRegion(const std::string& value); + + /// + /// 节点创建时间。 + /// + + int64_t getCreateAt() const; + bool createAtIsSet() const; + void unsetcreateAt(); + void setCreateAt(int64_t value); + + /// + /// 节点更新时间。 + /// + + int64_t getUpdateAt() const; + bool updateAtIsSet() const; + void unsetupdateAt(); + void setUpdateAt(int64_t value); + + /// + /// 节点规格ID。 + /// + + std::string getFlavorId() const; + bool flavorIdIsSet() const; + void unsetflavorId(); + void setFlavorId(const std::string& value); + + /// + /// 节点规格码。 + /// + + std::string getFlavorRef() const; + bool flavorRefIsSet() const; + void unsetflavorRef(); + void setFlavorRef(const std::string& value); + + /// + /// IASS规格码。 + /// + + std::string getIassFlavorRef() const; + bool iassFlavorRefIsSet() const; + void unsetiassFlavorRef(); + void setIassFlavorRef(const std::string& value); + + /// + /// 公网最大连接数。 + /// + + std::string getMaxConnections() const; + bool maxConnectionsIsSet() const; + void unsetmaxConnections(); + void setMaxConnections(const std::string& value); + + /// + /// 虚拟私有云ID。 + /// + + std::string getVpcId() const; + bool vpcIdIsSet() const; + void unsetvpcId(); + void setVpcId(const std::string& value); + + /// + /// 子网ID。 + /// + + std::string getSubnetId() const; + bool subnetIdIsSet() const; + void unsetsubnetId(); + void setSubnetId(const std::string& value); + + /// + /// 参数更新是否需要重启。 + /// + + bool isNeedRestart() const; + bool needRestartIsSet() const; + void unsetneedRestart(); + void setNeedRestart(bool value); + + /// + /// 安全组 + /// + + std::string getSgId() const; + bool sgIdIsSet() const; + void unsetsgId(); + void setSgId(const std::string& value); + + +protected: + std::string id_; + bool idIsSet_; + std::string name_; + bool nameIsSet_; + std::string type_; + bool typeIsSet_; + std::string status_; + bool statusIsSet_; + std::string period_; + bool periodIsSet_; + ClickHouseNodeInfo_volume volume_; + bool volumeIsSet_; + std::string cpu_; + bool cpuIsSet_; + std::string mem_; + bool memIsSet_; + ClickHouseNodeInfo_datastore datastore_; + bool datastoreIsSet_; + int32_t priority_; + bool priorityIsSet_; + int32_t frozenFlag_; + bool frozenFlagIsSet_; + int32_t dbPort_; + bool dbPortIsSet_; + std::string payModel_; + bool payModelIsSet_; + std::string orderId_; + bool orderIdIsSet_; + std::string trafficIp_; + bool trafficIpIsSet_; + std::string trafficIpv6_; + bool trafficIpv6IsSet_; + std::string trafficVip_; + bool trafficVipIsSet_; + std::string trafficVipv6_; + bool trafficVipv6IsSet_; + std::string azCode_; + bool azCodeIsSet_; + std::string azDescription_; + bool azDescriptionIsSet_; + std::string azType_; + bool azTypeIsSet_; + std::string region_; + bool regionIsSet_; + int64_t createAt_; + bool createAtIsSet_; + int64_t updateAt_; + bool updateAtIsSet_; + std::string flavorId_; + bool flavorIdIsSet_; + std::string flavorRef_; + bool flavorRefIsSet_; + std::string iassFlavorRef_; + bool iassFlavorRefIsSet_; + std::string maxConnections_; + bool maxConnectionsIsSet_; + std::string vpcId_; + bool vpcIdIsSet_; + std::string subnetId_; + bool subnetIdIsSet_; + bool needRestart_; + bool needRestartIsSet_; + std::string sgId_; + bool sgIdIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ClickHouseNodeInfo_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ClickHouseNodeInfoResponseBody_node_list.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ClickHouseNodeInfoResponseBody_node_list.h new file mode 100644 index 000000000..d23226913 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ClickHouseNodeInfoResponseBody_node_list.h @@ -0,0 +1,86 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ClickHouseNodeInfoResponseBody_node_list_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ClickHouseNodeInfoResponseBody_node_list_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ClickHouseNodeInfoResponseBody_node_list + : public ModelBase +{ +public: + ClickHouseNodeInfoResponseBody_node_list(); + virtual ~ClickHouseNodeInfoResponseBody_node_list(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ClickHouseNodeInfoResponseBody_node_list members + + /// + /// ClickHouse实例节点id。 + /// + + std::string getNodeId() const; + bool nodeIdIsSet() const; + void unsetnodeId(); + void setNodeId(const std::string& value); + + /// + /// ClickHouse实例节点名称。 + /// + + std::string getNodeName() const; + bool nodeNameIsSet() const; + void unsetnodeName(); + void setNodeName(const std::string& value); + + /// + /// 节点主备角色。 + /// + + std::string getRole() const; + bool roleIsSet() const; + void unsetrole(); + void setRole(const std::string& value); + + +protected: + std::string nodeId_; + bool nodeIdIsSet_; + std::string nodeName_; + bool nodeNameIsSet_; + std::string role_; + bool roleIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ClickHouseNodeInfoResponseBody_node_list_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ClickHouseNodeInfo_datastore.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ClickHouseNodeInfo_datastore.h new file mode 100644 index 000000000..13f43e049 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ClickHouseNodeInfo_datastore.h @@ -0,0 +1,86 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ClickHouseNodeInfo_datastore_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ClickHouseNodeInfo_datastore_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 数据存储信息。 +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ClickHouseNodeInfo_datastore + : public ModelBase +{ +public: + ClickHouseNodeInfo_datastore(); + virtual ~ClickHouseNodeInfo_datastore(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ClickHouseNodeInfo_datastore members + + /// + /// 引擎ID。 + /// + + std::string getId() const; + bool idIsSet() const; + void unsetid(); + void setId(const std::string& value); + + /// + /// 引擎类型,现在只支持click-house。 + /// + + std::string getType() const; + bool typeIsSet() const; + void unsettype(); + void setType(const std::string& value); + + /// + /// 引擎版本。 + /// + + std::string getVersion() const; + bool versionIsSet() const; + void unsetversion(); + void setVersion(const std::string& value); + + +protected: + std::string id_; + bool idIsSet_; + std::string type_; + bool typeIsSet_; + std::string version_; + bool versionIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ClickHouseNodeInfo_datastore_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ClickHouseNodeInfo_volume.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ClickHouseNodeInfo_volume.h new file mode 100644 index 000000000..62e98866a --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ClickHouseNodeInfo_volume.h @@ -0,0 +1,97 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ClickHouseNodeInfo_volume_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ClickHouseNodeInfo_volume_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 实例节点存储信息。 +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ClickHouseNodeInfo_volume + : public ModelBase +{ +public: + ClickHouseNodeInfo_volume(); + virtual ~ClickHouseNodeInfo_volume(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ClickHouseNodeInfo_volume members + + /// + /// 实例节点存储类型。 取值范围: - SSD:超高IO - ESSD:极速型SSD + /// + + std::string getType() const; + bool typeIsSet() const; + void unsettype(); + void setType(const std::string& value); + + /// + /// 实例节点存储大小。 + /// + + std::string getSize() const; + bool sizeIsSet() const; + void unsetsize(); + void setSize(const std::string& value); + + /// + /// 实例节点存储使用大小。 + /// + + std::string getUsed() const; + bool usedIsSet() const; + void unsetused(); + void setUsed(const std::string& value); + + /// + /// 实例节点存储IOPS大小。 + /// + + int32_t getIops() const; + bool iopsIsSet() const; + void unsetiops(); + void setIops(int32_t value); + + +protected: + std::string type_; + bool typeIsSet_; + std::string size_; + bool sizeIsSet_; + std::string used_; + bool usedIsSet_; + int32_t iops_; + bool iopsIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ClickHouseNodeInfo_volume_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ClickHouseResizeFlavorRequestBody.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ClickHouseResizeFlavorRequestBody.h new file mode 100644 index 000000000..7c58f5464 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ClickHouseResizeFlavorRequestBody.h @@ -0,0 +1,86 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ClickHouseResizeFlavorRequestBody_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ClickHouseResizeFlavorRequestBody_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 规格变更请求体。 +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ClickHouseResizeFlavorRequestBody + : public ModelBase +{ +public: + ClickHouseResizeFlavorRequestBody(); + virtual ~ClickHouseResizeFlavorRequestBody(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ClickHouseResizeFlavorRequestBody members + + /// + /// 规格ID。可通过“查询规格信息”接口获取。 仅允许使用对应数据库,和对应实例类型的规格ID。 + /// + + std::string getFlavorRef() const; + bool flavorRefIsSet() const; + void unsetflavorRef(); + void setFlavorRef(const std::string& value); + + /// + /// 是否延迟变更。默认false。 + /// + + bool isDelay() const; + bool delayIsSet() const; + void unsetdelay(); + void setDelay(bool value); + + /// + /// 实例ID,严格匹配UUID规则。 + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + +protected: + std::string flavorRef_; + bool flavorRefIsSet_; + bool delay_; + bool delayIsSet_; + std::string instanceId_; + bool instanceIdIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ClickHouseResizeFlavorRequestBody_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateChDatabaseReplicationRequestBody.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateChDatabaseReplicationRequestBody.h new file mode 100644 index 000000000..6445626db --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateChDatabaseReplicationRequestBody.h @@ -0,0 +1,86 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateChDatabaseReplicationRequestBody_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateChDatabaseReplicationRequestBody_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// ClickHouse创建数据同步请求。 +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT CreateChDatabaseReplicationRequestBody + : public ModelBase +{ +public: + CreateChDatabaseReplicationRequestBody(); + virtual ~CreateChDatabaseReplicationRequestBody(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateChDatabaseReplicationRequestBody members + + /// + /// 源实例ID。 + /// + + std::string getSourceInstanceId() const; + bool sourceInstanceIdIsSet() const; + void unsetsourceInstanceId(); + void setSourceInstanceId(const std::string& value); + + /// + /// 源节点ID。GaussDB(for MySQL)只读节点ID。如为空,则取GaussDB(for MySQL)主节点ID。 + /// + + std::string getSourceNodeId() const; + bool sourceNodeIdIsSet() const; + void unsetsourceNodeId(); + void setSourceNodeId(const std::string& value); + + /// + /// 源数据库。 + /// + + std::string getSourceDatabase() const; + bool sourceDatabaseIsSet() const; + void unsetsourceDatabase(); + void setSourceDatabase(const std::string& value); + + +protected: + std::string sourceInstanceId_; + bool sourceInstanceIdIsSet_; + std::string sourceNodeId_; + bool sourceNodeIdIsSet_; + std::string sourceDatabase_; + bool sourceDatabaseIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateChDatabaseReplicationRequestBody_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateChInstanceInfo.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateChInstanceInfo.h new file mode 100644 index 000000000..5f3215036 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateChInstanceInfo.h @@ -0,0 +1,232 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateChInstanceInfo_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateChInstanceInfo_H_ + + +#include + +#include +#include +#include + +#include +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// ClickHouse实例信息。 +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT CreateChInstanceInfo + : public ModelBase +{ +public: + CreateChInstanceInfo(); + virtual ~CreateChInstanceInfo(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateChInstanceInfo members + + /// + /// 实例ID。 + /// + + std::string getId() const; + bool idIsSet() const; + void unsetid(); + void setId(const std::string& value); + + /// + /// 可用区。 + /// + + std::string getAzCode() const; + bool azCodeIsSet() const; + void unsetazCode(); + void setAzCode(const std::string& value); + + /// + /// 可用区模式。 取值范围: - single:单可用区 - double:多可用区 + /// + + std::string getAzMode() const; + bool azModeIsSet() const; + void unsetazMode(); + void setAzMode(const std::string& value); + + /// + /// 实例名。 + /// + + std::string getName() const; + bool nameIsSet() const; + void unsetname(); + void setName(const std::string& value); + + /// + /// + /// + + ClickHouseEngineInfo getEngine() const; + bool engineIsSet() const; + void unsetengine(); + void setEngine(const ClickHouseEngineInfo& value); + + /// + /// 虚拟私有云ID。 + /// + + std::string getVpcId() const; + bool vpcIdIsSet() const; + void unsetvpcId(); + void setVpcId(const std::string& value); + + /// + /// 安全组ID。 + /// + + std::string getSecurityGroupId() const; + bool securityGroupIdIsSet() const; + void unsetsecurityGroupId(); + void setSecurityGroupId(const std::string& value); + + /// + /// 子网ID。 + /// + + std::string getSubnetId() const; + bool subnetIdIsSet() const; + void unsetsubnetId(); + void setSubnetId(const std::string& value); + + /// + /// 数据库用户。 + /// + + std::string getDbUser() const; + bool dbUserIsSet() const; + void unsetdbUser(); + void setDbUser(const std::string& value); + + /// + /// 数据库端口。取值范围:0~65535。 + /// + + int32_t getPort() const; + bool portIsSet() const; + void unsetport(); + void setPort(int32_t value); + + /// + /// 部署模式。 取值范围: - Single:单机 - Ha:主备 + /// + + std::string getHaMode() const; + bool haModeIsSet() const; + void unsethaMode(); + void setHaMode(const std::string& value); + + /// + /// + /// + + CreateChInstanceInfo_pay_info getPayInfo() const; + bool payInfoIsSet() const; + void unsetpayInfo(); + void setPayInfo(const CreateChInstanceInfo_pay_info& value); + + /// + /// SSL开关。 + /// + + bool isSslOption() const; + bool sslOptionIsSet() const; + void unsetsslOption(); + void setSslOption(bool value); + + /// + /// 实例状态。 取值范围: - creating:创建 - normal:正常 - abnormal:异常 - createfailed:创建失败 - deleted:已删除 + /// + + std::string getStatus() const; + bool statusIsSet() const; + void unsetstatus(); + void setStatus(const std::string& value); + + /// + /// 实例所在区。 + /// + + std::string getRegion() const; + bool regionIsSet() const; + void unsetregion(); + void setRegion(const std::string& value); + + /// + /// + /// + + CreateChInstanceInfo_tags_info getTagsInfo() const; + bool tagsInfoIsSet() const; + void unsettagsInfo(); + void setTagsInfo(const CreateChInstanceInfo_tags_info& value); + + +protected: + std::string id_; + bool idIsSet_; + std::string azCode_; + bool azCodeIsSet_; + std::string azMode_; + bool azModeIsSet_; + std::string name_; + bool nameIsSet_; + ClickHouseEngineInfo engine_; + bool engineIsSet_; + std::string vpcId_; + bool vpcIdIsSet_; + std::string securityGroupId_; + bool securityGroupIdIsSet_; + std::string subnetId_; + bool subnetIdIsSet_; + std::string dbUser_; + bool dbUserIsSet_; + int32_t port_; + bool portIsSet_; + std::string haMode_; + bool haModeIsSet_; + CreateChInstanceInfo_pay_info payInfo_; + bool payInfoIsSet_; + bool sslOption_; + bool sslOptionIsSet_; + std::string status_; + bool statusIsSet_; + std::string region_; + bool regionIsSet_; + CreateChInstanceInfo_tags_info tagsInfo_; + bool tagsInfoIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateChInstanceInfo_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateChInstanceInfo_pay_info.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateChInstanceInfo_pay_info.h new file mode 100644 index 000000000..aa3647119 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateChInstanceInfo_pay_info.h @@ -0,0 +1,108 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateChInstanceInfo_pay_info_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateChInstanceInfo_pay_info_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 计费信息。 +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT CreateChInstanceInfo_pay_info + : public ModelBase +{ +public: + CreateChInstanceInfo_pay_info(); + virtual ~CreateChInstanceInfo_pay_info(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateChInstanceInfo_pay_info members + + /// + /// 计费模式。默认0。 取值范围: - 0:按需计费 - 1:包周期 + /// + + std::string getPayModel() const; + bool payModelIsSet() const; + void unsetpayModel(); + void setPayModel(const std::string& value); + + /// + /// 包周期计费ID。 + /// + + std::string getOrderId() const; + bool orderIdIsSet() const; + void unsetorderId(); + void setOrderId(const std::string& value); + + /// + /// 包周期周期。 + /// + + std::string getPeriod() const; + bool periodIsSet() const; + void unsetperiod(); + void setPeriod(const std::string& value); + + /// + /// 包周期周期类型。 取值范围: - 2:包月 - 3:包年 + /// + + std::string getPeriodType() const; + bool periodTypeIsSet() const; + void unsetperiodType(); + void setPeriodType(const std::string& value); + + /// + /// 包周期是否自动续费。 取值范围: - 1:自动续费 - 0:不自动续费 + /// + + std::string getIsAutoRenew() const; + bool isAutoRenewIsSet() const; + void unsetisAutoRenew(); + void setIsAutoRenew(const std::string& value); + + +protected: + std::string payModel_; + bool payModelIsSet_; + std::string orderId_; + bool orderIdIsSet_; + std::string period_; + bool periodIsSet_; + std::string periodType_; + bool periodTypeIsSet_; + std::string isAutoRenew_; + bool isAutoRenewIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateChInstanceInfo_pay_info_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateChInstanceInfo_tags_info.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateChInstanceInfo_tags_info.h new file mode 100644 index 000000000..1704cab34 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateChInstanceInfo_tags_info.h @@ -0,0 +1,76 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateChInstanceInfo_tags_info_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateChInstanceInfo_tags_info_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 实例标签。 +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT CreateChInstanceInfo_tags_info + : public ModelBase +{ +public: + CreateChInstanceInfo_tags_info(); + virtual ~CreateChInstanceInfo_tags_info(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateChInstanceInfo_tags_info members + + /// + /// 用户标签。 + /// + + std::vector& getTags(); + bool tagsIsSet() const; + void unsettags(); + void setTags(const std::vector& value); + + /// + /// 系统标签。 + /// + + std::vector& getSysTags(); + bool sysTagsIsSet() const; + void unsetsysTags(); + void setSysTags(const std::vector& value); + + +protected: + std::vector tags_; + bool tagsIsSet_; + std::vector sysTags_; + bool sysTagsIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateChInstanceInfo_tags_info_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/SrCreateInstanceRsp_instance_tags_info_tags.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateChInstanceInfo_tags_info_tags.h similarity index 70% rename from gaussdb/include/huaweicloud/gaussdb/v3/model/SrCreateInstanceRsp_instance_tags_info_tags.h rename to gaussdb/include/huaweicloud/gaussdb/v3/model/CreateChInstanceInfo_tags_info_tags.h index 8bfa6241c..8e2b61f0d 100644 --- a/gaussdb/include/huaweicloud/gaussdb/v3/model/SrCreateInstanceRsp_instance_tags_info_tags.h +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateChInstanceInfo_tags_info_tags.h @@ -1,6 +1,6 @@ -#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_SrCreateInstanceRsp_instance_tags_info_tags_H_ -#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_SrCreateInstanceRsp_instance_tags_info_tags_H_ +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateChInstanceInfo_tags_info_tags_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateChInstanceInfo_tags_info_tags_H_ #include @@ -22,12 +22,12 @@ using namespace HuaweiCloud::Sdk::Core::Http; /// /// /// -class HUAWEICLOUD_GAUSSDB_V3_EXPORT SrCreateInstanceRsp_instance_tags_info_tags +class HUAWEICLOUD_GAUSSDB_V3_EXPORT CreateChInstanceInfo_tags_info_tags : public ModelBase { public: - SrCreateInstanceRsp_instance_tags_info_tags(); - virtual ~SrCreateInstanceRsp_instance_tags_info_tags(); + CreateChInstanceInfo_tags_info_tags(); + virtual ~CreateChInstanceInfo_tags_info_tags(); ///////////////////////////////////////////// /// ModelBase overrides @@ -36,7 +36,7 @@ class HUAWEICLOUD_GAUSSDB_V3_EXPORT SrCreateInstanceRsp_instance_tags_info_tags web::json::value toJson() const override; bool fromJson(const web::json::value& json) override; ///////////////////////////////////////////// - /// SrCreateInstanceRsp_instance_tags_info_tags members + /// CreateChInstanceInfo_tags_info_tags members /// /// 标签键。 @@ -72,4 +72,4 @@ class HUAWEICLOUD_GAUSSDB_V3_EXPORT SrCreateInstanceRsp_instance_tags_info_tags } } -#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_SrCreateInstanceRsp_instance_tags_info_tags_H_ +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateChInstanceInfo_tags_info_tags_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateChInstanceRequestBody.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateChInstanceRequestBody.h new file mode 100644 index 000000000..354f819e0 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateChInstanceRequestBody.h @@ -0,0 +1,179 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateChInstanceRequestBody_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateChInstanceRequestBody_H_ + + +#include + +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 创建ClickHouse实例请求体。 +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT CreateChInstanceRequestBody + : public ModelBase +{ +public: + CreateChInstanceRequestBody(); + virtual ~CreateChInstanceRequestBody(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateChInstanceRequestBody members + + /// + /// ClickHouse实例名称。 - 4位到64位之间 - 必须以字母开头,可以包含字母、数字、中划线或下划线 - 不能包含其他特殊字符 + /// + + std::string getName() const; + bool nameIsSet() const; + void unsetname(); + void setName(const std::string& value); + + /// + /// + /// + + ClickHouseEngineInfo getEngine() const; + bool engineIsSet() const; + void unsetengine(); + void setEngine(const ClickHouseEngineInfo& value); + + /// + /// + /// + + CreateChInstanceRequestBody_ha getHa() const; + bool haIsSet() const; + void unsetha(); + void setHa(const CreateChInstanceRequestBody_ha& value); + + /// + /// 节点规格ID,可通过“HTAP查询规格信息”获取。 + /// + + std::string getFlavorId() const; + bool flavorIdIsSet() const; + void unsetflavorId(); + void setFlavorId(const std::string& value); + + /// + /// root账户密码。 - 8~32个字符 - 包含大写字母、小写字母、数字或特殊字符(~ ! @ # % ^ * - _ = + ? ,)中的三种 + /// + + std::string getDbRootPwd() const; + bool dbRootPwdIsSet() const; + void unsetdbRootPwd(); + void setDbRootPwd(const std::string& value); + + /// + /// 可用区类型。 取值范围: - single:单可用区 - double:多可用区 + /// + + std::string getAzMode() const; + bool azModeIsSet() const; + void unsetazMode(); + void setAzMode(const std::string& value); + + /// + /// + /// + + CreateChInstanceRequestBody_volume getVolume() const; + bool volumeIsSet() const; + void unsetvolume(); + void setVolume(const CreateChInstanceRequestBody_volume& value); + + /// + /// 可用区码。 当ha中mode为Ha时,需要填写多个可用区,用\",\" 分隔。例如:cn-southwest-244b,cn-southwest-244a + /// + + std::string getAzCode() const; + bool azCodeIsSet() const; + void unsetazCode(); + void setAzCode(const std::string& value); + + /// + /// 时区。默认为所属GaussDB(for MySQL)实例时区。 + /// + + std::string getTimeZone() const; + bool timeZoneIsSet() const; + void unsettimeZone(); + void setTimeZone(const std::string& value); + + /// + /// + /// + + CreateChInstanceRequestBody_tags_info getTagsInfo() const; + bool tagsInfoIsSet() const; + void unsettagsInfo(); + void setTagsInfo(const CreateChInstanceRequestBody_tags_info& value); + + /// + /// + /// + + CreateChInstanceRequestBody_pay_info getPayInfo() const; + bool payInfoIsSet() const; + void unsetpayInfo(); + void setPayInfo(const CreateChInstanceRequestBody_pay_info& value); + + +protected: + std::string name_; + bool nameIsSet_; + ClickHouseEngineInfo engine_; + bool engineIsSet_; + CreateChInstanceRequestBody_ha ha_; + bool haIsSet_; + std::string flavorId_; + bool flavorIdIsSet_; + std::string dbRootPwd_; + bool dbRootPwdIsSet_; + std::string azMode_; + bool azModeIsSet_; + CreateChInstanceRequestBody_volume volume_; + bool volumeIsSet_; + std::string azCode_; + bool azCodeIsSet_; + std::string timeZone_; + bool timeZoneIsSet_; + CreateChInstanceRequestBody_tags_info tagsInfo_; + bool tagsInfoIsSet_; + CreateChInstanceRequestBody_pay_info payInfo_; + bool payInfoIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateChInstanceRequestBody_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateChInstanceRequestBody_ha.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateChInstanceRequestBody_ha.h new file mode 100644 index 000000000..33f6d1d28 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateChInstanceRequestBody_ha.h @@ -0,0 +1,64 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateChInstanceRequestBody_ha_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateChInstanceRequestBody_ha_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 部署信息。 +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT CreateChInstanceRequestBody_ha + : public ModelBase +{ +public: + CreateChInstanceRequestBody_ha(); + virtual ~CreateChInstanceRequestBody_ha(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateChInstanceRequestBody_ha members + + /// + /// 部署模式。 取值范围: - Single:单机 - Ha:主备 + /// + + std::string getMode() const; + bool modeIsSet() const; + void unsetmode(); + void setMode(const std::string& value); + + +protected: + std::string mode_; + bool modeIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateChInstanceRequestBody_ha_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateChInstanceRequestBody_pay_info.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateChInstanceRequestBody_pay_info.h new file mode 100644 index 000000000..fd7533577 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateChInstanceRequestBody_pay_info.h @@ -0,0 +1,108 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateChInstanceRequestBody_pay_info_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateChInstanceRequestBody_pay_info_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 支付信息。 +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT CreateChInstanceRequestBody_pay_info + : public ModelBase +{ +public: + CreateChInstanceRequestBody_pay_info(); + virtual ~CreateChInstanceRequestBody_pay_info(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateChInstanceRequestBody_pay_info members + + /// + /// 计费模式,默认0。 取值范围: - 0:按需计费 - 1:包周期 + /// + + std::string getPayModel() const; + bool payModelIsSet() const; + void unsetpayModel(); + void setPayModel(const std::string& value); + + /// + /// 包周期计费ID。 + /// + + std::string getOrderId() const; + bool orderIdIsSet() const; + void unsetorderId(); + void setOrderId(const std::string& value); + + /// + /// 包周期周期。 + /// + + int32_t getPeriod() const; + bool periodIsSet() const; + void unsetperiod(); + void setPeriod(int32_t value); + + /// + /// 包周期周期类型。 取值范围: - 2:包月 - 3:包年 + /// + + int32_t getPeriodType() const; + bool periodTypeIsSet() const; + void unsetperiodType(); + void setPeriodType(int32_t value); + + /// + /// 包周期是否自动续费。 取值范围: - 1:自动续费 - 0:不自动续费 + /// + + int32_t getIsAutoRenew() const; + bool isAutoRenewIsSet() const; + void unsetisAutoRenew(); + void setIsAutoRenew(int32_t value); + + +protected: + std::string payModel_; + bool payModelIsSet_; + std::string orderId_; + bool orderIdIsSet_; + int32_t period_; + bool periodIsSet_; + int32_t periodType_; + bool periodTypeIsSet_; + int32_t isAutoRenew_; + bool isAutoRenewIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateChInstanceRequestBody_pay_info_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateChInstanceRequestBody_tags_info.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateChInstanceRequestBody_tags_info.h new file mode 100644 index 000000000..0007c5b52 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateChInstanceRequestBody_tags_info.h @@ -0,0 +1,65 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateChInstanceRequestBody_tags_info_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateChInstanceRequestBody_tags_info_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 标签值。 +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT CreateChInstanceRequestBody_tags_info + : public ModelBase +{ +public: + CreateChInstanceRequestBody_tags_info(); + virtual ~CreateChInstanceRequestBody_tags_info(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateChInstanceRequestBody_tags_info members + + /// + /// 系统标签。 + /// + + std::vector& getSysTags(); + bool sysTagsIsSet() const; + void unsetsysTags(); + void setSysTags(const std::vector& value); + + +protected: + std::vector sysTags_; + bool sysTagsIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateChInstanceRequestBody_tags_info_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateChInstanceRequestBody_tags_info_sys_tags.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateChInstanceRequestBody_tags_info_sys_tags.h new file mode 100644 index 000000000..8f2204570 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateChInstanceRequestBody_tags_info_sys_tags.h @@ -0,0 +1,75 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateChInstanceRequestBody_tags_info_sys_tags_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateChInstanceRequestBody_tags_info_sys_tags_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT CreateChInstanceRequestBody_tags_info_sys_tags + : public ModelBase +{ +public: + CreateChInstanceRequestBody_tags_info_sys_tags(); + virtual ~CreateChInstanceRequestBody_tags_info_sys_tags(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateChInstanceRequestBody_tags_info_sys_tags members + + /// + /// 标签键。 + /// + + std::string getKey() const; + bool keyIsSet() const; + void unsetkey(); + void setKey(const std::string& value); + + /// + /// 标签值。 + /// + + std::string getValue() const; + bool valueIsSet() const; + void unsetvalue(); + void setValue(const std::string& value); + + +protected: + std::string key_; + bool keyIsSet_; + std::string value_; + bool valueIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateChInstanceRequestBody_tags_info_sys_tags_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateChInstanceRequestBody_volume.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateChInstanceRequestBody_volume.h new file mode 100644 index 000000000..ff46fcd6e --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateChInstanceRequestBody_volume.h @@ -0,0 +1,75 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateChInstanceRequestBody_volume_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateChInstanceRequestBody_volume_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 存储规格。 +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT CreateChInstanceRequestBody_volume + : public ModelBase +{ +public: + CreateChInstanceRequestBody_volume(); + virtual ~CreateChInstanceRequestBody_volume(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateChInstanceRequestBody_volume members + + /// + /// 磁盘IO类型。 取值范围: - SSD:超高IO - ESSD:极速型SSD + /// + + std::string getIoType() const; + bool ioTypeIsSet() const; + void unsetioType(); + void setIoType(const std::string& value); + + /// + /// 磁盘容量。取值范围:50GB~32000GB。 + /// + + int32_t getCapacityInGb() const; + bool capacityInGbIsSet() const; + void unsetcapacityInGb(); + void setCapacityInGb(int32_t value); + + +protected: + std::string ioType_; + bool ioTypeIsSet_; + int32_t capacityInGb_; + bool capacityInGbIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateChInstanceRequestBody_volume_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateChLtsConfigRequestBody.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateChLtsConfigRequestBody.h new file mode 100644 index 000000000..98b60ac84 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateChLtsConfigRequestBody.h @@ -0,0 +1,65 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateChLtsConfigRequestBody_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateChLtsConfigRequestBody_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 打开LTS配置 +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT CreateChLtsConfigRequestBody + : public ModelBase +{ +public: + CreateChLtsConfigRequestBody(); + virtual ~CreateChLtsConfigRequestBody(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateChLtsConfigRequestBody members + + /// + /// 日志配置信息。 + /// + + std::vector& getLogConfigs(); + bool logConfigsIsSet() const; + void unsetlogConfigs(); + void setLogConfigs(const std::vector& value); + + +protected: + std::vector logConfigs_; + bool logConfigsIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateChLtsConfigRequestBody_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateChLtsConfigRequestBody_log_configs.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateChLtsConfigRequestBody_log_configs.h new file mode 100644 index 000000000..88a360ae2 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateChLtsConfigRequestBody_log_configs.h @@ -0,0 +1,97 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateChLtsConfigRequestBody_log_configs_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateChLtsConfigRequestBody_log_configs_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT CreateChLtsConfigRequestBody_log_configs + : public ModelBase +{ +public: + CreateChLtsConfigRequestBody_log_configs(); + virtual ~CreateChLtsConfigRequestBody_log_configs(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateChLtsConfigRequestBody_log_configs members + + /// + /// ClickHouse实例ID,严格匹配UUID规则。 + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// 查询日志类型。当前仅支持slow_log。 + /// + + std::string getLogType() const; + bool logTypeIsSet() const; + void unsetlogType(); + void setLogType(const std::string& value); + + /// + /// LTS日志组id。 + /// + + std::string getLtsGroupId() const; + bool ltsGroupIdIsSet() const; + void unsetltsGroupId(); + void setLtsGroupId(const std::string& value); + + /// + /// LTS日志流id。 + /// + + std::string getLtsStreamId() const; + bool ltsStreamIdIsSet() const; + void unsetltsStreamId(); + void setLtsStreamId(const std::string& value); + + +protected: + std::string instanceId_; + bool instanceIdIsSet_; + std::string logType_; + bool logTypeIsSet_; + std::string ltsGroupId_; + bool ltsGroupIdIsSet_; + std::string ltsStreamId_; + bool ltsStreamIdIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateChLtsConfigRequestBody_log_configs_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateClickHouseDataBaseReplicationRequest.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateClickHouseDataBaseReplicationRequest.h new file mode 100644 index 000000000..d64485283 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateClickHouseDataBaseReplicationRequest.h @@ -0,0 +1,94 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateClickHouseDataBaseReplicationRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateClickHouseDataBaseReplicationRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT CreateClickHouseDataBaseReplicationRequest + : public ModelBase +{ +public: + CreateClickHouseDataBaseReplicationRequest(); + virtual ~CreateClickHouseDataBaseReplicationRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateClickHouseDataBaseReplicationRequest members + + /// + /// ClickHouse实例ID,严格匹配UUID规则。 + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn + /// + + std::string getXLanguage() const; + bool xLanguageIsSet() const; + void unsetxLanguage(); + void setXLanguage(const std::string& value); + + /// + /// + /// + + CreateChDatabaseReplicationRequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const CreateChDatabaseReplicationRequestBody& value); + + +protected: + std::string instanceId_; + bool instanceIdIsSet_; + std::string xLanguage_; + bool xLanguageIsSet_; + CreateChDatabaseReplicationRequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + CreateClickHouseDataBaseReplicationRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateClickHouseDataBaseReplicationRequest_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateClickHouseDataBaseReplicationResponse.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateClickHouseDataBaseReplicationResponse.h new file mode 100644 index 000000000..f6a38d91f --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateClickHouseDataBaseReplicationResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateClickHouseDataBaseReplicationResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateClickHouseDataBaseReplicationResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT CreateClickHouseDataBaseReplicationResponse + : public ModelBase, public HttpResponse +{ +public: + CreateClickHouseDataBaseReplicationResponse(); + virtual ~CreateClickHouseDataBaseReplicationResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateClickHouseDataBaseReplicationResponse 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_GAUSSDB_V3_MODEL_CreateClickHouseDataBaseReplicationResponse_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateClickHouseDatabaseUserRequest.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateClickHouseDatabaseUserRequest.h new file mode 100644 index 000000000..6235dff78 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateClickHouseDatabaseUserRequest.h @@ -0,0 +1,94 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateClickHouseDatabaseUserRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateClickHouseDatabaseUserRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT CreateClickHouseDatabaseUserRequest + : public ModelBase +{ +public: + CreateClickHouseDatabaseUserRequest(); + virtual ~CreateClickHouseDatabaseUserRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateClickHouseDatabaseUserRequest members + + /// + /// ClickHouse实例ID,严格匹配UUID规则。 + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn + /// + + std::string getXLanguage() const; + bool xLanguageIsSet() const; + void unsetxLanguage(); + void setXLanguage(const std::string& value); + + /// + /// + /// + + ClickHouseDatabaseUserInfo getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const ClickHouseDatabaseUserInfo& value); + + +protected: + std::string instanceId_; + bool instanceIdIsSet_; + std::string xLanguage_; + bool xLanguageIsSet_; + ClickHouseDatabaseUserInfo body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + CreateClickHouseDatabaseUserRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateClickHouseDatabaseUserRequest_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateClickHouseDatabaseUserResponse.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateClickHouseDatabaseUserResponse.h new file mode 100644 index 000000000..824bf7c9e --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateClickHouseDatabaseUserResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateClickHouseDatabaseUserResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateClickHouseDatabaseUserResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT CreateClickHouseDatabaseUserResponse + : public ModelBase, public HttpResponse +{ +public: + CreateClickHouseDatabaseUserResponse(); + virtual ~CreateClickHouseDatabaseUserResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateClickHouseDatabaseUserResponse members + + /// + /// 请求结果。 + /// + + std::string getResult() const; + bool resultIsSet() const; + void unsetresult(); + void setResult(const std::string& value); + + +protected: + std::string result_; + bool resultIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateClickHouseDatabaseUserResponse_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateClickHouseInstanceRequest.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateClickHouseInstanceRequest.h new file mode 100644 index 000000000..21ba0d570 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateClickHouseInstanceRequest.h @@ -0,0 +1,94 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateClickHouseInstanceRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateClickHouseInstanceRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT CreateClickHouseInstanceRequest + : public ModelBase +{ +public: + CreateClickHouseInstanceRequest(); + virtual ~CreateClickHouseInstanceRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateClickHouseInstanceRequest members + + /// + /// GaussDB(for MySQL)实例ID,严格匹配UUID规则。 + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn + /// + + std::string getXLanguage() const; + bool xLanguageIsSet() const; + void unsetxLanguage(); + void setXLanguage(const std::string& value); + + /// + /// + /// + + CreateChInstanceRequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const CreateChInstanceRequestBody& value); + + +protected: + std::string instanceId_; + bool instanceIdIsSet_; + std::string xLanguage_; + bool xLanguageIsSet_; + CreateChInstanceRequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + CreateClickHouseInstanceRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateClickHouseInstanceRequest_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateClickHouseInstanceResponse.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateClickHouseInstanceResponse.h new file mode 100644 index 000000000..e96daa6b2 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/CreateClickHouseInstanceResponse.h @@ -0,0 +1,79 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateClickHouseInstanceResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateClickHouseInstanceResponse_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT CreateClickHouseInstanceResponse + : public ModelBase, public HttpResponse +{ +public: + CreateClickHouseInstanceResponse(); + virtual ~CreateClickHouseInstanceResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateClickHouseInstanceResponse members + + /// + /// + /// + + CreateChInstanceInfo getInstance() const; + bool instanceIsSet() const; + void unsetinstance(); + void setInstance(const CreateChInstanceInfo& value); + + /// + /// 工作ID。 + /// + + std::string getJobId() const; + bool jobIdIsSet() const; + void unsetjobId(); + void setJobId(const std::string& value); + + +protected: + CreateChInstanceInfo instance_; + bool instanceIsSet_; + std::string jobId_; + bool jobIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_CreateClickHouseInstanceResponse_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/DeleteChLtsConfigRequestBody.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/DeleteChLtsConfigRequestBody.h new file mode 100644 index 000000000..be9ff0979 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/DeleteChLtsConfigRequestBody.h @@ -0,0 +1,65 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_DeleteChLtsConfigRequestBody_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_DeleteChLtsConfigRequestBody_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 删除LTS配置 +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT DeleteChLtsConfigRequestBody + : public ModelBase +{ +public: + DeleteChLtsConfigRequestBody(); + virtual ~DeleteChLtsConfigRequestBody(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DeleteChLtsConfigRequestBody members + + /// + /// LTS配置。 + /// + + std::vector& getLogConfigs(); + bool logConfigsIsSet() const; + void unsetlogConfigs(); + void setLogConfigs(const std::vector& value); + + +protected: + std::vector logConfigs_; + bool logConfigsIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_DeleteChLtsConfigRequestBody_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/DeleteChLtsConfigRequestBody_log_configs.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/DeleteChLtsConfigRequestBody_log_configs.h new file mode 100644 index 000000000..1f8046a2c --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/DeleteChLtsConfigRequestBody_log_configs.h @@ -0,0 +1,75 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_DeleteChLtsConfigRequestBody_log_configs_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_DeleteChLtsConfigRequestBody_log_configs_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT DeleteChLtsConfigRequestBody_log_configs + : public ModelBase +{ +public: + DeleteChLtsConfigRequestBody_log_configs(); + virtual ~DeleteChLtsConfigRequestBody_log_configs(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DeleteChLtsConfigRequestBody_log_configs members + + /// + /// ClickHouse实例ID,严格匹配UUID规则。 + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// 日志类型。当前仅支持slow_log。 + /// + + std::string getLogType() const; + bool logTypeIsSet() const; + void unsetlogType(); + void setLogType(const std::string& value); + + +protected: + std::string instanceId_; + bool instanceIdIsSet_; + std::string logType_; + bool logTypeIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_DeleteChLtsConfigRequestBody_log_configs_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/DeleteClickHouseDataBaseConfigRequest.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/DeleteClickHouseDataBaseConfigRequest.h new file mode 100644 index 000000000..25815e3ed --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/DeleteClickHouseDataBaseConfigRequest.h @@ -0,0 +1,93 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_DeleteClickHouseDataBaseConfigRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_DeleteClickHouseDataBaseConfigRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT DeleteClickHouseDataBaseConfigRequest + : public ModelBase +{ +public: + DeleteClickHouseDataBaseConfigRequest(); + virtual ~DeleteClickHouseDataBaseConfigRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DeleteClickHouseDataBaseConfigRequest members + + /// + /// ClickHouse实例ID,严格匹配UUID规则。 + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn + /// + + std::string getXLanguage() const; + bool xLanguageIsSet() const; + void unsetxLanguage(); + void setXLanguage(const std::string& value); + + /// + /// 数据库名。 + /// + + std::string getDatabase() const; + bool databaseIsSet() const; + void unsetdatabase(); + void setDatabase(const std::string& value); + + +protected: + std::string instanceId_; + bool instanceIdIsSet_; + std::string xLanguage_; + bool xLanguageIsSet_; + std::string database_; + bool databaseIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + DeleteClickHouseDataBaseConfigRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_DeleteClickHouseDataBaseConfigRequest_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/DeleteClickHouseDataBaseConfigResponse.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/DeleteClickHouseDataBaseConfigResponse.h new file mode 100644 index 000000000..e5dcbca7b --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/DeleteClickHouseDataBaseConfigResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_DeleteClickHouseDataBaseConfigResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_DeleteClickHouseDataBaseConfigResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT DeleteClickHouseDataBaseConfigResponse + : public ModelBase, public HttpResponse +{ +public: + DeleteClickHouseDataBaseConfigResponse(); + virtual ~DeleteClickHouseDataBaseConfigResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DeleteClickHouseDataBaseConfigResponse 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_GAUSSDB_V3_MODEL_DeleteClickHouseDataBaseConfigResponse_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/DeleteClickHouseDataBaseReplicationRequest.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/DeleteClickHouseDataBaseReplicationRequest.h new file mode 100644 index 000000000..4b2576d08 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/DeleteClickHouseDataBaseReplicationRequest.h @@ -0,0 +1,93 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_DeleteClickHouseDataBaseReplicationRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_DeleteClickHouseDataBaseReplicationRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT DeleteClickHouseDataBaseReplicationRequest + : public ModelBase +{ +public: + DeleteClickHouseDataBaseReplicationRequest(); + virtual ~DeleteClickHouseDataBaseReplicationRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DeleteClickHouseDataBaseReplicationRequest members + + /// + /// ClickHouse实例ID,严格匹配UUID规则。 + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// 数据库名。 + /// + + std::string getDatabaseName() const; + bool databaseNameIsSet() const; + void unsetdatabaseName(); + void setDatabaseName(const std::string& value); + + /// + /// 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn + /// + + std::string getXLanguage() const; + bool xLanguageIsSet() const; + void unsetxLanguage(); + void setXLanguage(const std::string& value); + + +protected: + std::string instanceId_; + bool instanceIdIsSet_; + std::string databaseName_; + bool databaseNameIsSet_; + std::string xLanguage_; + bool xLanguageIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + DeleteClickHouseDataBaseReplicationRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_DeleteClickHouseDataBaseReplicationRequest_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/DeleteClickHouseDataBaseReplicationResponse.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/DeleteClickHouseDataBaseReplicationResponse.h new file mode 100644 index 000000000..6c24b3abc --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/DeleteClickHouseDataBaseReplicationResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_DeleteClickHouseDataBaseReplicationResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_DeleteClickHouseDataBaseReplicationResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT DeleteClickHouseDataBaseReplicationResponse + : public ModelBase, public HttpResponse +{ +public: + DeleteClickHouseDataBaseReplicationResponse(); + virtual ~DeleteClickHouseDataBaseReplicationResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DeleteClickHouseDataBaseReplicationResponse 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_GAUSSDB_V3_MODEL_DeleteClickHouseDataBaseReplicationResponse_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/DeleteClickHouseDatabaseUserRequest.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/DeleteClickHouseDatabaseUserRequest.h new file mode 100644 index 000000000..fa95919c3 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/DeleteClickHouseDatabaseUserRequest.h @@ -0,0 +1,93 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_DeleteClickHouseDatabaseUserRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_DeleteClickHouseDatabaseUserRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT DeleteClickHouseDatabaseUserRequest + : public ModelBase +{ +public: + DeleteClickHouseDatabaseUserRequest(); + virtual ~DeleteClickHouseDatabaseUserRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DeleteClickHouseDatabaseUserRequest members + + /// + /// 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn + /// + + std::string getXLanguage() const; + bool xLanguageIsSet() const; + void unsetxLanguage(); + void setXLanguage(const std::string& value); + + /// + /// ClickHouse实例ID,严格匹配UUID规则。 + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// 数据库名称。 + /// + + std::string getUserName() const; + bool userNameIsSet() const; + void unsetuserName(); + void setUserName(const std::string& value); + + +protected: + std::string xLanguage_; + bool xLanguageIsSet_; + std::string instanceId_; + bool instanceIdIsSet_; + std::string userName_; + bool userNameIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + DeleteClickHouseDatabaseUserRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_DeleteClickHouseDatabaseUserRequest_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/DeleteClickHouseDatabaseUserResponse.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/DeleteClickHouseDatabaseUserResponse.h new file mode 100644 index 000000000..e7cdc5f69 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/DeleteClickHouseDatabaseUserResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_DeleteClickHouseDatabaseUserResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_DeleteClickHouseDatabaseUserResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT DeleteClickHouseDatabaseUserResponse + : public ModelBase, public HttpResponse +{ +public: + DeleteClickHouseDatabaseUserResponse(); + virtual ~DeleteClickHouseDatabaseUserResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DeleteClickHouseDatabaseUserResponse members + + /// + /// 请求结果。 + /// + + std::string getResult() const; + bool resultIsSet() const; + void unsetresult(); + void setResult(const std::string& value); + + +protected: + std::string result_; + bool resultIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_DeleteClickHouseDatabaseUserResponse_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/DeleteClickHouseInstanceRequest.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/DeleteClickHouseInstanceRequest.h new file mode 100644 index 000000000..0abf8aad6 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/DeleteClickHouseInstanceRequest.h @@ -0,0 +1,93 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_DeleteClickHouseInstanceRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_DeleteClickHouseInstanceRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT DeleteClickHouseInstanceRequest + : public ModelBase +{ +public: + DeleteClickHouseInstanceRequest(); + virtual ~DeleteClickHouseInstanceRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DeleteClickHouseInstanceRequest members + + /// + /// GaussDB(for MySQL)实例ID,严格匹配UUID规则。 + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// ClickHouse实例ID,严格匹配UUID规则。 + /// + + std::string getClickhouseInstanceId() const; + bool clickhouseInstanceIdIsSet() const; + void unsetclickhouseInstanceId(); + void setClickhouseInstanceId(const std::string& value); + + /// + /// 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn + /// + + std::string getXLanguage() const; + bool xLanguageIsSet() const; + void unsetxLanguage(); + void setXLanguage(const std::string& value); + + +protected: + std::string instanceId_; + bool instanceIdIsSet_; + std::string clickhouseInstanceId_; + bool clickhouseInstanceIdIsSet_; + std::string xLanguage_; + bool xLanguageIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + DeleteClickHouseInstanceRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_DeleteClickHouseInstanceRequest_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/DeleteClickHouseInstanceResponse.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/DeleteClickHouseInstanceResponse.h new file mode 100644 index 000000000..2e3e20a74 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/DeleteClickHouseInstanceResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_DeleteClickHouseInstanceResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_DeleteClickHouseInstanceResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT DeleteClickHouseInstanceResponse + : public ModelBase, public HttpResponse +{ +public: + DeleteClickHouseInstanceResponse(); + virtual ~DeleteClickHouseInstanceResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DeleteClickHouseInstanceResponse 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_GAUSSDB_V3_MODEL_DeleteClickHouseInstanceResponse_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/DeleteClickHouseLtsConfigRequest.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/DeleteClickHouseLtsConfigRequest.h new file mode 100644 index 000000000..e3d4907a7 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/DeleteClickHouseLtsConfigRequest.h @@ -0,0 +1,83 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_DeleteClickHouseLtsConfigRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_DeleteClickHouseLtsConfigRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT DeleteClickHouseLtsConfigRequest + : public ModelBase +{ +public: + DeleteClickHouseLtsConfigRequest(); + virtual ~DeleteClickHouseLtsConfigRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DeleteClickHouseLtsConfigRequest members + + /// + /// 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn + /// + + std::string getXLanguage() const; + bool xLanguageIsSet() const; + void unsetxLanguage(); + void setXLanguage(const std::string& value); + + /// + /// + /// + + DeleteChLtsConfigRequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const DeleteChLtsConfigRequestBody& value); + + +protected: + std::string xLanguage_; + bool xLanguageIsSet_; + DeleteChLtsConfigRequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + DeleteClickHouseLtsConfigRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_DeleteClickHouseLtsConfigRequest_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/DeleteClickHouseLtsConfigResponse.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/DeleteClickHouseLtsConfigResponse.h new file mode 100644 index 000000000..e5a9d2a54 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/DeleteClickHouseLtsConfigResponse.h @@ -0,0 +1,55 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_DeleteClickHouseLtsConfigResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_DeleteClickHouseLtsConfigResponse_H_ + + +#include + +#include +#include +#include + + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT DeleteClickHouseLtsConfigResponse + : public ModelBase, public HttpResponse +{ +public: + DeleteClickHouseLtsConfigResponse(); + virtual ~DeleteClickHouseLtsConfigResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DeleteClickHouseLtsConfigResponse members + + +protected: + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_DeleteClickHouseLtsConfigResponse_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ListClickHouseDataBaseParameterRequest.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ListClickHouseDataBaseParameterRequest.h new file mode 100644 index 000000000..a440a9e50 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ListClickHouseDataBaseParameterRequest.h @@ -0,0 +1,82 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ListClickHouseDataBaseParameterRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ListClickHouseDataBaseParameterRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ListClickHouseDataBaseParameterRequest + : public ModelBase +{ +public: + ListClickHouseDataBaseParameterRequest(); + virtual ~ListClickHouseDataBaseParameterRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListClickHouseDataBaseParameterRequest members + + /// + /// ClickHouse实例ID,严格匹配UUID规则。 + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn + /// + + std::string getXLanguage() const; + bool xLanguageIsSet() const; + void unsetxLanguage(); + void setXLanguage(const std::string& value); + + +protected: + std::string instanceId_; + bool instanceIdIsSet_; + std::string xLanguage_; + bool xLanguageIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ListClickHouseDataBaseParameterRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ListClickHouseDataBaseParameterRequest_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ListClickHouseDataBaseParameterResponse.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ListClickHouseDataBaseParameterResponse.h new file mode 100644 index 000000000..0df9018cc --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ListClickHouseDataBaseParameterResponse.h @@ -0,0 +1,68 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ListClickHouseDataBaseParameterResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ListClickHouseDataBaseParameterResponse_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ListClickHouseDataBaseParameterResponse + : public ModelBase, public HttpResponse +{ +public: + ListClickHouseDataBaseParameterResponse(); + virtual ~ListClickHouseDataBaseParameterResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListClickHouseDataBaseParameterResponse members + + /// + /// 库参数信息。 + /// + + std::vector& getDbParameters(); + bool dbParametersIsSet() const; + void unsetdbParameters(); + void setDbParameters(const std::vector& value); + + +protected: + std::vector dbParameters_; + bool dbParametersIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ListClickHouseDataBaseParameterResponse_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ListClickHouseDataBaseReplicationConfigRequest.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ListClickHouseDataBaseReplicationConfigRequest.h new file mode 100644 index 000000000..c4eda66b2 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ListClickHouseDataBaseReplicationConfigRequest.h @@ -0,0 +1,93 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ListClickHouseDataBaseReplicationConfigRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ListClickHouseDataBaseReplicationConfigRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ListClickHouseDataBaseReplicationConfigRequest + : public ModelBase +{ +public: + ListClickHouseDataBaseReplicationConfigRequest(); + virtual ~ListClickHouseDataBaseReplicationConfigRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListClickHouseDataBaseReplicationConfigRequest members + + /// + /// ClickHouse实例ID,严格匹配UUID规则。 + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// 数据库名。 + /// + + std::string getDatabaseName() const; + bool databaseNameIsSet() const; + void unsetdatabaseName(); + void setDatabaseName(const std::string& value); + + /// + /// 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn + /// + + std::string getXLanguage() const; + bool xLanguageIsSet() const; + void unsetxLanguage(); + void setXLanguage(const std::string& value); + + +protected: + std::string instanceId_; + bool instanceIdIsSet_; + std::string databaseName_; + bool databaseNameIsSet_; + std::string xLanguage_; + bool xLanguageIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ListClickHouseDataBaseReplicationConfigRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ListClickHouseDataBaseReplicationConfigRequest_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ListClickHouseDataBaseReplicationConfigResponse.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ListClickHouseDataBaseReplicationConfigResponse.h new file mode 100644 index 000000000..d1f1e8e2b --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ListClickHouseDataBaseReplicationConfigResponse.h @@ -0,0 +1,148 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ListClickHouseDataBaseReplicationConfigResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ListClickHouseDataBaseReplicationConfigResponse_H_ + + +#include + +#include +#include +#include + +#include +#include +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ListClickHouseDataBaseReplicationConfigResponse + : public ModelBase, public HttpResponse +{ +public: + ListClickHouseDataBaseReplicationConfigResponse(); + virtual ~ListClickHouseDataBaseReplicationConfigResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListClickHouseDataBaseReplicationConfigResponse members + + /// + /// 源实例ID。 + /// + + std::string getSourceInstanceId() const; + bool sourceInstanceIdIsSet() const; + void unsetsourceInstanceId(); + void setSourceInstanceId(const std::string& value); + + /// + /// 源实例节点ID。 + /// + + std::string getSourceNodeId() const; + bool sourceNodeIdIsSet() const; + void unsetsourceNodeId(); + void setSourceNodeId(const std::string& value); + + /// + /// + /// + + ChDatabaseConfigResponse getDatabaseInfo() const; + bool databaseInfoIsSet() const; + void unsetdatabaseInfo(); + void setDatabaseInfo(const ChDatabaseConfigResponse& value); + + /// + /// 表配置信息。 + /// + + std::vector& getTableInfos(); + bool tableInfosIsSet() const; + void unsettableInfos(); + void setTableInfos(const std::vector& value); + + /// + /// + /// + + ChDatabaseTableReplConfigInfo getTableReplConfig() const; + bool tableReplConfigIsSet() const; + void unsettableReplConfig(); + void setTableReplConfig(const ChDatabaseTableReplConfigInfo& value); + + /// + /// 同步任务表是否变化。 + /// + + bool isIsTablesChange() const; + bool isTablesChangeIsSet() const; + void unsetisTablesChange(); + void setIsTablesChange(bool value); + + /// + /// + /// + + ChDatabaseTableReplConfigInfo getNewTableReplConfig() const; + bool newTableReplConfigIsSet() const; + void unsetnewTableReplConfig(); + void setNewTableReplConfig(const ChDatabaseTableReplConfigInfo& value); + + /// + /// 最近一次alter table的异常信息。 + /// + + std::string getLastErrorOfAlterTable() const; + bool lastErrorOfAlterTableIsSet() const; + void unsetlastErrorOfAlterTable(); + void setLastErrorOfAlterTable(const std::string& value); + + +protected: + std::string sourceInstanceId_; + bool sourceInstanceIdIsSet_; + std::string sourceNodeId_; + bool sourceNodeIdIsSet_; + ChDatabaseConfigResponse databaseInfo_; + bool databaseInfoIsSet_; + std::vector tableInfos_; + bool tableInfosIsSet_; + ChDatabaseTableReplConfigInfo tableReplConfig_; + bool tableReplConfigIsSet_; + bool isTablesChange_; + bool isTablesChangeIsSet_; + ChDatabaseTableReplConfigInfo newTableReplConfig_; + bool newTableReplConfigIsSet_; + std::string lastErrorOfAlterTable_; + bool lastErrorOfAlterTableIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ListClickHouseDataBaseReplicationConfigResponse_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ListClickHouseDataBaseReplicationRequest.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ListClickHouseDataBaseReplicationRequest.h new file mode 100644 index 000000000..34dafff85 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ListClickHouseDataBaseReplicationRequest.h @@ -0,0 +1,104 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ListClickHouseDataBaseReplicationRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ListClickHouseDataBaseReplicationRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ListClickHouseDataBaseReplicationRequest + : public ModelBase +{ +public: + ListClickHouseDataBaseReplicationRequest(); + virtual ~ListClickHouseDataBaseReplicationRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListClickHouseDataBaseReplicationRequest members + + /// + /// ClickHouse实例ID,严格匹配UUID规则。 + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// 查询记录数,默认10。不能为负数,最小值为1,最大值为100。 + /// + + int32_t getLimit() const; + bool limitIsSet() const; + void unsetlimit(); + void setLimit(int32_t value); + + /// + /// 索引位置,偏移量,默认0。从第一条数据偏移offset条数据后开始查询(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。 + /// + + int32_t getOffset() const; + bool offsetIsSet() const; + void unsetoffset(); + void setOffset(int32_t value); + + /// + /// 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn + /// + + std::string getXLanguage() const; + bool xLanguageIsSet() const; + void unsetxLanguage(); + void setXLanguage(const std::string& value); + + +protected: + std::string instanceId_; + bool instanceIdIsSet_; + int32_t limit_; + bool limitIsSet_; + int32_t offset_; + bool offsetIsSet_; + std::string xLanguage_; + bool xLanguageIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ListClickHouseDataBaseReplicationRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ListClickHouseDataBaseReplicationRequest_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ListClickHouseDataBaseReplicationResponse.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ListClickHouseDataBaseReplicationResponse.h new file mode 100644 index 000000000..0064dc52d --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ListClickHouseDataBaseReplicationResponse.h @@ -0,0 +1,91 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ListClickHouseDataBaseReplicationResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ListClickHouseDataBaseReplicationResponse_H_ + + +#include + +#include +#include +#include + +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ListClickHouseDataBaseReplicationResponse + : public ModelBase, public HttpResponse +{ +public: + ListClickHouseDataBaseReplicationResponse(); + virtual ~ListClickHouseDataBaseReplicationResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListClickHouseDataBaseReplicationResponse members + + /// + /// 查询数据同步任务数。 + /// + + int32_t getTotalCount() const; + bool totalCountIsSet() const; + void unsettotalCount(); + void setTotalCount(int32_t value); + + /// + /// 数据同步任务信息。 + /// + + std::vector& getReplications(); + bool replicationsIsSet() const; + void unsetreplications(); + void setReplications(const std::vector& value); + + /// + /// taurus操作表示,重启、规格变更、倒换等。 + /// + + std::string getExtText() const; + bool extTextIsSet() const; + void unsetextText(); + void setExtText(const std::string& value); + + +protected: + int32_t totalCount_; + bool totalCountIsSet_; + std::vector replications_; + bool replicationsIsSet_; + std::string extText_; + bool extTextIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ListClickHouseDataBaseReplicationResponse_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ListClickHouseDataBaseRequest.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ListClickHouseDataBaseRequest.h new file mode 100644 index 000000000..1c40608c1 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ListClickHouseDataBaseRequest.h @@ -0,0 +1,115 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ListClickHouseDataBaseRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ListClickHouseDataBaseRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ListClickHouseDataBaseRequest + : public ModelBase +{ +public: + ListClickHouseDataBaseRequest(); + virtual ~ListClickHouseDataBaseRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListClickHouseDataBaseRequest members + + /// + /// ClickHouse实例ID,严格匹配UUID规则。 + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// 查询记录数,默认10。不能为负数,最小值为1,最大值为100。 + /// + + int32_t getLimit() const; + bool limitIsSet() const; + void unsetlimit(); + void setLimit(int32_t value); + + /// + /// 索引位置,偏移量,默认0。从第一条数据偏移offset条数据后开始查询(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。 + /// + + int32_t getOffset() const; + bool offsetIsSet() const; + void unsetoffset(); + void setOffset(int32_t value); + + /// + /// 数据库名。 + /// + + std::string getDatabaseName() const; + bool databaseNameIsSet() const; + void unsetdatabaseName(); + void setDatabaseName(const std::string& value); + + /// + /// 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn + /// + + std::string getXLanguage() const; + bool xLanguageIsSet() const; + void unsetxLanguage(); + void setXLanguage(const std::string& value); + + +protected: + std::string instanceId_; + bool instanceIdIsSet_; + int32_t limit_; + bool limitIsSet_; + int32_t offset_; + bool offsetIsSet_; + std::string databaseName_; + bool databaseNameIsSet_; + std::string xLanguage_; + bool xLanguageIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ListClickHouseDataBaseRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ListClickHouseDataBaseRequest_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ListClickHouseDataBaseResponse.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ListClickHouseDataBaseResponse.h new file mode 100644 index 000000000..3053fa972 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ListClickHouseDataBaseResponse.h @@ -0,0 +1,79 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ListClickHouseDataBaseResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ListClickHouseDataBaseResponse_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ListClickHouseDataBaseResponse + : public ModelBase, public HttpResponse +{ +public: + ListClickHouseDataBaseResponse(); + virtual ~ListClickHouseDataBaseResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListClickHouseDataBaseResponse members + + /// + /// 数据库列表。 + /// + + std::vector& getDatabases(); + bool databasesIsSet() const; + void unsetdatabases(); + void setDatabases(const std::vector& value); + + /// + /// 数据库总数。 + /// + + int32_t getTotalCount() const; + bool totalCountIsSet() const; + void unsettotalCount(); + void setTotalCount(int32_t value); + + +protected: + std::vector databases_; + bool databasesIsSet_; + int32_t totalCount_; + bool totalCountIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ListClickHouseDataBaseResponse_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ListClickHouseInstanceNodeRequest.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ListClickHouseInstanceNodeRequest.h new file mode 100644 index 000000000..b17f297d0 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ListClickHouseInstanceNodeRequest.h @@ -0,0 +1,82 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ListClickHouseInstanceNodeRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ListClickHouseInstanceNodeRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ListClickHouseInstanceNodeRequest + : public ModelBase +{ +public: + ListClickHouseInstanceNodeRequest(); + virtual ~ListClickHouseInstanceNodeRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListClickHouseInstanceNodeRequest members + + /// + /// ClickHouse实例ID,严格匹配UUID规则。 + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn + /// + + std::string getXLanguage() const; + bool xLanguageIsSet() const; + void unsetxLanguage(); + void setXLanguage(const std::string& value); + + +protected: + std::string instanceId_; + bool instanceIdIsSet_; + std::string xLanguage_; + bool xLanguageIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ListClickHouseInstanceNodeRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ListClickHouseInstanceNodeRequest_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ListClickHouseInstanceNodeResponse.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ListClickHouseInstanceNodeResponse.h new file mode 100644 index 000000000..21d5025fc --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ListClickHouseInstanceNodeResponse.h @@ -0,0 +1,68 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ListClickHouseInstanceNodeResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ListClickHouseInstanceNodeResponse_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ListClickHouseInstanceNodeResponse + : public ModelBase, public HttpResponse +{ +public: + ListClickHouseInstanceNodeResponse(); + virtual ~ListClickHouseInstanceNodeResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListClickHouseInstanceNodeResponse members + + /// + /// ClickHouse实例节点列表。 + /// + + std::vector& getNodeList(); + bool nodeListIsSet() const; + void unsetnodeList(); + void setNodeList(const std::vector& value); + + +protected: + std::vector nodeList_; + bool nodeListIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ListClickHouseInstanceNodeResponse_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ListClickHouseInstanceRequest.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ListClickHouseInstanceRequest.h new file mode 100644 index 000000000..591bb744a --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ListClickHouseInstanceRequest.h @@ -0,0 +1,93 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ListClickHouseInstanceRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ListClickHouseInstanceRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ListClickHouseInstanceRequest + : public ModelBase +{ +public: + ListClickHouseInstanceRequest(); + virtual ~ListClickHouseInstanceRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListClickHouseInstanceRequest members + + /// + /// GaussDB(for MySQL)实例ID,严格匹配UUID规则。 + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// ClickHouse实例ID,严格匹配UUID规则。 + /// + + std::string getClickhouseInstanceId() const; + bool clickhouseInstanceIdIsSet() const; + void unsetclickhouseInstanceId(); + void setClickhouseInstanceId(const std::string& value); + + /// + /// 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn + /// + + std::string getXLanguage() const; + bool xLanguageIsSet() const; + void unsetxLanguage(); + void setXLanguage(const std::string& value); + + +protected: + std::string instanceId_; + bool instanceIdIsSet_; + std::string clickhouseInstanceId_; + bool clickhouseInstanceIdIsSet_; + std::string xLanguage_; + bool xLanguageIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ListClickHouseInstanceRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ListClickHouseInstanceRequest_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ListClickHouseInstanceResponse.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ListClickHouseInstanceResponse.h new file mode 100644 index 000000000..1d08b227e --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ListClickHouseInstanceResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ListClickHouseInstanceResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ListClickHouseInstanceResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ListClickHouseInstanceResponse + : public ModelBase, public HttpResponse +{ +public: + ListClickHouseInstanceResponse(); + virtual ~ListClickHouseInstanceResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListClickHouseInstanceResponse members + + /// + /// + /// + + ChInstancesInfoRsponse_instance getInstance() const; + bool instanceIsSet() const; + void unsetinstance(); + void setInstance(const ChInstancesInfoRsponse_instance& value); + + +protected: + ChInstancesInfoRsponse_instance instance_; + bool instanceIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ListClickHouseInstanceResponse_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/PauseStarRocksDataReplication.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/PauseStarRocksDataReplication.h new file mode 100644 index 000000000..793f06255 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/PauseStarRocksDataReplication.h @@ -0,0 +1,64 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_PauseStarRocksDataReplication_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_PauseStarRocksDataReplication_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT PauseStarRocksDataReplication + : public ModelBase +{ +public: + PauseStarRocksDataReplication(); + virtual ~PauseStarRocksDataReplication(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// PauseStarRocksDataReplication members + + /// + /// 同步任务名。字符长度限制3~128位,仅支持英文大小写字母、数字以及下划线。 + /// + + std::string getTaskName() const; + bool taskNameIsSet() const; + void unsettaskName(); + void setTaskName(const std::string& value); + + +protected: + std::string taskName_; + bool taskNameIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_PauseStarRocksDataReplication_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/PauseStarRocksDataReplicationRequest.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/PauseStarRocksDataReplicationRequest.h new file mode 100644 index 000000000..8b3842261 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/PauseStarRocksDataReplicationRequest.h @@ -0,0 +1,94 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_PauseStarRocksDataReplicationRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_PauseStarRocksDataReplicationRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT PauseStarRocksDataReplicationRequest + : public ModelBase +{ +public: + PauseStarRocksDataReplicationRequest(); + virtual ~PauseStarRocksDataReplicationRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// PauseStarRocksDataReplicationRequest members + + /// + /// StarRocks实例ID,严格匹配UUID规则。 + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn + /// + + std::string getXLanguage() const; + bool xLanguageIsSet() const; + void unsetxLanguage(); + void setXLanguage(const std::string& value); + + /// + /// + /// + + PauseStarRocksDataReplication getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const PauseStarRocksDataReplication& value); + + +protected: + std::string instanceId_; + bool instanceIdIsSet_; + std::string xLanguage_; + bool xLanguageIsSet_; + PauseStarRocksDataReplication body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + PauseStarRocksDataReplicationRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_PauseStarRocksDataReplicationRequest_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/PauseStarRocksDataReplicationResponse.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/PauseStarRocksDataReplicationResponse.h new file mode 100644 index 000000000..35296b3cf --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/PauseStarRocksDataReplicationResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_PauseStarRocksDataReplicationResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_PauseStarRocksDataReplicationResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT PauseStarRocksDataReplicationResponse + : public ModelBase, public HttpResponse +{ +public: + PauseStarRocksDataReplicationResponse(); + virtual ~PauseStarRocksDataReplicationResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// PauseStarRocksDataReplicationResponse 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_GAUSSDB_V3_MODEL_PauseStarRocksDataReplicationResponse_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/RebootClickHouseInstanceRequest.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/RebootClickHouseInstanceRequest.h new file mode 100644 index 000000000..35a030258 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/RebootClickHouseInstanceRequest.h @@ -0,0 +1,82 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_RebootClickHouseInstanceRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_RebootClickHouseInstanceRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT RebootClickHouseInstanceRequest + : public ModelBase +{ +public: + RebootClickHouseInstanceRequest(); + virtual ~RebootClickHouseInstanceRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// RebootClickHouseInstanceRequest members + + /// + /// ClickHouse实例ID,严格匹配UUID规则。 + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn + /// + + std::string getXLanguage() const; + bool xLanguageIsSet() const; + void unsetxLanguage(); + void setXLanguage(const std::string& value); + + +protected: + std::string instanceId_; + bool instanceIdIsSet_; + std::string xLanguage_; + bool xLanguageIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + RebootClickHouseInstanceRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_RebootClickHouseInstanceRequest_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/RebootClickHouseInstanceResponse.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/RebootClickHouseInstanceResponse.h new file mode 100644 index 000000000..b2cf5d833 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/RebootClickHouseInstanceResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_RebootClickHouseInstanceResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_RebootClickHouseInstanceResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT RebootClickHouseInstanceResponse + : public ModelBase, public HttpResponse +{ +public: + RebootClickHouseInstanceResponse(); + virtual ~RebootClickHouseInstanceResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// RebootClickHouseInstanceResponse 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_GAUSSDB_V3_MODEL_RebootClickHouseInstanceResponse_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ResizeClickHouseFlavorRequest.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ResizeClickHouseFlavorRequest.h new file mode 100644 index 000000000..e7b21585b --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ResizeClickHouseFlavorRequest.h @@ -0,0 +1,94 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ResizeClickHouseFlavorRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ResizeClickHouseFlavorRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ResizeClickHouseFlavorRequest + : public ModelBase +{ +public: + ResizeClickHouseFlavorRequest(); + virtual ~ResizeClickHouseFlavorRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ResizeClickHouseFlavorRequest members + + /// + /// ClickHouse实例ID,严格匹配UUID规则。 + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn + /// + + std::string getXLanguage() const; + bool xLanguageIsSet() const; + void unsetxLanguage(); + void setXLanguage(const std::string& value); + + /// + /// + /// + + ClickHouseResizeFlavorRequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const ClickHouseResizeFlavorRequestBody& value); + + +protected: + std::string instanceId_; + bool instanceIdIsSet_; + std::string xLanguage_; + bool xLanguageIsSet_; + ClickHouseResizeFlavorRequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ResizeClickHouseFlavorRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ResizeClickHouseFlavorRequest_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ResizeClickHouseFlavorResponse.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ResizeClickHouseFlavorResponse.h new file mode 100644 index 000000000..6f8d2f9c9 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ResizeClickHouseFlavorResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ResizeClickHouseFlavorResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ResizeClickHouseFlavorResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ResizeClickHouseFlavorResponse + : public ModelBase, public HttpResponse +{ +public: + ResizeClickHouseFlavorResponse(); + virtual ~ResizeClickHouseFlavorResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ResizeClickHouseFlavorResponse members + + /// + /// 请求结果。 + /// + + std::string getResult() const; + bool resultIsSet() const; + void unsetresult(); + void setResult(const std::string& value); + + +protected: + std::string result_; + bool resultIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ResizeClickHouseFlavorResponse_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ResizeClickHouseInstanceRequest.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ResizeClickHouseInstanceRequest.h new file mode 100644 index 000000000..db0709ab2 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ResizeClickHouseInstanceRequest.h @@ -0,0 +1,94 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ResizeClickHouseInstanceRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ResizeClickHouseInstanceRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ResizeClickHouseInstanceRequest + : public ModelBase +{ +public: + ResizeClickHouseInstanceRequest(); + virtual ~ResizeClickHouseInstanceRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ResizeClickHouseInstanceRequest members + + /// + /// ClickHouse实例ID,严格匹配UUID规则。 + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn + /// + + std::string getXLanguage() const; + bool xLanguageIsSet() const; + void unsetxLanguage(); + void setXLanguage(const std::string& value); + + /// + /// + /// + + ChEnlargeVolumeRequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const ChEnlargeVolumeRequestBody& value); + + +protected: + std::string instanceId_; + bool instanceIdIsSet_; + std::string xLanguage_; + bool xLanguageIsSet_; + ChEnlargeVolumeRequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ResizeClickHouseInstanceRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ResizeClickHouseInstanceRequest_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ResizeClickHouseInstanceResponse.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ResizeClickHouseInstanceResponse.h new file mode 100644 index 000000000..9c6cc4c65 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ResizeClickHouseInstanceResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ResizeClickHouseInstanceResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ResizeClickHouseInstanceResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ResizeClickHouseInstanceResponse + : public ModelBase, public HttpResponse +{ +public: + ResizeClickHouseInstanceResponse(); + virtual ~ResizeClickHouseInstanceResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ResizeClickHouseInstanceResponse 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_GAUSSDB_V3_MODEL_ResizeClickHouseInstanceResponse_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ResumeStarRocksDataReplication.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ResumeStarRocksDataReplication.h new file mode 100644 index 000000000..da6e3cad8 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ResumeStarRocksDataReplication.h @@ -0,0 +1,64 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ResumeStarRocksDataReplication_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ResumeStarRocksDataReplication_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ResumeStarRocksDataReplication + : public ModelBase +{ +public: + ResumeStarRocksDataReplication(); + virtual ~ResumeStarRocksDataReplication(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ResumeStarRocksDataReplication members + + /// + /// 同步任务名。字符长度限制3~128位,仅支持英文大小写字母、数字以及下划线。 + /// + + std::string getTaskName() const; + bool taskNameIsSet() const; + void unsettaskName(); + void setTaskName(const std::string& value); + + +protected: + std::string taskName_; + bool taskNameIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ResumeStarRocksDataReplication_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ResumeStarRocksDataReplicationRequest.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ResumeStarRocksDataReplicationRequest.h new file mode 100644 index 000000000..8e301a6a4 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ResumeStarRocksDataReplicationRequest.h @@ -0,0 +1,94 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ResumeStarRocksDataReplicationRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ResumeStarRocksDataReplicationRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ResumeStarRocksDataReplicationRequest + : public ModelBase +{ +public: + ResumeStarRocksDataReplicationRequest(); + virtual ~ResumeStarRocksDataReplicationRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ResumeStarRocksDataReplicationRequest members + + /// + /// StarRocks实例ID,严格匹配UUID规则。 + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn + /// + + std::string getXLanguage() const; + bool xLanguageIsSet() const; + void unsetxLanguage(); + void setXLanguage(const std::string& value); + + /// + /// + /// + + ResumeStarRocksDataReplication getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const ResumeStarRocksDataReplication& value); + + +protected: + std::string instanceId_; + bool instanceIdIsSet_; + std::string xLanguage_; + bool xLanguageIsSet_; + ResumeStarRocksDataReplication body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ResumeStarRocksDataReplicationRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ResumeStarRocksDataReplicationRequest_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ResumeStarRocksDataReplicationResponse.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ResumeStarRocksDataReplicationResponse.h new file mode 100644 index 000000000..cfebeb81d --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ResumeStarRocksDataReplicationResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ResumeStarRocksDataReplicationResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ResumeStarRocksDataReplicationResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ResumeStarRocksDataReplicationResponse + : public ModelBase, public HttpResponse +{ +public: + ResumeStarRocksDataReplicationResponse(); + virtual ~ResumeStarRocksDataReplicationResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ResumeStarRocksDataReplicationResponse 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_GAUSSDB_V3_MODEL_ResumeStarRocksDataReplicationResponse_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ShowClickHouseDatabaseUserRequest.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ShowClickHouseDatabaseUserRequest.h new file mode 100644 index 000000000..32b6efdae --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ShowClickHouseDatabaseUserRequest.h @@ -0,0 +1,115 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ShowClickHouseDatabaseUserRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ShowClickHouseDatabaseUserRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ShowClickHouseDatabaseUserRequest + : public ModelBase +{ +public: + ShowClickHouseDatabaseUserRequest(); + virtual ~ShowClickHouseDatabaseUserRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ShowClickHouseDatabaseUserRequest members + + /// + /// ClickHouse实例ID,严格匹配UUID规则。 + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn + /// + + std::string getXLanguage() const; + bool xLanguageIsSet() const; + void unsetxLanguage(); + void setXLanguage(const std::string& value); + + /// + /// 查询记录数,默认10。不能为负数,最小值为1,最大值为100。 + /// + + int32_t getLimit() const; + bool limitIsSet() const; + void unsetlimit(); + void setLimit(int32_t value); + + /// + /// 索引位置,偏移量。默认0。从第一条数据偏移offset条数据后开始查询(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。 + /// + + int32_t getOffset() const; + bool offsetIsSet() const; + void unsetoffset(); + void setOffset(int32_t value); + + /// + /// 数据库账户。 + /// + + std::string getUserName() const; + bool userNameIsSet() const; + void unsetuserName(); + void setUserName(const std::string& value); + + +protected: + std::string instanceId_; + bool instanceIdIsSet_; + std::string xLanguage_; + bool xLanguageIsSet_; + int32_t limit_; + bool limitIsSet_; + int32_t offset_; + bool offsetIsSet_; + std::string userName_; + bool userNameIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ShowClickHouseDatabaseUserRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ShowClickHouseDatabaseUserRequest_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ShowClickHouseDatabaseUserResponse.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ShowClickHouseDatabaseUserResponse.h new file mode 100644 index 000000000..fbf3ff08a --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ShowClickHouseDatabaseUserResponse.h @@ -0,0 +1,79 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ShowClickHouseDatabaseUserResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ShowClickHouseDatabaseUserResponse_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ShowClickHouseDatabaseUserResponse + : public ModelBase, public HttpResponse +{ +public: + ShowClickHouseDatabaseUserResponse(); + virtual ~ShowClickHouseDatabaseUserResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ShowClickHouseDatabaseUserResponse members + + /// + /// 数据库账户信息。 + /// + + std::vector& getUserDetails(); + bool userDetailsIsSet() const; + void unsetuserDetails(); + void setUserDetails(const std::vector& value); + + /// + /// 数据库账户数量。 + /// + + int32_t getTotalCount() const; + bool totalCountIsSet() const; + void unsettotalCount(); + void setTotalCount(int32_t value); + + +protected: + std::vector userDetails_; + bool userDetailsIsSet_; + int32_t totalCount_; + bool totalCountIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ShowClickHouseDatabaseUserResponse_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ShowClickHouseDatabaseUsers_user_details.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ShowClickHouseDatabaseUsers_user_details.h new file mode 100644 index 000000000..2cb2ad14b --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ShowClickHouseDatabaseUsers_user_details.h @@ -0,0 +1,98 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ShowClickHouseDatabaseUsers_user_details_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ShowClickHouseDatabaseUsers_user_details_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ShowClickHouseDatabaseUsers_user_details + : public ModelBase +{ +public: + ShowClickHouseDatabaseUsers_user_details(); + virtual ~ShowClickHouseDatabaseUsers_user_details(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ShowClickHouseDatabaseUsers_user_details members + + /// + /// 数据库账户名。 + /// + + std::string getUserName() const; + bool userNameIsSet() const; + void unsetuserName(); + void setUserName(const std::string& value); + + /// + /// 已授权数据库。 + /// + + std::vector& getDatabases(); + bool databasesIsSet() const; + void unsetdatabases(); + void setDatabases(const std::vector& value); + + /// + /// DML权限。 取值范围: - 1:只读权限 - 2:读取和设置权限 + /// + + int32_t getDml() const; + bool dmlIsSet() const; + void unsetdml(); + void setDml(int32_t value); + + /// + /// DDL授权。 取值范围: - 0:无DDL权限 - 1:有DDL权限 + /// + + int32_t getDdl() const; + bool ddlIsSet() const; + void unsetddl(); + void setDdl(int32_t value); + + +protected: + std::string userName_; + bool userNameIsSet_; + std::vector databases_; + bool databasesIsSet_; + int32_t dml_; + bool dmlIsSet_; + int32_t ddl_; + bool ddlIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ShowClickHouseDatabaseUsers_user_details_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ShowClickHouseLtsConfigRequest.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ShowClickHouseLtsConfigRequest.h new file mode 100644 index 000000000..b86b76186 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ShowClickHouseLtsConfigRequest.h @@ -0,0 +1,126 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ShowClickHouseLtsConfigRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ShowClickHouseLtsConfigRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ShowClickHouseLtsConfigRequest + : public ModelBase +{ +public: + ShowClickHouseLtsConfigRequest(); + virtual ~ShowClickHouseLtsConfigRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ShowClickHouseLtsConfigRequest members + + /// + /// 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn + /// + + std::string getXLanguage() const; + bool xLanguageIsSet() const; + void unsetxLanguage(); + void setXLanguage(const std::string& value); + + /// + /// ClickHouse实例ID,严格匹配UUID规则。 + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// 企业项目id。 + /// + + std::string getEnterpriseProjectId() const; + bool enterpriseProjectIdIsSet() const; + void unsetenterpriseProjectId(); + void setEnterpriseProjectId(const std::string& value); + + /// + /// 实例名称。 + /// + + std::string getInstanceName() const; + bool instanceNameIsSet() const; + void unsetinstanceName(); + void setInstanceName(const std::string& value); + + /// + /// 查询记录数,默认10。不能为负数,最小值为1,最大值为100。 + /// + + int32_t getLimit() const; + bool limitIsSet() const; + void unsetlimit(); + void setLimit(int32_t value); + + /// + /// 索引位置,偏移量,默认0。从第一条数据偏移offset条数据后开始查询(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。 + /// + + int32_t getOffset() const; + bool offsetIsSet() const; + void unsetoffset(); + void setOffset(int32_t value); + + +protected: + std::string xLanguage_; + bool xLanguageIsSet_; + std::string instanceId_; + bool instanceIdIsSet_; + std::string enterpriseProjectId_; + bool enterpriseProjectIdIsSet_; + std::string instanceName_; + bool instanceNameIsSet_; + int32_t limit_; + bool limitIsSet_; + int32_t offset_; + bool offsetIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ShowClickHouseLtsConfigRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ShowClickHouseLtsConfigRequest_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ShowClickHouseLtsConfigResponse.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ShowClickHouseLtsConfigResponse.h new file mode 100644 index 000000000..40abc29e7 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ShowClickHouseLtsConfigResponse.h @@ -0,0 +1,79 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ShowClickHouseLtsConfigResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ShowClickHouseLtsConfigResponse_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ShowClickHouseLtsConfigResponse + : public ModelBase, public HttpResponse +{ +public: + ShowClickHouseLtsConfigResponse(); + virtual ~ShowClickHouseLtsConfigResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ShowClickHouseLtsConfigResponse members + + /// + /// 实例LTS配置信息。 + /// + + std::vector& getInstanceLtsConfigs(); + bool instanceLtsConfigsIsSet() const; + void unsetinstanceLtsConfigs(); + void setInstanceLtsConfigs(const std::vector& value); + + /// + /// 实例总数。 + /// + + int32_t getTotalCount() const; + bool totalCountIsSet() const; + void unsettotalCount(); + void setTotalCount(int32_t value); + + +protected: + std::vector instanceLtsConfigs_; + bool instanceLtsConfigsIsSet_; + int32_t totalCount_; + bool totalCountIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ShowClickHouseLtsConfigResponse_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ShowClickHouseSlowLogDetailRequest.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ShowClickHouseSlowLogDetailRequest.h new file mode 100644 index 000000000..2c8b2d157 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ShowClickHouseSlowLogDetailRequest.h @@ -0,0 +1,94 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ShowClickHouseSlowLogDetailRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ShowClickHouseSlowLogDetailRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ShowClickHouseSlowLogDetailRequest + : public ModelBase +{ +public: + ShowClickHouseSlowLogDetailRequest(); + virtual ~ShowClickHouseSlowLogDetailRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ShowClickHouseSlowLogDetailRequest members + + /// + /// ClickHouse实例ID,严格匹配UUID规则。 + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn + /// + + std::string getXLanguage() const; + bool xLanguageIsSet() const; + void unsetxLanguage(); + void setXLanguage(const std::string& value); + + /// + /// + /// + + ChSlowLogQueryRequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const ChSlowLogQueryRequestBody& value); + + +protected: + std::string instanceId_; + bool instanceIdIsSet_; + std::string xLanguage_; + bool xLanguageIsSet_; + ChSlowLogQueryRequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ShowClickHouseSlowLogDetailRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ShowClickHouseSlowLogDetailRequest_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ShowClickHouseSlowLogDetailResponse.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ShowClickHouseSlowLogDetailResponse.h new file mode 100644 index 000000000..7a5af4e1f --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ShowClickHouseSlowLogDetailResponse.h @@ -0,0 +1,68 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ShowClickHouseSlowLogDetailResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ShowClickHouseSlowLogDetailResponse_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ShowClickHouseSlowLogDetailResponse + : public ModelBase, public HttpResponse +{ +public: + ShowClickHouseSlowLogDetailResponse(); + virtual ~ShowClickHouseSlowLogDetailResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ShowClickHouseSlowLogDetailResponse members + + /// + /// 慢日志列表。 + /// + + std::vector& getSlowLogList(); + bool slowLogListIsSet() const; + void unsetslowLogList(); + void setSlowLogList(const std::vector& value); + + +protected: + std::vector slowLogList_; + bool slowLogListIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ShowClickHouseSlowLogDetailResponse_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ShowClickHouseSlowLogSensitiveStatusRequest.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ShowClickHouseSlowLogSensitiveStatusRequest.h new file mode 100644 index 000000000..588d1b848 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ShowClickHouseSlowLogSensitiveStatusRequest.h @@ -0,0 +1,82 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ShowClickHouseSlowLogSensitiveStatusRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ShowClickHouseSlowLogSensitiveStatusRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ShowClickHouseSlowLogSensitiveStatusRequest + : public ModelBase +{ +public: + ShowClickHouseSlowLogSensitiveStatusRequest(); + virtual ~ShowClickHouseSlowLogSensitiveStatusRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ShowClickHouseSlowLogSensitiveStatusRequest members + + /// + /// ClickHouse实例ID,严格匹配UUID规则。 + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn + /// + + std::string getXLanguage() const; + bool xLanguageIsSet() const; + void unsetxLanguage(); + void setXLanguage(const std::string& value); + + +protected: + std::string instanceId_; + bool instanceIdIsSet_; + std::string xLanguage_; + bool xLanguageIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ShowClickHouseSlowLogSensitiveStatusRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ShowClickHouseSlowLogSensitiveStatusRequest_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/ShowClickHouseSlowLogSensitiveStatusResponse.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/ShowClickHouseSlowLogSensitiveStatusResponse.h new file mode 100644 index 000000000..4193221b2 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/ShowClickHouseSlowLogSensitiveStatusResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ShowClickHouseSlowLogSensitiveStatusResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ShowClickHouseSlowLogSensitiveStatusResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT ShowClickHouseSlowLogSensitiveStatusResponse + : public ModelBase, public HttpResponse +{ +public: + ShowClickHouseSlowLogSensitiveStatusResponse(); + virtual ~ShowClickHouseSlowLogSensitiveStatusResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ShowClickHouseSlowLogSensitiveStatusResponse members + + /// + /// 慢日志脱敏开关。 + /// + + std::string getOpenSlowLogSwitch() const; + bool openSlowLogSwitchIsSet() const; + void unsetopenSlowLogSwitch(); + void setOpenSlowLogSwitch(const std::string& value); + + +protected: + std::string openSlowLogSwitch_; + bool openSlowLogSwitchIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_ShowClickHouseSlowLogSensitiveStatusResponse_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/SrCreateInstanceRsp_instance_tags_info.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/SrCreateInstanceRsp_instance_tags_info.h index 7f2dafced..8e10c6c49 100644 --- a/gaussdb/include/huaweicloud/gaussdb/v3/model/SrCreateInstanceRsp_instance_tags_info.h +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/SrCreateInstanceRsp_instance_tags_info.h @@ -9,9 +9,9 @@ #include #include -#include #include #include +#include namespace HuaweiCloud { namespace Sdk { @@ -44,10 +44,10 @@ class HUAWEICLOUD_GAUSSDB_V3_EXPORT SrCreateInstanceRsp_instance_tags_info /// 用户标签。默认为空。 /// - std::vector& getTags(); + std::vector& getTags(); bool tagsIsSet() const; void unsettags(); - void setTags(const std::vector& value); + void setTags(const std::vector& value); /// /// 系统标签。 @@ -60,7 +60,7 @@ class HUAWEICLOUD_GAUSSDB_V3_EXPORT SrCreateInstanceRsp_instance_tags_info protected: - std::vector tags_; + std::vector tags_; bool tagsIsSet_; std::vector sysTags_; bool sysTagsIsSet_; diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/UpdateChDatabaseConfigRequestBody.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/UpdateChDatabaseConfigRequestBody.h new file mode 100644 index 000000000..328c8d5e0 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/UpdateChDatabaseConfigRequestBody.h @@ -0,0 +1,97 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_UpdateChDatabaseConfigRequestBody_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_UpdateChDatabaseConfigRequestBody_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 修改数据同步 +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT UpdateChDatabaseConfigRequestBody + : public ModelBase +{ +public: + UpdateChDatabaseConfigRequestBody(); + virtual ~UpdateChDatabaseConfigRequestBody(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpdateChDatabaseConfigRequestBody members + + /// + /// 源实例ID,严格匹配UUID规则。 + /// + + std::string getSourceInstanceId() const; + bool sourceInstanceIdIsSet() const; + void unsetsourceInstanceId(); + void setSourceInstanceId(const std::string& value); + + /// + /// 源实例节点ID。 + /// + + std::string getSourceNodeId() const; + bool sourceNodeIdIsSet() const; + void unsetsourceNodeId(); + void setSourceNodeId(const std::string& value); + + /// + /// 数据库名。 + /// + + std::string getDatabase() const; + bool databaseIsSet() const; + void unsetdatabase(); + void setDatabase(const std::string& value); + + /// + /// 配置值。仅支持修改同步范围,不支持修改白名单或黑名单类型。 例如:创建了白名单数据同步,调用本接口修改时, 支持 \"value\":\"{\\\"white_list\\\":\\\"test1,test2,test3\\\"}\" 不支持 \"value\":\"{\\\"black_list\\\":\\\"test1,test2,test3\\\"}\" + /// + + std::string getValue() const; + bool valueIsSet() const; + void unsetvalue(); + void setValue(const std::string& value); + + +protected: + std::string sourceInstanceId_; + bool sourceInstanceIdIsSet_; + std::string sourceNodeId_; + bool sourceNodeIdIsSet_; + std::string database_; + bool databaseIsSet_; + std::string value_; + bool valueIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_UpdateChDatabaseConfigRequestBody_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/UpdateClickHouseDataBaseConfigRequest.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/UpdateClickHouseDataBaseConfigRequest.h new file mode 100644 index 000000000..53138c6cd --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/UpdateClickHouseDataBaseConfigRequest.h @@ -0,0 +1,94 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_UpdateClickHouseDataBaseConfigRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_UpdateClickHouseDataBaseConfigRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT UpdateClickHouseDataBaseConfigRequest + : public ModelBase +{ +public: + UpdateClickHouseDataBaseConfigRequest(); + virtual ~UpdateClickHouseDataBaseConfigRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpdateClickHouseDataBaseConfigRequest members + + /// + /// ClickHouse实例ID,严格匹配UUID规则。 + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn + /// + + std::string getXLanguage() const; + bool xLanguageIsSet() const; + void unsetxLanguage(); + void setXLanguage(const std::string& value); + + /// + /// + /// + + UpdateChDatabaseConfigRequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const UpdateChDatabaseConfigRequestBody& value); + + +protected: + std::string instanceId_; + bool instanceIdIsSet_; + std::string xLanguage_; + bool xLanguageIsSet_; + UpdateChDatabaseConfigRequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + UpdateClickHouseDataBaseConfigRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_UpdateClickHouseDataBaseConfigRequest_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/UpdateClickHouseDataBaseConfigResponse.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/UpdateClickHouseDataBaseConfigResponse.h new file mode 100644 index 000000000..5fa6bd045 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/UpdateClickHouseDataBaseConfigResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_UpdateClickHouseDataBaseConfigResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_UpdateClickHouseDataBaseConfigResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT UpdateClickHouseDataBaseConfigResponse + : public ModelBase, public HttpResponse +{ +public: + UpdateClickHouseDataBaseConfigResponse(); + virtual ~UpdateClickHouseDataBaseConfigResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpdateClickHouseDataBaseConfigResponse 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_GAUSSDB_V3_MODEL_UpdateClickHouseDataBaseConfigResponse_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/UpdateClickHouseDatabaseUserPasswordRequest.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/UpdateClickHouseDatabaseUserPasswordRequest.h new file mode 100644 index 000000000..86457989d --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/UpdateClickHouseDatabaseUserPasswordRequest.h @@ -0,0 +1,94 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_UpdateClickHouseDatabaseUserPasswordRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_UpdateClickHouseDatabaseUserPasswordRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT UpdateClickHouseDatabaseUserPasswordRequest + : public ModelBase +{ +public: + UpdateClickHouseDatabaseUserPasswordRequest(); + virtual ~UpdateClickHouseDatabaseUserPasswordRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpdateClickHouseDatabaseUserPasswordRequest members + + /// + /// ClickHouse实例ID,严格匹配UUID规则。 + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn + /// + + std::string getXLanguage() const; + bool xLanguageIsSet() const; + void unsetxLanguage(); + void setXLanguage(const std::string& value); + + /// + /// + /// + + ClickHouseDatabaseUserPWinfo getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const ClickHouseDatabaseUserPWinfo& value); + + +protected: + std::string instanceId_; + bool instanceIdIsSet_; + std::string xLanguage_; + bool xLanguageIsSet_; + ClickHouseDatabaseUserPWinfo body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + UpdateClickHouseDatabaseUserPasswordRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_UpdateClickHouseDatabaseUserPasswordRequest_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/UpdateClickHouseDatabaseUserPasswordResponse.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/UpdateClickHouseDatabaseUserPasswordResponse.h new file mode 100644 index 000000000..f825d2692 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/UpdateClickHouseDatabaseUserPasswordResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_UpdateClickHouseDatabaseUserPasswordResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_UpdateClickHouseDatabaseUserPasswordResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT UpdateClickHouseDatabaseUserPasswordResponse + : public ModelBase, public HttpResponse +{ +public: + UpdateClickHouseDatabaseUserPasswordResponse(); + virtual ~UpdateClickHouseDatabaseUserPasswordResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpdateClickHouseDatabaseUserPasswordResponse members + + /// + /// 请求结果。 + /// + + std::string getResult() const; + bool resultIsSet() const; + void unsetresult(); + void setResult(const std::string& value); + + +protected: + std::string result_; + bool resultIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_UpdateClickHouseDatabaseUserPasswordResponse_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/UpdateClickHouseDatabaseUserPermissionRequest.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/UpdateClickHouseDatabaseUserPermissionRequest.h new file mode 100644 index 000000000..cf4ecedbf --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/UpdateClickHouseDatabaseUserPermissionRequest.h @@ -0,0 +1,94 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_UpdateClickHouseDatabaseUserPermissionRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_UpdateClickHouseDatabaseUserPermissionRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT UpdateClickHouseDatabaseUserPermissionRequest + : public ModelBase +{ +public: + UpdateClickHouseDatabaseUserPermissionRequest(); + virtual ~UpdateClickHouseDatabaseUserPermissionRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpdateClickHouseDatabaseUserPermissionRequest members + + /// + /// ClickHouse实例ID,严格匹配UUID规则。 + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn + /// + + std::string getXLanguage() const; + bool xLanguageIsSet() const; + void unsetxLanguage(); + void setXLanguage(const std::string& value); + + /// + /// + /// + + ClickHouseDatabaseUserPSinfo getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const ClickHouseDatabaseUserPSinfo& value); + + +protected: + std::string instanceId_; + bool instanceIdIsSet_; + std::string xLanguage_; + bool xLanguageIsSet_; + ClickHouseDatabaseUserPSinfo body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + UpdateClickHouseDatabaseUserPermissionRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_UpdateClickHouseDatabaseUserPermissionRequest_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/UpdateClickHouseDatabaseUserPermissionResponse.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/UpdateClickHouseDatabaseUserPermissionResponse.h new file mode 100644 index 000000000..07a955c7c --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/UpdateClickHouseDatabaseUserPermissionResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_UpdateClickHouseDatabaseUserPermissionResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_UpdateClickHouseDatabaseUserPermissionResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT UpdateClickHouseDatabaseUserPermissionResponse + : public ModelBase, public HttpResponse +{ +public: + UpdateClickHouseDatabaseUserPermissionResponse(); + virtual ~UpdateClickHouseDatabaseUserPermissionResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpdateClickHouseDatabaseUserPermissionResponse members + + /// + /// 请求结果。 + /// + + std::string getResult() const; + bool resultIsSet() const; + void unsetresult(); + void setResult(const std::string& value); + + +protected: + std::string result_; + bool resultIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_UpdateClickHouseDatabaseUserPermissionResponse_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/UpdateClickHouseLtsConfigRequest.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/UpdateClickHouseLtsConfigRequest.h new file mode 100644 index 000000000..6f9f1501b --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/UpdateClickHouseLtsConfigRequest.h @@ -0,0 +1,83 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_UpdateClickHouseLtsConfigRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_UpdateClickHouseLtsConfigRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT UpdateClickHouseLtsConfigRequest + : public ModelBase +{ +public: + UpdateClickHouseLtsConfigRequest(); + virtual ~UpdateClickHouseLtsConfigRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpdateClickHouseLtsConfigRequest members + + /// + /// 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn + /// + + std::string getXLanguage() const; + bool xLanguageIsSet() const; + void unsetxLanguage(); + void setXLanguage(const std::string& value); + + /// + /// + /// + + CreateChLtsConfigRequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const CreateChLtsConfigRequestBody& value); + + +protected: + std::string xLanguage_; + bool xLanguageIsSet_; + CreateChLtsConfigRequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + UpdateClickHouseLtsConfigRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_UpdateClickHouseLtsConfigRequest_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/UpdateClickHouseLtsConfigResponse.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/UpdateClickHouseLtsConfigResponse.h new file mode 100644 index 000000000..60708fd68 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/UpdateClickHouseLtsConfigResponse.h @@ -0,0 +1,55 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_UpdateClickHouseLtsConfigResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_UpdateClickHouseLtsConfigResponse_H_ + + +#include + +#include +#include +#include + + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT UpdateClickHouseLtsConfigResponse + : public ModelBase, public HttpResponse +{ +public: + UpdateClickHouseLtsConfigResponse(); + virtual ~UpdateClickHouseLtsConfigResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpdateClickHouseLtsConfigResponse members + + +protected: + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_UpdateClickHouseLtsConfigResponse_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/UpdateClickHouseSlowLogSensitiveStatusRequest.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/UpdateClickHouseSlowLogSensitiveStatusRequest.h new file mode 100644 index 000000000..69304e431 --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/UpdateClickHouseSlowLogSensitiveStatusRequest.h @@ -0,0 +1,94 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_UpdateClickHouseSlowLogSensitiveStatusRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_UpdateClickHouseSlowLogSensitiveStatusRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT UpdateClickHouseSlowLogSensitiveStatusRequest + : public ModelBase +{ +public: + UpdateClickHouseSlowLogSensitiveStatusRequest(); + virtual ~UpdateClickHouseSlowLogSensitiveStatusRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpdateClickHouseSlowLogSensitiveStatusRequest members + + /// + /// ClickHouse实例ID,严格匹配UUID规则。 + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn + /// + + std::string getXLanguage() const; + bool xLanguageIsSet() const; + void unsetxLanguage(); + void setXLanguage(const std::string& value); + + /// + /// + /// + + ChSlowlogSensitiveResponse getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const ChSlowlogSensitiveResponse& value); + + +protected: + std::string instanceId_; + bool instanceIdIsSet_; + std::string xLanguage_; + bool xLanguageIsSet_; + ChSlowlogSensitiveResponse body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + UpdateClickHouseSlowLogSensitiveStatusRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_UpdateClickHouseSlowLogSensitiveStatusRequest_H_ diff --git a/gaussdb/include/huaweicloud/gaussdb/v3/model/UpdateClickHouseSlowLogSensitiveStatusResponse.h b/gaussdb/include/huaweicloud/gaussdb/v3/model/UpdateClickHouseSlowLogSensitiveStatusResponse.h new file mode 100644 index 000000000..33fa693eb --- /dev/null +++ b/gaussdb/include/huaweicloud/gaussdb/v3/model/UpdateClickHouseSlowLogSensitiveStatusResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_UpdateClickHouseSlowLogSensitiveStatusResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_UpdateClickHouseSlowLogSensitiveStatusResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GAUSSDB_V3_EXPORT UpdateClickHouseSlowLogSensitiveStatusResponse + : public ModelBase, public HttpResponse +{ +public: + UpdateClickHouseSlowLogSensitiveStatusResponse(); + virtual ~UpdateClickHouseSlowLogSensitiveStatusResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpdateClickHouseSlowLogSensitiveStatusResponse members + + /// + /// 慢日志脱敏开关。 + /// + + std::string getOpenSlowLogSwitch() const; + bool openSlowLogSwitchIsSet() const; + void unsetopenSlowLogSwitch(); + void setOpenSlowLogSwitch(const std::string& value); + + +protected: + std::string openSlowLogSwitch_; + bool openSlowLogSwitchIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_UpdateClickHouseSlowLogSensitiveStatusResponse_H_ diff --git a/gaussdb/src/v3/GaussDBClient.cpp b/gaussdb/src/v3/GaussDBClient.cpp index 0f78a7cd0..02c9bd6db 100644 --- a/gaussdb/src/v3/GaussDBClient.cpp +++ b/gaussdb/src/v3/GaussDBClient.cpp @@ -5736,9 +5736,9 @@ std::shared_ptr GaussDBClient::upgradeProxyVersion( return localVarResult; } -std::shared_ptr GaussDBClient::checkDataBaseConfig(CheckDataBaseConfigRequest &request) +std::shared_ptr GaussDBClient::checkClickHouseDataBaseConfig(CheckClickHouseDataBaseConfigRequest &request) { - std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication/database-config-check"; + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/clickhouse/replication/database-check"; std::map localVarQueryParams; std::map localVarHeaderParams; @@ -5766,9 +5766,9 @@ std::shared_ptr GaussDBClient::checkDataBaseConfig( } std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, - localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForCheckDataBaseConfig()); + localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForCheckClickHouseDataBaseConfig()); - std::shared_ptr localVarResult = std::make_shared(); + std::shared_ptr localVarResult = std::make_shared(); localVarResult->setStatusCode(res->getStatusCode()); localVarResult->setHeaderParams(res->getHeaderParams()); localVarResult->setHttpBody(res->getHttpBody()); @@ -5781,15 +5781,16 @@ std::shared_ptr GaussDBClient::checkDataBaseConfig( return localVarResult; } -std::shared_ptr GaussDBClient::checkStarRocksResource(CheckStarRocksResourceRequest &request) +std::shared_ptr GaussDBClient::checkClickHouseTableConfig(CheckClickHouseTableConfigRequest &request) { - std::string localVarPath = "/v3/{project_id}/starrocks/resource-check"; + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/clickhouse/replication/table-check"; std::map localVarQueryParams; std::map localVarHeaderParams; std::map localVarFormParams; std::map localVarPathParams; + localVarPathParams["instance_id"] = parameterToString(request.getInstanceId()); bool isJson = false; bool isMultiPart = false; @@ -5810,9 +5811,9 @@ std::shared_ptr GaussDBClient::checkStarRocksRes } std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, - localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForCheckStarRocksResource()); + localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForCheckClickHouseTableConfig()); - std::shared_ptr localVarResult = std::make_shared(); + std::shared_ptr localVarResult = std::make_shared(); localVarResult->setStatusCode(res->getStatusCode()); localVarResult->setHeaderParams(res->getHeaderParams()); localVarResult->setHttpBody(res->getHttpBody()); @@ -5825,9 +5826,9 @@ std::shared_ptr GaussDBClient::checkStarRocksRes return localVarResult; } -std::shared_ptr GaussDBClient::checkTableConfig(CheckTableConfigRequest &request) +std::shared_ptr GaussDBClient::checkDataBaseConfig(CheckDataBaseConfigRequest &request) { - std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication/table-config-check"; + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication/database-config-check"; std::map localVarQueryParams; std::map localVarHeaderParams; @@ -5855,9 +5856,9 @@ std::shared_ptr GaussDBClient::checkTableConfig(CheckT } std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, - localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForCheckTableConfig()); + localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForCheckDataBaseConfig()); - std::shared_ptr localVarResult = std::make_shared(); + std::shared_ptr localVarResult = std::make_shared(); localVarResult->setStatusCode(res->getStatusCode()); localVarResult->setHeaderParams(res->getHeaderParams()); localVarResult->setHttpBody(res->getHttpBody()); @@ -5870,16 +5871,15 @@ std::shared_ptr GaussDBClient::checkTableConfig(CheckT return localVarResult; } -std::shared_ptr GaussDBClient::createStarRocksDataReplication(CreateStarRocksDataReplicationRequest &request) +std::shared_ptr GaussDBClient::checkStarRocksResource(CheckStarRocksResourceRequest &request) { - std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication"; + std::string localVarPath = "/v3/{project_id}/starrocks/resource-check"; std::map localVarQueryParams; std::map localVarHeaderParams; std::map localVarFormParams; std::map localVarPathParams; - localVarPathParams["instance_id"] = parameterToString(request.getInstanceId()); bool isJson = false; bool isMultiPart = false; @@ -5900,9 +5900,9 @@ std::shared_ptr GaussDBClient::createSta } std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, - localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForCreateStarRocksDataReplication()); + localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForCheckStarRocksResource()); - std::shared_ptr localVarResult = std::make_shared(); + std::shared_ptr localVarResult = std::make_shared(); localVarResult->setStatusCode(res->getStatusCode()); localVarResult->setHeaderParams(res->getHeaderParams()); localVarResult->setHttpBody(res->getHttpBody()); @@ -5915,9 +5915,9 @@ std::shared_ptr GaussDBClient::createSta return localVarResult; } -std::shared_ptr GaussDBClient::createStarRocksDatabaseUser(CreateStarRocksDatabaseUserRequest &request) +std::shared_ptr GaussDBClient::checkTableConfig(CheckTableConfigRequest &request) { - std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/starrocks/users"; + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication/table-config-check"; std::map localVarQueryParams; std::map localVarHeaderParams; @@ -5945,9 +5945,9 @@ std::shared_ptr GaussDBClient::createStarRo } std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, - localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForCreateStarRocksDatabaseUser()); + localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForCheckTableConfig()); - std::shared_ptr localVarResult = std::make_shared(); + std::shared_ptr localVarResult = std::make_shared(); localVarResult->setStatusCode(res->getStatusCode()); localVarResult->setHeaderParams(res->getHeaderParams()); localVarResult->setHttpBody(res->getHttpBody()); @@ -5960,9 +5960,9 @@ std::shared_ptr GaussDBClient::createStarRo return localVarResult; } -std::shared_ptr GaussDBClient::createStarrocksInstance(CreateStarrocksInstanceRequest &request) +std::shared_ptr GaussDBClient::createClickHouseDataBaseReplication(CreateClickHouseDataBaseReplicationRequest &request) { - std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/starrocks"; + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/clickhouse/replication"; std::map localVarQueryParams; std::map localVarHeaderParams; @@ -5990,9 +5990,9 @@ std::shared_ptr GaussDBClient::createStarrocksI } std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, - localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForCreateStarrocksInstance()); + localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForCreateClickHouseDataBaseReplication()); - std::shared_ptr localVarResult = std::make_shared(); + std::shared_ptr localVarResult = std::make_shared(); localVarResult->setStatusCode(res->getStatusCode()); localVarResult->setHeaderParams(res->getHeaderParams()); localVarResult->setHttpBody(res->getHttpBody()); @@ -6005,9 +6005,9 @@ std::shared_ptr GaussDBClient::createStarrocksI return localVarResult; } -std::shared_ptr GaussDBClient::deleteStarRocksDataReplication(DeleteStarRocksDataReplicationRequest &request) +std::shared_ptr GaussDBClient::createClickHouseDatabaseUser(CreateClickHouseDatabaseUserRequest &request) { - std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication"; + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/clickhouse/users"; std::map localVarQueryParams; std::map localVarHeaderParams; @@ -6034,10 +6034,10 @@ std::shared_ptr GaussDBClient::deleteSta localVarHttpBody = utility::conversions::to_utf8string(localVarJson.serialize()); } - std::unique_ptr res = callApi("DELETE", localVarPath, localVarPathParams, localVarQueryParams, - localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForDeleteStarRocksDataReplication()); + std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForCreateClickHouseDatabaseUser()); - std::shared_ptr localVarResult = std::make_shared(); + std::shared_ptr localVarResult = std::make_shared(); localVarResult->setStatusCode(res->getStatusCode()); localVarResult->setHeaderParams(res->getHeaderParams()); localVarResult->setHttpBody(res->getHttpBody()); @@ -6050,9 +6050,9 @@ std::shared_ptr GaussDBClient::deleteSta return localVarResult; } -std::shared_ptr GaussDBClient::deleteStarRocksDatabaseUser(DeleteStarRocksDatabaseUserRequest &request) +std::shared_ptr GaussDBClient::createClickHouseInstance(CreateClickHouseInstanceRequest &request) { - std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/starrocks/users"; + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/clickhouse"; std::map localVarQueryParams; std::map localVarHeaderParams; @@ -6064,31 +6064,40 @@ std::shared_ptr GaussDBClient::deleteStarRo bool isJson = false; bool isMultiPart = false; bool isBson = false; - std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + std::string contentType = getContentType("application/json;charset=UTF-8", isJson, isMultiPart, isBson); localVarHeaderParams["Content-Type"] = contentType; - if (request.userNameIsSet()) { - localVarQueryParams["user_name"] = parameterToString(request.getUserName()); - } 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, GaussDBMeta::genRequestDefForDeleteStarRocksDatabaseUser()); + std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForCreateClickHouseInstance()); - std::shared_ptr localVarResult = std::make_shared(); + 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 GaussDBClient::deleteStarrocksInstance(DeleteStarrocksInstanceRequest &request) +std::shared_ptr GaussDBClient::createStarRocksDataReplication(CreateStarRocksDataReplicationRequest &request) { - std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/starrocks/{starrocks_instance_id}"; + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication"; std::map localVarQueryParams; std::map localVarHeaderParams; @@ -6096,12 +6105,11 @@ std::shared_ptr GaussDBClient::deleteStarrocksI std::map localVarPathParams; localVarPathParams["instance_id"] = parameterToString(request.getInstanceId()); - localVarPathParams["starrocks_instance_id"] = parameterToString(request.getStarrocksInstanceId()); bool isJson = false; bool isMultiPart = false; bool isBson = false; - std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + std::string contentType = getContentType("application/json;charset=UTF-8", isJson, isMultiPart, isBson); localVarHeaderParams["Content-Type"] = contentType; if (request.xLanguageIsSet()) { @@ -6109,32 +6117,44 @@ std::shared_ptr GaussDBClient::deleteStarrocksI } 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, GaussDBMeta::genRequestDefForDeleteStarrocksInstance()); + std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForCreateStarRocksDataReplication()); - std::shared_ptr localVarResult = std::make_shared(); + 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 GaussDBClient::listHtapDataStore(ListHtapDataStoreRequest &request) +std::shared_ptr GaussDBClient::createStarRocksDatabaseUser(CreateStarRocksDatabaseUserRequest &request) { - std::string localVarPath = "/v3/{project_id}/htap/datastores/{engine_name}"; + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/starrocks/users"; std::map localVarQueryParams; std::map localVarHeaderParams; std::map localVarFormParams; std::map localVarPathParams; - localVarPathParams["engine_name"] = parameterToString(request.getEngineName()); + localVarPathParams["instance_id"] = parameterToString(request.getInstanceId()); bool isJson = false; bool isMultiPart = false; bool isBson = false; - std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + std::string contentType = getContentType("application/json;charset=UTF-8", isJson, isMultiPart, isBson); localVarHeaderParams["Content-Type"] = contentType; if (request.xLanguageIsSet()) { @@ -6142,62 +6162,77 @@ std::shared_ptr GaussDBClient::listHtapDataStore(List } 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("GET", localVarPath, localVarPathParams, localVarQueryParams, - localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForListHtapDataStore()); + std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForCreateStarRocksDatabaseUser()); - std::shared_ptr localVarResult = std::make_shared(); + 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 GaussDBClient::listHtapFlavor(ListHtapFlavorRequest &request) +std::shared_ptr GaussDBClient::createStarrocksInstance(CreateStarrocksInstanceRequest &request) { - std::string localVarPath = "/v3/{project_id}/htap/flavors/{engine_name}"; + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/starrocks"; std::map localVarQueryParams; std::map localVarHeaderParams; std::map localVarFormParams; std::map localVarPathParams; - localVarPathParams["engine_name"] = parameterToString(request.getEngineName()); + localVarPathParams["instance_id"] = parameterToString(request.getInstanceId()); bool isJson = false; bool isMultiPart = false; bool isBson = false; - std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + std::string contentType = getContentType("application/json;charset=UTF-8", isJson, isMultiPart, isBson); localVarHeaderParams["Content-Type"] = contentType; - if (request.availabilityZoneModeIsSet()) { - localVarQueryParams["availability_zone_mode"] = parameterToString(request.getAvailabilityZoneMode()); - } - if (request.specCodeIsSet()) { - localVarQueryParams["spec_code"] = parameterToString(request.getSpecCode()); - } - if (request.versionNameIsSet()) { - localVarQueryParams["version_name"] = parameterToString(request.getVersionName()); - } 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("GET", localVarPath, localVarPathParams, localVarQueryParams, - localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForListHtapFlavor()); + std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForCreateStarrocksInstance()); - std::shared_ptr localVarResult = std::make_shared(); + 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 GaussDBClient::listHtapInstanceInfo(ListHtapInstanceInfoRequest &request) +std::shared_ptr GaussDBClient::deleteClickHouseDataBaseConfig(DeleteClickHouseDataBaseConfigRequest &request) { - std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/htap"; + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/clickhouse/databases/replication/config"; std::map localVarQueryParams; std::map localVarHeaderParams; @@ -6212,32 +6247,36 @@ std::shared_ptr GaussDBClient::listHtapInstanceInf std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); localVarHeaderParams["Content-Type"] = contentType; + if (request.databaseIsSet()) { + localVarQueryParams["database"] = parameterToString(request.getDatabase()); + } if (request.xLanguageIsSet()) { localVarHeaderParams["X-Language"] = parameterToString(request.getXLanguage()); } std::string localVarHttpBody; - std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, - localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForListHtapInstanceInfo()); + std::unique_ptr res = callApi("DELETE", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForDeleteClickHouseDataBaseConfig()); - std::shared_ptr localVarResult = std::make_shared(); + std::shared_ptr localVarResult = std::make_shared(); localVarResult->setStatusCode(res->getStatusCode()); localVarResult->setHeaderParams(res->getHeaderParams()); localVarResult->setHttpBody(res->getHttpBody()); return localVarResult; } -std::shared_ptr GaussDBClient::listHtapStorageType(ListHtapStorageTypeRequest &request) +std::shared_ptr GaussDBClient::deleteClickHouseDataBaseReplication(DeleteClickHouseDataBaseReplicationRequest &request) { - std::string localVarPath = "/v3/{project_id}/htap/storage-type/{database}"; + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/clickhouse/replication/{database_name}"; std::map localVarQueryParams; std::map localVarHeaderParams; std::map localVarFormParams; std::map localVarPathParams; - localVarPathParams["database"] = parameterToString(request.getDatabase()); + localVarPathParams["instance_id"] = parameterToString(request.getInstanceId()); + localVarPathParams["database_name"] = parameterToString(request.getDatabaseName()); bool isJson = false; bool isMultiPart = false; @@ -6245,28 +6284,25 @@ std::shared_ptr GaussDBClient::listHtapStorageType( std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); localVarHeaderParams["Content-Type"] = contentType; - if (request.versionNameIsSet()) { - localVarQueryParams["version_name"] = parameterToString(request.getVersionName()); - } if (request.xLanguageIsSet()) { localVarHeaderParams["X-Language"] = parameterToString(request.getXLanguage()); } std::string localVarHttpBody; - std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, - localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForListHtapStorageType()); + std::unique_ptr res = callApi("DELETE", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForDeleteClickHouseDataBaseReplication()); - std::shared_ptr localVarResult = std::make_shared(); + std::shared_ptr localVarResult = std::make_shared(); localVarResult->setStatusCode(res->getStatusCode()); localVarResult->setHeaderParams(res->getHeaderParams()); localVarResult->setHttpBody(res->getHttpBody()); return localVarResult; } -std::shared_ptr GaussDBClient::listStarRocksDataBases(ListStarRocksDataBasesRequest &request) +std::shared_ptr GaussDBClient::deleteClickHouseDatabaseUser(DeleteClickHouseDatabaseUserRequest &request) { - std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/starrocks/databases"; + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/clickhouse/users/{user_name}"; std::map localVarQueryParams; std::map localVarHeaderParams; @@ -6274,6 +6310,7 @@ std::shared_ptr GaussDBClient::listStarRocksData std::map localVarPathParams; localVarPathParams["instance_id"] = parameterToString(request.getInstanceId()); + localVarPathParams["user_name"] = parameterToString(request.getUserName()); bool isJson = false; bool isMultiPart = false; @@ -6281,34 +6318,25 @@ std::shared_ptr GaussDBClient::listStarRocksData std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); localVarHeaderParams["Content-Type"] = contentType; - if (request.limitIsSet()) { - localVarQueryParams["limit"] = parameterToString(request.getLimit()); - } - if (request.offsetIsSet()) { - localVarQueryParams["offset"] = parameterToString(request.getOffset()); - } - if (request.databaseNameIsSet()) { - localVarQueryParams["database_name"] = parameterToString(request.getDatabaseName()); - } if (request.xLanguageIsSet()) { localVarHeaderParams["X-Language"] = parameterToString(request.getXLanguage()); } std::string localVarHttpBody; - std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, - localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForListStarRocksDataBases()); + std::unique_ptr res = callApi("DELETE", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForDeleteClickHouseDatabaseUser()); - std::shared_ptr localVarResult = std::make_shared(); + std::shared_ptr localVarResult = std::make_shared(); localVarResult->setStatusCode(res->getStatusCode()); localVarResult->setHeaderParams(res->getHeaderParams()); localVarResult->setHttpBody(res->getHttpBody()); return localVarResult; } -std::shared_ptr GaussDBClient::listStarRocksDataReplicationConfig(ListStarRocksDataReplicationConfigRequest &request) +std::shared_ptr GaussDBClient::deleteClickHouseInstance(DeleteClickHouseInstanceRequest &request) { - std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication/configuration"; + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/clickhouse/{clickhouse_instance_id}"; std::map localVarQueryParams; std::map localVarHeaderParams; @@ -6316,6 +6344,7 @@ std::shared_ptr GaussDBClient::listS std::map localVarPathParams; localVarPathParams["instance_id"] = parameterToString(request.getInstanceId()); + localVarPathParams["clickhouse_instance_id"] = parameterToString(request.getClickhouseInstanceId()); bool isJson = false; bool isMultiPart = false; @@ -6323,67 +6352,69 @@ std::shared_ptr GaussDBClient::listS std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); localVarHeaderParams["Content-Type"] = contentType; - if (request.taskNameIsSet()) { - localVarQueryParams["task_name"] = parameterToString(request.getTaskName()); - } if (request.xLanguageIsSet()) { localVarHeaderParams["X-Language"] = parameterToString(request.getXLanguage()); } std::string localVarHttpBody; - std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, - localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForListStarRocksDataReplicationConfig()); + std::unique_ptr res = callApi("DELETE", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForDeleteClickHouseInstance()); - std::shared_ptr localVarResult = std::make_shared(); + std::shared_ptr localVarResult = std::make_shared(); localVarResult->setStatusCode(res->getStatusCode()); localVarResult->setHeaderParams(res->getHeaderParams()); localVarResult->setHttpBody(res->getHttpBody()); return localVarResult; } -std::shared_ptr GaussDBClient::listStarRocksDataReplications(ListStarRocksDataReplicationsRequest &request) +std::shared_ptr GaussDBClient::deleteClickHouseLtsConfig(DeleteClickHouseLtsConfigRequest &request) { - std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication"; + std::string localVarPath = "/v3/{project_id}/clickhouse/instances/logs/lts-configs"; 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); + std::string contentType = getContentType("application/json;charset=UTF-8", isJson, isMultiPart, isBson); localVarHeaderParams["Content-Type"] = contentType; - if (request.limitIsSet()) { - localVarQueryParams["limit"] = parameterToString(request.getLimit()); - } - if (request.offsetIsSet()) { - localVarQueryParams["offset"] = parameterToString(request.getOffset()); - } 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("GET", localVarPath, localVarPathParams, localVarQueryParams, - localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForListStarRocksDataReplications()); + std::unique_ptr res = callApi("DELETE", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForDeleteClickHouseLtsConfig()); - std::shared_ptr localVarResult = std::make_shared(); + 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 GaussDBClient::listStarRocksDbParameters(ListStarRocksDbParametersRequest &request) +std::shared_ptr GaussDBClient::deleteStarRocksDataReplication(DeleteStarRocksDataReplicationRequest &request) { - std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication/database-parameters"; + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication"; std::map localVarQueryParams; std::map localVarHeaderParams; @@ -6395,7 +6426,7 @@ std::shared_ptr GaussDBClient::listStarRocksD bool isJson = false; bool isMultiPart = false; bool isBson = false; - std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + std::string contentType = getContentType("application/json;charset=UTF-8", isJson, isMultiPart, isBson); localVarHeaderParams["Content-Type"] = contentType; if (request.xLanguageIsSet()) { @@ -6403,20 +6434,32 @@ std::shared_ptr GaussDBClient::listStarRocksD } 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("GET", localVarPath, localVarPathParams, localVarQueryParams, - localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForListStarRocksDbParameters()); + std::unique_ptr res = callApi("DELETE", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForDeleteStarRocksDataReplication()); - std::shared_ptr localVarResult = std::make_shared(); + 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 GaussDBClient::listStarrocksInstanceInfo(ListStarrocksInstanceInfoRequest &request) +std::shared_ptr GaussDBClient::deleteStarRocksDatabaseUser(DeleteStarRocksDatabaseUserRequest &request) { - std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/starrocks/{starrocks_instance_id}"; + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/starrocks/users"; std::map localVarQueryParams; std::map localVarHeaderParams; @@ -6424,7 +6467,6 @@ std::shared_ptr GaussDBClient::listStarrocksI std::map localVarPathParams; localVarPathParams["instance_id"] = parameterToString(request.getInstanceId()); - localVarPathParams["starrocks_instance_id"] = parameterToString(request.getStarrocksInstanceId()); bool isJson = false; bool isMultiPart = false; @@ -6432,37 +6474,988 @@ std::shared_ptr GaussDBClient::listStarrocksI std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); localVarHeaderParams["Content-Type"] = contentType; + if (request.userNameIsSet()) { + localVarQueryParams["user_name"] = parameterToString(request.getUserName()); + } if (request.xLanguageIsSet()) { localVarHeaderParams["X-Language"] = parameterToString(request.getXLanguage()); } std::string localVarHttpBody; - std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + std::unique_ptr res = callApi("DELETE", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForDeleteStarRocksDatabaseUser()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GaussDBClient::deleteStarrocksInstance(DeleteStarrocksInstanceRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/starrocks/{starrocks_instance_id}"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["instance_id"] = parameterToString(request.getInstanceId()); + localVarPathParams["starrocks_instance_id"] = parameterToString(request.getStarrocksInstanceId()); + + 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; + + std::unique_ptr res = callApi("DELETE", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForDeleteStarrocksInstance()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GaussDBClient::listClickHouseDataBase(ListClickHouseDataBaseRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/clickhouse/databases"; + + 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.limitIsSet()) { + localVarQueryParams["limit"] = parameterToString(request.getLimit()); + } + if (request.offsetIsSet()) { + localVarQueryParams["offset"] = parameterToString(request.getOffset()); + } + if (request.databaseNameIsSet()) { + localVarQueryParams["database_name"] = parameterToString(request.getDatabaseName()); + } + if (request.xLanguageIsSet()) { + localVarHeaderParams["X-Language"] = parameterToString(request.getXLanguage()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForListClickHouseDataBase()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GaussDBClient::listClickHouseDataBaseParameter(ListClickHouseDataBaseParameterRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/clickhouse/replication/database-parameter"; + + 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.xLanguageIsSet()) { + localVarHeaderParams["X-Language"] = parameterToString(request.getXLanguage()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForListClickHouseDataBaseParameter()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GaussDBClient::listClickHouseDataBaseReplication(ListClickHouseDataBaseReplicationRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/clickhouse/replication"; + + 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.limitIsSet()) { + localVarQueryParams["limit"] = parameterToString(request.getLimit()); + } + if (request.offsetIsSet()) { + localVarQueryParams["offset"] = parameterToString(request.getOffset()); + } + if (request.xLanguageIsSet()) { + localVarHeaderParams["X-Language"] = parameterToString(request.getXLanguage()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForListClickHouseDataBaseReplication()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GaussDBClient::listClickHouseDataBaseReplicationConfig(ListClickHouseDataBaseReplicationConfigRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/clickhouse/replication/config"; + + 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.databaseNameIsSet()) { + localVarQueryParams["database_name"] = parameterToString(request.getDatabaseName()); + } + if (request.xLanguageIsSet()) { + localVarHeaderParams["X-Language"] = parameterToString(request.getXLanguage()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForListClickHouseDataBaseReplicationConfig()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GaussDBClient::listClickHouseInstance(ListClickHouseInstanceRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/clickhouse/{clickhouse_instance_id}"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["instance_id"] = parameterToString(request.getInstanceId()); + localVarPathParams["clickhouse_instance_id"] = parameterToString(request.getClickhouseInstanceId()); + + 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; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForListClickHouseInstance()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GaussDBClient::listClickHouseInstanceNode(ListClickHouseInstanceNodeRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/clickhouse/nodes"; + + 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.xLanguageIsSet()) { + localVarHeaderParams["X-Language"] = parameterToString(request.getXLanguage()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForListClickHouseInstanceNode()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GaussDBClient::listHtapDataStore(ListHtapDataStoreRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/htap/datastores/{engine_name}"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["engine_name"] = parameterToString(request.getEngineName()); + + 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; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForListHtapDataStore()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GaussDBClient::listHtapFlavor(ListHtapFlavorRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/htap/flavors/{engine_name}"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["engine_name"] = parameterToString(request.getEngineName()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + if (request.availabilityZoneModeIsSet()) { + localVarQueryParams["availability_zone_mode"] = parameterToString(request.getAvailabilityZoneMode()); + } + if (request.specCodeIsSet()) { + localVarQueryParams["spec_code"] = parameterToString(request.getSpecCode()); + } + if (request.versionNameIsSet()) { + localVarQueryParams["version_name"] = parameterToString(request.getVersionName()); + } + if (request.xLanguageIsSet()) { + localVarHeaderParams["X-Language"] = parameterToString(request.getXLanguage()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForListHtapFlavor()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GaussDBClient::listHtapInstanceInfo(ListHtapInstanceInfoRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/htap"; + + 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.xLanguageIsSet()) { + localVarHeaderParams["X-Language"] = parameterToString(request.getXLanguage()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForListHtapInstanceInfo()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GaussDBClient::listHtapStorageType(ListHtapStorageTypeRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/htap/storage-type/{database}"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["database"] = parameterToString(request.getDatabase()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + if (request.versionNameIsSet()) { + localVarQueryParams["version_name"] = parameterToString(request.getVersionName()); + } + if (request.xLanguageIsSet()) { + localVarHeaderParams["X-Language"] = parameterToString(request.getXLanguage()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForListHtapStorageType()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GaussDBClient::listStarRocksDataBases(ListStarRocksDataBasesRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/starrocks/databases"; + + 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.limitIsSet()) { + localVarQueryParams["limit"] = parameterToString(request.getLimit()); + } + if (request.offsetIsSet()) { + localVarQueryParams["offset"] = parameterToString(request.getOffset()); + } + if (request.databaseNameIsSet()) { + localVarQueryParams["database_name"] = parameterToString(request.getDatabaseName()); + } + if (request.xLanguageIsSet()) { + localVarHeaderParams["X-Language"] = parameterToString(request.getXLanguage()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForListStarRocksDataBases()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GaussDBClient::listStarRocksDataReplicationConfig(ListStarRocksDataReplicationConfigRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication/configuration"; + + 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.taskNameIsSet()) { + localVarQueryParams["task_name"] = parameterToString(request.getTaskName()); + } + if (request.xLanguageIsSet()) { + localVarHeaderParams["X-Language"] = parameterToString(request.getXLanguage()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForListStarRocksDataReplicationConfig()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GaussDBClient::listStarRocksDataReplications(ListStarRocksDataReplicationsRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication"; + + 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.limitIsSet()) { + localVarQueryParams["limit"] = parameterToString(request.getLimit()); + } + if (request.offsetIsSet()) { + localVarQueryParams["offset"] = parameterToString(request.getOffset()); + } + if (request.xLanguageIsSet()) { + localVarHeaderParams["X-Language"] = parameterToString(request.getXLanguage()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForListStarRocksDataReplications()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GaussDBClient::listStarRocksDbParameters(ListStarRocksDbParametersRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication/database-parameters"; + + 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.xLanguageIsSet()) { + localVarHeaderParams["X-Language"] = parameterToString(request.getXLanguage()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForListStarRocksDbParameters()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GaussDBClient::listStarrocksInstanceInfo(ListStarrocksInstanceInfoRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/starrocks/{starrocks_instance_id}"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["instance_id"] = parameterToString(request.getInstanceId()); + localVarPathParams["starrocks_instance_id"] = parameterToString(request.getStarrocksInstanceId()); + + 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; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForListStarrocksInstanceInfo()); - std::shared_ptr localVarResult = std::make_shared(); + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GaussDBClient::pauseStarRocksDataReplication(PauseStarRocksDataReplicationRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication/pause"; + + 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;charset=UTF-8", 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("POST", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForPauseStarRocksDataReplication()); + + 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 GaussDBClient::rebootClickHouseInstance(RebootClickHouseInstanceRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/clickhouse/restart"; + + 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.xLanguageIsSet()) { + localVarHeaderParams["X-Language"] = parameterToString(request.getXLanguage()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("PUT", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForRebootClickHouseInstance()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GaussDBClient::resizeClickHouseFlavor(ResizeClickHouseFlavorRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/clickhouse/resize-flavor"; + + 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;charset=UTF-8", 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("POST", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForResizeClickHouseFlavor()); + + 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 GaussDBClient::resizeClickHouseInstance(ResizeClickHouseInstanceRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/clickhouse/resize"; + + 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;charset=UTF-8", 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("PUT", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForResizeClickHouseInstance()); + + 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 GaussDBClient::restartStarrocksInstance(RestartStarrocksInstanceRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/instances/{starrocks_instance_id}/starrocks/restart"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["starrocks_instance_id"] = parameterToString(request.getStarrocksInstanceId()); + + 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; + + std::unique_ptr res = callApi("PUT", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForRestartStarrocksInstance()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GaussDBClient::restartStarrocksNode(RestartStarrocksNodeRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/instances/{starrocks_instance_id}/starrocks/{starrocks_node_id}/restart"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["starrocks_node_id"] = parameterToString(request.getStarrocksNodeId()); + localVarPathParams["starrocks_instance_id"] = parameterToString(request.getStarrocksInstanceId()); + + 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; + + std::unique_ptr res = callApi("PUT", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForRestartStarrocksNode()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GaussDBClient::resumeStarRocksDataReplication(ResumeStarRocksDataReplicationRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication/resume"; + + 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;charset=UTF-8", 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("POST", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForResumeStarRocksDataReplication()); + + 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 GaussDBClient::showClickHouseDatabaseUser(ShowClickHouseDatabaseUserRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/clickhouse/users"; + + 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.limitIsSet()) { + localVarQueryParams["limit"] = parameterToString(request.getLimit()); + } + if (request.offsetIsSet()) { + localVarQueryParams["offset"] = parameterToString(request.getOffset()); + } + if (request.userNameIsSet()) { + localVarQueryParams["user_name"] = parameterToString(request.getUserName()); + } + if (request.xLanguageIsSet()) { + localVarHeaderParams["X-Language"] = parameterToString(request.getXLanguage()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForShowClickHouseDatabaseUser()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} +std::shared_ptr GaussDBClient::showClickHouseLtsConfig(ShowClickHouseLtsConfigRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/clickhouse/instances/logs/lts-configs"; + + 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.enterpriseProjectIdIsSet()) { + localVarQueryParams["enterprise_project_id"] = parameterToString(request.getEnterpriseProjectId()); + } + if (request.instanceNameIsSet()) { + localVarQueryParams["instance_name"] = parameterToString(request.getInstanceName()); + } + if (request.limitIsSet()) { + localVarQueryParams["limit"] = parameterToString(request.getLimit()); + } + if (request.offsetIsSet()) { + localVarQueryParams["offset"] = parameterToString(request.getOffset()); + } + if (request.xLanguageIsSet()) { + localVarHeaderParams["X-Language"] = parameterToString(request.getXLanguage()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForShowClickHouseLtsConfig()); + + std::shared_ptr localVarResult = std::make_shared(); localVarResult->setStatusCode(res->getStatusCode()); localVarResult->setHeaderParams(res->getHeaderParams()); localVarResult->setHttpBody(res->getHttpBody()); return localVarResult; } -std::shared_ptr GaussDBClient::restartStarrocksInstance(RestartStarrocksInstanceRequest &request) +std::shared_ptr GaussDBClient::showClickHouseSlowLogDetail(ShowClickHouseSlowLogDetailRequest &request) { - std::string localVarPath = "/v3/{project_id}/instances/{starrocks_instance_id}/starrocks/restart"; + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/clickhouse/slow-logs"; std::map localVarQueryParams; std::map localVarHeaderParams; std::map localVarFormParams; std::map localVarPathParams; - localVarPathParams["starrocks_instance_id"] = parameterToString(request.getStarrocksInstanceId()); + localVarPathParams["instance_id"] = parameterToString(request.getInstanceId()); bool isJson = false; bool isMultiPart = false; bool isBson = false; - std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + std::string contentType = getContentType("application/json;charset=UTF-8", isJson, isMultiPart, isBson); localVarHeaderParams["Content-Type"] = contentType; if (request.xLanguageIsSet()) { @@ -6470,28 +7463,39 @@ std::shared_ptr GaussDBClient::restartStarrock } 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, GaussDBMeta::genRequestDefForRestartStarrocksInstance()); + std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForShowClickHouseSlowLogDetail()); - std::shared_ptr localVarResult = std::make_shared(); + 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 GaussDBClient::restartStarrocksNode(RestartStarrocksNodeRequest &request) +std::shared_ptr GaussDBClient::showClickHouseSlowLogSensitiveStatus(ShowClickHouseSlowLogSensitiveStatusRequest &request) { - std::string localVarPath = "/v3/{project_id}/instances/{starrocks_instance_id}/starrocks/{starrocks_node_id}/restart"; + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/clickhouse/slowlog-sensitive"; std::map localVarQueryParams; std::map localVarHeaderParams; std::map localVarFormParams; std::map localVarPathParams; - localVarPathParams["starrocks_node_id"] = parameterToString(request.getStarrocksNodeId()); - localVarPathParams["starrocks_instance_id"] = parameterToString(request.getStarrocksInstanceId()); + localVarPathParams["instance_id"] = parameterToString(request.getInstanceId()); bool isJson = false; bool isMultiPart = false; @@ -6505,10 +7509,10 @@ std::shared_ptr GaussDBClient::restartStarrocksNod std::string localVarHttpBody; - std::unique_ptr res = callApi("PUT", localVarPath, localVarPathParams, localVarQueryParams, - localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForRestartStarrocksNode()); + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForShowClickHouseSlowLogSensitiveStatus()); - std::shared_ptr localVarResult = std::make_shared(); + std::shared_ptr localVarResult = std::make_shared(); localVarResult->setStatusCode(res->getStatusCode()); localVarResult->setHeaderParams(res->getHeaderParams()); localVarResult->setHttpBody(res->getHttpBody()); @@ -6557,6 +7561,230 @@ std::shared_ptr GaussDBClient::showStarRocksD return localVarResult; } +std::shared_ptr GaussDBClient::updateClickHouseDataBaseConfig(UpdateClickHouseDataBaseConfigRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/clickhouse/databases/replication/config"; + + 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;charset=UTF-8", 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("PUT", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForUpdateClickHouseDataBaseConfig()); + + 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 GaussDBClient::updateClickHouseDatabaseUserPassword(UpdateClickHouseDatabaseUserPasswordRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/clickhouse/users/password"; + + 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;charset=UTF-8", 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("PUT", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForUpdateClickHouseDatabaseUserPassword()); + + 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 GaussDBClient::updateClickHouseDatabaseUserPermission(UpdateClickHouseDatabaseUserPermissionRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/clickhouse/users/permission"; + + 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;charset=UTF-8", 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("PUT", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForUpdateClickHouseDatabaseUserPermission()); + + 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 GaussDBClient::updateClickHouseLtsConfig(UpdateClickHouseLtsConfigRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/clickhouse/instances/logs/lts-configs"; + + 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;charset=UTF-8", 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("POST", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForUpdateClickHouseLtsConfig()); + + 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 GaussDBClient::updateClickHouseSlowLogSensitiveStatus(UpdateClickHouseSlowLogSensitiveStatusRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/clickhouse/slowlog-sensitive"; + + 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;charset=UTF-8", 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("PUT", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBMeta::genRequestDefForUpdateClickHouseSlowLogSensitiveStatus()); + + 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 GaussDBClient::updateStarRocksDatabaseUserPassword(UpdateStarRocksDatabaseUserPasswordRequest &request) { std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/starrocks/users/password"; diff --git a/gaussdb/src/v3/GaussDBMeta.cpp b/gaussdb/src/v3/GaussDBMeta.cpp index 4b345dda2..ecd4b1574 100644 --- a/gaussdb/src/v3/GaussDBMeta.cpp +++ b/gaussdb/src/v3/GaussDBMeta.cpp @@ -1997,6 +1997,34 @@ HttpRequestDef GaussDBMeta::genRequestDefForUpgradeProxyVersion() { return reqDefBuilder; } +HttpRequestDef GaussDBMeta::genRequestDefForCheckClickHouseDataBaseConfig() { + 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 GaussDBMeta::genRequestDefForCheckClickHouseTableConfig() { + 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 GaussDBMeta::genRequestDefForCheckDataBaseConfig() { HttpRequestDef reqDefBuilder; FieldDef headerParamXLanguage; @@ -2039,6 +2067,48 @@ HttpRequestDef GaussDBMeta::genRequestDefForCheckTableConfig() { return reqDefBuilder; } +HttpRequestDef GaussDBMeta::genRequestDefForCreateClickHouseDataBaseReplication() { + 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 GaussDBMeta::genRequestDefForCreateClickHouseDatabaseUser() { + 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 GaussDBMeta::genRequestDefForCreateClickHouseInstance() { + 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 GaussDBMeta::genRequestDefForCreateStarRocksDataReplication() { HttpRequestDef reqDefBuilder; FieldDef headerParamXLanguage; @@ -2081,6 +2151,63 @@ HttpRequestDef GaussDBMeta::genRequestDefForCreateStarrocksInstance() { return reqDefBuilder; } +HttpRequestDef GaussDBMeta::genRequestDefForDeleteClickHouseDataBaseConfig() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("Database") + .withJsonTag("database") + .withLocationType(Query_)); + FieldDef headerParamXLanguage; + reqDefBuilder.withRequestField(headerParamXLanguage + .withName("XLanguage") + .withJsonTag("X-Language") + .withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GaussDBMeta::genRequestDefForDeleteClickHouseDataBaseReplication() { + HttpRequestDef reqDefBuilder; + FieldDef headerParamXLanguage; + reqDefBuilder.withRequestField(headerParamXLanguage + .withName("XLanguage") + .withJsonTag("X-Language") + .withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GaussDBMeta::genRequestDefForDeleteClickHouseDatabaseUser() { + HttpRequestDef reqDefBuilder; + FieldDef headerParamXLanguage; + reqDefBuilder.withRequestField(headerParamXLanguage + .withName("XLanguage") + .withJsonTag("X-Language") + .withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GaussDBMeta::genRequestDefForDeleteClickHouseInstance() { + HttpRequestDef reqDefBuilder; + FieldDef headerParamXLanguage; + reqDefBuilder.withRequestField(headerParamXLanguage + .withName("XLanguage") + .withJsonTag("X-Language") + .withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GaussDBMeta::genRequestDefForDeleteClickHouseLtsConfig() { + 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 GaussDBMeta::genRequestDefForDeleteStarRocksDataReplication() { HttpRequestDef reqDefBuilder; FieldDef headerParamXLanguage; @@ -2118,6 +2245,84 @@ HttpRequestDef GaussDBMeta::genRequestDefForDeleteStarrocksInstance() { return reqDefBuilder; } +HttpRequestDef GaussDBMeta::genRequestDefForListClickHouseDataBase() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("Limit") + .withJsonTag("limit") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Offset") + .withJsonTag("offset") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("DatabaseName") + .withJsonTag("database_name") + .withLocationType(Query_)); + FieldDef headerParamXLanguage; + reqDefBuilder.withRequestField(headerParamXLanguage + .withName("XLanguage") + .withJsonTag("X-Language") + .withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GaussDBMeta::genRequestDefForListClickHouseDataBaseParameter() { + HttpRequestDef reqDefBuilder; + FieldDef headerParamXLanguage; + reqDefBuilder.withRequestField(headerParamXLanguage + .withName("XLanguage") + .withJsonTag("X-Language") + .withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GaussDBMeta::genRequestDefForListClickHouseDataBaseReplication() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("Limit") + .withJsonTag("limit") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Offset") + .withJsonTag("offset") + .withLocationType(Query_)); + FieldDef headerParamXLanguage; + reqDefBuilder.withRequestField(headerParamXLanguage + .withName("XLanguage") + .withJsonTag("X-Language") + .withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GaussDBMeta::genRequestDefForListClickHouseDataBaseReplicationConfig() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("DatabaseName") + .withJsonTag("database_name") + .withLocationType(Query_)); + FieldDef headerParamXLanguage; + reqDefBuilder.withRequestField(headerParamXLanguage + .withName("XLanguage") + .withJsonTag("X-Language") + .withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GaussDBMeta::genRequestDefForListClickHouseInstance() { + HttpRequestDef reqDefBuilder; + FieldDef headerParamXLanguage; + reqDefBuilder.withRequestField(headerParamXLanguage + .withName("XLanguage") + .withJsonTag("X-Language") + .withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GaussDBMeta::genRequestDefForListClickHouseInstanceNode() { + HttpRequestDef reqDefBuilder; + FieldDef headerParamXLanguage; + reqDefBuilder.withRequestField(headerParamXLanguage + .withName("XLanguage") + .withJsonTag("X-Language") + .withLocationType(Header_)); + return reqDefBuilder; +} + HttpRequestDef GaussDBMeta::genRequestDefForListHtapDataStore() { HttpRequestDef reqDefBuilder; FieldDef headerParamXLanguage; @@ -2238,6 +2443,58 @@ HttpRequestDef GaussDBMeta::genRequestDefForListStarrocksInstanceInfo() { return reqDefBuilder; } +HttpRequestDef GaussDBMeta::genRequestDefForPauseStarRocksDataReplication() { + 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 GaussDBMeta::genRequestDefForRebootClickHouseInstance() { + HttpRequestDef reqDefBuilder; + FieldDef headerParamXLanguage; + reqDefBuilder.withRequestField(headerParamXLanguage + .withName("XLanguage") + .withJsonTag("X-Language") + .withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GaussDBMeta::genRequestDefForResizeClickHouseFlavor() { + 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 GaussDBMeta::genRequestDefForResizeClickHouseInstance() { + 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 GaussDBMeta::genRequestDefForRestartStarrocksInstance() { HttpRequestDef reqDefBuilder; FieldDef headerParamXLanguage; @@ -2258,6 +2515,88 @@ HttpRequestDef GaussDBMeta::genRequestDefForRestartStarrocksNode() { return reqDefBuilder; } +HttpRequestDef GaussDBMeta::genRequestDefForResumeStarRocksDataReplication() { + 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 GaussDBMeta::genRequestDefForShowClickHouseDatabaseUser() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("Limit") + .withJsonTag("limit") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Offset") + .withJsonTag("offset") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("UserName") + .withJsonTag("user_name") + .withLocationType(Query_)); + FieldDef headerParamXLanguage; + reqDefBuilder.withRequestField(headerParamXLanguage + .withName("XLanguage") + .withJsonTag("X-Language") + .withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GaussDBMeta::genRequestDefForShowClickHouseLtsConfig() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("InstanceId") + .withJsonTag("instance_id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("EnterpriseProjectId") + .withJsonTag("enterprise_project_id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("InstanceName") + .withJsonTag("instance_name") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Limit") + .withJsonTag("limit") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Offset") + .withJsonTag("offset") + .withLocationType(Query_)); + FieldDef headerParamXLanguage; + reqDefBuilder.withRequestField(headerParamXLanguage + .withName("XLanguage") + .withJsonTag("X-Language") + .withLocationType(Header_)); + return reqDefBuilder; +} + +HttpRequestDef GaussDBMeta::genRequestDefForShowClickHouseSlowLogDetail() { + 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 GaussDBMeta::genRequestDefForShowClickHouseSlowLogSensitiveStatus() { + HttpRequestDef reqDefBuilder; + FieldDef headerParamXLanguage; + reqDefBuilder.withRequestField(headerParamXLanguage + .withName("XLanguage") + .withJsonTag("X-Language") + .withLocationType(Header_)); + return reqDefBuilder; +} + HttpRequestDef GaussDBMeta::genRequestDefForShowStarRocksDatabaseUser() { HttpRequestDef reqDefBuilder; reqDefBuilder.withRequestField(FieldDef().withName("UserName") @@ -2277,6 +2616,76 @@ HttpRequestDef GaussDBMeta::genRequestDefForShowStarRocksDatabaseUser() { return reqDefBuilder; } +HttpRequestDef GaussDBMeta::genRequestDefForUpdateClickHouseDataBaseConfig() { + 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 GaussDBMeta::genRequestDefForUpdateClickHouseDatabaseUserPassword() { + 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 GaussDBMeta::genRequestDefForUpdateClickHouseDatabaseUserPermission() { + 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 GaussDBMeta::genRequestDefForUpdateClickHouseLtsConfig() { + 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 GaussDBMeta::genRequestDefForUpdateClickHouseSlowLogSensitiveStatus() { + 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 GaussDBMeta::genRequestDefForUpdateStarRocksDatabaseUserPassword() { HttpRequestDef reqDefBuilder; FieldDef headerParamXLanguage; diff --git a/gaussdb/src/v3/model/ChDatabaseConfigCheckResult.cpp b/gaussdb/src/v3/model/ChDatabaseConfigCheckResult.cpp new file mode 100644 index 000000000..9ab0e10f7 --- /dev/null +++ b/gaussdb/src/v3/model/ChDatabaseConfigCheckResult.cpp @@ -0,0 +1,149 @@ + + +#include "huaweicloud/gaussdb/v3/model/ChDatabaseConfigCheckResult.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ChDatabaseConfigCheckResult::ChDatabaseConfigCheckResult() +{ + paramName_ = ""; + paramNameIsSet_ = false; + value_ = ""; + valueIsSet_ = false; + checkResult_ = ""; + checkResultIsSet_ = false; +} + +ChDatabaseConfigCheckResult::~ChDatabaseConfigCheckResult() = default; + +void ChDatabaseConfigCheckResult::validate() +{ +} + +web::json::value ChDatabaseConfigCheckResult::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(paramNameIsSet_) { + val[utility::conversions::to_string_t("param_name")] = ModelBase::toJson(paramName_); + } + if(valueIsSet_) { + val[utility::conversions::to_string_t("value")] = ModelBase::toJson(value_); + } + if(checkResultIsSet_) { + val[utility::conversions::to_string_t("check_result")] = ModelBase::toJson(checkResult_); + } + + return val; +} +bool ChDatabaseConfigCheckResult::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("param_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("param_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setParamName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("value"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("value")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setValue(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("check_result"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("check_result")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCheckResult(refVal); + } + } + return ok; +} + + +std::string ChDatabaseConfigCheckResult::getParamName() const +{ + return paramName_; +} + +void ChDatabaseConfigCheckResult::setParamName(const std::string& value) +{ + paramName_ = value; + paramNameIsSet_ = true; +} + +bool ChDatabaseConfigCheckResult::paramNameIsSet() const +{ + return paramNameIsSet_; +} + +void ChDatabaseConfigCheckResult::unsetparamName() +{ + paramNameIsSet_ = false; +} + +std::string ChDatabaseConfigCheckResult::getValue() const +{ + return value_; +} + +void ChDatabaseConfigCheckResult::setValue(const std::string& value) +{ + value_ = value; + valueIsSet_ = true; +} + +bool ChDatabaseConfigCheckResult::valueIsSet() const +{ + return valueIsSet_; +} + +void ChDatabaseConfigCheckResult::unsetvalue() +{ + valueIsSet_ = false; +} + +std::string ChDatabaseConfigCheckResult::getCheckResult() const +{ + return checkResult_; +} + +void ChDatabaseConfigCheckResult::setCheckResult(const std::string& value) +{ + checkResult_ = value; + checkResultIsSet_ = true; +} + +bool ChDatabaseConfigCheckResult::checkResultIsSet() const +{ + return checkResultIsSet_; +} + +void ChDatabaseConfigCheckResult::unsetcheckResult() +{ + checkResultIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ChDatabaseConfigResponse.cpp b/gaussdb/src/v3/model/ChDatabaseConfigResponse.cpp new file mode 100644 index 000000000..8a5f4ab12 --- /dev/null +++ b/gaussdb/src/v3/model/ChDatabaseConfigResponse.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/gaussdb/v3/model/ChDatabaseConfigResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ChDatabaseConfigResponse::ChDatabaseConfigResponse() +{ + databaseName_ = ""; + databaseNameIsSet_ = false; + dbConfigCheckResultsIsSet_ = false; +} + +ChDatabaseConfigResponse::~ChDatabaseConfigResponse() = default; + +void ChDatabaseConfigResponse::validate() +{ +} + +web::json::value ChDatabaseConfigResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(databaseNameIsSet_) { + val[utility::conversions::to_string_t("database_name")] = ModelBase::toJson(databaseName_); + } + if(dbConfigCheckResultsIsSet_) { + val[utility::conversions::to_string_t("db_config_check_results")] = ModelBase::toJson(dbConfigCheckResults_); + } + + return val; +} +bool ChDatabaseConfigResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("database_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("database_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDatabaseName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("db_config_check_results"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("db_config_check_results")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDbConfigCheckResults(refVal); + } + } + return ok; +} + + +std::string ChDatabaseConfigResponse::getDatabaseName() const +{ + return databaseName_; +} + +void ChDatabaseConfigResponse::setDatabaseName(const std::string& value) +{ + databaseName_ = value; + databaseNameIsSet_ = true; +} + +bool ChDatabaseConfigResponse::databaseNameIsSet() const +{ + return databaseNameIsSet_; +} + +void ChDatabaseConfigResponse::unsetdatabaseName() +{ + databaseNameIsSet_ = false; +} + +std::vector& ChDatabaseConfigResponse::getDbConfigCheckResults() +{ + return dbConfigCheckResults_; +} + +void ChDatabaseConfigResponse::setDbConfigCheckResults(const std::vector& value) +{ + dbConfigCheckResults_ = value; + dbConfigCheckResultsIsSet_ = true; +} + +bool ChDatabaseConfigResponse::dbConfigCheckResultsIsSet() const +{ + return dbConfigCheckResultsIsSet_; +} + +void ChDatabaseConfigResponse::unsetdbConfigCheckResults() +{ + dbConfigCheckResultsIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ChDatabaseConfigsInfo.cpp b/gaussdb/src/v3/model/ChDatabaseConfigsInfo.cpp new file mode 100644 index 000000000..cac6e1c01 --- /dev/null +++ b/gaussdb/src/v3/model/ChDatabaseConfigsInfo.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/gaussdb/v3/model/ChDatabaseConfigsInfo.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ChDatabaseConfigsInfo::ChDatabaseConfigsInfo() +{ + paramName_ = ""; + paramNameIsSet_ = false; + value_ = ""; + valueIsSet_ = false; +} + +ChDatabaseConfigsInfo::~ChDatabaseConfigsInfo() = default; + +void ChDatabaseConfigsInfo::validate() +{ +} + +web::json::value ChDatabaseConfigsInfo::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(paramNameIsSet_) { + val[utility::conversions::to_string_t("param_name")] = ModelBase::toJson(paramName_); + } + if(valueIsSet_) { + val[utility::conversions::to_string_t("value")] = ModelBase::toJson(value_); + } + + return val; +} +bool ChDatabaseConfigsInfo::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("param_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("param_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setParamName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("value"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("value")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setValue(refVal); + } + } + return ok; +} + + +std::string ChDatabaseConfigsInfo::getParamName() const +{ + return paramName_; +} + +void ChDatabaseConfigsInfo::setParamName(const std::string& value) +{ + paramName_ = value; + paramNameIsSet_ = true; +} + +bool ChDatabaseConfigsInfo::paramNameIsSet() const +{ + return paramNameIsSet_; +} + +void ChDatabaseConfigsInfo::unsetparamName() +{ + paramNameIsSet_ = false; +} + +std::string ChDatabaseConfigsInfo::getValue() const +{ + return value_; +} + +void ChDatabaseConfigsInfo::setValue(const std::string& value) +{ + value_ = value; + valueIsSet_ = true; +} + +bool ChDatabaseConfigsInfo::valueIsSet() const +{ + return valueIsSet_; +} + +void ChDatabaseConfigsInfo::unsetvalue() +{ + valueIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ChDatabaseParameterInfo.cpp b/gaussdb/src/v3/model/ChDatabaseParameterInfo.cpp new file mode 100644 index 000000000..ef5104fff --- /dev/null +++ b/gaussdb/src/v3/model/ChDatabaseParameterInfo.cpp @@ -0,0 +1,219 @@ + + +#include "huaweicloud/gaussdb/v3/model/ChDatabaseParameterInfo.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ChDatabaseParameterInfo::ChDatabaseParameterInfo() +{ + paramName_ = ""; + paramNameIsSet_ = false; + dataType_ = ""; + dataTypeIsSet_ = false; + defaultValue_ = ""; + defaultValueIsSet_ = false; + valueRange_ = ""; + valueRangeIsSet_ = false; + description_ = ""; + descriptionIsSet_ = false; +} + +ChDatabaseParameterInfo::~ChDatabaseParameterInfo() = default; + +void ChDatabaseParameterInfo::validate() +{ +} + +web::json::value ChDatabaseParameterInfo::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(paramNameIsSet_) { + val[utility::conversions::to_string_t("param_name")] = ModelBase::toJson(paramName_); + } + if(dataTypeIsSet_) { + val[utility::conversions::to_string_t("data_type")] = ModelBase::toJson(dataType_); + } + if(defaultValueIsSet_) { + val[utility::conversions::to_string_t("default_value")] = ModelBase::toJson(defaultValue_); + } + if(valueRangeIsSet_) { + val[utility::conversions::to_string_t("value_range")] = ModelBase::toJson(valueRange_); + } + if(descriptionIsSet_) { + val[utility::conversions::to_string_t("description")] = ModelBase::toJson(description_); + } + + return val; +} +bool ChDatabaseParameterInfo::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("param_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("param_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setParamName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("data_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("data_type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDataType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("default_value"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("default_value")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDefaultValue(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("value_range"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("value_range")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setValueRange(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("description"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("description")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDescription(refVal); + } + } + return ok; +} + + +std::string ChDatabaseParameterInfo::getParamName() const +{ + return paramName_; +} + +void ChDatabaseParameterInfo::setParamName(const std::string& value) +{ + paramName_ = value; + paramNameIsSet_ = true; +} + +bool ChDatabaseParameterInfo::paramNameIsSet() const +{ + return paramNameIsSet_; +} + +void ChDatabaseParameterInfo::unsetparamName() +{ + paramNameIsSet_ = false; +} + +std::string ChDatabaseParameterInfo::getDataType() const +{ + return dataType_; +} + +void ChDatabaseParameterInfo::setDataType(const std::string& value) +{ + dataType_ = value; + dataTypeIsSet_ = true; +} + +bool ChDatabaseParameterInfo::dataTypeIsSet() const +{ + return dataTypeIsSet_; +} + +void ChDatabaseParameterInfo::unsetdataType() +{ + dataTypeIsSet_ = false; +} + +std::string ChDatabaseParameterInfo::getDefaultValue() const +{ + return defaultValue_; +} + +void ChDatabaseParameterInfo::setDefaultValue(const std::string& value) +{ + defaultValue_ = value; + defaultValueIsSet_ = true; +} + +bool ChDatabaseParameterInfo::defaultValueIsSet() const +{ + return defaultValueIsSet_; +} + +void ChDatabaseParameterInfo::unsetdefaultValue() +{ + defaultValueIsSet_ = false; +} + +std::string ChDatabaseParameterInfo::getValueRange() const +{ + return valueRange_; +} + +void ChDatabaseParameterInfo::setValueRange(const std::string& value) +{ + valueRange_ = value; + valueRangeIsSet_ = true; +} + +bool ChDatabaseParameterInfo::valueRangeIsSet() const +{ + return valueRangeIsSet_; +} + +void ChDatabaseParameterInfo::unsetvalueRange() +{ + valueRangeIsSet_ = false; +} + +std::string ChDatabaseParameterInfo::getDescription() const +{ + return description_; +} + +void ChDatabaseParameterInfo::setDescription(const std::string& value) +{ + description_ = value; + descriptionIsSet_ = true; +} + +bool ChDatabaseParameterInfo::descriptionIsSet() const +{ + return descriptionIsSet_; +} + +void ChDatabaseParameterInfo::unsetdescription() +{ + descriptionIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ChDatabaseReplicationInfo.cpp b/gaussdb/src/v3/model/ChDatabaseReplicationInfo.cpp new file mode 100644 index 000000000..78a2f2aa5 --- /dev/null +++ b/gaussdb/src/v3/model/ChDatabaseReplicationInfo.cpp @@ -0,0 +1,254 @@ + + +#include "huaweicloud/gaussdb/v3/model/ChDatabaseReplicationInfo.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ChDatabaseReplicationInfo::ChDatabaseReplicationInfo() +{ + sourceDatabase_ = ""; + sourceDatabaseIsSet_ = false; + targetDatabase_ = ""; + targetDatabaseIsSet_ = false; + status_ = ""; + statusIsSet_ = false; + stage_ = ""; + stageIsSet_ = false; + percentage_ = ""; + percentageIsSet_ = false; + catchupStage_ = ""; + catchupStageIsSet_ = false; +} + +ChDatabaseReplicationInfo::~ChDatabaseReplicationInfo() = default; + +void ChDatabaseReplicationInfo::validate() +{ +} + +web::json::value ChDatabaseReplicationInfo::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(sourceDatabaseIsSet_) { + val[utility::conversions::to_string_t("source_database")] = ModelBase::toJson(sourceDatabase_); + } + if(targetDatabaseIsSet_) { + val[utility::conversions::to_string_t("target_database")] = ModelBase::toJson(targetDatabase_); + } + if(statusIsSet_) { + val[utility::conversions::to_string_t("status")] = ModelBase::toJson(status_); + } + if(stageIsSet_) { + val[utility::conversions::to_string_t("stage")] = ModelBase::toJson(stage_); + } + if(percentageIsSet_) { + val[utility::conversions::to_string_t("percentage")] = ModelBase::toJson(percentage_); + } + if(catchupStageIsSet_) { + val[utility::conversions::to_string_t("catchup_stage")] = ModelBase::toJson(catchupStage_); + } + + return val; +} +bool ChDatabaseReplicationInfo::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("source_database"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("source_database")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSourceDatabase(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("target_database"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("target_database")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTargetDatabase(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("status"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("status")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setStatus(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("stage"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("stage")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setStage(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("percentage"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("percentage")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPercentage(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("catchup_stage"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("catchup_stage")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCatchupStage(refVal); + } + } + return ok; +} + + +std::string ChDatabaseReplicationInfo::getSourceDatabase() const +{ + return sourceDatabase_; +} + +void ChDatabaseReplicationInfo::setSourceDatabase(const std::string& value) +{ + sourceDatabase_ = value; + sourceDatabaseIsSet_ = true; +} + +bool ChDatabaseReplicationInfo::sourceDatabaseIsSet() const +{ + return sourceDatabaseIsSet_; +} + +void ChDatabaseReplicationInfo::unsetsourceDatabase() +{ + sourceDatabaseIsSet_ = false; +} + +std::string ChDatabaseReplicationInfo::getTargetDatabase() const +{ + return targetDatabase_; +} + +void ChDatabaseReplicationInfo::setTargetDatabase(const std::string& value) +{ + targetDatabase_ = value; + targetDatabaseIsSet_ = true; +} + +bool ChDatabaseReplicationInfo::targetDatabaseIsSet() const +{ + return targetDatabaseIsSet_; +} + +void ChDatabaseReplicationInfo::unsettargetDatabase() +{ + targetDatabaseIsSet_ = false; +} + +std::string ChDatabaseReplicationInfo::getStatus() const +{ + return status_; +} + +void ChDatabaseReplicationInfo::setStatus(const std::string& value) +{ + status_ = value; + statusIsSet_ = true; +} + +bool ChDatabaseReplicationInfo::statusIsSet() const +{ + return statusIsSet_; +} + +void ChDatabaseReplicationInfo::unsetstatus() +{ + statusIsSet_ = false; +} + +std::string ChDatabaseReplicationInfo::getStage() const +{ + return stage_; +} + +void ChDatabaseReplicationInfo::setStage(const std::string& value) +{ + stage_ = value; + stageIsSet_ = true; +} + +bool ChDatabaseReplicationInfo::stageIsSet() const +{ + return stageIsSet_; +} + +void ChDatabaseReplicationInfo::unsetstage() +{ + stageIsSet_ = false; +} + +std::string ChDatabaseReplicationInfo::getPercentage() const +{ + return percentage_; +} + +void ChDatabaseReplicationInfo::setPercentage(const std::string& value) +{ + percentage_ = value; + percentageIsSet_ = true; +} + +bool ChDatabaseReplicationInfo::percentageIsSet() const +{ + return percentageIsSet_; +} + +void ChDatabaseReplicationInfo::unsetpercentage() +{ + percentageIsSet_ = false; +} + +std::string ChDatabaseReplicationInfo::getCatchupStage() const +{ + return catchupStage_; +} + +void ChDatabaseReplicationInfo::setCatchupStage(const std::string& value) +{ + catchupStage_ = value; + catchupStageIsSet_ = true; +} + +bool ChDatabaseReplicationInfo::catchupStageIsSet() const +{ + return catchupStageIsSet_; +} + +void ChDatabaseReplicationInfo::unsetcatchupStage() +{ + catchupStageIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ChDatabaseTableConfigCheckResult.cpp b/gaussdb/src/v3/model/ChDatabaseTableConfigCheckResult.cpp new file mode 100644 index 000000000..47ee42ad9 --- /dev/null +++ b/gaussdb/src/v3/model/ChDatabaseTableConfigCheckResult.cpp @@ -0,0 +1,149 @@ + + +#include "huaweicloud/gaussdb/v3/model/ChDatabaseTableConfigCheckResult.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ChDatabaseTableConfigCheckResult::ChDatabaseTableConfigCheckResult() +{ + tableName_ = ""; + tableNameIsSet_ = false; + tableConfig_ = ""; + tableConfigIsSet_ = false; + checkResult_ = ""; + checkResultIsSet_ = false; +} + +ChDatabaseTableConfigCheckResult::~ChDatabaseTableConfigCheckResult() = default; + +void ChDatabaseTableConfigCheckResult::validate() +{ +} + +web::json::value ChDatabaseTableConfigCheckResult::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(tableNameIsSet_) { + val[utility::conversions::to_string_t("table_name")] = ModelBase::toJson(tableName_); + } + if(tableConfigIsSet_) { + val[utility::conversions::to_string_t("table_config")] = ModelBase::toJson(tableConfig_); + } + if(checkResultIsSet_) { + val[utility::conversions::to_string_t("check_result")] = ModelBase::toJson(checkResult_); + } + + return val; +} +bool ChDatabaseTableConfigCheckResult::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("table_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("table_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTableName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("table_config"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("table_config")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTableConfig(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("check_result"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("check_result")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCheckResult(refVal); + } + } + return ok; +} + + +std::string ChDatabaseTableConfigCheckResult::getTableName() const +{ + return tableName_; +} + +void ChDatabaseTableConfigCheckResult::setTableName(const std::string& value) +{ + tableName_ = value; + tableNameIsSet_ = true; +} + +bool ChDatabaseTableConfigCheckResult::tableNameIsSet() const +{ + return tableNameIsSet_; +} + +void ChDatabaseTableConfigCheckResult::unsettableName() +{ + tableNameIsSet_ = false; +} + +std::string ChDatabaseTableConfigCheckResult::getTableConfig() const +{ + return tableConfig_; +} + +void ChDatabaseTableConfigCheckResult::setTableConfig(const std::string& value) +{ + tableConfig_ = value; + tableConfigIsSet_ = true; +} + +bool ChDatabaseTableConfigCheckResult::tableConfigIsSet() const +{ + return tableConfigIsSet_; +} + +void ChDatabaseTableConfigCheckResult::unsettableConfig() +{ + tableConfigIsSet_ = false; +} + +std::string ChDatabaseTableConfigCheckResult::getCheckResult() const +{ + return checkResult_; +} + +void ChDatabaseTableConfigCheckResult::setCheckResult(const std::string& value) +{ + checkResult_ = value; + checkResultIsSet_ = true; +} + +bool ChDatabaseTableConfigCheckResult::checkResultIsSet() const +{ + return checkResultIsSet_; +} + +void ChDatabaseTableConfigCheckResult::unsetcheckResult() +{ + checkResultIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ChDatabaseTableReplConfigInfo.cpp b/gaussdb/src/v3/model/ChDatabaseTableReplConfigInfo.cpp new file mode 100644 index 000000000..a5f00709c --- /dev/null +++ b/gaussdb/src/v3/model/ChDatabaseTableReplConfigInfo.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/gaussdb/v3/model/ChDatabaseTableReplConfigInfo.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ChDatabaseTableReplConfigInfo::ChDatabaseTableReplConfigInfo() +{ + replType_ = ""; + replTypeIsSet_ = false; + tablesIsSet_ = false; +} + +ChDatabaseTableReplConfigInfo::~ChDatabaseTableReplConfigInfo() = default; + +void ChDatabaseTableReplConfigInfo::validate() +{ +} + +web::json::value ChDatabaseTableReplConfigInfo::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(replTypeIsSet_) { + val[utility::conversions::to_string_t("repl_type")] = ModelBase::toJson(replType_); + } + if(tablesIsSet_) { + val[utility::conversions::to_string_t("tables")] = ModelBase::toJson(tables_); + } + + return val; +} +bool ChDatabaseTableReplConfigInfo::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("repl_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("repl_type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setReplType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("tables"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tables")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTables(refVal); + } + } + return ok; +} + + +std::string ChDatabaseTableReplConfigInfo::getReplType() const +{ + return replType_; +} + +void ChDatabaseTableReplConfigInfo::setReplType(const std::string& value) +{ + replType_ = value; + replTypeIsSet_ = true; +} + +bool ChDatabaseTableReplConfigInfo::replTypeIsSet() const +{ + return replTypeIsSet_; +} + +void ChDatabaseTableReplConfigInfo::unsetreplType() +{ + replTypeIsSet_ = false; +} + +std::vector& ChDatabaseTableReplConfigInfo::getTables() +{ + return tables_; +} + +void ChDatabaseTableReplConfigInfo::setTables(const std::vector& value) +{ + tables_ = value; + tablesIsSet_ = true; +} + +bool ChDatabaseTableReplConfigInfo::tablesIsSet() const +{ + return tablesIsSet_; +} + +void ChDatabaseTableReplConfigInfo::unsettables() +{ + tablesIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ChDatabaseTablesConfigsInfo.cpp b/gaussdb/src/v3/model/ChDatabaseTablesConfigsInfo.cpp new file mode 100644 index 000000000..360d4f48d --- /dev/null +++ b/gaussdb/src/v3/model/ChDatabaseTablesConfigsInfo.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/gaussdb/v3/model/ChDatabaseTablesConfigsInfo.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ChDatabaseTablesConfigsInfo::ChDatabaseTablesConfigsInfo() +{ + tableName_ = ""; + tableNameIsSet_ = false; + tableConfig_ = ""; + tableConfigIsSet_ = false; +} + +ChDatabaseTablesConfigsInfo::~ChDatabaseTablesConfigsInfo() = default; + +void ChDatabaseTablesConfigsInfo::validate() +{ +} + +web::json::value ChDatabaseTablesConfigsInfo::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(tableNameIsSet_) { + val[utility::conversions::to_string_t("table_name")] = ModelBase::toJson(tableName_); + } + if(tableConfigIsSet_) { + val[utility::conversions::to_string_t("table_config")] = ModelBase::toJson(tableConfig_); + } + + return val; +} +bool ChDatabaseTablesConfigsInfo::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("table_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("table_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTableName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("table_config"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("table_config")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTableConfig(refVal); + } + } + return ok; +} + + +std::string ChDatabaseTablesConfigsInfo::getTableName() const +{ + return tableName_; +} + +void ChDatabaseTablesConfigsInfo::setTableName(const std::string& value) +{ + tableName_ = value; + tableNameIsSet_ = true; +} + +bool ChDatabaseTablesConfigsInfo::tableNameIsSet() const +{ + return tableNameIsSet_; +} + +void ChDatabaseTablesConfigsInfo::unsettableName() +{ + tableNameIsSet_ = false; +} + +std::string ChDatabaseTablesConfigsInfo::getTableConfig() const +{ + return tableConfig_; +} + +void ChDatabaseTablesConfigsInfo::setTableConfig(const std::string& value) +{ + tableConfig_ = value; + tableConfigIsSet_ = true; +} + +bool ChDatabaseTablesConfigsInfo::tableConfigIsSet() const +{ + return tableConfigIsSet_; +} + +void ChDatabaseTablesConfigsInfo::unsettableConfig() +{ + tableConfigIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ChEnlargeVolumeRequestBody.cpp b/gaussdb/src/v3/model/ChEnlargeVolumeRequestBody.cpp new file mode 100644 index 000000000..c5f02eb66 --- /dev/null +++ b/gaussdb/src/v3/model/ChEnlargeVolumeRequestBody.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/gaussdb/v3/model/ChEnlargeVolumeRequestBody.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ChEnlargeVolumeRequestBody::ChEnlargeVolumeRequestBody() +{ + sizeInGb_ = 0; + sizeInGbIsSet_ = false; +} + +ChEnlargeVolumeRequestBody::~ChEnlargeVolumeRequestBody() = default; + +void ChEnlargeVolumeRequestBody::validate() +{ +} + +web::json::value ChEnlargeVolumeRequestBody::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(sizeInGbIsSet_) { + val[utility::conversions::to_string_t("size_in_gb")] = ModelBase::toJson(sizeInGb_); + } + + return val; +} +bool ChEnlargeVolumeRequestBody::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("size_in_gb"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("size_in_gb")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSizeInGb(refVal); + } + } + return ok; +} + + +int32_t ChEnlargeVolumeRequestBody::getSizeInGb() const +{ + return sizeInGb_; +} + +void ChEnlargeVolumeRequestBody::setSizeInGb(int32_t value) +{ + sizeInGb_ = value; + sizeInGbIsSet_ = true; +} + +bool ChEnlargeVolumeRequestBody::sizeInGbIsSet() const +{ + return sizeInGbIsSet_; +} + +void ChEnlargeVolumeRequestBody::unsetsizeInGb() +{ + sizeInGbIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ChInstanceLtsConfigs.cpp b/gaussdb/src/v3/model/ChInstanceLtsConfigs.cpp new file mode 100644 index 000000000..051ef0dd7 --- /dev/null +++ b/gaussdb/src/v3/model/ChInstanceLtsConfigs.cpp @@ -0,0 +1,112 @@ + + +#include "huaweicloud/gaussdb/v3/model/ChInstanceLtsConfigs.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ChInstanceLtsConfigs::ChInstanceLtsConfigs() +{ + ltsConfigsIsSet_ = false; + instanceIsSet_ = false; +} + +ChInstanceLtsConfigs::~ChInstanceLtsConfigs() = default; + +void ChInstanceLtsConfigs::validate() +{ +} + +web::json::value ChInstanceLtsConfigs::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(ltsConfigsIsSet_) { + val[utility::conversions::to_string_t("lts_configs")] = ModelBase::toJson(ltsConfigs_); + } + if(instanceIsSet_) { + val[utility::conversions::to_string_t("instance")] = ModelBase::toJson(instance_); + } + + return val; +} +bool ChInstanceLtsConfigs::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("lts_configs"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("lts_configs")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLtsConfigs(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("instance"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("instance")); + if(!fieldValue.is_null()) + { + ChInstanceLtsConfigs_instance refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInstance(refVal); + } + } + return ok; +} + + +std::vector& ChInstanceLtsConfigs::getLtsConfigs() +{ + return ltsConfigs_; +} + +void ChInstanceLtsConfigs::setLtsConfigs(const std::vector& value) +{ + ltsConfigs_ = value; + ltsConfigsIsSet_ = true; +} + +bool ChInstanceLtsConfigs::ltsConfigsIsSet() const +{ + return ltsConfigsIsSet_; +} + +void ChInstanceLtsConfigs::unsetltsConfigs() +{ + ltsConfigsIsSet_ = false; +} + +ChInstanceLtsConfigs_instance ChInstanceLtsConfigs::getInstance() const +{ + return instance_; +} + +void ChInstanceLtsConfigs::setInstance(const ChInstanceLtsConfigs_instance& value) +{ + instance_ = value; + instanceIsSet_ = true; +} + +bool ChInstanceLtsConfigs::instanceIsSet() const +{ + return instanceIsSet_; +} + +void ChInstanceLtsConfigs::unsetinstance() +{ + instanceIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ChInstanceLtsConfigs_instance.cpp b/gaussdb/src/v3/model/ChInstanceLtsConfigs_instance.cpp new file mode 100644 index 000000000..e6c2b53ef --- /dev/null +++ b/gaussdb/src/v3/model/ChInstanceLtsConfigs_instance.cpp @@ -0,0 +1,324 @@ + + +#include "huaweicloud/gaussdb/v3/model/ChInstanceLtsConfigs_instance.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ChInstanceLtsConfigs_instance::ChInstanceLtsConfigs_instance() +{ + id_ = ""; + idIsSet_ = false; + name_ = ""; + nameIsSet_ = false; + mode_ = ""; + modeIsSet_ = false; + engineName_ = ""; + engineNameIsSet_ = false; + engineVersion_ = ""; + engineVersionIsSet_ = false; + status_ = ""; + statusIsSet_ = false; + enterpriseProjectId_ = ""; + enterpriseProjectIdIsSet_ = false; + enterpriseProjectName_ = ""; + enterpriseProjectNameIsSet_ = false; +} + +ChInstanceLtsConfigs_instance::~ChInstanceLtsConfigs_instance() = default; + +void ChInstanceLtsConfigs_instance::validate() +{ +} + +web::json::value ChInstanceLtsConfigs_instance::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(modeIsSet_) { + val[utility::conversions::to_string_t("mode")] = ModelBase::toJson(mode_); + } + if(engineNameIsSet_) { + val[utility::conversions::to_string_t("engine_name")] = ModelBase::toJson(engineName_); + } + if(engineVersionIsSet_) { + val[utility::conversions::to_string_t("engine_version")] = ModelBase::toJson(engineVersion_); + } + if(statusIsSet_) { + val[utility::conversions::to_string_t("status")] = ModelBase::toJson(status_); + } + if(enterpriseProjectIdIsSet_) { + val[utility::conversions::to_string_t("enterprise_project_id")] = ModelBase::toJson(enterpriseProjectId_); + } + if(enterpriseProjectNameIsSet_) { + val[utility::conversions::to_string_t("enterprise_project_name")] = ModelBase::toJson(enterpriseProjectName_); + } + + return val; +} +bool ChInstanceLtsConfigs_instance::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("mode"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("mode")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setMode(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("engine_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("engine_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEngineName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("engine_version"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("engine_version")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEngineVersion(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("status"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("status")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setStatus(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("enterprise_project_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("enterprise_project_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnterpriseProjectId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("enterprise_project_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("enterprise_project_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnterpriseProjectName(refVal); + } + } + return ok; +} + + +std::string ChInstanceLtsConfigs_instance::getId() const +{ + return id_; +} + +void ChInstanceLtsConfigs_instance::setId(const std::string& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool ChInstanceLtsConfigs_instance::idIsSet() const +{ + return idIsSet_; +} + +void ChInstanceLtsConfigs_instance::unsetid() +{ + idIsSet_ = false; +} + +std::string ChInstanceLtsConfigs_instance::getName() const +{ + return name_; +} + +void ChInstanceLtsConfigs_instance::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool ChInstanceLtsConfigs_instance::nameIsSet() const +{ + return nameIsSet_; +} + +void ChInstanceLtsConfigs_instance::unsetname() +{ + nameIsSet_ = false; +} + +std::string ChInstanceLtsConfigs_instance::getMode() const +{ + return mode_; +} + +void ChInstanceLtsConfigs_instance::setMode(const std::string& value) +{ + mode_ = value; + modeIsSet_ = true; +} + +bool ChInstanceLtsConfigs_instance::modeIsSet() const +{ + return modeIsSet_; +} + +void ChInstanceLtsConfigs_instance::unsetmode() +{ + modeIsSet_ = false; +} + +std::string ChInstanceLtsConfigs_instance::getEngineName() const +{ + return engineName_; +} + +void ChInstanceLtsConfigs_instance::setEngineName(const std::string& value) +{ + engineName_ = value; + engineNameIsSet_ = true; +} + +bool ChInstanceLtsConfigs_instance::engineNameIsSet() const +{ + return engineNameIsSet_; +} + +void ChInstanceLtsConfigs_instance::unsetengineName() +{ + engineNameIsSet_ = false; +} + +std::string ChInstanceLtsConfigs_instance::getEngineVersion() const +{ + return engineVersion_; +} + +void ChInstanceLtsConfigs_instance::setEngineVersion(const std::string& value) +{ + engineVersion_ = value; + engineVersionIsSet_ = true; +} + +bool ChInstanceLtsConfigs_instance::engineVersionIsSet() const +{ + return engineVersionIsSet_; +} + +void ChInstanceLtsConfigs_instance::unsetengineVersion() +{ + engineVersionIsSet_ = false; +} + +std::string ChInstanceLtsConfigs_instance::getStatus() const +{ + return status_; +} + +void ChInstanceLtsConfigs_instance::setStatus(const std::string& value) +{ + status_ = value; + statusIsSet_ = true; +} + +bool ChInstanceLtsConfigs_instance::statusIsSet() const +{ + return statusIsSet_; +} + +void ChInstanceLtsConfigs_instance::unsetstatus() +{ + statusIsSet_ = false; +} + +std::string ChInstanceLtsConfigs_instance::getEnterpriseProjectId() const +{ + return enterpriseProjectId_; +} + +void ChInstanceLtsConfigs_instance::setEnterpriseProjectId(const std::string& value) +{ + enterpriseProjectId_ = value; + enterpriseProjectIdIsSet_ = true; +} + +bool ChInstanceLtsConfigs_instance::enterpriseProjectIdIsSet() const +{ + return enterpriseProjectIdIsSet_; +} + +void ChInstanceLtsConfigs_instance::unsetenterpriseProjectId() +{ + enterpriseProjectIdIsSet_ = false; +} + +std::string ChInstanceLtsConfigs_instance::getEnterpriseProjectName() const +{ + return enterpriseProjectName_; +} + +void ChInstanceLtsConfigs_instance::setEnterpriseProjectName(const std::string& value) +{ + enterpriseProjectName_ = value; + enterpriseProjectNameIsSet_ = true; +} + +bool ChInstanceLtsConfigs_instance::enterpriseProjectNameIsSet() const +{ + return enterpriseProjectNameIsSet_; +} + +void ChInstanceLtsConfigs_instance::unsetenterpriseProjectName() +{ + enterpriseProjectNameIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ChInstancesInfoRsponse_instance.cpp b/gaussdb/src/v3/model/ChInstancesInfoRsponse_instance.cpp new file mode 100644 index 000000000..085e2beb1 --- /dev/null +++ b/gaussdb/src/v3/model/ChInstancesInfoRsponse_instance.cpp @@ -0,0 +1,1403 @@ + + +#include "huaweicloud/gaussdb/v3/model/ChInstancesInfoRsponse_instance.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ChInstancesInfoRsponse_instance::ChInstancesInfoRsponse_instance() +{ + id_ = ""; + idIsSet_ = false; + name_ = ""; + nameIsSet_ = false; + projectId_ = ""; + projectIdIsSet_ = false; + publicIp_ = ""; + publicIpIsSet_ = false; + canEnablePublicAccess_ = false; + canEnablePublicAccessIsSet_ = false; + currentBackupNodeId_ = ""; + currentBackupNodeIdIsSet_ = false; + clusterMode_ = ""; + clusterModeIsSet_ = false; + status_ = ""; + statusIsSet_ = false; + isFrozen_ = 0; + isFrozenIsSet_ = false; + frozenTime_ = ""; + frozenTimeIsSet_ = false; + dbUser_ = ""; + dbUserIsSet_ = false; + bakPeriod_ = ""; + bakPeriodIsSet_ = false; + bakKeepDay_ = 0; + bakKeepDayIsSet_ = false; + bakExpectedStartTime_ = ""; + bakExpectedStartTimeIsSet_ = false; + datastoreVersionId_ = ""; + datastoreVersionIdIsSet_ = false; + datastoreVersion_ = ""; + datastoreVersionIsSet_ = false; + datastoreType_ = ""; + datastoreTypeIsSet_ = false; + createAt_ = 0L; + createAtIsSet_ = false; + updateAt_ = 0L; + updateAtIsSet_ = false; + deleteAt_ = 0L; + deleteAtIsSet_ = false; + dbPort_ = ""; + dbPortIsSet_ = false; + paramGroupIsSet_ = false; + actionsIsSet_ = false; + createFailErrorCode_ = ""; + createFailErrorCodeIsSet_ = false; + groupsIsSet_ = false; + opsWindowIsSet_ = false; + tagsInfoIsSet_ = false; + timeZone_ = ""; + timeZoneIsSet_ = false; + backupUsedSpace_ = ""; + backupUsedSpaceIsSet_ = false; + azMode_ = ""; + azModeIsSet_ = false; + masterAzCode_ = ""; + masterAzCodeIsSet_ = false; + enterpriseProjectId_ = ""; + enterpriseProjectIdIsSet_ = false; + portInfoIsSet_ = false; + volumeCode_ = ""; + volumeCodeIsSet_ = false; + supportDataReplication_ = false; + supportDataReplicationIsSet_ = false; + newVersionAvailable_ = false; + newVersionAvailableIsSet_ = false; + sslOption_ = false; + sslOptionIsSet_ = false; + dedicatedResourceId_ = ""; + dedicatedResourceIdIsSet_ = false; + payModel_ = ""; + payModelIsSet_ = false; +} + +ChInstancesInfoRsponse_instance::~ChInstancesInfoRsponse_instance() = default; + +void ChInstancesInfoRsponse_instance::validate() +{ +} + +web::json::value ChInstancesInfoRsponse_instance::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(projectIdIsSet_) { + val[utility::conversions::to_string_t("project_id")] = ModelBase::toJson(projectId_); + } + if(publicIpIsSet_) { + val[utility::conversions::to_string_t("public_ip")] = ModelBase::toJson(publicIp_); + } + if(canEnablePublicAccessIsSet_) { + val[utility::conversions::to_string_t("can_enable_public_access")] = ModelBase::toJson(canEnablePublicAccess_); + } + if(currentBackupNodeIdIsSet_) { + val[utility::conversions::to_string_t("current_backup_node_id")] = ModelBase::toJson(currentBackupNodeId_); + } + if(clusterModeIsSet_) { + val[utility::conversions::to_string_t("cluster_mode")] = ModelBase::toJson(clusterMode_); + } + if(statusIsSet_) { + val[utility::conversions::to_string_t("status")] = ModelBase::toJson(status_); + } + if(isFrozenIsSet_) { + val[utility::conversions::to_string_t("is_frozen")] = ModelBase::toJson(isFrozen_); + } + if(frozenTimeIsSet_) { + val[utility::conversions::to_string_t("frozen_time")] = ModelBase::toJson(frozenTime_); + } + if(dbUserIsSet_) { + val[utility::conversions::to_string_t("db_user")] = ModelBase::toJson(dbUser_); + } + if(bakPeriodIsSet_) { + val[utility::conversions::to_string_t("bak_period")] = ModelBase::toJson(bakPeriod_); + } + if(bakKeepDayIsSet_) { + val[utility::conversions::to_string_t("bak_keep_day")] = ModelBase::toJson(bakKeepDay_); + } + if(bakExpectedStartTimeIsSet_) { + val[utility::conversions::to_string_t("bak_expected_start_time")] = ModelBase::toJson(bakExpectedStartTime_); + } + if(datastoreVersionIdIsSet_) { + val[utility::conversions::to_string_t("datastore_version_id")] = ModelBase::toJson(datastoreVersionId_); + } + if(datastoreVersionIsSet_) { + val[utility::conversions::to_string_t("datastore_version")] = ModelBase::toJson(datastoreVersion_); + } + if(datastoreTypeIsSet_) { + val[utility::conversions::to_string_t("datastore_type")] = ModelBase::toJson(datastoreType_); + } + if(createAtIsSet_) { + val[utility::conversions::to_string_t("create_at")] = ModelBase::toJson(createAt_); + } + if(updateAtIsSet_) { + val[utility::conversions::to_string_t("update_at")] = ModelBase::toJson(updateAt_); + } + if(deleteAtIsSet_) { + val[utility::conversions::to_string_t("delete_at")] = ModelBase::toJson(deleteAt_); + } + if(dbPortIsSet_) { + val[utility::conversions::to_string_t("db_port")] = ModelBase::toJson(dbPort_); + } + if(paramGroupIsSet_) { + val[utility::conversions::to_string_t("param_group")] = ModelBase::toJson(paramGroup_); + } + if(actionsIsSet_) { + val[utility::conversions::to_string_t("actions")] = ModelBase::toJson(actions_); + } + if(createFailErrorCodeIsSet_) { + val[utility::conversions::to_string_t("create_fail_error_code")] = ModelBase::toJson(createFailErrorCode_); + } + if(groupsIsSet_) { + val[utility::conversions::to_string_t("groups")] = ModelBase::toJson(groups_); + } + if(opsWindowIsSet_) { + val[utility::conversions::to_string_t("ops_window")] = ModelBase::toJson(opsWindow_); + } + if(tagsInfoIsSet_) { + val[utility::conversions::to_string_t("tags_info")] = ModelBase::toJson(tagsInfo_); + } + if(timeZoneIsSet_) { + val[utility::conversions::to_string_t("time_zone")] = ModelBase::toJson(timeZone_); + } + if(backupUsedSpaceIsSet_) { + val[utility::conversions::to_string_t("backup_used_space")] = ModelBase::toJson(backupUsedSpace_); + } + if(azModeIsSet_) { + val[utility::conversions::to_string_t("az_mode")] = ModelBase::toJson(azMode_); + } + if(masterAzCodeIsSet_) { + val[utility::conversions::to_string_t("master_az_code")] = ModelBase::toJson(masterAzCode_); + } + if(enterpriseProjectIdIsSet_) { + val[utility::conversions::to_string_t("enterprise_project_id")] = ModelBase::toJson(enterpriseProjectId_); + } + if(portInfoIsSet_) { + val[utility::conversions::to_string_t("port_info")] = ModelBase::toJson(portInfo_); + } + if(volumeCodeIsSet_) { + val[utility::conversions::to_string_t("volume_code")] = ModelBase::toJson(volumeCode_); + } + if(supportDataReplicationIsSet_) { + val[utility::conversions::to_string_t("support_data_replication")] = ModelBase::toJson(supportDataReplication_); + } + if(newVersionAvailableIsSet_) { + val[utility::conversions::to_string_t("new_version_available")] = ModelBase::toJson(newVersionAvailable_); + } + if(sslOptionIsSet_) { + val[utility::conversions::to_string_t("ssl_option")] = ModelBase::toJson(sslOption_); + } + if(dedicatedResourceIdIsSet_) { + val[utility::conversions::to_string_t("dedicated_resource_id")] = ModelBase::toJson(dedicatedResourceId_); + } + if(payModelIsSet_) { + val[utility::conversions::to_string_t("pay_model")] = ModelBase::toJson(payModel_); + } + + return val; +} +bool ChInstancesInfoRsponse_instance::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("project_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("project_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setProjectId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("public_ip"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("public_ip")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPublicIp(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("can_enable_public_access"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("can_enable_public_access")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCanEnablePublicAccess(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("current_backup_node_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("current_backup_node_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCurrentBackupNodeId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("cluster_mode"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("cluster_mode")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setClusterMode(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("status"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("status")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setStatus(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("is_frozen"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("is_frozen")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIsFrozen(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("frozen_time"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("frozen_time")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFrozenTime(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("db_user"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("db_user")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDbUser(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("bak_period"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("bak_period")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBakPeriod(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("bak_keep_day"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("bak_keep_day")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBakKeepDay(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("bak_expected_start_time"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("bak_expected_start_time")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBakExpectedStartTime(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("datastore_version_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("datastore_version_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDatastoreVersionId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("datastore_version"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("datastore_version")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDatastoreVersion(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("datastore_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("datastore_type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDatastoreType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("create_at"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("create_at")); + if(!fieldValue.is_null()) + { + int64_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCreateAt(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("update_at"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("update_at")); + if(!fieldValue.is_null()) + { + int64_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setUpdateAt(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("delete_at"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("delete_at")); + if(!fieldValue.is_null()) + { + int64_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDeleteAt(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("db_port"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("db_port")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDbPort(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("param_group"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("param_group")); + if(!fieldValue.is_null()) + { + ChInstancesInfoRsponse_instance_param_group refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setParamGroup(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("actions"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("actions")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setActions(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("create_fail_error_code"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("create_fail_error_code")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCreateFailErrorCode(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("groups"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("groups")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGroups(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ops_window"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ops_window")); + if(!fieldValue.is_null()) + { + ChInstancesInfoRsponse_instance_ops_window refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setOpsWindow(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("tags_info"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tags_info")); + if(!fieldValue.is_null()) + { + CreateChInstanceInfo_tags_info refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTagsInfo(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("time_zone"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("time_zone")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTimeZone(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("backup_used_space"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("backup_used_space")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBackupUsedSpace(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("az_mode"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("az_mode")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAzMode(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("master_az_code"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("master_az_code")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setMasterAzCode(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("enterprise_project_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("enterprise_project_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnterpriseProjectId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("port_info"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("port_info")); + if(!fieldValue.is_null()) + { + ChInstancesInfoRsponse_instance_port_info refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPortInfo(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("volume_code"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("volume_code")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setVolumeCode(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("support_data_replication"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("support_data_replication")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSupportDataReplication(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("new_version_available"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("new_version_available")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setNewVersionAvailable(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ssl_option"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ssl_option")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSslOption(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("dedicated_resource_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("dedicated_resource_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDedicatedResourceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("pay_model"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("pay_model")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPayModel(refVal); + } + } + return ok; +} + + +std::string ChInstancesInfoRsponse_instance::getId() const +{ + return id_; +} + +void ChInstancesInfoRsponse_instance::setId(const std::string& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool ChInstancesInfoRsponse_instance::idIsSet() const +{ + return idIsSet_; +} + +void ChInstancesInfoRsponse_instance::unsetid() +{ + idIsSet_ = false; +} + +std::string ChInstancesInfoRsponse_instance::getName() const +{ + return name_; +} + +void ChInstancesInfoRsponse_instance::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool ChInstancesInfoRsponse_instance::nameIsSet() const +{ + return nameIsSet_; +} + +void ChInstancesInfoRsponse_instance::unsetname() +{ + nameIsSet_ = false; +} + +std::string ChInstancesInfoRsponse_instance::getProjectId() const +{ + return projectId_; +} + +void ChInstancesInfoRsponse_instance::setProjectId(const std::string& value) +{ + projectId_ = value; + projectIdIsSet_ = true; +} + +bool ChInstancesInfoRsponse_instance::projectIdIsSet() const +{ + return projectIdIsSet_; +} + +void ChInstancesInfoRsponse_instance::unsetprojectId() +{ + projectIdIsSet_ = false; +} + +std::string ChInstancesInfoRsponse_instance::getPublicIp() const +{ + return publicIp_; +} + +void ChInstancesInfoRsponse_instance::setPublicIp(const std::string& value) +{ + publicIp_ = value; + publicIpIsSet_ = true; +} + +bool ChInstancesInfoRsponse_instance::publicIpIsSet() const +{ + return publicIpIsSet_; +} + +void ChInstancesInfoRsponse_instance::unsetpublicIp() +{ + publicIpIsSet_ = false; +} + +bool ChInstancesInfoRsponse_instance::isCanEnablePublicAccess() const +{ + return canEnablePublicAccess_; +} + +void ChInstancesInfoRsponse_instance::setCanEnablePublicAccess(bool value) +{ + canEnablePublicAccess_ = value; + canEnablePublicAccessIsSet_ = true; +} + +bool ChInstancesInfoRsponse_instance::canEnablePublicAccessIsSet() const +{ + return canEnablePublicAccessIsSet_; +} + +void ChInstancesInfoRsponse_instance::unsetcanEnablePublicAccess() +{ + canEnablePublicAccessIsSet_ = false; +} + +std::string ChInstancesInfoRsponse_instance::getCurrentBackupNodeId() const +{ + return currentBackupNodeId_; +} + +void ChInstancesInfoRsponse_instance::setCurrentBackupNodeId(const std::string& value) +{ + currentBackupNodeId_ = value; + currentBackupNodeIdIsSet_ = true; +} + +bool ChInstancesInfoRsponse_instance::currentBackupNodeIdIsSet() const +{ + return currentBackupNodeIdIsSet_; +} + +void ChInstancesInfoRsponse_instance::unsetcurrentBackupNodeId() +{ + currentBackupNodeIdIsSet_ = false; +} + +std::string ChInstancesInfoRsponse_instance::getClusterMode() const +{ + return clusterMode_; +} + +void ChInstancesInfoRsponse_instance::setClusterMode(const std::string& value) +{ + clusterMode_ = value; + clusterModeIsSet_ = true; +} + +bool ChInstancesInfoRsponse_instance::clusterModeIsSet() const +{ + return clusterModeIsSet_; +} + +void ChInstancesInfoRsponse_instance::unsetclusterMode() +{ + clusterModeIsSet_ = false; +} + +std::string ChInstancesInfoRsponse_instance::getStatus() const +{ + return status_; +} + +void ChInstancesInfoRsponse_instance::setStatus(const std::string& value) +{ + status_ = value; + statusIsSet_ = true; +} + +bool ChInstancesInfoRsponse_instance::statusIsSet() const +{ + return statusIsSet_; +} + +void ChInstancesInfoRsponse_instance::unsetstatus() +{ + statusIsSet_ = false; +} + +int32_t ChInstancesInfoRsponse_instance::getIsFrozen() const +{ + return isFrozen_; +} + +void ChInstancesInfoRsponse_instance::setIsFrozen(int32_t value) +{ + isFrozen_ = value; + isFrozenIsSet_ = true; +} + +bool ChInstancesInfoRsponse_instance::isFrozenIsSet() const +{ + return isFrozenIsSet_; +} + +void ChInstancesInfoRsponse_instance::unsetisFrozen() +{ + isFrozenIsSet_ = false; +} + +std::string ChInstancesInfoRsponse_instance::getFrozenTime() const +{ + return frozenTime_; +} + +void ChInstancesInfoRsponse_instance::setFrozenTime(const std::string& value) +{ + frozenTime_ = value; + frozenTimeIsSet_ = true; +} + +bool ChInstancesInfoRsponse_instance::frozenTimeIsSet() const +{ + return frozenTimeIsSet_; +} + +void ChInstancesInfoRsponse_instance::unsetfrozenTime() +{ + frozenTimeIsSet_ = false; +} + +std::string ChInstancesInfoRsponse_instance::getDbUser() const +{ + return dbUser_; +} + +void ChInstancesInfoRsponse_instance::setDbUser(const std::string& value) +{ + dbUser_ = value; + dbUserIsSet_ = true; +} + +bool ChInstancesInfoRsponse_instance::dbUserIsSet() const +{ + return dbUserIsSet_; +} + +void ChInstancesInfoRsponse_instance::unsetdbUser() +{ + dbUserIsSet_ = false; +} + +std::string ChInstancesInfoRsponse_instance::getBakPeriod() const +{ + return bakPeriod_; +} + +void ChInstancesInfoRsponse_instance::setBakPeriod(const std::string& value) +{ + bakPeriod_ = value; + bakPeriodIsSet_ = true; +} + +bool ChInstancesInfoRsponse_instance::bakPeriodIsSet() const +{ + return bakPeriodIsSet_; +} + +void ChInstancesInfoRsponse_instance::unsetbakPeriod() +{ + bakPeriodIsSet_ = false; +} + +int32_t ChInstancesInfoRsponse_instance::getBakKeepDay() const +{ + return bakKeepDay_; +} + +void ChInstancesInfoRsponse_instance::setBakKeepDay(int32_t value) +{ + bakKeepDay_ = value; + bakKeepDayIsSet_ = true; +} + +bool ChInstancesInfoRsponse_instance::bakKeepDayIsSet() const +{ + return bakKeepDayIsSet_; +} + +void ChInstancesInfoRsponse_instance::unsetbakKeepDay() +{ + bakKeepDayIsSet_ = false; +} + +std::string ChInstancesInfoRsponse_instance::getBakExpectedStartTime() const +{ + return bakExpectedStartTime_; +} + +void ChInstancesInfoRsponse_instance::setBakExpectedStartTime(const std::string& value) +{ + bakExpectedStartTime_ = value; + bakExpectedStartTimeIsSet_ = true; +} + +bool ChInstancesInfoRsponse_instance::bakExpectedStartTimeIsSet() const +{ + return bakExpectedStartTimeIsSet_; +} + +void ChInstancesInfoRsponse_instance::unsetbakExpectedStartTime() +{ + bakExpectedStartTimeIsSet_ = false; +} + +std::string ChInstancesInfoRsponse_instance::getDatastoreVersionId() const +{ + return datastoreVersionId_; +} + +void ChInstancesInfoRsponse_instance::setDatastoreVersionId(const std::string& value) +{ + datastoreVersionId_ = value; + datastoreVersionIdIsSet_ = true; +} + +bool ChInstancesInfoRsponse_instance::datastoreVersionIdIsSet() const +{ + return datastoreVersionIdIsSet_; +} + +void ChInstancesInfoRsponse_instance::unsetdatastoreVersionId() +{ + datastoreVersionIdIsSet_ = false; +} + +std::string ChInstancesInfoRsponse_instance::getDatastoreVersion() const +{ + return datastoreVersion_; +} + +void ChInstancesInfoRsponse_instance::setDatastoreVersion(const std::string& value) +{ + datastoreVersion_ = value; + datastoreVersionIsSet_ = true; +} + +bool ChInstancesInfoRsponse_instance::datastoreVersionIsSet() const +{ + return datastoreVersionIsSet_; +} + +void ChInstancesInfoRsponse_instance::unsetdatastoreVersion() +{ + datastoreVersionIsSet_ = false; +} + +std::string ChInstancesInfoRsponse_instance::getDatastoreType() const +{ + return datastoreType_; +} + +void ChInstancesInfoRsponse_instance::setDatastoreType(const std::string& value) +{ + datastoreType_ = value; + datastoreTypeIsSet_ = true; +} + +bool ChInstancesInfoRsponse_instance::datastoreTypeIsSet() const +{ + return datastoreTypeIsSet_; +} + +void ChInstancesInfoRsponse_instance::unsetdatastoreType() +{ + datastoreTypeIsSet_ = false; +} + +int64_t ChInstancesInfoRsponse_instance::getCreateAt() const +{ + return createAt_; +} + +void ChInstancesInfoRsponse_instance::setCreateAt(int64_t value) +{ + createAt_ = value; + createAtIsSet_ = true; +} + +bool ChInstancesInfoRsponse_instance::createAtIsSet() const +{ + return createAtIsSet_; +} + +void ChInstancesInfoRsponse_instance::unsetcreateAt() +{ + createAtIsSet_ = false; +} + +int64_t ChInstancesInfoRsponse_instance::getUpdateAt() const +{ + return updateAt_; +} + +void ChInstancesInfoRsponse_instance::setUpdateAt(int64_t value) +{ + updateAt_ = value; + updateAtIsSet_ = true; +} + +bool ChInstancesInfoRsponse_instance::updateAtIsSet() const +{ + return updateAtIsSet_; +} + +void ChInstancesInfoRsponse_instance::unsetupdateAt() +{ + updateAtIsSet_ = false; +} + +int64_t ChInstancesInfoRsponse_instance::getDeleteAt() const +{ + return deleteAt_; +} + +void ChInstancesInfoRsponse_instance::setDeleteAt(int64_t value) +{ + deleteAt_ = value; + deleteAtIsSet_ = true; +} + +bool ChInstancesInfoRsponse_instance::deleteAtIsSet() const +{ + return deleteAtIsSet_; +} + +void ChInstancesInfoRsponse_instance::unsetdeleteAt() +{ + deleteAtIsSet_ = false; +} + +std::string ChInstancesInfoRsponse_instance::getDbPort() const +{ + return dbPort_; +} + +void ChInstancesInfoRsponse_instance::setDbPort(const std::string& value) +{ + dbPort_ = value; + dbPortIsSet_ = true; +} + +bool ChInstancesInfoRsponse_instance::dbPortIsSet() const +{ + return dbPortIsSet_; +} + +void ChInstancesInfoRsponse_instance::unsetdbPort() +{ + dbPortIsSet_ = false; +} + +ChInstancesInfoRsponse_instance_param_group ChInstancesInfoRsponse_instance::getParamGroup() const +{ + return paramGroup_; +} + +void ChInstancesInfoRsponse_instance::setParamGroup(const ChInstancesInfoRsponse_instance_param_group& value) +{ + paramGroup_ = value; + paramGroupIsSet_ = true; +} + +bool ChInstancesInfoRsponse_instance::paramGroupIsSet() const +{ + return paramGroupIsSet_; +} + +void ChInstancesInfoRsponse_instance::unsetparamGroup() +{ + paramGroupIsSet_ = false; +} + +std::vector& ChInstancesInfoRsponse_instance::getActions() +{ + return actions_; +} + +void ChInstancesInfoRsponse_instance::setActions(const std::vector& value) +{ + actions_ = value; + actionsIsSet_ = true; +} + +bool ChInstancesInfoRsponse_instance::actionsIsSet() const +{ + return actionsIsSet_; +} + +void ChInstancesInfoRsponse_instance::unsetactions() +{ + actionsIsSet_ = false; +} + +std::string ChInstancesInfoRsponse_instance::getCreateFailErrorCode() const +{ + return createFailErrorCode_; +} + +void ChInstancesInfoRsponse_instance::setCreateFailErrorCode(const std::string& value) +{ + createFailErrorCode_ = value; + createFailErrorCodeIsSet_ = true; +} + +bool ChInstancesInfoRsponse_instance::createFailErrorCodeIsSet() const +{ + return createFailErrorCodeIsSet_; +} + +void ChInstancesInfoRsponse_instance::unsetcreateFailErrorCode() +{ + createFailErrorCodeIsSet_ = false; +} + +std::vector& ChInstancesInfoRsponse_instance::getGroups() +{ + return groups_; +} + +void ChInstancesInfoRsponse_instance::setGroups(const std::vector& value) +{ + groups_ = value; + groupsIsSet_ = true; +} + +bool ChInstancesInfoRsponse_instance::groupsIsSet() const +{ + return groupsIsSet_; +} + +void ChInstancesInfoRsponse_instance::unsetgroups() +{ + groupsIsSet_ = false; +} + +ChInstancesInfoRsponse_instance_ops_window ChInstancesInfoRsponse_instance::getOpsWindow() const +{ + return opsWindow_; +} + +void ChInstancesInfoRsponse_instance::setOpsWindow(const ChInstancesInfoRsponse_instance_ops_window& value) +{ + opsWindow_ = value; + opsWindowIsSet_ = true; +} + +bool ChInstancesInfoRsponse_instance::opsWindowIsSet() const +{ + return opsWindowIsSet_; +} + +void ChInstancesInfoRsponse_instance::unsetopsWindow() +{ + opsWindowIsSet_ = false; +} + +CreateChInstanceInfo_tags_info ChInstancesInfoRsponse_instance::getTagsInfo() const +{ + return tagsInfo_; +} + +void ChInstancesInfoRsponse_instance::setTagsInfo(const CreateChInstanceInfo_tags_info& value) +{ + tagsInfo_ = value; + tagsInfoIsSet_ = true; +} + +bool ChInstancesInfoRsponse_instance::tagsInfoIsSet() const +{ + return tagsInfoIsSet_; +} + +void ChInstancesInfoRsponse_instance::unsettagsInfo() +{ + tagsInfoIsSet_ = false; +} + +std::string ChInstancesInfoRsponse_instance::getTimeZone() const +{ + return timeZone_; +} + +void ChInstancesInfoRsponse_instance::setTimeZone(const std::string& value) +{ + timeZone_ = value; + timeZoneIsSet_ = true; +} + +bool ChInstancesInfoRsponse_instance::timeZoneIsSet() const +{ + return timeZoneIsSet_; +} + +void ChInstancesInfoRsponse_instance::unsettimeZone() +{ + timeZoneIsSet_ = false; +} + +std::string ChInstancesInfoRsponse_instance::getBackupUsedSpace() const +{ + return backupUsedSpace_; +} + +void ChInstancesInfoRsponse_instance::setBackupUsedSpace(const std::string& value) +{ + backupUsedSpace_ = value; + backupUsedSpaceIsSet_ = true; +} + +bool ChInstancesInfoRsponse_instance::backupUsedSpaceIsSet() const +{ + return backupUsedSpaceIsSet_; +} + +void ChInstancesInfoRsponse_instance::unsetbackupUsedSpace() +{ + backupUsedSpaceIsSet_ = false; +} + +std::string ChInstancesInfoRsponse_instance::getAzMode() const +{ + return azMode_; +} + +void ChInstancesInfoRsponse_instance::setAzMode(const std::string& value) +{ + azMode_ = value; + azModeIsSet_ = true; +} + +bool ChInstancesInfoRsponse_instance::azModeIsSet() const +{ + return azModeIsSet_; +} + +void ChInstancesInfoRsponse_instance::unsetazMode() +{ + azModeIsSet_ = false; +} + +std::string ChInstancesInfoRsponse_instance::getMasterAzCode() const +{ + return masterAzCode_; +} + +void ChInstancesInfoRsponse_instance::setMasterAzCode(const std::string& value) +{ + masterAzCode_ = value; + masterAzCodeIsSet_ = true; +} + +bool ChInstancesInfoRsponse_instance::masterAzCodeIsSet() const +{ + return masterAzCodeIsSet_; +} + +void ChInstancesInfoRsponse_instance::unsetmasterAzCode() +{ + masterAzCodeIsSet_ = false; +} + +std::string ChInstancesInfoRsponse_instance::getEnterpriseProjectId() const +{ + return enterpriseProjectId_; +} + +void ChInstancesInfoRsponse_instance::setEnterpriseProjectId(const std::string& value) +{ + enterpriseProjectId_ = value; + enterpriseProjectIdIsSet_ = true; +} + +bool ChInstancesInfoRsponse_instance::enterpriseProjectIdIsSet() const +{ + return enterpriseProjectIdIsSet_; +} + +void ChInstancesInfoRsponse_instance::unsetenterpriseProjectId() +{ + enterpriseProjectIdIsSet_ = false; +} + +ChInstancesInfoRsponse_instance_port_info ChInstancesInfoRsponse_instance::getPortInfo() const +{ + return portInfo_; +} + +void ChInstancesInfoRsponse_instance::setPortInfo(const ChInstancesInfoRsponse_instance_port_info& value) +{ + portInfo_ = value; + portInfoIsSet_ = true; +} + +bool ChInstancesInfoRsponse_instance::portInfoIsSet() const +{ + return portInfoIsSet_; +} + +void ChInstancesInfoRsponse_instance::unsetportInfo() +{ + portInfoIsSet_ = false; +} + +std::string ChInstancesInfoRsponse_instance::getVolumeCode() const +{ + return volumeCode_; +} + +void ChInstancesInfoRsponse_instance::setVolumeCode(const std::string& value) +{ + volumeCode_ = value; + volumeCodeIsSet_ = true; +} + +bool ChInstancesInfoRsponse_instance::volumeCodeIsSet() const +{ + return volumeCodeIsSet_; +} + +void ChInstancesInfoRsponse_instance::unsetvolumeCode() +{ + volumeCodeIsSet_ = false; +} + +bool ChInstancesInfoRsponse_instance::isSupportDataReplication() const +{ + return supportDataReplication_; +} + +void ChInstancesInfoRsponse_instance::setSupportDataReplication(bool value) +{ + supportDataReplication_ = value; + supportDataReplicationIsSet_ = true; +} + +bool ChInstancesInfoRsponse_instance::supportDataReplicationIsSet() const +{ + return supportDataReplicationIsSet_; +} + +void ChInstancesInfoRsponse_instance::unsetsupportDataReplication() +{ + supportDataReplicationIsSet_ = false; +} + +bool ChInstancesInfoRsponse_instance::isNewVersionAvailable() const +{ + return newVersionAvailable_; +} + +void ChInstancesInfoRsponse_instance::setNewVersionAvailable(bool value) +{ + newVersionAvailable_ = value; + newVersionAvailableIsSet_ = true; +} + +bool ChInstancesInfoRsponse_instance::newVersionAvailableIsSet() const +{ + return newVersionAvailableIsSet_; +} + +void ChInstancesInfoRsponse_instance::unsetnewVersionAvailable() +{ + newVersionAvailableIsSet_ = false; +} + +bool ChInstancesInfoRsponse_instance::isSslOption() const +{ + return sslOption_; +} + +void ChInstancesInfoRsponse_instance::setSslOption(bool value) +{ + sslOption_ = value; + sslOptionIsSet_ = true; +} + +bool ChInstancesInfoRsponse_instance::sslOptionIsSet() const +{ + return sslOptionIsSet_; +} + +void ChInstancesInfoRsponse_instance::unsetsslOption() +{ + sslOptionIsSet_ = false; +} + +std::string ChInstancesInfoRsponse_instance::getDedicatedResourceId() const +{ + return dedicatedResourceId_; +} + +void ChInstancesInfoRsponse_instance::setDedicatedResourceId(const std::string& value) +{ + dedicatedResourceId_ = value; + dedicatedResourceIdIsSet_ = true; +} + +bool ChInstancesInfoRsponse_instance::dedicatedResourceIdIsSet() const +{ + return dedicatedResourceIdIsSet_; +} + +void ChInstancesInfoRsponse_instance::unsetdedicatedResourceId() +{ + dedicatedResourceIdIsSet_ = false; +} + +std::string ChInstancesInfoRsponse_instance::getPayModel() const +{ + return payModel_; +} + +void ChInstancesInfoRsponse_instance::setPayModel(const std::string& value) +{ + payModel_ = value; + payModelIsSet_ = true; +} + +bool ChInstancesInfoRsponse_instance::payModelIsSet() const +{ + return payModelIsSet_; +} + +void ChInstancesInfoRsponse_instance::unsetpayModel() +{ + payModelIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ChInstancesInfoRsponse_instance_groups.cpp b/gaussdb/src/v3/model/ChInstancesInfoRsponse_instance_groups.cpp new file mode 100644 index 000000000..38fde87fd --- /dev/null +++ b/gaussdb/src/v3/model/ChInstancesInfoRsponse_instance_groups.cpp @@ -0,0 +1,183 @@ + + +#include "huaweicloud/gaussdb/v3/model/ChInstancesInfoRsponse_instance_groups.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ChInstancesInfoRsponse_instance_groups::ChInstancesInfoRsponse_instance_groups() +{ + id_ = ""; + idIsSet_ = false; + name_ = ""; + nameIsSet_ = false; + groupTypeName_ = ""; + groupTypeNameIsSet_ = false; + nodesIsSet_ = false; +} + +ChInstancesInfoRsponse_instance_groups::~ChInstancesInfoRsponse_instance_groups() = default; + +void ChInstancesInfoRsponse_instance_groups::validate() +{ +} + +web::json::value ChInstancesInfoRsponse_instance_groups::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(groupTypeNameIsSet_) { + val[utility::conversions::to_string_t("group_type_name")] = ModelBase::toJson(groupTypeName_); + } + if(nodesIsSet_) { + val[utility::conversions::to_string_t("nodes")] = ModelBase::toJson(nodes_); + } + + return val; +} +bool ChInstancesInfoRsponse_instance_groups::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("group_type_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("group_type_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setGroupTypeName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("nodes"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("nodes")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setNodes(refVal); + } + } + return ok; +} + + +std::string ChInstancesInfoRsponse_instance_groups::getId() const +{ + return id_; +} + +void ChInstancesInfoRsponse_instance_groups::setId(const std::string& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool ChInstancesInfoRsponse_instance_groups::idIsSet() const +{ + return idIsSet_; +} + +void ChInstancesInfoRsponse_instance_groups::unsetid() +{ + idIsSet_ = false; +} + +std::string ChInstancesInfoRsponse_instance_groups::getName() const +{ + return name_; +} + +void ChInstancesInfoRsponse_instance_groups::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool ChInstancesInfoRsponse_instance_groups::nameIsSet() const +{ + return nameIsSet_; +} + +void ChInstancesInfoRsponse_instance_groups::unsetname() +{ + nameIsSet_ = false; +} + +std::string ChInstancesInfoRsponse_instance_groups::getGroupTypeName() const +{ + return groupTypeName_; +} + +void ChInstancesInfoRsponse_instance_groups::setGroupTypeName(const std::string& value) +{ + groupTypeName_ = value; + groupTypeNameIsSet_ = true; +} + +bool ChInstancesInfoRsponse_instance_groups::groupTypeNameIsSet() const +{ + return groupTypeNameIsSet_; +} + +void ChInstancesInfoRsponse_instance_groups::unsetgroupTypeName() +{ + groupTypeNameIsSet_ = false; +} + +std::vector& ChInstancesInfoRsponse_instance_groups::getNodes() +{ + return nodes_; +} + +void ChInstancesInfoRsponse_instance_groups::setNodes(const std::vector& value) +{ + nodes_ = value; + nodesIsSet_ = true; +} + +bool ChInstancesInfoRsponse_instance_groups::nodesIsSet() const +{ + return nodesIsSet_; +} + +void ChInstancesInfoRsponse_instance_groups::unsetnodes() +{ + nodesIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ChInstancesInfoRsponse_instance_ops_window.cpp b/gaussdb/src/v3/model/ChInstancesInfoRsponse_instance_ops_window.cpp new file mode 100644 index 000000000..eb65b5f7e --- /dev/null +++ b/gaussdb/src/v3/model/ChInstancesInfoRsponse_instance_ops_window.cpp @@ -0,0 +1,149 @@ + + +#include "huaweicloud/gaussdb/v3/model/ChInstancesInfoRsponse_instance_ops_window.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ChInstancesInfoRsponse_instance_ops_window::ChInstancesInfoRsponse_instance_ops_window() +{ + period_ = ""; + periodIsSet_ = false; + startTime_ = ""; + startTimeIsSet_ = false; + endTime_ = ""; + endTimeIsSet_ = false; +} + +ChInstancesInfoRsponse_instance_ops_window::~ChInstancesInfoRsponse_instance_ops_window() = default; + +void ChInstancesInfoRsponse_instance_ops_window::validate() +{ +} + +web::json::value ChInstancesInfoRsponse_instance_ops_window::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(periodIsSet_) { + val[utility::conversions::to_string_t("period")] = ModelBase::toJson(period_); + } + if(startTimeIsSet_) { + val[utility::conversions::to_string_t("start_time")] = ModelBase::toJson(startTime_); + } + if(endTimeIsSet_) { + val[utility::conversions::to_string_t("end_time")] = ModelBase::toJson(endTime_); + } + + return val; +} +bool ChInstancesInfoRsponse_instance_ops_window::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("period"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("period")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPeriod(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("start_time"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("start_time")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setStartTime(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("end_time"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("end_time")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEndTime(refVal); + } + } + return ok; +} + + +std::string ChInstancesInfoRsponse_instance_ops_window::getPeriod() const +{ + return period_; +} + +void ChInstancesInfoRsponse_instance_ops_window::setPeriod(const std::string& value) +{ + period_ = value; + periodIsSet_ = true; +} + +bool ChInstancesInfoRsponse_instance_ops_window::periodIsSet() const +{ + return periodIsSet_; +} + +void ChInstancesInfoRsponse_instance_ops_window::unsetperiod() +{ + periodIsSet_ = false; +} + +std::string ChInstancesInfoRsponse_instance_ops_window::getStartTime() const +{ + return startTime_; +} + +void ChInstancesInfoRsponse_instance_ops_window::setStartTime(const std::string& value) +{ + startTime_ = value; + startTimeIsSet_ = true; +} + +bool ChInstancesInfoRsponse_instance_ops_window::startTimeIsSet() const +{ + return startTimeIsSet_; +} + +void ChInstancesInfoRsponse_instance_ops_window::unsetstartTime() +{ + startTimeIsSet_ = false; +} + +std::string ChInstancesInfoRsponse_instance_ops_window::getEndTime() const +{ + return endTime_; +} + +void ChInstancesInfoRsponse_instance_ops_window::setEndTime(const std::string& value) +{ + endTime_ = value; + endTimeIsSet_ = true; +} + +bool ChInstancesInfoRsponse_instance_ops_window::endTimeIsSet() const +{ + return endTimeIsSet_; +} + +void ChInstancesInfoRsponse_instance_ops_window::unsetendTime() +{ + endTimeIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ChInstancesInfoRsponse_instance_param_group.cpp b/gaussdb/src/v3/model/ChInstancesInfoRsponse_instance_param_group.cpp new file mode 100644 index 000000000..3a9534276 --- /dev/null +++ b/gaussdb/src/v3/model/ChInstancesInfoRsponse_instance_param_group.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/gaussdb/v3/model/ChInstancesInfoRsponse_instance_param_group.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ChInstancesInfoRsponse_instance_param_group::ChInstancesInfoRsponse_instance_param_group() +{ + id_ = ""; + idIsSet_ = false; + name_ = ""; + nameIsSet_ = false; +} + +ChInstancesInfoRsponse_instance_param_group::~ChInstancesInfoRsponse_instance_param_group() = default; + +void ChInstancesInfoRsponse_instance_param_group::validate() +{ +} + +web::json::value ChInstancesInfoRsponse_instance_param_group::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_); + } + + return val; +} +bool ChInstancesInfoRsponse_instance_param_group::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); + } + } + return ok; +} + + +std::string ChInstancesInfoRsponse_instance_param_group::getId() const +{ + return id_; +} + +void ChInstancesInfoRsponse_instance_param_group::setId(const std::string& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool ChInstancesInfoRsponse_instance_param_group::idIsSet() const +{ + return idIsSet_; +} + +void ChInstancesInfoRsponse_instance_param_group::unsetid() +{ + idIsSet_ = false; +} + +std::string ChInstancesInfoRsponse_instance_param_group::getName() const +{ + return name_; +} + +void ChInstancesInfoRsponse_instance_param_group::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool ChInstancesInfoRsponse_instance_param_group::nameIsSet() const +{ + return nameIsSet_; +} + +void ChInstancesInfoRsponse_instance_param_group::unsetname() +{ + nameIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ChInstancesInfoRsponse_instance_port_info.cpp b/gaussdb/src/v3/model/ChInstancesInfoRsponse_instance_port_info.cpp new file mode 100644 index 000000000..fe3b90e95 --- /dev/null +++ b/gaussdb/src/v3/model/ChInstancesInfoRsponse_instance_port_info.cpp @@ -0,0 +1,219 @@ + + +#include "huaweicloud/gaussdb/v3/model/ChInstancesInfoRsponse_instance_port_info.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ChInstancesInfoRsponse_instance_port_info::ChInstancesInfoRsponse_instance_port_info() +{ + tepPort_ = 0; + tepPortIsSet_ = false; + httpPort_ = 0; + httpPortIsSet_ = false; + mysqlPort_ = 0; + mysqlPortIsSet_ = false; + httpsPort_ = 0; + httpsPortIsSet_ = false; + tepSecurePort_ = 0; + tepSecurePortIsSet_ = false; +} + +ChInstancesInfoRsponse_instance_port_info::~ChInstancesInfoRsponse_instance_port_info() = default; + +void ChInstancesInfoRsponse_instance_port_info::validate() +{ +} + +web::json::value ChInstancesInfoRsponse_instance_port_info::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(tepPortIsSet_) { + val[utility::conversions::to_string_t("tep_port")] = ModelBase::toJson(tepPort_); + } + if(httpPortIsSet_) { + val[utility::conversions::to_string_t("http_port")] = ModelBase::toJson(httpPort_); + } + if(mysqlPortIsSet_) { + val[utility::conversions::to_string_t("mysql_port")] = ModelBase::toJson(mysqlPort_); + } + if(httpsPortIsSet_) { + val[utility::conversions::to_string_t("https_port")] = ModelBase::toJson(httpsPort_); + } + if(tepSecurePortIsSet_) { + val[utility::conversions::to_string_t("tep_secure_port")] = ModelBase::toJson(tepSecurePort_); + } + + return val; +} +bool ChInstancesInfoRsponse_instance_port_info::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("tep_port"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tep_port")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTepPort(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("http_port"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("http_port")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setHttpPort(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("mysql_port"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("mysql_port")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setMysqlPort(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("https_port"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("https_port")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setHttpsPort(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("tep_secure_port"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tep_secure_port")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTepSecurePort(refVal); + } + } + return ok; +} + + +int32_t ChInstancesInfoRsponse_instance_port_info::getTepPort() const +{ + return tepPort_; +} + +void ChInstancesInfoRsponse_instance_port_info::setTepPort(int32_t value) +{ + tepPort_ = value; + tepPortIsSet_ = true; +} + +bool ChInstancesInfoRsponse_instance_port_info::tepPortIsSet() const +{ + return tepPortIsSet_; +} + +void ChInstancesInfoRsponse_instance_port_info::unsettepPort() +{ + tepPortIsSet_ = false; +} + +int32_t ChInstancesInfoRsponse_instance_port_info::getHttpPort() const +{ + return httpPort_; +} + +void ChInstancesInfoRsponse_instance_port_info::setHttpPort(int32_t value) +{ + httpPort_ = value; + httpPortIsSet_ = true; +} + +bool ChInstancesInfoRsponse_instance_port_info::httpPortIsSet() const +{ + return httpPortIsSet_; +} + +void ChInstancesInfoRsponse_instance_port_info::unsethttpPort() +{ + httpPortIsSet_ = false; +} + +int32_t ChInstancesInfoRsponse_instance_port_info::getMysqlPort() const +{ + return mysqlPort_; +} + +void ChInstancesInfoRsponse_instance_port_info::setMysqlPort(int32_t value) +{ + mysqlPort_ = value; + mysqlPortIsSet_ = true; +} + +bool ChInstancesInfoRsponse_instance_port_info::mysqlPortIsSet() const +{ + return mysqlPortIsSet_; +} + +void ChInstancesInfoRsponse_instance_port_info::unsetmysqlPort() +{ + mysqlPortIsSet_ = false; +} + +int32_t ChInstancesInfoRsponse_instance_port_info::getHttpsPort() const +{ + return httpsPort_; +} + +void ChInstancesInfoRsponse_instance_port_info::setHttpsPort(int32_t value) +{ + httpsPort_ = value; + httpsPortIsSet_ = true; +} + +bool ChInstancesInfoRsponse_instance_port_info::httpsPortIsSet() const +{ + return httpsPortIsSet_; +} + +void ChInstancesInfoRsponse_instance_port_info::unsethttpsPort() +{ + httpsPortIsSet_ = false; +} + +int32_t ChInstancesInfoRsponse_instance_port_info::getTepSecurePort() const +{ + return tepSecurePort_; +} + +void ChInstancesInfoRsponse_instance_port_info::setTepSecurePort(int32_t value) +{ + tepSecurePort_ = value; + tepSecurePortIsSet_ = true; +} + +bool ChInstancesInfoRsponse_instance_port_info::tepSecurePortIsSet() const +{ + return tepSecurePortIsSet_; +} + +void ChInstancesInfoRsponse_instance_port_info::unsettepSecurePort() +{ + tepSecurePortIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ChLtsConfigs.cpp b/gaussdb/src/v3/model/ChLtsConfigs.cpp new file mode 100644 index 000000000..8d884078b --- /dev/null +++ b/gaussdb/src/v3/model/ChLtsConfigs.cpp @@ -0,0 +1,184 @@ + + +#include "huaweicloud/gaussdb/v3/model/ChLtsConfigs.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ChLtsConfigs::ChLtsConfigs() +{ + logType_ = ""; + logTypeIsSet_ = false; + ltsGroupId_ = ""; + ltsGroupIdIsSet_ = false; + ltsStreamId_ = ""; + ltsStreamIdIsSet_ = false; + enabled_ = false; + enabledIsSet_ = false; +} + +ChLtsConfigs::~ChLtsConfigs() = default; + +void ChLtsConfigs::validate() +{ +} + +web::json::value ChLtsConfigs::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(logTypeIsSet_) { + val[utility::conversions::to_string_t("log_type")] = ModelBase::toJson(logType_); + } + if(ltsGroupIdIsSet_) { + val[utility::conversions::to_string_t("lts_group_id")] = ModelBase::toJson(ltsGroupId_); + } + if(ltsStreamIdIsSet_) { + val[utility::conversions::to_string_t("lts_stream_id")] = ModelBase::toJson(ltsStreamId_); + } + if(enabledIsSet_) { + val[utility::conversions::to_string_t("enabled")] = ModelBase::toJson(enabled_); + } + + return val; +} +bool ChLtsConfigs::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("log_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("log_type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLogType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("lts_group_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("lts_group_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLtsGroupId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("lts_stream_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("lts_stream_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLtsStreamId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("enabled"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("enabled")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnabled(refVal); + } + } + return ok; +} + + +std::string ChLtsConfigs::getLogType() const +{ + return logType_; +} + +void ChLtsConfigs::setLogType(const std::string& value) +{ + logType_ = value; + logTypeIsSet_ = true; +} + +bool ChLtsConfigs::logTypeIsSet() const +{ + return logTypeIsSet_; +} + +void ChLtsConfigs::unsetlogType() +{ + logTypeIsSet_ = false; +} + +std::string ChLtsConfigs::getLtsGroupId() const +{ + return ltsGroupId_; +} + +void ChLtsConfigs::setLtsGroupId(const std::string& value) +{ + ltsGroupId_ = value; + ltsGroupIdIsSet_ = true; +} + +bool ChLtsConfigs::ltsGroupIdIsSet() const +{ + return ltsGroupIdIsSet_; +} + +void ChLtsConfigs::unsetltsGroupId() +{ + ltsGroupIdIsSet_ = false; +} + +std::string ChLtsConfigs::getLtsStreamId() const +{ + return ltsStreamId_; +} + +void ChLtsConfigs::setLtsStreamId(const std::string& value) +{ + ltsStreamId_ = value; + ltsStreamIdIsSet_ = true; +} + +bool ChLtsConfigs::ltsStreamIdIsSet() const +{ + return ltsStreamIdIsSet_; +} + +void ChLtsConfigs::unsetltsStreamId() +{ + ltsStreamIdIsSet_ = false; +} + +bool ChLtsConfigs::isEnabled() const +{ + return enabled_; +} + +void ChLtsConfigs::setEnabled(bool value) +{ + enabled_ = value; + enabledIsSet_ = true; +} + +bool ChLtsConfigs::enabledIsSet() const +{ + return enabledIsSet_; +} + +void ChLtsConfigs::unsetenabled() +{ + enabledIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ChQueryActionInfo.cpp b/gaussdb/src/v3/model/ChQueryActionInfo.cpp new file mode 100644 index 000000000..cb8bd6817 --- /dev/null +++ b/gaussdb/src/v3/model/ChQueryActionInfo.cpp @@ -0,0 +1,324 @@ + + +#include "huaweicloud/gaussdb/v3/model/ChQueryActionInfo.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ChQueryActionInfo::ChQueryActionInfo() +{ + id_ = ""; + idIsSet_ = false; + action_ = ""; + actionIsSet_ = false; + objectId_ = ""; + objectIdIsSet_ = false; + type_ = ""; + typeIsSet_ = false; + jobId_ = ""; + jobIdIsSet_ = false; + status_ = ""; + statusIsSet_ = false; + createdAt_ = 0L; + createdAtIsSet_ = false; + updatedAt_ = 0L; + updatedAtIsSet_ = false; +} + +ChQueryActionInfo::~ChQueryActionInfo() = default; + +void ChQueryActionInfo::validate() +{ +} + +web::json::value ChQueryActionInfo::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(idIsSet_) { + val[utility::conversions::to_string_t("id")] = ModelBase::toJson(id_); + } + if(actionIsSet_) { + val[utility::conversions::to_string_t("action")] = ModelBase::toJson(action_); + } + if(objectIdIsSet_) { + val[utility::conversions::to_string_t("object_id")] = ModelBase::toJson(objectId_); + } + if(typeIsSet_) { + val[utility::conversions::to_string_t("type")] = ModelBase::toJson(type_); + } + if(jobIdIsSet_) { + val[utility::conversions::to_string_t("job_id")] = ModelBase::toJson(jobId_); + } + if(statusIsSet_) { + val[utility::conversions::to_string_t("status")] = ModelBase::toJson(status_); + } + if(createdAtIsSet_) { + val[utility::conversions::to_string_t("created_at")] = ModelBase::toJson(createdAt_); + } + if(updatedAtIsSet_) { + val[utility::conversions::to_string_t("updated_at")] = ModelBase::toJson(updatedAt_); + } + + return val; +} +bool ChQueryActionInfo::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("action"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("action")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAction(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("object_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("object_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setObjectId(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("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); + } + } + if(val.has_field(utility::conversions::to_string_t("status"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("status")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setStatus(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("created_at"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("created_at")); + if(!fieldValue.is_null()) + { + int64_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCreatedAt(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("updated_at"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("updated_at")); + if(!fieldValue.is_null()) + { + int64_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setUpdatedAt(refVal); + } + } + return ok; +} + + +std::string ChQueryActionInfo::getId() const +{ + return id_; +} + +void ChQueryActionInfo::setId(const std::string& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool ChQueryActionInfo::idIsSet() const +{ + return idIsSet_; +} + +void ChQueryActionInfo::unsetid() +{ + idIsSet_ = false; +} + +std::string ChQueryActionInfo::getAction() const +{ + return action_; +} + +void ChQueryActionInfo::setAction(const std::string& value) +{ + action_ = value; + actionIsSet_ = true; +} + +bool ChQueryActionInfo::actionIsSet() const +{ + return actionIsSet_; +} + +void ChQueryActionInfo::unsetaction() +{ + actionIsSet_ = false; +} + +std::string ChQueryActionInfo::getObjectId() const +{ + return objectId_; +} + +void ChQueryActionInfo::setObjectId(const std::string& value) +{ + objectId_ = value; + objectIdIsSet_ = true; +} + +bool ChQueryActionInfo::objectIdIsSet() const +{ + return objectIdIsSet_; +} + +void ChQueryActionInfo::unsetobjectId() +{ + objectIdIsSet_ = false; +} + +std::string ChQueryActionInfo::getType() const +{ + return type_; +} + +void ChQueryActionInfo::setType(const std::string& value) +{ + type_ = value; + typeIsSet_ = true; +} + +bool ChQueryActionInfo::typeIsSet() const +{ + return typeIsSet_; +} + +void ChQueryActionInfo::unsettype() +{ + typeIsSet_ = false; +} + +std::string ChQueryActionInfo::getJobId() const +{ + return jobId_; +} + +void ChQueryActionInfo::setJobId(const std::string& value) +{ + jobId_ = value; + jobIdIsSet_ = true; +} + +bool ChQueryActionInfo::jobIdIsSet() const +{ + return jobIdIsSet_; +} + +void ChQueryActionInfo::unsetjobId() +{ + jobIdIsSet_ = false; +} + +std::string ChQueryActionInfo::getStatus() const +{ + return status_; +} + +void ChQueryActionInfo::setStatus(const std::string& value) +{ + status_ = value; + statusIsSet_ = true; +} + +bool ChQueryActionInfo::statusIsSet() const +{ + return statusIsSet_; +} + +void ChQueryActionInfo::unsetstatus() +{ + statusIsSet_ = false; +} + +int64_t ChQueryActionInfo::getCreatedAt() const +{ + return createdAt_; +} + +void ChQueryActionInfo::setCreatedAt(int64_t value) +{ + createdAt_ = value; + createdAtIsSet_ = true; +} + +bool ChQueryActionInfo::createdAtIsSet() const +{ + return createdAtIsSet_; +} + +void ChQueryActionInfo::unsetcreatedAt() +{ + createdAtIsSet_ = false; +} + +int64_t ChQueryActionInfo::getUpdatedAt() const +{ + return updatedAt_; +} + +void ChQueryActionInfo::setUpdatedAt(int64_t value) +{ + updatedAt_ = value; + updatedAtIsSet_ = true; +} + +bool ChQueryActionInfo::updatedAtIsSet() const +{ + return updatedAtIsSet_; +} + +void ChQueryActionInfo::unsetupdatedAt() +{ + updatedAtIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ChSlowLogDetailResponse_slow_log_list.cpp b/gaussdb/src/v3/model/ChSlowLogDetailResponse_slow_log_list.cpp new file mode 100644 index 000000000..533d14684 --- /dev/null +++ b/gaussdb/src/v3/model/ChSlowLogDetailResponse_slow_log_list.cpp @@ -0,0 +1,499 @@ + + +#include "huaweicloud/gaussdb/v3/model/ChSlowLogDetailResponse_slow_log_list.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ChSlowLogDetailResponse_slow_log_list::ChSlowLogDetailResponse_slow_log_list() +{ + nodeId_ = ""; + nodeIdIsSet_ = false; + time_ = ""; + timeIsSet_ = false; + lockTime_ = ""; + lockTimeIsSet_ = false; + rowsSent_ = 0; + rowsSentIsSet_ = false; + rowsExamined_ = 0; + rowsExaminedIsSet_ = false; + database_ = ""; + databaseIsSet_ = false; + users_ = ""; + usersIsSet_ = false; + querySample_ = ""; + querySampleIsSet_ = false; + type_ = ""; + typeIsSet_ = false; + clientIp_ = ""; + clientIpIsSet_ = false; + startTime_ = ""; + startTimeIsSet_ = false; + lineNum_ = ""; + lineNumIsSet_ = false; + count_ = ""; + countIsSet_ = false; +} + +ChSlowLogDetailResponse_slow_log_list::~ChSlowLogDetailResponse_slow_log_list() = default; + +void ChSlowLogDetailResponse_slow_log_list::validate() +{ +} + +web::json::value ChSlowLogDetailResponse_slow_log_list::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(nodeIdIsSet_) { + val[utility::conversions::to_string_t("node_id")] = ModelBase::toJson(nodeId_); + } + if(timeIsSet_) { + val[utility::conversions::to_string_t("time")] = ModelBase::toJson(time_); + } + if(lockTimeIsSet_) { + val[utility::conversions::to_string_t("lock_time")] = ModelBase::toJson(lockTime_); + } + if(rowsSentIsSet_) { + val[utility::conversions::to_string_t("rows_sent")] = ModelBase::toJson(rowsSent_); + } + if(rowsExaminedIsSet_) { + val[utility::conversions::to_string_t("rows_examined")] = ModelBase::toJson(rowsExamined_); + } + if(databaseIsSet_) { + val[utility::conversions::to_string_t("database")] = ModelBase::toJson(database_); + } + if(usersIsSet_) { + val[utility::conversions::to_string_t("users")] = ModelBase::toJson(users_); + } + if(querySampleIsSet_) { + val[utility::conversions::to_string_t("query_sample")] = ModelBase::toJson(querySample_); + } + if(typeIsSet_) { + val[utility::conversions::to_string_t("type")] = ModelBase::toJson(type_); + } + if(clientIpIsSet_) { + val[utility::conversions::to_string_t("client_ip")] = ModelBase::toJson(clientIp_); + } + if(startTimeIsSet_) { + val[utility::conversions::to_string_t("start_time")] = ModelBase::toJson(startTime_); + } + if(lineNumIsSet_) { + val[utility::conversions::to_string_t("line_num")] = ModelBase::toJson(lineNum_); + } + if(countIsSet_) { + val[utility::conversions::to_string_t("count")] = ModelBase::toJson(count_); + } + + return val; +} +bool ChSlowLogDetailResponse_slow_log_list::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("time"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("time")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTime(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("lock_time"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("lock_time")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLockTime(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("rows_sent"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("rows_sent")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRowsSent(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("rows_examined"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("rows_examined")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRowsExamined(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("database"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("database")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDatabase(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("users"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("users")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setUsers(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("query_sample"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("query_sample")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setQuerySample(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("client_ip"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("client_ip")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setClientIp(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("start_time"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("start_time")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setStartTime(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("line_num"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("line_num")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLineNum(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()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCount(refVal); + } + } + return ok; +} + + +std::string ChSlowLogDetailResponse_slow_log_list::getNodeId() const +{ + return nodeId_; +} + +void ChSlowLogDetailResponse_slow_log_list::setNodeId(const std::string& value) +{ + nodeId_ = value; + nodeIdIsSet_ = true; +} + +bool ChSlowLogDetailResponse_slow_log_list::nodeIdIsSet() const +{ + return nodeIdIsSet_; +} + +void ChSlowLogDetailResponse_slow_log_list::unsetnodeId() +{ + nodeIdIsSet_ = false; +} + +std::string ChSlowLogDetailResponse_slow_log_list::getTime() const +{ + return time_; +} + +void ChSlowLogDetailResponse_slow_log_list::setTime(const std::string& value) +{ + time_ = value; + timeIsSet_ = true; +} + +bool ChSlowLogDetailResponse_slow_log_list::timeIsSet() const +{ + return timeIsSet_; +} + +void ChSlowLogDetailResponse_slow_log_list::unsettime() +{ + timeIsSet_ = false; +} + +std::string ChSlowLogDetailResponse_slow_log_list::getLockTime() const +{ + return lockTime_; +} + +void ChSlowLogDetailResponse_slow_log_list::setLockTime(const std::string& value) +{ + lockTime_ = value; + lockTimeIsSet_ = true; +} + +bool ChSlowLogDetailResponse_slow_log_list::lockTimeIsSet() const +{ + return lockTimeIsSet_; +} + +void ChSlowLogDetailResponse_slow_log_list::unsetlockTime() +{ + lockTimeIsSet_ = false; +} + +int32_t ChSlowLogDetailResponse_slow_log_list::getRowsSent() const +{ + return rowsSent_; +} + +void ChSlowLogDetailResponse_slow_log_list::setRowsSent(int32_t value) +{ + rowsSent_ = value; + rowsSentIsSet_ = true; +} + +bool ChSlowLogDetailResponse_slow_log_list::rowsSentIsSet() const +{ + return rowsSentIsSet_; +} + +void ChSlowLogDetailResponse_slow_log_list::unsetrowsSent() +{ + rowsSentIsSet_ = false; +} + +int32_t ChSlowLogDetailResponse_slow_log_list::getRowsExamined() const +{ + return rowsExamined_; +} + +void ChSlowLogDetailResponse_slow_log_list::setRowsExamined(int32_t value) +{ + rowsExamined_ = value; + rowsExaminedIsSet_ = true; +} + +bool ChSlowLogDetailResponse_slow_log_list::rowsExaminedIsSet() const +{ + return rowsExaminedIsSet_; +} + +void ChSlowLogDetailResponse_slow_log_list::unsetrowsExamined() +{ + rowsExaminedIsSet_ = false; +} + +std::string ChSlowLogDetailResponse_slow_log_list::getDatabase() const +{ + return database_; +} + +void ChSlowLogDetailResponse_slow_log_list::setDatabase(const std::string& value) +{ + database_ = value; + databaseIsSet_ = true; +} + +bool ChSlowLogDetailResponse_slow_log_list::databaseIsSet() const +{ + return databaseIsSet_; +} + +void ChSlowLogDetailResponse_slow_log_list::unsetdatabase() +{ + databaseIsSet_ = false; +} + +std::string ChSlowLogDetailResponse_slow_log_list::getUsers() const +{ + return users_; +} + +void ChSlowLogDetailResponse_slow_log_list::setUsers(const std::string& value) +{ + users_ = value; + usersIsSet_ = true; +} + +bool ChSlowLogDetailResponse_slow_log_list::usersIsSet() const +{ + return usersIsSet_; +} + +void ChSlowLogDetailResponse_slow_log_list::unsetusers() +{ + usersIsSet_ = false; +} + +std::string ChSlowLogDetailResponse_slow_log_list::getQuerySample() const +{ + return querySample_; +} + +void ChSlowLogDetailResponse_slow_log_list::setQuerySample(const std::string& value) +{ + querySample_ = value; + querySampleIsSet_ = true; +} + +bool ChSlowLogDetailResponse_slow_log_list::querySampleIsSet() const +{ + return querySampleIsSet_; +} + +void ChSlowLogDetailResponse_slow_log_list::unsetquerySample() +{ + querySampleIsSet_ = false; +} + +std::string ChSlowLogDetailResponse_slow_log_list::getType() const +{ + return type_; +} + +void ChSlowLogDetailResponse_slow_log_list::setType(const std::string& value) +{ + type_ = value; + typeIsSet_ = true; +} + +bool ChSlowLogDetailResponse_slow_log_list::typeIsSet() const +{ + return typeIsSet_; +} + +void ChSlowLogDetailResponse_slow_log_list::unsettype() +{ + typeIsSet_ = false; +} + +std::string ChSlowLogDetailResponse_slow_log_list::getClientIp() const +{ + return clientIp_; +} + +void ChSlowLogDetailResponse_slow_log_list::setClientIp(const std::string& value) +{ + clientIp_ = value; + clientIpIsSet_ = true; +} + +bool ChSlowLogDetailResponse_slow_log_list::clientIpIsSet() const +{ + return clientIpIsSet_; +} + +void ChSlowLogDetailResponse_slow_log_list::unsetclientIp() +{ + clientIpIsSet_ = false; +} + +std::string ChSlowLogDetailResponse_slow_log_list::getStartTime() const +{ + return startTime_; +} + +void ChSlowLogDetailResponse_slow_log_list::setStartTime(const std::string& value) +{ + startTime_ = value; + startTimeIsSet_ = true; +} + +bool ChSlowLogDetailResponse_slow_log_list::startTimeIsSet() const +{ + return startTimeIsSet_; +} + +void ChSlowLogDetailResponse_slow_log_list::unsetstartTime() +{ + startTimeIsSet_ = false; +} + +std::string ChSlowLogDetailResponse_slow_log_list::getLineNum() const +{ + return lineNum_; +} + +void ChSlowLogDetailResponse_slow_log_list::setLineNum(const std::string& value) +{ + lineNum_ = value; + lineNumIsSet_ = true; +} + +bool ChSlowLogDetailResponse_slow_log_list::lineNumIsSet() const +{ + return lineNumIsSet_; +} + +void ChSlowLogDetailResponse_slow_log_list::unsetlineNum() +{ + lineNumIsSet_ = false; +} + +std::string ChSlowLogDetailResponse_slow_log_list::getCount() const +{ + return count_; +} + +void ChSlowLogDetailResponse_slow_log_list::setCount(const std::string& value) +{ + count_ = value; + countIsSet_ = true; +} + +bool ChSlowLogDetailResponse_slow_log_list::countIsSet() const +{ + return countIsSet_; +} + +void ChSlowLogDetailResponse_slow_log_list::unsetcount() +{ + countIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ChSlowLogQueryRequestBody.cpp b/gaussdb/src/v3/model/ChSlowLogQueryRequestBody.cpp new file mode 100644 index 000000000..753be3f09 --- /dev/null +++ b/gaussdb/src/v3/model/ChSlowLogQueryRequestBody.cpp @@ -0,0 +1,289 @@ + + +#include "huaweicloud/gaussdb/v3/model/ChSlowLogQueryRequestBody.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ChSlowLogQueryRequestBody::ChSlowLogQueryRequestBody() +{ + nodeId_ = ""; + nodeIdIsSet_ = false; + startTime_ = ""; + startTimeIsSet_ = false; + endTime_ = ""; + endTimeIsSet_ = false; + limit_ = 0; + limitIsSet_ = false; + lineNum_ = ""; + lineNumIsSet_ = false; + operateType_ = ""; + operateTypeIsSet_ = false; + database_ = ""; + databaseIsSet_ = false; +} + +ChSlowLogQueryRequestBody::~ChSlowLogQueryRequestBody() = default; + +void ChSlowLogQueryRequestBody::validate() +{ +} + +web::json::value ChSlowLogQueryRequestBody::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(nodeIdIsSet_) { + val[utility::conversions::to_string_t("node_id")] = ModelBase::toJson(nodeId_); + } + if(startTimeIsSet_) { + val[utility::conversions::to_string_t("start_time")] = ModelBase::toJson(startTime_); + } + if(endTimeIsSet_) { + val[utility::conversions::to_string_t("end_time")] = ModelBase::toJson(endTime_); + } + if(limitIsSet_) { + val[utility::conversions::to_string_t("limit")] = ModelBase::toJson(limit_); + } + if(lineNumIsSet_) { + val[utility::conversions::to_string_t("line_num")] = ModelBase::toJson(lineNum_); + } + if(operateTypeIsSet_) { + val[utility::conversions::to_string_t("operate_type")] = ModelBase::toJson(operateType_); + } + if(databaseIsSet_) { + val[utility::conversions::to_string_t("database")] = ModelBase::toJson(database_); + } + + return val; +} +bool ChSlowLogQueryRequestBody::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("start_time"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("start_time")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setStartTime(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("end_time"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("end_time")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEndTime(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); + } + } + if(val.has_field(utility::conversions::to_string_t("line_num"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("line_num")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLineNum(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("operate_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("operate_type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setOperateType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("database"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("database")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDatabase(refVal); + } + } + return ok; +} + + +std::string ChSlowLogQueryRequestBody::getNodeId() const +{ + return nodeId_; +} + +void ChSlowLogQueryRequestBody::setNodeId(const std::string& value) +{ + nodeId_ = value; + nodeIdIsSet_ = true; +} + +bool ChSlowLogQueryRequestBody::nodeIdIsSet() const +{ + return nodeIdIsSet_; +} + +void ChSlowLogQueryRequestBody::unsetnodeId() +{ + nodeIdIsSet_ = false; +} + +std::string ChSlowLogQueryRequestBody::getStartTime() const +{ + return startTime_; +} + +void ChSlowLogQueryRequestBody::setStartTime(const std::string& value) +{ + startTime_ = value; + startTimeIsSet_ = true; +} + +bool ChSlowLogQueryRequestBody::startTimeIsSet() const +{ + return startTimeIsSet_; +} + +void ChSlowLogQueryRequestBody::unsetstartTime() +{ + startTimeIsSet_ = false; +} + +std::string ChSlowLogQueryRequestBody::getEndTime() const +{ + return endTime_; +} + +void ChSlowLogQueryRequestBody::setEndTime(const std::string& value) +{ + endTime_ = value; + endTimeIsSet_ = true; +} + +bool ChSlowLogQueryRequestBody::endTimeIsSet() const +{ + return endTimeIsSet_; +} + +void ChSlowLogQueryRequestBody::unsetendTime() +{ + endTimeIsSet_ = false; +} + +int32_t ChSlowLogQueryRequestBody::getLimit() const +{ + return limit_; +} + +void ChSlowLogQueryRequestBody::setLimit(int32_t value) +{ + limit_ = value; + limitIsSet_ = true; +} + +bool ChSlowLogQueryRequestBody::limitIsSet() const +{ + return limitIsSet_; +} + +void ChSlowLogQueryRequestBody::unsetlimit() +{ + limitIsSet_ = false; +} + +std::string ChSlowLogQueryRequestBody::getLineNum() const +{ + return lineNum_; +} + +void ChSlowLogQueryRequestBody::setLineNum(const std::string& value) +{ + lineNum_ = value; + lineNumIsSet_ = true; +} + +bool ChSlowLogQueryRequestBody::lineNumIsSet() const +{ + return lineNumIsSet_; +} + +void ChSlowLogQueryRequestBody::unsetlineNum() +{ + lineNumIsSet_ = false; +} + +std::string ChSlowLogQueryRequestBody::getOperateType() const +{ + return operateType_; +} + +void ChSlowLogQueryRequestBody::setOperateType(const std::string& value) +{ + operateType_ = value; + operateTypeIsSet_ = true; +} + +bool ChSlowLogQueryRequestBody::operateTypeIsSet() const +{ + return operateTypeIsSet_; +} + +void ChSlowLogQueryRequestBody::unsetoperateType() +{ + operateTypeIsSet_ = false; +} + +std::string ChSlowLogQueryRequestBody::getDatabase() const +{ + return database_; +} + +void ChSlowLogQueryRequestBody::setDatabase(const std::string& value) +{ + database_ = value; + databaseIsSet_ = true; +} + +bool ChSlowLogQueryRequestBody::databaseIsSet() const +{ + return databaseIsSet_; +} + +void ChSlowLogQueryRequestBody::unsetdatabase() +{ + databaseIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ChSlowlogSensitiveResponse.cpp b/gaussdb/src/v3/model/ChSlowlogSensitiveResponse.cpp new file mode 100644 index 000000000..461ef0a6b --- /dev/null +++ b/gaussdb/src/v3/model/ChSlowlogSensitiveResponse.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/gaussdb/v3/model/ChSlowlogSensitiveResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ChSlowlogSensitiveResponse::ChSlowlogSensitiveResponse() +{ + openSlowLogSwitch_ = ""; + openSlowLogSwitchIsSet_ = false; +} + +ChSlowlogSensitiveResponse::~ChSlowlogSensitiveResponse() = default; + +void ChSlowlogSensitiveResponse::validate() +{ +} + +web::json::value ChSlowlogSensitiveResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(openSlowLogSwitchIsSet_) { + val[utility::conversions::to_string_t("open_slow_log_switch")] = ModelBase::toJson(openSlowLogSwitch_); + } + + return val; +} +bool ChSlowlogSensitiveResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("open_slow_log_switch"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("open_slow_log_switch")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setOpenSlowLogSwitch(refVal); + } + } + return ok; +} + + +std::string ChSlowlogSensitiveResponse::getOpenSlowLogSwitch() const +{ + return openSlowLogSwitch_; +} + +void ChSlowlogSensitiveResponse::setOpenSlowLogSwitch(const std::string& value) +{ + openSlowLogSwitch_ = value; + openSlowLogSwitchIsSet_ = true; +} + +bool ChSlowlogSensitiveResponse::openSlowLogSwitchIsSet() const +{ + return openSlowLogSwitchIsSet_; +} + +void ChSlowlogSensitiveResponse::unsetopenSlowLogSwitch() +{ + openSlowLogSwitchIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/CheckChDatabaseConfigRequestBody.cpp b/gaussdb/src/v3/model/CheckChDatabaseConfigRequestBody.cpp new file mode 100644 index 000000000..77d79d047 --- /dev/null +++ b/gaussdb/src/v3/model/CheckChDatabaseConfigRequestBody.cpp @@ -0,0 +1,217 @@ + + +#include "huaweicloud/gaussdb/v3/model/CheckChDatabaseConfigRequestBody.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +CheckChDatabaseConfigRequestBody::CheckChDatabaseConfigRequestBody() +{ + sourceInstanceId_ = ""; + sourceInstanceIdIsSet_ = false; + sourceNodeId_ = ""; + sourceNodeIdIsSet_ = false; + sourceDatabaseName_ = ""; + sourceDatabaseNameIsSet_ = false; + dbConfigsIsSet_ = false; + tableReplConfigIsSet_ = false; +} + +CheckChDatabaseConfigRequestBody::~CheckChDatabaseConfigRequestBody() = default; + +void CheckChDatabaseConfigRequestBody::validate() +{ +} + +web::json::value CheckChDatabaseConfigRequestBody::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(sourceInstanceIdIsSet_) { + val[utility::conversions::to_string_t("source_instance_id")] = ModelBase::toJson(sourceInstanceId_); + } + if(sourceNodeIdIsSet_) { + val[utility::conversions::to_string_t("source_node_id")] = ModelBase::toJson(sourceNodeId_); + } + if(sourceDatabaseNameIsSet_) { + val[utility::conversions::to_string_t("source_database_name")] = ModelBase::toJson(sourceDatabaseName_); + } + if(dbConfigsIsSet_) { + val[utility::conversions::to_string_t("db_configs")] = ModelBase::toJson(dbConfigs_); + } + if(tableReplConfigIsSet_) { + val[utility::conversions::to_string_t("table_repl_config")] = ModelBase::toJson(tableReplConfig_); + } + + return val; +} +bool CheckChDatabaseConfigRequestBody::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("source_instance_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("source_instance_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSourceInstanceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("source_node_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("source_node_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSourceNodeId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("source_database_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("source_database_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSourceDatabaseName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("db_configs"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("db_configs")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDbConfigs(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("table_repl_config"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("table_repl_config")); + if(!fieldValue.is_null()) + { + ChDatabaseTableReplConfigInfo refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTableReplConfig(refVal); + } + } + return ok; +} + + +std::string CheckChDatabaseConfigRequestBody::getSourceInstanceId() const +{ + return sourceInstanceId_; +} + +void CheckChDatabaseConfigRequestBody::setSourceInstanceId(const std::string& value) +{ + sourceInstanceId_ = value; + sourceInstanceIdIsSet_ = true; +} + +bool CheckChDatabaseConfigRequestBody::sourceInstanceIdIsSet() const +{ + return sourceInstanceIdIsSet_; +} + +void CheckChDatabaseConfigRequestBody::unsetsourceInstanceId() +{ + sourceInstanceIdIsSet_ = false; +} + +std::string CheckChDatabaseConfigRequestBody::getSourceNodeId() const +{ + return sourceNodeId_; +} + +void CheckChDatabaseConfigRequestBody::setSourceNodeId(const std::string& value) +{ + sourceNodeId_ = value; + sourceNodeIdIsSet_ = true; +} + +bool CheckChDatabaseConfigRequestBody::sourceNodeIdIsSet() const +{ + return sourceNodeIdIsSet_; +} + +void CheckChDatabaseConfigRequestBody::unsetsourceNodeId() +{ + sourceNodeIdIsSet_ = false; +} + +std::string CheckChDatabaseConfigRequestBody::getSourceDatabaseName() const +{ + return sourceDatabaseName_; +} + +void CheckChDatabaseConfigRequestBody::setSourceDatabaseName(const std::string& value) +{ + sourceDatabaseName_ = value; + sourceDatabaseNameIsSet_ = true; +} + +bool CheckChDatabaseConfigRequestBody::sourceDatabaseNameIsSet() const +{ + return sourceDatabaseNameIsSet_; +} + +void CheckChDatabaseConfigRequestBody::unsetsourceDatabaseName() +{ + sourceDatabaseNameIsSet_ = false; +} + +std::vector& CheckChDatabaseConfigRequestBody::getDbConfigs() +{ + return dbConfigs_; +} + +void CheckChDatabaseConfigRequestBody::setDbConfigs(const std::vector& value) +{ + dbConfigs_ = value; + dbConfigsIsSet_ = true; +} + +bool CheckChDatabaseConfigRequestBody::dbConfigsIsSet() const +{ + return dbConfigsIsSet_; +} + +void CheckChDatabaseConfigRequestBody::unsetdbConfigs() +{ + dbConfigsIsSet_ = false; +} + +ChDatabaseTableReplConfigInfo CheckChDatabaseConfigRequestBody::getTableReplConfig() const +{ + return tableReplConfig_; +} + +void CheckChDatabaseConfigRequestBody::setTableReplConfig(const ChDatabaseTableReplConfigInfo& value) +{ + tableReplConfig_ = value; + tableReplConfigIsSet_ = true; +} + +bool CheckChDatabaseConfigRequestBody::tableReplConfigIsSet() const +{ + return tableReplConfigIsSet_; +} + +void CheckChDatabaseConfigRequestBody::unsettableReplConfig() +{ + tableReplConfigIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/CheckChDatabaseTableConfigRequestBody.cpp b/gaussdb/src/v3/model/CheckChDatabaseTableConfigRequestBody.cpp new file mode 100644 index 000000000..2357e4323 --- /dev/null +++ b/gaussdb/src/v3/model/CheckChDatabaseTableConfigRequestBody.cpp @@ -0,0 +1,251 @@ + + +#include "huaweicloud/gaussdb/v3/model/CheckChDatabaseTableConfigRequestBody.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +CheckChDatabaseTableConfigRequestBody::CheckChDatabaseTableConfigRequestBody() +{ + sourceInstanceId_ = ""; + sourceInstanceIdIsSet_ = false; + sourceNodeId_ = ""; + sourceNodeIdIsSet_ = false; + sourceDatabaseName_ = ""; + sourceDatabaseNameIsSet_ = false; + dbConfigsIsSet_ = false; + tablesConfigsIsSet_ = false; + tableReplConfigIsSet_ = false; +} + +CheckChDatabaseTableConfigRequestBody::~CheckChDatabaseTableConfigRequestBody() = default; + +void CheckChDatabaseTableConfigRequestBody::validate() +{ +} + +web::json::value CheckChDatabaseTableConfigRequestBody::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(sourceInstanceIdIsSet_) { + val[utility::conversions::to_string_t("source_instance_id")] = ModelBase::toJson(sourceInstanceId_); + } + if(sourceNodeIdIsSet_) { + val[utility::conversions::to_string_t("source_node_id")] = ModelBase::toJson(sourceNodeId_); + } + if(sourceDatabaseNameIsSet_) { + val[utility::conversions::to_string_t("source_database_name")] = ModelBase::toJson(sourceDatabaseName_); + } + if(dbConfigsIsSet_) { + val[utility::conversions::to_string_t("db_configs")] = ModelBase::toJson(dbConfigs_); + } + if(tablesConfigsIsSet_) { + val[utility::conversions::to_string_t("tables_configs")] = ModelBase::toJson(tablesConfigs_); + } + if(tableReplConfigIsSet_) { + val[utility::conversions::to_string_t("table_repl_config")] = ModelBase::toJson(tableReplConfig_); + } + + return val; +} +bool CheckChDatabaseTableConfigRequestBody::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("source_instance_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("source_instance_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSourceInstanceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("source_node_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("source_node_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSourceNodeId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("source_database_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("source_database_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSourceDatabaseName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("db_configs"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("db_configs")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDbConfigs(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("tables_configs"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tables_configs")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTablesConfigs(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("table_repl_config"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("table_repl_config")); + if(!fieldValue.is_null()) + { + ChDatabaseTableReplConfigInfo refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTableReplConfig(refVal); + } + } + return ok; +} + + +std::string CheckChDatabaseTableConfigRequestBody::getSourceInstanceId() const +{ + return sourceInstanceId_; +} + +void CheckChDatabaseTableConfigRequestBody::setSourceInstanceId(const std::string& value) +{ + sourceInstanceId_ = value; + sourceInstanceIdIsSet_ = true; +} + +bool CheckChDatabaseTableConfigRequestBody::sourceInstanceIdIsSet() const +{ + return sourceInstanceIdIsSet_; +} + +void CheckChDatabaseTableConfigRequestBody::unsetsourceInstanceId() +{ + sourceInstanceIdIsSet_ = false; +} + +std::string CheckChDatabaseTableConfigRequestBody::getSourceNodeId() const +{ + return sourceNodeId_; +} + +void CheckChDatabaseTableConfigRequestBody::setSourceNodeId(const std::string& value) +{ + sourceNodeId_ = value; + sourceNodeIdIsSet_ = true; +} + +bool CheckChDatabaseTableConfigRequestBody::sourceNodeIdIsSet() const +{ + return sourceNodeIdIsSet_; +} + +void CheckChDatabaseTableConfigRequestBody::unsetsourceNodeId() +{ + sourceNodeIdIsSet_ = false; +} + +std::string CheckChDatabaseTableConfigRequestBody::getSourceDatabaseName() const +{ + return sourceDatabaseName_; +} + +void CheckChDatabaseTableConfigRequestBody::setSourceDatabaseName(const std::string& value) +{ + sourceDatabaseName_ = value; + sourceDatabaseNameIsSet_ = true; +} + +bool CheckChDatabaseTableConfigRequestBody::sourceDatabaseNameIsSet() const +{ + return sourceDatabaseNameIsSet_; +} + +void CheckChDatabaseTableConfigRequestBody::unsetsourceDatabaseName() +{ + sourceDatabaseNameIsSet_ = false; +} + +std::vector& CheckChDatabaseTableConfigRequestBody::getDbConfigs() +{ + return dbConfigs_; +} + +void CheckChDatabaseTableConfigRequestBody::setDbConfigs(const std::vector& value) +{ + dbConfigs_ = value; + dbConfigsIsSet_ = true; +} + +bool CheckChDatabaseTableConfigRequestBody::dbConfigsIsSet() const +{ + return dbConfigsIsSet_; +} + +void CheckChDatabaseTableConfigRequestBody::unsetdbConfigs() +{ + dbConfigsIsSet_ = false; +} + +std::vector& CheckChDatabaseTableConfigRequestBody::getTablesConfigs() +{ + return tablesConfigs_; +} + +void CheckChDatabaseTableConfigRequestBody::setTablesConfigs(const std::vector& value) +{ + tablesConfigs_ = value; + tablesConfigsIsSet_ = true; +} + +bool CheckChDatabaseTableConfigRequestBody::tablesConfigsIsSet() const +{ + return tablesConfigsIsSet_; +} + +void CheckChDatabaseTableConfigRequestBody::unsettablesConfigs() +{ + tablesConfigsIsSet_ = false; +} + +ChDatabaseTableReplConfigInfo CheckChDatabaseTableConfigRequestBody::getTableReplConfig() const +{ + return tableReplConfig_; +} + +void CheckChDatabaseTableConfigRequestBody::setTableReplConfig(const ChDatabaseTableReplConfigInfo& value) +{ + tableReplConfig_ = value; + tableReplConfigIsSet_ = true; +} + +bool CheckChDatabaseTableConfigRequestBody::tableReplConfigIsSet() const +{ + return tableReplConfigIsSet_; +} + +void CheckChDatabaseTableConfigRequestBody::unsettableReplConfig() +{ + tableReplConfigIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/CheckClickHouseDataBaseConfigRequest.cpp b/gaussdb/src/v3/model/CheckClickHouseDataBaseConfigRequest.cpp new file mode 100644 index 000000000..2a37b9abe --- /dev/null +++ b/gaussdb/src/v3/model/CheckClickHouseDataBaseConfigRequest.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/gaussdb/v3/model/CheckClickHouseDataBaseConfigRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +CheckClickHouseDataBaseConfigRequest::CheckClickHouseDataBaseConfigRequest() +{ + instanceId_ = ""; + instanceIdIsSet_ = false; + xLanguage_ = ""; + xLanguageIsSet_ = false; + bodyIsSet_ = false; +} + +CheckClickHouseDataBaseConfigRequest::~CheckClickHouseDataBaseConfigRequest() = default; + +void CheckClickHouseDataBaseConfigRequest::validate() +{ +} + +web::json::value CheckClickHouseDataBaseConfigRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + 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 CheckClickHouseDataBaseConfigRequest::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("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()) + { + CheckChDatabaseConfigRequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string CheckClickHouseDataBaseConfigRequest::getInstanceId() const +{ + return instanceId_; +} + +void CheckClickHouseDataBaseConfigRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool CheckClickHouseDataBaseConfigRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void CheckClickHouseDataBaseConfigRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +std::string CheckClickHouseDataBaseConfigRequest::getXLanguage() const +{ + return xLanguage_; +} + +void CheckClickHouseDataBaseConfigRequest::setXLanguage(const std::string& value) +{ + xLanguage_ = value; + xLanguageIsSet_ = true; +} + +bool CheckClickHouseDataBaseConfigRequest::xLanguageIsSet() const +{ + return xLanguageIsSet_; +} + +void CheckClickHouseDataBaseConfigRequest::unsetxLanguage() +{ + xLanguageIsSet_ = false; +} + +CheckChDatabaseConfigRequestBody CheckClickHouseDataBaseConfigRequest::getBody() const +{ + return body_; +} + +void CheckClickHouseDataBaseConfigRequest::setBody(const CheckChDatabaseConfigRequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool CheckClickHouseDataBaseConfigRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void CheckClickHouseDataBaseConfigRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/CheckClickHouseDataBaseConfigResponse.cpp b/gaussdb/src/v3/model/CheckClickHouseDataBaseConfigResponse.cpp new file mode 100644 index 000000000..1bb74febc --- /dev/null +++ b/gaussdb/src/v3/model/CheckClickHouseDataBaseConfigResponse.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/gaussdb/v3/model/CheckClickHouseDataBaseConfigResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +CheckClickHouseDataBaseConfigResponse::CheckClickHouseDataBaseConfigResponse() +{ + databaseName_ = ""; + databaseNameIsSet_ = false; + dbConfigCheckResultsIsSet_ = false; +} + +CheckClickHouseDataBaseConfigResponse::~CheckClickHouseDataBaseConfigResponse() = default; + +void CheckClickHouseDataBaseConfigResponse::validate() +{ +} + +web::json::value CheckClickHouseDataBaseConfigResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(databaseNameIsSet_) { + val[utility::conversions::to_string_t("database_name")] = ModelBase::toJson(databaseName_); + } + if(dbConfigCheckResultsIsSet_) { + val[utility::conversions::to_string_t("db_config_check_results")] = ModelBase::toJson(dbConfigCheckResults_); + } + + return val; +} +bool CheckClickHouseDataBaseConfigResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("database_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("database_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDatabaseName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("db_config_check_results"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("db_config_check_results")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDbConfigCheckResults(refVal); + } + } + return ok; +} + + +std::string CheckClickHouseDataBaseConfigResponse::getDatabaseName() const +{ + return databaseName_; +} + +void CheckClickHouseDataBaseConfigResponse::setDatabaseName(const std::string& value) +{ + databaseName_ = value; + databaseNameIsSet_ = true; +} + +bool CheckClickHouseDataBaseConfigResponse::databaseNameIsSet() const +{ + return databaseNameIsSet_; +} + +void CheckClickHouseDataBaseConfigResponse::unsetdatabaseName() +{ + databaseNameIsSet_ = false; +} + +std::vector& CheckClickHouseDataBaseConfigResponse::getDbConfigCheckResults() +{ + return dbConfigCheckResults_; +} + +void CheckClickHouseDataBaseConfigResponse::setDbConfigCheckResults(const std::vector& value) +{ + dbConfigCheckResults_ = value; + dbConfigCheckResultsIsSet_ = true; +} + +bool CheckClickHouseDataBaseConfigResponse::dbConfigCheckResultsIsSet() const +{ + return dbConfigCheckResultsIsSet_; +} + +void CheckClickHouseDataBaseConfigResponse::unsetdbConfigCheckResults() +{ + dbConfigCheckResultsIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/CheckClickHouseTableConfigRequest.cpp b/gaussdb/src/v3/model/CheckClickHouseTableConfigRequest.cpp new file mode 100644 index 000000000..ed388ccc4 --- /dev/null +++ b/gaussdb/src/v3/model/CheckClickHouseTableConfigRequest.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/gaussdb/v3/model/CheckClickHouseTableConfigRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +CheckClickHouseTableConfigRequest::CheckClickHouseTableConfigRequest() +{ + instanceId_ = ""; + instanceIdIsSet_ = false; + xLanguage_ = ""; + xLanguageIsSet_ = false; + bodyIsSet_ = false; +} + +CheckClickHouseTableConfigRequest::~CheckClickHouseTableConfigRequest() = default; + +void CheckClickHouseTableConfigRequest::validate() +{ +} + +web::json::value CheckClickHouseTableConfigRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + 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 CheckClickHouseTableConfigRequest::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("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()) + { + CheckChDatabaseTableConfigRequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string CheckClickHouseTableConfigRequest::getInstanceId() const +{ + return instanceId_; +} + +void CheckClickHouseTableConfigRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool CheckClickHouseTableConfigRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void CheckClickHouseTableConfigRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +std::string CheckClickHouseTableConfigRequest::getXLanguage() const +{ + return xLanguage_; +} + +void CheckClickHouseTableConfigRequest::setXLanguage(const std::string& value) +{ + xLanguage_ = value; + xLanguageIsSet_ = true; +} + +bool CheckClickHouseTableConfigRequest::xLanguageIsSet() const +{ + return xLanguageIsSet_; +} + +void CheckClickHouseTableConfigRequest::unsetxLanguage() +{ + xLanguageIsSet_ = false; +} + +CheckChDatabaseTableConfigRequestBody CheckClickHouseTableConfigRequest::getBody() const +{ + return body_; +} + +void CheckClickHouseTableConfigRequest::setBody(const CheckChDatabaseTableConfigRequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool CheckClickHouseTableConfigRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void CheckClickHouseTableConfigRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/CheckClickHouseTableConfigResponse.cpp b/gaussdb/src/v3/model/CheckClickHouseTableConfigResponse.cpp new file mode 100644 index 000000000..ba3edb64d --- /dev/null +++ b/gaussdb/src/v3/model/CheckClickHouseTableConfigResponse.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/gaussdb/v3/model/CheckClickHouseTableConfigResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +CheckClickHouseTableConfigResponse::CheckClickHouseTableConfigResponse() +{ + sourceDatabaseName_ = ""; + sourceDatabaseNameIsSet_ = false; + tableConfigCheckResultsIsSet_ = false; +} + +CheckClickHouseTableConfigResponse::~CheckClickHouseTableConfigResponse() = default; + +void CheckClickHouseTableConfigResponse::validate() +{ +} + +web::json::value CheckClickHouseTableConfigResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(sourceDatabaseNameIsSet_) { + val[utility::conversions::to_string_t("source_database_name")] = ModelBase::toJson(sourceDatabaseName_); + } + if(tableConfigCheckResultsIsSet_) { + val[utility::conversions::to_string_t("table_config_check_results")] = ModelBase::toJson(tableConfigCheckResults_); + } + + return val; +} +bool CheckClickHouseTableConfigResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("source_database_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("source_database_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSourceDatabaseName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("table_config_check_results"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("table_config_check_results")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTableConfigCheckResults(refVal); + } + } + return ok; +} + + +std::string CheckClickHouseTableConfigResponse::getSourceDatabaseName() const +{ + return sourceDatabaseName_; +} + +void CheckClickHouseTableConfigResponse::setSourceDatabaseName(const std::string& value) +{ + sourceDatabaseName_ = value; + sourceDatabaseNameIsSet_ = true; +} + +bool CheckClickHouseTableConfigResponse::sourceDatabaseNameIsSet() const +{ + return sourceDatabaseNameIsSet_; +} + +void CheckClickHouseTableConfigResponse::unsetsourceDatabaseName() +{ + sourceDatabaseNameIsSet_ = false; +} + +std::vector& CheckClickHouseTableConfigResponse::getTableConfigCheckResults() +{ + return tableConfigCheckResults_; +} + +void CheckClickHouseTableConfigResponse::setTableConfigCheckResults(const std::vector& value) +{ + tableConfigCheckResults_ = value; + tableConfigCheckResultsIsSet_ = true; +} + +bool CheckClickHouseTableConfigResponse::tableConfigCheckResultsIsSet() const +{ + return tableConfigCheckResultsIsSet_; +} + +void CheckClickHouseTableConfigResponse::unsettableConfigCheckResults() +{ + tableConfigCheckResultsIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ClickHouseDatabaseUserInfo.cpp b/gaussdb/src/v3/model/ClickHouseDatabaseUserInfo.cpp new file mode 100644 index 000000000..4d818f652 --- /dev/null +++ b/gaussdb/src/v3/model/ClickHouseDatabaseUserInfo.cpp @@ -0,0 +1,183 @@ + + +#include "huaweicloud/gaussdb/v3/model/ClickHouseDatabaseUserInfo.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ClickHouseDatabaseUserInfo::ClickHouseDatabaseUserInfo() +{ + userName_ = ""; + userNameIsSet_ = false; + password_ = ""; + passwordIsSet_ = false; + databasesIsSet_ = false; + dml_ = 0; + dmlIsSet_ = false; +} + +ClickHouseDatabaseUserInfo::~ClickHouseDatabaseUserInfo() = default; + +void ClickHouseDatabaseUserInfo::validate() +{ +} + +web::json::value ClickHouseDatabaseUserInfo::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(userNameIsSet_) { + val[utility::conversions::to_string_t("user_name")] = ModelBase::toJson(userName_); + } + if(passwordIsSet_) { + val[utility::conversions::to_string_t("password")] = ModelBase::toJson(password_); + } + if(databasesIsSet_) { + val[utility::conversions::to_string_t("databases")] = ModelBase::toJson(databases_); + } + if(dmlIsSet_) { + val[utility::conversions::to_string_t("dml")] = ModelBase::toJson(dml_); + } + + return val; +} +bool ClickHouseDatabaseUserInfo::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("user_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("user_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setUserName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("password"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("password")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPassword(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("databases"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("databases")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDatabases(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("dml"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("dml")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDml(refVal); + } + } + return ok; +} + + +std::string ClickHouseDatabaseUserInfo::getUserName() const +{ + return userName_; +} + +void ClickHouseDatabaseUserInfo::setUserName(const std::string& value) +{ + userName_ = value; + userNameIsSet_ = true; +} + +bool ClickHouseDatabaseUserInfo::userNameIsSet() const +{ + return userNameIsSet_; +} + +void ClickHouseDatabaseUserInfo::unsetuserName() +{ + userNameIsSet_ = false; +} + +std::string ClickHouseDatabaseUserInfo::getPassword() const +{ + return password_; +} + +void ClickHouseDatabaseUserInfo::setPassword(const std::string& value) +{ + password_ = value; + passwordIsSet_ = true; +} + +bool ClickHouseDatabaseUserInfo::passwordIsSet() const +{ + return passwordIsSet_; +} + +void ClickHouseDatabaseUserInfo::unsetpassword() +{ + passwordIsSet_ = false; +} + +std::vector& ClickHouseDatabaseUserInfo::getDatabases() +{ + return databases_; +} + +void ClickHouseDatabaseUserInfo::setDatabases(const std::vector& value) +{ + databases_ = value; + databasesIsSet_ = true; +} + +bool ClickHouseDatabaseUserInfo::databasesIsSet() const +{ + return databasesIsSet_; +} + +void ClickHouseDatabaseUserInfo::unsetdatabases() +{ + databasesIsSet_ = false; +} + +int32_t ClickHouseDatabaseUserInfo::getDml() const +{ + return dml_; +} + +void ClickHouseDatabaseUserInfo::setDml(int32_t value) +{ + dml_ = value; + dmlIsSet_ = true; +} + +bool ClickHouseDatabaseUserInfo::dmlIsSet() const +{ + return dmlIsSet_; +} + +void ClickHouseDatabaseUserInfo::unsetdml() +{ + dmlIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ClickHouseDatabaseUserPSinfo.cpp b/gaussdb/src/v3/model/ClickHouseDatabaseUserPSinfo.cpp new file mode 100644 index 000000000..43305937a --- /dev/null +++ b/gaussdb/src/v3/model/ClickHouseDatabaseUserPSinfo.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/gaussdb/v3/model/ClickHouseDatabaseUserPSinfo.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ClickHouseDatabaseUserPSinfo::ClickHouseDatabaseUserPSinfo() +{ + userName_ = ""; + userNameIsSet_ = false; + databasesIsSet_ = false; + dml_ = 0; + dmlIsSet_ = false; +} + +ClickHouseDatabaseUserPSinfo::~ClickHouseDatabaseUserPSinfo() = default; + +void ClickHouseDatabaseUserPSinfo::validate() +{ +} + +web::json::value ClickHouseDatabaseUserPSinfo::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(userNameIsSet_) { + val[utility::conversions::to_string_t("user_name")] = ModelBase::toJson(userName_); + } + if(databasesIsSet_) { + val[utility::conversions::to_string_t("databases")] = ModelBase::toJson(databases_); + } + if(dmlIsSet_) { + val[utility::conversions::to_string_t("dml")] = ModelBase::toJson(dml_); + } + + return val; +} +bool ClickHouseDatabaseUserPSinfo::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("user_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("user_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setUserName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("databases"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("databases")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDatabases(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("dml"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("dml")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDml(refVal); + } + } + return ok; +} + + +std::string ClickHouseDatabaseUserPSinfo::getUserName() const +{ + return userName_; +} + +void ClickHouseDatabaseUserPSinfo::setUserName(const std::string& value) +{ + userName_ = value; + userNameIsSet_ = true; +} + +bool ClickHouseDatabaseUserPSinfo::userNameIsSet() const +{ + return userNameIsSet_; +} + +void ClickHouseDatabaseUserPSinfo::unsetuserName() +{ + userNameIsSet_ = false; +} + +std::vector& ClickHouseDatabaseUserPSinfo::getDatabases() +{ + return databases_; +} + +void ClickHouseDatabaseUserPSinfo::setDatabases(const std::vector& value) +{ + databases_ = value; + databasesIsSet_ = true; +} + +bool ClickHouseDatabaseUserPSinfo::databasesIsSet() const +{ + return databasesIsSet_; +} + +void ClickHouseDatabaseUserPSinfo::unsetdatabases() +{ + databasesIsSet_ = false; +} + +int32_t ClickHouseDatabaseUserPSinfo::getDml() const +{ + return dml_; +} + +void ClickHouseDatabaseUserPSinfo::setDml(int32_t value) +{ + dml_ = value; + dmlIsSet_ = true; +} + +bool ClickHouseDatabaseUserPSinfo::dmlIsSet() const +{ + return dmlIsSet_; +} + +void ClickHouseDatabaseUserPSinfo::unsetdml() +{ + dmlIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ClickHouseDatabaseUserPWinfo.cpp b/gaussdb/src/v3/model/ClickHouseDatabaseUserPWinfo.cpp new file mode 100644 index 000000000..9f51cdb27 --- /dev/null +++ b/gaussdb/src/v3/model/ClickHouseDatabaseUserPWinfo.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/gaussdb/v3/model/ClickHouseDatabaseUserPWinfo.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ClickHouseDatabaseUserPWinfo::ClickHouseDatabaseUserPWinfo() +{ + userName_ = ""; + userNameIsSet_ = false; + password_ = ""; + passwordIsSet_ = false; +} + +ClickHouseDatabaseUserPWinfo::~ClickHouseDatabaseUserPWinfo() = default; + +void ClickHouseDatabaseUserPWinfo::validate() +{ +} + +web::json::value ClickHouseDatabaseUserPWinfo::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(userNameIsSet_) { + val[utility::conversions::to_string_t("user_name")] = ModelBase::toJson(userName_); + } + if(passwordIsSet_) { + val[utility::conversions::to_string_t("password")] = ModelBase::toJson(password_); + } + + return val; +} +bool ClickHouseDatabaseUserPWinfo::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("user_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("user_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setUserName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("password"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("password")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPassword(refVal); + } + } + return ok; +} + + +std::string ClickHouseDatabaseUserPWinfo::getUserName() const +{ + return userName_; +} + +void ClickHouseDatabaseUserPWinfo::setUserName(const std::string& value) +{ + userName_ = value; + userNameIsSet_ = true; +} + +bool ClickHouseDatabaseUserPWinfo::userNameIsSet() const +{ + return userNameIsSet_; +} + +void ClickHouseDatabaseUserPWinfo::unsetuserName() +{ + userNameIsSet_ = false; +} + +std::string ClickHouseDatabaseUserPWinfo::getPassword() const +{ + return password_; +} + +void ClickHouseDatabaseUserPWinfo::setPassword(const std::string& value) +{ + password_ = value; + passwordIsSet_ = true; +} + +bool ClickHouseDatabaseUserPWinfo::passwordIsSet() const +{ + return passwordIsSet_; +} + +void ClickHouseDatabaseUserPWinfo::unsetpassword() +{ + passwordIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ClickHouseEngineInfo.cpp b/gaussdb/src/v3/model/ClickHouseEngineInfo.cpp new file mode 100644 index 000000000..284b9a602 --- /dev/null +++ b/gaussdb/src/v3/model/ClickHouseEngineInfo.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/gaussdb/v3/model/ClickHouseEngineInfo.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ClickHouseEngineInfo::ClickHouseEngineInfo() +{ + type_ = ""; + typeIsSet_ = false; + version_ = ""; + versionIsSet_ = false; +} + +ClickHouseEngineInfo::~ClickHouseEngineInfo() = default; + +void ClickHouseEngineInfo::validate() +{ +} + +web::json::value ClickHouseEngineInfo::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(typeIsSet_) { + val[utility::conversions::to_string_t("type")] = ModelBase::toJson(type_); + } + if(versionIsSet_) { + val[utility::conversions::to_string_t("version")] = ModelBase::toJson(version_); + } + + return val; +} +bool ClickHouseEngineInfo::fromJson(const web::json::value& val) +{ + bool ok = true; + + 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("version"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("version")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setVersion(refVal); + } + } + return ok; +} + + +std::string ClickHouseEngineInfo::getType() const +{ + return type_; +} + +void ClickHouseEngineInfo::setType(const std::string& value) +{ + type_ = value; + typeIsSet_ = true; +} + +bool ClickHouseEngineInfo::typeIsSet() const +{ + return typeIsSet_; +} + +void ClickHouseEngineInfo::unsettype() +{ + typeIsSet_ = false; +} + +std::string ClickHouseEngineInfo::getVersion() const +{ + return version_; +} + +void ClickHouseEngineInfo::setVersion(const std::string& value) +{ + version_ = value; + versionIsSet_ = true; +} + +bool ClickHouseEngineInfo::versionIsSet() const +{ + return versionIsSet_; +} + +void ClickHouseEngineInfo::unsetversion() +{ + versionIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ClickHouseNodeInfo.cpp b/gaussdb/src/v3/model/ClickHouseNodeInfo.cpp new file mode 100644 index 000000000..703b6e4f7 --- /dev/null +++ b/gaussdb/src/v3/model/ClickHouseNodeInfo.cpp @@ -0,0 +1,1162 @@ + + +#include "huaweicloud/gaussdb/v3/model/ClickHouseNodeInfo.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ClickHouseNodeInfo::ClickHouseNodeInfo() +{ + id_ = ""; + idIsSet_ = false; + name_ = ""; + nameIsSet_ = false; + type_ = ""; + typeIsSet_ = false; + status_ = ""; + statusIsSet_ = false; + period_ = ""; + periodIsSet_ = false; + volumeIsSet_ = false; + cpu_ = ""; + cpuIsSet_ = false; + mem_ = ""; + memIsSet_ = false; + datastoreIsSet_ = false; + priority_ = 0; + priorityIsSet_ = false; + frozenFlag_ = 0; + frozenFlagIsSet_ = false; + dbPort_ = 0; + dbPortIsSet_ = false; + payModel_ = ""; + payModelIsSet_ = false; + orderId_ = ""; + orderIdIsSet_ = false; + trafficIp_ = ""; + trafficIpIsSet_ = false; + trafficIpv6_ = ""; + trafficIpv6IsSet_ = false; + trafficVip_ = ""; + trafficVipIsSet_ = false; + trafficVipv6_ = ""; + trafficVipv6IsSet_ = false; + azCode_ = ""; + azCodeIsSet_ = false; + azDescription_ = ""; + azDescriptionIsSet_ = false; + azType_ = ""; + azTypeIsSet_ = false; + region_ = ""; + regionIsSet_ = false; + createAt_ = 0L; + createAtIsSet_ = false; + updateAt_ = 0L; + updateAtIsSet_ = false; + flavorId_ = ""; + flavorIdIsSet_ = false; + flavorRef_ = ""; + flavorRefIsSet_ = false; + iassFlavorRef_ = ""; + iassFlavorRefIsSet_ = false; + maxConnections_ = ""; + maxConnectionsIsSet_ = false; + vpcId_ = ""; + vpcIdIsSet_ = false; + subnetId_ = ""; + subnetIdIsSet_ = false; + needRestart_ = false; + needRestartIsSet_ = false; + sgId_ = ""; + sgIdIsSet_ = false; +} + +ClickHouseNodeInfo::~ClickHouseNodeInfo() = default; + +void ClickHouseNodeInfo::validate() +{ +} + +web::json::value ClickHouseNodeInfo::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(typeIsSet_) { + val[utility::conversions::to_string_t("type")] = ModelBase::toJson(type_); + } + if(statusIsSet_) { + val[utility::conversions::to_string_t("status")] = ModelBase::toJson(status_); + } + if(periodIsSet_) { + val[utility::conversions::to_string_t("period")] = ModelBase::toJson(period_); + } + if(volumeIsSet_) { + val[utility::conversions::to_string_t("volume")] = ModelBase::toJson(volume_); + } + if(cpuIsSet_) { + val[utility::conversions::to_string_t("cpu")] = ModelBase::toJson(cpu_); + } + if(memIsSet_) { + val[utility::conversions::to_string_t("mem")] = ModelBase::toJson(mem_); + } + if(datastoreIsSet_) { + val[utility::conversions::to_string_t("datastore")] = ModelBase::toJson(datastore_); + } + if(priorityIsSet_) { + val[utility::conversions::to_string_t("priority")] = ModelBase::toJson(priority_); + } + if(frozenFlagIsSet_) { + val[utility::conversions::to_string_t("frozen_flag")] = ModelBase::toJson(frozenFlag_); + } + if(dbPortIsSet_) { + val[utility::conversions::to_string_t("db_port")] = ModelBase::toJson(dbPort_); + } + if(payModelIsSet_) { + val[utility::conversions::to_string_t("pay_model")] = ModelBase::toJson(payModel_); + } + if(orderIdIsSet_) { + val[utility::conversions::to_string_t("order_id")] = ModelBase::toJson(orderId_); + } + if(trafficIpIsSet_) { + val[utility::conversions::to_string_t("traffic_ip")] = ModelBase::toJson(trafficIp_); + } + if(trafficIpv6IsSet_) { + val[utility::conversions::to_string_t("traffic_ipv6")] = ModelBase::toJson(trafficIpv6_); + } + if(trafficVipIsSet_) { + val[utility::conversions::to_string_t("traffic_vip")] = ModelBase::toJson(trafficVip_); + } + if(trafficVipv6IsSet_) { + val[utility::conversions::to_string_t("traffic_vipv6")] = ModelBase::toJson(trafficVipv6_); + } + if(azCodeIsSet_) { + val[utility::conversions::to_string_t("az_code")] = ModelBase::toJson(azCode_); + } + if(azDescriptionIsSet_) { + val[utility::conversions::to_string_t("az_description")] = ModelBase::toJson(azDescription_); + } + if(azTypeIsSet_) { + val[utility::conversions::to_string_t("az_type")] = ModelBase::toJson(azType_); + } + if(regionIsSet_) { + val[utility::conversions::to_string_t("region")] = ModelBase::toJson(region_); + } + if(createAtIsSet_) { + val[utility::conversions::to_string_t("create_at")] = ModelBase::toJson(createAt_); + } + if(updateAtIsSet_) { + val[utility::conversions::to_string_t("update_at")] = ModelBase::toJson(updateAt_); + } + if(flavorIdIsSet_) { + val[utility::conversions::to_string_t("flavor_id")] = ModelBase::toJson(flavorId_); + } + if(flavorRefIsSet_) { + val[utility::conversions::to_string_t("flavor_ref")] = ModelBase::toJson(flavorRef_); + } + if(iassFlavorRefIsSet_) { + val[utility::conversions::to_string_t("iass_flavor_ref")] = ModelBase::toJson(iassFlavorRef_); + } + if(maxConnectionsIsSet_) { + val[utility::conversions::to_string_t("max_connections")] = ModelBase::toJson(maxConnections_); + } + if(vpcIdIsSet_) { + val[utility::conversions::to_string_t("vpc_id")] = ModelBase::toJson(vpcId_); + } + if(subnetIdIsSet_) { + val[utility::conversions::to_string_t("subnet_id")] = ModelBase::toJson(subnetId_); + } + if(needRestartIsSet_) { + val[utility::conversions::to_string_t("need_restart")] = ModelBase::toJson(needRestart_); + } + if(sgIdIsSet_) { + val[utility::conversions::to_string_t("sg_id")] = ModelBase::toJson(sgId_); + } + + return val; +} +bool ClickHouseNodeInfo::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("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("status"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("status")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setStatus(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("period"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("period")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPeriod(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("volume"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("volume")); + if(!fieldValue.is_null()) + { + ClickHouseNodeInfo_volume refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setVolume(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("cpu"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("cpu")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCpu(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("mem"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("mem")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setMem(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("datastore"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("datastore")); + if(!fieldValue.is_null()) + { + ClickHouseNodeInfo_datastore refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDatastore(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("priority"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("priority")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPriority(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("frozen_flag"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("frozen_flag")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFrozenFlag(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("db_port"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("db_port")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDbPort(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("pay_model"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("pay_model")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPayModel(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("order_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("order_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setOrderId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("traffic_ip"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("traffic_ip")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTrafficIp(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("traffic_ipv6"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("traffic_ipv6")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTrafficIpv6(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("traffic_vip"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("traffic_vip")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTrafficVip(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("traffic_vipv6"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("traffic_vipv6")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTrafficVipv6(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("az_code"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("az_code")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAzCode(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("az_description"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("az_description")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAzDescription(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("az_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("az_type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAzType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("region"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("region")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRegion(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("create_at"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("create_at")); + if(!fieldValue.is_null()) + { + int64_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCreateAt(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("update_at"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("update_at")); + if(!fieldValue.is_null()) + { + int64_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setUpdateAt(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("flavor_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("flavor_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFlavorId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("flavor_ref"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("flavor_ref")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFlavorRef(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("iass_flavor_ref"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("iass_flavor_ref")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIassFlavorRef(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("max_connections"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("max_connections")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setMaxConnections(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("vpc_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("vpc_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setVpcId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("subnet_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("subnet_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSubnetId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("need_restart"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("need_restart")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setNeedRestart(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("sg_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sg_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSgId(refVal); + } + } + return ok; +} + + +std::string ClickHouseNodeInfo::getId() const +{ + return id_; +} + +void ClickHouseNodeInfo::setId(const std::string& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool ClickHouseNodeInfo::idIsSet() const +{ + return idIsSet_; +} + +void ClickHouseNodeInfo::unsetid() +{ + idIsSet_ = false; +} + +std::string ClickHouseNodeInfo::getName() const +{ + return name_; +} + +void ClickHouseNodeInfo::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool ClickHouseNodeInfo::nameIsSet() const +{ + return nameIsSet_; +} + +void ClickHouseNodeInfo::unsetname() +{ + nameIsSet_ = false; +} + +std::string ClickHouseNodeInfo::getType() const +{ + return type_; +} + +void ClickHouseNodeInfo::setType(const std::string& value) +{ + type_ = value; + typeIsSet_ = true; +} + +bool ClickHouseNodeInfo::typeIsSet() const +{ + return typeIsSet_; +} + +void ClickHouseNodeInfo::unsettype() +{ + typeIsSet_ = false; +} + +std::string ClickHouseNodeInfo::getStatus() const +{ + return status_; +} + +void ClickHouseNodeInfo::setStatus(const std::string& value) +{ + status_ = value; + statusIsSet_ = true; +} + +bool ClickHouseNodeInfo::statusIsSet() const +{ + return statusIsSet_; +} + +void ClickHouseNodeInfo::unsetstatus() +{ + statusIsSet_ = false; +} + +std::string ClickHouseNodeInfo::getPeriod() const +{ + return period_; +} + +void ClickHouseNodeInfo::setPeriod(const std::string& value) +{ + period_ = value; + periodIsSet_ = true; +} + +bool ClickHouseNodeInfo::periodIsSet() const +{ + return periodIsSet_; +} + +void ClickHouseNodeInfo::unsetperiod() +{ + periodIsSet_ = false; +} + +ClickHouseNodeInfo_volume ClickHouseNodeInfo::getVolume() const +{ + return volume_; +} + +void ClickHouseNodeInfo::setVolume(const ClickHouseNodeInfo_volume& value) +{ + volume_ = value; + volumeIsSet_ = true; +} + +bool ClickHouseNodeInfo::volumeIsSet() const +{ + return volumeIsSet_; +} + +void ClickHouseNodeInfo::unsetvolume() +{ + volumeIsSet_ = false; +} + +std::string ClickHouseNodeInfo::getCpu() const +{ + return cpu_; +} + +void ClickHouseNodeInfo::setCpu(const std::string& value) +{ + cpu_ = value; + cpuIsSet_ = true; +} + +bool ClickHouseNodeInfo::cpuIsSet() const +{ + return cpuIsSet_; +} + +void ClickHouseNodeInfo::unsetcpu() +{ + cpuIsSet_ = false; +} + +std::string ClickHouseNodeInfo::getMem() const +{ + return mem_; +} + +void ClickHouseNodeInfo::setMem(const std::string& value) +{ + mem_ = value; + memIsSet_ = true; +} + +bool ClickHouseNodeInfo::memIsSet() const +{ + return memIsSet_; +} + +void ClickHouseNodeInfo::unsetmem() +{ + memIsSet_ = false; +} + +ClickHouseNodeInfo_datastore ClickHouseNodeInfo::getDatastore() const +{ + return datastore_; +} + +void ClickHouseNodeInfo::setDatastore(const ClickHouseNodeInfo_datastore& value) +{ + datastore_ = value; + datastoreIsSet_ = true; +} + +bool ClickHouseNodeInfo::datastoreIsSet() const +{ + return datastoreIsSet_; +} + +void ClickHouseNodeInfo::unsetdatastore() +{ + datastoreIsSet_ = false; +} + +int32_t ClickHouseNodeInfo::getPriority() const +{ + return priority_; +} + +void ClickHouseNodeInfo::setPriority(int32_t value) +{ + priority_ = value; + priorityIsSet_ = true; +} + +bool ClickHouseNodeInfo::priorityIsSet() const +{ + return priorityIsSet_; +} + +void ClickHouseNodeInfo::unsetpriority() +{ + priorityIsSet_ = false; +} + +int32_t ClickHouseNodeInfo::getFrozenFlag() const +{ + return frozenFlag_; +} + +void ClickHouseNodeInfo::setFrozenFlag(int32_t value) +{ + frozenFlag_ = value; + frozenFlagIsSet_ = true; +} + +bool ClickHouseNodeInfo::frozenFlagIsSet() const +{ + return frozenFlagIsSet_; +} + +void ClickHouseNodeInfo::unsetfrozenFlag() +{ + frozenFlagIsSet_ = false; +} + +int32_t ClickHouseNodeInfo::getDbPort() const +{ + return dbPort_; +} + +void ClickHouseNodeInfo::setDbPort(int32_t value) +{ + dbPort_ = value; + dbPortIsSet_ = true; +} + +bool ClickHouseNodeInfo::dbPortIsSet() const +{ + return dbPortIsSet_; +} + +void ClickHouseNodeInfo::unsetdbPort() +{ + dbPortIsSet_ = false; +} + +std::string ClickHouseNodeInfo::getPayModel() const +{ + return payModel_; +} + +void ClickHouseNodeInfo::setPayModel(const std::string& value) +{ + payModel_ = value; + payModelIsSet_ = true; +} + +bool ClickHouseNodeInfo::payModelIsSet() const +{ + return payModelIsSet_; +} + +void ClickHouseNodeInfo::unsetpayModel() +{ + payModelIsSet_ = false; +} + +std::string ClickHouseNodeInfo::getOrderId() const +{ + return orderId_; +} + +void ClickHouseNodeInfo::setOrderId(const std::string& value) +{ + orderId_ = value; + orderIdIsSet_ = true; +} + +bool ClickHouseNodeInfo::orderIdIsSet() const +{ + return orderIdIsSet_; +} + +void ClickHouseNodeInfo::unsetorderId() +{ + orderIdIsSet_ = false; +} + +std::string ClickHouseNodeInfo::getTrafficIp() const +{ + return trafficIp_; +} + +void ClickHouseNodeInfo::setTrafficIp(const std::string& value) +{ + trafficIp_ = value; + trafficIpIsSet_ = true; +} + +bool ClickHouseNodeInfo::trafficIpIsSet() const +{ + return trafficIpIsSet_; +} + +void ClickHouseNodeInfo::unsettrafficIp() +{ + trafficIpIsSet_ = false; +} + +std::string ClickHouseNodeInfo::getTrafficIpv6() const +{ + return trafficIpv6_; +} + +void ClickHouseNodeInfo::setTrafficIpv6(const std::string& value) +{ + trafficIpv6_ = value; + trafficIpv6IsSet_ = true; +} + +bool ClickHouseNodeInfo::trafficIpv6IsSet() const +{ + return trafficIpv6IsSet_; +} + +void ClickHouseNodeInfo::unsettrafficIpv6() +{ + trafficIpv6IsSet_ = false; +} + +std::string ClickHouseNodeInfo::getTrafficVip() const +{ + return trafficVip_; +} + +void ClickHouseNodeInfo::setTrafficVip(const std::string& value) +{ + trafficVip_ = value; + trafficVipIsSet_ = true; +} + +bool ClickHouseNodeInfo::trafficVipIsSet() const +{ + return trafficVipIsSet_; +} + +void ClickHouseNodeInfo::unsettrafficVip() +{ + trafficVipIsSet_ = false; +} + +std::string ClickHouseNodeInfo::getTrafficVipv6() const +{ + return trafficVipv6_; +} + +void ClickHouseNodeInfo::setTrafficVipv6(const std::string& value) +{ + trafficVipv6_ = value; + trafficVipv6IsSet_ = true; +} + +bool ClickHouseNodeInfo::trafficVipv6IsSet() const +{ + return trafficVipv6IsSet_; +} + +void ClickHouseNodeInfo::unsettrafficVipv6() +{ + trafficVipv6IsSet_ = false; +} + +std::string ClickHouseNodeInfo::getAzCode() const +{ + return azCode_; +} + +void ClickHouseNodeInfo::setAzCode(const std::string& value) +{ + azCode_ = value; + azCodeIsSet_ = true; +} + +bool ClickHouseNodeInfo::azCodeIsSet() const +{ + return azCodeIsSet_; +} + +void ClickHouseNodeInfo::unsetazCode() +{ + azCodeIsSet_ = false; +} + +std::string ClickHouseNodeInfo::getAzDescription() const +{ + return azDescription_; +} + +void ClickHouseNodeInfo::setAzDescription(const std::string& value) +{ + azDescription_ = value; + azDescriptionIsSet_ = true; +} + +bool ClickHouseNodeInfo::azDescriptionIsSet() const +{ + return azDescriptionIsSet_; +} + +void ClickHouseNodeInfo::unsetazDescription() +{ + azDescriptionIsSet_ = false; +} + +std::string ClickHouseNodeInfo::getAzType() const +{ + return azType_; +} + +void ClickHouseNodeInfo::setAzType(const std::string& value) +{ + azType_ = value; + azTypeIsSet_ = true; +} + +bool ClickHouseNodeInfo::azTypeIsSet() const +{ + return azTypeIsSet_; +} + +void ClickHouseNodeInfo::unsetazType() +{ + azTypeIsSet_ = false; +} + +std::string ClickHouseNodeInfo::getRegion() const +{ + return region_; +} + +void ClickHouseNodeInfo::setRegion(const std::string& value) +{ + region_ = value; + regionIsSet_ = true; +} + +bool ClickHouseNodeInfo::regionIsSet() const +{ + return regionIsSet_; +} + +void ClickHouseNodeInfo::unsetregion() +{ + regionIsSet_ = false; +} + +int64_t ClickHouseNodeInfo::getCreateAt() const +{ + return createAt_; +} + +void ClickHouseNodeInfo::setCreateAt(int64_t value) +{ + createAt_ = value; + createAtIsSet_ = true; +} + +bool ClickHouseNodeInfo::createAtIsSet() const +{ + return createAtIsSet_; +} + +void ClickHouseNodeInfo::unsetcreateAt() +{ + createAtIsSet_ = false; +} + +int64_t ClickHouseNodeInfo::getUpdateAt() const +{ + return updateAt_; +} + +void ClickHouseNodeInfo::setUpdateAt(int64_t value) +{ + updateAt_ = value; + updateAtIsSet_ = true; +} + +bool ClickHouseNodeInfo::updateAtIsSet() const +{ + return updateAtIsSet_; +} + +void ClickHouseNodeInfo::unsetupdateAt() +{ + updateAtIsSet_ = false; +} + +std::string ClickHouseNodeInfo::getFlavorId() const +{ + return flavorId_; +} + +void ClickHouseNodeInfo::setFlavorId(const std::string& value) +{ + flavorId_ = value; + flavorIdIsSet_ = true; +} + +bool ClickHouseNodeInfo::flavorIdIsSet() const +{ + return flavorIdIsSet_; +} + +void ClickHouseNodeInfo::unsetflavorId() +{ + flavorIdIsSet_ = false; +} + +std::string ClickHouseNodeInfo::getFlavorRef() const +{ + return flavorRef_; +} + +void ClickHouseNodeInfo::setFlavorRef(const std::string& value) +{ + flavorRef_ = value; + flavorRefIsSet_ = true; +} + +bool ClickHouseNodeInfo::flavorRefIsSet() const +{ + return flavorRefIsSet_; +} + +void ClickHouseNodeInfo::unsetflavorRef() +{ + flavorRefIsSet_ = false; +} + +std::string ClickHouseNodeInfo::getIassFlavorRef() const +{ + return iassFlavorRef_; +} + +void ClickHouseNodeInfo::setIassFlavorRef(const std::string& value) +{ + iassFlavorRef_ = value; + iassFlavorRefIsSet_ = true; +} + +bool ClickHouseNodeInfo::iassFlavorRefIsSet() const +{ + return iassFlavorRefIsSet_; +} + +void ClickHouseNodeInfo::unsetiassFlavorRef() +{ + iassFlavorRefIsSet_ = false; +} + +std::string ClickHouseNodeInfo::getMaxConnections() const +{ + return maxConnections_; +} + +void ClickHouseNodeInfo::setMaxConnections(const std::string& value) +{ + maxConnections_ = value; + maxConnectionsIsSet_ = true; +} + +bool ClickHouseNodeInfo::maxConnectionsIsSet() const +{ + return maxConnectionsIsSet_; +} + +void ClickHouseNodeInfo::unsetmaxConnections() +{ + maxConnectionsIsSet_ = false; +} + +std::string ClickHouseNodeInfo::getVpcId() const +{ + return vpcId_; +} + +void ClickHouseNodeInfo::setVpcId(const std::string& value) +{ + vpcId_ = value; + vpcIdIsSet_ = true; +} + +bool ClickHouseNodeInfo::vpcIdIsSet() const +{ + return vpcIdIsSet_; +} + +void ClickHouseNodeInfo::unsetvpcId() +{ + vpcIdIsSet_ = false; +} + +std::string ClickHouseNodeInfo::getSubnetId() const +{ + return subnetId_; +} + +void ClickHouseNodeInfo::setSubnetId(const std::string& value) +{ + subnetId_ = value; + subnetIdIsSet_ = true; +} + +bool ClickHouseNodeInfo::subnetIdIsSet() const +{ + return subnetIdIsSet_; +} + +void ClickHouseNodeInfo::unsetsubnetId() +{ + subnetIdIsSet_ = false; +} + +bool ClickHouseNodeInfo::isNeedRestart() const +{ + return needRestart_; +} + +void ClickHouseNodeInfo::setNeedRestart(bool value) +{ + needRestart_ = value; + needRestartIsSet_ = true; +} + +bool ClickHouseNodeInfo::needRestartIsSet() const +{ + return needRestartIsSet_; +} + +void ClickHouseNodeInfo::unsetneedRestart() +{ + needRestartIsSet_ = false; +} + +std::string ClickHouseNodeInfo::getSgId() const +{ + return sgId_; +} + +void ClickHouseNodeInfo::setSgId(const std::string& value) +{ + sgId_ = value; + sgIdIsSet_ = true; +} + +bool ClickHouseNodeInfo::sgIdIsSet() const +{ + return sgIdIsSet_; +} + +void ClickHouseNodeInfo::unsetsgId() +{ + sgIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ClickHouseNodeInfoResponseBody_node_list.cpp b/gaussdb/src/v3/model/ClickHouseNodeInfoResponseBody_node_list.cpp new file mode 100644 index 000000000..de7d180cf --- /dev/null +++ b/gaussdb/src/v3/model/ClickHouseNodeInfoResponseBody_node_list.cpp @@ -0,0 +1,149 @@ + + +#include "huaweicloud/gaussdb/v3/model/ClickHouseNodeInfoResponseBody_node_list.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ClickHouseNodeInfoResponseBody_node_list::ClickHouseNodeInfoResponseBody_node_list() +{ + nodeId_ = ""; + nodeIdIsSet_ = false; + nodeName_ = ""; + nodeNameIsSet_ = false; + role_ = ""; + roleIsSet_ = false; +} + +ClickHouseNodeInfoResponseBody_node_list::~ClickHouseNodeInfoResponseBody_node_list() = default; + +void ClickHouseNodeInfoResponseBody_node_list::validate() +{ +} + +web::json::value ClickHouseNodeInfoResponseBody_node_list::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(nodeIdIsSet_) { + val[utility::conversions::to_string_t("node_id")] = ModelBase::toJson(nodeId_); + } + if(nodeNameIsSet_) { + val[utility::conversions::to_string_t("node_name")] = ModelBase::toJson(nodeName_); + } + if(roleIsSet_) { + val[utility::conversions::to_string_t("role")] = ModelBase::toJson(role_); + } + + return val; +} +bool ClickHouseNodeInfoResponseBody_node_list::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("node_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("node_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setNodeName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("role"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("role")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRole(refVal); + } + } + return ok; +} + + +std::string ClickHouseNodeInfoResponseBody_node_list::getNodeId() const +{ + return nodeId_; +} + +void ClickHouseNodeInfoResponseBody_node_list::setNodeId(const std::string& value) +{ + nodeId_ = value; + nodeIdIsSet_ = true; +} + +bool ClickHouseNodeInfoResponseBody_node_list::nodeIdIsSet() const +{ + return nodeIdIsSet_; +} + +void ClickHouseNodeInfoResponseBody_node_list::unsetnodeId() +{ + nodeIdIsSet_ = false; +} + +std::string ClickHouseNodeInfoResponseBody_node_list::getNodeName() const +{ + return nodeName_; +} + +void ClickHouseNodeInfoResponseBody_node_list::setNodeName(const std::string& value) +{ + nodeName_ = value; + nodeNameIsSet_ = true; +} + +bool ClickHouseNodeInfoResponseBody_node_list::nodeNameIsSet() const +{ + return nodeNameIsSet_; +} + +void ClickHouseNodeInfoResponseBody_node_list::unsetnodeName() +{ + nodeNameIsSet_ = false; +} + +std::string ClickHouseNodeInfoResponseBody_node_list::getRole() const +{ + return role_; +} + +void ClickHouseNodeInfoResponseBody_node_list::setRole(const std::string& value) +{ + role_ = value; + roleIsSet_ = true; +} + +bool ClickHouseNodeInfoResponseBody_node_list::roleIsSet() const +{ + return roleIsSet_; +} + +void ClickHouseNodeInfoResponseBody_node_list::unsetrole() +{ + roleIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ClickHouseNodeInfo_datastore.cpp b/gaussdb/src/v3/model/ClickHouseNodeInfo_datastore.cpp new file mode 100644 index 000000000..56cefceb4 --- /dev/null +++ b/gaussdb/src/v3/model/ClickHouseNodeInfo_datastore.cpp @@ -0,0 +1,149 @@ + + +#include "huaweicloud/gaussdb/v3/model/ClickHouseNodeInfo_datastore.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ClickHouseNodeInfo_datastore::ClickHouseNodeInfo_datastore() +{ + id_ = ""; + idIsSet_ = false; + type_ = ""; + typeIsSet_ = false; + version_ = ""; + versionIsSet_ = false; +} + +ClickHouseNodeInfo_datastore::~ClickHouseNodeInfo_datastore() = default; + +void ClickHouseNodeInfo_datastore::validate() +{ +} + +web::json::value ClickHouseNodeInfo_datastore::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(idIsSet_) { + val[utility::conversions::to_string_t("id")] = ModelBase::toJson(id_); + } + if(typeIsSet_) { + val[utility::conversions::to_string_t("type")] = ModelBase::toJson(type_); + } + if(versionIsSet_) { + val[utility::conversions::to_string_t("version")] = ModelBase::toJson(version_); + } + + return val; +} +bool ClickHouseNodeInfo_datastore::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("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("version"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("version")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setVersion(refVal); + } + } + return ok; +} + + +std::string ClickHouseNodeInfo_datastore::getId() const +{ + return id_; +} + +void ClickHouseNodeInfo_datastore::setId(const std::string& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool ClickHouseNodeInfo_datastore::idIsSet() const +{ + return idIsSet_; +} + +void ClickHouseNodeInfo_datastore::unsetid() +{ + idIsSet_ = false; +} + +std::string ClickHouseNodeInfo_datastore::getType() const +{ + return type_; +} + +void ClickHouseNodeInfo_datastore::setType(const std::string& value) +{ + type_ = value; + typeIsSet_ = true; +} + +bool ClickHouseNodeInfo_datastore::typeIsSet() const +{ + return typeIsSet_; +} + +void ClickHouseNodeInfo_datastore::unsettype() +{ + typeIsSet_ = false; +} + +std::string ClickHouseNodeInfo_datastore::getVersion() const +{ + return version_; +} + +void ClickHouseNodeInfo_datastore::setVersion(const std::string& value) +{ + version_ = value; + versionIsSet_ = true; +} + +bool ClickHouseNodeInfo_datastore::versionIsSet() const +{ + return versionIsSet_; +} + +void ClickHouseNodeInfo_datastore::unsetversion() +{ + versionIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ClickHouseNodeInfo_volume.cpp b/gaussdb/src/v3/model/ClickHouseNodeInfo_volume.cpp new file mode 100644 index 000000000..5ec40e49e --- /dev/null +++ b/gaussdb/src/v3/model/ClickHouseNodeInfo_volume.cpp @@ -0,0 +1,184 @@ + + +#include "huaweicloud/gaussdb/v3/model/ClickHouseNodeInfo_volume.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ClickHouseNodeInfo_volume::ClickHouseNodeInfo_volume() +{ + type_ = ""; + typeIsSet_ = false; + size_ = ""; + sizeIsSet_ = false; + used_ = ""; + usedIsSet_ = false; + iops_ = 0; + iopsIsSet_ = false; +} + +ClickHouseNodeInfo_volume::~ClickHouseNodeInfo_volume() = default; + +void ClickHouseNodeInfo_volume::validate() +{ +} + +web::json::value ClickHouseNodeInfo_volume::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(typeIsSet_) { + val[utility::conversions::to_string_t("type")] = ModelBase::toJson(type_); + } + if(sizeIsSet_) { + val[utility::conversions::to_string_t("size")] = ModelBase::toJson(size_); + } + if(usedIsSet_) { + val[utility::conversions::to_string_t("used")] = ModelBase::toJson(used_); + } + if(iopsIsSet_) { + val[utility::conversions::to_string_t("iops")] = ModelBase::toJson(iops_); + } + + return val; +} +bool ClickHouseNodeInfo_volume::fromJson(const web::json::value& val) +{ + bool ok = true; + + 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("size"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("size")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSize(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("used"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("used")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setUsed(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("iops"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("iops")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIops(refVal); + } + } + return ok; +} + + +std::string ClickHouseNodeInfo_volume::getType() const +{ + return type_; +} + +void ClickHouseNodeInfo_volume::setType(const std::string& value) +{ + type_ = value; + typeIsSet_ = true; +} + +bool ClickHouseNodeInfo_volume::typeIsSet() const +{ + return typeIsSet_; +} + +void ClickHouseNodeInfo_volume::unsettype() +{ + typeIsSet_ = false; +} + +std::string ClickHouseNodeInfo_volume::getSize() const +{ + return size_; +} + +void ClickHouseNodeInfo_volume::setSize(const std::string& value) +{ + size_ = value; + sizeIsSet_ = true; +} + +bool ClickHouseNodeInfo_volume::sizeIsSet() const +{ + return sizeIsSet_; +} + +void ClickHouseNodeInfo_volume::unsetsize() +{ + sizeIsSet_ = false; +} + +std::string ClickHouseNodeInfo_volume::getUsed() const +{ + return used_; +} + +void ClickHouseNodeInfo_volume::setUsed(const std::string& value) +{ + used_ = value; + usedIsSet_ = true; +} + +bool ClickHouseNodeInfo_volume::usedIsSet() const +{ + return usedIsSet_; +} + +void ClickHouseNodeInfo_volume::unsetused() +{ + usedIsSet_ = false; +} + +int32_t ClickHouseNodeInfo_volume::getIops() const +{ + return iops_; +} + +void ClickHouseNodeInfo_volume::setIops(int32_t value) +{ + iops_ = value; + iopsIsSet_ = true; +} + +bool ClickHouseNodeInfo_volume::iopsIsSet() const +{ + return iopsIsSet_; +} + +void ClickHouseNodeInfo_volume::unsetiops() +{ + iopsIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ClickHouseResizeFlavorRequestBody.cpp b/gaussdb/src/v3/model/ClickHouseResizeFlavorRequestBody.cpp new file mode 100644 index 000000000..42ed797f3 --- /dev/null +++ b/gaussdb/src/v3/model/ClickHouseResizeFlavorRequestBody.cpp @@ -0,0 +1,149 @@ + + +#include "huaweicloud/gaussdb/v3/model/ClickHouseResizeFlavorRequestBody.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ClickHouseResizeFlavorRequestBody::ClickHouseResizeFlavorRequestBody() +{ + flavorRef_ = ""; + flavorRefIsSet_ = false; + delay_ = false; + delayIsSet_ = false; + instanceId_ = ""; + instanceIdIsSet_ = false; +} + +ClickHouseResizeFlavorRequestBody::~ClickHouseResizeFlavorRequestBody() = default; + +void ClickHouseResizeFlavorRequestBody::validate() +{ +} + +web::json::value ClickHouseResizeFlavorRequestBody::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(flavorRefIsSet_) { + val[utility::conversions::to_string_t("flavor_ref")] = ModelBase::toJson(flavorRef_); + } + if(delayIsSet_) { + val[utility::conversions::to_string_t("delay")] = ModelBase::toJson(delay_); + } + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + + return val; +} +bool ClickHouseResizeFlavorRequestBody::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("flavor_ref"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("flavor_ref")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFlavorRef(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("delay"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("delay")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDelay(refVal); + } + } + 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 ClickHouseResizeFlavorRequestBody::getFlavorRef() const +{ + return flavorRef_; +} + +void ClickHouseResizeFlavorRequestBody::setFlavorRef(const std::string& value) +{ + flavorRef_ = value; + flavorRefIsSet_ = true; +} + +bool ClickHouseResizeFlavorRequestBody::flavorRefIsSet() const +{ + return flavorRefIsSet_; +} + +void ClickHouseResizeFlavorRequestBody::unsetflavorRef() +{ + flavorRefIsSet_ = false; +} + +bool ClickHouseResizeFlavorRequestBody::isDelay() const +{ + return delay_; +} + +void ClickHouseResizeFlavorRequestBody::setDelay(bool value) +{ + delay_ = value; + delayIsSet_ = true; +} + +bool ClickHouseResizeFlavorRequestBody::delayIsSet() const +{ + return delayIsSet_; +} + +void ClickHouseResizeFlavorRequestBody::unsetdelay() +{ + delayIsSet_ = false; +} + +std::string ClickHouseResizeFlavorRequestBody::getInstanceId() const +{ + return instanceId_; +} + +void ClickHouseResizeFlavorRequestBody::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool ClickHouseResizeFlavorRequestBody::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void ClickHouseResizeFlavorRequestBody::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/CreateChDatabaseReplicationRequestBody.cpp b/gaussdb/src/v3/model/CreateChDatabaseReplicationRequestBody.cpp new file mode 100644 index 000000000..94f815459 --- /dev/null +++ b/gaussdb/src/v3/model/CreateChDatabaseReplicationRequestBody.cpp @@ -0,0 +1,149 @@ + + +#include "huaweicloud/gaussdb/v3/model/CreateChDatabaseReplicationRequestBody.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +CreateChDatabaseReplicationRequestBody::CreateChDatabaseReplicationRequestBody() +{ + sourceInstanceId_ = ""; + sourceInstanceIdIsSet_ = false; + sourceNodeId_ = ""; + sourceNodeIdIsSet_ = false; + sourceDatabase_ = ""; + sourceDatabaseIsSet_ = false; +} + +CreateChDatabaseReplicationRequestBody::~CreateChDatabaseReplicationRequestBody() = default; + +void CreateChDatabaseReplicationRequestBody::validate() +{ +} + +web::json::value CreateChDatabaseReplicationRequestBody::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(sourceInstanceIdIsSet_) { + val[utility::conversions::to_string_t("source_instance_id")] = ModelBase::toJson(sourceInstanceId_); + } + if(sourceNodeIdIsSet_) { + val[utility::conversions::to_string_t("source_node_id")] = ModelBase::toJson(sourceNodeId_); + } + if(sourceDatabaseIsSet_) { + val[utility::conversions::to_string_t("source_database")] = ModelBase::toJson(sourceDatabase_); + } + + return val; +} +bool CreateChDatabaseReplicationRequestBody::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("source_instance_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("source_instance_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSourceInstanceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("source_node_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("source_node_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSourceNodeId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("source_database"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("source_database")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSourceDatabase(refVal); + } + } + return ok; +} + + +std::string CreateChDatabaseReplicationRequestBody::getSourceInstanceId() const +{ + return sourceInstanceId_; +} + +void CreateChDatabaseReplicationRequestBody::setSourceInstanceId(const std::string& value) +{ + sourceInstanceId_ = value; + sourceInstanceIdIsSet_ = true; +} + +bool CreateChDatabaseReplicationRequestBody::sourceInstanceIdIsSet() const +{ + return sourceInstanceIdIsSet_; +} + +void CreateChDatabaseReplicationRequestBody::unsetsourceInstanceId() +{ + sourceInstanceIdIsSet_ = false; +} + +std::string CreateChDatabaseReplicationRequestBody::getSourceNodeId() const +{ + return sourceNodeId_; +} + +void CreateChDatabaseReplicationRequestBody::setSourceNodeId(const std::string& value) +{ + sourceNodeId_ = value; + sourceNodeIdIsSet_ = true; +} + +bool CreateChDatabaseReplicationRequestBody::sourceNodeIdIsSet() const +{ + return sourceNodeIdIsSet_; +} + +void CreateChDatabaseReplicationRequestBody::unsetsourceNodeId() +{ + sourceNodeIdIsSet_ = false; +} + +std::string CreateChDatabaseReplicationRequestBody::getSourceDatabase() const +{ + return sourceDatabase_; +} + +void CreateChDatabaseReplicationRequestBody::setSourceDatabase(const std::string& value) +{ + sourceDatabase_ = value; + sourceDatabaseIsSet_ = true; +} + +bool CreateChDatabaseReplicationRequestBody::sourceDatabaseIsSet() const +{ + return sourceDatabaseIsSet_; +} + +void CreateChDatabaseReplicationRequestBody::unsetsourceDatabase() +{ + sourceDatabaseIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/CreateChInstanceInfo.cpp b/gaussdb/src/v3/model/CreateChInstanceInfo.cpp new file mode 100644 index 000000000..88cee02f3 --- /dev/null +++ b/gaussdb/src/v3/model/CreateChInstanceInfo.cpp @@ -0,0 +1,601 @@ + + +#include "huaweicloud/gaussdb/v3/model/CreateChInstanceInfo.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +CreateChInstanceInfo::CreateChInstanceInfo() +{ + id_ = ""; + idIsSet_ = false; + azCode_ = ""; + azCodeIsSet_ = false; + azMode_ = ""; + azModeIsSet_ = false; + name_ = ""; + nameIsSet_ = false; + engineIsSet_ = false; + vpcId_ = ""; + vpcIdIsSet_ = false; + securityGroupId_ = ""; + securityGroupIdIsSet_ = false; + subnetId_ = ""; + subnetIdIsSet_ = false; + dbUser_ = ""; + dbUserIsSet_ = false; + port_ = 0; + portIsSet_ = false; + haMode_ = ""; + haModeIsSet_ = false; + payInfoIsSet_ = false; + sslOption_ = false; + sslOptionIsSet_ = false; + status_ = ""; + statusIsSet_ = false; + region_ = ""; + regionIsSet_ = false; + tagsInfoIsSet_ = false; +} + +CreateChInstanceInfo::~CreateChInstanceInfo() = default; + +void CreateChInstanceInfo::validate() +{ +} + +web::json::value CreateChInstanceInfo::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(idIsSet_) { + val[utility::conversions::to_string_t("id")] = ModelBase::toJson(id_); + } + if(azCodeIsSet_) { + val[utility::conversions::to_string_t("az_code")] = ModelBase::toJson(azCode_); + } + if(azModeIsSet_) { + val[utility::conversions::to_string_t("az_mode")] = ModelBase::toJson(azMode_); + } + if(nameIsSet_) { + val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); + } + if(engineIsSet_) { + val[utility::conversions::to_string_t("engine")] = ModelBase::toJson(engine_); + } + if(vpcIdIsSet_) { + val[utility::conversions::to_string_t("vpc_id")] = ModelBase::toJson(vpcId_); + } + if(securityGroupIdIsSet_) { + val[utility::conversions::to_string_t("security_group_id")] = ModelBase::toJson(securityGroupId_); + } + if(subnetIdIsSet_) { + val[utility::conversions::to_string_t("subnet_id")] = ModelBase::toJson(subnetId_); + } + if(dbUserIsSet_) { + val[utility::conversions::to_string_t("db_user")] = ModelBase::toJson(dbUser_); + } + if(portIsSet_) { + val[utility::conversions::to_string_t("port")] = ModelBase::toJson(port_); + } + if(haModeIsSet_) { + val[utility::conversions::to_string_t("ha_mode")] = ModelBase::toJson(haMode_); + } + if(payInfoIsSet_) { + val[utility::conversions::to_string_t("pay_info")] = ModelBase::toJson(payInfo_); + } + if(sslOptionIsSet_) { + val[utility::conversions::to_string_t("ssl_option")] = ModelBase::toJson(sslOption_); + } + if(statusIsSet_) { + val[utility::conversions::to_string_t("status")] = ModelBase::toJson(status_); + } + if(regionIsSet_) { + val[utility::conversions::to_string_t("region")] = ModelBase::toJson(region_); + } + if(tagsInfoIsSet_) { + val[utility::conversions::to_string_t("tags_info")] = ModelBase::toJson(tagsInfo_); + } + + return val; +} +bool CreateChInstanceInfo::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("az_code"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("az_code")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAzCode(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("az_mode"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("az_mode")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAzMode(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("engine"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("engine")); + if(!fieldValue.is_null()) + { + ClickHouseEngineInfo refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEngine(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("vpc_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("vpc_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setVpcId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("security_group_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("security_group_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSecurityGroupId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("subnet_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("subnet_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSubnetId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("db_user"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("db_user")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDbUser(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("port"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("port")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPort(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ha_mode"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ha_mode")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setHaMode(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("pay_info"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("pay_info")); + if(!fieldValue.is_null()) + { + CreateChInstanceInfo_pay_info refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPayInfo(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ssl_option"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ssl_option")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSslOption(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("status"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("status")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setStatus(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("region"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("region")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRegion(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("tags_info"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tags_info")); + if(!fieldValue.is_null()) + { + CreateChInstanceInfo_tags_info refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTagsInfo(refVal); + } + } + return ok; +} + + +std::string CreateChInstanceInfo::getId() const +{ + return id_; +} + +void CreateChInstanceInfo::setId(const std::string& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool CreateChInstanceInfo::idIsSet() const +{ + return idIsSet_; +} + +void CreateChInstanceInfo::unsetid() +{ + idIsSet_ = false; +} + +std::string CreateChInstanceInfo::getAzCode() const +{ + return azCode_; +} + +void CreateChInstanceInfo::setAzCode(const std::string& value) +{ + azCode_ = value; + azCodeIsSet_ = true; +} + +bool CreateChInstanceInfo::azCodeIsSet() const +{ + return azCodeIsSet_; +} + +void CreateChInstanceInfo::unsetazCode() +{ + azCodeIsSet_ = false; +} + +std::string CreateChInstanceInfo::getAzMode() const +{ + return azMode_; +} + +void CreateChInstanceInfo::setAzMode(const std::string& value) +{ + azMode_ = value; + azModeIsSet_ = true; +} + +bool CreateChInstanceInfo::azModeIsSet() const +{ + return azModeIsSet_; +} + +void CreateChInstanceInfo::unsetazMode() +{ + azModeIsSet_ = false; +} + +std::string CreateChInstanceInfo::getName() const +{ + return name_; +} + +void CreateChInstanceInfo::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool CreateChInstanceInfo::nameIsSet() const +{ + return nameIsSet_; +} + +void CreateChInstanceInfo::unsetname() +{ + nameIsSet_ = false; +} + +ClickHouseEngineInfo CreateChInstanceInfo::getEngine() const +{ + return engine_; +} + +void CreateChInstanceInfo::setEngine(const ClickHouseEngineInfo& value) +{ + engine_ = value; + engineIsSet_ = true; +} + +bool CreateChInstanceInfo::engineIsSet() const +{ + return engineIsSet_; +} + +void CreateChInstanceInfo::unsetengine() +{ + engineIsSet_ = false; +} + +std::string CreateChInstanceInfo::getVpcId() const +{ + return vpcId_; +} + +void CreateChInstanceInfo::setVpcId(const std::string& value) +{ + vpcId_ = value; + vpcIdIsSet_ = true; +} + +bool CreateChInstanceInfo::vpcIdIsSet() const +{ + return vpcIdIsSet_; +} + +void CreateChInstanceInfo::unsetvpcId() +{ + vpcIdIsSet_ = false; +} + +std::string CreateChInstanceInfo::getSecurityGroupId() const +{ + return securityGroupId_; +} + +void CreateChInstanceInfo::setSecurityGroupId(const std::string& value) +{ + securityGroupId_ = value; + securityGroupIdIsSet_ = true; +} + +bool CreateChInstanceInfo::securityGroupIdIsSet() const +{ + return securityGroupIdIsSet_; +} + +void CreateChInstanceInfo::unsetsecurityGroupId() +{ + securityGroupIdIsSet_ = false; +} + +std::string CreateChInstanceInfo::getSubnetId() const +{ + return subnetId_; +} + +void CreateChInstanceInfo::setSubnetId(const std::string& value) +{ + subnetId_ = value; + subnetIdIsSet_ = true; +} + +bool CreateChInstanceInfo::subnetIdIsSet() const +{ + return subnetIdIsSet_; +} + +void CreateChInstanceInfo::unsetsubnetId() +{ + subnetIdIsSet_ = false; +} + +std::string CreateChInstanceInfo::getDbUser() const +{ + return dbUser_; +} + +void CreateChInstanceInfo::setDbUser(const std::string& value) +{ + dbUser_ = value; + dbUserIsSet_ = true; +} + +bool CreateChInstanceInfo::dbUserIsSet() const +{ + return dbUserIsSet_; +} + +void CreateChInstanceInfo::unsetdbUser() +{ + dbUserIsSet_ = false; +} + +int32_t CreateChInstanceInfo::getPort() const +{ + return port_; +} + +void CreateChInstanceInfo::setPort(int32_t value) +{ + port_ = value; + portIsSet_ = true; +} + +bool CreateChInstanceInfo::portIsSet() const +{ + return portIsSet_; +} + +void CreateChInstanceInfo::unsetport() +{ + portIsSet_ = false; +} + +std::string CreateChInstanceInfo::getHaMode() const +{ + return haMode_; +} + +void CreateChInstanceInfo::setHaMode(const std::string& value) +{ + haMode_ = value; + haModeIsSet_ = true; +} + +bool CreateChInstanceInfo::haModeIsSet() const +{ + return haModeIsSet_; +} + +void CreateChInstanceInfo::unsethaMode() +{ + haModeIsSet_ = false; +} + +CreateChInstanceInfo_pay_info CreateChInstanceInfo::getPayInfo() const +{ + return payInfo_; +} + +void CreateChInstanceInfo::setPayInfo(const CreateChInstanceInfo_pay_info& value) +{ + payInfo_ = value; + payInfoIsSet_ = true; +} + +bool CreateChInstanceInfo::payInfoIsSet() const +{ + return payInfoIsSet_; +} + +void CreateChInstanceInfo::unsetpayInfo() +{ + payInfoIsSet_ = false; +} + +bool CreateChInstanceInfo::isSslOption() const +{ + return sslOption_; +} + +void CreateChInstanceInfo::setSslOption(bool value) +{ + sslOption_ = value; + sslOptionIsSet_ = true; +} + +bool CreateChInstanceInfo::sslOptionIsSet() const +{ + return sslOptionIsSet_; +} + +void CreateChInstanceInfo::unsetsslOption() +{ + sslOptionIsSet_ = false; +} + +std::string CreateChInstanceInfo::getStatus() const +{ + return status_; +} + +void CreateChInstanceInfo::setStatus(const std::string& value) +{ + status_ = value; + statusIsSet_ = true; +} + +bool CreateChInstanceInfo::statusIsSet() const +{ + return statusIsSet_; +} + +void CreateChInstanceInfo::unsetstatus() +{ + statusIsSet_ = false; +} + +std::string CreateChInstanceInfo::getRegion() const +{ + return region_; +} + +void CreateChInstanceInfo::setRegion(const std::string& value) +{ + region_ = value; + regionIsSet_ = true; +} + +bool CreateChInstanceInfo::regionIsSet() const +{ + return regionIsSet_; +} + +void CreateChInstanceInfo::unsetregion() +{ + regionIsSet_ = false; +} + +CreateChInstanceInfo_tags_info CreateChInstanceInfo::getTagsInfo() const +{ + return tagsInfo_; +} + +void CreateChInstanceInfo::setTagsInfo(const CreateChInstanceInfo_tags_info& value) +{ + tagsInfo_ = value; + tagsInfoIsSet_ = true; +} + +bool CreateChInstanceInfo::tagsInfoIsSet() const +{ + return tagsInfoIsSet_; +} + +void CreateChInstanceInfo::unsettagsInfo() +{ + tagsInfoIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/CreateChInstanceInfo_pay_info.cpp b/gaussdb/src/v3/model/CreateChInstanceInfo_pay_info.cpp new file mode 100644 index 000000000..89462e545 --- /dev/null +++ b/gaussdb/src/v3/model/CreateChInstanceInfo_pay_info.cpp @@ -0,0 +1,219 @@ + + +#include "huaweicloud/gaussdb/v3/model/CreateChInstanceInfo_pay_info.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +CreateChInstanceInfo_pay_info::CreateChInstanceInfo_pay_info() +{ + payModel_ = ""; + payModelIsSet_ = false; + orderId_ = ""; + orderIdIsSet_ = false; + period_ = ""; + periodIsSet_ = false; + periodType_ = ""; + periodTypeIsSet_ = false; + isAutoRenew_ = ""; + isAutoRenewIsSet_ = false; +} + +CreateChInstanceInfo_pay_info::~CreateChInstanceInfo_pay_info() = default; + +void CreateChInstanceInfo_pay_info::validate() +{ +} + +web::json::value CreateChInstanceInfo_pay_info::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(payModelIsSet_) { + val[utility::conversions::to_string_t("pay_model")] = ModelBase::toJson(payModel_); + } + if(orderIdIsSet_) { + val[utility::conversions::to_string_t("order_id")] = ModelBase::toJson(orderId_); + } + if(periodIsSet_) { + val[utility::conversions::to_string_t("period")] = ModelBase::toJson(period_); + } + if(periodTypeIsSet_) { + val[utility::conversions::to_string_t("period_type")] = ModelBase::toJson(periodType_); + } + if(isAutoRenewIsSet_) { + val[utility::conversions::to_string_t("is_auto_renew")] = ModelBase::toJson(isAutoRenew_); + } + + return val; +} +bool CreateChInstanceInfo_pay_info::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("pay_model"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("pay_model")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPayModel(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("order_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("order_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setOrderId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("period"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("period")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPeriod(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("period_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("period_type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPeriodType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("is_auto_renew"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("is_auto_renew")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIsAutoRenew(refVal); + } + } + return ok; +} + + +std::string CreateChInstanceInfo_pay_info::getPayModel() const +{ + return payModel_; +} + +void CreateChInstanceInfo_pay_info::setPayModel(const std::string& value) +{ + payModel_ = value; + payModelIsSet_ = true; +} + +bool CreateChInstanceInfo_pay_info::payModelIsSet() const +{ + return payModelIsSet_; +} + +void CreateChInstanceInfo_pay_info::unsetpayModel() +{ + payModelIsSet_ = false; +} + +std::string CreateChInstanceInfo_pay_info::getOrderId() const +{ + return orderId_; +} + +void CreateChInstanceInfo_pay_info::setOrderId(const std::string& value) +{ + orderId_ = value; + orderIdIsSet_ = true; +} + +bool CreateChInstanceInfo_pay_info::orderIdIsSet() const +{ + return orderIdIsSet_; +} + +void CreateChInstanceInfo_pay_info::unsetorderId() +{ + orderIdIsSet_ = false; +} + +std::string CreateChInstanceInfo_pay_info::getPeriod() const +{ + return period_; +} + +void CreateChInstanceInfo_pay_info::setPeriod(const std::string& value) +{ + period_ = value; + periodIsSet_ = true; +} + +bool CreateChInstanceInfo_pay_info::periodIsSet() const +{ + return periodIsSet_; +} + +void CreateChInstanceInfo_pay_info::unsetperiod() +{ + periodIsSet_ = false; +} + +std::string CreateChInstanceInfo_pay_info::getPeriodType() const +{ + return periodType_; +} + +void CreateChInstanceInfo_pay_info::setPeriodType(const std::string& value) +{ + periodType_ = value; + periodTypeIsSet_ = true; +} + +bool CreateChInstanceInfo_pay_info::periodTypeIsSet() const +{ + return periodTypeIsSet_; +} + +void CreateChInstanceInfo_pay_info::unsetperiodType() +{ + periodTypeIsSet_ = false; +} + +std::string CreateChInstanceInfo_pay_info::getIsAutoRenew() const +{ + return isAutoRenew_; +} + +void CreateChInstanceInfo_pay_info::setIsAutoRenew(const std::string& value) +{ + isAutoRenew_ = value; + isAutoRenewIsSet_ = true; +} + +bool CreateChInstanceInfo_pay_info::isAutoRenewIsSet() const +{ + return isAutoRenewIsSet_; +} + +void CreateChInstanceInfo_pay_info::unsetisAutoRenew() +{ + isAutoRenewIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/CreateChInstanceInfo_tags_info.cpp b/gaussdb/src/v3/model/CreateChInstanceInfo_tags_info.cpp new file mode 100644 index 000000000..e9a816854 --- /dev/null +++ b/gaussdb/src/v3/model/CreateChInstanceInfo_tags_info.cpp @@ -0,0 +1,112 @@ + + +#include "huaweicloud/gaussdb/v3/model/CreateChInstanceInfo_tags_info.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +CreateChInstanceInfo_tags_info::CreateChInstanceInfo_tags_info() +{ + tagsIsSet_ = false; + sysTagsIsSet_ = false; +} + +CreateChInstanceInfo_tags_info::~CreateChInstanceInfo_tags_info() = default; + +void CreateChInstanceInfo_tags_info::validate() +{ +} + +web::json::value CreateChInstanceInfo_tags_info::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(tagsIsSet_) { + val[utility::conversions::to_string_t("tags")] = ModelBase::toJson(tags_); + } + if(sysTagsIsSet_) { + val[utility::conversions::to_string_t("sys_tags")] = ModelBase::toJson(sysTags_); + } + + return val; +} +bool CreateChInstanceInfo_tags_info::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTags(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("sys_tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sys_tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSysTags(refVal); + } + } + return ok; +} + + +std::vector& CreateChInstanceInfo_tags_info::getTags() +{ + return tags_; +} + +void CreateChInstanceInfo_tags_info::setTags(const std::vector& value) +{ + tags_ = value; + tagsIsSet_ = true; +} + +bool CreateChInstanceInfo_tags_info::tagsIsSet() const +{ + return tagsIsSet_; +} + +void CreateChInstanceInfo_tags_info::unsettags() +{ + tagsIsSet_ = false; +} + +std::vector& CreateChInstanceInfo_tags_info::getSysTags() +{ + return sysTags_; +} + +void CreateChInstanceInfo_tags_info::setSysTags(const std::vector& value) +{ + sysTags_ = value; + sysTagsIsSet_ = true; +} + +bool CreateChInstanceInfo_tags_info::sysTagsIsSet() const +{ + return sysTagsIsSet_; +} + +void CreateChInstanceInfo_tags_info::unsetsysTags() +{ + sysTagsIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/SrCreateInstanceRsp_instance_tags_info_tags.cpp b/gaussdb/src/v3/model/CreateChInstanceInfo_tags_info_tags.cpp similarity index 58% rename from gaussdb/src/v3/model/SrCreateInstanceRsp_instance_tags_info_tags.cpp rename to gaussdb/src/v3/model/CreateChInstanceInfo_tags_info_tags.cpp index 6caebabbf..dca077457 100644 --- a/gaussdb/src/v3/model/SrCreateInstanceRsp_instance_tags_info_tags.cpp +++ b/gaussdb/src/v3/model/CreateChInstanceInfo_tags_info_tags.cpp @@ -1,6 +1,6 @@ -#include "huaweicloud/gaussdb/v3/model/SrCreateInstanceRsp_instance_tags_info_tags.h" +#include "huaweicloud/gaussdb/v3/model/CreateChInstanceInfo_tags_info_tags.h" namespace HuaweiCloud { namespace Sdk { namespace Gaussdb { @@ -10,7 +10,7 @@ namespace Model { -SrCreateInstanceRsp_instance_tags_info_tags::SrCreateInstanceRsp_instance_tags_info_tags() +CreateChInstanceInfo_tags_info_tags::CreateChInstanceInfo_tags_info_tags() { key_ = ""; keyIsSet_ = false; @@ -18,13 +18,13 @@ SrCreateInstanceRsp_instance_tags_info_tags::SrCreateInstanceRsp_instance_tags_i valueIsSet_ = false; } -SrCreateInstanceRsp_instance_tags_info_tags::~SrCreateInstanceRsp_instance_tags_info_tags() = default; +CreateChInstanceInfo_tags_info_tags::~CreateChInstanceInfo_tags_info_tags() = default; -void SrCreateInstanceRsp_instance_tags_info_tags::validate() +void CreateChInstanceInfo_tags_info_tags::validate() { } -web::json::value SrCreateInstanceRsp_instance_tags_info_tags::toJson() const +web::json::value CreateChInstanceInfo_tags_info_tags::toJson() const { web::json::value val = web::json::value::object(); @@ -37,7 +37,7 @@ web::json::value SrCreateInstanceRsp_instance_tags_info_tags::toJson() const return val; } -bool SrCreateInstanceRsp_instance_tags_info_tags::fromJson(const web::json::value& val) +bool CreateChInstanceInfo_tags_info_tags::fromJson(const web::json::value& val) { bool ok = true; @@ -63,44 +63,44 @@ bool SrCreateInstanceRsp_instance_tags_info_tags::fromJson(const web::json::valu } -std::string SrCreateInstanceRsp_instance_tags_info_tags::getKey() const +std::string CreateChInstanceInfo_tags_info_tags::getKey() const { return key_; } -void SrCreateInstanceRsp_instance_tags_info_tags::setKey(const std::string& value) +void CreateChInstanceInfo_tags_info_tags::setKey(const std::string& value) { key_ = value; keyIsSet_ = true; } -bool SrCreateInstanceRsp_instance_tags_info_tags::keyIsSet() const +bool CreateChInstanceInfo_tags_info_tags::keyIsSet() const { return keyIsSet_; } -void SrCreateInstanceRsp_instance_tags_info_tags::unsetkey() +void CreateChInstanceInfo_tags_info_tags::unsetkey() { keyIsSet_ = false; } -std::string SrCreateInstanceRsp_instance_tags_info_tags::getValue() const +std::string CreateChInstanceInfo_tags_info_tags::getValue() const { return value_; } -void SrCreateInstanceRsp_instance_tags_info_tags::setValue(const std::string& value) +void CreateChInstanceInfo_tags_info_tags::setValue(const std::string& value) { value_ = value; valueIsSet_ = true; } -bool SrCreateInstanceRsp_instance_tags_info_tags::valueIsSet() const +bool CreateChInstanceInfo_tags_info_tags::valueIsSet() const { return valueIsSet_; } -void SrCreateInstanceRsp_instance_tags_info_tags::unsetvalue() +void CreateChInstanceInfo_tags_info_tags::unsetvalue() { valueIsSet_ = false; } diff --git a/gaussdb/src/v3/model/CreateChInstanceRequestBody.cpp b/gaussdb/src/v3/model/CreateChInstanceRequestBody.cpp new file mode 100644 index 000000000..f79252cbe --- /dev/null +++ b/gaussdb/src/v3/model/CreateChInstanceRequestBody.cpp @@ -0,0 +1,424 @@ + + +#include "huaweicloud/gaussdb/v3/model/CreateChInstanceRequestBody.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +CreateChInstanceRequestBody::CreateChInstanceRequestBody() +{ + name_ = ""; + nameIsSet_ = false; + engineIsSet_ = false; + haIsSet_ = false; + flavorId_ = ""; + flavorIdIsSet_ = false; + dbRootPwd_ = ""; + dbRootPwdIsSet_ = false; + azMode_ = ""; + azModeIsSet_ = false; + volumeIsSet_ = false; + azCode_ = ""; + azCodeIsSet_ = false; + timeZone_ = ""; + timeZoneIsSet_ = false; + tagsInfoIsSet_ = false; + payInfoIsSet_ = false; +} + +CreateChInstanceRequestBody::~CreateChInstanceRequestBody() = default; + +void CreateChInstanceRequestBody::validate() +{ +} + +web::json::value CreateChInstanceRequestBody::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(nameIsSet_) { + val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); + } + if(engineIsSet_) { + val[utility::conversions::to_string_t("engine")] = ModelBase::toJson(engine_); + } + if(haIsSet_) { + val[utility::conversions::to_string_t("ha")] = ModelBase::toJson(ha_); + } + if(flavorIdIsSet_) { + val[utility::conversions::to_string_t("flavor_id")] = ModelBase::toJson(flavorId_); + } + if(dbRootPwdIsSet_) { + val[utility::conversions::to_string_t("db_root_pwd")] = ModelBase::toJson(dbRootPwd_); + } + if(azModeIsSet_) { + val[utility::conversions::to_string_t("az_mode")] = ModelBase::toJson(azMode_); + } + if(volumeIsSet_) { + val[utility::conversions::to_string_t("volume")] = ModelBase::toJson(volume_); + } + if(azCodeIsSet_) { + val[utility::conversions::to_string_t("az_code")] = ModelBase::toJson(azCode_); + } + if(timeZoneIsSet_) { + val[utility::conversions::to_string_t("time_zone")] = ModelBase::toJson(timeZone_); + } + if(tagsInfoIsSet_) { + val[utility::conversions::to_string_t("tags_info")] = ModelBase::toJson(tagsInfo_); + } + if(payInfoIsSet_) { + val[utility::conversions::to_string_t("pay_info")] = ModelBase::toJson(payInfo_); + } + + return val; +} +bool CreateChInstanceRequestBody::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("engine"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("engine")); + if(!fieldValue.is_null()) + { + ClickHouseEngineInfo refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEngine(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ha"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ha")); + if(!fieldValue.is_null()) + { + CreateChInstanceRequestBody_ha refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setHa(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("flavor_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("flavor_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFlavorId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("db_root_pwd"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("db_root_pwd")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDbRootPwd(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("az_mode"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("az_mode")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAzMode(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("volume"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("volume")); + if(!fieldValue.is_null()) + { + CreateChInstanceRequestBody_volume refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setVolume(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("az_code"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("az_code")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAzCode(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("time_zone"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("time_zone")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTimeZone(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("tags_info"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tags_info")); + if(!fieldValue.is_null()) + { + CreateChInstanceRequestBody_tags_info refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTagsInfo(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("pay_info"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("pay_info")); + if(!fieldValue.is_null()) + { + CreateChInstanceRequestBody_pay_info refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPayInfo(refVal); + } + } + return ok; +} + + +std::string CreateChInstanceRequestBody::getName() const +{ + return name_; +} + +void CreateChInstanceRequestBody::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool CreateChInstanceRequestBody::nameIsSet() const +{ + return nameIsSet_; +} + +void CreateChInstanceRequestBody::unsetname() +{ + nameIsSet_ = false; +} + +ClickHouseEngineInfo CreateChInstanceRequestBody::getEngine() const +{ + return engine_; +} + +void CreateChInstanceRequestBody::setEngine(const ClickHouseEngineInfo& value) +{ + engine_ = value; + engineIsSet_ = true; +} + +bool CreateChInstanceRequestBody::engineIsSet() const +{ + return engineIsSet_; +} + +void CreateChInstanceRequestBody::unsetengine() +{ + engineIsSet_ = false; +} + +CreateChInstanceRequestBody_ha CreateChInstanceRequestBody::getHa() const +{ + return ha_; +} + +void CreateChInstanceRequestBody::setHa(const CreateChInstanceRequestBody_ha& value) +{ + ha_ = value; + haIsSet_ = true; +} + +bool CreateChInstanceRequestBody::haIsSet() const +{ + return haIsSet_; +} + +void CreateChInstanceRequestBody::unsetha() +{ + haIsSet_ = false; +} + +std::string CreateChInstanceRequestBody::getFlavorId() const +{ + return flavorId_; +} + +void CreateChInstanceRequestBody::setFlavorId(const std::string& value) +{ + flavorId_ = value; + flavorIdIsSet_ = true; +} + +bool CreateChInstanceRequestBody::flavorIdIsSet() const +{ + return flavorIdIsSet_; +} + +void CreateChInstanceRequestBody::unsetflavorId() +{ + flavorIdIsSet_ = false; +} + +std::string CreateChInstanceRequestBody::getDbRootPwd() const +{ + return dbRootPwd_; +} + +void CreateChInstanceRequestBody::setDbRootPwd(const std::string& value) +{ + dbRootPwd_ = value; + dbRootPwdIsSet_ = true; +} + +bool CreateChInstanceRequestBody::dbRootPwdIsSet() const +{ + return dbRootPwdIsSet_; +} + +void CreateChInstanceRequestBody::unsetdbRootPwd() +{ + dbRootPwdIsSet_ = false; +} + +std::string CreateChInstanceRequestBody::getAzMode() const +{ + return azMode_; +} + +void CreateChInstanceRequestBody::setAzMode(const std::string& value) +{ + azMode_ = value; + azModeIsSet_ = true; +} + +bool CreateChInstanceRequestBody::azModeIsSet() const +{ + return azModeIsSet_; +} + +void CreateChInstanceRequestBody::unsetazMode() +{ + azModeIsSet_ = false; +} + +CreateChInstanceRequestBody_volume CreateChInstanceRequestBody::getVolume() const +{ + return volume_; +} + +void CreateChInstanceRequestBody::setVolume(const CreateChInstanceRequestBody_volume& value) +{ + volume_ = value; + volumeIsSet_ = true; +} + +bool CreateChInstanceRequestBody::volumeIsSet() const +{ + return volumeIsSet_; +} + +void CreateChInstanceRequestBody::unsetvolume() +{ + volumeIsSet_ = false; +} + +std::string CreateChInstanceRequestBody::getAzCode() const +{ + return azCode_; +} + +void CreateChInstanceRequestBody::setAzCode(const std::string& value) +{ + azCode_ = value; + azCodeIsSet_ = true; +} + +bool CreateChInstanceRequestBody::azCodeIsSet() const +{ + return azCodeIsSet_; +} + +void CreateChInstanceRequestBody::unsetazCode() +{ + azCodeIsSet_ = false; +} + +std::string CreateChInstanceRequestBody::getTimeZone() const +{ + return timeZone_; +} + +void CreateChInstanceRequestBody::setTimeZone(const std::string& value) +{ + timeZone_ = value; + timeZoneIsSet_ = true; +} + +bool CreateChInstanceRequestBody::timeZoneIsSet() const +{ + return timeZoneIsSet_; +} + +void CreateChInstanceRequestBody::unsettimeZone() +{ + timeZoneIsSet_ = false; +} + +CreateChInstanceRequestBody_tags_info CreateChInstanceRequestBody::getTagsInfo() const +{ + return tagsInfo_; +} + +void CreateChInstanceRequestBody::setTagsInfo(const CreateChInstanceRequestBody_tags_info& value) +{ + tagsInfo_ = value; + tagsInfoIsSet_ = true; +} + +bool CreateChInstanceRequestBody::tagsInfoIsSet() const +{ + return tagsInfoIsSet_; +} + +void CreateChInstanceRequestBody::unsettagsInfo() +{ + tagsInfoIsSet_ = false; +} + +CreateChInstanceRequestBody_pay_info CreateChInstanceRequestBody::getPayInfo() const +{ + return payInfo_; +} + +void CreateChInstanceRequestBody::setPayInfo(const CreateChInstanceRequestBody_pay_info& value) +{ + payInfo_ = value; + payInfoIsSet_ = true; +} + +bool CreateChInstanceRequestBody::payInfoIsSet() const +{ + return payInfoIsSet_; +} + +void CreateChInstanceRequestBody::unsetpayInfo() +{ + payInfoIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/CreateChInstanceRequestBody_ha.cpp b/gaussdb/src/v3/model/CreateChInstanceRequestBody_ha.cpp new file mode 100644 index 000000000..635e4dddf --- /dev/null +++ b/gaussdb/src/v3/model/CreateChInstanceRequestBody_ha.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/gaussdb/v3/model/CreateChInstanceRequestBody_ha.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +CreateChInstanceRequestBody_ha::CreateChInstanceRequestBody_ha() +{ + mode_ = ""; + modeIsSet_ = false; +} + +CreateChInstanceRequestBody_ha::~CreateChInstanceRequestBody_ha() = default; + +void CreateChInstanceRequestBody_ha::validate() +{ +} + +web::json::value CreateChInstanceRequestBody_ha::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(modeIsSet_) { + val[utility::conversions::to_string_t("mode")] = ModelBase::toJson(mode_); + } + + return val; +} +bool CreateChInstanceRequestBody_ha::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("mode"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("mode")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setMode(refVal); + } + } + return ok; +} + + +std::string CreateChInstanceRequestBody_ha::getMode() const +{ + return mode_; +} + +void CreateChInstanceRequestBody_ha::setMode(const std::string& value) +{ + mode_ = value; + modeIsSet_ = true; +} + +bool CreateChInstanceRequestBody_ha::modeIsSet() const +{ + return modeIsSet_; +} + +void CreateChInstanceRequestBody_ha::unsetmode() +{ + modeIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/CreateChInstanceRequestBody_pay_info.cpp b/gaussdb/src/v3/model/CreateChInstanceRequestBody_pay_info.cpp new file mode 100644 index 000000000..d5cb483e9 --- /dev/null +++ b/gaussdb/src/v3/model/CreateChInstanceRequestBody_pay_info.cpp @@ -0,0 +1,219 @@ + + +#include "huaweicloud/gaussdb/v3/model/CreateChInstanceRequestBody_pay_info.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +CreateChInstanceRequestBody_pay_info::CreateChInstanceRequestBody_pay_info() +{ + payModel_ = ""; + payModelIsSet_ = false; + orderId_ = ""; + orderIdIsSet_ = false; + period_ = 0; + periodIsSet_ = false; + periodType_ = 0; + periodTypeIsSet_ = false; + isAutoRenew_ = 0; + isAutoRenewIsSet_ = false; +} + +CreateChInstanceRequestBody_pay_info::~CreateChInstanceRequestBody_pay_info() = default; + +void CreateChInstanceRequestBody_pay_info::validate() +{ +} + +web::json::value CreateChInstanceRequestBody_pay_info::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(payModelIsSet_) { + val[utility::conversions::to_string_t("pay_model")] = ModelBase::toJson(payModel_); + } + if(orderIdIsSet_) { + val[utility::conversions::to_string_t("order_id")] = ModelBase::toJson(orderId_); + } + if(periodIsSet_) { + val[utility::conversions::to_string_t("period")] = ModelBase::toJson(period_); + } + if(periodTypeIsSet_) { + val[utility::conversions::to_string_t("period_type")] = ModelBase::toJson(periodType_); + } + if(isAutoRenewIsSet_) { + val[utility::conversions::to_string_t("is_auto_renew")] = ModelBase::toJson(isAutoRenew_); + } + + return val; +} +bool CreateChInstanceRequestBody_pay_info::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("pay_model"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("pay_model")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPayModel(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("order_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("order_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setOrderId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("period"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("period")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPeriod(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("period_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("period_type")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPeriodType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("is_auto_renew"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("is_auto_renew")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIsAutoRenew(refVal); + } + } + return ok; +} + + +std::string CreateChInstanceRequestBody_pay_info::getPayModel() const +{ + return payModel_; +} + +void CreateChInstanceRequestBody_pay_info::setPayModel(const std::string& value) +{ + payModel_ = value; + payModelIsSet_ = true; +} + +bool CreateChInstanceRequestBody_pay_info::payModelIsSet() const +{ + return payModelIsSet_; +} + +void CreateChInstanceRequestBody_pay_info::unsetpayModel() +{ + payModelIsSet_ = false; +} + +std::string CreateChInstanceRequestBody_pay_info::getOrderId() const +{ + return orderId_; +} + +void CreateChInstanceRequestBody_pay_info::setOrderId(const std::string& value) +{ + orderId_ = value; + orderIdIsSet_ = true; +} + +bool CreateChInstanceRequestBody_pay_info::orderIdIsSet() const +{ + return orderIdIsSet_; +} + +void CreateChInstanceRequestBody_pay_info::unsetorderId() +{ + orderIdIsSet_ = false; +} + +int32_t CreateChInstanceRequestBody_pay_info::getPeriod() const +{ + return period_; +} + +void CreateChInstanceRequestBody_pay_info::setPeriod(int32_t value) +{ + period_ = value; + periodIsSet_ = true; +} + +bool CreateChInstanceRequestBody_pay_info::periodIsSet() const +{ + return periodIsSet_; +} + +void CreateChInstanceRequestBody_pay_info::unsetperiod() +{ + periodIsSet_ = false; +} + +int32_t CreateChInstanceRequestBody_pay_info::getPeriodType() const +{ + return periodType_; +} + +void CreateChInstanceRequestBody_pay_info::setPeriodType(int32_t value) +{ + periodType_ = value; + periodTypeIsSet_ = true; +} + +bool CreateChInstanceRequestBody_pay_info::periodTypeIsSet() const +{ + return periodTypeIsSet_; +} + +void CreateChInstanceRequestBody_pay_info::unsetperiodType() +{ + periodTypeIsSet_ = false; +} + +int32_t CreateChInstanceRequestBody_pay_info::getIsAutoRenew() const +{ + return isAutoRenew_; +} + +void CreateChInstanceRequestBody_pay_info::setIsAutoRenew(int32_t value) +{ + isAutoRenew_ = value; + isAutoRenewIsSet_ = true; +} + +bool CreateChInstanceRequestBody_pay_info::isAutoRenewIsSet() const +{ + return isAutoRenewIsSet_; +} + +void CreateChInstanceRequestBody_pay_info::unsetisAutoRenew() +{ + isAutoRenewIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/CreateChInstanceRequestBody_tags_info.cpp b/gaussdb/src/v3/model/CreateChInstanceRequestBody_tags_info.cpp new file mode 100644 index 000000000..f81093b07 --- /dev/null +++ b/gaussdb/src/v3/model/CreateChInstanceRequestBody_tags_info.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/gaussdb/v3/model/CreateChInstanceRequestBody_tags_info.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +CreateChInstanceRequestBody_tags_info::CreateChInstanceRequestBody_tags_info() +{ + sysTagsIsSet_ = false; +} + +CreateChInstanceRequestBody_tags_info::~CreateChInstanceRequestBody_tags_info() = default; + +void CreateChInstanceRequestBody_tags_info::validate() +{ +} + +web::json::value CreateChInstanceRequestBody_tags_info::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(sysTagsIsSet_) { + val[utility::conversions::to_string_t("sys_tags")] = ModelBase::toJson(sysTags_); + } + + return val; +} +bool CreateChInstanceRequestBody_tags_info::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("sys_tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sys_tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSysTags(refVal); + } + } + return ok; +} + + +std::vector& CreateChInstanceRequestBody_tags_info::getSysTags() +{ + return sysTags_; +} + +void CreateChInstanceRequestBody_tags_info::setSysTags(const std::vector& value) +{ + sysTags_ = value; + sysTagsIsSet_ = true; +} + +bool CreateChInstanceRequestBody_tags_info::sysTagsIsSet() const +{ + return sysTagsIsSet_; +} + +void CreateChInstanceRequestBody_tags_info::unsetsysTags() +{ + sysTagsIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/CreateChInstanceRequestBody_tags_info_sys_tags.cpp b/gaussdb/src/v3/model/CreateChInstanceRequestBody_tags_info_sys_tags.cpp new file mode 100644 index 000000000..943f05583 --- /dev/null +++ b/gaussdb/src/v3/model/CreateChInstanceRequestBody_tags_info_sys_tags.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/gaussdb/v3/model/CreateChInstanceRequestBody_tags_info_sys_tags.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +CreateChInstanceRequestBody_tags_info_sys_tags::CreateChInstanceRequestBody_tags_info_sys_tags() +{ + key_ = ""; + keyIsSet_ = false; + value_ = ""; + valueIsSet_ = false; +} + +CreateChInstanceRequestBody_tags_info_sys_tags::~CreateChInstanceRequestBody_tags_info_sys_tags() = default; + +void CreateChInstanceRequestBody_tags_info_sys_tags::validate() +{ +} + +web::json::value CreateChInstanceRequestBody_tags_info_sys_tags::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(keyIsSet_) { + val[utility::conversions::to_string_t("key")] = ModelBase::toJson(key_); + } + if(valueIsSet_) { + val[utility::conversions::to_string_t("value")] = ModelBase::toJson(value_); + } + + return val; +} +bool CreateChInstanceRequestBody_tags_info_sys_tags::fromJson(const web::json::value& val) +{ + bool ok = true; + + 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("value"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("value")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setValue(refVal); + } + } + return ok; +} + + +std::string CreateChInstanceRequestBody_tags_info_sys_tags::getKey() const +{ + return key_; +} + +void CreateChInstanceRequestBody_tags_info_sys_tags::setKey(const std::string& value) +{ + key_ = value; + keyIsSet_ = true; +} + +bool CreateChInstanceRequestBody_tags_info_sys_tags::keyIsSet() const +{ + return keyIsSet_; +} + +void CreateChInstanceRequestBody_tags_info_sys_tags::unsetkey() +{ + keyIsSet_ = false; +} + +std::string CreateChInstanceRequestBody_tags_info_sys_tags::getValue() const +{ + return value_; +} + +void CreateChInstanceRequestBody_tags_info_sys_tags::setValue(const std::string& value) +{ + value_ = value; + valueIsSet_ = true; +} + +bool CreateChInstanceRequestBody_tags_info_sys_tags::valueIsSet() const +{ + return valueIsSet_; +} + +void CreateChInstanceRequestBody_tags_info_sys_tags::unsetvalue() +{ + valueIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/CreateChInstanceRequestBody_volume.cpp b/gaussdb/src/v3/model/CreateChInstanceRequestBody_volume.cpp new file mode 100644 index 000000000..30d814263 --- /dev/null +++ b/gaussdb/src/v3/model/CreateChInstanceRequestBody_volume.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/gaussdb/v3/model/CreateChInstanceRequestBody_volume.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +CreateChInstanceRequestBody_volume::CreateChInstanceRequestBody_volume() +{ + ioType_ = ""; + ioTypeIsSet_ = false; + capacityInGb_ = 0; + capacityInGbIsSet_ = false; +} + +CreateChInstanceRequestBody_volume::~CreateChInstanceRequestBody_volume() = default; + +void CreateChInstanceRequestBody_volume::validate() +{ +} + +web::json::value CreateChInstanceRequestBody_volume::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(ioTypeIsSet_) { + val[utility::conversions::to_string_t("io_type")] = ModelBase::toJson(ioType_); + } + if(capacityInGbIsSet_) { + val[utility::conversions::to_string_t("capacity_in_gb")] = ModelBase::toJson(capacityInGb_); + } + + return val; +} +bool CreateChInstanceRequestBody_volume::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("io_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("io_type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIoType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("capacity_in_gb"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("capacity_in_gb")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCapacityInGb(refVal); + } + } + return ok; +} + + +std::string CreateChInstanceRequestBody_volume::getIoType() const +{ + return ioType_; +} + +void CreateChInstanceRequestBody_volume::setIoType(const std::string& value) +{ + ioType_ = value; + ioTypeIsSet_ = true; +} + +bool CreateChInstanceRequestBody_volume::ioTypeIsSet() const +{ + return ioTypeIsSet_; +} + +void CreateChInstanceRequestBody_volume::unsetioType() +{ + ioTypeIsSet_ = false; +} + +int32_t CreateChInstanceRequestBody_volume::getCapacityInGb() const +{ + return capacityInGb_; +} + +void CreateChInstanceRequestBody_volume::setCapacityInGb(int32_t value) +{ + capacityInGb_ = value; + capacityInGbIsSet_ = true; +} + +bool CreateChInstanceRequestBody_volume::capacityInGbIsSet() const +{ + return capacityInGbIsSet_; +} + +void CreateChInstanceRequestBody_volume::unsetcapacityInGb() +{ + capacityInGbIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/CreateChLtsConfigRequestBody.cpp b/gaussdb/src/v3/model/CreateChLtsConfigRequestBody.cpp new file mode 100644 index 000000000..728d25e1f --- /dev/null +++ b/gaussdb/src/v3/model/CreateChLtsConfigRequestBody.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/gaussdb/v3/model/CreateChLtsConfigRequestBody.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +CreateChLtsConfigRequestBody::CreateChLtsConfigRequestBody() +{ + logConfigsIsSet_ = false; +} + +CreateChLtsConfigRequestBody::~CreateChLtsConfigRequestBody() = default; + +void CreateChLtsConfigRequestBody::validate() +{ +} + +web::json::value CreateChLtsConfigRequestBody::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(logConfigsIsSet_) { + val[utility::conversions::to_string_t("log_configs")] = ModelBase::toJson(logConfigs_); + } + + return val; +} +bool CreateChLtsConfigRequestBody::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("log_configs"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("log_configs")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLogConfigs(refVal); + } + } + return ok; +} + + +std::vector& CreateChLtsConfigRequestBody::getLogConfigs() +{ + return logConfigs_; +} + +void CreateChLtsConfigRequestBody::setLogConfigs(const std::vector& value) +{ + logConfigs_ = value; + logConfigsIsSet_ = true; +} + +bool CreateChLtsConfigRequestBody::logConfigsIsSet() const +{ + return logConfigsIsSet_; +} + +void CreateChLtsConfigRequestBody::unsetlogConfigs() +{ + logConfigsIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/CreateChLtsConfigRequestBody_log_configs.cpp b/gaussdb/src/v3/model/CreateChLtsConfigRequestBody_log_configs.cpp new file mode 100644 index 000000000..0062ba8fd --- /dev/null +++ b/gaussdb/src/v3/model/CreateChLtsConfigRequestBody_log_configs.cpp @@ -0,0 +1,184 @@ + + +#include "huaweicloud/gaussdb/v3/model/CreateChLtsConfigRequestBody_log_configs.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +CreateChLtsConfigRequestBody_log_configs::CreateChLtsConfigRequestBody_log_configs() +{ + instanceId_ = ""; + instanceIdIsSet_ = false; + logType_ = ""; + logTypeIsSet_ = false; + ltsGroupId_ = ""; + ltsGroupIdIsSet_ = false; + ltsStreamId_ = ""; + ltsStreamIdIsSet_ = false; +} + +CreateChLtsConfigRequestBody_log_configs::~CreateChLtsConfigRequestBody_log_configs() = default; + +void CreateChLtsConfigRequestBody_log_configs::validate() +{ +} + +web::json::value CreateChLtsConfigRequestBody_log_configs::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + if(logTypeIsSet_) { + val[utility::conversions::to_string_t("log_type")] = ModelBase::toJson(logType_); + } + if(ltsGroupIdIsSet_) { + val[utility::conversions::to_string_t("lts_group_id")] = ModelBase::toJson(ltsGroupId_); + } + if(ltsStreamIdIsSet_) { + val[utility::conversions::to_string_t("lts_stream_id")] = ModelBase::toJson(ltsStreamId_); + } + + return val; +} +bool CreateChLtsConfigRequestBody_log_configs::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("log_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("log_type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLogType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("lts_group_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("lts_group_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLtsGroupId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("lts_stream_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("lts_stream_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLtsStreamId(refVal); + } + } + return ok; +} + + +std::string CreateChLtsConfigRequestBody_log_configs::getInstanceId() const +{ + return instanceId_; +} + +void CreateChLtsConfigRequestBody_log_configs::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool CreateChLtsConfigRequestBody_log_configs::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void CreateChLtsConfigRequestBody_log_configs::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +std::string CreateChLtsConfigRequestBody_log_configs::getLogType() const +{ + return logType_; +} + +void CreateChLtsConfigRequestBody_log_configs::setLogType(const std::string& value) +{ + logType_ = value; + logTypeIsSet_ = true; +} + +bool CreateChLtsConfigRequestBody_log_configs::logTypeIsSet() const +{ + return logTypeIsSet_; +} + +void CreateChLtsConfigRequestBody_log_configs::unsetlogType() +{ + logTypeIsSet_ = false; +} + +std::string CreateChLtsConfigRequestBody_log_configs::getLtsGroupId() const +{ + return ltsGroupId_; +} + +void CreateChLtsConfigRequestBody_log_configs::setLtsGroupId(const std::string& value) +{ + ltsGroupId_ = value; + ltsGroupIdIsSet_ = true; +} + +bool CreateChLtsConfigRequestBody_log_configs::ltsGroupIdIsSet() const +{ + return ltsGroupIdIsSet_; +} + +void CreateChLtsConfigRequestBody_log_configs::unsetltsGroupId() +{ + ltsGroupIdIsSet_ = false; +} + +std::string CreateChLtsConfigRequestBody_log_configs::getLtsStreamId() const +{ + return ltsStreamId_; +} + +void CreateChLtsConfigRequestBody_log_configs::setLtsStreamId(const std::string& value) +{ + ltsStreamId_ = value; + ltsStreamIdIsSet_ = true; +} + +bool CreateChLtsConfigRequestBody_log_configs::ltsStreamIdIsSet() const +{ + return ltsStreamIdIsSet_; +} + +void CreateChLtsConfigRequestBody_log_configs::unsetltsStreamId() +{ + ltsStreamIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/CreateClickHouseDataBaseReplicationRequest.cpp b/gaussdb/src/v3/model/CreateClickHouseDataBaseReplicationRequest.cpp new file mode 100644 index 000000000..9f21d480e --- /dev/null +++ b/gaussdb/src/v3/model/CreateClickHouseDataBaseReplicationRequest.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/gaussdb/v3/model/CreateClickHouseDataBaseReplicationRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +CreateClickHouseDataBaseReplicationRequest::CreateClickHouseDataBaseReplicationRequest() +{ + instanceId_ = ""; + instanceIdIsSet_ = false; + xLanguage_ = ""; + xLanguageIsSet_ = false; + bodyIsSet_ = false; +} + +CreateClickHouseDataBaseReplicationRequest::~CreateClickHouseDataBaseReplicationRequest() = default; + +void CreateClickHouseDataBaseReplicationRequest::validate() +{ +} + +web::json::value CreateClickHouseDataBaseReplicationRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + 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 CreateClickHouseDataBaseReplicationRequest::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("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()) + { + CreateChDatabaseReplicationRequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string CreateClickHouseDataBaseReplicationRequest::getInstanceId() const +{ + return instanceId_; +} + +void CreateClickHouseDataBaseReplicationRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool CreateClickHouseDataBaseReplicationRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void CreateClickHouseDataBaseReplicationRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +std::string CreateClickHouseDataBaseReplicationRequest::getXLanguage() const +{ + return xLanguage_; +} + +void CreateClickHouseDataBaseReplicationRequest::setXLanguage(const std::string& value) +{ + xLanguage_ = value; + xLanguageIsSet_ = true; +} + +bool CreateClickHouseDataBaseReplicationRequest::xLanguageIsSet() const +{ + return xLanguageIsSet_; +} + +void CreateClickHouseDataBaseReplicationRequest::unsetxLanguage() +{ + xLanguageIsSet_ = false; +} + +CreateChDatabaseReplicationRequestBody CreateClickHouseDataBaseReplicationRequest::getBody() const +{ + return body_; +} + +void CreateClickHouseDataBaseReplicationRequest::setBody(const CreateChDatabaseReplicationRequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool CreateClickHouseDataBaseReplicationRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void CreateClickHouseDataBaseReplicationRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/CreateClickHouseDataBaseReplicationResponse.cpp b/gaussdb/src/v3/model/CreateClickHouseDataBaseReplicationResponse.cpp new file mode 100644 index 000000000..b634bb812 --- /dev/null +++ b/gaussdb/src/v3/model/CreateClickHouseDataBaseReplicationResponse.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/gaussdb/v3/model/CreateClickHouseDataBaseReplicationResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +CreateClickHouseDataBaseReplicationResponse::CreateClickHouseDataBaseReplicationResponse() +{ + jobId_ = ""; + jobIdIsSet_ = false; +} + +CreateClickHouseDataBaseReplicationResponse::~CreateClickHouseDataBaseReplicationResponse() = default; + +void CreateClickHouseDataBaseReplicationResponse::validate() +{ +} + +web::json::value CreateClickHouseDataBaseReplicationResponse::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 CreateClickHouseDataBaseReplicationResponse::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 CreateClickHouseDataBaseReplicationResponse::getJobId() const +{ + return jobId_; +} + +void CreateClickHouseDataBaseReplicationResponse::setJobId(const std::string& value) +{ + jobId_ = value; + jobIdIsSet_ = true; +} + +bool CreateClickHouseDataBaseReplicationResponse::jobIdIsSet() const +{ + return jobIdIsSet_; +} + +void CreateClickHouseDataBaseReplicationResponse::unsetjobId() +{ + jobIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/CreateClickHouseDatabaseUserRequest.cpp b/gaussdb/src/v3/model/CreateClickHouseDatabaseUserRequest.cpp new file mode 100644 index 000000000..11e7b9e8c --- /dev/null +++ b/gaussdb/src/v3/model/CreateClickHouseDatabaseUserRequest.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/gaussdb/v3/model/CreateClickHouseDatabaseUserRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +CreateClickHouseDatabaseUserRequest::CreateClickHouseDatabaseUserRequest() +{ + instanceId_ = ""; + instanceIdIsSet_ = false; + xLanguage_ = ""; + xLanguageIsSet_ = false; + bodyIsSet_ = false; +} + +CreateClickHouseDatabaseUserRequest::~CreateClickHouseDatabaseUserRequest() = default; + +void CreateClickHouseDatabaseUserRequest::validate() +{ +} + +web::json::value CreateClickHouseDatabaseUserRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + 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 CreateClickHouseDatabaseUserRequest::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("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()) + { + ClickHouseDatabaseUserInfo refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string CreateClickHouseDatabaseUserRequest::getInstanceId() const +{ + return instanceId_; +} + +void CreateClickHouseDatabaseUserRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool CreateClickHouseDatabaseUserRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void CreateClickHouseDatabaseUserRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +std::string CreateClickHouseDatabaseUserRequest::getXLanguage() const +{ + return xLanguage_; +} + +void CreateClickHouseDatabaseUserRequest::setXLanguage(const std::string& value) +{ + xLanguage_ = value; + xLanguageIsSet_ = true; +} + +bool CreateClickHouseDatabaseUserRequest::xLanguageIsSet() const +{ + return xLanguageIsSet_; +} + +void CreateClickHouseDatabaseUserRequest::unsetxLanguage() +{ + xLanguageIsSet_ = false; +} + +ClickHouseDatabaseUserInfo CreateClickHouseDatabaseUserRequest::getBody() const +{ + return body_; +} + +void CreateClickHouseDatabaseUserRequest::setBody(const ClickHouseDatabaseUserInfo& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool CreateClickHouseDatabaseUserRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void CreateClickHouseDatabaseUserRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/CreateClickHouseDatabaseUserResponse.cpp b/gaussdb/src/v3/model/CreateClickHouseDatabaseUserResponse.cpp new file mode 100644 index 000000000..3695b0958 --- /dev/null +++ b/gaussdb/src/v3/model/CreateClickHouseDatabaseUserResponse.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/gaussdb/v3/model/CreateClickHouseDatabaseUserResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +CreateClickHouseDatabaseUserResponse::CreateClickHouseDatabaseUserResponse() +{ + result_ = ""; + resultIsSet_ = false; +} + +CreateClickHouseDatabaseUserResponse::~CreateClickHouseDatabaseUserResponse() = default; + +void CreateClickHouseDatabaseUserResponse::validate() +{ +} + +web::json::value CreateClickHouseDatabaseUserResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(resultIsSet_) { + val[utility::conversions::to_string_t("result")] = ModelBase::toJson(result_); + } + + return val; +} +bool CreateClickHouseDatabaseUserResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("result"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("result")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setResult(refVal); + } + } + return ok; +} + + +std::string CreateClickHouseDatabaseUserResponse::getResult() const +{ + return result_; +} + +void CreateClickHouseDatabaseUserResponse::setResult(const std::string& value) +{ + result_ = value; + resultIsSet_ = true; +} + +bool CreateClickHouseDatabaseUserResponse::resultIsSet() const +{ + return resultIsSet_; +} + +void CreateClickHouseDatabaseUserResponse::unsetresult() +{ + resultIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/CreateClickHouseInstanceRequest.cpp b/gaussdb/src/v3/model/CreateClickHouseInstanceRequest.cpp new file mode 100644 index 000000000..6533f471f --- /dev/null +++ b/gaussdb/src/v3/model/CreateClickHouseInstanceRequest.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/gaussdb/v3/model/CreateClickHouseInstanceRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +CreateClickHouseInstanceRequest::CreateClickHouseInstanceRequest() +{ + instanceId_ = ""; + instanceIdIsSet_ = false; + xLanguage_ = ""; + xLanguageIsSet_ = false; + bodyIsSet_ = false; +} + +CreateClickHouseInstanceRequest::~CreateClickHouseInstanceRequest() = default; + +void CreateClickHouseInstanceRequest::validate() +{ +} + +web::json::value CreateClickHouseInstanceRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + 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 CreateClickHouseInstanceRequest::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("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()) + { + CreateChInstanceRequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string CreateClickHouseInstanceRequest::getInstanceId() const +{ + return instanceId_; +} + +void CreateClickHouseInstanceRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool CreateClickHouseInstanceRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void CreateClickHouseInstanceRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +std::string CreateClickHouseInstanceRequest::getXLanguage() const +{ + return xLanguage_; +} + +void CreateClickHouseInstanceRequest::setXLanguage(const std::string& value) +{ + xLanguage_ = value; + xLanguageIsSet_ = true; +} + +bool CreateClickHouseInstanceRequest::xLanguageIsSet() const +{ + return xLanguageIsSet_; +} + +void CreateClickHouseInstanceRequest::unsetxLanguage() +{ + xLanguageIsSet_ = false; +} + +CreateChInstanceRequestBody CreateClickHouseInstanceRequest::getBody() const +{ + return body_; +} + +void CreateClickHouseInstanceRequest::setBody(const CreateChInstanceRequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool CreateClickHouseInstanceRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void CreateClickHouseInstanceRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/CreateClickHouseInstanceResponse.cpp b/gaussdb/src/v3/model/CreateClickHouseInstanceResponse.cpp new file mode 100644 index 000000000..0b978147b --- /dev/null +++ b/gaussdb/src/v3/model/CreateClickHouseInstanceResponse.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/gaussdb/v3/model/CreateClickHouseInstanceResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +CreateClickHouseInstanceResponse::CreateClickHouseInstanceResponse() +{ + instanceIsSet_ = false; + jobId_ = ""; + jobIdIsSet_ = false; +} + +CreateClickHouseInstanceResponse::~CreateClickHouseInstanceResponse() = default; + +void CreateClickHouseInstanceResponse::validate() +{ +} + +web::json::value CreateClickHouseInstanceResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(instanceIsSet_) { + val[utility::conversions::to_string_t("instance")] = ModelBase::toJson(instance_); + } + if(jobIdIsSet_) { + val[utility::conversions::to_string_t("job_id")] = ModelBase::toJson(jobId_); + } + + return val; +} +bool CreateClickHouseInstanceResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("instance"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("instance")); + if(!fieldValue.is_null()) + { + CreateChInstanceInfo refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInstance(refVal); + } + } + 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; +} + + +CreateChInstanceInfo CreateClickHouseInstanceResponse::getInstance() const +{ + return instance_; +} + +void CreateClickHouseInstanceResponse::setInstance(const CreateChInstanceInfo& value) +{ + instance_ = value; + instanceIsSet_ = true; +} + +bool CreateClickHouseInstanceResponse::instanceIsSet() const +{ + return instanceIsSet_; +} + +void CreateClickHouseInstanceResponse::unsetinstance() +{ + instanceIsSet_ = false; +} + +std::string CreateClickHouseInstanceResponse::getJobId() const +{ + return jobId_; +} + +void CreateClickHouseInstanceResponse::setJobId(const std::string& value) +{ + jobId_ = value; + jobIdIsSet_ = true; +} + +bool CreateClickHouseInstanceResponse::jobIdIsSet() const +{ + return jobIdIsSet_; +} + +void CreateClickHouseInstanceResponse::unsetjobId() +{ + jobIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/DeleteChLtsConfigRequestBody.cpp b/gaussdb/src/v3/model/DeleteChLtsConfigRequestBody.cpp new file mode 100644 index 000000000..c0e5a1537 --- /dev/null +++ b/gaussdb/src/v3/model/DeleteChLtsConfigRequestBody.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/gaussdb/v3/model/DeleteChLtsConfigRequestBody.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +DeleteChLtsConfigRequestBody::DeleteChLtsConfigRequestBody() +{ + logConfigsIsSet_ = false; +} + +DeleteChLtsConfigRequestBody::~DeleteChLtsConfigRequestBody() = default; + +void DeleteChLtsConfigRequestBody::validate() +{ +} + +web::json::value DeleteChLtsConfigRequestBody::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(logConfigsIsSet_) { + val[utility::conversions::to_string_t("log_configs")] = ModelBase::toJson(logConfigs_); + } + + return val; +} +bool DeleteChLtsConfigRequestBody::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("log_configs"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("log_configs")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLogConfigs(refVal); + } + } + return ok; +} + + +std::vector& DeleteChLtsConfigRequestBody::getLogConfigs() +{ + return logConfigs_; +} + +void DeleteChLtsConfigRequestBody::setLogConfigs(const std::vector& value) +{ + logConfigs_ = value; + logConfigsIsSet_ = true; +} + +bool DeleteChLtsConfigRequestBody::logConfigsIsSet() const +{ + return logConfigsIsSet_; +} + +void DeleteChLtsConfigRequestBody::unsetlogConfigs() +{ + logConfigsIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/DeleteChLtsConfigRequestBody_log_configs.cpp b/gaussdb/src/v3/model/DeleteChLtsConfigRequestBody_log_configs.cpp new file mode 100644 index 000000000..51da3cec5 --- /dev/null +++ b/gaussdb/src/v3/model/DeleteChLtsConfigRequestBody_log_configs.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/gaussdb/v3/model/DeleteChLtsConfigRequestBody_log_configs.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +DeleteChLtsConfigRequestBody_log_configs::DeleteChLtsConfigRequestBody_log_configs() +{ + instanceId_ = ""; + instanceIdIsSet_ = false; + logType_ = ""; + logTypeIsSet_ = false; +} + +DeleteChLtsConfigRequestBody_log_configs::~DeleteChLtsConfigRequestBody_log_configs() = default; + +void DeleteChLtsConfigRequestBody_log_configs::validate() +{ +} + +web::json::value DeleteChLtsConfigRequestBody_log_configs::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + if(logTypeIsSet_) { + val[utility::conversions::to_string_t("log_type")] = ModelBase::toJson(logType_); + } + + return val; +} +bool DeleteChLtsConfigRequestBody_log_configs::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("log_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("log_type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLogType(refVal); + } + } + return ok; +} + + +std::string DeleteChLtsConfigRequestBody_log_configs::getInstanceId() const +{ + return instanceId_; +} + +void DeleteChLtsConfigRequestBody_log_configs::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool DeleteChLtsConfigRequestBody_log_configs::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void DeleteChLtsConfigRequestBody_log_configs::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +std::string DeleteChLtsConfigRequestBody_log_configs::getLogType() const +{ + return logType_; +} + +void DeleteChLtsConfigRequestBody_log_configs::setLogType(const std::string& value) +{ + logType_ = value; + logTypeIsSet_ = true; +} + +bool DeleteChLtsConfigRequestBody_log_configs::logTypeIsSet() const +{ + return logTypeIsSet_; +} + +void DeleteChLtsConfigRequestBody_log_configs::unsetlogType() +{ + logTypeIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/DeleteClickHouseDataBaseConfigRequest.cpp b/gaussdb/src/v3/model/DeleteClickHouseDataBaseConfigRequest.cpp new file mode 100644 index 000000000..45986d6e9 --- /dev/null +++ b/gaussdb/src/v3/model/DeleteClickHouseDataBaseConfigRequest.cpp @@ -0,0 +1,149 @@ + + +#include "huaweicloud/gaussdb/v3/model/DeleteClickHouseDataBaseConfigRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +DeleteClickHouseDataBaseConfigRequest::DeleteClickHouseDataBaseConfigRequest() +{ + instanceId_ = ""; + instanceIdIsSet_ = false; + xLanguage_ = ""; + xLanguageIsSet_ = false; + database_ = ""; + databaseIsSet_ = false; +} + +DeleteClickHouseDataBaseConfigRequest::~DeleteClickHouseDataBaseConfigRequest() = default; + +void DeleteClickHouseDataBaseConfigRequest::validate() +{ +} + +web::json::value DeleteClickHouseDataBaseConfigRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + if(xLanguageIsSet_) { + val[utility::conversions::to_string_t("X-Language")] = ModelBase::toJson(xLanguage_); + } + if(databaseIsSet_) { + val[utility::conversions::to_string_t("database")] = ModelBase::toJson(database_); + } + + return val; +} +bool DeleteClickHouseDataBaseConfigRequest::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("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("database"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("database")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDatabase(refVal); + } + } + return ok; +} + + +std::string DeleteClickHouseDataBaseConfigRequest::getInstanceId() const +{ + return instanceId_; +} + +void DeleteClickHouseDataBaseConfigRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool DeleteClickHouseDataBaseConfigRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void DeleteClickHouseDataBaseConfigRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +std::string DeleteClickHouseDataBaseConfigRequest::getXLanguage() const +{ + return xLanguage_; +} + +void DeleteClickHouseDataBaseConfigRequest::setXLanguage(const std::string& value) +{ + xLanguage_ = value; + xLanguageIsSet_ = true; +} + +bool DeleteClickHouseDataBaseConfigRequest::xLanguageIsSet() const +{ + return xLanguageIsSet_; +} + +void DeleteClickHouseDataBaseConfigRequest::unsetxLanguage() +{ + xLanguageIsSet_ = false; +} + +std::string DeleteClickHouseDataBaseConfigRequest::getDatabase() const +{ + return database_; +} + +void DeleteClickHouseDataBaseConfigRequest::setDatabase(const std::string& value) +{ + database_ = value; + databaseIsSet_ = true; +} + +bool DeleteClickHouseDataBaseConfigRequest::databaseIsSet() const +{ + return databaseIsSet_; +} + +void DeleteClickHouseDataBaseConfigRequest::unsetdatabase() +{ + databaseIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/DeleteClickHouseDataBaseConfigResponse.cpp b/gaussdb/src/v3/model/DeleteClickHouseDataBaseConfigResponse.cpp new file mode 100644 index 000000000..bbc516f98 --- /dev/null +++ b/gaussdb/src/v3/model/DeleteClickHouseDataBaseConfigResponse.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/gaussdb/v3/model/DeleteClickHouseDataBaseConfigResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +DeleteClickHouseDataBaseConfigResponse::DeleteClickHouseDataBaseConfigResponse() +{ + jobId_ = ""; + jobIdIsSet_ = false; +} + +DeleteClickHouseDataBaseConfigResponse::~DeleteClickHouseDataBaseConfigResponse() = default; + +void DeleteClickHouseDataBaseConfigResponse::validate() +{ +} + +web::json::value DeleteClickHouseDataBaseConfigResponse::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 DeleteClickHouseDataBaseConfigResponse::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 DeleteClickHouseDataBaseConfigResponse::getJobId() const +{ + return jobId_; +} + +void DeleteClickHouseDataBaseConfigResponse::setJobId(const std::string& value) +{ + jobId_ = value; + jobIdIsSet_ = true; +} + +bool DeleteClickHouseDataBaseConfigResponse::jobIdIsSet() const +{ + return jobIdIsSet_; +} + +void DeleteClickHouseDataBaseConfigResponse::unsetjobId() +{ + jobIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/DeleteClickHouseDataBaseReplicationRequest.cpp b/gaussdb/src/v3/model/DeleteClickHouseDataBaseReplicationRequest.cpp new file mode 100644 index 000000000..828b16bf6 --- /dev/null +++ b/gaussdb/src/v3/model/DeleteClickHouseDataBaseReplicationRequest.cpp @@ -0,0 +1,149 @@ + + +#include "huaweicloud/gaussdb/v3/model/DeleteClickHouseDataBaseReplicationRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +DeleteClickHouseDataBaseReplicationRequest::DeleteClickHouseDataBaseReplicationRequest() +{ + instanceId_ = ""; + instanceIdIsSet_ = false; + databaseName_ = ""; + databaseNameIsSet_ = false; + xLanguage_ = ""; + xLanguageIsSet_ = false; +} + +DeleteClickHouseDataBaseReplicationRequest::~DeleteClickHouseDataBaseReplicationRequest() = default; + +void DeleteClickHouseDataBaseReplicationRequest::validate() +{ +} + +web::json::value DeleteClickHouseDataBaseReplicationRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + if(databaseNameIsSet_) { + val[utility::conversions::to_string_t("database_name")] = ModelBase::toJson(databaseName_); + } + if(xLanguageIsSet_) { + val[utility::conversions::to_string_t("X-Language")] = ModelBase::toJson(xLanguage_); + } + + return val; +} +bool DeleteClickHouseDataBaseReplicationRequest::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("database_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("database_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDatabaseName(refVal); + } + } + 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); + } + } + return ok; +} + + +std::string DeleteClickHouseDataBaseReplicationRequest::getInstanceId() const +{ + return instanceId_; +} + +void DeleteClickHouseDataBaseReplicationRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool DeleteClickHouseDataBaseReplicationRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void DeleteClickHouseDataBaseReplicationRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +std::string DeleteClickHouseDataBaseReplicationRequest::getDatabaseName() const +{ + return databaseName_; +} + +void DeleteClickHouseDataBaseReplicationRequest::setDatabaseName(const std::string& value) +{ + databaseName_ = value; + databaseNameIsSet_ = true; +} + +bool DeleteClickHouseDataBaseReplicationRequest::databaseNameIsSet() const +{ + return databaseNameIsSet_; +} + +void DeleteClickHouseDataBaseReplicationRequest::unsetdatabaseName() +{ + databaseNameIsSet_ = false; +} + +std::string DeleteClickHouseDataBaseReplicationRequest::getXLanguage() const +{ + return xLanguage_; +} + +void DeleteClickHouseDataBaseReplicationRequest::setXLanguage(const std::string& value) +{ + xLanguage_ = value; + xLanguageIsSet_ = true; +} + +bool DeleteClickHouseDataBaseReplicationRequest::xLanguageIsSet() const +{ + return xLanguageIsSet_; +} + +void DeleteClickHouseDataBaseReplicationRequest::unsetxLanguage() +{ + xLanguageIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/DeleteClickHouseDataBaseReplicationResponse.cpp b/gaussdb/src/v3/model/DeleteClickHouseDataBaseReplicationResponse.cpp new file mode 100644 index 000000000..19087f757 --- /dev/null +++ b/gaussdb/src/v3/model/DeleteClickHouseDataBaseReplicationResponse.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/gaussdb/v3/model/DeleteClickHouseDataBaseReplicationResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +DeleteClickHouseDataBaseReplicationResponse::DeleteClickHouseDataBaseReplicationResponse() +{ + jobId_ = ""; + jobIdIsSet_ = false; +} + +DeleteClickHouseDataBaseReplicationResponse::~DeleteClickHouseDataBaseReplicationResponse() = default; + +void DeleteClickHouseDataBaseReplicationResponse::validate() +{ +} + +web::json::value DeleteClickHouseDataBaseReplicationResponse::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 DeleteClickHouseDataBaseReplicationResponse::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 DeleteClickHouseDataBaseReplicationResponse::getJobId() const +{ + return jobId_; +} + +void DeleteClickHouseDataBaseReplicationResponse::setJobId(const std::string& value) +{ + jobId_ = value; + jobIdIsSet_ = true; +} + +bool DeleteClickHouseDataBaseReplicationResponse::jobIdIsSet() const +{ + return jobIdIsSet_; +} + +void DeleteClickHouseDataBaseReplicationResponse::unsetjobId() +{ + jobIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/DeleteClickHouseDatabaseUserRequest.cpp b/gaussdb/src/v3/model/DeleteClickHouseDatabaseUserRequest.cpp new file mode 100644 index 000000000..a20d696f5 --- /dev/null +++ b/gaussdb/src/v3/model/DeleteClickHouseDatabaseUserRequest.cpp @@ -0,0 +1,149 @@ + + +#include "huaweicloud/gaussdb/v3/model/DeleteClickHouseDatabaseUserRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +DeleteClickHouseDatabaseUserRequest::DeleteClickHouseDatabaseUserRequest() +{ + xLanguage_ = ""; + xLanguageIsSet_ = false; + instanceId_ = ""; + instanceIdIsSet_ = false; + userName_ = ""; + userNameIsSet_ = false; +} + +DeleteClickHouseDatabaseUserRequest::~DeleteClickHouseDatabaseUserRequest() = default; + +void DeleteClickHouseDatabaseUserRequest::validate() +{ +} + +web::json::value DeleteClickHouseDatabaseUserRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(xLanguageIsSet_) { + val[utility::conversions::to_string_t("X-Language")] = ModelBase::toJson(xLanguage_); + } + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + if(userNameIsSet_) { + val[utility::conversions::to_string_t("user_name")] = ModelBase::toJson(userName_); + } + + return val; +} +bool DeleteClickHouseDatabaseUserRequest::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("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("user_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("user_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setUserName(refVal); + } + } + return ok; +} + + +std::string DeleteClickHouseDatabaseUserRequest::getXLanguage() const +{ + return xLanguage_; +} + +void DeleteClickHouseDatabaseUserRequest::setXLanguage(const std::string& value) +{ + xLanguage_ = value; + xLanguageIsSet_ = true; +} + +bool DeleteClickHouseDatabaseUserRequest::xLanguageIsSet() const +{ + return xLanguageIsSet_; +} + +void DeleteClickHouseDatabaseUserRequest::unsetxLanguage() +{ + xLanguageIsSet_ = false; +} + +std::string DeleteClickHouseDatabaseUserRequest::getInstanceId() const +{ + return instanceId_; +} + +void DeleteClickHouseDatabaseUserRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool DeleteClickHouseDatabaseUserRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void DeleteClickHouseDatabaseUserRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +std::string DeleteClickHouseDatabaseUserRequest::getUserName() const +{ + return userName_; +} + +void DeleteClickHouseDatabaseUserRequest::setUserName(const std::string& value) +{ + userName_ = value; + userNameIsSet_ = true; +} + +bool DeleteClickHouseDatabaseUserRequest::userNameIsSet() const +{ + return userNameIsSet_; +} + +void DeleteClickHouseDatabaseUserRequest::unsetuserName() +{ + userNameIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/DeleteClickHouseDatabaseUserResponse.cpp b/gaussdb/src/v3/model/DeleteClickHouseDatabaseUserResponse.cpp new file mode 100644 index 000000000..f71f8f121 --- /dev/null +++ b/gaussdb/src/v3/model/DeleteClickHouseDatabaseUserResponse.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/gaussdb/v3/model/DeleteClickHouseDatabaseUserResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +DeleteClickHouseDatabaseUserResponse::DeleteClickHouseDatabaseUserResponse() +{ + result_ = ""; + resultIsSet_ = false; +} + +DeleteClickHouseDatabaseUserResponse::~DeleteClickHouseDatabaseUserResponse() = default; + +void DeleteClickHouseDatabaseUserResponse::validate() +{ +} + +web::json::value DeleteClickHouseDatabaseUserResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(resultIsSet_) { + val[utility::conversions::to_string_t("result")] = ModelBase::toJson(result_); + } + + return val; +} +bool DeleteClickHouseDatabaseUserResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("result"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("result")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setResult(refVal); + } + } + return ok; +} + + +std::string DeleteClickHouseDatabaseUserResponse::getResult() const +{ + return result_; +} + +void DeleteClickHouseDatabaseUserResponse::setResult(const std::string& value) +{ + result_ = value; + resultIsSet_ = true; +} + +bool DeleteClickHouseDatabaseUserResponse::resultIsSet() const +{ + return resultIsSet_; +} + +void DeleteClickHouseDatabaseUserResponse::unsetresult() +{ + resultIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/DeleteClickHouseInstanceRequest.cpp b/gaussdb/src/v3/model/DeleteClickHouseInstanceRequest.cpp new file mode 100644 index 000000000..e14dc6376 --- /dev/null +++ b/gaussdb/src/v3/model/DeleteClickHouseInstanceRequest.cpp @@ -0,0 +1,149 @@ + + +#include "huaweicloud/gaussdb/v3/model/DeleteClickHouseInstanceRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +DeleteClickHouseInstanceRequest::DeleteClickHouseInstanceRequest() +{ + instanceId_ = ""; + instanceIdIsSet_ = false; + clickhouseInstanceId_ = ""; + clickhouseInstanceIdIsSet_ = false; + xLanguage_ = ""; + xLanguageIsSet_ = false; +} + +DeleteClickHouseInstanceRequest::~DeleteClickHouseInstanceRequest() = default; + +void DeleteClickHouseInstanceRequest::validate() +{ +} + +web::json::value DeleteClickHouseInstanceRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + if(clickhouseInstanceIdIsSet_) { + val[utility::conversions::to_string_t("clickhouse_instance_id")] = ModelBase::toJson(clickhouseInstanceId_); + } + if(xLanguageIsSet_) { + val[utility::conversions::to_string_t("X-Language")] = ModelBase::toJson(xLanguage_); + } + + return val; +} +bool DeleteClickHouseInstanceRequest::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("clickhouse_instance_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("clickhouse_instance_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setClickhouseInstanceId(refVal); + } + } + 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); + } + } + return ok; +} + + +std::string DeleteClickHouseInstanceRequest::getInstanceId() const +{ + return instanceId_; +} + +void DeleteClickHouseInstanceRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool DeleteClickHouseInstanceRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void DeleteClickHouseInstanceRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +std::string DeleteClickHouseInstanceRequest::getClickhouseInstanceId() const +{ + return clickhouseInstanceId_; +} + +void DeleteClickHouseInstanceRequest::setClickhouseInstanceId(const std::string& value) +{ + clickhouseInstanceId_ = value; + clickhouseInstanceIdIsSet_ = true; +} + +bool DeleteClickHouseInstanceRequest::clickhouseInstanceIdIsSet() const +{ + return clickhouseInstanceIdIsSet_; +} + +void DeleteClickHouseInstanceRequest::unsetclickhouseInstanceId() +{ + clickhouseInstanceIdIsSet_ = false; +} + +std::string DeleteClickHouseInstanceRequest::getXLanguage() const +{ + return xLanguage_; +} + +void DeleteClickHouseInstanceRequest::setXLanguage(const std::string& value) +{ + xLanguage_ = value; + xLanguageIsSet_ = true; +} + +bool DeleteClickHouseInstanceRequest::xLanguageIsSet() const +{ + return xLanguageIsSet_; +} + +void DeleteClickHouseInstanceRequest::unsetxLanguage() +{ + xLanguageIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/DeleteClickHouseInstanceResponse.cpp b/gaussdb/src/v3/model/DeleteClickHouseInstanceResponse.cpp new file mode 100644 index 000000000..78abdcd38 --- /dev/null +++ b/gaussdb/src/v3/model/DeleteClickHouseInstanceResponse.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/gaussdb/v3/model/DeleteClickHouseInstanceResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +DeleteClickHouseInstanceResponse::DeleteClickHouseInstanceResponse() +{ + jobId_ = ""; + jobIdIsSet_ = false; +} + +DeleteClickHouseInstanceResponse::~DeleteClickHouseInstanceResponse() = default; + +void DeleteClickHouseInstanceResponse::validate() +{ +} + +web::json::value DeleteClickHouseInstanceResponse::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 DeleteClickHouseInstanceResponse::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 DeleteClickHouseInstanceResponse::getJobId() const +{ + return jobId_; +} + +void DeleteClickHouseInstanceResponse::setJobId(const std::string& value) +{ + jobId_ = value; + jobIdIsSet_ = true; +} + +bool DeleteClickHouseInstanceResponse::jobIdIsSet() const +{ + return jobIdIsSet_; +} + +void DeleteClickHouseInstanceResponse::unsetjobId() +{ + jobIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/DeleteClickHouseLtsConfigRequest.cpp b/gaussdb/src/v3/model/DeleteClickHouseLtsConfigRequest.cpp new file mode 100644 index 000000000..6be699bff --- /dev/null +++ b/gaussdb/src/v3/model/DeleteClickHouseLtsConfigRequest.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/gaussdb/v3/model/DeleteClickHouseLtsConfigRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +DeleteClickHouseLtsConfigRequest::DeleteClickHouseLtsConfigRequest() +{ + xLanguage_ = ""; + xLanguageIsSet_ = false; + bodyIsSet_ = false; +} + +DeleteClickHouseLtsConfigRequest::~DeleteClickHouseLtsConfigRequest() = default; + +void DeleteClickHouseLtsConfigRequest::validate() +{ +} + +web::json::value DeleteClickHouseLtsConfigRequest::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 DeleteClickHouseLtsConfigRequest::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()) + { + DeleteChLtsConfigRequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string DeleteClickHouseLtsConfigRequest::getXLanguage() const +{ + return xLanguage_; +} + +void DeleteClickHouseLtsConfigRequest::setXLanguage(const std::string& value) +{ + xLanguage_ = value; + xLanguageIsSet_ = true; +} + +bool DeleteClickHouseLtsConfigRequest::xLanguageIsSet() const +{ + return xLanguageIsSet_; +} + +void DeleteClickHouseLtsConfigRequest::unsetxLanguage() +{ + xLanguageIsSet_ = false; +} + +DeleteChLtsConfigRequestBody DeleteClickHouseLtsConfigRequest::getBody() const +{ + return body_; +} + +void DeleteClickHouseLtsConfigRequest::setBody(const DeleteChLtsConfigRequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool DeleteClickHouseLtsConfigRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void DeleteClickHouseLtsConfigRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/DeleteClickHouseLtsConfigResponse.cpp b/gaussdb/src/v3/model/DeleteClickHouseLtsConfigResponse.cpp new file mode 100644 index 000000000..4cdcd6779 --- /dev/null +++ b/gaussdb/src/v3/model/DeleteClickHouseLtsConfigResponse.cpp @@ -0,0 +1,44 @@ + + +#include "huaweicloud/gaussdb/v3/model/DeleteClickHouseLtsConfigResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +DeleteClickHouseLtsConfigResponse::DeleteClickHouseLtsConfigResponse() +{ +} + +DeleteClickHouseLtsConfigResponse::~DeleteClickHouseLtsConfigResponse() = default; + +void DeleteClickHouseLtsConfigResponse::validate() +{ +} + +web::json::value DeleteClickHouseLtsConfigResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + + return val; +} +bool DeleteClickHouseLtsConfigResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + return ok; +} + + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ListClickHouseDataBaseParameterRequest.cpp b/gaussdb/src/v3/model/ListClickHouseDataBaseParameterRequest.cpp new file mode 100644 index 000000000..0ba24715f --- /dev/null +++ b/gaussdb/src/v3/model/ListClickHouseDataBaseParameterRequest.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/gaussdb/v3/model/ListClickHouseDataBaseParameterRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ListClickHouseDataBaseParameterRequest::ListClickHouseDataBaseParameterRequest() +{ + instanceId_ = ""; + instanceIdIsSet_ = false; + xLanguage_ = ""; + xLanguageIsSet_ = false; +} + +ListClickHouseDataBaseParameterRequest::~ListClickHouseDataBaseParameterRequest() = default; + +void ListClickHouseDataBaseParameterRequest::validate() +{ +} + +web::json::value ListClickHouseDataBaseParameterRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + if(xLanguageIsSet_) { + val[utility::conversions::to_string_t("X-Language")] = ModelBase::toJson(xLanguage_); + } + + return val; +} +bool ListClickHouseDataBaseParameterRequest::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("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); + } + } + return ok; +} + + +std::string ListClickHouseDataBaseParameterRequest::getInstanceId() const +{ + return instanceId_; +} + +void ListClickHouseDataBaseParameterRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool ListClickHouseDataBaseParameterRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void ListClickHouseDataBaseParameterRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +std::string ListClickHouseDataBaseParameterRequest::getXLanguage() const +{ + return xLanguage_; +} + +void ListClickHouseDataBaseParameterRequest::setXLanguage(const std::string& value) +{ + xLanguage_ = value; + xLanguageIsSet_ = true; +} + +bool ListClickHouseDataBaseParameterRequest::xLanguageIsSet() const +{ + return xLanguageIsSet_; +} + +void ListClickHouseDataBaseParameterRequest::unsetxLanguage() +{ + xLanguageIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ListClickHouseDataBaseParameterResponse.cpp b/gaussdb/src/v3/model/ListClickHouseDataBaseParameterResponse.cpp new file mode 100644 index 000000000..421df96ec --- /dev/null +++ b/gaussdb/src/v3/model/ListClickHouseDataBaseParameterResponse.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/gaussdb/v3/model/ListClickHouseDataBaseParameterResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ListClickHouseDataBaseParameterResponse::ListClickHouseDataBaseParameterResponse() +{ + dbParametersIsSet_ = false; +} + +ListClickHouseDataBaseParameterResponse::~ListClickHouseDataBaseParameterResponse() = default; + +void ListClickHouseDataBaseParameterResponse::validate() +{ +} + +web::json::value ListClickHouseDataBaseParameterResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(dbParametersIsSet_) { + val[utility::conversions::to_string_t("db_parameters")] = ModelBase::toJson(dbParameters_); + } + + return val; +} +bool ListClickHouseDataBaseParameterResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("db_parameters"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("db_parameters")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDbParameters(refVal); + } + } + return ok; +} + + +std::vector& ListClickHouseDataBaseParameterResponse::getDbParameters() +{ + return dbParameters_; +} + +void ListClickHouseDataBaseParameterResponse::setDbParameters(const std::vector& value) +{ + dbParameters_ = value; + dbParametersIsSet_ = true; +} + +bool ListClickHouseDataBaseParameterResponse::dbParametersIsSet() const +{ + return dbParametersIsSet_; +} + +void ListClickHouseDataBaseParameterResponse::unsetdbParameters() +{ + dbParametersIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ListClickHouseDataBaseReplicationConfigRequest.cpp b/gaussdb/src/v3/model/ListClickHouseDataBaseReplicationConfigRequest.cpp new file mode 100644 index 000000000..3707e4bc5 --- /dev/null +++ b/gaussdb/src/v3/model/ListClickHouseDataBaseReplicationConfigRequest.cpp @@ -0,0 +1,149 @@ + + +#include "huaweicloud/gaussdb/v3/model/ListClickHouseDataBaseReplicationConfigRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ListClickHouseDataBaseReplicationConfigRequest::ListClickHouseDataBaseReplicationConfigRequest() +{ + instanceId_ = ""; + instanceIdIsSet_ = false; + databaseName_ = ""; + databaseNameIsSet_ = false; + xLanguage_ = ""; + xLanguageIsSet_ = false; +} + +ListClickHouseDataBaseReplicationConfigRequest::~ListClickHouseDataBaseReplicationConfigRequest() = default; + +void ListClickHouseDataBaseReplicationConfigRequest::validate() +{ +} + +web::json::value ListClickHouseDataBaseReplicationConfigRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + if(databaseNameIsSet_) { + val[utility::conversions::to_string_t("database_name")] = ModelBase::toJson(databaseName_); + } + if(xLanguageIsSet_) { + val[utility::conversions::to_string_t("X-Language")] = ModelBase::toJson(xLanguage_); + } + + return val; +} +bool ListClickHouseDataBaseReplicationConfigRequest::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("database_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("database_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDatabaseName(refVal); + } + } + 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); + } + } + return ok; +} + + +std::string ListClickHouseDataBaseReplicationConfigRequest::getInstanceId() const +{ + return instanceId_; +} + +void ListClickHouseDataBaseReplicationConfigRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool ListClickHouseDataBaseReplicationConfigRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void ListClickHouseDataBaseReplicationConfigRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +std::string ListClickHouseDataBaseReplicationConfigRequest::getDatabaseName() const +{ + return databaseName_; +} + +void ListClickHouseDataBaseReplicationConfigRequest::setDatabaseName(const std::string& value) +{ + databaseName_ = value; + databaseNameIsSet_ = true; +} + +bool ListClickHouseDataBaseReplicationConfigRequest::databaseNameIsSet() const +{ + return databaseNameIsSet_; +} + +void ListClickHouseDataBaseReplicationConfigRequest::unsetdatabaseName() +{ + databaseNameIsSet_ = false; +} + +std::string ListClickHouseDataBaseReplicationConfigRequest::getXLanguage() const +{ + return xLanguage_; +} + +void ListClickHouseDataBaseReplicationConfigRequest::setXLanguage(const std::string& value) +{ + xLanguage_ = value; + xLanguageIsSet_ = true; +} + +bool ListClickHouseDataBaseReplicationConfigRequest::xLanguageIsSet() const +{ + return xLanguageIsSet_; +} + +void ListClickHouseDataBaseReplicationConfigRequest::unsetxLanguage() +{ + xLanguageIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ListClickHouseDataBaseReplicationConfigResponse.cpp b/gaussdb/src/v3/model/ListClickHouseDataBaseReplicationConfigResponse.cpp new file mode 100644 index 000000000..47d45b33e --- /dev/null +++ b/gaussdb/src/v3/model/ListClickHouseDataBaseReplicationConfigResponse.cpp @@ -0,0 +1,320 @@ + + +#include "huaweicloud/gaussdb/v3/model/ListClickHouseDataBaseReplicationConfigResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ListClickHouseDataBaseReplicationConfigResponse::ListClickHouseDataBaseReplicationConfigResponse() +{ + sourceInstanceId_ = ""; + sourceInstanceIdIsSet_ = false; + sourceNodeId_ = ""; + sourceNodeIdIsSet_ = false; + databaseInfoIsSet_ = false; + tableInfosIsSet_ = false; + tableReplConfigIsSet_ = false; + isTablesChange_ = false; + isTablesChangeIsSet_ = false; + newTableReplConfigIsSet_ = false; + lastErrorOfAlterTable_ = ""; + lastErrorOfAlterTableIsSet_ = false; +} + +ListClickHouseDataBaseReplicationConfigResponse::~ListClickHouseDataBaseReplicationConfigResponse() = default; + +void ListClickHouseDataBaseReplicationConfigResponse::validate() +{ +} + +web::json::value ListClickHouseDataBaseReplicationConfigResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(sourceInstanceIdIsSet_) { + val[utility::conversions::to_string_t("source_instance_id")] = ModelBase::toJson(sourceInstanceId_); + } + if(sourceNodeIdIsSet_) { + val[utility::conversions::to_string_t("source_node_id")] = ModelBase::toJson(sourceNodeId_); + } + if(databaseInfoIsSet_) { + val[utility::conversions::to_string_t("database_info")] = ModelBase::toJson(databaseInfo_); + } + if(tableInfosIsSet_) { + val[utility::conversions::to_string_t("table_infos")] = ModelBase::toJson(tableInfos_); + } + if(tableReplConfigIsSet_) { + val[utility::conversions::to_string_t("table_repl_config")] = ModelBase::toJson(tableReplConfig_); + } + if(isTablesChangeIsSet_) { + val[utility::conversions::to_string_t("is_tables_change")] = ModelBase::toJson(isTablesChange_); + } + if(newTableReplConfigIsSet_) { + val[utility::conversions::to_string_t("new_table_repl_config")] = ModelBase::toJson(newTableReplConfig_); + } + if(lastErrorOfAlterTableIsSet_) { + val[utility::conversions::to_string_t("last_error_of_alter_table")] = ModelBase::toJson(lastErrorOfAlterTable_); + } + + return val; +} +bool ListClickHouseDataBaseReplicationConfigResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("source_instance_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("source_instance_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSourceInstanceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("source_node_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("source_node_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSourceNodeId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("database_info"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("database_info")); + if(!fieldValue.is_null()) + { + ChDatabaseConfigResponse refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDatabaseInfo(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("table_infos"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("table_infos")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTableInfos(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("table_repl_config"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("table_repl_config")); + if(!fieldValue.is_null()) + { + ChDatabaseTableReplConfigInfo refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTableReplConfig(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("is_tables_change"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("is_tables_change")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIsTablesChange(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("new_table_repl_config"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("new_table_repl_config")); + if(!fieldValue.is_null()) + { + ChDatabaseTableReplConfigInfo refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setNewTableReplConfig(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("last_error_of_alter_table"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("last_error_of_alter_table")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLastErrorOfAlterTable(refVal); + } + } + return ok; +} + + +std::string ListClickHouseDataBaseReplicationConfigResponse::getSourceInstanceId() const +{ + return sourceInstanceId_; +} + +void ListClickHouseDataBaseReplicationConfigResponse::setSourceInstanceId(const std::string& value) +{ + sourceInstanceId_ = value; + sourceInstanceIdIsSet_ = true; +} + +bool ListClickHouseDataBaseReplicationConfigResponse::sourceInstanceIdIsSet() const +{ + return sourceInstanceIdIsSet_; +} + +void ListClickHouseDataBaseReplicationConfigResponse::unsetsourceInstanceId() +{ + sourceInstanceIdIsSet_ = false; +} + +std::string ListClickHouseDataBaseReplicationConfigResponse::getSourceNodeId() const +{ + return sourceNodeId_; +} + +void ListClickHouseDataBaseReplicationConfigResponse::setSourceNodeId(const std::string& value) +{ + sourceNodeId_ = value; + sourceNodeIdIsSet_ = true; +} + +bool ListClickHouseDataBaseReplicationConfigResponse::sourceNodeIdIsSet() const +{ + return sourceNodeIdIsSet_; +} + +void ListClickHouseDataBaseReplicationConfigResponse::unsetsourceNodeId() +{ + sourceNodeIdIsSet_ = false; +} + +ChDatabaseConfigResponse ListClickHouseDataBaseReplicationConfigResponse::getDatabaseInfo() const +{ + return databaseInfo_; +} + +void ListClickHouseDataBaseReplicationConfigResponse::setDatabaseInfo(const ChDatabaseConfigResponse& value) +{ + databaseInfo_ = value; + databaseInfoIsSet_ = true; +} + +bool ListClickHouseDataBaseReplicationConfigResponse::databaseInfoIsSet() const +{ + return databaseInfoIsSet_; +} + +void ListClickHouseDataBaseReplicationConfigResponse::unsetdatabaseInfo() +{ + databaseInfoIsSet_ = false; +} + +std::vector& ListClickHouseDataBaseReplicationConfigResponse::getTableInfos() +{ + return tableInfos_; +} + +void ListClickHouseDataBaseReplicationConfigResponse::setTableInfos(const std::vector& value) +{ + tableInfos_ = value; + tableInfosIsSet_ = true; +} + +bool ListClickHouseDataBaseReplicationConfigResponse::tableInfosIsSet() const +{ + return tableInfosIsSet_; +} + +void ListClickHouseDataBaseReplicationConfigResponse::unsettableInfos() +{ + tableInfosIsSet_ = false; +} + +ChDatabaseTableReplConfigInfo ListClickHouseDataBaseReplicationConfigResponse::getTableReplConfig() const +{ + return tableReplConfig_; +} + +void ListClickHouseDataBaseReplicationConfigResponse::setTableReplConfig(const ChDatabaseTableReplConfigInfo& value) +{ + tableReplConfig_ = value; + tableReplConfigIsSet_ = true; +} + +bool ListClickHouseDataBaseReplicationConfigResponse::tableReplConfigIsSet() const +{ + return tableReplConfigIsSet_; +} + +void ListClickHouseDataBaseReplicationConfigResponse::unsettableReplConfig() +{ + tableReplConfigIsSet_ = false; +} + +bool ListClickHouseDataBaseReplicationConfigResponse::isIsTablesChange() const +{ + return isTablesChange_; +} + +void ListClickHouseDataBaseReplicationConfigResponse::setIsTablesChange(bool value) +{ + isTablesChange_ = value; + isTablesChangeIsSet_ = true; +} + +bool ListClickHouseDataBaseReplicationConfigResponse::isTablesChangeIsSet() const +{ + return isTablesChangeIsSet_; +} + +void ListClickHouseDataBaseReplicationConfigResponse::unsetisTablesChange() +{ + isTablesChangeIsSet_ = false; +} + +ChDatabaseTableReplConfigInfo ListClickHouseDataBaseReplicationConfigResponse::getNewTableReplConfig() const +{ + return newTableReplConfig_; +} + +void ListClickHouseDataBaseReplicationConfigResponse::setNewTableReplConfig(const ChDatabaseTableReplConfigInfo& value) +{ + newTableReplConfig_ = value; + newTableReplConfigIsSet_ = true; +} + +bool ListClickHouseDataBaseReplicationConfigResponse::newTableReplConfigIsSet() const +{ + return newTableReplConfigIsSet_; +} + +void ListClickHouseDataBaseReplicationConfigResponse::unsetnewTableReplConfig() +{ + newTableReplConfigIsSet_ = false; +} + +std::string ListClickHouseDataBaseReplicationConfigResponse::getLastErrorOfAlterTable() const +{ + return lastErrorOfAlterTable_; +} + +void ListClickHouseDataBaseReplicationConfigResponse::setLastErrorOfAlterTable(const std::string& value) +{ + lastErrorOfAlterTable_ = value; + lastErrorOfAlterTableIsSet_ = true; +} + +bool ListClickHouseDataBaseReplicationConfigResponse::lastErrorOfAlterTableIsSet() const +{ + return lastErrorOfAlterTableIsSet_; +} + +void ListClickHouseDataBaseReplicationConfigResponse::unsetlastErrorOfAlterTable() +{ + lastErrorOfAlterTableIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ListClickHouseDataBaseReplicationRequest.cpp b/gaussdb/src/v3/model/ListClickHouseDataBaseReplicationRequest.cpp new file mode 100644 index 000000000..a0f0422ef --- /dev/null +++ b/gaussdb/src/v3/model/ListClickHouseDataBaseReplicationRequest.cpp @@ -0,0 +1,184 @@ + + +#include "huaweicloud/gaussdb/v3/model/ListClickHouseDataBaseReplicationRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ListClickHouseDataBaseReplicationRequest::ListClickHouseDataBaseReplicationRequest() +{ + instanceId_ = ""; + instanceIdIsSet_ = false; + limit_ = 0; + limitIsSet_ = false; + offset_ = 0; + offsetIsSet_ = false; + xLanguage_ = ""; + xLanguageIsSet_ = false; +} + +ListClickHouseDataBaseReplicationRequest::~ListClickHouseDataBaseReplicationRequest() = default; + +void ListClickHouseDataBaseReplicationRequest::validate() +{ +} + +web::json::value ListClickHouseDataBaseReplicationRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + if(limitIsSet_) { + val[utility::conversions::to_string_t("limit")] = ModelBase::toJson(limit_); + } + if(offsetIsSet_) { + val[utility::conversions::to_string_t("offset")] = ModelBase::toJson(offset_); + } + if(xLanguageIsSet_) { + val[utility::conversions::to_string_t("X-Language")] = ModelBase::toJson(xLanguage_); + } + + return val; +} +bool ListClickHouseDataBaseReplicationRequest::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("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); + } + } + 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("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); + } + } + return ok; +} + + +std::string ListClickHouseDataBaseReplicationRequest::getInstanceId() const +{ + return instanceId_; +} + +void ListClickHouseDataBaseReplicationRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool ListClickHouseDataBaseReplicationRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void ListClickHouseDataBaseReplicationRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +int32_t ListClickHouseDataBaseReplicationRequest::getLimit() const +{ + return limit_; +} + +void ListClickHouseDataBaseReplicationRequest::setLimit(int32_t value) +{ + limit_ = value; + limitIsSet_ = true; +} + +bool ListClickHouseDataBaseReplicationRequest::limitIsSet() const +{ + return limitIsSet_; +} + +void ListClickHouseDataBaseReplicationRequest::unsetlimit() +{ + limitIsSet_ = false; +} + +int32_t ListClickHouseDataBaseReplicationRequest::getOffset() const +{ + return offset_; +} + +void ListClickHouseDataBaseReplicationRequest::setOffset(int32_t value) +{ + offset_ = value; + offsetIsSet_ = true; +} + +bool ListClickHouseDataBaseReplicationRequest::offsetIsSet() const +{ + return offsetIsSet_; +} + +void ListClickHouseDataBaseReplicationRequest::unsetoffset() +{ + offsetIsSet_ = false; +} + +std::string ListClickHouseDataBaseReplicationRequest::getXLanguage() const +{ + return xLanguage_; +} + +void ListClickHouseDataBaseReplicationRequest::setXLanguage(const std::string& value) +{ + xLanguage_ = value; + xLanguageIsSet_ = true; +} + +bool ListClickHouseDataBaseReplicationRequest::xLanguageIsSet() const +{ + return xLanguageIsSet_; +} + +void ListClickHouseDataBaseReplicationRequest::unsetxLanguage() +{ + xLanguageIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ListClickHouseDataBaseReplicationResponse.cpp b/gaussdb/src/v3/model/ListClickHouseDataBaseReplicationResponse.cpp new file mode 100644 index 000000000..f03b71a3c --- /dev/null +++ b/gaussdb/src/v3/model/ListClickHouseDataBaseReplicationResponse.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/gaussdb/v3/model/ListClickHouseDataBaseReplicationResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ListClickHouseDataBaseReplicationResponse::ListClickHouseDataBaseReplicationResponse() +{ + totalCount_ = 0; + totalCountIsSet_ = false; + replicationsIsSet_ = false; + extText_ = ""; + extTextIsSet_ = false; +} + +ListClickHouseDataBaseReplicationResponse::~ListClickHouseDataBaseReplicationResponse() = default; + +void ListClickHouseDataBaseReplicationResponse::validate() +{ +} + +web::json::value ListClickHouseDataBaseReplicationResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(totalCountIsSet_) { + val[utility::conversions::to_string_t("total_count")] = ModelBase::toJson(totalCount_); + } + if(replicationsIsSet_) { + val[utility::conversions::to_string_t("replications")] = ModelBase::toJson(replications_); + } + if(extTextIsSet_) { + val[utility::conversions::to_string_t("ext_text")] = ModelBase::toJson(extText_); + } + + return val; +} +bool ListClickHouseDataBaseReplicationResponse::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()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTotalCount(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("replications"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("replications")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setReplications(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ext_text"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ext_text")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setExtText(refVal); + } + } + return ok; +} + + +int32_t ListClickHouseDataBaseReplicationResponse::getTotalCount() const +{ + return totalCount_; +} + +void ListClickHouseDataBaseReplicationResponse::setTotalCount(int32_t value) +{ + totalCount_ = value; + totalCountIsSet_ = true; +} + +bool ListClickHouseDataBaseReplicationResponse::totalCountIsSet() const +{ + return totalCountIsSet_; +} + +void ListClickHouseDataBaseReplicationResponse::unsettotalCount() +{ + totalCountIsSet_ = false; +} + +std::vector& ListClickHouseDataBaseReplicationResponse::getReplications() +{ + return replications_; +} + +void ListClickHouseDataBaseReplicationResponse::setReplications(const std::vector& value) +{ + replications_ = value; + replicationsIsSet_ = true; +} + +bool ListClickHouseDataBaseReplicationResponse::replicationsIsSet() const +{ + return replicationsIsSet_; +} + +void ListClickHouseDataBaseReplicationResponse::unsetreplications() +{ + replicationsIsSet_ = false; +} + +std::string ListClickHouseDataBaseReplicationResponse::getExtText() const +{ + return extText_; +} + +void ListClickHouseDataBaseReplicationResponse::setExtText(const std::string& value) +{ + extText_ = value; + extTextIsSet_ = true; +} + +bool ListClickHouseDataBaseReplicationResponse::extTextIsSet() const +{ + return extTextIsSet_; +} + +void ListClickHouseDataBaseReplicationResponse::unsetextText() +{ + extTextIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ListClickHouseDataBaseRequest.cpp b/gaussdb/src/v3/model/ListClickHouseDataBaseRequest.cpp new file mode 100644 index 000000000..ffe5aa1ac --- /dev/null +++ b/gaussdb/src/v3/model/ListClickHouseDataBaseRequest.cpp @@ -0,0 +1,219 @@ + + +#include "huaweicloud/gaussdb/v3/model/ListClickHouseDataBaseRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ListClickHouseDataBaseRequest::ListClickHouseDataBaseRequest() +{ + instanceId_ = ""; + instanceIdIsSet_ = false; + limit_ = 0; + limitIsSet_ = false; + offset_ = 0; + offsetIsSet_ = false; + databaseName_ = ""; + databaseNameIsSet_ = false; + xLanguage_ = ""; + xLanguageIsSet_ = false; +} + +ListClickHouseDataBaseRequest::~ListClickHouseDataBaseRequest() = default; + +void ListClickHouseDataBaseRequest::validate() +{ +} + +web::json::value ListClickHouseDataBaseRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + if(limitIsSet_) { + val[utility::conversions::to_string_t("limit")] = ModelBase::toJson(limit_); + } + if(offsetIsSet_) { + val[utility::conversions::to_string_t("offset")] = ModelBase::toJson(offset_); + } + if(databaseNameIsSet_) { + val[utility::conversions::to_string_t("database_name")] = ModelBase::toJson(databaseName_); + } + if(xLanguageIsSet_) { + val[utility::conversions::to_string_t("X-Language")] = ModelBase::toJson(xLanguage_); + } + + return val; +} +bool ListClickHouseDataBaseRequest::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("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); + } + } + 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("database_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("database_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDatabaseName(refVal); + } + } + 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); + } + } + return ok; +} + + +std::string ListClickHouseDataBaseRequest::getInstanceId() const +{ + return instanceId_; +} + +void ListClickHouseDataBaseRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool ListClickHouseDataBaseRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void ListClickHouseDataBaseRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +int32_t ListClickHouseDataBaseRequest::getLimit() const +{ + return limit_; +} + +void ListClickHouseDataBaseRequest::setLimit(int32_t value) +{ + limit_ = value; + limitIsSet_ = true; +} + +bool ListClickHouseDataBaseRequest::limitIsSet() const +{ + return limitIsSet_; +} + +void ListClickHouseDataBaseRequest::unsetlimit() +{ + limitIsSet_ = false; +} + +int32_t ListClickHouseDataBaseRequest::getOffset() const +{ + return offset_; +} + +void ListClickHouseDataBaseRequest::setOffset(int32_t value) +{ + offset_ = value; + offsetIsSet_ = true; +} + +bool ListClickHouseDataBaseRequest::offsetIsSet() const +{ + return offsetIsSet_; +} + +void ListClickHouseDataBaseRequest::unsetoffset() +{ + offsetIsSet_ = false; +} + +std::string ListClickHouseDataBaseRequest::getDatabaseName() const +{ + return databaseName_; +} + +void ListClickHouseDataBaseRequest::setDatabaseName(const std::string& value) +{ + databaseName_ = value; + databaseNameIsSet_ = true; +} + +bool ListClickHouseDataBaseRequest::databaseNameIsSet() const +{ + return databaseNameIsSet_; +} + +void ListClickHouseDataBaseRequest::unsetdatabaseName() +{ + databaseNameIsSet_ = false; +} + +std::string ListClickHouseDataBaseRequest::getXLanguage() const +{ + return xLanguage_; +} + +void ListClickHouseDataBaseRequest::setXLanguage(const std::string& value) +{ + xLanguage_ = value; + xLanguageIsSet_ = true; +} + +bool ListClickHouseDataBaseRequest::xLanguageIsSet() const +{ + return xLanguageIsSet_; +} + +void ListClickHouseDataBaseRequest::unsetxLanguage() +{ + xLanguageIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ListClickHouseDataBaseResponse.cpp b/gaussdb/src/v3/model/ListClickHouseDataBaseResponse.cpp new file mode 100644 index 000000000..9973e98c8 --- /dev/null +++ b/gaussdb/src/v3/model/ListClickHouseDataBaseResponse.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/gaussdb/v3/model/ListClickHouseDataBaseResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ListClickHouseDataBaseResponse::ListClickHouseDataBaseResponse() +{ + databasesIsSet_ = false; + totalCount_ = 0; + totalCountIsSet_ = false; +} + +ListClickHouseDataBaseResponse::~ListClickHouseDataBaseResponse() = default; + +void ListClickHouseDataBaseResponse::validate() +{ +} + +web::json::value ListClickHouseDataBaseResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(databasesIsSet_) { + val[utility::conversions::to_string_t("databases")] = ModelBase::toJson(databases_); + } + if(totalCountIsSet_) { + val[utility::conversions::to_string_t("total_count")] = ModelBase::toJson(totalCount_); + } + + return val; +} +bool ListClickHouseDataBaseResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("databases"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("databases")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDatabases(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& ListClickHouseDataBaseResponse::getDatabases() +{ + return databases_; +} + +void ListClickHouseDataBaseResponse::setDatabases(const std::vector& value) +{ + databases_ = value; + databasesIsSet_ = true; +} + +bool ListClickHouseDataBaseResponse::databasesIsSet() const +{ + return databasesIsSet_; +} + +void ListClickHouseDataBaseResponse::unsetdatabases() +{ + databasesIsSet_ = false; +} + +int32_t ListClickHouseDataBaseResponse::getTotalCount() const +{ + return totalCount_; +} + +void ListClickHouseDataBaseResponse::setTotalCount(int32_t value) +{ + totalCount_ = value; + totalCountIsSet_ = true; +} + +bool ListClickHouseDataBaseResponse::totalCountIsSet() const +{ + return totalCountIsSet_; +} + +void ListClickHouseDataBaseResponse::unsettotalCount() +{ + totalCountIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ListClickHouseInstanceNodeRequest.cpp b/gaussdb/src/v3/model/ListClickHouseInstanceNodeRequest.cpp new file mode 100644 index 000000000..81531268f --- /dev/null +++ b/gaussdb/src/v3/model/ListClickHouseInstanceNodeRequest.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/gaussdb/v3/model/ListClickHouseInstanceNodeRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ListClickHouseInstanceNodeRequest::ListClickHouseInstanceNodeRequest() +{ + instanceId_ = ""; + instanceIdIsSet_ = false; + xLanguage_ = ""; + xLanguageIsSet_ = false; +} + +ListClickHouseInstanceNodeRequest::~ListClickHouseInstanceNodeRequest() = default; + +void ListClickHouseInstanceNodeRequest::validate() +{ +} + +web::json::value ListClickHouseInstanceNodeRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + if(xLanguageIsSet_) { + val[utility::conversions::to_string_t("X-Language")] = ModelBase::toJson(xLanguage_); + } + + return val; +} +bool ListClickHouseInstanceNodeRequest::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("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); + } + } + return ok; +} + + +std::string ListClickHouseInstanceNodeRequest::getInstanceId() const +{ + return instanceId_; +} + +void ListClickHouseInstanceNodeRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool ListClickHouseInstanceNodeRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void ListClickHouseInstanceNodeRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +std::string ListClickHouseInstanceNodeRequest::getXLanguage() const +{ + return xLanguage_; +} + +void ListClickHouseInstanceNodeRequest::setXLanguage(const std::string& value) +{ + xLanguage_ = value; + xLanguageIsSet_ = true; +} + +bool ListClickHouseInstanceNodeRequest::xLanguageIsSet() const +{ + return xLanguageIsSet_; +} + +void ListClickHouseInstanceNodeRequest::unsetxLanguage() +{ + xLanguageIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ListClickHouseInstanceNodeResponse.cpp b/gaussdb/src/v3/model/ListClickHouseInstanceNodeResponse.cpp new file mode 100644 index 000000000..7256d075c --- /dev/null +++ b/gaussdb/src/v3/model/ListClickHouseInstanceNodeResponse.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/gaussdb/v3/model/ListClickHouseInstanceNodeResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ListClickHouseInstanceNodeResponse::ListClickHouseInstanceNodeResponse() +{ + nodeListIsSet_ = false; +} + +ListClickHouseInstanceNodeResponse::~ListClickHouseInstanceNodeResponse() = default; + +void ListClickHouseInstanceNodeResponse::validate() +{ +} + +web::json::value ListClickHouseInstanceNodeResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(nodeListIsSet_) { + val[utility::conversions::to_string_t("node_list")] = ModelBase::toJson(nodeList_); + } + + return val; +} +bool ListClickHouseInstanceNodeResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("node_list"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("node_list")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setNodeList(refVal); + } + } + return ok; +} + + +std::vector& ListClickHouseInstanceNodeResponse::getNodeList() +{ + return nodeList_; +} + +void ListClickHouseInstanceNodeResponse::setNodeList(const std::vector& value) +{ + nodeList_ = value; + nodeListIsSet_ = true; +} + +bool ListClickHouseInstanceNodeResponse::nodeListIsSet() const +{ + return nodeListIsSet_; +} + +void ListClickHouseInstanceNodeResponse::unsetnodeList() +{ + nodeListIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ListClickHouseInstanceRequest.cpp b/gaussdb/src/v3/model/ListClickHouseInstanceRequest.cpp new file mode 100644 index 000000000..018b06459 --- /dev/null +++ b/gaussdb/src/v3/model/ListClickHouseInstanceRequest.cpp @@ -0,0 +1,149 @@ + + +#include "huaweicloud/gaussdb/v3/model/ListClickHouseInstanceRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ListClickHouseInstanceRequest::ListClickHouseInstanceRequest() +{ + instanceId_ = ""; + instanceIdIsSet_ = false; + clickhouseInstanceId_ = ""; + clickhouseInstanceIdIsSet_ = false; + xLanguage_ = ""; + xLanguageIsSet_ = false; +} + +ListClickHouseInstanceRequest::~ListClickHouseInstanceRequest() = default; + +void ListClickHouseInstanceRequest::validate() +{ +} + +web::json::value ListClickHouseInstanceRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + if(clickhouseInstanceIdIsSet_) { + val[utility::conversions::to_string_t("clickhouse_instance_id")] = ModelBase::toJson(clickhouseInstanceId_); + } + if(xLanguageIsSet_) { + val[utility::conversions::to_string_t("X-Language")] = ModelBase::toJson(xLanguage_); + } + + return val; +} +bool ListClickHouseInstanceRequest::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("clickhouse_instance_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("clickhouse_instance_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setClickhouseInstanceId(refVal); + } + } + 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); + } + } + return ok; +} + + +std::string ListClickHouseInstanceRequest::getInstanceId() const +{ + return instanceId_; +} + +void ListClickHouseInstanceRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool ListClickHouseInstanceRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void ListClickHouseInstanceRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +std::string ListClickHouseInstanceRequest::getClickhouseInstanceId() const +{ + return clickhouseInstanceId_; +} + +void ListClickHouseInstanceRequest::setClickhouseInstanceId(const std::string& value) +{ + clickhouseInstanceId_ = value; + clickhouseInstanceIdIsSet_ = true; +} + +bool ListClickHouseInstanceRequest::clickhouseInstanceIdIsSet() const +{ + return clickhouseInstanceIdIsSet_; +} + +void ListClickHouseInstanceRequest::unsetclickhouseInstanceId() +{ + clickhouseInstanceIdIsSet_ = false; +} + +std::string ListClickHouseInstanceRequest::getXLanguage() const +{ + return xLanguage_; +} + +void ListClickHouseInstanceRequest::setXLanguage(const std::string& value) +{ + xLanguage_ = value; + xLanguageIsSet_ = true; +} + +bool ListClickHouseInstanceRequest::xLanguageIsSet() const +{ + return xLanguageIsSet_; +} + +void ListClickHouseInstanceRequest::unsetxLanguage() +{ + xLanguageIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ListClickHouseInstanceResponse.cpp b/gaussdb/src/v3/model/ListClickHouseInstanceResponse.cpp new file mode 100644 index 000000000..334dd8453 --- /dev/null +++ b/gaussdb/src/v3/model/ListClickHouseInstanceResponse.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/gaussdb/v3/model/ListClickHouseInstanceResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ListClickHouseInstanceResponse::ListClickHouseInstanceResponse() +{ + instanceIsSet_ = false; +} + +ListClickHouseInstanceResponse::~ListClickHouseInstanceResponse() = default; + +void ListClickHouseInstanceResponse::validate() +{ +} + +web::json::value ListClickHouseInstanceResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(instanceIsSet_) { + val[utility::conversions::to_string_t("instance")] = ModelBase::toJson(instance_); + } + + return val; +} +bool ListClickHouseInstanceResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("instance"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("instance")); + if(!fieldValue.is_null()) + { + ChInstancesInfoRsponse_instance refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInstance(refVal); + } + } + return ok; +} + + +ChInstancesInfoRsponse_instance ListClickHouseInstanceResponse::getInstance() const +{ + return instance_; +} + +void ListClickHouseInstanceResponse::setInstance(const ChInstancesInfoRsponse_instance& value) +{ + instance_ = value; + instanceIsSet_ = true; +} + +bool ListClickHouseInstanceResponse::instanceIsSet() const +{ + return instanceIsSet_; +} + +void ListClickHouseInstanceResponse::unsetinstance() +{ + instanceIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/PauseStarRocksDataReplication.cpp b/gaussdb/src/v3/model/PauseStarRocksDataReplication.cpp new file mode 100644 index 000000000..9abd33f46 --- /dev/null +++ b/gaussdb/src/v3/model/PauseStarRocksDataReplication.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/gaussdb/v3/model/PauseStarRocksDataReplication.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +PauseStarRocksDataReplication::PauseStarRocksDataReplication() +{ + taskName_ = ""; + taskNameIsSet_ = false; +} + +PauseStarRocksDataReplication::~PauseStarRocksDataReplication() = default; + +void PauseStarRocksDataReplication::validate() +{ +} + +web::json::value PauseStarRocksDataReplication::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(taskNameIsSet_) { + val[utility::conversions::to_string_t("task_name")] = ModelBase::toJson(taskName_); + } + + return val; +} +bool PauseStarRocksDataReplication::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("task_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("task_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTaskName(refVal); + } + } + return ok; +} + + +std::string PauseStarRocksDataReplication::getTaskName() const +{ + return taskName_; +} + +void PauseStarRocksDataReplication::setTaskName(const std::string& value) +{ + taskName_ = value; + taskNameIsSet_ = true; +} + +bool PauseStarRocksDataReplication::taskNameIsSet() const +{ + return taskNameIsSet_; +} + +void PauseStarRocksDataReplication::unsettaskName() +{ + taskNameIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/PauseStarRocksDataReplicationRequest.cpp b/gaussdb/src/v3/model/PauseStarRocksDataReplicationRequest.cpp new file mode 100644 index 000000000..e7d37422a --- /dev/null +++ b/gaussdb/src/v3/model/PauseStarRocksDataReplicationRequest.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/gaussdb/v3/model/PauseStarRocksDataReplicationRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +PauseStarRocksDataReplicationRequest::PauseStarRocksDataReplicationRequest() +{ + instanceId_ = ""; + instanceIdIsSet_ = false; + xLanguage_ = ""; + xLanguageIsSet_ = false; + bodyIsSet_ = false; +} + +PauseStarRocksDataReplicationRequest::~PauseStarRocksDataReplicationRequest() = default; + +void PauseStarRocksDataReplicationRequest::validate() +{ +} + +web::json::value PauseStarRocksDataReplicationRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + 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 PauseStarRocksDataReplicationRequest::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("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()) + { + PauseStarRocksDataReplication refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string PauseStarRocksDataReplicationRequest::getInstanceId() const +{ + return instanceId_; +} + +void PauseStarRocksDataReplicationRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool PauseStarRocksDataReplicationRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void PauseStarRocksDataReplicationRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +std::string PauseStarRocksDataReplicationRequest::getXLanguage() const +{ + return xLanguage_; +} + +void PauseStarRocksDataReplicationRequest::setXLanguage(const std::string& value) +{ + xLanguage_ = value; + xLanguageIsSet_ = true; +} + +bool PauseStarRocksDataReplicationRequest::xLanguageIsSet() const +{ + return xLanguageIsSet_; +} + +void PauseStarRocksDataReplicationRequest::unsetxLanguage() +{ + xLanguageIsSet_ = false; +} + +PauseStarRocksDataReplication PauseStarRocksDataReplicationRequest::getBody() const +{ + return body_; +} + +void PauseStarRocksDataReplicationRequest::setBody(const PauseStarRocksDataReplication& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool PauseStarRocksDataReplicationRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void PauseStarRocksDataReplicationRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/PauseStarRocksDataReplicationResponse.cpp b/gaussdb/src/v3/model/PauseStarRocksDataReplicationResponse.cpp new file mode 100644 index 000000000..f616f52ea --- /dev/null +++ b/gaussdb/src/v3/model/PauseStarRocksDataReplicationResponse.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/gaussdb/v3/model/PauseStarRocksDataReplicationResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +PauseStarRocksDataReplicationResponse::PauseStarRocksDataReplicationResponse() +{ + jobId_ = ""; + jobIdIsSet_ = false; +} + +PauseStarRocksDataReplicationResponse::~PauseStarRocksDataReplicationResponse() = default; + +void PauseStarRocksDataReplicationResponse::validate() +{ +} + +web::json::value PauseStarRocksDataReplicationResponse::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 PauseStarRocksDataReplicationResponse::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 PauseStarRocksDataReplicationResponse::getJobId() const +{ + return jobId_; +} + +void PauseStarRocksDataReplicationResponse::setJobId(const std::string& value) +{ + jobId_ = value; + jobIdIsSet_ = true; +} + +bool PauseStarRocksDataReplicationResponse::jobIdIsSet() const +{ + return jobIdIsSet_; +} + +void PauseStarRocksDataReplicationResponse::unsetjobId() +{ + jobIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/RebootClickHouseInstanceRequest.cpp b/gaussdb/src/v3/model/RebootClickHouseInstanceRequest.cpp new file mode 100644 index 000000000..caae2399e --- /dev/null +++ b/gaussdb/src/v3/model/RebootClickHouseInstanceRequest.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/gaussdb/v3/model/RebootClickHouseInstanceRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +RebootClickHouseInstanceRequest::RebootClickHouseInstanceRequest() +{ + instanceId_ = ""; + instanceIdIsSet_ = false; + xLanguage_ = ""; + xLanguageIsSet_ = false; +} + +RebootClickHouseInstanceRequest::~RebootClickHouseInstanceRequest() = default; + +void RebootClickHouseInstanceRequest::validate() +{ +} + +web::json::value RebootClickHouseInstanceRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + if(xLanguageIsSet_) { + val[utility::conversions::to_string_t("X-Language")] = ModelBase::toJson(xLanguage_); + } + + return val; +} +bool RebootClickHouseInstanceRequest::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("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); + } + } + return ok; +} + + +std::string RebootClickHouseInstanceRequest::getInstanceId() const +{ + return instanceId_; +} + +void RebootClickHouseInstanceRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool RebootClickHouseInstanceRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void RebootClickHouseInstanceRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +std::string RebootClickHouseInstanceRequest::getXLanguage() const +{ + return xLanguage_; +} + +void RebootClickHouseInstanceRequest::setXLanguage(const std::string& value) +{ + xLanguage_ = value; + xLanguageIsSet_ = true; +} + +bool RebootClickHouseInstanceRequest::xLanguageIsSet() const +{ + return xLanguageIsSet_; +} + +void RebootClickHouseInstanceRequest::unsetxLanguage() +{ + xLanguageIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/RebootClickHouseInstanceResponse.cpp b/gaussdb/src/v3/model/RebootClickHouseInstanceResponse.cpp new file mode 100644 index 000000000..884f17d18 --- /dev/null +++ b/gaussdb/src/v3/model/RebootClickHouseInstanceResponse.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/gaussdb/v3/model/RebootClickHouseInstanceResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +RebootClickHouseInstanceResponse::RebootClickHouseInstanceResponse() +{ + jobId_ = ""; + jobIdIsSet_ = false; +} + +RebootClickHouseInstanceResponse::~RebootClickHouseInstanceResponse() = default; + +void RebootClickHouseInstanceResponse::validate() +{ +} + +web::json::value RebootClickHouseInstanceResponse::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 RebootClickHouseInstanceResponse::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 RebootClickHouseInstanceResponse::getJobId() const +{ + return jobId_; +} + +void RebootClickHouseInstanceResponse::setJobId(const std::string& value) +{ + jobId_ = value; + jobIdIsSet_ = true; +} + +bool RebootClickHouseInstanceResponse::jobIdIsSet() const +{ + return jobIdIsSet_; +} + +void RebootClickHouseInstanceResponse::unsetjobId() +{ + jobIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ResizeClickHouseFlavorRequest.cpp b/gaussdb/src/v3/model/ResizeClickHouseFlavorRequest.cpp new file mode 100644 index 000000000..d0ad1e23c --- /dev/null +++ b/gaussdb/src/v3/model/ResizeClickHouseFlavorRequest.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/gaussdb/v3/model/ResizeClickHouseFlavorRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ResizeClickHouseFlavorRequest::ResizeClickHouseFlavorRequest() +{ + instanceId_ = ""; + instanceIdIsSet_ = false; + xLanguage_ = ""; + xLanguageIsSet_ = false; + bodyIsSet_ = false; +} + +ResizeClickHouseFlavorRequest::~ResizeClickHouseFlavorRequest() = default; + +void ResizeClickHouseFlavorRequest::validate() +{ +} + +web::json::value ResizeClickHouseFlavorRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + 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 ResizeClickHouseFlavorRequest::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("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()) + { + ClickHouseResizeFlavorRequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string ResizeClickHouseFlavorRequest::getInstanceId() const +{ + return instanceId_; +} + +void ResizeClickHouseFlavorRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool ResizeClickHouseFlavorRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void ResizeClickHouseFlavorRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +std::string ResizeClickHouseFlavorRequest::getXLanguage() const +{ + return xLanguage_; +} + +void ResizeClickHouseFlavorRequest::setXLanguage(const std::string& value) +{ + xLanguage_ = value; + xLanguageIsSet_ = true; +} + +bool ResizeClickHouseFlavorRequest::xLanguageIsSet() const +{ + return xLanguageIsSet_; +} + +void ResizeClickHouseFlavorRequest::unsetxLanguage() +{ + xLanguageIsSet_ = false; +} + +ClickHouseResizeFlavorRequestBody ResizeClickHouseFlavorRequest::getBody() const +{ + return body_; +} + +void ResizeClickHouseFlavorRequest::setBody(const ClickHouseResizeFlavorRequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool ResizeClickHouseFlavorRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void ResizeClickHouseFlavorRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ResizeClickHouseFlavorResponse.cpp b/gaussdb/src/v3/model/ResizeClickHouseFlavorResponse.cpp new file mode 100644 index 000000000..7ba8b6d89 --- /dev/null +++ b/gaussdb/src/v3/model/ResizeClickHouseFlavorResponse.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/gaussdb/v3/model/ResizeClickHouseFlavorResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ResizeClickHouseFlavorResponse::ResizeClickHouseFlavorResponse() +{ + result_ = ""; + resultIsSet_ = false; +} + +ResizeClickHouseFlavorResponse::~ResizeClickHouseFlavorResponse() = default; + +void ResizeClickHouseFlavorResponse::validate() +{ +} + +web::json::value ResizeClickHouseFlavorResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(resultIsSet_) { + val[utility::conversions::to_string_t("result")] = ModelBase::toJson(result_); + } + + return val; +} +bool ResizeClickHouseFlavorResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("result"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("result")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setResult(refVal); + } + } + return ok; +} + + +std::string ResizeClickHouseFlavorResponse::getResult() const +{ + return result_; +} + +void ResizeClickHouseFlavorResponse::setResult(const std::string& value) +{ + result_ = value; + resultIsSet_ = true; +} + +bool ResizeClickHouseFlavorResponse::resultIsSet() const +{ + return resultIsSet_; +} + +void ResizeClickHouseFlavorResponse::unsetresult() +{ + resultIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ResizeClickHouseInstanceRequest.cpp b/gaussdb/src/v3/model/ResizeClickHouseInstanceRequest.cpp new file mode 100644 index 000000000..09b98cae4 --- /dev/null +++ b/gaussdb/src/v3/model/ResizeClickHouseInstanceRequest.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/gaussdb/v3/model/ResizeClickHouseInstanceRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ResizeClickHouseInstanceRequest::ResizeClickHouseInstanceRequest() +{ + instanceId_ = ""; + instanceIdIsSet_ = false; + xLanguage_ = ""; + xLanguageIsSet_ = false; + bodyIsSet_ = false; +} + +ResizeClickHouseInstanceRequest::~ResizeClickHouseInstanceRequest() = default; + +void ResizeClickHouseInstanceRequest::validate() +{ +} + +web::json::value ResizeClickHouseInstanceRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + 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 ResizeClickHouseInstanceRequest::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("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()) + { + ChEnlargeVolumeRequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string ResizeClickHouseInstanceRequest::getInstanceId() const +{ + return instanceId_; +} + +void ResizeClickHouseInstanceRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool ResizeClickHouseInstanceRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void ResizeClickHouseInstanceRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +std::string ResizeClickHouseInstanceRequest::getXLanguage() const +{ + return xLanguage_; +} + +void ResizeClickHouseInstanceRequest::setXLanguage(const std::string& value) +{ + xLanguage_ = value; + xLanguageIsSet_ = true; +} + +bool ResizeClickHouseInstanceRequest::xLanguageIsSet() const +{ + return xLanguageIsSet_; +} + +void ResizeClickHouseInstanceRequest::unsetxLanguage() +{ + xLanguageIsSet_ = false; +} + +ChEnlargeVolumeRequestBody ResizeClickHouseInstanceRequest::getBody() const +{ + return body_; +} + +void ResizeClickHouseInstanceRequest::setBody(const ChEnlargeVolumeRequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool ResizeClickHouseInstanceRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void ResizeClickHouseInstanceRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ResizeClickHouseInstanceResponse.cpp b/gaussdb/src/v3/model/ResizeClickHouseInstanceResponse.cpp new file mode 100644 index 000000000..63460cdd3 --- /dev/null +++ b/gaussdb/src/v3/model/ResizeClickHouseInstanceResponse.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/gaussdb/v3/model/ResizeClickHouseInstanceResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ResizeClickHouseInstanceResponse::ResizeClickHouseInstanceResponse() +{ + jobId_ = ""; + jobIdIsSet_ = false; +} + +ResizeClickHouseInstanceResponse::~ResizeClickHouseInstanceResponse() = default; + +void ResizeClickHouseInstanceResponse::validate() +{ +} + +web::json::value ResizeClickHouseInstanceResponse::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 ResizeClickHouseInstanceResponse::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 ResizeClickHouseInstanceResponse::getJobId() const +{ + return jobId_; +} + +void ResizeClickHouseInstanceResponse::setJobId(const std::string& value) +{ + jobId_ = value; + jobIdIsSet_ = true; +} + +bool ResizeClickHouseInstanceResponse::jobIdIsSet() const +{ + return jobIdIsSet_; +} + +void ResizeClickHouseInstanceResponse::unsetjobId() +{ + jobIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ResumeStarRocksDataReplication.cpp b/gaussdb/src/v3/model/ResumeStarRocksDataReplication.cpp new file mode 100644 index 000000000..495ba8ed6 --- /dev/null +++ b/gaussdb/src/v3/model/ResumeStarRocksDataReplication.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/gaussdb/v3/model/ResumeStarRocksDataReplication.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ResumeStarRocksDataReplication::ResumeStarRocksDataReplication() +{ + taskName_ = ""; + taskNameIsSet_ = false; +} + +ResumeStarRocksDataReplication::~ResumeStarRocksDataReplication() = default; + +void ResumeStarRocksDataReplication::validate() +{ +} + +web::json::value ResumeStarRocksDataReplication::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(taskNameIsSet_) { + val[utility::conversions::to_string_t("task_name")] = ModelBase::toJson(taskName_); + } + + return val; +} +bool ResumeStarRocksDataReplication::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("task_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("task_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTaskName(refVal); + } + } + return ok; +} + + +std::string ResumeStarRocksDataReplication::getTaskName() const +{ + return taskName_; +} + +void ResumeStarRocksDataReplication::setTaskName(const std::string& value) +{ + taskName_ = value; + taskNameIsSet_ = true; +} + +bool ResumeStarRocksDataReplication::taskNameIsSet() const +{ + return taskNameIsSet_; +} + +void ResumeStarRocksDataReplication::unsettaskName() +{ + taskNameIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ResumeStarRocksDataReplicationRequest.cpp b/gaussdb/src/v3/model/ResumeStarRocksDataReplicationRequest.cpp new file mode 100644 index 000000000..2e9fefb98 --- /dev/null +++ b/gaussdb/src/v3/model/ResumeStarRocksDataReplicationRequest.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/gaussdb/v3/model/ResumeStarRocksDataReplicationRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ResumeStarRocksDataReplicationRequest::ResumeStarRocksDataReplicationRequest() +{ + instanceId_ = ""; + instanceIdIsSet_ = false; + xLanguage_ = ""; + xLanguageIsSet_ = false; + bodyIsSet_ = false; +} + +ResumeStarRocksDataReplicationRequest::~ResumeStarRocksDataReplicationRequest() = default; + +void ResumeStarRocksDataReplicationRequest::validate() +{ +} + +web::json::value ResumeStarRocksDataReplicationRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + 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 ResumeStarRocksDataReplicationRequest::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("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()) + { + ResumeStarRocksDataReplication refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string ResumeStarRocksDataReplicationRequest::getInstanceId() const +{ + return instanceId_; +} + +void ResumeStarRocksDataReplicationRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool ResumeStarRocksDataReplicationRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void ResumeStarRocksDataReplicationRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +std::string ResumeStarRocksDataReplicationRequest::getXLanguage() const +{ + return xLanguage_; +} + +void ResumeStarRocksDataReplicationRequest::setXLanguage(const std::string& value) +{ + xLanguage_ = value; + xLanguageIsSet_ = true; +} + +bool ResumeStarRocksDataReplicationRequest::xLanguageIsSet() const +{ + return xLanguageIsSet_; +} + +void ResumeStarRocksDataReplicationRequest::unsetxLanguage() +{ + xLanguageIsSet_ = false; +} + +ResumeStarRocksDataReplication ResumeStarRocksDataReplicationRequest::getBody() const +{ + return body_; +} + +void ResumeStarRocksDataReplicationRequest::setBody(const ResumeStarRocksDataReplication& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool ResumeStarRocksDataReplicationRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void ResumeStarRocksDataReplicationRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ResumeStarRocksDataReplicationResponse.cpp b/gaussdb/src/v3/model/ResumeStarRocksDataReplicationResponse.cpp new file mode 100644 index 000000000..968053c26 --- /dev/null +++ b/gaussdb/src/v3/model/ResumeStarRocksDataReplicationResponse.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/gaussdb/v3/model/ResumeStarRocksDataReplicationResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ResumeStarRocksDataReplicationResponse::ResumeStarRocksDataReplicationResponse() +{ + jobId_ = ""; + jobIdIsSet_ = false; +} + +ResumeStarRocksDataReplicationResponse::~ResumeStarRocksDataReplicationResponse() = default; + +void ResumeStarRocksDataReplicationResponse::validate() +{ +} + +web::json::value ResumeStarRocksDataReplicationResponse::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 ResumeStarRocksDataReplicationResponse::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 ResumeStarRocksDataReplicationResponse::getJobId() const +{ + return jobId_; +} + +void ResumeStarRocksDataReplicationResponse::setJobId(const std::string& value) +{ + jobId_ = value; + jobIdIsSet_ = true; +} + +bool ResumeStarRocksDataReplicationResponse::jobIdIsSet() const +{ + return jobIdIsSet_; +} + +void ResumeStarRocksDataReplicationResponse::unsetjobId() +{ + jobIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ShowClickHouseDatabaseUserRequest.cpp b/gaussdb/src/v3/model/ShowClickHouseDatabaseUserRequest.cpp new file mode 100644 index 000000000..2fc847b4e --- /dev/null +++ b/gaussdb/src/v3/model/ShowClickHouseDatabaseUserRequest.cpp @@ -0,0 +1,219 @@ + + +#include "huaweicloud/gaussdb/v3/model/ShowClickHouseDatabaseUserRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ShowClickHouseDatabaseUserRequest::ShowClickHouseDatabaseUserRequest() +{ + instanceId_ = ""; + instanceIdIsSet_ = false; + xLanguage_ = ""; + xLanguageIsSet_ = false; + limit_ = 0; + limitIsSet_ = false; + offset_ = 0; + offsetIsSet_ = false; + userName_ = ""; + userNameIsSet_ = false; +} + +ShowClickHouseDatabaseUserRequest::~ShowClickHouseDatabaseUserRequest() = default; + +void ShowClickHouseDatabaseUserRequest::validate() +{ +} + +web::json::value ShowClickHouseDatabaseUserRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + if(xLanguageIsSet_) { + val[utility::conversions::to_string_t("X-Language")] = ModelBase::toJson(xLanguage_); + } + if(limitIsSet_) { + val[utility::conversions::to_string_t("limit")] = ModelBase::toJson(limit_); + } + if(offsetIsSet_) { + val[utility::conversions::to_string_t("offset")] = ModelBase::toJson(offset_); + } + if(userNameIsSet_) { + val[utility::conversions::to_string_t("user_name")] = ModelBase::toJson(userName_); + } + + return val; +} +bool ShowClickHouseDatabaseUserRequest::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("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("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); + } + } + 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("user_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("user_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setUserName(refVal); + } + } + return ok; +} + + +std::string ShowClickHouseDatabaseUserRequest::getInstanceId() const +{ + return instanceId_; +} + +void ShowClickHouseDatabaseUserRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool ShowClickHouseDatabaseUserRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void ShowClickHouseDatabaseUserRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +std::string ShowClickHouseDatabaseUserRequest::getXLanguage() const +{ + return xLanguage_; +} + +void ShowClickHouseDatabaseUserRequest::setXLanguage(const std::string& value) +{ + xLanguage_ = value; + xLanguageIsSet_ = true; +} + +bool ShowClickHouseDatabaseUserRequest::xLanguageIsSet() const +{ + return xLanguageIsSet_; +} + +void ShowClickHouseDatabaseUserRequest::unsetxLanguage() +{ + xLanguageIsSet_ = false; +} + +int32_t ShowClickHouseDatabaseUserRequest::getLimit() const +{ + return limit_; +} + +void ShowClickHouseDatabaseUserRequest::setLimit(int32_t value) +{ + limit_ = value; + limitIsSet_ = true; +} + +bool ShowClickHouseDatabaseUserRequest::limitIsSet() const +{ + return limitIsSet_; +} + +void ShowClickHouseDatabaseUserRequest::unsetlimit() +{ + limitIsSet_ = false; +} + +int32_t ShowClickHouseDatabaseUserRequest::getOffset() const +{ + return offset_; +} + +void ShowClickHouseDatabaseUserRequest::setOffset(int32_t value) +{ + offset_ = value; + offsetIsSet_ = true; +} + +bool ShowClickHouseDatabaseUserRequest::offsetIsSet() const +{ + return offsetIsSet_; +} + +void ShowClickHouseDatabaseUserRequest::unsetoffset() +{ + offsetIsSet_ = false; +} + +std::string ShowClickHouseDatabaseUserRequest::getUserName() const +{ + return userName_; +} + +void ShowClickHouseDatabaseUserRequest::setUserName(const std::string& value) +{ + userName_ = value; + userNameIsSet_ = true; +} + +bool ShowClickHouseDatabaseUserRequest::userNameIsSet() const +{ + return userNameIsSet_; +} + +void ShowClickHouseDatabaseUserRequest::unsetuserName() +{ + userNameIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ShowClickHouseDatabaseUserResponse.cpp b/gaussdb/src/v3/model/ShowClickHouseDatabaseUserResponse.cpp new file mode 100644 index 000000000..dfbef4ba4 --- /dev/null +++ b/gaussdb/src/v3/model/ShowClickHouseDatabaseUserResponse.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/gaussdb/v3/model/ShowClickHouseDatabaseUserResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ShowClickHouseDatabaseUserResponse::ShowClickHouseDatabaseUserResponse() +{ + userDetailsIsSet_ = false; + totalCount_ = 0; + totalCountIsSet_ = false; +} + +ShowClickHouseDatabaseUserResponse::~ShowClickHouseDatabaseUserResponse() = default; + +void ShowClickHouseDatabaseUserResponse::validate() +{ +} + +web::json::value ShowClickHouseDatabaseUserResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(userDetailsIsSet_) { + val[utility::conversions::to_string_t("user_details")] = ModelBase::toJson(userDetails_); + } + if(totalCountIsSet_) { + val[utility::conversions::to_string_t("total_count")] = ModelBase::toJson(totalCount_); + } + + return val; +} +bool ShowClickHouseDatabaseUserResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("user_details"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("user_details")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setUserDetails(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& ShowClickHouseDatabaseUserResponse::getUserDetails() +{ + return userDetails_; +} + +void ShowClickHouseDatabaseUserResponse::setUserDetails(const std::vector& value) +{ + userDetails_ = value; + userDetailsIsSet_ = true; +} + +bool ShowClickHouseDatabaseUserResponse::userDetailsIsSet() const +{ + return userDetailsIsSet_; +} + +void ShowClickHouseDatabaseUserResponse::unsetuserDetails() +{ + userDetailsIsSet_ = false; +} + +int32_t ShowClickHouseDatabaseUserResponse::getTotalCount() const +{ + return totalCount_; +} + +void ShowClickHouseDatabaseUserResponse::setTotalCount(int32_t value) +{ + totalCount_ = value; + totalCountIsSet_ = true; +} + +bool ShowClickHouseDatabaseUserResponse::totalCountIsSet() const +{ + return totalCountIsSet_; +} + +void ShowClickHouseDatabaseUserResponse::unsettotalCount() +{ + totalCountIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ShowClickHouseDatabaseUsers_user_details.cpp b/gaussdb/src/v3/model/ShowClickHouseDatabaseUsers_user_details.cpp new file mode 100644 index 000000000..60c50f061 --- /dev/null +++ b/gaussdb/src/v3/model/ShowClickHouseDatabaseUsers_user_details.cpp @@ -0,0 +1,183 @@ + + +#include "huaweicloud/gaussdb/v3/model/ShowClickHouseDatabaseUsers_user_details.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ShowClickHouseDatabaseUsers_user_details::ShowClickHouseDatabaseUsers_user_details() +{ + userName_ = ""; + userNameIsSet_ = false; + databasesIsSet_ = false; + dml_ = 0; + dmlIsSet_ = false; + ddl_ = 0; + ddlIsSet_ = false; +} + +ShowClickHouseDatabaseUsers_user_details::~ShowClickHouseDatabaseUsers_user_details() = default; + +void ShowClickHouseDatabaseUsers_user_details::validate() +{ +} + +web::json::value ShowClickHouseDatabaseUsers_user_details::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(userNameIsSet_) { + val[utility::conversions::to_string_t("user_name")] = ModelBase::toJson(userName_); + } + if(databasesIsSet_) { + val[utility::conversions::to_string_t("databases")] = ModelBase::toJson(databases_); + } + if(dmlIsSet_) { + val[utility::conversions::to_string_t("dml")] = ModelBase::toJson(dml_); + } + if(ddlIsSet_) { + val[utility::conversions::to_string_t("ddl")] = ModelBase::toJson(ddl_); + } + + return val; +} +bool ShowClickHouseDatabaseUsers_user_details::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("user_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("user_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setUserName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("databases"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("databases")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDatabases(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("dml"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("dml")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDml(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ddl"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ddl")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDdl(refVal); + } + } + return ok; +} + + +std::string ShowClickHouseDatabaseUsers_user_details::getUserName() const +{ + return userName_; +} + +void ShowClickHouseDatabaseUsers_user_details::setUserName(const std::string& value) +{ + userName_ = value; + userNameIsSet_ = true; +} + +bool ShowClickHouseDatabaseUsers_user_details::userNameIsSet() const +{ + return userNameIsSet_; +} + +void ShowClickHouseDatabaseUsers_user_details::unsetuserName() +{ + userNameIsSet_ = false; +} + +std::vector& ShowClickHouseDatabaseUsers_user_details::getDatabases() +{ + return databases_; +} + +void ShowClickHouseDatabaseUsers_user_details::setDatabases(const std::vector& value) +{ + databases_ = value; + databasesIsSet_ = true; +} + +bool ShowClickHouseDatabaseUsers_user_details::databasesIsSet() const +{ + return databasesIsSet_; +} + +void ShowClickHouseDatabaseUsers_user_details::unsetdatabases() +{ + databasesIsSet_ = false; +} + +int32_t ShowClickHouseDatabaseUsers_user_details::getDml() const +{ + return dml_; +} + +void ShowClickHouseDatabaseUsers_user_details::setDml(int32_t value) +{ + dml_ = value; + dmlIsSet_ = true; +} + +bool ShowClickHouseDatabaseUsers_user_details::dmlIsSet() const +{ + return dmlIsSet_; +} + +void ShowClickHouseDatabaseUsers_user_details::unsetdml() +{ + dmlIsSet_ = false; +} + +int32_t ShowClickHouseDatabaseUsers_user_details::getDdl() const +{ + return ddl_; +} + +void ShowClickHouseDatabaseUsers_user_details::setDdl(int32_t value) +{ + ddl_ = value; + ddlIsSet_ = true; +} + +bool ShowClickHouseDatabaseUsers_user_details::ddlIsSet() const +{ + return ddlIsSet_; +} + +void ShowClickHouseDatabaseUsers_user_details::unsetddl() +{ + ddlIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ShowClickHouseLtsConfigRequest.cpp b/gaussdb/src/v3/model/ShowClickHouseLtsConfigRequest.cpp new file mode 100644 index 000000000..b5096bba6 --- /dev/null +++ b/gaussdb/src/v3/model/ShowClickHouseLtsConfigRequest.cpp @@ -0,0 +1,254 @@ + + +#include "huaweicloud/gaussdb/v3/model/ShowClickHouseLtsConfigRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ShowClickHouseLtsConfigRequest::ShowClickHouseLtsConfigRequest() +{ + xLanguage_ = ""; + xLanguageIsSet_ = false; + instanceId_ = ""; + instanceIdIsSet_ = false; + enterpriseProjectId_ = ""; + enterpriseProjectIdIsSet_ = false; + instanceName_ = ""; + instanceNameIsSet_ = false; + limit_ = 0; + limitIsSet_ = false; + offset_ = 0; + offsetIsSet_ = false; +} + +ShowClickHouseLtsConfigRequest::~ShowClickHouseLtsConfigRequest() = default; + +void ShowClickHouseLtsConfigRequest::validate() +{ +} + +web::json::value ShowClickHouseLtsConfigRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(xLanguageIsSet_) { + val[utility::conversions::to_string_t("X-Language")] = ModelBase::toJson(xLanguage_); + } + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + if(enterpriseProjectIdIsSet_) { + val[utility::conversions::to_string_t("enterprise_project_id")] = ModelBase::toJson(enterpriseProjectId_); + } + if(instanceNameIsSet_) { + val[utility::conversions::to_string_t("instance_name")] = ModelBase::toJson(instanceName_); + } + if(limitIsSet_) { + val[utility::conversions::to_string_t("limit")] = ModelBase::toJson(limit_); + } + if(offsetIsSet_) { + val[utility::conversions::to_string_t("offset")] = ModelBase::toJson(offset_); + } + + return val; +} +bool ShowClickHouseLtsConfigRequest::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("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("enterprise_project_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("enterprise_project_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnterpriseProjectId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("instance_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("instance_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInstanceName(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); + } + } + 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); + } + } + return ok; +} + + +std::string ShowClickHouseLtsConfigRequest::getXLanguage() const +{ + return xLanguage_; +} + +void ShowClickHouseLtsConfigRequest::setXLanguage(const std::string& value) +{ + xLanguage_ = value; + xLanguageIsSet_ = true; +} + +bool ShowClickHouseLtsConfigRequest::xLanguageIsSet() const +{ + return xLanguageIsSet_; +} + +void ShowClickHouseLtsConfigRequest::unsetxLanguage() +{ + xLanguageIsSet_ = false; +} + +std::string ShowClickHouseLtsConfigRequest::getInstanceId() const +{ + return instanceId_; +} + +void ShowClickHouseLtsConfigRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool ShowClickHouseLtsConfigRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void ShowClickHouseLtsConfigRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +std::string ShowClickHouseLtsConfigRequest::getEnterpriseProjectId() const +{ + return enterpriseProjectId_; +} + +void ShowClickHouseLtsConfigRequest::setEnterpriseProjectId(const std::string& value) +{ + enterpriseProjectId_ = value; + enterpriseProjectIdIsSet_ = true; +} + +bool ShowClickHouseLtsConfigRequest::enterpriseProjectIdIsSet() const +{ + return enterpriseProjectIdIsSet_; +} + +void ShowClickHouseLtsConfigRequest::unsetenterpriseProjectId() +{ + enterpriseProjectIdIsSet_ = false; +} + +std::string ShowClickHouseLtsConfigRequest::getInstanceName() const +{ + return instanceName_; +} + +void ShowClickHouseLtsConfigRequest::setInstanceName(const std::string& value) +{ + instanceName_ = value; + instanceNameIsSet_ = true; +} + +bool ShowClickHouseLtsConfigRequest::instanceNameIsSet() const +{ + return instanceNameIsSet_; +} + +void ShowClickHouseLtsConfigRequest::unsetinstanceName() +{ + instanceNameIsSet_ = false; +} + +int32_t ShowClickHouseLtsConfigRequest::getLimit() const +{ + return limit_; +} + +void ShowClickHouseLtsConfigRequest::setLimit(int32_t value) +{ + limit_ = value; + limitIsSet_ = true; +} + +bool ShowClickHouseLtsConfigRequest::limitIsSet() const +{ + return limitIsSet_; +} + +void ShowClickHouseLtsConfigRequest::unsetlimit() +{ + limitIsSet_ = false; +} + +int32_t ShowClickHouseLtsConfigRequest::getOffset() const +{ + return offset_; +} + +void ShowClickHouseLtsConfigRequest::setOffset(int32_t value) +{ + offset_ = value; + offsetIsSet_ = true; +} + +bool ShowClickHouseLtsConfigRequest::offsetIsSet() const +{ + return offsetIsSet_; +} + +void ShowClickHouseLtsConfigRequest::unsetoffset() +{ + offsetIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ShowClickHouseLtsConfigResponse.cpp b/gaussdb/src/v3/model/ShowClickHouseLtsConfigResponse.cpp new file mode 100644 index 000000000..9fe68570d --- /dev/null +++ b/gaussdb/src/v3/model/ShowClickHouseLtsConfigResponse.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/gaussdb/v3/model/ShowClickHouseLtsConfigResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ShowClickHouseLtsConfigResponse::ShowClickHouseLtsConfigResponse() +{ + instanceLtsConfigsIsSet_ = false; + totalCount_ = 0; + totalCountIsSet_ = false; +} + +ShowClickHouseLtsConfigResponse::~ShowClickHouseLtsConfigResponse() = default; + +void ShowClickHouseLtsConfigResponse::validate() +{ +} + +web::json::value ShowClickHouseLtsConfigResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(instanceLtsConfigsIsSet_) { + val[utility::conversions::to_string_t("instance_lts_configs")] = ModelBase::toJson(instanceLtsConfigs_); + } + if(totalCountIsSet_) { + val[utility::conversions::to_string_t("total_count")] = ModelBase::toJson(totalCount_); + } + + return val; +} +bool ShowClickHouseLtsConfigResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("instance_lts_configs"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("instance_lts_configs")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInstanceLtsConfigs(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& ShowClickHouseLtsConfigResponse::getInstanceLtsConfigs() +{ + return instanceLtsConfigs_; +} + +void ShowClickHouseLtsConfigResponse::setInstanceLtsConfigs(const std::vector& value) +{ + instanceLtsConfigs_ = value; + instanceLtsConfigsIsSet_ = true; +} + +bool ShowClickHouseLtsConfigResponse::instanceLtsConfigsIsSet() const +{ + return instanceLtsConfigsIsSet_; +} + +void ShowClickHouseLtsConfigResponse::unsetinstanceLtsConfigs() +{ + instanceLtsConfigsIsSet_ = false; +} + +int32_t ShowClickHouseLtsConfigResponse::getTotalCount() const +{ + return totalCount_; +} + +void ShowClickHouseLtsConfigResponse::setTotalCount(int32_t value) +{ + totalCount_ = value; + totalCountIsSet_ = true; +} + +bool ShowClickHouseLtsConfigResponse::totalCountIsSet() const +{ + return totalCountIsSet_; +} + +void ShowClickHouseLtsConfigResponse::unsettotalCount() +{ + totalCountIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ShowClickHouseSlowLogDetailRequest.cpp b/gaussdb/src/v3/model/ShowClickHouseSlowLogDetailRequest.cpp new file mode 100644 index 000000000..c30b006c6 --- /dev/null +++ b/gaussdb/src/v3/model/ShowClickHouseSlowLogDetailRequest.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/gaussdb/v3/model/ShowClickHouseSlowLogDetailRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ShowClickHouseSlowLogDetailRequest::ShowClickHouseSlowLogDetailRequest() +{ + instanceId_ = ""; + instanceIdIsSet_ = false; + xLanguage_ = ""; + xLanguageIsSet_ = false; + bodyIsSet_ = false; +} + +ShowClickHouseSlowLogDetailRequest::~ShowClickHouseSlowLogDetailRequest() = default; + +void ShowClickHouseSlowLogDetailRequest::validate() +{ +} + +web::json::value ShowClickHouseSlowLogDetailRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + 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 ShowClickHouseSlowLogDetailRequest::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("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()) + { + ChSlowLogQueryRequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string ShowClickHouseSlowLogDetailRequest::getInstanceId() const +{ + return instanceId_; +} + +void ShowClickHouseSlowLogDetailRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool ShowClickHouseSlowLogDetailRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void ShowClickHouseSlowLogDetailRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +std::string ShowClickHouseSlowLogDetailRequest::getXLanguage() const +{ + return xLanguage_; +} + +void ShowClickHouseSlowLogDetailRequest::setXLanguage(const std::string& value) +{ + xLanguage_ = value; + xLanguageIsSet_ = true; +} + +bool ShowClickHouseSlowLogDetailRequest::xLanguageIsSet() const +{ + return xLanguageIsSet_; +} + +void ShowClickHouseSlowLogDetailRequest::unsetxLanguage() +{ + xLanguageIsSet_ = false; +} + +ChSlowLogQueryRequestBody ShowClickHouseSlowLogDetailRequest::getBody() const +{ + return body_; +} + +void ShowClickHouseSlowLogDetailRequest::setBody(const ChSlowLogQueryRequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool ShowClickHouseSlowLogDetailRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void ShowClickHouseSlowLogDetailRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ShowClickHouseSlowLogDetailResponse.cpp b/gaussdb/src/v3/model/ShowClickHouseSlowLogDetailResponse.cpp new file mode 100644 index 000000000..8dcb67132 --- /dev/null +++ b/gaussdb/src/v3/model/ShowClickHouseSlowLogDetailResponse.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/gaussdb/v3/model/ShowClickHouseSlowLogDetailResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ShowClickHouseSlowLogDetailResponse::ShowClickHouseSlowLogDetailResponse() +{ + slowLogListIsSet_ = false; +} + +ShowClickHouseSlowLogDetailResponse::~ShowClickHouseSlowLogDetailResponse() = default; + +void ShowClickHouseSlowLogDetailResponse::validate() +{ +} + +web::json::value ShowClickHouseSlowLogDetailResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(slowLogListIsSet_) { + val[utility::conversions::to_string_t("slow_log_list")] = ModelBase::toJson(slowLogList_); + } + + return val; +} +bool ShowClickHouseSlowLogDetailResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("slow_log_list"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("slow_log_list")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSlowLogList(refVal); + } + } + return ok; +} + + +std::vector& ShowClickHouseSlowLogDetailResponse::getSlowLogList() +{ + return slowLogList_; +} + +void ShowClickHouseSlowLogDetailResponse::setSlowLogList(const std::vector& value) +{ + slowLogList_ = value; + slowLogListIsSet_ = true; +} + +bool ShowClickHouseSlowLogDetailResponse::slowLogListIsSet() const +{ + return slowLogListIsSet_; +} + +void ShowClickHouseSlowLogDetailResponse::unsetslowLogList() +{ + slowLogListIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ShowClickHouseSlowLogSensitiveStatusRequest.cpp b/gaussdb/src/v3/model/ShowClickHouseSlowLogSensitiveStatusRequest.cpp new file mode 100644 index 000000000..55cac6b57 --- /dev/null +++ b/gaussdb/src/v3/model/ShowClickHouseSlowLogSensitiveStatusRequest.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/gaussdb/v3/model/ShowClickHouseSlowLogSensitiveStatusRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ShowClickHouseSlowLogSensitiveStatusRequest::ShowClickHouseSlowLogSensitiveStatusRequest() +{ + instanceId_ = ""; + instanceIdIsSet_ = false; + xLanguage_ = ""; + xLanguageIsSet_ = false; +} + +ShowClickHouseSlowLogSensitiveStatusRequest::~ShowClickHouseSlowLogSensitiveStatusRequest() = default; + +void ShowClickHouseSlowLogSensitiveStatusRequest::validate() +{ +} + +web::json::value ShowClickHouseSlowLogSensitiveStatusRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + if(xLanguageIsSet_) { + val[utility::conversions::to_string_t("X-Language")] = ModelBase::toJson(xLanguage_); + } + + return val; +} +bool ShowClickHouseSlowLogSensitiveStatusRequest::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("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); + } + } + return ok; +} + + +std::string ShowClickHouseSlowLogSensitiveStatusRequest::getInstanceId() const +{ + return instanceId_; +} + +void ShowClickHouseSlowLogSensitiveStatusRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool ShowClickHouseSlowLogSensitiveStatusRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void ShowClickHouseSlowLogSensitiveStatusRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +std::string ShowClickHouseSlowLogSensitiveStatusRequest::getXLanguage() const +{ + return xLanguage_; +} + +void ShowClickHouseSlowLogSensitiveStatusRequest::setXLanguage(const std::string& value) +{ + xLanguage_ = value; + xLanguageIsSet_ = true; +} + +bool ShowClickHouseSlowLogSensitiveStatusRequest::xLanguageIsSet() const +{ + return xLanguageIsSet_; +} + +void ShowClickHouseSlowLogSensitiveStatusRequest::unsetxLanguage() +{ + xLanguageIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/ShowClickHouseSlowLogSensitiveStatusResponse.cpp b/gaussdb/src/v3/model/ShowClickHouseSlowLogSensitiveStatusResponse.cpp new file mode 100644 index 000000000..89711018c --- /dev/null +++ b/gaussdb/src/v3/model/ShowClickHouseSlowLogSensitiveStatusResponse.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/gaussdb/v3/model/ShowClickHouseSlowLogSensitiveStatusResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +ShowClickHouseSlowLogSensitiveStatusResponse::ShowClickHouseSlowLogSensitiveStatusResponse() +{ + openSlowLogSwitch_ = ""; + openSlowLogSwitchIsSet_ = false; +} + +ShowClickHouseSlowLogSensitiveStatusResponse::~ShowClickHouseSlowLogSensitiveStatusResponse() = default; + +void ShowClickHouseSlowLogSensitiveStatusResponse::validate() +{ +} + +web::json::value ShowClickHouseSlowLogSensitiveStatusResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(openSlowLogSwitchIsSet_) { + val[utility::conversions::to_string_t("open_slow_log_switch")] = ModelBase::toJson(openSlowLogSwitch_); + } + + return val; +} +bool ShowClickHouseSlowLogSensitiveStatusResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("open_slow_log_switch"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("open_slow_log_switch")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setOpenSlowLogSwitch(refVal); + } + } + return ok; +} + + +std::string ShowClickHouseSlowLogSensitiveStatusResponse::getOpenSlowLogSwitch() const +{ + return openSlowLogSwitch_; +} + +void ShowClickHouseSlowLogSensitiveStatusResponse::setOpenSlowLogSwitch(const std::string& value) +{ + openSlowLogSwitch_ = value; + openSlowLogSwitchIsSet_ = true; +} + +bool ShowClickHouseSlowLogSensitiveStatusResponse::openSlowLogSwitchIsSet() const +{ + return openSlowLogSwitchIsSet_; +} + +void ShowClickHouseSlowLogSensitiveStatusResponse::unsetopenSlowLogSwitch() +{ + openSlowLogSwitchIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/SrCreateInstanceRsp_instance_tags_info.cpp b/gaussdb/src/v3/model/SrCreateInstanceRsp_instance_tags_info.cpp index 2ad8679c1..cdc552ae3 100644 --- a/gaussdb/src/v3/model/SrCreateInstanceRsp_instance_tags_info.cpp +++ b/gaussdb/src/v3/model/SrCreateInstanceRsp_instance_tags_info.cpp @@ -43,7 +43,7 @@ bool SrCreateInstanceRsp_instance_tags_info::fromJson(const web::json::value& va const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tags")); if(!fieldValue.is_null()) { - std::vector refVal; + std::vector refVal; ok &= ModelBase::fromJson(fieldValue, refVal); setTags(refVal); } @@ -61,12 +61,12 @@ bool SrCreateInstanceRsp_instance_tags_info::fromJson(const web::json::value& va } -std::vector& SrCreateInstanceRsp_instance_tags_info::getTags() +std::vector& SrCreateInstanceRsp_instance_tags_info::getTags() { return tags_; } -void SrCreateInstanceRsp_instance_tags_info::setTags(const std::vector& value) +void SrCreateInstanceRsp_instance_tags_info::setTags(const std::vector& value) { tags_ = value; tagsIsSet_ = true; diff --git a/gaussdb/src/v3/model/UpdateChDatabaseConfigRequestBody.cpp b/gaussdb/src/v3/model/UpdateChDatabaseConfigRequestBody.cpp new file mode 100644 index 000000000..91893556a --- /dev/null +++ b/gaussdb/src/v3/model/UpdateChDatabaseConfigRequestBody.cpp @@ -0,0 +1,184 @@ + + +#include "huaweicloud/gaussdb/v3/model/UpdateChDatabaseConfigRequestBody.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +UpdateChDatabaseConfigRequestBody::UpdateChDatabaseConfigRequestBody() +{ + sourceInstanceId_ = ""; + sourceInstanceIdIsSet_ = false; + sourceNodeId_ = ""; + sourceNodeIdIsSet_ = false; + database_ = ""; + databaseIsSet_ = false; + value_ = ""; + valueIsSet_ = false; +} + +UpdateChDatabaseConfigRequestBody::~UpdateChDatabaseConfigRequestBody() = default; + +void UpdateChDatabaseConfigRequestBody::validate() +{ +} + +web::json::value UpdateChDatabaseConfigRequestBody::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(sourceInstanceIdIsSet_) { + val[utility::conversions::to_string_t("source_instance_id")] = ModelBase::toJson(sourceInstanceId_); + } + if(sourceNodeIdIsSet_) { + val[utility::conversions::to_string_t("source_node_id")] = ModelBase::toJson(sourceNodeId_); + } + if(databaseIsSet_) { + val[utility::conversions::to_string_t("database")] = ModelBase::toJson(database_); + } + if(valueIsSet_) { + val[utility::conversions::to_string_t("value")] = ModelBase::toJson(value_); + } + + return val; +} +bool UpdateChDatabaseConfigRequestBody::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("source_instance_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("source_instance_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSourceInstanceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("source_node_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("source_node_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSourceNodeId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("database"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("database")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDatabase(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("value"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("value")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setValue(refVal); + } + } + return ok; +} + + +std::string UpdateChDatabaseConfigRequestBody::getSourceInstanceId() const +{ + return sourceInstanceId_; +} + +void UpdateChDatabaseConfigRequestBody::setSourceInstanceId(const std::string& value) +{ + sourceInstanceId_ = value; + sourceInstanceIdIsSet_ = true; +} + +bool UpdateChDatabaseConfigRequestBody::sourceInstanceIdIsSet() const +{ + return sourceInstanceIdIsSet_; +} + +void UpdateChDatabaseConfigRequestBody::unsetsourceInstanceId() +{ + sourceInstanceIdIsSet_ = false; +} + +std::string UpdateChDatabaseConfigRequestBody::getSourceNodeId() const +{ + return sourceNodeId_; +} + +void UpdateChDatabaseConfigRequestBody::setSourceNodeId(const std::string& value) +{ + sourceNodeId_ = value; + sourceNodeIdIsSet_ = true; +} + +bool UpdateChDatabaseConfigRequestBody::sourceNodeIdIsSet() const +{ + return sourceNodeIdIsSet_; +} + +void UpdateChDatabaseConfigRequestBody::unsetsourceNodeId() +{ + sourceNodeIdIsSet_ = false; +} + +std::string UpdateChDatabaseConfigRequestBody::getDatabase() const +{ + return database_; +} + +void UpdateChDatabaseConfigRequestBody::setDatabase(const std::string& value) +{ + database_ = value; + databaseIsSet_ = true; +} + +bool UpdateChDatabaseConfigRequestBody::databaseIsSet() const +{ + return databaseIsSet_; +} + +void UpdateChDatabaseConfigRequestBody::unsetdatabase() +{ + databaseIsSet_ = false; +} + +std::string UpdateChDatabaseConfigRequestBody::getValue() const +{ + return value_; +} + +void UpdateChDatabaseConfigRequestBody::setValue(const std::string& value) +{ + value_ = value; + valueIsSet_ = true; +} + +bool UpdateChDatabaseConfigRequestBody::valueIsSet() const +{ + return valueIsSet_; +} + +void UpdateChDatabaseConfigRequestBody::unsetvalue() +{ + valueIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/UpdateClickHouseDataBaseConfigRequest.cpp b/gaussdb/src/v3/model/UpdateClickHouseDataBaseConfigRequest.cpp new file mode 100644 index 000000000..c332ded85 --- /dev/null +++ b/gaussdb/src/v3/model/UpdateClickHouseDataBaseConfigRequest.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/gaussdb/v3/model/UpdateClickHouseDataBaseConfigRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +UpdateClickHouseDataBaseConfigRequest::UpdateClickHouseDataBaseConfigRequest() +{ + instanceId_ = ""; + instanceIdIsSet_ = false; + xLanguage_ = ""; + xLanguageIsSet_ = false; + bodyIsSet_ = false; +} + +UpdateClickHouseDataBaseConfigRequest::~UpdateClickHouseDataBaseConfigRequest() = default; + +void UpdateClickHouseDataBaseConfigRequest::validate() +{ +} + +web::json::value UpdateClickHouseDataBaseConfigRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + 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 UpdateClickHouseDataBaseConfigRequest::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("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()) + { + UpdateChDatabaseConfigRequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string UpdateClickHouseDataBaseConfigRequest::getInstanceId() const +{ + return instanceId_; +} + +void UpdateClickHouseDataBaseConfigRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool UpdateClickHouseDataBaseConfigRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void UpdateClickHouseDataBaseConfigRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +std::string UpdateClickHouseDataBaseConfigRequest::getXLanguage() const +{ + return xLanguage_; +} + +void UpdateClickHouseDataBaseConfigRequest::setXLanguage(const std::string& value) +{ + xLanguage_ = value; + xLanguageIsSet_ = true; +} + +bool UpdateClickHouseDataBaseConfigRequest::xLanguageIsSet() const +{ + return xLanguageIsSet_; +} + +void UpdateClickHouseDataBaseConfigRequest::unsetxLanguage() +{ + xLanguageIsSet_ = false; +} + +UpdateChDatabaseConfigRequestBody UpdateClickHouseDataBaseConfigRequest::getBody() const +{ + return body_; +} + +void UpdateClickHouseDataBaseConfigRequest::setBody(const UpdateChDatabaseConfigRequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool UpdateClickHouseDataBaseConfigRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void UpdateClickHouseDataBaseConfigRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/UpdateClickHouseDataBaseConfigResponse.cpp b/gaussdb/src/v3/model/UpdateClickHouseDataBaseConfigResponse.cpp new file mode 100644 index 000000000..5defecbc9 --- /dev/null +++ b/gaussdb/src/v3/model/UpdateClickHouseDataBaseConfigResponse.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/gaussdb/v3/model/UpdateClickHouseDataBaseConfigResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +UpdateClickHouseDataBaseConfigResponse::UpdateClickHouseDataBaseConfigResponse() +{ + jobId_ = ""; + jobIdIsSet_ = false; +} + +UpdateClickHouseDataBaseConfigResponse::~UpdateClickHouseDataBaseConfigResponse() = default; + +void UpdateClickHouseDataBaseConfigResponse::validate() +{ +} + +web::json::value UpdateClickHouseDataBaseConfigResponse::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 UpdateClickHouseDataBaseConfigResponse::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 UpdateClickHouseDataBaseConfigResponse::getJobId() const +{ + return jobId_; +} + +void UpdateClickHouseDataBaseConfigResponse::setJobId(const std::string& value) +{ + jobId_ = value; + jobIdIsSet_ = true; +} + +bool UpdateClickHouseDataBaseConfigResponse::jobIdIsSet() const +{ + return jobIdIsSet_; +} + +void UpdateClickHouseDataBaseConfigResponse::unsetjobId() +{ + jobIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/UpdateClickHouseDatabaseUserPasswordRequest.cpp b/gaussdb/src/v3/model/UpdateClickHouseDatabaseUserPasswordRequest.cpp new file mode 100644 index 000000000..ecd511413 --- /dev/null +++ b/gaussdb/src/v3/model/UpdateClickHouseDatabaseUserPasswordRequest.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/gaussdb/v3/model/UpdateClickHouseDatabaseUserPasswordRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +UpdateClickHouseDatabaseUserPasswordRequest::UpdateClickHouseDatabaseUserPasswordRequest() +{ + instanceId_ = ""; + instanceIdIsSet_ = false; + xLanguage_ = ""; + xLanguageIsSet_ = false; + bodyIsSet_ = false; +} + +UpdateClickHouseDatabaseUserPasswordRequest::~UpdateClickHouseDatabaseUserPasswordRequest() = default; + +void UpdateClickHouseDatabaseUserPasswordRequest::validate() +{ +} + +web::json::value UpdateClickHouseDatabaseUserPasswordRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + 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 UpdateClickHouseDatabaseUserPasswordRequest::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("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()) + { + ClickHouseDatabaseUserPWinfo refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string UpdateClickHouseDatabaseUserPasswordRequest::getInstanceId() const +{ + return instanceId_; +} + +void UpdateClickHouseDatabaseUserPasswordRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool UpdateClickHouseDatabaseUserPasswordRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void UpdateClickHouseDatabaseUserPasswordRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +std::string UpdateClickHouseDatabaseUserPasswordRequest::getXLanguage() const +{ + return xLanguage_; +} + +void UpdateClickHouseDatabaseUserPasswordRequest::setXLanguage(const std::string& value) +{ + xLanguage_ = value; + xLanguageIsSet_ = true; +} + +bool UpdateClickHouseDatabaseUserPasswordRequest::xLanguageIsSet() const +{ + return xLanguageIsSet_; +} + +void UpdateClickHouseDatabaseUserPasswordRequest::unsetxLanguage() +{ + xLanguageIsSet_ = false; +} + +ClickHouseDatabaseUserPWinfo UpdateClickHouseDatabaseUserPasswordRequest::getBody() const +{ + return body_; +} + +void UpdateClickHouseDatabaseUserPasswordRequest::setBody(const ClickHouseDatabaseUserPWinfo& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool UpdateClickHouseDatabaseUserPasswordRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void UpdateClickHouseDatabaseUserPasswordRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/UpdateClickHouseDatabaseUserPasswordResponse.cpp b/gaussdb/src/v3/model/UpdateClickHouseDatabaseUserPasswordResponse.cpp new file mode 100644 index 000000000..a9ea50d5e --- /dev/null +++ b/gaussdb/src/v3/model/UpdateClickHouseDatabaseUserPasswordResponse.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/gaussdb/v3/model/UpdateClickHouseDatabaseUserPasswordResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +UpdateClickHouseDatabaseUserPasswordResponse::UpdateClickHouseDatabaseUserPasswordResponse() +{ + result_ = ""; + resultIsSet_ = false; +} + +UpdateClickHouseDatabaseUserPasswordResponse::~UpdateClickHouseDatabaseUserPasswordResponse() = default; + +void UpdateClickHouseDatabaseUserPasswordResponse::validate() +{ +} + +web::json::value UpdateClickHouseDatabaseUserPasswordResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(resultIsSet_) { + val[utility::conversions::to_string_t("result")] = ModelBase::toJson(result_); + } + + return val; +} +bool UpdateClickHouseDatabaseUserPasswordResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("result"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("result")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setResult(refVal); + } + } + return ok; +} + + +std::string UpdateClickHouseDatabaseUserPasswordResponse::getResult() const +{ + return result_; +} + +void UpdateClickHouseDatabaseUserPasswordResponse::setResult(const std::string& value) +{ + result_ = value; + resultIsSet_ = true; +} + +bool UpdateClickHouseDatabaseUserPasswordResponse::resultIsSet() const +{ + return resultIsSet_; +} + +void UpdateClickHouseDatabaseUserPasswordResponse::unsetresult() +{ + resultIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/UpdateClickHouseDatabaseUserPermissionRequest.cpp b/gaussdb/src/v3/model/UpdateClickHouseDatabaseUserPermissionRequest.cpp new file mode 100644 index 000000000..7a0ae866f --- /dev/null +++ b/gaussdb/src/v3/model/UpdateClickHouseDatabaseUserPermissionRequest.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/gaussdb/v3/model/UpdateClickHouseDatabaseUserPermissionRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +UpdateClickHouseDatabaseUserPermissionRequest::UpdateClickHouseDatabaseUserPermissionRequest() +{ + instanceId_ = ""; + instanceIdIsSet_ = false; + xLanguage_ = ""; + xLanguageIsSet_ = false; + bodyIsSet_ = false; +} + +UpdateClickHouseDatabaseUserPermissionRequest::~UpdateClickHouseDatabaseUserPermissionRequest() = default; + +void UpdateClickHouseDatabaseUserPermissionRequest::validate() +{ +} + +web::json::value UpdateClickHouseDatabaseUserPermissionRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + 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 UpdateClickHouseDatabaseUserPermissionRequest::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("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()) + { + ClickHouseDatabaseUserPSinfo refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string UpdateClickHouseDatabaseUserPermissionRequest::getInstanceId() const +{ + return instanceId_; +} + +void UpdateClickHouseDatabaseUserPermissionRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool UpdateClickHouseDatabaseUserPermissionRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void UpdateClickHouseDatabaseUserPermissionRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +std::string UpdateClickHouseDatabaseUserPermissionRequest::getXLanguage() const +{ + return xLanguage_; +} + +void UpdateClickHouseDatabaseUserPermissionRequest::setXLanguage(const std::string& value) +{ + xLanguage_ = value; + xLanguageIsSet_ = true; +} + +bool UpdateClickHouseDatabaseUserPermissionRequest::xLanguageIsSet() const +{ + return xLanguageIsSet_; +} + +void UpdateClickHouseDatabaseUserPermissionRequest::unsetxLanguage() +{ + xLanguageIsSet_ = false; +} + +ClickHouseDatabaseUserPSinfo UpdateClickHouseDatabaseUserPermissionRequest::getBody() const +{ + return body_; +} + +void UpdateClickHouseDatabaseUserPermissionRequest::setBody(const ClickHouseDatabaseUserPSinfo& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool UpdateClickHouseDatabaseUserPermissionRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void UpdateClickHouseDatabaseUserPermissionRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/UpdateClickHouseDatabaseUserPermissionResponse.cpp b/gaussdb/src/v3/model/UpdateClickHouseDatabaseUserPermissionResponse.cpp new file mode 100644 index 000000000..839ed22de --- /dev/null +++ b/gaussdb/src/v3/model/UpdateClickHouseDatabaseUserPermissionResponse.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/gaussdb/v3/model/UpdateClickHouseDatabaseUserPermissionResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +UpdateClickHouseDatabaseUserPermissionResponse::UpdateClickHouseDatabaseUserPermissionResponse() +{ + result_ = ""; + resultIsSet_ = false; +} + +UpdateClickHouseDatabaseUserPermissionResponse::~UpdateClickHouseDatabaseUserPermissionResponse() = default; + +void UpdateClickHouseDatabaseUserPermissionResponse::validate() +{ +} + +web::json::value UpdateClickHouseDatabaseUserPermissionResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(resultIsSet_) { + val[utility::conversions::to_string_t("result")] = ModelBase::toJson(result_); + } + + return val; +} +bool UpdateClickHouseDatabaseUserPermissionResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("result"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("result")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setResult(refVal); + } + } + return ok; +} + + +std::string UpdateClickHouseDatabaseUserPermissionResponse::getResult() const +{ + return result_; +} + +void UpdateClickHouseDatabaseUserPermissionResponse::setResult(const std::string& value) +{ + result_ = value; + resultIsSet_ = true; +} + +bool UpdateClickHouseDatabaseUserPermissionResponse::resultIsSet() const +{ + return resultIsSet_; +} + +void UpdateClickHouseDatabaseUserPermissionResponse::unsetresult() +{ + resultIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/UpdateClickHouseLtsConfigRequest.cpp b/gaussdb/src/v3/model/UpdateClickHouseLtsConfigRequest.cpp new file mode 100644 index 000000000..c9b5e781f --- /dev/null +++ b/gaussdb/src/v3/model/UpdateClickHouseLtsConfigRequest.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/gaussdb/v3/model/UpdateClickHouseLtsConfigRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +UpdateClickHouseLtsConfigRequest::UpdateClickHouseLtsConfigRequest() +{ + xLanguage_ = ""; + xLanguageIsSet_ = false; + bodyIsSet_ = false; +} + +UpdateClickHouseLtsConfigRequest::~UpdateClickHouseLtsConfigRequest() = default; + +void UpdateClickHouseLtsConfigRequest::validate() +{ +} + +web::json::value UpdateClickHouseLtsConfigRequest::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 UpdateClickHouseLtsConfigRequest::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()) + { + CreateChLtsConfigRequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string UpdateClickHouseLtsConfigRequest::getXLanguage() const +{ + return xLanguage_; +} + +void UpdateClickHouseLtsConfigRequest::setXLanguage(const std::string& value) +{ + xLanguage_ = value; + xLanguageIsSet_ = true; +} + +bool UpdateClickHouseLtsConfigRequest::xLanguageIsSet() const +{ + return xLanguageIsSet_; +} + +void UpdateClickHouseLtsConfigRequest::unsetxLanguage() +{ + xLanguageIsSet_ = false; +} + +CreateChLtsConfigRequestBody UpdateClickHouseLtsConfigRequest::getBody() const +{ + return body_; +} + +void UpdateClickHouseLtsConfigRequest::setBody(const CreateChLtsConfigRequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool UpdateClickHouseLtsConfigRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void UpdateClickHouseLtsConfigRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/UpdateClickHouseLtsConfigResponse.cpp b/gaussdb/src/v3/model/UpdateClickHouseLtsConfigResponse.cpp new file mode 100644 index 000000000..945894f5b --- /dev/null +++ b/gaussdb/src/v3/model/UpdateClickHouseLtsConfigResponse.cpp @@ -0,0 +1,44 @@ + + +#include "huaweicloud/gaussdb/v3/model/UpdateClickHouseLtsConfigResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +UpdateClickHouseLtsConfigResponse::UpdateClickHouseLtsConfigResponse() +{ +} + +UpdateClickHouseLtsConfigResponse::~UpdateClickHouseLtsConfigResponse() = default; + +void UpdateClickHouseLtsConfigResponse::validate() +{ +} + +web::json::value UpdateClickHouseLtsConfigResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + + return val; +} +bool UpdateClickHouseLtsConfigResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + return ok; +} + + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/UpdateClickHouseSlowLogSensitiveStatusRequest.cpp b/gaussdb/src/v3/model/UpdateClickHouseSlowLogSensitiveStatusRequest.cpp new file mode 100644 index 000000000..b9e6c08d8 --- /dev/null +++ b/gaussdb/src/v3/model/UpdateClickHouseSlowLogSensitiveStatusRequest.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/gaussdb/v3/model/UpdateClickHouseSlowLogSensitiveStatusRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +UpdateClickHouseSlowLogSensitiveStatusRequest::UpdateClickHouseSlowLogSensitiveStatusRequest() +{ + instanceId_ = ""; + instanceIdIsSet_ = false; + xLanguage_ = ""; + xLanguageIsSet_ = false; + bodyIsSet_ = false; +} + +UpdateClickHouseSlowLogSensitiveStatusRequest::~UpdateClickHouseSlowLogSensitiveStatusRequest() = default; + +void UpdateClickHouseSlowLogSensitiveStatusRequest::validate() +{ +} + +web::json::value UpdateClickHouseSlowLogSensitiveStatusRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + 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 UpdateClickHouseSlowLogSensitiveStatusRequest::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("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()) + { + ChSlowlogSensitiveResponse refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string UpdateClickHouseSlowLogSensitiveStatusRequest::getInstanceId() const +{ + return instanceId_; +} + +void UpdateClickHouseSlowLogSensitiveStatusRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool UpdateClickHouseSlowLogSensitiveStatusRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void UpdateClickHouseSlowLogSensitiveStatusRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +std::string UpdateClickHouseSlowLogSensitiveStatusRequest::getXLanguage() const +{ + return xLanguage_; +} + +void UpdateClickHouseSlowLogSensitiveStatusRequest::setXLanguage(const std::string& value) +{ + xLanguage_ = value; + xLanguageIsSet_ = true; +} + +bool UpdateClickHouseSlowLogSensitiveStatusRequest::xLanguageIsSet() const +{ + return xLanguageIsSet_; +} + +void UpdateClickHouseSlowLogSensitiveStatusRequest::unsetxLanguage() +{ + xLanguageIsSet_ = false; +} + +ChSlowlogSensitiveResponse UpdateClickHouseSlowLogSensitiveStatusRequest::getBody() const +{ + return body_; +} + +void UpdateClickHouseSlowLogSensitiveStatusRequest::setBody(const ChSlowlogSensitiveResponse& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool UpdateClickHouseSlowLogSensitiveStatusRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void UpdateClickHouseSlowLogSensitiveStatusRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdb/src/v3/model/UpdateClickHouseSlowLogSensitiveStatusResponse.cpp b/gaussdb/src/v3/model/UpdateClickHouseSlowLogSensitiveStatusResponse.cpp new file mode 100644 index 000000000..89a867955 --- /dev/null +++ b/gaussdb/src/v3/model/UpdateClickHouseSlowLogSensitiveStatusResponse.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/gaussdb/v3/model/UpdateClickHouseSlowLogSensitiveStatusResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdb { +namespace V3 { +namespace Model { + + + + +UpdateClickHouseSlowLogSensitiveStatusResponse::UpdateClickHouseSlowLogSensitiveStatusResponse() +{ + openSlowLogSwitch_ = ""; + openSlowLogSwitchIsSet_ = false; +} + +UpdateClickHouseSlowLogSensitiveStatusResponse::~UpdateClickHouseSlowLogSensitiveStatusResponse() = default; + +void UpdateClickHouseSlowLogSensitiveStatusResponse::validate() +{ +} + +web::json::value UpdateClickHouseSlowLogSensitiveStatusResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(openSlowLogSwitchIsSet_) { + val[utility::conversions::to_string_t("open_slow_log_switch")] = ModelBase::toJson(openSlowLogSwitch_); + } + + return val; +} +bool UpdateClickHouseSlowLogSensitiveStatusResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("open_slow_log_switch"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("open_slow_log_switch")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setOpenSlowLogSwitch(refVal); + } + } + return ok; +} + + +std::string UpdateClickHouseSlowLogSensitiveStatusResponse::getOpenSlowLogSwitch() const +{ + return openSlowLogSwitch_; +} + +void UpdateClickHouseSlowLogSensitiveStatusResponse::setOpenSlowLogSwitch(const std::string& value) +{ + openSlowLogSwitch_ = value; + openSlowLogSwitchIsSet_ = true; +} + +bool UpdateClickHouseSlowLogSensitiveStatusResponse::openSlowLogSwitchIsSet() const +{ + return openSlowLogSwitchIsSet_; +} + +void UpdateClickHouseSlowLogSensitiveStatusResponse::unsetopenSlowLogSwitch() +{ + openSlowLogSwitchIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/GaussDBforopenGaussClient.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/GaussDBforopenGaussClient.h index 71ca17d34..873933f4c 100644 --- a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/GaussDBforopenGaussClient.h +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/GaussDBforopenGaussClient.h @@ -16,6 +16,8 @@ #include #include #include +#include +#include #include #include #include @@ -57,6 +59,7 @@ #include #include #include +#include #include #include #include @@ -99,6 +102,8 @@ #include #include #include +#include +#include #include #include #include @@ -163,12 +168,17 @@ #include #include #include +#include +#include +#include #include #include #include #include #include #include +#include +#include #include #include #include @@ -213,6 +223,9 @@ #include #include #include +#include +#include +#include #include #include #include @@ -268,6 +281,14 @@ class HUAWEICLOUD_GAUSSDBFOROPENGAUSS_V3_EXPORT GaussDBforopenGaussClient : pub std::shared_ptr attachEip( AttachEipRequest &request ); + // 备份恢复到目标实例数据后执行数据确认 + // + // 确认备份恢复到目标实例的数据正常。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr confirmRestoredData( + ConfirmRestoredDataRequest &request + ); // 复制参数模板 // // 复制参数模板。 @@ -556,6 +577,14 @@ class HUAWEICLOUD_GAUSSDBFOROPENGAUSS_V3_EXPORT GaussDBforopenGaussClient : pub std::shared_ptr listHistoryOperations( ListHistoryOperationsRequest &request ); + // 查询数据库实例列表/查询实例详情 + // + // 查询数据库实例列表/查询实例详情 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr listInstanceDetails( + ListInstanceDetailsRequest &request + ); // 查询错误日志下载链接 // // 查询数据库错误日志下载链接。 @@ -741,6 +770,14 @@ class HUAWEICLOUD_GAUSSDBFOROPENGAUSS_V3_EXPORT GaussDBforopenGaussClient : pub std::shared_ptr setDbUserPwd( SetDbUserPwdRequest &request ); + // 设置自动备份策略 + // + // 设置自动备份策略 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr setNewBackupPolicy( + SetNewBackupPolicyRequest &request + ); // 设置回收站策略 // // 设置回收站策略。 @@ -765,6 +802,14 @@ class HUAWEICLOUD_GAUSSDBFOROPENGAUSS_V3_EXPORT GaussDBforopenGaussClient : pub std::shared_ptr showBalanceStatus( ShowBalanceStatusRequest &request ); + // 查询批量实例可升级的版本和升级类型 + // + // 查询批量实例可升级的版本和升级类型 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr showBatchUpgradeCandidateVersions( + ShowBatchUpgradeCandidateVersionsRequest &request + ); // 查询参数模板详情 // // 根据参数模板ID获取指定参数模板详情。 @@ -934,6 +979,25 @@ class HUAWEICLOUD_GAUSSDBFOROPENGAUSS_V3_EXPORT GaussDBforopenGaussClient : pub std::shared_ptr upgradeInstanceVersion( UpgradeInstanceVersionRequest &request ); + // 批量实例内核版本升级 + // + // GaussDB批量实例版本升级。包括灰度升级,就地升级、热补丁升级三种升级方式。 + // 就地升级: + // 就地升级需要停止业务进行,会一次性升级集群中所有节点。就地升级需要暂停业务30分钟来升级。 + // 灰度升级: + // 升级自动提交:所有节点进程一起升级,在升级过程中有大概10秒的业务中断,不阻塞其他业务操作。 + // 升级待观察:升级待观察,将数据库升级过程细分为升级,提交两个阶段。升级阶段可以根据部署方式细分为按分片或者按az的滚动升级,提交阶段可以对升级完成后的实例进行业务测试,根据需要可以选择提交升级,或者升级回退。每个主dn或者cn组件升级就有一次10秒业务中断。升级过程均是先管理面,再数据面,由备到主的升级方式。 分布式实例:根据分片数滚动升级,每次滚动升级可以根据选择的分片数进行指定分片数量的节点进行升级。 主备版实例:根据AZ数进行滚动升级,每次滚动升级可以根据选择的AZ进行1个分区或者多个分区进行升级。 + // 热补丁升级: + // 升级自动提交:热补丁自动升级并提交,中间无业务中断,仅修复产品bug。 + // 提交升级:提交升级。在升级完成,进入提交阶段时。业务测试正常后提交升级,完成本次升级流程。 + // 升级回退:升级回退,在升级完成,进入提交阶段时。可以根据需要回退本次升级,回退到升级前的版本。 + // 批量实例可升级版本大于当前所有实例的引擎版本,且选择的所有实例,其升级方式和操作方式要保持一致。 + // 若批量实例升级方式是灰度升级,默认升级所有az和分片。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr upgradeInstancesVersion( + UpgradeInstancesVersionRequest &request + ); // 校验参数组名称是否存在 // // 校验参数组名称是否存在。 diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/GaussDBforopenGaussMeta.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/GaussDBforopenGaussMeta.h index 64df39814..79a211758 100644 --- a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/GaussDBforopenGaussMeta.h +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/GaussDBforopenGaussMeta.h @@ -16,6 +16,7 @@ class HUAWEICLOUD_GAUSSDBFOROPENGAUSS_V3_EXPORT GaussDBforopenGaussMeta { static HttpRequestDef genRequestDefForAddInstanceTags(); static HttpRequestDef genRequestDefForAllowDbPrivileges(); static HttpRequestDef genRequestDefForAttachEip(); + static HttpRequestDef genRequestDefForConfirmRestoredData(); static HttpRequestDef genRequestDefForCopyConfiguration(); static HttpRequestDef genRequestDefForCreateConfigurationTemplate(); static HttpRequestDef genRequestDefForCreateDatabase(); @@ -52,6 +53,7 @@ class HUAWEICLOUD_GAUSSDBFOROPENGAUSS_V3_EXPORT GaussDBforopenGaussMeta { static HttpRequestDef genRequestDefForListFlavors(); static HttpRequestDef genRequestDefForListGaussDbDatastores(); static HttpRequestDef genRequestDefForListHistoryOperations(); + static HttpRequestDef genRequestDefForListInstanceDetails(); static HttpRequestDef genRequestDefForListInstanceErrorLogs(); static HttpRequestDef genRequestDefForListInstanceTags(); static HttpRequestDef genRequestDefForListInstances(); @@ -75,9 +77,11 @@ class HUAWEICLOUD_GAUSSDBFOROPENGAUSS_V3_EXPORT GaussDBforopenGaussMeta { static HttpRequestDef genRequestDefForSearchAutoEnlargePolicy(); static HttpRequestDef genRequestDefForSetBackupPolicy(); static HttpRequestDef genRequestDefForSetDbUserPwd(); + static HttpRequestDef genRequestDefForSetNewBackupPolicy(); static HttpRequestDef genRequestDefForSetRecyclePolicy(); static HttpRequestDef genRequestDefForShowBackupPolicy(); static HttpRequestDef genRequestDefForShowBalanceStatus(); + static HttpRequestDef genRequestDefForShowBatchUpgradeCandidateVersions(); static HttpRequestDef genRequestDefForShowConfigurationDetail(); static HttpRequestDef genRequestDefForShowDeploymentForm(); static HttpRequestDef genRequestDefForShowErrorLogSwitchStatus(); @@ -98,6 +102,7 @@ class HUAWEICLOUD_GAUSSDBFOROPENGAUSS_V3_EXPORT GaussDBforopenGaussMeta { static HttpRequestDef genRequestDefForUpdateInstanceConfiguration(); static HttpRequestDef genRequestDefForUpdateInstanceName(); static HttpRequestDef genRequestDefForUpgradeInstanceVersion(); + static HttpRequestDef genRequestDefForUpgradeInstancesVersion(); static HttpRequestDef genRequestDefForValidateParaGroupName(); static HttpRequestDef genRequestDefForValidateWeakPassword(); }; diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/BackupPolicyInfo.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/BackupPolicyInfo.h new file mode 100644 index 000000000..b44ebe294 --- /dev/null +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/BackupPolicyInfo.h @@ -0,0 +1,141 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_BackupPolicyInfo_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_BackupPolicyInfo_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 备份策略信息 +/// +class HUAWEICLOUD_GAUSSDBFOROPENGAUSS_V3_EXPORT BackupPolicyInfo + : public ModelBase +{ +public: + BackupPolicyInfo(); + virtual ~BackupPolicyInfo(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// BackupPolicyInfo members + + /// + /// 备份文件可以保存的天数。取值范围:1-36500天。 + /// + + int32_t getKeepDays() const; + bool keepDaysIsSet() const; + void unsetkeepDays(); + void setKeepDays(int32_t value); + + /// + /// 备份时间段。自动备份将在该时间段内触发。取值范围:非空,格式必须为hh:mm-HH:MM且有效,当前时间指UTC时间。 HH取值必须比hh大1,mm和MM取值必须相同,且取值必须为00。 取值示例: 21:00-22:00 + /// + + std::string getStartTime() const; + bool startTimeIsSet() const; + void unsetstartTime(); + void setStartTime(const std::string& value); + + /// + /// 全量备份周期配置。自动全量备份将在每星期指定的天进行。 取值范围:格式为逗号隔开的数字,数字代表星期。取值示例:1,2,3,4则表示备份周期配置为星期一、星期二、星期三和星期四。 + /// + + std::string getPeriod() const; + bool periodIsSet() const; + void unsetperiod(); + void setPeriod(const std::string& value); + + /// + /// 差异备份间隔时间配置。每次自动差异备份的间隔时间。 取值范围:15、30、60、180、360、720、1440。单位:分钟。 取值示例:30 + /// + + std::string getDifferentialPeriod() const; + bool differentialPeriodIsSet() const; + void unsetdifferentialPeriod(); + void setDifferentialPeriod(const std::string& value); + + /// + /// 备份限速,默认值为0MB/s,表示不限速。控制备份是备份数据上传OBS的速度,限速用于限制上传备份对上传带宽的影响 取值范围:0~ 1024 最小值:0 MB/s + /// + + int32_t getRateLimit() const; + bool rateLimitIsSet() const; + void unsetrateLimit(); + void setRateLimit(int32_t value); + + /// + /// 控制差量备份时读取磁盘上表文件差量修改页面的预取页面个数。当差量修改页面非常集中时(如数据导入场景),可以适当调大 该值;当差量修改页面非常分散时(如随机更新),可以适当调小该值。默认为64,单位个数 取值范围:1 ~ 8192 最小值:1 最大值:8192 + /// + + int32_t getPrefetchBlock() const; + bool prefetchBlockIsSet() const; + void unsetprefetchBlock(); + void setPrefetchBlock(int32_t value); + + /// + /// 全量、差量备份时产生的备份文件会根据该参数的值进行拆分,可设置范围为0~1024GB,设置需为4的倍数,默认4GB,0GB表示不 限制大小。 取值范围:0 ~ 1024 最小值:0 最大值:1024 + /// + + int32_t getFileSplitSize() const; + bool fileSplitSizeIsSet() const; + void unsetfileSplitSize(); + void setFileSplitSize(int32_t value); + + /// + /// 是否启用备机备份。(不支持单节点实例及3.100.0以下的实例) + /// + + bool isEnableStandbyBackup() const; + bool enableStandbyBackupIsSet() const; + void unsetenableStandbyBackup(); + void setEnableStandbyBackup(bool value); + + +protected: + int32_t keepDays_; + bool keepDaysIsSet_; + std::string startTime_; + bool startTimeIsSet_; + std::string period_; + bool periodIsSet_; + std::string differentialPeriod_; + bool differentialPeriodIsSet_; + int32_t rateLimit_; + bool rateLimitIsSet_; + int32_t prefetchBlock_; + bool prefetchBlockIsSet_; + int32_t fileSplitSize_; + bool fileSplitSizeIsSet_; + bool enableStandbyBackup_; + bool enableStandbyBackupIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_BackupPolicyInfo_H_ diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ConfirmRestoredDataRequest.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ConfirmRestoredDataRequest.h new file mode 100644 index 000000000..a917f6f49 --- /dev/null +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ConfirmRestoredDataRequest.h @@ -0,0 +1,82 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_ConfirmRestoredDataRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_ConfirmRestoredDataRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GAUSSDBFOROPENGAUSS_V3_EXPORT ConfirmRestoredDataRequest + : public ModelBase +{ +public: + ConfirmRestoredDataRequest(); + virtual ~ConfirmRestoredDataRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ConfirmRestoredDataRequest members + + /// + /// 语言 + /// + + std::string getXLanguage() const; + bool xLanguageIsSet() const; + void unsetxLanguage(); + void setXLanguage(const std::string& value); + + /// + /// 实例ID。 + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + +protected: + std::string xLanguage_; + bool xLanguageIsSet_; + std::string instanceId_; + bool instanceIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ConfirmRestoredDataRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_ConfirmRestoredDataRequest_H_ diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ConfirmRestoredDataResponse.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ConfirmRestoredDataResponse.h new file mode 100644 index 000000000..d3536b086 --- /dev/null +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ConfirmRestoredDataResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_ConfirmRestoredDataResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_ConfirmRestoredDataResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GAUSSDBFOROPENGAUSS_V3_EXPORT ConfirmRestoredDataResponse + : public ModelBase, public HttpResponse +{ +public: + ConfirmRestoredDataResponse(); + virtual ~ConfirmRestoredDataResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ConfirmRestoredDataResponse 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_GAUSSDBFOROPENGAUSS_V3_MODEL_ConfirmRestoredDataResponse_H_ diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/GaussDBUpgradeInstancesVersionRequest.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/GaussDBUpgradeInstancesVersionRequest.h new file mode 100644 index 000000000..f51705f41 --- /dev/null +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/GaussDBUpgradeInstancesVersionRequest.h @@ -0,0 +1,98 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_GaussDBUpgradeInstancesVersionRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_GaussDBUpgradeInstancesVersionRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// GaussDB批量实例版本升级接口传参参数。 +/// +class HUAWEICLOUD_GAUSSDBFOROPENGAUSS_V3_EXPORT GaussDBUpgradeInstancesVersionRequest + : public ModelBase +{ +public: + GaussDBUpgradeInstancesVersionRequest(); + virtual ~GaussDBUpgradeInstancesVersionRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// GaussDBUpgradeInstancesVersionRequest members + + /// + /// 批量实例ID + /// + + std::vector& getInstanceIds(); + bool instanceIdsIsSet() const; + void unsetinstanceIds(); + void setInstanceIds(const std::vector& value); + + /// + /// 实例升级类型,包括就地升级,灰度升级、热补丁升级三种 + /// + + std::string getUpgradeType() const; + bool upgradeTypeIsSet() const; + void unsetupgradeType(); + void setUpgradeType(const std::string& value); + + /// + /// 实例升级操作,就地升级无需传值。灰度升级包括升级自动提交,升级待观察,提交升级,升级回退四种。 + /// + + std::string getUpgradeAction() const; + bool upgradeActionIsSet() const; + void unsetupgradeAction(); + void setUpgradeAction(const std::string& value); + + /// + /// 批量实例升级目标版本,非必填。如果未传值灰度升级和就地升级默认升级到当前实例的优选版本,热补丁升级无需传该值,默认升级实例所有可升级热补丁。 + /// + + std::string getTargetVersion() const; + bool targetVersionIsSet() const; + void unsettargetVersion(); + void setTargetVersion(const std::string& value); + + +protected: + std::vector instanceIds_; + bool instanceIdsIsSet_; + std::string upgradeType_; + bool upgradeTypeIsSet_; + std::string upgradeAction_; + bool upgradeActionIsSet_; + std::string targetVersion_; + bool targetVersionIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_GaussDBUpgradeInstancesVersionRequest_H_ diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/HotfixInfo.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/HotfixInfo.h new file mode 100644 index 000000000..5d03700d2 --- /dev/null +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/HotfixInfo.h @@ -0,0 +1,97 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_HotfixInfo_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_HotfixInfo_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 热补丁信息 +/// +class HUAWEICLOUD_GAUSSDBFOROPENGAUSS_V3_EXPORT HotfixInfo + : public ModelBase +{ +public: + HotfixInfo(); + virtual ~HotfixInfo(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// HotfixInfo members + + /// + /// 热补丁版本 + /// + + std::string getVersion() const; + bool versionIsSet() const; + void unsetversion(); + void setVersion(const std::string& value); + + /// + /// 通用非通用信息,common=通用补丁,certain=定制补丁 + /// + + std::string getCommonPatch() const; + bool commonPatchIsSet() const; + void unsetcommonPatch(); + void setCommonPatch(const std::string& value); + + /// + /// 是否和备份相关 + /// + + bool isBackupSensitive() const; + bool backupSensitiveIsSet() const; + void unsetbackupSensitive(); + void setBackupSensitive(bool value); + + /// + /// 补丁的描述信息 + /// + + std::string getDescripition() const; + bool descripitionIsSet() const; + void unsetdescripition(); + void setDescripition(const std::string& value); + + +protected: + std::string version_; + bool versionIsSet_; + std::string commonPatch_; + bool commonPatchIsSet_; + bool backupSensitive_; + bool backupSensitiveIsSet_; + std::string descripition_; + bool descripitionIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_HotfixInfo_H_ diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/HotfixVersionInfo.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/HotfixVersionInfo.h new file mode 100644 index 000000000..803b4e8b7 --- /dev/null +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/HotfixVersionInfo.h @@ -0,0 +1,75 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_HotfixVersionInfo_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_HotfixVersionInfo_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 热补丁信息。 +/// +class HUAWEICLOUD_GAUSSDBFOROPENGAUSS_V3_EXPORT HotfixVersionInfo + : public ModelBase +{ +public: + HotfixVersionInfo(); + virtual ~HotfixVersionInfo(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// HotfixVersionInfo members + + /// + /// 热补丁版本。 + /// + + std::string getVersion() const; + bool versionIsSet() const; + void unsetversion(); + void setVersion(const std::string& value); + + /// + /// 热补丁升级完成时间列表。 热补丁升级完成时间,格式为“yyyy-mm-dd hh:mm:ss timezone”。 其中timezone是指时区。 + /// + + std::string getUpgradeFinishedTime() const; + bool upgradeFinishedTimeIsSet() const; + void unsetupgradeFinishedTime(); + void setUpgradeFinishedTime(const std::string& value); + + +protected: + std::string version_; + bool versionIsSet_; + std::string upgradeFinishedTime_; + bool upgradeFinishedTimeIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_HotfixVersionInfo_H_ diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ListInstanceDatastore.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ListInstanceDatastore.h new file mode 100644 index 000000000..fb20d09e4 --- /dev/null +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ListInstanceDatastore.h @@ -0,0 +1,121 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_ListInstanceDatastore_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_ListInstanceDatastore_H_ + + +#include + +#include +#include +#include + +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 数据库信息。 +/// +class HUAWEICLOUD_GAUSSDBFOROPENGAUSS_V3_EXPORT ListInstanceDatastore + : public ModelBase +{ +public: + ListInstanceDatastore(); + virtual ~ListInstanceDatastore(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListInstanceDatastore members + + /// + /// 数据库引擎。 + /// + + std::string getType() const; + bool typeIsSet() const; + void unsettype(); + void setType(const std::string& value); + + /// + /// 数据库大版本。 + /// + + std::string getVersion() const; + bool versionIsSet() const; + void unsetversion(); + void setVersion(const std::string& value); + + /// + /// 数据库小版本。 + /// + + std::string getCompleteVersion() const; + bool completeVersionIsSet() const; + void unsetcompleteVersion(); + void setCompleteVersion(const std::string& value); + + /// + /// 数据库正在升级的目标版本。 + /// + + std::string getTargetVersion() const; + bool targetVersionIsSet() const; + void unsettargetVersion(); + void setTargetVersion(const std::string& value); + + /// + /// 数据库内核版本 + /// + + std::string getCompleteKernelVersion() const; + bool completeKernelVersionIsSet() const; + void unsetcompleteKernelVersion(); + void setCompleteKernelVersion(const std::string& value); + + /// + /// 热补丁信息列表 + /// + + std::vector& getHotfixVersionInfos(); + bool hotfixVersionInfosIsSet() const; + void unsethotfixVersionInfos(); + void setHotfixVersionInfos(const std::vector& value); + + +protected: + std::string type_; + bool typeIsSet_; + std::string version_; + bool versionIsSet_; + std::string completeVersion_; + bool completeVersionIsSet_; + std::string targetVersion_; + bool targetVersionIsSet_; + std::string completeKernelVersion_; + bool completeKernelVersionIsSet_; + std::vector hotfixVersionInfos_; + bool hotfixVersionInfosIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_ListInstanceDatastore_H_ diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ListInstanceDetailsRequest.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ListInstanceDetailsRequest.h new file mode 100644 index 000000000..e425c9494 --- /dev/null +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ListInstanceDetailsRequest.h @@ -0,0 +1,182 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_ListInstanceDetailsRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_ListInstanceDetailsRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GAUSSDBFOROPENGAUSS_V3_EXPORT ListInstanceDetailsRequest + : public ModelBase +{ +public: + ListInstanceDetailsRequest(); + virtual ~ListInstanceDetailsRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListInstanceDetailsRequest members + + /// + /// 语言 + /// + + std::string getXLanguage() const; + bool xLanguageIsSet() const; + void unsetxLanguage(); + void setXLanguage(const std::string& value); + + /// + /// 实例ID。 “\\*”为系统保留字符,如果id是以“\\*”起始,表示按照\\*后面的值模糊匹配,否则,按照id精确匹配查询。不能只传入“\\*”。 + /// + + std::string getId() const; + bool idIsSet() const; + void unsetid(); + void setId(const std::string& value); + + /// + /// 实例名称。 “\\*”为系统保留字符,如果name是以“\\*”起始,表示按照\\*后面的值模糊匹配,否则,按照name精确匹配查询。不能只传入“\\*”。 + /// + + std::string getName() const; + bool nameIsSet() const; + void unsetname(); + void setName(const std::string& value); + + /// + /// 按照实例类型查询。目前仅支持取值“Enterprise”(区分大小写),对应分布式实例(企业版)。当前支持取值\"Ha\"(区分大小写),对应主备式实例。 + /// + + std::string getType() const; + bool typeIsSet() const; + void unsettype(); + void setType(const std::string& value); + + /// + /// 数据库类型,区分大小写。 - GaussDB + /// + + std::string getDatastoreType() const; + bool datastoreTypeIsSet() const; + void unsetdatastoreType(); + void setDatastoreType(const std::string& value); + + /// + /// 虚拟私有云ID。 方法1:登录虚拟私有云服务的控制台界面,在虚拟私有云的详情页面查找VPC ID。 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考[查询VPC列表](https://support.huaweicloud.com/api-vpc/vpc_api01_0003.html)。 + /// + + std::string getVpcId() const; + bool vpcIdIsSet() const; + void unsetvpcId(); + void setVpcId(const std::string& value); + + /// + /// 子网的网络ID信息。 - 方法1:登录虚拟私有云服务的控制台界面,单击VPC下的子网,进入子网详情页面,查找网络ID。 - 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考[查询子网列表](https://support.huaweicloud.com/api-vpc/vpc_subnet01_0003.html)。 + /// + + std::string getSubnetId() const; + bool subnetIdIsSet() const; + void unsetsubnetId(); + void setSubnetId(const std::string& value); + + /// + /// 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。 + /// + + int32_t getOffset() const; + bool offsetIsSet() const; + void unsetoffset(); + void setOffset(int32_t value); + + /// + /// 查询记录数。默认为100,不能为负数,最小值为1,最大值为100 + /// + + int32_t getLimit() const; + bool limitIsSet() const; + void unsetlimit(); + void setLimit(int32_t value); + + /// + /// 根据实例标签键值对进行查询。 {key}表示标签键,不可以为空或重复。最大长度127个unicode字符。key不能为空或者空字符串,不能为空格,使用之前先trim前后半角空格。不能包含+/?#&=,%特殊字符。 {value}表示标签值,可以为空。最大长度255个unicode字符,使用之前先trim 前后半角空格。不能包含+/?#&=,%特殊字符。 如果value为空,则表示any_value(查询任意value)。 如果同时使用多个标签键值对进行查询,中间使用逗号分隔开,最多包含10组。 + /// + + std::vector& getTags(); + bool tagsIsSet() const; + void unsettags(); + void setTags(const std::vector& value); + + /// + /// 计费模式。 取值范围: postPaid:后付费,即按需付费。 prePaid:预付费,即包年/包月。 + /// + + std::string getChargeMode() const; + bool chargeModeIsSet() const; + void unsetchargeMode(); + void setChargeMode(const std::string& value); + + +protected: + std::string xLanguage_; + bool xLanguageIsSet_; + std::string id_; + bool idIsSet_; + std::string name_; + bool nameIsSet_; + std::string type_; + bool typeIsSet_; + std::string datastoreType_; + bool datastoreTypeIsSet_; + std::string vpcId_; + bool vpcIdIsSet_; + std::string subnetId_; + bool subnetIdIsSet_; + int32_t offset_; + bool offsetIsSet_; + int32_t limit_; + bool limitIsSet_; + std::vector tags_; + bool tagsIsSet_; + std::string chargeMode_; + bool chargeModeIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ListInstanceDetailsRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_ListInstanceDetailsRequest_H_ diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ListInstanceDetailsResponse.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ListInstanceDetailsResponse.h new file mode 100644 index 000000000..41bf56c22 --- /dev/null +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ListInstanceDetailsResponse.h @@ -0,0 +1,79 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_ListInstanceDetailsResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_ListInstanceDetailsResponse_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GAUSSDBFOROPENGAUSS_V3_EXPORT ListInstanceDetailsResponse + : public ModelBase, public HttpResponse +{ +public: + ListInstanceDetailsResponse(); + virtual ~ListInstanceDetailsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListInstanceDetailsResponse members + + /// + /// 实例信息。 + /// + + std::vector& getInstances(); + bool instancesIsSet() const; + void unsetinstances(); + void setInstances(const std::vector& value); + + /// + /// 总记录数。 + /// + + int32_t getTotalCount() const; + bool totalCountIsSet() const; + void unsettotalCount(); + void setTotalCount(int32_t value); + + +protected: + std::vector instances_; + bool instancesIsSet_; + int32_t totalCount_; + bool totalCountIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_ListInstanceDetailsResponse_H_ diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ListInstancesResult.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ListInstancesResult.h new file mode 100644 index 000000000..f99226811 --- /dev/null +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ListInstancesResult.h @@ -0,0 +1,415 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_ListInstancesResult_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_ListInstancesResult_H_ + + +#include + +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 实例信息。 +/// +class HUAWEICLOUD_GAUSSDBFOROPENGAUSS_V3_EXPORT ListInstancesResult + : public ModelBase +{ +public: + ListInstancesResult(); + virtual ~ListInstancesResult(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListInstancesResult 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); + + /// + /// 实例状态。 取值: 值为“BUILD”,表示实例正在创建。 值为“ACTIVE”,表示实例正常。 值为“FAILED”,表示实例异常。 值为“FROZEN”,表示实例冻结。 值为“EXPANDING”,表示实例正在扩容CN或DN。 值为“REBOOTING”,表示实例正在重启。 值为“UPGRADING”,表示实例正在升级。 值为“RESTORING”,表示实例正在恢复。 值为“BACKING UP”,表示实例正在进行备份。 值为“REDUCING REPLICATION”,表示实例正在降副本。 值为“STORAGE FULL”,表示实例磁盘空间满。 值为“REPAIRING”,表示实例正在修复。 + /// + + std::string getStatus() const; + bool statusIsSet() const; + void unsetstatus(); + void setStatus(const std::string& value); + + /// + /// 实例内网IP地址列表。分布式CN所在的弹性云服务器创建成功后该值存在,主备版DN所在的弹性云服务器创建成功后该值存在,其他情况下为空字符串。 + /// + + std::vector& getPrivateIps(); + bool privateIpsIsSet() const; + void unsetprivateIps(); + void setPrivateIps(const std::vector& value); + + /// + /// 实例外网IP地址列表。绑定弹性公网IP后,该值不为空。 + /// + + std::vector& getPublicIps(); + bool publicIpsIsSet() const; + void unsetpublicIps(); + void setPublicIps(const std::vector& value); + + /// + /// 数据库端口号。GaussDB数据库端口设置范围为1024~39998(其中2378,2379,2380,4999,5000,5999,6000,6001,8097,8098,20049,20050,21731,21732被系统占用不可设置)。 当不传该参数时,默认端口如下:8000。 + /// + + int32_t getPort() const; + bool portIsSet() const; + void unsetport(); + void setPort(int32_t value); + + /// + /// 实例类型,取值为 \"Enterprise\",对应于分布式实例(企业版)。取值为\"Ha\",对应于主备版实例。 + /// + + std::string getType() const; + bool typeIsSet() const; + void unsettype(); + void setType(const std::string& value); + + /// + /// + /// + + ListHaResult getHa() const; + bool haIsSet() const; + void unsetha(); + void setHa(const ListHaResult& value); + + /// + /// 实例副本数。 + /// + + int32_t getReplicaNum() const; + bool replicaNumIsSet() const; + void unsetreplicaNum(); + void setReplicaNum(int32_t value); + + /// + /// 实例所在区域。 + /// + + std::string getRegion() const; + bool regionIsSet() const; + void unsetregion(); + void setRegion(const std::string& value); + + /// + /// + /// + + ListInstanceDatastore getDatastore() const; + bool datastoreIsSet() const; + void unsetdatastore(); + void setDatastore(const ListInstanceDatastore& value); + + /// + /// 创建时间,格式为“yyyy-mm-dd hh:mm:ss timezone”。 其中timezone是指时区。 说明:创建时该值为实例下发创建的时间,创建完成后,该值为创建完成时间。 + /// + + std::string getCreated() const; + bool createdIsSet() const; + void unsetcreated(); + void setCreated(const std::string& value); + + /// + /// 更新时间,格式与“created”字段对应格式完全相同。 说明:创建时返回值为空,数据库实例创建成功后该值不为空。 + /// + + std::string getUpdated() const; + bool updatedIsSet() const; + void unsetupdated(); + void setUpdated(const std::string& value); + + /// + /// 默认用户名。 + /// + + std::string getDbUserName() const; + bool dbUserNameIsSet() const; + void unsetdbUserName(); + void setDbUserName(const std::string& value); + + /// + /// 虚拟私有云ID。 + /// + + std::string getVpcId() const; + bool vpcIdIsSet() const; + void unsetvpcId(); + void setVpcId(const std::string& value); + + /// + /// 子网的网络ID信息。 + /// + + std::string getSubnetId() const; + bool subnetIdIsSet() const; + void unsetsubnetId(); + void setSubnetId(const std::string& value); + + /// + /// 安全组ID。 + /// + + std::string getSecurityGroupId() const; + bool securityGroupIdIsSet() const; + void unsetsecurityGroupId(); + void setSecurityGroupId(const std::string& value); + + /// + /// 规格码。参考[表1](https://support.huaweicloud.com/api-opengauss/opengauss_api_0037.html#opengauss_api_0037__ted9b9d433c8a4c52884e199e17f94479)中GaussDB的“规格编码”列内容获取。 + /// + + std::string getFlavorRef() const; + bool flavorRefIsSet() const; + void unsetflavorRef(); + void setFlavorRef(const std::string& value); + + /// + /// + /// + + ListFlavorInfo getFlavorInfo() const; + bool flavorInfoIsSet() const; + void unsetflavorInfo(); + void setFlavorInfo(const ListFlavorInfo& value); + + /// + /// + /// + + ListVolume getVolume() const; + bool volumeIsSet() const; + void unsetvolume(); + void setVolume(const ListVolume& value); + + /// + /// 数据库切换策略。取值为“reliability”或“availability”,分别对应于可靠性优先和可用性优先。 若创建时没有选择切换策略,则不予显示。 + /// + + std::string getSwitchStrategy() const; + bool switchStrategyIsSet() const; + void unsetswitchStrategy(); + void setSwitchStrategy(const std::string& value); + + /// + /// + /// + + OpenGaussBackupStrategyForListResponse getBackupStrategy() const; + bool backupStrategyIsSet() const; + void unsetbackupStrategy(); + void setBackupStrategy(const OpenGaussBackupStrategyForListResponse& value); + + /// + /// 可维护时间窗,为UTC时间。 + /// + + std::string getMaintenanceWindow() const; + bool maintenanceWindowIsSet() const; + void unsetmaintenanceWindow(); + void setMaintenanceWindow(const std::string& value); + + /// + /// 实例节点信息列表。 + /// + + std::vector& getNodes(); + bool nodesIsSet() const; + void unsetnodes(); + void setNodes(const std::vector& value); + + /// + /// 企业项目标签ID。非企业项目账号的实例,企业项目默认0。 + /// + + std::string getEnterpriseProjectId() const; + bool enterpriseProjectIdIsSet() const; + void unsetenterpriseProjectId(); + void setEnterpriseProjectId(const std::string& value); + + /// + /// basic为基础版 ,enterprise为企业版。 + /// + + std::string getInstanceMode() const; + bool instanceModeIsSet() const; + void unsetinstanceMode(); + void setInstanceMode(const std::string& value); + + /// + /// 磁盘加密密钥ID。只有创建磁盘加密实例才会显示该参数。 + /// + + std::string getDiskEncryptionId() const; + bool diskEncryptionIdIsSet() const; + void unsetdiskEncryptionId(); + void setDiskEncryptionId(const std::string& value); + + /// + /// + /// + + OpenGaussChargeInfoListResponse getChargeInfo() const; + bool chargeInfoIsSet() const; + void unsetchargeInfo(); + void setChargeInfo(const OpenGaussChargeInfoListResponse& value); + + /// + /// 时区。 + /// + + std::string getTimeZone() const; + bool timeZoneIsSet() const; + void unsettimeZone(); + void setTimeZone(const std::string& value); + + /// + /// 标签列表,没有标签不返回该参数。 + /// + + std::vector& getTags(); + bool tagsIsSet() const; + void unsettags(); + void setTags(const std::vector& value); + + /// + /// 实例磁盘的可使用率,值范围[0-1],值保留四位小数。 + /// + + std::string getDiskUsage() const; + bool diskUsageIsSet() const; + void unsetdiskUsage(); + void setDiskUsage(const std::string& value); + + /// + /// + /// + + MySQLCompatibilityResult getMysqlCompatibility() const; + bool mysqlCompatibilityIsSet() const; + void unsetmysqlCompatibility(); + void setMysqlCompatibility(const MySQLCompatibilityResult& value); + + +protected: + std::string id_; + bool idIsSet_; + std::string name_; + bool nameIsSet_; + std::string status_; + bool statusIsSet_; + std::vector privateIps_; + bool privateIpsIsSet_; + std::vector publicIps_; + bool publicIpsIsSet_; + int32_t port_; + bool portIsSet_; + std::string type_; + bool typeIsSet_; + ListHaResult ha_; + bool haIsSet_; + int32_t replicaNum_; + bool replicaNumIsSet_; + std::string region_; + bool regionIsSet_; + ListInstanceDatastore datastore_; + bool datastoreIsSet_; + std::string created_; + bool createdIsSet_; + std::string updated_; + bool updatedIsSet_; + std::string dbUserName_; + bool dbUserNameIsSet_; + std::string vpcId_; + bool vpcIdIsSet_; + std::string subnetId_; + bool subnetIdIsSet_; + std::string securityGroupId_; + bool securityGroupIdIsSet_; + std::string flavorRef_; + bool flavorRefIsSet_; + ListFlavorInfo flavorInfo_; + bool flavorInfoIsSet_; + ListVolume volume_; + bool volumeIsSet_; + std::string switchStrategy_; + bool switchStrategyIsSet_; + OpenGaussBackupStrategyForListResponse backupStrategy_; + bool backupStrategyIsSet_; + std::string maintenanceWindow_; + bool maintenanceWindowIsSet_; + std::vector nodes_; + bool nodesIsSet_; + std::string enterpriseProjectId_; + bool enterpriseProjectIdIsSet_; + std::string instanceMode_; + bool instanceModeIsSet_; + std::string diskEncryptionId_; + bool diskEncryptionIdIsSet_; + OpenGaussChargeInfoListResponse chargeInfo_; + bool chargeInfoIsSet_; + std::string timeZone_; + bool timeZoneIsSet_; + std::vector tags_; + bool tagsIsSet_; + std::string diskUsage_; + bool diskUsageIsSet_; + MySQLCompatibilityResult mysqlCompatibility_; + bool mysqlCompatibilityIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_ListInstancesResult_H_ diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/MySQLCompatibilityResult.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/MySQLCompatibilityResult.h new file mode 100644 index 000000000..e33ac7150 --- /dev/null +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/MySQLCompatibilityResult.h @@ -0,0 +1,64 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_MySQLCompatibilityResult_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_MySQLCompatibilityResult_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_GAUSSDBFOROPENGAUSS_V3_EXPORT MySQLCompatibilityResult + : public ModelBase +{ +public: + MySQLCompatibilityResult(); + virtual ~MySQLCompatibilityResult(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// MySQLCompatibilityResult members + + /// + /// MySQL兼容端口 + /// + + std::string getPort() const; + bool portIsSet() const; + void unsetport(); + void setPort(const std::string& value); + + +protected: + std::string port_; + bool portIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_MySQLCompatibilityResult_H_ diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/OpenGaussInstanceRequest.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/OpenGaussInstanceRequest.h index 1612f8064..16f862753 100644 --- a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/OpenGaussInstanceRequest.h +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/OpenGaussInstanceRequest.h @@ -224,7 +224,7 @@ class HUAWEICLOUD_GAUSSDBFOROPENGAUSS_V3_EXPORT OpenGaussInstanceRequest void setCoordinatorNum(int32_t value); /// - /// 实例副本数,支持取值3。不填默认为3。仅支持1.3.0及以上版本的实例。 说明: 2副本选项仅针对特定用户开放,如需配置白名单权限,您可以在管理控制台右上角,选择“[工单 > 新建工单](https://auth.huaweicloud.com/authui/login.html?service=https%3A%2F%2Fconsole.huaweicloud.com%2Fticket%2F%3Fregion%3Dcn-north-1%26locale%3Dzh-cn%26cloud_route_state%3D%2Fticketindex%2FcreateIndex#/login)”,提交开通白名单的申请。 + /// 实例副本数,支持取值3。不填默认为3。仅支持1.3.0及以上版本的实例。 /// int32_t getReplicaNum() const; diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/OpenGaussInstanceRequestBody.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/OpenGaussInstanceRequestBody.h index 7df0655e0..2f380f2b4 100644 --- a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/OpenGaussInstanceRequestBody.h +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/OpenGaussInstanceRequestBody.h @@ -224,7 +224,7 @@ class HUAWEICLOUD_GAUSSDBFOROPENGAUSS_V3_EXPORT OpenGaussInstanceRequestBody void setCoordinatorNum(int32_t value); /// - /// 实例副本数,支持取值3。不填默认为3。仅支持1.3.0及以上版本的实例。 说明: 2副本选项仅针对特定用户开放,如需配置白名单权限,您可以在管理控制台右上角,选择“[工单 > 新建工单](https://auth.huaweicloud.com/authui/login.html?service=https%3A%2F%2Fconsole.huaweicloud.com%2Fticket%2F%3Fregion%3Dcn-north-1%26locale%3Dzh-cn%26cloud_route_state%3D%2Fticketindex%2FcreateIndex#/login)”,提交开通白名单的申请。 + /// 实例副本数,支持取值3。不填默认为3。仅支持1.3.0及以上版本的实例。 /// int32_t getReplicaNum() const; diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/SetNewBackupPolicyRequest.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/SetNewBackupPolicyRequest.h new file mode 100644 index 000000000..3f43fac65 --- /dev/null +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/SetNewBackupPolicyRequest.h @@ -0,0 +1,94 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_SetNewBackupPolicyRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_SetNewBackupPolicyRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GAUSSDBFOROPENGAUSS_V3_EXPORT SetNewBackupPolicyRequest + : public ModelBase +{ +public: + SetNewBackupPolicyRequest(); + virtual ~SetNewBackupPolicyRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// SetNewBackupPolicyRequest members + + /// + /// 语言 + /// + + std::string getXLanguage() const; + bool xLanguageIsSet() const; + void unsetxLanguage(); + void setXLanguage(const std::string& value); + + /// + /// 实例ID,严格匹配UUID规则。 + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// + /// + + SetNewBackupPolicyRequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const SetNewBackupPolicyRequestBody& value); + + +protected: + std::string xLanguage_; + bool xLanguageIsSet_; + std::string instanceId_; + bool instanceIdIsSet_; + SetNewBackupPolicyRequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + SetNewBackupPolicyRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_SetNewBackupPolicyRequest_H_ diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/SetNewBackupPolicyRequestBody.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/SetNewBackupPolicyRequestBody.h new file mode 100644 index 000000000..162231d1a --- /dev/null +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/SetNewBackupPolicyRequestBody.h @@ -0,0 +1,64 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_SetNewBackupPolicyRequestBody_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_SetNewBackupPolicyRequestBody_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// 设置备份策略请求体 +/// +class HUAWEICLOUD_GAUSSDBFOROPENGAUSS_V3_EXPORT SetNewBackupPolicyRequestBody + : public ModelBase +{ +public: + SetNewBackupPolicyRequestBody(); + virtual ~SetNewBackupPolicyRequestBody(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// SetNewBackupPolicyRequestBody members + + /// + /// + /// + + BackupPolicyInfo getBackupPolicy() const; + bool backupPolicyIsSet() const; + void unsetbackupPolicy(); + void setBackupPolicy(const BackupPolicyInfo& value); + + +protected: + BackupPolicyInfo backupPolicy_; + bool backupPolicyIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_SetNewBackupPolicyRequestBody_H_ diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/SetNewBackupPolicyResponse.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/SetNewBackupPolicyResponse.h new file mode 100644 index 000000000..1398eb999 --- /dev/null +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/SetNewBackupPolicyResponse.h @@ -0,0 +1,55 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_SetNewBackupPolicyResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_SetNewBackupPolicyResponse_H_ + + +#include + +#include +#include +#include + + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GAUSSDBFOROPENGAUSS_V3_EXPORT SetNewBackupPolicyResponse + : public ModelBase, public HttpResponse +{ +public: + SetNewBackupPolicyResponse(); + virtual ~SetNewBackupPolicyResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// SetNewBackupPolicyResponse members + + +protected: + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_SetNewBackupPolicyResponse_H_ diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ShowBatchUpgradeCandidateVersionsRequest.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ShowBatchUpgradeCandidateVersionsRequest.h new file mode 100644 index 000000000..cd0ff2fd3 --- /dev/null +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ShowBatchUpgradeCandidateVersionsRequest.h @@ -0,0 +1,83 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_ShowBatchUpgradeCandidateVersionsRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_ShowBatchUpgradeCandidateVersionsRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GAUSSDBFOROPENGAUSS_V3_EXPORT ShowBatchUpgradeCandidateVersionsRequest + : public ModelBase +{ +public: + ShowBatchUpgradeCandidateVersionsRequest(); + virtual ~ShowBatchUpgradeCandidateVersionsRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ShowBatchUpgradeCandidateVersionsRequest members + + /// + /// 语言[zh-cn, en-us] + /// + + std::string getXLanguage() const; + bool xLanguageIsSet() const; + void unsetxLanguage(); + void setXLanguage(const std::string& value); + + /// + /// + /// + + UpgradeInstancesRequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const UpgradeInstancesRequestBody& value); + + +protected: + std::string xLanguage_; + bool xLanguageIsSet_; + UpgradeInstancesRequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ShowBatchUpgradeCandidateVersionsRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_ShowBatchUpgradeCandidateVersionsRequest_H_ diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ShowBatchUpgradeCandidateVersionsResponse.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ShowBatchUpgradeCandidateVersionsResponse.h new file mode 100644 index 000000000..35362e360 --- /dev/null +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ShowBatchUpgradeCandidateVersionsResponse.h @@ -0,0 +1,103 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_ShowBatchUpgradeCandidateVersionsResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_ShowBatchUpgradeCandidateVersionsResponse_H_ + + +#include + +#include +#include +#include + +#include +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GAUSSDBFOROPENGAUSS_V3_EXPORT ShowBatchUpgradeCandidateVersionsResponse + : public ModelBase, public HttpResponse +{ +public: + ShowBatchUpgradeCandidateVersionsResponse(); + virtual ~ShowBatchUpgradeCandidateVersionsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ShowBatchUpgradeCandidateVersionsResponse members + + /// + /// 升级类型信息列表 + /// + + std::vector& getUpgradeTypeList(); + bool upgradeTypeListIsSet() const; + void unsetupgradeTypeList(); + void setUpgradeTypeList(const std::vector& value); + + /// + /// 升级目标版本,没有在滚动升级中返回null + /// + + std::string getTargetVersion() const; + bool targetVersionIsSet() const; + void unsettargetVersion(); + void setTargetVersion(const std::string& value); + + /// + /// 可以升级的版本,包括大小版本 + /// + + std::vector& getUpgradeCandidateVersions(); + bool upgradeCandidateVersionsIsSet() const; + void unsetupgradeCandidateVersions(); + void setUpgradeCandidateVersions(const std::vector& value); + + /// + /// 可以升级的热补丁信息 + /// + + std::vector& getHotfixUpgradeInfos(); + bool hotfixUpgradeInfosIsSet() const; + void unsethotfixUpgradeInfos(); + void setHotfixUpgradeInfos(const std::vector& value); + + +protected: + std::vector upgradeTypeList_; + bool upgradeTypeListIsSet_; + std::string targetVersion_; + bool targetVersionIsSet_; + std::vector upgradeCandidateVersions_; + bool upgradeCandidateVersionsIsSet_; + std::vector hotfixUpgradeInfos_; + bool hotfixUpgradeInfosIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_ShowBatchUpgradeCandidateVersionsResponse_H_ diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/UpgradeInstancesRequestBody.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/UpgradeInstancesRequestBody.h new file mode 100644 index 000000000..378e8affb --- /dev/null +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/UpgradeInstancesRequestBody.h @@ -0,0 +1,65 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_UpgradeInstancesRequestBody_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_UpgradeInstancesRequestBody_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// GaussDB批量升级查询接口传参参数。 +/// +class HUAWEICLOUD_GAUSSDBFOROPENGAUSS_V3_EXPORT UpgradeInstancesRequestBody + : public ModelBase +{ +public: + UpgradeInstancesRequestBody(); + virtual ~UpgradeInstancesRequestBody(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpgradeInstancesRequestBody members + + /// + /// 批量实例ID + /// + + std::vector& getInstanceIds(); + bool instanceIdsIsSet() const; + void unsetinstanceIds(); + void setInstanceIds(const std::vector& value); + + +protected: + std::vector instanceIds_; + bool instanceIdsIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_UpgradeInstancesRequestBody_H_ diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/UpgradeInstancesVersionRequest.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/UpgradeInstancesVersionRequest.h new file mode 100644 index 000000000..3ce9f88c8 --- /dev/null +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/UpgradeInstancesVersionRequest.h @@ -0,0 +1,83 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_UpgradeInstancesVersionRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_UpgradeInstancesVersionRequest_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_GAUSSDBFOROPENGAUSS_V3_EXPORT UpgradeInstancesVersionRequest + : public ModelBase +{ +public: + UpgradeInstancesVersionRequest(); + virtual ~UpgradeInstancesVersionRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpgradeInstancesVersionRequest members + + /// + /// 语言 + /// + + std::string getXLanguage() const; + bool xLanguageIsSet() const; + void unsetxLanguage(); + void setXLanguage(const std::string& value); + + /// + /// + /// + + GaussDBUpgradeInstancesVersionRequest getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const GaussDBUpgradeInstancesVersionRequest& value); + + +protected: + std::string xLanguage_; + bool xLanguageIsSet_; + GaussDBUpgradeInstancesVersionRequest body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + UpgradeInstancesVersionRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_UpgradeInstancesVersionRequest_H_ diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/UpgradeInstancesVersionResponse.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/UpgradeInstancesVersionResponse.h new file mode 100644 index 000000000..21f799d4a --- /dev/null +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/UpgradeInstancesVersionResponse.h @@ -0,0 +1,112 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_UpgradeInstancesVersionResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_UpgradeInstancesVersionResponse_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_GAUSSDBFOROPENGAUSS_V3_EXPORT UpgradeInstancesVersionResponse + : public ModelBase, public HttpResponse +{ +public: + UpgradeInstancesVersionResponse(); + virtual ~UpgradeInstancesVersionResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpgradeInstancesVersionResponse members + + /// + /// 任务id。 + /// + + std::vector& getJobIds(); + bool jobIdsIsSet() const; + void unsetjobIds(); + void setJobIds(const std::vector& value); + + /// + /// 下发成功的实例数量 + /// + + int32_t getSucceededNum() const; + bool succeededNumIsSet() const; + void unsetsucceededNum(); + void setSucceededNum(int32_t value); + + /// + /// 下发失败的实例数量 + /// + + int32_t getFailedNum() const; + bool failedNumIsSet() const; + void unsetfailedNum(); + void setFailedNum(int32_t value); + + /// + /// 下发失败的实例ID列表 + /// + + std::vector& getFailedInstanceIds(); + bool failedInstanceIdsIsSet() const; + void unsetfailedInstanceIds(); + void setFailedInstanceIds(const std::vector& value); + + /// + /// 下发失败错误信息列表 + /// + + std::vector& getErrorMessages(); + bool errorMessagesIsSet() const; + void unseterrorMessages(); + void setErrorMessages(const std::vector& value); + + +protected: + std::vector jobIds_; + bool jobIdsIsSet_; + int32_t succeededNum_; + bool succeededNumIsSet_; + int32_t failedNum_; + bool failedNumIsSet_; + std::vector failedInstanceIds_; + bool failedInstanceIdsIsSet_; + std::vector errorMessages_; + bool errorMessagesIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_UpgradeInstancesVersionResponse_H_ diff --git a/gaussdbforopengauss/src/v3/GaussDBforopenGaussClient.cpp b/gaussdbforopengauss/src/v3/GaussDBforopenGaussClient.cpp index ded3ba7b0..ca38d2180 100644 --- a/gaussdbforopengauss/src/v3/GaussDBforopenGaussClient.cpp +++ b/gaussdbforopengauss/src/v3/GaussDBforopenGaussClient.cpp @@ -168,6 +168,39 @@ std::shared_ptr GaussDBforopenGaussClient::attachEip(AttachEi return localVarResult; } +std::shared_ptr GaussDBforopenGaussClient::confirmRestoredData(ConfirmRestoredDataRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/confirm-restore-data"; + + 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.xLanguageIsSet()) { + localVarHeaderParams["X-Language"] = parameterToString(request.getXLanguage()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("POST", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBforopenGaussMeta::genRequestDefForConfirmRestoredData()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} std::shared_ptr GaussDBforopenGaussClient::copyConfiguration(CopyConfigurationRequest &request) { std::string localVarPath = "/v3/{project_id}/configurations/{config_id}/copy"; @@ -1620,6 +1653,68 @@ std::shared_ptr GaussDBforopenGaussClient::listHi return localVarResult; } +std::shared_ptr GaussDBforopenGaussClient::listInstanceDetails(ListInstanceDetailsRequest &request) +{ + std::string localVarPath = "/v3.2/{project_id}/instances"; + + 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.idIsSet()) { + localVarQueryParams["id"] = parameterToString(request.getId()); + } + if (request.nameIsSet()) { + localVarQueryParams["name"] = parameterToString(request.getName()); + } + if (request.typeIsSet()) { + localVarQueryParams["type"] = parameterToString(request.getType()); + } + if (request.datastoreTypeIsSet()) { + localVarQueryParams["datastore_type"] = parameterToString(request.getDatastoreType()); + } + if (request.vpcIdIsSet()) { + localVarQueryParams["vpc_id"] = parameterToString(request.getVpcId()); + } + if (request.subnetIdIsSet()) { + localVarQueryParams["subnet_id"] = parameterToString(request.getSubnetId()); + } + if (request.offsetIsSet()) { + localVarQueryParams["offset"] = parameterToString(request.getOffset()); + } + if (request.limitIsSet()) { + localVarQueryParams["limit"] = parameterToString(request.getLimit()); + } + if (request.tagsIsSet()) { + localVarQueryParams["tags"] = parameterToString(request.getTags()); + } + if (request.chargeModeIsSet()) { + localVarQueryParams["charge_mode"] = parameterToString(request.getChargeMode()); + } + if (request.xLanguageIsSet()) { + localVarHeaderParams["X-Language"] = parameterToString(request.getXLanguage()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBforopenGaussMeta::genRequestDefForListInstanceDetails()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} std::shared_ptr GaussDBforopenGaussClient::listInstanceErrorLogs(ListInstanceErrorLogsRequest &request) { std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/error-log"; @@ -2593,6 +2688,51 @@ std::shared_ptr GaussDBforopenGaussClient::setDbUserPwd(Se return localVarResult; } +std::shared_ptr GaussDBforopenGaussClient::setNewBackupPolicy(SetNewBackupPolicyRequest &request) +{ + std::string localVarPath = "/v3.1/{project_id}/instances/{instance_id}/backups/policy"; + + 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;charset=UTF-8", 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("PUT", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBforopenGaussMeta::genRequestDefForSetNewBackupPolicy()); + + 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 GaussDBforopenGaussClient::setRecyclePolicy(SetRecyclePolicyRequest &request) { std::string localVarPath = "/v3/{project_id}/recycle-policy"; @@ -2700,6 +2840,50 @@ std::shared_ptr GaussDBforopenGaussClient::showBalanc return localVarResult; } +std::shared_ptr GaussDBforopenGaussClient::showBatchUpgradeCandidateVersions(ShowBatchUpgradeCandidateVersionsRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/instances/db-upgrade/candidate-versions"; + + 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;charset=UTF-8", 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("POST", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBforopenGaussMeta::genRequestDefForShowBatchUpgradeCandidateVersions()); + + 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 GaussDBforopenGaussClient::showConfigurationDetail(ShowConfigurationDetailRequest &request) { std::string localVarPath = "/v3/{project_id}/configurations/{config_id}"; @@ -3445,6 +3629,50 @@ std::shared_ptr GaussDBforopenGaussClient::upgra return localVarResult; } +std::shared_ptr GaussDBforopenGaussClient::upgradeInstancesVersion(UpgradeInstancesVersionRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/instances/db-upgrade"; + + 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;charset=UTF-8", 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("PUT", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBforopenGaussMeta::genRequestDefForUpgradeInstancesVersion()); + + 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 GaussDBforopenGaussClient::validateParaGroupName(ValidateParaGroupNameRequest &request) { std::string localVarPath = "/v3/{project_id}/configurations/name-validation"; diff --git a/gaussdbforopengauss/src/v3/GaussDBforopenGaussMeta.cpp b/gaussdbforopengauss/src/v3/GaussDBforopenGaussMeta.cpp index 01ddc3d06..51a3df0e2 100644 --- a/gaussdbforopengauss/src/v3/GaussDBforopenGaussMeta.cpp +++ b/gaussdbforopengauss/src/v3/GaussDBforopenGaussMeta.cpp @@ -50,6 +50,16 @@ HttpRequestDef GaussDBforopenGaussMeta::genRequestDefForAttachEip() { return reqDefBuilder; } +HttpRequestDef GaussDBforopenGaussMeta::genRequestDefForConfirmRestoredData() { + HttpRequestDef reqDefBuilder; + FieldDef headerParamXLanguage; + reqDefBuilder.withRequestField(headerParamXLanguage + .withName("XLanguage") + .withJsonTag("X-Language") + .withLocationType(Header_)); + return reqDefBuilder; +} + HttpRequestDef GaussDBforopenGaussMeta::genRequestDefForCopyConfiguration() { HttpRequestDef reqDefBuilder; FieldDef headerParamXLanguage; @@ -609,6 +619,46 @@ HttpRequestDef GaussDBforopenGaussMeta::genRequestDefForListHistoryOperations() return reqDefBuilder; } +HttpRequestDef GaussDBforopenGaussMeta::genRequestDefForListInstanceDetails() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("Id") + .withJsonTag("id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Name") + .withJsonTag("name") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Type") + .withJsonTag("type") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("DatastoreType") + .withJsonTag("datastore_type") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("VpcId") + .withJsonTag("vpc_id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("SubnetId") + .withJsonTag("subnet_id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Offset") + .withJsonTag("offset") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Limit") + .withJsonTag("limit") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Tags") + .withJsonTag("tags") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("ChargeMode") + .withJsonTag("charge_mode") + .withLocationType(Query_)); + FieldDef headerParamXLanguage; + reqDefBuilder.withRequestField(headerParamXLanguage + .withName("XLanguage") + .withJsonTag("X-Language") + .withLocationType(Header_)); + return reqDefBuilder; +} + HttpRequestDef GaussDBforopenGaussMeta::genRequestDefForListInstanceErrorLogs() { HttpRequestDef reqDefBuilder; reqDefBuilder.withRequestField(FieldDef().withName("Offset") @@ -1008,6 +1058,20 @@ HttpRequestDef GaussDBforopenGaussMeta::genRequestDefForSetDbUserPwd() { return reqDefBuilder; } +HttpRequestDef GaussDBforopenGaussMeta::genRequestDefForSetNewBackupPolicy() { + 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 GaussDBforopenGaussMeta::genRequestDefForSetRecyclePolicy() { HttpRequestDef reqDefBuilder; FieldDef bodyParam; @@ -1037,6 +1101,20 @@ HttpRequestDef GaussDBforopenGaussMeta::genRequestDefForShowBalanceStatus() { return reqDefBuilder; } +HttpRequestDef GaussDBforopenGaussMeta::genRequestDefForShowBatchUpgradeCandidateVersions() { + 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 GaussDBforopenGaussMeta::genRequestDefForShowConfigurationDetail() { HttpRequestDef reqDefBuilder; FieldDef headerParamXLanguage; @@ -1277,6 +1355,20 @@ HttpRequestDef GaussDBforopenGaussMeta::genRequestDefForUpgradeInstanceVersion() return reqDefBuilder; } +HttpRequestDef GaussDBforopenGaussMeta::genRequestDefForUpgradeInstancesVersion() { + 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 GaussDBforopenGaussMeta::genRequestDefForValidateParaGroupName() { HttpRequestDef reqDefBuilder; reqDefBuilder.withRequestField(FieldDef().withName("Name") diff --git a/gaussdbforopengauss/src/v3/model/BackupPolicyInfo.cpp b/gaussdbforopengauss/src/v3/model/BackupPolicyInfo.cpp new file mode 100644 index 000000000..e0ff3e80c --- /dev/null +++ b/gaussdbforopengauss/src/v3/model/BackupPolicyInfo.cpp @@ -0,0 +1,324 @@ + + +#include "huaweicloud/gaussdbforopengauss/v3/model/BackupPolicyInfo.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + + + + +BackupPolicyInfo::BackupPolicyInfo() +{ + keepDays_ = 0; + keepDaysIsSet_ = false; + startTime_ = ""; + startTimeIsSet_ = false; + period_ = ""; + periodIsSet_ = false; + differentialPeriod_ = ""; + differentialPeriodIsSet_ = false; + rateLimit_ = 0; + rateLimitIsSet_ = false; + prefetchBlock_ = 0; + prefetchBlockIsSet_ = false; + fileSplitSize_ = 0; + fileSplitSizeIsSet_ = false; + enableStandbyBackup_ = false; + enableStandbyBackupIsSet_ = false; +} + +BackupPolicyInfo::~BackupPolicyInfo() = default; + +void BackupPolicyInfo::validate() +{ +} + +web::json::value BackupPolicyInfo::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(keepDaysIsSet_) { + val[utility::conversions::to_string_t("keep_days")] = ModelBase::toJson(keepDays_); + } + if(startTimeIsSet_) { + val[utility::conversions::to_string_t("start_time")] = ModelBase::toJson(startTime_); + } + if(periodIsSet_) { + val[utility::conversions::to_string_t("period")] = ModelBase::toJson(period_); + } + if(differentialPeriodIsSet_) { + val[utility::conversions::to_string_t("differential_period")] = ModelBase::toJson(differentialPeriod_); + } + if(rateLimitIsSet_) { + val[utility::conversions::to_string_t("rate_limit")] = ModelBase::toJson(rateLimit_); + } + if(prefetchBlockIsSet_) { + val[utility::conversions::to_string_t("prefetch_block")] = ModelBase::toJson(prefetchBlock_); + } + if(fileSplitSizeIsSet_) { + val[utility::conversions::to_string_t("file_split_size")] = ModelBase::toJson(fileSplitSize_); + } + if(enableStandbyBackupIsSet_) { + val[utility::conversions::to_string_t("enable_standby_backup")] = ModelBase::toJson(enableStandbyBackup_); + } + + return val; +} +bool BackupPolicyInfo::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("keep_days"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("keep_days")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setKeepDays(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("start_time"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("start_time")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setStartTime(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("period"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("period")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPeriod(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("differential_period"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("differential_period")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDifferentialPeriod(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("rate_limit"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("rate_limit")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRateLimit(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("prefetch_block"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("prefetch_block")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPrefetchBlock(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("file_split_size"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("file_split_size")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFileSplitSize(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("enable_standby_backup"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("enable_standby_backup")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnableStandbyBackup(refVal); + } + } + return ok; +} + + +int32_t BackupPolicyInfo::getKeepDays() const +{ + return keepDays_; +} + +void BackupPolicyInfo::setKeepDays(int32_t value) +{ + keepDays_ = value; + keepDaysIsSet_ = true; +} + +bool BackupPolicyInfo::keepDaysIsSet() const +{ + return keepDaysIsSet_; +} + +void BackupPolicyInfo::unsetkeepDays() +{ + keepDaysIsSet_ = false; +} + +std::string BackupPolicyInfo::getStartTime() const +{ + return startTime_; +} + +void BackupPolicyInfo::setStartTime(const std::string& value) +{ + startTime_ = value; + startTimeIsSet_ = true; +} + +bool BackupPolicyInfo::startTimeIsSet() const +{ + return startTimeIsSet_; +} + +void BackupPolicyInfo::unsetstartTime() +{ + startTimeIsSet_ = false; +} + +std::string BackupPolicyInfo::getPeriod() const +{ + return period_; +} + +void BackupPolicyInfo::setPeriod(const std::string& value) +{ + period_ = value; + periodIsSet_ = true; +} + +bool BackupPolicyInfo::periodIsSet() const +{ + return periodIsSet_; +} + +void BackupPolicyInfo::unsetperiod() +{ + periodIsSet_ = false; +} + +std::string BackupPolicyInfo::getDifferentialPeriod() const +{ + return differentialPeriod_; +} + +void BackupPolicyInfo::setDifferentialPeriod(const std::string& value) +{ + differentialPeriod_ = value; + differentialPeriodIsSet_ = true; +} + +bool BackupPolicyInfo::differentialPeriodIsSet() const +{ + return differentialPeriodIsSet_; +} + +void BackupPolicyInfo::unsetdifferentialPeriod() +{ + differentialPeriodIsSet_ = false; +} + +int32_t BackupPolicyInfo::getRateLimit() const +{ + return rateLimit_; +} + +void BackupPolicyInfo::setRateLimit(int32_t value) +{ + rateLimit_ = value; + rateLimitIsSet_ = true; +} + +bool BackupPolicyInfo::rateLimitIsSet() const +{ + return rateLimitIsSet_; +} + +void BackupPolicyInfo::unsetrateLimit() +{ + rateLimitIsSet_ = false; +} + +int32_t BackupPolicyInfo::getPrefetchBlock() const +{ + return prefetchBlock_; +} + +void BackupPolicyInfo::setPrefetchBlock(int32_t value) +{ + prefetchBlock_ = value; + prefetchBlockIsSet_ = true; +} + +bool BackupPolicyInfo::prefetchBlockIsSet() const +{ + return prefetchBlockIsSet_; +} + +void BackupPolicyInfo::unsetprefetchBlock() +{ + prefetchBlockIsSet_ = false; +} + +int32_t BackupPolicyInfo::getFileSplitSize() const +{ + return fileSplitSize_; +} + +void BackupPolicyInfo::setFileSplitSize(int32_t value) +{ + fileSplitSize_ = value; + fileSplitSizeIsSet_ = true; +} + +bool BackupPolicyInfo::fileSplitSizeIsSet() const +{ + return fileSplitSizeIsSet_; +} + +void BackupPolicyInfo::unsetfileSplitSize() +{ + fileSplitSizeIsSet_ = false; +} + +bool BackupPolicyInfo::isEnableStandbyBackup() const +{ + return enableStandbyBackup_; +} + +void BackupPolicyInfo::setEnableStandbyBackup(bool value) +{ + enableStandbyBackup_ = value; + enableStandbyBackupIsSet_ = true; +} + +bool BackupPolicyInfo::enableStandbyBackupIsSet() const +{ + return enableStandbyBackupIsSet_; +} + +void BackupPolicyInfo::unsetenableStandbyBackup() +{ + enableStandbyBackupIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbforopengauss/src/v3/model/ConfirmRestoredDataRequest.cpp b/gaussdbforopengauss/src/v3/model/ConfirmRestoredDataRequest.cpp new file mode 100644 index 000000000..a8f320996 --- /dev/null +++ b/gaussdbforopengauss/src/v3/model/ConfirmRestoredDataRequest.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/gaussdbforopengauss/v3/model/ConfirmRestoredDataRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + + + + +ConfirmRestoredDataRequest::ConfirmRestoredDataRequest() +{ + xLanguage_ = ""; + xLanguageIsSet_ = false; + instanceId_ = ""; + instanceIdIsSet_ = false; +} + +ConfirmRestoredDataRequest::~ConfirmRestoredDataRequest() = default; + +void ConfirmRestoredDataRequest::validate() +{ +} + +web::json::value ConfirmRestoredDataRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(xLanguageIsSet_) { + val[utility::conversions::to_string_t("X-Language")] = ModelBase::toJson(xLanguage_); + } + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + + return val; +} +bool ConfirmRestoredDataRequest::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("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 ConfirmRestoredDataRequest::getXLanguage() const +{ + return xLanguage_; +} + +void ConfirmRestoredDataRequest::setXLanguage(const std::string& value) +{ + xLanguage_ = value; + xLanguageIsSet_ = true; +} + +bool ConfirmRestoredDataRequest::xLanguageIsSet() const +{ + return xLanguageIsSet_; +} + +void ConfirmRestoredDataRequest::unsetxLanguage() +{ + xLanguageIsSet_ = false; +} + +std::string ConfirmRestoredDataRequest::getInstanceId() const +{ + return instanceId_; +} + +void ConfirmRestoredDataRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool ConfirmRestoredDataRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void ConfirmRestoredDataRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbforopengauss/src/v3/model/ConfirmRestoredDataResponse.cpp b/gaussdbforopengauss/src/v3/model/ConfirmRestoredDataResponse.cpp new file mode 100644 index 000000000..456e903bc --- /dev/null +++ b/gaussdbforopengauss/src/v3/model/ConfirmRestoredDataResponse.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/gaussdbforopengauss/v3/model/ConfirmRestoredDataResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + + + + +ConfirmRestoredDataResponse::ConfirmRestoredDataResponse() +{ + jobId_ = ""; + jobIdIsSet_ = false; +} + +ConfirmRestoredDataResponse::~ConfirmRestoredDataResponse() = default; + +void ConfirmRestoredDataResponse::validate() +{ +} + +web::json::value ConfirmRestoredDataResponse::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 ConfirmRestoredDataResponse::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 ConfirmRestoredDataResponse::getJobId() const +{ + return jobId_; +} + +void ConfirmRestoredDataResponse::setJobId(const std::string& value) +{ + jobId_ = value; + jobIdIsSet_ = true; +} + +bool ConfirmRestoredDataResponse::jobIdIsSet() const +{ + return jobIdIsSet_; +} + +void ConfirmRestoredDataResponse::unsetjobId() +{ + jobIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbforopengauss/src/v3/model/GaussDBUpgradeInstancesVersionRequest.cpp b/gaussdbforopengauss/src/v3/model/GaussDBUpgradeInstancesVersionRequest.cpp new file mode 100644 index 000000000..88ba76b83 --- /dev/null +++ b/gaussdbforopengauss/src/v3/model/GaussDBUpgradeInstancesVersionRequest.cpp @@ -0,0 +1,183 @@ + + +#include "huaweicloud/gaussdbforopengauss/v3/model/GaussDBUpgradeInstancesVersionRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + + + + +GaussDBUpgradeInstancesVersionRequest::GaussDBUpgradeInstancesVersionRequest() +{ + instanceIdsIsSet_ = false; + upgradeType_ = ""; + upgradeTypeIsSet_ = false; + upgradeAction_ = ""; + upgradeActionIsSet_ = false; + targetVersion_ = ""; + targetVersionIsSet_ = false; +} + +GaussDBUpgradeInstancesVersionRequest::~GaussDBUpgradeInstancesVersionRequest() = default; + +void GaussDBUpgradeInstancesVersionRequest::validate() +{ +} + +web::json::value GaussDBUpgradeInstancesVersionRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(instanceIdsIsSet_) { + val[utility::conversions::to_string_t("instance_ids")] = ModelBase::toJson(instanceIds_); + } + if(upgradeTypeIsSet_) { + val[utility::conversions::to_string_t("upgrade_type")] = ModelBase::toJson(upgradeType_); + } + if(upgradeActionIsSet_) { + val[utility::conversions::to_string_t("upgrade_action")] = ModelBase::toJson(upgradeAction_); + } + if(targetVersionIsSet_) { + val[utility::conversions::to_string_t("target_version")] = ModelBase::toJson(targetVersion_); + } + + return val; +} +bool GaussDBUpgradeInstancesVersionRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("instance_ids"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("instance_ids")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInstanceIds(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("upgrade_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("upgrade_type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setUpgradeType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("upgrade_action"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("upgrade_action")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setUpgradeAction(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("target_version"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("target_version")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTargetVersion(refVal); + } + } + return ok; +} + + +std::vector& GaussDBUpgradeInstancesVersionRequest::getInstanceIds() +{ + return instanceIds_; +} + +void GaussDBUpgradeInstancesVersionRequest::setInstanceIds(const std::vector& value) +{ + instanceIds_ = value; + instanceIdsIsSet_ = true; +} + +bool GaussDBUpgradeInstancesVersionRequest::instanceIdsIsSet() const +{ + return instanceIdsIsSet_; +} + +void GaussDBUpgradeInstancesVersionRequest::unsetinstanceIds() +{ + instanceIdsIsSet_ = false; +} + +std::string GaussDBUpgradeInstancesVersionRequest::getUpgradeType() const +{ + return upgradeType_; +} + +void GaussDBUpgradeInstancesVersionRequest::setUpgradeType(const std::string& value) +{ + upgradeType_ = value; + upgradeTypeIsSet_ = true; +} + +bool GaussDBUpgradeInstancesVersionRequest::upgradeTypeIsSet() const +{ + return upgradeTypeIsSet_; +} + +void GaussDBUpgradeInstancesVersionRequest::unsetupgradeType() +{ + upgradeTypeIsSet_ = false; +} + +std::string GaussDBUpgradeInstancesVersionRequest::getUpgradeAction() const +{ + return upgradeAction_; +} + +void GaussDBUpgradeInstancesVersionRequest::setUpgradeAction(const std::string& value) +{ + upgradeAction_ = value; + upgradeActionIsSet_ = true; +} + +bool GaussDBUpgradeInstancesVersionRequest::upgradeActionIsSet() const +{ + return upgradeActionIsSet_; +} + +void GaussDBUpgradeInstancesVersionRequest::unsetupgradeAction() +{ + upgradeActionIsSet_ = false; +} + +std::string GaussDBUpgradeInstancesVersionRequest::getTargetVersion() const +{ + return targetVersion_; +} + +void GaussDBUpgradeInstancesVersionRequest::setTargetVersion(const std::string& value) +{ + targetVersion_ = value; + targetVersionIsSet_ = true; +} + +bool GaussDBUpgradeInstancesVersionRequest::targetVersionIsSet() const +{ + return targetVersionIsSet_; +} + +void GaussDBUpgradeInstancesVersionRequest::unsettargetVersion() +{ + targetVersionIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbforopengauss/src/v3/model/HotfixInfo.cpp b/gaussdbforopengauss/src/v3/model/HotfixInfo.cpp new file mode 100644 index 000000000..5adc263eb --- /dev/null +++ b/gaussdbforopengauss/src/v3/model/HotfixInfo.cpp @@ -0,0 +1,184 @@ + + +#include "huaweicloud/gaussdbforopengauss/v3/model/HotfixInfo.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + + + + +HotfixInfo::HotfixInfo() +{ + version_ = ""; + versionIsSet_ = false; + commonPatch_ = ""; + commonPatchIsSet_ = false; + backupSensitive_ = false; + backupSensitiveIsSet_ = false; + descripition_ = ""; + descripitionIsSet_ = false; +} + +HotfixInfo::~HotfixInfo() = default; + +void HotfixInfo::validate() +{ +} + +web::json::value HotfixInfo::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(versionIsSet_) { + val[utility::conversions::to_string_t("version")] = ModelBase::toJson(version_); + } + if(commonPatchIsSet_) { + val[utility::conversions::to_string_t("common_patch")] = ModelBase::toJson(commonPatch_); + } + if(backupSensitiveIsSet_) { + val[utility::conversions::to_string_t("backup_sensitive")] = ModelBase::toJson(backupSensitive_); + } + if(descripitionIsSet_) { + val[utility::conversions::to_string_t("descripition")] = ModelBase::toJson(descripition_); + } + + return val; +} +bool HotfixInfo::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("version"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("version")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setVersion(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("common_patch"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("common_patch")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCommonPatch(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("backup_sensitive"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("backup_sensitive")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBackupSensitive(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("descripition"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("descripition")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDescripition(refVal); + } + } + return ok; +} + + +std::string HotfixInfo::getVersion() const +{ + return version_; +} + +void HotfixInfo::setVersion(const std::string& value) +{ + version_ = value; + versionIsSet_ = true; +} + +bool HotfixInfo::versionIsSet() const +{ + return versionIsSet_; +} + +void HotfixInfo::unsetversion() +{ + versionIsSet_ = false; +} + +std::string HotfixInfo::getCommonPatch() const +{ + return commonPatch_; +} + +void HotfixInfo::setCommonPatch(const std::string& value) +{ + commonPatch_ = value; + commonPatchIsSet_ = true; +} + +bool HotfixInfo::commonPatchIsSet() const +{ + return commonPatchIsSet_; +} + +void HotfixInfo::unsetcommonPatch() +{ + commonPatchIsSet_ = false; +} + +bool HotfixInfo::isBackupSensitive() const +{ + return backupSensitive_; +} + +void HotfixInfo::setBackupSensitive(bool value) +{ + backupSensitive_ = value; + backupSensitiveIsSet_ = true; +} + +bool HotfixInfo::backupSensitiveIsSet() const +{ + return backupSensitiveIsSet_; +} + +void HotfixInfo::unsetbackupSensitive() +{ + backupSensitiveIsSet_ = false; +} + +std::string HotfixInfo::getDescripition() const +{ + return descripition_; +} + +void HotfixInfo::setDescripition(const std::string& value) +{ + descripition_ = value; + descripitionIsSet_ = true; +} + +bool HotfixInfo::descripitionIsSet() const +{ + return descripitionIsSet_; +} + +void HotfixInfo::unsetdescripition() +{ + descripitionIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbforopengauss/src/v3/model/HotfixVersionInfo.cpp b/gaussdbforopengauss/src/v3/model/HotfixVersionInfo.cpp new file mode 100644 index 000000000..8b14846b8 --- /dev/null +++ b/gaussdbforopengauss/src/v3/model/HotfixVersionInfo.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/gaussdbforopengauss/v3/model/HotfixVersionInfo.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + + + + +HotfixVersionInfo::HotfixVersionInfo() +{ + version_ = ""; + versionIsSet_ = false; + upgradeFinishedTime_ = ""; + upgradeFinishedTimeIsSet_ = false; +} + +HotfixVersionInfo::~HotfixVersionInfo() = default; + +void HotfixVersionInfo::validate() +{ +} + +web::json::value HotfixVersionInfo::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(versionIsSet_) { + val[utility::conversions::to_string_t("version")] = ModelBase::toJson(version_); + } + if(upgradeFinishedTimeIsSet_) { + val[utility::conversions::to_string_t("upgrade_finished_time")] = ModelBase::toJson(upgradeFinishedTime_); + } + + return val; +} +bool HotfixVersionInfo::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("version"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("version")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setVersion(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("upgrade_finished_time"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("upgrade_finished_time")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setUpgradeFinishedTime(refVal); + } + } + return ok; +} + + +std::string HotfixVersionInfo::getVersion() const +{ + return version_; +} + +void HotfixVersionInfo::setVersion(const std::string& value) +{ + version_ = value; + versionIsSet_ = true; +} + +bool HotfixVersionInfo::versionIsSet() const +{ + return versionIsSet_; +} + +void HotfixVersionInfo::unsetversion() +{ + versionIsSet_ = false; +} + +std::string HotfixVersionInfo::getUpgradeFinishedTime() const +{ + return upgradeFinishedTime_; +} + +void HotfixVersionInfo::setUpgradeFinishedTime(const std::string& value) +{ + upgradeFinishedTime_ = value; + upgradeFinishedTimeIsSet_ = true; +} + +bool HotfixVersionInfo::upgradeFinishedTimeIsSet() const +{ + return upgradeFinishedTimeIsSet_; +} + +void HotfixVersionInfo::unsetupgradeFinishedTime() +{ + upgradeFinishedTimeIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbforopengauss/src/v3/model/ListInstanceDatastore.cpp b/gaussdbforopengauss/src/v3/model/ListInstanceDatastore.cpp new file mode 100644 index 000000000..b3bd6212f --- /dev/null +++ b/gaussdbforopengauss/src/v3/model/ListInstanceDatastore.cpp @@ -0,0 +1,253 @@ + + +#include "huaweicloud/gaussdbforopengauss/v3/model/ListInstanceDatastore.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + + + + +ListInstanceDatastore::ListInstanceDatastore() +{ + type_ = ""; + typeIsSet_ = false; + version_ = ""; + versionIsSet_ = false; + completeVersion_ = ""; + completeVersionIsSet_ = false; + targetVersion_ = ""; + targetVersionIsSet_ = false; + completeKernelVersion_ = ""; + completeKernelVersionIsSet_ = false; + hotfixVersionInfosIsSet_ = false; +} + +ListInstanceDatastore::~ListInstanceDatastore() = default; + +void ListInstanceDatastore::validate() +{ +} + +web::json::value ListInstanceDatastore::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(typeIsSet_) { + val[utility::conversions::to_string_t("type")] = ModelBase::toJson(type_); + } + if(versionIsSet_) { + val[utility::conversions::to_string_t("version")] = ModelBase::toJson(version_); + } + if(completeVersionIsSet_) { + val[utility::conversions::to_string_t("complete_version")] = ModelBase::toJson(completeVersion_); + } + if(targetVersionIsSet_) { + val[utility::conversions::to_string_t("target_version")] = ModelBase::toJson(targetVersion_); + } + if(completeKernelVersionIsSet_) { + val[utility::conversions::to_string_t("complete_kernel_version")] = ModelBase::toJson(completeKernelVersion_); + } + if(hotfixVersionInfosIsSet_) { + val[utility::conversions::to_string_t("hotfix_version_infos")] = ModelBase::toJson(hotfixVersionInfos_); + } + + return val; +} +bool ListInstanceDatastore::fromJson(const web::json::value& val) +{ + bool ok = true; + + 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("version"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("version")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setVersion(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("complete_version"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("complete_version")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCompleteVersion(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("target_version"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("target_version")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTargetVersion(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("complete_kernel_version"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("complete_kernel_version")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCompleteKernelVersion(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("hotfix_version_infos"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("hotfix_version_infos")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setHotfixVersionInfos(refVal); + } + } + return ok; +} + + +std::string ListInstanceDatastore::getType() const +{ + return type_; +} + +void ListInstanceDatastore::setType(const std::string& value) +{ + type_ = value; + typeIsSet_ = true; +} + +bool ListInstanceDatastore::typeIsSet() const +{ + return typeIsSet_; +} + +void ListInstanceDatastore::unsettype() +{ + typeIsSet_ = false; +} + +std::string ListInstanceDatastore::getVersion() const +{ + return version_; +} + +void ListInstanceDatastore::setVersion(const std::string& value) +{ + version_ = value; + versionIsSet_ = true; +} + +bool ListInstanceDatastore::versionIsSet() const +{ + return versionIsSet_; +} + +void ListInstanceDatastore::unsetversion() +{ + versionIsSet_ = false; +} + +std::string ListInstanceDatastore::getCompleteVersion() const +{ + return completeVersion_; +} + +void ListInstanceDatastore::setCompleteVersion(const std::string& value) +{ + completeVersion_ = value; + completeVersionIsSet_ = true; +} + +bool ListInstanceDatastore::completeVersionIsSet() const +{ + return completeVersionIsSet_; +} + +void ListInstanceDatastore::unsetcompleteVersion() +{ + completeVersionIsSet_ = false; +} + +std::string ListInstanceDatastore::getTargetVersion() const +{ + return targetVersion_; +} + +void ListInstanceDatastore::setTargetVersion(const std::string& value) +{ + targetVersion_ = value; + targetVersionIsSet_ = true; +} + +bool ListInstanceDatastore::targetVersionIsSet() const +{ + return targetVersionIsSet_; +} + +void ListInstanceDatastore::unsettargetVersion() +{ + targetVersionIsSet_ = false; +} + +std::string ListInstanceDatastore::getCompleteKernelVersion() const +{ + return completeKernelVersion_; +} + +void ListInstanceDatastore::setCompleteKernelVersion(const std::string& value) +{ + completeKernelVersion_ = value; + completeKernelVersionIsSet_ = true; +} + +bool ListInstanceDatastore::completeKernelVersionIsSet() const +{ + return completeKernelVersionIsSet_; +} + +void ListInstanceDatastore::unsetcompleteKernelVersion() +{ + completeKernelVersionIsSet_ = false; +} + +std::vector& ListInstanceDatastore::getHotfixVersionInfos() +{ + return hotfixVersionInfos_; +} + +void ListInstanceDatastore::setHotfixVersionInfos(const std::vector& value) +{ + hotfixVersionInfos_ = value; + hotfixVersionInfosIsSet_ = true; +} + +bool ListInstanceDatastore::hotfixVersionInfosIsSet() const +{ + return hotfixVersionInfosIsSet_; +} + +void ListInstanceDatastore::unsethotfixVersionInfos() +{ + hotfixVersionInfosIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbforopengauss/src/v3/model/ListInstanceDetailsRequest.cpp b/gaussdbforopengauss/src/v3/model/ListInstanceDetailsRequest.cpp new file mode 100644 index 000000000..e1491649f --- /dev/null +++ b/gaussdbforopengauss/src/v3/model/ListInstanceDetailsRequest.cpp @@ -0,0 +1,428 @@ + + +#include "huaweicloud/gaussdbforopengauss/v3/model/ListInstanceDetailsRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + + + + +ListInstanceDetailsRequest::ListInstanceDetailsRequest() +{ + xLanguage_ = ""; + xLanguageIsSet_ = false; + id_ = ""; + idIsSet_ = false; + name_ = ""; + nameIsSet_ = false; + type_ = ""; + typeIsSet_ = false; + datastoreType_ = ""; + datastoreTypeIsSet_ = false; + vpcId_ = ""; + vpcIdIsSet_ = false; + subnetId_ = ""; + subnetIdIsSet_ = false; + offset_ = 0; + offsetIsSet_ = false; + limit_ = 0; + limitIsSet_ = false; + tagsIsSet_ = false; + chargeMode_ = ""; + chargeModeIsSet_ = false; +} + +ListInstanceDetailsRequest::~ListInstanceDetailsRequest() = default; + +void ListInstanceDetailsRequest::validate() +{ +} + +web::json::value ListInstanceDetailsRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(xLanguageIsSet_) { + val[utility::conversions::to_string_t("X-Language")] = ModelBase::toJson(xLanguage_); + } + 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(typeIsSet_) { + val[utility::conversions::to_string_t("type")] = ModelBase::toJson(type_); + } + if(datastoreTypeIsSet_) { + val[utility::conversions::to_string_t("datastore_type")] = ModelBase::toJson(datastoreType_); + } + if(vpcIdIsSet_) { + val[utility::conversions::to_string_t("vpc_id")] = ModelBase::toJson(vpcId_); + } + if(subnetIdIsSet_) { + val[utility::conversions::to_string_t("subnet_id")] = ModelBase::toJson(subnetId_); + } + if(offsetIsSet_) { + val[utility::conversions::to_string_t("offset")] = ModelBase::toJson(offset_); + } + if(limitIsSet_) { + val[utility::conversions::to_string_t("limit")] = ModelBase::toJson(limit_); + } + if(tagsIsSet_) { + val[utility::conversions::to_string_t("tags")] = ModelBase::toJson(tags_); + } + if(chargeModeIsSet_) { + val[utility::conversions::to_string_t("charge_mode")] = ModelBase::toJson(chargeMode_); + } + + return val; +} +bool ListInstanceDetailsRequest::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("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("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("datastore_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("datastore_type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDatastoreType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("vpc_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("vpc_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setVpcId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("subnet_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("subnet_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSubnetId(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); + } + } + if(val.has_field(utility::conversions::to_string_t("tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTags(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("charge_mode"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("charge_mode")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setChargeMode(refVal); + } + } + return ok; +} + + +std::string ListInstanceDetailsRequest::getXLanguage() const +{ + return xLanguage_; +} + +void ListInstanceDetailsRequest::setXLanguage(const std::string& value) +{ + xLanguage_ = value; + xLanguageIsSet_ = true; +} + +bool ListInstanceDetailsRequest::xLanguageIsSet() const +{ + return xLanguageIsSet_; +} + +void ListInstanceDetailsRequest::unsetxLanguage() +{ + xLanguageIsSet_ = false; +} + +std::string ListInstanceDetailsRequest::getId() const +{ + return id_; +} + +void ListInstanceDetailsRequest::setId(const std::string& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool ListInstanceDetailsRequest::idIsSet() const +{ + return idIsSet_; +} + +void ListInstanceDetailsRequest::unsetid() +{ + idIsSet_ = false; +} + +std::string ListInstanceDetailsRequest::getName() const +{ + return name_; +} + +void ListInstanceDetailsRequest::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool ListInstanceDetailsRequest::nameIsSet() const +{ + return nameIsSet_; +} + +void ListInstanceDetailsRequest::unsetname() +{ + nameIsSet_ = false; +} + +std::string ListInstanceDetailsRequest::getType() const +{ + return type_; +} + +void ListInstanceDetailsRequest::setType(const std::string& value) +{ + type_ = value; + typeIsSet_ = true; +} + +bool ListInstanceDetailsRequest::typeIsSet() const +{ + return typeIsSet_; +} + +void ListInstanceDetailsRequest::unsettype() +{ + typeIsSet_ = false; +} + +std::string ListInstanceDetailsRequest::getDatastoreType() const +{ + return datastoreType_; +} + +void ListInstanceDetailsRequest::setDatastoreType(const std::string& value) +{ + datastoreType_ = value; + datastoreTypeIsSet_ = true; +} + +bool ListInstanceDetailsRequest::datastoreTypeIsSet() const +{ + return datastoreTypeIsSet_; +} + +void ListInstanceDetailsRequest::unsetdatastoreType() +{ + datastoreTypeIsSet_ = false; +} + +std::string ListInstanceDetailsRequest::getVpcId() const +{ + return vpcId_; +} + +void ListInstanceDetailsRequest::setVpcId(const std::string& value) +{ + vpcId_ = value; + vpcIdIsSet_ = true; +} + +bool ListInstanceDetailsRequest::vpcIdIsSet() const +{ + return vpcIdIsSet_; +} + +void ListInstanceDetailsRequest::unsetvpcId() +{ + vpcIdIsSet_ = false; +} + +std::string ListInstanceDetailsRequest::getSubnetId() const +{ + return subnetId_; +} + +void ListInstanceDetailsRequest::setSubnetId(const std::string& value) +{ + subnetId_ = value; + subnetIdIsSet_ = true; +} + +bool ListInstanceDetailsRequest::subnetIdIsSet() const +{ + return subnetIdIsSet_; +} + +void ListInstanceDetailsRequest::unsetsubnetId() +{ + subnetIdIsSet_ = false; +} + +int32_t ListInstanceDetailsRequest::getOffset() const +{ + return offset_; +} + +void ListInstanceDetailsRequest::setOffset(int32_t value) +{ + offset_ = value; + offsetIsSet_ = true; +} + +bool ListInstanceDetailsRequest::offsetIsSet() const +{ + return offsetIsSet_; +} + +void ListInstanceDetailsRequest::unsetoffset() +{ + offsetIsSet_ = false; +} + +int32_t ListInstanceDetailsRequest::getLimit() const +{ + return limit_; +} + +void ListInstanceDetailsRequest::setLimit(int32_t value) +{ + limit_ = value; + limitIsSet_ = true; +} + +bool ListInstanceDetailsRequest::limitIsSet() const +{ + return limitIsSet_; +} + +void ListInstanceDetailsRequest::unsetlimit() +{ + limitIsSet_ = false; +} + +std::vector& ListInstanceDetailsRequest::getTags() +{ + return tags_; +} + +void ListInstanceDetailsRequest::setTags(const std::vector& value) +{ + tags_ = value; + tagsIsSet_ = true; +} + +bool ListInstanceDetailsRequest::tagsIsSet() const +{ + return tagsIsSet_; +} + +void ListInstanceDetailsRequest::unsettags() +{ + tagsIsSet_ = false; +} + +std::string ListInstanceDetailsRequest::getChargeMode() const +{ + return chargeMode_; +} + +void ListInstanceDetailsRequest::setChargeMode(const std::string& value) +{ + chargeMode_ = value; + chargeModeIsSet_ = true; +} + +bool ListInstanceDetailsRequest::chargeModeIsSet() const +{ + return chargeModeIsSet_; +} + +void ListInstanceDetailsRequest::unsetchargeMode() +{ + chargeModeIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbforopengauss/src/v3/model/ListInstanceDetailsResponse.cpp b/gaussdbforopengauss/src/v3/model/ListInstanceDetailsResponse.cpp new file mode 100644 index 000000000..987414200 --- /dev/null +++ b/gaussdbforopengauss/src/v3/model/ListInstanceDetailsResponse.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/gaussdbforopengauss/v3/model/ListInstanceDetailsResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + + + + +ListInstanceDetailsResponse::ListInstanceDetailsResponse() +{ + instancesIsSet_ = false; + totalCount_ = 0; + totalCountIsSet_ = false; +} + +ListInstanceDetailsResponse::~ListInstanceDetailsResponse() = default; + +void ListInstanceDetailsResponse::validate() +{ +} + +web::json::value ListInstanceDetailsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(instancesIsSet_) { + val[utility::conversions::to_string_t("instances")] = ModelBase::toJson(instances_); + } + if(totalCountIsSet_) { + val[utility::conversions::to_string_t("total_count")] = ModelBase::toJson(totalCount_); + } + + return val; +} +bool ListInstanceDetailsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("instances"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("instances")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInstances(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& ListInstanceDetailsResponse::getInstances() +{ + return instances_; +} + +void ListInstanceDetailsResponse::setInstances(const std::vector& value) +{ + instances_ = value; + instancesIsSet_ = true; +} + +bool ListInstanceDetailsResponse::instancesIsSet() const +{ + return instancesIsSet_; +} + +void ListInstanceDetailsResponse::unsetinstances() +{ + instancesIsSet_ = false; +} + +int32_t ListInstanceDetailsResponse::getTotalCount() const +{ + return totalCount_; +} + +void ListInstanceDetailsResponse::setTotalCount(int32_t value) +{ + totalCount_ = value; + totalCountIsSet_ = true; +} + +bool ListInstanceDetailsResponse::totalCountIsSet() const +{ + return totalCountIsSet_; +} + +void ListInstanceDetailsResponse::unsettotalCount() +{ + totalCountIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbforopengauss/src/v3/model/ListInstancesResult.cpp b/gaussdbforopengauss/src/v3/model/ListInstancesResult.cpp new file mode 100644 index 000000000..055532ee0 --- /dev/null +++ b/gaussdbforopengauss/src/v3/model/ListInstancesResult.cpp @@ -0,0 +1,1153 @@ + + +#include "huaweicloud/gaussdbforopengauss/v3/model/ListInstancesResult.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + + + + +ListInstancesResult::ListInstancesResult() +{ + id_ = ""; + idIsSet_ = false; + name_ = ""; + nameIsSet_ = false; + status_ = ""; + statusIsSet_ = false; + privateIpsIsSet_ = false; + publicIpsIsSet_ = false; + port_ = 0; + portIsSet_ = false; + type_ = ""; + typeIsSet_ = false; + haIsSet_ = false; + replicaNum_ = 0; + replicaNumIsSet_ = false; + region_ = ""; + regionIsSet_ = false; + datastoreIsSet_ = false; + created_ = ""; + createdIsSet_ = false; + updated_ = ""; + updatedIsSet_ = false; + dbUserName_ = ""; + dbUserNameIsSet_ = false; + vpcId_ = ""; + vpcIdIsSet_ = false; + subnetId_ = ""; + subnetIdIsSet_ = false; + securityGroupId_ = ""; + securityGroupIdIsSet_ = false; + flavorRef_ = ""; + flavorRefIsSet_ = false; + flavorInfoIsSet_ = false; + volumeIsSet_ = false; + switchStrategy_ = ""; + switchStrategyIsSet_ = false; + backupStrategyIsSet_ = false; + maintenanceWindow_ = ""; + maintenanceWindowIsSet_ = false; + nodesIsSet_ = false; + enterpriseProjectId_ = ""; + enterpriseProjectIdIsSet_ = false; + instanceMode_ = ""; + instanceModeIsSet_ = false; + diskEncryptionId_ = ""; + diskEncryptionIdIsSet_ = false; + chargeInfoIsSet_ = false; + timeZone_ = ""; + timeZoneIsSet_ = false; + tagsIsSet_ = false; + diskUsage_ = ""; + diskUsageIsSet_ = false; + mysqlCompatibilityIsSet_ = false; +} + +ListInstancesResult::~ListInstancesResult() = default; + +void ListInstancesResult::validate() +{ +} + +web::json::value ListInstancesResult::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(statusIsSet_) { + val[utility::conversions::to_string_t("status")] = ModelBase::toJson(status_); + } + if(privateIpsIsSet_) { + val[utility::conversions::to_string_t("private_ips")] = ModelBase::toJson(privateIps_); + } + if(publicIpsIsSet_) { + val[utility::conversions::to_string_t("public_ips")] = ModelBase::toJson(publicIps_); + } + if(portIsSet_) { + val[utility::conversions::to_string_t("port")] = ModelBase::toJson(port_); + } + if(typeIsSet_) { + val[utility::conversions::to_string_t("type")] = ModelBase::toJson(type_); + } + if(haIsSet_) { + val[utility::conversions::to_string_t("ha")] = ModelBase::toJson(ha_); + } + if(replicaNumIsSet_) { + val[utility::conversions::to_string_t("replica_num")] = ModelBase::toJson(replicaNum_); + } + if(regionIsSet_) { + val[utility::conversions::to_string_t("region")] = ModelBase::toJson(region_); + } + if(datastoreIsSet_) { + val[utility::conversions::to_string_t("datastore")] = ModelBase::toJson(datastore_); + } + if(createdIsSet_) { + val[utility::conversions::to_string_t("created")] = ModelBase::toJson(created_); + } + if(updatedIsSet_) { + val[utility::conversions::to_string_t("updated")] = ModelBase::toJson(updated_); + } + if(dbUserNameIsSet_) { + val[utility::conversions::to_string_t("db_user_name")] = ModelBase::toJson(dbUserName_); + } + if(vpcIdIsSet_) { + val[utility::conversions::to_string_t("vpc_id")] = ModelBase::toJson(vpcId_); + } + if(subnetIdIsSet_) { + val[utility::conversions::to_string_t("subnet_id")] = ModelBase::toJson(subnetId_); + } + if(securityGroupIdIsSet_) { + val[utility::conversions::to_string_t("security_group_id")] = ModelBase::toJson(securityGroupId_); + } + if(flavorRefIsSet_) { + val[utility::conversions::to_string_t("flavor_ref")] = ModelBase::toJson(flavorRef_); + } + if(flavorInfoIsSet_) { + val[utility::conversions::to_string_t("flavor_info")] = ModelBase::toJson(flavorInfo_); + } + if(volumeIsSet_) { + val[utility::conversions::to_string_t("volume")] = ModelBase::toJson(volume_); + } + if(switchStrategyIsSet_) { + val[utility::conversions::to_string_t("switch_strategy")] = ModelBase::toJson(switchStrategy_); + } + if(backupStrategyIsSet_) { + val[utility::conversions::to_string_t("backup_strategy")] = ModelBase::toJson(backupStrategy_); + } + if(maintenanceWindowIsSet_) { + val[utility::conversions::to_string_t("maintenance_window")] = ModelBase::toJson(maintenanceWindow_); + } + if(nodesIsSet_) { + val[utility::conversions::to_string_t("nodes")] = ModelBase::toJson(nodes_); + } + if(enterpriseProjectIdIsSet_) { + val[utility::conversions::to_string_t("enterprise_project_id")] = ModelBase::toJson(enterpriseProjectId_); + } + if(instanceModeIsSet_) { + val[utility::conversions::to_string_t("instance_mode")] = ModelBase::toJson(instanceMode_); + } + if(diskEncryptionIdIsSet_) { + val[utility::conversions::to_string_t("disk_encryption_id")] = ModelBase::toJson(diskEncryptionId_); + } + if(chargeInfoIsSet_) { + val[utility::conversions::to_string_t("charge_info")] = ModelBase::toJson(chargeInfo_); + } + if(timeZoneIsSet_) { + val[utility::conversions::to_string_t("time_zone")] = ModelBase::toJson(timeZone_); + } + if(tagsIsSet_) { + val[utility::conversions::to_string_t("tags")] = ModelBase::toJson(tags_); + } + if(diskUsageIsSet_) { + val[utility::conversions::to_string_t("disk_usage")] = ModelBase::toJson(diskUsage_); + } + if(mysqlCompatibilityIsSet_) { + val[utility::conversions::to_string_t("mysql_compatibility")] = ModelBase::toJson(mysqlCompatibility_); + } + + return val; +} +bool ListInstancesResult::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("status"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("status")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setStatus(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("private_ips"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("private_ips")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPrivateIps(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("public_ips"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("public_ips")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPublicIps(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("port"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("port")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPort(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("ha"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ha")); + if(!fieldValue.is_null()) + { + ListHaResult refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setHa(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("replica_num"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("replica_num")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setReplicaNum(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("region"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("region")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRegion(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("datastore"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("datastore")); + if(!fieldValue.is_null()) + { + ListInstanceDatastore refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDatastore(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("created"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("created")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCreated(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("updated"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("updated")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setUpdated(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("db_user_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("db_user_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDbUserName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("vpc_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("vpc_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setVpcId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("subnet_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("subnet_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSubnetId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("security_group_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("security_group_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSecurityGroupId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("flavor_ref"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("flavor_ref")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFlavorRef(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("flavor_info"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("flavor_info")); + if(!fieldValue.is_null()) + { + ListFlavorInfo refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFlavorInfo(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("volume"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("volume")); + if(!fieldValue.is_null()) + { + ListVolume refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setVolume(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("switch_strategy"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("switch_strategy")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSwitchStrategy(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("backup_strategy"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("backup_strategy")); + if(!fieldValue.is_null()) + { + OpenGaussBackupStrategyForListResponse refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBackupStrategy(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("maintenance_window"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("maintenance_window")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setMaintenanceWindow(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("nodes"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("nodes")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setNodes(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("enterprise_project_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("enterprise_project_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnterpriseProjectId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("instance_mode"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("instance_mode")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInstanceMode(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("disk_encryption_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("disk_encryption_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDiskEncryptionId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("charge_info"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("charge_info")); + if(!fieldValue.is_null()) + { + OpenGaussChargeInfoListResponse refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setChargeInfo(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("time_zone"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("time_zone")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTimeZone(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("tags"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tags")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTags(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("disk_usage"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("disk_usage")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDiskUsage(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("mysql_compatibility"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("mysql_compatibility")); + if(!fieldValue.is_null()) + { + MySQLCompatibilityResult refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setMysqlCompatibility(refVal); + } + } + return ok; +} + + +std::string ListInstancesResult::getId() const +{ + return id_; +} + +void ListInstancesResult::setId(const std::string& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool ListInstancesResult::idIsSet() const +{ + return idIsSet_; +} + +void ListInstancesResult::unsetid() +{ + idIsSet_ = false; +} + +std::string ListInstancesResult::getName() const +{ + return name_; +} + +void ListInstancesResult::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool ListInstancesResult::nameIsSet() const +{ + return nameIsSet_; +} + +void ListInstancesResult::unsetname() +{ + nameIsSet_ = false; +} + +std::string ListInstancesResult::getStatus() const +{ + return status_; +} + +void ListInstancesResult::setStatus(const std::string& value) +{ + status_ = value; + statusIsSet_ = true; +} + +bool ListInstancesResult::statusIsSet() const +{ + return statusIsSet_; +} + +void ListInstancesResult::unsetstatus() +{ + statusIsSet_ = false; +} + +std::vector& ListInstancesResult::getPrivateIps() +{ + return privateIps_; +} + +void ListInstancesResult::setPrivateIps(const std::vector& value) +{ + privateIps_ = value; + privateIpsIsSet_ = true; +} + +bool ListInstancesResult::privateIpsIsSet() const +{ + return privateIpsIsSet_; +} + +void ListInstancesResult::unsetprivateIps() +{ + privateIpsIsSet_ = false; +} + +std::vector& ListInstancesResult::getPublicIps() +{ + return publicIps_; +} + +void ListInstancesResult::setPublicIps(const std::vector& value) +{ + publicIps_ = value; + publicIpsIsSet_ = true; +} + +bool ListInstancesResult::publicIpsIsSet() const +{ + return publicIpsIsSet_; +} + +void ListInstancesResult::unsetpublicIps() +{ + publicIpsIsSet_ = false; +} + +int32_t ListInstancesResult::getPort() const +{ + return port_; +} + +void ListInstancesResult::setPort(int32_t value) +{ + port_ = value; + portIsSet_ = true; +} + +bool ListInstancesResult::portIsSet() const +{ + return portIsSet_; +} + +void ListInstancesResult::unsetport() +{ + portIsSet_ = false; +} + +std::string ListInstancesResult::getType() const +{ + return type_; +} + +void ListInstancesResult::setType(const std::string& value) +{ + type_ = value; + typeIsSet_ = true; +} + +bool ListInstancesResult::typeIsSet() const +{ + return typeIsSet_; +} + +void ListInstancesResult::unsettype() +{ + typeIsSet_ = false; +} + +ListHaResult ListInstancesResult::getHa() const +{ + return ha_; +} + +void ListInstancesResult::setHa(const ListHaResult& value) +{ + ha_ = value; + haIsSet_ = true; +} + +bool ListInstancesResult::haIsSet() const +{ + return haIsSet_; +} + +void ListInstancesResult::unsetha() +{ + haIsSet_ = false; +} + +int32_t ListInstancesResult::getReplicaNum() const +{ + return replicaNum_; +} + +void ListInstancesResult::setReplicaNum(int32_t value) +{ + replicaNum_ = value; + replicaNumIsSet_ = true; +} + +bool ListInstancesResult::replicaNumIsSet() const +{ + return replicaNumIsSet_; +} + +void ListInstancesResult::unsetreplicaNum() +{ + replicaNumIsSet_ = false; +} + +std::string ListInstancesResult::getRegion() const +{ + return region_; +} + +void ListInstancesResult::setRegion(const std::string& value) +{ + region_ = value; + regionIsSet_ = true; +} + +bool ListInstancesResult::regionIsSet() const +{ + return regionIsSet_; +} + +void ListInstancesResult::unsetregion() +{ + regionIsSet_ = false; +} + +ListInstanceDatastore ListInstancesResult::getDatastore() const +{ + return datastore_; +} + +void ListInstancesResult::setDatastore(const ListInstanceDatastore& value) +{ + datastore_ = value; + datastoreIsSet_ = true; +} + +bool ListInstancesResult::datastoreIsSet() const +{ + return datastoreIsSet_; +} + +void ListInstancesResult::unsetdatastore() +{ + datastoreIsSet_ = false; +} + +std::string ListInstancesResult::getCreated() const +{ + return created_; +} + +void ListInstancesResult::setCreated(const std::string& value) +{ + created_ = value; + createdIsSet_ = true; +} + +bool ListInstancesResult::createdIsSet() const +{ + return createdIsSet_; +} + +void ListInstancesResult::unsetcreated() +{ + createdIsSet_ = false; +} + +std::string ListInstancesResult::getUpdated() const +{ + return updated_; +} + +void ListInstancesResult::setUpdated(const std::string& value) +{ + updated_ = value; + updatedIsSet_ = true; +} + +bool ListInstancesResult::updatedIsSet() const +{ + return updatedIsSet_; +} + +void ListInstancesResult::unsetupdated() +{ + updatedIsSet_ = false; +} + +std::string ListInstancesResult::getDbUserName() const +{ + return dbUserName_; +} + +void ListInstancesResult::setDbUserName(const std::string& value) +{ + dbUserName_ = value; + dbUserNameIsSet_ = true; +} + +bool ListInstancesResult::dbUserNameIsSet() const +{ + return dbUserNameIsSet_; +} + +void ListInstancesResult::unsetdbUserName() +{ + dbUserNameIsSet_ = false; +} + +std::string ListInstancesResult::getVpcId() const +{ + return vpcId_; +} + +void ListInstancesResult::setVpcId(const std::string& value) +{ + vpcId_ = value; + vpcIdIsSet_ = true; +} + +bool ListInstancesResult::vpcIdIsSet() const +{ + return vpcIdIsSet_; +} + +void ListInstancesResult::unsetvpcId() +{ + vpcIdIsSet_ = false; +} + +std::string ListInstancesResult::getSubnetId() const +{ + return subnetId_; +} + +void ListInstancesResult::setSubnetId(const std::string& value) +{ + subnetId_ = value; + subnetIdIsSet_ = true; +} + +bool ListInstancesResult::subnetIdIsSet() const +{ + return subnetIdIsSet_; +} + +void ListInstancesResult::unsetsubnetId() +{ + subnetIdIsSet_ = false; +} + +std::string ListInstancesResult::getSecurityGroupId() const +{ + return securityGroupId_; +} + +void ListInstancesResult::setSecurityGroupId(const std::string& value) +{ + securityGroupId_ = value; + securityGroupIdIsSet_ = true; +} + +bool ListInstancesResult::securityGroupIdIsSet() const +{ + return securityGroupIdIsSet_; +} + +void ListInstancesResult::unsetsecurityGroupId() +{ + securityGroupIdIsSet_ = false; +} + +std::string ListInstancesResult::getFlavorRef() const +{ + return flavorRef_; +} + +void ListInstancesResult::setFlavorRef(const std::string& value) +{ + flavorRef_ = value; + flavorRefIsSet_ = true; +} + +bool ListInstancesResult::flavorRefIsSet() const +{ + return flavorRefIsSet_; +} + +void ListInstancesResult::unsetflavorRef() +{ + flavorRefIsSet_ = false; +} + +ListFlavorInfo ListInstancesResult::getFlavorInfo() const +{ + return flavorInfo_; +} + +void ListInstancesResult::setFlavorInfo(const ListFlavorInfo& value) +{ + flavorInfo_ = value; + flavorInfoIsSet_ = true; +} + +bool ListInstancesResult::flavorInfoIsSet() const +{ + return flavorInfoIsSet_; +} + +void ListInstancesResult::unsetflavorInfo() +{ + flavorInfoIsSet_ = false; +} + +ListVolume ListInstancesResult::getVolume() const +{ + return volume_; +} + +void ListInstancesResult::setVolume(const ListVolume& value) +{ + volume_ = value; + volumeIsSet_ = true; +} + +bool ListInstancesResult::volumeIsSet() const +{ + return volumeIsSet_; +} + +void ListInstancesResult::unsetvolume() +{ + volumeIsSet_ = false; +} + +std::string ListInstancesResult::getSwitchStrategy() const +{ + return switchStrategy_; +} + +void ListInstancesResult::setSwitchStrategy(const std::string& value) +{ + switchStrategy_ = value; + switchStrategyIsSet_ = true; +} + +bool ListInstancesResult::switchStrategyIsSet() const +{ + return switchStrategyIsSet_; +} + +void ListInstancesResult::unsetswitchStrategy() +{ + switchStrategyIsSet_ = false; +} + +OpenGaussBackupStrategyForListResponse ListInstancesResult::getBackupStrategy() const +{ + return backupStrategy_; +} + +void ListInstancesResult::setBackupStrategy(const OpenGaussBackupStrategyForListResponse& value) +{ + backupStrategy_ = value; + backupStrategyIsSet_ = true; +} + +bool ListInstancesResult::backupStrategyIsSet() const +{ + return backupStrategyIsSet_; +} + +void ListInstancesResult::unsetbackupStrategy() +{ + backupStrategyIsSet_ = false; +} + +std::string ListInstancesResult::getMaintenanceWindow() const +{ + return maintenanceWindow_; +} + +void ListInstancesResult::setMaintenanceWindow(const std::string& value) +{ + maintenanceWindow_ = value; + maintenanceWindowIsSet_ = true; +} + +bool ListInstancesResult::maintenanceWindowIsSet() const +{ + return maintenanceWindowIsSet_; +} + +void ListInstancesResult::unsetmaintenanceWindow() +{ + maintenanceWindowIsSet_ = false; +} + +std::vector& ListInstancesResult::getNodes() +{ + return nodes_; +} + +void ListInstancesResult::setNodes(const std::vector& value) +{ + nodes_ = value; + nodesIsSet_ = true; +} + +bool ListInstancesResult::nodesIsSet() const +{ + return nodesIsSet_; +} + +void ListInstancesResult::unsetnodes() +{ + nodesIsSet_ = false; +} + +std::string ListInstancesResult::getEnterpriseProjectId() const +{ + return enterpriseProjectId_; +} + +void ListInstancesResult::setEnterpriseProjectId(const std::string& value) +{ + enterpriseProjectId_ = value; + enterpriseProjectIdIsSet_ = true; +} + +bool ListInstancesResult::enterpriseProjectIdIsSet() const +{ + return enterpriseProjectIdIsSet_; +} + +void ListInstancesResult::unsetenterpriseProjectId() +{ + enterpriseProjectIdIsSet_ = false; +} + +std::string ListInstancesResult::getInstanceMode() const +{ + return instanceMode_; +} + +void ListInstancesResult::setInstanceMode(const std::string& value) +{ + instanceMode_ = value; + instanceModeIsSet_ = true; +} + +bool ListInstancesResult::instanceModeIsSet() const +{ + return instanceModeIsSet_; +} + +void ListInstancesResult::unsetinstanceMode() +{ + instanceModeIsSet_ = false; +} + +std::string ListInstancesResult::getDiskEncryptionId() const +{ + return diskEncryptionId_; +} + +void ListInstancesResult::setDiskEncryptionId(const std::string& value) +{ + diskEncryptionId_ = value; + diskEncryptionIdIsSet_ = true; +} + +bool ListInstancesResult::diskEncryptionIdIsSet() const +{ + return diskEncryptionIdIsSet_; +} + +void ListInstancesResult::unsetdiskEncryptionId() +{ + diskEncryptionIdIsSet_ = false; +} + +OpenGaussChargeInfoListResponse ListInstancesResult::getChargeInfo() const +{ + return chargeInfo_; +} + +void ListInstancesResult::setChargeInfo(const OpenGaussChargeInfoListResponse& value) +{ + chargeInfo_ = value; + chargeInfoIsSet_ = true; +} + +bool ListInstancesResult::chargeInfoIsSet() const +{ + return chargeInfoIsSet_; +} + +void ListInstancesResult::unsetchargeInfo() +{ + chargeInfoIsSet_ = false; +} + +std::string ListInstancesResult::getTimeZone() const +{ + return timeZone_; +} + +void ListInstancesResult::setTimeZone(const std::string& value) +{ + timeZone_ = value; + timeZoneIsSet_ = true; +} + +bool ListInstancesResult::timeZoneIsSet() const +{ + return timeZoneIsSet_; +} + +void ListInstancesResult::unsettimeZone() +{ + timeZoneIsSet_ = false; +} + +std::vector& ListInstancesResult::getTags() +{ + return tags_; +} + +void ListInstancesResult::setTags(const std::vector& value) +{ + tags_ = value; + tagsIsSet_ = true; +} + +bool ListInstancesResult::tagsIsSet() const +{ + return tagsIsSet_; +} + +void ListInstancesResult::unsettags() +{ + tagsIsSet_ = false; +} + +std::string ListInstancesResult::getDiskUsage() const +{ + return diskUsage_; +} + +void ListInstancesResult::setDiskUsage(const std::string& value) +{ + diskUsage_ = value; + diskUsageIsSet_ = true; +} + +bool ListInstancesResult::diskUsageIsSet() const +{ + return diskUsageIsSet_; +} + +void ListInstancesResult::unsetdiskUsage() +{ + diskUsageIsSet_ = false; +} + +MySQLCompatibilityResult ListInstancesResult::getMysqlCompatibility() const +{ + return mysqlCompatibility_; +} + +void ListInstancesResult::setMysqlCompatibility(const MySQLCompatibilityResult& value) +{ + mysqlCompatibility_ = value; + mysqlCompatibilityIsSet_ = true; +} + +bool ListInstancesResult::mysqlCompatibilityIsSet() const +{ + return mysqlCompatibilityIsSet_; +} + +void ListInstancesResult::unsetmysqlCompatibility() +{ + mysqlCompatibilityIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbforopengauss/src/v3/model/MySQLCompatibilityResult.cpp b/gaussdbforopengauss/src/v3/model/MySQLCompatibilityResult.cpp new file mode 100644 index 000000000..109450a3c --- /dev/null +++ b/gaussdbforopengauss/src/v3/model/MySQLCompatibilityResult.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/gaussdbforopengauss/v3/model/MySQLCompatibilityResult.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + + + + +MySQLCompatibilityResult::MySQLCompatibilityResult() +{ + port_ = ""; + portIsSet_ = false; +} + +MySQLCompatibilityResult::~MySQLCompatibilityResult() = default; + +void MySQLCompatibilityResult::validate() +{ +} + +web::json::value MySQLCompatibilityResult::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(portIsSet_) { + val[utility::conversions::to_string_t("port")] = ModelBase::toJson(port_); + } + + return val; +} +bool MySQLCompatibilityResult::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("port"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("port")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setPort(refVal); + } + } + return ok; +} + + +std::string MySQLCompatibilityResult::getPort() const +{ + return port_; +} + +void MySQLCompatibilityResult::setPort(const std::string& value) +{ + port_ = value; + portIsSet_ = true; +} + +bool MySQLCompatibilityResult::portIsSet() const +{ + return portIsSet_; +} + +void MySQLCompatibilityResult::unsetport() +{ + portIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbforopengauss/src/v3/model/SetNewBackupPolicyRequest.cpp b/gaussdbforopengauss/src/v3/model/SetNewBackupPolicyRequest.cpp new file mode 100644 index 000000000..a296c1446 --- /dev/null +++ b/gaussdbforopengauss/src/v3/model/SetNewBackupPolicyRequest.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/gaussdbforopengauss/v3/model/SetNewBackupPolicyRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + + + + +SetNewBackupPolicyRequest::SetNewBackupPolicyRequest() +{ + xLanguage_ = ""; + xLanguageIsSet_ = false; + instanceId_ = ""; + instanceIdIsSet_ = false; + bodyIsSet_ = false; +} + +SetNewBackupPolicyRequest::~SetNewBackupPolicyRequest() = default; + +void SetNewBackupPolicyRequest::validate() +{ +} + +web::json::value SetNewBackupPolicyRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(xLanguageIsSet_) { + val[utility::conversions::to_string_t("X-Language")] = ModelBase::toJson(xLanguage_); + } + 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 SetNewBackupPolicyRequest::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("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()) + { + SetNewBackupPolicyRequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string SetNewBackupPolicyRequest::getXLanguage() const +{ + return xLanguage_; +} + +void SetNewBackupPolicyRequest::setXLanguage(const std::string& value) +{ + xLanguage_ = value; + xLanguageIsSet_ = true; +} + +bool SetNewBackupPolicyRequest::xLanguageIsSet() const +{ + return xLanguageIsSet_; +} + +void SetNewBackupPolicyRequest::unsetxLanguage() +{ + xLanguageIsSet_ = false; +} + +std::string SetNewBackupPolicyRequest::getInstanceId() const +{ + return instanceId_; +} + +void SetNewBackupPolicyRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool SetNewBackupPolicyRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void SetNewBackupPolicyRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +SetNewBackupPolicyRequestBody SetNewBackupPolicyRequest::getBody() const +{ + return body_; +} + +void SetNewBackupPolicyRequest::setBody(const SetNewBackupPolicyRequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool SetNewBackupPolicyRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void SetNewBackupPolicyRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbforopengauss/src/v3/model/SetNewBackupPolicyRequestBody.cpp b/gaussdbforopengauss/src/v3/model/SetNewBackupPolicyRequestBody.cpp new file mode 100644 index 000000000..965c46fcd --- /dev/null +++ b/gaussdbforopengauss/src/v3/model/SetNewBackupPolicyRequestBody.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/gaussdbforopengauss/v3/model/SetNewBackupPolicyRequestBody.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + + + + +SetNewBackupPolicyRequestBody::SetNewBackupPolicyRequestBody() +{ + backupPolicyIsSet_ = false; +} + +SetNewBackupPolicyRequestBody::~SetNewBackupPolicyRequestBody() = default; + +void SetNewBackupPolicyRequestBody::validate() +{ +} + +web::json::value SetNewBackupPolicyRequestBody::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(backupPolicyIsSet_) { + val[utility::conversions::to_string_t("backup_policy")] = ModelBase::toJson(backupPolicy_); + } + + return val; +} +bool SetNewBackupPolicyRequestBody::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("backup_policy"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("backup_policy")); + if(!fieldValue.is_null()) + { + BackupPolicyInfo refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBackupPolicy(refVal); + } + } + return ok; +} + + +BackupPolicyInfo SetNewBackupPolicyRequestBody::getBackupPolicy() const +{ + return backupPolicy_; +} + +void SetNewBackupPolicyRequestBody::setBackupPolicy(const BackupPolicyInfo& value) +{ + backupPolicy_ = value; + backupPolicyIsSet_ = true; +} + +bool SetNewBackupPolicyRequestBody::backupPolicyIsSet() const +{ + return backupPolicyIsSet_; +} + +void SetNewBackupPolicyRequestBody::unsetbackupPolicy() +{ + backupPolicyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbforopengauss/src/v3/model/SetNewBackupPolicyResponse.cpp b/gaussdbforopengauss/src/v3/model/SetNewBackupPolicyResponse.cpp new file mode 100644 index 000000000..66e99a928 --- /dev/null +++ b/gaussdbforopengauss/src/v3/model/SetNewBackupPolicyResponse.cpp @@ -0,0 +1,44 @@ + + +#include "huaweicloud/gaussdbforopengauss/v3/model/SetNewBackupPolicyResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + + + + +SetNewBackupPolicyResponse::SetNewBackupPolicyResponse() +{ +} + +SetNewBackupPolicyResponse::~SetNewBackupPolicyResponse() = default; + +void SetNewBackupPolicyResponse::validate() +{ +} + +web::json::value SetNewBackupPolicyResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + + return val; +} +bool SetNewBackupPolicyResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + return ok; +} + + +} +} +} +} +} + + diff --git a/gaussdbforopengauss/src/v3/model/ShowBatchUpgradeCandidateVersionsRequest.cpp b/gaussdbforopengauss/src/v3/model/ShowBatchUpgradeCandidateVersionsRequest.cpp new file mode 100644 index 000000000..08fe3c0d3 --- /dev/null +++ b/gaussdbforopengauss/src/v3/model/ShowBatchUpgradeCandidateVersionsRequest.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/gaussdbforopengauss/v3/model/ShowBatchUpgradeCandidateVersionsRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + + + + +ShowBatchUpgradeCandidateVersionsRequest::ShowBatchUpgradeCandidateVersionsRequest() +{ + xLanguage_ = ""; + xLanguageIsSet_ = false; + bodyIsSet_ = false; +} + +ShowBatchUpgradeCandidateVersionsRequest::~ShowBatchUpgradeCandidateVersionsRequest() = default; + +void ShowBatchUpgradeCandidateVersionsRequest::validate() +{ +} + +web::json::value ShowBatchUpgradeCandidateVersionsRequest::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 ShowBatchUpgradeCandidateVersionsRequest::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()) + { + UpgradeInstancesRequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string ShowBatchUpgradeCandidateVersionsRequest::getXLanguage() const +{ + return xLanguage_; +} + +void ShowBatchUpgradeCandidateVersionsRequest::setXLanguage(const std::string& value) +{ + xLanguage_ = value; + xLanguageIsSet_ = true; +} + +bool ShowBatchUpgradeCandidateVersionsRequest::xLanguageIsSet() const +{ + return xLanguageIsSet_; +} + +void ShowBatchUpgradeCandidateVersionsRequest::unsetxLanguage() +{ + xLanguageIsSet_ = false; +} + +UpgradeInstancesRequestBody ShowBatchUpgradeCandidateVersionsRequest::getBody() const +{ + return body_; +} + +void ShowBatchUpgradeCandidateVersionsRequest::setBody(const UpgradeInstancesRequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool ShowBatchUpgradeCandidateVersionsRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void ShowBatchUpgradeCandidateVersionsRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbforopengauss/src/v3/model/ShowBatchUpgradeCandidateVersionsResponse.cpp b/gaussdbforopengauss/src/v3/model/ShowBatchUpgradeCandidateVersionsResponse.cpp new file mode 100644 index 000000000..1c3560236 --- /dev/null +++ b/gaussdbforopengauss/src/v3/model/ShowBatchUpgradeCandidateVersionsResponse.cpp @@ -0,0 +1,181 @@ + + +#include "huaweicloud/gaussdbforopengauss/v3/model/ShowBatchUpgradeCandidateVersionsResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + + + + +ShowBatchUpgradeCandidateVersionsResponse::ShowBatchUpgradeCandidateVersionsResponse() +{ + upgradeTypeListIsSet_ = false; + targetVersion_ = ""; + targetVersionIsSet_ = false; + upgradeCandidateVersionsIsSet_ = false; + hotfixUpgradeInfosIsSet_ = false; +} + +ShowBatchUpgradeCandidateVersionsResponse::~ShowBatchUpgradeCandidateVersionsResponse() = default; + +void ShowBatchUpgradeCandidateVersionsResponse::validate() +{ +} + +web::json::value ShowBatchUpgradeCandidateVersionsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(upgradeTypeListIsSet_) { + val[utility::conversions::to_string_t("upgrade_type_list")] = ModelBase::toJson(upgradeTypeList_); + } + if(targetVersionIsSet_) { + val[utility::conversions::to_string_t("target_version")] = ModelBase::toJson(targetVersion_); + } + if(upgradeCandidateVersionsIsSet_) { + val[utility::conversions::to_string_t("upgrade_candidate_versions")] = ModelBase::toJson(upgradeCandidateVersions_); + } + if(hotfixUpgradeInfosIsSet_) { + val[utility::conversions::to_string_t("hotfix_upgrade_infos")] = ModelBase::toJson(hotfixUpgradeInfos_); + } + + return val; +} +bool ShowBatchUpgradeCandidateVersionsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("upgrade_type_list"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("upgrade_type_list")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setUpgradeTypeList(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("target_version"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("target_version")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTargetVersion(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("upgrade_candidate_versions"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("upgrade_candidate_versions")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setUpgradeCandidateVersions(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("hotfix_upgrade_infos"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("hotfix_upgrade_infos")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setHotfixUpgradeInfos(refVal); + } + } + return ok; +} + + +std::vector& ShowBatchUpgradeCandidateVersionsResponse::getUpgradeTypeList() +{ + return upgradeTypeList_; +} + +void ShowBatchUpgradeCandidateVersionsResponse::setUpgradeTypeList(const std::vector& value) +{ + upgradeTypeList_ = value; + upgradeTypeListIsSet_ = true; +} + +bool ShowBatchUpgradeCandidateVersionsResponse::upgradeTypeListIsSet() const +{ + return upgradeTypeListIsSet_; +} + +void ShowBatchUpgradeCandidateVersionsResponse::unsetupgradeTypeList() +{ + upgradeTypeListIsSet_ = false; +} + +std::string ShowBatchUpgradeCandidateVersionsResponse::getTargetVersion() const +{ + return targetVersion_; +} + +void ShowBatchUpgradeCandidateVersionsResponse::setTargetVersion(const std::string& value) +{ + targetVersion_ = value; + targetVersionIsSet_ = true; +} + +bool ShowBatchUpgradeCandidateVersionsResponse::targetVersionIsSet() const +{ + return targetVersionIsSet_; +} + +void ShowBatchUpgradeCandidateVersionsResponse::unsettargetVersion() +{ + targetVersionIsSet_ = false; +} + +std::vector& ShowBatchUpgradeCandidateVersionsResponse::getUpgradeCandidateVersions() +{ + return upgradeCandidateVersions_; +} + +void ShowBatchUpgradeCandidateVersionsResponse::setUpgradeCandidateVersions(const std::vector& value) +{ + upgradeCandidateVersions_ = value; + upgradeCandidateVersionsIsSet_ = true; +} + +bool ShowBatchUpgradeCandidateVersionsResponse::upgradeCandidateVersionsIsSet() const +{ + return upgradeCandidateVersionsIsSet_; +} + +void ShowBatchUpgradeCandidateVersionsResponse::unsetupgradeCandidateVersions() +{ + upgradeCandidateVersionsIsSet_ = false; +} + +std::vector& ShowBatchUpgradeCandidateVersionsResponse::getHotfixUpgradeInfos() +{ + return hotfixUpgradeInfos_; +} + +void ShowBatchUpgradeCandidateVersionsResponse::setHotfixUpgradeInfos(const std::vector& value) +{ + hotfixUpgradeInfos_ = value; + hotfixUpgradeInfosIsSet_ = true; +} + +bool ShowBatchUpgradeCandidateVersionsResponse::hotfixUpgradeInfosIsSet() const +{ + return hotfixUpgradeInfosIsSet_; +} + +void ShowBatchUpgradeCandidateVersionsResponse::unsethotfixUpgradeInfos() +{ + hotfixUpgradeInfosIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbforopengauss/src/v3/model/UpgradeInstancesRequestBody.cpp b/gaussdbforopengauss/src/v3/model/UpgradeInstancesRequestBody.cpp new file mode 100644 index 000000000..326cc8741 --- /dev/null +++ b/gaussdbforopengauss/src/v3/model/UpgradeInstancesRequestBody.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/gaussdbforopengauss/v3/model/UpgradeInstancesRequestBody.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + + + + +UpgradeInstancesRequestBody::UpgradeInstancesRequestBody() +{ + instanceIdsIsSet_ = false; +} + +UpgradeInstancesRequestBody::~UpgradeInstancesRequestBody() = default; + +void UpgradeInstancesRequestBody::validate() +{ +} + +web::json::value UpgradeInstancesRequestBody::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(instanceIdsIsSet_) { + val[utility::conversions::to_string_t("instance_ids")] = ModelBase::toJson(instanceIds_); + } + + return val; +} +bool UpgradeInstancesRequestBody::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("instance_ids"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("instance_ids")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInstanceIds(refVal); + } + } + return ok; +} + + +std::vector& UpgradeInstancesRequestBody::getInstanceIds() +{ + return instanceIds_; +} + +void UpgradeInstancesRequestBody::setInstanceIds(const std::vector& value) +{ + instanceIds_ = value; + instanceIdsIsSet_ = true; +} + +bool UpgradeInstancesRequestBody::instanceIdsIsSet() const +{ + return instanceIdsIsSet_; +} + +void UpgradeInstancesRequestBody::unsetinstanceIds() +{ + instanceIdsIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbforopengauss/src/v3/model/UpgradeInstancesVersionRequest.cpp b/gaussdbforopengauss/src/v3/model/UpgradeInstancesVersionRequest.cpp new file mode 100644 index 000000000..de24583bd --- /dev/null +++ b/gaussdbforopengauss/src/v3/model/UpgradeInstancesVersionRequest.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/gaussdbforopengauss/v3/model/UpgradeInstancesVersionRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + + + + +UpgradeInstancesVersionRequest::UpgradeInstancesVersionRequest() +{ + xLanguage_ = ""; + xLanguageIsSet_ = false; + bodyIsSet_ = false; +} + +UpgradeInstancesVersionRequest::~UpgradeInstancesVersionRequest() = default; + +void UpgradeInstancesVersionRequest::validate() +{ +} + +web::json::value UpgradeInstancesVersionRequest::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 UpgradeInstancesVersionRequest::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()) + { + GaussDBUpgradeInstancesVersionRequest refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string UpgradeInstancesVersionRequest::getXLanguage() const +{ + return xLanguage_; +} + +void UpgradeInstancesVersionRequest::setXLanguage(const std::string& value) +{ + xLanguage_ = value; + xLanguageIsSet_ = true; +} + +bool UpgradeInstancesVersionRequest::xLanguageIsSet() const +{ + return xLanguageIsSet_; +} + +void UpgradeInstancesVersionRequest::unsetxLanguage() +{ + xLanguageIsSet_ = false; +} + +GaussDBUpgradeInstancesVersionRequest UpgradeInstancesVersionRequest::getBody() const +{ + return body_; +} + +void UpgradeInstancesVersionRequest::setBody(const GaussDBUpgradeInstancesVersionRequest& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool UpgradeInstancesVersionRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void UpgradeInstancesVersionRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbforopengauss/src/v3/model/UpgradeInstancesVersionResponse.cpp b/gaussdbforopengauss/src/v3/model/UpgradeInstancesVersionResponse.cpp new file mode 100644 index 000000000..73f71c5c6 --- /dev/null +++ b/gaussdbforopengauss/src/v3/model/UpgradeInstancesVersionResponse.cpp @@ -0,0 +1,216 @@ + + +#include "huaweicloud/gaussdbforopengauss/v3/model/UpgradeInstancesVersionResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + + + + +UpgradeInstancesVersionResponse::UpgradeInstancesVersionResponse() +{ + jobIdsIsSet_ = false; + succeededNum_ = 0; + succeededNumIsSet_ = false; + failedNum_ = 0; + failedNumIsSet_ = false; + failedInstanceIdsIsSet_ = false; + errorMessagesIsSet_ = false; +} + +UpgradeInstancesVersionResponse::~UpgradeInstancesVersionResponse() = default; + +void UpgradeInstancesVersionResponse::validate() +{ +} + +web::json::value UpgradeInstancesVersionResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(jobIdsIsSet_) { + val[utility::conversions::to_string_t("job_ids")] = ModelBase::toJson(jobIds_); + } + if(succeededNumIsSet_) { + val[utility::conversions::to_string_t("succeeded_num")] = ModelBase::toJson(succeededNum_); + } + if(failedNumIsSet_) { + val[utility::conversions::to_string_t("failed_num")] = ModelBase::toJson(failedNum_); + } + if(failedInstanceIdsIsSet_) { + val[utility::conversions::to_string_t("failed_instance_ids")] = ModelBase::toJson(failedInstanceIds_); + } + if(errorMessagesIsSet_) { + val[utility::conversions::to_string_t("error_messages")] = ModelBase::toJson(errorMessages_); + } + + return val; +} +bool UpgradeInstancesVersionResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("job_ids"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("job_ids")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setJobIds(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("succeeded_num"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("succeeded_num")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSucceededNum(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("failed_num"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("failed_num")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFailedNum(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("failed_instance_ids"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("failed_instance_ids")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFailedInstanceIds(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("error_messages"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("error_messages")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setErrorMessages(refVal); + } + } + return ok; +} + + +std::vector& UpgradeInstancesVersionResponse::getJobIds() +{ + return jobIds_; +} + +void UpgradeInstancesVersionResponse::setJobIds(const std::vector& value) +{ + jobIds_ = value; + jobIdsIsSet_ = true; +} + +bool UpgradeInstancesVersionResponse::jobIdsIsSet() const +{ + return jobIdsIsSet_; +} + +void UpgradeInstancesVersionResponse::unsetjobIds() +{ + jobIdsIsSet_ = false; +} + +int32_t UpgradeInstancesVersionResponse::getSucceededNum() const +{ + return succeededNum_; +} + +void UpgradeInstancesVersionResponse::setSucceededNum(int32_t value) +{ + succeededNum_ = value; + succeededNumIsSet_ = true; +} + +bool UpgradeInstancesVersionResponse::succeededNumIsSet() const +{ + return succeededNumIsSet_; +} + +void UpgradeInstancesVersionResponse::unsetsucceededNum() +{ + succeededNumIsSet_ = false; +} + +int32_t UpgradeInstancesVersionResponse::getFailedNum() const +{ + return failedNum_; +} + +void UpgradeInstancesVersionResponse::setFailedNum(int32_t value) +{ + failedNum_ = value; + failedNumIsSet_ = true; +} + +bool UpgradeInstancesVersionResponse::failedNumIsSet() const +{ + return failedNumIsSet_; +} + +void UpgradeInstancesVersionResponse::unsetfailedNum() +{ + failedNumIsSet_ = false; +} + +std::vector& UpgradeInstancesVersionResponse::getFailedInstanceIds() +{ + return failedInstanceIds_; +} + +void UpgradeInstancesVersionResponse::setFailedInstanceIds(const std::vector& value) +{ + failedInstanceIds_ = value; + failedInstanceIdsIsSet_ = true; +} + +bool UpgradeInstancesVersionResponse::failedInstanceIdsIsSet() const +{ + return failedInstanceIdsIsSet_; +} + +void UpgradeInstancesVersionResponse::unsetfailedInstanceIds() +{ + failedInstanceIdsIsSet_ = false; +} + +std::vector& UpgradeInstancesVersionResponse::getErrorMessages() +{ + return errorMessages_; +} + +void UpgradeInstancesVersionResponse::setErrorMessages(const std::vector& value) +{ + errorMessages_ = value; + errorMessagesIsSet_ = true; +} + +bool UpgradeInstancesVersionResponse::errorMessagesIsSet() const +{ + return errorMessagesIsSet_; +} + +void UpgradeInstancesVersionResponse::unseterrorMessages() +{ + errorMessagesIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/kms/include/huaweicloud/kms/v2/KmsRegion.h b/kms/include/huaweicloud/kms/v2/KmsRegion.h index df7b96208..51354ae2a 100644 --- a/kms/include/huaweicloud/kms/v2/KmsRegion.h +++ b/kms/include/huaweicloud/kms/v2/KmsRegion.h @@ -106,6 +106,14 @@ class HUAWEICLOUD_KMS_V2_EXPORT KmsRegion { { "https://kms.ae-ad-1.myhuaweicloud.com" }); + regions["my-kualalumpur-1"] = Region("my-kualalumpur-1", + { + "https://kms.my-kualalumpur-1.myhuaweicloud.com" + }); + regions["ru-moscow-1"] = Region("ru-moscow-1", + { + "https://kms.ru-moscow-1.myhuaweicloud.com" + }); return regions; } private: diff --git a/kvs/include/huaweicloud/kvs/v1/KvsClient.h b/kvs/include/huaweicloud/kvs/v1/KvsClient.h index 1bc1f6afb..7921525bf 100644 --- a/kvs/include/huaweicloud/kvs/v1/KvsClient.h +++ b/kvs/include/huaweicloud/kvs/v1/KvsClient.h @@ -72,7 +72,7 @@ class HUAWEICLOUD_KVS_V1_EXPORT KvsClient : public Client // 创建表 // - // 在指定仓内创建表,表名在仓内唯一; 创建表时,指定主键模板及本地二级索引模板及全局二级索引模板。 + // 在指定仓内创建表,表名在仓内唯一;创建表时,指定主键模板及本地二级索引模板及全局二级索引模板。创建表时,如果仓不存在,将会自动创建仓。 // // Please refer to HUAWEI cloud API Explorer for details. std::shared_ptr createTable( @@ -88,7 +88,7 @@ class HUAWEICLOUD_KVS_V1_EXPORT KvsClient : public Client ); // 列举仓 // - // 一个账户下可能存在多个仓,每个账户下的store数量有限制,响应中一次性返回所有仓名称。 + // 一个账户下可以创建最多25个仓,每个仓可以创建最多100个store,响应中一次性返回所有仓名称。 // // Please refer to HUAWEI cloud API Explorer for details. std::shared_ptr listStore( diff --git a/kvs/include/huaweicloud/kvs/v1/model/Composed_expression.h b/kvs/include/huaweicloud/kvs/v1/model/Composed_expression.h deleted file mode 100644 index d31231a4c..000000000 --- a/kvs/include/huaweicloud/kvs/v1/model/Composed_expression.h +++ /dev/null @@ -1,80 +0,0 @@ - -#ifndef HUAWEICLOUD_SDK_KVS_V1_MODEL_Composed_expression_H_ -#define HUAWEICLOUD_SDK_KVS_V1_MODEL_Composed_expression_H_ - -#include -#include -#include - -#include - -#include -#include -#include - -#include -#include -#include - -namespace HuaweiCloud { -namespace Sdk { -namespace Kvs { -namespace V1 { -namespace Model { - -using namespace HuaweiCloud::Sdk::Core::Utils; -using namespace HuaweiCloud::Sdk::Core::Http; -/// -/// -/// -class HUAWEICLOUD_KVS_V1_EXPORT Composed_expression - : public ModelBase -{ -public: - Composed_expression(); - virtual ~Composed_expression(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - bool fromBson(const Viewer &viewer) override; - bool toBson(Builder &builder) const override; - ///////////////////////////////////////////// - /// Composed_expression members - - /// - /// 逻辑关系,取值如\"$and\", \"$or\", \"$nor\"。 - /// - - std::string getLogic() const; - bool logicIsSet() const; - void unsetlogic(); - void setLogic(const std::string& value); - - /// - /// 多个相同优先级且相同逻辑的单字段或多字段条件。 - /// - - std::vector& getExpressions(); - bool expressionsIsSet() const; - void unsetexpressions(); - void setExpressions(const std::vector& value); - - -protected: - std::string logic_; - bool logicIsSet_; - std::vector expressions_; - bool expressionsIsSet_; - -}; - - -} -} -} -} -} - -#endif // HUAWEICLOUD_SDK_KVS_V1_MODEL_Composed_expression_H_ diff --git a/kvs/include/huaweicloud/kvs/v1/model/Condition_expression.h b/kvs/include/huaweicloud/kvs/v1/model/Condition_expression.h index 52002700f..274716f7e 100644 --- a/kvs/include/huaweicloud/kvs/v1/model/Condition_expression.h +++ b/kvs/include/huaweicloud/kvs/v1/model/Condition_expression.h @@ -14,8 +14,6 @@ #include #include -#include -#include namespace HuaweiCloud { namespace Sdk { @@ -62,34 +60,12 @@ class HUAWEICLOUD_KVS_V1_EXPORT Condition_expression void unsetmultiFieldExpression(); void setMultiFieldExpression(const Multi_field_expression& value); - /// - /// - /// - - Single_kv_expression getSingleKvExpression() const; - bool singleKvExpressionIsSet() const; - void unsetsingleKvExpression(); - void setSingleKvExpression(const Single_kv_expression& value); - - /// - /// - /// - - Composed_expression getComposedExpression() const; - bool composedExpressionIsSet() const; - void unsetcomposedExpression(); - void setComposedExpression(const Composed_expression& value); - protected: Single_field_expression singleFieldExpression_; bool singleFieldExpressionIsSet_; Multi_field_expression multiFieldExpression_; bool multiFieldExpressionIsSet_; - Single_kv_expression singleKvExpression_; - bool singleKvExpressionIsSet_; - Composed_expression composedExpression_; - bool composedExpressionIsSet_; }; diff --git a/kvs/include/huaweicloud/kvs/v1/model/DeleteKvResponse.h b/kvs/include/huaweicloud/kvs/v1/model/DeleteKvResponse.h index 2dac1b0be..f400bc06d 100644 --- a/kvs/include/huaweicloud/kvs/v1/model/DeleteKvResponse.h +++ b/kvs/include/huaweicloud/kvs/v1/model/DeleteKvResponse.h @@ -12,8 +12,6 @@ #include #include -#include -#include namespace HuaweiCloud { namespace Sdk { @@ -42,30 +40,8 @@ class HUAWEICLOUD_KVS_V1_EXPORT DeleteKvResponse ///////////////////////////////////////////// /// DeleteKvResponse members - /// - /// - /// - - Kv_blob_data getKvBlobData() const; - bool kvBlobDataIsSet() const; - void unsetkvBlobData(); - void setKvBlobData(const Kv_blob_data& value); - - /// - /// 对kv_doc有效。 - /// - - Document getKvDoc() const; - bool kvDocIsSet() const; - void unsetkvDoc(); - void setKvDoc(const Document& value); - protected: - Kv_blob_data kvBlobData_; - bool kvBlobDataIsSet_; - Document kvDoc_; - bool kvDocIsSet_; #ifdef RTTR_FLAG RTTR_ENABLE() diff --git a/kvs/include/huaweicloud/kvs/v1/model/Expression.h b/kvs/include/huaweicloud/kvs/v1/model/Expression.h deleted file mode 100644 index 1b16e2b55..000000000 --- a/kvs/include/huaweicloud/kvs/v1/model/Expression.h +++ /dev/null @@ -1,67 +0,0 @@ - -#ifndef HUAWEICLOUD_SDK_KVS_V1_MODEL_Expression_H_ -#define HUAWEICLOUD_SDK_KVS_V1_MODEL_Expression_H_ - -#include -#include -#include - -#include - -#include -#include -#include - -#include - -namespace HuaweiCloud { -namespace Sdk { -namespace Kvs { -namespace V1 { -namespace Model { - -using namespace HuaweiCloud::Sdk::Core::Utils; -using namespace HuaweiCloud::Sdk::Core::Http; -/// -/// -/// -class HUAWEICLOUD_KVS_V1_EXPORT Expression - : public ModelBase -{ -public: - Expression(); - virtual ~Expression(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - bool fromBson(const Viewer &viewer) override; - bool toBson(Builder &builder) const override; - ///////////////////////////////////////////// - /// Expression members - - /// - /// - /// - - Single_field_expression getSingleFieldExpression() const; - bool singleFieldExpressionIsSet() const; - void unsetsingleFieldExpression(); - void setSingleFieldExpression(const Single_field_expression& value); - - -protected: - Single_field_expression singleFieldExpression_; - bool singleFieldExpressionIsSet_; - -}; - - -} -} -} -} -} - -#endif // HUAWEICLOUD_SDK_KVS_V1_MODEL_Expression_H_ diff --git a/kvs/include/huaweicloud/kvs/v1/model/GetKvResponse.h b/kvs/include/huaweicloud/kvs/v1/model/GetKvResponse.h index 968efd046..d378fef26 100644 --- a/kvs/include/huaweicloud/kvs/v1/model/GetKvResponse.h +++ b/kvs/include/huaweicloud/kvs/v1/model/GetKvResponse.h @@ -13,7 +13,6 @@ #include #include -#include namespace HuaweiCloud { namespace Sdk { @@ -42,15 +41,6 @@ class HUAWEICLOUD_KVS_V1_EXPORT GetKvResponse ///////////////////////////////////////////// /// GetKvResponse members - /// - /// - /// - - Kv_blob_data getKvBlobData() const; - bool kvBlobDataIsSet() const; - void unsetkvBlobData(); - void setKvBlobData(const Kv_blob_data& value); - /// /// 对kv_doc有效。 > 内容字段:主键字段+投影字段或者全部字段。 /// @@ -62,8 +52,6 @@ class HUAWEICLOUD_KVS_V1_EXPORT GetKvResponse protected: - Kv_blob_data kvBlobData_; - bool kvBlobDataIsSet_; Document kvDoc_; bool kvDocIsSet_; diff --git a/kvs/include/huaweicloud/kvs/v1/model/Kv_blob.h b/kvs/include/huaweicloud/kvs/v1/model/Kv_blob.h deleted file mode 100644 index 939d87045..000000000 --- a/kvs/include/huaweicloud/kvs/v1/model/Kv_blob.h +++ /dev/null @@ -1,89 +0,0 @@ - -#ifndef HUAWEICLOUD_SDK_KVS_V1_MODEL_Kv_blob_H_ -#define HUAWEICLOUD_SDK_KVS_V1_MODEL_Kv_blob_H_ - -#include -#include -#include - -#include - -#include -#include -#include - -#include - -namespace HuaweiCloud { -namespace Sdk { -namespace Kvs { -namespace V1 { -namespace Model { - -using namespace HuaweiCloud::Sdk::Core::Utils; -using namespace HuaweiCloud::Sdk::Core::Http; -/// -/// -/// -class HUAWEICLOUD_KVS_V1_EXPORT Kv_blob - : public ModelBase -{ -public: - Kv_blob(); - virtual ~Kv_blob(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - bool fromBson(const Viewer &viewer) override; - bool toBson(Builder &builder) const override; - ///////////////////////////////////////////// - /// Kv_blob members - - /// - /// 用户自定义的主键名及值。 > 内容字段:主键字段名和值,组合索引多个元素。 - /// - - Document getPrimaryKey() const; - bool primaryKeyIsSet() const; - void unsetprimaryKey(); - void setPrimaryKey(const Document& value); - - /// - /// 属性信息,最大2kb。 - /// - - BsonBinary getXblob() const; - bool xblobIsSet() const; - void unsetxblob(); - void setXblob(const BsonBinary& value); - - /// - /// 非结构化数据内容。 - /// - - BsonBinary getXattr() const; - bool xattrIsSet() const; - void unsetxattr(); - void setXattr(const BsonBinary& value); - - -protected: - Document primaryKey_; - bool primaryKeyIsSet_; - BsonBinary xblob_; - bool xblobIsSet_; - BsonBinary xattr_; - bool xattrIsSet_; - -}; - - -} -} -} -} -} - -#endif // HUAWEICLOUD_SDK_KVS_V1_MODEL_Kv_blob_H_ diff --git a/kvs/include/huaweicloud/kvs/v1/model/Kv_blob_data.h b/kvs/include/huaweicloud/kvs/v1/model/Kv_blob_data.h deleted file mode 100644 index 39f68924e..000000000 --- a/kvs/include/huaweicloud/kvs/v1/model/Kv_blob_data.h +++ /dev/null @@ -1,122 +0,0 @@ - -#ifndef HUAWEICLOUD_SDK_KVS_V1_MODEL_Kv_blob_data_H_ -#define HUAWEICLOUD_SDK_KVS_V1_MODEL_Kv_blob_data_H_ - -#include -#include -#include - -#include - -#include -#include -#include - -#include - -namespace HuaweiCloud { -namespace Sdk { -namespace Kvs { -namespace V1 { -namespace Model { - -using namespace HuaweiCloud::Sdk::Core::Utils; -using namespace HuaweiCloud::Sdk::Core::Http; -/// -/// -/// -class HUAWEICLOUD_KVS_V1_EXPORT Kv_blob_data - : public ModelBase -{ -public: - Kv_blob_data(); - virtual ~Kv_blob_data(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - bool fromBson(const Viewer &viewer) override; - bool toBson(Builder &builder) const override; - ///////////////////////////////////////////// - /// Kv_blob_data members - - /// - /// 对kv_blob有效,返回全部or局部数据。 - /// - - Document getPrimaryKey() const; - bool primaryKeyIsSet() const; - void unsetprimaryKey(); - void setPrimaryKey(const Document& value); - - /// - /// value的总字节数。 - /// - - int32_t getTotalBytes() const; - bool totalBytesIsSet() const; - void unsettotalBytes(); - void setTotalBytes(int32_t value); - - /// - /// value部分的偏移位置。 - /// - - int32_t getOffset() const; - bool offsetIsSet() const; - void unsetoffset(); - void setOffset(int32_t value); - - /// - /// value返回数据的实际长度 <= 请求的长度。 - /// - - int32_t getLen() const; - bool lenIsSet() const; - void unsetlen(); - void setLen(int32_t value); - - /// - /// 二进制字节数组。 - /// - - BsonBinary getBlobData() const; - bool blobDataIsSet() const; - void unsetblobData(); - void setBlobData(const BsonBinary& value); - - /// - /// 属性信息。 - /// - - BsonBinary getXattr() const; - bool xattrIsSet() const; - void unsetxattr(); - void setXattr(const BsonBinary& value); - - -protected: - Document primaryKey_; - bool primaryKeyIsSet_; - int32_t totalBytes_; - bool totalBytesIsSet_; - int32_t offset_; - bool offsetIsSet_; - int32_t len_; - bool lenIsSet_; - BsonBinary blobData_; - bool blobDataIsSet_; - BsonBinary xattr_; - bool xattrIsSet_; - -}; - - -} -} -} -} -} - -#endif // HUAWEICLOUD_SDK_KVS_V1_MODEL_Kv_blob_data_H_ diff --git a/kvs/include/huaweicloud/kvs/v1/model/Kv_options.h b/kvs/include/huaweicloud/kvs/v1/model/Kv_options.h deleted file mode 100644 index 2520ce333..000000000 --- a/kvs/include/huaweicloud/kvs/v1/model/Kv_options.h +++ /dev/null @@ -1,66 +0,0 @@ - -#ifndef HUAWEICLOUD_SDK_KVS_V1_MODEL_Kv_options_H_ -#define HUAWEICLOUD_SDK_KVS_V1_MODEL_Kv_options_H_ - -#include -#include -#include - -#include - -#include -#include -#include - - -namespace HuaweiCloud { -namespace Sdk { -namespace Kvs { -namespace V1 { -namespace Model { - -using namespace HuaweiCloud::Sdk::Core::Utils; -using namespace HuaweiCloud::Sdk::Core::Http; -/// -/// -/// -class HUAWEICLOUD_KVS_V1_EXPORT Kv_options - : public ModelBase -{ -public: - Kv_options(); - virtual ~Kv_options(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - bool fromBson(const Viewer &viewer) override; - bool toBson(Builder &builder) const override; - ///////////////////////////////////////////// - /// Kv_options members - - /// - /// - true:返回操作执行前的内容,默认true。 - false:返回操作执行后的内容。 - /// - - bool isReturnHint() const; - bool returnHintIsSet() const; - void unsetreturnHint(); - void setReturnHint(bool value); - - -protected: - bool returnHint_; - bool returnHintIsSet_; - -}; - - -} -} -} -} -} - -#endif // HUAWEICLOUD_SDK_KVS_V1_MODEL_Kv_options_H_ diff --git a/kvs/include/huaweicloud/kvs/v1/model/PutKvRequestBody.h b/kvs/include/huaweicloud/kvs/v1/model/PutKvRequestBody.h index b6d2d9e30..15de763fb 100644 --- a/kvs/include/huaweicloud/kvs/v1/model/PutKvRequestBody.h +++ b/kvs/include/huaweicloud/kvs/v1/model/PutKvRequestBody.h @@ -14,7 +14,6 @@ #include #include -#include #include namespace HuaweiCloud { @@ -71,15 +70,6 @@ class HUAWEICLOUD_KVS_V1_EXPORT PutKvRequestBody void unsetkvDoc(); void setKvDoc(const Document& value); - /// - /// - /// - - Kv_blob getKvBlob() const; - bool kvBlobIsSet() const; - void unsetkvBlob(); - void setKvBlob(const Kv_blob& value); - protected: std::string tableName_; @@ -88,8 +78,6 @@ class HUAWEICLOUD_KVS_V1_EXPORT PutKvRequestBody bool conditionExpressionIsSet_; Document kvDoc_; bool kvDocIsSet_; - Kv_blob kvBlob_; - bool kvBlobIsSet_; }; diff --git a/kvs/include/huaweicloud/kvs/v1/model/Put_kv.h b/kvs/include/huaweicloud/kvs/v1/model/Put_kv.h index dcdb01847..e610edb18 100644 --- a/kvs/include/huaweicloud/kvs/v1/model/Put_kv.h +++ b/kvs/include/huaweicloud/kvs/v1/model/Put_kv.h @@ -12,7 +12,6 @@ #include #include -#include #include namespace HuaweiCloud { @@ -60,23 +59,12 @@ class HUAWEICLOUD_KVS_V1_EXPORT Put_kv void unsetkvDoc(); void setKvDoc(const Document& value); - /// - /// - /// - - Kv_blob getKvBlob() const; - bool kvBlobIsSet() const; - void unsetkvBlob(); - void setKvBlob(const Kv_blob& value); - protected: int32_t operId_; bool operIdIsSet_; Document kvDoc_; bool kvDocIsSet_; - Kv_blob kvBlob_; - bool kvBlobIsSet_; }; diff --git a/kvs/include/huaweicloud/kvs/v1/model/Returned_kv_item.h b/kvs/include/huaweicloud/kvs/v1/model/Returned_kv_item.h index 98bd6a6ae..470a40bd7 100644 --- a/kvs/include/huaweicloud/kvs/v1/model/Returned_kv_item.h +++ b/kvs/include/huaweicloud/kvs/v1/model/Returned_kv_item.h @@ -13,7 +13,6 @@ #include #include -#include namespace HuaweiCloud { namespace Sdk { @@ -42,15 +41,6 @@ class HUAWEICLOUD_KVS_V1_EXPORT Returned_kv_item ///////////////////////////////////////////// /// Returned_kv_item members - /// - /// - /// - - Kv_blob_data getKvBlobData() const; - bool kvBlobDataIsSet() const; - void unsetkvBlobData(); - void setKvBlobData(const Kv_blob_data& value); - /// /// 对kv_doc有效。 /// @@ -62,8 +52,6 @@ class HUAWEICLOUD_KVS_V1_EXPORT Returned_kv_item protected: - Kv_blob_data kvBlobData_; - bool kvBlobDataIsSet_; Document kvDoc_; bool kvDocIsSet_; diff --git a/kvs/include/huaweicloud/kvs/v1/model/Single_kv_expression.h b/kvs/include/huaweicloud/kvs/v1/model/Single_kv_expression.h deleted file mode 100644 index 5e4a8aa06..000000000 --- a/kvs/include/huaweicloud/kvs/v1/model/Single_kv_expression.h +++ /dev/null @@ -1,67 +0,0 @@ - -#ifndef HUAWEICLOUD_SDK_KVS_V1_MODEL_Single_kv_expression_H_ -#define HUAWEICLOUD_SDK_KVS_V1_MODEL_Single_kv_expression_H_ - -#include -#include -#include - -#include - -#include -#include -#include - -#include - -namespace HuaweiCloud { -namespace Sdk { -namespace Kvs { -namespace V1 { -namespace Model { - -using namespace HuaweiCloud::Sdk::Core::Utils; -using namespace HuaweiCloud::Sdk::Core::Http; -/// -/// -/// -class HUAWEICLOUD_KVS_V1_EXPORT Single_kv_expression - : public ModelBase -{ -public: - Single_kv_expression(); - virtual ~Single_kv_expression(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - bool fromBson(const Viewer &viewer) override; - bool toBson(Builder &builder) const override; - ///////////////////////////////////////////// - /// Single_kv_expression members - - /// - /// 取值:\"is_doc\", \"is_blob\", \"is_exist\", \"not_exist\"。 - /// - - std::string getFunc() const; - bool funcIsSet() const; - void unsetfunc(); - void setFunc(const std::string& value); - - -protected: - std::string func_; - bool funcIsSet_; - -}; - - -} -} -} -} -} - -#endif // HUAWEICLOUD_SDK_KVS_V1_MODEL_Single_kv_expression_H_ diff --git a/kvs/include/huaweicloud/kvs/v1/model/UpdateKvRequestBody.h b/kvs/include/huaweicloud/kvs/v1/model/UpdateKvRequestBody.h index 8fdf103cf..1a7a8c5e0 100644 --- a/kvs/include/huaweicloud/kvs/v1/model/UpdateKvRequestBody.h +++ b/kvs/include/huaweicloud/kvs/v1/model/UpdateKvRequestBody.h @@ -12,11 +12,9 @@ #include #include -#include #include #include #include -#include #include namespace HuaweiCloud { @@ -77,29 +75,11 @@ class HUAWEICLOUD_KVS_V1_EXPORT UpdateKvRequestBody /// /// - Kv_options getKvOptions() const; - bool kvOptionsIsSet() const; - void unsetkvOptions(); - void setKvOptions(const Kv_options& value); - - /// - /// - /// - Update_fields getUpdateFields() const; bool updateFieldsIsSet() const; void unsetupdateFields(); void setUpdateFields(const Update_fields& value); - /// - /// - /// - - Update_blob getUpdateBlob() const; - bool updateBlobIsSet() const; - void unsetupdateBlob(); - void setUpdateBlob(const Update_blob& value); - protected: std::string tableName_; @@ -108,12 +88,8 @@ class HUAWEICLOUD_KVS_V1_EXPORT UpdateKvRequestBody bool primaryKeyIsSet_; Condition_expression conditionExpression_; bool conditionExpressionIsSet_; - Kv_options kvOptions_; - bool kvOptionsIsSet_; Update_fields updateFields_; bool updateFieldsIsSet_; - Update_blob updateBlob_; - bool updateBlobIsSet_; }; diff --git a/kvs/include/huaweicloud/kvs/v1/model/UpdateKvResponse.h b/kvs/include/huaweicloud/kvs/v1/model/UpdateKvResponse.h index bb8869e2b..3793e6c22 100644 --- a/kvs/include/huaweicloud/kvs/v1/model/UpdateKvResponse.h +++ b/kvs/include/huaweicloud/kvs/v1/model/UpdateKvResponse.h @@ -12,8 +12,6 @@ #include #include -#include -#include namespace HuaweiCloud { namespace Sdk { @@ -42,30 +40,8 @@ class HUAWEICLOUD_KVS_V1_EXPORT UpdateKvResponse ///////////////////////////////////////////// /// UpdateKvResponse members - /// - /// - /// - - Kv_blob_data getKvBlobData() const; - bool kvBlobDataIsSet() const; - void unsetkvBlobData(); - void setKvBlobData(const Kv_blob_data& value); - - /// - /// 对kv_doc有效,返回文档所有字段。 - /// - - Document getKvDoc() const; - bool kvDocIsSet() const; - void unsetkvDoc(); - void setKvDoc(const Document& value); - protected: - Kv_blob_data kvBlobData_; - bool kvBlobDataIsSet_; - Document kvDoc_; - bool kvDocIsSet_; #ifdef RTTR_FLAG RTTR_ENABLE() diff --git a/kvs/include/huaweicloud/kvs/v1/model/Update_blob.h b/kvs/include/huaweicloud/kvs/v1/model/Update_blob.h deleted file mode 100644 index 7de8ee800..000000000 --- a/kvs/include/huaweicloud/kvs/v1/model/Update_blob.h +++ /dev/null @@ -1,100 +0,0 @@ - -#ifndef HUAWEICLOUD_SDK_KVS_V1_MODEL_Update_blob_H_ -#define HUAWEICLOUD_SDK_KVS_V1_MODEL_Update_blob_H_ - -#include -#include -#include - -#include - -#include -#include -#include - -#include - -namespace HuaweiCloud { -namespace Sdk { -namespace Kvs { -namespace V1 { -namespace Model { - -using namespace HuaweiCloud::Sdk::Core::Utils; -using namespace HuaweiCloud::Sdk::Core::Http; -/// -/// -/// -class HUAWEICLOUD_KVS_V1_EXPORT Update_blob - : public ModelBase -{ -public: - Update_blob(); - virtual ~Update_blob(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - bool fromBson(const Viewer &viewer) override; - bool toBson(Builder &builder) const override; - ///////////////////////////////////////////// - /// Update_blob members - - /// - /// 属性信息。 - /// - - BsonBinary getXattr() const; - bool xattrIsSet() const; - void unsetxattr(); - void setXattr(const BsonBinary& value); - - /// - /// value部分的偏移位置。 > - 超过value当前size无效 > - \"offset\"与\"len\"与\"blob_data\" 要么都带,要么都不带。 - /// - - int32_t getOffset() const; - bool offsetIsSet() const; - void unsetoffset(); - void setOffset(int32_t value); - - /// - /// 更新内容长度。 - /// - - int32_t getLen() const; - bool lenIsSet() const; - void unsetlen(); - void setLen(int32_t value); - - /// - /// 二进制内容。 - /// - - BsonBinary getBlobData() const; - bool blobDataIsSet() const; - void unsetblobData(); - void setBlobData(const BsonBinary& value); - - -protected: - BsonBinary xattr_; - bool xattrIsSet_; - int32_t offset_; - bool offsetIsSet_; - int32_t len_; - bool lenIsSet_; - BsonBinary blobData_; - bool blobDataIsSet_; - -}; - - -} -} -} -} -} - -#endif // HUAWEICLOUD_SDK_KVS_V1_MODEL_Update_blob_H_ diff --git a/kvs/src/v1/model/Composed_expression.cpp b/kvs/src/v1/model/Composed_expression.cpp deleted file mode 100644 index d460af0ff..000000000 --- a/kvs/src/v1/model/Composed_expression.cpp +++ /dev/null @@ -1,119 +0,0 @@ - - -#include "huaweicloud/kvs/v1/model/Composed_expression.h" -#include -namespace HuaweiCloud { -namespace Sdk { -namespace Kvs { -namespace V1 { -namespace Model { - - - - -Composed_expression::Composed_expression() -{ - logic_ = ""; - logicIsSet_ = false; - expressionsIsSet_ = false; -} - -Composed_expression::~Composed_expression() = default; - -void Composed_expression::validate() -{ -} - -bool Composed_expression::toBson(Builder &builder) const -{ - - if (logicIsSet_ && !bson_append(builder, "logic", logic_)) { - return false; - } - if (expressionsIsSet_ && !bson_append(builder, "expressions", expressions_)) { - return false; - } - - return true; -} - -bool Composed_expression::fromBson(const Viewer &viewer) -{ - - Viewer::Iterator it = viewer.begin(); - while (it != viewer.end()) { - const std::string &key = it->key(); - - if (key == "logic") { - if (!bson_get(it, logic_)) { - return false; - } - logicIsSet_ = true; - ++it; - continue; - } - - if (key == "expressions") { - if (!bson_get(it, expressions_)) { - return false; - } - expressionsIsSet_ = true; - ++it; - continue; - } - - ++it; - } - - return true; -} - -std::string Composed_expression::getLogic() const -{ - return logic_; -} - -void Composed_expression::setLogic(const std::string& value) -{ - logic_ = value; - logicIsSet_ = true; -} - -bool Composed_expression::logicIsSet() const -{ - return logicIsSet_; -} - -void Composed_expression::unsetlogic() -{ - logicIsSet_ = false; -} - -std::vector& Composed_expression::getExpressions() -{ - return expressions_; -} - -void Composed_expression::setExpressions(const std::vector& value) -{ - expressions_ = value; - expressionsIsSet_ = true; -} - -bool Composed_expression::expressionsIsSet() const -{ - return expressionsIsSet_; -} - -void Composed_expression::unsetexpressions() -{ - expressionsIsSet_ = false; -} - -} -} -} -} -} - - diff --git a/kvs/src/v1/model/Condition_expression.cpp b/kvs/src/v1/model/Condition_expression.cpp index 2c71ec4f3..67c11e972 100644 --- a/kvs/src/v1/model/Condition_expression.cpp +++ b/kvs/src/v1/model/Condition_expression.cpp @@ -15,8 +15,6 @@ Condition_expression::Condition_expression() { singleFieldExpressionIsSet_ = false; multiFieldExpressionIsSet_ = false; - singleKvExpressionIsSet_ = false; - composedExpressionIsSet_ = false; } Condition_expression::~Condition_expression() = default; @@ -34,12 +32,6 @@ bool Condition_expression::toBson(Builder &builder) const if (multiFieldExpressionIsSet_ && !bson_append(builder, "multi_field_expression", multiFieldExpression_)) { return false; } - if (singleKvExpressionIsSet_ && !bson_append(builder, "single_kv_expression", singleKvExpression_)) { - return false; - } - if (composedExpressionIsSet_ && !bson_append(builder, "composed_expression", composedExpression_)) { - return false; - } return true; } @@ -69,24 +61,6 @@ bool Condition_expression::fromBson(const Viewer &viewer) continue; } - if (key == "single_kv_expression") { - if (!bson_get(it, singleKvExpression_)) { - return false; - } - singleKvExpressionIsSet_ = true; - ++it; - continue; - } - - if (key == "composed_expression") { - if (!bson_get(it, composedExpression_)) { - return false; - } - composedExpressionIsSet_ = true; - ++it; - continue; - } - ++it; } @@ -135,48 +109,6 @@ void Condition_expression::unsetmultiFieldExpression() multiFieldExpressionIsSet_ = false; } -Single_kv_expression Condition_expression::getSingleKvExpression() const -{ - return singleKvExpression_; -} - -void Condition_expression::setSingleKvExpression(const Single_kv_expression& value) -{ - singleKvExpression_ = value; - singleKvExpressionIsSet_ = true; -} - -bool Condition_expression::singleKvExpressionIsSet() const -{ - return singleKvExpressionIsSet_; -} - -void Condition_expression::unsetsingleKvExpression() -{ - singleKvExpressionIsSet_ = false; -} - -Composed_expression Condition_expression::getComposedExpression() const -{ - return composedExpression_; -} - -void Condition_expression::setComposedExpression(const Composed_expression& value) -{ - composedExpression_ = value; - composedExpressionIsSet_ = true; -} - -bool Condition_expression::composedExpressionIsSet() const -{ - return composedExpressionIsSet_; -} - -void Condition_expression::unsetcomposedExpression() -{ - composedExpressionIsSet_ = false; -} - } } } diff --git a/kvs/src/v1/model/DeleteKvResponse.cpp b/kvs/src/v1/model/DeleteKvResponse.cpp index c32528056..2b9edb4ce 100644 --- a/kvs/src/v1/model/DeleteKvResponse.cpp +++ b/kvs/src/v1/model/DeleteKvResponse.cpp @@ -13,8 +13,6 @@ namespace Model { DeleteKvResponse::DeleteKvResponse() { - kvBlobDataIsSet_ = false; - kvDocIsSet_ = false; } DeleteKvResponse::~DeleteKvResponse() = default; @@ -26,12 +24,6 @@ void DeleteKvResponse::validate() bool DeleteKvResponse::toBson(Builder &builder) const { - if (kvBlobDataIsSet_ && !bson_append(builder, "kv_blob_data", kvBlobData_)) { - return false; - } - if (kvDocIsSet_ && !bson_append(builder, "kv_doc", kvDoc_)) { - return false; - } return true; } @@ -43,72 +35,12 @@ bool DeleteKvResponse::fromBson(const Viewer &viewer) while (it != viewer.end()) { const std::string &key = it->key(); - if (key == "kv_blob_data") { - if (!bson_get(it, kvBlobData_)) { - return false; - } - kvBlobDataIsSet_ = true; - ++it; - continue; - } - - if (key == "kv_doc") { - if (!bson_get(it, kvDoc_)) { - return false; - } - kvDocIsSet_ = true; - ++it; - continue; - } - ++it; } return true; } -Kv_blob_data DeleteKvResponse::getKvBlobData() const -{ - return kvBlobData_; -} - -void DeleteKvResponse::setKvBlobData(const Kv_blob_data& value) -{ - kvBlobData_ = value; - kvBlobDataIsSet_ = true; -} - -bool DeleteKvResponse::kvBlobDataIsSet() const -{ - return kvBlobDataIsSet_; -} - -void DeleteKvResponse::unsetkvBlobData() -{ - kvBlobDataIsSet_ = false; -} - -Document DeleteKvResponse::getKvDoc() const -{ - return kvDoc_; -} - -void DeleteKvResponse::setKvDoc(const Document& value) -{ - kvDoc_ = value; - kvDocIsSet_ = true; -} - -bool DeleteKvResponse::kvDocIsSet() const -{ - return kvDocIsSet_; -} - -void DeleteKvResponse::unsetkvDoc() -{ - kvDocIsSet_ = false; -} - } } } diff --git a/kvs/src/v1/model/Expression.cpp b/kvs/src/v1/model/Expression.cpp deleted file mode 100644 index e90366e28..000000000 --- a/kvs/src/v1/model/Expression.cpp +++ /dev/null @@ -1,84 +0,0 @@ - - -#include "huaweicloud/kvs/v1/model/Expression.h" -#include -namespace HuaweiCloud { -namespace Sdk { -namespace Kvs { -namespace V1 { -namespace Model { - - - - -Expression::Expression() -{ - singleFieldExpressionIsSet_ = false; -} - -Expression::~Expression() = default; - -void Expression::validate() -{ -} - -bool Expression::toBson(Builder &builder) const -{ - - if (singleFieldExpressionIsSet_ && !bson_append(builder, "single_field_expression", singleFieldExpression_)) { - return false; - } - - return true; -} - -bool Expression::fromBson(const Viewer &viewer) -{ - - Viewer::Iterator it = viewer.begin(); - while (it != viewer.end()) { - const std::string &key = it->key(); - - if (key == "single_field_expression") { - if (!bson_get(it, singleFieldExpression_)) { - return false; - } - singleFieldExpressionIsSet_ = true; - ++it; - continue; - } - - ++it; - } - - return true; -} - -Single_field_expression Expression::getSingleFieldExpression() const -{ - return singleFieldExpression_; -} - -void Expression::setSingleFieldExpression(const Single_field_expression& value) -{ - singleFieldExpression_ = value; - singleFieldExpressionIsSet_ = true; -} - -bool Expression::singleFieldExpressionIsSet() const -{ - return singleFieldExpressionIsSet_; -} - -void Expression::unsetsingleFieldExpression() -{ - singleFieldExpressionIsSet_ = false; -} - -} -} -} -} -} - - diff --git a/kvs/src/v1/model/GetKvResponse.cpp b/kvs/src/v1/model/GetKvResponse.cpp index 1b08f163c..2ea86dc9b 100644 --- a/kvs/src/v1/model/GetKvResponse.cpp +++ b/kvs/src/v1/model/GetKvResponse.cpp @@ -13,7 +13,6 @@ namespace Model { GetKvResponse::GetKvResponse() { - kvBlobDataIsSet_ = false; kvDocIsSet_ = false; } @@ -26,9 +25,6 @@ void GetKvResponse::validate() bool GetKvResponse::toBson(Builder &builder) const { - if (kvBlobDataIsSet_ && !bson_append(builder, "kv_blob_data", kvBlobData_)) { - return false; - } if (kvDocIsSet_ && !bson_append(builder, "kv_doc", kvDoc_)) { return false; } @@ -43,15 +39,6 @@ bool GetKvResponse::fromBson(const Viewer &viewer) while (it != viewer.end()) { const std::string &key = it->key(); - if (key == "kv_blob_data") { - if (!bson_get(it, kvBlobData_)) { - return false; - } - kvBlobDataIsSet_ = true; - ++it; - continue; - } - if (key == "kv_doc") { if (!bson_get(it, kvDoc_)) { return false; @@ -67,27 +54,6 @@ bool GetKvResponse::fromBson(const Viewer &viewer) return true; } -Kv_blob_data GetKvResponse::getKvBlobData() const -{ - return kvBlobData_; -} - -void GetKvResponse::setKvBlobData(const Kv_blob_data& value) -{ - kvBlobData_ = value; - kvBlobDataIsSet_ = true; -} - -bool GetKvResponse::kvBlobDataIsSet() const -{ - return kvBlobDataIsSet_; -} - -void GetKvResponse::unsetkvBlobData() -{ - kvBlobDataIsSet_ = false; -} - Document GetKvResponse::getKvDoc() const { return kvDoc_; diff --git a/kvs/src/v1/model/Kv_blob.cpp b/kvs/src/v1/model/Kv_blob.cpp deleted file mode 100644 index f3e862f04..000000000 --- a/kvs/src/v1/model/Kv_blob.cpp +++ /dev/null @@ -1,152 +0,0 @@ - - -#include "huaweicloud/kvs/v1/model/Kv_blob.h" -#include -namespace HuaweiCloud { -namespace Sdk { -namespace Kvs { -namespace V1 { -namespace Model { - - - - -Kv_blob::Kv_blob() -{ - primaryKeyIsSet_ = false; - xblobIsSet_ = false; - xattrIsSet_ = false; -} - -Kv_blob::~Kv_blob() = default; - -void Kv_blob::validate() -{ -} - -bool Kv_blob::toBson(Builder &builder) const -{ - - if (primaryKeyIsSet_ && !bson_append(builder, "primary_key", primaryKey_)) { - return false; - } - if (xblobIsSet_ && !bson_append(builder, "xblob", xblob_)) { - return false; - } - if (xattrIsSet_ && !bson_append(builder, "xattr", xattr_)) { - return false; - } - - return true; -} - -bool Kv_blob::fromBson(const Viewer &viewer) -{ - - Viewer::Iterator it = viewer.begin(); - while (it != viewer.end()) { - const std::string &key = it->key(); - - if (key == "primary_key") { - if (!bson_get(it, primaryKey_)) { - return false; - } - primaryKeyIsSet_ = true; - ++it; - continue; - } - - if (key == "xblob") { - if (!bson_get(it, xblob_)) { - return false; - } - xblobIsSet_ = true; - ++it; - continue; - } - - if (key == "xattr") { - if (!bson_get(it, xattr_)) { - return false; - } - xattrIsSet_ = true; - ++it; - continue; - } - - ++it; - } - - return true; -} - -Document Kv_blob::getPrimaryKey() const -{ - return primaryKey_; -} - -void Kv_blob::setPrimaryKey(const Document& value) -{ - primaryKey_ = value; - primaryKeyIsSet_ = true; -} - -bool Kv_blob::primaryKeyIsSet() const -{ - return primaryKeyIsSet_; -} - -void Kv_blob::unsetprimaryKey() -{ - primaryKeyIsSet_ = false; -} - -BsonBinary Kv_blob::getXblob() const -{ - return xblob_; -} - -void Kv_blob::setXblob(const BsonBinary& value) -{ - xblob_ = value; - xblobIsSet_ = true; -} - -bool Kv_blob::xblobIsSet() const -{ - return xblobIsSet_; -} - -void Kv_blob::unsetxblob() -{ - xblobIsSet_ = false; -} - -BsonBinary Kv_blob::getXattr() const -{ - return xattr_; -} - -void Kv_blob::setXattr(const BsonBinary& value) -{ - xattr_ = value; - xattrIsSet_ = true; -} - -bool Kv_blob::xattrIsSet() const -{ - return xattrIsSet_; -} - -void Kv_blob::unsetxattr() -{ - xattrIsSet_ = false; -} - -} -} -} -} -} - - diff --git a/kvs/src/v1/model/Kv_blob_data.cpp b/kvs/src/v1/model/Kv_blob_data.cpp deleted file mode 100644 index 12f035f13..000000000 --- a/kvs/src/v1/model/Kv_blob_data.cpp +++ /dev/null @@ -1,257 +0,0 @@ - - -#include "huaweicloud/kvs/v1/model/Kv_blob_data.h" -#include -namespace HuaweiCloud { -namespace Sdk { -namespace Kvs { -namespace V1 { -namespace Model { - - - - -Kv_blob_data::Kv_blob_data() -{ - primaryKeyIsSet_ = false; - totalBytes_ = 0; - totalBytesIsSet_ = false; - offset_ = 0; - offsetIsSet_ = false; - len_ = 0; - lenIsSet_ = false; - blobDataIsSet_ = false; - xattrIsSet_ = false; -} - -Kv_blob_data::~Kv_blob_data() = default; - -void Kv_blob_data::validate() -{ -} - -bool Kv_blob_data::toBson(Builder &builder) const -{ - - if (primaryKeyIsSet_ && !bson_append(builder, "primary_key", primaryKey_)) { - return false; - } - if (totalBytesIsSet_ && !bson_append(builder, "total_bytes", totalBytes_)) { - return false; - } - if (offsetIsSet_ && !bson_append(builder, "offset", offset_)) { - return false; - } - if (lenIsSet_ && !bson_append(builder, "len", len_)) { - return false; - } - if (blobDataIsSet_ && !bson_append(builder, "blob_data", blobData_)) { - return false; - } - if (xattrIsSet_ && !bson_append(builder, "xattr", xattr_)) { - return false; - } - - return true; -} - -bool Kv_blob_data::fromBson(const Viewer &viewer) -{ - - Viewer::Iterator it = viewer.begin(); - while (it != viewer.end()) { - const std::string &key = it->key(); - - if (key == "primary_key") { - if (!bson_get(it, primaryKey_)) { - return false; - } - primaryKeyIsSet_ = true; - ++it; - continue; - } - - if (key == "total_bytes") { - if (!bson_get(it, totalBytes_)) { - return false; - } - totalBytesIsSet_ = true; - ++it; - continue; - } - - if (key == "offset") { - if (!bson_get(it, offset_)) { - return false; - } - offsetIsSet_ = true; - ++it; - continue; - } - - if (key == "len") { - if (!bson_get(it, len_)) { - return false; - } - lenIsSet_ = true; - ++it; - continue; - } - - if (key == "blob_data") { - if (!bson_get(it, blobData_)) { - return false; - } - blobDataIsSet_ = true; - ++it; - continue; - } - - if (key == "xattr") { - if (!bson_get(it, xattr_)) { - return false; - } - xattrIsSet_ = true; - ++it; - continue; - } - - ++it; - } - - return true; -} - -Document Kv_blob_data::getPrimaryKey() const -{ - return primaryKey_; -} - -void Kv_blob_data::setPrimaryKey(const Document& value) -{ - primaryKey_ = value; - primaryKeyIsSet_ = true; -} - -bool Kv_blob_data::primaryKeyIsSet() const -{ - return primaryKeyIsSet_; -} - -void Kv_blob_data::unsetprimaryKey() -{ - primaryKeyIsSet_ = false; -} - -int32_t Kv_blob_data::getTotalBytes() const -{ - return totalBytes_; -} - -void Kv_blob_data::setTotalBytes(int32_t value) -{ - totalBytes_ = value; - totalBytesIsSet_ = true; -} - -bool Kv_blob_data::totalBytesIsSet() const -{ - return totalBytesIsSet_; -} - -void Kv_blob_data::unsettotalBytes() -{ - totalBytesIsSet_ = false; -} - -int32_t Kv_blob_data::getOffset() const -{ - return offset_; -} - -void Kv_blob_data::setOffset(int32_t value) -{ - offset_ = value; - offsetIsSet_ = true; -} - -bool Kv_blob_data::offsetIsSet() const -{ - return offsetIsSet_; -} - -void Kv_blob_data::unsetoffset() -{ - offsetIsSet_ = false; -} - -int32_t Kv_blob_data::getLen() const -{ - return len_; -} - -void Kv_blob_data::setLen(int32_t value) -{ - len_ = value; - lenIsSet_ = true; -} - -bool Kv_blob_data::lenIsSet() const -{ - return lenIsSet_; -} - -void Kv_blob_data::unsetlen() -{ - lenIsSet_ = false; -} - -BsonBinary Kv_blob_data::getBlobData() const -{ - return blobData_; -} - -void Kv_blob_data::setBlobData(const BsonBinary& value) -{ - blobData_ = value; - blobDataIsSet_ = true; -} - -bool Kv_blob_data::blobDataIsSet() const -{ - return blobDataIsSet_; -} - -void Kv_blob_data::unsetblobData() -{ - blobDataIsSet_ = false; -} - -BsonBinary Kv_blob_data::getXattr() const -{ - return xattr_; -} - -void Kv_blob_data::setXattr(const BsonBinary& value) -{ - xattr_ = value; - xattrIsSet_ = true; -} - -bool Kv_blob_data::xattrIsSet() const -{ - return xattrIsSet_; -} - -void Kv_blob_data::unsetxattr() -{ - xattrIsSet_ = false; -} - -} -} -} -} -} - - diff --git a/kvs/src/v1/model/Kv_options.cpp b/kvs/src/v1/model/Kv_options.cpp deleted file mode 100644 index 843a24269..000000000 --- a/kvs/src/v1/model/Kv_options.cpp +++ /dev/null @@ -1,85 +0,0 @@ - - -#include "huaweicloud/kvs/v1/model/Kv_options.h" -#include -namespace HuaweiCloud { -namespace Sdk { -namespace Kvs { -namespace V1 { -namespace Model { - - - - -Kv_options::Kv_options() -{ - returnHint_ = false; - returnHintIsSet_ = false; -} - -Kv_options::~Kv_options() = default; - -void Kv_options::validate() -{ -} - -bool Kv_options::toBson(Builder &builder) const -{ - - if (returnHintIsSet_ && !bson_append(builder, "return_hint", returnHint_)) { - return false; - } - - return true; -} - -bool Kv_options::fromBson(const Viewer &viewer) -{ - - Viewer::Iterator it = viewer.begin(); - while (it != viewer.end()) { - const std::string &key = it->key(); - - if (key == "return_hint") { - if (!bson_get(it, returnHint_)) { - return false; - } - returnHintIsSet_ = true; - ++it; - continue; - } - - ++it; - } - - return true; -} - -bool Kv_options::isReturnHint() const -{ - return returnHint_; -} - -void Kv_options::setReturnHint(bool value) -{ - returnHint_ = value; - returnHintIsSet_ = true; -} - -bool Kv_options::returnHintIsSet() const -{ - return returnHintIsSet_; -} - -void Kv_options::unsetreturnHint() -{ - returnHintIsSet_ = false; -} - -} -} -} -} -} - - diff --git a/kvs/src/v1/model/PutKvRequestBody.cpp b/kvs/src/v1/model/PutKvRequestBody.cpp index 98cc7cbe6..ab018cb05 100644 --- a/kvs/src/v1/model/PutKvRequestBody.cpp +++ b/kvs/src/v1/model/PutKvRequestBody.cpp @@ -17,7 +17,6 @@ PutKvRequestBody::PutKvRequestBody() tableNameIsSet_ = false; conditionExpressionIsSet_ = false; kvDocIsSet_ = false; - kvBlobIsSet_ = false; } PutKvRequestBody::~PutKvRequestBody() = default; @@ -38,9 +37,6 @@ bool PutKvRequestBody::toBson(Builder &builder) const if (kvDocIsSet_ && !bson_append(builder, "kv_doc", kvDoc_)) { return false; } - if (kvBlobIsSet_ && !bson_append(builder, "kv_blob", kvBlob_)) { - return false; - } return true; } @@ -79,15 +75,6 @@ bool PutKvRequestBody::fromBson(const Viewer &viewer) continue; } - if (key == "kv_blob") { - if (!bson_get(it, kvBlob_)) { - return false; - } - kvBlobIsSet_ = true; - ++it; - continue; - } - ++it; } @@ -157,27 +144,6 @@ void PutKvRequestBody::unsetkvDoc() kvDocIsSet_ = false; } -Kv_blob PutKvRequestBody::getKvBlob() const -{ - return kvBlob_; -} - -void PutKvRequestBody::setKvBlob(const Kv_blob& value) -{ - kvBlob_ = value; - kvBlobIsSet_ = true; -} - -bool PutKvRequestBody::kvBlobIsSet() const -{ - return kvBlobIsSet_; -} - -void PutKvRequestBody::unsetkvBlob() -{ - kvBlobIsSet_ = false; -} - } } } diff --git a/kvs/src/v1/model/Put_kv.cpp b/kvs/src/v1/model/Put_kv.cpp index fb4a8163c..36f009902 100644 --- a/kvs/src/v1/model/Put_kv.cpp +++ b/kvs/src/v1/model/Put_kv.cpp @@ -16,7 +16,6 @@ Put_kv::Put_kv() operId_ = 0; operIdIsSet_ = false; kvDocIsSet_ = false; - kvBlobIsSet_ = false; } Put_kv::~Put_kv() = default; @@ -34,9 +33,6 @@ bool Put_kv::toBson(Builder &builder) const if (kvDocIsSet_ && !bson_append(builder, "kv_doc", kvDoc_)) { return false; } - if (kvBlobIsSet_ && !bson_append(builder, "kv_blob", kvBlob_)) { - return false; - } return true; } @@ -66,15 +62,6 @@ bool Put_kv::fromBson(const Viewer &viewer) continue; } - if (key == "kv_blob") { - if (!bson_get(it, kvBlob_)) { - return false; - } - kvBlobIsSet_ = true; - ++it; - continue; - } - ++it; } @@ -123,27 +110,6 @@ void Put_kv::unsetkvDoc() kvDocIsSet_ = false; } -Kv_blob Put_kv::getKvBlob() const -{ - return kvBlob_; -} - -void Put_kv::setKvBlob(const Kv_blob& value) -{ - kvBlob_ = value; - kvBlobIsSet_ = true; -} - -bool Put_kv::kvBlobIsSet() const -{ - return kvBlobIsSet_; -} - -void Put_kv::unsetkvBlob() -{ - kvBlobIsSet_ = false; -} - } } } diff --git a/kvs/src/v1/model/Returned_kv_item.cpp b/kvs/src/v1/model/Returned_kv_item.cpp index be0af4198..e2e015d21 100644 --- a/kvs/src/v1/model/Returned_kv_item.cpp +++ b/kvs/src/v1/model/Returned_kv_item.cpp @@ -13,7 +13,6 @@ namespace Model { Returned_kv_item::Returned_kv_item() { - kvBlobDataIsSet_ = false; kvDocIsSet_ = false; } @@ -26,9 +25,6 @@ void Returned_kv_item::validate() bool Returned_kv_item::toBson(Builder &builder) const { - if (kvBlobDataIsSet_ && !bson_append(builder, "kv_blob_data", kvBlobData_)) { - return false; - } if (kvDocIsSet_ && !bson_append(builder, "kv_doc", kvDoc_)) { return false; } @@ -43,15 +39,6 @@ bool Returned_kv_item::fromBson(const Viewer &viewer) while (it != viewer.end()) { const std::string &key = it->key(); - if (key == "kv_blob_data") { - if (!bson_get(it, kvBlobData_)) { - return false; - } - kvBlobDataIsSet_ = true; - ++it; - continue; - } - if (key == "kv_doc") { if (!bson_get(it, kvDoc_)) { return false; @@ -67,27 +54,6 @@ bool Returned_kv_item::fromBson(const Viewer &viewer) return true; } -Kv_blob_data Returned_kv_item::getKvBlobData() const -{ - return kvBlobData_; -} - -void Returned_kv_item::setKvBlobData(const Kv_blob_data& value) -{ - kvBlobData_ = value; - kvBlobDataIsSet_ = true; -} - -bool Returned_kv_item::kvBlobDataIsSet() const -{ - return kvBlobDataIsSet_; -} - -void Returned_kv_item::unsetkvBlobData() -{ - kvBlobDataIsSet_ = false; -} - Document Returned_kv_item::getKvDoc() const { return kvDoc_; diff --git a/kvs/src/v1/model/Single_kv_expression.cpp b/kvs/src/v1/model/Single_kv_expression.cpp deleted file mode 100644 index d05583ffb..000000000 --- a/kvs/src/v1/model/Single_kv_expression.cpp +++ /dev/null @@ -1,85 +0,0 @@ - - -#include "huaweicloud/kvs/v1/model/Single_kv_expression.h" -#include -namespace HuaweiCloud { -namespace Sdk { -namespace Kvs { -namespace V1 { -namespace Model { - - - - -Single_kv_expression::Single_kv_expression() -{ - func_ = ""; - funcIsSet_ = false; -} - -Single_kv_expression::~Single_kv_expression() = default; - -void Single_kv_expression::validate() -{ -} - -bool Single_kv_expression::toBson(Builder &builder) const -{ - - if (funcIsSet_ && !bson_append(builder, "func", func_)) { - return false; - } - - return true; -} - -bool Single_kv_expression::fromBson(const Viewer &viewer) -{ - - Viewer::Iterator it = viewer.begin(); - while (it != viewer.end()) { - const std::string &key = it->key(); - - if (key == "func") { - if (!bson_get(it, func_)) { - return false; - } - funcIsSet_ = true; - ++it; - continue; - } - - ++it; - } - - return true; -} - -std::string Single_kv_expression::getFunc() const -{ - return func_; -} - -void Single_kv_expression::setFunc(const std::string& value) -{ - func_ = value; - funcIsSet_ = true; -} - -bool Single_kv_expression::funcIsSet() const -{ - return funcIsSet_; -} - -void Single_kv_expression::unsetfunc() -{ - funcIsSet_ = false; -} - -} -} -} -} -} - - diff --git a/kvs/src/v1/model/UpdateKvRequestBody.cpp b/kvs/src/v1/model/UpdateKvRequestBody.cpp index 93e5a1b4b..7963eb35d 100644 --- a/kvs/src/v1/model/UpdateKvRequestBody.cpp +++ b/kvs/src/v1/model/UpdateKvRequestBody.cpp @@ -17,9 +17,7 @@ UpdateKvRequestBody::UpdateKvRequestBody() tableNameIsSet_ = false; primaryKeyIsSet_ = false; conditionExpressionIsSet_ = false; - kvOptionsIsSet_ = false; updateFieldsIsSet_ = false; - updateBlobIsSet_ = false; } UpdateKvRequestBody::~UpdateKvRequestBody() = default; @@ -40,15 +38,9 @@ bool UpdateKvRequestBody::toBson(Builder &builder) const if (conditionExpressionIsSet_ && !bson_append(builder, "condition_expression", conditionExpression_)) { return false; } - if (kvOptionsIsSet_ && !bson_append(builder, "kv_options", kvOptions_)) { - return false; - } if (updateFieldsIsSet_ && !bson_append(builder, "update_fields", updateFields_)) { return false; } - if (updateBlobIsSet_ && !bson_append(builder, "update_blob", updateBlob_)) { - return false; - } return true; } @@ -87,15 +79,6 @@ bool UpdateKvRequestBody::fromBson(const Viewer &viewer) continue; } - if (key == "kv_options") { - if (!bson_get(it, kvOptions_)) { - return false; - } - kvOptionsIsSet_ = true; - ++it; - continue; - } - if (key == "update_fields") { if (!bson_get(it, updateFields_)) { return false; @@ -105,15 +88,6 @@ bool UpdateKvRequestBody::fromBson(const Viewer &viewer) continue; } - if (key == "update_blob") { - if (!bson_get(it, updateBlob_)) { - return false; - } - updateBlobIsSet_ = true; - ++it; - continue; - } - ++it; } @@ -183,27 +157,6 @@ void UpdateKvRequestBody::unsetconditionExpression() conditionExpressionIsSet_ = false; } -Kv_options UpdateKvRequestBody::getKvOptions() const -{ - return kvOptions_; -} - -void UpdateKvRequestBody::setKvOptions(const Kv_options& value) -{ - kvOptions_ = value; - kvOptionsIsSet_ = true; -} - -bool UpdateKvRequestBody::kvOptionsIsSet() const -{ - return kvOptionsIsSet_; -} - -void UpdateKvRequestBody::unsetkvOptions() -{ - kvOptionsIsSet_ = false; -} - Update_fields UpdateKvRequestBody::getUpdateFields() const { return updateFields_; @@ -225,27 +178,6 @@ void UpdateKvRequestBody::unsetupdateFields() updateFieldsIsSet_ = false; } -Update_blob UpdateKvRequestBody::getUpdateBlob() const -{ - return updateBlob_; -} - -void UpdateKvRequestBody::setUpdateBlob(const Update_blob& value) -{ - updateBlob_ = value; - updateBlobIsSet_ = true; -} - -bool UpdateKvRequestBody::updateBlobIsSet() const -{ - return updateBlobIsSet_; -} - -void UpdateKvRequestBody::unsetupdateBlob() -{ - updateBlobIsSet_ = false; -} - } } } diff --git a/kvs/src/v1/model/UpdateKvResponse.cpp b/kvs/src/v1/model/UpdateKvResponse.cpp index e448abc8e..bcf9e8af4 100644 --- a/kvs/src/v1/model/UpdateKvResponse.cpp +++ b/kvs/src/v1/model/UpdateKvResponse.cpp @@ -13,8 +13,6 @@ namespace Model { UpdateKvResponse::UpdateKvResponse() { - kvBlobDataIsSet_ = false; - kvDocIsSet_ = false; } UpdateKvResponse::~UpdateKvResponse() = default; @@ -26,12 +24,6 @@ void UpdateKvResponse::validate() bool UpdateKvResponse::toBson(Builder &builder) const { - if (kvBlobDataIsSet_ && !bson_append(builder, "kv_blob_data", kvBlobData_)) { - return false; - } - if (kvDocIsSet_ && !bson_append(builder, "kv_doc", kvDoc_)) { - return false; - } return true; } @@ -43,72 +35,12 @@ bool UpdateKvResponse::fromBson(const Viewer &viewer) while (it != viewer.end()) { const std::string &key = it->key(); - if (key == "kv_blob_data") { - if (!bson_get(it, kvBlobData_)) { - return false; - } - kvBlobDataIsSet_ = true; - ++it; - continue; - } - - if (key == "kv_doc") { - if (!bson_get(it, kvDoc_)) { - return false; - } - kvDocIsSet_ = true; - ++it; - continue; - } - ++it; } return true; } -Kv_blob_data UpdateKvResponse::getKvBlobData() const -{ - return kvBlobData_; -} - -void UpdateKvResponse::setKvBlobData(const Kv_blob_data& value) -{ - kvBlobData_ = value; - kvBlobDataIsSet_ = true; -} - -bool UpdateKvResponse::kvBlobDataIsSet() const -{ - return kvBlobDataIsSet_; -} - -void UpdateKvResponse::unsetkvBlobData() -{ - kvBlobDataIsSet_ = false; -} - -Document UpdateKvResponse::getKvDoc() const -{ - return kvDoc_; -} - -void UpdateKvResponse::setKvDoc(const Document& value) -{ - kvDoc_ = value; - kvDocIsSet_ = true; -} - -bool UpdateKvResponse::kvDocIsSet() const -{ - return kvDocIsSet_; -} - -void UpdateKvResponse::unsetkvDoc() -{ - kvDocIsSet_ = false; -} - } } } diff --git a/kvs/src/v1/model/Update_blob.cpp b/kvs/src/v1/model/Update_blob.cpp deleted file mode 100644 index 75d90c741..000000000 --- a/kvs/src/v1/model/Update_blob.cpp +++ /dev/null @@ -1,188 +0,0 @@ - - -#include "huaweicloud/kvs/v1/model/Update_blob.h" -#include -namespace HuaweiCloud { -namespace Sdk { -namespace Kvs { -namespace V1 { -namespace Model { - - - - -Update_blob::Update_blob() -{ - xattrIsSet_ = false; - offset_ = 0; - offsetIsSet_ = false; - len_ = 0; - lenIsSet_ = false; - blobDataIsSet_ = false; -} - -Update_blob::~Update_blob() = default; - -void Update_blob::validate() -{ -} - -bool Update_blob::toBson(Builder &builder) const -{ - - if (xattrIsSet_ && !bson_append(builder, "xattr", xattr_)) { - return false; - } - if (offsetIsSet_ && !bson_append(builder, "offset", offset_)) { - return false; - } - if (lenIsSet_ && !bson_append(builder, "len", len_)) { - return false; - } - if (blobDataIsSet_ && !bson_append(builder, "blob_data", blobData_)) { - return false; - } - - return true; -} - -bool Update_blob::fromBson(const Viewer &viewer) -{ - - Viewer::Iterator it = viewer.begin(); - while (it != viewer.end()) { - const std::string &key = it->key(); - - if (key == "xattr") { - if (!bson_get(it, xattr_)) { - return false; - } - xattrIsSet_ = true; - ++it; - continue; - } - - if (key == "offset") { - if (!bson_get(it, offset_)) { - return false; - } - offsetIsSet_ = true; - ++it; - continue; - } - - if (key == "len") { - if (!bson_get(it, len_)) { - return false; - } - lenIsSet_ = true; - ++it; - continue; - } - - if (key == "blob_data") { - if (!bson_get(it, blobData_)) { - return false; - } - blobDataIsSet_ = true; - ++it; - continue; - } - - ++it; - } - - return true; -} - -BsonBinary Update_blob::getXattr() const -{ - return xattr_; -} - -void Update_blob::setXattr(const BsonBinary& value) -{ - xattr_ = value; - xattrIsSet_ = true; -} - -bool Update_blob::xattrIsSet() const -{ - return xattrIsSet_; -} - -void Update_blob::unsetxattr() -{ - xattrIsSet_ = false; -} - -int32_t Update_blob::getOffset() const -{ - return offset_; -} - -void Update_blob::setOffset(int32_t value) -{ - offset_ = value; - offsetIsSet_ = true; -} - -bool Update_blob::offsetIsSet() const -{ - return offsetIsSet_; -} - -void Update_blob::unsetoffset() -{ - offsetIsSet_ = false; -} - -int32_t Update_blob::getLen() const -{ - return len_; -} - -void Update_blob::setLen(int32_t value) -{ - len_ = value; - lenIsSet_ = true; -} - -bool Update_blob::lenIsSet() const -{ - return lenIsSet_; -} - -void Update_blob::unsetlen() -{ - lenIsSet_ = false; -} - -BsonBinary Update_blob::getBlobData() const -{ - return blobData_; -} - -void Update_blob::setBlobData(const BsonBinary& value) -{ - blobData_ = value; - blobDataIsSet_ = true; -} - -bool Update_blob::blobDataIsSet() const -{ - return blobDataIsSet_; -} - -void Update_blob::unsetblobData() -{ - blobDataIsSet_ = false; -} - -} -} -} -} -} - -