From f7f6d466aa8c31e611cde671950016aebc446e23 Mon Sep 17 00:00:00 2001 From: Huaweicloud-SDK Date: Thu, 31 Oct 2024 16:59:44 +0800 Subject: [PATCH] release 3.1.108 source code --- CHANGELOG.md | 381 ++++++++ CHANGELOG_CN.md | 381 ++++++++ CMakeLists.txt | 2 +- VERSION | 2 +- cfw/include/huaweicloud/cfw/v1/CfwClient.h | 8 +- .../cfw/v1/model/AddAclRuleRequest.h | 4 +- .../cfw/v1/model/AddAddressItemRequest.h | 4 +- .../cfw/v1/model/AddAddressItemsInfoDto.h | 4 +- .../AddAddressItemsInfoDto_address_items.h | 15 +- .../cfw/v1/model/AddAddressSetDto.h | 4 +- .../cfw/v1/model/AddAddressSetRequest.h | 4 +- .../cfw/v1/model/AddAddressSetResponse.h | 8 +- .../cfw/v1/model/AddBlackWhiteListDto.h | 8 +- .../cfw/v1/model/AddBlackWhiteListRequest.h | 4 +- .../cfw/v1/model/AddBlackWhiteListResponse.h | 8 +- .../cfw/v1/model/AddDomainListDto.h | 4 +- .../cfw/v1/model/AddDomainSetInfoDto.h | 6 +- .../cfw/v1/model/AddDomainSetRequest.h | 4 +- .../cfw/v1/model/AddDomainsRequest.h | 6 +- .../cfw/v1/model/AddLogConfigRequest.h | 4 +- .../cfw/v1/model/AddLogConfigResponse.h | 2 +- .../huaweicloud/cfw/v1/model/AddRuleAclDto.h | 6 +- .../cfw/v1/model/AddRuleAclDto_rules.h | 25 +- .../cfw/v1/model/AddServiceItemsRequest.h | 4 +- .../AddServiceItemsUsingPOSTRequestBody.h | 4 +- .../cfw/v1/model/AddServiceSetRequest.h | 4 +- .../cfw/v1/model/AddServiceSetResponse.h | 8 +- .../model/AddServiceSetUsingPOSTRequestBody.h | 2 +- .../huaweicloud/cfw/v1/model/AddressGroupVO.h | 4 +- .../huaweicloud/cfw/v1/model/AddressItemId.h | 75 ++ .../cfw/v1/model/AddressItemIdWithoutName.h | 64 ++ .../model/AddressItemListResponseDTO_data.h | 4 +- .../AddressItemListResponseDTO_data_records.h | 2 +- .../huaweicloud/cfw/v1/model/AddressItems.h | 8 +- .../model/AddressSetDetailResponseDTO_data.h | 2 +- .../v1/model/{IdObject.h => AddressSetId.h} | 18 +- .../v1/model/AddressSetListResponseDTO_data.h | 2 +- .../AddressSetListResponseDTO_data_records.h | 28 +- .../cfw/v1/model/BatchDeleteAclRulesRequest.h | 4 +- .../v1/model/BatchDeleteAddressItemsRequest.h | 4 +- .../cfw/v1/model/BatchDeleteRuleInfo.h | 4 +- .../v1/model/BatchDeleteServiceItemsRequest.h | 4 +- .../model/BatchUpdateAclRuleActionsRequest.h | 13 +- .../model/BatchUpdateAclRuleActionsResponse.h | 2 +- .../cfw/v1/model/BlackWhiteListId.h | 75 ++ .../v1/model/BlackWhiteListResponse_data.h | 6 +- .../BlackWhiteListResponse_data_records.h | 2 +- .../cfw/v1/model/CancelCaptureTaskDto.h | 2 +- .../cfw/v1/model/CancelCaptureTaskRequest.h | 4 +- .../cfw/v1/model/CancelCaptureTaskResponse.h | 8 +- .../cfw/v1/model/CaptureResultUrlVO.h | 4 +- .../cfw/v1/model/CaptureRuleAddressDto.h | 2 +- .../huaweicloud/cfw/v1/model/CaptureTaskDto.h | 4 +- .../huaweicloud/cfw/v1/model/CaptureTaskId.h | 75 ++ .../huaweicloud/cfw/v1/model/CaptureTaskVO.h | 16 +- .../ChangeEastWestFirewallStatusRequest.h | 4 +- .../ChangeEastWestFirewallStatusResponse.h | 20 +- ...ChangeEastWestFirewallStatusResponseData.h | 64 ++ .../cfw/v1/model/ChangeEipStatusRequest.h | 4 +- .../v1/model/ChangeIpsProtectModeRequest.h | 4 +- .../v1/model/ChangeIpsSwitchStatusRequest.h | 15 +- .../v1/model/ChangeProtectStatusRequestBody.h | 2 +- .../v1/model/ClearAccessLogRuleHitCountsDto.h | 2 +- .../cfw/v1/model/CommonResponseDTO_data.h | 2 +- .../cfw/v1/model/CreateCaptureTaskRequest.h | 4 +- .../cfw/v1/model/CreateCaptureTaskResponse.h | 8 +- .../v1/model/CreateEWFirewallInspectVpcResp.h | 4 +- .../cfw/v1/model/CreateEWFirewallResp.h | 2 +- .../v1/model/CreateEastWestFirewallRequest.h | 4 +- .../model/CreateEastWestFirewallRequestBody.h | 4 +- .../cfw/v1/model/CreateFirewallReq.h | 4 +- .../v1/model/CreateFirewallReq_charge_info.h | 4 +- .../cfw/v1/model/CreateFirewallReq_flavor.h | 10 +- .../cfw/v1/model/CreateFirewallReq_tags.h | 4 +- .../cfw/v1/model/CreateFirewallResponse.h | 2 +- .../huaweicloud/cfw/v1/model/CreateTag.h | 4 +- .../cfw/v1/model/CreateTagRequest.h | 2 +- .../huaweicloud/cfw/v1/model/CreateTagsDto.h | 2 +- .../v1/model/DeleteAclRuleHitCountRequest.h | 4 +- .../cfw/v1/model/DeleteAclRuleRequest.h | 6 +- .../cfw/v1/model/DeleteAddressItemRequest.h | 6 +- .../cfw/v1/model/DeleteAddressItemResponse.h | 8 +- .../cfw/v1/model/DeleteAddressItemsInfoDto.h | 4 +- .../cfw/v1/model/DeleteAddressSetRequest.h | 6 +- .../cfw/v1/model/DeleteAddressSetResponse.h | 8 +- .../v1/model/DeleteBlackWhiteListRequest.h | 6 +- .../v1/model/DeleteBlackWhiteListResponse.h | 8 +- .../cfw/v1/model/DeleteCaptureTaskDto.h | 2 +- .../cfw/v1/model/DeleteCaptureTaskRequest.h | 4 +- .../cfw/v1/model/DeleteCaptureTaskResponse.h | 8 +- .../cfw/v1/model/DeleteDomainDto.h | 4 +- .../cfw/v1/model/DeleteDomainSetRequest.h | 6 +- .../cfw/v1/model/DeleteDomainsRequest.h | 15 +- .../cfw/v1/model/DeleteFirewallRequest.h | 2 +- .../cfw/v1/model/DeleteFirewallResponse.h | 2 +- .../cfw/v1/model/DeleteRuleAclDto.h | 4 +- .../cfw/v1/model/DeleteServiceItemDto.h | 4 +- .../cfw/v1/model/DeleteServiceItemRequest.h | 6 +- .../cfw/v1/model/DeleteServiceItemResponse.h | 8 +- .../model/DeleteServiceItemResponseBodyData.h | 75 ++ .../cfw/v1/model/DeleteServiceSetRequest.h | 6 +- .../cfw/v1/model/DeleteServiceSetResponse.h | 8 +- .../cfw/v1/model/DeleteTagRequest.h | 2 +- .../huaweicloud/cfw/v1/model/DeleteTagsDto.h | 2 +- .../cfw/v1/model/DnsServersResponseDTO.h | 6 +- .../huaweicloud/cfw/v1/model/DomainInfo.h | 16 +- .../cfw/v1/model/DomainSetInfoDto.h | 4 +- .../huaweicloud/cfw/v1/model/DomainSetVo.h | 17 +- .../cfw/v1/model/EIPSwitchStatusVO.h | 18 +- cfw/include/huaweicloud/cfw/v1/model/ER.h | 4 +- .../cfw/v1/model/EipCountRespData.h | 16 +- .../cfw/v1/model/EipOperateProtectReq.h | 6 +- .../v1/model/EipOperateProtectReq_ip_infos.h | 6 +- .../huaweicloud/cfw/v1/model/EipResource.h | 29 +- .../cfw/v1/model/EipResponseData.h | 2 +- .../huaweicloud/cfw/v1/model/ErInstance.h | 39 +- .../cfw/v1/model/EwProtectResourceInfo.h | 12 +- .../huaweicloud/cfw/v1/model/FailedEipInfo.h | 75 ++ .../cfw/v1/model/FirewallInstanceResource.h | 6 +- .../cfw/v1/model/FirewallInstanceVO.h | 16 +- cfw/include/huaweicloud/cfw/v1/model/Flavor.h | 14 +- .../model/GetCreateFirewallJobResponseData.h | 98 +++ .../model/GetEastWestFirewallResponseBody.h | 28 +- .../cfw/v1/model/GetFirewallInstanceData.h | 2 +- .../model/GetFirewallInstanceResponseRecord.h | 18 +- .../HttpFirewallInstanceListResponseData.h | 2 +- .../cfw/v1/model/HttpGetAclTagResponseData.h | 4 +- .../model/HttpQueryCaptureTaskResponseData.h | 23 - ...yCfwAccessControllerLogsResponseDTO_data.h | 4 +- ...ssControllerLogsResponseDTO_data_records.h | 6 +- .../HttpQueryCfwAttackLogsResponseDTO_data.h | 6 +- ...eryCfwAttackLogsResponseDTO_data_records.h | 10 +- .../HttpQueryCfwFlowLogsResponseDTO_data.h | 4 +- ...QueryCfwFlowLogsResponseDTO_data_records.h | 6 +- .../huaweicloud/cfw/v1/model/IpRegionDto.h | 8 +- .../cfw/v1/model/IpsProtectModeObject.h | 2 +- .../huaweicloud/cfw/v1/model/IpsSwitchDTO.h | 4 +- .../cfw/v1/model/IpsSwitchResponseDTO.h | 6 +- .../v1/model/ListAccessControlLogsRequest.h | 8 +- .../cfw/v1/model/ListAclRuleHitCountRequest.h | 4 +- .../cfw/v1/model/ListAclRulesRequest.h | 20 +- .../cfw/v1/model/ListAddressItemsRequest.h | 8 +- .../v1/model/ListAddressSetDetailRequest.h | 6 +- .../cfw/v1/model/ListAddressSetsRequest.h | 12 +- .../cfw/v1/model/ListAttackLogsRequest.h | 6 +- .../cfw/v1/model/ListBlackWhiteListsRequest.h | 8 +- .../cfw/v1/model/ListCaptureResultRequest.h | 6 +- .../cfw/v1/model/ListCaptureTaskRequest.h | 4 +- .../cfw/v1/model/ListCaptureTaskResponse.h | 9 +- .../cfw/v1/model/ListDnsServersRequest.h | 4 +- .../v1/model/ListDomainParseDetailRequest.h | 6 +- .../v1/model/ListDomainParseDetailResponse.h | 2 +- .../cfw/v1/model/ListDomainResponseData.h | 4 +- .../cfw/v1/model/ListDomainSetsRequest.h | 10 +- .../cfw/v1/model/ListDomainsRequest.h | 10 +- .../cfw/v1/model/ListDomainsetsResponseData.h | 2 +- .../v1/model/ListEastWestFirewallRequest.h | 4 +- .../cfw/v1/model/ListEipCountRequest.h | 6 +- .../cfw/v1/model/ListEipsRequest.h | 18 +- .../cfw/v1/model/ListFirewallDetailRequest.h | 4 +- .../cfw/v1/model/ListFirewallListRequest.h | 2 +- .../cfw/v1/model/ListFirewallListResponse.h | 10 +- .../cfw/v1/model/ListFlowLogsRequest.h | 6 +- .../cfw/v1/model/ListIpsProtectModeRequest.h | 6 +- .../cfw/v1/model/ListIpsSwitchStatusRequest.h | 6 +- .../huaweicloud/cfw/v1/model/ListJobRequest.h | 2 +- .../cfw/v1/model/ListJobResponse.h | 34 +- .../cfw/v1/model/ListLogConfigRequest.h | 4 +- .../cfw/v1/model/ListProtectedVpcsRequest.h | 6 +- .../cfw/v1/model/ListRuleAclTagsRequest.h | 4 +- .../cfw/v1/model/ListRuleHitCountDto.h | 2 +- .../cfw/v1/model/ListServiceItemsRequest.h | 8 +- .../v1/model/ListServiceSetDetailRequest.h | 6 +- .../cfw/v1/model/ListServiceSetsRequest.h | 8 +- .../huaweicloud/cfw/v1/model/LogConfigDto.h | 18 +- .../cfw/v1/model/OrderRuleAclDto.h | 2 +- .../{SuccessRsp_data.h => OrderRuleId.h} | 18 +- .../cfw/v1/model/ProtectObjectVO.h | 2 +- .../cfw/v1/model/QueryFireWallInstanceDto.h | 6 +- .../huaweicloud/cfw/v1/model/ResourceTag.h | 6 +- .../v1/model/RuleAclListResponseDTO_data.h | 6 +- .../RuleAclListResponseDTO_data_records.h | 16 +- .../huaweicloud/cfw/v1/model/RuleAddressDto.h | 28 +- .../cfw/v1/model/RuleAddressDtoForRequest.h | 28 +- .../cfw/v1/model/RuleAddressDtoForResponse.h | 16 +- .../cfw/v1/model/RuleHitCountObject.h | 2 +- .../cfw/v1/model/RuleHitCountRecords.h | 4 +- cfw/include/huaweicloud/cfw/v1/model/RuleId.h | 4 +- .../huaweicloud/cfw/v1/model/RuleServiceDto.h | 12 +- .../cfw/v1/model/RuleServiceDtoForResponse.h | 8 +- .../huaweicloud/cfw/v1/model/ServiceGroupVO.h | 6 +- .../huaweicloud/cfw/v1/model/ServiceItem.h | 2 +- .../cfw/v1/model/ServiceItemIds_items.h | 2 +- .../model/ServiceItemListResponseDto_data.h | 2 +- .../huaweicloud/cfw/v1/model/ServiceSet.h | 10 +- .../huaweicloud/cfw/v1/model/ServiceSetId.h | 75 ++ .../cfw/v1/model/ServiceSetRecords.h | 2 +- .../huaweicloud/cfw/v1/model/SubnetInfo.h | 19 +- cfw/include/huaweicloud/cfw/v1/model/TagsVO.h | 6 +- .../cfw/v1/model/UpdateAclRuleOrderRequest.h | 6 +- .../cfw/v1/model/UpdateAclRuleOrderResponse.h | 8 +- .../cfw/v1/model/UpdateAclRuleRequest.h | 6 +- .../cfw/v1/model/UpdateAddressSetRequest.h | 6 +- .../v1/model/UpdateAddressSetResponseData.h | 13 +- .../cfw/v1/model/UpdateBlackWhiteListDto.h | 4 +- .../v1/model/UpdateBlackWhiteListRequest.h | 6 +- .../v1/model/UpdateBlackWhiteListResponse.h | 8 +- .../cfw/v1/model/UpdateDnsServersRequest.h | 4 +- .../v1/model/UpdateDnsServersRequestBody.h | 4 +- .../UpdateDnsServersRequestBody_dns_server.h | 2 +- .../cfw/v1/model/UpdateDomainSetInfoDto.h | 4 +- .../cfw/v1/model/UpdateDomainSetRequest.h | 4 +- .../cfw/v1/model/UpdateLogConfigRequest.h | 4 +- .../cfw/v1/model/UpdateLogConfigResponse.h | 2 +- .../cfw/v1/model/UpdateRuleAclDto.h | 41 +- .../v1/model/UpdateSecurityPolciesActionDto.h | 6 +- .../cfw/v1/model/UpdateServiceSetRequest.h | 6 +- .../cfw/v1/model/UpdateServiceSetResponse.h | 8 +- .../huaweicloud/cfw/v1/model/VPCProtectsVo.h | 14 +- .../cfw/v1/model/VpcAttachmentDetail.h | 2 +- .../huaweicloud/cfw/v1/model/VpcDetail.h | 17 +- cfw/src/v1/CfwClient.cpp | 9 +- cfw/src/v1/CfwMeta.cpp | 11 +- .../AddAddressItemsInfoDto_address_items.cpp | 35 - cfw/src/v1/model/AddAddressSetResponse.cpp | 6 +- .../v1/model/AddBlackWhiteListResponse.cpp | 6 +- cfw/src/v1/model/AddRuleAclDto_rules.cpp | 35 - cfw/src/v1/model/AddServiceSetResponse.cpp | 6 +- cfw/src/v1/model/AddressItemId.cpp | 114 +++ cfw/src/v1/model/AddressItemIdWithoutName.cpp | 79 ++ cfw/src/v1/model/AddressItems.cpp | 6 +- .../model/{IdObject.cpp => AddressSetId.cpp} | 28 +- ...AddressSetListResponseDTO_data_records.cpp | 70 +- .../BatchUpdateAclRuleActionsRequest.cpp | 35 + cfw/src/v1/model/BlackWhiteListId.cpp | 114 +++ .../v1/model/CancelCaptureTaskResponse.cpp | 6 +- cfw/src/v1/model/CaptureTaskId.cpp | 114 +++ .../ChangeEastWestFirewallStatusResponse.cpp | 41 +- ...angeEastWestFirewallStatusResponseData.cpp | 79 ++ .../v1/model/ChangeIpsSwitchStatusRequest.cpp | 35 - .../v1/model/CreateCaptureTaskResponse.cpp | 6 +- .../v1/model/DeleteAddressItemResponse.cpp | 6 +- cfw/src/v1/model/DeleteAddressSetResponse.cpp | 6 +- .../v1/model/DeleteBlackWhiteListResponse.cpp | 6 +- .../v1/model/DeleteCaptureTaskResponse.cpp | 6 +- cfw/src/v1/model/DeleteDomainsRequest.cpp | 35 + .../v1/model/DeleteServiceItemResponse.cpp | 6 +- .../DeleteServiceItemResponseBodyData.cpp | 114 +++ cfw/src/v1/model/DeleteServiceSetResponse.cpp | 6 +- cfw/src/v1/model/DomainInfo.cpp | 34 - cfw/src/v1/model/DomainSetVo.cpp | 35 - cfw/src/v1/model/EIPSwitchStatusVO.cpp | 34 + cfw/src/v1/model/EipCountRespData.cpp | 35 - cfw/src/v1/model/EipResource.cpp | 35 - cfw/src/v1/model/ErInstance.cpp | 105 --- cfw/src/v1/model/FailedEipInfo.cpp | 114 +++ .../GetCreateFirewallJobResponseData.cpp | 182 ++++ .../model/GetEastWestFirewallResponseBody.cpp | 69 -- .../HttpQueryCaptureTaskResponseData.cpp | 70 -- cfw/src/v1/model/ListCaptureTaskResponse.cpp | 6 +- cfw/src/v1/model/ListJobResponse.cpp | 76 +- .../{SuccessRsp_data.cpp => OrderRuleId.cpp} | 20 +- cfw/src/v1/model/ServiceSetId.cpp | 114 +++ cfw/src/v1/model/SubnetInfo.cpp | 35 - .../v1/model/UpdateAclRuleOrderResponse.cpp | 6 +- .../v1/model/UpdateAddressSetResponseData.cpp | 35 + .../v1/model/UpdateBlackWhiteListResponse.cpp | 6 +- cfw/src/v1/model/UpdateRuleAclDto.cpp | 69 -- cfw/src/v1/model/UpdateServiceSetResponse.cpp | 6 +- cfw/src/v1/model/VpcDetail.cpp | 35 - .../huaweicloud/drs/v5/model/CompareJobInfo.h | 17 +- drs/src/v5/model/CompareJobInfo.cpp | 43 +- .../v3/GaussDBforopenGaussClient.h | 99 +++ .../v3/GaussDBforopenGaussMeta.h | 9 + .../v3/model/CreateLimitTaskNodeOption.h | 75 ++ .../v3/model/CreateLimitTaskNodeResult.h | 75 ++ .../v3/model/CreateLimitTaskRequest.h | 83 ++ .../v3/model/CreateLimitTaskRequestBody.h | 198 +++++ .../v3/model/CreateLimitTaskResponse.h | 300 +++++++ .../v3/model/DeleteLimitTaskRequest.h | 82 ++ .../v3/model/DeleteLimitTaskResponse.h | 55 ++ .../v3/model/ErrorResponse.h | 26 +- .../v3/model/LimitTaskRuleInfoOption.h | 86 ++ .../v3/model/ListLimitTaskRequest.h | 181 ++++ .../v3/model/ListLimitTaskResponse.h | 101 +++ .../v3/model/ListLimitTaskResponseResult.h | 286 ++++++ .../v3/model/ListNodeLimitSqlModelRequest.h | 115 +++ .../v3/model/ListNodeLimitSqlModelResponse.h | 101 +++ .../ListNodeLimitSqlModelResponseResult.h | 75 ++ .../v3/model/ShowLimitTaskNodeOption.h | 75 ++ .../v3/model/ShowLimitTaskRequest.h | 82 ++ .../v3/model/ShowLimitTaskResponse.h | 179 ++++ .../StartMySQLCompatibilityRequestBody.h | 64 ++ .../v3/model/StartMysqlCompatibilityRequest.h | 94 ++ .../model/StartMysqlCompatibilityResponse.h | 67 ++ .../v3/model/StopInstanceRequest.h | 94 ++ .../v3/model/StopInstanceRequestBody.h | 65 ++ .../v3/model/StopInstanceResponse.h | 67 ++ .../v3/model/UpdateLimitTaskRequest.h | 94 ++ .../v3/model/UpdateLimitTaskRequestBody.h | 141 +++ .../v3/model/UpdateLimitTaskResponse.h | 177 ++++ .../UpdateMySQLCompatibilityRequestBody.h | 64 ++ .../model/UpdateMysqlCompatibilityRequest.h | 94 ++ .../model/UpdateMysqlCompatibilityResponse.h | 67 ++ .../src/v3/GaussDBforopenGaussClient.cpp | 384 +++++++++ .../src/v3/GaussDBforopenGaussMeta.cpp | 122 +++ .../v3/model/CreateLimitTaskNodeOption.cpp | 114 +++ .../v3/model/CreateLimitTaskNodeResult.cpp | 114 +++ .../src/v3/model/CreateLimitTaskRequest.cpp | 113 +++ .../v3/model/CreateLimitTaskRequestBody.cpp | 498 +++++++++++ .../src/v3/model/CreateLimitTaskResponse.cpp | 812 ++++++++++++++++++ .../src/v3/model/DeleteLimitTaskRequest.cpp | 114 +++ .../src/v3/model/DeleteLimitTaskResponse.cpp | 44 + .../src/v3/model/ErrorResponse.cpp | 32 +- .../src/v3/model/LimitTaskRuleInfoOption.cpp | 149 ++++ .../src/v3/model/ListLimitTaskRequest.cpp | 429 +++++++++ .../src/v3/model/ListLimitTaskResponse.cpp | 183 ++++ .../v3/model/ListLimitTaskResponseResult.cpp | 778 +++++++++++++++++ .../v3/model/ListNodeLimitSqlModelRequest.cpp | 219 +++++ .../model/ListNodeLimitSqlModelResponse.cpp | 183 ++++ .../ListNodeLimitSqlModelResponseResult.cpp | 114 +++ .../src/v3/model/ShowLimitTaskNodeOption.cpp | 114 +++ .../src/v3/model/ShowLimitTaskRequest.cpp | 114 +++ .../src/v3/model/ShowLimitTaskResponse.cpp | 428 +++++++++ .../StartMySQLCompatibilityRequestBody.cpp | 79 ++ .../model/StartMysqlCompatibilityRequest.cpp | 148 ++++ .../model/StartMysqlCompatibilityResponse.cpp | 79 ++ .../src/v3/model/StopInstanceRequest.cpp | 148 ++++ .../src/v3/model/StopInstanceRequestBody.cpp | 78 ++ .../src/v3/model/StopInstanceResponse.cpp | 79 ++ .../src/v3/model/UpdateLimitTaskRequest.cpp | 148 ++++ .../v3/model/UpdateLimitTaskRequestBody.cpp | 324 +++++++ .../src/v3/model/UpdateLimitTaskResponse.cpp | 429 +++++++++ .../UpdateMySQLCompatibilityRequestBody.cpp | 79 ++ .../model/UpdateMysqlCompatibilityRequest.cpp | 148 ++++ .../UpdateMysqlCompatibilityResponse.cpp | 79 ++ .../huaweicloud/kvs/v1/model/ScanKvResponse.h | 6 +- .../kvs/v1/model/ScanSkeyKvResponse.h | 6 +- .../huaweicloud/kvs/v1/model/Update_fields.h | 11 + kvs/src/v1/model/ScanKvResponse.cpp | 6 +- kvs/src/v1/model/ScanSkeyKvResponse.cpp | 6 +- kvs/src/v1/model/Update_fields.cpp | 34 + .../lts/v2/model/AccessConfigInfo.h | 101 +++ .../v2/model/CreateAccessConfigRequestBody.h | 112 +++ .../lts/v2/model/CreateAccessConfigResponse.h | 101 +++ .../lts/v2/model/DemoFieldAccess.h | 75 ++ lts/include/huaweicloud/lts/v2/model/Detail.h | 264 ++++++ .../ListLogStreamsResponseBody1_log_streams.h | 66 ++ .../lts/v2/model/ListLogsResponse.h | 9 +- .../lts/v2/model/LogStreamResBody.h | 66 ++ .../huaweicloud/lts/v2/model/Metadata.h | 22 + .../huaweicloud/lts/v2/model/Processor.h | 76 ++ .../huaweicloud/lts/v2/model/SubTemplate.h | 11 + .../v2/model/UpdateAccessConfigRequestBody.h | 101 +++ .../lts/v2/model/UpdateAccessConfigResponse.h | 101 +++ lts/src/v2/model/AccessConfigInfo.cpp | 312 +++++++ .../model/CreateAccessConfigRequestBody.cpp | 347 ++++++++ .../v2/model/CreateAccessConfigResponse.cpp | 312 +++++++ lts/src/v2/model/DemoFieldAccess.cpp | 114 +++ lts/src/v2/model/Detail.cpp | 702 +++++++++++++++ ...istLogStreamsResponseBody1_log_streams.cpp | 210 +++++ lts/src/v2/model/ListLogsResponse.cpp | 6 +- lts/src/v2/model/LogStreamResBody.cpp | 210 +++++ lts/src/v2/model/Metadata.cpp | 70 ++ lts/src/v2/model/Processor.cpp | 113 +++ lts/src/v2/model/SubTemplate.cpp | 35 + .../model/UpdateAccessConfigRequestBody.cpp | 312 +++++++ .../v2/model/UpdateAccessConfigResponse.cpp | 312 +++++++ .../v1/model/InvoiceVerificationRequestBody.h | 2 +- .../SmartDocumentRecognizerRequestBody.h | 15 +- .../SmartDocumentRecognizerRequestBody.cpp | 35 + .../huaweicloud/rds/v3/model/UserForList.h | 24 + rds/src/v3/model/UserForList.cpp | 68 ++ vod/include/huaweicloud/vod/v1/VodClient.h | 23 + vod/include/huaweicloud/vod/v1/VodMeta.h | 2 + .../vod/v1/model/ShowStorageModeTypeRequest.h | 59 ++ .../v1/model/ShowStorageModeTypeResponse.h | 67 ++ .../vod/v1/model/UpdateStorageModeTypeReq.h | 64 ++ .../v1/model/UpdateStorageModeTypeRequest.h | 71 ++ .../v1/model/UpdateStorageModeTypeResponse.h | 55 ++ vod/src/v1/VodClient.cpp | 70 ++ vod/src/v1/VodMeta.cpp | 14 + .../v1/model/ShowStorageModeTypeRequest.cpp | 44 + .../v1/model/ShowStorageModeTypeResponse.cpp | 79 ++ vod/src/v1/model/UpdateStorageModeTypeReq.cpp | 79 ++ .../v1/model/UpdateStorageModeTypeRequest.cpp | 78 ++ .../model/UpdateStorageModeTypeResponse.cpp | 44 + 387 files changed, 18733 insertions(+), 1835 deletions(-) create mode 100644 cfw/include/huaweicloud/cfw/v1/model/AddressItemId.h create mode 100644 cfw/include/huaweicloud/cfw/v1/model/AddressItemIdWithoutName.h rename cfw/include/huaweicloud/cfw/v1/model/{IdObject.h => AddressSetId.h} (77%) create mode 100644 cfw/include/huaweicloud/cfw/v1/model/BlackWhiteListId.h create mode 100644 cfw/include/huaweicloud/cfw/v1/model/CaptureTaskId.h create mode 100644 cfw/include/huaweicloud/cfw/v1/model/ChangeEastWestFirewallStatusResponseData.h create mode 100644 cfw/include/huaweicloud/cfw/v1/model/DeleteServiceItemResponseBodyData.h create mode 100644 cfw/include/huaweicloud/cfw/v1/model/FailedEipInfo.h create mode 100644 cfw/include/huaweicloud/cfw/v1/model/GetCreateFirewallJobResponseData.h rename cfw/include/huaweicloud/cfw/v1/model/{SuccessRsp_data.h => OrderRuleId.h} (73%) create mode 100644 cfw/include/huaweicloud/cfw/v1/model/ServiceSetId.h create mode 100644 cfw/src/v1/model/AddressItemId.cpp create mode 100644 cfw/src/v1/model/AddressItemIdWithoutName.cpp rename cfw/src/v1/model/{IdObject.cpp => AddressSetId.cpp} (71%) create mode 100644 cfw/src/v1/model/BlackWhiteListId.cpp create mode 100644 cfw/src/v1/model/CaptureTaskId.cpp create mode 100644 cfw/src/v1/model/ChangeEastWestFirewallStatusResponseData.cpp create mode 100644 cfw/src/v1/model/DeleteServiceItemResponseBodyData.cpp create mode 100644 cfw/src/v1/model/FailedEipInfo.cpp create mode 100644 cfw/src/v1/model/GetCreateFirewallJobResponseData.cpp rename cfw/src/v1/model/{SuccessRsp_data.cpp => OrderRuleId.cpp} (65%) create mode 100644 cfw/src/v1/model/ServiceSetId.cpp create mode 100644 gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/CreateLimitTaskNodeOption.h create mode 100644 gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/CreateLimitTaskNodeResult.h create mode 100644 gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/CreateLimitTaskRequest.h create mode 100644 gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/CreateLimitTaskRequestBody.h create mode 100644 gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/CreateLimitTaskResponse.h create mode 100644 gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/DeleteLimitTaskRequest.h create mode 100644 gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/DeleteLimitTaskResponse.h rename cfw/include/huaweicloud/cfw/v1/model/ErrorRsp.h => gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ErrorResponse.h (68%) create mode 100644 gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/LimitTaskRuleInfoOption.h create mode 100644 gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ListLimitTaskRequest.h create mode 100644 gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ListLimitTaskResponse.h create mode 100644 gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ListLimitTaskResponseResult.h create mode 100644 gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ListNodeLimitSqlModelRequest.h create mode 100644 gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ListNodeLimitSqlModelResponse.h create mode 100644 gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ListNodeLimitSqlModelResponseResult.h create mode 100644 gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ShowLimitTaskNodeOption.h create mode 100644 gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ShowLimitTaskRequest.h create mode 100644 gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ShowLimitTaskResponse.h create mode 100644 gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/StartMySQLCompatibilityRequestBody.h create mode 100644 gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/StartMysqlCompatibilityRequest.h create mode 100644 gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/StartMysqlCompatibilityResponse.h create mode 100644 gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/StopInstanceRequest.h create mode 100644 gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/StopInstanceRequestBody.h create mode 100644 gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/StopInstanceResponse.h create mode 100644 gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/UpdateLimitTaskRequest.h create mode 100644 gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/UpdateLimitTaskRequestBody.h create mode 100644 gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/UpdateLimitTaskResponse.h create mode 100644 gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/UpdateMySQLCompatibilityRequestBody.h create mode 100644 gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/UpdateMysqlCompatibilityRequest.h create mode 100644 gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/UpdateMysqlCompatibilityResponse.h create mode 100644 gaussdbforopengauss/src/v3/model/CreateLimitTaskNodeOption.cpp create mode 100644 gaussdbforopengauss/src/v3/model/CreateLimitTaskNodeResult.cpp create mode 100644 gaussdbforopengauss/src/v3/model/CreateLimitTaskRequest.cpp create mode 100644 gaussdbforopengauss/src/v3/model/CreateLimitTaskRequestBody.cpp create mode 100644 gaussdbforopengauss/src/v3/model/CreateLimitTaskResponse.cpp create mode 100644 gaussdbforopengauss/src/v3/model/DeleteLimitTaskRequest.cpp create mode 100644 gaussdbforopengauss/src/v3/model/DeleteLimitTaskResponse.cpp rename cfw/src/v1/model/ErrorRsp.cpp => gaussdbforopengauss/src/v3/model/ErrorResponse.cpp (69%) create mode 100644 gaussdbforopengauss/src/v3/model/LimitTaskRuleInfoOption.cpp create mode 100644 gaussdbforopengauss/src/v3/model/ListLimitTaskRequest.cpp create mode 100644 gaussdbforopengauss/src/v3/model/ListLimitTaskResponse.cpp create mode 100644 gaussdbforopengauss/src/v3/model/ListLimitTaskResponseResult.cpp create mode 100644 gaussdbforopengauss/src/v3/model/ListNodeLimitSqlModelRequest.cpp create mode 100644 gaussdbforopengauss/src/v3/model/ListNodeLimitSqlModelResponse.cpp create mode 100644 gaussdbforopengauss/src/v3/model/ListNodeLimitSqlModelResponseResult.cpp create mode 100644 gaussdbforopengauss/src/v3/model/ShowLimitTaskNodeOption.cpp create mode 100644 gaussdbforopengauss/src/v3/model/ShowLimitTaskRequest.cpp create mode 100644 gaussdbforopengauss/src/v3/model/ShowLimitTaskResponse.cpp create mode 100644 gaussdbforopengauss/src/v3/model/StartMySQLCompatibilityRequestBody.cpp create mode 100644 gaussdbforopengauss/src/v3/model/StartMysqlCompatibilityRequest.cpp create mode 100644 gaussdbforopengauss/src/v3/model/StartMysqlCompatibilityResponse.cpp create mode 100644 gaussdbforopengauss/src/v3/model/StopInstanceRequest.cpp create mode 100644 gaussdbforopengauss/src/v3/model/StopInstanceRequestBody.cpp create mode 100644 gaussdbforopengauss/src/v3/model/StopInstanceResponse.cpp create mode 100644 gaussdbforopengauss/src/v3/model/UpdateLimitTaskRequest.cpp create mode 100644 gaussdbforopengauss/src/v3/model/UpdateLimitTaskRequestBody.cpp create mode 100644 gaussdbforopengauss/src/v3/model/UpdateLimitTaskResponse.cpp create mode 100644 gaussdbforopengauss/src/v3/model/UpdateMySQLCompatibilityRequestBody.cpp create mode 100644 gaussdbforopengauss/src/v3/model/UpdateMysqlCompatibilityRequest.cpp create mode 100644 gaussdbforopengauss/src/v3/model/UpdateMysqlCompatibilityResponse.cpp create mode 100644 lts/include/huaweicloud/lts/v2/model/DemoFieldAccess.h create mode 100644 lts/include/huaweicloud/lts/v2/model/Detail.h create mode 100644 lts/include/huaweicloud/lts/v2/model/Processor.h create mode 100644 lts/src/v2/model/DemoFieldAccess.cpp create mode 100644 lts/src/v2/model/Detail.cpp create mode 100644 lts/src/v2/model/Processor.cpp create mode 100644 vod/include/huaweicloud/vod/v1/model/ShowStorageModeTypeRequest.h create mode 100644 vod/include/huaweicloud/vod/v1/model/ShowStorageModeTypeResponse.h create mode 100644 vod/include/huaweicloud/vod/v1/model/UpdateStorageModeTypeReq.h create mode 100644 vod/include/huaweicloud/vod/v1/model/UpdateStorageModeTypeRequest.h create mode 100644 vod/include/huaweicloud/vod/v1/model/UpdateStorageModeTypeResponse.h create mode 100644 vod/src/v1/model/ShowStorageModeTypeRequest.cpp create mode 100644 vod/src/v1/model/ShowStorageModeTypeResponse.cpp create mode 100644 vod/src/v1/model/UpdateStorageModeTypeReq.cpp create mode 100644 vod/src/v1/model/UpdateStorageModeTypeRequest.cpp create mode 100644 vod/src/v1/model/UpdateStorageModeTypeResponse.cpp diff --git a/CHANGELOG.md b/CHANGELOG.md index 50f79482c..db82d607b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,384 @@ +# 3.1.108 2024-10-31 + +### HuaweiCloud SDK CFW + +- _API Version_ + - V1 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ChangeEastWestFirewallStatus** + - changes of response param + - `- trace_id` + - `* data: object -> object` + - **AddServiceSet** + - changes of response param + - `+ data.name` + - `* data: object -> object` + - **ListJob** + - changes of response param + - `- error_msg` + - `- error_code` + - `* data: object -> object` + - **ListAddressSets** + - changes of request param + - `+ address_type: enum value [0,1]` + - **BatchUpdateAclRuleActions** + - changes of request param + - `+ fw_instance_id` + - **ListDnsServers** + - changes of request param + - `* fw_instance_id: required -> optional` + - **ChangeIpsSwitchStatus** + - changes of request param + - `- X-Language` + - `- ips_type: enum value [1]` + - **UpdateAclRuleOrder** + - changes of response param + - `- data.name` + - `* data: object -> object` + - **AddBlackWhiteList** + - changes of response param + - `* data: object -> object` + - **UpdateBlackWhiteList** + - changes of response param + - `* data: object -> object` + - **DeleteBlackWhiteList** + - changes of response param + - `* data: object -> object` + - **UpdateServiceSet** + - changes of response param + - `+ data.name` + - `* data: object -> object` + - **DeleteServiceSet** + - changes of response param + - `* data: object -> object` + - **DeleteServiceItem** + - changes of response param + - `* data: object -> object` + - **ListEipCount** + - changes of response param + - `- data.object_id` + - **ChangeEipStatus** + - changes of response param + - `+ data.fail_eip_list` + - **DeleteAddressItem** + - changes of response param + - `* data: object -> object` + - **AddAddressSet** + - changes of request param + - `- address_type: enum value [0,1]` + - changes of response param + - `* data: object -> object` + - **ListAddressSetDetail** + - changes of response param + - `- data.address_type: enum value [0,1]` + - **UpdateAddressSet** + - changes of response param + - `+ data.name` + - **DeleteAddressSet** + - changes of response param + - `* data: object -> object` + - **AddDomainSet** + - changes of request param + - `* fw_instance_id: optional -> required` + - **DeleteDomains** + - changes of request param + - `+ fw_instance_id` + - **ListCaptureTask** + - changes of request param + - `* fw_instance_id: optional -> required` + - changes of response param + - `* data: list -> object` + - **CreateCaptureTask** + - changes of response param + - `* data: object -> object` + - **DeleteCaptureTask** + - changes of response param + - `* data: object -> object` + - **CancelCaptureTask** + - changes of response param + - `* data: object -> object` + - **ListEastWestFirewall** + - changes of response param + - `- data.er_associated_subnet` + - `- data.ew_vpc_route_limit` + - `- data.firewall_associated_subnets.status` + - `- data.er.state` + - `- data.er.enterprise_project_id` + - `- data.er.enable_ipv6` + - `- data.inspection_vpc.status` + - **AddAclRule** + - changes of request param + - `- rules.applicationsJsonString` + - **UpdateAclRule** + - changes of request param + - `- sequence` + - `- applicationsJsonString` + - **ListAclRules** + - changes of request param + - `+ address_type: enum value [2]` + - **ListEips** + - changes of request param + - `+ status: enum value [null,0,1]` + - `+ sync: enum value [0,1]` + - changes of response param + - `- data.records.owner` + - **AddAddressItem** + - changes of request param + - `- address_items.name` + - changes of response param + - `- data.items.name` + - `* data.items: list -> list` + - **ListDomains** + - changes of response param + - `- data.records.dns_ips` + - **ListFirewallDetail** + - changes of request param + - `+ service_type: enum value [0,1]` + - changes of response param + - `- data.records.status: enum value [-1,0,1,2,3,4,5,6,7,8,9,10,11]` + - **ListDomainSets** + - changes of response param + - `- data.records.message` + +### HuaweiCloud SDK DRS + +- _API Version_ + - V5 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ListAsyncJobDetail** + - changes of response param + - `- jobs.compare_result.data_compare_task_list.dynamic_compare_delay` + - `* jobs.compare_result.data_compare_task_list.report_remain_seconds: string -> int64` + - **ShowJobDetail** + - changes of response param + - `- job.compare_result.data_compare_task_list.dynamic_compare_delay` + - `* job.compare_result.data_compare_task_list.report_remain_seconds: string -> int64` + +### HuaweiCloud SDK GaussDBforopenGauss + +- _API Version_ + - V3 +- _Features_ + - Support the following APIs: + - `UpdateMysqlCompatibility` + - `StartMysqlCompatibility` + - `StopInstance` + - `ListLimitTask` + - `CreateLimitTask` + - `ShowLimitTask` + - `UpdateLimitTask` + - `DeleteLimitTask` + - `ListNodeLimitSqlModel` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK KVS + +- _API Version_ + - V1 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **UpdateKv** + - changes of request param + - `+ update_fields.insert` + - **ScanKv** + - changes of response param + - `* returned_count: int32 -> int64` + - **ScanSkeyKv** + - changes of response param + - `* returned_count: int32 -> int64` + +### HuaweiCloud SDK LTS + +- _API Version_ + - V2 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ListLogStreams** + - changes of response param + - `+ log_streams.log_stream_name_alias` + - `+ log_streams.whether_log_storage` + - `+ log_streams.hot_cold_separation` + - `+ log_streams.auth_web_tracking` + - `+ log_streams.ttl_in_days` + - `+ log_streams.hot_storage_days` + - **ListLogStream** + - changes of response param + - `+ log_streams.log_stream_name_alias` + - `+ log_streams.whether_log_storage` + - `+ log_streams.hot_cold_separation` + - `+ log_streams.auth_web_tracking` + - `+ log_streams.ttl_in_days` + - `+ log_streams.hot_storage_days` + - **ListLogs** + - changes of response param + - `* analysisLogs: list> -> list` + - **ShowNotificationTemplate** + - changes of response param + - `+ templates.topic` + - **ListActiveOrHistoryAlarms** + - changes of response param + - `+ events.metadata.log_group_name` + - `+ events.metadata.log_stream_name` + - **DeleteActiveAlarms** + - changes of request param + - `+ events.metadata.log_group_name` + - `+ events.metadata.log_stream_name` + - **UpdateNotificationTemplate** + - changes of request param + - `+ templates.topic` + - changes of response param + - `+ templates.topic` + - **CreateNotificationTemplate** + - changes of request param + - `+ templates.topic` + - changes of response param + - `+ templates.topic` + - **ListNotificationTemplates** + - changes of response param + - `+ results.templates.topic` + - **ListAccessConfig** + - changes of response param + - `+ processor_type` + - `+ component_id` + - `+ environment_id` + - `+ processors` + - `+ application_id` + - `+ encoding_format` + - `+ demo_log` + - `+ incremental_collect` + - `+ demo_fields` + - `+ result.encoding_format` + - `+ result.incremental_collect` + - `+ result.processor_type` + - `+ result.demo_log` + - `+ result.demo_fields` + - `+ result.processors` + - `+ result.application_id` + - `+ result.environment_id` + - `+ result.component_id` + - **UpdateAccessConfig** + - changes of request param + - `+ incremental_collect` + - `+ encoding_format` + - `+ processor_type` + - `+ demo_log` + - `+ demo_fields` + - `+ processors` + - `+ application_id` + - `+ environment_id` + - `+ component_id` + - changes of response param + - `+ processor_type` + - `+ component_id` + - `+ environment_id` + - `+ processors` + - `+ application_id` + - `+ encoding_format` + - `+ demo_log` + - `+ incremental_collect` + - `+ demo_fields` + - **CreateAccessConfig** + - changes of request param + - `+ incremental_collect` + - `+ encoding_format` + - `+ processor_type` + - `+ demo_log` + - `+ demo_fields` + - `+ processors` + - `+ application_id` + - `+ environment_id` + - `+ component_id` + - `+ access_config_type_source` + - changes of response param + - `+ processor_type` + - `+ component_id` + - `+ environment_id` + - `+ processors` + - `+ application_id` + - `+ encoding_format` + - `+ demo_log` + - `+ incremental_collect` + - `+ demo_fields` + - **DeleteAccessConfig** + - changes of response param + - `+ processor_type` + - `+ component_id` + - `+ environment_id` + - `+ processors` + - `+ application_id` + - `+ encoding_format` + - `+ demo_log` + - `+ incremental_collect` + - `+ demo_fields` + - `+ result.encoding_format` + - `+ result.incremental_collect` + - `+ result.processor_type` + - `+ result.demo_log` + - `+ result.demo_fields` + - `+ result.processors` + - `+ result.application_id` + - `+ result.environment_id` + - `+ result.component_id` + +### HuaweiCloud SDK OCR + +- _API Version_ + - V1 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **RecognizeSmartDocumentRecognizer** + - changes of request param + - `+ language` + +### HuaweiCloud SDK RDS + +- _API Version_ + - V3 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ListDbUsers** + - changes of response param + - `+ users.databases` + - `+ users.hosts` + - **ListSqlserverDbUsers** + - changes of response param + - `+ users.databases` + - `+ users.hosts` + +### HuaweiCloud SDK VOD + +- _API Version_ + - V1 +- _Features_ + - Support the APIs `ShowStorageModeType`, `UpdateStorageModeType` +- _Bug Fix_ + - None +- _Change_ + - None + # 3.1.107 2024-10-24 ### HuaweiCloud SDK DRS diff --git a/CHANGELOG_CN.md b/CHANGELOG_CN.md index febce57ae..ebd66f659 100644 --- a/CHANGELOG_CN.md +++ b/CHANGELOG_CN.md @@ -1,3 +1,384 @@ +# 3.1.108 2024-10-31 + +### HuaweiCloud SDK CFW + +- _接口版本_ + - V1 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ChangeEastWestFirewallStatus** + - 响应参数变更 + - `- trace_id` + - `* data: object -> object` + - **AddServiceSet** + - 响应参数变更 + - `+ data.name` + - `* data: object -> object` + - **ListJob** + - 响应参数变更 + - `- error_msg` + - `- error_code` + - `* data: object -> object` + - **ListAddressSets** + - 请求参数变更 + - `+ address_type: enum value [0,1]` + - **BatchUpdateAclRuleActions** + - 请求参数变更 + - `+ fw_instance_id` + - **ListDnsServers** + - 请求参数变更 + - `* fw_instance_id: required -> optional` + - **ChangeIpsSwitchStatus** + - 请求参数变更 + - `- X-Language` + - `- ips_type: enum value [1]` + - **UpdateAclRuleOrder** + - 响应参数变更 + - `- data.name` + - `* data: object -> object` + - **AddBlackWhiteList** + - 响应参数变更 + - `* data: object -> object` + - **UpdateBlackWhiteList** + - 响应参数变更 + - `* data: object -> object` + - **DeleteBlackWhiteList** + - 响应参数变更 + - `* data: object -> object` + - **UpdateServiceSet** + - 响应参数变更 + - `+ data.name` + - `* data: object -> object` + - **DeleteServiceSet** + - 响应参数变更 + - `* data: object -> object` + - **DeleteServiceItem** + - 响应参数变更 + - `* data: object -> object` + - **ListEipCount** + - 响应参数变更 + - `- data.object_id` + - **ChangeEipStatus** + - 响应参数变更 + - `+ data.fail_eip_list` + - **DeleteAddressItem** + - 响应参数变更 + - `* data: object -> object` + - **AddAddressSet** + - 请求参数变更 + - `- address_type: enum value [0,1]` + - 响应参数变更 + - `* data: object -> object` + - **ListAddressSetDetail** + - 响应参数变更 + - `- data.address_type: enum value [0,1]` + - **UpdateAddressSet** + - 响应参数变更 + - `+ data.name` + - **DeleteAddressSet** + - 响应参数变更 + - `* data: object -> object` + - **AddDomainSet** + - 请求参数变更 + - `* fw_instance_id: optional -> required` + - **DeleteDomains** + - 请求参数变更 + - `+ fw_instance_id` + - **ListCaptureTask** + - 请求参数变更 + - `* fw_instance_id: optional -> required` + - 响应参数变更 + - `* data: list -> object` + - **CreateCaptureTask** + - 响应参数变更 + - `* data: object -> object` + - **DeleteCaptureTask** + - 响应参数变更 + - `* data: object -> object` + - **CancelCaptureTask** + - 响应参数变更 + - `* data: object -> object` + - **ListEastWestFirewall** + - 响应参数变更 + - `- data.er_associated_subnet` + - `- data.ew_vpc_route_limit` + - `- data.firewall_associated_subnets.status` + - `- data.er.state` + - `- data.er.enterprise_project_id` + - `- data.er.enable_ipv6` + - `- data.inspection_vpc.status` + - **AddAclRule** + - 请求参数变更 + - `- rules.applicationsJsonString` + - **UpdateAclRule** + - 请求参数变更 + - `- sequence` + - `- applicationsJsonString` + - **ListAclRules** + - 请求参数变更 + - `+ address_type: enum value [2]` + - **ListEips** + - 请求参数变更 + - `+ status: enum value [null,0,1]` + - `+ sync: enum value [0,1]` + - 响应参数变更 + - `- data.records.owner` + - **AddAddressItem** + - 请求参数变更 + - `- address_items.name` + - 响应参数变更 + - `- data.items.name` + - `* data.items: list -> list` + - **ListDomains** + - 响应参数变更 + - `- data.records.dns_ips` + - **ListFirewallDetail** + - 请求参数变更 + - `+ service_type: enum value [0,1]` + - 响应参数变更 + - `- data.records.status: enum value [-1,0,1,2,3,4,5,6,7,8,9,10,11]` + - **ListDomainSets** + - 响应参数变更 + - `- data.records.message` + +### HuaweiCloud SDK DRS + +- _接口版本_ + - V5 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ListAsyncJobDetail** + - 响应参数变更 + - `- jobs.compare_result.data_compare_task_list.dynamic_compare_delay` + - `* jobs.compare_result.data_compare_task_list.report_remain_seconds: string -> int64` + - **ShowJobDetail** + - 响应参数变更 + - `- job.compare_result.data_compare_task_list.dynamic_compare_delay` + - `* job.compare_result.data_compare_task_list.report_remain_seconds: string -> int64` + +### HuaweiCloud SDK GaussDBforopenGauss + +- _接口版本_ + - V3 +- _新增特性_ + - 支持以下接口: + - `UpdateMysqlCompatibility` + - `StartMysqlCompatibility` + - `StopInstance` + - `ListLimitTask` + - `CreateLimitTask` + - `ShowLimitTask` + - `UpdateLimitTask` + - `DeleteLimitTask` + - `ListNodeLimitSqlModel` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK KVS + +- _接口版本_ + - V1 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **UpdateKv** + - 请求参数变更 + - `+ update_fields.insert` + - **ScanKv** + - 响应参数变更 + - `* returned_count: int32 -> int64` + - **ScanSkeyKv** + - 响应参数变更 + - `* returned_count: int32 -> int64` + +### HuaweiCloud SDK LTS + +- _接口版本_ + - V2 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ListLogStreams** + - 响应参数变更 + - `+ log_streams.log_stream_name_alias` + - `+ log_streams.whether_log_storage` + - `+ log_streams.hot_cold_separation` + - `+ log_streams.auth_web_tracking` + - `+ log_streams.ttl_in_days` + - `+ log_streams.hot_storage_days` + - **ListLogStream** + - 响应参数变更 + - `+ log_streams.log_stream_name_alias` + - `+ log_streams.whether_log_storage` + - `+ log_streams.hot_cold_separation` + - `+ log_streams.auth_web_tracking` + - `+ log_streams.ttl_in_days` + - `+ log_streams.hot_storage_days` + - **ListLogs** + - 响应参数变更 + - `* analysisLogs: list> -> list` + - **ShowNotificationTemplate** + - 响应参数变更 + - `+ templates.topic` + - **ListActiveOrHistoryAlarms** + - 响应参数变更 + - `+ events.metadata.log_group_name` + - `+ events.metadata.log_stream_name` + - **DeleteActiveAlarms** + - 请求参数变更 + - `+ events.metadata.log_group_name` + - `+ events.metadata.log_stream_name` + - **UpdateNotificationTemplate** + - 请求参数变更 + - `+ templates.topic` + - 响应参数变更 + - `+ templates.topic` + - **CreateNotificationTemplate** + - 请求参数变更 + - `+ templates.topic` + - 响应参数变更 + - `+ templates.topic` + - **ListNotificationTemplates** + - 响应参数变更 + - `+ results.templates.topic` + - **ListAccessConfig** + - 响应参数变更 + - `+ processor_type` + - `+ component_id` + - `+ environment_id` + - `+ processors` + - `+ application_id` + - `+ encoding_format` + - `+ demo_log` + - `+ incremental_collect` + - `+ demo_fields` + - `+ result.encoding_format` + - `+ result.incremental_collect` + - `+ result.processor_type` + - `+ result.demo_log` + - `+ result.demo_fields` + - `+ result.processors` + - `+ result.application_id` + - `+ result.environment_id` + - `+ result.component_id` + - **UpdateAccessConfig** + - 请求参数变更 + - `+ incremental_collect` + - `+ encoding_format` + - `+ processor_type` + - `+ demo_log` + - `+ demo_fields` + - `+ processors` + - `+ application_id` + - `+ environment_id` + - `+ component_id` + - 响应参数变更 + - `+ processor_type` + - `+ component_id` + - `+ environment_id` + - `+ processors` + - `+ application_id` + - `+ encoding_format` + - `+ demo_log` + - `+ incremental_collect` + - `+ demo_fields` + - **CreateAccessConfig** + - 请求参数变更 + - `+ incremental_collect` + - `+ encoding_format` + - `+ processor_type` + - `+ demo_log` + - `+ demo_fields` + - `+ processors` + - `+ application_id` + - `+ environment_id` + - `+ component_id` + - `+ access_config_type_source` + - 响应参数变更 + - `+ processor_type` + - `+ component_id` + - `+ environment_id` + - `+ processors` + - `+ application_id` + - `+ encoding_format` + - `+ demo_log` + - `+ incremental_collect` + - `+ demo_fields` + - **DeleteAccessConfig** + - 响应参数变更 + - `+ processor_type` + - `+ component_id` + - `+ environment_id` + - `+ processors` + - `+ application_id` + - `+ encoding_format` + - `+ demo_log` + - `+ incremental_collect` + - `+ demo_fields` + - `+ result.encoding_format` + - `+ result.incremental_collect` + - `+ result.processor_type` + - `+ result.demo_log` + - `+ result.demo_fields` + - `+ result.processors` + - `+ result.application_id` + - `+ result.environment_id` + - `+ result.component_id` + +### HuaweiCloud SDK OCR + +- _接口版本_ + - V1 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **RecognizeSmartDocumentRecognizer** + - 请求参数变更 + - `+ language` + +### HuaweiCloud SDK RDS + +- _接口版本_ + - V3 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ListDbUsers** + - 响应参数变更 + - `+ users.databases` + - `+ users.hosts` + - **ListSqlserverDbUsers** + - 响应参数变更 + - `+ users.databases` + - `+ users.hosts` + +### HuaweiCloud SDK VOD + +- _接口版本_ + - V1 +- _新增特性_ + - 支持接口`ShowStorageModeType`、`UpdateStorageModeType` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + # 3.1.107 2024-10-24 ### HuaweiCloud SDK DRS diff --git a/CMakeLists.txt b/CMakeLists.txt index 2eaab95f7..aa794a32d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,7 +25,7 @@ if(ENABLE_BSON) add_definitions(-DHUAWEICLOUD_SDK_BSON_) endif() -SET(BUILD_SERVICE all) +SET(BUILD_SERVICE cfw) SET(SERVICE_VERSION v1) if(BUILD_SERVICE STREQUAL "all" OR BUILD_SERVICE STREQUAL "") diff --git a/VERSION b/VERSION index 929b79462..d904254e6 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.1.107 +3.1.108 diff --git a/cfw/include/huaweicloud/cfw/v1/CfwClient.h b/cfw/include/huaweicloud/cfw/v1/CfwClient.h index bf0fcebe0..0e45ebc71 100644 --- a/cfw/include/huaweicloud/cfw/v1/CfwClient.h +++ b/cfw/include/huaweicloud/cfw/v1/CfwClient.h @@ -305,7 +305,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT CfwClient : public Client ); // 修改东西向防火墙防护状态 // - // 东西向防护资源防护开启/关闭 + // 东西向防护开启/关闭 // // Please refer to HUAWEI cloud API Explorer for details. std::shared_ptr changeEastWestFirewallStatus( @@ -313,7 +313,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT CfwClient : public Client ); // 创建抓包任务 // - // 创建抓包任务 + // 创建抓包任务,每个任务只能执行一次。 // // Please refer to HUAWEI cloud API Explorer for details. std::shared_ptr createCaptureTask( @@ -367,9 +367,9 @@ 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( diff --git a/cfw/include/huaweicloud/cfw/v1/model/AddAclRuleRequest.h b/cfw/include/huaweicloud/cfw/v1/model/AddAclRuleRequest.h index d19cf25c0..9354baa46 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/AddAclRuleRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/AddAclRuleRequest.h @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddAclRuleRequest /// AddAclRuleRequest members /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddAclRuleRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// 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 febd2fdc9..af253ff36 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/AddAddressItemRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/AddAddressItemRequest.h @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddAddressItemRequest /// AddAddressItemRequest members /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddAddressItemRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/AddAddressItemsInfoDto.h b/cfw/include/huaweicloud/cfw/v1/model/AddAddressItemsInfoDto.h index 3d69d7dd5..88c60b88e 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/AddAddressItemsInfoDto.h +++ b/cfw/include/huaweicloud/cfw/v1/model/AddAddressItemsInfoDto.h @@ -41,7 +41,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddAddressItemsInfoDto /// AddAddressItemsInfoDto members /// - /// 地址组id + /// 地址组id,可通过[查询地址组列表接口](ListAddressSets.xml)查询获得,通过返回值中的data.records.set_id(.表示各对象之间层级的区分)获得。 /// std::string getSetId() const; @@ -50,7 +50,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddAddressItemsInfoDto void setSetId(const std::string& value); /// - /// 地址组成员信息 + /// 地址组成员列表 /// std::vector& getAddressItems(); diff --git a/cfw/include/huaweicloud/cfw/v1/model/AddAddressItemsInfoDto_address_items.h b/cfw/include/huaweicloud/cfw/v1/model/AddAddressItemsInfoDto_address_items.h index 75c84b8c2..c8b5f981f 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/AddAddressItemsInfoDto_address_items.h +++ b/cfw/include/huaweicloud/cfw/v1/model/AddAddressItemsInfoDto_address_items.h @@ -39,16 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddAddressItemsInfoDto_address_items /// AddAddressItemsInfoDto_address_items members /// - /// 地址名称 - /// - - std::string getName() const; - bool nameIsSet() const; - void unsetname(); - void setName(const std::string& value); - - /// - /// 地址类型0 ipv4,1 ipv6 + /// 地址类型0 ipv4,1 ipv6 /// int32_t getAddressType() const; @@ -57,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddAddressItemsInfoDto_address_items void setAddressType(int32_t value); /// - /// 地址组ip信息 + /// ip /// std::string getAddress() const; @@ -76,8 +67,6 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddAddressItemsInfoDto_address_items protected: - std::string name_; - bool nameIsSet_; int32_t addressType_; bool addressTypeIsSet_; std::string address_; diff --git a/cfw/include/huaweicloud/cfw/v1/model/AddAddressSetDto.h b/cfw/include/huaweicloud/cfw/v1/model/AddAddressSetDto.h index 87b0c90bd..ac0bd0224 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,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),type为0的为互联网边界防护对象id。 + /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)获得,通过返回值中的data.records.protect_objects.object_id(.表示各对象之间层级的区分)获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id,type可通过data.records.protect_objects.type(.表示各对象之间层级的区分)获得 /// std::string getObjectId() const; @@ -66,7 +66,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddAddressSetDto void setDescription(const std::string& value); /// - /// 地址类型0 ipv4,1 ipv6 + /// 地址类型0 ipv4,1 ipv6 /// int32_t getAddressType() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/AddAddressSetRequest.h b/cfw/include/huaweicloud/cfw/v1/model/AddAddressSetRequest.h index 7b44633ed..9e6c966bf 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/AddAddressSetRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/AddAddressSetRequest.h @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddAddressSetRequest /// AddAddressSetRequest members /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddAddressSetRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/AddAddressSetResponse.h b/cfw/include/huaweicloud/cfw/v1/model/AddAddressSetResponse.h index 285c3313a..0b0d61096 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/AddAddressSetResponse.h +++ b/cfw/include/huaweicloud/cfw/v1/model/AddAddressSetResponse.h @@ -9,7 +9,7 @@ #include #include -#include +#include namespace HuaweiCloud { namespace Sdk { @@ -42,14 +42,14 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddAddressSetResponse /// /// - IdObject getData() const; + AddressSetId getData() const; bool dataIsSet() const; void unsetdata(); - void setData(const IdObject& value); + void setData(const AddressSetId& value); protected: - IdObject data_; + AddressSetId data_; bool dataIsSet_; #ifdef RTTR_FLAG diff --git a/cfw/include/huaweicloud/cfw/v1/model/AddBlackWhiteListDto.h b/cfw/include/huaweicloud/cfw/v1/model/AddBlackWhiteListDto.h index c48daccf6..7ed3495bb 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,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。 + /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)获得,通过返回值中的data.records.protect_objects.object_id(.表示各对象之间层级的区分)获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id,type可通过data.records.protect_objects.type(.表示各对象之间层级的区分)获得 /// std::string getObjectId() const; @@ -66,7 +66,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddBlackWhiteListDto void setDirection(int32_t value); /// - /// Ip地址类型 0:ipv4,1:ipv6 + /// ip地址类型 0:ipv4,1:ipv6 /// int32_t getAddressType() const; @@ -75,7 +75,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddBlackWhiteListDto void setAddressType(int32_t value); /// - /// 地址类型 + /// ip地址 /// std::string getAddress() const; @@ -84,7 +84,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddBlackWhiteListDto void setAddress(const std::string& value); /// - /// 协议类型:TCP为6, UDP为17,ICMP为1,ICMPV6为58,ANY为-1,手动类型不为空,自动类型为空 + /// 协议类型:TCP为6,UDP为17,ICMP为1,ICMPV6为58,ANY为-1,手动类型不为空,自动类型为空 /// int32_t getProtocol() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/AddBlackWhiteListRequest.h b/cfw/include/huaweicloud/cfw/v1/model/AddBlackWhiteListRequest.h index 341c1e695..e76d75733 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/AddBlackWhiteListRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/AddBlackWhiteListRequest.h @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddBlackWhiteListRequest /// AddBlackWhiteListRequest members /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddBlackWhiteListRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)接口获得,默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/AddBlackWhiteListResponse.h b/cfw/include/huaweicloud/cfw/v1/model/AddBlackWhiteListResponse.h index fac1a4a46..5313f2a5a 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/AddBlackWhiteListResponse.h +++ b/cfw/include/huaweicloud/cfw/v1/model/AddBlackWhiteListResponse.h @@ -9,7 +9,7 @@ #include #include -#include +#include namespace HuaweiCloud { namespace Sdk { @@ -42,14 +42,14 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddBlackWhiteListResponse /// /// - IdObject getData() const; + BlackWhiteListId getData() const; bool dataIsSet() const; void unsetdata(); - void setData(const IdObject& value); + void setData(const BlackWhiteListId& value); protected: - IdObject data_; + BlackWhiteListId data_; bool dataIsSet_; #ifdef RTTR_FLAG diff --git a/cfw/include/huaweicloud/cfw/v1/model/AddDomainListDto.h b/cfw/include/huaweicloud/cfw/v1/model/AddDomainListDto.h index 2098df943..82f02c457 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,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)。 /// std::string getFwInstanceId() const; @@ -50,7 +50,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddDomainListDto void setFwInstanceId(const std::string& value); /// - /// 互联网边界防护对象id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),type为0的为互联网边界防护对象id。 + /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)获得,通过返回值中的data.records.protect_objects.object_id(.表示各对象之间层级的区分)获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id,type可通过data.records.protect_objects.type(.表示各对象之间层级的区分)获得 /// 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 95c57bda6..555df86e8 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,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// std::string getFwInstanceId() const; @@ -50,7 +50,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddDomainSetInfoDto void setFwInstanceId(const std::string& value); /// - /// 互联网边界防护对象id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),type为0的为互联网边界防护对象id。 + /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)获得,通过返回值中的data.records.protect_objects.object_id(.表示各对象之间层级的区分)获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id,type可通过data.records.protect_objects.type(.表示各对象之间层级的区分)获得 /// std::string getObjectId() const; @@ -68,7 +68,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddDomainSetInfoDto void setName(const std::string& value); /// - /// 描述 + /// 域名组描述 /// std::string getDescription() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/AddDomainSetRequest.h b/cfw/include/huaweicloud/cfw/v1/model/AddDomainSetRequest.h index 6aadd6245..09c50c0e1 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/AddDomainSetRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/AddDomainSetRequest.h @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddDomainSetRequest /// AddDomainSetRequest members /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddDomainSetRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// 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 81a51141a..33c4a2d08 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/AddDomainsRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/AddDomainsRequest.h @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddDomainsRequest /// AddDomainsRequest members /// - /// 域名组id + /// 域名组id,可通过[查询域名组列表接口](ListDomainSets.xml)查询获得,通过返回值中的data.records.set_id(.表示各对象之间层级的区分)获得。 /// std::string getSetId() const; @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddDomainsRequest void setSetId(const std::string& value); /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; @@ -58,7 +58,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddDomainsRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// 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 7768e35bf..6ef8d58e5 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,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// std::string getFwInstanceId() const; @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddLogConfigRequest void setFwInstanceId(const std::string& value); /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/AddLogConfigResponse.h b/cfw/include/huaweicloud/cfw/v1/model/AddLogConfigResponse.h index 919dc37c4..0829b71a6 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/AddLogConfigResponse.h +++ b/cfw/include/huaweicloud/cfw/v1/model/AddLogConfigResponse.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddLogConfigResponse /// AddLogConfigResponse members /// - /// 添加日志配置返回值 + /// 添加日志配置返回值,为防火墙id /// std::string getData() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/AddRuleAclDto.h b/cfw/include/huaweicloud/cfw/v1/model/AddRuleAclDto.h index 728760ef6..738fe6096 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,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。 + /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)获得,通过返回值中的data.records.protect_objects.object_id(.表示各对象之间层级的区分)获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id,type可通过data.records.protect_objects.type(.表示各对象之间层级的区分)获得 /// std::string getObjectId() const; @@ -50,7 +50,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddRuleAclDto void setObjectId(const std::string& value); /// - /// 规则type,0:互联网规则,1:vpc规则,2:nat规则 + /// 规则类型,0:互联网边界规则,1:vpc间规则,2:nat规则,当type取0时,规则源和目的地址需要为公网ip或域名,vpc间规则需要源和目的地址为私有ip,nat规则需要源地址为私网ip,目的地址为公网ip或域名。 /// int32_t getType() const; @@ -59,7 +59,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddRuleAclDto void setType(int32_t value); /// - /// rules + /// 添加规则请求规则列表 /// std::vector& getRules(); diff --git a/cfw/include/huaweicloud/cfw/v1/model/AddRuleAclDto_rules.h b/cfw/include/huaweicloud/cfw/v1/model/AddRuleAclDto_rules.h index d803dc140..6d2c622ec 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/AddRuleAclDto_rules.h +++ b/cfw/include/huaweicloud/cfw/v1/model/AddRuleAclDto_rules.h @@ -62,7 +62,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddRuleAclDto_rules void setSequence(const OrderRuleAclDto& value); /// - /// 地址类型,0 ipv4,1 ipv6,2 domain + /// 地址类型,0表示ipv4,1表示ipv6 /// int32_t getAddressType() const; @@ -71,7 +71,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddRuleAclDto_rules void setAddressType(int32_t value); /// - /// 动作0:permit,1:deny + /// 规则动作,0表示允许通行(permit),1表示拒绝通行(deny) /// int32_t getActionType() const; @@ -80,7 +80,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddRuleAclDto_rules void setActionType(int32_t value); /// - /// 规则下发状态 0:禁用,1:启用 + /// 规则启用状态,0表示禁用,1表示启用 /// int32_t getStatus() const; @@ -89,7 +89,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddRuleAclDto_rules void setStatus(int32_t value); /// - /// 应用列表 + /// 规则应用列表,规则应用类型包括:“HTTP”,\"HTTPS\",\"TLS1\",“DNS”,“SSH”,“MYSQL”,“SMTP”,“RDP”,“RDPS”,“VNC”,“POP3”,“IMAP4”,“SMTPS”,“POP3S”,“FTPS”,“ANY”,“BGP”等。 /// std::vector& getApplications(); @@ -97,15 +97,6 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddRuleAclDto_rules void unsetapplications(); void setApplications(const std::vector& value); - /// - /// 应用列表转化json字符串 - /// - - std::string getApplicationsJsonString() const; - bool applicationsJsonStringIsSet() const; - void unsetapplicationsJsonString(); - void setApplicationsJsonString(const std::string& value); - /// /// 长连接时长 /// @@ -116,7 +107,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddRuleAclDto_rules void setLongConnectTime(int64_t value); /// - /// 长连接时长小时 + /// 长连接时长对应小时 /// int64_t getLongConnectTimeHour() const; @@ -125,7 +116,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddRuleAclDto_rules void setLongConnectTimeHour(int64_t value); /// - /// 长连接时长分钟 + /// 长连接时长对应分钟 /// int64_t getLongConnectTimeMinute() const; @@ -161,7 +152,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddRuleAclDto_rules void setDescription(const std::string& value); /// - /// 方向:0表示外到内,1表示内到外【说明:规则type=0:互联网规则 | 2:nat规则时方向值必填】 + /// 方向:0表示外到内,1表示内到外,规则type=0(互联网规则)或者type= 2(nat规则)时方向值必填 /// int32_t getDirection() const; @@ -219,8 +210,6 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddRuleAclDto_rules bool statusIsSet_; std::vector applications_; bool applicationsIsSet_; - std::string applicationsJsonString_; - bool applicationsJsonStringIsSet_; int64_t longConnectTime_; bool longConnectTimeIsSet_; int64_t longConnectTimeHour_; diff --git a/cfw/include/huaweicloud/cfw/v1/model/AddServiceItemsRequest.h b/cfw/include/huaweicloud/cfw/v1/model/AddServiceItemsRequest.h index 3909de816..14c7608ff 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/AddServiceItemsRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/AddServiceItemsRequest.h @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddServiceItemsRequest /// AddServiceItemsRequest members /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddServiceItemsRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/AddServiceItemsUsingPOSTRequestBody.h b/cfw/include/huaweicloud/cfw/v1/model/AddServiceItemsUsingPOSTRequestBody.h index 95f8262b1..7bac1bd24 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/AddServiceItemsUsingPOSTRequestBody.h +++ b/cfw/include/huaweicloud/cfw/v1/model/AddServiceItemsUsingPOSTRequestBody.h @@ -41,7 +41,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddServiceItemsUsingPOSTRequestBody /// AddServiceItemsUsingPOSTRequestBody members /// - /// 服务组id + /// 服务组id,可通过[获取服务组列表接口](ListServiceSets.xml)查询获得,通过返回值中的data.records.set_id(.表示各对象之间层级的区分)获得。 /// std::string getSetId() const; @@ -50,7 +50,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddServiceItemsUsingPOSTRequestBody void setSetId(const std::string& value); /// - /// 添加服务组成员 + /// 服务组成员列表 /// std::vector& getServiceItems(); diff --git a/cfw/include/huaweicloud/cfw/v1/model/AddServiceSetRequest.h b/cfw/include/huaweicloud/cfw/v1/model/AddServiceSetRequest.h index 013be343d..ec787bdfe 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/AddServiceSetRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/AddServiceSetRequest.h @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddServiceSetRequest /// AddServiceSetRequest members /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddServiceSetRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// 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 37b43dfd9..8fce668e6 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 /// /// - CommonResponseDTO_data getData() const; + ServiceSetId getData() const; bool dataIsSet() const; void unsetdata(); - void setData(const CommonResponseDTO_data& value); + void setData(const ServiceSetId& value); protected: - CommonResponseDTO_data data_; + ServiceSetId 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 1263040e7..7d85206d6 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,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),type为0的为互联网边界防护对象id。 + /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)获得,通过返回值中的data.records.protect_objects.object_id(.表示各对象之间层级的区分)获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id,type可通过data.records.protect_objects.type(.表示各对象之间层级的区分)获得 /// 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 715ed61e3..f4a588de5 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/AddressGroupVO.h +++ b/cfw/include/huaweicloud/cfw/v1/model/AddressGroupVO.h @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddressGroupVO void setAddressSetType(int32_t value); /// - /// 地址组名称 + /// 关联IP地址组名称,可通过[查询地址组列表接口](ListAddressSets.xml)查询获得,通过返回值中的data.records.name(.表示各对象之间层级的区分)获得。 /// std::string getName() const; @@ -57,7 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddressGroupVO void setName(const std::string& value); /// - /// 地址组id + /// 关联IP地址组ID,可通过[查询地址组列表接口](ListAddressSets.xml)查询获得,通过返回值中的data.records.set_id(.表示各对象之间层级的区分)获得。 /// std::string getSetId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/AddressItemId.h b/cfw/include/huaweicloud/cfw/v1/model/AddressItemId.h new file mode 100644 index 000000000..655cc2b67 --- /dev/null +++ b/cfw/include/huaweicloud/cfw/v1/model/AddressItemId.h @@ -0,0 +1,75 @@ + +#ifndef HUAWEICLOUD_SDK_CFW_V1_MODEL_AddressItemId_H_ +#define HUAWEICLOUD_SDK_CFW_V1_MODEL_AddressItemId_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 AddressItemId + : public ModelBase +{ +public: + AddressItemId(); + virtual ~AddressItemId(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// AddressItemId 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_CFW_V1_MODEL_AddressItemId_H_ diff --git a/cfw/include/huaweicloud/cfw/v1/model/AddressItemIdWithoutName.h b/cfw/include/huaweicloud/cfw/v1/model/AddressItemIdWithoutName.h new file mode 100644 index 000000000..7c4d1c91e --- /dev/null +++ b/cfw/include/huaweicloud/cfw/v1/model/AddressItemIdWithoutName.h @@ -0,0 +1,64 @@ + +#ifndef HUAWEICLOUD_SDK_CFW_V1_MODEL_AddressItemIdWithoutName_H_ +#define HUAWEICLOUD_SDK_CFW_V1_MODEL_AddressItemIdWithoutName_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 AddressItemIdWithoutName + : public ModelBase +{ +public: + AddressItemIdWithoutName(); + virtual ~AddressItemIdWithoutName(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// AddressItemIdWithoutName 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_AddressItemIdWithoutName_H_ diff --git a/cfw/include/huaweicloud/cfw/v1/model/AddressItemListResponseDTO_data.h b/cfw/include/huaweicloud/cfw/v1/model/AddressItemListResponseDTO_data.h index d25a42aa6..ea13ca6af 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/AddressItemListResponseDTO_data.h +++ b/cfw/include/huaweicloud/cfw/v1/model/AddressItemListResponseDTO_data.h @@ -59,7 +59,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddressItemListResponseDTO_data void setLimit(int32_t value); /// - /// 总数 + /// 地址组成员总数 /// int32_t getTotal() const; @@ -77,7 +77,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddressItemListResponseDTO_data void setSetId(const std::string& value); /// - /// 成员信息 + /// 地址组成员记录列表 /// std::vector& getRecords(); diff --git a/cfw/include/huaweicloud/cfw/v1/model/AddressItemListResponseDTO_data_records.h b/cfw/include/huaweicloud/cfw/v1/model/AddressItemListResponseDTO_data_records.h index 58430c9a2..45ecae653 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/AddressItemListResponseDTO_data_records.h +++ b/cfw/include/huaweicloud/cfw/v1/model/AddressItemListResponseDTO_data_records.h @@ -75,7 +75,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddressItemListResponseDTO_data_records void setAddressType(int32_t value); /// - /// 地址组 + /// 地址信息 /// std::string getAddress() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/AddressItems.h b/cfw/include/huaweicloud/cfw/v1/model/AddressItems.h index 72f89355e..64a34c996 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/AddressItems.h +++ b/cfw/include/huaweicloud/cfw/v1/model/AddressItems.h @@ -10,7 +10,7 @@ #include #include -#include +#include #include namespace HuaweiCloud { @@ -44,10 +44,10 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddressItems /// 地址组成员id列表 /// - std::vector& getItems(); + std::vector& getItems(); bool itemsIsSet() const; void unsetitems(); - void setItems(const std::vector& value); + void setItems(const std::vector& value); /// /// 覆盖ip列表 @@ -60,7 +60,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddressItems protected: - std::vector items_; + std::vector items_; bool itemsIsSet_; std::vector coveredIp_; bool coveredIpIsSet_; diff --git a/cfw/include/huaweicloud/cfw/v1/model/AddressSetDetailResponseDTO_data.h b/cfw/include/huaweicloud/cfw/v1/model/AddressSetDetailResponseDTO_data.h index 7644b0ee8..44315b0c6 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/AddressSetDetailResponseDTO_data.h +++ b/cfw/include/huaweicloud/cfw/v1/model/AddressSetDetailResponseDTO_data.h @@ -75,7 +75,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddressSetDetailResponseDTO_data void setAddressSetType(int32_t value); /// - /// 地址类型0 ipv4,1 ipv6 + /// 地址类型0 ipv4,1 ipv6 /// int32_t getAddressType() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/IdObject.h b/cfw/include/huaweicloud/cfw/v1/model/AddressSetId.h similarity index 77% rename from cfw/include/huaweicloud/cfw/v1/model/IdObject.h rename to cfw/include/huaweicloud/cfw/v1/model/AddressSetId.h index 6b632e994..af11bb4c9 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/IdObject.h +++ b/cfw/include/huaweicloud/cfw/v1/model/AddressSetId.h @@ -1,6 +1,6 @@ -#ifndef HUAWEICLOUD_SDK_CFW_V1_MODEL_IdObject_H_ -#define HUAWEICLOUD_SDK_CFW_V1_MODEL_IdObject_H_ +#ifndef HUAWEICLOUD_SDK_CFW_V1_MODEL_AddressSetId_H_ +#define HUAWEICLOUD_SDK_CFW_V1_MODEL_AddressSetId_H_ #include @@ -22,12 +22,12 @@ using namespace HuaweiCloud::Sdk::Core::Http; /// /// /// -class HUAWEICLOUD_CFW_V1_EXPORT IdObject +class HUAWEICLOUD_CFW_V1_EXPORT AddressSetId : public ModelBase { public: - IdObject(); - virtual ~IdObject(); + AddressSetId(); + virtual ~AddressSetId(); ///////////////////////////////////////////// /// ModelBase overrides @@ -36,10 +36,10 @@ class HUAWEICLOUD_CFW_V1_EXPORT IdObject web::json::value toJson() const override; bool fromJson(const web::json::value& json) override; ///////////////////////////////////////////// - /// IdObject members + /// AddressSetId members /// - /// id值 + /// 地址组id /// std::string getId() const; @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT IdObject void setId(const std::string& value); /// - /// 名称 + /// 地址组名称 /// std::string getName() const; @@ -72,4 +72,4 @@ class HUAWEICLOUD_CFW_V1_EXPORT IdObject } } -#endif // HUAWEICLOUD_SDK_CFW_V1_MODEL_IdObject_H_ +#endif // HUAWEICLOUD_SDK_CFW_V1_MODEL_AddressSetId_H_ diff --git a/cfw/include/huaweicloud/cfw/v1/model/AddressSetListResponseDTO_data.h b/cfw/include/huaweicloud/cfw/v1/model/AddressSetListResponseDTO_data.h index 4f8b191c1..950912db0 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/AddressSetListResponseDTO_data.h +++ b/cfw/include/huaweicloud/cfw/v1/model/AddressSetListResponseDTO_data.h @@ -58,7 +58,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddressSetListResponseDTO_data void setLimit(int32_t value); /// - /// 总数 + /// 地址组总数 /// int32_t getTotal() const; 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 ae1e9e327..05242892e 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/AddressSetListResponseDTO_data_records.h +++ b/cfw/include/huaweicloud/cfw/v1/model/AddressSetListResponseDTO_data_records.h @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddressSetListResponseDTO_data_records void setSetId(const std::string& value); /// - /// 引用次数 + /// 地址组被规则引用次数 /// int32_t getRefCount() const; @@ -66,16 +66,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddressSetListResponseDTO_data_records void setDescription(const std::string& value); /// - /// 地址组名称 - /// - - std::string getName() const; - bool nameIsSet() const; - void unsetname(); - void setName(const std::string& value); - - /// - /// 地址类型0 ipv4,1 ipv6 + /// 地址类型0 ipv4,1 ipv6 /// int32_t getAddressType() const; @@ -84,7 +75,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddressSetListResponseDTO_data_records void setAddressType(int32_t value); /// - /// 互联网边界防护对象id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),type为0的为互联网边界防护对象id。 + /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)获得,通过返回值中的data.records.protect_objects.object_id(.表示各对象之间层级的区分)获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id,type可通过data.records.protect_objects.type(.表示各对象之间层级的区分)获得 /// std::string getObjectId() const; @@ -101,6 +92,15 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddressSetListResponseDTO_data_records void unsetaddressSetType(); void setAddressSetType(int32_t value); + /// + /// 地址组名称 + /// + + std::string getName() const; + bool nameIsSet() const; + void unsetname(); + void setName(const std::string& value); + protected: std::string setId_; @@ -109,14 +109,14 @@ class HUAWEICLOUD_CFW_V1_EXPORT AddressSetListResponseDTO_data_records bool refCountIsSet_; std::string description_; bool descriptionIsSet_; - std::string name_; - bool nameIsSet_; int32_t addressType_; bool addressTypeIsSet_; std::string objectId_; bool objectIdIsSet_; int32_t addressSetType_; bool addressSetTypeIsSet_; + std::string name_; + bool nameIsSet_; }; diff --git a/cfw/include/huaweicloud/cfw/v1/model/BatchDeleteAclRulesRequest.h b/cfw/include/huaweicloud/cfw/v1/model/BatchDeleteAclRulesRequest.h index 167615360..cce1e92bf 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/BatchDeleteAclRulesRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/BatchDeleteAclRulesRequest.h @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT BatchDeleteAclRulesRequest /// BatchDeleteAclRulesRequest members /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT BatchDeleteAclRulesRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// 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 266b5b0e2..4b510c731 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/BatchDeleteAddressItemsRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/BatchDeleteAddressItemsRequest.h @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT BatchDeleteAddressItemsRequest /// BatchDeleteAddressItemsRequest members /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT BatchDeleteAddressItemsRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/BatchDeleteRuleInfo.h b/cfw/include/huaweicloud/cfw/v1/model/BatchDeleteRuleInfo.h index 4362ac6f3..e994f30b5 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/BatchDeleteRuleInfo.h +++ b/cfw/include/huaweicloud/cfw/v1/model/BatchDeleteRuleInfo.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT BatchDeleteRuleInfo /// BatchDeleteRuleInfo members /// - /// acl名称 + /// 批量删除的acl的名称 /// std::string getName() const; @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT BatchDeleteRuleInfo void setName(const std::string& value); /// - /// aclId + /// 批量删除的acl的id /// std::string getId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/BatchDeleteServiceItemsRequest.h b/cfw/include/huaweicloud/cfw/v1/model/BatchDeleteServiceItemsRequest.h index de0707be6..63c1844e5 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/BatchDeleteServiceItemsRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/BatchDeleteServiceItemsRequest.h @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT BatchDeleteServiceItemsRequest /// BatchDeleteServiceItemsRequest members /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT BatchDeleteServiceItemsRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/BatchUpdateAclRuleActionsRequest.h b/cfw/include/huaweicloud/cfw/v1/model/BatchUpdateAclRuleActionsRequest.h index 21133ef1a..f5364658a 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/BatchUpdateAclRuleActionsRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/BatchUpdateAclRuleActionsRequest.h @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT BatchUpdateAclRuleActionsRequest /// BatchUpdateAclRuleActionsRequest members /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; @@ -48,6 +48,15 @@ class HUAWEICLOUD_CFW_V1_EXPORT BatchUpdateAclRuleActionsRequest void unsetenterpriseProjectId(); void setEnterpriseProjectId(const std::string& value); + /// + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 + /// + + std::string getFwInstanceId() const; + bool fwInstanceIdIsSet() const; + void unsetfwInstanceId(); + void setFwInstanceId(const std::string& value); + /// /// /// @@ -61,6 +70,8 @@ class HUAWEICLOUD_CFW_V1_EXPORT BatchUpdateAclRuleActionsRequest protected: std::string enterpriseProjectId_; bool enterpriseProjectIdIsSet_; + std::string fwInstanceId_; + bool fwInstanceIdIsSet_; UpdateSecurityPolciesActionDto body_; bool bodyIsSet_; diff --git a/cfw/include/huaweicloud/cfw/v1/model/BatchUpdateAclRuleActionsResponse.h b/cfw/include/huaweicloud/cfw/v1/model/BatchUpdateAclRuleActionsResponse.h index 2cdd36020..2d90c7ae9 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/BatchUpdateAclRuleActionsResponse.h +++ b/cfw/include/huaweicloud/cfw/v1/model/BatchUpdateAclRuleActionsResponse.h @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT BatchUpdateAclRuleActionsResponse /// BatchUpdateAclRuleActionsResponse members /// - /// 批量更新acl规则id + /// 批量更新acl规则id,为请求体中传入的规则id /// std::vector& getData(); diff --git a/cfw/include/huaweicloud/cfw/v1/model/BlackWhiteListId.h b/cfw/include/huaweicloud/cfw/v1/model/BlackWhiteListId.h new file mode 100644 index 000000000..1db6812be --- /dev/null +++ b/cfw/include/huaweicloud/cfw/v1/model/BlackWhiteListId.h @@ -0,0 +1,75 @@ + +#ifndef HUAWEICLOUD_SDK_CFW_V1_MODEL_BlackWhiteListId_H_ +#define HUAWEICLOUD_SDK_CFW_V1_MODEL_BlackWhiteListId_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 BlackWhiteListId + : public ModelBase +{ +public: + BlackWhiteListId(); + virtual ~BlackWhiteListId(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// BlackWhiteListId 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_CFW_V1_MODEL_BlackWhiteListId_H_ diff --git a/cfw/include/huaweicloud/cfw/v1/model/BlackWhiteListResponse_data.h b/cfw/include/huaweicloud/cfw/v1/model/BlackWhiteListResponse_data.h index ac9522e96..cd0c8c347 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/BlackWhiteListResponse_data.h +++ b/cfw/include/huaweicloud/cfw/v1/model/BlackWhiteListResponse_data.h @@ -21,7 +21,7 @@ namespace Model { using namespace HuaweiCloud::Sdk::Core::Utils; using namespace HuaweiCloud::Sdk::Core::Http; /// -/// 查询黑白名单返回值 +/// 查询黑白名单返回值数据 /// class HUAWEICLOUD_CFW_V1_EXPORT BlackWhiteListResponse_data : public ModelBase @@ -58,7 +58,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT BlackWhiteListResponse_data void setLimit(int32_t value); /// - /// 查询的总条数 + /// 查询黑白名单总条数 /// int32_t getTotal() const; @@ -67,7 +67,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT BlackWhiteListResponse_data void setTotal(int32_t value); /// - /// 黑白名单记录 + /// 黑白名单列表 /// std::vector& getRecords(); 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 6c2c280f4..6fafbb3fc 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 + /// 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 index 9857edd7f..db1883870 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/CancelCaptureTaskDto.h +++ b/cfw/include/huaweicloud/cfw/v1/model/CancelCaptureTaskDto.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT CancelCaptureTaskDto /// CancelCaptureTaskDto members /// - /// 抓包任务id + /// 抓包任务id,可通过[查询抓包任务接口](ListCaptureTask.xml)查询获得,通过返回值中的data.records.task_id(.表示各对象之间层级的区分)获得。 /// std::string getTaskId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/CancelCaptureTaskRequest.h b/cfw/include/huaweicloud/cfw/v1/model/CancelCaptureTaskRequest.h index df37c2dff..8486de996 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/CancelCaptureTaskRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/CancelCaptureTaskRequest.h @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT CancelCaptureTaskRequest /// CancelCaptureTaskRequest members /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// std::string getFwInstanceId() const; @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT CancelCaptureTaskRequest void setFwInstanceId(const std::string& value); /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/CancelCaptureTaskResponse.h b/cfw/include/huaweicloud/cfw/v1/model/CancelCaptureTaskResponse.h index 4ae497f2c..d3076e614 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/CancelCaptureTaskResponse.h +++ b/cfw/include/huaweicloud/cfw/v1/model/CancelCaptureTaskResponse.h @@ -9,7 +9,7 @@ #include #include -#include +#include namespace HuaweiCloud { namespace Sdk { @@ -42,14 +42,14 @@ class HUAWEICLOUD_CFW_V1_EXPORT CancelCaptureTaskResponse /// /// - IdObject getData() const; + CaptureTaskId getData() const; bool dataIsSet() const; void unsetdata(); - void setData(const IdObject& value); + void setData(const CaptureTaskId& value); protected: - IdObject data_; + CaptureTaskId data_; bool dataIsSet_; #ifdef RTTR_FLAG diff --git a/cfw/include/huaweicloud/cfw/v1/model/CaptureResultUrlVO.h b/cfw/include/huaweicloud/cfw/v1/model/CaptureResultUrlVO.h index 51aba84c8..4910fb1f6 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/CaptureResultUrlVO.h +++ b/cfw/include/huaweicloud/cfw/v1/model/CaptureResultUrlVO.h @@ -42,7 +42,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT CaptureResultUrlVO /// CaptureResultUrlVO members /// - /// 下载链接提取码 + /// 下载链接提取码,用于打开下载链接时使用。 /// std::string getCaptcha() const; @@ -60,7 +60,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT CaptureResultUrlVO void setExpires(int64_t value); /// - /// 抓包文件列表 + /// 抓包文件列表,当环境不支持obs文件夹分享时使用。当此字段存在时,无captch,expires,url返回值。 /// std::vector& getFileList(); diff --git a/cfw/include/huaweicloud/cfw/v1/model/CaptureRuleAddressDto.h b/cfw/include/huaweicloud/cfw/v1/model/CaptureRuleAddressDto.h index 736980321..40c374735 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/CaptureRuleAddressDto.h +++ b/cfw/include/huaweicloud/cfw/v1/model/CaptureRuleAddressDto.h @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT CaptureRuleAddressDto void setAddress(const std::string& value); /// - /// 目的地址类型0 ipv4,1 ipv6 + /// 目的地址类型0 ipv4,1 ipv6 /// int32_t getAddressType() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/CaptureTaskDto.h b/cfw/include/huaweicloud/cfw/v1/model/CaptureTaskDto.h index 82ddd6c53..58389fb26 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/CaptureTaskDto.h +++ b/cfw/include/huaweicloud/cfw/v1/model/CaptureTaskDto.h @@ -50,7 +50,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT CaptureTaskDto void setDestination(const CaptureRuleAddressDto& value); /// - /// 抓包时长 + /// 抓包时长,以分钟为单位 /// int32_t getDuration() const; @@ -59,7 +59,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT CaptureTaskDto void setDuration(int32_t value); /// - /// 最大抓包数 + /// 最大抓包数,以个为单位 /// int32_t getMaxPackets() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/CaptureTaskId.h b/cfw/include/huaweicloud/cfw/v1/model/CaptureTaskId.h new file mode 100644 index 000000000..bfa50f2d3 --- /dev/null +++ b/cfw/include/huaweicloud/cfw/v1/model/CaptureTaskId.h @@ -0,0 +1,75 @@ + +#ifndef HUAWEICLOUD_SDK_CFW_V1_MODEL_CaptureTaskId_H_ +#define HUAWEICLOUD_SDK_CFW_V1_MODEL_CaptureTaskId_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 CaptureTaskId + : public ModelBase +{ +public: + CaptureTaskId(); + virtual ~CaptureTaskId(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CaptureTaskId 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_CFW_V1_MODEL_CaptureTaskId_H_ diff --git a/cfw/include/huaweicloud/cfw/v1/model/CaptureTaskVO.h b/cfw/include/huaweicloud/cfw/v1/model/CaptureTaskVO.h index f0dd5b8fc..c5170ffc0 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/CaptureTaskVO.h +++ b/cfw/include/huaweicloud/cfw/v1/model/CaptureTaskVO.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT CaptureTaskVO /// CaptureTaskVO members /// - /// 抓包大小 + /// 抓包大小,如500kb,500mb /// std::string getCaptureSize() const; @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT CaptureTaskVO void setCaptureSize(const std::string& value); /// - /// 抓包创建时间 + /// 抓包创建时间,如2024/08/31 10:17:30 /// std::string getCreatedDate() const; @@ -66,7 +66,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT CaptureTaskVO void setDestAddress(const std::string& value); /// - /// 目的地址类型0 ipv4,1 ipv6 + /// 目的地址类型0 ipv4,1 ipv6 /// int32_t getDestAddressType() const; @@ -84,7 +84,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT CaptureTaskVO void setDestPort(const std::string& value); /// - /// 抓包时长 + /// 抓包时长,以分钟为单位 /// int32_t getDuration() const; @@ -102,7 +102,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT CaptureTaskVO void setIsDeleted(int32_t value); /// - /// 最大抓包数 + /// 最大抓包数,以个为单位 /// int32_t getMaxPackets() const; @@ -111,7 +111,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT CaptureTaskVO void setMaxPackets(int32_t value); /// - /// 修改日期 + /// 修改日期,如2024/08/31 10:17:30 /// std::string getModifiedDate() const; @@ -156,7 +156,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT CaptureTaskVO void setSourceAddress(const std::string& value); /// - /// 源地址类型0 ipv4,1 ipv6 + /// 源地址类型0 ipv4,1 ipv6 /// int32_t getSourceAddressType() const; @@ -174,7 +174,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT CaptureTaskVO void setSourcePort(const std::string& value); /// - /// 抓包任务状态 + /// 抓包任务状态,如成功(1),运行中(2),已截止(4),截止中(5) /// int32_t getStatus() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ChangeEastWestFirewallStatusRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ChangeEastWestFirewallStatusRequest.h index e55f2236e..1bff796e2 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ChangeEastWestFirewallStatusRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ChangeEastWestFirewallStatusRequest.h @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ChangeEastWestFirewallStatusRequest /// ChangeEastWestFirewallStatusRequest members /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ChangeEastWestFirewallStatusRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ChangeEastWestFirewallStatusResponse.h b/cfw/include/huaweicloud/cfw/v1/model/ChangeEastWestFirewallStatusResponse.h index db6007486..e5980e103 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ChangeEastWestFirewallStatusResponse.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ChangeEastWestFirewallStatusResponse.h @@ -9,8 +9,7 @@ #include #include -#include -#include +#include namespace HuaweiCloud { namespace Sdk { @@ -43,26 +42,15 @@ class HUAWEICLOUD_CFW_V1_EXPORT ChangeEastWestFirewallStatusResponse /// /// - SuccessRsp_data getData() const; + ChangeEastWestFirewallStatusResponseData getData() const; bool dataIsSet() const; void unsetdata(); - void setData(const SuccessRsp_data& value); - - /// - /// trace id - /// - - std::string getTraceId() const; - bool traceIdIsSet() const; - void unsettraceId(); - void setTraceId(const std::string& value); + void setData(const ChangeEastWestFirewallStatusResponseData& value); protected: - SuccessRsp_data data_; + ChangeEastWestFirewallStatusResponseData data_; bool dataIsSet_; - std::string traceId_; - bool traceIdIsSet_; #ifdef RTTR_FLAG RTTR_ENABLE() diff --git a/cfw/include/huaweicloud/cfw/v1/model/ChangeEastWestFirewallStatusResponseData.h b/cfw/include/huaweicloud/cfw/v1/model/ChangeEastWestFirewallStatusResponseData.h new file mode 100644 index 000000000..6b7c3b47d --- /dev/null +++ b/cfw/include/huaweicloud/cfw/v1/model/ChangeEastWestFirewallStatusResponseData.h @@ -0,0 +1,64 @@ + +#ifndef HUAWEICLOUD_SDK_CFW_V1_MODEL_ChangeEastWestFirewallStatusResponseData_H_ +#define HUAWEICLOUD_SDK_CFW_V1_MODEL_ChangeEastWestFirewallStatusResponseData_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 ChangeEastWestFirewallStatusResponseData + : public ModelBase +{ +public: + ChangeEastWestFirewallStatusResponseData(); + virtual ~ChangeEastWestFirewallStatusResponseData(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ChangeEastWestFirewallStatusResponseData members + + /// + /// 东西向防护对象ID,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)获得,通过返回值中的data.records.protect_objects.object_id(.表示各对象之间层级的区分)获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。此处仅取type为1的防护对象id,type可通过data.records.protect_objects.type(.表示各对象之间层级的区分)获得。 + /// + + 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_ChangeEastWestFirewallStatusResponseData_H_ diff --git a/cfw/include/huaweicloud/cfw/v1/model/ChangeEipStatusRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ChangeEipStatusRequest.h index 8fe73a393..8265d52c3 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ChangeEipStatusRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ChangeEipStatusRequest.h @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ChangeEipStatusRequest /// ChangeEipStatusRequest members /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ChangeEipStatusRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// 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 fe2abb79c..911301b7c 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ChangeIpsProtectModeRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ChangeIpsProtectModeRequest.h @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ChangeIpsProtectModeRequest /// ChangeIpsProtectModeRequest members /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ChangeIpsProtectModeRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ChangeIpsSwitchStatusRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ChangeIpsSwitchStatusRequest.h index 00f90020a..61d1ddb16 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ChangeIpsSwitchStatusRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ChangeIpsSwitchStatusRequest.h @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ChangeIpsSwitchStatusRequest /// ChangeIpsSwitchStatusRequest members /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ChangeIpsSwitchStatusRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// std::string getFwInstanceId() const; @@ -57,15 +57,6 @@ class HUAWEICLOUD_CFW_V1_EXPORT ChangeIpsSwitchStatusRequest void unsetfwInstanceId(); void setFwInstanceId(const std::string& value); - /// - /// 语言头部,默认为zh-cn,如需使用英文,请选择en-us - /// - - std::string getXLanguage() const; - bool xLanguageIsSet() const; - void unsetxLanguage(); - void setXLanguage(const std::string& value); - /// /// /// @@ -81,8 +72,6 @@ class HUAWEICLOUD_CFW_V1_EXPORT ChangeIpsSwitchStatusRequest bool enterpriseProjectIdIsSet_; std::string fwInstanceId_; bool fwInstanceIdIsSet_; - std::string xLanguage_; - bool xLanguageIsSet_; IpsSwitchDTO body_; bool bodyIsSet_; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ChangeProtectStatusRequestBody.h b/cfw/include/huaweicloud/cfw/v1/model/ChangeProtectStatusRequestBody.h index 17cb62457..536070df1 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,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。 + /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)获得,通过返回值中的data.records.protect_objects.object_id(.表示各对象之间层级的区分)获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。此处仅取type为1的防护对象id,可通过data.records.protect_objects.type(.表示各对象之间层级的区分)获得。 /// std::string getObjectId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ClearAccessLogRuleHitCountsDto.h b/cfw/include/huaweicloud/cfw/v1/model/ClearAccessLogRuleHitCountsDto.h index f3b29c8cd..8b0c65c76 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ClearAccessLogRuleHitCountsDto.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ClearAccessLogRuleHitCountsDto.h @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ClearAccessLogRuleHitCountsDto /// ClearAccessLogRuleHitCountsDto members /// - /// 规则id列表 + /// 删除规则击中次数请求的规则列表,规则id可通过[查询防护规则接口](ListAclRules.xml)查询获得,通过返回值中的data.records.rule_id(.表示各对象之间层级的区分)获得。 /// std::vector& getRuleIds(); diff --git a/cfw/include/huaweicloud/cfw/v1/model/CommonResponseDTO_data.h b/cfw/include/huaweicloud/cfw/v1/model/CommonResponseDTO_data.h index f26f5bf07..2b4b4c130 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/CommonResponseDTO_data.h +++ b/cfw/include/huaweicloud/cfw/v1/model/CommonResponseDTO_data.h @@ -20,7 +20,7 @@ namespace Model { using namespace HuaweiCloud::Sdk::Core::Utils; using namespace HuaweiCloud::Sdk::Core::Http; /// -/// object +/// 修改ips防护模式返回值数据 /// class HUAWEICLOUD_CFW_V1_EXPORT CommonResponseDTO_data : public ModelBase diff --git a/cfw/include/huaweicloud/cfw/v1/model/CreateCaptureTaskRequest.h b/cfw/include/huaweicloud/cfw/v1/model/CreateCaptureTaskRequest.h index 1b4d12ac6..bc58bd801 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/CreateCaptureTaskRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/CreateCaptureTaskRequest.h @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT CreateCaptureTaskRequest /// CreateCaptureTaskRequest members /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT CreateCaptureTaskRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/CreateCaptureTaskResponse.h b/cfw/include/huaweicloud/cfw/v1/model/CreateCaptureTaskResponse.h index 450c8f6c8..b46809b7f 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/CreateCaptureTaskResponse.h +++ b/cfw/include/huaweicloud/cfw/v1/model/CreateCaptureTaskResponse.h @@ -9,7 +9,7 @@ #include #include -#include +#include namespace HuaweiCloud { namespace Sdk { @@ -42,14 +42,14 @@ class HUAWEICLOUD_CFW_V1_EXPORT CreateCaptureTaskResponse /// /// - IdObject getData() const; + CaptureTaskId getData() const; bool dataIsSet() const; void unsetdata(); - void setData(const IdObject& value); + void setData(const CaptureTaskId& value); protected: - IdObject data_; + CaptureTaskId data_; bool dataIsSet_; #ifdef RTTR_FLAG diff --git a/cfw/include/huaweicloud/cfw/v1/model/CreateEWFirewallInspectVpcResp.h b/cfw/include/huaweicloud/cfw/v1/model/CreateEWFirewallInspectVpcResp.h index 6581f6ad5..609e99af6 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/CreateEWFirewallInspectVpcResp.h +++ b/cfw/include/huaweicloud/cfw/v1/model/CreateEWFirewallInspectVpcResp.h @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT CreateEWFirewallInspectVpcResp /// CreateEWFirewallInspectVpcResp members /// - /// vpc id + /// 引流VPC的ID /// std::string getVpcId() const; @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT CreateEWFirewallInspectVpcResp void setVpcId(const std::string& value); /// - /// 子网列表 + /// 创建的引流VPC的子网ID列表 /// std::vector& getSubnetIds(); diff --git a/cfw/include/huaweicloud/cfw/v1/model/CreateEWFirewallResp.h b/cfw/include/huaweicloud/cfw/v1/model/CreateEWFirewallResp.h index 6f8df0631..95fb93a7b 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/CreateEWFirewallResp.h +++ b/cfw/include/huaweicloud/cfw/v1/model/CreateEWFirewallResp.h @@ -41,7 +41,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT CreateEWFirewallResp /// CreateEWFirewallResp members /// - /// 东西向防护id + /// 东西向防护id,对应object_id字段 /// std::string getId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/CreateEastWestFirewallRequest.h b/cfw/include/huaweicloud/cfw/v1/model/CreateEastWestFirewallRequest.h index d16b9dc9f..a62e2179a 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/CreateEastWestFirewallRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/CreateEastWestFirewallRequest.h @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT CreateEastWestFirewallRequest /// CreateEastWestFirewallRequest members /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT CreateEastWestFirewallRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/CreateEastWestFirewallRequestBody.h b/cfw/include/huaweicloud/cfw/v1/model/CreateEastWestFirewallRequestBody.h index 5218d9a1c..f403309cc 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/CreateEastWestFirewallRequestBody.h +++ b/cfw/include/huaweicloud/cfw/v1/model/CreateEastWestFirewallRequestBody.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT CreateEastWestFirewallRequestBody /// CreateEastWestFirewallRequestBody members /// - /// 出方向关联ER实例id + /// 出方向关联ER ID,可通过ER服务查询企业路由器列表接口获得,返回值中instances.id即为erid(.表示各对象之间层级的区分) /// std::string getErId() const; @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT CreateEastWestFirewallRequestBody void setErId(const std::string& value); /// - /// inspection cidr + /// 创建引流VPC时使用的网段 /// std::string getInspectionCidr() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/CreateFirewallReq.h b/cfw/include/huaweicloud/cfw/v1/model/CreateFirewallReq.h index 62845cfc0..fd9e98a79 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/CreateFirewallReq.h +++ b/cfw/include/huaweicloud/cfw/v1/model/CreateFirewallReq.h @@ -52,7 +52,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT CreateFirewallReq void setName(const std::string& value); /// - /// 企业项目ID,租户未开启企业项目时传0 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; @@ -61,7 +61,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT CreateFirewallReq void setEnterpriseProjectId(const std::string& value); /// - /// 资源标签 + /// 服务资源标签列表,防火墙资源添加标签后,可根据键、值组合查询资源,同时可根据键、值组合进行话单合并统计。 /// std::vector& getTags(); diff --git a/cfw/include/huaweicloud/cfw/v1/model/CreateFirewallReq_charge_info.h b/cfw/include/huaweicloud/cfw/v1/model/CreateFirewallReq_charge_info.h index 1f98b9e66..5df096c16 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/CreateFirewallReq_charge_info.h +++ b/cfw/include/huaweicloud/cfw/v1/model/CreateFirewallReq_charge_info.h @@ -57,7 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT CreateFirewallReq_charge_info void setPeriodType(const std::string& value); /// - /// “charge_mode”为“prePaid”时生效,且为必选值,指定订购的时间。 取值范围: 当“period_type”为“month”时,取值为1~9。 当“period_type”为“year”时,取值为1~3。 + /// “charge_mode”为“prePaid”时生效,且为必选值,指定订购的时间。 取值范围: - 当“period_type”为“month”时,取值为1~9。 - 当“period_type”为“year”时,取值为1~3。 /// int32_t getPeriodNum() const; @@ -75,7 +75,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT CreateFirewallReq_charge_info void setIsAutoRenew(bool value); /// - /// 创建包周期时可指定,表示是否自动从客户的账户中支付,此字段不影响自动续订的支付方式。 true,为自动支付。(会自动选择折扣和优惠券进行优惠,然后自动从客户华为云账户中支付),自动支付失败后会生成订单成功(该订单应付金额是优惠后金额)、但订单状态为“待支付”,等待客户手动支付(手动支付时,客户还可以修改系统自动选择的折扣和优惠券) false,为手动支付,默认该方式。(需要客户手动去支付,客户可以选择折扣和优惠券) + /// 创建包周期时可指定,表示是否自动从客户的账户中支付,此字段不影响自动续订的支付方式。 - true,为自动支付。(会自动选择折扣和优惠券进行优惠,然后自动从客户华为云账户中支付),自动支付失败会生成、但订单状态为“待支付”,等待客户手动支付(手动支付时,可以修改系统自动选择的折扣和优惠券) - false,为手动支付,默认该方式。(需要客户手动去支付,客户可以选择折扣和优惠券) /// bool isIsAutoPay() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/CreateFirewallReq_flavor.h b/cfw/include/huaweicloud/cfw/v1/model/CreateFirewallReq_flavor.h index ce1b95be9..7de5fa79d 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/CreateFirewallReq_flavor.h +++ b/cfw/include/huaweicloud/cfw/v1/model/CreateFirewallReq_flavor.h @@ -20,7 +20,7 @@ namespace Model { using namespace HuaweiCloud::Sdk::Core::Utils; using namespace HuaweiCloud::Sdk::Core::Http; /// -/// 规格信息 +/// 防火墙规格信息 /// class HUAWEICLOUD_CFW_V1_EXPORT CreateFirewallReq_flavor : public ModelBase @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT CreateFirewallReq_flavor /// CreateFirewallReq_flavor members /// - /// 防火墙版本 “charge_mode”为“prePaid”时,仅支持专业版。 “charge_mode”为“postPaid”时,支持标准版、专业版。 Standard - 标准版 Professional - 专业版 + /// 防火墙版本 “charge_mode”为“prePaid”时,支持标准版、专业版。 “charge_mode”为“postPaid”时,仅支持专业版。 Standard - 标准版 Professional - 专业版 /// std::string getVersion() const; @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT CreateFirewallReq_flavor void setVersion(const std::string& value); /// - /// 扩展EIP数量,仅包周期场景下生效 + /// 扩展EIP数量,仅包周期场景下生效,当用户需要在增加EIP使用时需要使用此参数。 /// int32_t getExtendEipCount() const; @@ -57,7 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT CreateFirewallReq_flavor void setExtendEipCount(int32_t value); /// - /// 扩展带宽,步长为5,仅包周期场景下生效 + /// 扩展带宽,步长为5,仅包周期场景下生效,当用户需要在增加带宽使用时需要使用此参数。 /// int32_t getExtendBandwidth() const; @@ -66,7 +66,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT CreateFirewallReq_flavor void setExtendBandwidth(int32_t value); /// - /// 扩展VPC数量,仅包周期场景下生效 + /// 扩展VPC数量,仅包周期场景下生效,当用户需要增加VPC使用时需要使用此参数。 /// int32_t getExtendVpcCount() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/CreateFirewallReq_tags.h b/cfw/include/huaweicloud/cfw/v1/model/CreateFirewallReq_tags.h index e915ec9d6..49527b311 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/CreateFirewallReq_tags.h +++ b/cfw/include/huaweicloud/cfw/v1/model/CreateFirewallReq_tags.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT CreateFirewallReq_tags /// CreateFirewallReq_tags members /// - /// 标签KEY + /// 资源标签键 /// std::string getKey() const; @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT CreateFirewallReq_tags void setKey(const std::string& value); /// - /// 标签VALUE + /// 资源标签值 /// std::string getValue() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/CreateFirewallResponse.h b/cfw/include/huaweicloud/cfw/v1/model/CreateFirewallResponse.h index 3e37f63a5..24a5a2959 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/CreateFirewallResponse.h +++ b/cfw/include/huaweicloud/cfw/v1/model/CreateFirewallResponse.h @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT CreateFirewallResponse /// CreateFirewallResponse members /// - /// 实例创建的任务id。 仅创建按需实例时会返回该参数。 + /// 实例创建的任务id。仅创建按需实例时会返回该参数。 /// std::string getJobId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/CreateTag.h b/cfw/include/huaweicloud/cfw/v1/model/CreateTag.h index fc439e52e..d661a7ce0 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/CreateTag.h +++ b/cfw/include/huaweicloud/cfw/v1/model/CreateTag.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT CreateTag /// CreateTag members /// - /// 键 + /// 标签键 /// std::string getKey() const; @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT CreateTag void setKey(const std::string& value); /// - /// 值 + /// 标签值 /// std::string getValue() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/CreateTagRequest.h b/cfw/include/huaweicloud/cfw/v1/model/CreateTagRequest.h index f3ddaf624..98484875c 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/CreateTagRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/CreateTagRequest.h @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT CreateTagRequest /// CreateTagRequest members /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/CreateTagsDto.h b/cfw/include/huaweicloud/cfw/v1/model/CreateTagsDto.h index 3326d0a6a..71fa11040 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/CreateTagsDto.h +++ b/cfw/include/huaweicloud/cfw/v1/model/CreateTagsDto.h @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT CreateTagsDto /// CreateTagsDto members /// - /// 标签列表 + /// 创建防火墙标签列表 /// std::vector& getTags(); diff --git a/cfw/include/huaweicloud/cfw/v1/model/DeleteAclRuleHitCountRequest.h b/cfw/include/huaweicloud/cfw/v1/model/DeleteAclRuleHitCountRequest.h index de6593818..9154cb1e2 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/DeleteAclRuleHitCountRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/DeleteAclRuleHitCountRequest.h @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteAclRuleHitCountRequest /// DeleteAclRuleHitCountRequest members /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteAclRuleHitCountRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// 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 dfb486abd..b147b0fb7 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/DeleteAclRuleRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/DeleteAclRuleRequest.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteAclRuleRequest /// DeleteAclRuleRequest members /// - /// 规则Id + /// 规则id,可通过[查询防护规则接口](ListAclRules.xml)查询获得,通过返回值中的data.records.rule_id(.表示各对象之间层级的区分)获得。 /// std::string getAclRuleId() const; @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteAclRuleRequest void setAclRuleId(const std::string& value); /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; @@ -57,7 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteAclRuleRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// 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 7b84723d3..3837530b0 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/DeleteAddressItemRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/DeleteAddressItemRequest.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteAddressItemRequest /// DeleteAddressItemRequest members /// - /// 地址组成员id + /// 地址组成员id,可通过[查询地址组成员接口](ListAddressItems.xml)查询获得,通过返回值中的data.records.item_id(.表示各对象之间层级的区分)获得。 /// std::string getItemId() const; @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteAddressItemRequest void setItemId(const std::string& value); /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; @@ -57,7 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteAddressItemRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/DeleteAddressItemResponse.h b/cfw/include/huaweicloud/cfw/v1/model/DeleteAddressItemResponse.h index fb200da9d..9b13e71fb 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/DeleteAddressItemResponse.h +++ b/cfw/include/huaweicloud/cfw/v1/model/DeleteAddressItemResponse.h @@ -9,7 +9,7 @@ #include #include -#include +#include namespace HuaweiCloud { namespace Sdk { @@ -42,14 +42,14 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteAddressItemResponse /// /// - IdObject getData() const; + AddressItemId getData() const; bool dataIsSet() const; void unsetdata(); - void setData(const IdObject& value); + void setData(const AddressItemId& value); protected: - IdObject data_; + AddressItemId data_; bool dataIsSet_; #ifdef RTTR_FLAG diff --git a/cfw/include/huaweicloud/cfw/v1/model/DeleteAddressItemsInfoDto.h b/cfw/include/huaweicloud/cfw/v1/model/DeleteAddressItemsInfoDto.h index 4e53db707..c3a987383 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/DeleteAddressItemsInfoDto.h +++ b/cfw/include/huaweicloud/cfw/v1/model/DeleteAddressItemsInfoDto.h @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteAddressItemsInfoDto /// DeleteAddressItemsInfoDto members /// - /// 地址组id + /// 地址组id,可通过[查询地址组列表接口](ListAddressSets.xml)查询获得,通过返回值中的data.records.set_id(.表示各对象之间层级的区分)获得。 /// std::string getSetId() const; @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteAddressItemsInfoDto void setSetId(const std::string& value); /// - /// 地址组成员id列表 + /// 地址组成员id列表,地址组成员id可通过[查询地址组成员接口](ListAddressItems.xml)查询获得,通过返回值中的data.records.item_id(.表示各对象之间层级的区分)获得。 /// std::vector& getAddressItemIds(); diff --git a/cfw/include/huaweicloud/cfw/v1/model/DeleteAddressSetRequest.h b/cfw/include/huaweicloud/cfw/v1/model/DeleteAddressSetRequest.h index 444a5a70f..2f21b759e 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/DeleteAddressSetRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/DeleteAddressSetRequest.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteAddressSetRequest /// DeleteAddressSetRequest members /// - /// 地址组id + /// 地址组id,可通过[查询地址组列表接口](ListAddressSets.xml)查询获得,通过返回值中的data.records.set_id(.表示各对象之间层级的区分)获得。 /// std::string getSetId() const; @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteAddressSetRequest void setSetId(const std::string& value); /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; @@ -57,7 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteAddressSetRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/DeleteAddressSetResponse.h b/cfw/include/huaweicloud/cfw/v1/model/DeleteAddressSetResponse.h index 25dd9b8ff..f1552da46 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/DeleteAddressSetResponse.h +++ b/cfw/include/huaweicloud/cfw/v1/model/DeleteAddressSetResponse.h @@ -9,7 +9,7 @@ #include #include -#include +#include namespace HuaweiCloud { namespace Sdk { @@ -42,14 +42,14 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteAddressSetResponse /// /// - IdObject getData() const; + AddressSetId getData() const; bool dataIsSet() const; void unsetdata(); - void setData(const IdObject& value); + void setData(const AddressSetId& value); protected: - IdObject data_; + AddressSetId data_; bool dataIsSet_; #ifdef RTTR_FLAG diff --git a/cfw/include/huaweicloud/cfw/v1/model/DeleteBlackWhiteListRequest.h b/cfw/include/huaweicloud/cfw/v1/model/DeleteBlackWhiteListRequest.h index c06a63150..ef173f891 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/DeleteBlackWhiteListRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/DeleteBlackWhiteListRequest.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteBlackWhiteListRequest /// DeleteBlackWhiteListRequest members /// - /// 黑白名单id + /// 黑白名单列表id,可通过[查询黑白名单列表接口](ListBlackWhiteLists.xml)查询获得,通过返回值中的data.records.list_id(.表示各对象之间层级的区分)获得。 /// std::string getListId() const; @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteBlackWhiteListRequest void setListId(const std::string& value); /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; @@ -57,7 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteBlackWhiteListRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/DeleteBlackWhiteListResponse.h b/cfw/include/huaweicloud/cfw/v1/model/DeleteBlackWhiteListResponse.h index b73be8bba..319d73011 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/DeleteBlackWhiteListResponse.h +++ b/cfw/include/huaweicloud/cfw/v1/model/DeleteBlackWhiteListResponse.h @@ -9,7 +9,7 @@ #include #include -#include +#include namespace HuaweiCloud { namespace Sdk { @@ -42,14 +42,14 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteBlackWhiteListResponse /// /// - IdObject getData() const; + BlackWhiteListId getData() const; bool dataIsSet() const; void unsetdata(); - void setData(const IdObject& value); + void setData(const BlackWhiteListId& value); protected: - IdObject data_; + BlackWhiteListId data_; bool dataIsSet_; #ifdef RTTR_FLAG diff --git a/cfw/include/huaweicloud/cfw/v1/model/DeleteCaptureTaskDto.h b/cfw/include/huaweicloud/cfw/v1/model/DeleteCaptureTaskDto.h index 853f4bd97..a73f0adee 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/DeleteCaptureTaskDto.h +++ b/cfw/include/huaweicloud/cfw/v1/model/DeleteCaptureTaskDto.h @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteCaptureTaskDto /// DeleteCaptureTaskDto members /// - /// 抓包任务id列表 + /// 抓包任务id列表,抓包任务id可通过[查询抓包任务接口](ListCaptureTask.xml)查询获得,通过返回值中的data.records.task_id(.表示各对象之间层级的区分)获得。 /// std::vector& getTaskIds(); diff --git a/cfw/include/huaweicloud/cfw/v1/model/DeleteCaptureTaskRequest.h b/cfw/include/huaweicloud/cfw/v1/model/DeleteCaptureTaskRequest.h index 655024742..574a3ded0 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/DeleteCaptureTaskRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/DeleteCaptureTaskRequest.h @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteCaptureTaskRequest /// DeleteCaptureTaskRequest members /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// std::string getFwInstanceId() const; @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteCaptureTaskRequest void setFwInstanceId(const std::string& value); /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/DeleteCaptureTaskResponse.h b/cfw/include/huaweicloud/cfw/v1/model/DeleteCaptureTaskResponse.h index fd655eabf..b26831fcb 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/DeleteCaptureTaskResponse.h +++ b/cfw/include/huaweicloud/cfw/v1/model/DeleteCaptureTaskResponse.h @@ -9,7 +9,7 @@ #include #include -#include +#include namespace HuaweiCloud { namespace Sdk { @@ -42,14 +42,14 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteCaptureTaskResponse /// /// - IdObject getData() const; + CaptureTaskId getData() const; bool dataIsSet() const; void unsetdata(); - void setData(const IdObject& value); + void setData(const CaptureTaskId& value); protected: - IdObject data_; + CaptureTaskId data_; bool dataIsSet_; #ifdef RTTR_FLAG diff --git a/cfw/include/huaweicloud/cfw/v1/model/DeleteDomainDto.h b/cfw/include/huaweicloud/cfw/v1/model/DeleteDomainDto.h index 53178e517..31fb96e0c 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,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。 + /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)获得,通过返回值中的data.records.protect_objects.object_id(.表示各对象之间层级的区分)获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id,type可通过data.records.protect_objects.type(.表示各对象之间层级的区分)获得 /// std::string getObjectId() const; @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteDomainDto void setObjectId(const std::string& value); /// - /// 域名id列表 + /// 域名id列表,域名id可通过[获取域名组下域名列表接口](ListDomains.xml)查询获得,通过返回值中的data.records.domain_address_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 ae4c485fd..63aad4e2f 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/DeleteDomainSetRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/DeleteDomainSetRequest.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteDomainSetRequest /// DeleteDomainSetRequest members /// - /// 域名组id + /// 域名组id,可通过[查询域名组列表接口](ListDomainSets.xml)查询获得,通过返回值中的data.records.set_id(.表示各对象之间层级的区分)获得。 /// std::string getSetId() const; @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteDomainSetRequest void setSetId(const std::string& value); /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; @@ -57,7 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteDomainSetRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/DeleteDomainsRequest.h b/cfw/include/huaweicloud/cfw/v1/model/DeleteDomainsRequest.h index f4163de2c..982b78e18 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/DeleteDomainsRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/DeleteDomainsRequest.h @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteDomainsRequest /// DeleteDomainsRequest members /// - /// 域名组id + /// 域名组id,可通过[查询域名组列表接口](ListDomainSets.xml)查询获得,通过返回值中的data.records.set_id(.表示各对象之间层级的区分)获得。 /// std::string getSetId() const; @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteDomainsRequest void setSetId(const std::string& value); /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; @@ -57,6 +57,15 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteDomainsRequest void unsetenterpriseProjectId(); void setEnterpriseProjectId(const std::string& value); + /// + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 + /// + + std::string getFwInstanceId() const; + bool fwInstanceIdIsSet() const; + void unsetfwInstanceId(); + void setFwInstanceId(const std::string& value); + /// /// /// @@ -72,6 +81,8 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteDomainsRequest bool setIdIsSet_; std::string enterpriseProjectId_; bool enterpriseProjectIdIsSet_; + std::string fwInstanceId_; + bool fwInstanceIdIsSet_; DeleteDomainDto body_; bool bodyIsSet_; diff --git a/cfw/include/huaweicloud/cfw/v1/model/DeleteFirewallRequest.h b/cfw/include/huaweicloud/cfw/v1/model/DeleteFirewallRequest.h index 5aaab2679..ec1c2284c 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/DeleteFirewallRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/DeleteFirewallRequest.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteFirewallRequest /// DeleteFirewallRequest members /// - /// 资源id + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// std::string getResourceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/DeleteFirewallResponse.h b/cfw/include/huaweicloud/cfw/v1/model/DeleteFirewallResponse.h index 226010f20..8a2dbdb8a 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/DeleteFirewallResponse.h +++ b/cfw/include/huaweicloud/cfw/v1/model/DeleteFirewallResponse.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteFirewallResponse /// DeleteFirewallResponse members /// - /// 删除防火墙返回data + /// 删除防火墙时生成的任务的job_id /// std::string getData() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/DeleteRuleAclDto.h b/cfw/include/huaweicloud/cfw/v1/model/DeleteRuleAclDto.h index 473496242..fe0cb2579 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,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。 + /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)获得,通过返回值中的data.records.protect_objects.object_id(.表示各对象之间层级的区分)获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id,type可通过data.records.protect_objects.type(.表示各对象之间层级的区分)获得。 /// std::string getObjectId() const; @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteRuleAclDto void setObjectId(const std::string& value); /// - /// 规则ID列表 + /// 规则id列表,批量删除规则时传入的id列表。id值可通过[查询防护规则接口](ListAclRules.xml)查询获得,通过返回值中的data.records.rule_id(.表示各对象之间层级的区分)获得。 /// std::vector& getRuleIds(); diff --git a/cfw/include/huaweicloud/cfw/v1/model/DeleteServiceItemDto.h b/cfw/include/huaweicloud/cfw/v1/model/DeleteServiceItemDto.h index ffee06dbf..e00be59e4 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/DeleteServiceItemDto.h +++ b/cfw/include/huaweicloud/cfw/v1/model/DeleteServiceItemDto.h @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteServiceItemDto /// DeleteServiceItemDto members /// - /// 服务组id + /// 服务组id,可通过[获取服务组列表接口](ListServiceSets.xml)查询获得,通过返回值中的data.records.set_id(.表示各对象之间层级的区分)获得。 /// std::string getSetId() const; @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteServiceItemDto void setSetId(const std::string& value); /// - /// 服务组成员id列表 + /// 服务组成员id列表,服务组成员id可通过[查询服务成员列表接口](ListServiceItems.xml)查询获得,通过返回值中的data.records.item_id(.表示各对象之间层级的区分)获得。 /// std::vector& getServiceItemIds(); diff --git a/cfw/include/huaweicloud/cfw/v1/model/DeleteServiceItemRequest.h b/cfw/include/huaweicloud/cfw/v1/model/DeleteServiceItemRequest.h index 401e71cbf..c2a1c3626 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/DeleteServiceItemRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/DeleteServiceItemRequest.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteServiceItemRequest /// DeleteServiceItemRequest members /// - /// 服务组成员id + /// 服务组成员id,可通过[查询服务成员列表接口](ListServiceItems.xml)查询获得,通过返回值中的data.records.item_id(.表示各对象之间层级的区分)获得。 /// std::string getItemId() const; @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteServiceItemRequest void setItemId(const std::string& value); /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; @@ -57,7 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteServiceItemRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/DeleteServiceItemResponse.h b/cfw/include/huaweicloud/cfw/v1/model/DeleteServiceItemResponse.h index 9ffd97b78..dc820a96e 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/DeleteServiceItemResponse.h +++ b/cfw/include/huaweicloud/cfw/v1/model/DeleteServiceItemResponse.h @@ -9,7 +9,7 @@ #include #include -#include +#include namespace HuaweiCloud { namespace Sdk { @@ -42,14 +42,14 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteServiceItemResponse /// /// - IdObject getData() const; + DeleteServiceItemResponseBodyData getData() const; bool dataIsSet() const; void unsetdata(); - void setData(const IdObject& value); + void setData(const DeleteServiceItemResponseBodyData& value); protected: - IdObject data_; + DeleteServiceItemResponseBodyData data_; bool dataIsSet_; #ifdef RTTR_FLAG diff --git a/cfw/include/huaweicloud/cfw/v1/model/DeleteServiceItemResponseBodyData.h b/cfw/include/huaweicloud/cfw/v1/model/DeleteServiceItemResponseBodyData.h new file mode 100644 index 000000000..4ccf91c6e --- /dev/null +++ b/cfw/include/huaweicloud/cfw/v1/model/DeleteServiceItemResponseBodyData.h @@ -0,0 +1,75 @@ + +#ifndef HUAWEICLOUD_SDK_CFW_V1_MODEL_DeleteServiceItemResponseBodyData_H_ +#define HUAWEICLOUD_SDK_CFW_V1_MODEL_DeleteServiceItemResponseBodyData_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 DeleteServiceItemResponseBodyData + : public ModelBase +{ +public: + DeleteServiceItemResponseBodyData(); + virtual ~DeleteServiceItemResponseBodyData(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DeleteServiceItemResponseBodyData 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_CFW_V1_MODEL_DeleteServiceItemResponseBodyData_H_ diff --git a/cfw/include/huaweicloud/cfw/v1/model/DeleteServiceSetRequest.h b/cfw/include/huaweicloud/cfw/v1/model/DeleteServiceSetRequest.h index 464a13ee0..6cb9055ea 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/DeleteServiceSetRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/DeleteServiceSetRequest.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteServiceSetRequest /// DeleteServiceSetRequest members /// - /// 服务集合id + /// 服务组id,可通过[获取服务组列表接口](ListServiceSets.xml)查询获得,通过返回值中的data.records.set_id(.表示各对象之间层级的区分)获得。 /// std::string getSetId() const; @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteServiceSetRequest void setSetId(const std::string& value); /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; @@ -57,7 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteServiceSetRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/DeleteServiceSetResponse.h b/cfw/include/huaweicloud/cfw/v1/model/DeleteServiceSetResponse.h index f9b13a3aa..2ca3441b3 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/DeleteServiceSetResponse.h +++ b/cfw/include/huaweicloud/cfw/v1/model/DeleteServiceSetResponse.h @@ -9,7 +9,7 @@ #include #include -#include +#include namespace HuaweiCloud { namespace Sdk { @@ -42,14 +42,14 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteServiceSetResponse /// /// - IdObject getData() const; + ServiceSetId getData() const; bool dataIsSet() const; void unsetdata(); - void setData(const IdObject& value); + void setData(const ServiceSetId& value); protected: - IdObject data_; + ServiceSetId data_; bool dataIsSet_; #ifdef RTTR_FLAG diff --git a/cfw/include/huaweicloud/cfw/v1/model/DeleteTagRequest.h b/cfw/include/huaweicloud/cfw/v1/model/DeleteTagRequest.h index bc34fe9d5..da08d48a2 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/DeleteTagRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/DeleteTagRequest.h @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteTagRequest /// DeleteTagRequest members /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/DeleteTagsDto.h b/cfw/include/huaweicloud/cfw/v1/model/DeleteTagsDto.h index c20a976b8..57bdeeffb 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/DeleteTagsDto.h +++ b/cfw/include/huaweicloud/cfw/v1/model/DeleteTagsDto.h @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DeleteTagsDto /// DeleteTagsDto members /// - /// 标签列表 + /// 防火墙标签列表 /// std::vector& getTags(); diff --git a/cfw/include/huaweicloud/cfw/v1/model/DnsServersResponseDTO.h b/cfw/include/huaweicloud/cfw/v1/model/DnsServersResponseDTO.h index b6e998cb3..2bfa14c78 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/DnsServersResponseDTO.h +++ b/cfw/include/huaweicloud/cfw/v1/model/DnsServersResponseDTO.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DnsServersResponseDTO /// DnsServersResponseDTO members /// - /// id + /// 域名服务器id /// int32_t getId() const; @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DnsServersResponseDTO void setId(int32_t value); /// - /// 是否应用,0否 1是 + /// 域名服务器是否应用,0否 1是 /// int32_t getIsApplied() const; @@ -57,7 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DnsServersResponseDTO void setIsApplied(int32_t value); /// - /// 是否是用户自定义的dns服务器,0否 1是 + /// 域名服务器是否是用户自定义的dns服务器,0否 1是 /// int32_t getIsCustomized() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/DomainInfo.h b/cfw/include/huaweicloud/cfw/v1/model/DomainInfo.h index 17d1d32b0..6df82c173 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/DomainInfo.h +++ b/cfw/include/huaweicloud/cfw/v1/model/DomainInfo.h @@ -10,7 +10,6 @@ #include #include -#include namespace HuaweiCloud { namespace Sdk { @@ -49,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DomainInfo void setDomainAddressId(const std::string& value); /// - /// 域名 + /// 域名,如www.test.com /// std::string getDomainName() const; @@ -58,7 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DomainInfo void setDomainName(const std::string& value); /// - /// 描述 + /// 域名描述 /// std::string getDescription() const; @@ -66,15 +65,6 @@ class HUAWEICLOUD_CFW_V1_EXPORT DomainInfo void unsetdescription(); void setDescription(const std::string& value); - /// - /// 域名服务器列表 - /// - - std::vector& getDnsIps(); - bool dnsIpsIsSet() const; - void unsetdnsIps(); - void setDnsIps(const std::vector& value); - protected: std::string domainAddressId_; @@ -83,8 +73,6 @@ class HUAWEICLOUD_CFW_V1_EXPORT DomainInfo bool domainNameIsSet_; std::string description_; bool descriptionIsSet_; - std::vector dnsIps_; - bool dnsIpsIsSet_; }; diff --git a/cfw/include/huaweicloud/cfw/v1/model/DomainSetInfoDto.h b/cfw/include/huaweicloud/cfw/v1/model/DomainSetInfoDto.h index 8a4de5a7f..1d99dd7c7 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/DomainSetInfoDto.h +++ b/cfw/include/huaweicloud/cfw/v1/model/DomainSetInfoDto.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DomainSetInfoDto /// DomainSetInfoDto members /// - /// 域名 + /// 域名,如www.test.com /// std::string getDomainName() const; @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DomainSetInfoDto void setDomainName(const std::string& value); /// - /// 描述 + /// 域名描述 /// std::string getDescription() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/DomainSetVo.h b/cfw/include/huaweicloud/cfw/v1/model/DomainSetVo.h index 89590b649..d9bf6855b 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/DomainSetVo.h +++ b/cfw/include/huaweicloud/cfw/v1/model/DomainSetVo.h @@ -59,7 +59,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DomainSetVo void setName(const std::string& value); /// - /// 描述 + /// 域名组描述 /// std::string getDescription() const; @@ -68,7 +68,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DomainSetVo void setDescription(const std::string& value); /// - /// 引用次数 + /// 域名组被规则引用次数 /// int32_t getRefCount() const; @@ -86,7 +86,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT DomainSetVo void setDomainSetType(int32_t value); /// - /// 配置状态 + /// 配置状态,-1表示未配置态,0表示配置失败,1表示配置成功,2表示配置中,3表示正常,4表示配置异常 /// int32_t getConfigStatus() const; @@ -94,15 +94,6 @@ class HUAWEICLOUD_CFW_V1_EXPORT DomainSetVo void unsetconfigStatus(); void setConfigStatus(int32_t value); - /// - /// 异常信息 - /// - - std::string getMessage() const; - bool messageIsSet() const; - void unsetmessage(); - void setMessage(const std::string& value); - /// /// 使用规则id列表 /// @@ -126,8 +117,6 @@ class HUAWEICLOUD_CFW_V1_EXPORT DomainSetVo bool domainSetTypeIsSet_; int32_t configStatus_; bool configStatusIsSet_; - std::string message_; - bool messageIsSet_; std::vector rules_; bool rulesIsSet_; diff --git a/cfw/include/huaweicloud/cfw/v1/model/EIPSwitchStatusVO.h b/cfw/include/huaweicloud/cfw/v1/model/EIPSwitchStatusVO.h index 97d1d84cb..d3cbd0b35 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/EIPSwitchStatusVO.h +++ b/cfw/include/huaweicloud/cfw/v1/model/EIPSwitchStatusVO.h @@ -9,6 +9,7 @@ #include #include +#include #include #include @@ -40,7 +41,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT EIPSwitchStatusVO /// EIPSwitchStatusVO members /// - /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。 + /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)获得,通过返回值中的data.records.protect_objects.object_id(.表示各对象之间层级的区分)获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。此处仅取type为0的防护对象id,可通过data.records.protect_objects.type(.表示各对象之间层级的区分)获得 /// std::string getObjectId() const; @@ -49,7 +50,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT EIPSwitchStatusVO void setObjectId(const std::string& value); /// - /// 修改eip防护状态失败列表。 + /// 修改eip防护状态失败状态列表,状态包括成功\"successful\",失败“fail” /// std::vector& getFailEipIdList(); @@ -58,7 +59,16 @@ class HUAWEICLOUD_CFW_V1_EXPORT EIPSwitchStatusVO void setFailEipIdList(const std::vector& value); /// - /// ID + /// 修改eip防护状态失败信息列表 + /// + + std::vector& getFailEipList(); + bool failEipListIsSet() const; + void unsetfailEipList(); + void setFailEipList(const std::vector& value); + + /// + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// std::string getId() const; @@ -72,6 +82,8 @@ class HUAWEICLOUD_CFW_V1_EXPORT EIPSwitchStatusVO bool objectIdIsSet_; std::vector failEipIdList_; bool failEipIdListIsSet_; + std::vector failEipList_; + bool failEipListIsSet_; std::string id_; bool idIsSet_; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ER.h b/cfw/include/huaweicloud/cfw/v1/model/ER.h index 3082f5b34..197368c49 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ER.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ER.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ER /// ER members /// - /// ER ID + /// ER ID,创建东西向防护引用的 ID /// std::string getErId() const; @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ER void setErId(const std::string& value); /// - /// ER连接ID + /// 企业路由器连接id,该连接用于连接防火墙和企业路由器,此字段可在通过id在ER界面查询指定er后在管理连接界面查询连接了解连接具体情况。 /// std::string getErAttachId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/EipCountRespData.h b/cfw/include/huaweicloud/cfw/v1/model/EipCountRespData.h index c74378f84..99c8e1be0 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/EipCountRespData.h +++ b/cfw/include/huaweicloud/cfw/v1/model/EipCountRespData.h @@ -9,7 +9,6 @@ #include #include -#include namespace HuaweiCloud { namespace Sdk { @@ -39,16 +38,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT EipCountRespData /// EipCountRespData members /// - /// 防护对象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); - - /// - /// EIP总数 + /// 总体EIP数 /// int32_t getEipTotal() const; @@ -66,7 +56,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT EipCountRespData void setEipProtected(int32_t value); /// - /// 该当前防火墙防护EIP数量 + /// 当前防火墙防护EIP数量 /// int32_t getEipProtectedSelf() const; @@ -76,8 +66,6 @@ class HUAWEICLOUD_CFW_V1_EXPORT EipCountRespData protected: - std::string objectId_; - bool objectIdIsSet_; int32_t eipTotal_; bool eipTotalIsSet_; int32_t eipProtected_; diff --git a/cfw/include/huaweicloud/cfw/v1/model/EipOperateProtectReq.h b/cfw/include/huaweicloud/cfw/v1/model/EipOperateProtectReq.h index 4a1f70f34..ea3b140a0 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,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。 + /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)获得,通过返回值中的data.records.protect_objects.object_id(.表示各对象之间层级的区分)获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。此处仅取type为0的防护对象id,可通过data.records.protect_objects.type(.表示各对象之间层级的区分)获得。 /// std::string getObjectId() const; @@ -50,7 +50,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT EipOperateProtectReq void setObjectId(const std::string& value); /// - /// EIP状态,0表示防护中,1表示未防护 + /// EIP切换的状态,0表示防护中,1表示未防护 /// int32_t getStatus() const; @@ -59,7 +59,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT EipOperateProtectReq void setStatus(int32_t value); /// - /// EIP信息列表 + /// 切换防护状态的EIP信息列表 /// std::vector& getIpInfos(); diff --git a/cfw/include/huaweicloud/cfw/v1/model/EipOperateProtectReq_ip_infos.h b/cfw/include/huaweicloud/cfw/v1/model/EipOperateProtectReq_ip_infos.h index 9858253ac..62998fbb2 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/EipOperateProtectReq_ip_infos.h +++ b/cfw/include/huaweicloud/cfw/v1/model/EipOperateProtectReq_ip_infos.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT EipOperateProtectReq_ip_infos /// EipOperateProtectReq_ip_infos members /// - /// 弹性公网IP数据ID + /// 弹性公网IP ID,可通过调用弹性IP列表查询接口获得,通过返回值中的data.records.id(.表示各对象之间层级的区分)获得。 /// std::string getId() const; @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT EipOperateProtectReq_ip_infos void setId(const std::string& value); /// - /// 弹性公网IP地址 + /// 弹性公网IP IPv4地址,可通过调用弹性IP列表查询接口获得,通过返回值中的data.records.public_ip(.表示各对象之间层级的区分)获得。 /// std::string getPublicIp() const; @@ -57,7 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT EipOperateProtectReq_ip_infos void setPublicIp(const std::string& value); /// - /// 弹性公网IP地址IPV6 + /// 弹性公网IP IPv6地址,可通过调用弹性IP列表查询接口获得,通过返回值中的data.records.public_ipv6(.表示各对象之间层级的区分)获得。 /// std::string getPublicIpv6() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/EipResource.h b/cfw/include/huaweicloud/cfw/v1/model/EipResource.h index 61114ab77..dd959df0c 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/EipResource.h +++ b/cfw/include/huaweicloud/cfw/v1/model/EipResource.h @@ -66,7 +66,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT EipResource void setStatus(int32_t value); /// - /// 弹性公网IP,IPV6 + /// 弹性公网IP,IPV6类型 /// std::string getPublicIpv6() const; @@ -75,7 +75,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT EipResource void setPublicIpv6(const std::string& value); /// - /// 企业项目id + /// Eip所在账户企业项目id /// std::string getEnterpriseProjectId() const; @@ -84,7 +84,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT EipResource void setEnterpriseProjectId(const std::string& value); /// - /// 设备id + /// EIP绑定设备(如ecs,nat)id /// std::string getDeviceId() const; @@ -93,7 +93,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT EipResource void setDeviceId(const std::string& value); /// - /// 设备名称 + /// EIP绑定设备(如ecs,nat)名称 /// std::string getDeviceName() const; @@ -102,7 +102,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT EipResource void setDeviceName(const std::string& value); /// - /// 设备拥有者 + /// EIP绑定设备(如ecs,nat)拥有者 /// std::string getDeviceOwner() const; @@ -111,7 +111,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT EipResource void setDeviceOwner(const std::string& value); /// - /// 关联实例类型 + /// 关联实例类型,包括:NATGW,ELB,PORT等。 /// std::string getAssociateInstanceType() const; @@ -147,7 +147,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT EipResource void setFwEnterpriseProjectId(const std::string& value); /// - /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。 + /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)获得,通过返回值中的data.records.protect_objects.object_id(.表示各对象之间层级的区分)获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。此处仅取type为0的防护对象id,可通过data.records.protect_objects.type(.表示各对象之间层级的区分)获得。 /// std::string getObjectId() const; @@ -165,7 +165,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT EipResource void setTags(const std::string& value); /// - /// EIP所属用户 + /// EIP所属用户id,可通过[获取账号、IAM用户、项目、用户组、区域、委托的名称和ID](cfw_02_0030.xml)获取。 /// std::string getDomainId() const; @@ -174,16 +174,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT EipResource void setDomainId(const std::string& value); /// - /// 所属用户的名称 - /// - - std::string getOwner() const; - bool ownerIsSet() const; - void unsetowner(); - void setOwner(const std::string& value); - - /// - /// 防火墙所属用户 + /// 防火墙所属用户,可通过[获取账号、IAM用户、项目、用户组、区域、委托的名称和ID](cfw_02_0030.xml)获取。 /// std::string getFwDomainId() const; @@ -223,8 +214,6 @@ class HUAWEICLOUD_CFW_V1_EXPORT EipResource bool tagsIsSet_; std::string domainId_; bool domainIdIsSet_; - std::string owner_; - bool ownerIsSet_; std::string fwDomainId_; bool fwDomainIdIsSet_; diff --git a/cfw/include/huaweicloud/cfw/v1/model/EipResponseData.h b/cfw/include/huaweicloud/cfw/v1/model/EipResponseData.h index 004385c6a..32e36e86b 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/EipResponseData.h +++ b/cfw/include/huaweicloud/cfw/v1/model/EipResponseData.h @@ -58,7 +58,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT EipResponseData void setOffset(int32_t value); /// - /// 总数 + /// 查询获得EIP列表总数 /// int32_t getTotal() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ErInstance.h b/cfw/include/huaweicloud/cfw/v1/model/ErInstance.h index 2411580e5..4c21a0003 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ErInstance.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ErInstance.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ErInstance /// ErInstance members /// - /// ER实例id + /// ER ID,创建ER时产生的ID /// std::string getId() const; @@ -57,25 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ErInstance void setName(const std::string& value); /// - /// ER状态 - /// - - std::string getState() const; - bool stateIsSet() const; - void unsetstate(); - void setState(const std::string& value); - - /// - /// 企业租户id - /// - - std::string getEnterpriseProjectId() const; - bool enterpriseProjectIdIsSet() const; - void unsetenterpriseProjectId(); - void setEnterpriseProjectId(const std::string& value); - - /// - /// 租户id + /// 项目ID, 可以从调API处获取,也可以从控制台获取。[项目ID获取方式](cfw_02_0015.xml) /// std::string getProjectId() const; @@ -84,16 +66,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ErInstance void setProjectId(const std::string& value); /// - /// 是否开启ipv6 - /// - - std::string getEnableIpv6() const; - bool enableIpv6IsSet() const; - void unsetenableIpv6(); - void setEnableIpv6(const std::string& value); - - /// - /// 连接id + /// 企业路由器连接id,该连接用于连接防火墙和企业路由器,此字段可在通过id在ER界面查询指定er后在管理连接界面查询连接了解连接具体情况。 /// std::string getAttachmentId() const; @@ -107,14 +80,8 @@ class HUAWEICLOUD_CFW_V1_EXPORT ErInstance bool idIsSet_; std::string name_; bool nameIsSet_; - std::string state_; - bool stateIsSet_; - std::string enterpriseProjectId_; - bool enterpriseProjectIdIsSet_; std::string projectId_; bool projectIdIsSet_; - std::string enableIpv6_; - bool enableIpv6IsSet_; std::string attachmentId_; bool attachmentIdIsSet_; diff --git a/cfw/include/huaweicloud/cfw/v1/model/EwProtectResourceInfo.h b/cfw/include/huaweicloud/cfw/v1/model/EwProtectResourceInfo.h index ae011a57f..e47701cfb 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/EwProtectResourceInfo.h +++ b/cfw/include/huaweicloud/cfw/v1/model/EwProtectResourceInfo.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT EwProtectResourceInfo /// EwProtectResourceInfo members /// - /// 防护资源类型:0 VPC,1 VGW + /// 防护资源类型:0 VPC,1 VGW,2 VPN,3 PEERING /// int32_t getProtectedResourceType() const; @@ -66,7 +66,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT EwProtectResourceInfo void setProtectedResourceId(const std::string& value); /// - /// 防护资源nat网关名称 + /// 防护资源nat网关名称,专业版防火墙支持NAT规则,此字段表示防护连接的NAT的名称。 /// std::string getProtectedResourceNatName() const; @@ -75,7 +75,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT EwProtectResourceInfo void setProtectedResourceNatName(const std::string& value); /// - /// 防护资源nat网关id + /// 防护资源nat网关id,专业版防火墙支持NAT规则,此字段表示防护连接的NAT的id。 /// std::string getProtectedResourceNatId() const; @@ -84,7 +84,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT EwProtectResourceInfo void setProtectedResourceNatId(const std::string& value); /// - /// 防护资源租户id + /// 防火墙支持跨账户防护,此处为防护资源租户id /// std::string getProtectedResourceProjectId() const; @@ -93,7 +93,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT EwProtectResourceInfo void setProtectedResourceProjectId(const std::string& value); /// - /// 防护资源模式 + /// 防护资源模式,为er /// std::string getProtectedResourceMode() const; @@ -102,7 +102,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT EwProtectResourceInfo void setProtectedResourceMode(const std::string& value); /// - /// 防护VPC的防护状态,0表示已关联,1表示未关联。 + /// 防护资源的防护状态,0表示已关联,1表示未关联。 /// int32_t getStatus() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/FailedEipInfo.h b/cfw/include/huaweicloud/cfw/v1/model/FailedEipInfo.h new file mode 100644 index 000000000..22cda647e --- /dev/null +++ b/cfw/include/huaweicloud/cfw/v1/model/FailedEipInfo.h @@ -0,0 +1,75 @@ + +#ifndef HUAWEICLOUD_SDK_CFW_V1_MODEL_FailedEipInfo_H_ +#define HUAWEICLOUD_SDK_CFW_V1_MODEL_FailedEipInfo_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 FailedEipInfo + : public ModelBase +{ +public: + FailedEipInfo(); + virtual ~FailedEipInfo(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// FailedEipInfo members + + /// + /// 修改状态失败的eipId。 + /// + + std::string getId() const; + bool idIsSet() const; + void unsetid(); + void setId(const std::string& value); + + /// + /// 修改状态失败的错误码。 + /// + + std::string getErrorMessage() const; + bool errorMessageIsSet() const; + void unseterrorMessage(); + void setErrorMessage(const std::string& value); + + +protected: + std::string id_; + bool idIsSet_; + std::string errorMessage_; + bool errorMessageIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CFW_V1_MODEL_FailedEipInfo_H_ diff --git a/cfw/include/huaweicloud/cfw/v1/model/FirewallInstanceResource.h b/cfw/include/huaweicloud/cfw/v1/model/FirewallInstanceResource.h index 05316055b..6b69aea59 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/FirewallInstanceResource.h +++ b/cfw/include/huaweicloud/cfw/v1/model/FirewallInstanceResource.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT FirewallInstanceResource /// FirewallInstanceResource members /// - /// 资源id + /// 资源id,包括防火墙资源id,带宽资源id,eip资源id,vpc资源id,cbc回调后返回id。 /// std::string getResourceId() const; @@ -57,7 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT FirewallInstanceResource void setCloudServiceType(const std::string& value); /// - /// 资源类型,包括: 1、云防火墙:hws.resource.type.cfw 2、EIP:hws.resource.type.cfw.exp.eip 3、带宽:hws.resource.type.cfw.exp.bandwidth 4、VPC:hws.resource.type.cfw.exp.vpc 5、日志存储:hws.resource.type.cfw.exp.logaudit + /// 资源类型 包括: 1、云防火墙:hws.resource.type.cfw 2、EIP:hws.resource.type.cfw.exp.eip 3、带宽:hws.resource.type.cfw.exp.bandwidth 4、VPC:hws.resource.type.cfw.exp /// std::string getResourceType() const; @@ -66,7 +66,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT FirewallInstanceResource void setResourceType(const std::string& value); /// - /// 库存单位码 + /// 库存单位码,包括:1、防火墙标准版cfw.standard 2、防火墙专业版cfw.professional 3、eip标准版cfw.expack.eip.standard 4、eip专业版cfw.expack.eip.professional 5、带宽基础版cfw.expack.bandwidth.standard 6、带宽专业版cfw.expack.bandwidth.professional 7、vpc专业版cfw.expack.vpc.professional /// std::string getResourceSpecCode() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/FirewallInstanceVO.h b/cfw/include/huaweicloud/cfw/v1/model/FirewallInstanceVO.h index 31bccc9a6..4b21a7449 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,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙实例id,创建云防火墙后用于标记防火墙由系统自动生成的id。 /// std::string getFwInstanceId() const; @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT FirewallInstanceVO void setFwInstanceId(const std::string& value); /// - /// 资源id + /// 资源id,与防火墙实例id fw_instance_id相同 /// std::string getResourceId() const; @@ -58,7 +58,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT FirewallInstanceVO void setResourceId(const std::string& value); /// - /// 防火墙创建时间戳 + /// 创建防火墙时的时间戳 /// std::string getName() const; @@ -85,7 +85,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT FirewallInstanceVO void setEnterpriseProjectId(const std::string& value); /// - /// 集群类型 + /// 集群类型,包含主备(0)和集群(1)两种方式,主备模式包含四个节点,2个主节点构成集群,剩余两个节点为主节点的备节点,集群模式仅拉起两个节点作为集群。 /// int32_t getHaType() const; @@ -103,7 +103,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT FirewallInstanceVO void setChargeMode(int32_t value); /// - /// 服务类型 + /// 防火墙防护类型,目前仅支持0,互联网防护。 /// int32_t getServiceType() const; @@ -112,7 +112,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT FirewallInstanceVO void setServiceType(int32_t value); /// - /// 引擎类型 + /// 引擎类型,0:自研引擎 1:山石引擎 3:天融信引擎 /// int32_t getEngineType() const; @@ -130,7 +130,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT FirewallInstanceVO void setFlavor(const Flavor& value); /// - /// 防火墙状态列表,包括-1:等待支付,0:创建中,1,删除中,2:运行中,3:升级中,4:删除完成:5:冻结中,6:创建失败,7:删除失败,8:冻结失败,9:存储中,10:存储失败,11:升级失败 + /// 防火墙状态列表,包括-1:等待支付,0:创建中,1:删除中,2:运行中,3:升级中,4:删除完成:5:冻结中,6:创建失败,7:删除失败,8:冻结失败,9:存储中,10:存储失败,11:升级失败 /// int32_t getStatus() const; @@ -139,7 +139,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT FirewallInstanceVO void setStatus(int32_t value); /// - /// 标签列表 + /// 标签列表,标签键值map转化的json字符串,如\"{\\\"key\\\":\\\"value\\\"}\" /// std::string getTags() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/Flavor.h b/cfw/include/huaweicloud/cfw/v1/model/Flavor.h index e0fa9f1f2..8bf5a0642 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/Flavor.h +++ b/cfw/include/huaweicloud/cfw/v1/model/Flavor.h @@ -38,7 +38,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT Flavor /// Flavor members /// - /// 防火墙版本,0:标准版,1:专业版,2:铂金版,3:基础版,购买时,当防火墙“charge_mode”为“postPaid”时,仅支持专业版。“charge_mode”为“prePaid”时,支持标准版、专业版。 + /// 防火墙版本,0:标准版,1:专业版,3:基础版,购买时,当防火墙“charge_mode”为“postPaid”时,仅支持专业版。“charge_mode”为“prePaid”时,支持标准版、专业版。 /// int32_t getVersion() const; @@ -65,7 +65,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT Flavor void setVpcCount(int32_t value); /// - /// 带宽 + /// 带宽,单位为mbps /// int32_t getBandwidth() const; @@ -74,7 +74,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT Flavor void setBandwidth(int32_t value); /// - /// 日志存储 + /// 日志存储,单位为byte /// int32_t getLogStorage() const; @@ -83,7 +83,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT Flavor void setLogStorage(int32_t value); /// - /// 默认防火墙带宽 + /// 默认防火墙带宽,单位为mbps,标准版为10,专业版为50,按需专业版为200 /// int32_t getDefaultBandwidth() const; @@ -92,7 +92,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT Flavor void setDefaultBandwidth(int32_t value); /// - /// 默认eip数 + /// 默认eip数,标准版为20,专业版为50,按需专业版为1000 /// int32_t getDefaultEipCount() const; @@ -101,7 +101,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT Flavor void setDefaultEipCount(int32_t value); /// - /// 默认日志存储 + /// 默认日志存储,单位为byte,默认为0 /// int32_t getDefaultLogStorage() const; @@ -110,7 +110,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT Flavor void setDefaultLogStorage(int32_t value); /// - /// 默认vpc数 + /// 默认vpc数,标准版为0,专业版为2,按需专业版为5 /// int32_t getDefaultVpcCount() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/GetCreateFirewallJobResponseData.h b/cfw/include/huaweicloud/cfw/v1/model/GetCreateFirewallJobResponseData.h new file mode 100644 index 000000000..9948d390a --- /dev/null +++ b/cfw/include/huaweicloud/cfw/v1/model/GetCreateFirewallJobResponseData.h @@ -0,0 +1,98 @@ + +#ifndef HUAWEICLOUD_SDK_CFW_V1_MODEL_GetCreateFirewallJobResponseData_H_ +#define HUAWEICLOUD_SDK_CFW_V1_MODEL_GetCreateFirewallJobResponseData_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 GetCreateFirewallJobResponseData + : public ModelBase +{ +public: + GetCreateFirewallJobResponseData(); + virtual ~GetCreateFirewallJobResponseData(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// GetCreateFirewallJobResponseData members + + /// + /// 创建按需防火墙任务ID + /// + + std::string getId() const; + bool idIsSet() const; + void unsetid(); + void setId(const std::string& value); + + /// + /// 任务执行状态,用于向客户显示创建防火墙是否成功。 取值: 值为“Running”,表示任务正在执行。 值为“Success”,表示任务执行成功。 值为“Failed”,表示任务执行失败。 + /// + + std::string getStatus() const; + bool statusIsSet() const; + void unsetstatus(); + void setStatus(const std::string& value); + + /// + /// 创建时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。 + /// + + utility::datetime getBeginTime() const; + bool beginTimeIsSet() const; + void unsetbeginTime(); + void setBeginTime(const utility::datetime& value); + + /// + /// 结束时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。 + /// + + utility::datetime getEndTime() const; + bool endTimeIsSet() const; + void unsetendTime(); + void setEndTime(const utility::datetime& value); + + +protected: + std::string id_; + bool idIsSet_; + std::string status_; + bool statusIsSet_; + utility::datetime beginTime_; + bool beginTimeIsSet_; + utility::datetime endTime_; + bool endTimeIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_CFW_V1_MODEL_GetCreateFirewallJobResponseData_H_ diff --git a/cfw/include/huaweicloud/cfw/v1/model/GetEastWestFirewallResponseBody.h b/cfw/include/huaweicloud/cfw/v1/model/GetEastWestFirewallResponseBody.h index 5372662da..1466bbeaf 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,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。 + /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)获得,通过返回值中的data.records.protect_objects.object_id(.表示各对象之间层级的区分)获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。此处仅取type为1的防护对象id,可通过data.records.protect_objects.type(.表示各对象之间层级的区分)获得。 /// std::string getObjectId() const; @@ -53,7 +53,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT GetEastWestFirewallResponseBody void setObjectId(const std::string& value); /// - /// 租户project_id + /// 项目ID, 可以从调API处获取,也可以从控制台获取。[项目ID获取方式](cfw_02_0015.xml) /// std::string getProjectId() const; @@ -70,15 +70,6 @@ class HUAWEICLOUD_CFW_V1_EXPORT GetEastWestFirewallResponseBody void unsetstatus(); void setStatus(int32_t value); - /// - /// - /// - - SubnetInfo getErAssociatedSubnet() const; - bool erAssociatedSubnetIsSet() const; - void unseterAssociatedSubnet(); - void setErAssociatedSubnet(const SubnetInfo& value); - /// /// 云防火墙关联子网信息 /// @@ -143,7 +134,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT GetEastWestFirewallResponseBody void setLimit(int32_t value); /// - /// 防护模式 + /// 防护模式,值为er /// std::string getMode() const; @@ -151,15 +142,6 @@ class HUAWEICLOUD_CFW_V1_EXPORT GetEastWestFirewallResponseBody void unsetmode(); void setMode(const std::string& value); - /// - /// 东西向路由限制 - /// - - int32_t getEwVpcRouteLimit() const; - bool ewVpcRouteLimitIsSet() const; - void unsetewVpcRouteLimit(); - void setEwVpcRouteLimit(int32_t value); - protected: std::string objectId_; @@ -168,8 +150,6 @@ class HUAWEICLOUD_CFW_V1_EXPORT GetEastWestFirewallResponseBody bool projectIdIsSet_; int32_t status_; bool statusIsSet_; - SubnetInfo erAssociatedSubnet_; - bool erAssociatedSubnetIsSet_; std::vector firewallAssociatedSubnets_; bool firewallAssociatedSubnetsIsSet_; ErInstance er_; @@ -186,8 +166,6 @@ class HUAWEICLOUD_CFW_V1_EXPORT GetEastWestFirewallResponseBody bool limitIsSet_; std::string mode_; bool modeIsSet_; - int32_t ewVpcRouteLimit_; - bool ewVpcRouteLimitIsSet_; }; diff --git a/cfw/include/huaweicloud/cfw/v1/model/GetFirewallInstanceData.h b/cfw/include/huaweicloud/cfw/v1/model/GetFirewallInstanceData.h index c7f224bba..4bc6b8d5b 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/GetFirewallInstanceData.h +++ b/cfw/include/huaweicloud/cfw/v1/model/GetFirewallInstanceData.h @@ -58,7 +58,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT GetFirewallInstanceData void setOffset(int32_t value); /// - /// 总数 + /// 防火墙总数 /// int32_t getTotal() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/GetFirewallInstanceResponseRecord.h b/cfw/include/huaweicloud/cfw/v1/model/GetFirewallInstanceResponseRecord.h index 7730260c4..bb219a6cd 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,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)。 + /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id。,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 /// std::string getFwInstanceId() const; @@ -62,7 +62,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT GetFirewallInstanceResponseRecord void setName(const std::string& value); /// - /// 集群类型 + /// 集群类型,包含主备(0)和集群(1)两种方式,主备模式包含四个节点,2个主节点构成集群,剩余两个节点为主节点的备节点,集群模式仅拉起两个节点作为集群。 /// int32_t getHaType() const; @@ -80,7 +80,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT GetFirewallInstanceResponseRecord void setChargeMode(int32_t value); /// - /// 服务类型 + /// 防火墙防护类型,目前仅支持0,互联网防护 /// int32_t getServiceType() const; @@ -89,7 +89,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT GetFirewallInstanceResponseRecord void setServiceType(int32_t value); /// - /// 引擎类型 + /// 引擎类型,0:自研引擎 1:山石引擎 3:天融信引擎 /// int32_t getEngineType() const; @@ -134,7 +134,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT GetFirewallInstanceResponseRecord void setIsOldFirewallInstance(bool value); /// - /// 是否支持obs + /// 是否支持obs,true表示是,false表示不是 /// bool isIsAvailableObs() const; @@ -143,7 +143,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT GetFirewallInstanceResponseRecord void setIsAvailableObs(bool value); /// - /// 是否支持威胁标签 + /// 是否支持威胁情报标签,true表示是,false表示不是 /// bool isIsSupportThreatTags() const; @@ -188,7 +188,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT GetFirewallInstanceResponseRecord void setFwInstanceName(const std::string& value); /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; @@ -197,7 +197,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT GetFirewallInstanceResponseRecord void setEnterpriseProjectId(const std::string& value); /// - /// 资源id + /// 防火墙资源id,同fw_instance_id /// std::string getResourceId() const; @@ -215,7 +215,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT GetFirewallInstanceResponseRecord void setSupportUrlFiltering(bool value); /// - /// 标签列表 + /// 标签列表,标签键值map转化的json字符串,如\"{\\\"key\\\":\\\"value\\\"}\" /// std::string getTags() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/HttpFirewallInstanceListResponseData.h b/cfw/include/huaweicloud/cfw/v1/model/HttpFirewallInstanceListResponseData.h index 0f000d5b8..40f8ebd27 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/HttpFirewallInstanceListResponseData.h +++ b/cfw/include/huaweicloud/cfw/v1/model/HttpFirewallInstanceListResponseData.h @@ -68,7 +68,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT HttpFirewallInstanceListResponseData void setProjectId(const std::string& value); /// - /// 总数 + /// 防火墙总数量 /// int32_t getTotal() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/HttpGetAclTagResponseData.h b/cfw/include/huaweicloud/cfw/v1/model/HttpGetAclTagResponseData.h index 8e7e512c2..eb21cde2b 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/HttpGetAclTagResponseData.h +++ b/cfw/include/huaweicloud/cfw/v1/model/HttpGetAclTagResponseData.h @@ -58,7 +58,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT HttpGetAclTagResponseData void setLimit(int32_t value); /// - /// 总数 + /// 规则标签总数 /// int32_t getTotal() const; @@ -67,7 +67,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT HttpGetAclTagResponseData void setTotal(int32_t value); /// - /// 标签列表 + /// 规则标签列表 /// std::vector& getRecords(); diff --git a/cfw/include/huaweicloud/cfw/v1/model/HttpQueryCaptureTaskResponseData.h b/cfw/include/huaweicloud/cfw/v1/model/HttpQueryCaptureTaskResponseData.h index f82bedc0c..a624dda40 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/HttpQueryCaptureTaskResponseData.h +++ b/cfw/include/huaweicloud/cfw/v1/model/HttpQueryCaptureTaskResponseData.h @@ -9,7 +9,6 @@ #include #include -#include #include #include @@ -49,15 +48,6 @@ class HUAWEICLOUD_CFW_V1_EXPORT HttpQueryCaptureTaskResponseData 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 /// @@ -67,15 +57,6 @@ class HUAWEICLOUD_CFW_V1_EXPORT HttpQueryCaptureTaskResponseData void unsetoffset(); void setOffset(int32_t value); - /// - /// 租户project_id - /// - - std::string getProjectId() const; - bool projectIdIsSet() const; - void unsetprojectId(); - void setProjectId(const std::string& value); - /// /// 抓包任务总数 /// @@ -98,12 +79,8 @@ class HUAWEICLOUD_CFW_V1_EXPORT HttpQueryCaptureTaskResponseData 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_; diff --git a/cfw/include/huaweicloud/cfw/v1/model/HttpQueryCfwAccessControllerLogsResponseDTO_data.h b/cfw/include/huaweicloud/cfw/v1/model/HttpQueryCfwAccessControllerLogsResponseDTO_data.h index f98c46661..bc76974c5 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/HttpQueryCfwAccessControllerLogsResponseDTO_data.h +++ b/cfw/include/huaweicloud/cfw/v1/model/HttpQueryCfwAccessControllerLogsResponseDTO_data.h @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT HttpQueryCfwAccessControllerLogsResponseDTO_dat /// HttpQueryCfwAccessControllerLogsResponseDTO_data members /// - /// 返回数量 + /// 查询访问控制日志记录总数 /// int32_t getTotal() const; @@ -58,7 +58,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT HttpQueryCfwAccessControllerLogsResponseDTO_dat void setLimit(int32_t value); /// - /// 记录 + /// 查询访问控制日志记录 /// std::vector& getRecords(); 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 43af3391d..48efdab44 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/HttpQueryCfwAccessControllerLogsResponseDTO_data_records.h +++ b/cfw/include/huaweicloud/cfw/v1/model/HttpQueryCfwAccessControllerLogsResponseDTO_data_records.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT HttpQueryCfwAccessControllerLogsResponseDTO_dat /// HttpQueryCfwAccessControllerLogsResponseDTO_data_records members /// - /// 动作0:permit,1:deny + /// 动作0:permit,1:deny /// std::string getAction() const; @@ -57,7 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT HttpQueryCfwAccessControllerLogsResponseDTO_dat void setRuleName(const std::string& value); /// - /// 规则ID + /// 规则id /// std::string getRuleId() const; @@ -165,7 +165,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT HttpQueryCfwAccessControllerLogsResponseDTO_dat void setProtocol(const std::string& value); /// - /// 应用协议 + /// 规则应用类型包括:“HTTP”,\"HTTPS\",\"TLS1\",“DNS”,“SSH”,“MYSQL”,“SMTP”,“RDP”,“RDPS”,“VNC”,“POP3”,“IMAP4”,“SMTPS”,“POP3S”,“FTPS”,“ANY”,“BGP”等。 /// std::string getApp() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/HttpQueryCfwAttackLogsResponseDTO_data.h b/cfw/include/huaweicloud/cfw/v1/model/HttpQueryCfwAttackLogsResponseDTO_data.h index e8ec73149..f9d9ee6cd 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/HttpQueryCfwAttackLogsResponseDTO_data.h +++ b/cfw/include/huaweicloud/cfw/v1/model/HttpQueryCfwAttackLogsResponseDTO_data.h @@ -21,7 +21,7 @@ namespace Model { using namespace HuaweiCloud::Sdk::Core::Utils; using namespace HuaweiCloud::Sdk::Core::Http; /// -/// 查询攻击日志返回值 +/// 查询攻击日志返回值数据 /// class HUAWEICLOUD_CFW_V1_EXPORT HttpQueryCfwAttackLogsResponseDTO_data : public ModelBase @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT HttpQueryCfwAttackLogsResponseDTO_data /// HttpQueryCfwAttackLogsResponseDTO_data members /// - /// 返回数量 + /// 返回攻击数据总数 /// int32_t getTotal() const; @@ -58,7 +58,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT HttpQueryCfwAttackLogsResponseDTO_data void setLimit(int32_t value); /// - /// 记录 + /// 攻击日志记录列表 /// std::vector& getRecords(); 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 3e57ccf62..4f2da3575 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/HttpQueryCfwAttackLogsResponseDTO_data_records.h +++ b/cfw/include/huaweicloud/cfw/v1/model/HttpQueryCfwAttackLogsResponseDTO_data_records.h @@ -41,7 +41,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT HttpQueryCfwAttackLogsResponseDTO_data_records /// HttpQueryCfwAttackLogsResponseDTO_data_records members /// - /// 方向,有内到外和外到内两种 + /// 方向,包含in2out,out2in /// std::string getDirection() const; @@ -50,7 +50,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT HttpQueryCfwAttackLogsResponseDTO_data_records void setDirection(const std::string& value); /// - /// 动作 + /// 动作包含permit,deny /// std::string getAction() const; @@ -86,7 +86,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT HttpQueryCfwAttackLogsResponseDTO_data_records void setAttackRule(const std::string& value); /// - /// 威胁等级 + /// 威胁等级,包括CRITICAL、HIGH、MEDIUM、LOW /// std::string getLevel() const; @@ -176,7 +176,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT HttpQueryCfwAttackLogsResponseDTO_data_records void setDstPort(int32_t value); /// - /// 协议 + /// 协议类型,包含TCP, UDP,ICMP,ICMPV6等。 /// std::string getProtocol() const; @@ -194,7 +194,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT HttpQueryCfwAttackLogsResponseDTO_data_records void setPacket(const std::string& value); /// - /// 应用协议 + /// 规则应用类型包括:“HTTP”,\"HTTPS\",\"TLS1\",“DNS”,“SSH”,“MYSQL”,“SMTP”,“RDP”,“RDPS”,“VNC”,“POP3”,“IMAP4”,“SMTPS”,“POP3S”,“FTPS”,“ANY”,“BGP”等。 /// std::string getApp() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/HttpQueryCfwFlowLogsResponseDTO_data.h b/cfw/include/huaweicloud/cfw/v1/model/HttpQueryCfwFlowLogsResponseDTO_data.h index d690090b1..54982cfc0 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/HttpQueryCfwFlowLogsResponseDTO_data.h +++ b/cfw/include/huaweicloud/cfw/v1/model/HttpQueryCfwFlowLogsResponseDTO_data.h @@ -21,7 +21,7 @@ namespace Model { using namespace HuaweiCloud::Sdk::Core::Utils; using namespace HuaweiCloud::Sdk::Core::Http; /// -/// 查询流日志返回值 +/// 查询流日志返回值数据 /// class HUAWEICLOUD_CFW_V1_EXPORT HttpQueryCfwFlowLogsResponseDTO_data : public ModelBase @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT HttpQueryCfwFlowLogsResponseDTO_data /// HttpQueryCfwFlowLogsResponseDTO_data members /// - /// 返回数量 + /// 查询流日志返回值记录总数 /// int32_t getTotal() const; 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 f5907baae..b5d209167 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/HttpQueryCfwFlowLogsResponseDTO_data_records.h +++ b/cfw/include/huaweicloud/cfw/v1/model/HttpQueryCfwFlowLogsResponseDTO_data_records.h @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT HttpQueryCfwFlowLogsResponseDTO_data_records void setBytes(double value); /// - /// 方向,有内到外和外到内两种 + /// 方向,有内到外(in2out)和外到内(out2in)两种 /// std::string getDirection() const; @@ -57,7 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT HttpQueryCfwFlowLogsResponseDTO_data_records void setDirection(const std::string& value); /// - /// 包 + /// 字节包数 /// int32_t getPackets() const; @@ -120,7 +120,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT HttpQueryCfwFlowLogsResponseDTO_data_records void setDstIp(const std::string& value); /// - /// 应用协议 + /// 规则应用类型包括:“HTTP”,\"HTTPS\",\"TLS1\",“DNS”,“SSH”,“MYSQL”,“SMTP”,“RDP”,“RDPS”,“VNC”,“POP3”,“IMAP4”,“SMTPS”,“POP3S”,“FTPS”,“ANY”,“BGP”等。 /// std::string getApp() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/IpRegionDto.h b/cfw/include/huaweicloud/cfw/v1/model/IpRegionDto.h index 8eea9e84e..5cbea859e 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/IpRegionDto.h +++ b/cfw/include/huaweicloud/cfw/v1/model/IpRegionDto.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT IpRegionDto /// IpRegionDto members /// - /// 区域id + /// 区域id,可通过[获取账号、IAM用户、项目、用户组、区域、委托的名称和ID](cfw_02_0030.xml)获取。 /// std::string getRegionId() const; @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT IpRegionDto void setRegionId(const std::string& value); /// - /// 中文描述 + /// 区域中文描述,仅当区域为中国区域时使用,可通过[地域信息表](cfw_02_0031.xml)获取。 /// std::string getDescriptionCn() const; @@ -57,7 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT IpRegionDto void setDescriptionCn(const std::string& value); /// - /// 英文描述 + /// 区域英文描述,仅当区域为非中国区域时使用,可通过[地域信息表](cfw_02_0031.xml)获取。 /// std::string getDescriptionEn() const; @@ -66,7 +66,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT IpRegionDto void setDescriptionEn(const std::string& value); /// - /// 区域类型,0表示国家,1表示省份,2表示大洲 + /// 区域类型,0表示国家,1表示省份,2表示大洲,可通过[地域信息表](cfw_02_0031.xml)获取。 /// int32_t getRegionType() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/IpsProtectModeObject.h b/cfw/include/huaweicloud/cfw/v1/model/IpsProtectModeObject.h index c0eb34dd7..697249e73 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/IpsProtectModeObject.h +++ b/cfw/include/huaweicloud/cfw/v1/model/IpsProtectModeObject.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT IpsProtectModeObject /// IpsProtectModeObject members /// - /// ips防护模式id + /// ips防护模式id,此处为防护对象id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)获得,通过返回值中的data.records.protect_objects.object_id(.表示各对象之间层级的区分)获得 /// std::string getId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/IpsSwitchDTO.h b/cfw/include/huaweicloud/cfw/v1/model/IpsSwitchDTO.h index e6a20c73d..fba7fdae3 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,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。 + /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)获得,通过返回值中的data.records.protect_objects.object_id(.表示各对象之间层级的区分)获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。此处仅取type为0的防护对象id,可通过data.records.protect_objects.type(.表示各对象之间层级的区分)获得。 /// std::string getObjectId() const; @@ -57,7 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT IpsSwitchDTO void setIpsType(int32_t value); /// - /// ips特性开关状态 + /// ips特性开关状态,0表示关闭,1表示开启 /// int32_t getStatus() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/IpsSwitchResponseDTO.h b/cfw/include/huaweicloud/cfw/v1/model/IpsSwitchResponseDTO.h index 85a4f9921..302c3538c 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/IpsSwitchResponseDTO.h +++ b/cfw/include/huaweicloud/cfw/v1/model/IpsSwitchResponseDTO.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT IpsSwitchResponseDTO /// IpsSwitchResponseDTO members /// - /// ips开关id + /// ips开关id,此处为互联网边界防护对象id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)获得,通过返回值中的data.records.protect_objects.object_id(.表示各对象之间层级的区分)获得 /// std::string getId() const; @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT IpsSwitchResponseDTO void setId(const std::string& value); /// - /// 基础防御状态 + /// 基础防御状态,0表示关闭,1表示开启 /// int32_t getBasicDefenseStatus() const; @@ -57,7 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT IpsSwitchResponseDTO void setBasicDefenseStatus(int32_t value); /// - /// 虚拟补丁状态 + /// 虚拟补丁状态,0表示关闭,1表示开启 /// int32_t getVirtualPatchesStatus() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListAccessControlLogsRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ListAccessControlLogsRequest.h index 783f17b41..f56141c56 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,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// std::string getFwInstanceId() const; @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAccessControlLogsRequest void setFwInstanceId(const std::string& value); /// - /// 规则ID + /// 规则id,可通过[查询防护规则接口](ListAclRules.xml)查询获得,通过返回值中的data.records.rule_id(.表示各对象之间层级的区分)获得。 /// std::string getRuleId() const; @@ -120,7 +120,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAccessControlLogsRequest void setProtocol(const std::string& value); /// - /// 应用协议 + /// 规则应用类型包括:“HTTP”,\"HTTPS\",\"TLS1\",“DNS”,“SSH”,“MYSQL”,“SMTP”,“RDP”,“RDPS”,“VNC”,“POP3”,“IMAP4”,“SMTPS”,“POP3S”,“FTPS”,“ANY”,“BGP”等。 /// std::string getApp() const; @@ -174,7 +174,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAccessControlLogsRequest void setLogType(const std::string& value); /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListAclRuleHitCountRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ListAclRuleHitCountRequest.h index 9a8e0a29a..1b2b3e573 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ListAclRuleHitCountRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ListAclRuleHitCountRequest.h @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAclRuleHitCountRequest /// ListAclRuleHitCountRequest members /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAclRuleHitCountRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// 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 72941df64..0b46023de 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,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。 + /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)获得,通过返回值中的data.records.protect_objects.object_id(.表示各对象之间层级的区分)获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id,type可通过data.records.protect_objects.type(.表示各对象之间层级的区分)获得 /// std::string getObjectId() const; @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAclRulesRequest void setObjectId(const std::string& value); /// - /// 规则Type0:互联网规则,1:vpc规则, 2:nat规则 + /// 规则类型,0:互联网规则,1:vpc规则,2:nat规则 /// int32_t getType() const; @@ -66,7 +66,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAclRulesRequest void setIp(const std::string& value); /// - /// 名称 + /// 规则名称 /// std::string getName() const; @@ -84,7 +84,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAclRulesRequest void setDirection(int32_t value); /// - /// 规则下发状态 0:禁用,1:启用 + /// 规则下发状态 0:禁用,1:启用 /// int32_t getStatus() const; @@ -93,7 +93,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAclRulesRequest void setStatus(int32_t value); /// - /// 动作0:permit,1:deny + /// 动作0:permit,1:deny /// int32_t getActionType() const; @@ -102,7 +102,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAclRulesRequest void setActionType(int32_t value); /// - /// 地址类型0 ipv4 + /// 地址类型,0表示ipv4,1表示ipv6 /// int32_t getAddressType() const; @@ -129,7 +129,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAclRulesRequest void setOffset(int32_t value); /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; @@ -138,7 +138,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAclRulesRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// std::string getFwInstanceId() const; @@ -147,7 +147,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAclRulesRequest void setFwInstanceId(const std::string& value); /// - /// 标签id + /// 规则标签id,创建规则时产生。 /// std::string getTagsId() const; @@ -183,7 +183,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAclRulesRequest void setService(const std::string& value); /// - /// 应用 + /// 规则应用类型包括:“HTTP”,\"HTTPS\",\"TLS1\",“DNS”,“SSH”,“MYSQL”,“SMTP”,“RDP”,“RDPS”,“VNC”,“POP3”,“IMAP4”,“SMTPS”,“POP3S”,“FTPS”,“ANY”,“BGP”等。 /// std::string getApplication() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListAddressItemsRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ListAddressItemsRequest.h index d3f85e653..e5ff40be0 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ListAddressItemsRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ListAddressItemsRequest.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAddressItemsRequest /// ListAddressItemsRequest members /// - /// 地址组id + /// 地址组id,可通过[查询地址组列表接口](ListAddressSets.xml)查询获得,通过返回值中的data.records.set_id(.表示各对象之间层级的区分)获得。 /// std::string getSetId() const; @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAddressItemsRequest void setSetId(const std::string& value); /// - /// 关键字 + /// 关键字,包括地址组成员名称或描述的一部分 /// std::string getKeyWord() const; @@ -84,7 +84,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAddressItemsRequest void setAddress(const std::string& value); /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; @@ -93,7 +93,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAddressItemsRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// 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 1177e2bce..2aea86138 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ListAddressSetDetailRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ListAddressSetDetailRequest.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAddressSetDetailRequest /// ListAddressSetDetailRequest members /// - /// 地址组id + /// 地址组id,可通过[查询地址组列表接口](ListAddressSets.xml)查询获得,通过返回值中的data.records.set_id(.表示各对象之间层级的区分)获得。 /// std::string getSetId() const; @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAddressSetDetailRequest void setSetId(const std::string& value); /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; @@ -57,7 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAddressSetDetailRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// 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 bd3a937b0..72737e683 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,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),type为0的为互联网边界防护对象id。 + /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)获得,通过返回值中的data.records.protect_objects.object_id(.表示各对象之间层级的区分)获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id,type可通过data.records.protect_objects.type(.表示各对象之间层级的区分)获得 /// std::string getObjectId() const; @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAddressSetsRequest void setObjectId(const std::string& value); /// - /// 关键字 + /// 关键字,包括地址组名称或描述的一部分 /// std::string getKeyWord() const; @@ -84,7 +84,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAddressSetsRequest void setAddress(const std::string& value); /// - /// 地址类型0 ipv4,1 ipv6 + /// 地址类型0 ipv4,1 ipv6 /// int32_t getAddressType() const; @@ -93,7 +93,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAddressSetsRequest void setAddressType(int32_t value); /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; @@ -102,7 +102,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAddressSetsRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// std::string getFwInstanceId() const; @@ -111,7 +111,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAddressSetsRequest void setFwInstanceId(const std::string& value); /// - /// 查询地址组类型,0表示自定义地址组,1表示预定义地址组 + /// 查询地址组类型,0表示自定义地址组,1表示预定义地址组,当address_set_type不为0时,query_address_set_type为1时才可以生效。 /// int32_t getQueryAddressSetType() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListAttackLogsRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ListAttackLogsRequest.h index 6fbf07a7d..bedcc0658 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ListAttackLogsRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ListAttackLogsRequest.h @@ -102,7 +102,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAttackLogsRequest void setProtocol(const std::string& value); /// - /// 应用协议 + /// 规则应用类型包括:“HTTP”,\"HTTPS\",\"TLS1\",“DNS”,“SSH”,“MYSQL”,“SMTP”,“RDP”,“RDPS”,“VNC”,“POP3”,“IMAP4”,“SMTPS”,“POP3S”,“FTPS”,“ANY”,“BGP”等。 /// std::string getApp() const; @@ -147,7 +147,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAttackLogsRequest void setLimit(int32_t value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// std::string getFwInstanceId() const; @@ -201,7 +201,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListAttackLogsRequest void setLevel(const std::string& value); /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListBlackWhiteListsRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ListBlackWhiteListsRequest.h index cd616f040..90fb88b5d 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,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),type为0的为互联网边界防护对象id。 + /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)获得,通过返回值中的data.records.protect_objects.object_id(.表示各对象之间层级的区分)获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id,type可通过data.records.protect_objects.type(.表示各对象之间层级的区分)获得 /// std::string getObjectId() const; @@ -57,7 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListBlackWhiteListsRequest void setListType(int32_t value); /// - /// IP地址类型0:ipv4,1:ipv6 + /// ip地址类型0:ipv4,1:ipv6 /// int32_t getAddressType() const; @@ -102,7 +102,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListBlackWhiteListsRequest void setOffset(int32_t value); /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; @@ -111,7 +111,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListBlackWhiteListsRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListCaptureResultRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ListCaptureResultRequest.h index 3f4900916..68188f8b5 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ListCaptureResultRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ListCaptureResultRequest.h @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListCaptureResultRequest /// ListCaptureResultRequest members /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// std::string getFwInstanceId() const; @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListCaptureResultRequest void setFwInstanceId(const std::string& value); /// - /// 抓包任务id + /// 抓包任务id,可通过[查询抓包任务接口](ListCaptureTask.xml)查询获得,通过返回值中的data.records.task_id(.表示各对象之间层级的区分)获得。 /// std::string getTaskId() const; @@ -76,7 +76,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListCaptureResultRequest void setIp(const std::vector& value); /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListCaptureTaskRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ListCaptureTaskRequest.h index 08b6f1d6f..fb829aeb2 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ListCaptureTaskRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ListCaptureTaskRequest.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListCaptureTaskRequest /// ListCaptureTaskRequest members /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListCaptureTaskRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListCaptureTaskResponse.h b/cfw/include/huaweicloud/cfw/v1/model/ListCaptureTaskResponse.h index e646c7975..6c4a7ee80 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ListCaptureTaskResponse.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ListCaptureTaskResponse.h @@ -10,7 +10,6 @@ #include #include -#include namespace HuaweiCloud { namespace Sdk { @@ -40,17 +39,17 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListCaptureTaskResponse /// ListCaptureTaskResponse members /// - /// 查询抓包任务返回值。 + /// /// - std::vector& getData(); + HttpQueryCaptureTaskResponseData getData() const; bool dataIsSet() const; void unsetdata(); - void setData(const std::vector& value); + void setData(const HttpQueryCaptureTaskResponseData& value); protected: - std::vector data_; + HttpQueryCaptureTaskResponseData data_; bool dataIsSet_; #ifdef RTTR_FLAG diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListDnsServersRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ListDnsServersRequest.h index 931bbb55b..6dfd42392 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,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)接口获得,默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。若object_Id非空,默认返回object_Id对应墙的信息;填写时object_Id需要属于fw_instance_Id对应的墙。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// std::string getFwInstanceId() const; @@ -66,7 +66,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListDnsServersRequest void setFwInstanceId(const std::string& value); /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListDomainParseDetailRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ListDomainParseDetailRequest.h index 46afdef0c..be983a1ea 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ListDomainParseDetailRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ListDomainParseDetailRequest.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListDomainParseDetailRequest /// ListDomainParseDetailRequest members /// - /// 域名 + /// 域名,如www.test.com /// std::string getDomainName() const; @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListDomainParseDetailRequest void setDomainName(const std::string& value); /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; @@ -57,7 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListDomainParseDetailRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListDomainParseDetailResponse.h b/cfw/include/huaweicloud/cfw/v1/model/ListDomainParseDetailResponse.h index ced1aad39..4aad9a340 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ListDomainParseDetailResponse.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ListDomainParseDetailResponse.h @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListDomainParseDetailResponse /// ListDomainParseDetailResponse members /// - /// 域名id列表 + /// 域名解析ip列表 /// std::vector& getData(); diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListDomainResponseData.h b/cfw/include/huaweicloud/cfw/v1/model/ListDomainResponseData.h index 4a45b3d5e..903c22501 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ListDomainResponseData.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ListDomainResponseData.h @@ -59,7 +59,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListDomainResponseData void setOffset(int32_t value); /// - /// 租户项目id + /// 项目ID /// std::string getProjectId() const; @@ -86,7 +86,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListDomainResponseData void setSetId(const std::string& value); /// - /// 总数 + /// 域名总数 /// int32_t getTotal() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListDomainSetsRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ListDomainSetsRequest.h index ce99fd9ce..0f51f07b2 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ListDomainSetsRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ListDomainSetsRequest.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListDomainSetsRequest /// ListDomainSetsRequest members /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListDomainSetsRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// std::string getFwInstanceId() const; @@ -75,7 +75,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListDomainSetsRequest void setOffset(int32_t value); /// - /// 互联网边界防护对象id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),type为0的为互联网边界防护对象id。 + /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)获得,通过返回值中的data.records.protect_objects.object_id(.表示各对象之间层级的区分)获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id,type可通过data.records.protect_objects.type(.表示各对象之间层级的区分)获得 /// std::string getObjectId() const; @@ -84,7 +84,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListDomainSetsRequest void setObjectId(const std::string& value); /// - /// 关键字 + /// 关键字,可使用域名组名称或描述 /// std::string getKeyWord() const; @@ -102,7 +102,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListDomainSetsRequest void setDomainSetType(int32_t value); /// - /// 配置状态 + /// 配置状态,-1表示未配置态,0表示配置失败,1表示配置成功,2表示配置中,3表示正常,4表示配置异常 /// int32_t getConfigStatus() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListDomainsRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ListDomainsRequest.h index 7546d753f..794b6574d 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ListDomainsRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ListDomainsRequest.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListDomainsRequest /// ListDomainsRequest members /// - /// 域名组id + /// 域名组id,可通过[查询域名组列表接口](ListDomainSets.xml)查询获得,通过返回值中的data.records.set_id(.表示各对象之间层级的区分)获得。 /// std::string getDomainSetId() const; @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListDomainsRequest void setDomainSetId(const std::string& value); /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; @@ -57,7 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListDomainsRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// std::string getFwInstanceId() const; @@ -84,7 +84,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListDomainsRequest void setOffset(int32_t value); /// - /// 域名名称 + /// 域名名称,如www.test.com /// std::string getDomainName() const; @@ -93,7 +93,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListDomainsRequest void setDomainName(const std::string& value); /// - /// 互联网边界防护对象id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),type为0的为互联网边界防护对象id。 + /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)获得,通过返回值中的data.records.protect_objects.object_id(.表示各对象之间层级的区分)获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id,type可通过data.records.protect_objects.type(.表示各对象之间层级的区分)获得 /// std::string getObjectId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListDomainsetsResponseData.h b/cfw/include/huaweicloud/cfw/v1/model/ListDomainsetsResponseData.h index 709bca972..6295fc896 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ListDomainsetsResponseData.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ListDomainsetsResponseData.h @@ -58,7 +58,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListDomainsetsResponseData void setOffset(int32_t value); /// - /// 总数 + /// 域名组总数 /// int32_t getTotal() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListEastWestFirewallRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ListEastWestFirewallRequest.h index d13fbd2bd..f2b952b49 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ListEastWestFirewallRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ListEastWestFirewallRequest.h @@ -57,7 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListEastWestFirewallRequest void setOffset(int32_t value); /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; @@ -66,7 +66,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListEastWestFirewallRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// 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 b01c65aca..2bbc6afc0 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,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。 + /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)获得,通过返回值中的data.records.protect_objects.object_id(.表示各对象之间层级的区分)获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。此处仅取type为0的防护对象id,可通过data.records.protect_objects.type(.表示各对象之间层级的区分)获得。 /// std::string getObjectId() const; @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListEipCountRequest void setObjectId(const std::string& value); /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; @@ -57,7 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListEipCountRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// 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 5e7ac214e..19b5995d3 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,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。 + /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)获得,通过返回值中的data.records.protect_objects.object_id(.表示各对象之间层级的区分)获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。此处仅取type为0的防护对象id,可通过data.records.protect_objects.type(.表示各对象之间层级的区分)获得。 /// std::string getObjectId() const; @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListEipsRequest void setObjectId(const std::string& value); /// - /// 弹性公网ID/弹性公网IP + /// 查询防护EIP列表关键字,可选用弹性公网ID和弹性公网IP /// std::string getKeyWord() const; @@ -93,7 +93,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListEipsRequest void setOffset(int32_t value); /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; @@ -102,7 +102,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListEipsRequest void setEnterpriseProjectId(const std::string& value); /// - /// 设备键 + /// 设备关键字,是eip绑定的资产的名称或id /// std::string getDeviceKey() const; @@ -111,7 +111,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListEipsRequest void setDeviceKey(const std::string& value); /// - /// 地址类型0 ipv4,1 ipv6 + /// 地址类型0 ipv4,1 ipv6 /// int32_t getAddressType() const; @@ -120,7 +120,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListEipsRequest void setAddressType(int32_t value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// std::string getFwInstanceId() const; @@ -129,7 +129,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListEipsRequest void setFwInstanceId(const std::string& value); /// - /// 所绑定防火墙id防火墙名称 + /// 防火墙关键字,可使用防火墙id或名称查询,可通过[防火墙ID获取方式](cfw_02_0028.xml) /// std::string getFwKeyWord() const; @@ -138,7 +138,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListEipsRequest void setFwKeyWord(const std::string& value); /// - /// 弹性公网ip的企业项目id + /// 弹性公网ip的企业项目id,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,租户未开启企业项目时为0 /// std::string getEpsId() const; @@ -147,7 +147,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListEipsRequest void setEpsId(const std::string& value); /// - /// 标签列表信息 + /// 标签列表信息可通过查询EIP服务界面列表标签页签获得 /// std::string getTags() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListFirewallDetailRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ListFirewallDetailRequest.h index 21290bee1..9ae1ffce8 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ListFirewallDetailRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ListFirewallDetailRequest.h @@ -57,7 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListFirewallDetailRequest void setLimit(int32_t value); /// - /// 服务类型 0 南北向防火墙 1 东西向防火墙 + /// 服务类型,目前仅支持0互联网防护 /// int32_t getServiceType() const; @@ -66,7 +66,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListFirewallDetailRequest void setServiceType(int32_t value); /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListFirewallListRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ListFirewallListRequest.h index d40845443..a968ca08d 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ListFirewallListRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ListFirewallListRequest.h @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListFirewallListRequest /// ListFirewallListRequest members /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListFirewallListResponse.h b/cfw/include/huaweicloud/cfw/v1/model/ListFirewallListResponse.h index 913c11ef6..de2e9f381 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ListFirewallListResponse.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ListFirewallListResponse.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListFirewallListResponse /// ListFirewallListResponse members /// - /// 是否支持eps + /// 是否支持企业项目,true表示是,false表示不是 /// bool isUserSupportEps() const; @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListFirewallListResponse void setUserSupportEps(bool value); /// - /// 是否存在ndr + /// 是否存在ndr,true表示是,false表示不是,NDR为原旁路版防火墙,现已停止售卖。 /// bool isHasNdr() const; @@ -57,7 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListFirewallListResponse void setHasNdr(bool value); /// - /// 是否支持按需购买 + /// 是否支持按需购买,true表示是,false表示不是 /// bool isIsSupportPostpaid() const; @@ -66,7 +66,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListFirewallListResponse void setIsSupportPostpaid(bool value); /// - /// 是否支持基础版 + /// 是否支持基础版,true表示是,false表示不是 /// bool isIsSupportBasicVersion() const; @@ -75,7 +75,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListFirewallListResponse void setIsSupportBasicVersion(bool value); /// - /// 是否支持购买专业版 + /// 是否支持购买专业版,true表示是,false表示不是 /// bool isIsSupportBuyProfessional() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListFlowLogsRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ListFlowLogsRequest.h index 5d06b0249..4a890d0df 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,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// std::string getFwInstanceId() const; @@ -129,7 +129,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListFlowLogsRequest void setProtocol(const std::string& value); /// - /// 应用协议 + /// 规则应用类型包括:“HTTP”,\"HTTPS\",\"TLS1\",“DNS”,“SSH”,“MYSQL”,“SMTP”,“RDP”,“RDPS”,“VNC”,“POP3”,“IMAP4”,“SMTPS”,“POP3S”,“FTPS”,“ANY”,“BGP”等。 /// std::string getApp() const; @@ -174,7 +174,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListFlowLogsRequest void setLimit(int32_t value); /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListIpsProtectModeRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ListIpsProtectModeRequest.h index 33f3a56c1..76d79a351 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,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。 + /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)获得,通过返回值中的data.records.protect_objects.object_id(.表示各对象之间层级的区分)获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。此处仅取type为0的防护对象id,可通过data.records.protect_objects.type(.表示各对象之间层级的区分)获得。 /// std::string getObjectId() const; @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListIpsProtectModeRequest void setObjectId(const std::string& value); /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; @@ -57,7 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListIpsProtectModeRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// 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 1a9218c95..167ed4134 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,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。 + /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)获得,通过返回值中的data.records.protect_objects.object_id(.表示各对象之间层级的区分)获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。此处仅取type为0的防护对象id,可通过data.records.protect_objects.type(.表示各对象之间层级的区分)获得。 /// std::string getObjectId() const; @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListIpsSwitchStatusRequest void setObjectId(const std::string& value); /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; @@ -57,7 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListIpsSwitchStatusRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListJobRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ListJobRequest.h index d1a98cfeb..915c13fd6 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ListJobRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ListJobRequest.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListJobRequest /// ListJobRequest members /// - /// 任务ID + /// 创建按需防火墙返回的任务ID,可通过调用[创建防火墙接口](CreateFirewall.xml)返回值获得。返回值中job_id即为此处的job_id /// std::string getJobId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListJobResponse.h b/cfw/include/huaweicloud/cfw/v1/model/ListJobResponse.h index 147e522be..18a6beac4 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ListJobResponse.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ListJobResponse.h @@ -9,9 +9,7 @@ #include #include -#include -#include -#include +#include namespace HuaweiCloud { namespace Sdk { @@ -41,39 +39,17 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListJobResponse /// ListJobResponse members /// - /// 错误码 + /// /// - std::string getErrorCode() const; - bool errorCodeIsSet() const; - void unseterrorCode(); - void setErrorCode(const std::string& value); - - /// - /// 错误描述 - /// - - std::string getErrorMsg() const; - bool errorMsgIsSet() const; - void unseterrorMsg(); - void setErrorMsg(const std::string& value); - - /// - /// 执行结果 - /// - - Object getData() const; + GetCreateFirewallJobResponseData getData() const; bool dataIsSet() const; void unsetdata(); - void setData(const Object& value); + void setData(const GetCreateFirewallJobResponseData& value); protected: - std::string errorCode_; - bool errorCodeIsSet_; - std::string errorMsg_; - bool errorMsgIsSet_; - Object data_; + GetCreateFirewallJobResponseData data_; bool dataIsSet_; #ifdef RTTR_FLAG diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListLogConfigRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ListLogConfigRequest.h index 2bb63cc76..0809674e9 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,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// std::string getFwInstanceId() const; @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListLogConfigRequest void setFwInstanceId(const std::string& value); /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListProtectedVpcsRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ListProtectedVpcsRequest.h index 540e9c0f7..37cc19c38 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,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。 + /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)获得,通过返回值中的data.records.protect_objects.object_id(.表示各对象之间层级的区分)获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。此处仅取type为1的防护对象id,可通过data.records.protect_objects.type(.表示各对象之间层级的区分)获得。 /// std::string getObjectId() const; @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListProtectedVpcsRequest void setObjectId(const std::string& value); /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; @@ -57,7 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListProtectedVpcsRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)获得,默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListRuleAclTagsRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ListRuleAclTagsRequest.h index 5dcadf3df..ddd495592 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ListRuleAclTagsRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ListRuleAclTagsRequest.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListRuleAclTagsRequest /// ListRuleAclTagsRequest members /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListRuleAclTagsRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListRuleHitCountDto.h b/cfw/include/huaweicloud/cfw/v1/model/ListRuleHitCountDto.h index 2d1d22ecd..dfb4a2e15 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ListRuleHitCountDto.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ListRuleHitCountDto.h @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListRuleHitCountDto /// ListRuleHitCountDto members /// - /// 规则id列表 + /// 规则id列表,规则id,可通过[查询防护规则接口](ListAclRules.xml)查询获得,通过返回值中的data.records.rule_id(.表示各对象之间层级的区分)获得。 /// std::vector& getRuleIds(); diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListServiceItemsRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ListServiceItemsRequest.h index b0431f7cd..3b22a0315 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ListServiceItemsRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ListServiceItemsRequest.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListServiceItemsRequest /// ListServiceItemsRequest members /// - /// 服务组id + /// 服务组id,可通过[获取服务组列表接口](ListServiceSets.xml)查询获得,通过返回值中的data.records.set_id(.表示各对象之间层级的区分)获得。 /// std::string getSetId() const; @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListServiceItemsRequest void setSetId(const std::string& value); /// - /// 查询字段 + /// 查询字段,可为服务组成员名称或服务组成员描述的一部分。 /// std::string getKeyWord() const; @@ -75,7 +75,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListServiceItemsRequest void setOffset(int32_t value); /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; @@ -84,7 +84,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListServiceItemsRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ListServiceSetDetailRequest.h b/cfw/include/huaweicloud/cfw/v1/model/ListServiceSetDetailRequest.h index 8f27d8565..1c1e968d4 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ListServiceSetDetailRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ListServiceSetDetailRequest.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListServiceSetDetailRequest /// ListServiceSetDetailRequest members /// - /// 服务组id + /// 服务组id,可通过[获取服务组列表接口](ListServiceSets.xml)查询获得,通过返回值中的data.records.set_id(.表示各对象之间层级的区分)获得。 /// std::string getSetId() const; @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListServiceSetDetailRequest void setSetId(const std::string& value); /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; @@ -57,7 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListServiceSetDetailRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// 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 755087d52..9fe1c89fb 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,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),type为0的为互联网边界防护对象id。 + /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)获得,通过返回值中的data.records.protect_objects.object_id(.表示各对象之间层级的区分)获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id,type可通过data.records.protect_objects.type(.表示各对象之间层级的区分)获得 /// std::string getObjectId() const; @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListServiceSetsRequest void setObjectId(const std::string& value); /// - /// 关键字 + /// 关键字,可使用功能服务组名称和服务组描述的一部分 /// std::string getKeyWord() const; @@ -75,7 +75,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListServiceSetsRequest void setOffset(int32_t value); /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; @@ -84,7 +84,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ListServiceSetsRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/LogConfigDto.h b/cfw/include/huaweicloud/cfw/v1/model/LogConfigDto.h index 9a02f6290..e930449ac 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/LogConfigDto.h +++ b/cfw/include/huaweicloud/cfw/v1/model/LogConfigDto.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT LogConfigDto /// LogConfigDto members /// - /// 防火墙id + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// std::string getFwInstanceId() const; @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT LogConfigDto void setFwInstanceId(const std::string& value); /// - /// 是否开启LTS + /// 是否开启LTS,1表示是,0表示不是 /// int32_t getLtsEnable() const; @@ -57,7 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT LogConfigDto void setLtsEnable(int32_t value); /// - /// LTS日志分组id + /// LTS日志分组id,可通过查询LTS(云日志服务)下查询账号下所有日志组接口获得,通过返回值中的log_groups.log_group_id(.表示各对象之间层级的区分)获得 /// std::string getLtsLogGroupId() const; @@ -66,7 +66,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT LogConfigDto void setLtsLogGroupId(const std::string& value); /// - /// 攻击日志流id + /// 攻击日志流id,可通过查询LTS(云日志服务)下查询指定日志组下的所有日志流接口获得,通过返回值中的log_streams.log_stream_id(.表示各对象之间层级的区分)获得 /// std::string getLtsAttackLogStreamId() const; @@ -75,7 +75,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT LogConfigDto void setLtsAttackLogStreamId(const std::string& value); /// - /// 是否开启攻击日志流 + /// 是否开启攻击日志流,1表示是,0表示不是 /// int32_t getLtsAttackLogStreamEnable() const; @@ -84,7 +84,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT LogConfigDto void setLtsAttackLogStreamEnable(int32_t value); /// - /// 访问控制日志流id + /// 访问控制日志流id,可通过查询LTS(云日志服务)下查询指定日志组下的所有日志流接口获得,通过返回值中的log_streams.log_stream_id(.表示各对象之间层级的区分)获得 /// std::string getLtsAccessLogStreamId() const; @@ -93,7 +93,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT LogConfigDto void setLtsAccessLogStreamId(const std::string& value); /// - /// 是否开启访问控制流 + /// 是否开启访问控制流,1表示是,0表示不是 /// int32_t getLtsAccessLogStreamEnable() const; @@ -102,7 +102,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT LogConfigDto void setLtsAccessLogStreamEnable(int32_t value); /// - /// 流量日志id + /// 流量日志id,可通过查询LTS(云日志服务)下查询指定日志组下的所有日志流接口获得,通过返回值中的log_streams.log_stream_id(.表示各对象之间层级的区分)获得 /// std::string getLtsFlowLogStreamId() const; @@ -111,7 +111,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT LogConfigDto void setLtsFlowLogStreamId(const std::string& value); /// - /// 是否开启流量日志 + /// 是否开启流量日志,1表示是,0表示不是 /// int32_t getLtsFlowLogStreamEnable() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/OrderRuleAclDto.h b/cfw/include/huaweicloud/cfw/v1/model/OrderRuleAclDto.h index e4ac8feb5..ab6687cee 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/OrderRuleAclDto.h +++ b/cfw/include/huaweicloud/cfw/v1/model/OrderRuleAclDto.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT OrderRuleAclDto /// OrderRuleAclDto members /// - /// 目标规则id,添加规则位于此规则之后,非置顶时不能为空,置顶时为空 + /// 目标规则id,添加规则位于此规则之后,非置顶时不能为空,置顶时为空,目标规则id可以通过[查询防护规则接口](ListAclRules.xml)获得,通过返回值中的data.records.rule_id(.表示各对象之间层级的区分)获得。 /// std::string getDestRuleId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/SuccessRsp_data.h b/cfw/include/huaweicloud/cfw/v1/model/OrderRuleId.h similarity index 73% rename from cfw/include/huaweicloud/cfw/v1/model/SuccessRsp_data.h rename to cfw/include/huaweicloud/cfw/v1/model/OrderRuleId.h index a861e48e4..b7e01e3b6 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/SuccessRsp_data.h +++ b/cfw/include/huaweicloud/cfw/v1/model/OrderRuleId.h @@ -1,6 +1,6 @@ -#ifndef HUAWEICLOUD_SDK_CFW_V1_MODEL_SuccessRsp_data_H_ -#define HUAWEICLOUD_SDK_CFW_V1_MODEL_SuccessRsp_data_H_ +#ifndef HUAWEICLOUD_SDK_CFW_V1_MODEL_OrderRuleId_H_ +#define HUAWEICLOUD_SDK_CFW_V1_MODEL_OrderRuleId_H_ #include @@ -20,14 +20,14 @@ namespace Model { using namespace HuaweiCloud::Sdk::Core::Utils; using namespace HuaweiCloud::Sdk::Core::Http; /// -/// 响应体 +/// /// -class HUAWEICLOUD_CFW_V1_EXPORT SuccessRsp_data +class HUAWEICLOUD_CFW_V1_EXPORT OrderRuleId : public ModelBase { public: - SuccessRsp_data(); - virtual ~SuccessRsp_data(); + OrderRuleId(); + virtual ~OrderRuleId(); ///////////////////////////////////////////// /// ModelBase overrides @@ -36,10 +36,10 @@ class HUAWEICLOUD_CFW_V1_EXPORT SuccessRsp_data web::json::value toJson() const override; bool fromJson(const web::json::value& json) override; ///////////////////////////////////////////// - /// SuccessRsp_data members + /// OrderRuleId members /// - /// 标识ID + /// 规则id /// std::string getId() const; @@ -61,4 +61,4 @@ class HUAWEICLOUD_CFW_V1_EXPORT SuccessRsp_data } } -#endif // HUAWEICLOUD_SDK_CFW_V1_MODEL_SuccessRsp_data_H_ +#endif // HUAWEICLOUD_SDK_CFW_V1_MODEL_OrderRuleId_H_ diff --git a/cfw/include/huaweicloud/cfw/v1/model/ProtectObjectVO.h b/cfw/include/huaweicloud/cfw/v1/model/ProtectObjectVO.h index afb0da32b..272876cd2 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,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。 + /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id。 /// std::string getObjectId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/QueryFireWallInstanceDto.h b/cfw/include/huaweicloud/cfw/v1/model/QueryFireWallInstanceDto.h index 50e1bfa6e..d3d4b727e 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/QueryFireWallInstanceDto.h +++ b/cfw/include/huaweicloud/cfw/v1/model/QueryFireWallInstanceDto.h @@ -41,7 +41,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT QueryFireWallInstanceDto /// QueryFireWallInstanceDto members /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; @@ -50,7 +50,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT QueryFireWallInstanceDto void setEnterpriseProjectId(const std::string& value); /// - /// 查询关键字 + /// 查询关键字,可为防火墙id或防火墙名称的一部分。可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// std::string getKeyWord() const; @@ -59,7 +59,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT QueryFireWallInstanceDto void setKeyWord(const std::string& value); /// - /// 标签列表 + /// 标签列表,可通过查询标签服务查询标签接口获得,返回值即为标签列表 /// std::vector& getTags(); diff --git a/cfw/include/huaweicloud/cfw/v1/model/ResourceTag.h b/cfw/include/huaweicloud/cfw/v1/model/ResourceTag.h index f2346f7f4..1eacea405 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ResourceTag.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ResourceTag.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ResourceTag /// ResourceTag members /// - /// 键 + /// 标签键 /// std::string getKey() const; @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ResourceTag void setKey(const std::string& value); /// - /// 值 + /// 标签值 /// std::string getValue() const; @@ -57,7 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ResourceTag void setValue(const std::string& value); /// - /// 更新时间 + /// 标签更新时间 /// std::string getUpdateTime() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/RuleAclListResponseDTO_data.h b/cfw/include/huaweicloud/cfw/v1/model/RuleAclListResponseDTO_data.h index ec112ecf5..a1a8fb859 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/RuleAclListResponseDTO_data.h +++ b/cfw/include/huaweicloud/cfw/v1/model/RuleAclListResponseDTO_data.h @@ -22,7 +22,7 @@ namespace Model { using namespace HuaweiCloud::Sdk::Core::Utils; using namespace HuaweiCloud::Sdk::Core::Http; /// -/// data +/// 查询规则列表返回值数据 /// class HUAWEICLOUD_CFW_V1_EXPORT RuleAclListResponseDTO_data : public ModelBase @@ -59,7 +59,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleAclListResponseDTO_data void setLimit(int32_t value); /// - /// 查询总条数 + /// 查询规则列表总条数 /// int32_t getTotal() const; @@ -77,7 +77,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleAclListResponseDTO_data void setObjectId(const std::string& value); /// - /// records + /// 查询规则列表记录 /// std::vector& getRecords(); 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 927ef432d..946999578 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/RuleAclListResponseDTO_data_records.h +++ b/cfw/include/huaweicloud/cfw/v1/model/RuleAclListResponseDTO_data_records.h @@ -51,7 +51,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleAclListResponseDTO_data_records void setRuleId(const std::string& value); /// - /// 地址类型0 ipv4,1 ipv6 + /// 地址类型0 ipv4,1 ipv6 /// int32_t getAddressType() const; @@ -78,7 +78,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleAclListResponseDTO_data_records void setDirection(int32_t value); /// - /// 动作0:permit,1:deny + /// 动作0:permit,1:deny /// int32_t getActionType() const; @@ -87,7 +87,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleAclListResponseDTO_data_records void setActionType(int32_t value); /// - /// 规则下发状态 0:禁用,1:启用 + /// 规则下发状态 0:禁用,1:启用 /// int32_t getStatus() const; @@ -123,7 +123,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleAclListResponseDTO_data_records void setLongConnectEnable(int32_t value); /// - /// 长连接时长小时 + /// 长连接时长对应小时 /// int64_t getLongConnectTimeHour() const; @@ -132,7 +132,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleAclListResponseDTO_data_records void setLongConnectTimeHour(int64_t value); /// - /// 长连接时长分钟 + /// 长连接时长对应分钟 /// int64_t getLongConnectTimeMinute() const; @@ -177,7 +177,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleAclListResponseDTO_data_records void setService(const RuleServiceDtoForResponse& value); /// - /// 规则type,0:互联网规则,1:vpc规则,2:nat规则 + /// 规则类型,0:互联网规则,1:vpc规则,2:nat规则 /// int32_t getType() const; @@ -186,7 +186,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleAclListResponseDTO_data_records void setType(int32_t value); /// - /// 创建时间 + /// 规则创建时间,例如:\"2024-08-12 08:40:00\" /// std::string getCreatedDate() const; @@ -195,7 +195,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleAclListResponseDTO_data_records void setCreatedDate(const std::string& value); /// - /// 最后开启时间 + /// 规则最后开启时间,例如:\"2024-08-12 08:40:00\" /// std::string getLastOpenTime() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/RuleAddressDto.h b/cfw/include/huaweicloud/cfw/v1/model/RuleAddressDto.h index 6b462e627..5b8c13e64 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/RuleAddressDto.h +++ b/cfw/include/huaweicloud/cfw/v1/model/RuleAddressDto.h @@ -42,7 +42,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleAddressDto /// RuleAddressDto members /// - /// 源类型0手工输入,1关联IP地址组,2域名,3地理位置,4域名组,5多对象,6域名组-DNS解析,7域名组-URL过滤。 + /// 地址类型0手工输入,1关联IP地址组,2域名,3地理位置,4域名组,5多对象,6域名组-网络型,7域名组-应用型。 /// int32_t getType() const; @@ -51,7 +51,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleAddressDto void setType(int32_t value); /// - /// 源类型0 ipv4,1 ipv6 + /// 地址类型0 ipv4,1 ipv6,当type为0手动输入类型时不能为空 /// int32_t getAddressType() const; @@ -60,7 +60,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleAddressDto void setAddressType(int32_t value); /// - /// 源IP,手动类型不能为空,自动及domain类型为空 + /// IP地址信息,当type为0手动输入类型时不能为空 /// std::string getAddress() const; @@ -69,7 +69,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleAddressDto void setAddress(const std::string& value); /// - /// 关联IP地址组ID,自动类型不能为空,手动类型合domain类型为空 + /// 关联IP地址组ID,当type为1关联IP地址组类型时不能为空,可通过[查询地址组列表接口](ListAddressSets.xml)查询获得,通过返回值中的data.records.set_id(.表示各对象之间层级的区分)获得。 /// std::string getAddressSetId() const; @@ -78,7 +78,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleAddressDto void setAddressSetId(const std::string& value); /// - /// 地址组名称 + /// 关联IP地址组名称,当type为1关联IP地址组类型时不能为空,可通过[查询地址组列表接口](ListAddressSets.xml)查询获得,通过返回值中的data.records.name(.表示各对象之间层级的区分)获得。 /// std::string getAddressSetName() const; @@ -87,7 +87,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleAddressDto void setAddressSetName(const std::string& value); /// - /// 域名地址名称,域名类型时不能为空,手动类型及自动类型时为空 + /// type为2(域名)和7(应用域名组)具体内容根据type中7修改后的类型名称 /// std::string getDomainAddressName() const; @@ -96,7 +96,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleAddressDto void setDomainAddressName(const std::string& value); /// - /// 规则region列表json值 + /// 规则地域列表json值 /// std::string getRegionListJson() const; @@ -105,7 +105,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleAddressDto void setRegionListJson(const std::string& value); /// - /// 规则region列表 + /// 规则地域列表 /// std::vector& getRegionList(); @@ -114,7 +114,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleAddressDto void setRegionList(const std::vector& value); /// - /// 域名组id + /// 域名组id,type为4(域名组)或7(域名组-应用型)时不能为空。可通过[查询域名组列表接口](ListDomainSets.xml)查询获得,通过返回值中的data.records.set_id(.表示各对象之间层级的区分)获得。 /// std::string getDomainSetId() const; @@ -123,7 +123,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleAddressDto void setDomainSetId(const std::string& value); /// - /// 域名组名称 + /// 域名组名称,type为4(域名组)或7(域名组-应用型)时不能为空。可通过[查询域名组列表接口](ListDomainSets.xml)查询获得,通过返回值中的data.records.name(.表示各对象之间层级的区分)获得。 /// std::string getDomainSetName() const; @@ -132,7 +132,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleAddressDto void setDomainSetName(const std::string& value); /// - /// IP地址列表 + /// IP地址列表,当type为5(多对象)时不能为空。 /// std::vector& getIpAddress(); @@ -141,7 +141,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleAddressDto void setIpAddress(const std::vector& value); /// - /// 地址组列表 + /// 地址组id列表,当type为5(多对象)时不能为空。地址组id可通过[查询地址组列表接口](ListAddressSets.xml)查询获得,通过返回值中的data.records.set_id(.表示各对象之间层级的区分)获得。查询条件中query_address_set_type需要设置为0自定义地址组。 /// std::vector& getAddressGroup(); @@ -159,7 +159,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleAddressDto void setAddressGroupNames(const std::vector& value); /// - /// 地址组类型,0表示自定义地址组,1表示WAF回源IP地址组,2表示DDoS回源IP地址组,3表示NAT64转换地址组 + /// 地址组类型,当type为1(关联IP地址组)时不能为空。0表示自定义地址组,1表示WAF回源IP地址组,2表示DDoS回源IP地址组,3表示NAT64转换地址组 /// int32_t getAddressSetType() const; @@ -168,7 +168,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleAddressDto void setAddressSetType(int32_t value); /// - /// 预定义地址组列表 + /// 预定义地址组id列表,当type为5(多对象)时不能为空。地址组id可通过[查询地址组列表接口](ListAddressSets.xml)查询获得,通过返回值中的data.records.set_id(.表示各对象之间层级的区分)获得。查询条件中query_address_set_type需要设置为1预定义地址组。 /// std::vector& getPredefinedGroup(); diff --git a/cfw/include/huaweicloud/cfw/v1/model/RuleAddressDtoForRequest.h b/cfw/include/huaweicloud/cfw/v1/model/RuleAddressDtoForRequest.h index c4896d857..2ae9cf4a0 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/RuleAddressDtoForRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/RuleAddressDtoForRequest.h @@ -41,7 +41,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleAddressDtoForRequest /// RuleAddressDtoForRequest members /// - /// 源类型0手工输入,1关联IP地址组,2域名,3地理位置,4域名组,5多对象,6域名组-DNS解析,7域名组-URL过滤。 + /// 输入类型0手工输入,1关联IP地址组,2域名,3地理位置,4域名组,5多对象,6域名组-网络型,7域名组-应用型。 /// int32_t getType() const; @@ -50,7 +50,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleAddressDtoForRequest void setType(int32_t value); /// - /// 源类型0 ipv4,1 ipv6 + /// 地址类型0 ipv4,1 ipv6,当type为0手动输入类型时不能为空 /// int32_t getAddressType() const; @@ -59,7 +59,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleAddressDtoForRequest void setAddressType(int32_t value); /// - /// 源IP,手动类型不能为空,自动及domain类型为空 + /// IP地址信息,当type为0手动输入类型时不能为空 /// std::string getAddress() const; @@ -68,7 +68,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleAddressDtoForRequest void setAddress(const std::string& value); /// - /// 关联IP地址组ID,自动类型不能为空,手动类型合domain类型为空 + /// 关联IP地址组ID,当type为1关联IP地址组类型时不能为空,可通过[查询地址组列表接口](ListAddressSets.xml)查询获得,通过返回值中的data.records.set_id(.表示各对象之间层级的区分)获得。 /// std::string getAddressSetId() const; @@ -77,7 +77,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleAddressDtoForRequest void setAddressSetId(const std::string& value); /// - /// 地址组名称 + /// 关联IP地址组名称,当type为1关联IP地址组类型时不能为空,可通过[查询地址组列表接口](ListAddressSets.xml)查询获得,通过返回值中的data.records.name(.表示各对象之间层级的区分)获得。 /// std::string getAddressSetName() const; @@ -86,7 +86,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleAddressDtoForRequest void setAddressSetName(const std::string& value); /// - /// 域名地址名称,域名类型时不能为空,手动类型及自动类型时为空 + /// type为2(域名)和7(应用域名组)具体内容根据type中7修改后的类型名称 /// std::string getDomainAddressName() const; @@ -95,7 +95,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleAddressDtoForRequest void setDomainAddressName(const std::string& value); /// - /// 规则region列表json值 + /// 规则地域列表json值 /// std::string getRegionListJson() const; @@ -104,7 +104,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleAddressDtoForRequest void setRegionListJson(const std::string& value); /// - /// 规则region列表 + /// 规则地域列表 /// std::vector& getRegionList(); @@ -113,7 +113,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleAddressDtoForRequest void setRegionList(const std::vector& value); /// - /// 域名组id + /// 域名组id,type为4(域名组)或7(域名组-应用型)时不能为空。可通过[查询域名组列表接口](ListDomainSets.xml)查询获得,通过返回值中的data.records.set_id(.表示各对象之间层级的区分)获得。 /// std::string getDomainSetId() const; @@ -122,7 +122,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleAddressDtoForRequest void setDomainSetId(const std::string& value); /// - /// 域名组名称 + /// 域名组名称,type为4(域名组)或7(域名组-应用型)时不能为空。可通过[查询域名组列表接口](ListDomainSets.xml)查询获得,通过返回值中的data.records.name(.表示各对象之间层级的区分)获得。 /// std::string getDomainSetName() const; @@ -131,7 +131,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleAddressDtoForRequest void setDomainSetName(const std::string& value); /// - /// IP地址列表 + /// IP地址列表,当type为5(多对象)时不能为空。 /// std::vector& getIpAddress(); @@ -140,7 +140,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleAddressDtoForRequest void setIpAddress(const std::vector& value); /// - /// 地址组类型,0表示自定义地址组,1表示WAF回源IP地址组,2表示DDoS回源IP地址组,3表示NAT64转换地址组 + /// 地址组类型,当type为1(关联IP地址组)时不能为空。0表示自定义地址组,1表示WAF回源IP地址组,2表示DDoS回源IP地址组,3表示NAT64转换地址组 /// int32_t getAddressSetType() const; @@ -149,7 +149,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleAddressDtoForRequest void setAddressSetType(int32_t value); /// - /// 预定义地址组列表 + /// 预定义地址组id列表,当type为5(多对象)时不能为空。地址组id可通过[查询地址组列表接口](ListAddressSets.xml)查询获得,通过返回值中的data.records.set_id(.表示各对象之间层级的区分)获得。查询条件中query_address_set_type需要设置为1预定义地址组。 /// std::vector& getPredefinedGroup(); @@ -158,7 +158,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleAddressDtoForRequest void setPredefinedGroup(const std::vector& value); /// - /// 地址组列表 + /// 地址组id列表,当type为5(多对象)时不能为空。地址组id可通过[查询地址组列表接口](ListAddressSets.xml)查询获得,通过返回值中的data.records.set_id(.表示各对象之间层级的区分)获得。查询条件中query_address_set_type需要设置为0自定义地址组。 /// std::vector& getAddressGroup(); diff --git a/cfw/include/huaweicloud/cfw/v1/model/RuleAddressDtoForResponse.h b/cfw/include/huaweicloud/cfw/v1/model/RuleAddressDtoForResponse.h index 1999b5a24..2dea73735 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/RuleAddressDtoForResponse.h +++ b/cfw/include/huaweicloud/cfw/v1/model/RuleAddressDtoForResponse.h @@ -42,7 +42,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleAddressDtoForResponse /// RuleAddressDtoForResponse members /// - /// 源类型0手工输入,1关联IP地址组,2域名,3地理位置,4域名组,5多对象,6域名组-DNS解析,7域名组-URL过滤。 + /// 地址类型0手工输入,1关联IP地址组,2域名,3地理位置,4域名组,5多对象,6域名组-DNS解析,7域名组-应用型。 /// int32_t getType() const; @@ -51,7 +51,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleAddressDtoForResponse void setType(int32_t value); /// - /// 源类型0 ipv4,1 ipv6 + /// 地址类型0 ipv4,1 ipv6,当type为0手动输入类型时不能为空 /// int32_t getAddressType() const; @@ -60,7 +60,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleAddressDtoForResponse void setAddressType(int32_t value); /// - /// 源IP,手动类型不能为空,自动及domain类型为空 + /// IP地址信息 /// std::string getAddress() const; @@ -69,7 +69,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleAddressDtoForResponse void setAddress(const std::string& value); /// - /// 关联IP地址组ID,自动类型不能为空,手动类型合domain类型为空 + /// 关联IP地址组ID /// std::string getAddressSetId() const; @@ -87,7 +87,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleAddressDtoForResponse void setAddressSetName(const std::string& value); /// - /// 域名地址名称,域名类型时不能为空,手动类型及自动类型时为空 + /// 域名地址名称 /// std::string getDomainAddressName() const; @@ -96,7 +96,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleAddressDtoForResponse void setDomainAddressName(const std::string& value); /// - /// 规则region列表json值 + /// 规则地域列表json值 /// std::string getRegionListJson() const; @@ -105,7 +105,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleAddressDtoForResponse void setRegionListJson(const std::string& value); /// - /// 规则region列表 + /// 规则地域列表 /// std::vector& getRegionList(); @@ -141,7 +141,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleAddressDtoForResponse void setIpAddress(const std::vector& value); /// - /// 地址组列表 + /// 地址组id列表 /// std::vector& getAddressGroup(); diff --git a/cfw/include/huaweicloud/cfw/v1/model/RuleHitCountObject.h b/cfw/include/huaweicloud/cfw/v1/model/RuleHitCountObject.h index 8bffa035e..fdd4b3ab4 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/RuleHitCountObject.h +++ b/cfw/include/huaweicloud/cfw/v1/model/RuleHitCountObject.h @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleHitCountObject void setRuleId(const std::string& value); /// - /// 规则击中次数 + /// 规则击中次数,当acl规则被触发时,对应规则id的击中次数会添加一次。 /// int32_t getRuleHitCount() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/RuleHitCountRecords.h b/cfw/include/huaweicloud/cfw/v1/model/RuleHitCountRecords.h index 9718db0da..6255f9e80 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/RuleHitCountRecords.h +++ b/cfw/include/huaweicloud/cfw/v1/model/RuleHitCountRecords.h @@ -58,7 +58,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleHitCountRecords void setOffset(int32_t value); /// - /// 总数 + /// 获取规则击中次数总条数 /// int32_t getTotal() const; @@ -67,7 +67,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleHitCountRecords void setTotal(int32_t value); /// - /// 规则击中次数列表 + /// 规则击中次数信息列表 /// std::vector& getRecords(); diff --git a/cfw/include/huaweicloud/cfw/v1/model/RuleId.h b/cfw/include/huaweicloud/cfw/v1/model/RuleId.h index e6b7ad9eb..6c852cf84 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/RuleId.h +++ b/cfw/include/huaweicloud/cfw/v1/model/RuleId.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleId /// RuleId members /// - /// id + /// 规则id /// std::string getId() const; @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleId void setId(const std::string& value); /// - /// 名称 + /// 规则名称 /// std::string getName() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/RuleServiceDto.h b/cfw/include/huaweicloud/cfw/v1/model/RuleServiceDto.h index b93faf4cf..9c60d27de 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/RuleServiceDto.h +++ b/cfw/include/huaweicloud/cfw/v1/model/RuleServiceDto.h @@ -51,7 +51,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleServiceDto void setType(int32_t value); /// - /// 协议类型:TCP为6, UDP为17,ICMP为1,ICMPV6为58,ANY为-1,手动类型不为空,自动类型为空 + /// 协议类型:TCP为6,UDP为17,ICMP为1,ICMPV6为58,ANY为-1,type为0手动类型时不能为空。 /// int32_t getProtocol() const; @@ -60,7 +60,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleServiceDto void setProtocol(int32_t value); /// - /// 协议列表,协议类型:TCP为6, UDP为17,ICMP为1,ICMPV6为58,ANY为-1,手动类型不为空,自动类型为空 + /// 协议列表,协议类型:TCP为6,UDP为17,ICMP为1,ICMPV6为58,ANY为-1,type为0手动类型时不能为空。 /// std::vector& getProtocols(); @@ -87,7 +87,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleServiceDto void setDestPort(const std::string& value); /// - /// 服务组id,手动类型为空,自动类型为非空 + /// 服务组id,当type为1(关联IP地址组)时不能为空,可通过[获取服务组列表接口](ListServiceSets.xml)查询获得,通过返回值中的data.records.set_id(.表示各对象之间层级的区分)获得。 /// std::string getServiceSetId() const; @@ -96,7 +96,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleServiceDto void setServiceSetId(const std::string& value); /// - /// 服务组名称 + /// 服务组名称,当type为1(关联IP地址组)时不能为空,可通过[获取服务组列表接口](ListServiceSets.xml)查询获得,通过返回值中的data.records.name(.表示各对象之间层级的区分)获得。 /// std::string getServiceSetName() const; @@ -114,7 +114,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleServiceDto void setCustomService(const std::vector& value); /// - /// 预定义服务组列表 + /// 预定义服务组id列表,服务组id可通过[获取服务组列表接口](ListServiceSets.xml)查询获得,通过返回值中的data.records.set_id(.表示各对象之间层级的区分)获得。查询条件中query_service_set_type需要设置为1预定义服务组。 /// std::vector& getPredefinedGroup(); @@ -123,7 +123,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleServiceDto void setPredefinedGroup(const std::vector& value); /// - /// 服务组列表 + /// 服务组id列表,服务组id可通过[获取服务组列表接口](ListServiceSets.xml)查询获得,通过返回值中的data.records.set_id(.表示各对象之间层级的区分)获得。查询条件中query_service_set_type需要设置为0自定义服务组。 /// std::vector& getServiceGroup(); diff --git a/cfw/include/huaweicloud/cfw/v1/model/RuleServiceDtoForResponse.h b/cfw/include/huaweicloud/cfw/v1/model/RuleServiceDtoForResponse.h index 250f0bf1e..bb85ec7ef 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/RuleServiceDtoForResponse.h +++ b/cfw/include/huaweicloud/cfw/v1/model/RuleServiceDtoForResponse.h @@ -51,7 +51,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleServiceDtoForResponse void setType(int32_t value); /// - /// 协议类型:TCP为6, UDP为17,ICMP为1,ICMPV6为58,ANY为-1,手动类型不为空,自动类型为空 + /// 协议类型:TCP为6,UDP为17,ICMP为1,ICMPV6为58,ANY为-1,手动类型不为空,自动类型为空 /// int32_t getProtocol() const; @@ -60,7 +60,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleServiceDtoForResponse void setProtocol(int32_t value); /// - /// 协议列表,协议类型:TCP为6, UDP为17,ICMP为1,ICMPV6为58,ANY为-1,手动类型不为空,自动类型为空 + /// 协议列表,协议类型:TCP为6,UDP为17,ICMP为1,ICMPV6为58,ANY为-1,手动类型不为空,自动类型为空 /// std::vector& getProtocols(); @@ -87,7 +87,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleServiceDtoForResponse void setDestPort(const std::string& value); /// - /// 服务组id,手动类型为空,自动类型为非空 + /// 服务组id /// std::string getServiceSetId() const; @@ -114,7 +114,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT RuleServiceDtoForResponse void setCustomService(const std::vector& value); /// - /// 服务组列表 + /// 服务组id列表 /// std::vector& getServiceGroup(); diff --git a/cfw/include/huaweicloud/cfw/v1/model/ServiceGroupVO.h b/cfw/include/huaweicloud/cfw/v1/model/ServiceGroupVO.h index d2155ac8a..c7c444fb3 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ServiceGroupVO.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ServiceGroupVO.h @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ServiceGroupVO void setName(const std::string& value); /// - /// 协议列表 + /// 协议列表,协议类型:TCP为6,UDP为17,ICMP为1,ICMPV6为58,ANY为-1 /// std::vector& getProtocols(); @@ -58,7 +58,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ServiceGroupVO void setProtocols(std::vector value); /// - /// 服务组类型,0表示自定义服务组,1表示常用WEB服务,2表示常用远程登录和PING,3表示常用数据库 + /// 服务组类型,0表示自定义服务组,1表示预定义服务组 /// int32_t getServiceSetType() const; @@ -67,7 +67,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ServiceGroupVO void setServiceSetType(int32_t value); /// - /// 服务组ID + /// 服务组id,可通过[获取服务组列表接口](ListServiceSets.xml)查询获得,通过返回值中的data.records.set_id(.表示各对象之间层级的区分)获得。 /// std::string getSetId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ServiceItem.h b/cfw/include/huaweicloud/cfw/v1/model/ServiceItem.h index 77bc08bb8..917088857 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ServiceItem.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ServiceItem.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ServiceItem /// ServiceItem members /// - /// 协议类型:TCP为6, UDP为17,ICMP为1,ICMPV6为58,ANY为-1,手动类型不为空,自动类型为空 + /// 协议类型:TCP为6,UDP为17,ICMP为1,ICMPV6为58,ANY为-1,RuleServiceDto.type为0时不能为空。 /// int32_t getProtocol() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ServiceItemIds_items.h b/cfw/include/huaweicloud/cfw/v1/model/ServiceItemIds_items.h index efd2d088e..3acbe6a8b 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ServiceItemIds_items.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ServiceItemIds_items.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ServiceItemIds_items /// ServiceItemIds_items members /// - /// id值 + /// 服务组成员id /// std::string getId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ServiceItemListResponseDto_data.h b/cfw/include/huaweicloud/cfw/v1/model/ServiceItemListResponseDto_data.h index 6c3ac95dd..1bb3fac7c 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ServiceItemListResponseDto_data.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ServiceItemListResponseDto_data.h @@ -59,7 +59,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ServiceItemListResponseDto_data void setLimit(int32_t value); /// - /// 记录的总数 + /// 服务组成员总数 /// int32_t getTotal() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/ServiceSet.h b/cfw/include/huaweicloud/cfw/v1/model/ServiceSet.h index be06be8a6..e1dddaf10 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ServiceSet.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ServiceSet.h @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ServiceSet void setSetId(const std::string& value); /// - /// 名称 + /// 服务组名称 /// std::string getName() const; @@ -58,7 +58,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ServiceSet void setName(const std::string& value); /// - /// 描述 + /// 服务组描述 /// std::string getDescription() const; @@ -76,7 +76,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ServiceSet void setServiceSetType(int32_t value); /// - /// 引用次数 + /// 服务组被规则引用次数 /// int32_t getRefCount() const; @@ -85,7 +85,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ServiceSet void setRefCount(int32_t value); /// - /// 项目id + /// 项目ID /// std::string getProjectId() const; @@ -94,7 +94,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ServiceSet void setProjectId(const std::string& value); /// - /// 协议类型列表 + /// 协议列表,协议类型:TCP为6,UDP为17,ICMP为1,ICMPV6为58,ANY为-1,type为0手动类型时不能为空。 /// std::vector& getProtocols(); diff --git a/cfw/include/huaweicloud/cfw/v1/model/ServiceSetId.h b/cfw/include/huaweicloud/cfw/v1/model/ServiceSetId.h new file mode 100644 index 000000000..91e3e7f3b --- /dev/null +++ b/cfw/include/huaweicloud/cfw/v1/model/ServiceSetId.h @@ -0,0 +1,75 @@ + +#ifndef HUAWEICLOUD_SDK_CFW_V1_MODEL_ServiceSetId_H_ +#define HUAWEICLOUD_SDK_CFW_V1_MODEL_ServiceSetId_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 ServiceSetId + : public ModelBase +{ +public: + ServiceSetId(); + virtual ~ServiceSetId(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ServiceSetId 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_CFW_V1_MODEL_ServiceSetId_H_ diff --git a/cfw/include/huaweicloud/cfw/v1/model/ServiceSetRecords.h b/cfw/include/huaweicloud/cfw/v1/model/ServiceSetRecords.h index 423abc790..1eb9b5edf 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ServiceSetRecords.h +++ b/cfw/include/huaweicloud/cfw/v1/model/ServiceSetRecords.h @@ -58,7 +58,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ServiceSetRecords void setLimit(int32_t value); /// - /// 查询总数 + /// 查询服务组总数 /// int32_t getTotal() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/SubnetInfo.h b/cfw/include/huaweicloud/cfw/v1/model/SubnetInfo.h index 73ea74908..5cec9a3ff 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/SubnetInfo.h +++ b/cfw/include/huaweicloud/cfw/v1/model/SubnetInfo.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT SubnetInfo /// SubnetInfo members /// - /// 子网id + /// 子网所在的可用区标识,从终端节点获取,参考[终端节点](cfw_02_0003.xml) /// std::string getAvailabilityZone() const; @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT SubnetInfo void setAvailabilityZone(const std::string& value); /// - /// vpc cidr + /// 功能说明:虚拟私有云下可用子网的范围 取值范围: 10.0.0.0/8~24 172.16.0.0/12~24 192.168.0.0/16~24 不指定cidr时,默认值为空 约束:必须是cidr格式,例如:192.168.0.0/16 /// std::string getCidr() const; @@ -75,7 +75,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT SubnetInfo void setId(const std::string& value); /// - /// 子网网关ip + /// 子网的网关,取值范围为子网网段cidr中的ip地址 /// std::string getGatewayIp() const; @@ -84,7 +84,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT SubnetInfo void setGatewayIp(const std::string& value); /// - /// vpc id + /// 创建vpc产生的uuid /// std::string getVpcId() const; @@ -92,15 +92,6 @@ class HUAWEICLOUD_CFW_V1_EXPORT SubnetInfo void unsetvpcId(); void setVpcId(const std::string& value); - /// - /// 子网的状态 - /// - - std::string getStatus() const; - bool statusIsSet() const; - void unsetstatus(); - void setStatus(const std::string& value); - /// /// 是否支持ipv6,boolean值为true表示是,false表示否 /// @@ -124,8 +115,6 @@ class HUAWEICLOUD_CFW_V1_EXPORT SubnetInfo bool gatewayIpIsSet_; std::string vpcId_; bool vpcIdIsSet_; - std::string status_; - bool statusIsSet_; bool ipv6Enable_; bool ipv6EnableIsSet_; diff --git a/cfw/include/huaweicloud/cfw/v1/model/TagsVO.h b/cfw/include/huaweicloud/cfw/v1/model/TagsVO.h index 0299208ed..250177559 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/TagsVO.h +++ b/cfw/include/huaweicloud/cfw/v1/model/TagsVO.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT TagsVO /// TagsVO members /// - /// 标签id + /// 规则id /// std::string getTagId() const; @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT TagsVO void setTagId(const std::string& value); /// - /// 标签键 + /// 规则标签键 /// std::string getTagKey() const; @@ -57,7 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT TagsVO void setTagKey(const std::string& value); /// - /// 标签值 + /// 规则标签值 /// std::string getTagValue() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/UpdateAclRuleOrderRequest.h b/cfw/include/huaweicloud/cfw/v1/model/UpdateAclRuleOrderRequest.h index e8f1afb37..1e6a2bb47 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/UpdateAclRuleOrderRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/UpdateAclRuleOrderRequest.h @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateAclRuleOrderRequest /// UpdateAclRuleOrderRequest members /// - /// 规则id + /// 规则id,可通过[查询防护规则接口](ListAclRules.xml)查询获得,通过返回值中的data.records.rule_id(.表示各对象之间层级的区分)获得。 /// std::string getAclRuleId() const; @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateAclRuleOrderRequest void setAclRuleId(const std::string& value); /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; @@ -58,7 +58,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateAclRuleOrderRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)获得,默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/UpdateAclRuleOrderResponse.h b/cfw/include/huaweicloud/cfw/v1/model/UpdateAclRuleOrderResponse.h index 8d6d36daf..025047afa 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/UpdateAclRuleOrderResponse.h +++ b/cfw/include/huaweicloud/cfw/v1/model/UpdateAclRuleOrderResponse.h @@ -9,7 +9,7 @@ #include #include -#include +#include namespace HuaweiCloud { namespace Sdk { @@ -42,14 +42,14 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateAclRuleOrderResponse /// /// - RuleId getData() const; + OrderRuleId getData() const; bool dataIsSet() const; void unsetdata(); - void setData(const RuleId& value); + void setData(const OrderRuleId& value); protected: - RuleId data_; + OrderRuleId data_; bool dataIsSet_; #ifdef RTTR_FLAG diff --git a/cfw/include/huaweicloud/cfw/v1/model/UpdateAclRuleRequest.h b/cfw/include/huaweicloud/cfw/v1/model/UpdateAclRuleRequest.h index 421111d93..0fed6cb08 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/UpdateAclRuleRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/UpdateAclRuleRequest.h @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateAclRuleRequest /// UpdateAclRuleRequest members /// - /// 规则Id + /// 规则id,可通过[查询防护规则接口](ListAclRules.xml)查询获得,通过返回值中的data.records.rule_id(.表示各对象之间层级的区分)获得。 /// std::string getAclRuleId() const; @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateAclRuleRequest void setAclRuleId(const std::string& value); /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; @@ -58,7 +58,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateAclRuleRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/UpdateAddressSetRequest.h b/cfw/include/huaweicloud/cfw/v1/model/UpdateAddressSetRequest.h index 7cef3fa1d..1b7d50ca6 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/UpdateAddressSetRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/UpdateAddressSetRequest.h @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateAddressSetRequest /// UpdateAddressSetRequest members /// - /// 地址组id + /// 地址组id,可通过[查询地址组列表接口](ListAddressSets.xml)查询获得,通过返回值中的data.records.set_id(.表示各对象之间层级的区分)获得。 /// std::string getSetId() const; @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateAddressSetRequest void setSetId(const std::string& value); /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; @@ -58,7 +58,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateAddressSetRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/UpdateAddressSetResponseData.h b/cfw/include/huaweicloud/cfw/v1/model/UpdateAddressSetResponseData.h index 41bb7118d..bd5385e29 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/UpdateAddressSetResponseData.h +++ b/cfw/include/huaweicloud/cfw/v1/model/UpdateAddressSetResponseData.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateAddressSetResponseData /// UpdateAddressSetResponseData members /// - /// Id + /// 地址组id /// std::string getId() const; @@ -47,10 +47,21 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateAddressSetResponseData 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_; }; diff --git a/cfw/include/huaweicloud/cfw/v1/model/UpdateBlackWhiteListDto.h b/cfw/include/huaweicloud/cfw/v1/model/UpdateBlackWhiteListDto.h index 3c5c2afb7..d1aaeaa11 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 + /// 地址类型0:ipv4,1:ipv6 /// int32_t getAddressType() const; @@ -66,7 +66,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateBlackWhiteListDto void setAddress(const std::string& value); /// - /// 协议类型:TCP为6, UDP为17,ICMP为1,ICMPV6为58,ANY为-1 + /// 协议类型:TCP为6,UDP为17,ICMP为1,ICMPV6为58,ANY为-1 /// int32_t getProtocol() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/UpdateBlackWhiteListRequest.h b/cfw/include/huaweicloud/cfw/v1/model/UpdateBlackWhiteListRequest.h index f5808fd2e..41b29c51f 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/UpdateBlackWhiteListRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/UpdateBlackWhiteListRequest.h @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateBlackWhiteListRequest /// UpdateBlackWhiteListRequest members /// - /// 黑白名单列表id + /// 黑白名单列表id,可通过[查询黑白名单列表接口](ListBlackWhiteLists.xml)查询获得,通过返回值中的data.records.list_id(.表示各对象之间层级的区分)获得。 /// std::string getListId() const; @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateBlackWhiteListRequest void setListId(const std::string& value); /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; @@ -58,7 +58,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateBlackWhiteListRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// std::string getFwInstanceId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/UpdateBlackWhiteListResponse.h b/cfw/include/huaweicloud/cfw/v1/model/UpdateBlackWhiteListResponse.h index 2bfcccbe9..7437099af 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/UpdateBlackWhiteListResponse.h +++ b/cfw/include/huaweicloud/cfw/v1/model/UpdateBlackWhiteListResponse.h @@ -9,7 +9,7 @@ #include #include -#include +#include namespace HuaweiCloud { namespace Sdk { @@ -42,14 +42,14 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateBlackWhiteListResponse /// /// - IdObject getData() const; + BlackWhiteListId getData() const; bool dataIsSet() const; void unsetdata(); - void setData(const IdObject& value); + void setData(const BlackWhiteListId& value); protected: - IdObject data_; + BlackWhiteListId data_; bool dataIsSet_; #ifdef RTTR_FLAG diff --git a/cfw/include/huaweicloud/cfw/v1/model/UpdateDnsServersRequest.h b/cfw/include/huaweicloud/cfw/v1/model/UpdateDnsServersRequest.h index a46b95312..f93417a63 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,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)获得,默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。若object_Id非空,默认返回object_Id对应墙的信息;填写时object_Id需要属于fw_instance_Id对应的墙。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// std::string getFwInstanceId() const; @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateDnsServersRequest void setFwInstanceId(const std::string& value); /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/UpdateDnsServersRequestBody.h b/cfw/include/huaweicloud/cfw/v1/model/UpdateDnsServersRequestBody.h index 97461c099..cdca0d8af 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/UpdateDnsServersRequestBody.h +++ b/cfw/include/huaweicloud/cfw/v1/model/UpdateDnsServersRequestBody.h @@ -41,7 +41,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateDnsServersRequestBody /// UpdateDnsServersRequestBody members /// - /// DNS服务器 + /// DNS服务器列表 /// std::vector& getDnsServer(); @@ -50,7 +50,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateDnsServersRequestBody void setDnsServer(const std::vector& value); /// - /// 健康检查域名 + /// 健康检查域名,可通过[查询dns服务器列表接口](ListDnsServers.xml)查询获得,通过返回值中的data.health_check_domain_name(.表示各对象之间层级的区分)获得。 /// std::string getHealthCheckDomainName() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/UpdateDnsServersRequestBody_dns_server.h b/cfw/include/huaweicloud/cfw/v1/model/UpdateDnsServersRequestBody_dns_server.h index 4da10e085..07534a091 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/UpdateDnsServersRequestBody_dns_server.h +++ b/cfw/include/huaweicloud/cfw/v1/model/UpdateDnsServersRequestBody_dns_server.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateDnsServersRequestBody_dns_server /// UpdateDnsServersRequestBody_dns_server members /// - /// DNS服务器IP + /// DNS服务器IP,可通过[查询dns服务器列表接口](ListDnsServers.xml)查询获得,通过返回值中的data.server_ip(.表示各对象之间层级的区分)获得。 /// std::string getServerIp() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/UpdateDomainSetInfoDto.h b/cfw/include/huaweicloud/cfw/v1/model/UpdateDomainSetInfoDto.h index 8c6e6c203..587fbb05f 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/UpdateDomainSetInfoDto.h +++ b/cfw/include/huaweicloud/cfw/v1/model/UpdateDomainSetInfoDto.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateDomainSetInfoDto /// UpdateDomainSetInfoDto members /// - /// 域名组名称UUID + /// 域名组名称 /// std::string getName() const; @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateDomainSetInfoDto void setName(const std::string& value); /// - /// 描述 + /// 域名组描述 /// std::string getDescription() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/UpdateDomainSetRequest.h b/cfw/include/huaweicloud/cfw/v1/model/UpdateDomainSetRequest.h index 7c3c71ff1..9a936f73c 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 + /// 域名组id,可通过[查询域名组列表接口](ListDomainSets.xml)查询获得,通过返回值中的data.records.set_id(.表示各对象之间层级的区分)获得。 /// std::string getSetId() const; @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateDomainSetRequest void setSetId(const std::string& value); /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/UpdateLogConfigRequest.h b/cfw/include/huaweicloud/cfw/v1/model/UpdateLogConfigRequest.h index 8d1f5790c..700b97e66 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,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取(ListFirewallDetail.xml)。 /// std::string getFwInstanceId() const; @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateLogConfigRequest void setFwInstanceId(const std::string& value); /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/UpdateLogConfigResponse.h b/cfw/include/huaweicloud/cfw/v1/model/UpdateLogConfigResponse.h index a8bd473d2..0e7860b25 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/UpdateLogConfigResponse.h +++ b/cfw/include/huaweicloud/cfw/v1/model/UpdateLogConfigResponse.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateLogConfigResponse /// UpdateLogConfigResponse members /// - /// 日志配置id + /// 更新日志配置返回值,为防火墙id /// std::string getData() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/UpdateRuleAclDto.h b/cfw/include/huaweicloud/cfw/v1/model/UpdateRuleAclDto.h index d4605bbea..ccc807eb0 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/UpdateRuleAclDto.h +++ b/cfw/include/huaweicloud/cfw/v1/model/UpdateRuleAclDto.h @@ -13,7 +13,6 @@ #include #include #include -#include #include namespace HuaweiCloud { @@ -44,7 +43,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateRuleAclDto /// UpdateRuleAclDto members /// - /// 地址类型,0 ipv4,1 ipv6 + /// 地址类型,0表示ipv4,1表示ipv6 /// int32_t getAddressType() const; @@ -62,16 +61,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateRuleAclDto void setName(const std::string& value); /// - /// - /// - - OrderRuleAclDto getSequence() const; - bool sequenceIsSet() const; - void unsetsequence(); - void setSequence(const OrderRuleAclDto& value); - - /// - /// 方向:0表示外到内,1表示内到外【说明:规则type=0:互联网规则 | 2:nat规则时方向值必填】 + /// 方向:0表示外到内,1表示内到外,规则type=0(互联网规则)或者type= 2(nat规则)时方向值必填 /// int32_t getDirection() const; @@ -80,7 +70,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateRuleAclDto void setDirection(int32_t value); /// - /// 动作0:permit,1:deny + /// 规则动作,0表示允许通行(permit),1表示拒绝通行(deny) /// int32_t getActionType() const; @@ -89,7 +79,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateRuleAclDto void setActionType(int32_t value); /// - /// 规则下发状态 0:禁用,1:启用 + /// 规则启用状态,0表示禁用,1表示启用 /// int32_t getStatus() const; @@ -98,7 +88,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateRuleAclDto void setStatus(int32_t value); /// - /// 应用列表 + /// 规则应用列表,规则应用类型包括:“HTTP”,\"HTTPS\",\"TLS1\",“DNS”,“SSH”,“MYSQL”,“SMTP”,“RDP”,“RDPS”,“VNC”,“POP3”,“IMAP4”,“SMTPS”,“POP3S”,“FTPS”,“ANY”,“BGP”等。 /// std::vector& getApplications(); @@ -107,16 +97,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateRuleAclDto void setApplications(const std::vector& value); /// - /// 应用列表转化为字符串 - /// - - std::string getApplicationsJsonString() const; - bool applicationsJsonStringIsSet() const; - void unsetapplicationsJsonString(); - void setApplicationsJsonString(const std::string& value); - - /// - /// 描述 + /// 规则描述 /// std::string getDescription() const; @@ -125,7 +106,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateRuleAclDto void setDescription(const std::string& value); /// - /// 长连接时长小时 + /// 长连接时长对应小时 /// int64_t getLongConnectTimeHour() const; @@ -134,7 +115,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateRuleAclDto void setLongConnectTimeHour(int64_t value); /// - /// 长连接时长分钟 + /// 长连接时长对应分钟 /// int64_t getLongConnectTimeMinute() const; @@ -197,7 +178,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateRuleAclDto void setService(const RuleServiceDto& value); /// - /// 规则type,0:互联网规则,1:vpc规则,2:nat规则 + /// 规则类型,0:互联网规则,1:vpc规则,2:nat规则 /// int32_t getType() const; @@ -220,8 +201,6 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateRuleAclDto bool addressTypeIsSet_; std::string name_; bool nameIsSet_; - OrderRuleAclDto sequence_; - bool sequenceIsSet_; int32_t direction_; bool directionIsSet_; int32_t actionType_; @@ -230,8 +209,6 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateRuleAclDto bool statusIsSet_; std::vector applications_; bool applicationsIsSet_; - std::string applicationsJsonString_; - bool applicationsJsonStringIsSet_; std::string description_; bool descriptionIsSet_; int64_t longConnectTimeHour_; diff --git a/cfw/include/huaweicloud/cfw/v1/model/UpdateSecurityPolciesActionDto.h b/cfw/include/huaweicloud/cfw/v1/model/UpdateSecurityPolciesActionDto.h index 93bd17b68..6819b773e 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,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。 + /// 防护对象id,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)获得,通过返回值中的data.records.protect_objects.object_id(.表示各对象之间层级的区分)获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id,type可通过data.records.protect_objects.type(.表示各对象之间层级的区分)获得。 /// std::string getObjectId() const; @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateSecurityPolciesActionDto void setObjectId(const std::string& value); /// - /// 动作 + /// 规则动作,enable表示允许通行(permit),disable表示拒绝通行(deny) /// std::string getAction() const; @@ -58,7 +58,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateSecurityPolciesActionDto void setAction(const std::string& value); /// - /// 规则ID列表 + /// 规则id列表,规则id可通过[查询防护规则接口](ListAclRules.xml)查询获得,通过返回值中的data.records.rule_id(.表示各对象之间层级的区分)获得。 /// std::vector& getRuleIds(); diff --git a/cfw/include/huaweicloud/cfw/v1/model/UpdateServiceSetRequest.h b/cfw/include/huaweicloud/cfw/v1/model/UpdateServiceSetRequest.h index 330e115fc..334928a8c 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/UpdateServiceSetRequest.h +++ b/cfw/include/huaweicloud/cfw/v1/model/UpdateServiceSetRequest.h @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateServiceSetRequest /// UpdateServiceSetRequest members /// - /// 服务组id + /// 服务组id,可通过[获取服务组列表接口](ListServiceSets.xml)查询获得,通过返回值中的data.records.set_id(.表示各对象之间层级的区分)获得。 /// std::string getSetId() const; @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateServiceSetRequest void setSetId(const std::string& value); /// - /// 企业项目id,用户支持企业项目后,由企业项目生成的id。 + /// 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0 /// std::string getEnterpriseProjectId() const; @@ -58,7 +58,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT UpdateServiceSetRequest void setEnterpriseProjectId(const std::string& value); /// - /// 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml),默认情况下,fw_instance_Id为空时,返回账号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。 + /// 防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 /// 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 dc9c3f195..f42ef6c1e 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 /// /// - CommonResponseDTO_data getData() const; + ServiceSetId getData() const; bool dataIsSet() const; void unsetdata(); - void setData(const CommonResponseDTO_data& value); + void setData(const ServiceSetId& value); protected: - CommonResponseDTO_data data_; + ServiceSetId data_; bool dataIsSet_; #ifdef RTTR_FLAG diff --git a/cfw/include/huaweicloud/cfw/v1/model/VPCProtectsVo.h b/cfw/include/huaweicloud/cfw/v1/model/VPCProtectsVo.h index 46cc3b72d..510b88bfb 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/VPCProtectsVo.h +++ b/cfw/include/huaweicloud/cfw/v1/model/VPCProtectsVo.h @@ -40,7 +40,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT VPCProtectsVo /// VPCProtectsVo members /// - /// 总VPC数 + /// 总防护VPC数 /// int32_t getTotal() const; @@ -49,7 +49,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT VPCProtectsVo void setTotal(int32_t value); /// - /// 本项目防护VPC数 + /// 防火墙东西向防护可进行跨账号防护VPC,self_total表示本项目防护VPC总数。 /// int32_t getSelfTotal() const; @@ -58,7 +58,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT VPCProtectsVo void setSelfTotal(int32_t value); /// - /// 其他项目防护VPC数 + /// 防火墙东西向防护可进行跨账号防护VPC,other_total表示其他项目防护VPC数 /// int32_t getOtherTotal() const; @@ -67,7 +67,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT VPCProtectsVo void setOtherTotal(int32_t value); /// - /// 防护VPC + /// 防火墙东西向防护可进行跨账号防护VPC,protect_vpcs指的是总体防护VPC列表 /// std::vector& getProtectVpcs(); @@ -76,7 +76,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT VPCProtectsVo void setProtectVpcs(const std::vector& value); /// - /// 本项目防护VPC + /// 防火墙东西向防护可进行跨账号防护VPC,self_protect_vpcs指的是本项目防护VPC列表 /// std::vector& getSelfProtectVpcs(); @@ -85,7 +85,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT VPCProtectsVo void setSelfProtectVpcs(const std::vector& value); /// - /// 其他项目防护VPC + /// 防火墙东西向防护可进行跨账号防护VPC,other_protect_vpcs指的是其他项目防护VPC列表 /// std::vector& getOtherProtectVpcs(); @@ -94,7 +94,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT VPCProtectsVo void setOtherProtectVpcs(const std::vector& value); /// - /// 所有资产数量 + /// 租户的所有VPC资产数量 /// int32_t getTotalAssets() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/VpcAttachmentDetail.h b/cfw/include/huaweicloud/cfw/v1/model/VpcAttachmentDetail.h index c69aa7add..d99468c77 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/VpcAttachmentDetail.h +++ b/cfw/include/huaweicloud/cfw/v1/model/VpcAttachmentDetail.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT VpcAttachmentDetail /// VpcAttachmentDetail members /// - /// vpc id + /// 东西向防护添加的防护vpc的id /// std::string getVpcId() const; diff --git a/cfw/include/huaweicloud/cfw/v1/model/VpcDetail.h b/cfw/include/huaweicloud/cfw/v1/model/VpcDetail.h index 1d57a9b39..5acff5c8d 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/VpcDetail.h +++ b/cfw/include/huaweicloud/cfw/v1/model/VpcDetail.h @@ -39,7 +39,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT VpcDetail /// VpcDetail members /// - /// id + /// 创建引流VPC产生的随机UUID /// std::string getId() const; @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT VpcDetail void setId(const std::string& value); /// - /// 名称 + /// 引流VPC名称 /// std::string getName() const; @@ -57,7 +57,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT VpcDetail void setName(const std::string& value); /// - /// vpc cidr + /// 功能说明:虚拟私有云下可用子网的范围 取值范围: 10.0.0.0/8~24 172.16.0.0/12~24 192.168.0.0/16~24 不指定cidr时,默认值为空 约束:必须是cidr格式,例如:192.168.0.0/16 /// std::string getCidr() const; @@ -65,15 +65,6 @@ class HUAWEICLOUD_CFW_V1_EXPORT VpcDetail void unsetcidr(); void setCidr(const std::string& value); - /// - /// 状态 - /// - - std::string getStatus() const; - bool statusIsSet() const; - void unsetstatus(); - void setStatus(const std::string& value); - protected: std::string id_; @@ -82,8 +73,6 @@ class HUAWEICLOUD_CFW_V1_EXPORT VpcDetail bool nameIsSet_; std::string cidr_; bool cidrIsSet_; - std::string status_; - bool statusIsSet_; }; diff --git a/cfw/src/v1/CfwClient.cpp b/cfw/src/v1/CfwClient.cpp index 2ca719f25..43f7a0070 100644 --- a/cfw/src/v1/CfwClient.cpp +++ b/cfw/src/v1/CfwClient.cpp @@ -988,6 +988,9 @@ std::shared_ptr CfwClient::deleteDomains(DeleteDomainsReq 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) { @@ -2718,6 +2721,9 @@ std::shared_ptr CfwClient::batchUpdateAclRule 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) { @@ -3310,9 +3316,6 @@ std::shared_ptr CfwClient::changeIpsSwitchStatus( if (request.fwInstanceIdIsSet()) { localVarQueryParams["fw_instance_id"] = parameterToString(request.getFwInstanceId()); } - if (request.xLanguageIsSet()) { - localVarHeaderParams["X-Language"] = parameterToString(request.getXLanguage()); - } std::string localVarHttpBody; if (isJson) { diff --git a/cfw/src/v1/CfwMeta.cpp b/cfw/src/v1/CfwMeta.cpp index f9c99b2b3..b3a9e92e9 100644 --- a/cfw/src/v1/CfwMeta.cpp +++ b/cfw/src/v1/CfwMeta.cpp @@ -305,6 +305,9 @@ HttpRequestDef CfwMeta::genRequestDefForDeleteDomains() { 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"). @@ -1094,6 +1097,9 @@ HttpRequestDef CfwMeta::genRequestDefForBatchUpdateAclRuleActions() { 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"). @@ -1338,11 +1344,6 @@ HttpRequestDef CfwMeta::genRequestDefForChangeIpsSwitchStatus() { reqDefBuilder.withRequestField(FieldDef().withName("FwInstanceId") .withJsonTag("fw_instance_id") .withLocationType(Query_)); - FieldDef headerParamXLanguage; - reqDefBuilder.withRequestField(headerParamXLanguage - .withName("XLanguage") - .withJsonTag("X-Language") - .withLocationType(Header_)); FieldDef bodyParam; reqDefBuilder.withRequestField(bodyParam. withName("Body"). diff --git a/cfw/src/v1/model/AddAddressItemsInfoDto_address_items.cpp b/cfw/src/v1/model/AddAddressItemsInfoDto_address_items.cpp index cef58c5fc..639897514 100644 --- a/cfw/src/v1/model/AddAddressItemsInfoDto_address_items.cpp +++ b/cfw/src/v1/model/AddAddressItemsInfoDto_address_items.cpp @@ -12,8 +12,6 @@ namespace Model { AddAddressItemsInfoDto_address_items::AddAddressItemsInfoDto_address_items() { - name_ = ""; - nameIsSet_ = false; addressType_ = 0; addressTypeIsSet_ = false; address_ = ""; @@ -32,9 +30,6 @@ web::json::value AddAddressItemsInfoDto_address_items::toJson() const { web::json::value val = web::json::value::object(); - if(nameIsSet_) { - val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); - } if(addressTypeIsSet_) { val[utility::conversions::to_string_t("address_type")] = ModelBase::toJson(addressType_); } @@ -51,15 +46,6 @@ bool AddAddressItemsInfoDto_address_items::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("address_type"))) { const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("address_type")); if(!fieldValue.is_null()) @@ -91,27 +77,6 @@ bool AddAddressItemsInfoDto_address_items::fromJson(const web::json::value& val) } -std::string AddAddressItemsInfoDto_address_items::getName() const -{ - return name_; -} - -void AddAddressItemsInfoDto_address_items::setName(const std::string& value) -{ - name_ = value; - nameIsSet_ = true; -} - -bool AddAddressItemsInfoDto_address_items::nameIsSet() const -{ - return nameIsSet_; -} - -void AddAddressItemsInfoDto_address_items::unsetname() -{ - nameIsSet_ = false; -} - int32_t AddAddressItemsInfoDto_address_items::getAddressType() const { return addressType_; diff --git a/cfw/src/v1/model/AddAddressSetResponse.cpp b/cfw/src/v1/model/AddAddressSetResponse.cpp index 791d05e66..9505b7a79 100644 --- a/cfw/src/v1/model/AddAddressSetResponse.cpp +++ b/cfw/src/v1/model/AddAddressSetResponse.cpp @@ -39,7 +39,7 @@ bool AddAddressSetResponse::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; + AddressSetId refVal; ok &= ModelBase::fromJson(fieldValue, refVal); setData(refVal); } @@ -48,12 +48,12 @@ bool AddAddressSetResponse::fromJson(const web::json::value& val) } -IdObject AddAddressSetResponse::getData() const +AddressSetId AddAddressSetResponse::getData() const { return data_; } -void AddAddressSetResponse::setData(const IdObject& value) +void AddAddressSetResponse::setData(const AddressSetId& value) { data_ = value; dataIsSet_ = true; diff --git a/cfw/src/v1/model/AddBlackWhiteListResponse.cpp b/cfw/src/v1/model/AddBlackWhiteListResponse.cpp index 6af51cdcb..2c68fceb5 100644 --- a/cfw/src/v1/model/AddBlackWhiteListResponse.cpp +++ b/cfw/src/v1/model/AddBlackWhiteListResponse.cpp @@ -39,7 +39,7 @@ bool AddBlackWhiteListResponse::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; + BlackWhiteListId refVal; ok &= ModelBase::fromJson(fieldValue, refVal); setData(refVal); } @@ -48,12 +48,12 @@ bool AddBlackWhiteListResponse::fromJson(const web::json::value& val) } -IdObject AddBlackWhiteListResponse::getData() const +BlackWhiteListId AddBlackWhiteListResponse::getData() const { return data_; } -void AddBlackWhiteListResponse::setData(const IdObject& value) +void AddBlackWhiteListResponse::setData(const BlackWhiteListId& value) { data_ = value; dataIsSet_ = true; diff --git a/cfw/src/v1/model/AddRuleAclDto_rules.cpp b/cfw/src/v1/model/AddRuleAclDto_rules.cpp index 700a803ac..df2b930f5 100644 --- a/cfw/src/v1/model/AddRuleAclDto_rules.cpp +++ b/cfw/src/v1/model/AddRuleAclDto_rules.cpp @@ -22,8 +22,6 @@ AddRuleAclDto_rules::AddRuleAclDto_rules() status_ = 0; statusIsSet_ = false; applicationsIsSet_ = false; - applicationsJsonString_ = ""; - applicationsJsonStringIsSet_ = false; longConnectTime_ = 0L; longConnectTimeIsSet_ = false; longConnectTimeHour_ = 0L; @@ -72,9 +70,6 @@ web::json::value AddRuleAclDto_rules::toJson() const if(applicationsIsSet_) { val[utility::conversions::to_string_t("applications")] = ModelBase::toJson(applications_); } - if(applicationsJsonStringIsSet_) { - val[utility::conversions::to_string_t("applicationsJsonString")] = ModelBase::toJson(applicationsJsonString_); - } if(longConnectTimeIsSet_) { val[utility::conversions::to_string_t("long_connect_time")] = ModelBase::toJson(longConnectTime_); } @@ -169,15 +164,6 @@ bool AddRuleAclDto_rules::fromJson(const web::json::value& val) setApplications(refVal); } } - if(val.has_field(utility::conversions::to_string_t("applicationsJsonString"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("applicationsJsonString")); - if(!fieldValue.is_null()) - { - std::string refVal; - ok &= ModelBase::fromJson(fieldValue, refVal); - setApplicationsJsonString(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(!fieldValue.is_null()) @@ -407,27 +393,6 @@ void AddRuleAclDto_rules::unsetapplications() applicationsIsSet_ = false; } -std::string AddRuleAclDto_rules::getApplicationsJsonString() const -{ - return applicationsJsonString_; -} - -void AddRuleAclDto_rules::setApplicationsJsonString(const std::string& value) -{ - applicationsJsonString_ = value; - applicationsJsonStringIsSet_ = true; -} - -bool AddRuleAclDto_rules::applicationsJsonStringIsSet() const -{ - return applicationsJsonStringIsSet_; -} - -void AddRuleAclDto_rules::unsetapplicationsJsonString() -{ - applicationsJsonStringIsSet_ = false; -} - int64_t AddRuleAclDto_rules::getLongConnectTime() const { return longConnectTime_; diff --git a/cfw/src/v1/model/AddServiceSetResponse.cpp b/cfw/src/v1/model/AddServiceSetResponse.cpp index 90cd0f764..72e35fccb 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()) { - CommonResponseDTO_data refVal; + ServiceSetId refVal; ok &= ModelBase::fromJson(fieldValue, refVal); setData(refVal); } @@ -48,12 +48,12 @@ bool AddServiceSetResponse::fromJson(const web::json::value& val) } -CommonResponseDTO_data AddServiceSetResponse::getData() const +ServiceSetId AddServiceSetResponse::getData() const { return data_; } -void AddServiceSetResponse::setData(const CommonResponseDTO_data& value) +void AddServiceSetResponse::setData(const ServiceSetId& value) { data_ = value; dataIsSet_ = true; diff --git a/cfw/src/v1/model/AddressItemId.cpp b/cfw/src/v1/model/AddressItemId.cpp new file mode 100644 index 000000000..f5736ae95 --- /dev/null +++ b/cfw/src/v1/model/AddressItemId.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/cfw/v1/model/AddressItemId.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + + + + +AddressItemId::AddressItemId() +{ + id_ = ""; + idIsSet_ = false; + name_ = ""; + nameIsSet_ = false; +} + +AddressItemId::~AddressItemId() = default; + +void AddressItemId::validate() +{ +} + +web::json::value AddressItemId::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 AddressItemId::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 AddressItemId::getId() const +{ + return id_; +} + +void AddressItemId::setId(const std::string& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool AddressItemId::idIsSet() const +{ + return idIsSet_; +} + +void AddressItemId::unsetid() +{ + idIsSet_ = false; +} + +std::string AddressItemId::getName() const +{ + return name_; +} + +void AddressItemId::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool AddressItemId::nameIsSet() const +{ + return nameIsSet_; +} + +void AddressItemId::unsetname() +{ + nameIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cfw/src/v1/model/AddressItemIdWithoutName.cpp b/cfw/src/v1/model/AddressItemIdWithoutName.cpp new file mode 100644 index 000000000..e095783e3 --- /dev/null +++ b/cfw/src/v1/model/AddressItemIdWithoutName.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/cfw/v1/model/AddressItemIdWithoutName.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + + + + +AddressItemIdWithoutName::AddressItemIdWithoutName() +{ + id_ = ""; + idIsSet_ = false; +} + +AddressItemIdWithoutName::~AddressItemIdWithoutName() = default; + +void AddressItemIdWithoutName::validate() +{ +} + +web::json::value AddressItemIdWithoutName::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 AddressItemIdWithoutName::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 AddressItemIdWithoutName::getId() const +{ + return id_; +} + +void AddressItemIdWithoutName::setId(const std::string& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool AddressItemIdWithoutName::idIsSet() const +{ + return idIsSet_; +} + +void AddressItemIdWithoutName::unsetid() +{ + idIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cfw/src/v1/model/AddressItems.cpp b/cfw/src/v1/model/AddressItems.cpp index 0be67a7b7..771d8af65 100644 --- a/cfw/src/v1/model/AddressItems.cpp +++ b/cfw/src/v1/model/AddressItems.cpp @@ -43,7 +43,7 @@ bool AddressItems::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); } @@ -61,12 +61,12 @@ bool AddressItems::fromJson(const web::json::value& val) } -std::vector& AddressItems::getItems() +std::vector& AddressItems::getItems() { return items_; } -void AddressItems::setItems(const std::vector& value) +void AddressItems::setItems(const std::vector& value) { items_ = value; itemsIsSet_ = true; diff --git a/cfw/src/v1/model/IdObject.cpp b/cfw/src/v1/model/AddressSetId.cpp similarity index 71% rename from cfw/src/v1/model/IdObject.cpp rename to cfw/src/v1/model/AddressSetId.cpp index 309bb7bae..b7d4953e7 100644 --- a/cfw/src/v1/model/IdObject.cpp +++ b/cfw/src/v1/model/AddressSetId.cpp @@ -1,6 +1,6 @@ -#include "huaweicloud/cfw/v1/model/IdObject.h" +#include "huaweicloud/cfw/v1/model/AddressSetId.h" namespace HuaweiCloud { namespace Sdk { namespace Cfw { @@ -10,7 +10,7 @@ namespace Model { -IdObject::IdObject() +AddressSetId::AddressSetId() { id_ = ""; idIsSet_ = false; @@ -18,13 +18,13 @@ IdObject::IdObject() nameIsSet_ = false; } -IdObject::~IdObject() = default; +AddressSetId::~AddressSetId() = default; -void IdObject::validate() +void AddressSetId::validate() { } -web::json::value IdObject::toJson() const +web::json::value AddressSetId::toJson() const { web::json::value val = web::json::value::object(); @@ -37,7 +37,7 @@ web::json::value IdObject::toJson() const return val; } -bool IdObject::fromJson(const web::json::value& val) +bool AddressSetId::fromJson(const web::json::value& val) { bool ok = true; @@ -63,44 +63,44 @@ bool IdObject::fromJson(const web::json::value& val) } -std::string IdObject::getId() const +std::string AddressSetId::getId() const { return id_; } -void IdObject::setId(const std::string& value) +void AddressSetId::setId(const std::string& value) { id_ = value; idIsSet_ = true; } -bool IdObject::idIsSet() const +bool AddressSetId::idIsSet() const { return idIsSet_; } -void IdObject::unsetid() +void AddressSetId::unsetid() { idIsSet_ = false; } -std::string IdObject::getName() const +std::string AddressSetId::getName() const { return name_; } -void IdObject::setName(const std::string& value) +void AddressSetId::setName(const std::string& value) { name_ = value; nameIsSet_ = true; } -bool IdObject::nameIsSet() const +bool AddressSetId::nameIsSet() const { return nameIsSet_; } -void IdObject::unsetname() +void AddressSetId::unsetname() { nameIsSet_ = false; } diff --git a/cfw/src/v1/model/AddressSetListResponseDTO_data_records.cpp b/cfw/src/v1/model/AddressSetListResponseDTO_data_records.cpp index c3ec62228..10c4c1686 100644 --- a/cfw/src/v1/model/AddressSetListResponseDTO_data_records.cpp +++ b/cfw/src/v1/model/AddressSetListResponseDTO_data_records.cpp @@ -18,14 +18,14 @@ AddressSetListResponseDTO_data_records::AddressSetListResponseDTO_data_records() refCountIsSet_ = false; description_ = ""; descriptionIsSet_ = false; - name_ = ""; - nameIsSet_ = false; addressType_ = 0; addressTypeIsSet_ = false; objectId_ = ""; objectIdIsSet_ = false; addressSetType_ = 0; addressSetTypeIsSet_ = false; + name_ = ""; + nameIsSet_ = false; } AddressSetListResponseDTO_data_records::~AddressSetListResponseDTO_data_records() = default; @@ -47,9 +47,6 @@ web::json::value AddressSetListResponseDTO_data_records::toJson() const if(descriptionIsSet_) { val[utility::conversions::to_string_t("description")] = ModelBase::toJson(description_); } - if(nameIsSet_) { - val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); - } if(addressTypeIsSet_) { val[utility::conversions::to_string_t("address_type")] = ModelBase::toJson(addressType_); } @@ -59,6 +56,9 @@ web::json::value AddressSetListResponseDTO_data_records::toJson() const 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_); + } return val; } @@ -93,15 +93,6 @@ bool AddressSetListResponseDTO_data_records::fromJson(const web::json::value& va setDescription(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("address_type"))) { const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("address_type")); if(!fieldValue.is_null()) @@ -129,6 +120,15 @@ bool AddressSetListResponseDTO_data_records::fromJson(const web::json::value& va setAddressSetType(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; } @@ -196,27 +196,6 @@ void AddressSetListResponseDTO_data_records::unsetdescription() descriptionIsSet_ = false; } -std::string AddressSetListResponseDTO_data_records::getName() const -{ - return name_; -} - -void AddressSetListResponseDTO_data_records::setName(const std::string& value) -{ - name_ = value; - nameIsSet_ = true; -} - -bool AddressSetListResponseDTO_data_records::nameIsSet() const -{ - return nameIsSet_; -} - -void AddressSetListResponseDTO_data_records::unsetname() -{ - nameIsSet_ = false; -} - int32_t AddressSetListResponseDTO_data_records::getAddressType() const { return addressType_; @@ -280,6 +259,27 @@ void AddressSetListResponseDTO_data_records::unsetaddressSetType() addressSetTypeIsSet_ = false; } +std::string AddressSetListResponseDTO_data_records::getName() const +{ + return name_; +} + +void AddressSetListResponseDTO_data_records::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool AddressSetListResponseDTO_data_records::nameIsSet() const +{ + return nameIsSet_; +} + +void AddressSetListResponseDTO_data_records::unsetname() +{ + nameIsSet_ = false; +} + } } } diff --git a/cfw/src/v1/model/BatchUpdateAclRuleActionsRequest.cpp b/cfw/src/v1/model/BatchUpdateAclRuleActionsRequest.cpp index 6b996f575..ee58752e9 100644 --- a/cfw/src/v1/model/BatchUpdateAclRuleActionsRequest.cpp +++ b/cfw/src/v1/model/BatchUpdateAclRuleActionsRequest.cpp @@ -14,6 +14,8 @@ BatchUpdateAclRuleActionsRequest::BatchUpdateAclRuleActionsRequest() { enterpriseProjectId_ = ""; enterpriseProjectIdIsSet_ = false; + fwInstanceId_ = ""; + fwInstanceIdIsSet_ = false; bodyIsSet_ = false; } @@ -30,6 +32,9 @@ web::json::value BatchUpdateAclRuleActionsRequest::toJson() const 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_); } @@ -49,6 +54,15 @@ bool BatchUpdateAclRuleActionsRequest::fromJson(const web::json::value& val) 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()) @@ -83,6 +97,27 @@ void BatchUpdateAclRuleActionsRequest::unsetenterpriseProjectId() enterpriseProjectIdIsSet_ = false; } +std::string BatchUpdateAclRuleActionsRequest::getFwInstanceId() const +{ + return fwInstanceId_; +} + +void BatchUpdateAclRuleActionsRequest::setFwInstanceId(const std::string& value) +{ + fwInstanceId_ = value; + fwInstanceIdIsSet_ = true; +} + +bool BatchUpdateAclRuleActionsRequest::fwInstanceIdIsSet() const +{ + return fwInstanceIdIsSet_; +} + +void BatchUpdateAclRuleActionsRequest::unsetfwInstanceId() +{ + fwInstanceIdIsSet_ = false; +} + UpdateSecurityPolciesActionDto BatchUpdateAclRuleActionsRequest::getBody() const { return body_; diff --git a/cfw/src/v1/model/BlackWhiteListId.cpp b/cfw/src/v1/model/BlackWhiteListId.cpp new file mode 100644 index 000000000..e2b915a53 --- /dev/null +++ b/cfw/src/v1/model/BlackWhiteListId.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/cfw/v1/model/BlackWhiteListId.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + + + + +BlackWhiteListId::BlackWhiteListId() +{ + id_ = ""; + idIsSet_ = false; + name_ = ""; + nameIsSet_ = false; +} + +BlackWhiteListId::~BlackWhiteListId() = default; + +void BlackWhiteListId::validate() +{ +} + +web::json::value BlackWhiteListId::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 BlackWhiteListId::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 BlackWhiteListId::getId() const +{ + return id_; +} + +void BlackWhiteListId::setId(const std::string& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool BlackWhiteListId::idIsSet() const +{ + return idIsSet_; +} + +void BlackWhiteListId::unsetid() +{ + idIsSet_ = false; +} + +std::string BlackWhiteListId::getName() const +{ + return name_; +} + +void BlackWhiteListId::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool BlackWhiteListId::nameIsSet() const +{ + return nameIsSet_; +} + +void BlackWhiteListId::unsetname() +{ + nameIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cfw/src/v1/model/CancelCaptureTaskResponse.cpp b/cfw/src/v1/model/CancelCaptureTaskResponse.cpp index f9878377a..fa89f2fe1 100644 --- a/cfw/src/v1/model/CancelCaptureTaskResponse.cpp +++ b/cfw/src/v1/model/CancelCaptureTaskResponse.cpp @@ -39,7 +39,7 @@ bool CancelCaptureTaskResponse::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; + CaptureTaskId refVal; ok &= ModelBase::fromJson(fieldValue, refVal); setData(refVal); } @@ -48,12 +48,12 @@ bool CancelCaptureTaskResponse::fromJson(const web::json::value& val) } -IdObject CancelCaptureTaskResponse::getData() const +CaptureTaskId CancelCaptureTaskResponse::getData() const { return data_; } -void CancelCaptureTaskResponse::setData(const IdObject& value) +void CancelCaptureTaskResponse::setData(const CaptureTaskId& value) { data_ = value; dataIsSet_ = true; diff --git a/cfw/src/v1/model/CaptureTaskId.cpp b/cfw/src/v1/model/CaptureTaskId.cpp new file mode 100644 index 000000000..6f3ec8a33 --- /dev/null +++ b/cfw/src/v1/model/CaptureTaskId.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/cfw/v1/model/CaptureTaskId.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + + + + +CaptureTaskId::CaptureTaskId() +{ + id_ = ""; + idIsSet_ = false; + name_ = ""; + nameIsSet_ = false; +} + +CaptureTaskId::~CaptureTaskId() = default; + +void CaptureTaskId::validate() +{ +} + +web::json::value CaptureTaskId::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 CaptureTaskId::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 CaptureTaskId::getId() const +{ + return id_; +} + +void CaptureTaskId::setId(const std::string& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool CaptureTaskId::idIsSet() const +{ + return idIsSet_; +} + +void CaptureTaskId::unsetid() +{ + idIsSet_ = false; +} + +std::string CaptureTaskId::getName() const +{ + return name_; +} + +void CaptureTaskId::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool CaptureTaskId::nameIsSet() const +{ + return nameIsSet_; +} + +void CaptureTaskId::unsetname() +{ + nameIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cfw/src/v1/model/ChangeEastWestFirewallStatusResponse.cpp b/cfw/src/v1/model/ChangeEastWestFirewallStatusResponse.cpp index 216e031c2..b65b9e0eb 100644 --- a/cfw/src/v1/model/ChangeEastWestFirewallStatusResponse.cpp +++ b/cfw/src/v1/model/ChangeEastWestFirewallStatusResponse.cpp @@ -13,8 +13,6 @@ namespace Model { ChangeEastWestFirewallStatusResponse::ChangeEastWestFirewallStatusResponse() { dataIsSet_ = false; - traceId_ = ""; - traceIdIsSet_ = false; } ChangeEastWestFirewallStatusResponse::~ChangeEastWestFirewallStatusResponse() = default; @@ -30,9 +28,6 @@ web::json::value ChangeEastWestFirewallStatusResponse::toJson() const if(dataIsSet_) { val[utility::conversions::to_string_t("data")] = ModelBase::toJson(data_); } - if(traceIdIsSet_) { - val[utility::conversions::to_string_t("trace_id")] = ModelBase::toJson(traceId_); - } return val; } @@ -44,30 +39,21 @@ bool ChangeEastWestFirewallStatusResponse::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("data")); if(!fieldValue.is_null()) { - SuccessRsp_data refVal; + ChangeEastWestFirewallStatusResponseData refVal; ok &= ModelBase::fromJson(fieldValue, refVal); setData(refVal); } } - 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); - } - } return ok; } -SuccessRsp_data ChangeEastWestFirewallStatusResponse::getData() const +ChangeEastWestFirewallStatusResponseData ChangeEastWestFirewallStatusResponse::getData() const { return data_; } -void ChangeEastWestFirewallStatusResponse::setData(const SuccessRsp_data& value) +void ChangeEastWestFirewallStatusResponse::setData(const ChangeEastWestFirewallStatusResponseData& value) { data_ = value; dataIsSet_ = true; @@ -83,27 +69,6 @@ void ChangeEastWestFirewallStatusResponse::unsetdata() dataIsSet_ = false; } -std::string ChangeEastWestFirewallStatusResponse::getTraceId() const -{ - return traceId_; -} - -void ChangeEastWestFirewallStatusResponse::setTraceId(const std::string& value) -{ - traceId_ = value; - traceIdIsSet_ = true; -} - -bool ChangeEastWestFirewallStatusResponse::traceIdIsSet() const -{ - return traceIdIsSet_; -} - -void ChangeEastWestFirewallStatusResponse::unsettraceId() -{ - traceIdIsSet_ = false; -} - } } } diff --git a/cfw/src/v1/model/ChangeEastWestFirewallStatusResponseData.cpp b/cfw/src/v1/model/ChangeEastWestFirewallStatusResponseData.cpp new file mode 100644 index 000000000..85273a018 --- /dev/null +++ b/cfw/src/v1/model/ChangeEastWestFirewallStatusResponseData.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/cfw/v1/model/ChangeEastWestFirewallStatusResponseData.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + + + + +ChangeEastWestFirewallStatusResponseData::ChangeEastWestFirewallStatusResponseData() +{ + id_ = ""; + idIsSet_ = false; +} + +ChangeEastWestFirewallStatusResponseData::~ChangeEastWestFirewallStatusResponseData() = default; + +void ChangeEastWestFirewallStatusResponseData::validate() +{ +} + +web::json::value ChangeEastWestFirewallStatusResponseData::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 ChangeEastWestFirewallStatusResponseData::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 ChangeEastWestFirewallStatusResponseData::getId() const +{ + return id_; +} + +void ChangeEastWestFirewallStatusResponseData::setId(const std::string& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool ChangeEastWestFirewallStatusResponseData::idIsSet() const +{ + return idIsSet_; +} + +void ChangeEastWestFirewallStatusResponseData::unsetid() +{ + idIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cfw/src/v1/model/ChangeIpsSwitchStatusRequest.cpp b/cfw/src/v1/model/ChangeIpsSwitchStatusRequest.cpp index 33ada0b98..d02217763 100644 --- a/cfw/src/v1/model/ChangeIpsSwitchStatusRequest.cpp +++ b/cfw/src/v1/model/ChangeIpsSwitchStatusRequest.cpp @@ -16,8 +16,6 @@ ChangeIpsSwitchStatusRequest::ChangeIpsSwitchStatusRequest() enterpriseProjectIdIsSet_ = false; fwInstanceId_ = ""; fwInstanceIdIsSet_ = false; - xLanguage_ = ""; - xLanguageIsSet_ = false; bodyIsSet_ = false; } @@ -37,9 +35,6 @@ web::json::value ChangeIpsSwitchStatusRequest::toJson() const if(fwInstanceIdIsSet_) { val[utility::conversions::to_string_t("fw_instance_id")] = ModelBase::toJson(fwInstanceId_); } - 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_); } @@ -68,15 +63,6 @@ bool ChangeIpsSwitchStatusRequest::fromJson(const web::json::value& val) setFwInstanceId(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()) @@ -132,27 +118,6 @@ void ChangeIpsSwitchStatusRequest::unsetfwInstanceId() fwInstanceIdIsSet_ = false; } -std::string ChangeIpsSwitchStatusRequest::getXLanguage() const -{ - return xLanguage_; -} - -void ChangeIpsSwitchStatusRequest::setXLanguage(const std::string& value) -{ - xLanguage_ = value; - xLanguageIsSet_ = true; -} - -bool ChangeIpsSwitchStatusRequest::xLanguageIsSet() const -{ - return xLanguageIsSet_; -} - -void ChangeIpsSwitchStatusRequest::unsetxLanguage() -{ - xLanguageIsSet_ = false; -} - IpsSwitchDTO ChangeIpsSwitchStatusRequest::getBody() const { return body_; diff --git a/cfw/src/v1/model/CreateCaptureTaskResponse.cpp b/cfw/src/v1/model/CreateCaptureTaskResponse.cpp index 55bb8bdcd..274d07ee2 100644 --- a/cfw/src/v1/model/CreateCaptureTaskResponse.cpp +++ b/cfw/src/v1/model/CreateCaptureTaskResponse.cpp @@ -39,7 +39,7 @@ bool CreateCaptureTaskResponse::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; + CaptureTaskId refVal; ok &= ModelBase::fromJson(fieldValue, refVal); setData(refVal); } @@ -48,12 +48,12 @@ bool CreateCaptureTaskResponse::fromJson(const web::json::value& val) } -IdObject CreateCaptureTaskResponse::getData() const +CaptureTaskId CreateCaptureTaskResponse::getData() const { return data_; } -void CreateCaptureTaskResponse::setData(const IdObject& value) +void CreateCaptureTaskResponse::setData(const CaptureTaskId& value) { data_ = value; dataIsSet_ = true; diff --git a/cfw/src/v1/model/DeleteAddressItemResponse.cpp b/cfw/src/v1/model/DeleteAddressItemResponse.cpp index a3a4b94ad..8848d7b86 100644 --- a/cfw/src/v1/model/DeleteAddressItemResponse.cpp +++ b/cfw/src/v1/model/DeleteAddressItemResponse.cpp @@ -39,7 +39,7 @@ bool DeleteAddressItemResponse::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; + AddressItemId refVal; ok &= ModelBase::fromJson(fieldValue, refVal); setData(refVal); } @@ -48,12 +48,12 @@ bool DeleteAddressItemResponse::fromJson(const web::json::value& val) } -IdObject DeleteAddressItemResponse::getData() const +AddressItemId DeleteAddressItemResponse::getData() const { return data_; } -void DeleteAddressItemResponse::setData(const IdObject& value) +void DeleteAddressItemResponse::setData(const AddressItemId& value) { data_ = value; dataIsSet_ = true; diff --git a/cfw/src/v1/model/DeleteAddressSetResponse.cpp b/cfw/src/v1/model/DeleteAddressSetResponse.cpp index 69d448a37..81c691811 100644 --- a/cfw/src/v1/model/DeleteAddressSetResponse.cpp +++ b/cfw/src/v1/model/DeleteAddressSetResponse.cpp @@ -39,7 +39,7 @@ bool DeleteAddressSetResponse::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; + AddressSetId refVal; ok &= ModelBase::fromJson(fieldValue, refVal); setData(refVal); } @@ -48,12 +48,12 @@ bool DeleteAddressSetResponse::fromJson(const web::json::value& val) } -IdObject DeleteAddressSetResponse::getData() const +AddressSetId DeleteAddressSetResponse::getData() const { return data_; } -void DeleteAddressSetResponse::setData(const IdObject& value) +void DeleteAddressSetResponse::setData(const AddressSetId& value) { data_ = value; dataIsSet_ = true; diff --git a/cfw/src/v1/model/DeleteBlackWhiteListResponse.cpp b/cfw/src/v1/model/DeleteBlackWhiteListResponse.cpp index a2102c406..845af7451 100644 --- a/cfw/src/v1/model/DeleteBlackWhiteListResponse.cpp +++ b/cfw/src/v1/model/DeleteBlackWhiteListResponse.cpp @@ -39,7 +39,7 @@ bool DeleteBlackWhiteListResponse::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; + BlackWhiteListId refVal; ok &= ModelBase::fromJson(fieldValue, refVal); setData(refVal); } @@ -48,12 +48,12 @@ bool DeleteBlackWhiteListResponse::fromJson(const web::json::value& val) } -IdObject DeleteBlackWhiteListResponse::getData() const +BlackWhiteListId DeleteBlackWhiteListResponse::getData() const { return data_; } -void DeleteBlackWhiteListResponse::setData(const IdObject& value) +void DeleteBlackWhiteListResponse::setData(const BlackWhiteListId& value) { data_ = value; dataIsSet_ = true; diff --git a/cfw/src/v1/model/DeleteCaptureTaskResponse.cpp b/cfw/src/v1/model/DeleteCaptureTaskResponse.cpp index 2ba98c9b8..6d5e03958 100644 --- a/cfw/src/v1/model/DeleteCaptureTaskResponse.cpp +++ b/cfw/src/v1/model/DeleteCaptureTaskResponse.cpp @@ -39,7 +39,7 @@ bool DeleteCaptureTaskResponse::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; + CaptureTaskId refVal; ok &= ModelBase::fromJson(fieldValue, refVal); setData(refVal); } @@ -48,12 +48,12 @@ bool DeleteCaptureTaskResponse::fromJson(const web::json::value& val) } -IdObject DeleteCaptureTaskResponse::getData() const +CaptureTaskId DeleteCaptureTaskResponse::getData() const { return data_; } -void DeleteCaptureTaskResponse::setData(const IdObject& value) +void DeleteCaptureTaskResponse::setData(const CaptureTaskId& value) { data_ = value; dataIsSet_ = true; diff --git a/cfw/src/v1/model/DeleteDomainsRequest.cpp b/cfw/src/v1/model/DeleteDomainsRequest.cpp index 11f7c1c2e..d0fadfd80 100644 --- a/cfw/src/v1/model/DeleteDomainsRequest.cpp +++ b/cfw/src/v1/model/DeleteDomainsRequest.cpp @@ -16,6 +16,8 @@ DeleteDomainsRequest::DeleteDomainsRequest() setIdIsSet_ = false; enterpriseProjectId_ = ""; enterpriseProjectIdIsSet_ = false; + fwInstanceId_ = ""; + fwInstanceIdIsSet_ = false; bodyIsSet_ = false; } @@ -35,6 +37,9 @@ web::json::value DeleteDomainsRequest::toJson() const 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_); } @@ -63,6 +68,15 @@ bool DeleteDomainsRequest::fromJson(const web::json::value& val) 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()) @@ -118,6 +132,27 @@ void DeleteDomainsRequest::unsetenterpriseProjectId() enterpriseProjectIdIsSet_ = false; } +std::string DeleteDomainsRequest::getFwInstanceId() const +{ + return fwInstanceId_; +} + +void DeleteDomainsRequest::setFwInstanceId(const std::string& value) +{ + fwInstanceId_ = value; + fwInstanceIdIsSet_ = true; +} + +bool DeleteDomainsRequest::fwInstanceIdIsSet() const +{ + return fwInstanceIdIsSet_; +} + +void DeleteDomainsRequest::unsetfwInstanceId() +{ + fwInstanceIdIsSet_ = false; +} + DeleteDomainDto DeleteDomainsRequest::getBody() const { return body_; diff --git a/cfw/src/v1/model/DeleteServiceItemResponse.cpp b/cfw/src/v1/model/DeleteServiceItemResponse.cpp index 14b32c85a..6f92b4d21 100644 --- a/cfw/src/v1/model/DeleteServiceItemResponse.cpp +++ b/cfw/src/v1/model/DeleteServiceItemResponse.cpp @@ -39,7 +39,7 @@ bool DeleteServiceItemResponse::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; + DeleteServiceItemResponseBodyData refVal; ok &= ModelBase::fromJson(fieldValue, refVal); setData(refVal); } @@ -48,12 +48,12 @@ bool DeleteServiceItemResponse::fromJson(const web::json::value& val) } -IdObject DeleteServiceItemResponse::getData() const +DeleteServiceItemResponseBodyData DeleteServiceItemResponse::getData() const { return data_; } -void DeleteServiceItemResponse::setData(const IdObject& value) +void DeleteServiceItemResponse::setData(const DeleteServiceItemResponseBodyData& value) { data_ = value; dataIsSet_ = true; diff --git a/cfw/src/v1/model/DeleteServiceItemResponseBodyData.cpp b/cfw/src/v1/model/DeleteServiceItemResponseBodyData.cpp new file mode 100644 index 000000000..14c64fab5 --- /dev/null +++ b/cfw/src/v1/model/DeleteServiceItemResponseBodyData.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/cfw/v1/model/DeleteServiceItemResponseBodyData.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + + + + +DeleteServiceItemResponseBodyData::DeleteServiceItemResponseBodyData() +{ + id_ = ""; + idIsSet_ = false; + name_ = ""; + nameIsSet_ = false; +} + +DeleteServiceItemResponseBodyData::~DeleteServiceItemResponseBodyData() = default; + +void DeleteServiceItemResponseBodyData::validate() +{ +} + +web::json::value DeleteServiceItemResponseBodyData::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 DeleteServiceItemResponseBodyData::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 DeleteServiceItemResponseBodyData::getId() const +{ + return id_; +} + +void DeleteServiceItemResponseBodyData::setId(const std::string& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool DeleteServiceItemResponseBodyData::idIsSet() const +{ + return idIsSet_; +} + +void DeleteServiceItemResponseBodyData::unsetid() +{ + idIsSet_ = false; +} + +std::string DeleteServiceItemResponseBodyData::getName() const +{ + return name_; +} + +void DeleteServiceItemResponseBodyData::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool DeleteServiceItemResponseBodyData::nameIsSet() const +{ + return nameIsSet_; +} + +void DeleteServiceItemResponseBodyData::unsetname() +{ + nameIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cfw/src/v1/model/DeleteServiceSetResponse.cpp b/cfw/src/v1/model/DeleteServiceSetResponse.cpp index 316f6cdcf..79a437a22 100644 --- a/cfw/src/v1/model/DeleteServiceSetResponse.cpp +++ b/cfw/src/v1/model/DeleteServiceSetResponse.cpp @@ -39,7 +39,7 @@ bool DeleteServiceSetResponse::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; + ServiceSetId refVal; ok &= ModelBase::fromJson(fieldValue, refVal); setData(refVal); } @@ -48,12 +48,12 @@ bool DeleteServiceSetResponse::fromJson(const web::json::value& val) } -IdObject DeleteServiceSetResponse::getData() const +ServiceSetId DeleteServiceSetResponse::getData() const { return data_; } -void DeleteServiceSetResponse::setData(const IdObject& value) +void DeleteServiceSetResponse::setData(const ServiceSetId& value) { data_ = value; dataIsSet_ = true; diff --git a/cfw/src/v1/model/DomainInfo.cpp b/cfw/src/v1/model/DomainInfo.cpp index fac5ad0ce..5209871eb 100644 --- a/cfw/src/v1/model/DomainInfo.cpp +++ b/cfw/src/v1/model/DomainInfo.cpp @@ -18,7 +18,6 @@ DomainInfo::DomainInfo() domainNameIsSet_ = false; description_ = ""; descriptionIsSet_ = false; - dnsIpsIsSet_ = false; } DomainInfo::~DomainInfo() = default; @@ -40,9 +39,6 @@ web::json::value DomainInfo::toJson() const if(descriptionIsSet_) { val[utility::conversions::to_string_t("description")] = ModelBase::toJson(description_); } - if(dnsIpsIsSet_) { - val[utility::conversions::to_string_t("dns_ips")] = ModelBase::toJson(dnsIps_); - } return val; } @@ -77,15 +73,6 @@ bool DomainInfo::fromJson(const web::json::value& val) setDescription(refVal); } } - if(val.has_field(utility::conversions::to_string_t("dns_ips"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("dns_ips")); - if(!fieldValue.is_null()) - { - std::vector refVal; - ok &= ModelBase::fromJson(fieldValue, refVal); - setDnsIps(refVal); - } - } return ok; } @@ -153,27 +140,6 @@ void DomainInfo::unsetdescription() descriptionIsSet_ = false; } -std::vector& DomainInfo::getDnsIps() -{ - return dnsIps_; -} - -void DomainInfo::setDnsIps(const std::vector& value) -{ - dnsIps_ = value; - dnsIpsIsSet_ = true; -} - -bool DomainInfo::dnsIpsIsSet() const -{ - return dnsIpsIsSet_; -} - -void DomainInfo::unsetdnsIps() -{ - dnsIpsIsSet_ = false; -} - } } } diff --git a/cfw/src/v1/model/DomainSetVo.cpp b/cfw/src/v1/model/DomainSetVo.cpp index b1c47d0ca..1cbc357c8 100644 --- a/cfw/src/v1/model/DomainSetVo.cpp +++ b/cfw/src/v1/model/DomainSetVo.cpp @@ -24,8 +24,6 @@ DomainSetVo::DomainSetVo() domainSetTypeIsSet_ = false; configStatus_ = 0; configStatusIsSet_ = false; - message_ = ""; - messageIsSet_ = false; rulesIsSet_ = false; } @@ -57,9 +55,6 @@ web::json::value DomainSetVo::toJson() const if(configStatusIsSet_) { val[utility::conversions::to_string_t("config_status")] = ModelBase::toJson(configStatus_); } - if(messageIsSet_) { - val[utility::conversions::to_string_t("message")] = ModelBase::toJson(message_); - } if(rulesIsSet_) { val[utility::conversions::to_string_t("rules")] = ModelBase::toJson(rules_); } @@ -124,15 +119,6 @@ bool DomainSetVo::fromJson(const web::json::value& val) setConfigStatus(refVal); } } - if(val.has_field(utility::conversions::to_string_t("message"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("message")); - if(!fieldValue.is_null()) - { - std::string refVal; - ok &= ModelBase::fromJson(fieldValue, refVal); - setMessage(refVal); - } - } if(val.has_field(utility::conversions::to_string_t("rules"))) { const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("rules")); if(!fieldValue.is_null()) @@ -272,27 +258,6 @@ void DomainSetVo::unsetconfigStatus() configStatusIsSet_ = false; } -std::string DomainSetVo::getMessage() const -{ - return message_; -} - -void DomainSetVo::setMessage(const std::string& value) -{ - message_ = value; - messageIsSet_ = true; -} - -bool DomainSetVo::messageIsSet() const -{ - return messageIsSet_; -} - -void DomainSetVo::unsetmessage() -{ - messageIsSet_ = false; -} - std::vector& DomainSetVo::getRules() { return rules_; diff --git a/cfw/src/v1/model/EIPSwitchStatusVO.cpp b/cfw/src/v1/model/EIPSwitchStatusVO.cpp index 3a463549a..0e41aff38 100644 --- a/cfw/src/v1/model/EIPSwitchStatusVO.cpp +++ b/cfw/src/v1/model/EIPSwitchStatusVO.cpp @@ -15,6 +15,7 @@ EIPSwitchStatusVO::EIPSwitchStatusVO() objectId_ = ""; objectIdIsSet_ = false; failEipIdListIsSet_ = false; + failEipListIsSet_ = false; id_ = ""; idIsSet_ = false; } @@ -35,6 +36,9 @@ web::json::value EIPSwitchStatusVO::toJson() const if(failEipIdListIsSet_) { val[utility::conversions::to_string_t("fail_eip_id_list")] = ModelBase::toJson(failEipIdList_); } + if(failEipListIsSet_) { + val[utility::conversions::to_string_t("fail_eip_list")] = ModelBase::toJson(failEipList_); + } if(idIsSet_) { val[utility::conversions::to_string_t("id")] = ModelBase::toJson(id_); } @@ -63,6 +67,15 @@ bool EIPSwitchStatusVO::fromJson(const web::json::value& val) setFailEipIdList(refVal); } } + if(val.has_field(utility::conversions::to_string_t("fail_eip_list"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("fail_eip_list")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFailEipList(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()) @@ -118,6 +131,27 @@ void EIPSwitchStatusVO::unsetfailEipIdList() failEipIdListIsSet_ = false; } +std::vector& EIPSwitchStatusVO::getFailEipList() +{ + return failEipList_; +} + +void EIPSwitchStatusVO::setFailEipList(const std::vector& value) +{ + failEipList_ = value; + failEipListIsSet_ = true; +} + +bool EIPSwitchStatusVO::failEipListIsSet() const +{ + return failEipListIsSet_; +} + +void EIPSwitchStatusVO::unsetfailEipList() +{ + failEipListIsSet_ = false; +} + std::string EIPSwitchStatusVO::getId() const { return id_; diff --git a/cfw/src/v1/model/EipCountRespData.cpp b/cfw/src/v1/model/EipCountRespData.cpp index cc5fd94fd..588de49ba 100644 --- a/cfw/src/v1/model/EipCountRespData.cpp +++ b/cfw/src/v1/model/EipCountRespData.cpp @@ -12,8 +12,6 @@ namespace Model { EipCountRespData::EipCountRespData() { - objectId_ = ""; - objectIdIsSet_ = false; eipTotal_ = 0; eipTotalIsSet_ = false; eipProtected_ = 0; @@ -32,9 +30,6 @@ web::json::value EipCountRespData::toJson() const { web::json::value val = web::json::value::object(); - if(objectIdIsSet_) { - val[utility::conversions::to_string_t("object_id")] = ModelBase::toJson(objectId_); - } if(eipTotalIsSet_) { val[utility::conversions::to_string_t("eip_total")] = ModelBase::toJson(eipTotal_); } @@ -51,15 +46,6 @@ bool EipCountRespData::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("eip_total"))) { const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("eip_total")); if(!fieldValue.is_null()) @@ -91,27 +77,6 @@ bool EipCountRespData::fromJson(const web::json::value& val) } -std::string EipCountRespData::getObjectId() const -{ - return objectId_; -} - -void EipCountRespData::setObjectId(const std::string& value) -{ - objectId_ = value; - objectIdIsSet_ = true; -} - -bool EipCountRespData::objectIdIsSet() const -{ - return objectIdIsSet_; -} - -void EipCountRespData::unsetobjectId() -{ - objectIdIsSet_ = false; -} - int32_t EipCountRespData::getEipTotal() const { return eipTotal_; diff --git a/cfw/src/v1/model/EipResource.cpp b/cfw/src/v1/model/EipResource.cpp index 16ce5a347..bd6db2daf 100644 --- a/cfw/src/v1/model/EipResource.cpp +++ b/cfw/src/v1/model/EipResource.cpp @@ -42,8 +42,6 @@ EipResource::EipResource() tagsIsSet_ = false; domainId_ = ""; domainIdIsSet_ = false; - owner_ = ""; - ownerIsSet_ = false; fwDomainId_ = ""; fwDomainIdIsSet_ = false; } @@ -103,9 +101,6 @@ web::json::value EipResource::toJson() const if(domainIdIsSet_) { val[utility::conversions::to_string_t("domain_id")] = ModelBase::toJson(domainId_); } - if(ownerIsSet_) { - val[utility::conversions::to_string_t("owner")] = ModelBase::toJson(owner_); - } if(fwDomainIdIsSet_) { val[utility::conversions::to_string_t("fw_domain_id")] = ModelBase::toJson(fwDomainId_); } @@ -251,15 +246,6 @@ bool EipResource::fromJson(const web::json::value& val) setDomainId(refVal); } } - if(val.has_field(utility::conversions::to_string_t("owner"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("owner")); - if(!fieldValue.is_null()) - { - std::string refVal; - ok &= ModelBase::fromJson(fieldValue, refVal); - setOwner(refVal); - } - } if(val.has_field(utility::conversions::to_string_t("fw_domain_id"))) { const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("fw_domain_id")); if(!fieldValue.is_null()) @@ -588,27 +574,6 @@ void EipResource::unsetdomainId() domainIdIsSet_ = false; } -std::string EipResource::getOwner() const -{ - return owner_; -} - -void EipResource::setOwner(const std::string& value) -{ - owner_ = value; - ownerIsSet_ = true; -} - -bool EipResource::ownerIsSet() const -{ - return ownerIsSet_; -} - -void EipResource::unsetowner() -{ - ownerIsSet_ = false; -} - std::string EipResource::getFwDomainId() const { return fwDomainId_; diff --git a/cfw/src/v1/model/ErInstance.cpp b/cfw/src/v1/model/ErInstance.cpp index 73e573fbc..958862491 100644 --- a/cfw/src/v1/model/ErInstance.cpp +++ b/cfw/src/v1/model/ErInstance.cpp @@ -16,14 +16,8 @@ ErInstance::ErInstance() idIsSet_ = false; name_ = ""; nameIsSet_ = false; - state_ = ""; - stateIsSet_ = false; - enterpriseProjectId_ = ""; - enterpriseProjectIdIsSet_ = false; projectId_ = ""; projectIdIsSet_ = false; - enableIpv6_ = ""; - enableIpv6IsSet_ = false; attachmentId_ = ""; attachmentIdIsSet_ = false; } @@ -44,18 +38,9 @@ web::json::value ErInstance::toJson() const if(nameIsSet_) { val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); } - if(stateIsSet_) { - val[utility::conversions::to_string_t("state")] = ModelBase::toJson(state_); - } - if(enterpriseProjectIdIsSet_) { - val[utility::conversions::to_string_t("enterprise_project_id")] = ModelBase::toJson(enterpriseProjectId_); - } if(projectIdIsSet_) { val[utility::conversions::to_string_t("project_id")] = ModelBase::toJson(projectId_); } - 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_); } @@ -84,24 +69,6 @@ bool ErInstance::fromJson(const web::json::value& val) setName(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("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("project_id"))) { const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("project_id")); if(!fieldValue.is_null()) @@ -111,15 +78,6 @@ bool ErInstance::fromJson(const web::json::value& val) setProjectId(refVal); } } - if(val.has_field(utility::conversions::to_string_t("enable_ipv6"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("enable_ipv6")); - if(!fieldValue.is_null()) - { - std::string refVal; - ok &= ModelBase::fromJson(fieldValue, refVal); - 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()) @@ -175,48 +133,6 @@ void ErInstance::unsetname() nameIsSet_ = false; } -std::string ErInstance::getState() const -{ - return state_; -} - -void ErInstance::setState(const std::string& value) -{ - state_ = value; - stateIsSet_ = true; -} - -bool ErInstance::stateIsSet() const -{ - return stateIsSet_; -} - -void ErInstance::unsetstate() -{ - stateIsSet_ = false; -} - -std::string ErInstance::getEnterpriseProjectId() const -{ - return enterpriseProjectId_; -} - -void ErInstance::setEnterpriseProjectId(const std::string& value) -{ - enterpriseProjectId_ = value; - enterpriseProjectIdIsSet_ = true; -} - -bool ErInstance::enterpriseProjectIdIsSet() const -{ - return enterpriseProjectIdIsSet_; -} - -void ErInstance::unsetenterpriseProjectId() -{ - enterpriseProjectIdIsSet_ = false; -} - std::string ErInstance::getProjectId() const { return projectId_; @@ -238,27 +154,6 @@ void ErInstance::unsetprojectId() projectIdIsSet_ = false; } -std::string ErInstance::getEnableIpv6() const -{ - return enableIpv6_; -} - -void ErInstance::setEnableIpv6(const std::string& value) -{ - enableIpv6_ = value; - enableIpv6IsSet_ = true; -} - -bool ErInstance::enableIpv6IsSet() const -{ - return enableIpv6IsSet_; -} - -void ErInstance::unsetenableIpv6() -{ - enableIpv6IsSet_ = false; -} - std::string ErInstance::getAttachmentId() const { return attachmentId_; diff --git a/cfw/src/v1/model/FailedEipInfo.cpp b/cfw/src/v1/model/FailedEipInfo.cpp new file mode 100644 index 000000000..f6bdfeef0 --- /dev/null +++ b/cfw/src/v1/model/FailedEipInfo.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/cfw/v1/model/FailedEipInfo.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + + + + +FailedEipInfo::FailedEipInfo() +{ + id_ = ""; + idIsSet_ = false; + errorMessage_ = ""; + errorMessageIsSet_ = false; +} + +FailedEipInfo::~FailedEipInfo() = default; + +void FailedEipInfo::validate() +{ +} + +web::json::value FailedEipInfo::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(idIsSet_) { + val[utility::conversions::to_string_t("id")] = ModelBase::toJson(id_); + } + if(errorMessageIsSet_) { + val[utility::conversions::to_string_t("error_message")] = ModelBase::toJson(errorMessage_); + } + + return val; +} +bool FailedEipInfo::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("error_message"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("error_message")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setErrorMessage(refVal); + } + } + return ok; +} + + +std::string FailedEipInfo::getId() const +{ + return id_; +} + +void FailedEipInfo::setId(const std::string& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool FailedEipInfo::idIsSet() const +{ + return idIsSet_; +} + +void FailedEipInfo::unsetid() +{ + idIsSet_ = false; +} + +std::string FailedEipInfo::getErrorMessage() const +{ + return errorMessage_; +} + +void FailedEipInfo::setErrorMessage(const std::string& value) +{ + errorMessage_ = value; + errorMessageIsSet_ = true; +} + +bool FailedEipInfo::errorMessageIsSet() const +{ + return errorMessageIsSet_; +} + +void FailedEipInfo::unseterrorMessage() +{ + errorMessageIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cfw/src/v1/model/GetCreateFirewallJobResponseData.cpp b/cfw/src/v1/model/GetCreateFirewallJobResponseData.cpp new file mode 100644 index 000000000..6d66a7d0f --- /dev/null +++ b/cfw/src/v1/model/GetCreateFirewallJobResponseData.cpp @@ -0,0 +1,182 @@ + + +#include "huaweicloud/cfw/v1/model/GetCreateFirewallJobResponseData.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + + + + +GetCreateFirewallJobResponseData::GetCreateFirewallJobResponseData() +{ + id_ = ""; + idIsSet_ = false; + status_ = ""; + statusIsSet_ = false; + beginTimeIsSet_ = false; + endTimeIsSet_ = false; +} + +GetCreateFirewallJobResponseData::~GetCreateFirewallJobResponseData() = default; + +void GetCreateFirewallJobResponseData::validate() +{ +} + +web::json::value GetCreateFirewallJobResponseData::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(idIsSet_) { + val[utility::conversions::to_string_t("id")] = ModelBase::toJson(id_); + } + if(statusIsSet_) { + val[utility::conversions::to_string_t("status")] = ModelBase::toJson(status_); + } + if(beginTimeIsSet_) { + val[utility::conversions::to_string_t("begin_time")] = ModelBase::toJson(beginTime_); + } + if(endTimeIsSet_) { + val[utility::conversions::to_string_t("end_time")] = ModelBase::toJson(endTime_); + } + + return val; +} +bool GetCreateFirewallJobResponseData::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("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("begin_time"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("begin_time")); + if(!fieldValue.is_null()) + { + utility::datetime refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBeginTime(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()) + { + utility::datetime refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEndTime(refVal); + } + } + return ok; +} + + +std::string GetCreateFirewallJobResponseData::getId() const +{ + return id_; +} + +void GetCreateFirewallJobResponseData::setId(const std::string& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool GetCreateFirewallJobResponseData::idIsSet() const +{ + return idIsSet_; +} + +void GetCreateFirewallJobResponseData::unsetid() +{ + idIsSet_ = false; +} + +std::string GetCreateFirewallJobResponseData::getStatus() const +{ + return status_; +} + +void GetCreateFirewallJobResponseData::setStatus(const std::string& value) +{ + status_ = value; + statusIsSet_ = true; +} + +bool GetCreateFirewallJobResponseData::statusIsSet() const +{ + return statusIsSet_; +} + +void GetCreateFirewallJobResponseData::unsetstatus() +{ + statusIsSet_ = false; +} + +utility::datetime GetCreateFirewallJobResponseData::getBeginTime() const +{ + return beginTime_; +} + +void GetCreateFirewallJobResponseData::setBeginTime(const utility::datetime& value) +{ + beginTime_ = value; + beginTimeIsSet_ = true; +} + +bool GetCreateFirewallJobResponseData::beginTimeIsSet() const +{ + return beginTimeIsSet_; +} + +void GetCreateFirewallJobResponseData::unsetbeginTime() +{ + beginTimeIsSet_ = false; +} + +utility::datetime GetCreateFirewallJobResponseData::getEndTime() const +{ + return endTime_; +} + +void GetCreateFirewallJobResponseData::setEndTime(const utility::datetime& value) +{ + endTime_ = value; + endTimeIsSet_ = true; +} + +bool GetCreateFirewallJobResponseData::endTimeIsSet() const +{ + return endTimeIsSet_; +} + +void GetCreateFirewallJobResponseData::unsetendTime() +{ + endTimeIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cfw/src/v1/model/GetEastWestFirewallResponseBody.cpp b/cfw/src/v1/model/GetEastWestFirewallResponseBody.cpp index 3ca4ac31e..9b40030cb 100644 --- a/cfw/src/v1/model/GetEastWestFirewallResponseBody.cpp +++ b/cfw/src/v1/model/GetEastWestFirewallResponseBody.cpp @@ -18,7 +18,6 @@ GetEastWestFirewallResponseBody::GetEastWestFirewallResponseBody() projectIdIsSet_ = false; status_ = 0; statusIsSet_ = false; - erAssociatedSubnetIsSet_ = false; firewallAssociatedSubnetsIsSet_ = false; erIsSet_ = false; inspectionVpcIsSet_ = false; @@ -31,8 +30,6 @@ GetEastWestFirewallResponseBody::GetEastWestFirewallResponseBody() limitIsSet_ = false; mode_ = ""; modeIsSet_ = false; - ewVpcRouteLimit_ = 0; - ewVpcRouteLimitIsSet_ = false; } GetEastWestFirewallResponseBody::~GetEastWestFirewallResponseBody() = default; @@ -54,9 +51,6 @@ web::json::value GetEastWestFirewallResponseBody::toJson() const if(statusIsSet_) { val[utility::conversions::to_string_t("status")] = ModelBase::toJson(status_); } - if(erAssociatedSubnetIsSet_) { - val[utility::conversions::to_string_t("er_associated_subnet")] = ModelBase::toJson(erAssociatedSubnet_); - } if(firewallAssociatedSubnetsIsSet_) { val[utility::conversions::to_string_t("firewall_associated_subnets")] = ModelBase::toJson(firewallAssociatedSubnets_); } @@ -81,9 +75,6 @@ web::json::value GetEastWestFirewallResponseBody::toJson() const if(modeIsSet_) { val[utility::conversions::to_string_t("mode")] = ModelBase::toJson(mode_); } - if(ewVpcRouteLimitIsSet_) { - val[utility::conversions::to_string_t("ew_vpc_route_limit")] = ModelBase::toJson(ewVpcRouteLimit_); - } return val; } @@ -118,15 +109,6 @@ bool GetEastWestFirewallResponseBody::fromJson(const web::json::value& val) setStatus(refVal); } } - if(val.has_field(utility::conversions::to_string_t("er_associated_subnet"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("er_associated_subnet")); - if(!fieldValue.is_null()) - { - SubnetInfo refVal; - ok &= ModelBase::fromJson(fieldValue, refVal); - setErAssociatedSubnet(refVal); - } - } if(val.has_field(utility::conversions::to_string_t("firewall_associated_subnets"))) { const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("firewall_associated_subnets")); if(!fieldValue.is_null()) @@ -199,15 +181,6 @@ bool GetEastWestFirewallResponseBody::fromJson(const web::json::value& val) setMode(refVal); } } - if(val.has_field(utility::conversions::to_string_t("ew_vpc_route_limit"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ew_vpc_route_limit")); - if(!fieldValue.is_null()) - { - int32_t refVal; - ok &= ModelBase::fromJson(fieldValue, refVal); - setEwVpcRouteLimit(refVal); - } - } return ok; } @@ -275,27 +248,6 @@ void GetEastWestFirewallResponseBody::unsetstatus() statusIsSet_ = false; } -SubnetInfo GetEastWestFirewallResponseBody::getErAssociatedSubnet() const -{ - return erAssociatedSubnet_; -} - -void GetEastWestFirewallResponseBody::setErAssociatedSubnet(const SubnetInfo& value) -{ - erAssociatedSubnet_ = value; - erAssociatedSubnetIsSet_ = true; -} - -bool GetEastWestFirewallResponseBody::erAssociatedSubnetIsSet() const -{ - return erAssociatedSubnetIsSet_; -} - -void GetEastWestFirewallResponseBody::unseterAssociatedSubnet() -{ - erAssociatedSubnetIsSet_ = false; -} - std::vector& GetEastWestFirewallResponseBody::getFirewallAssociatedSubnets() { return firewallAssociatedSubnets_; @@ -464,27 +416,6 @@ void GetEastWestFirewallResponseBody::unsetmode() modeIsSet_ = false; } -int32_t GetEastWestFirewallResponseBody::getEwVpcRouteLimit() const -{ - return ewVpcRouteLimit_; -} - -void GetEastWestFirewallResponseBody::setEwVpcRouteLimit(int32_t value) -{ - ewVpcRouteLimit_ = value; - ewVpcRouteLimitIsSet_ = true; -} - -bool GetEastWestFirewallResponseBody::ewVpcRouteLimitIsSet() const -{ - return ewVpcRouteLimitIsSet_; -} - -void GetEastWestFirewallResponseBody::unsetewVpcRouteLimit() -{ - ewVpcRouteLimitIsSet_ = false; -} - } } } diff --git a/cfw/src/v1/model/HttpQueryCaptureTaskResponseData.cpp b/cfw/src/v1/model/HttpQueryCaptureTaskResponseData.cpp index 180ef810c..01c2943dc 100644 --- a/cfw/src/v1/model/HttpQueryCaptureTaskResponseData.cpp +++ b/cfw/src/v1/model/HttpQueryCaptureTaskResponseData.cpp @@ -14,12 +14,8 @@ HttpQueryCaptureTaskResponseData::HttpQueryCaptureTaskResponseData() { limit_ = 0; limitIsSet_ = false; - objectId_ = ""; - objectIdIsSet_ = false; offset_ = 0; offsetIsSet_ = false; - projectId_ = ""; - projectIdIsSet_ = false; total_ = 0L; totalIsSet_ = false; recordsIsSet_ = false; @@ -38,15 +34,9 @@ web::json::value HttpQueryCaptureTaskResponseData::toJson() const 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_); } @@ -69,15 +59,6 @@ bool HttpQueryCaptureTaskResponseData::fromJson(const web::json::value& val) 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()) @@ -87,15 +68,6 @@ bool HttpQueryCaptureTaskResponseData::fromJson(const web::json::value& val) 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()) @@ -139,27 +111,6 @@ 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_; @@ -181,27 +132,6 @@ 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_; diff --git a/cfw/src/v1/model/ListCaptureTaskResponse.cpp b/cfw/src/v1/model/ListCaptureTaskResponse.cpp index 0e75daeb0..dcf9489d7 100644 --- a/cfw/src/v1/model/ListCaptureTaskResponse.cpp +++ b/cfw/src/v1/model/ListCaptureTaskResponse.cpp @@ -39,7 +39,7 @@ bool ListCaptureTaskResponse::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("data")); if(!fieldValue.is_null()) { - std::vector refVal; + HttpQueryCaptureTaskResponseData refVal; ok &= ModelBase::fromJson(fieldValue, refVal); setData(refVal); } @@ -48,12 +48,12 @@ bool ListCaptureTaskResponse::fromJson(const web::json::value& val) } -std::vector& ListCaptureTaskResponse::getData() +HttpQueryCaptureTaskResponseData ListCaptureTaskResponse::getData() const { return data_; } -void ListCaptureTaskResponse::setData(const std::vector& value) +void ListCaptureTaskResponse::setData(const HttpQueryCaptureTaskResponseData& value) { data_ = value; dataIsSet_ = true; diff --git a/cfw/src/v1/model/ListJobResponse.cpp b/cfw/src/v1/model/ListJobResponse.cpp index 2c840ad65..0f395027e 100644 --- a/cfw/src/v1/model/ListJobResponse.cpp +++ b/cfw/src/v1/model/ListJobResponse.cpp @@ -12,10 +12,6 @@ namespace Model { ListJobResponse::ListJobResponse() { - errorCode_ = ""; - errorCodeIsSet_ = false; - errorMsg_ = ""; - errorMsgIsSet_ = false; dataIsSet_ = false; } @@ -29,12 +25,6 @@ web::json::value ListJobResponse::toJson() const { web::json::value val = web::json::value::object(); - if(errorCodeIsSet_) { - val[utility::conversions::to_string_t("error_code")] = ModelBase::toJson(errorCode_); - } - if(errorMsgIsSet_) { - val[utility::conversions::to_string_t("error_msg")] = ModelBase::toJson(errorMsg_); - } if(dataIsSet_) { val[utility::conversions::to_string_t("data")] = ModelBase::toJson(data_); } @@ -45,29 +35,11 @@ bool ListJobResponse::fromJson(const web::json::value& val) { bool ok = true; - if(val.has_field(utility::conversions::to_string_t("error_code"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("error_code")); - if(!fieldValue.is_null()) - { - std::string refVal; - ok &= ModelBase::fromJson(fieldValue, refVal); - setErrorCode(refVal); - } - } - if(val.has_field(utility::conversions::to_string_t("error_msg"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("error_msg")); - if(!fieldValue.is_null()) - { - std::string refVal; - ok &= ModelBase::fromJson(fieldValue, refVal); - setErrorMsg(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()) { - Object refVal; + GetCreateFirewallJobResponseData refVal; ok &= ModelBase::fromJson(fieldValue, refVal); setData(refVal); } @@ -76,54 +48,12 @@ bool ListJobResponse::fromJson(const web::json::value& val) } -std::string ListJobResponse::getErrorCode() const -{ - return errorCode_; -} - -void ListJobResponse::setErrorCode(const std::string& value) -{ - errorCode_ = value; - errorCodeIsSet_ = true; -} - -bool ListJobResponse::errorCodeIsSet() const -{ - return errorCodeIsSet_; -} - -void ListJobResponse::unseterrorCode() -{ - errorCodeIsSet_ = false; -} - -std::string ListJobResponse::getErrorMsg() const -{ - return errorMsg_; -} - -void ListJobResponse::setErrorMsg(const std::string& value) -{ - errorMsg_ = value; - errorMsgIsSet_ = true; -} - -bool ListJobResponse::errorMsgIsSet() const -{ - return errorMsgIsSet_; -} - -void ListJobResponse::unseterrorMsg() -{ - errorMsgIsSet_ = false; -} - -Object ListJobResponse::getData() const +GetCreateFirewallJobResponseData ListJobResponse::getData() const { return data_; } -void ListJobResponse::setData(const Object& value) +void ListJobResponse::setData(const GetCreateFirewallJobResponseData& value) { data_ = value; dataIsSet_ = true; diff --git a/cfw/src/v1/model/SuccessRsp_data.cpp b/cfw/src/v1/model/OrderRuleId.cpp similarity index 65% rename from cfw/src/v1/model/SuccessRsp_data.cpp rename to cfw/src/v1/model/OrderRuleId.cpp index 60f059db9..de4e45080 100644 --- a/cfw/src/v1/model/SuccessRsp_data.cpp +++ b/cfw/src/v1/model/OrderRuleId.cpp @@ -1,6 +1,6 @@ -#include "huaweicloud/cfw/v1/model/SuccessRsp_data.h" +#include "huaweicloud/cfw/v1/model/OrderRuleId.h" namespace HuaweiCloud { namespace Sdk { namespace Cfw { @@ -10,19 +10,19 @@ namespace Model { -SuccessRsp_data::SuccessRsp_data() +OrderRuleId::OrderRuleId() { id_ = ""; idIsSet_ = false; } -SuccessRsp_data::~SuccessRsp_data() = default; +OrderRuleId::~OrderRuleId() = default; -void SuccessRsp_data::validate() +void OrderRuleId::validate() { } -web::json::value SuccessRsp_data::toJson() const +web::json::value OrderRuleId::toJson() const { web::json::value val = web::json::value::object(); @@ -32,7 +32,7 @@ web::json::value SuccessRsp_data::toJson() const return val; } -bool SuccessRsp_data::fromJson(const web::json::value& val) +bool OrderRuleId::fromJson(const web::json::value& val) { bool ok = true; @@ -49,23 +49,23 @@ bool SuccessRsp_data::fromJson(const web::json::value& val) } -std::string SuccessRsp_data::getId() const +std::string OrderRuleId::getId() const { return id_; } -void SuccessRsp_data::setId(const std::string& value) +void OrderRuleId::setId(const std::string& value) { id_ = value; idIsSet_ = true; } -bool SuccessRsp_data::idIsSet() const +bool OrderRuleId::idIsSet() const { return idIsSet_; } -void SuccessRsp_data::unsetid() +void OrderRuleId::unsetid() { idIsSet_ = false; } diff --git a/cfw/src/v1/model/ServiceSetId.cpp b/cfw/src/v1/model/ServiceSetId.cpp new file mode 100644 index 000000000..4963a126b --- /dev/null +++ b/cfw/src/v1/model/ServiceSetId.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/cfw/v1/model/ServiceSetId.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Cfw { +namespace V1 { +namespace Model { + + + + +ServiceSetId::ServiceSetId() +{ + id_ = ""; + idIsSet_ = false; + name_ = ""; + nameIsSet_ = false; +} + +ServiceSetId::~ServiceSetId() = default; + +void ServiceSetId::validate() +{ +} + +web::json::value ServiceSetId::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 ServiceSetId::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 ServiceSetId::getId() const +{ + return id_; +} + +void ServiceSetId::setId(const std::string& value) +{ + id_ = value; + idIsSet_ = true; +} + +bool ServiceSetId::idIsSet() const +{ + return idIsSet_; +} + +void ServiceSetId::unsetid() +{ + idIsSet_ = false; +} + +std::string ServiceSetId::getName() const +{ + return name_; +} + +void ServiceSetId::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool ServiceSetId::nameIsSet() const +{ + return nameIsSet_; +} + +void ServiceSetId::unsetname() +{ + nameIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/cfw/src/v1/model/SubnetInfo.cpp b/cfw/src/v1/model/SubnetInfo.cpp index 3913750a9..45fda83c0 100644 --- a/cfw/src/v1/model/SubnetInfo.cpp +++ b/cfw/src/v1/model/SubnetInfo.cpp @@ -24,8 +24,6 @@ SubnetInfo::SubnetInfo() gatewayIpIsSet_ = false; vpcId_ = ""; vpcIdIsSet_ = false; - status_ = ""; - statusIsSet_ = false; ipv6Enable_ = false; ipv6EnableIsSet_ = false; } @@ -58,9 +56,6 @@ web::json::value SubnetInfo::toJson() const if(vpcIdIsSet_) { val[utility::conversions::to_string_t("vpc_id")] = ModelBase::toJson(vpcId_); } - if(statusIsSet_) { - val[utility::conversions::to_string_t("status")] = ModelBase::toJson(status_); - } if(ipv6EnableIsSet_) { val[utility::conversions::to_string_t("ipv6_enable")] = ModelBase::toJson(ipv6Enable_); } @@ -125,15 +120,6 @@ bool SubnetInfo::fromJson(const web::json::value& val) setVpcId(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("ipv6_enable"))) { const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ipv6_enable")); if(!fieldValue.is_null()) @@ -273,27 +259,6 @@ void SubnetInfo::unsetvpcId() vpcIdIsSet_ = false; } -std::string SubnetInfo::getStatus() const -{ - return status_; -} - -void SubnetInfo::setStatus(const std::string& value) -{ - status_ = value; - statusIsSet_ = true; -} - -bool SubnetInfo::statusIsSet() const -{ - return statusIsSet_; -} - -void SubnetInfo::unsetstatus() -{ - statusIsSet_ = false; -} - bool SubnetInfo::isIpv6Enable() const { return ipv6Enable_; diff --git a/cfw/src/v1/model/UpdateAclRuleOrderResponse.cpp b/cfw/src/v1/model/UpdateAclRuleOrderResponse.cpp index d1d3200c8..39151e75f 100644 --- a/cfw/src/v1/model/UpdateAclRuleOrderResponse.cpp +++ b/cfw/src/v1/model/UpdateAclRuleOrderResponse.cpp @@ -39,7 +39,7 @@ bool UpdateAclRuleOrderResponse::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("data")); if(!fieldValue.is_null()) { - RuleId refVal; + OrderRuleId refVal; ok &= ModelBase::fromJson(fieldValue, refVal); setData(refVal); } @@ -48,12 +48,12 @@ bool UpdateAclRuleOrderResponse::fromJson(const web::json::value& val) } -RuleId UpdateAclRuleOrderResponse::getData() const +OrderRuleId UpdateAclRuleOrderResponse::getData() const { return data_; } -void UpdateAclRuleOrderResponse::setData(const RuleId& value) +void UpdateAclRuleOrderResponse::setData(const OrderRuleId& value) { data_ = value; dataIsSet_ = true; diff --git a/cfw/src/v1/model/UpdateAddressSetResponseData.cpp b/cfw/src/v1/model/UpdateAddressSetResponseData.cpp index d16350556..3a15c90c7 100644 --- a/cfw/src/v1/model/UpdateAddressSetResponseData.cpp +++ b/cfw/src/v1/model/UpdateAddressSetResponseData.cpp @@ -14,6 +14,8 @@ UpdateAddressSetResponseData::UpdateAddressSetResponseData() { id_ = ""; idIsSet_ = false; + name_ = ""; + nameIsSet_ = false; } UpdateAddressSetResponseData::~UpdateAddressSetResponseData() = default; @@ -29,6 +31,9 @@ web::json::value UpdateAddressSetResponseData::toJson() const 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; } @@ -45,6 +50,15 @@ bool UpdateAddressSetResponseData::fromJson(const web::json::value& val) 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; } @@ -70,6 +84,27 @@ void UpdateAddressSetResponseData::unsetid() idIsSet_ = false; } +std::string UpdateAddressSetResponseData::getName() const +{ + return name_; +} + +void UpdateAddressSetResponseData::setName(const std::string& value) +{ + name_ = value; + nameIsSet_ = true; +} + +bool UpdateAddressSetResponseData::nameIsSet() const +{ + return nameIsSet_; +} + +void UpdateAddressSetResponseData::unsetname() +{ + nameIsSet_ = false; +} + } } } diff --git a/cfw/src/v1/model/UpdateBlackWhiteListResponse.cpp b/cfw/src/v1/model/UpdateBlackWhiteListResponse.cpp index 4a38410a6..d00ffc796 100644 --- a/cfw/src/v1/model/UpdateBlackWhiteListResponse.cpp +++ b/cfw/src/v1/model/UpdateBlackWhiteListResponse.cpp @@ -39,7 +39,7 @@ bool UpdateBlackWhiteListResponse::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; + BlackWhiteListId refVal; ok &= ModelBase::fromJson(fieldValue, refVal); setData(refVal); } @@ -48,12 +48,12 @@ bool UpdateBlackWhiteListResponse::fromJson(const web::json::value& val) } -IdObject UpdateBlackWhiteListResponse::getData() const +BlackWhiteListId UpdateBlackWhiteListResponse::getData() const { return data_; } -void UpdateBlackWhiteListResponse::setData(const IdObject& value) +void UpdateBlackWhiteListResponse::setData(const BlackWhiteListId& value) { data_ = value; dataIsSet_ = true; diff --git a/cfw/src/v1/model/UpdateRuleAclDto.cpp b/cfw/src/v1/model/UpdateRuleAclDto.cpp index 48b9b28cd..828d6abcf 100644 --- a/cfw/src/v1/model/UpdateRuleAclDto.cpp +++ b/cfw/src/v1/model/UpdateRuleAclDto.cpp @@ -16,7 +16,6 @@ UpdateRuleAclDto::UpdateRuleAclDto() addressTypeIsSet_ = false; name_ = ""; nameIsSet_ = false; - sequenceIsSet_ = false; direction_ = 0; directionIsSet_ = false; actionType_ = 0; @@ -24,8 +23,6 @@ UpdateRuleAclDto::UpdateRuleAclDto() status_ = 0; statusIsSet_ = false; applicationsIsSet_ = false; - applicationsJsonString_ = ""; - applicationsJsonStringIsSet_ = false; description_ = ""; descriptionIsSet_ = false; longConnectTimeHour_ = 0L; @@ -62,9 +59,6 @@ web::json::value UpdateRuleAclDto::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_); } @@ -77,9 +71,6 @@ web::json::value UpdateRuleAclDto::toJson() const if(applicationsIsSet_) { val[utility::conversions::to_string_t("applications")] = ModelBase::toJson(applications_); } - if(applicationsJsonStringIsSet_) { - val[utility::conversions::to_string_t("applicationsJsonString")] = ModelBase::toJson(applicationsJsonString_); - } if(descriptionIsSet_) { val[utility::conversions::to_string_t("description")] = ModelBase::toJson(description_); } @@ -138,15 +129,6 @@ bool UpdateRuleAclDto::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()) @@ -183,15 +165,6 @@ bool UpdateRuleAclDto::fromJson(const web::json::value& val) setApplications(refVal); } } - if(val.has_field(utility::conversions::to_string_t("applicationsJsonString"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("applicationsJsonString")); - if(!fieldValue.is_null()) - { - std::string refVal; - ok &= ModelBase::fromJson(fieldValue, refVal); - setApplicationsJsonString(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()) @@ -337,27 +310,6 @@ void UpdateRuleAclDto::unsetname() nameIsSet_ = false; } -OrderRuleAclDto UpdateRuleAclDto::getSequence() const -{ - return sequence_; -} - -void UpdateRuleAclDto::setSequence(const OrderRuleAclDto& value) -{ - sequence_ = value; - sequenceIsSet_ = true; -} - -bool UpdateRuleAclDto::sequenceIsSet() const -{ - return sequenceIsSet_; -} - -void UpdateRuleAclDto::unsetsequence() -{ - sequenceIsSet_ = false; -} - int32_t UpdateRuleAclDto::getDirection() const { return direction_; @@ -442,27 +394,6 @@ void UpdateRuleAclDto::unsetapplications() applicationsIsSet_ = false; } -std::string UpdateRuleAclDto::getApplicationsJsonString() const -{ - return applicationsJsonString_; -} - -void UpdateRuleAclDto::setApplicationsJsonString(const std::string& value) -{ - applicationsJsonString_ = value; - applicationsJsonStringIsSet_ = true; -} - -bool UpdateRuleAclDto::applicationsJsonStringIsSet() const -{ - return applicationsJsonStringIsSet_; -} - -void UpdateRuleAclDto::unsetapplicationsJsonString() -{ - applicationsJsonStringIsSet_ = false; -} - std::string UpdateRuleAclDto::getDescription() const { return description_; diff --git a/cfw/src/v1/model/UpdateServiceSetResponse.cpp b/cfw/src/v1/model/UpdateServiceSetResponse.cpp index f29f11d39..dbd798df5 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()) { - CommonResponseDTO_data refVal; + ServiceSetId refVal; ok &= ModelBase::fromJson(fieldValue, refVal); setData(refVal); } @@ -48,12 +48,12 @@ bool UpdateServiceSetResponse::fromJson(const web::json::value& val) } -CommonResponseDTO_data UpdateServiceSetResponse::getData() const +ServiceSetId UpdateServiceSetResponse::getData() const { return data_; } -void UpdateServiceSetResponse::setData(const CommonResponseDTO_data& value) +void UpdateServiceSetResponse::setData(const ServiceSetId& value) { data_ = value; dataIsSet_ = true; diff --git a/cfw/src/v1/model/VpcDetail.cpp b/cfw/src/v1/model/VpcDetail.cpp index 4db7e4e28..acc96a03f 100644 --- a/cfw/src/v1/model/VpcDetail.cpp +++ b/cfw/src/v1/model/VpcDetail.cpp @@ -18,8 +18,6 @@ VpcDetail::VpcDetail() nameIsSet_ = false; cidr_ = ""; cidrIsSet_ = false; - status_ = ""; - statusIsSet_ = false; } VpcDetail::~VpcDetail() = default; @@ -41,9 +39,6 @@ web::json::value VpcDetail::toJson() const if(cidrIsSet_) { val[utility::conversions::to_string_t("cidr")] = ModelBase::toJson(cidr_); } - if(statusIsSet_) { - val[utility::conversions::to_string_t("status")] = ModelBase::toJson(status_); - } return val; } @@ -78,15 +73,6 @@ bool VpcDetail::fromJson(const web::json::value& val) setCidr(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); - } - } return ok; } @@ -154,27 +140,6 @@ void VpcDetail::unsetcidr() cidrIsSet_ = false; } -std::string VpcDetail::getStatus() const -{ - return status_; -} - -void VpcDetail::setStatus(const std::string& value) -{ - status_ = value; - statusIsSet_ = true; -} - -bool VpcDetail::statusIsSet() const -{ - return statusIsSet_; -} - -void VpcDetail::unsetstatus() -{ - statusIsSet_ = false; -} - } } } diff --git a/drs/include/huaweicloud/drs/v5/model/CompareJobInfo.h b/drs/include/huaweicloud/drs/v5/model/CompareJobInfo.h index e7f140909..4a5e5fed6 100644 --- a/drs/include/huaweicloud/drs/v5/model/CompareJobInfo.h +++ b/drs/include/huaweicloud/drs/v5/model/CompareJobInfo.h @@ -107,10 +107,10 @@ class HUAWEICLOUD_DRS_V5_EXPORT CompareJobInfo /// 导出比对结果有效期剩余时间。 /// - std::string getReportRemainSeconds() const; + int64_t getReportRemainSeconds() const; bool reportRemainSecondsIsSet() const; void unsetreportRemainSeconds(); - void setReportRemainSeconds(const std::string& value); + void setReportRemainSeconds(int64_t value); /// /// 对比任务的标签。 @@ -139,15 +139,6 @@ class HUAWEICLOUD_DRS_V5_EXPORT CompareJobInfo void unseterrorMsg(); void setErrorMsg(const std::string& value); - /// - /// 动态比对时延。 - /// - - int64_t getDynamicCompareDelay() const; - bool dynamicCompareDelayIsSet() const; - void unsetdynamicCompareDelay(); - void setDynamicCompareDelay(int64_t value); - protected: std::string id_; @@ -164,7 +155,7 @@ class HUAWEICLOUD_DRS_V5_EXPORT CompareJobInfo bool computeTypeIsSet_; std::string exportStatus_; bool exportStatusIsSet_; - std::string reportRemainSeconds_; + int64_t reportRemainSeconds_; bool reportRemainSecondsIsSet_; std::map compareJobTag_; bool compareJobTagIsSet_; @@ -172,8 +163,6 @@ class HUAWEICLOUD_DRS_V5_EXPORT CompareJobInfo bool optionsIsSet_; std::string errorMsg_; bool errorMsgIsSet_; - int64_t dynamicCompareDelay_; - bool dynamicCompareDelayIsSet_; }; diff --git a/drs/src/v5/model/CompareJobInfo.cpp b/drs/src/v5/model/CompareJobInfo.cpp index 478b99831..4e2c58559 100644 --- a/drs/src/v5/model/CompareJobInfo.cpp +++ b/drs/src/v5/model/CompareJobInfo.cpp @@ -26,14 +26,12 @@ CompareJobInfo::CompareJobInfo() computeTypeIsSet_ = false; exportStatus_ = ""; exportStatusIsSet_ = false; - reportRemainSeconds_ = ""; + reportRemainSeconds_ = 0L; reportRemainSecondsIsSet_ = false; compareJobTagIsSet_ = false; optionsIsSet_ = false; errorMsg_ = ""; errorMsgIsSet_ = false; - dynamicCompareDelay_ = 0L; - dynamicCompareDelayIsSet_ = false; } CompareJobInfo::~CompareJobInfo() = default; @@ -79,9 +77,6 @@ web::json::value CompareJobInfo::toJson() const if(errorMsgIsSet_) { val[utility::conversions::to_string_t("error_msg")] = ModelBase::toJson(errorMsg_); } - if(dynamicCompareDelayIsSet_) { - val[utility::conversions::to_string_t("dynamic_compare_delay")] = ModelBase::toJson(dynamicCompareDelay_); - } return val; } @@ -156,7 +151,7 @@ bool CompareJobInfo::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("report_remain_seconds")); if(!fieldValue.is_null()) { - std::string refVal; + int64_t refVal; ok &= ModelBase::fromJson(fieldValue, refVal); setReportRemainSeconds(refVal); } @@ -188,15 +183,6 @@ bool CompareJobInfo::fromJson(const web::json::value& val) setErrorMsg(refVal); } } - if(val.has_field(utility::conversions::to_string_t("dynamic_compare_delay"))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("dynamic_compare_delay")); - if(!fieldValue.is_null()) - { - int64_t refVal; - ok &= ModelBase::fromJson(fieldValue, refVal); - setDynamicCompareDelay(refVal); - } - } return ok; } @@ -348,12 +334,12 @@ void CompareJobInfo::unsetexportStatus() exportStatusIsSet_ = false; } -std::string CompareJobInfo::getReportRemainSeconds() const +int64_t CompareJobInfo::getReportRemainSeconds() const { return reportRemainSeconds_; } -void CompareJobInfo::setReportRemainSeconds(const std::string& value) +void CompareJobInfo::setReportRemainSeconds(int64_t value) { reportRemainSeconds_ = value; reportRemainSecondsIsSet_ = true; @@ -432,27 +418,6 @@ void CompareJobInfo::unseterrorMsg() errorMsgIsSet_ = false; } -int64_t CompareJobInfo::getDynamicCompareDelay() const -{ - return dynamicCompareDelay_; -} - -void CompareJobInfo::setDynamicCompareDelay(int64_t value) -{ - dynamicCompareDelay_ = value; - dynamicCompareDelayIsSet_ = true; -} - -bool CompareJobInfo::dynamicCompareDelayIsSet() const -{ - return dynamicCompareDelayIsSet_; -} - -void CompareJobInfo::unsetdynamicCompareDelay() -{ - dynamicCompareDelayIsSet_ = false; -} - } } } diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/GaussDBforopenGaussClient.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/GaussDBforopenGaussClient.h index db4c55463..523a3ecfe 100644 --- a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/GaussDBforopenGaussClient.h +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/GaussDBforopenGaussClient.h @@ -227,8 +227,14 @@ #include #include #include +#include +#include +#include #include #include +#include +#include +#include #include #include #include @@ -238,6 +244,9 @@ #include #include #include +#include +#include +#include #include #include #include @@ -252,6 +261,23 @@ #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + #include #include #include @@ -996,6 +1022,14 @@ class HUAWEICLOUD_GAUSSDBFOROPENGAUSS_V3_EXPORT GaussDBforopenGaussClient : pub std::shared_ptr startInstance( StartInstanceRequest &request ); + // 开启MySQl兼容端口服务 + // + // 开启指定实例的MySQl兼容端口。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr startMysqlCompatibility( + StartMysqlCompatibilityRequest &request + ); // 停止备份 // // 停止进行中的备份,包括全备和差备。 @@ -1004,6 +1038,14 @@ class HUAWEICLOUD_GAUSSDBFOROPENGAUSS_V3_EXPORT GaussDBforopenGaussClient : pub std::shared_ptr stopBackup( StopBackupRequest &request ); + // 停止数据库 + // + // 停止数据库,同时支持节点级别的停止操作 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr stopInstance( + StopInstanceRequest &request + ); // 应用参数模板 // // 指定实例变更参数模板。 @@ -1036,6 +1078,14 @@ class HUAWEICLOUD_GAUSSDBFOROPENGAUSS_V3_EXPORT GaussDBforopenGaussClient : pub std::shared_ptr updateInstanceName( UpdateInstanceNameRequest &request ); + // 更新/关闭MySQl兼容端口服务 + // + // 更新指定实例的MySQl兼容端口服务配置。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr updateMysqlCompatibility( + UpdateMysqlCompatibilityRequest &request + ); // 实例内核版本升级 // // GaussDB(for openGauss)实例版本升级。包括灰度升级,就地升级,热补丁升级等三种升级方式。 @@ -1090,6 +1140,55 @@ class HUAWEICLOUD_GAUSSDBFOROPENGAUSS_V3_EXPORT GaussDBforopenGaussClient : pub ValidateWeakPasswordRequest &request ); + // 创建限流任务 + // + // 根据具体范围和类型,进行限流任务的创建 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr createLimitTask( + CreateLimitTaskRequest &request + ); + // 删除限流任务 + // + // 根据task_id进行限流任务的删除 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr deleteLimitTask( + DeleteLimitTaskRequest &request + ); + // 根据指定条件查询限流任务列表 + // + // 根据指定条件查询限流任务列表 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr listLimitTask( + ListLimitTaskRequest &request + ); + // 查询节点的sql模板列表 + // + // 查询节点的sql模板列表 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr listNodeLimitSqlModel( + ListNodeLimitSqlModelRequest &request + ); + // 查询限流任务详情 + // + // 查询限流任务详情 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr showLimitTask( + ShowLimitTaskRequest &request + ); + // 修改限流任务 + // + // 根据新的条件进行限流任务的更新 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr updateLimitTask( + UpdateLimitTaskRequest &request + ); + private: #if defined(WIN32) || defined(__WIN32__) || defined(_WIN32) || defined(_MSC_VER) diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/GaussDBforopenGaussMeta.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/GaussDBforopenGaussMeta.h index 3ed6744c2..c906615cb 100644 --- a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/GaussDBforopenGaussMeta.h +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/GaussDBforopenGaussMeta.h @@ -103,15 +103,24 @@ class HUAWEICLOUD_GAUSSDBFOROPENGAUSS_V3_EXPORT GaussDBforopenGaussMeta { static HttpRequestDef genRequestDefForShowSslCertDownloadLink(); static HttpRequestDef genRequestDefForShowUpgradeCandidateVersions(); static HttpRequestDef genRequestDefForStartInstance(); + static HttpRequestDef genRequestDefForStartMysqlCompatibility(); static HttpRequestDef genRequestDefForStopBackup(); + static HttpRequestDef genRequestDefForStopInstance(); static HttpRequestDef genRequestDefForSwitchConfiguration(); static HttpRequestDef genRequestDefForSwitchShard(); static HttpRequestDef genRequestDefForUpdateInstanceConfiguration(); static HttpRequestDef genRequestDefForUpdateInstanceName(); + static HttpRequestDef genRequestDefForUpdateMysqlCompatibility(); static HttpRequestDef genRequestDefForUpgradeInstanceVersion(); static HttpRequestDef genRequestDefForUpgradeInstancesVersion(); static HttpRequestDef genRequestDefForValidateParaGroupName(); static HttpRequestDef genRequestDefForValidateWeakPassword(); + static HttpRequestDef genRequestDefForCreateLimitTask(); + static HttpRequestDef genRequestDefForDeleteLimitTask(); + static HttpRequestDef genRequestDefForListLimitTask(); + static HttpRequestDef genRequestDefForListNodeLimitSqlModel(); + static HttpRequestDef genRequestDefForShowLimitTask(); + static HttpRequestDef genRequestDefForUpdateLimitTask(); }; } diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/CreateLimitTaskNodeOption.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/CreateLimitTaskNodeOption.h new file mode 100644 index 000000000..41601db8a --- /dev/null +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/CreateLimitTaskNodeOption.h @@ -0,0 +1,75 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_CreateLimitTaskNodeOption_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_CreateLimitTaskNodeOption_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 CreateLimitTaskNodeOption + : public ModelBase +{ +public: + CreateLimitTaskNodeOption(); + virtual ~CreateLimitTaskNodeOption(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateLimitTaskNodeOption members + + /// + /// 节点id。 + /// + + std::string getNodeId() const; + bool nodeIdIsSet() const; + void unsetnodeId(); + void setNodeId(const std::string& value); + + /// + /// 该节点执行的sql语句id。如果类型为SQL_ID,必须与limit_type_value值一致。 + /// + + std::string getSqlId() const; + bool sqlIdIsSet() const; + void unsetsqlId(); + void setSqlId(const std::string& value); + + +protected: + std::string nodeId_; + bool nodeIdIsSet_; + std::string sqlId_; + bool sqlIdIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_CreateLimitTaskNodeOption_H_ diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/CreateLimitTaskNodeResult.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/CreateLimitTaskNodeResult.h new file mode 100644 index 000000000..2e9555e04 --- /dev/null +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/CreateLimitTaskNodeResult.h @@ -0,0 +1,75 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_CreateLimitTaskNodeResult_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_CreateLimitTaskNodeResult_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 CreateLimitTaskNodeResult + : public ModelBase +{ +public: + CreateLimitTaskNodeResult(); + virtual ~CreateLimitTaskNodeResult(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateLimitTaskNodeResult members + + /// + /// 节点id。 + /// + + std::string getNodeId() const; + bool nodeIdIsSet() const; + void unsetnodeId(); + void setNodeId(const std::string& value); + + /// + /// 该节点执行的sql语句id。 + /// + + std::string getSqlId() const; + bool sqlIdIsSet() const; + void unsetsqlId(); + void setSqlId(const std::string& value); + + +protected: + std::string nodeId_; + bool nodeIdIsSet_; + std::string sqlId_; + bool sqlIdIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_CreateLimitTaskNodeResult_H_ diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/CreateLimitTaskRequest.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/CreateLimitTaskRequest.h new file mode 100644 index 000000000..64a6f2943 --- /dev/null +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/CreateLimitTaskRequest.h @@ -0,0 +1,83 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_CreateLimitTaskRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_CreateLimitTaskRequest_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 CreateLimitTaskRequest + : public ModelBase +{ +public: + CreateLimitTaskRequest(); + virtual ~CreateLimitTaskRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateLimitTaskRequest members + + /// + /// 实例ID。 + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// + /// + + CreateLimitTaskRequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const CreateLimitTaskRequestBody& value); + + +protected: + std::string instanceId_; + bool instanceIdIsSet_; + CreateLimitTaskRequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + CreateLimitTaskRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_CreateLimitTaskRequest_H_ diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/CreateLimitTaskRequestBody.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/CreateLimitTaskRequestBody.h new file mode 100644 index 000000000..b5fc334e7 --- /dev/null +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/CreateLimitTaskRequestBody.h @@ -0,0 +1,198 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_CreateLimitTaskRequestBody_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_CreateLimitTaskRequestBody_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 CreateLimitTaskRequestBody + : public ModelBase +{ +public: + CreateLimitTaskRequestBody(); + virtual ~CreateLimitTaskRequestBody(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateLimitTaskRequestBody members + + /// + /// 限流任务范围,目前支持SQL,SESSION级别范围。 + /// + + std::string getTaskScope() const; + bool taskScopeIsSet() const; + void unsettaskScope(); + void setTaskScope(const std::string& value); + + /// + /// 任务开始时间,取值范围:非空且大于等于当前时间的前俩分钟,格式必须为yyyy-mm-ddThh:mm:ssZ,当前时间指UTC时间,SQL范围必传。 + /// + + std::string getStartTime() const; + bool startTimeIsSet() const; + void unsetstartTime(); + void setStartTime(const std::string& value); + + /// + /// 任务结束时间,取值范围:非空且大于任务开始时间,格式必须为yyyy-mm-ddThh:mm:ssZ,当前时间指UTC时间,SQL范围必传。 + /// + + std::string getEndTime() const; + bool endTimeIsSet() const; + void unsetendTime(); + void setEndTime(const std::string& value); + + /// + /// 限流类型:当限流范围为SQL级别时,可选SQL_ID、SQL_TYPE类型,当限流范围为SESSION级别时,可选SESSION_ACTIVE_MAX_COUNT类型。 + /// + + std::string getLimitType() const; + bool limitTypeIsSet() const; + void unsetlimitType(); + void setLimitType(const std::string& value); + + /// + /// 限流类型,当限流类型为SQL_ID类型时,该值为选中模板的sqlId,当限流类型为SQL_TYPE类型时,值为SQL类型,目前支持select,update,insert,delete,meger五种值,当限流类型为SESSION_ACTIVE_MAX_COUNT类型时,只支持CPU_OR_MEMORY一种值。 + /// + + std::string getLimitTypeValue() const; + bool limitTypeValueIsSet() const; + void unsetlimitTypeValue(); + void setLimitTypeValue(const std::string& value); + + /// + /// 关键词,当且仅当类型为SQL_TYPE,必传,多个关键词以逗号隔开,数量范围为[2,100]个,每个关键词长度范围[2,64]位,关键词不允许包含 \" 或 \\ 或 {} 或 null值 以及非首尾的空格符。 + /// + + std::string getKeyWords() const; + bool keyWordsIsSet() const; + void unsetkeyWords(); + void setKeyWords(const std::string& value); + + /// + /// 限流任务名,必传,只能为英文字母大小写,下划线,数字和$符,最大长度为100个字符。 + /// + + std::string getTaskName() const; + bool taskNameIsSet() const; + void unsettaskName(); + void setTaskName(const std::string& value); + + /// + /// CN节点执行过的SQL模板,如果类型为SQLID,则为必传。 + /// + + std::string getSqlModel() const; + bool sqlModelIsSet() const; + void unsetsqlModel(); + void setSqlModel(const std::string& value); + + /// + /// 并发数,大于等于零的正整数,取值范围[0, 2147483647]。 + /// + + int32_t getParallelSize() const; + bool parallelSizeIsSet() const; + void unsetparallelSize(); + void setParallelSize(int32_t value); + + /// + /// cpu利用率阈值,正整数,取值范围[0,100),如果类型为SESSION_ACTIVE_MAX_COUNT,必传,不支持和内存利用率阈值同时为0,如果选择只限制CPU、内存中的其中一个,则另一个必须传值0。 + /// + + int32_t getCpuUtilization() const; + bool cpuUtilizationIsSet() const; + void unsetcpuUtilization(); + void setCpuUtilization(int32_t value); + + /// + /// 内存利用率阈值,正整数,取值范围[0,100),如果类型为SESSION_ACTIVE_MAX_COUNT,必传,不支持和cpu利用率阈值同时为0,如果选择只限制CPU、内存中的其中一个,则另一个必须传值0。 + /// + + int32_t getMemoryUtilization() const; + bool memoryUtilizationIsSet() const; + void unsetmemoryUtilization(); + void setMemoryUtilization(int32_t value); + + /// + /// CN节点数据库组,每个数据库字符串以逗号形式隔,如果类型为SQL_TYPE,则为必传。 + /// + + std::string getDatabases() const; + bool databasesIsSet() const; + void unsetdatabases(); + void setDatabases(const std::string& value); + + /// + /// CN节点信息列表,如果类型为SQL_ID,则为必传 + /// + + std::vector& getNodeInfos(); + bool nodeInfosIsSet() const; + void unsetnodeInfos(); + void setNodeInfos(const std::vector& value); + + +protected: + std::string taskScope_; + bool taskScopeIsSet_; + std::string startTime_; + bool startTimeIsSet_; + std::string endTime_; + bool endTimeIsSet_; + std::string limitType_; + bool limitTypeIsSet_; + std::string limitTypeValue_; + bool limitTypeValueIsSet_; + std::string keyWords_; + bool keyWordsIsSet_; + std::string taskName_; + bool taskNameIsSet_; + std::string sqlModel_; + bool sqlModelIsSet_; + int32_t parallelSize_; + bool parallelSizeIsSet_; + int32_t cpuUtilization_; + bool cpuUtilizationIsSet_; + int32_t memoryUtilization_; + bool memoryUtilizationIsSet_; + std::string databases_; + bool databasesIsSet_; + std::vector nodeInfos_; + bool nodeInfosIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_CreateLimitTaskRequestBody_H_ diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/CreateLimitTaskResponse.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/CreateLimitTaskResponse.h new file mode 100644 index 000000000..bd6e6b89f --- /dev/null +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/CreateLimitTaskResponse.h @@ -0,0 +1,300 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_CreateLimitTaskResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_CreateLimitTaskResponse_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; +/// +/// Response Object +/// +class HUAWEICLOUD_GAUSSDBFOROPENGAUSS_V3_EXPORT CreateLimitTaskResponse + : public ModelBase, public HttpResponse +{ +public: + CreateLimitTaskResponse(); + virtual ~CreateLimitTaskResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// CreateLimitTaskResponse members + + /// + /// 限流任务ID。 + /// + + std::string getTaskId() const; + bool taskIdIsSet() const; + void unsettaskId(); + void setTaskId(const std::string& value); + + /// + /// 任务限流范围,与请求参数相同。 + /// + + std::string getTaskScope() const; + bool taskScopeIsSet() const; + void unsettaskScope(); + void setTaskScope(const std::string& value); + + /// + /// 任务限流类型,与请求参数相同。 + /// + + std::string getLimitType() const; + bool limitTypeIsSet() const; + void unsetlimitType(); + void setLimitType(const std::string& value); + + /// + /// 任务限流类型值,与请求参数相同。 + /// + + std::string getLimitTypeValue() const; + bool limitTypeValueIsSet() const; + void unsetlimitTypeValue(); + void setLimitTypeValue(const std::string& value); + + /// + /// CN节点数据库组,每个数据库字符串以逗号形式隔开。 + /// + + std::string getDatabases() const; + bool databasesIsSet() const; + void unsetdatabases(); + void setDatabases(const std::string& value); + + /// + /// 限流任务名。 + /// + + std::string getTaskName() const; + bool taskNameIsSet() const; + void unsettaskName(); + void setTaskName(const std::string& value); + + /// + /// SQL模板,仅当任务类型为SQL_ID时,返回该值且与请求参数相同。 + /// + + std::string getSqlModel() const; + bool sqlModelIsSet() const; + void unsetsqlModel(); + void setSqlModel(const std::string& value); + + /// + /// 关键词,仅当任务类型为SQL_TYPE时,返回该值且与请求参数相同。 + /// + + std::vector& getKeyWords(); + bool keyWordsIsSet() const; + void unsetkeyWords(); + void setKeyWords(const std::vector& value); + + /// + /// 限流任务状态,当前支持:CREATING,UPDATEING,DELETING,WAIT_EXCUTE,EXCUTING,TIME_OVER,DELETED,CREATE_FAILED,UPDATE_FAILED,DELETE_FAILED,EXCEPTION,NODE_SHUT_DOWN。 + /// + + std::string getStatus() const; + bool statusIsSet() const; + void unsetstatus(); + void setStatus(const std::string& value); + + /// + /// 实例id。 + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// 规则名。 + /// + + std::string getRuleName() const; + bool ruleNameIsSet() const; + void unsetruleName(); + void setRuleName(const std::string& value); + + /// + /// 并发数,与请求参数相同。 + /// + + int32_t getParallelSize() const; + bool parallelSizeIsSet() const; + void unsetparallelSize(); + void setParallelSize(int32_t value); + + /// + /// cpu利用率阈值,仅当任务类型为SESSION_ACTIVE_MAX_COUNT时,返回该值且只保留正整数。 + /// + + int32_t getCpuUtilization() const; + bool cpuUtilizationIsSet() const; + void unsetcpuUtilization(); + void setCpuUtilization(int32_t value); + + /// + /// 内存利用率阈值,仅当任务类型为SESSION_ACTIVE_MAX_COUNT时,返回该值且只保留正整数。 + /// + + int32_t getMemoryUtilization() const; + bool memoryUtilizationIsSet() const; + void unsetmemoryUtilization(); + void setMemoryUtilization(int32_t value); + + /// + /// 限流任务开始时间,与请求参数相同,格式为yyyy-mm-ddThh:mm:ssZ,当前时间指UTC时间。 + /// + + std::string getStartTime() const; + bool startTimeIsSet() const; + void unsetstartTime(); + void setStartTime(const std::string& value); + + /// + /// 限流任务结束时间,与请求参数相同,格式为yyyy-mm-ddThh:mm:ssZ,当前时间指UTC时间。 + /// + + std::string getEndTime() const; + bool endTimeIsSet() const; + void unsetendTime(); + void setEndTime(const std::string& value); + + /// + /// 创建时间为本地时间,格式为yyyy-mm-ddThh:mm:ssZ。 + /// + + std::string getCreated() const; + bool createdIsSet() const; + void unsetcreated(); + void setCreated(const std::string& value); + + /// + /// 更新时间为本地时间,格式为yyyy-mm-ddThh:mm:ssZ。 + /// + + std::string getUpdated() const; + bool updatedIsSet() const; + void unsetupdated(); + void setUpdated(const std::string& value); + + /// + /// 创建者。 + /// + + std::string getCreator() const; + bool creatorIsSet() const; + void unsetcreator(); + void setCreator(const std::string& value); + + /// + /// 更新者。 + /// + + std::string getModifier() const; + bool modifierIsSet() const; + void unsetmodifier(); + void setModifier(const std::string& value); + + /// + /// CN节点信息列表,如果类型为SQLID,必返。 + /// + + std::vector& getNodeInfos(); + bool nodeInfosIsSet() const; + void unsetnodeInfos(); + void setNodeInfos(const std::vector& value); + + /// + /// 工作流ID。 + /// + + std::string getJobId() const; + bool jobIdIsSet() const; + void unsetjobId(); + void setJobId(const std::string& value); + + +protected: + std::string taskId_; + bool taskIdIsSet_; + std::string taskScope_; + bool taskScopeIsSet_; + std::string limitType_; + bool limitTypeIsSet_; + std::string limitTypeValue_; + bool limitTypeValueIsSet_; + std::string databases_; + bool databasesIsSet_; + std::string taskName_; + bool taskNameIsSet_; + std::string sqlModel_; + bool sqlModelIsSet_; + std::vector keyWords_; + bool keyWordsIsSet_; + std::string status_; + bool statusIsSet_; + std::string instanceId_; + bool instanceIdIsSet_; + std::string ruleName_; + bool ruleNameIsSet_; + int32_t parallelSize_; + bool parallelSizeIsSet_; + int32_t cpuUtilization_; + bool cpuUtilizationIsSet_; + int32_t memoryUtilization_; + bool memoryUtilizationIsSet_; + std::string startTime_; + bool startTimeIsSet_; + std::string endTime_; + bool endTimeIsSet_; + std::string created_; + bool createdIsSet_; + std::string updated_; + bool updatedIsSet_; + std::string creator_; + bool creatorIsSet_; + std::string modifier_; + bool modifierIsSet_; + std::vector nodeInfos_; + bool nodeInfosIsSet_; + std::string jobId_; + bool jobIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_CreateLimitTaskResponse_H_ diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/DeleteLimitTaskRequest.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/DeleteLimitTaskRequest.h new file mode 100644 index 000000000..c5956f794 --- /dev/null +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/DeleteLimitTaskRequest.h @@ -0,0 +1,82 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_DeleteLimitTaskRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_DeleteLimitTaskRequest_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 DeleteLimitTaskRequest + : public ModelBase +{ +public: + DeleteLimitTaskRequest(); + virtual ~DeleteLimitTaskRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DeleteLimitTaskRequest members + + /// + /// 限流任务id。 + /// + + std::string getTaskId() const; + bool taskIdIsSet() const; + void unsettaskId(); + void setTaskId(const std::string& value); + + /// + /// 实例ID。 + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + +protected: + std::string taskId_; + bool taskIdIsSet_; + std::string instanceId_; + bool instanceIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + DeleteLimitTaskRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_DeleteLimitTaskRequest_H_ diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/DeleteLimitTaskResponse.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/DeleteLimitTaskResponse.h new file mode 100644 index 000000000..571c99861 --- /dev/null +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/DeleteLimitTaskResponse.h @@ -0,0 +1,55 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_DeleteLimitTaskResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_DeleteLimitTaskResponse_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 DeleteLimitTaskResponse + : public ModelBase, public HttpResponse +{ +public: + DeleteLimitTaskResponse(); + virtual ~DeleteLimitTaskResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DeleteLimitTaskResponse members + + +protected: + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_DeleteLimitTaskResponse_H_ diff --git a/cfw/include/huaweicloud/cfw/v1/model/ErrorRsp.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ErrorResponse.h similarity index 68% rename from cfw/include/huaweicloud/cfw/v1/model/ErrorRsp.h rename to gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ErrorResponse.h index 1c1557ae7..8c6beaaf1 100644 --- a/cfw/include/huaweicloud/cfw/v1/model/ErrorRsp.h +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ErrorResponse.h @@ -1,9 +1,9 @@ -#ifndef HUAWEICLOUD_SDK_CFW_V1_MODEL_ErrorRsp_H_ -#define HUAWEICLOUD_SDK_CFW_V1_MODEL_ErrorRsp_H_ +#ifndef HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_ErrorResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_ErrorResponse_H_ -#include +#include #include #include @@ -13,21 +13,21 @@ namespace HuaweiCloud { namespace Sdk { -namespace Cfw { -namespace V1 { +namespace Gaussdbforopengauss { +namespace V3 { namespace Model { using namespace HuaweiCloud::Sdk::Core::Utils; using namespace HuaweiCloud::Sdk::Core::Http; /// -/// 失败时返回的错误对象 +/// /// -class HUAWEICLOUD_CFW_V1_EXPORT ErrorRsp +class HUAWEICLOUD_GAUSSDBFOROPENGAUSS_V3_EXPORT ErrorResponse : public ModelBase { public: - ErrorRsp(); - virtual ~ErrorRsp(); + ErrorResponse(); + virtual ~ErrorResponse(); ///////////////////////////////////////////// /// ModelBase overrides @@ -36,10 +36,10 @@ class HUAWEICLOUD_CFW_V1_EXPORT ErrorRsp web::json::value toJson() const override; bool fromJson(const web::json::value& json) override; ///////////////////////////////////////////// - /// ErrorRsp members + /// ErrorResponse members /// - /// 错误码 + /// 错误码。 /// std::string getErrorCode() const; @@ -48,7 +48,7 @@ class HUAWEICLOUD_CFW_V1_EXPORT ErrorRsp void setErrorCode(const std::string& value); /// - /// 错误描述 + /// 错误消息。 /// std::string getErrorMsg() const; @@ -72,4 +72,4 @@ class HUAWEICLOUD_CFW_V1_EXPORT ErrorRsp } } -#endif // HUAWEICLOUD_SDK_CFW_V1_MODEL_ErrorRsp_H_ +#endif // HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_ErrorResponse_H_ diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/LimitTaskRuleInfoOption.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/LimitTaskRuleInfoOption.h new file mode 100644 index 000000000..9b60d8c77 --- /dev/null +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/LimitTaskRuleInfoOption.h @@ -0,0 +1,86 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_LimitTaskRuleInfoOption_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_LimitTaskRuleInfoOption_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 LimitTaskRuleInfoOption + : public ModelBase +{ +public: + LimitTaskRuleInfoOption(); + virtual ~LimitTaskRuleInfoOption(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// LimitTaskRuleInfoOption members + + /// + /// 节点id。 + /// + + std::string getNodeId() const; + bool nodeIdIsSet() const; + void unsetnodeId(); + void setNodeId(const std::string& value); + + /// + /// 规则id。 + /// + + std::string getRuleId() const; + bool ruleIdIsSet() const; + void unsetruleId(); + void setRuleId(const std::string& value); + + /// + /// 状态,当前支持:CREATING,UPDATEING,DELETING,WAIT_EXCUTE,EXCUTING,TIME_OVER,DELETED,CREATE_FAILED,UPDATE_FAILED,DELETE_FAILED,EXCEPTION。 + /// + + std::string getStatus() const; + bool statusIsSet() const; + void unsetstatus(); + void setStatus(const std::string& value); + + +protected: + std::string nodeId_; + bool nodeIdIsSet_; + std::string ruleId_; + bool ruleIdIsSet_; + std::string status_; + bool statusIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_LimitTaskRuleInfoOption_H_ diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ListLimitTaskRequest.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ListLimitTaskRequest.h new file mode 100644 index 000000000..26a00a1a9 --- /dev/null +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ListLimitTaskRequest.h @@ -0,0 +1,181 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_ListLimitTaskRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_ListLimitTaskRequest_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 ListLimitTaskRequest + : public ModelBase +{ +public: + ListLimitTaskRequest(); + virtual ~ListLimitTaskRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListLimitTaskRequest members + + /// + /// 实例ID。 + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// 限流任务范围,目前支持SQL,SESSION。 + /// + + std::string getTaskScope() const; + bool taskScopeIsSet() const; + void unsettaskScope(); + void setTaskScope(const std::string& value); + + /// + /// 限流类型,支持SQL_ID、SQL_TYPE、SESSION_ACTIVE_MAX_COUNT类型。 + /// + + std::string getLimitType() const; + bool limitTypeIsSet() const; + void unsetlimitType(); + void setLimitType(const std::string& value); + + /// + /// 限流类型值,支持模糊匹配。 + /// + + std::string getLimitTypeValue() const; + bool limitTypeValueIsSet() const; + void unsetlimitTypeValue(); + void setLimitTypeValue(const std::string& value); + + /// + /// 限流任务名,支持模糊匹配。 + /// + + std::string getTaskName() const; + bool taskNameIsSet() const; + void unsettaskName(); + void setTaskName(const std::string& value); + + /// + /// sql模板,支持模糊匹配。 + /// + + std::string getSqlModel() const; + bool sqlModelIsSet() const; + void unsetsqlModel(); + void setSqlModel(const std::string& value); + + /// + /// 规则名。 + /// + + std::string getRuleName() const; + bool ruleNameIsSet() const; + void unsetruleName(); + void setRuleName(const std::string& value); + + /// + /// 限流任务开始时间,格式为yyyy-mm-ddThh:mm:ssZ,当前时间指UTC时间。 + /// + + std::string getStartTime() const; + bool startTimeIsSet() const; + void unsetstartTime(); + void setStartTime(const std::string& value); + + /// + /// 限流任务结束时间,格式为yyyy-mm-ddThh:mm:ssZ,当前时间指UTC时间。 + /// + + std::string getEndTime() const; + bool endTimeIsSet() const; + void unsetendTime(); + void setEndTime(const std::string& value); + + /// + /// 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。 取值范围:0 - 10000 + /// + + int32_t getOffset() const; + bool offsetIsSet() const; + void unsetoffset(); + void setOffset(int32_t value); + + /// + /// 查询记录数。默认为10,不能为负数,最小值为1,最大值为100。 + /// + + int32_t getLimit() const; + bool limitIsSet() const; + void unsetlimit(); + void setLimit(int32_t value); + + +protected: + std::string instanceId_; + bool instanceIdIsSet_; + std::string taskScope_; + bool taskScopeIsSet_; + std::string limitType_; + bool limitTypeIsSet_; + std::string limitTypeValue_; + bool limitTypeValueIsSet_; + std::string taskName_; + bool taskNameIsSet_; + std::string sqlModel_; + bool sqlModelIsSet_; + std::string ruleName_; + bool ruleNameIsSet_; + std::string startTime_; + bool startTimeIsSet_; + std::string endTime_; + bool endTimeIsSet_; + int32_t offset_; + bool offsetIsSet_; + int32_t limit_; + bool limitIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ListLimitTaskRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_ListLimitTaskRequest_H_ diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ListLimitTaskResponse.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ListLimitTaskResponse.h new file mode 100644 index 000000000..93a74f0e6 --- /dev/null +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ListLimitTaskResponse.h @@ -0,0 +1,101 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_ListLimitTaskResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_ListLimitTaskResponse_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 ListLimitTaskResponse + : public ModelBase, public HttpResponse +{ +public: + ListLimitTaskResponse(); + virtual ~ListLimitTaskResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListLimitTaskResponse members + + /// + /// 限流任务列表 + /// + + std::vector& getLimitTaskList(); + bool limitTaskListIsSet() const; + void unsetlimitTaskList(); + void setLimitTaskList(const std::vector& value); + + /// + /// 查询记录数。 + /// + + int32_t getLimit() const; + bool limitIsSet() const; + void unsetlimit(); + void setLimit(int32_t value); + + /// + /// 索引位置。 + /// + + int32_t getOffset() const; + bool offsetIsSet() const; + void unsetoffset(); + void setOffset(int32_t value); + + /// + /// 总数。 + /// + + int32_t getTotalCount() const; + bool totalCountIsSet() const; + void unsettotalCount(); + void setTotalCount(int32_t value); + + +protected: + std::vector limitTaskList_; + bool limitTaskListIsSet_; + int32_t limit_; + bool limitIsSet_; + int32_t offset_; + bool offsetIsSet_; + int32_t totalCount_; + bool totalCountIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_ListLimitTaskResponse_H_ diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ListLimitTaskResponseResult.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ListLimitTaskResponseResult.h new file mode 100644 index 000000000..646847eb7 --- /dev/null +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ListLimitTaskResponseResult.h @@ -0,0 +1,286 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_ListLimitTaskResponseResult_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_ListLimitTaskResponseResult_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 ListLimitTaskResponseResult + : public ModelBase +{ +public: + ListLimitTaskResponseResult(); + virtual ~ListLimitTaskResponseResult(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListLimitTaskResponseResult members + + /// + /// 限流任务ID。 + /// + + std::string getTaskId() const; + bool taskIdIsSet() const; + void unsettaskId(); + void setTaskId(const std::string& value); + + /// + /// 任务限流范围。 + /// + + std::string getTaskScope() const; + bool taskScopeIsSet() const; + void unsettaskScope(); + void setTaskScope(const std::string& value); + + /// + /// 任务限流类型。 + /// + + std::string getLimitType() const; + bool limitTypeIsSet() const; + void unsetlimitType(); + void setLimitType(const std::string& value); + + /// + /// 任务限流类型值。 + /// + + std::string getLimitTypeValue() const; + bool limitTypeValueIsSet() const; + void unsetlimitTypeValue(); + void setLimitTypeValue(const std::string& value); + + /// + /// 限流任务名。 + /// + + std::string getTaskName() const; + bool taskNameIsSet() const; + void unsettaskName(); + void setTaskName(const std::string& value); + + /// + /// CN节点数据库组,每个数据库字符串以逗号形式隔开。 + /// + + std::string getDatabases() const; + bool databasesIsSet() const; + void unsetdatabases(); + void setDatabases(const std::string& value); + + /// + /// SQL模板,仅当任务类型为SQL_ID时,返回该值。 + /// + + std::string getSqlModel() const; + bool sqlModelIsSet() const; + void unsetsqlModel(); + void setSqlModel(const std::string& value); + + /// + /// 关键词,仅当任务类型为SQL_TYPE时,返回该值。 + /// + + std::string getKeyWords() const; + bool keyWordsIsSet() const; + void unsetkeyWords(); + void setKeyWords(const std::string& value); + + /// + /// 限流任务状态,当前支持:CREATING,UPDATEING,DELETING,WAIT_EXCUTE,EXCUTING,TIME_OVER,DELETED,CREATE_FAILED,UPDATE_FAILED,DELETE_FAILED,EXCEPTION,NODE_SHUT_DOWN。 + /// + + std::string getStatus() const; + bool statusIsSet() const; + void unsetstatus(); + void setStatus(const std::string& value); + + /// + /// 实例id。 + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// 规则名。 + /// + + std::string getRuleName() const; + bool ruleNameIsSet() const; + void unsetruleName(); + void setRuleName(const std::string& value); + + /// + /// 并发数。 + /// + + int32_t getParallelSize() const; + bool parallelSizeIsSet() const; + void unsetparallelSize(); + void setParallelSize(int32_t value); + + /// + /// 限流任务开始时间,格式为yyyy-mm-ddThh:mm:ssZ,当前时间指UTC时间。 + /// + + std::string getStartTime() const; + bool startTimeIsSet() const; + void unsetstartTime(); + void setStartTime(const std::string& value); + + /// + /// 限流任务结束时间,格式为yyyy-mm-ddThh:mm:ssZ,当前时间指UTC时间。 + /// + + std::string getEndTime() const; + bool endTimeIsSet() const; + void unsetendTime(); + void setEndTime(const std::string& value); + + /// + /// cpu利用率,仅当任务类型为SESSION_ACTIVE_MAX_COUNT时,返回该值。 + /// + + int32_t getCpuUtilization() const; + bool cpuUtilizationIsSet() const; + void unsetcpuUtilization(); + void setCpuUtilization(int32_t value); + + /// + /// 内存利用率,仅当任务类型为SESSION_ACTIVE_MAX_COUNT时,返回该值。 + /// + + int32_t getMemoryUtilization() const; + bool memoryUtilizationIsSet() const; + void unsetmemoryUtilization(); + void setMemoryUtilization(int32_t value); + + /// + /// 创建时间为本地时间,格式为yyyy-mm-ddThh:mm:ssZ,当前时间指UTC时间。 + /// + + std::string getCreated() const; + bool createdIsSet() const; + void unsetcreated(); + void setCreated(const std::string& value); + + /// + /// 更新时间为本地时间,格式为yyyy-mm-ddThh:mm:ssZ,当前时间指UTC时间。 + /// + + std::string getUpdated() const; + bool updatedIsSet() const; + void unsetupdated(); + void setUpdated(const std::string& value); + + /// + /// 创建者。 + /// + + std::string getCreator() const; + bool creatorIsSet() const; + void unsetcreator(); + void setCreator(const std::string& value); + + /// + /// 更新者。 + /// + + std::string getModifier() const; + bool modifierIsSet() const; + void unsetmodifier(); + void setModifier(const std::string& value); + + /// + /// CN节点信息列表。 + /// + + std::vector& getNodeInfos(); + bool nodeInfosIsSet() const; + void unsetnodeInfos(); + void setNodeInfos(const std::vector& value); + + +protected: + std::string taskId_; + bool taskIdIsSet_; + std::string taskScope_; + bool taskScopeIsSet_; + std::string limitType_; + bool limitTypeIsSet_; + std::string limitTypeValue_; + bool limitTypeValueIsSet_; + std::string taskName_; + bool taskNameIsSet_; + std::string databases_; + bool databasesIsSet_; + std::string sqlModel_; + bool sqlModelIsSet_; + std::string keyWords_; + bool keyWordsIsSet_; + std::string status_; + bool statusIsSet_; + std::string instanceId_; + bool instanceIdIsSet_; + std::string ruleName_; + bool ruleNameIsSet_; + int32_t parallelSize_; + bool parallelSizeIsSet_; + std::string startTime_; + bool startTimeIsSet_; + std::string endTime_; + bool endTimeIsSet_; + int32_t cpuUtilization_; + bool cpuUtilizationIsSet_; + int32_t memoryUtilization_; + bool memoryUtilizationIsSet_; + std::string created_; + bool createdIsSet_; + std::string updated_; + bool updatedIsSet_; + std::string creator_; + bool creatorIsSet_; + std::string modifier_; + bool modifierIsSet_; + std::vector nodeInfos_; + bool nodeInfosIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_ListLimitTaskResponseResult_H_ diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ListNodeLimitSqlModelRequest.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ListNodeLimitSqlModelRequest.h new file mode 100644 index 000000000..c7649cd65 --- /dev/null +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ListNodeLimitSqlModelRequest.h @@ -0,0 +1,115 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_ListNodeLimitSqlModelRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_ListNodeLimitSqlModelRequest_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 ListNodeLimitSqlModelRequest + : public ModelBase +{ +public: + ListNodeLimitSqlModelRequest(); + virtual ~ListNodeLimitSqlModelRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListNodeLimitSqlModelRequest members + + /// + /// 实例ID。 + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// 节点id。 + /// + + std::string getNodeId() const; + bool nodeIdIsSet() const; + void unsetnodeId(); + void setNodeId(const std::string& value); + + /// + /// sql模板。 + /// + + std::string getSqlModel() const; + bool sqlModelIsSet() const; + void unsetsqlModel(); + void setSqlModel(const std::string& value); + + /// + /// 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。 取值范围:0 - 10000 + /// + + int32_t getOffset() const; + bool offsetIsSet() const; + void unsetoffset(); + void setOffset(int32_t value); + + /// + /// 查询记录数。默认为10,不能为负数,最小值为1,最大值为100。 + /// + + int32_t getLimit() const; + bool limitIsSet() const; + void unsetlimit(); + void setLimit(int32_t value); + + +protected: + std::string instanceId_; + bool instanceIdIsSet_; + std::string nodeId_; + bool nodeIdIsSet_; + std::string sqlModel_; + bool sqlModelIsSet_; + int32_t offset_; + bool offsetIsSet_; + int32_t limit_; + bool limitIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ListNodeLimitSqlModelRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_ListNodeLimitSqlModelRequest_H_ diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ListNodeLimitSqlModelResponse.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ListNodeLimitSqlModelResponse.h new file mode 100644 index 000000000..d81173f6f --- /dev/null +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ListNodeLimitSqlModelResponse.h @@ -0,0 +1,101 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_ListNodeLimitSqlModelResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_ListNodeLimitSqlModelResponse_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 ListNodeLimitSqlModelResponse + : public ModelBase, public HttpResponse +{ +public: + ListNodeLimitSqlModelResponse(); + virtual ~ListNodeLimitSqlModelResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListNodeLimitSqlModelResponse members + + /// + /// 限流SQL模板匹配信息 + /// + + std::vector& getNodeLimitSqlModelList(); + bool nodeLimitSqlModelListIsSet() const; + void unsetnodeLimitSqlModelList(); + void setNodeLimitSqlModelList(const std::vector& value); + + /// + /// 查询记录数。 + /// + + int32_t getLimit() const; + bool limitIsSet() const; + void unsetlimit(); + void setLimit(int32_t value); + + /// + /// 索引位置。 + /// + + int32_t getOffset() const; + bool offsetIsSet() const; + void unsetoffset(); + void setOffset(int32_t value); + + /// + /// 总数。 + /// + + int32_t getTotalCount() const; + bool totalCountIsSet() const; + void unsettotalCount(); + void setTotalCount(int32_t value); + + +protected: + std::vector nodeLimitSqlModelList_; + bool nodeLimitSqlModelListIsSet_; + int32_t limit_; + bool limitIsSet_; + int32_t offset_; + bool offsetIsSet_; + int32_t totalCount_; + bool totalCountIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_ListNodeLimitSqlModelResponse_H_ diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ListNodeLimitSqlModelResponseResult.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ListNodeLimitSqlModelResponseResult.h new file mode 100644 index 000000000..cd4cac3ab --- /dev/null +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ListNodeLimitSqlModelResponseResult.h @@ -0,0 +1,75 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_ListNodeLimitSqlModelResponseResult_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_ListNodeLimitSqlModelResponseResult_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 ListNodeLimitSqlModelResponseResult + : public ModelBase +{ +public: + ListNodeLimitSqlModelResponseResult(); + virtual ~ListNodeLimitSqlModelResponseResult(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ListNodeLimitSqlModelResponseResult members + + /// + /// 限流任务SQL_ID。 + /// + + std::string getSqlId() const; + bool sqlIdIsSet() const; + void unsetsqlId(); + void setSqlId(const std::string& value); + + /// + /// 限流任务SQL模板。 + /// + + std::string getSqlModel() const; + bool sqlModelIsSet() const; + void unsetsqlModel(); + void setSqlModel(const std::string& value); + + +protected: + std::string sqlId_; + bool sqlIdIsSet_; + std::string sqlModel_; + bool sqlModelIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_ListNodeLimitSqlModelResponseResult_H_ diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ShowLimitTaskNodeOption.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ShowLimitTaskNodeOption.h new file mode 100644 index 000000000..91baacf72 --- /dev/null +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ShowLimitTaskNodeOption.h @@ -0,0 +1,75 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_ShowLimitTaskNodeOption_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_ShowLimitTaskNodeOption_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 ShowLimitTaskNodeOption + : public ModelBase +{ +public: + ShowLimitTaskNodeOption(); + virtual ~ShowLimitTaskNodeOption(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ShowLimitTaskNodeOption members + + /// + /// 节点id。 + /// + + std::string getNodeId() const; + bool nodeIdIsSet() const; + void unsetnodeId(); + void setNodeId(const std::string& value); + + /// + /// 该节点执行的sql语句id。 + /// + + std::string getSqlId() const; + bool sqlIdIsSet() const; + void unsetsqlId(); + void setSqlId(const std::string& value); + + +protected: + std::string nodeId_; + bool nodeIdIsSet_; + std::string sqlId_; + bool sqlIdIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_ShowLimitTaskNodeOption_H_ diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ShowLimitTaskRequest.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ShowLimitTaskRequest.h new file mode 100644 index 000000000..8a254f2d1 --- /dev/null +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ShowLimitTaskRequest.h @@ -0,0 +1,82 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_ShowLimitTaskRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_ShowLimitTaskRequest_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 ShowLimitTaskRequest + : public ModelBase +{ +public: + ShowLimitTaskRequest(); + virtual ~ShowLimitTaskRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ShowLimitTaskRequest members + + /// + /// 限流任务id。 + /// + + std::string getTaskId() const; + bool taskIdIsSet() const; + void unsettaskId(); + void setTaskId(const std::string& value); + + /// + /// 实例ID。 + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + +protected: + std::string taskId_; + bool taskIdIsSet_; + std::string instanceId_; + bool instanceIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ShowLimitTaskRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_ShowLimitTaskRequest_H_ diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ShowLimitTaskResponse.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ShowLimitTaskResponse.h new file mode 100644 index 000000000..39bda5318 --- /dev/null +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/ShowLimitTaskResponse.h @@ -0,0 +1,179 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_ShowLimitTaskResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_ShowLimitTaskResponse_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; +/// +/// Response Object +/// +class HUAWEICLOUD_GAUSSDBFOROPENGAUSS_V3_EXPORT ShowLimitTaskResponse + : public ModelBase, public HttpResponse +{ +public: + ShowLimitTaskResponse(); + virtual ~ShowLimitTaskResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ShowLimitTaskResponse members + + /// + /// 限流任务名传。 + /// + + std::string getTaskName() const; + bool taskNameIsSet() const; + void unsettaskName(); + void setTaskName(const std::string& value); + + /// + /// 任务限流类型。 + /// + + std::string getLimitType() const; + bool limitTypeIsSet() const; + void unsetlimitType(); + void setLimitType(const std::string& value); + + /// + /// 并发数。 + /// + + int32_t getParallelSize() const; + bool parallelSizeIsSet() const; + void unsetparallelSize(); + void setParallelSize(int32_t value); + + /// + /// 限流任务开始时间,格式为yyyy-mm-ddThh:mm:ssZ,当前时间指UTC时间。 + /// + + std::string getStartTime() const; + bool startTimeIsSet() const; + void unsetstartTime(); + void setStartTime(const std::string& value); + + /// + /// 限流任务结束时间,格式为yyyy-mm-ddThh:mm:ssZ,当前时间指UTC时间。 + /// + + std::string getEndTime() const; + bool endTimeIsSet() const; + void unsetendTime(); + void setEndTime(const std::string& value); + + /// + /// 限流任务已执行时间,单位秒。 + /// + + int32_t getTaskRunningTime() const; + bool taskRunningTimeIsSet() const; + void unsettaskRunningTime(); + void setTaskRunningTime(int32_t value); + + /// + /// 限流任务拦截次数。 + /// + + int32_t getLimitCount() const; + bool limitCountIsSet() const; + void unsetlimitCount(); + void setLimitCount(int32_t value); + + /// + /// 规则名。 + /// + + std::string getRuleName() const; + bool ruleNameIsSet() const; + void unsetruleName(); + void setRuleName(const std::string& value); + + /// + /// 内存利用率,仅当任务类型为SESSION_ACTIVE_MAX_COUNT时,返回该值且与请求参数相同。 + /// + + int32_t getMemoryUtilization() const; + bool memoryUtilizationIsSet() const; + void unsetmemoryUtilization(); + void setMemoryUtilization(int32_t value); + + /// + /// cpu利用率,仅当任务类型为SESSION_ACTIVE_MAX_COUNT时,返回该值且与请求参数相同。 + /// + + int32_t getCpuUtilization() const; + bool cpuUtilizationIsSet() const; + void unsetcpuUtilization(); + void setCpuUtilization(int32_t value); + + /// + /// 限流任务列表 + /// + + std::vector& getLimitTaskRuleInfoList(); + bool limitTaskRuleInfoListIsSet() const; + void unsetlimitTaskRuleInfoList(); + void setLimitTaskRuleInfoList(const std::vector& value); + + +protected: + std::string taskName_; + bool taskNameIsSet_; + std::string limitType_; + bool limitTypeIsSet_; + int32_t parallelSize_; + bool parallelSizeIsSet_; + std::string startTime_; + bool startTimeIsSet_; + std::string endTime_; + bool endTimeIsSet_; + int32_t taskRunningTime_; + bool taskRunningTimeIsSet_; + int32_t limitCount_; + bool limitCountIsSet_; + std::string ruleName_; + bool ruleNameIsSet_; + int32_t memoryUtilization_; + bool memoryUtilizationIsSet_; + int32_t cpuUtilization_; + bool cpuUtilizationIsSet_; + std::vector limitTaskRuleInfoList_; + bool limitTaskRuleInfoListIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_ShowLimitTaskResponse_H_ diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/StartMySQLCompatibilityRequestBody.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/StartMySQLCompatibilityRequestBody.h new file mode 100644 index 000000000..cf00c09f3 --- /dev/null +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/StartMySQLCompatibilityRequestBody.h @@ -0,0 +1,64 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_StartMySQLCompatibilityRequestBody_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_StartMySQLCompatibilityRequestBody_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 StartMySQLCompatibilityRequestBody + : public ModelBase +{ +public: + StartMySQLCompatibilityRequestBody(); + virtual ~StartMySQLCompatibilityRequestBody(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// StartMySQLCompatibilityRequestBody members + + /// + /// MySQL兼容端口,可选范围为:1024-39998。 - 限制端口: 2378,2379,2380,4999,5000,5999,6000,6001,6500,8000-8006,8097,8098,12016,12017,20049,20050,21731,21732,32122,32123,32124。 - 与数据库对外端口互斥。 + /// + + 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_StartMySQLCompatibilityRequestBody_H_ diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/StartMysqlCompatibilityRequest.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/StartMysqlCompatibilityRequest.h new file mode 100644 index 000000000..e187f244b --- /dev/null +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/StartMysqlCompatibilityRequest.h @@ -0,0 +1,94 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_StartMysqlCompatibilityRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_StartMysqlCompatibilityRequest_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 StartMysqlCompatibilityRequest + : public ModelBase +{ +public: + StartMysqlCompatibilityRequest(); + virtual ~StartMysqlCompatibilityRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// StartMysqlCompatibilityRequest members + + /// + /// 实例ID。 + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// 语言。默认值:en-us。 + /// + + std::string getXLanguage() const; + bool xLanguageIsSet() const; + void unsetxLanguage(); + void setXLanguage(const std::string& value); + + /// + /// + /// + + StartMySQLCompatibilityRequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const StartMySQLCompatibilityRequestBody& value); + + +protected: + std::string instanceId_; + bool instanceIdIsSet_; + std::string xLanguage_; + bool xLanguageIsSet_; + StartMySQLCompatibilityRequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + StartMysqlCompatibilityRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_StartMysqlCompatibilityRequest_H_ diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/StartMysqlCompatibilityResponse.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/StartMysqlCompatibilityResponse.h new file mode 100644 index 000000000..d7a6498de --- /dev/null +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/StartMysqlCompatibilityResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_StartMysqlCompatibilityResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_StartMysqlCompatibilityResponse_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 StartMysqlCompatibilityResponse + : public ModelBase, public HttpResponse +{ +public: + StartMysqlCompatibilityResponse(); + virtual ~StartMysqlCompatibilityResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// StartMysqlCompatibilityResponse 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_StartMysqlCompatibilityResponse_H_ diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/StopInstanceRequest.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/StopInstanceRequest.h new file mode 100644 index 000000000..dafd8bebc --- /dev/null +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/StopInstanceRequest.h @@ -0,0 +1,94 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_StopInstanceRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_StopInstanceRequest_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 StopInstanceRequest + : public ModelBase +{ +public: + StopInstanceRequest(); + virtual ~StopInstanceRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// StopInstanceRequest 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); + + /// + /// + /// + + StopInstanceRequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const StopInstanceRequestBody& value); + + +protected: + std::string xLanguage_; + bool xLanguageIsSet_; + std::string instanceId_; + bool instanceIdIsSet_; + StopInstanceRequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + StopInstanceRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_StopInstanceRequest_H_ diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/StopInstanceRequestBody.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/StopInstanceRequestBody.h new file mode 100644 index 000000000..6c507af65 --- /dev/null +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/StopInstanceRequestBody.h @@ -0,0 +1,65 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_StopInstanceRequestBody_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_StopInstanceRequestBody_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; +/// +/// +/// +class HUAWEICLOUD_GAUSSDBFOROPENGAUSS_V3_EXPORT StopInstanceRequestBody + : public ModelBase +{ +public: + StopInstanceRequestBody(); + virtual ~StopInstanceRequestBody(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// StopInstanceRequestBody members + + /// + /// 需要停止的节点的ID,取值不能为null,如果为空列表则停止整个实例 + /// + + std::vector& getNodeIds(); + bool nodeIdsIsSet() const; + void unsetnodeIds(); + void setNodeIds(const std::vector& value); + + +protected: + std::vector nodeIds_; + bool nodeIdsIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_StopInstanceRequestBody_H_ diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/StopInstanceResponse.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/StopInstanceResponse.h new file mode 100644 index 000000000..1ce5f3255 --- /dev/null +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/StopInstanceResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_StopInstanceResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_StopInstanceResponse_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 StopInstanceResponse + : public ModelBase, public HttpResponse +{ +public: + StopInstanceResponse(); + virtual ~StopInstanceResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// StopInstanceResponse 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_StopInstanceResponse_H_ diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/UpdateLimitTaskRequest.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/UpdateLimitTaskRequest.h new file mode 100644 index 000000000..5892c495e --- /dev/null +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/UpdateLimitTaskRequest.h @@ -0,0 +1,94 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_UpdateLimitTaskRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_UpdateLimitTaskRequest_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 UpdateLimitTaskRequest + : public ModelBase +{ +public: + UpdateLimitTaskRequest(); + virtual ~UpdateLimitTaskRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpdateLimitTaskRequest members + + /// + /// 限流任务id。 + /// + + std::string getTaskId() const; + bool taskIdIsSet() const; + void unsettaskId(); + void setTaskId(const std::string& value); + + /// + /// 实例ID。 + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// + /// + + UpdateLimitTaskRequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const UpdateLimitTaskRequestBody& value); + + +protected: + std::string taskId_; + bool taskIdIsSet_; + std::string instanceId_; + bool instanceIdIsSet_; + UpdateLimitTaskRequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + UpdateLimitTaskRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_UpdateLimitTaskRequest_H_ diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/UpdateLimitTaskRequestBody.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/UpdateLimitTaskRequestBody.h new file mode 100644 index 000000000..2e941299f --- /dev/null +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/UpdateLimitTaskRequestBody.h @@ -0,0 +1,141 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_UpdateLimitTaskRequestBody_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_UpdateLimitTaskRequestBody_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 UpdateLimitTaskRequestBody + : public ModelBase +{ +public: + UpdateLimitTaskRequestBody(); + virtual ~UpdateLimitTaskRequestBody(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpdateLimitTaskRequestBody members + + /// + /// 任务开始时间,格式为yyyy-mm-ddThh:mm:ssZ,如果存在更改,需大于当前时间前俩分钟,当前时间指UTC时,SQL范围必传。 + /// + + std::string getStartTime() const; + bool startTimeIsSet() const; + void unsetstartTime(); + void setStartTime(const std::string& value); + + /// + /// 任务结束时间,格式为yyyy-mm-ddThh:mm:ssZ,大于任务开始时间,当前时间指UTC时间,SQL范围必传。 + /// + + std::string getEndTime() const; + bool endTimeIsSet() const; + void unsetendTime(); + void setEndTime(const std::string& value); + + /// + /// 关键词,当且仅当类型为SQL_TYPE,必传,多个关键词以逗号隔开,数量范围为[2,100]个,每个关键词长度范围[2,64]位,关键词不允许包含 \" 或 \\ 或 {} 或 null值 以及非首尾的空格符。 + /// + + std::string getKeyWords() const; + bool keyWordsIsSet() const; + void unsetkeyWords(); + void setKeyWords(const std::string& value); + + /// + /// 并发数,大于等于零的正整数,取值范围[0, 2147483647]。 + /// + + int32_t getParallelSize() const; + bool parallelSizeIsSet() const; + void unsetparallelSize(); + void setParallelSize(int32_t value); + + /// + /// 限流任务名,只能为英文字母大小写,下划线,数字和$符,最大长度为100个字符。 + /// + + std::string getTaskName() const; + bool taskNameIsSet() const; + void unsettaskName(); + void setTaskName(const std::string& value); + + /// + /// cpu利用率阈值,正整数,取值范围[0,100),如果类型为SESSION_ACTIVE_MAX_COUNT,必传,不支持和内存利用率阈值同时为0,如果选择只限制CPU、内存中的其中一个,则另一个必须传值0。 + /// + + int32_t getCpuUtilization() const; + bool cpuUtilizationIsSet() const; + void unsetcpuUtilization(); + void setCpuUtilization(int32_t value); + + /// + /// 内存利用率阈值,正整数,取值范围[0,100),如果类型为SESSION_ACTIVE_MAX_COUNT,必传,不支持和cpu利用率阈值同时为0,如果选择只限制CPU、内存中的其中一个,则另一个必须传值0。 + /// + + int32_t getMemoryUtilization() const; + bool memoryUtilizationIsSet() const; + void unsetmemoryUtilization(); + void setMemoryUtilization(int32_t value); + + /// + /// CN节点数据库组,每个数据库字符串以逗号形式隔开。 + /// + + std::string getDatabases() const; + bool databasesIsSet() const; + void unsetdatabases(); + void setDatabases(const std::string& value); + + +protected: + std::string startTime_; + bool startTimeIsSet_; + std::string endTime_; + bool endTimeIsSet_; + std::string keyWords_; + bool keyWordsIsSet_; + int32_t parallelSize_; + bool parallelSizeIsSet_; + std::string taskName_; + bool taskNameIsSet_; + int32_t cpuUtilization_; + bool cpuUtilizationIsSet_; + int32_t memoryUtilization_; + bool memoryUtilizationIsSet_; + std::string databases_; + bool databasesIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_UpdateLimitTaskRequestBody_H_ diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/UpdateLimitTaskResponse.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/UpdateLimitTaskResponse.h new file mode 100644 index 000000000..57ac3e0ff --- /dev/null +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/UpdateLimitTaskResponse.h @@ -0,0 +1,177 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_UpdateLimitTaskResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_UpdateLimitTaskResponse_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 UpdateLimitTaskResponse + : public ModelBase, public HttpResponse +{ +public: + UpdateLimitTaskResponse(); + virtual ~UpdateLimitTaskResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpdateLimitTaskResponse members + + /// + /// 限流任务ID。 + /// + + std::string getTaskId() const; + bool taskIdIsSet() const; + void unsettaskId(); + void setTaskId(const std::string& value); + + /// + /// CN节点数据库组,每个数据库字符串以逗号形式隔开,仅当任务类型为SQL_TYPE时,返回该值且与请求参数相同。 + /// + + std::string getDatabases() const; + bool databasesIsSet() const; + void unsetdatabases(); + void setDatabases(const std::string& value); + + /// + /// 限流任务名,与请求参数相同。 + /// + + std::string getTaskName() const; + bool taskNameIsSet() const; + void unsettaskName(); + void setTaskName(const std::string& value); + + /// + /// 关键词,仅当任务类型为SQL_TYPE时,返回该值且与请求参数相同。 + /// + + std::string getKeyWords() const; + bool keyWordsIsSet() const; + void unsetkeyWords(); + void setKeyWords(const std::string& value); + + /// + /// 并发数,与请求参数相同。 + /// + + int32_t getParallelSize() const; + bool parallelSizeIsSet() const; + void unsetparallelSize(); + void setParallelSize(int32_t value); + + /// + /// 限流任务开始时间,格式为yyyy-mm-ddThh:mm:ssZ,当前时间指UTC时间,SQL范围返回该值。 + /// + + std::string getStartTime() const; + bool startTimeIsSet() const; + void unsetstartTime(); + void setStartTime(const std::string& value); + + /// + /// 限流任务结束时间,格式为yyyy-mm-ddThh:mm:ssZ,当前时间指UTC时间,SQL范围返回该值。 + /// + + std::string getEndTime() const; + bool endTimeIsSet() const; + void unsetendTime(); + void setEndTime(const std::string& value); + + /// + /// cpu利用率,仅当任务类型为SESSION_ACTIVE_MAX_COUNT时,返回该值且只保留正整数。 + /// + + int32_t getCpuUtilization() const; + bool cpuUtilizationIsSet() const; + void unsetcpuUtilization(); + void setCpuUtilization(int32_t value); + + /// + /// 内存利用率,仅当任务类型为SESSION_ACTIVE_MAX_COUNT时,返回该值且只保留正整数。 + /// + + int32_t getMemoryUtilization() const; + bool memoryUtilizationIsSet() const; + void unsetmemoryUtilization(); + void setMemoryUtilization(int32_t value); + + /// + /// 规则名。 + /// + + std::string getRuleName() const; + bool ruleNameIsSet() const; + void unsetruleName(); + void setRuleName(const std::string& value); + + /// + /// 工作流ID。 + /// + + std::string getJobId() const; + bool jobIdIsSet() const; + void unsetjobId(); + void setJobId(const std::string& value); + + +protected: + std::string taskId_; + bool taskIdIsSet_; + std::string databases_; + bool databasesIsSet_; + std::string taskName_; + bool taskNameIsSet_; + std::string keyWords_; + bool keyWordsIsSet_; + int32_t parallelSize_; + bool parallelSizeIsSet_; + std::string startTime_; + bool startTimeIsSet_; + std::string endTime_; + bool endTimeIsSet_; + int32_t cpuUtilization_; + bool cpuUtilizationIsSet_; + int32_t memoryUtilization_; + bool memoryUtilizationIsSet_; + std::string ruleName_; + bool ruleNameIsSet_; + std::string jobId_; + bool jobIdIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_UpdateLimitTaskResponse_H_ diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/UpdateMySQLCompatibilityRequestBody.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/UpdateMySQLCompatibilityRequestBody.h new file mode 100644 index 000000000..53d6c325d --- /dev/null +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/UpdateMySQLCompatibilityRequestBody.h @@ -0,0 +1,64 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_UpdateMySQLCompatibilityRequestBody_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_UpdateMySQLCompatibilityRequestBody_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 UpdateMySQLCompatibilityRequestBody + : public ModelBase +{ +public: + UpdateMySQLCompatibilityRequestBody(); + virtual ~UpdateMySQLCompatibilityRequestBody(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpdateMySQLCompatibilityRequestBody members + + /// + /// MySQL兼容端口,修改端口的时候必填,不填默认保持原有设定端口,可选范围为:0, 1024-39998。 - 取值为0,标识关闭MySQL兼容端口服务。 - 限制端口: 2378,2379,2380,4999,5000,5999,6000,6001,6500,8000-8006,8097,8098,12016,12017,20049,20050,21731,21732,32122,32123,32124。 - 与数据库对外端口互斥。 + /// + + 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_UpdateMySQLCompatibilityRequestBody_H_ diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/UpdateMysqlCompatibilityRequest.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/UpdateMysqlCompatibilityRequest.h new file mode 100644 index 000000000..aa313c096 --- /dev/null +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/UpdateMysqlCompatibilityRequest.h @@ -0,0 +1,94 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_UpdateMysqlCompatibilityRequest_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_UpdateMysqlCompatibilityRequest_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 UpdateMysqlCompatibilityRequest + : public ModelBase +{ +public: + UpdateMysqlCompatibilityRequest(); + virtual ~UpdateMysqlCompatibilityRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpdateMysqlCompatibilityRequest members + + /// + /// 实例ID。 + /// + + std::string getInstanceId() const; + bool instanceIdIsSet() const; + void unsetinstanceId(); + void setInstanceId(const std::string& value); + + /// + /// 语言。默认值:en-us。 + /// + + std::string getXLanguage() const; + bool xLanguageIsSet() const; + void unsetxLanguage(); + void setXLanguage(const std::string& value); + + /// + /// + /// + + UpdateMySQLCompatibilityRequestBody getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const UpdateMySQLCompatibilityRequestBody& value); + + +protected: + std::string instanceId_; + bool instanceIdIsSet_; + std::string xLanguage_; + bool xLanguageIsSet_; + UpdateMySQLCompatibilityRequestBody body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + UpdateMysqlCompatibilityRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_UpdateMysqlCompatibilityRequest_H_ diff --git a/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/UpdateMysqlCompatibilityResponse.h b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/UpdateMysqlCompatibilityResponse.h new file mode 100644 index 000000000..0c49e1e29 --- /dev/null +++ b/gaussdbforopengauss/include/huaweicloud/gaussdbforopengauss/v3/model/UpdateMysqlCompatibilityResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_UpdateMysqlCompatibilityResponse_H_ +#define HUAWEICLOUD_SDK_GAUSSDBFOROPENGAUSS_V3_MODEL_UpdateMysqlCompatibilityResponse_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 UpdateMysqlCompatibilityResponse + : public ModelBase, public HttpResponse +{ +public: + UpdateMysqlCompatibilityResponse(); + virtual ~UpdateMysqlCompatibilityResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpdateMysqlCompatibilityResponse 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_UpdateMysqlCompatibilityResponse_H_ diff --git a/gaussdbforopengauss/src/v3/GaussDBforopenGaussClient.cpp b/gaussdbforopengauss/src/v3/GaussDBforopenGaussClient.cpp index 3e835e5e4..f56d264f8 100644 --- a/gaussdbforopengauss/src/v3/GaussDBforopenGaussClient.cpp +++ b/gaussdbforopengauss/src/v3/GaussDBforopenGaussClient.cpp @@ -3663,6 +3663,51 @@ std::shared_ptr GaussDBforopenGaussClient::startInstance( return localVarResult; } +std::shared_ptr GaussDBforopenGaussClient::startMysqlCompatibility(StartMysqlCompatibilityRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/mysql-compatibility"; + + 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, GaussDBforopenGaussMeta::genRequestDefForStartMysqlCompatibility()); + + 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::stopBackup(StopBackupRequest &request) { std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/backups/stop"; @@ -3696,6 +3741,51 @@ std::shared_ptr GaussDBforopenGaussClient::stopBackup(StopBa return localVarResult; } +std::shared_ptr GaussDBforopenGaussClient::stopInstance(StopInstanceRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/db-stop"; + + 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, GaussDBforopenGaussMeta::genRequestDefForStopInstance()); + + 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::switchConfiguration(SwitchConfigurationRequest &request) { std::string localVarPath = "/v3/{project_id}/configurations/{config_id}/apply"; @@ -3876,6 +3966,51 @@ std::shared_ptr GaussDBforopenGaussClient::updateIns return localVarResult; } +std::shared_ptr GaussDBforopenGaussClient::updateMysqlCompatibility(UpdateMysqlCompatibilityRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/mysql-compatibility"; + + 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::genRequestDefForUpdateMysqlCompatibility()); + + 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::upgradeInstanceVersion(UpgradeInstanceVersionRequest &request) { std::string localVarPath = "/v3.1/{project_id}/instances/{instance_id}/db-upgrade"; @@ -4044,6 +4179,255 @@ std::shared_ptr GaussDBforopenGaussClient::validat return localVarResult; } +std::shared_ptr GaussDBforopenGaussClient::createLimitTask(CreateLimitTaskRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/limit-task"; + + 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; + + + 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::genRequestDefForCreateLimitTask()); + + 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::deleteLimitTask(DeleteLimitTaskRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/limit-task/{task_id}"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["task_id"] = parameterToString(request.getTaskId()); + localVarPathParams["instance_id"] = parameterToString(request.getInstanceId()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("DELETE", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBforopenGaussMeta::genRequestDefForDeleteLimitTask()); + + 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::listLimitTask(ListLimitTaskRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/limit-task-list"; + + 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.taskScopeIsSet()) { + localVarQueryParams["task_scope"] = parameterToString(request.getTaskScope()); + } + if (request.limitTypeIsSet()) { + localVarQueryParams["limit_type"] = parameterToString(request.getLimitType()); + } + if (request.limitTypeValueIsSet()) { + localVarQueryParams["limit_type_value"] = parameterToString(request.getLimitTypeValue()); + } + if (request.taskNameIsSet()) { + localVarQueryParams["task_name"] = parameterToString(request.getTaskName()); + } + if (request.sqlModelIsSet()) { + localVarQueryParams["sql_model"] = parameterToString(request.getSqlModel()); + } + if (request.ruleNameIsSet()) { + localVarQueryParams["rule_name"] = parameterToString(request.getRuleName()); + } + if (request.startTimeIsSet()) { + localVarQueryParams["start_time"] = parameterToString(request.getStartTime()); + } + if (request.endTimeIsSet()) { + localVarQueryParams["end_time"] = parameterToString(request.getEndTime()); + } + if (request.offsetIsSet()) { + localVarQueryParams["offset"] = parameterToString(request.getOffset()); + } + if (request.limitIsSet()) { + localVarQueryParams["limit"] = parameterToString(request.getLimit()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBforopenGaussMeta::genRequestDefForListLimitTask()); + + 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::listNodeLimitSqlModel(ListNodeLimitSqlModelRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/list-node-limit-sql-model"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["instance_id"] = parameterToString(request.getInstanceId()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + if (request.nodeIdIsSet()) { + localVarQueryParams["node_id"] = parameterToString(request.getNodeId()); + } + if (request.sqlModelIsSet()) { + localVarQueryParams["sql_model"] = parameterToString(request.getSqlModel()); + } + if (request.offsetIsSet()) { + localVarQueryParams["offset"] = parameterToString(request.getOffset()); + } + if (request.limitIsSet()) { + localVarQueryParams["limit"] = parameterToString(request.getLimit()); + } + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBforopenGaussMeta::genRequestDefForListNodeLimitSqlModel()); + + 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::showLimitTask(ShowLimitTaskRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/limit-task/{task_id}"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["task_id"] = parameterToString(request.getTaskId()); + localVarPathParams["instance_id"] = parameterToString(request.getInstanceId()); + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, GaussDBforopenGaussMeta::genRequestDefForShowLimitTask()); + + 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::updateLimitTask(UpdateLimitTaskRequest &request) +{ + std::string localVarPath = "/v3/{project_id}/instances/{instance_id}/limit-task/{task_id}"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + localVarPathParams["task_id"] = parameterToString(request.getTaskId()); + 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; + + + 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::genRequestDefForUpdateLimitTask()); + + 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; +} #if defined(WIN32) || defined(__WIN32__) || defined(_WIN32) || defined(_MSC_VER) std::string GaussDBforopenGaussClient::parameterToString(utility::string_t value) { diff --git a/gaussdbforopengauss/src/v3/GaussDBforopenGaussMeta.cpp b/gaussdbforopengauss/src/v3/GaussDBforopenGaussMeta.cpp index e484fcc64..0cd9d5ad4 100644 --- a/gaussdbforopengauss/src/v3/GaussDBforopenGaussMeta.cpp +++ b/gaussdbforopengauss/src/v3/GaussDBforopenGaussMeta.cpp @@ -1379,6 +1379,20 @@ HttpRequestDef GaussDBforopenGaussMeta::genRequestDefForStartInstance() { return reqDefBuilder; } +HttpRequestDef GaussDBforopenGaussMeta::genRequestDefForStartMysqlCompatibility() { + 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::genRequestDefForStopBackup() { HttpRequestDef reqDefBuilder; FieldDef headerParamXLanguage; @@ -1389,6 +1403,20 @@ HttpRequestDef GaussDBforopenGaussMeta::genRequestDefForStopBackup() { return reqDefBuilder; } +HttpRequestDef GaussDBforopenGaussMeta::genRequestDefForStopInstance() { + 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::genRequestDefForSwitchConfiguration() { HttpRequestDef reqDefBuilder; FieldDef headerParamXLanguage; @@ -1445,6 +1473,20 @@ HttpRequestDef GaussDBforopenGaussMeta::genRequestDefForUpdateInstanceName() { return reqDefBuilder; } +HttpRequestDef GaussDBforopenGaussMeta::genRequestDefForUpdateMysqlCompatibility() { + 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::genRequestDefForUpgradeInstanceVersion() { HttpRequestDef reqDefBuilder; FieldDef headerParamXLanguage; @@ -1500,6 +1542,86 @@ HttpRequestDef GaussDBforopenGaussMeta::genRequestDefForValidateWeakPassword() { return reqDefBuilder; } +HttpRequestDef GaussDBforopenGaussMeta::genRequestDefForCreateLimitTask() { + HttpRequestDef reqDefBuilder; + FieldDef bodyParam; + reqDefBuilder.withRequestField(bodyParam. + withName("Body"). + withLocationType(Body_)); + return reqDefBuilder; +} + +HttpRequestDef GaussDBforopenGaussMeta::genRequestDefForDeleteLimitTask() { + HttpRequestDef reqDefBuilder; + return reqDefBuilder; +} + +HttpRequestDef GaussDBforopenGaussMeta::genRequestDefForListLimitTask() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("TaskScope") + .withJsonTag("task_scope") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("LimitType") + .withJsonTag("limit_type") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("LimitTypeValue") + .withJsonTag("limit_type_value") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("TaskName") + .withJsonTag("task_name") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("SqlModel") + .withJsonTag("sql_model") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("RuleName") + .withJsonTag("rule_name") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("StartTime") + .withJsonTag("start_time") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("EndTime") + .withJsonTag("end_time") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Offset") + .withJsonTag("offset") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Limit") + .withJsonTag("limit") + .withLocationType(Query_)); + return reqDefBuilder; +} + +HttpRequestDef GaussDBforopenGaussMeta::genRequestDefForListNodeLimitSqlModel() { + HttpRequestDef reqDefBuilder; + reqDefBuilder.withRequestField(FieldDef().withName("NodeId") + .withJsonTag("node_id") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("SqlModel") + .withJsonTag("sql_model") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Offset") + .withJsonTag("offset") + .withLocationType(Query_)); + reqDefBuilder.withRequestField(FieldDef().withName("Limit") + .withJsonTag("limit") + .withLocationType(Query_)); + return reqDefBuilder; +} + +HttpRequestDef GaussDBforopenGaussMeta::genRequestDefForShowLimitTask() { + HttpRequestDef reqDefBuilder; + return reqDefBuilder; +} + +HttpRequestDef GaussDBforopenGaussMeta::genRequestDefForUpdateLimitTask() { + HttpRequestDef reqDefBuilder; + FieldDef bodyParam; + reqDefBuilder.withRequestField(bodyParam. + withName("Body"). + withLocationType(Body_)); + return reqDefBuilder; +} + } } diff --git a/gaussdbforopengauss/src/v3/model/CreateLimitTaskNodeOption.cpp b/gaussdbforopengauss/src/v3/model/CreateLimitTaskNodeOption.cpp new file mode 100644 index 000000000..f14f157ce --- /dev/null +++ b/gaussdbforopengauss/src/v3/model/CreateLimitTaskNodeOption.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/gaussdbforopengauss/v3/model/CreateLimitTaskNodeOption.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + + + + +CreateLimitTaskNodeOption::CreateLimitTaskNodeOption() +{ + nodeId_ = ""; + nodeIdIsSet_ = false; + sqlId_ = ""; + sqlIdIsSet_ = false; +} + +CreateLimitTaskNodeOption::~CreateLimitTaskNodeOption() = default; + +void CreateLimitTaskNodeOption::validate() +{ +} + +web::json::value CreateLimitTaskNodeOption::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(nodeIdIsSet_) { + val[utility::conversions::to_string_t("node_id")] = ModelBase::toJson(nodeId_); + } + if(sqlIdIsSet_) { + val[utility::conversions::to_string_t("sql_id")] = ModelBase::toJson(sqlId_); + } + + return val; +} +bool CreateLimitTaskNodeOption::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("sql_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sql_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSqlId(refVal); + } + } + return ok; +} + + +std::string CreateLimitTaskNodeOption::getNodeId() const +{ + return nodeId_; +} + +void CreateLimitTaskNodeOption::setNodeId(const std::string& value) +{ + nodeId_ = value; + nodeIdIsSet_ = true; +} + +bool CreateLimitTaskNodeOption::nodeIdIsSet() const +{ + return nodeIdIsSet_; +} + +void CreateLimitTaskNodeOption::unsetnodeId() +{ + nodeIdIsSet_ = false; +} + +std::string CreateLimitTaskNodeOption::getSqlId() const +{ + return sqlId_; +} + +void CreateLimitTaskNodeOption::setSqlId(const std::string& value) +{ + sqlId_ = value; + sqlIdIsSet_ = true; +} + +bool CreateLimitTaskNodeOption::sqlIdIsSet() const +{ + return sqlIdIsSet_; +} + +void CreateLimitTaskNodeOption::unsetsqlId() +{ + sqlIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbforopengauss/src/v3/model/CreateLimitTaskNodeResult.cpp b/gaussdbforopengauss/src/v3/model/CreateLimitTaskNodeResult.cpp new file mode 100644 index 000000000..322e984bd --- /dev/null +++ b/gaussdbforopengauss/src/v3/model/CreateLimitTaskNodeResult.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/gaussdbforopengauss/v3/model/CreateLimitTaskNodeResult.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + + + + +CreateLimitTaskNodeResult::CreateLimitTaskNodeResult() +{ + nodeId_ = ""; + nodeIdIsSet_ = false; + sqlId_ = ""; + sqlIdIsSet_ = false; +} + +CreateLimitTaskNodeResult::~CreateLimitTaskNodeResult() = default; + +void CreateLimitTaskNodeResult::validate() +{ +} + +web::json::value CreateLimitTaskNodeResult::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(nodeIdIsSet_) { + val[utility::conversions::to_string_t("node_id")] = ModelBase::toJson(nodeId_); + } + if(sqlIdIsSet_) { + val[utility::conversions::to_string_t("sql_id")] = ModelBase::toJson(sqlId_); + } + + return val; +} +bool CreateLimitTaskNodeResult::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("sql_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sql_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSqlId(refVal); + } + } + return ok; +} + + +std::string CreateLimitTaskNodeResult::getNodeId() const +{ + return nodeId_; +} + +void CreateLimitTaskNodeResult::setNodeId(const std::string& value) +{ + nodeId_ = value; + nodeIdIsSet_ = true; +} + +bool CreateLimitTaskNodeResult::nodeIdIsSet() const +{ + return nodeIdIsSet_; +} + +void CreateLimitTaskNodeResult::unsetnodeId() +{ + nodeIdIsSet_ = false; +} + +std::string CreateLimitTaskNodeResult::getSqlId() const +{ + return sqlId_; +} + +void CreateLimitTaskNodeResult::setSqlId(const std::string& value) +{ + sqlId_ = value; + sqlIdIsSet_ = true; +} + +bool CreateLimitTaskNodeResult::sqlIdIsSet() const +{ + return sqlIdIsSet_; +} + +void CreateLimitTaskNodeResult::unsetsqlId() +{ + sqlIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbforopengauss/src/v3/model/CreateLimitTaskRequest.cpp b/gaussdbforopengauss/src/v3/model/CreateLimitTaskRequest.cpp new file mode 100644 index 000000000..6a3576515 --- /dev/null +++ b/gaussdbforopengauss/src/v3/model/CreateLimitTaskRequest.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/gaussdbforopengauss/v3/model/CreateLimitTaskRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + + + + +CreateLimitTaskRequest::CreateLimitTaskRequest() +{ + instanceId_ = ""; + instanceIdIsSet_ = false; + bodyIsSet_ = false; +} + +CreateLimitTaskRequest::~CreateLimitTaskRequest() = default; + +void CreateLimitTaskRequest::validate() +{ +} + +web::json::value CreateLimitTaskRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + if(bodyIsSet_) { + val[utility::conversions::to_string_t("body")] = ModelBase::toJson(body_); + } + + return val; +} +bool CreateLimitTaskRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("instance_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("instance_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInstanceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("body"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("body")); + if(!fieldValue.is_null()) + { + CreateLimitTaskRequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string CreateLimitTaskRequest::getInstanceId() const +{ + return instanceId_; +} + +void CreateLimitTaskRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool CreateLimitTaskRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void CreateLimitTaskRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +CreateLimitTaskRequestBody CreateLimitTaskRequest::getBody() const +{ + return body_; +} + +void CreateLimitTaskRequest::setBody(const CreateLimitTaskRequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool CreateLimitTaskRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void CreateLimitTaskRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbforopengauss/src/v3/model/CreateLimitTaskRequestBody.cpp b/gaussdbforopengauss/src/v3/model/CreateLimitTaskRequestBody.cpp new file mode 100644 index 000000000..56bd7530b --- /dev/null +++ b/gaussdbforopengauss/src/v3/model/CreateLimitTaskRequestBody.cpp @@ -0,0 +1,498 @@ + + +#include "huaweicloud/gaussdbforopengauss/v3/model/CreateLimitTaskRequestBody.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + + + + +CreateLimitTaskRequestBody::CreateLimitTaskRequestBody() +{ + taskScope_ = ""; + taskScopeIsSet_ = false; + startTime_ = ""; + startTimeIsSet_ = false; + endTime_ = ""; + endTimeIsSet_ = false; + limitType_ = ""; + limitTypeIsSet_ = false; + limitTypeValue_ = ""; + limitTypeValueIsSet_ = false; + keyWords_ = ""; + keyWordsIsSet_ = false; + taskName_ = ""; + taskNameIsSet_ = false; + sqlModel_ = ""; + sqlModelIsSet_ = false; + parallelSize_ = 0; + parallelSizeIsSet_ = false; + cpuUtilization_ = 0; + cpuUtilizationIsSet_ = false; + memoryUtilization_ = 0; + memoryUtilizationIsSet_ = false; + databases_ = ""; + databasesIsSet_ = false; + nodeInfosIsSet_ = false; +} + +CreateLimitTaskRequestBody::~CreateLimitTaskRequestBody() = default; + +void CreateLimitTaskRequestBody::validate() +{ +} + +web::json::value CreateLimitTaskRequestBody::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(taskScopeIsSet_) { + val[utility::conversions::to_string_t("task_scope")] = ModelBase::toJson(taskScope_); + } + 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(limitTypeIsSet_) { + val[utility::conversions::to_string_t("limit_type")] = ModelBase::toJson(limitType_); + } + if(limitTypeValueIsSet_) { + val[utility::conversions::to_string_t("limit_type_value")] = ModelBase::toJson(limitTypeValue_); + } + if(keyWordsIsSet_) { + val[utility::conversions::to_string_t("key_words")] = ModelBase::toJson(keyWords_); + } + if(taskNameIsSet_) { + val[utility::conversions::to_string_t("task_name")] = ModelBase::toJson(taskName_); + } + if(sqlModelIsSet_) { + val[utility::conversions::to_string_t("sql_model")] = ModelBase::toJson(sqlModel_); + } + if(parallelSizeIsSet_) { + val[utility::conversions::to_string_t("parallel_size")] = ModelBase::toJson(parallelSize_); + } + if(cpuUtilizationIsSet_) { + val[utility::conversions::to_string_t("cpu_utilization")] = ModelBase::toJson(cpuUtilization_); + } + if(memoryUtilizationIsSet_) { + val[utility::conversions::to_string_t("memory_utilization")] = ModelBase::toJson(memoryUtilization_); + } + if(databasesIsSet_) { + val[utility::conversions::to_string_t("databases")] = ModelBase::toJson(databases_); + } + if(nodeInfosIsSet_) { + val[utility::conversions::to_string_t("node_infos")] = ModelBase::toJson(nodeInfos_); + } + + return val; +} +bool CreateLimitTaskRequestBody::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("task_scope"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("task_scope")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTaskScope(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_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("limit_type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLimitType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("limit_type_value"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("limit_type_value")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLimitTypeValue(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("key_words"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("key_words")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setKeyWords(refVal); + } + } + 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); + } + } + if(val.has_field(utility::conversions::to_string_t("sql_model"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sql_model")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSqlModel(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("parallel_size"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("parallel_size")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setParallelSize(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("cpu_utilization"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("cpu_utilization")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCpuUtilization(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("memory_utilization"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("memory_utilization")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setMemoryUtilization(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::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDatabases(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("node_infos"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("node_infos")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setNodeInfos(refVal); + } + } + return ok; +} + + +std::string CreateLimitTaskRequestBody::getTaskScope() const +{ + return taskScope_; +} + +void CreateLimitTaskRequestBody::setTaskScope(const std::string& value) +{ + taskScope_ = value; + taskScopeIsSet_ = true; +} + +bool CreateLimitTaskRequestBody::taskScopeIsSet() const +{ + return taskScopeIsSet_; +} + +void CreateLimitTaskRequestBody::unsettaskScope() +{ + taskScopeIsSet_ = false; +} + +std::string CreateLimitTaskRequestBody::getStartTime() const +{ + return startTime_; +} + +void CreateLimitTaskRequestBody::setStartTime(const std::string& value) +{ + startTime_ = value; + startTimeIsSet_ = true; +} + +bool CreateLimitTaskRequestBody::startTimeIsSet() const +{ + return startTimeIsSet_; +} + +void CreateLimitTaskRequestBody::unsetstartTime() +{ + startTimeIsSet_ = false; +} + +std::string CreateLimitTaskRequestBody::getEndTime() const +{ + return endTime_; +} + +void CreateLimitTaskRequestBody::setEndTime(const std::string& value) +{ + endTime_ = value; + endTimeIsSet_ = true; +} + +bool CreateLimitTaskRequestBody::endTimeIsSet() const +{ + return endTimeIsSet_; +} + +void CreateLimitTaskRequestBody::unsetendTime() +{ + endTimeIsSet_ = false; +} + +std::string CreateLimitTaskRequestBody::getLimitType() const +{ + return limitType_; +} + +void CreateLimitTaskRequestBody::setLimitType(const std::string& value) +{ + limitType_ = value; + limitTypeIsSet_ = true; +} + +bool CreateLimitTaskRequestBody::limitTypeIsSet() const +{ + return limitTypeIsSet_; +} + +void CreateLimitTaskRequestBody::unsetlimitType() +{ + limitTypeIsSet_ = false; +} + +std::string CreateLimitTaskRequestBody::getLimitTypeValue() const +{ + return limitTypeValue_; +} + +void CreateLimitTaskRequestBody::setLimitTypeValue(const std::string& value) +{ + limitTypeValue_ = value; + limitTypeValueIsSet_ = true; +} + +bool CreateLimitTaskRequestBody::limitTypeValueIsSet() const +{ + return limitTypeValueIsSet_; +} + +void CreateLimitTaskRequestBody::unsetlimitTypeValue() +{ + limitTypeValueIsSet_ = false; +} + +std::string CreateLimitTaskRequestBody::getKeyWords() const +{ + return keyWords_; +} + +void CreateLimitTaskRequestBody::setKeyWords(const std::string& value) +{ + keyWords_ = value; + keyWordsIsSet_ = true; +} + +bool CreateLimitTaskRequestBody::keyWordsIsSet() const +{ + return keyWordsIsSet_; +} + +void CreateLimitTaskRequestBody::unsetkeyWords() +{ + keyWordsIsSet_ = false; +} + +std::string CreateLimitTaskRequestBody::getTaskName() const +{ + return taskName_; +} + +void CreateLimitTaskRequestBody::setTaskName(const std::string& value) +{ + taskName_ = value; + taskNameIsSet_ = true; +} + +bool CreateLimitTaskRequestBody::taskNameIsSet() const +{ + return taskNameIsSet_; +} + +void CreateLimitTaskRequestBody::unsettaskName() +{ + taskNameIsSet_ = false; +} + +std::string CreateLimitTaskRequestBody::getSqlModel() const +{ + return sqlModel_; +} + +void CreateLimitTaskRequestBody::setSqlModel(const std::string& value) +{ + sqlModel_ = value; + sqlModelIsSet_ = true; +} + +bool CreateLimitTaskRequestBody::sqlModelIsSet() const +{ + return sqlModelIsSet_; +} + +void CreateLimitTaskRequestBody::unsetsqlModel() +{ + sqlModelIsSet_ = false; +} + +int32_t CreateLimitTaskRequestBody::getParallelSize() const +{ + return parallelSize_; +} + +void CreateLimitTaskRequestBody::setParallelSize(int32_t value) +{ + parallelSize_ = value; + parallelSizeIsSet_ = true; +} + +bool CreateLimitTaskRequestBody::parallelSizeIsSet() const +{ + return parallelSizeIsSet_; +} + +void CreateLimitTaskRequestBody::unsetparallelSize() +{ + parallelSizeIsSet_ = false; +} + +int32_t CreateLimitTaskRequestBody::getCpuUtilization() const +{ + return cpuUtilization_; +} + +void CreateLimitTaskRequestBody::setCpuUtilization(int32_t value) +{ + cpuUtilization_ = value; + cpuUtilizationIsSet_ = true; +} + +bool CreateLimitTaskRequestBody::cpuUtilizationIsSet() const +{ + return cpuUtilizationIsSet_; +} + +void CreateLimitTaskRequestBody::unsetcpuUtilization() +{ + cpuUtilizationIsSet_ = false; +} + +int32_t CreateLimitTaskRequestBody::getMemoryUtilization() const +{ + return memoryUtilization_; +} + +void CreateLimitTaskRequestBody::setMemoryUtilization(int32_t value) +{ + memoryUtilization_ = value; + memoryUtilizationIsSet_ = true; +} + +bool CreateLimitTaskRequestBody::memoryUtilizationIsSet() const +{ + return memoryUtilizationIsSet_; +} + +void CreateLimitTaskRequestBody::unsetmemoryUtilization() +{ + memoryUtilizationIsSet_ = false; +} + +std::string CreateLimitTaskRequestBody::getDatabases() const +{ + return databases_; +} + +void CreateLimitTaskRequestBody::setDatabases(const std::string& value) +{ + databases_ = value; + databasesIsSet_ = true; +} + +bool CreateLimitTaskRequestBody::databasesIsSet() const +{ + return databasesIsSet_; +} + +void CreateLimitTaskRequestBody::unsetdatabases() +{ + databasesIsSet_ = false; +} + +std::vector& CreateLimitTaskRequestBody::getNodeInfos() +{ + return nodeInfos_; +} + +void CreateLimitTaskRequestBody::setNodeInfos(const std::vector& value) +{ + nodeInfos_ = value; + nodeInfosIsSet_ = true; +} + +bool CreateLimitTaskRequestBody::nodeInfosIsSet() const +{ + return nodeInfosIsSet_; +} + +void CreateLimitTaskRequestBody::unsetnodeInfos() +{ + nodeInfosIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbforopengauss/src/v3/model/CreateLimitTaskResponse.cpp b/gaussdbforopengauss/src/v3/model/CreateLimitTaskResponse.cpp new file mode 100644 index 000000000..95a59e30e --- /dev/null +++ b/gaussdbforopengauss/src/v3/model/CreateLimitTaskResponse.cpp @@ -0,0 +1,812 @@ + + +#include "huaweicloud/gaussdbforopengauss/v3/model/CreateLimitTaskResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + + + + +CreateLimitTaskResponse::CreateLimitTaskResponse() +{ + taskId_ = ""; + taskIdIsSet_ = false; + taskScope_ = ""; + taskScopeIsSet_ = false; + limitType_ = ""; + limitTypeIsSet_ = false; + limitTypeValue_ = ""; + limitTypeValueIsSet_ = false; + databases_ = ""; + databasesIsSet_ = false; + taskName_ = ""; + taskNameIsSet_ = false; + sqlModel_ = ""; + sqlModelIsSet_ = false; + keyWordsIsSet_ = false; + status_ = ""; + statusIsSet_ = false; + instanceId_ = ""; + instanceIdIsSet_ = false; + ruleName_ = ""; + ruleNameIsSet_ = false; + parallelSize_ = 0; + parallelSizeIsSet_ = false; + cpuUtilization_ = 0; + cpuUtilizationIsSet_ = false; + memoryUtilization_ = 0; + memoryUtilizationIsSet_ = false; + startTime_ = ""; + startTimeIsSet_ = false; + endTime_ = ""; + endTimeIsSet_ = false; + created_ = ""; + createdIsSet_ = false; + updated_ = ""; + updatedIsSet_ = false; + creator_ = ""; + creatorIsSet_ = false; + modifier_ = ""; + modifierIsSet_ = false; + nodeInfosIsSet_ = false; + jobId_ = ""; + jobIdIsSet_ = false; +} + +CreateLimitTaskResponse::~CreateLimitTaskResponse() = default; + +void CreateLimitTaskResponse::validate() +{ +} + +web::json::value CreateLimitTaskResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(taskIdIsSet_) { + val[utility::conversions::to_string_t("task_id")] = ModelBase::toJson(taskId_); + } + if(taskScopeIsSet_) { + val[utility::conversions::to_string_t("task_scope")] = ModelBase::toJson(taskScope_); + } + if(limitTypeIsSet_) { + val[utility::conversions::to_string_t("limit_type")] = ModelBase::toJson(limitType_); + } + if(limitTypeValueIsSet_) { + val[utility::conversions::to_string_t("limit_type_value")] = ModelBase::toJson(limitTypeValue_); + } + if(databasesIsSet_) { + val[utility::conversions::to_string_t("databases")] = ModelBase::toJson(databases_); + } + if(taskNameIsSet_) { + val[utility::conversions::to_string_t("task_name")] = ModelBase::toJson(taskName_); + } + if(sqlModelIsSet_) { + val[utility::conversions::to_string_t("sql_model")] = ModelBase::toJson(sqlModel_); + } + if(keyWordsIsSet_) { + val[utility::conversions::to_string_t("key_words")] = ModelBase::toJson(keyWords_); + } + if(statusIsSet_) { + val[utility::conversions::to_string_t("status")] = ModelBase::toJson(status_); + } + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + if(ruleNameIsSet_) { + val[utility::conversions::to_string_t("rule_name")] = ModelBase::toJson(ruleName_); + } + if(parallelSizeIsSet_) { + val[utility::conversions::to_string_t("parallel_size")] = ModelBase::toJson(parallelSize_); + } + if(cpuUtilizationIsSet_) { + val[utility::conversions::to_string_t("cpu_utilization")] = ModelBase::toJson(cpuUtilization_); + } + if(memoryUtilizationIsSet_) { + val[utility::conversions::to_string_t("memory_utilization")] = ModelBase::toJson(memoryUtilization_); + } + 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(createdIsSet_) { + val[utility::conversions::to_string_t("created")] = ModelBase::toJson(created_); + } + if(updatedIsSet_) { + val[utility::conversions::to_string_t("updated")] = ModelBase::toJson(updated_); + } + if(creatorIsSet_) { + val[utility::conversions::to_string_t("creator")] = ModelBase::toJson(creator_); + } + if(modifierIsSet_) { + val[utility::conversions::to_string_t("modifier")] = ModelBase::toJson(modifier_); + } + if(nodeInfosIsSet_) { + val[utility::conversions::to_string_t("node_infos")] = ModelBase::toJson(nodeInfos_); + } + if(jobIdIsSet_) { + val[utility::conversions::to_string_t("jobId")] = ModelBase::toJson(jobId_); + } + + return val; +} +bool CreateLimitTaskResponse::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); + } + } + if(val.has_field(utility::conversions::to_string_t("task_scope"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("task_scope")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTaskScope(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("limit_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("limit_type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLimitType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("limit_type_value"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("limit_type_value")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLimitTypeValue(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::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDatabases(refVal); + } + } + 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); + } + } + if(val.has_field(utility::conversions::to_string_t("sql_model"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sql_model")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSqlModel(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("key_words"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("key_words")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setKeyWords(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("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("rule_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("rule_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRuleName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("parallel_size"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("parallel_size")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setParallelSize(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("cpu_utilization"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("cpu_utilization")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCpuUtilization(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("memory_utilization"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("memory_utilization")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setMemoryUtilization(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("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("creator"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("creator")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCreator(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("modifier"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("modifier")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setModifier(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("node_infos"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("node_infos")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setNodeInfos(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("jobId"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("jobId")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setJobId(refVal); + } + } + return ok; +} + + +std::string CreateLimitTaskResponse::getTaskId() const +{ + return taskId_; +} + +void CreateLimitTaskResponse::setTaskId(const std::string& value) +{ + taskId_ = value; + taskIdIsSet_ = true; +} + +bool CreateLimitTaskResponse::taskIdIsSet() const +{ + return taskIdIsSet_; +} + +void CreateLimitTaskResponse::unsettaskId() +{ + taskIdIsSet_ = false; +} + +std::string CreateLimitTaskResponse::getTaskScope() const +{ + return taskScope_; +} + +void CreateLimitTaskResponse::setTaskScope(const std::string& value) +{ + taskScope_ = value; + taskScopeIsSet_ = true; +} + +bool CreateLimitTaskResponse::taskScopeIsSet() const +{ + return taskScopeIsSet_; +} + +void CreateLimitTaskResponse::unsettaskScope() +{ + taskScopeIsSet_ = false; +} + +std::string CreateLimitTaskResponse::getLimitType() const +{ + return limitType_; +} + +void CreateLimitTaskResponse::setLimitType(const std::string& value) +{ + limitType_ = value; + limitTypeIsSet_ = true; +} + +bool CreateLimitTaskResponse::limitTypeIsSet() const +{ + return limitTypeIsSet_; +} + +void CreateLimitTaskResponse::unsetlimitType() +{ + limitTypeIsSet_ = false; +} + +std::string CreateLimitTaskResponse::getLimitTypeValue() const +{ + return limitTypeValue_; +} + +void CreateLimitTaskResponse::setLimitTypeValue(const std::string& value) +{ + limitTypeValue_ = value; + limitTypeValueIsSet_ = true; +} + +bool CreateLimitTaskResponse::limitTypeValueIsSet() const +{ + return limitTypeValueIsSet_; +} + +void CreateLimitTaskResponse::unsetlimitTypeValue() +{ + limitTypeValueIsSet_ = false; +} + +std::string CreateLimitTaskResponse::getDatabases() const +{ + return databases_; +} + +void CreateLimitTaskResponse::setDatabases(const std::string& value) +{ + databases_ = value; + databasesIsSet_ = true; +} + +bool CreateLimitTaskResponse::databasesIsSet() const +{ + return databasesIsSet_; +} + +void CreateLimitTaskResponse::unsetdatabases() +{ + databasesIsSet_ = false; +} + +std::string CreateLimitTaskResponse::getTaskName() const +{ + return taskName_; +} + +void CreateLimitTaskResponse::setTaskName(const std::string& value) +{ + taskName_ = value; + taskNameIsSet_ = true; +} + +bool CreateLimitTaskResponse::taskNameIsSet() const +{ + return taskNameIsSet_; +} + +void CreateLimitTaskResponse::unsettaskName() +{ + taskNameIsSet_ = false; +} + +std::string CreateLimitTaskResponse::getSqlModel() const +{ + return sqlModel_; +} + +void CreateLimitTaskResponse::setSqlModel(const std::string& value) +{ + sqlModel_ = value; + sqlModelIsSet_ = true; +} + +bool CreateLimitTaskResponse::sqlModelIsSet() const +{ + return sqlModelIsSet_; +} + +void CreateLimitTaskResponse::unsetsqlModel() +{ + sqlModelIsSet_ = false; +} + +std::vector& CreateLimitTaskResponse::getKeyWords() +{ + return keyWords_; +} + +void CreateLimitTaskResponse::setKeyWords(const std::vector& value) +{ + keyWords_ = value; + keyWordsIsSet_ = true; +} + +bool CreateLimitTaskResponse::keyWordsIsSet() const +{ + return keyWordsIsSet_; +} + +void CreateLimitTaskResponse::unsetkeyWords() +{ + keyWordsIsSet_ = false; +} + +std::string CreateLimitTaskResponse::getStatus() const +{ + return status_; +} + +void CreateLimitTaskResponse::setStatus(const std::string& value) +{ + status_ = value; + statusIsSet_ = true; +} + +bool CreateLimitTaskResponse::statusIsSet() const +{ + return statusIsSet_; +} + +void CreateLimitTaskResponse::unsetstatus() +{ + statusIsSet_ = false; +} + +std::string CreateLimitTaskResponse::getInstanceId() const +{ + return instanceId_; +} + +void CreateLimitTaskResponse::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool CreateLimitTaskResponse::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void CreateLimitTaskResponse::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +std::string CreateLimitTaskResponse::getRuleName() const +{ + return ruleName_; +} + +void CreateLimitTaskResponse::setRuleName(const std::string& value) +{ + ruleName_ = value; + ruleNameIsSet_ = true; +} + +bool CreateLimitTaskResponse::ruleNameIsSet() const +{ + return ruleNameIsSet_; +} + +void CreateLimitTaskResponse::unsetruleName() +{ + ruleNameIsSet_ = false; +} + +int32_t CreateLimitTaskResponse::getParallelSize() const +{ + return parallelSize_; +} + +void CreateLimitTaskResponse::setParallelSize(int32_t value) +{ + parallelSize_ = value; + parallelSizeIsSet_ = true; +} + +bool CreateLimitTaskResponse::parallelSizeIsSet() const +{ + return parallelSizeIsSet_; +} + +void CreateLimitTaskResponse::unsetparallelSize() +{ + parallelSizeIsSet_ = false; +} + +int32_t CreateLimitTaskResponse::getCpuUtilization() const +{ + return cpuUtilization_; +} + +void CreateLimitTaskResponse::setCpuUtilization(int32_t value) +{ + cpuUtilization_ = value; + cpuUtilizationIsSet_ = true; +} + +bool CreateLimitTaskResponse::cpuUtilizationIsSet() const +{ + return cpuUtilizationIsSet_; +} + +void CreateLimitTaskResponse::unsetcpuUtilization() +{ + cpuUtilizationIsSet_ = false; +} + +int32_t CreateLimitTaskResponse::getMemoryUtilization() const +{ + return memoryUtilization_; +} + +void CreateLimitTaskResponse::setMemoryUtilization(int32_t value) +{ + memoryUtilization_ = value; + memoryUtilizationIsSet_ = true; +} + +bool CreateLimitTaskResponse::memoryUtilizationIsSet() const +{ + return memoryUtilizationIsSet_; +} + +void CreateLimitTaskResponse::unsetmemoryUtilization() +{ + memoryUtilizationIsSet_ = false; +} + +std::string CreateLimitTaskResponse::getStartTime() const +{ + return startTime_; +} + +void CreateLimitTaskResponse::setStartTime(const std::string& value) +{ + startTime_ = value; + startTimeIsSet_ = true; +} + +bool CreateLimitTaskResponse::startTimeIsSet() const +{ + return startTimeIsSet_; +} + +void CreateLimitTaskResponse::unsetstartTime() +{ + startTimeIsSet_ = false; +} + +std::string CreateLimitTaskResponse::getEndTime() const +{ + return endTime_; +} + +void CreateLimitTaskResponse::setEndTime(const std::string& value) +{ + endTime_ = value; + endTimeIsSet_ = true; +} + +bool CreateLimitTaskResponse::endTimeIsSet() const +{ + return endTimeIsSet_; +} + +void CreateLimitTaskResponse::unsetendTime() +{ + endTimeIsSet_ = false; +} + +std::string CreateLimitTaskResponse::getCreated() const +{ + return created_; +} + +void CreateLimitTaskResponse::setCreated(const std::string& value) +{ + created_ = value; + createdIsSet_ = true; +} + +bool CreateLimitTaskResponse::createdIsSet() const +{ + return createdIsSet_; +} + +void CreateLimitTaskResponse::unsetcreated() +{ + createdIsSet_ = false; +} + +std::string CreateLimitTaskResponse::getUpdated() const +{ + return updated_; +} + +void CreateLimitTaskResponse::setUpdated(const std::string& value) +{ + updated_ = value; + updatedIsSet_ = true; +} + +bool CreateLimitTaskResponse::updatedIsSet() const +{ + return updatedIsSet_; +} + +void CreateLimitTaskResponse::unsetupdated() +{ + updatedIsSet_ = false; +} + +std::string CreateLimitTaskResponse::getCreator() const +{ + return creator_; +} + +void CreateLimitTaskResponse::setCreator(const std::string& value) +{ + creator_ = value; + creatorIsSet_ = true; +} + +bool CreateLimitTaskResponse::creatorIsSet() const +{ + return creatorIsSet_; +} + +void CreateLimitTaskResponse::unsetcreator() +{ + creatorIsSet_ = false; +} + +std::string CreateLimitTaskResponse::getModifier() const +{ + return modifier_; +} + +void CreateLimitTaskResponse::setModifier(const std::string& value) +{ + modifier_ = value; + modifierIsSet_ = true; +} + +bool CreateLimitTaskResponse::modifierIsSet() const +{ + return modifierIsSet_; +} + +void CreateLimitTaskResponse::unsetmodifier() +{ + modifierIsSet_ = false; +} + +std::vector& CreateLimitTaskResponse::getNodeInfos() +{ + return nodeInfos_; +} + +void CreateLimitTaskResponse::setNodeInfos(const std::vector& value) +{ + nodeInfos_ = value; + nodeInfosIsSet_ = true; +} + +bool CreateLimitTaskResponse::nodeInfosIsSet() const +{ + return nodeInfosIsSet_; +} + +void CreateLimitTaskResponse::unsetnodeInfos() +{ + nodeInfosIsSet_ = false; +} + +std::string CreateLimitTaskResponse::getJobId() const +{ + return jobId_; +} + +void CreateLimitTaskResponse::setJobId(const std::string& value) +{ + jobId_ = value; + jobIdIsSet_ = true; +} + +bool CreateLimitTaskResponse::jobIdIsSet() const +{ + return jobIdIsSet_; +} + +void CreateLimitTaskResponse::unsetjobId() +{ + jobIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbforopengauss/src/v3/model/DeleteLimitTaskRequest.cpp b/gaussdbforopengauss/src/v3/model/DeleteLimitTaskRequest.cpp new file mode 100644 index 000000000..cf35bbbcf --- /dev/null +++ b/gaussdbforopengauss/src/v3/model/DeleteLimitTaskRequest.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/gaussdbforopengauss/v3/model/DeleteLimitTaskRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + + + + +DeleteLimitTaskRequest::DeleteLimitTaskRequest() +{ + taskId_ = ""; + taskIdIsSet_ = false; + instanceId_ = ""; + instanceIdIsSet_ = false; +} + +DeleteLimitTaskRequest::~DeleteLimitTaskRequest() = default; + +void DeleteLimitTaskRequest::validate() +{ +} + +web::json::value DeleteLimitTaskRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(taskIdIsSet_) { + val[utility::conversions::to_string_t("task_id")] = ModelBase::toJson(taskId_); + } + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + + return val; +} +bool DeleteLimitTaskRequest::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); + } + } + 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 DeleteLimitTaskRequest::getTaskId() const +{ + return taskId_; +} + +void DeleteLimitTaskRequest::setTaskId(const std::string& value) +{ + taskId_ = value; + taskIdIsSet_ = true; +} + +bool DeleteLimitTaskRequest::taskIdIsSet() const +{ + return taskIdIsSet_; +} + +void DeleteLimitTaskRequest::unsettaskId() +{ + taskIdIsSet_ = false; +} + +std::string DeleteLimitTaskRequest::getInstanceId() const +{ + return instanceId_; +} + +void DeleteLimitTaskRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool DeleteLimitTaskRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void DeleteLimitTaskRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbforopengauss/src/v3/model/DeleteLimitTaskResponse.cpp b/gaussdbforopengauss/src/v3/model/DeleteLimitTaskResponse.cpp new file mode 100644 index 000000000..16de64a40 --- /dev/null +++ b/gaussdbforopengauss/src/v3/model/DeleteLimitTaskResponse.cpp @@ -0,0 +1,44 @@ + + +#include "huaweicloud/gaussdbforopengauss/v3/model/DeleteLimitTaskResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + + + + +DeleteLimitTaskResponse::DeleteLimitTaskResponse() +{ +} + +DeleteLimitTaskResponse::~DeleteLimitTaskResponse() = default; + +void DeleteLimitTaskResponse::validate() +{ +} + +web::json::value DeleteLimitTaskResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + + return val; +} +bool DeleteLimitTaskResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + return ok; +} + + +} +} +} +} +} + + diff --git a/cfw/src/v1/model/ErrorRsp.cpp b/gaussdbforopengauss/src/v3/model/ErrorResponse.cpp similarity index 69% rename from cfw/src/v1/model/ErrorRsp.cpp rename to gaussdbforopengauss/src/v3/model/ErrorResponse.cpp index a6a2d10bd..ed314d8c2 100644 --- a/cfw/src/v1/model/ErrorRsp.cpp +++ b/gaussdbforopengauss/src/v3/model/ErrorResponse.cpp @@ -1,16 +1,16 @@ -#include "huaweicloud/cfw/v1/model/ErrorRsp.h" +#include "huaweicloud/gaussdbforopengauss/v3/model/ErrorResponse.h" namespace HuaweiCloud { namespace Sdk { -namespace Cfw { -namespace V1 { +namespace Gaussdbforopengauss { +namespace V3 { namespace Model { -ErrorRsp::ErrorRsp() +ErrorResponse::ErrorResponse() { errorCode_ = ""; errorCodeIsSet_ = false; @@ -18,13 +18,13 @@ ErrorRsp::ErrorRsp() errorMsgIsSet_ = false; } -ErrorRsp::~ErrorRsp() = default; +ErrorResponse::~ErrorResponse() = default; -void ErrorRsp::validate() +void ErrorResponse::validate() { } -web::json::value ErrorRsp::toJson() const +web::json::value ErrorResponse::toJson() const { web::json::value val = web::json::value::object(); @@ -37,7 +37,7 @@ web::json::value ErrorRsp::toJson() const return val; } -bool ErrorRsp::fromJson(const web::json::value& val) +bool ErrorResponse::fromJson(const web::json::value& val) { bool ok = true; @@ -63,44 +63,44 @@ bool ErrorRsp::fromJson(const web::json::value& val) } -std::string ErrorRsp::getErrorCode() const +std::string ErrorResponse::getErrorCode() const { return errorCode_; } -void ErrorRsp::setErrorCode(const std::string& value) +void ErrorResponse::setErrorCode(const std::string& value) { errorCode_ = value; errorCodeIsSet_ = true; } -bool ErrorRsp::errorCodeIsSet() const +bool ErrorResponse::errorCodeIsSet() const { return errorCodeIsSet_; } -void ErrorRsp::unseterrorCode() +void ErrorResponse::unseterrorCode() { errorCodeIsSet_ = false; } -std::string ErrorRsp::getErrorMsg() const +std::string ErrorResponse::getErrorMsg() const { return errorMsg_; } -void ErrorRsp::setErrorMsg(const std::string& value) +void ErrorResponse::setErrorMsg(const std::string& value) { errorMsg_ = value; errorMsgIsSet_ = true; } -bool ErrorRsp::errorMsgIsSet() const +bool ErrorResponse::errorMsgIsSet() const { return errorMsgIsSet_; } -void ErrorRsp::unseterrorMsg() +void ErrorResponse::unseterrorMsg() { errorMsgIsSet_ = false; } diff --git a/gaussdbforopengauss/src/v3/model/LimitTaskRuleInfoOption.cpp b/gaussdbforopengauss/src/v3/model/LimitTaskRuleInfoOption.cpp new file mode 100644 index 000000000..89019f9ef --- /dev/null +++ b/gaussdbforopengauss/src/v3/model/LimitTaskRuleInfoOption.cpp @@ -0,0 +1,149 @@ + + +#include "huaweicloud/gaussdbforopengauss/v3/model/LimitTaskRuleInfoOption.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + + + + +LimitTaskRuleInfoOption::LimitTaskRuleInfoOption() +{ + nodeId_ = ""; + nodeIdIsSet_ = false; + ruleId_ = ""; + ruleIdIsSet_ = false; + status_ = ""; + statusIsSet_ = false; +} + +LimitTaskRuleInfoOption::~LimitTaskRuleInfoOption() = default; + +void LimitTaskRuleInfoOption::validate() +{ +} + +web::json::value LimitTaskRuleInfoOption::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(nodeIdIsSet_) { + val[utility::conversions::to_string_t("node_id")] = ModelBase::toJson(nodeId_); + } + if(ruleIdIsSet_) { + val[utility::conversions::to_string_t("rule_id")] = ModelBase::toJson(ruleId_); + } + if(statusIsSet_) { + val[utility::conversions::to_string_t("status")] = ModelBase::toJson(status_); + } + + return val; +} +bool LimitTaskRuleInfoOption::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("rule_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("rule_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRuleId(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); + } + } + return ok; +} + + +std::string LimitTaskRuleInfoOption::getNodeId() const +{ + return nodeId_; +} + +void LimitTaskRuleInfoOption::setNodeId(const std::string& value) +{ + nodeId_ = value; + nodeIdIsSet_ = true; +} + +bool LimitTaskRuleInfoOption::nodeIdIsSet() const +{ + return nodeIdIsSet_; +} + +void LimitTaskRuleInfoOption::unsetnodeId() +{ + nodeIdIsSet_ = false; +} + +std::string LimitTaskRuleInfoOption::getRuleId() const +{ + return ruleId_; +} + +void LimitTaskRuleInfoOption::setRuleId(const std::string& value) +{ + ruleId_ = value; + ruleIdIsSet_ = true; +} + +bool LimitTaskRuleInfoOption::ruleIdIsSet() const +{ + return ruleIdIsSet_; +} + +void LimitTaskRuleInfoOption::unsetruleId() +{ + ruleIdIsSet_ = false; +} + +std::string LimitTaskRuleInfoOption::getStatus() const +{ + return status_; +} + +void LimitTaskRuleInfoOption::setStatus(const std::string& value) +{ + status_ = value; + statusIsSet_ = true; +} + +bool LimitTaskRuleInfoOption::statusIsSet() const +{ + return statusIsSet_; +} + +void LimitTaskRuleInfoOption::unsetstatus() +{ + statusIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbforopengauss/src/v3/model/ListLimitTaskRequest.cpp b/gaussdbforopengauss/src/v3/model/ListLimitTaskRequest.cpp new file mode 100644 index 000000000..f160e1063 --- /dev/null +++ b/gaussdbforopengauss/src/v3/model/ListLimitTaskRequest.cpp @@ -0,0 +1,429 @@ + + +#include "huaweicloud/gaussdbforopengauss/v3/model/ListLimitTaskRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + + + + +ListLimitTaskRequest::ListLimitTaskRequest() +{ + instanceId_ = ""; + instanceIdIsSet_ = false; + taskScope_ = ""; + taskScopeIsSet_ = false; + limitType_ = ""; + limitTypeIsSet_ = false; + limitTypeValue_ = ""; + limitTypeValueIsSet_ = false; + taskName_ = ""; + taskNameIsSet_ = false; + sqlModel_ = ""; + sqlModelIsSet_ = false; + ruleName_ = ""; + ruleNameIsSet_ = false; + startTime_ = ""; + startTimeIsSet_ = false; + endTime_ = ""; + endTimeIsSet_ = false; + offset_ = 0; + offsetIsSet_ = false; + limit_ = 0; + limitIsSet_ = false; +} + +ListLimitTaskRequest::~ListLimitTaskRequest() = default; + +void ListLimitTaskRequest::validate() +{ +} + +web::json::value ListLimitTaskRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + if(taskScopeIsSet_) { + val[utility::conversions::to_string_t("task_scope")] = ModelBase::toJson(taskScope_); + } + if(limitTypeIsSet_) { + val[utility::conversions::to_string_t("limit_type")] = ModelBase::toJson(limitType_); + } + if(limitTypeValueIsSet_) { + val[utility::conversions::to_string_t("limit_type_value")] = ModelBase::toJson(limitTypeValue_); + } + if(taskNameIsSet_) { + val[utility::conversions::to_string_t("task_name")] = ModelBase::toJson(taskName_); + } + if(sqlModelIsSet_) { + val[utility::conversions::to_string_t("sql_model")] = ModelBase::toJson(sqlModel_); + } + if(ruleNameIsSet_) { + val[utility::conversions::to_string_t("rule_name")] = ModelBase::toJson(ruleName_); + } + 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(offsetIsSet_) { + val[utility::conversions::to_string_t("offset")] = ModelBase::toJson(offset_); + } + if(limitIsSet_) { + val[utility::conversions::to_string_t("limit")] = ModelBase::toJson(limit_); + } + + return val; +} +bool ListLimitTaskRequest::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("task_scope"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("task_scope")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTaskScope(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("limit_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("limit_type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLimitType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("limit_type_value"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("limit_type_value")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLimitTypeValue(refVal); + } + } + 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); + } + } + if(val.has_field(utility::conversions::to_string_t("sql_model"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sql_model")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSqlModel(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("rule_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("rule_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRuleName(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("offset"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("offset")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setOffset(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("limit"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("limit")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLimit(refVal); + } + } + return ok; +} + + +std::string ListLimitTaskRequest::getInstanceId() const +{ + return instanceId_; +} + +void ListLimitTaskRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool ListLimitTaskRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void ListLimitTaskRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +std::string ListLimitTaskRequest::getTaskScope() const +{ + return taskScope_; +} + +void ListLimitTaskRequest::setTaskScope(const std::string& value) +{ + taskScope_ = value; + taskScopeIsSet_ = true; +} + +bool ListLimitTaskRequest::taskScopeIsSet() const +{ + return taskScopeIsSet_; +} + +void ListLimitTaskRequest::unsettaskScope() +{ + taskScopeIsSet_ = false; +} + +std::string ListLimitTaskRequest::getLimitType() const +{ + return limitType_; +} + +void ListLimitTaskRequest::setLimitType(const std::string& value) +{ + limitType_ = value; + limitTypeIsSet_ = true; +} + +bool ListLimitTaskRequest::limitTypeIsSet() const +{ + return limitTypeIsSet_; +} + +void ListLimitTaskRequest::unsetlimitType() +{ + limitTypeIsSet_ = false; +} + +std::string ListLimitTaskRequest::getLimitTypeValue() const +{ + return limitTypeValue_; +} + +void ListLimitTaskRequest::setLimitTypeValue(const std::string& value) +{ + limitTypeValue_ = value; + limitTypeValueIsSet_ = true; +} + +bool ListLimitTaskRequest::limitTypeValueIsSet() const +{ + return limitTypeValueIsSet_; +} + +void ListLimitTaskRequest::unsetlimitTypeValue() +{ + limitTypeValueIsSet_ = false; +} + +std::string ListLimitTaskRequest::getTaskName() const +{ + return taskName_; +} + +void ListLimitTaskRequest::setTaskName(const std::string& value) +{ + taskName_ = value; + taskNameIsSet_ = true; +} + +bool ListLimitTaskRequest::taskNameIsSet() const +{ + return taskNameIsSet_; +} + +void ListLimitTaskRequest::unsettaskName() +{ + taskNameIsSet_ = false; +} + +std::string ListLimitTaskRequest::getSqlModel() const +{ + return sqlModel_; +} + +void ListLimitTaskRequest::setSqlModel(const std::string& value) +{ + sqlModel_ = value; + sqlModelIsSet_ = true; +} + +bool ListLimitTaskRequest::sqlModelIsSet() const +{ + return sqlModelIsSet_; +} + +void ListLimitTaskRequest::unsetsqlModel() +{ + sqlModelIsSet_ = false; +} + +std::string ListLimitTaskRequest::getRuleName() const +{ + return ruleName_; +} + +void ListLimitTaskRequest::setRuleName(const std::string& value) +{ + ruleName_ = value; + ruleNameIsSet_ = true; +} + +bool ListLimitTaskRequest::ruleNameIsSet() const +{ + return ruleNameIsSet_; +} + +void ListLimitTaskRequest::unsetruleName() +{ + ruleNameIsSet_ = false; +} + +std::string ListLimitTaskRequest::getStartTime() const +{ + return startTime_; +} + +void ListLimitTaskRequest::setStartTime(const std::string& value) +{ + startTime_ = value; + startTimeIsSet_ = true; +} + +bool ListLimitTaskRequest::startTimeIsSet() const +{ + return startTimeIsSet_; +} + +void ListLimitTaskRequest::unsetstartTime() +{ + startTimeIsSet_ = false; +} + +std::string ListLimitTaskRequest::getEndTime() const +{ + return endTime_; +} + +void ListLimitTaskRequest::setEndTime(const std::string& value) +{ + endTime_ = value; + endTimeIsSet_ = true; +} + +bool ListLimitTaskRequest::endTimeIsSet() const +{ + return endTimeIsSet_; +} + +void ListLimitTaskRequest::unsetendTime() +{ + endTimeIsSet_ = false; +} + +int32_t ListLimitTaskRequest::getOffset() const +{ + return offset_; +} + +void ListLimitTaskRequest::setOffset(int32_t value) +{ + offset_ = value; + offsetIsSet_ = true; +} + +bool ListLimitTaskRequest::offsetIsSet() const +{ + return offsetIsSet_; +} + +void ListLimitTaskRequest::unsetoffset() +{ + offsetIsSet_ = false; +} + +int32_t ListLimitTaskRequest::getLimit() const +{ + return limit_; +} + +void ListLimitTaskRequest::setLimit(int32_t value) +{ + limit_ = value; + limitIsSet_ = true; +} + +bool ListLimitTaskRequest::limitIsSet() const +{ + return limitIsSet_; +} + +void ListLimitTaskRequest::unsetlimit() +{ + limitIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbforopengauss/src/v3/model/ListLimitTaskResponse.cpp b/gaussdbforopengauss/src/v3/model/ListLimitTaskResponse.cpp new file mode 100644 index 000000000..0f03b64c9 --- /dev/null +++ b/gaussdbforopengauss/src/v3/model/ListLimitTaskResponse.cpp @@ -0,0 +1,183 @@ + + +#include "huaweicloud/gaussdbforopengauss/v3/model/ListLimitTaskResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + + + + +ListLimitTaskResponse::ListLimitTaskResponse() +{ + limitTaskListIsSet_ = false; + limit_ = 0; + limitIsSet_ = false; + offset_ = 0; + offsetIsSet_ = false; + totalCount_ = 0; + totalCountIsSet_ = false; +} + +ListLimitTaskResponse::~ListLimitTaskResponse() = default; + +void ListLimitTaskResponse::validate() +{ +} + +web::json::value ListLimitTaskResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(limitTaskListIsSet_) { + val[utility::conversions::to_string_t("limit_task_list")] = ModelBase::toJson(limitTaskList_); + } + 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(totalCountIsSet_) { + val[utility::conversions::to_string_t("total_count")] = ModelBase::toJson(totalCount_); + } + + return val; +} +bool ListLimitTaskResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("limit_task_list"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("limit_task_list")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLimitTaskList(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("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& ListLimitTaskResponse::getLimitTaskList() +{ + return limitTaskList_; +} + +void ListLimitTaskResponse::setLimitTaskList(const std::vector& value) +{ + limitTaskList_ = value; + limitTaskListIsSet_ = true; +} + +bool ListLimitTaskResponse::limitTaskListIsSet() const +{ + return limitTaskListIsSet_; +} + +void ListLimitTaskResponse::unsetlimitTaskList() +{ + limitTaskListIsSet_ = false; +} + +int32_t ListLimitTaskResponse::getLimit() const +{ + return limit_; +} + +void ListLimitTaskResponse::setLimit(int32_t value) +{ + limit_ = value; + limitIsSet_ = true; +} + +bool ListLimitTaskResponse::limitIsSet() const +{ + return limitIsSet_; +} + +void ListLimitTaskResponse::unsetlimit() +{ + limitIsSet_ = false; +} + +int32_t ListLimitTaskResponse::getOffset() const +{ + return offset_; +} + +void ListLimitTaskResponse::setOffset(int32_t value) +{ + offset_ = value; + offsetIsSet_ = true; +} + +bool ListLimitTaskResponse::offsetIsSet() const +{ + return offsetIsSet_; +} + +void ListLimitTaskResponse::unsetoffset() +{ + offsetIsSet_ = false; +} + +int32_t ListLimitTaskResponse::getTotalCount() const +{ + return totalCount_; +} + +void ListLimitTaskResponse::setTotalCount(int32_t value) +{ + totalCount_ = value; + totalCountIsSet_ = true; +} + +bool ListLimitTaskResponse::totalCountIsSet() const +{ + return totalCountIsSet_; +} + +void ListLimitTaskResponse::unsettotalCount() +{ + totalCountIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbforopengauss/src/v3/model/ListLimitTaskResponseResult.cpp b/gaussdbforopengauss/src/v3/model/ListLimitTaskResponseResult.cpp new file mode 100644 index 000000000..0217227d8 --- /dev/null +++ b/gaussdbforopengauss/src/v3/model/ListLimitTaskResponseResult.cpp @@ -0,0 +1,778 @@ + + +#include "huaweicloud/gaussdbforopengauss/v3/model/ListLimitTaskResponseResult.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + + + + +ListLimitTaskResponseResult::ListLimitTaskResponseResult() +{ + taskId_ = ""; + taskIdIsSet_ = false; + taskScope_ = ""; + taskScopeIsSet_ = false; + limitType_ = ""; + limitTypeIsSet_ = false; + limitTypeValue_ = ""; + limitTypeValueIsSet_ = false; + taskName_ = ""; + taskNameIsSet_ = false; + databases_ = ""; + databasesIsSet_ = false; + sqlModel_ = ""; + sqlModelIsSet_ = false; + keyWords_ = ""; + keyWordsIsSet_ = false; + status_ = ""; + statusIsSet_ = false; + instanceId_ = ""; + instanceIdIsSet_ = false; + ruleName_ = ""; + ruleNameIsSet_ = false; + parallelSize_ = 0; + parallelSizeIsSet_ = false; + startTime_ = ""; + startTimeIsSet_ = false; + endTime_ = ""; + endTimeIsSet_ = false; + cpuUtilization_ = 0; + cpuUtilizationIsSet_ = false; + memoryUtilization_ = 0; + memoryUtilizationIsSet_ = false; + created_ = ""; + createdIsSet_ = false; + updated_ = ""; + updatedIsSet_ = false; + creator_ = ""; + creatorIsSet_ = false; + modifier_ = ""; + modifierIsSet_ = false; + nodeInfosIsSet_ = false; +} + +ListLimitTaskResponseResult::~ListLimitTaskResponseResult() = default; + +void ListLimitTaskResponseResult::validate() +{ +} + +web::json::value ListLimitTaskResponseResult::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(taskIdIsSet_) { + val[utility::conversions::to_string_t("task_id")] = ModelBase::toJson(taskId_); + } + if(taskScopeIsSet_) { + val[utility::conversions::to_string_t("task_scope")] = ModelBase::toJson(taskScope_); + } + if(limitTypeIsSet_) { + val[utility::conversions::to_string_t("limit_type")] = ModelBase::toJson(limitType_); + } + if(limitTypeValueIsSet_) { + val[utility::conversions::to_string_t("limit_type_value")] = ModelBase::toJson(limitTypeValue_); + } + if(taskNameIsSet_) { + val[utility::conversions::to_string_t("task_name")] = ModelBase::toJson(taskName_); + } + if(databasesIsSet_) { + val[utility::conversions::to_string_t("databases")] = ModelBase::toJson(databases_); + } + if(sqlModelIsSet_) { + val[utility::conversions::to_string_t("sql_model")] = ModelBase::toJson(sqlModel_); + } + if(keyWordsIsSet_) { + val[utility::conversions::to_string_t("key_words")] = ModelBase::toJson(keyWords_); + } + if(statusIsSet_) { + val[utility::conversions::to_string_t("status")] = ModelBase::toJson(status_); + } + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + if(ruleNameIsSet_) { + val[utility::conversions::to_string_t("rule_name")] = ModelBase::toJson(ruleName_); + } + if(parallelSizeIsSet_) { + val[utility::conversions::to_string_t("parallel_size")] = ModelBase::toJson(parallelSize_); + } + 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(cpuUtilizationIsSet_) { + val[utility::conversions::to_string_t("cpu_utilization")] = ModelBase::toJson(cpuUtilization_); + } + if(memoryUtilizationIsSet_) { + val[utility::conversions::to_string_t("memory_utilization")] = ModelBase::toJson(memoryUtilization_); + } + 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(creatorIsSet_) { + val[utility::conversions::to_string_t("creator")] = ModelBase::toJson(creator_); + } + if(modifierIsSet_) { + val[utility::conversions::to_string_t("modifier")] = ModelBase::toJson(modifier_); + } + if(nodeInfosIsSet_) { + val[utility::conversions::to_string_t("node_infos")] = ModelBase::toJson(nodeInfos_); + } + + return val; +} +bool ListLimitTaskResponseResult::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); + } + } + if(val.has_field(utility::conversions::to_string_t("task_scope"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("task_scope")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTaskScope(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("limit_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("limit_type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLimitType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("limit_type_value"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("limit_type_value")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLimitTypeValue(refVal); + } + } + 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); + } + } + 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::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDatabases(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("sql_model"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sql_model")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSqlModel(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("key_words"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("key_words")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setKeyWords(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("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("rule_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("rule_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRuleName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("parallel_size"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("parallel_size")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setParallelSize(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("cpu_utilization"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("cpu_utilization")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCpuUtilization(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("memory_utilization"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("memory_utilization")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setMemoryUtilization(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("creator"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("creator")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCreator(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("modifier"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("modifier")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setModifier(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("node_infos"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("node_infos")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setNodeInfos(refVal); + } + } + return ok; +} + + +std::string ListLimitTaskResponseResult::getTaskId() const +{ + return taskId_; +} + +void ListLimitTaskResponseResult::setTaskId(const std::string& value) +{ + taskId_ = value; + taskIdIsSet_ = true; +} + +bool ListLimitTaskResponseResult::taskIdIsSet() const +{ + return taskIdIsSet_; +} + +void ListLimitTaskResponseResult::unsettaskId() +{ + taskIdIsSet_ = false; +} + +std::string ListLimitTaskResponseResult::getTaskScope() const +{ + return taskScope_; +} + +void ListLimitTaskResponseResult::setTaskScope(const std::string& value) +{ + taskScope_ = value; + taskScopeIsSet_ = true; +} + +bool ListLimitTaskResponseResult::taskScopeIsSet() const +{ + return taskScopeIsSet_; +} + +void ListLimitTaskResponseResult::unsettaskScope() +{ + taskScopeIsSet_ = false; +} + +std::string ListLimitTaskResponseResult::getLimitType() const +{ + return limitType_; +} + +void ListLimitTaskResponseResult::setLimitType(const std::string& value) +{ + limitType_ = value; + limitTypeIsSet_ = true; +} + +bool ListLimitTaskResponseResult::limitTypeIsSet() const +{ + return limitTypeIsSet_; +} + +void ListLimitTaskResponseResult::unsetlimitType() +{ + limitTypeIsSet_ = false; +} + +std::string ListLimitTaskResponseResult::getLimitTypeValue() const +{ + return limitTypeValue_; +} + +void ListLimitTaskResponseResult::setLimitTypeValue(const std::string& value) +{ + limitTypeValue_ = value; + limitTypeValueIsSet_ = true; +} + +bool ListLimitTaskResponseResult::limitTypeValueIsSet() const +{ + return limitTypeValueIsSet_; +} + +void ListLimitTaskResponseResult::unsetlimitTypeValue() +{ + limitTypeValueIsSet_ = false; +} + +std::string ListLimitTaskResponseResult::getTaskName() const +{ + return taskName_; +} + +void ListLimitTaskResponseResult::setTaskName(const std::string& value) +{ + taskName_ = value; + taskNameIsSet_ = true; +} + +bool ListLimitTaskResponseResult::taskNameIsSet() const +{ + return taskNameIsSet_; +} + +void ListLimitTaskResponseResult::unsettaskName() +{ + taskNameIsSet_ = false; +} + +std::string ListLimitTaskResponseResult::getDatabases() const +{ + return databases_; +} + +void ListLimitTaskResponseResult::setDatabases(const std::string& value) +{ + databases_ = value; + databasesIsSet_ = true; +} + +bool ListLimitTaskResponseResult::databasesIsSet() const +{ + return databasesIsSet_; +} + +void ListLimitTaskResponseResult::unsetdatabases() +{ + databasesIsSet_ = false; +} + +std::string ListLimitTaskResponseResult::getSqlModel() const +{ + return sqlModel_; +} + +void ListLimitTaskResponseResult::setSqlModel(const std::string& value) +{ + sqlModel_ = value; + sqlModelIsSet_ = true; +} + +bool ListLimitTaskResponseResult::sqlModelIsSet() const +{ + return sqlModelIsSet_; +} + +void ListLimitTaskResponseResult::unsetsqlModel() +{ + sqlModelIsSet_ = false; +} + +std::string ListLimitTaskResponseResult::getKeyWords() const +{ + return keyWords_; +} + +void ListLimitTaskResponseResult::setKeyWords(const std::string& value) +{ + keyWords_ = value; + keyWordsIsSet_ = true; +} + +bool ListLimitTaskResponseResult::keyWordsIsSet() const +{ + return keyWordsIsSet_; +} + +void ListLimitTaskResponseResult::unsetkeyWords() +{ + keyWordsIsSet_ = false; +} + +std::string ListLimitTaskResponseResult::getStatus() const +{ + return status_; +} + +void ListLimitTaskResponseResult::setStatus(const std::string& value) +{ + status_ = value; + statusIsSet_ = true; +} + +bool ListLimitTaskResponseResult::statusIsSet() const +{ + return statusIsSet_; +} + +void ListLimitTaskResponseResult::unsetstatus() +{ + statusIsSet_ = false; +} + +std::string ListLimitTaskResponseResult::getInstanceId() const +{ + return instanceId_; +} + +void ListLimitTaskResponseResult::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool ListLimitTaskResponseResult::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void ListLimitTaskResponseResult::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +std::string ListLimitTaskResponseResult::getRuleName() const +{ + return ruleName_; +} + +void ListLimitTaskResponseResult::setRuleName(const std::string& value) +{ + ruleName_ = value; + ruleNameIsSet_ = true; +} + +bool ListLimitTaskResponseResult::ruleNameIsSet() const +{ + return ruleNameIsSet_; +} + +void ListLimitTaskResponseResult::unsetruleName() +{ + ruleNameIsSet_ = false; +} + +int32_t ListLimitTaskResponseResult::getParallelSize() const +{ + return parallelSize_; +} + +void ListLimitTaskResponseResult::setParallelSize(int32_t value) +{ + parallelSize_ = value; + parallelSizeIsSet_ = true; +} + +bool ListLimitTaskResponseResult::parallelSizeIsSet() const +{ + return parallelSizeIsSet_; +} + +void ListLimitTaskResponseResult::unsetparallelSize() +{ + parallelSizeIsSet_ = false; +} + +std::string ListLimitTaskResponseResult::getStartTime() const +{ + return startTime_; +} + +void ListLimitTaskResponseResult::setStartTime(const std::string& value) +{ + startTime_ = value; + startTimeIsSet_ = true; +} + +bool ListLimitTaskResponseResult::startTimeIsSet() const +{ + return startTimeIsSet_; +} + +void ListLimitTaskResponseResult::unsetstartTime() +{ + startTimeIsSet_ = false; +} + +std::string ListLimitTaskResponseResult::getEndTime() const +{ + return endTime_; +} + +void ListLimitTaskResponseResult::setEndTime(const std::string& value) +{ + endTime_ = value; + endTimeIsSet_ = true; +} + +bool ListLimitTaskResponseResult::endTimeIsSet() const +{ + return endTimeIsSet_; +} + +void ListLimitTaskResponseResult::unsetendTime() +{ + endTimeIsSet_ = false; +} + +int32_t ListLimitTaskResponseResult::getCpuUtilization() const +{ + return cpuUtilization_; +} + +void ListLimitTaskResponseResult::setCpuUtilization(int32_t value) +{ + cpuUtilization_ = value; + cpuUtilizationIsSet_ = true; +} + +bool ListLimitTaskResponseResult::cpuUtilizationIsSet() const +{ + return cpuUtilizationIsSet_; +} + +void ListLimitTaskResponseResult::unsetcpuUtilization() +{ + cpuUtilizationIsSet_ = false; +} + +int32_t ListLimitTaskResponseResult::getMemoryUtilization() const +{ + return memoryUtilization_; +} + +void ListLimitTaskResponseResult::setMemoryUtilization(int32_t value) +{ + memoryUtilization_ = value; + memoryUtilizationIsSet_ = true; +} + +bool ListLimitTaskResponseResult::memoryUtilizationIsSet() const +{ + return memoryUtilizationIsSet_; +} + +void ListLimitTaskResponseResult::unsetmemoryUtilization() +{ + memoryUtilizationIsSet_ = false; +} + +std::string ListLimitTaskResponseResult::getCreated() const +{ + return created_; +} + +void ListLimitTaskResponseResult::setCreated(const std::string& value) +{ + created_ = value; + createdIsSet_ = true; +} + +bool ListLimitTaskResponseResult::createdIsSet() const +{ + return createdIsSet_; +} + +void ListLimitTaskResponseResult::unsetcreated() +{ + createdIsSet_ = false; +} + +std::string ListLimitTaskResponseResult::getUpdated() const +{ + return updated_; +} + +void ListLimitTaskResponseResult::setUpdated(const std::string& value) +{ + updated_ = value; + updatedIsSet_ = true; +} + +bool ListLimitTaskResponseResult::updatedIsSet() const +{ + return updatedIsSet_; +} + +void ListLimitTaskResponseResult::unsetupdated() +{ + updatedIsSet_ = false; +} + +std::string ListLimitTaskResponseResult::getCreator() const +{ + return creator_; +} + +void ListLimitTaskResponseResult::setCreator(const std::string& value) +{ + creator_ = value; + creatorIsSet_ = true; +} + +bool ListLimitTaskResponseResult::creatorIsSet() const +{ + return creatorIsSet_; +} + +void ListLimitTaskResponseResult::unsetcreator() +{ + creatorIsSet_ = false; +} + +std::string ListLimitTaskResponseResult::getModifier() const +{ + return modifier_; +} + +void ListLimitTaskResponseResult::setModifier(const std::string& value) +{ + modifier_ = value; + modifierIsSet_ = true; +} + +bool ListLimitTaskResponseResult::modifierIsSet() const +{ + return modifierIsSet_; +} + +void ListLimitTaskResponseResult::unsetmodifier() +{ + modifierIsSet_ = false; +} + +std::vector& ListLimitTaskResponseResult::getNodeInfos() +{ + return nodeInfos_; +} + +void ListLimitTaskResponseResult::setNodeInfos(const std::vector& value) +{ + nodeInfos_ = value; + nodeInfosIsSet_ = true; +} + +bool ListLimitTaskResponseResult::nodeInfosIsSet() const +{ + return nodeInfosIsSet_; +} + +void ListLimitTaskResponseResult::unsetnodeInfos() +{ + nodeInfosIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbforopengauss/src/v3/model/ListNodeLimitSqlModelRequest.cpp b/gaussdbforopengauss/src/v3/model/ListNodeLimitSqlModelRequest.cpp new file mode 100644 index 000000000..5a572f2fc --- /dev/null +++ b/gaussdbforopengauss/src/v3/model/ListNodeLimitSqlModelRequest.cpp @@ -0,0 +1,219 @@ + + +#include "huaweicloud/gaussdbforopengauss/v3/model/ListNodeLimitSqlModelRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + + + + +ListNodeLimitSqlModelRequest::ListNodeLimitSqlModelRequest() +{ + instanceId_ = ""; + instanceIdIsSet_ = false; + nodeId_ = ""; + nodeIdIsSet_ = false; + sqlModel_ = ""; + sqlModelIsSet_ = false; + offset_ = 0; + offsetIsSet_ = false; + limit_ = 0; + limitIsSet_ = false; +} + +ListNodeLimitSqlModelRequest::~ListNodeLimitSqlModelRequest() = default; + +void ListNodeLimitSqlModelRequest::validate() +{ +} + +web::json::value ListNodeLimitSqlModelRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + if(nodeIdIsSet_) { + val[utility::conversions::to_string_t("node_id")] = ModelBase::toJson(nodeId_); + } + if(sqlModelIsSet_) { + val[utility::conversions::to_string_t("sql_model")] = ModelBase::toJson(sqlModel_); + } + if(offsetIsSet_) { + val[utility::conversions::to_string_t("offset")] = ModelBase::toJson(offset_); + } + if(limitIsSet_) { + val[utility::conversions::to_string_t("limit")] = ModelBase::toJson(limit_); + } + + return val; +} +bool ListNodeLimitSqlModelRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("instance_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("instance_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInstanceId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("node_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("node_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setNodeId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("sql_model"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sql_model")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSqlModel(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("offset"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("offset")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setOffset(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("limit"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("limit")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLimit(refVal); + } + } + return ok; +} + + +std::string ListNodeLimitSqlModelRequest::getInstanceId() const +{ + return instanceId_; +} + +void ListNodeLimitSqlModelRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool ListNodeLimitSqlModelRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void ListNodeLimitSqlModelRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +std::string ListNodeLimitSqlModelRequest::getNodeId() const +{ + return nodeId_; +} + +void ListNodeLimitSqlModelRequest::setNodeId(const std::string& value) +{ + nodeId_ = value; + nodeIdIsSet_ = true; +} + +bool ListNodeLimitSqlModelRequest::nodeIdIsSet() const +{ + return nodeIdIsSet_; +} + +void ListNodeLimitSqlModelRequest::unsetnodeId() +{ + nodeIdIsSet_ = false; +} + +std::string ListNodeLimitSqlModelRequest::getSqlModel() const +{ + return sqlModel_; +} + +void ListNodeLimitSqlModelRequest::setSqlModel(const std::string& value) +{ + sqlModel_ = value; + sqlModelIsSet_ = true; +} + +bool ListNodeLimitSqlModelRequest::sqlModelIsSet() const +{ + return sqlModelIsSet_; +} + +void ListNodeLimitSqlModelRequest::unsetsqlModel() +{ + sqlModelIsSet_ = false; +} + +int32_t ListNodeLimitSqlModelRequest::getOffset() const +{ + return offset_; +} + +void ListNodeLimitSqlModelRequest::setOffset(int32_t value) +{ + offset_ = value; + offsetIsSet_ = true; +} + +bool ListNodeLimitSqlModelRequest::offsetIsSet() const +{ + return offsetIsSet_; +} + +void ListNodeLimitSqlModelRequest::unsetoffset() +{ + offsetIsSet_ = false; +} + +int32_t ListNodeLimitSqlModelRequest::getLimit() const +{ + return limit_; +} + +void ListNodeLimitSqlModelRequest::setLimit(int32_t value) +{ + limit_ = value; + limitIsSet_ = true; +} + +bool ListNodeLimitSqlModelRequest::limitIsSet() const +{ + return limitIsSet_; +} + +void ListNodeLimitSqlModelRequest::unsetlimit() +{ + limitIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbforopengauss/src/v3/model/ListNodeLimitSqlModelResponse.cpp b/gaussdbforopengauss/src/v3/model/ListNodeLimitSqlModelResponse.cpp new file mode 100644 index 000000000..87477eed7 --- /dev/null +++ b/gaussdbforopengauss/src/v3/model/ListNodeLimitSqlModelResponse.cpp @@ -0,0 +1,183 @@ + + +#include "huaweicloud/gaussdbforopengauss/v3/model/ListNodeLimitSqlModelResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + + + + +ListNodeLimitSqlModelResponse::ListNodeLimitSqlModelResponse() +{ + nodeLimitSqlModelListIsSet_ = false; + limit_ = 0; + limitIsSet_ = false; + offset_ = 0; + offsetIsSet_ = false; + totalCount_ = 0; + totalCountIsSet_ = false; +} + +ListNodeLimitSqlModelResponse::~ListNodeLimitSqlModelResponse() = default; + +void ListNodeLimitSqlModelResponse::validate() +{ +} + +web::json::value ListNodeLimitSqlModelResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(nodeLimitSqlModelListIsSet_) { + val[utility::conversions::to_string_t("node_limit_sql_model_list")] = ModelBase::toJson(nodeLimitSqlModelList_); + } + 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(totalCountIsSet_) { + val[utility::conversions::to_string_t("total_count")] = ModelBase::toJson(totalCount_); + } + + return val; +} +bool ListNodeLimitSqlModelResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("node_limit_sql_model_list"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("node_limit_sql_model_list")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setNodeLimitSqlModelList(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("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& ListNodeLimitSqlModelResponse::getNodeLimitSqlModelList() +{ + return nodeLimitSqlModelList_; +} + +void ListNodeLimitSqlModelResponse::setNodeLimitSqlModelList(const std::vector& value) +{ + nodeLimitSqlModelList_ = value; + nodeLimitSqlModelListIsSet_ = true; +} + +bool ListNodeLimitSqlModelResponse::nodeLimitSqlModelListIsSet() const +{ + return nodeLimitSqlModelListIsSet_; +} + +void ListNodeLimitSqlModelResponse::unsetnodeLimitSqlModelList() +{ + nodeLimitSqlModelListIsSet_ = false; +} + +int32_t ListNodeLimitSqlModelResponse::getLimit() const +{ + return limit_; +} + +void ListNodeLimitSqlModelResponse::setLimit(int32_t value) +{ + limit_ = value; + limitIsSet_ = true; +} + +bool ListNodeLimitSqlModelResponse::limitIsSet() const +{ + return limitIsSet_; +} + +void ListNodeLimitSqlModelResponse::unsetlimit() +{ + limitIsSet_ = false; +} + +int32_t ListNodeLimitSqlModelResponse::getOffset() const +{ + return offset_; +} + +void ListNodeLimitSqlModelResponse::setOffset(int32_t value) +{ + offset_ = value; + offsetIsSet_ = true; +} + +bool ListNodeLimitSqlModelResponse::offsetIsSet() const +{ + return offsetIsSet_; +} + +void ListNodeLimitSqlModelResponse::unsetoffset() +{ + offsetIsSet_ = false; +} + +int32_t ListNodeLimitSqlModelResponse::getTotalCount() const +{ + return totalCount_; +} + +void ListNodeLimitSqlModelResponse::setTotalCount(int32_t value) +{ + totalCount_ = value; + totalCountIsSet_ = true; +} + +bool ListNodeLimitSqlModelResponse::totalCountIsSet() const +{ + return totalCountIsSet_; +} + +void ListNodeLimitSqlModelResponse::unsettotalCount() +{ + totalCountIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbforopengauss/src/v3/model/ListNodeLimitSqlModelResponseResult.cpp b/gaussdbforopengauss/src/v3/model/ListNodeLimitSqlModelResponseResult.cpp new file mode 100644 index 000000000..ce41c328a --- /dev/null +++ b/gaussdbforopengauss/src/v3/model/ListNodeLimitSqlModelResponseResult.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/gaussdbforopengauss/v3/model/ListNodeLimitSqlModelResponseResult.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + + + + +ListNodeLimitSqlModelResponseResult::ListNodeLimitSqlModelResponseResult() +{ + sqlId_ = ""; + sqlIdIsSet_ = false; + sqlModel_ = ""; + sqlModelIsSet_ = false; +} + +ListNodeLimitSqlModelResponseResult::~ListNodeLimitSqlModelResponseResult() = default; + +void ListNodeLimitSqlModelResponseResult::validate() +{ +} + +web::json::value ListNodeLimitSqlModelResponseResult::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(sqlIdIsSet_) { + val[utility::conversions::to_string_t("sql_id")] = ModelBase::toJson(sqlId_); + } + if(sqlModelIsSet_) { + val[utility::conversions::to_string_t("sql_model")] = ModelBase::toJson(sqlModel_); + } + + return val; +} +bool ListNodeLimitSqlModelResponseResult::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("sql_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sql_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSqlId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("sql_model"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sql_model")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSqlModel(refVal); + } + } + return ok; +} + + +std::string ListNodeLimitSqlModelResponseResult::getSqlId() const +{ + return sqlId_; +} + +void ListNodeLimitSqlModelResponseResult::setSqlId(const std::string& value) +{ + sqlId_ = value; + sqlIdIsSet_ = true; +} + +bool ListNodeLimitSqlModelResponseResult::sqlIdIsSet() const +{ + return sqlIdIsSet_; +} + +void ListNodeLimitSqlModelResponseResult::unsetsqlId() +{ + sqlIdIsSet_ = false; +} + +std::string ListNodeLimitSqlModelResponseResult::getSqlModel() const +{ + return sqlModel_; +} + +void ListNodeLimitSqlModelResponseResult::setSqlModel(const std::string& value) +{ + sqlModel_ = value; + sqlModelIsSet_ = true; +} + +bool ListNodeLimitSqlModelResponseResult::sqlModelIsSet() const +{ + return sqlModelIsSet_; +} + +void ListNodeLimitSqlModelResponseResult::unsetsqlModel() +{ + sqlModelIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbforopengauss/src/v3/model/ShowLimitTaskNodeOption.cpp b/gaussdbforopengauss/src/v3/model/ShowLimitTaskNodeOption.cpp new file mode 100644 index 000000000..1e4bf053d --- /dev/null +++ b/gaussdbforopengauss/src/v3/model/ShowLimitTaskNodeOption.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/gaussdbforopengauss/v3/model/ShowLimitTaskNodeOption.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + + + + +ShowLimitTaskNodeOption::ShowLimitTaskNodeOption() +{ + nodeId_ = ""; + nodeIdIsSet_ = false; + sqlId_ = ""; + sqlIdIsSet_ = false; +} + +ShowLimitTaskNodeOption::~ShowLimitTaskNodeOption() = default; + +void ShowLimitTaskNodeOption::validate() +{ +} + +web::json::value ShowLimitTaskNodeOption::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(nodeIdIsSet_) { + val[utility::conversions::to_string_t("node_id")] = ModelBase::toJson(nodeId_); + } + if(sqlIdIsSet_) { + val[utility::conversions::to_string_t("sql_id")] = ModelBase::toJson(sqlId_); + } + + return val; +} +bool ShowLimitTaskNodeOption::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("sql_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("sql_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSqlId(refVal); + } + } + return ok; +} + + +std::string ShowLimitTaskNodeOption::getNodeId() const +{ + return nodeId_; +} + +void ShowLimitTaskNodeOption::setNodeId(const std::string& value) +{ + nodeId_ = value; + nodeIdIsSet_ = true; +} + +bool ShowLimitTaskNodeOption::nodeIdIsSet() const +{ + return nodeIdIsSet_; +} + +void ShowLimitTaskNodeOption::unsetnodeId() +{ + nodeIdIsSet_ = false; +} + +std::string ShowLimitTaskNodeOption::getSqlId() const +{ + return sqlId_; +} + +void ShowLimitTaskNodeOption::setSqlId(const std::string& value) +{ + sqlId_ = value; + sqlIdIsSet_ = true; +} + +bool ShowLimitTaskNodeOption::sqlIdIsSet() const +{ + return sqlIdIsSet_; +} + +void ShowLimitTaskNodeOption::unsetsqlId() +{ + sqlIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbforopengauss/src/v3/model/ShowLimitTaskRequest.cpp b/gaussdbforopengauss/src/v3/model/ShowLimitTaskRequest.cpp new file mode 100644 index 000000000..d9dfa3c6d --- /dev/null +++ b/gaussdbforopengauss/src/v3/model/ShowLimitTaskRequest.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/gaussdbforopengauss/v3/model/ShowLimitTaskRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + + + + +ShowLimitTaskRequest::ShowLimitTaskRequest() +{ + taskId_ = ""; + taskIdIsSet_ = false; + instanceId_ = ""; + instanceIdIsSet_ = false; +} + +ShowLimitTaskRequest::~ShowLimitTaskRequest() = default; + +void ShowLimitTaskRequest::validate() +{ +} + +web::json::value ShowLimitTaskRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(taskIdIsSet_) { + val[utility::conversions::to_string_t("task_id")] = ModelBase::toJson(taskId_); + } + if(instanceIdIsSet_) { + val[utility::conversions::to_string_t("instance_id")] = ModelBase::toJson(instanceId_); + } + + return val; +} +bool ShowLimitTaskRequest::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); + } + } + 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 ShowLimitTaskRequest::getTaskId() const +{ + return taskId_; +} + +void ShowLimitTaskRequest::setTaskId(const std::string& value) +{ + taskId_ = value; + taskIdIsSet_ = true; +} + +bool ShowLimitTaskRequest::taskIdIsSet() const +{ + return taskIdIsSet_; +} + +void ShowLimitTaskRequest::unsettaskId() +{ + taskIdIsSet_ = false; +} + +std::string ShowLimitTaskRequest::getInstanceId() const +{ + return instanceId_; +} + +void ShowLimitTaskRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool ShowLimitTaskRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void ShowLimitTaskRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbforopengauss/src/v3/model/ShowLimitTaskResponse.cpp b/gaussdbforopengauss/src/v3/model/ShowLimitTaskResponse.cpp new file mode 100644 index 000000000..f6b920f2b --- /dev/null +++ b/gaussdbforopengauss/src/v3/model/ShowLimitTaskResponse.cpp @@ -0,0 +1,428 @@ + + +#include "huaweicloud/gaussdbforopengauss/v3/model/ShowLimitTaskResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + + + + +ShowLimitTaskResponse::ShowLimitTaskResponse() +{ + taskName_ = ""; + taskNameIsSet_ = false; + limitType_ = ""; + limitTypeIsSet_ = false; + parallelSize_ = 0; + parallelSizeIsSet_ = false; + startTime_ = ""; + startTimeIsSet_ = false; + endTime_ = ""; + endTimeIsSet_ = false; + taskRunningTime_ = 0; + taskRunningTimeIsSet_ = false; + limitCount_ = 0; + limitCountIsSet_ = false; + ruleName_ = ""; + ruleNameIsSet_ = false; + memoryUtilization_ = 0; + memoryUtilizationIsSet_ = false; + cpuUtilization_ = 0; + cpuUtilizationIsSet_ = false; + limitTaskRuleInfoListIsSet_ = false; +} + +ShowLimitTaskResponse::~ShowLimitTaskResponse() = default; + +void ShowLimitTaskResponse::validate() +{ +} + +web::json::value ShowLimitTaskResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(taskNameIsSet_) { + val[utility::conversions::to_string_t("task_name")] = ModelBase::toJson(taskName_); + } + if(limitTypeIsSet_) { + val[utility::conversions::to_string_t("limit_type")] = ModelBase::toJson(limitType_); + } + if(parallelSizeIsSet_) { + val[utility::conversions::to_string_t("parallel_size")] = ModelBase::toJson(parallelSize_); + } + 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(taskRunningTimeIsSet_) { + val[utility::conversions::to_string_t("task_running_time")] = ModelBase::toJson(taskRunningTime_); + } + if(limitCountIsSet_) { + val[utility::conversions::to_string_t("limit_count")] = ModelBase::toJson(limitCount_); + } + if(ruleNameIsSet_) { + val[utility::conversions::to_string_t("rule_name")] = ModelBase::toJson(ruleName_); + } + if(memoryUtilizationIsSet_) { + val[utility::conversions::to_string_t("memory_utilization")] = ModelBase::toJson(memoryUtilization_); + } + if(cpuUtilizationIsSet_) { + val[utility::conversions::to_string_t("cpu_utilization")] = ModelBase::toJson(cpuUtilization_); + } + if(limitTaskRuleInfoListIsSet_) { + val[utility::conversions::to_string_t("limit_task_rule_info_list")] = ModelBase::toJson(limitTaskRuleInfoList_); + } + + return val; +} +bool ShowLimitTaskResponse::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); + } + } + if(val.has_field(utility::conversions::to_string_t("limit_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("limit_type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLimitType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("parallel_size"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("parallel_size")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setParallelSize(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("task_running_time"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("task_running_time")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTaskRunningTime(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("limit_count"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("limit_count")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLimitCount(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("rule_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("rule_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRuleName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("memory_utilization"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("memory_utilization")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setMemoryUtilization(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("cpu_utilization"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("cpu_utilization")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCpuUtilization(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("limit_task_rule_info_list"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("limit_task_rule_info_list")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLimitTaskRuleInfoList(refVal); + } + } + return ok; +} + + +std::string ShowLimitTaskResponse::getTaskName() const +{ + return taskName_; +} + +void ShowLimitTaskResponse::setTaskName(const std::string& value) +{ + taskName_ = value; + taskNameIsSet_ = true; +} + +bool ShowLimitTaskResponse::taskNameIsSet() const +{ + return taskNameIsSet_; +} + +void ShowLimitTaskResponse::unsettaskName() +{ + taskNameIsSet_ = false; +} + +std::string ShowLimitTaskResponse::getLimitType() const +{ + return limitType_; +} + +void ShowLimitTaskResponse::setLimitType(const std::string& value) +{ + limitType_ = value; + limitTypeIsSet_ = true; +} + +bool ShowLimitTaskResponse::limitTypeIsSet() const +{ + return limitTypeIsSet_; +} + +void ShowLimitTaskResponse::unsetlimitType() +{ + limitTypeIsSet_ = false; +} + +int32_t ShowLimitTaskResponse::getParallelSize() const +{ + return parallelSize_; +} + +void ShowLimitTaskResponse::setParallelSize(int32_t value) +{ + parallelSize_ = value; + parallelSizeIsSet_ = true; +} + +bool ShowLimitTaskResponse::parallelSizeIsSet() const +{ + return parallelSizeIsSet_; +} + +void ShowLimitTaskResponse::unsetparallelSize() +{ + parallelSizeIsSet_ = false; +} + +std::string ShowLimitTaskResponse::getStartTime() const +{ + return startTime_; +} + +void ShowLimitTaskResponse::setStartTime(const std::string& value) +{ + startTime_ = value; + startTimeIsSet_ = true; +} + +bool ShowLimitTaskResponse::startTimeIsSet() const +{ + return startTimeIsSet_; +} + +void ShowLimitTaskResponse::unsetstartTime() +{ + startTimeIsSet_ = false; +} + +std::string ShowLimitTaskResponse::getEndTime() const +{ + return endTime_; +} + +void ShowLimitTaskResponse::setEndTime(const std::string& value) +{ + endTime_ = value; + endTimeIsSet_ = true; +} + +bool ShowLimitTaskResponse::endTimeIsSet() const +{ + return endTimeIsSet_; +} + +void ShowLimitTaskResponse::unsetendTime() +{ + endTimeIsSet_ = false; +} + +int32_t ShowLimitTaskResponse::getTaskRunningTime() const +{ + return taskRunningTime_; +} + +void ShowLimitTaskResponse::setTaskRunningTime(int32_t value) +{ + taskRunningTime_ = value; + taskRunningTimeIsSet_ = true; +} + +bool ShowLimitTaskResponse::taskRunningTimeIsSet() const +{ + return taskRunningTimeIsSet_; +} + +void ShowLimitTaskResponse::unsettaskRunningTime() +{ + taskRunningTimeIsSet_ = false; +} + +int32_t ShowLimitTaskResponse::getLimitCount() const +{ + return limitCount_; +} + +void ShowLimitTaskResponse::setLimitCount(int32_t value) +{ + limitCount_ = value; + limitCountIsSet_ = true; +} + +bool ShowLimitTaskResponse::limitCountIsSet() const +{ + return limitCountIsSet_; +} + +void ShowLimitTaskResponse::unsetlimitCount() +{ + limitCountIsSet_ = false; +} + +std::string ShowLimitTaskResponse::getRuleName() const +{ + return ruleName_; +} + +void ShowLimitTaskResponse::setRuleName(const std::string& value) +{ + ruleName_ = value; + ruleNameIsSet_ = true; +} + +bool ShowLimitTaskResponse::ruleNameIsSet() const +{ + return ruleNameIsSet_; +} + +void ShowLimitTaskResponse::unsetruleName() +{ + ruleNameIsSet_ = false; +} + +int32_t ShowLimitTaskResponse::getMemoryUtilization() const +{ + return memoryUtilization_; +} + +void ShowLimitTaskResponse::setMemoryUtilization(int32_t value) +{ + memoryUtilization_ = value; + memoryUtilizationIsSet_ = true; +} + +bool ShowLimitTaskResponse::memoryUtilizationIsSet() const +{ + return memoryUtilizationIsSet_; +} + +void ShowLimitTaskResponse::unsetmemoryUtilization() +{ + memoryUtilizationIsSet_ = false; +} + +int32_t ShowLimitTaskResponse::getCpuUtilization() const +{ + return cpuUtilization_; +} + +void ShowLimitTaskResponse::setCpuUtilization(int32_t value) +{ + cpuUtilization_ = value; + cpuUtilizationIsSet_ = true; +} + +bool ShowLimitTaskResponse::cpuUtilizationIsSet() const +{ + return cpuUtilizationIsSet_; +} + +void ShowLimitTaskResponse::unsetcpuUtilization() +{ + cpuUtilizationIsSet_ = false; +} + +std::vector& ShowLimitTaskResponse::getLimitTaskRuleInfoList() +{ + return limitTaskRuleInfoList_; +} + +void ShowLimitTaskResponse::setLimitTaskRuleInfoList(const std::vector& value) +{ + limitTaskRuleInfoList_ = value; + limitTaskRuleInfoListIsSet_ = true; +} + +bool ShowLimitTaskResponse::limitTaskRuleInfoListIsSet() const +{ + return limitTaskRuleInfoListIsSet_; +} + +void ShowLimitTaskResponse::unsetlimitTaskRuleInfoList() +{ + limitTaskRuleInfoListIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbforopengauss/src/v3/model/StartMySQLCompatibilityRequestBody.cpp b/gaussdbforopengauss/src/v3/model/StartMySQLCompatibilityRequestBody.cpp new file mode 100644 index 000000000..d3b5d6b67 --- /dev/null +++ b/gaussdbforopengauss/src/v3/model/StartMySQLCompatibilityRequestBody.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/gaussdbforopengauss/v3/model/StartMySQLCompatibilityRequestBody.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + + + + +StartMySQLCompatibilityRequestBody::StartMySQLCompatibilityRequestBody() +{ + port_ = ""; + portIsSet_ = false; +} + +StartMySQLCompatibilityRequestBody::~StartMySQLCompatibilityRequestBody() = default; + +void StartMySQLCompatibilityRequestBody::validate() +{ +} + +web::json::value StartMySQLCompatibilityRequestBody::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 StartMySQLCompatibilityRequestBody::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 StartMySQLCompatibilityRequestBody::getPort() const +{ + return port_; +} + +void StartMySQLCompatibilityRequestBody::setPort(const std::string& value) +{ + port_ = value; + portIsSet_ = true; +} + +bool StartMySQLCompatibilityRequestBody::portIsSet() const +{ + return portIsSet_; +} + +void StartMySQLCompatibilityRequestBody::unsetport() +{ + portIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbforopengauss/src/v3/model/StartMysqlCompatibilityRequest.cpp b/gaussdbforopengauss/src/v3/model/StartMysqlCompatibilityRequest.cpp new file mode 100644 index 000000000..8c9617bc2 --- /dev/null +++ b/gaussdbforopengauss/src/v3/model/StartMysqlCompatibilityRequest.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/gaussdbforopengauss/v3/model/StartMysqlCompatibilityRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + + + + +StartMysqlCompatibilityRequest::StartMysqlCompatibilityRequest() +{ + instanceId_ = ""; + instanceIdIsSet_ = false; + xLanguage_ = ""; + xLanguageIsSet_ = false; + bodyIsSet_ = false; +} + +StartMysqlCompatibilityRequest::~StartMysqlCompatibilityRequest() = default; + +void StartMysqlCompatibilityRequest::validate() +{ +} + +web::json::value StartMysqlCompatibilityRequest::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 StartMysqlCompatibilityRequest::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()) + { + StartMySQLCompatibilityRequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string StartMysqlCompatibilityRequest::getInstanceId() const +{ + return instanceId_; +} + +void StartMysqlCompatibilityRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool StartMysqlCompatibilityRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void StartMysqlCompatibilityRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +std::string StartMysqlCompatibilityRequest::getXLanguage() const +{ + return xLanguage_; +} + +void StartMysqlCompatibilityRequest::setXLanguage(const std::string& value) +{ + xLanguage_ = value; + xLanguageIsSet_ = true; +} + +bool StartMysqlCompatibilityRequest::xLanguageIsSet() const +{ + return xLanguageIsSet_; +} + +void StartMysqlCompatibilityRequest::unsetxLanguage() +{ + xLanguageIsSet_ = false; +} + +StartMySQLCompatibilityRequestBody StartMysqlCompatibilityRequest::getBody() const +{ + return body_; +} + +void StartMysqlCompatibilityRequest::setBody(const StartMySQLCompatibilityRequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool StartMysqlCompatibilityRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void StartMysqlCompatibilityRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbforopengauss/src/v3/model/StartMysqlCompatibilityResponse.cpp b/gaussdbforopengauss/src/v3/model/StartMysqlCompatibilityResponse.cpp new file mode 100644 index 000000000..f054322eb --- /dev/null +++ b/gaussdbforopengauss/src/v3/model/StartMysqlCompatibilityResponse.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/gaussdbforopengauss/v3/model/StartMysqlCompatibilityResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + + + + +StartMysqlCompatibilityResponse::StartMysqlCompatibilityResponse() +{ + jobId_ = ""; + jobIdIsSet_ = false; +} + +StartMysqlCompatibilityResponse::~StartMysqlCompatibilityResponse() = default; + +void StartMysqlCompatibilityResponse::validate() +{ +} + +web::json::value StartMysqlCompatibilityResponse::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 StartMysqlCompatibilityResponse::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 StartMysqlCompatibilityResponse::getJobId() const +{ + return jobId_; +} + +void StartMysqlCompatibilityResponse::setJobId(const std::string& value) +{ + jobId_ = value; + jobIdIsSet_ = true; +} + +bool StartMysqlCompatibilityResponse::jobIdIsSet() const +{ + return jobIdIsSet_; +} + +void StartMysqlCompatibilityResponse::unsetjobId() +{ + jobIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbforopengauss/src/v3/model/StopInstanceRequest.cpp b/gaussdbforopengauss/src/v3/model/StopInstanceRequest.cpp new file mode 100644 index 000000000..d17065dbd --- /dev/null +++ b/gaussdbforopengauss/src/v3/model/StopInstanceRequest.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/gaussdbforopengauss/v3/model/StopInstanceRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + + + + +StopInstanceRequest::StopInstanceRequest() +{ + xLanguage_ = ""; + xLanguageIsSet_ = false; + instanceId_ = ""; + instanceIdIsSet_ = false; + bodyIsSet_ = false; +} + +StopInstanceRequest::~StopInstanceRequest() = default; + +void StopInstanceRequest::validate() +{ +} + +web::json::value StopInstanceRequest::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 StopInstanceRequest::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()) + { + StopInstanceRequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string StopInstanceRequest::getXLanguage() const +{ + return xLanguage_; +} + +void StopInstanceRequest::setXLanguage(const std::string& value) +{ + xLanguage_ = value; + xLanguageIsSet_ = true; +} + +bool StopInstanceRequest::xLanguageIsSet() const +{ + return xLanguageIsSet_; +} + +void StopInstanceRequest::unsetxLanguage() +{ + xLanguageIsSet_ = false; +} + +std::string StopInstanceRequest::getInstanceId() const +{ + return instanceId_; +} + +void StopInstanceRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool StopInstanceRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void StopInstanceRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +StopInstanceRequestBody StopInstanceRequest::getBody() const +{ + return body_; +} + +void StopInstanceRequest::setBody(const StopInstanceRequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool StopInstanceRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void StopInstanceRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbforopengauss/src/v3/model/StopInstanceRequestBody.cpp b/gaussdbforopengauss/src/v3/model/StopInstanceRequestBody.cpp new file mode 100644 index 000000000..110e9a9c7 --- /dev/null +++ b/gaussdbforopengauss/src/v3/model/StopInstanceRequestBody.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/gaussdbforopengauss/v3/model/StopInstanceRequestBody.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + + + + +StopInstanceRequestBody::StopInstanceRequestBody() +{ + nodeIdsIsSet_ = false; +} + +StopInstanceRequestBody::~StopInstanceRequestBody() = default; + +void StopInstanceRequestBody::validate() +{ +} + +web::json::value StopInstanceRequestBody::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(nodeIdsIsSet_) { + val[utility::conversions::to_string_t("node_ids")] = ModelBase::toJson(nodeIds_); + } + + return val; +} +bool StopInstanceRequestBody::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("node_ids"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("node_ids")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setNodeIds(refVal); + } + } + return ok; +} + + +std::vector& StopInstanceRequestBody::getNodeIds() +{ + return nodeIds_; +} + +void StopInstanceRequestBody::setNodeIds(const std::vector& value) +{ + nodeIds_ = value; + nodeIdsIsSet_ = true; +} + +bool StopInstanceRequestBody::nodeIdsIsSet() const +{ + return nodeIdsIsSet_; +} + +void StopInstanceRequestBody::unsetnodeIds() +{ + nodeIdsIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbforopengauss/src/v3/model/StopInstanceResponse.cpp b/gaussdbforopengauss/src/v3/model/StopInstanceResponse.cpp new file mode 100644 index 000000000..79bae17b9 --- /dev/null +++ b/gaussdbforopengauss/src/v3/model/StopInstanceResponse.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/gaussdbforopengauss/v3/model/StopInstanceResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + + + + +StopInstanceResponse::StopInstanceResponse() +{ + jobId_ = ""; + jobIdIsSet_ = false; +} + +StopInstanceResponse::~StopInstanceResponse() = default; + +void StopInstanceResponse::validate() +{ +} + +web::json::value StopInstanceResponse::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 StopInstanceResponse::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 StopInstanceResponse::getJobId() const +{ + return jobId_; +} + +void StopInstanceResponse::setJobId(const std::string& value) +{ + jobId_ = value; + jobIdIsSet_ = true; +} + +bool StopInstanceResponse::jobIdIsSet() const +{ + return jobIdIsSet_; +} + +void StopInstanceResponse::unsetjobId() +{ + jobIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbforopengauss/src/v3/model/UpdateLimitTaskRequest.cpp b/gaussdbforopengauss/src/v3/model/UpdateLimitTaskRequest.cpp new file mode 100644 index 000000000..d4464b582 --- /dev/null +++ b/gaussdbforopengauss/src/v3/model/UpdateLimitTaskRequest.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/gaussdbforopengauss/v3/model/UpdateLimitTaskRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + + + + +UpdateLimitTaskRequest::UpdateLimitTaskRequest() +{ + taskId_ = ""; + taskIdIsSet_ = false; + instanceId_ = ""; + instanceIdIsSet_ = false; + bodyIsSet_ = false; +} + +UpdateLimitTaskRequest::~UpdateLimitTaskRequest() = default; + +void UpdateLimitTaskRequest::validate() +{ +} + +web::json::value UpdateLimitTaskRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(taskIdIsSet_) { + val[utility::conversions::to_string_t("task_id")] = ModelBase::toJson(taskId_); + } + 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 UpdateLimitTaskRequest::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); + } + } + 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()) + { + UpdateLimitTaskRequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string UpdateLimitTaskRequest::getTaskId() const +{ + return taskId_; +} + +void UpdateLimitTaskRequest::setTaskId(const std::string& value) +{ + taskId_ = value; + taskIdIsSet_ = true; +} + +bool UpdateLimitTaskRequest::taskIdIsSet() const +{ + return taskIdIsSet_; +} + +void UpdateLimitTaskRequest::unsettaskId() +{ + taskIdIsSet_ = false; +} + +std::string UpdateLimitTaskRequest::getInstanceId() const +{ + return instanceId_; +} + +void UpdateLimitTaskRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool UpdateLimitTaskRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void UpdateLimitTaskRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +UpdateLimitTaskRequestBody UpdateLimitTaskRequest::getBody() const +{ + return body_; +} + +void UpdateLimitTaskRequest::setBody(const UpdateLimitTaskRequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool UpdateLimitTaskRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void UpdateLimitTaskRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbforopengauss/src/v3/model/UpdateLimitTaskRequestBody.cpp b/gaussdbforopengauss/src/v3/model/UpdateLimitTaskRequestBody.cpp new file mode 100644 index 000000000..3355114cd --- /dev/null +++ b/gaussdbforopengauss/src/v3/model/UpdateLimitTaskRequestBody.cpp @@ -0,0 +1,324 @@ + + +#include "huaweicloud/gaussdbforopengauss/v3/model/UpdateLimitTaskRequestBody.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + + + + +UpdateLimitTaskRequestBody::UpdateLimitTaskRequestBody() +{ + startTime_ = ""; + startTimeIsSet_ = false; + endTime_ = ""; + endTimeIsSet_ = false; + keyWords_ = ""; + keyWordsIsSet_ = false; + parallelSize_ = 0; + parallelSizeIsSet_ = false; + taskName_ = ""; + taskNameIsSet_ = false; + cpuUtilization_ = 0; + cpuUtilizationIsSet_ = false; + memoryUtilization_ = 0; + memoryUtilizationIsSet_ = false; + databases_ = ""; + databasesIsSet_ = false; +} + +UpdateLimitTaskRequestBody::~UpdateLimitTaskRequestBody() = default; + +void UpdateLimitTaskRequestBody::validate() +{ +} + +web::json::value UpdateLimitTaskRequestBody::toJson() const +{ + web::json::value val = web::json::value::object(); + + 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(keyWordsIsSet_) { + val[utility::conversions::to_string_t("key_words")] = ModelBase::toJson(keyWords_); + } + if(parallelSizeIsSet_) { + val[utility::conversions::to_string_t("parallel_size")] = ModelBase::toJson(parallelSize_); + } + if(taskNameIsSet_) { + val[utility::conversions::to_string_t("task_name")] = ModelBase::toJson(taskName_); + } + if(cpuUtilizationIsSet_) { + val[utility::conversions::to_string_t("cpu_utilization")] = ModelBase::toJson(cpuUtilization_); + } + if(memoryUtilizationIsSet_) { + val[utility::conversions::to_string_t("memory_utilization")] = ModelBase::toJson(memoryUtilization_); + } + if(databasesIsSet_) { + val[utility::conversions::to_string_t("databases")] = ModelBase::toJson(databases_); + } + + return val; +} +bool UpdateLimitTaskRequestBody::fromJson(const web::json::value& val) +{ + bool ok = true; + + 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("key_words"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("key_words")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setKeyWords(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("parallel_size"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("parallel_size")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setParallelSize(refVal); + } + } + 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); + } + } + if(val.has_field(utility::conversions::to_string_t("cpu_utilization"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("cpu_utilization")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCpuUtilization(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("memory_utilization"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("memory_utilization")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setMemoryUtilization(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::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDatabases(refVal); + } + } + return ok; +} + + +std::string UpdateLimitTaskRequestBody::getStartTime() const +{ + return startTime_; +} + +void UpdateLimitTaskRequestBody::setStartTime(const std::string& value) +{ + startTime_ = value; + startTimeIsSet_ = true; +} + +bool UpdateLimitTaskRequestBody::startTimeIsSet() const +{ + return startTimeIsSet_; +} + +void UpdateLimitTaskRequestBody::unsetstartTime() +{ + startTimeIsSet_ = false; +} + +std::string UpdateLimitTaskRequestBody::getEndTime() const +{ + return endTime_; +} + +void UpdateLimitTaskRequestBody::setEndTime(const std::string& value) +{ + endTime_ = value; + endTimeIsSet_ = true; +} + +bool UpdateLimitTaskRequestBody::endTimeIsSet() const +{ + return endTimeIsSet_; +} + +void UpdateLimitTaskRequestBody::unsetendTime() +{ + endTimeIsSet_ = false; +} + +std::string UpdateLimitTaskRequestBody::getKeyWords() const +{ + return keyWords_; +} + +void UpdateLimitTaskRequestBody::setKeyWords(const std::string& value) +{ + keyWords_ = value; + keyWordsIsSet_ = true; +} + +bool UpdateLimitTaskRequestBody::keyWordsIsSet() const +{ + return keyWordsIsSet_; +} + +void UpdateLimitTaskRequestBody::unsetkeyWords() +{ + keyWordsIsSet_ = false; +} + +int32_t UpdateLimitTaskRequestBody::getParallelSize() const +{ + return parallelSize_; +} + +void UpdateLimitTaskRequestBody::setParallelSize(int32_t value) +{ + parallelSize_ = value; + parallelSizeIsSet_ = true; +} + +bool UpdateLimitTaskRequestBody::parallelSizeIsSet() const +{ + return parallelSizeIsSet_; +} + +void UpdateLimitTaskRequestBody::unsetparallelSize() +{ + parallelSizeIsSet_ = false; +} + +std::string UpdateLimitTaskRequestBody::getTaskName() const +{ + return taskName_; +} + +void UpdateLimitTaskRequestBody::setTaskName(const std::string& value) +{ + taskName_ = value; + taskNameIsSet_ = true; +} + +bool UpdateLimitTaskRequestBody::taskNameIsSet() const +{ + return taskNameIsSet_; +} + +void UpdateLimitTaskRequestBody::unsettaskName() +{ + taskNameIsSet_ = false; +} + +int32_t UpdateLimitTaskRequestBody::getCpuUtilization() const +{ + return cpuUtilization_; +} + +void UpdateLimitTaskRequestBody::setCpuUtilization(int32_t value) +{ + cpuUtilization_ = value; + cpuUtilizationIsSet_ = true; +} + +bool UpdateLimitTaskRequestBody::cpuUtilizationIsSet() const +{ + return cpuUtilizationIsSet_; +} + +void UpdateLimitTaskRequestBody::unsetcpuUtilization() +{ + cpuUtilizationIsSet_ = false; +} + +int32_t UpdateLimitTaskRequestBody::getMemoryUtilization() const +{ + return memoryUtilization_; +} + +void UpdateLimitTaskRequestBody::setMemoryUtilization(int32_t value) +{ + memoryUtilization_ = value; + memoryUtilizationIsSet_ = true; +} + +bool UpdateLimitTaskRequestBody::memoryUtilizationIsSet() const +{ + return memoryUtilizationIsSet_; +} + +void UpdateLimitTaskRequestBody::unsetmemoryUtilization() +{ + memoryUtilizationIsSet_ = false; +} + +std::string UpdateLimitTaskRequestBody::getDatabases() const +{ + return databases_; +} + +void UpdateLimitTaskRequestBody::setDatabases(const std::string& value) +{ + databases_ = value; + databasesIsSet_ = true; +} + +bool UpdateLimitTaskRequestBody::databasesIsSet() const +{ + return databasesIsSet_; +} + +void UpdateLimitTaskRequestBody::unsetdatabases() +{ + databasesIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbforopengauss/src/v3/model/UpdateLimitTaskResponse.cpp b/gaussdbforopengauss/src/v3/model/UpdateLimitTaskResponse.cpp new file mode 100644 index 000000000..21720f798 --- /dev/null +++ b/gaussdbforopengauss/src/v3/model/UpdateLimitTaskResponse.cpp @@ -0,0 +1,429 @@ + + +#include "huaweicloud/gaussdbforopengauss/v3/model/UpdateLimitTaskResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + + + + +UpdateLimitTaskResponse::UpdateLimitTaskResponse() +{ + taskId_ = ""; + taskIdIsSet_ = false; + databases_ = ""; + databasesIsSet_ = false; + taskName_ = ""; + taskNameIsSet_ = false; + keyWords_ = ""; + keyWordsIsSet_ = false; + parallelSize_ = 0; + parallelSizeIsSet_ = false; + startTime_ = ""; + startTimeIsSet_ = false; + endTime_ = ""; + endTimeIsSet_ = false; + cpuUtilization_ = 0; + cpuUtilizationIsSet_ = false; + memoryUtilization_ = 0; + memoryUtilizationIsSet_ = false; + ruleName_ = ""; + ruleNameIsSet_ = false; + jobId_ = ""; + jobIdIsSet_ = false; +} + +UpdateLimitTaskResponse::~UpdateLimitTaskResponse() = default; + +void UpdateLimitTaskResponse::validate() +{ +} + +web::json::value UpdateLimitTaskResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(taskIdIsSet_) { + val[utility::conversions::to_string_t("task_id")] = ModelBase::toJson(taskId_); + } + if(databasesIsSet_) { + val[utility::conversions::to_string_t("databases")] = ModelBase::toJson(databases_); + } + if(taskNameIsSet_) { + val[utility::conversions::to_string_t("task_name")] = ModelBase::toJson(taskName_); + } + if(keyWordsIsSet_) { + val[utility::conversions::to_string_t("key_words")] = ModelBase::toJson(keyWords_); + } + if(parallelSizeIsSet_) { + val[utility::conversions::to_string_t("parallel_size")] = ModelBase::toJson(parallelSize_); + } + 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(cpuUtilizationIsSet_) { + val[utility::conversions::to_string_t("cpu_utilization")] = ModelBase::toJson(cpuUtilization_); + } + if(memoryUtilizationIsSet_) { + val[utility::conversions::to_string_t("memory_utilization")] = ModelBase::toJson(memoryUtilization_); + } + if(ruleNameIsSet_) { + val[utility::conversions::to_string_t("rule_name")] = ModelBase::toJson(ruleName_); + } + if(jobIdIsSet_) { + val[utility::conversions::to_string_t("jobId")] = ModelBase::toJson(jobId_); + } + + return val; +} +bool UpdateLimitTaskResponse::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); + } + } + 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::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDatabases(refVal); + } + } + 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); + } + } + if(val.has_field(utility::conversions::to_string_t("key_words"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("key_words")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setKeyWords(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("parallel_size"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("parallel_size")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setParallelSize(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("cpu_utilization"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("cpu_utilization")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setCpuUtilization(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("memory_utilization"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("memory_utilization")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setMemoryUtilization(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("rule_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("rule_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRuleName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("jobId"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("jobId")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setJobId(refVal); + } + } + return ok; +} + + +std::string UpdateLimitTaskResponse::getTaskId() const +{ + return taskId_; +} + +void UpdateLimitTaskResponse::setTaskId(const std::string& value) +{ + taskId_ = value; + taskIdIsSet_ = true; +} + +bool UpdateLimitTaskResponse::taskIdIsSet() const +{ + return taskIdIsSet_; +} + +void UpdateLimitTaskResponse::unsettaskId() +{ + taskIdIsSet_ = false; +} + +std::string UpdateLimitTaskResponse::getDatabases() const +{ + return databases_; +} + +void UpdateLimitTaskResponse::setDatabases(const std::string& value) +{ + databases_ = value; + databasesIsSet_ = true; +} + +bool UpdateLimitTaskResponse::databasesIsSet() const +{ + return databasesIsSet_; +} + +void UpdateLimitTaskResponse::unsetdatabases() +{ + databasesIsSet_ = false; +} + +std::string UpdateLimitTaskResponse::getTaskName() const +{ + return taskName_; +} + +void UpdateLimitTaskResponse::setTaskName(const std::string& value) +{ + taskName_ = value; + taskNameIsSet_ = true; +} + +bool UpdateLimitTaskResponse::taskNameIsSet() const +{ + return taskNameIsSet_; +} + +void UpdateLimitTaskResponse::unsettaskName() +{ + taskNameIsSet_ = false; +} + +std::string UpdateLimitTaskResponse::getKeyWords() const +{ + return keyWords_; +} + +void UpdateLimitTaskResponse::setKeyWords(const std::string& value) +{ + keyWords_ = value; + keyWordsIsSet_ = true; +} + +bool UpdateLimitTaskResponse::keyWordsIsSet() const +{ + return keyWordsIsSet_; +} + +void UpdateLimitTaskResponse::unsetkeyWords() +{ + keyWordsIsSet_ = false; +} + +int32_t UpdateLimitTaskResponse::getParallelSize() const +{ + return parallelSize_; +} + +void UpdateLimitTaskResponse::setParallelSize(int32_t value) +{ + parallelSize_ = value; + parallelSizeIsSet_ = true; +} + +bool UpdateLimitTaskResponse::parallelSizeIsSet() const +{ + return parallelSizeIsSet_; +} + +void UpdateLimitTaskResponse::unsetparallelSize() +{ + parallelSizeIsSet_ = false; +} + +std::string UpdateLimitTaskResponse::getStartTime() const +{ + return startTime_; +} + +void UpdateLimitTaskResponse::setStartTime(const std::string& value) +{ + startTime_ = value; + startTimeIsSet_ = true; +} + +bool UpdateLimitTaskResponse::startTimeIsSet() const +{ + return startTimeIsSet_; +} + +void UpdateLimitTaskResponse::unsetstartTime() +{ + startTimeIsSet_ = false; +} + +std::string UpdateLimitTaskResponse::getEndTime() const +{ + return endTime_; +} + +void UpdateLimitTaskResponse::setEndTime(const std::string& value) +{ + endTime_ = value; + endTimeIsSet_ = true; +} + +bool UpdateLimitTaskResponse::endTimeIsSet() const +{ + return endTimeIsSet_; +} + +void UpdateLimitTaskResponse::unsetendTime() +{ + endTimeIsSet_ = false; +} + +int32_t UpdateLimitTaskResponse::getCpuUtilization() const +{ + return cpuUtilization_; +} + +void UpdateLimitTaskResponse::setCpuUtilization(int32_t value) +{ + cpuUtilization_ = value; + cpuUtilizationIsSet_ = true; +} + +bool UpdateLimitTaskResponse::cpuUtilizationIsSet() const +{ + return cpuUtilizationIsSet_; +} + +void UpdateLimitTaskResponse::unsetcpuUtilization() +{ + cpuUtilizationIsSet_ = false; +} + +int32_t UpdateLimitTaskResponse::getMemoryUtilization() const +{ + return memoryUtilization_; +} + +void UpdateLimitTaskResponse::setMemoryUtilization(int32_t value) +{ + memoryUtilization_ = value; + memoryUtilizationIsSet_ = true; +} + +bool UpdateLimitTaskResponse::memoryUtilizationIsSet() const +{ + return memoryUtilizationIsSet_; +} + +void UpdateLimitTaskResponse::unsetmemoryUtilization() +{ + memoryUtilizationIsSet_ = false; +} + +std::string UpdateLimitTaskResponse::getRuleName() const +{ + return ruleName_; +} + +void UpdateLimitTaskResponse::setRuleName(const std::string& value) +{ + ruleName_ = value; + ruleNameIsSet_ = true; +} + +bool UpdateLimitTaskResponse::ruleNameIsSet() const +{ + return ruleNameIsSet_; +} + +void UpdateLimitTaskResponse::unsetruleName() +{ + ruleNameIsSet_ = false; +} + +std::string UpdateLimitTaskResponse::getJobId() const +{ + return jobId_; +} + +void UpdateLimitTaskResponse::setJobId(const std::string& value) +{ + jobId_ = value; + jobIdIsSet_ = true; +} + +bool UpdateLimitTaskResponse::jobIdIsSet() const +{ + return jobIdIsSet_; +} + +void UpdateLimitTaskResponse::unsetjobId() +{ + jobIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbforopengauss/src/v3/model/UpdateMySQLCompatibilityRequestBody.cpp b/gaussdbforopengauss/src/v3/model/UpdateMySQLCompatibilityRequestBody.cpp new file mode 100644 index 000000000..73eda7839 --- /dev/null +++ b/gaussdbforopengauss/src/v3/model/UpdateMySQLCompatibilityRequestBody.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/gaussdbforopengauss/v3/model/UpdateMySQLCompatibilityRequestBody.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + + + + +UpdateMySQLCompatibilityRequestBody::UpdateMySQLCompatibilityRequestBody() +{ + port_ = ""; + portIsSet_ = false; +} + +UpdateMySQLCompatibilityRequestBody::~UpdateMySQLCompatibilityRequestBody() = default; + +void UpdateMySQLCompatibilityRequestBody::validate() +{ +} + +web::json::value UpdateMySQLCompatibilityRequestBody::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 UpdateMySQLCompatibilityRequestBody::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 UpdateMySQLCompatibilityRequestBody::getPort() const +{ + return port_; +} + +void UpdateMySQLCompatibilityRequestBody::setPort(const std::string& value) +{ + port_ = value; + portIsSet_ = true; +} + +bool UpdateMySQLCompatibilityRequestBody::portIsSet() const +{ + return portIsSet_; +} + +void UpdateMySQLCompatibilityRequestBody::unsetport() +{ + portIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbforopengauss/src/v3/model/UpdateMysqlCompatibilityRequest.cpp b/gaussdbforopengauss/src/v3/model/UpdateMysqlCompatibilityRequest.cpp new file mode 100644 index 000000000..75518ad36 --- /dev/null +++ b/gaussdbforopengauss/src/v3/model/UpdateMysqlCompatibilityRequest.cpp @@ -0,0 +1,148 @@ + + +#include "huaweicloud/gaussdbforopengauss/v3/model/UpdateMysqlCompatibilityRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + + + + +UpdateMysqlCompatibilityRequest::UpdateMysqlCompatibilityRequest() +{ + instanceId_ = ""; + instanceIdIsSet_ = false; + xLanguage_ = ""; + xLanguageIsSet_ = false; + bodyIsSet_ = false; +} + +UpdateMysqlCompatibilityRequest::~UpdateMysqlCompatibilityRequest() = default; + +void UpdateMysqlCompatibilityRequest::validate() +{ +} + +web::json::value UpdateMysqlCompatibilityRequest::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 UpdateMysqlCompatibilityRequest::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()) + { + UpdateMySQLCompatibilityRequestBody refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +std::string UpdateMysqlCompatibilityRequest::getInstanceId() const +{ + return instanceId_; +} + +void UpdateMysqlCompatibilityRequest::setInstanceId(const std::string& value) +{ + instanceId_ = value; + instanceIdIsSet_ = true; +} + +bool UpdateMysqlCompatibilityRequest::instanceIdIsSet() const +{ + return instanceIdIsSet_; +} + +void UpdateMysqlCompatibilityRequest::unsetinstanceId() +{ + instanceIdIsSet_ = false; +} + +std::string UpdateMysqlCompatibilityRequest::getXLanguage() const +{ + return xLanguage_; +} + +void UpdateMysqlCompatibilityRequest::setXLanguage(const std::string& value) +{ + xLanguage_ = value; + xLanguageIsSet_ = true; +} + +bool UpdateMysqlCompatibilityRequest::xLanguageIsSet() const +{ + return xLanguageIsSet_; +} + +void UpdateMysqlCompatibilityRequest::unsetxLanguage() +{ + xLanguageIsSet_ = false; +} + +UpdateMySQLCompatibilityRequestBody UpdateMysqlCompatibilityRequest::getBody() const +{ + return body_; +} + +void UpdateMysqlCompatibilityRequest::setBody(const UpdateMySQLCompatibilityRequestBody& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool UpdateMysqlCompatibilityRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void UpdateMysqlCompatibilityRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/gaussdbforopengauss/src/v3/model/UpdateMysqlCompatibilityResponse.cpp b/gaussdbforopengauss/src/v3/model/UpdateMysqlCompatibilityResponse.cpp new file mode 100644 index 000000000..9541403aa --- /dev/null +++ b/gaussdbforopengauss/src/v3/model/UpdateMysqlCompatibilityResponse.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/gaussdbforopengauss/v3/model/UpdateMysqlCompatibilityResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Gaussdbforopengauss { +namespace V3 { +namespace Model { + + + + +UpdateMysqlCompatibilityResponse::UpdateMysqlCompatibilityResponse() +{ + jobId_ = ""; + jobIdIsSet_ = false; +} + +UpdateMysqlCompatibilityResponse::~UpdateMysqlCompatibilityResponse() = default; + +void UpdateMysqlCompatibilityResponse::validate() +{ +} + +web::json::value UpdateMysqlCompatibilityResponse::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 UpdateMysqlCompatibilityResponse::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 UpdateMysqlCompatibilityResponse::getJobId() const +{ + return jobId_; +} + +void UpdateMysqlCompatibilityResponse::setJobId(const std::string& value) +{ + jobId_ = value; + jobIdIsSet_ = true; +} + +bool UpdateMysqlCompatibilityResponse::jobIdIsSet() const +{ + return jobIdIsSet_; +} + +void UpdateMysqlCompatibilityResponse::unsetjobId() +{ + jobIdIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/kvs/include/huaweicloud/kvs/v1/model/ScanKvResponse.h b/kvs/include/huaweicloud/kvs/v1/model/ScanKvResponse.h index 21ba05cb3..4994d7260 100644 --- a/kvs/include/huaweicloud/kvs/v1/model/ScanKvResponse.h +++ b/kvs/include/huaweicloud/kvs/v1/model/ScanKvResponse.h @@ -48,10 +48,10 @@ class HUAWEICLOUD_KVS_V1_EXPORT ScanKvResponse /// 返回的文档数量,为0不表示结束。 > 如果filtered_count超过500仍无匹配,则返回0。 /// - int32_t getReturnedCount() const; + int64_t getReturnedCount() const; bool returnedCountIsSet() const; void unsetreturnedCount(); - void setReturnedCount(int32_t value); + void setReturnedCount(int64_t value); /// /// 被过滤掉的文档数量。 @@ -91,7 +91,7 @@ class HUAWEICLOUD_KVS_V1_EXPORT ScanKvResponse protected: - int32_t returnedCount_; + int64_t returnedCount_; bool returnedCountIsSet_; int32_t filteredCount_; bool filteredCountIsSet_; diff --git a/kvs/include/huaweicloud/kvs/v1/model/ScanSkeyKvResponse.h b/kvs/include/huaweicloud/kvs/v1/model/ScanSkeyKvResponse.h index c6060ba69..2ad65477d 100644 --- a/kvs/include/huaweicloud/kvs/v1/model/ScanSkeyKvResponse.h +++ b/kvs/include/huaweicloud/kvs/v1/model/ScanSkeyKvResponse.h @@ -47,10 +47,10 @@ class HUAWEICLOUD_KVS_V1_EXPORT ScanSkeyKvResponse /// 返回的文档数量,为0不表示结束。 - 如果filtered_count超过500仍无匹配,则返回0。 - 长度:4 /// - int32_t getReturnedCount() const; + int64_t getReturnedCount() const; bool returnedCountIsSet() const; void unsetreturnedCount(); - void setReturnedCount(int32_t value); + void setReturnedCount(int64_t value); /// /// 被过滤掉的文档数量。 - 长度:4 @@ -81,7 +81,7 @@ class HUAWEICLOUD_KVS_V1_EXPORT ScanSkeyKvResponse protected: - int32_t returnedCount_; + int64_t returnedCount_; bool returnedCountIsSet_; int32_t filteredCount_; bool filteredCountIsSet_; diff --git a/kvs/include/huaweicloud/kvs/v1/model/Update_fields.h b/kvs/include/huaweicloud/kvs/v1/model/Update_fields.h index 5f6d3aec4..4248b299d 100644 --- a/kvs/include/huaweicloud/kvs/v1/model/Update_fields.h +++ b/kvs/include/huaweicloud/kvs/v1/model/Update_fields.h @@ -70,6 +70,15 @@ class HUAWEICLOUD_KVS_V1_EXPORT Update_fields void unsetrmv(); void setRmv(const std::vector& value); + /// + /// 插入元素到数组中 > 非数组返回失败。 + /// + + Document getInsert() const; + bool insertIsSet() const; + void unsetinsert(); + void setInsert(const Document& value); + protected: Document set_; @@ -78,6 +87,8 @@ class HUAWEICLOUD_KVS_V1_EXPORT Update_fields bool addIsSet_; std::vector rmv_; bool rmvIsSet_; + Document insert_; + bool insertIsSet_; }; diff --git a/kvs/src/v1/model/ScanKvResponse.cpp b/kvs/src/v1/model/ScanKvResponse.cpp index f52a7a5ea..8eb9dc3fc 100644 --- a/kvs/src/v1/model/ScanKvResponse.cpp +++ b/kvs/src/v1/model/ScanKvResponse.cpp @@ -13,7 +13,7 @@ namespace Model { ScanKvResponse::ScanKvResponse() { - returnedCount_ = 0; + returnedCount_ = 0L; returnedCountIsSet_ = false; filteredCount_ = 0; filteredCountIsSet_ = false; @@ -108,12 +108,12 @@ bool ScanKvResponse::fromBson(const Viewer &viewer) return true; } -int32_t ScanKvResponse::getReturnedCount() const +int64_t ScanKvResponse::getReturnedCount() const { return returnedCount_; } -void ScanKvResponse::setReturnedCount(int32_t value) +void ScanKvResponse::setReturnedCount(int64_t value) { returnedCount_ = value; returnedCountIsSet_ = true; diff --git a/kvs/src/v1/model/ScanSkeyKvResponse.cpp b/kvs/src/v1/model/ScanSkeyKvResponse.cpp index c04ebd2bc..7e33bfcf3 100644 --- a/kvs/src/v1/model/ScanSkeyKvResponse.cpp +++ b/kvs/src/v1/model/ScanSkeyKvResponse.cpp @@ -13,7 +13,7 @@ namespace Model { ScanSkeyKvResponse::ScanSkeyKvResponse() { - returnedCount_ = 0; + returnedCount_ = 0L; returnedCountIsSet_ = false; filteredCount_ = 0; filteredCountIsSet_ = false; @@ -95,12 +95,12 @@ bool ScanSkeyKvResponse::fromBson(const Viewer &viewer) return true; } -int32_t ScanSkeyKvResponse::getReturnedCount() const +int64_t ScanSkeyKvResponse::getReturnedCount() const { return returnedCount_; } -void ScanSkeyKvResponse::setReturnedCount(int32_t value) +void ScanSkeyKvResponse::setReturnedCount(int64_t value) { returnedCount_ = value; returnedCountIsSet_ = true; diff --git a/kvs/src/v1/model/Update_fields.cpp b/kvs/src/v1/model/Update_fields.cpp index bfbf52df8..9176ed005 100644 --- a/kvs/src/v1/model/Update_fields.cpp +++ b/kvs/src/v1/model/Update_fields.cpp @@ -16,6 +16,7 @@ Update_fields::Update_fields() setIsSet_ = false; addIsSet_ = false; rmvIsSet_ = false; + insertIsSet_ = false; } Update_fields::~Update_fields() = default; @@ -36,6 +37,9 @@ bool Update_fields::toBson(Builder &builder) const if (rmvIsSet_ && !bson_append(builder, "rmv", rmv_)) { return false; } + if (insertIsSet_ && !bson_append(builder, "insert", insert_)) { + return false; + } return true; } @@ -74,6 +78,15 @@ bool Update_fields::fromBson(const Viewer &viewer) continue; } + if (key == "insert") { + if (!bson_get(it, insert_)) { + return false; + } + insertIsSet_ = true; + ++it; + continue; + } + ++it; } @@ -143,6 +156,27 @@ void Update_fields::unsetrmv() rmvIsSet_ = false; } +Document Update_fields::getInsert() const +{ + return insert_; +} + +void Update_fields::setInsert(const Document& value) +{ + insert_ = value; + insertIsSet_ = true; +} + +bool Update_fields::insertIsSet() const +{ + return insertIsSet_; +} + +void Update_fields::unsetinsert() +{ + insertIsSet_ = false; +} + } } } diff --git a/lts/include/huaweicloud/lts/v2/model/AccessConfigInfo.h b/lts/include/huaweicloud/lts/v2/model/AccessConfigInfo.h index fb9d985cc..600f911f1 100644 --- a/lts/include/huaweicloud/lts/v2/model/AccessConfigInfo.h +++ b/lts/include/huaweicloud/lts/v2/model/AccessConfigInfo.h @@ -14,6 +14,8 @@ #include #include #include +#include +#include #include namespace HuaweiCloud { @@ -142,6 +144,87 @@ class HUAWEICLOUD_LTS_V2_EXPORT AccessConfigInfo void unsetclusterId(); void setClusterId(const std::string& value); + /// + /// 编码格式,默认UTF-8 + /// + + std::string getEncodingFormat() const; + bool encodingFormatIsSet() const; + void unsetencodingFormat(); + void setEncodingFormat(const std::string& value); + + /// + /// 采集策略:增量/全量 + /// + + bool isIncrementalCollect() const; + bool incrementalCollectIsSet() const; + void unsetincrementalCollect(); + void setIncrementalCollect(bool value); + + /// + /// IC结构化解析类型 + /// + + std::string getProcessorType() const; + bool processorTypeIsSet() const; + void unsetprocessorType(); + void setProcessorType(const std::string& value); + + /// + /// 示例日志 + /// + + std::string getDemoLog() const; + bool demoLogIsSet() const; + void unsetdemoLog(); + void setDemoLog(const std::string& value); + + /// + /// 示例日志解析字段 + /// + + std::vector& getDemoFields(); + bool demoFieldsIsSet() const; + void unsetdemoFields(); + void setDemoFields(const std::vector& value); + + /// + /// IC结构化解析器 + /// + + std::vector& getProcessors(); + bool processorsIsSet() const; + void unsetprocessors(); + void setProcessors(const std::vector& value); + + /// + /// ServiceStage应用ID + /// + + std::string getApplicationId() const; + bool applicationIdIsSet() const; + void unsetapplicationId(); + void setApplicationId(const std::string& value); + + /// + /// ServiceStage环境ID + /// + + std::string getEnvironmentId() const; + bool environmentIdIsSet() const; + void unsetenvironmentId(); + void setEnvironmentId(const std::string& value); + + /// + /// ServiceStage组件ID + /// + + std::vector& getComponentId(); + bool componentIdIsSet() const; + void unsetcomponentId(); + void setComponentId(const std::vector& value); + protected: std::string accessConfigId_; @@ -166,6 +249,24 @@ class HUAWEICLOUD_LTS_V2_EXPORT AccessConfigInfo bool binaryCollectIsSet_; std::string clusterId_; bool clusterIdIsSet_; + std::string encodingFormat_; + bool encodingFormatIsSet_; + bool incrementalCollect_; + bool incrementalCollectIsSet_; + std::string processorType_; + bool processorTypeIsSet_; + std::string demoLog_; + bool demoLogIsSet_; + std::vector demoFields_; + bool demoFieldsIsSet_; + std::vector processors_; + bool processorsIsSet_; + std::string applicationId_; + bool applicationIdIsSet_; + std::string environmentId_; + bool environmentIdIsSet_; + std::vector componentId_; + bool componentIdIsSet_; }; diff --git a/lts/include/huaweicloud/lts/v2/model/CreateAccessConfigRequestBody.h b/lts/include/huaweicloud/lts/v2/model/CreateAccessConfigRequestBody.h index 91a6c0344..10089fd8e 100644 --- a/lts/include/huaweicloud/lts/v2/model/CreateAccessConfigRequestBody.h +++ b/lts/include/huaweicloud/lts/v2/model/CreateAccessConfigRequestBody.h @@ -13,6 +13,8 @@ #include #include #include +#include +#include #include #include @@ -124,6 +126,96 @@ class HUAWEICLOUD_LTS_V2_EXPORT CreateAccessConfigRequestBody void unsetclusterId(); void setClusterId(const std::string& value); + /// + /// 是否增量采集 true 为是 false为否(全量采集) + /// + + bool isIncrementalCollect() const; + bool incrementalCollectIsSet() const; + void unsetincrementalCollect(); + void setIncrementalCollect(bool value); + + /// + /// 编码格式,支持UTF-8,GDB默认UTF-8 + /// + + std::string getEncodingFormat() const; + bool encodingFormatIsSet() const; + void unsetencodingFormat(); + void setEncodingFormat(const std::string& value); + + /// + /// IC结构化解析类型包括 :SINGLE_LINE 单行全文,MULTI_LINE 多行全文,REGEX 单行正则,MULTI_REGEX 多行正则,SPLIT 分隔符,JSON JSON解析,NGINX nginx解析, COMPOSE组合解析 + /// + + std::string getProcessorType() const; + bool processorTypeIsSet() const; + void unsetprocessorType(); + void setProcessorType(const std::string& value); + + /// + /// 示例日志 + /// + + std::string getDemoLog() const; + bool demoLogIsSet() const; + void unsetdemoLog(); + void setDemoLog(const std::string& value); + + /// + /// 示例日志解析字段 + /// + + std::vector& getDemoFields(); + bool demoFieldsIsSet() const; + void unsetdemoFields(); + void setDemoFields(const std::vector& value); + + /// + /// IC结构化解析器 + /// + + std::vector& getProcessors(); + bool processorsIsSet() const; + void unsetprocessors(); + void setProcessors(const std::vector& value); + + /// + /// ServiceStage应用ID + /// + + std::string getApplicationId() const; + bool applicationIdIsSet() const; + void unsetapplicationId(); + void setApplicationId(const std::string& value); + + /// + /// ServiceStage环境ID + /// + + std::string getEnvironmentId() const; + bool environmentIdIsSet() const; + void unsetenvironmentId(); + void setEnvironmentId(const std::string& value); + + /// + /// ServiceStage组件ID + /// + + std::vector& getComponentId(); + bool componentIdIsSet() const; + void unsetcomponentId(); + void setComponentId(const std::vector& value); + + /// + /// 日志接入自建软件来源 + /// + + std::string getAccessConfigTypeSource() const; + bool accessConfigTypeSourceIsSet() const; + void unsetaccessConfigTypeSource(); + void setAccessConfigTypeSource(const std::string& value); + protected: std::string accessConfigName_; @@ -144,6 +236,26 @@ class HUAWEICLOUD_LTS_V2_EXPORT CreateAccessConfigRequestBody bool logSplitIsSet_; std::string clusterId_; bool clusterIdIsSet_; + bool incrementalCollect_; + bool incrementalCollectIsSet_; + std::string encodingFormat_; + bool encodingFormatIsSet_; + std::string processorType_; + bool processorTypeIsSet_; + std::string demoLog_; + bool demoLogIsSet_; + std::vector demoFields_; + bool demoFieldsIsSet_; + std::vector processors_; + bool processorsIsSet_; + std::string applicationId_; + bool applicationIdIsSet_; + std::string environmentId_; + bool environmentIdIsSet_; + std::vector componentId_; + bool componentIdIsSet_; + std::string accessConfigTypeSource_; + bool accessConfigTypeSourceIsSet_; }; diff --git a/lts/include/huaweicloud/lts/v2/model/CreateAccessConfigResponse.h b/lts/include/huaweicloud/lts/v2/model/CreateAccessConfigResponse.h index fe8d93ac4..50d3821f3 100644 --- a/lts/include/huaweicloud/lts/v2/model/CreateAccessConfigResponse.h +++ b/lts/include/huaweicloud/lts/v2/model/CreateAccessConfigResponse.h @@ -14,6 +14,8 @@ #include #include #include +#include +#include #include namespace HuaweiCloud { @@ -142,6 +144,87 @@ class HUAWEICLOUD_LTS_V2_EXPORT CreateAccessConfigResponse void unsetclusterId(); void setClusterId(const std::string& value); + /// + /// 编码格式,默认UTF-8 + /// + + std::string getEncodingFormat() const; + bool encodingFormatIsSet() const; + void unsetencodingFormat(); + void setEncodingFormat(const std::string& value); + + /// + /// 采集策略:增量/全量 + /// + + bool isIncrementalCollect() const; + bool incrementalCollectIsSet() const; + void unsetincrementalCollect(); + void setIncrementalCollect(bool value); + + /// + /// IC结构化解析类型 + /// + + std::string getProcessorType() const; + bool processorTypeIsSet() const; + void unsetprocessorType(); + void setProcessorType(const std::string& value); + + /// + /// 示例日志 + /// + + std::string getDemoLog() const; + bool demoLogIsSet() const; + void unsetdemoLog(); + void setDemoLog(const std::string& value); + + /// + /// 示例日志解析字段 + /// + + std::vector& getDemoFields(); + bool demoFieldsIsSet() const; + void unsetdemoFields(); + void setDemoFields(const std::vector& value); + + /// + /// IC结构化解析器 + /// + + std::vector& getProcessors(); + bool processorsIsSet() const; + void unsetprocessors(); + void setProcessors(const std::vector& value); + + /// + /// ServiceStage应用ID + /// + + std::string getApplicationId() const; + bool applicationIdIsSet() const; + void unsetapplicationId(); + void setApplicationId(const std::string& value); + + /// + /// ServiceStage环境ID + /// + + std::string getEnvironmentId() const; + bool environmentIdIsSet() const; + void unsetenvironmentId(); + void setEnvironmentId(const std::string& value); + + /// + /// ServiceStage组件ID + /// + + std::vector& getComponentId(); + bool componentIdIsSet() const; + void unsetcomponentId(); + void setComponentId(const std::vector& value); + protected: std::string accessConfigId_; @@ -166,6 +249,24 @@ class HUAWEICLOUD_LTS_V2_EXPORT CreateAccessConfigResponse bool binaryCollectIsSet_; std::string clusterId_; bool clusterIdIsSet_; + std::string encodingFormat_; + bool encodingFormatIsSet_; + bool incrementalCollect_; + bool incrementalCollectIsSet_; + std::string processorType_; + bool processorTypeIsSet_; + std::string demoLog_; + bool demoLogIsSet_; + std::vector demoFields_; + bool demoFieldsIsSet_; + std::vector processors_; + bool processorsIsSet_; + std::string applicationId_; + bool applicationIdIsSet_; + std::string environmentId_; + bool environmentIdIsSet_; + std::vector componentId_; + bool componentIdIsSet_; #ifdef RTTR_FLAG RTTR_ENABLE() diff --git a/lts/include/huaweicloud/lts/v2/model/DemoFieldAccess.h b/lts/include/huaweicloud/lts/v2/model/DemoFieldAccess.h new file mode 100644 index 000000000..b4b6b0c07 --- /dev/null +++ b/lts/include/huaweicloud/lts/v2/model/DemoFieldAccess.h @@ -0,0 +1,75 @@ + +#ifndef HUAWEICLOUD_SDK_LTS_V2_MODEL_DemoFieldAccess_H_ +#define HUAWEICLOUD_SDK_LTS_V2_MODEL_DemoFieldAccess_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Lts { +namespace V2 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_LTS_V2_EXPORT DemoFieldAccess + : public ModelBase +{ +public: + DemoFieldAccess(); + virtual ~DemoFieldAccess(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// DemoFieldAccess members + + /// + /// 字段名称需和keys中字段保持一致 + /// + + std::string getFieldName() const; + bool fieldNameIsSet() const; + void unsetfieldName(); + void setFieldName(const std::string& value); + + /// + /// 字段值 + /// + + std::string getFieldValue() const; + bool fieldValueIsSet() const; + void unsetfieldValue(); + void setFieldValue(const std::string& value); + + +protected: + std::string fieldName_; + bool fieldNameIsSet_; + std::string fieldValue_; + bool fieldValueIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_LTS_V2_MODEL_DemoFieldAccess_H_ diff --git a/lts/include/huaweicloud/lts/v2/model/Detail.h b/lts/include/huaweicloud/lts/v2/model/Detail.h new file mode 100644 index 000000000..0b4364a18 --- /dev/null +++ b/lts/include/huaweicloud/lts/v2/model/Detail.h @@ -0,0 +1,264 @@ + +#ifndef HUAWEICLOUD_SDK_LTS_V2_MODEL_Detail_H_ +#define HUAWEICLOUD_SDK_LTS_V2_MODEL_Detail_H_ + + +#include + +#include +#include +#include + +#include +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Lts { +namespace V2 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_LTS_V2_EXPORT Detail + : public ModelBase +{ +public: + Detail(); + virtual ~Detail(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// Detail members + + /// + /// 自定义时间key字段名称 + /// + + std::string getSourceKey() const; + bool sourceKeyIsSet() const; + void unsetsourceKey(); + void setSourceKey(const std::string& value); + + /// + /// 正则解析正则表达式 单行完全正则,多行完全正则需填此字段 + /// + + std::string getRegex() const; + bool regexIsSet() const; + void unsetregex(); + void setRegex(const std::string& value); + + /// + /// 字段名称列表 与field_name字段保持一致 + /// + + std::vector& getKeys(); + bool keysIsSet() const; + void unsetkeys(); + void setKeys(const std::vector& value); + + /// + /// 首行正则表达式 + /// + + std::string getMultiLineRegex() const; + bool multiLineRegexIsSet() const; + void unsetmultiLineRegex(); + void setMultiLineRegex(const std::string& value); + + /// + /// 是否上传原始日志 + /// + + bool isKeepSource() const; + bool keepSourceIsSet() const; + void unsetkeepSource(); + void setKeepSource(bool value); + + /// + /// 是否上传解析失败日志 + /// + + bool isKeepSourceIfParseError() const; + bool keepSourceIfParseErrorIsSet() const; + void unsetkeepSourceIfParseError(); + void setKeepSourceIfParseError(bool value); + + /// + /// 分隔符 自定义字符最大长度10,自定义字符串最大长度30 + /// + + std::string getSplitSep() const; + bool splitSepIsSet() const; + void unsetsplitSep(); + void setSplitSep(const std::string& value); + + /// + /// 分隔符类型:char-自定义字符;special_char-不可见字符;string-自定义字符串 + /// + + std::string getSplitType() const; + bool splitTypeIsSet() const; + void unsetsplitType(); + void setSplitType(const std::string& value); + + /// + /// 添加的字段列表:<字段名称 : 字段内容> + /// + + std::map& getFields(); + bool fieldsIsSet() const; + void unsetfields(); + void setFields(const std::map& value); + + /// + /// 删除的字段列表 + /// + + std::vector& getDropKeys(); + bool dropKeysIsSet() const; + void unsetdropKeys(); + void setDropKeys(const std::vector& value); + + /// + /// 字段重命名源字段名称列表 + /// + + std::vector& getSourceKeys(); + bool sourceKeysIsSet() const; + void unsetsourceKeys(); + void setSourceKeys(const std::vector& value); + + /// + /// 字段重命名替换的字段名称列表 + /// + + std::vector& getDestKeys(); + bool destKeysIsSet() const; + void unsetdestKeys(); + void setDestKeys(const std::vector& value); + + /// + /// json解析深度,默认为1层最大4层 + /// + + int32_t getExpandDepth() const; + bool expandDepthIsSet() const; + void unsetexpandDepth(); + void setExpandDepth(int32_t value); + + /// + /// json解析字段名称连接符 + /// + + std::string getExpandConnector() const; + bool expandConnectorIsSet() const; + void unsetexpandConnector(); + void setExpandConnector(const std::string& value); + + /// + /// 自定义时间时间格式 + /// + + std::string getSourceFormat() const; + bool sourceFormatIsSet() const; + void unsetsourceFormat(); + void setSourceFormat(const std::string& value); + + /// + /// 自定义时间字段value + /// + + std::string getSourceValue() const; + bool sourceValueIsSet() const; + void unsetsourceValue(); + void setSourceValue(const std::string& value); + + /// + /// 是否开启自定义时间的开关 + /// + + bool isSetTime() const; + bool setTimeIsSet() const; + void unsetsetTime(); + void setSetTime(bool value); + + /// + /// 日志过滤白名单规则 key长度最大为256,value最大长度为128,key不可以重复 + /// + + std::map& getInclude(); + bool includeIsSet() const; + void unsetinclude(); + void setInclude(const std::map& value); + + /// + /// 日志过滤白名单规则 key长度最大为256,value最大长度为128,key不可以重复 + /// + + std::map& getExclude(); + bool excludeIsSet() const; + void unsetexclude(); + void setExclude(const std::map& value); + + +protected: + std::string sourceKey_; + bool sourceKeyIsSet_; + std::string regex_; + bool regexIsSet_; + std::vector keys_; + bool keysIsSet_; + std::string multiLineRegex_; + bool multiLineRegexIsSet_; + bool keepSource_; + bool keepSourceIsSet_; + bool keepSourceIfParseError_; + bool keepSourceIfParseErrorIsSet_; + std::string splitSep_; + bool splitSepIsSet_; + std::string splitType_; + bool splitTypeIsSet_; + std::map fields_; + bool fieldsIsSet_; + std::vector dropKeys_; + bool dropKeysIsSet_; + std::vector sourceKeys_; + bool sourceKeysIsSet_; + std::vector destKeys_; + bool destKeysIsSet_; + int32_t expandDepth_; + bool expandDepthIsSet_; + std::string expandConnector_; + bool expandConnectorIsSet_; + std::string sourceFormat_; + bool sourceFormatIsSet_; + std::string sourceValue_; + bool sourceValueIsSet_; + bool setTime_; + bool setTimeIsSet_; + std::map include_; + bool includeIsSet_; + std::map exclude_; + bool excludeIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_LTS_V2_MODEL_Detail_H_ diff --git a/lts/include/huaweicloud/lts/v2/model/ListLogStreamsResponseBody1_log_streams.h b/lts/include/huaweicloud/lts/v2/model/ListLogStreamsResponseBody1_log_streams.h index 16893d975..69f49d697 100644 --- a/lts/include/huaweicloud/lts/v2/model/ListLogStreamsResponseBody1_log_streams.h +++ b/lts/include/huaweicloud/lts/v2/model/ListLogStreamsResponseBody1_log_streams.h @@ -67,6 +67,15 @@ class HUAWEICLOUD_LTS_V2_EXPORT ListLogStreamsResponseBody1_log_streams void unsetlogStreamName(); void setLogStreamName(const std::string& value); + /// + /// 日志流别名 + /// + + std::string getLogStreamNameAlias() const; + bool logStreamNameAliasIsSet() const; + void unsetlogStreamNameAlias(); + void setLogStreamNameAlias(const std::string& value); + /// /// 日志流所属标签 /// @@ -85,6 +94,51 @@ class HUAWEICLOUD_LTS_V2_EXPORT ListLogStreamsResponseBody1_log_streams void unsetfilterCount(); void setFilterCount(int32_t value); + /// + /// 是否日志存储 + /// + + bool isWhetherLogStorage() const; + bool whetherLogStorageIsSet() const; + void unsetwhetherLogStorage(); + void setWhetherLogStorage(bool value); + + /// + /// 是否冷存储 + /// + + bool isHotColdSeparation() const; + bool hotColdSeparationIsSet() const; + void unsethotColdSeparation(); + void setHotColdSeparation(bool value); + + /// + /// 匿名写入开关 + /// + + bool isAuthWebTracking() const; + bool authWebTrackingIsSet() const; + void unsetauthWebTracking(); + void setAuthWebTracking(bool value); + + /// + /// 存储时间 + /// + + int32_t getTtlInDays() const; + bool ttlInDaysIsSet() const; + void unsetttlInDays(); + void setTtlInDays(int32_t value); + + /// + /// 标准存储时间 + /// + + int32_t getHotStorageDays() const; + bool hotStorageDaysIsSet() const; + void unsethotStorageDays(); + void setHotStorageDays(int32_t value); + protected: int64_t creationTime_; @@ -93,10 +147,22 @@ class HUAWEICLOUD_LTS_V2_EXPORT ListLogStreamsResponseBody1_log_streams bool logStreamIdIsSet_; std::string logStreamName_; bool logStreamNameIsSet_; + std::string logStreamNameAlias_; + bool logStreamNameAliasIsSet_; std::map tag_; bool tagIsSet_; int32_t filterCount_; bool filterCountIsSet_; + bool whetherLogStorage_; + bool whetherLogStorageIsSet_; + bool hotColdSeparation_; + bool hotColdSeparationIsSet_; + bool authWebTracking_; + bool authWebTrackingIsSet_; + int32_t ttlInDays_; + bool ttlInDaysIsSet_; + int32_t hotStorageDays_; + bool hotStorageDaysIsSet_; }; diff --git a/lts/include/huaweicloud/lts/v2/model/ListLogsResponse.h b/lts/include/huaweicloud/lts/v2/model/ListLogsResponse.h index b3e92bf67..dcd0512c0 100644 --- a/lts/include/huaweicloud/lts/v2/model/ListLogsResponse.h +++ b/lts/include/huaweicloud/lts/v2/model/ListLogsResponse.h @@ -9,8 +9,7 @@ #include #include -#include -#include +#include #include #include @@ -72,10 +71,10 @@ class HUAWEICLOUD_LTS_V2_EXPORT ListLogsResponse /// 分析日志返回响应体 /// - std::vector>& getAnalysisLogs(); + std::vector& getAnalysisLogs(); bool analysisLogsIsSet() const; void unsetanalysisLogs(); - void setAnalysisLogs(const std::vector>& value); + void setAnalysisLogs(const std::vector& value); protected: @@ -85,7 +84,7 @@ class HUAWEICLOUD_LTS_V2_EXPORT ListLogsResponse bool logsIsSet_; bool isQueryComplete_; bool isQueryCompleteIsSet_; - std::vector> analysisLogs_; + std::vector analysisLogs_; bool analysisLogsIsSet_; #ifdef RTTR_FLAG diff --git a/lts/include/huaweicloud/lts/v2/model/LogStreamResBody.h b/lts/include/huaweicloud/lts/v2/model/LogStreamResBody.h index fee74cc74..8baed37a8 100644 --- a/lts/include/huaweicloud/lts/v2/model/LogStreamResBody.h +++ b/lts/include/huaweicloud/lts/v2/model/LogStreamResBody.h @@ -67,6 +67,15 @@ class HUAWEICLOUD_LTS_V2_EXPORT LogStreamResBody void unsetlogStreamName(); void setLogStreamName(const std::string& value); + /// + /// 日志流别名 + /// + + std::string getLogStreamNameAlias() const; + bool logStreamNameAliasIsSet() const; + void unsetlogStreamNameAlias(); + void setLogStreamNameAlias(const std::string& value); + /// /// 日志流所属标签 /// @@ -94,6 +103,51 @@ class HUAWEICLOUD_LTS_V2_EXPORT LogStreamResBody void unsetisFavorite(); void setIsFavorite(bool value); + /// + /// 是否日志存储 + /// + + bool isWhetherLogStorage() const; + bool whetherLogStorageIsSet() const; + void unsetwhetherLogStorage(); + void setWhetherLogStorage(bool value); + + /// + /// 是否冷存储 + /// + + bool isHotColdSeparation() const; + bool hotColdSeparationIsSet() const; + void unsethotColdSeparation(); + void setHotColdSeparation(bool value); + + /// + /// 匿名写入开关 + /// + + bool isAuthWebTracking() const; + bool authWebTrackingIsSet() const; + void unsetauthWebTracking(); + void setAuthWebTracking(bool value); + + /// + /// 存储时间 + /// + + int32_t getTtlInDays() const; + bool ttlInDaysIsSet() const; + void unsetttlInDays(); + void setTtlInDays(int32_t value); + + /// + /// 标准存储时间 + /// + + int32_t getHotStorageDays() const; + bool hotStorageDaysIsSet() const; + void unsethotStorageDays(); + void setHotStorageDays(int32_t value); + protected: int64_t creationTime_; @@ -102,12 +156,24 @@ class HUAWEICLOUD_LTS_V2_EXPORT LogStreamResBody bool logStreamIdIsSet_; std::string logStreamName_; bool logStreamNameIsSet_; + std::string logStreamNameAlias_; + bool logStreamNameAliasIsSet_; std::map tag_; bool tagIsSet_; int32_t filterCount_; bool filterCountIsSet_; bool isFavorite_; bool isFavoriteIsSet_; + bool whetherLogStorage_; + bool whetherLogStorageIsSet_; + bool hotColdSeparation_; + bool hotColdSeparationIsSet_; + bool authWebTracking_; + bool authWebTrackingIsSet_; + int32_t ttlInDays_; + bool ttlInDaysIsSet_; + int32_t hotStorageDays_; + bool hotStorageDaysIsSet_; }; diff --git a/lts/include/huaweicloud/lts/v2/model/Metadata.h b/lts/include/huaweicloud/lts/v2/model/Metadata.h index 1a319842f..5f865f6ff 100644 --- a/lts/include/huaweicloud/lts/v2/model/Metadata.h +++ b/lts/include/huaweicloud/lts/v2/model/Metadata.h @@ -110,6 +110,24 @@ class HUAWEICLOUD_LTS_V2_EXPORT Metadata void unsetltsAlarmType(); void setLtsAlarmType(const std::string& value); + /// + /// 日志组原始名称 + /// + + std::string getLogGroupName() const; + bool logGroupNameIsSet() const; + void unsetlogGroupName(); + void setLogGroupName(const std::string& value); + + /// + /// 日志流原始名称 + /// + + std::string getLogStreamName() const; + bool logStreamNameIsSet() const; + void unsetlogStreamName(); + void setLogStreamName(const std::string& value); + protected: std::string eventType_; @@ -128,6 +146,10 @@ class HUAWEICLOUD_LTS_V2_EXPORT Metadata bool resourceProviderIsSet_; std::string ltsAlarmType_; bool ltsAlarmTypeIsSet_; + std::string logGroupName_; + bool logGroupNameIsSet_; + std::string logStreamName_; + bool logStreamNameIsSet_; }; diff --git a/lts/include/huaweicloud/lts/v2/model/Processor.h b/lts/include/huaweicloud/lts/v2/model/Processor.h new file mode 100644 index 000000000..a335aba47 --- /dev/null +++ b/lts/include/huaweicloud/lts/v2/model/Processor.h @@ -0,0 +1,76 @@ + +#ifndef HUAWEICLOUD_SDK_LTS_V2_MODEL_Processor_H_ +#define HUAWEICLOUD_SDK_LTS_V2_MODEL_Processor_H_ + + +#include + +#include +#include +#include + +#include +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Lts { +namespace V2 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_LTS_V2_EXPORT Processor + : public ModelBase +{ +public: + Processor(); + virtual ~Processor(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// Processor members + + /// + /// 解析器类型 processor_regex 正则解析 processor_split_string 分词符 processor_json json解析器类型 processor_gotime自定义时间类型 processor_filter_regex日志过滤 processor_drop删除字段类型 processor_rename修改字段类型 + /// + + std::string getType() const; + bool typeIsSet() const; + void unsettype(); + void setType(const std::string& value); + + /// + /// + /// + + Detail getDetail() const; + bool detailIsSet() const; + void unsetdetail(); + void setDetail(const Detail& value); + + +protected: + std::string type_; + bool typeIsSet_; + Detail detail_; + bool detailIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_LTS_V2_MODEL_Processor_H_ diff --git a/lts/include/huaweicloud/lts/v2/model/SubTemplate.h b/lts/include/huaweicloud/lts/v2/model/SubTemplate.h index 64750a310..fb79b2512 100644 --- a/lts/include/huaweicloud/lts/v2/model/SubTemplate.h +++ b/lts/include/huaweicloud/lts/v2/model/SubTemplate.h @@ -56,12 +56,23 @@ class HUAWEICLOUD_LTS_V2_EXPORT SubTemplate void unsetcontent(); void setContent(const std::string& value); + /// + /// 邮件主题,只有sub_type=email时生效 + /// + + std::string getTopic() const; + bool topicIsSet() const; + void unsettopic(); + void setTopic(const std::string& value); + protected: std::string subType_; bool subTypeIsSet_; std::string content_; bool contentIsSet_; + std::string topic_; + bool topicIsSet_; }; diff --git a/lts/include/huaweicloud/lts/v2/model/UpdateAccessConfigRequestBody.h b/lts/include/huaweicloud/lts/v2/model/UpdateAccessConfigRequestBody.h index 57d50d9fc..2328e216b 100644 --- a/lts/include/huaweicloud/lts/v2/model/UpdateAccessConfigRequestBody.h +++ b/lts/include/huaweicloud/lts/v2/model/UpdateAccessConfigRequestBody.h @@ -12,6 +12,8 @@ #include #include #include +#include +#include #include #include @@ -105,6 +107,87 @@ class HUAWEICLOUD_LTS_V2_EXPORT UpdateAccessConfigRequestBody void unsetclusterId(); void setClusterId(const std::string& value); + /// + /// 是否增量采集 true为是 false为否(全量采集) + /// + + bool isIncrementalCollect() const; + bool incrementalCollectIsSet() const; + void unsetincrementalCollect(); + void setIncrementalCollect(bool value); + + /// + /// 编码格式,默认UTF-8 + /// + + std::string getEncodingFormat() const; + bool encodingFormatIsSet() const; + void unsetencodingFormat(); + void setEncodingFormat(const std::string& value); + + /// + /// IC结构化解析类型 + /// + + std::string getProcessorType() const; + bool processorTypeIsSet() const; + void unsetprocessorType(); + void setProcessorType(const std::string& value); + + /// + /// 示例日志 + /// + + std::string getDemoLog() const; + bool demoLogIsSet() const; + void unsetdemoLog(); + void setDemoLog(const std::string& value); + + /// + /// 示例日志解析字段 + /// + + std::vector& getDemoFields(); + bool demoFieldsIsSet() const; + void unsetdemoFields(); + void setDemoFields(const std::vector& value); + + /// + /// IC结构化解析器 + /// + + std::vector& getProcessors(); + bool processorsIsSet() const; + void unsetprocessors(); + void setProcessors(const std::vector& value); + + /// + /// ServiceStage应用ID + /// + + std::string getApplicationId() const; + bool applicationIdIsSet() const; + void unsetapplicationId(); + void setApplicationId(const std::string& value); + + /// + /// ServiceStage环境ID + /// + + std::string getEnvironmentId() const; + bool environmentIdIsSet() const; + void unsetenvironmentId(); + void setEnvironmentId(const std::string& value); + + /// + /// ServiceStage组件ID + /// + + std::vector& getComponentId(); + bool componentIdIsSet() const; + void unsetcomponentId(); + void setComponentId(const std::vector& value); + protected: std::string accessConfigId_; @@ -121,6 +204,24 @@ class HUAWEICLOUD_LTS_V2_EXPORT UpdateAccessConfigRequestBody bool binaryCollectIsSet_; std::string clusterId_; bool clusterIdIsSet_; + bool incrementalCollect_; + bool incrementalCollectIsSet_; + std::string encodingFormat_; + bool encodingFormatIsSet_; + std::string processorType_; + bool processorTypeIsSet_; + std::string demoLog_; + bool demoLogIsSet_; + std::vector demoFields_; + bool demoFieldsIsSet_; + std::vector processors_; + bool processorsIsSet_; + std::string applicationId_; + bool applicationIdIsSet_; + std::string environmentId_; + bool environmentIdIsSet_; + std::vector componentId_; + bool componentIdIsSet_; }; diff --git a/lts/include/huaweicloud/lts/v2/model/UpdateAccessConfigResponse.h b/lts/include/huaweicloud/lts/v2/model/UpdateAccessConfigResponse.h index d0da668d1..a676274ce 100644 --- a/lts/include/huaweicloud/lts/v2/model/UpdateAccessConfigResponse.h +++ b/lts/include/huaweicloud/lts/v2/model/UpdateAccessConfigResponse.h @@ -14,6 +14,8 @@ #include #include #include +#include +#include #include namespace HuaweiCloud { @@ -142,6 +144,87 @@ class HUAWEICLOUD_LTS_V2_EXPORT UpdateAccessConfigResponse void unsetclusterId(); void setClusterId(const std::string& value); + /// + /// 编码格式,默认UTF-8 + /// + + std::string getEncodingFormat() const; + bool encodingFormatIsSet() const; + void unsetencodingFormat(); + void setEncodingFormat(const std::string& value); + + /// + /// 采集策略:增量/全量 + /// + + bool isIncrementalCollect() const; + bool incrementalCollectIsSet() const; + void unsetincrementalCollect(); + void setIncrementalCollect(bool value); + + /// + /// IC结构化解析类型 + /// + + std::string getProcessorType() const; + bool processorTypeIsSet() const; + void unsetprocessorType(); + void setProcessorType(const std::string& value); + + /// + /// 示例日志 + /// + + std::string getDemoLog() const; + bool demoLogIsSet() const; + void unsetdemoLog(); + void setDemoLog(const std::string& value); + + /// + /// 示例日志解析字段 + /// + + std::vector& getDemoFields(); + bool demoFieldsIsSet() const; + void unsetdemoFields(); + void setDemoFields(const std::vector& value); + + /// + /// IC结构化解析器 + /// + + std::vector& getProcessors(); + bool processorsIsSet() const; + void unsetprocessors(); + void setProcessors(const std::vector& value); + + /// + /// ServiceStage应用ID + /// + + std::string getApplicationId() const; + bool applicationIdIsSet() const; + void unsetapplicationId(); + void setApplicationId(const std::string& value); + + /// + /// ServiceStage环境ID + /// + + std::string getEnvironmentId() const; + bool environmentIdIsSet() const; + void unsetenvironmentId(); + void setEnvironmentId(const std::string& value); + + /// + /// ServiceStage组件ID + /// + + std::vector& getComponentId(); + bool componentIdIsSet() const; + void unsetcomponentId(); + void setComponentId(const std::vector& value); + protected: std::string accessConfigId_; @@ -166,6 +249,24 @@ class HUAWEICLOUD_LTS_V2_EXPORT UpdateAccessConfigResponse bool binaryCollectIsSet_; std::string clusterId_; bool clusterIdIsSet_; + std::string encodingFormat_; + bool encodingFormatIsSet_; + bool incrementalCollect_; + bool incrementalCollectIsSet_; + std::string processorType_; + bool processorTypeIsSet_; + std::string demoLog_; + bool demoLogIsSet_; + std::vector demoFields_; + bool demoFieldsIsSet_; + std::vector processors_; + bool processorsIsSet_; + std::string applicationId_; + bool applicationIdIsSet_; + std::string environmentId_; + bool environmentIdIsSet_; + std::vector componentId_; + bool componentIdIsSet_; #ifdef RTTR_FLAG RTTR_ENABLE() diff --git a/lts/src/v2/model/AccessConfigInfo.cpp b/lts/src/v2/model/AccessConfigInfo.cpp index b5b62699a..fe1e46959 100644 --- a/lts/src/v2/model/AccessConfigInfo.cpp +++ b/lts/src/v2/model/AccessConfigInfo.cpp @@ -30,6 +30,21 @@ AccessConfigInfo::AccessConfigInfo() binaryCollectIsSet_ = false; clusterId_ = ""; clusterIdIsSet_ = false; + encodingFormat_ = ""; + encodingFormatIsSet_ = false; + incrementalCollect_ = false; + incrementalCollectIsSet_ = false; + processorType_ = ""; + processorTypeIsSet_ = false; + demoLog_ = ""; + demoLogIsSet_ = false; + demoFieldsIsSet_ = false; + processorsIsSet_ = false; + applicationId_ = ""; + applicationIdIsSet_ = false; + environmentId_ = ""; + environmentIdIsSet_ = false; + componentIdIsSet_ = false; } AccessConfigInfo::~AccessConfigInfo() = default; @@ -75,6 +90,33 @@ web::json::value AccessConfigInfo::toJson() const if(clusterIdIsSet_) { val[utility::conversions::to_string_t("cluster_id")] = ModelBase::toJson(clusterId_); } + if(encodingFormatIsSet_) { + val[utility::conversions::to_string_t("encoding_format")] = ModelBase::toJson(encodingFormat_); + } + if(incrementalCollectIsSet_) { + val[utility::conversions::to_string_t("incremental_collect")] = ModelBase::toJson(incrementalCollect_); + } + if(processorTypeIsSet_) { + val[utility::conversions::to_string_t("processor_type")] = ModelBase::toJson(processorType_); + } + if(demoLogIsSet_) { + val[utility::conversions::to_string_t("demo_log")] = ModelBase::toJson(demoLog_); + } + if(demoFieldsIsSet_) { + val[utility::conversions::to_string_t("demo_fields")] = ModelBase::toJson(demoFields_); + } + if(processorsIsSet_) { + val[utility::conversions::to_string_t("processors")] = ModelBase::toJson(processors_); + } + if(applicationIdIsSet_) { + val[utility::conversions::to_string_t("application_id")] = ModelBase::toJson(applicationId_); + } + if(environmentIdIsSet_) { + val[utility::conversions::to_string_t("environment_id")] = ModelBase::toJson(environmentId_); + } + if(componentIdIsSet_) { + val[utility::conversions::to_string_t("component_id")] = ModelBase::toJson(componentId_); + } return val; } @@ -181,6 +223,87 @@ bool AccessConfigInfo::fromJson(const web::json::value& val) setClusterId(refVal); } } + if(val.has_field(utility::conversions::to_string_t("encoding_format"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("encoding_format")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEncodingFormat(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("incremental_collect"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("incremental_collect")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIncrementalCollect(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("processor_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("processor_type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setProcessorType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("demo_log"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("demo_log")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDemoLog(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("demo_fields"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("demo_fields")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDemoFields(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("processors"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("processors")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setProcessors(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("application_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("application_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setApplicationId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("environment_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("environment_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnvironmentId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("component_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("component_id")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setComponentId(refVal); + } + } return ok; } @@ -416,6 +539,195 @@ void AccessConfigInfo::unsetclusterId() clusterIdIsSet_ = false; } +std::string AccessConfigInfo::getEncodingFormat() const +{ + return encodingFormat_; +} + +void AccessConfigInfo::setEncodingFormat(const std::string& value) +{ + encodingFormat_ = value; + encodingFormatIsSet_ = true; +} + +bool AccessConfigInfo::encodingFormatIsSet() const +{ + return encodingFormatIsSet_; +} + +void AccessConfigInfo::unsetencodingFormat() +{ + encodingFormatIsSet_ = false; +} + +bool AccessConfigInfo::isIncrementalCollect() const +{ + return incrementalCollect_; +} + +void AccessConfigInfo::setIncrementalCollect(bool value) +{ + incrementalCollect_ = value; + incrementalCollectIsSet_ = true; +} + +bool AccessConfigInfo::incrementalCollectIsSet() const +{ + return incrementalCollectIsSet_; +} + +void AccessConfigInfo::unsetincrementalCollect() +{ + incrementalCollectIsSet_ = false; +} + +std::string AccessConfigInfo::getProcessorType() const +{ + return processorType_; +} + +void AccessConfigInfo::setProcessorType(const std::string& value) +{ + processorType_ = value; + processorTypeIsSet_ = true; +} + +bool AccessConfigInfo::processorTypeIsSet() const +{ + return processorTypeIsSet_; +} + +void AccessConfigInfo::unsetprocessorType() +{ + processorTypeIsSet_ = false; +} + +std::string AccessConfigInfo::getDemoLog() const +{ + return demoLog_; +} + +void AccessConfigInfo::setDemoLog(const std::string& value) +{ + demoLog_ = value; + demoLogIsSet_ = true; +} + +bool AccessConfigInfo::demoLogIsSet() const +{ + return demoLogIsSet_; +} + +void AccessConfigInfo::unsetdemoLog() +{ + demoLogIsSet_ = false; +} + +std::vector& AccessConfigInfo::getDemoFields() +{ + return demoFields_; +} + +void AccessConfigInfo::setDemoFields(const std::vector& value) +{ + demoFields_ = value; + demoFieldsIsSet_ = true; +} + +bool AccessConfigInfo::demoFieldsIsSet() const +{ + return demoFieldsIsSet_; +} + +void AccessConfigInfo::unsetdemoFields() +{ + demoFieldsIsSet_ = false; +} + +std::vector& AccessConfigInfo::getProcessors() +{ + return processors_; +} + +void AccessConfigInfo::setProcessors(const std::vector& value) +{ + processors_ = value; + processorsIsSet_ = true; +} + +bool AccessConfigInfo::processorsIsSet() const +{ + return processorsIsSet_; +} + +void AccessConfigInfo::unsetprocessors() +{ + processorsIsSet_ = false; +} + +std::string AccessConfigInfo::getApplicationId() const +{ + return applicationId_; +} + +void AccessConfigInfo::setApplicationId(const std::string& value) +{ + applicationId_ = value; + applicationIdIsSet_ = true; +} + +bool AccessConfigInfo::applicationIdIsSet() const +{ + return applicationIdIsSet_; +} + +void AccessConfigInfo::unsetapplicationId() +{ + applicationIdIsSet_ = false; +} + +std::string AccessConfigInfo::getEnvironmentId() const +{ + return environmentId_; +} + +void AccessConfigInfo::setEnvironmentId(const std::string& value) +{ + environmentId_ = value; + environmentIdIsSet_ = true; +} + +bool AccessConfigInfo::environmentIdIsSet() const +{ + return environmentIdIsSet_; +} + +void AccessConfigInfo::unsetenvironmentId() +{ + environmentIdIsSet_ = false; +} + +std::vector& AccessConfigInfo::getComponentId() +{ + return componentId_; +} + +void AccessConfigInfo::setComponentId(const std::vector& value) +{ + componentId_ = value; + componentIdIsSet_ = true; +} + +bool AccessConfigInfo::componentIdIsSet() const +{ + return componentIdIsSet_; +} + +void AccessConfigInfo::unsetcomponentId() +{ + componentIdIsSet_ = false; +} + } } } diff --git a/lts/src/v2/model/CreateAccessConfigRequestBody.cpp b/lts/src/v2/model/CreateAccessConfigRequestBody.cpp index 7ee16586a..867375420 100644 --- a/lts/src/v2/model/CreateAccessConfigRequestBody.cpp +++ b/lts/src/v2/model/CreateAccessConfigRequestBody.cpp @@ -26,6 +26,23 @@ CreateAccessConfigRequestBody::CreateAccessConfigRequestBody() logSplitIsSet_ = false; clusterId_ = ""; clusterIdIsSet_ = false; + incrementalCollect_ = false; + incrementalCollectIsSet_ = false; + encodingFormat_ = ""; + encodingFormatIsSet_ = false; + processorType_ = ""; + processorTypeIsSet_ = false; + demoLog_ = ""; + demoLogIsSet_ = false; + demoFieldsIsSet_ = false; + processorsIsSet_ = false; + applicationId_ = ""; + applicationIdIsSet_ = false; + environmentId_ = ""; + environmentIdIsSet_ = false; + componentIdIsSet_ = false; + accessConfigTypeSource_ = ""; + accessConfigTypeSourceIsSet_ = false; } CreateAccessConfigRequestBody::~CreateAccessConfigRequestBody() = default; @@ -65,6 +82,36 @@ web::json::value CreateAccessConfigRequestBody::toJson() const if(clusterIdIsSet_) { val[utility::conversions::to_string_t("cluster_id")] = ModelBase::toJson(clusterId_); } + if(incrementalCollectIsSet_) { + val[utility::conversions::to_string_t("incremental_collect")] = ModelBase::toJson(incrementalCollect_); + } + if(encodingFormatIsSet_) { + val[utility::conversions::to_string_t("encoding_format")] = ModelBase::toJson(encodingFormat_); + } + if(processorTypeIsSet_) { + val[utility::conversions::to_string_t("processor_type")] = ModelBase::toJson(processorType_); + } + if(demoLogIsSet_) { + val[utility::conversions::to_string_t("demo_log")] = ModelBase::toJson(demoLog_); + } + if(demoFieldsIsSet_) { + val[utility::conversions::to_string_t("demo_fields")] = ModelBase::toJson(demoFields_); + } + if(processorsIsSet_) { + val[utility::conversions::to_string_t("processors")] = ModelBase::toJson(processors_); + } + if(applicationIdIsSet_) { + val[utility::conversions::to_string_t("application_id")] = ModelBase::toJson(applicationId_); + } + if(environmentIdIsSet_) { + val[utility::conversions::to_string_t("environment_id")] = ModelBase::toJson(environmentId_); + } + if(componentIdIsSet_) { + val[utility::conversions::to_string_t("component_id")] = ModelBase::toJson(componentId_); + } + if(accessConfigTypeSourceIsSet_) { + val[utility::conversions::to_string_t("access_config_type_source")] = ModelBase::toJson(accessConfigTypeSource_); + } return val; } @@ -153,6 +200,96 @@ bool CreateAccessConfigRequestBody::fromJson(const web::json::value& val) setClusterId(refVal); } } + if(val.has_field(utility::conversions::to_string_t("incremental_collect"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("incremental_collect")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIncrementalCollect(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("encoding_format"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("encoding_format")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEncodingFormat(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("processor_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("processor_type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setProcessorType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("demo_log"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("demo_log")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDemoLog(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("demo_fields"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("demo_fields")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDemoFields(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("processors"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("processors")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setProcessors(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("application_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("application_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setApplicationId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("environment_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("environment_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnvironmentId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("component_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("component_id")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setComponentId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("access_config_type_source"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("access_config_type_source")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAccessConfigTypeSource(refVal); + } + } return ok; } @@ -346,6 +483,216 @@ void CreateAccessConfigRequestBody::unsetclusterId() clusterIdIsSet_ = false; } +bool CreateAccessConfigRequestBody::isIncrementalCollect() const +{ + return incrementalCollect_; +} + +void CreateAccessConfigRequestBody::setIncrementalCollect(bool value) +{ + incrementalCollect_ = value; + incrementalCollectIsSet_ = true; +} + +bool CreateAccessConfigRequestBody::incrementalCollectIsSet() const +{ + return incrementalCollectIsSet_; +} + +void CreateAccessConfigRequestBody::unsetincrementalCollect() +{ + incrementalCollectIsSet_ = false; +} + +std::string CreateAccessConfigRequestBody::getEncodingFormat() const +{ + return encodingFormat_; +} + +void CreateAccessConfigRequestBody::setEncodingFormat(const std::string& value) +{ + encodingFormat_ = value; + encodingFormatIsSet_ = true; +} + +bool CreateAccessConfigRequestBody::encodingFormatIsSet() const +{ + return encodingFormatIsSet_; +} + +void CreateAccessConfigRequestBody::unsetencodingFormat() +{ + encodingFormatIsSet_ = false; +} + +std::string CreateAccessConfigRequestBody::getProcessorType() const +{ + return processorType_; +} + +void CreateAccessConfigRequestBody::setProcessorType(const std::string& value) +{ + processorType_ = value; + processorTypeIsSet_ = true; +} + +bool CreateAccessConfigRequestBody::processorTypeIsSet() const +{ + return processorTypeIsSet_; +} + +void CreateAccessConfigRequestBody::unsetprocessorType() +{ + processorTypeIsSet_ = false; +} + +std::string CreateAccessConfigRequestBody::getDemoLog() const +{ + return demoLog_; +} + +void CreateAccessConfigRequestBody::setDemoLog(const std::string& value) +{ + demoLog_ = value; + demoLogIsSet_ = true; +} + +bool CreateAccessConfigRequestBody::demoLogIsSet() const +{ + return demoLogIsSet_; +} + +void CreateAccessConfigRequestBody::unsetdemoLog() +{ + demoLogIsSet_ = false; +} + +std::vector& CreateAccessConfigRequestBody::getDemoFields() +{ + return demoFields_; +} + +void CreateAccessConfigRequestBody::setDemoFields(const std::vector& value) +{ + demoFields_ = value; + demoFieldsIsSet_ = true; +} + +bool CreateAccessConfigRequestBody::demoFieldsIsSet() const +{ + return demoFieldsIsSet_; +} + +void CreateAccessConfigRequestBody::unsetdemoFields() +{ + demoFieldsIsSet_ = false; +} + +std::vector& CreateAccessConfigRequestBody::getProcessors() +{ + return processors_; +} + +void CreateAccessConfigRequestBody::setProcessors(const std::vector& value) +{ + processors_ = value; + processorsIsSet_ = true; +} + +bool CreateAccessConfigRequestBody::processorsIsSet() const +{ + return processorsIsSet_; +} + +void CreateAccessConfigRequestBody::unsetprocessors() +{ + processorsIsSet_ = false; +} + +std::string CreateAccessConfigRequestBody::getApplicationId() const +{ + return applicationId_; +} + +void CreateAccessConfigRequestBody::setApplicationId(const std::string& value) +{ + applicationId_ = value; + applicationIdIsSet_ = true; +} + +bool CreateAccessConfigRequestBody::applicationIdIsSet() const +{ + return applicationIdIsSet_; +} + +void CreateAccessConfigRequestBody::unsetapplicationId() +{ + applicationIdIsSet_ = false; +} + +std::string CreateAccessConfigRequestBody::getEnvironmentId() const +{ + return environmentId_; +} + +void CreateAccessConfigRequestBody::setEnvironmentId(const std::string& value) +{ + environmentId_ = value; + environmentIdIsSet_ = true; +} + +bool CreateAccessConfigRequestBody::environmentIdIsSet() const +{ + return environmentIdIsSet_; +} + +void CreateAccessConfigRequestBody::unsetenvironmentId() +{ + environmentIdIsSet_ = false; +} + +std::vector& CreateAccessConfigRequestBody::getComponentId() +{ + return componentId_; +} + +void CreateAccessConfigRequestBody::setComponentId(const std::vector& value) +{ + componentId_ = value; + componentIdIsSet_ = true; +} + +bool CreateAccessConfigRequestBody::componentIdIsSet() const +{ + return componentIdIsSet_; +} + +void CreateAccessConfigRequestBody::unsetcomponentId() +{ + componentIdIsSet_ = false; +} + +std::string CreateAccessConfigRequestBody::getAccessConfigTypeSource() const +{ + return accessConfigTypeSource_; +} + +void CreateAccessConfigRequestBody::setAccessConfigTypeSource(const std::string& value) +{ + accessConfigTypeSource_ = value; + accessConfigTypeSourceIsSet_ = true; +} + +bool CreateAccessConfigRequestBody::accessConfigTypeSourceIsSet() const +{ + return accessConfigTypeSourceIsSet_; +} + +void CreateAccessConfigRequestBody::unsetaccessConfigTypeSource() +{ + accessConfigTypeSourceIsSet_ = false; +} + } } } diff --git a/lts/src/v2/model/CreateAccessConfigResponse.cpp b/lts/src/v2/model/CreateAccessConfigResponse.cpp index 7364ed363..ac4e0bd16 100644 --- a/lts/src/v2/model/CreateAccessConfigResponse.cpp +++ b/lts/src/v2/model/CreateAccessConfigResponse.cpp @@ -30,6 +30,21 @@ CreateAccessConfigResponse::CreateAccessConfigResponse() binaryCollectIsSet_ = false; clusterId_ = ""; clusterIdIsSet_ = false; + encodingFormat_ = ""; + encodingFormatIsSet_ = false; + incrementalCollect_ = false; + incrementalCollectIsSet_ = false; + processorType_ = ""; + processorTypeIsSet_ = false; + demoLog_ = ""; + demoLogIsSet_ = false; + demoFieldsIsSet_ = false; + processorsIsSet_ = false; + applicationId_ = ""; + applicationIdIsSet_ = false; + environmentId_ = ""; + environmentIdIsSet_ = false; + componentIdIsSet_ = false; } CreateAccessConfigResponse::~CreateAccessConfigResponse() = default; @@ -75,6 +90,33 @@ web::json::value CreateAccessConfigResponse::toJson() const if(clusterIdIsSet_) { val[utility::conversions::to_string_t("cluster_id")] = ModelBase::toJson(clusterId_); } + if(encodingFormatIsSet_) { + val[utility::conversions::to_string_t("encoding_format")] = ModelBase::toJson(encodingFormat_); + } + if(incrementalCollectIsSet_) { + val[utility::conversions::to_string_t("incremental_collect")] = ModelBase::toJson(incrementalCollect_); + } + if(processorTypeIsSet_) { + val[utility::conversions::to_string_t("processor_type")] = ModelBase::toJson(processorType_); + } + if(demoLogIsSet_) { + val[utility::conversions::to_string_t("demo_log")] = ModelBase::toJson(demoLog_); + } + if(demoFieldsIsSet_) { + val[utility::conversions::to_string_t("demo_fields")] = ModelBase::toJson(demoFields_); + } + if(processorsIsSet_) { + val[utility::conversions::to_string_t("processors")] = ModelBase::toJson(processors_); + } + if(applicationIdIsSet_) { + val[utility::conversions::to_string_t("application_id")] = ModelBase::toJson(applicationId_); + } + if(environmentIdIsSet_) { + val[utility::conversions::to_string_t("environment_id")] = ModelBase::toJson(environmentId_); + } + if(componentIdIsSet_) { + val[utility::conversions::to_string_t("component_id")] = ModelBase::toJson(componentId_); + } return val; } @@ -181,6 +223,87 @@ bool CreateAccessConfigResponse::fromJson(const web::json::value& val) setClusterId(refVal); } } + if(val.has_field(utility::conversions::to_string_t("encoding_format"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("encoding_format")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEncodingFormat(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("incremental_collect"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("incremental_collect")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIncrementalCollect(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("processor_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("processor_type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setProcessorType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("demo_log"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("demo_log")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDemoLog(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("demo_fields"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("demo_fields")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDemoFields(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("processors"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("processors")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setProcessors(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("application_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("application_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setApplicationId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("environment_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("environment_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnvironmentId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("component_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("component_id")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setComponentId(refVal); + } + } return ok; } @@ -416,6 +539,195 @@ void CreateAccessConfigResponse::unsetclusterId() clusterIdIsSet_ = false; } +std::string CreateAccessConfigResponse::getEncodingFormat() const +{ + return encodingFormat_; +} + +void CreateAccessConfigResponse::setEncodingFormat(const std::string& value) +{ + encodingFormat_ = value; + encodingFormatIsSet_ = true; +} + +bool CreateAccessConfigResponse::encodingFormatIsSet() const +{ + return encodingFormatIsSet_; +} + +void CreateAccessConfigResponse::unsetencodingFormat() +{ + encodingFormatIsSet_ = false; +} + +bool CreateAccessConfigResponse::isIncrementalCollect() const +{ + return incrementalCollect_; +} + +void CreateAccessConfigResponse::setIncrementalCollect(bool value) +{ + incrementalCollect_ = value; + incrementalCollectIsSet_ = true; +} + +bool CreateAccessConfigResponse::incrementalCollectIsSet() const +{ + return incrementalCollectIsSet_; +} + +void CreateAccessConfigResponse::unsetincrementalCollect() +{ + incrementalCollectIsSet_ = false; +} + +std::string CreateAccessConfigResponse::getProcessorType() const +{ + return processorType_; +} + +void CreateAccessConfigResponse::setProcessorType(const std::string& value) +{ + processorType_ = value; + processorTypeIsSet_ = true; +} + +bool CreateAccessConfigResponse::processorTypeIsSet() const +{ + return processorTypeIsSet_; +} + +void CreateAccessConfigResponse::unsetprocessorType() +{ + processorTypeIsSet_ = false; +} + +std::string CreateAccessConfigResponse::getDemoLog() const +{ + return demoLog_; +} + +void CreateAccessConfigResponse::setDemoLog(const std::string& value) +{ + demoLog_ = value; + demoLogIsSet_ = true; +} + +bool CreateAccessConfigResponse::demoLogIsSet() const +{ + return demoLogIsSet_; +} + +void CreateAccessConfigResponse::unsetdemoLog() +{ + demoLogIsSet_ = false; +} + +std::vector& CreateAccessConfigResponse::getDemoFields() +{ + return demoFields_; +} + +void CreateAccessConfigResponse::setDemoFields(const std::vector& value) +{ + demoFields_ = value; + demoFieldsIsSet_ = true; +} + +bool CreateAccessConfigResponse::demoFieldsIsSet() const +{ + return demoFieldsIsSet_; +} + +void CreateAccessConfigResponse::unsetdemoFields() +{ + demoFieldsIsSet_ = false; +} + +std::vector& CreateAccessConfigResponse::getProcessors() +{ + return processors_; +} + +void CreateAccessConfigResponse::setProcessors(const std::vector& value) +{ + processors_ = value; + processorsIsSet_ = true; +} + +bool CreateAccessConfigResponse::processorsIsSet() const +{ + return processorsIsSet_; +} + +void CreateAccessConfigResponse::unsetprocessors() +{ + processorsIsSet_ = false; +} + +std::string CreateAccessConfigResponse::getApplicationId() const +{ + return applicationId_; +} + +void CreateAccessConfigResponse::setApplicationId(const std::string& value) +{ + applicationId_ = value; + applicationIdIsSet_ = true; +} + +bool CreateAccessConfigResponse::applicationIdIsSet() const +{ + return applicationIdIsSet_; +} + +void CreateAccessConfigResponse::unsetapplicationId() +{ + applicationIdIsSet_ = false; +} + +std::string CreateAccessConfigResponse::getEnvironmentId() const +{ + return environmentId_; +} + +void CreateAccessConfigResponse::setEnvironmentId(const std::string& value) +{ + environmentId_ = value; + environmentIdIsSet_ = true; +} + +bool CreateAccessConfigResponse::environmentIdIsSet() const +{ + return environmentIdIsSet_; +} + +void CreateAccessConfigResponse::unsetenvironmentId() +{ + environmentIdIsSet_ = false; +} + +std::vector& CreateAccessConfigResponse::getComponentId() +{ + return componentId_; +} + +void CreateAccessConfigResponse::setComponentId(const std::vector& value) +{ + componentId_ = value; + componentIdIsSet_ = true; +} + +bool CreateAccessConfigResponse::componentIdIsSet() const +{ + return componentIdIsSet_; +} + +void CreateAccessConfigResponse::unsetcomponentId() +{ + componentIdIsSet_ = false; +} + } } } diff --git a/lts/src/v2/model/DemoFieldAccess.cpp b/lts/src/v2/model/DemoFieldAccess.cpp new file mode 100644 index 000000000..ae702544f --- /dev/null +++ b/lts/src/v2/model/DemoFieldAccess.cpp @@ -0,0 +1,114 @@ + + +#include "huaweicloud/lts/v2/model/DemoFieldAccess.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Lts { +namespace V2 { +namespace Model { + + + + +DemoFieldAccess::DemoFieldAccess() +{ + fieldName_ = ""; + fieldNameIsSet_ = false; + fieldValue_ = ""; + fieldValueIsSet_ = false; +} + +DemoFieldAccess::~DemoFieldAccess() = default; + +void DemoFieldAccess::validate() +{ +} + +web::json::value DemoFieldAccess::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(fieldNameIsSet_) { + val[utility::conversions::to_string_t("field_name")] = ModelBase::toJson(fieldName_); + } + if(fieldValueIsSet_) { + val[utility::conversions::to_string_t("field_value")] = ModelBase::toJson(fieldValue_); + } + + return val; +} +bool DemoFieldAccess::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("field_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("field_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFieldName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("field_value"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("field_value")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFieldValue(refVal); + } + } + return ok; +} + + +std::string DemoFieldAccess::getFieldName() const +{ + return fieldName_; +} + +void DemoFieldAccess::setFieldName(const std::string& value) +{ + fieldName_ = value; + fieldNameIsSet_ = true; +} + +bool DemoFieldAccess::fieldNameIsSet() const +{ + return fieldNameIsSet_; +} + +void DemoFieldAccess::unsetfieldName() +{ + fieldNameIsSet_ = false; +} + +std::string DemoFieldAccess::getFieldValue() const +{ + return fieldValue_; +} + +void DemoFieldAccess::setFieldValue(const std::string& value) +{ + fieldValue_ = value; + fieldValueIsSet_ = true; +} + +bool DemoFieldAccess::fieldValueIsSet() const +{ + return fieldValueIsSet_; +} + +void DemoFieldAccess::unsetfieldValue() +{ + fieldValueIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/lts/src/v2/model/Detail.cpp b/lts/src/v2/model/Detail.cpp new file mode 100644 index 000000000..f0df9752a --- /dev/null +++ b/lts/src/v2/model/Detail.cpp @@ -0,0 +1,702 @@ + + +#include "huaweicloud/lts/v2/model/Detail.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Lts { +namespace V2 { +namespace Model { + + + + +Detail::Detail() +{ + sourceKey_ = ""; + sourceKeyIsSet_ = false; + regex_ = ""; + regexIsSet_ = false; + keysIsSet_ = false; + multiLineRegex_ = ""; + multiLineRegexIsSet_ = false; + keepSource_ = false; + keepSourceIsSet_ = false; + keepSourceIfParseError_ = false; + keepSourceIfParseErrorIsSet_ = false; + splitSep_ = ""; + splitSepIsSet_ = false; + splitType_ = ""; + splitTypeIsSet_ = false; + fieldsIsSet_ = false; + dropKeysIsSet_ = false; + sourceKeysIsSet_ = false; + destKeysIsSet_ = false; + expandDepth_ = 0; + expandDepthIsSet_ = false; + expandConnector_ = ""; + expandConnectorIsSet_ = false; + sourceFormat_ = ""; + sourceFormatIsSet_ = false; + sourceValue_ = ""; + sourceValueIsSet_ = false; + setTime_ = false; + setTimeIsSet_ = false; + includeIsSet_ = false; + excludeIsSet_ = false; +} + +Detail::~Detail() = default; + +void Detail::validate() +{ +} + +web::json::value Detail::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(sourceKeyIsSet_) { + val[utility::conversions::to_string_t("source_key")] = ModelBase::toJson(sourceKey_); + } + if(regexIsSet_) { + val[utility::conversions::to_string_t("regex")] = ModelBase::toJson(regex_); + } + if(keysIsSet_) { + val[utility::conversions::to_string_t("keys")] = ModelBase::toJson(keys_); + } + if(multiLineRegexIsSet_) { + val[utility::conversions::to_string_t("multi_line_regex")] = ModelBase::toJson(multiLineRegex_); + } + if(keepSourceIsSet_) { + val[utility::conversions::to_string_t("keep_source")] = ModelBase::toJson(keepSource_); + } + if(keepSourceIfParseErrorIsSet_) { + val[utility::conversions::to_string_t("keep_source_if_parse_error")] = ModelBase::toJson(keepSourceIfParseError_); + } + if(splitSepIsSet_) { + val[utility::conversions::to_string_t("split_sep")] = ModelBase::toJson(splitSep_); + } + if(splitTypeIsSet_) { + val[utility::conversions::to_string_t("split_type")] = ModelBase::toJson(splitType_); + } + if(fieldsIsSet_) { + val[utility::conversions::to_string_t("fields")] = ModelBase::toJson(fields_); + } + if(dropKeysIsSet_) { + val[utility::conversions::to_string_t("drop_keys")] = ModelBase::toJson(dropKeys_); + } + if(sourceKeysIsSet_) { + val[utility::conversions::to_string_t("source_keys")] = ModelBase::toJson(sourceKeys_); + } + if(destKeysIsSet_) { + val[utility::conversions::to_string_t("dest_keys")] = ModelBase::toJson(destKeys_); + } + if(expandDepthIsSet_) { + val[utility::conversions::to_string_t("expand_depth")] = ModelBase::toJson(expandDepth_); + } + if(expandConnectorIsSet_) { + val[utility::conversions::to_string_t("expand_connector")] = ModelBase::toJson(expandConnector_); + } + if(sourceFormatIsSet_) { + val[utility::conversions::to_string_t("source_format")] = ModelBase::toJson(sourceFormat_); + } + if(sourceValueIsSet_) { + val[utility::conversions::to_string_t("source_value")] = ModelBase::toJson(sourceValue_); + } + if(setTimeIsSet_) { + val[utility::conversions::to_string_t("set_time")] = ModelBase::toJson(setTime_); + } + if(includeIsSet_) { + val[utility::conversions::to_string_t("include")] = ModelBase::toJson(include_); + } + if(excludeIsSet_) { + val[utility::conversions::to_string_t("exclude")] = ModelBase::toJson(exclude_); + } + + return val; +} +bool Detail::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("source_key"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("source_key")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSourceKey(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("regex"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("regex")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setRegex(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("keys"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("keys")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setKeys(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("multi_line_regex"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("multi_line_regex")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setMultiLineRegex(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("keep_source"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("keep_source")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setKeepSource(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("keep_source_if_parse_error"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("keep_source_if_parse_error")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setKeepSourceIfParseError(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("split_sep"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("split_sep")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSplitSep(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("split_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("split_type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSplitType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("fields"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("fields")); + if(!fieldValue.is_null()) + { + std::map refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setFields(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("drop_keys"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("drop_keys")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDropKeys(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("source_keys"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("source_keys")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSourceKeys(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("dest_keys"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("dest_keys")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDestKeys(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("expand_depth"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("expand_depth")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setExpandDepth(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("expand_connector"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("expand_connector")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setExpandConnector(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("source_format"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("source_format")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSourceFormat(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("source_value"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("source_value")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSourceValue(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("set_time"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("set_time")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setSetTime(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("include"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("include")); + if(!fieldValue.is_null()) + { + std::map refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setInclude(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("exclude"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("exclude")); + if(!fieldValue.is_null()) + { + std::map refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setExclude(refVal); + } + } + return ok; +} + + +std::string Detail::getSourceKey() const +{ + return sourceKey_; +} + +void Detail::setSourceKey(const std::string& value) +{ + sourceKey_ = value; + sourceKeyIsSet_ = true; +} + +bool Detail::sourceKeyIsSet() const +{ + return sourceKeyIsSet_; +} + +void Detail::unsetsourceKey() +{ + sourceKeyIsSet_ = false; +} + +std::string Detail::getRegex() const +{ + return regex_; +} + +void Detail::setRegex(const std::string& value) +{ + regex_ = value; + regexIsSet_ = true; +} + +bool Detail::regexIsSet() const +{ + return regexIsSet_; +} + +void Detail::unsetregex() +{ + regexIsSet_ = false; +} + +std::vector& Detail::getKeys() +{ + return keys_; +} + +void Detail::setKeys(const std::vector& value) +{ + keys_ = value; + keysIsSet_ = true; +} + +bool Detail::keysIsSet() const +{ + return keysIsSet_; +} + +void Detail::unsetkeys() +{ + keysIsSet_ = false; +} + +std::string Detail::getMultiLineRegex() const +{ + return multiLineRegex_; +} + +void Detail::setMultiLineRegex(const std::string& value) +{ + multiLineRegex_ = value; + multiLineRegexIsSet_ = true; +} + +bool Detail::multiLineRegexIsSet() const +{ + return multiLineRegexIsSet_; +} + +void Detail::unsetmultiLineRegex() +{ + multiLineRegexIsSet_ = false; +} + +bool Detail::isKeepSource() const +{ + return keepSource_; +} + +void Detail::setKeepSource(bool value) +{ + keepSource_ = value; + keepSourceIsSet_ = true; +} + +bool Detail::keepSourceIsSet() const +{ + return keepSourceIsSet_; +} + +void Detail::unsetkeepSource() +{ + keepSourceIsSet_ = false; +} + +bool Detail::isKeepSourceIfParseError() const +{ + return keepSourceIfParseError_; +} + +void Detail::setKeepSourceIfParseError(bool value) +{ + keepSourceIfParseError_ = value; + keepSourceIfParseErrorIsSet_ = true; +} + +bool Detail::keepSourceIfParseErrorIsSet() const +{ + return keepSourceIfParseErrorIsSet_; +} + +void Detail::unsetkeepSourceIfParseError() +{ + keepSourceIfParseErrorIsSet_ = false; +} + +std::string Detail::getSplitSep() const +{ + return splitSep_; +} + +void Detail::setSplitSep(const std::string& value) +{ + splitSep_ = value; + splitSepIsSet_ = true; +} + +bool Detail::splitSepIsSet() const +{ + return splitSepIsSet_; +} + +void Detail::unsetsplitSep() +{ + splitSepIsSet_ = false; +} + +std::string Detail::getSplitType() const +{ + return splitType_; +} + +void Detail::setSplitType(const std::string& value) +{ + splitType_ = value; + splitTypeIsSet_ = true; +} + +bool Detail::splitTypeIsSet() const +{ + return splitTypeIsSet_; +} + +void Detail::unsetsplitType() +{ + splitTypeIsSet_ = false; +} + +std::map& Detail::getFields() +{ + return fields_; +} + +void Detail::setFields(const std::map& value) +{ + fields_ = value; + fieldsIsSet_ = true; +} + +bool Detail::fieldsIsSet() const +{ + return fieldsIsSet_; +} + +void Detail::unsetfields() +{ + fieldsIsSet_ = false; +} + +std::vector& Detail::getDropKeys() +{ + return dropKeys_; +} + +void Detail::setDropKeys(const std::vector& value) +{ + dropKeys_ = value; + dropKeysIsSet_ = true; +} + +bool Detail::dropKeysIsSet() const +{ + return dropKeysIsSet_; +} + +void Detail::unsetdropKeys() +{ + dropKeysIsSet_ = false; +} + +std::vector& Detail::getSourceKeys() +{ + return sourceKeys_; +} + +void Detail::setSourceKeys(const std::vector& value) +{ + sourceKeys_ = value; + sourceKeysIsSet_ = true; +} + +bool Detail::sourceKeysIsSet() const +{ + return sourceKeysIsSet_; +} + +void Detail::unsetsourceKeys() +{ + sourceKeysIsSet_ = false; +} + +std::vector& Detail::getDestKeys() +{ + return destKeys_; +} + +void Detail::setDestKeys(const std::vector& value) +{ + destKeys_ = value; + destKeysIsSet_ = true; +} + +bool Detail::destKeysIsSet() const +{ + return destKeysIsSet_; +} + +void Detail::unsetdestKeys() +{ + destKeysIsSet_ = false; +} + +int32_t Detail::getExpandDepth() const +{ + return expandDepth_; +} + +void Detail::setExpandDepth(int32_t value) +{ + expandDepth_ = value; + expandDepthIsSet_ = true; +} + +bool Detail::expandDepthIsSet() const +{ + return expandDepthIsSet_; +} + +void Detail::unsetexpandDepth() +{ + expandDepthIsSet_ = false; +} + +std::string Detail::getExpandConnector() const +{ + return expandConnector_; +} + +void Detail::setExpandConnector(const std::string& value) +{ + expandConnector_ = value; + expandConnectorIsSet_ = true; +} + +bool Detail::expandConnectorIsSet() const +{ + return expandConnectorIsSet_; +} + +void Detail::unsetexpandConnector() +{ + expandConnectorIsSet_ = false; +} + +std::string Detail::getSourceFormat() const +{ + return sourceFormat_; +} + +void Detail::setSourceFormat(const std::string& value) +{ + sourceFormat_ = value; + sourceFormatIsSet_ = true; +} + +bool Detail::sourceFormatIsSet() const +{ + return sourceFormatIsSet_; +} + +void Detail::unsetsourceFormat() +{ + sourceFormatIsSet_ = false; +} + +std::string Detail::getSourceValue() const +{ + return sourceValue_; +} + +void Detail::setSourceValue(const std::string& value) +{ + sourceValue_ = value; + sourceValueIsSet_ = true; +} + +bool Detail::sourceValueIsSet() const +{ + return sourceValueIsSet_; +} + +void Detail::unsetsourceValue() +{ + sourceValueIsSet_ = false; +} + +bool Detail::isSetTime() const +{ + return setTime_; +} + +void Detail::setSetTime(bool value) +{ + setTime_ = value; + setTimeIsSet_ = true; +} + +bool Detail::setTimeIsSet() const +{ + return setTimeIsSet_; +} + +void Detail::unsetsetTime() +{ + setTimeIsSet_ = false; +} + +std::map& Detail::getInclude() +{ + return include_; +} + +void Detail::setInclude(const std::map& value) +{ + include_ = value; + includeIsSet_ = true; +} + +bool Detail::includeIsSet() const +{ + return includeIsSet_; +} + +void Detail::unsetinclude() +{ + includeIsSet_ = false; +} + +std::map& Detail::getExclude() +{ + return exclude_; +} + +void Detail::setExclude(const std::map& value) +{ + exclude_ = value; + excludeIsSet_ = true; +} + +bool Detail::excludeIsSet() const +{ + return excludeIsSet_; +} + +void Detail::unsetexclude() +{ + excludeIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/lts/src/v2/model/ListLogStreamsResponseBody1_log_streams.cpp b/lts/src/v2/model/ListLogStreamsResponseBody1_log_streams.cpp index e31f0a493..aeb136a78 100644 --- a/lts/src/v2/model/ListLogStreamsResponseBody1_log_streams.cpp +++ b/lts/src/v2/model/ListLogStreamsResponseBody1_log_streams.cpp @@ -18,9 +18,21 @@ ListLogStreamsResponseBody1_log_streams::ListLogStreamsResponseBody1_log_streams logStreamIdIsSet_ = false; logStreamName_ = ""; logStreamNameIsSet_ = false; + logStreamNameAlias_ = ""; + logStreamNameAliasIsSet_ = false; tagIsSet_ = false; filterCount_ = 0; filterCountIsSet_ = false; + whetherLogStorage_ = false; + whetherLogStorageIsSet_ = false; + hotColdSeparation_ = false; + hotColdSeparationIsSet_ = false; + authWebTracking_ = false; + authWebTrackingIsSet_ = false; + ttlInDays_ = 0; + ttlInDaysIsSet_ = false; + hotStorageDays_ = 0; + hotStorageDaysIsSet_ = false; } ListLogStreamsResponseBody1_log_streams::~ListLogStreamsResponseBody1_log_streams() = default; @@ -42,12 +54,30 @@ web::json::value ListLogStreamsResponseBody1_log_streams::toJson() const if(logStreamNameIsSet_) { val[utility::conversions::to_string_t("log_stream_name")] = ModelBase::toJson(logStreamName_); } + if(logStreamNameAliasIsSet_) { + val[utility::conversions::to_string_t("log_stream_name_alias")] = ModelBase::toJson(logStreamNameAlias_); + } if(tagIsSet_) { val[utility::conversions::to_string_t("tag")] = ModelBase::toJson(tag_); } if(filterCountIsSet_) { val[utility::conversions::to_string_t("filter_count")] = ModelBase::toJson(filterCount_); } + if(whetherLogStorageIsSet_) { + val[utility::conversions::to_string_t("whether_log_storage")] = ModelBase::toJson(whetherLogStorage_); + } + if(hotColdSeparationIsSet_) { + val[utility::conversions::to_string_t("hot_cold_separation")] = ModelBase::toJson(hotColdSeparation_); + } + if(authWebTrackingIsSet_) { + val[utility::conversions::to_string_t("auth_web_tracking")] = ModelBase::toJson(authWebTracking_); + } + if(ttlInDaysIsSet_) { + val[utility::conversions::to_string_t("ttl_in_days")] = ModelBase::toJson(ttlInDays_); + } + if(hotStorageDaysIsSet_) { + val[utility::conversions::to_string_t("hot_storage_days")] = ModelBase::toJson(hotStorageDays_); + } return val; } @@ -82,6 +112,15 @@ bool ListLogStreamsResponseBody1_log_streams::fromJson(const web::json::value& v setLogStreamName(refVal); } } + if(val.has_field(utility::conversions::to_string_t("log_stream_name_alias"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("log_stream_name_alias")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLogStreamNameAlias(refVal); + } + } if(val.has_field(utility::conversions::to_string_t("tag"))) { const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tag")); if(!fieldValue.is_null()) @@ -100,6 +139,51 @@ bool ListLogStreamsResponseBody1_log_streams::fromJson(const web::json::value& v setFilterCount(refVal); } } + if(val.has_field(utility::conversions::to_string_t("whether_log_storage"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("whether_log_storage")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setWhetherLogStorage(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("hot_cold_separation"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("hot_cold_separation")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setHotColdSeparation(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("auth_web_tracking"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("auth_web_tracking")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAuthWebTracking(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ttl_in_days"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ttl_in_days")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTtlInDays(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("hot_storage_days"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("hot_storage_days")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setHotStorageDays(refVal); + } + } return ok; } @@ -167,6 +251,27 @@ void ListLogStreamsResponseBody1_log_streams::unsetlogStreamName() logStreamNameIsSet_ = false; } +std::string ListLogStreamsResponseBody1_log_streams::getLogStreamNameAlias() const +{ + return logStreamNameAlias_; +} + +void ListLogStreamsResponseBody1_log_streams::setLogStreamNameAlias(const std::string& value) +{ + logStreamNameAlias_ = value; + logStreamNameAliasIsSet_ = true; +} + +bool ListLogStreamsResponseBody1_log_streams::logStreamNameAliasIsSet() const +{ + return logStreamNameAliasIsSet_; +} + +void ListLogStreamsResponseBody1_log_streams::unsetlogStreamNameAlias() +{ + logStreamNameAliasIsSet_ = false; +} + std::map& ListLogStreamsResponseBody1_log_streams::getTag() { return tag_; @@ -209,6 +314,111 @@ void ListLogStreamsResponseBody1_log_streams::unsetfilterCount() filterCountIsSet_ = false; } +bool ListLogStreamsResponseBody1_log_streams::isWhetherLogStorage() const +{ + return whetherLogStorage_; +} + +void ListLogStreamsResponseBody1_log_streams::setWhetherLogStorage(bool value) +{ + whetherLogStorage_ = value; + whetherLogStorageIsSet_ = true; +} + +bool ListLogStreamsResponseBody1_log_streams::whetherLogStorageIsSet() const +{ + return whetherLogStorageIsSet_; +} + +void ListLogStreamsResponseBody1_log_streams::unsetwhetherLogStorage() +{ + whetherLogStorageIsSet_ = false; +} + +bool ListLogStreamsResponseBody1_log_streams::isHotColdSeparation() const +{ + return hotColdSeparation_; +} + +void ListLogStreamsResponseBody1_log_streams::setHotColdSeparation(bool value) +{ + hotColdSeparation_ = value; + hotColdSeparationIsSet_ = true; +} + +bool ListLogStreamsResponseBody1_log_streams::hotColdSeparationIsSet() const +{ + return hotColdSeparationIsSet_; +} + +void ListLogStreamsResponseBody1_log_streams::unsethotColdSeparation() +{ + hotColdSeparationIsSet_ = false; +} + +bool ListLogStreamsResponseBody1_log_streams::isAuthWebTracking() const +{ + return authWebTracking_; +} + +void ListLogStreamsResponseBody1_log_streams::setAuthWebTracking(bool value) +{ + authWebTracking_ = value; + authWebTrackingIsSet_ = true; +} + +bool ListLogStreamsResponseBody1_log_streams::authWebTrackingIsSet() const +{ + return authWebTrackingIsSet_; +} + +void ListLogStreamsResponseBody1_log_streams::unsetauthWebTracking() +{ + authWebTrackingIsSet_ = false; +} + +int32_t ListLogStreamsResponseBody1_log_streams::getTtlInDays() const +{ + return ttlInDays_; +} + +void ListLogStreamsResponseBody1_log_streams::setTtlInDays(int32_t value) +{ + ttlInDays_ = value; + ttlInDaysIsSet_ = true; +} + +bool ListLogStreamsResponseBody1_log_streams::ttlInDaysIsSet() const +{ + return ttlInDaysIsSet_; +} + +void ListLogStreamsResponseBody1_log_streams::unsetttlInDays() +{ + ttlInDaysIsSet_ = false; +} + +int32_t ListLogStreamsResponseBody1_log_streams::getHotStorageDays() const +{ + return hotStorageDays_; +} + +void ListLogStreamsResponseBody1_log_streams::setHotStorageDays(int32_t value) +{ + hotStorageDays_ = value; + hotStorageDaysIsSet_ = true; +} + +bool ListLogStreamsResponseBody1_log_streams::hotStorageDaysIsSet() const +{ + return hotStorageDaysIsSet_; +} + +void ListLogStreamsResponseBody1_log_streams::unsethotStorageDays() +{ + hotStorageDaysIsSet_ = false; +} + } } } diff --git a/lts/src/v2/model/ListLogsResponse.cpp b/lts/src/v2/model/ListLogsResponse.cpp index a9a24a285..f45c60a61 100644 --- a/lts/src/v2/model/ListLogsResponse.cpp +++ b/lts/src/v2/model/ListLogsResponse.cpp @@ -80,7 +80,7 @@ bool ListLogsResponse::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("analysisLogs")); if(!fieldValue.is_null()) { - std::vector> refVal; + std::vector refVal; ok &= ModelBase::fromJson(fieldValue, refVal); setAnalysisLogs(refVal); } @@ -152,12 +152,12 @@ void ListLogsResponse::unsetisQueryComplete() isQueryCompleteIsSet_ = false; } -std::vector>& ListLogsResponse::getAnalysisLogs() +std::vector& ListLogsResponse::getAnalysisLogs() { return analysisLogs_; } -void ListLogsResponse::setAnalysisLogs(const std::vector>& value) +void ListLogsResponse::setAnalysisLogs(const std::vector& value) { analysisLogs_ = value; analysisLogsIsSet_ = true; diff --git a/lts/src/v2/model/LogStreamResBody.cpp b/lts/src/v2/model/LogStreamResBody.cpp index 9ce149d87..5e97d7b97 100644 --- a/lts/src/v2/model/LogStreamResBody.cpp +++ b/lts/src/v2/model/LogStreamResBody.cpp @@ -18,11 +18,23 @@ LogStreamResBody::LogStreamResBody() logStreamIdIsSet_ = false; logStreamName_ = ""; logStreamNameIsSet_ = false; + logStreamNameAlias_ = ""; + logStreamNameAliasIsSet_ = false; tagIsSet_ = false; filterCount_ = 0; filterCountIsSet_ = false; isFavorite_ = false; isFavoriteIsSet_ = false; + whetherLogStorage_ = false; + whetherLogStorageIsSet_ = false; + hotColdSeparation_ = false; + hotColdSeparationIsSet_ = false; + authWebTracking_ = false; + authWebTrackingIsSet_ = false; + ttlInDays_ = 0; + ttlInDaysIsSet_ = false; + hotStorageDays_ = 0; + hotStorageDaysIsSet_ = false; } LogStreamResBody::~LogStreamResBody() = default; @@ -44,6 +56,9 @@ web::json::value LogStreamResBody::toJson() const if(logStreamNameIsSet_) { val[utility::conversions::to_string_t("log_stream_name")] = ModelBase::toJson(logStreamName_); } + if(logStreamNameAliasIsSet_) { + val[utility::conversions::to_string_t("log_stream_name_alias")] = ModelBase::toJson(logStreamNameAlias_); + } if(tagIsSet_) { val[utility::conversions::to_string_t("tag")] = ModelBase::toJson(tag_); } @@ -53,6 +68,21 @@ web::json::value LogStreamResBody::toJson() const if(isFavoriteIsSet_) { val[utility::conversions::to_string_t("is_favorite")] = ModelBase::toJson(isFavorite_); } + if(whetherLogStorageIsSet_) { + val[utility::conversions::to_string_t("whether_log_storage")] = ModelBase::toJson(whetherLogStorage_); + } + if(hotColdSeparationIsSet_) { + val[utility::conversions::to_string_t("hot_cold_separation")] = ModelBase::toJson(hotColdSeparation_); + } + if(authWebTrackingIsSet_) { + val[utility::conversions::to_string_t("auth_web_tracking")] = ModelBase::toJson(authWebTracking_); + } + if(ttlInDaysIsSet_) { + val[utility::conversions::to_string_t("ttl_in_days")] = ModelBase::toJson(ttlInDays_); + } + if(hotStorageDaysIsSet_) { + val[utility::conversions::to_string_t("hot_storage_days")] = ModelBase::toJson(hotStorageDays_); + } return val; } @@ -87,6 +117,15 @@ bool LogStreamResBody::fromJson(const web::json::value& val) setLogStreamName(refVal); } } + if(val.has_field(utility::conversions::to_string_t("log_stream_name_alias"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("log_stream_name_alias")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLogStreamNameAlias(refVal); + } + } if(val.has_field(utility::conversions::to_string_t("tag"))) { const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tag")); if(!fieldValue.is_null()) @@ -114,6 +153,51 @@ bool LogStreamResBody::fromJson(const web::json::value& val) setIsFavorite(refVal); } } + if(val.has_field(utility::conversions::to_string_t("whether_log_storage"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("whether_log_storage")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setWhetherLogStorage(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("hot_cold_separation"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("hot_cold_separation")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setHotColdSeparation(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("auth_web_tracking"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("auth_web_tracking")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setAuthWebTracking(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("ttl_in_days"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("ttl_in_days")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTtlInDays(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("hot_storage_days"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("hot_storage_days")); + if(!fieldValue.is_null()) + { + int32_t refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setHotStorageDays(refVal); + } + } return ok; } @@ -181,6 +265,27 @@ void LogStreamResBody::unsetlogStreamName() logStreamNameIsSet_ = false; } +std::string LogStreamResBody::getLogStreamNameAlias() const +{ + return logStreamNameAlias_; +} + +void LogStreamResBody::setLogStreamNameAlias(const std::string& value) +{ + logStreamNameAlias_ = value; + logStreamNameAliasIsSet_ = true; +} + +bool LogStreamResBody::logStreamNameAliasIsSet() const +{ + return logStreamNameAliasIsSet_; +} + +void LogStreamResBody::unsetlogStreamNameAlias() +{ + logStreamNameAliasIsSet_ = false; +} + std::map& LogStreamResBody::getTag() { return tag_; @@ -244,6 +349,111 @@ void LogStreamResBody::unsetisFavorite() isFavoriteIsSet_ = false; } +bool LogStreamResBody::isWhetherLogStorage() const +{ + return whetherLogStorage_; +} + +void LogStreamResBody::setWhetherLogStorage(bool value) +{ + whetherLogStorage_ = value; + whetherLogStorageIsSet_ = true; +} + +bool LogStreamResBody::whetherLogStorageIsSet() const +{ + return whetherLogStorageIsSet_; +} + +void LogStreamResBody::unsetwhetherLogStorage() +{ + whetherLogStorageIsSet_ = false; +} + +bool LogStreamResBody::isHotColdSeparation() const +{ + return hotColdSeparation_; +} + +void LogStreamResBody::setHotColdSeparation(bool value) +{ + hotColdSeparation_ = value; + hotColdSeparationIsSet_ = true; +} + +bool LogStreamResBody::hotColdSeparationIsSet() const +{ + return hotColdSeparationIsSet_; +} + +void LogStreamResBody::unsethotColdSeparation() +{ + hotColdSeparationIsSet_ = false; +} + +bool LogStreamResBody::isAuthWebTracking() const +{ + return authWebTracking_; +} + +void LogStreamResBody::setAuthWebTracking(bool value) +{ + authWebTracking_ = value; + authWebTrackingIsSet_ = true; +} + +bool LogStreamResBody::authWebTrackingIsSet() const +{ + return authWebTrackingIsSet_; +} + +void LogStreamResBody::unsetauthWebTracking() +{ + authWebTrackingIsSet_ = false; +} + +int32_t LogStreamResBody::getTtlInDays() const +{ + return ttlInDays_; +} + +void LogStreamResBody::setTtlInDays(int32_t value) +{ + ttlInDays_ = value; + ttlInDaysIsSet_ = true; +} + +bool LogStreamResBody::ttlInDaysIsSet() const +{ + return ttlInDaysIsSet_; +} + +void LogStreamResBody::unsetttlInDays() +{ + ttlInDaysIsSet_ = false; +} + +int32_t LogStreamResBody::getHotStorageDays() const +{ + return hotStorageDays_; +} + +void LogStreamResBody::setHotStorageDays(int32_t value) +{ + hotStorageDays_ = value; + hotStorageDaysIsSet_ = true; +} + +bool LogStreamResBody::hotStorageDaysIsSet() const +{ + return hotStorageDaysIsSet_; +} + +void LogStreamResBody::unsethotStorageDays() +{ + hotStorageDaysIsSet_ = false; +} + } } } diff --git a/lts/src/v2/model/Metadata.cpp b/lts/src/v2/model/Metadata.cpp index 7a49b2583..79ca6e5de 100644 --- a/lts/src/v2/model/Metadata.cpp +++ b/lts/src/v2/model/Metadata.cpp @@ -28,6 +28,10 @@ Metadata::Metadata() resourceProviderIsSet_ = false; ltsAlarmType_ = ""; ltsAlarmTypeIsSet_ = false; + logGroupName_ = ""; + logGroupNameIsSet_ = false; + logStreamName_ = ""; + logStreamNameIsSet_ = false; } Metadata::~Metadata() = default; @@ -64,6 +68,12 @@ web::json::value Metadata::toJson() const if(ltsAlarmTypeIsSet_) { val[utility::conversions::to_string_t("lts_alarm_type")] = ModelBase::toJson(ltsAlarmType_); } + if(logGroupNameIsSet_) { + val[utility::conversions::to_string_t("log_group_name")] = ModelBase::toJson(logGroupName_); + } + if(logStreamNameIsSet_) { + val[utility::conversions::to_string_t("log_stream_name")] = ModelBase::toJson(logStreamName_); + } return val; } @@ -143,6 +153,24 @@ bool Metadata::fromJson(const web::json::value& val) setLtsAlarmType(refVal); } } + if(val.has_field(utility::conversions::to_string_t("log_group_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("log_group_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLogGroupName(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("log_stream_name"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("log_stream_name")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLogStreamName(refVal); + } + } return ok; } @@ -315,6 +343,48 @@ void Metadata::unsetltsAlarmType() ltsAlarmTypeIsSet_ = false; } +std::string Metadata::getLogGroupName() const +{ + return logGroupName_; +} + +void Metadata::setLogGroupName(const std::string& value) +{ + logGroupName_ = value; + logGroupNameIsSet_ = true; +} + +bool Metadata::logGroupNameIsSet() const +{ + return logGroupNameIsSet_; +} + +void Metadata::unsetlogGroupName() +{ + logGroupNameIsSet_ = false; +} + +std::string Metadata::getLogStreamName() const +{ + return logStreamName_; +} + +void Metadata::setLogStreamName(const std::string& value) +{ + logStreamName_ = value; + logStreamNameIsSet_ = true; +} + +bool Metadata::logStreamNameIsSet() const +{ + return logStreamNameIsSet_; +} + +void Metadata::unsetlogStreamName() +{ + logStreamNameIsSet_ = false; +} + } } } diff --git a/lts/src/v2/model/Processor.cpp b/lts/src/v2/model/Processor.cpp new file mode 100644 index 000000000..5485d2e62 --- /dev/null +++ b/lts/src/v2/model/Processor.cpp @@ -0,0 +1,113 @@ + + +#include "huaweicloud/lts/v2/model/Processor.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Lts { +namespace V2 { +namespace Model { + + + + +Processor::Processor() +{ + type_ = ""; + typeIsSet_ = false; + detailIsSet_ = false; +} + +Processor::~Processor() = default; + +void Processor::validate() +{ +} + +web::json::value Processor::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(typeIsSet_) { + val[utility::conversions::to_string_t("type")] = ModelBase::toJson(type_); + } + if(detailIsSet_) { + val[utility::conversions::to_string_t("detail")] = ModelBase::toJson(detail_); + } + + return val; +} +bool Processor::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("detail"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("detail")); + if(!fieldValue.is_null()) + { + Detail refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDetail(refVal); + } + } + return ok; +} + + +std::string Processor::getType() const +{ + return type_; +} + +void Processor::setType(const std::string& value) +{ + type_ = value; + typeIsSet_ = true; +} + +bool Processor::typeIsSet() const +{ + return typeIsSet_; +} + +void Processor::unsettype() +{ + typeIsSet_ = false; +} + +Detail Processor::getDetail() const +{ + return detail_; +} + +void Processor::setDetail(const Detail& value) +{ + detail_ = value; + detailIsSet_ = true; +} + +bool Processor::detailIsSet() const +{ + return detailIsSet_; +} + +void Processor::unsetdetail() +{ + detailIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/lts/src/v2/model/SubTemplate.cpp b/lts/src/v2/model/SubTemplate.cpp index f88824e07..2641d7661 100644 --- a/lts/src/v2/model/SubTemplate.cpp +++ b/lts/src/v2/model/SubTemplate.cpp @@ -16,6 +16,8 @@ SubTemplate::SubTemplate() subTypeIsSet_ = false; content_ = ""; contentIsSet_ = false; + topic_ = ""; + topicIsSet_ = false; } SubTemplate::~SubTemplate() = default; @@ -34,6 +36,9 @@ web::json::value SubTemplate::toJson() const if(contentIsSet_) { val[utility::conversions::to_string_t("content")] = ModelBase::toJson(content_); } + if(topicIsSet_) { + val[utility::conversions::to_string_t("topic")] = ModelBase::toJson(topic_); + } return val; } @@ -59,6 +64,15 @@ bool SubTemplate::fromJson(const web::json::value& val) setContent(refVal); } } + if(val.has_field(utility::conversions::to_string_t("topic"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("topic")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setTopic(refVal); + } + } return ok; } @@ -105,6 +119,27 @@ void SubTemplate::unsetcontent() contentIsSet_ = false; } +std::string SubTemplate::getTopic() const +{ + return topic_; +} + +void SubTemplate::setTopic(const std::string& value) +{ + topic_ = value; + topicIsSet_ = true; +} + +bool SubTemplate::topicIsSet() const +{ + return topicIsSet_; +} + +void SubTemplate::unsettopic() +{ + topicIsSet_ = false; +} + } } } diff --git a/lts/src/v2/model/UpdateAccessConfigRequestBody.cpp b/lts/src/v2/model/UpdateAccessConfigRequestBody.cpp index c0b21c226..2d5c8c7e5 100644 --- a/lts/src/v2/model/UpdateAccessConfigRequestBody.cpp +++ b/lts/src/v2/model/UpdateAccessConfigRequestBody.cpp @@ -23,6 +23,21 @@ UpdateAccessConfigRequestBody::UpdateAccessConfigRequestBody() binaryCollectIsSet_ = false; clusterId_ = ""; clusterIdIsSet_ = false; + incrementalCollect_ = false; + incrementalCollectIsSet_ = false; + encodingFormat_ = ""; + encodingFormatIsSet_ = false; + processorType_ = ""; + processorTypeIsSet_ = false; + demoLog_ = ""; + demoLogIsSet_ = false; + demoFieldsIsSet_ = false; + processorsIsSet_ = false; + applicationId_ = ""; + applicationIdIsSet_ = false; + environmentId_ = ""; + environmentIdIsSet_ = false; + componentIdIsSet_ = false; } UpdateAccessConfigRequestBody::~UpdateAccessConfigRequestBody() = default; @@ -56,6 +71,33 @@ web::json::value UpdateAccessConfigRequestBody::toJson() const if(clusterIdIsSet_) { val[utility::conversions::to_string_t("cluster_id")] = ModelBase::toJson(clusterId_); } + if(incrementalCollectIsSet_) { + val[utility::conversions::to_string_t("incremental_collect")] = ModelBase::toJson(incrementalCollect_); + } + if(encodingFormatIsSet_) { + val[utility::conversions::to_string_t("encoding_format")] = ModelBase::toJson(encodingFormat_); + } + if(processorTypeIsSet_) { + val[utility::conversions::to_string_t("processor_type")] = ModelBase::toJson(processorType_); + } + if(demoLogIsSet_) { + val[utility::conversions::to_string_t("demo_log")] = ModelBase::toJson(demoLog_); + } + if(demoFieldsIsSet_) { + val[utility::conversions::to_string_t("demo_fields")] = ModelBase::toJson(demoFields_); + } + if(processorsIsSet_) { + val[utility::conversions::to_string_t("processors")] = ModelBase::toJson(processors_); + } + if(applicationIdIsSet_) { + val[utility::conversions::to_string_t("application_id")] = ModelBase::toJson(applicationId_); + } + if(environmentIdIsSet_) { + val[utility::conversions::to_string_t("environment_id")] = ModelBase::toJson(environmentId_); + } + if(componentIdIsSet_) { + val[utility::conversions::to_string_t("component_id")] = ModelBase::toJson(componentId_); + } return val; } @@ -126,6 +168,87 @@ bool UpdateAccessConfigRequestBody::fromJson(const web::json::value& val) setClusterId(refVal); } } + if(val.has_field(utility::conversions::to_string_t("incremental_collect"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("incremental_collect")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIncrementalCollect(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("encoding_format"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("encoding_format")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEncodingFormat(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("processor_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("processor_type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setProcessorType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("demo_log"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("demo_log")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDemoLog(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("demo_fields"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("demo_fields")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDemoFields(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("processors"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("processors")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setProcessors(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("application_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("application_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setApplicationId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("environment_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("environment_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnvironmentId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("component_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("component_id")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setComponentId(refVal); + } + } return ok; } @@ -277,6 +400,195 @@ void UpdateAccessConfigRequestBody::unsetclusterId() clusterIdIsSet_ = false; } +bool UpdateAccessConfigRequestBody::isIncrementalCollect() const +{ + return incrementalCollect_; +} + +void UpdateAccessConfigRequestBody::setIncrementalCollect(bool value) +{ + incrementalCollect_ = value; + incrementalCollectIsSet_ = true; +} + +bool UpdateAccessConfigRequestBody::incrementalCollectIsSet() const +{ + return incrementalCollectIsSet_; +} + +void UpdateAccessConfigRequestBody::unsetincrementalCollect() +{ + incrementalCollectIsSet_ = false; +} + +std::string UpdateAccessConfigRequestBody::getEncodingFormat() const +{ + return encodingFormat_; +} + +void UpdateAccessConfigRequestBody::setEncodingFormat(const std::string& value) +{ + encodingFormat_ = value; + encodingFormatIsSet_ = true; +} + +bool UpdateAccessConfigRequestBody::encodingFormatIsSet() const +{ + return encodingFormatIsSet_; +} + +void UpdateAccessConfigRequestBody::unsetencodingFormat() +{ + encodingFormatIsSet_ = false; +} + +std::string UpdateAccessConfigRequestBody::getProcessorType() const +{ + return processorType_; +} + +void UpdateAccessConfigRequestBody::setProcessorType(const std::string& value) +{ + processorType_ = value; + processorTypeIsSet_ = true; +} + +bool UpdateAccessConfigRequestBody::processorTypeIsSet() const +{ + return processorTypeIsSet_; +} + +void UpdateAccessConfigRequestBody::unsetprocessorType() +{ + processorTypeIsSet_ = false; +} + +std::string UpdateAccessConfigRequestBody::getDemoLog() const +{ + return demoLog_; +} + +void UpdateAccessConfigRequestBody::setDemoLog(const std::string& value) +{ + demoLog_ = value; + demoLogIsSet_ = true; +} + +bool UpdateAccessConfigRequestBody::demoLogIsSet() const +{ + return demoLogIsSet_; +} + +void UpdateAccessConfigRequestBody::unsetdemoLog() +{ + demoLogIsSet_ = false; +} + +std::vector& UpdateAccessConfigRequestBody::getDemoFields() +{ + return demoFields_; +} + +void UpdateAccessConfigRequestBody::setDemoFields(const std::vector& value) +{ + demoFields_ = value; + demoFieldsIsSet_ = true; +} + +bool UpdateAccessConfigRequestBody::demoFieldsIsSet() const +{ + return demoFieldsIsSet_; +} + +void UpdateAccessConfigRequestBody::unsetdemoFields() +{ + demoFieldsIsSet_ = false; +} + +std::vector& UpdateAccessConfigRequestBody::getProcessors() +{ + return processors_; +} + +void UpdateAccessConfigRequestBody::setProcessors(const std::vector& value) +{ + processors_ = value; + processorsIsSet_ = true; +} + +bool UpdateAccessConfigRequestBody::processorsIsSet() const +{ + return processorsIsSet_; +} + +void UpdateAccessConfigRequestBody::unsetprocessors() +{ + processorsIsSet_ = false; +} + +std::string UpdateAccessConfigRequestBody::getApplicationId() const +{ + return applicationId_; +} + +void UpdateAccessConfigRequestBody::setApplicationId(const std::string& value) +{ + applicationId_ = value; + applicationIdIsSet_ = true; +} + +bool UpdateAccessConfigRequestBody::applicationIdIsSet() const +{ + return applicationIdIsSet_; +} + +void UpdateAccessConfigRequestBody::unsetapplicationId() +{ + applicationIdIsSet_ = false; +} + +std::string UpdateAccessConfigRequestBody::getEnvironmentId() const +{ + return environmentId_; +} + +void UpdateAccessConfigRequestBody::setEnvironmentId(const std::string& value) +{ + environmentId_ = value; + environmentIdIsSet_ = true; +} + +bool UpdateAccessConfigRequestBody::environmentIdIsSet() const +{ + return environmentIdIsSet_; +} + +void UpdateAccessConfigRequestBody::unsetenvironmentId() +{ + environmentIdIsSet_ = false; +} + +std::vector& UpdateAccessConfigRequestBody::getComponentId() +{ + return componentId_; +} + +void UpdateAccessConfigRequestBody::setComponentId(const std::vector& value) +{ + componentId_ = value; + componentIdIsSet_ = true; +} + +bool UpdateAccessConfigRequestBody::componentIdIsSet() const +{ + return componentIdIsSet_; +} + +void UpdateAccessConfigRequestBody::unsetcomponentId() +{ + componentIdIsSet_ = false; +} + } } } diff --git a/lts/src/v2/model/UpdateAccessConfigResponse.cpp b/lts/src/v2/model/UpdateAccessConfigResponse.cpp index c622770c4..1ac9de5ef 100644 --- a/lts/src/v2/model/UpdateAccessConfigResponse.cpp +++ b/lts/src/v2/model/UpdateAccessConfigResponse.cpp @@ -30,6 +30,21 @@ UpdateAccessConfigResponse::UpdateAccessConfigResponse() binaryCollectIsSet_ = false; clusterId_ = ""; clusterIdIsSet_ = false; + encodingFormat_ = ""; + encodingFormatIsSet_ = false; + incrementalCollect_ = false; + incrementalCollectIsSet_ = false; + processorType_ = ""; + processorTypeIsSet_ = false; + demoLog_ = ""; + demoLogIsSet_ = false; + demoFieldsIsSet_ = false; + processorsIsSet_ = false; + applicationId_ = ""; + applicationIdIsSet_ = false; + environmentId_ = ""; + environmentIdIsSet_ = false; + componentIdIsSet_ = false; } UpdateAccessConfigResponse::~UpdateAccessConfigResponse() = default; @@ -75,6 +90,33 @@ web::json::value UpdateAccessConfigResponse::toJson() const if(clusterIdIsSet_) { val[utility::conversions::to_string_t("cluster_id")] = ModelBase::toJson(clusterId_); } + if(encodingFormatIsSet_) { + val[utility::conversions::to_string_t("encoding_format")] = ModelBase::toJson(encodingFormat_); + } + if(incrementalCollectIsSet_) { + val[utility::conversions::to_string_t("incremental_collect")] = ModelBase::toJson(incrementalCollect_); + } + if(processorTypeIsSet_) { + val[utility::conversions::to_string_t("processor_type")] = ModelBase::toJson(processorType_); + } + if(demoLogIsSet_) { + val[utility::conversions::to_string_t("demo_log")] = ModelBase::toJson(demoLog_); + } + if(demoFieldsIsSet_) { + val[utility::conversions::to_string_t("demo_fields")] = ModelBase::toJson(demoFields_); + } + if(processorsIsSet_) { + val[utility::conversions::to_string_t("processors")] = ModelBase::toJson(processors_); + } + if(applicationIdIsSet_) { + val[utility::conversions::to_string_t("application_id")] = ModelBase::toJson(applicationId_); + } + if(environmentIdIsSet_) { + val[utility::conversions::to_string_t("environment_id")] = ModelBase::toJson(environmentId_); + } + if(componentIdIsSet_) { + val[utility::conversions::to_string_t("component_id")] = ModelBase::toJson(componentId_); + } return val; } @@ -181,6 +223,87 @@ bool UpdateAccessConfigResponse::fromJson(const web::json::value& val) setClusterId(refVal); } } + if(val.has_field(utility::conversions::to_string_t("encoding_format"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("encoding_format")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEncodingFormat(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("incremental_collect"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("incremental_collect")); + if(!fieldValue.is_null()) + { + bool refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setIncrementalCollect(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("processor_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("processor_type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setProcessorType(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("demo_log"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("demo_log")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDemoLog(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("demo_fields"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("demo_fields")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setDemoFields(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("processors"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("processors")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setProcessors(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("application_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("application_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setApplicationId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("environment_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("environment_id")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setEnvironmentId(refVal); + } + } + if(val.has_field(utility::conversions::to_string_t("component_id"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("component_id")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setComponentId(refVal); + } + } return ok; } @@ -416,6 +539,195 @@ void UpdateAccessConfigResponse::unsetclusterId() clusterIdIsSet_ = false; } +std::string UpdateAccessConfigResponse::getEncodingFormat() const +{ + return encodingFormat_; +} + +void UpdateAccessConfigResponse::setEncodingFormat(const std::string& value) +{ + encodingFormat_ = value; + encodingFormatIsSet_ = true; +} + +bool UpdateAccessConfigResponse::encodingFormatIsSet() const +{ + return encodingFormatIsSet_; +} + +void UpdateAccessConfigResponse::unsetencodingFormat() +{ + encodingFormatIsSet_ = false; +} + +bool UpdateAccessConfigResponse::isIncrementalCollect() const +{ + return incrementalCollect_; +} + +void UpdateAccessConfigResponse::setIncrementalCollect(bool value) +{ + incrementalCollect_ = value; + incrementalCollectIsSet_ = true; +} + +bool UpdateAccessConfigResponse::incrementalCollectIsSet() const +{ + return incrementalCollectIsSet_; +} + +void UpdateAccessConfigResponse::unsetincrementalCollect() +{ + incrementalCollectIsSet_ = false; +} + +std::string UpdateAccessConfigResponse::getProcessorType() const +{ + return processorType_; +} + +void UpdateAccessConfigResponse::setProcessorType(const std::string& value) +{ + processorType_ = value; + processorTypeIsSet_ = true; +} + +bool UpdateAccessConfigResponse::processorTypeIsSet() const +{ + return processorTypeIsSet_; +} + +void UpdateAccessConfigResponse::unsetprocessorType() +{ + processorTypeIsSet_ = false; +} + +std::string UpdateAccessConfigResponse::getDemoLog() const +{ + return demoLog_; +} + +void UpdateAccessConfigResponse::setDemoLog(const std::string& value) +{ + demoLog_ = value; + demoLogIsSet_ = true; +} + +bool UpdateAccessConfigResponse::demoLogIsSet() const +{ + return demoLogIsSet_; +} + +void UpdateAccessConfigResponse::unsetdemoLog() +{ + demoLogIsSet_ = false; +} + +std::vector& UpdateAccessConfigResponse::getDemoFields() +{ + return demoFields_; +} + +void UpdateAccessConfigResponse::setDemoFields(const std::vector& value) +{ + demoFields_ = value; + demoFieldsIsSet_ = true; +} + +bool UpdateAccessConfigResponse::demoFieldsIsSet() const +{ + return demoFieldsIsSet_; +} + +void UpdateAccessConfigResponse::unsetdemoFields() +{ + demoFieldsIsSet_ = false; +} + +std::vector& UpdateAccessConfigResponse::getProcessors() +{ + return processors_; +} + +void UpdateAccessConfigResponse::setProcessors(const std::vector& value) +{ + processors_ = value; + processorsIsSet_ = true; +} + +bool UpdateAccessConfigResponse::processorsIsSet() const +{ + return processorsIsSet_; +} + +void UpdateAccessConfigResponse::unsetprocessors() +{ + processorsIsSet_ = false; +} + +std::string UpdateAccessConfigResponse::getApplicationId() const +{ + return applicationId_; +} + +void UpdateAccessConfigResponse::setApplicationId(const std::string& value) +{ + applicationId_ = value; + applicationIdIsSet_ = true; +} + +bool UpdateAccessConfigResponse::applicationIdIsSet() const +{ + return applicationIdIsSet_; +} + +void UpdateAccessConfigResponse::unsetapplicationId() +{ + applicationIdIsSet_ = false; +} + +std::string UpdateAccessConfigResponse::getEnvironmentId() const +{ + return environmentId_; +} + +void UpdateAccessConfigResponse::setEnvironmentId(const std::string& value) +{ + environmentId_ = value; + environmentIdIsSet_ = true; +} + +bool UpdateAccessConfigResponse::environmentIdIsSet() const +{ + return environmentIdIsSet_; +} + +void UpdateAccessConfigResponse::unsetenvironmentId() +{ + environmentIdIsSet_ = false; +} + +std::vector& UpdateAccessConfigResponse::getComponentId() +{ + return componentId_; +} + +void UpdateAccessConfigResponse::setComponentId(const std::vector& value) +{ + componentId_ = value; + componentIdIsSet_ = true; +} + +bool UpdateAccessConfigResponse::componentIdIsSet() const +{ + return componentIdIsSet_; +} + +void UpdateAccessConfigResponse::unsetcomponentId() +{ + componentIdIsSet_ = false; +} + } } } diff --git a/ocr/include/huaweicloud/ocr/v1/model/InvoiceVerificationRequestBody.h b/ocr/include/huaweicloud/ocr/v1/model/InvoiceVerificationRequestBody.h index 90e769f42..547551c5b 100644 --- a/ocr/include/huaweicloud/ocr/v1/model/InvoiceVerificationRequestBody.h +++ b/ocr/include/huaweicloud/ocr/v1/model/InvoiceVerificationRequestBody.h @@ -75,7 +75,7 @@ class HUAWEICLOUD_OCR_V1_EXPORT InvoiceVerificationRequestBody void setCheckCode(const std::string& value); /// - /// 合计金额。和票据上的金额的有效数字保持一致,例如票据上的金额为88.00,则需要输入字符串为“88.00”,才能验真成功。如果输入“88”或“88.0”可能会产生\"result_code\": \"1010\", \" Parameter error.\"报错。 发票种类为全电发票时,该参数须为价税合计金额,其他票种使用不含税合计金额。 - 以下种类发票,参数不可为空 增值税专用发票、增值税电子专用发票、机动车销售统一发票、二手车销售统一发票、区块链电子发票、全电发票。 - 填写发票合计金额(不含税) 增值税专用发票、增值税电子专用发票、机动车销售统一发票、区块链电子发票。 - 二手车发票需要填写发票车价合计金额 + /// 合计金额。和票据上的金额的有效数字保持一致,例如票据上的金额为88.00,则需要输入字符串为“88.00”,才能验真成功。如果输入“88”或“88.0”可能会产生\"result_code\": \"1010\", \" Parameter error.\"报错。 - 以下种类发票,参数不可为空 增值税专用发票、增值税电子专用发票、机动车销售统一发票、二手车销售统一发票、区块链电子发票、全电发票。 - 填写发票合计金额(不含税) 增值税专用发票、增值税电子专用发票、机动车销售统一发票、区块链电子发票。 - 填写发票车价合计 二手车发票。 - 填写发票合计金额 全电发票。 /// std::string getSubtotalAmount() const; diff --git a/ocr/include/huaweicloud/ocr/v1/model/SmartDocumentRecognizerRequestBody.h b/ocr/include/huaweicloud/ocr/v1/model/SmartDocumentRecognizerRequestBody.h index a4efb1718..41cedf0a5 100644 --- a/ocr/include/huaweicloud/ocr/v1/model/SmartDocumentRecognizerRequestBody.h +++ b/ocr/include/huaweicloud/ocr/v1/model/SmartDocumentRecognizerRequestBody.h @@ -57,7 +57,7 @@ class HUAWEICLOUD_OCR_V1_EXPORT SmartDocumentRecognizerRequestBody void setUrl(const std::string& value); /// - /// 单朝向模式开关。可选值包括: - true:打开单朝向模式 - false:关闭单朝向模式 未传入该参数时默认为false,即默认图片中的字段为多朝向 + /// 单朝向模式开关。可选值包括: - true:打开单朝向模式 - false:关闭单朝向模式 图片文字方向一致时,打开该开关可提升识别精度;图片文字方向不一致时,关闭该开关可支持多朝向文字识别。未传入该参数时默认为true,既默认图片中的字段为单朝向。 /// bool isSingleOrientationMode() const; @@ -65,6 +65,15 @@ class HUAWEICLOUD_OCR_V1_EXPORT SmartDocumentRecognizerRequestBody void unsetsingleOrientationMode(); void setSingleOrientationMode(bool value); + /// + /// 语种选择,未传入该参数时默认为中英文识别模式。参考[华为云通用文字支持语种](https://support.huaweicloud.com/api-ocr/ocr_03_0042.html)。 + /// + + std::string getLanguage() const; + bool languageIsSet() const; + void unsetlanguage(); + void setLanguage(const std::string& value); + /// /// 是否进行键值对(key-value)提取。若是,结果会以“kv_result”这一关键字返回。 /// @@ -111,7 +120,7 @@ class HUAWEICLOUD_OCR_V1_EXPORT SmartDocumentRecognizerRequestBody void setForm(bool value); /// - /// 是否进行公式识别,识别结果为latex序列。若是,结果会以“formula_result”这一关键字返回。 当前仅支持文档(例如论文)中的公式识别,不支持公式切片图像。 + /// 是否进行公式识别,识别结果为latex序列。若是,结果会以“formula_result”这一关键字返回。 - 开启公式识别后会降低响应速度。 - 当前仅支持3行以内公式识别,不支持3行以上的多行公式。 /// bool isFormula() const; @@ -145,6 +154,8 @@ class HUAWEICLOUD_OCR_V1_EXPORT SmartDocumentRecognizerRequestBody bool urlIsSet_; bool singleOrientationMode_; bool singleOrientationModeIsSet_; + std::string language_; + bool languageIsSet_; bool kv_; bool kvIsSet_; bool table_; diff --git a/ocr/src/v1/model/SmartDocumentRecognizerRequestBody.cpp b/ocr/src/v1/model/SmartDocumentRecognizerRequestBody.cpp index 0268fddce..a11cf3411 100644 --- a/ocr/src/v1/model/SmartDocumentRecognizerRequestBody.cpp +++ b/ocr/src/v1/model/SmartDocumentRecognizerRequestBody.cpp @@ -18,6 +18,8 @@ SmartDocumentRecognizerRequestBody::SmartDocumentRecognizerRequestBody() urlIsSet_ = false; singleOrientationMode_ = false; singleOrientationModeIsSet_ = false; + language_ = ""; + languageIsSet_ = false; kv_ = false; kvIsSet_ = false; table_ = false; @@ -55,6 +57,9 @@ web::json::value SmartDocumentRecognizerRequestBody::toJson() const if(singleOrientationModeIsSet_) { val[utility::conversions::to_string_t("single_orientation_mode")] = ModelBase::toJson(singleOrientationMode_); } + if(languageIsSet_) { + val[utility::conversions::to_string_t("language")] = ModelBase::toJson(language_); + } if(kvIsSet_) { val[utility::conversions::to_string_t("kv")] = ModelBase::toJson(kv_); } @@ -113,6 +118,15 @@ bool SmartDocumentRecognizerRequestBody::fromJson(const web::json::value& val) setSingleOrientationMode(refVal); } } + if(val.has_field(utility::conversions::to_string_t("language"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("language")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setLanguage(refVal); + } + } if(val.has_field(utility::conversions::to_string_t("kv"))) { const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("kv")); if(!fieldValue.is_null()) @@ -252,6 +266,27 @@ void SmartDocumentRecognizerRequestBody::unsetsingleOrientationMode() singleOrientationModeIsSet_ = false; } +std::string SmartDocumentRecognizerRequestBody::getLanguage() const +{ + return language_; +} + +void SmartDocumentRecognizerRequestBody::setLanguage(const std::string& value) +{ + language_ = value; + languageIsSet_ = true; +} + +bool SmartDocumentRecognizerRequestBody::languageIsSet() const +{ + return languageIsSet_; +} + +void SmartDocumentRecognizerRequestBody::unsetlanguage() +{ + languageIsSet_ = false; +} + bool SmartDocumentRecognizerRequestBody::isKv() const { return kv_; diff --git a/rds/include/huaweicloud/rds/v3/model/UserForList.h b/rds/include/huaweicloud/rds/v3/model/UserForList.h index 874ea160b..08fd44af4 100644 --- a/rds/include/huaweicloud/rds/v3/model/UserForList.h +++ b/rds/include/huaweicloud/rds/v3/model/UserForList.h @@ -9,7 +9,9 @@ #include #include +#include #include +#include namespace HuaweiCloud { namespace Sdk { @@ -47,10 +49,32 @@ class HUAWEICLOUD_RDS_V3_EXPORT UserForList void unsetname(); void setName(const std::string& value); + /// + /// 数据库及其权限。 + /// + + std::vector& getDatabases(); + bool databasesIsSet() const; + void unsetdatabases(); + void setDatabases(const std::vector& value); + + /// + /// 授权用户登录主机IP列表 • 若IP地址为%,则表示允许所有地址访问MySQL实例。 • 若IP地址为“10.10.10.%”,则表示10.10.10.X的IP地址都可以访问该MySQL实例。 • 支持添加多个IP地址。 + /// + + std::vector& getHosts(); + bool hostsIsSet() const; + void unsethosts(); + void setHosts(const std::vector& value); + protected: std::string name_; bool nameIsSet_; + std::vector databases_; + bool databasesIsSet_; + std::vector hosts_; + bool hostsIsSet_; }; diff --git a/rds/src/v3/model/UserForList.cpp b/rds/src/v3/model/UserForList.cpp index bc68a26c9..380ba3f91 100644 --- a/rds/src/v3/model/UserForList.cpp +++ b/rds/src/v3/model/UserForList.cpp @@ -14,6 +14,8 @@ UserForList::UserForList() { name_ = ""; nameIsSet_ = false; + databasesIsSet_ = false; + hostsIsSet_ = false; } UserForList::~UserForList() = default; @@ -29,6 +31,12 @@ web::json::value UserForList::toJson() const if(nameIsSet_) { val[utility::conversions::to_string_t("name")] = ModelBase::toJson(name_); } + if(databasesIsSet_) { + val[utility::conversions::to_string_t("databases")] = ModelBase::toJson(databases_); + } + if(hostsIsSet_) { + val[utility::conversions::to_string_t("hosts")] = ModelBase::toJson(hosts_); + } return val; } @@ -45,6 +53,24 @@ bool UserForList::fromJson(const web::json::value& val) setName(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("hosts"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("hosts")); + if(!fieldValue.is_null()) + { + std::vector refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setHosts(refVal); + } + } return ok; } @@ -70,6 +96,48 @@ void UserForList::unsetname() nameIsSet_ = false; } +std::vector& UserForList::getDatabases() +{ + return databases_; +} + +void UserForList::setDatabases(const std::vector& value) +{ + databases_ = value; + databasesIsSet_ = true; +} + +bool UserForList::databasesIsSet() const +{ + return databasesIsSet_; +} + +void UserForList::unsetdatabases() +{ + databasesIsSet_ = false; +} + +std::vector& UserForList::getHosts() +{ + return hosts_; +} + +void UserForList::setHosts(const std::vector& value) +{ + hosts_ = value; + hostsIsSet_ = true; +} + +bool UserForList::hostsIsSet() const +{ + return hostsIsSet_; +} + +void UserForList::unsethosts() +{ + hostsIsSet_ = false; +} + } } } diff --git a/vod/include/huaweicloud/vod/v1/VodClient.h b/vod/include/huaweicloud/vod/v1/VodClient.h index 61026deb6..aa522fa0f 100644 --- a/vod/include/huaweicloud/vod/v1/VodClient.h +++ b/vod/include/huaweicloud/vod/v1/VodClient.h @@ -106,6 +106,8 @@ #include #include #include +#include +#include #include #include #include @@ -132,6 +134,9 @@ #include #include #include +#include +#include +#include #include #include #include @@ -523,6 +528,14 @@ class HUAWEICLOUD_VOD_V1_EXPORT VodClient : public Client std::shared_ptr showPreheatingAsset( ShowPreheatingAssetRequest &request ); + // 查询媒资降冷配置 + // + // 查询媒资降冷配置。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr showStorageModeType( + ShowStorageModeTypeRequest &request + ); // 查询取回数据信息 // // ## 典型场景 ## @@ -606,6 +619,16 @@ class HUAWEICLOUD_VOD_V1_EXPORT VodClient : public Client std::shared_ptr updateStorageMode( UpdateStorageModeRequest &request ); + // 修改媒资降冷粒度 + // + // 修改媒资降冷粒度。 + // + // 默认为整个媒资粒度,支持转为仅原文件。 + // + // Please refer to HUAWEI cloud API Explorer for details. + std::shared_ptr updateStorageModeType( + UpdateStorageModeTypeRequest &request + ); // 修改自定义转码模板组 // // 修改自定义转码模板组。 diff --git a/vod/include/huaweicloud/vod/v1/VodMeta.h b/vod/include/huaweicloud/vod/v1/VodMeta.h index 747a9969b..b323691d2 100644 --- a/vod/include/huaweicloud/vod/v1/VodMeta.h +++ b/vod/include/huaweicloud/vod/v1/VodMeta.h @@ -54,6 +54,7 @@ class HUAWEICLOUD_VOD_V1_EXPORT VodMeta { static HttpRequestDef genRequestDefForShowAssetTempAuthority(); static HttpRequestDef genRequestDefForShowCdnStatistics(); static HttpRequestDef genRequestDefForShowPreheatingAsset(); + static HttpRequestDef genRequestDefForShowStorageModeType(); static HttpRequestDef genRequestDefForShowVodRetrieval(); static HttpRequestDef genRequestDefForShowVodStatistics(); static HttpRequestDef genRequestDefForUnpublishAssets(); @@ -63,6 +64,7 @@ class HUAWEICLOUD_VOD_V1_EXPORT VodMeta { static HttpRequestDef genRequestDefForUpdateBucketAuthorized(); static HttpRequestDef genRequestDefForUpdateCoverByThumbnail(); static HttpRequestDef genRequestDefForUpdateStorageMode(); + static HttpRequestDef genRequestDefForUpdateStorageModeType(); static HttpRequestDef genRequestDefForUpdateTemplateGroup(); static HttpRequestDef genRequestDefForUpdateTemplateGroupCollection(); static HttpRequestDef genRequestDefForUpdateTranscodeTemplate(); diff --git a/vod/include/huaweicloud/vod/v1/model/ShowStorageModeTypeRequest.h b/vod/include/huaweicloud/vod/v1/model/ShowStorageModeTypeRequest.h new file mode 100644 index 000000000..4376ed381 --- /dev/null +++ b/vod/include/huaweicloud/vod/v1/model/ShowStorageModeTypeRequest.h @@ -0,0 +1,59 @@ + +#ifndef HUAWEICLOUD_SDK_VOD_V1_MODEL_ShowStorageModeTypeRequest_H_ +#define HUAWEICLOUD_SDK_VOD_V1_MODEL_ShowStorageModeTypeRequest_H_ + + +#include + +#include +#include +#include + + +namespace HuaweiCloud { +namespace Sdk { +namespace Vod { +namespace V1 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_VOD_V1_EXPORT ShowStorageModeTypeRequest + : public ModelBase +{ +public: + ShowStorageModeTypeRequest(); + virtual ~ShowStorageModeTypeRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ShowStorageModeTypeRequest members + + +protected: + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + ShowStorageModeTypeRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_VOD_V1_MODEL_ShowStorageModeTypeRequest_H_ diff --git a/vod/include/huaweicloud/vod/v1/model/ShowStorageModeTypeResponse.h b/vod/include/huaweicloud/vod/v1/model/ShowStorageModeTypeResponse.h new file mode 100644 index 000000000..6c0452352 --- /dev/null +++ b/vod/include/huaweicloud/vod/v1/model/ShowStorageModeTypeResponse.h @@ -0,0 +1,67 @@ + +#ifndef HUAWEICLOUD_SDK_VOD_V1_MODEL_ShowStorageModeTypeResponse_H_ +#define HUAWEICLOUD_SDK_VOD_V1_MODEL_ShowStorageModeTypeResponse_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Vod { +namespace V1 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_VOD_V1_EXPORT ShowStorageModeTypeResponse + : public ModelBase, public HttpResponse +{ +public: + ShowStorageModeTypeResponse(); + virtual ~ShowStorageModeTypeResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// ShowStorageModeTypeResponse members + + /// + /// 降冷模式。 取值如下: - WHOLE:整个媒资粒度。 - ORIGIN:原文件粒度。 + /// + + std::string getStorageModeType() const; + bool storageModeTypeIsSet() const; + void unsetstorageModeType(); + void setStorageModeType(const std::string& value); + + +protected: + std::string storageModeType_; + bool storageModeTypeIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_VOD_V1_MODEL_ShowStorageModeTypeResponse_H_ diff --git a/vod/include/huaweicloud/vod/v1/model/UpdateStorageModeTypeReq.h b/vod/include/huaweicloud/vod/v1/model/UpdateStorageModeTypeReq.h new file mode 100644 index 000000000..be44d9024 --- /dev/null +++ b/vod/include/huaweicloud/vod/v1/model/UpdateStorageModeTypeReq.h @@ -0,0 +1,64 @@ + +#ifndef HUAWEICLOUD_SDK_VOD_V1_MODEL_UpdateStorageModeTypeReq_H_ +#define HUAWEICLOUD_SDK_VOD_V1_MODEL_UpdateStorageModeTypeReq_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Vod { +namespace V1 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// +/// +class HUAWEICLOUD_VOD_V1_EXPORT UpdateStorageModeTypeReq + : public ModelBase +{ +public: + UpdateStorageModeTypeReq(); + virtual ~UpdateStorageModeTypeReq(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpdateStorageModeTypeReq members + + /// + /// 降冷模式。 取值如下: - WHOLE:整个媒资粒度。 - ORIGIN:原文件粒度。 + /// + + std::string getStorageModeType() const; + bool storageModeTypeIsSet() const; + void unsetstorageModeType(); + void setStorageModeType(const std::string& value); + + +protected: + std::string storageModeType_; + bool storageModeTypeIsSet_; + +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_VOD_V1_MODEL_UpdateStorageModeTypeReq_H_ diff --git a/vod/include/huaweicloud/vod/v1/model/UpdateStorageModeTypeRequest.h b/vod/include/huaweicloud/vod/v1/model/UpdateStorageModeTypeRequest.h new file mode 100644 index 000000000..9f86571d9 --- /dev/null +++ b/vod/include/huaweicloud/vod/v1/model/UpdateStorageModeTypeRequest.h @@ -0,0 +1,71 @@ + +#ifndef HUAWEICLOUD_SDK_VOD_V1_MODEL_UpdateStorageModeTypeRequest_H_ +#define HUAWEICLOUD_SDK_VOD_V1_MODEL_UpdateStorageModeTypeRequest_H_ + + +#include + +#include +#include +#include + +#include + +namespace HuaweiCloud { +namespace Sdk { +namespace Vod { +namespace V1 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Request Object +/// +class HUAWEICLOUD_VOD_V1_EXPORT UpdateStorageModeTypeRequest + : public ModelBase +{ +public: + UpdateStorageModeTypeRequest(); + virtual ~UpdateStorageModeTypeRequest(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpdateStorageModeTypeRequest members + + /// + /// + /// + + UpdateStorageModeTypeReq getBody() const; + bool bodyIsSet() const; + void unsetbody(); + void setBody(const UpdateStorageModeTypeReq& value); + + +protected: + UpdateStorageModeTypeReq body_; + bool bodyIsSet_; + +#ifdef RTTR_FLAG + RTTR_ENABLE() +public: + UpdateStorageModeTypeRequest& dereference_from_shared_ptr(std::shared_ptr ptr) { + return *ptr; + } +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_VOD_V1_MODEL_UpdateStorageModeTypeRequest_H_ diff --git a/vod/include/huaweicloud/vod/v1/model/UpdateStorageModeTypeResponse.h b/vod/include/huaweicloud/vod/v1/model/UpdateStorageModeTypeResponse.h new file mode 100644 index 000000000..63c923c3a --- /dev/null +++ b/vod/include/huaweicloud/vod/v1/model/UpdateStorageModeTypeResponse.h @@ -0,0 +1,55 @@ + +#ifndef HUAWEICLOUD_SDK_VOD_V1_MODEL_UpdateStorageModeTypeResponse_H_ +#define HUAWEICLOUD_SDK_VOD_V1_MODEL_UpdateStorageModeTypeResponse_H_ + + +#include + +#include +#include +#include + + +namespace HuaweiCloud { +namespace Sdk { +namespace Vod { +namespace V1 { +namespace Model { + +using namespace HuaweiCloud::Sdk::Core::Utils; +using namespace HuaweiCloud::Sdk::Core::Http; +/// +/// Response Object +/// +class HUAWEICLOUD_VOD_V1_EXPORT UpdateStorageModeTypeResponse + : public ModelBase, public HttpResponse +{ +public: + UpdateStorageModeTypeResponse(); + virtual ~UpdateStorageModeTypeResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + ///////////////////////////////////////////// + /// UpdateStorageModeTypeResponse members + + +protected: + +#ifdef RTTR_FLAG + RTTR_ENABLE() +#endif +}; + + +} +} +} +} +} + +#endif // HUAWEICLOUD_SDK_VOD_V1_MODEL_UpdateStorageModeTypeResponse_H_ diff --git a/vod/src/v1/VodClient.cpp b/vod/src/v1/VodClient.cpp index 2fc87298a..2f69beec4 100644 --- a/vod/src/v1/VodClient.cpp +++ b/vod/src/v1/VodClient.cpp @@ -1767,6 +1767,35 @@ std::shared_ptr VodClient::showPreheatingAsset(Show return localVarResult; } +std::shared_ptr VodClient::showStorageModeType(ShowStorageModeTypeRequest &request) +{ + std::string localVarPath = "/v1/{project_id}/asset/storage-mode-type"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + + std::string localVarHttpBody; + + std::unique_ptr res = callApi("GET", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, VodMeta::genRequestDefForShowStorageModeType()); + + std::shared_ptr localVarResult = std::make_shared(); + localVarResult->setStatusCode(res->getStatusCode()); + localVarResult->setHeaderParams(res->getHeaderParams()); + localVarResult->setHttpBody(res->getHttpBody()); + + return localVarResult; +} std::shared_ptr VodClient::showVodRetrieval(ShowVodRetrievalRequest &request) { std::string localVarPath = "/v1/{project_id}/asset/vod-retrieval"; @@ -2151,6 +2180,47 @@ std::shared_ptr VodClient::updateStorageMode(UpdateSt return localVarResult; } +std::shared_ptr VodClient::updateStorageModeType(UpdateStorageModeTypeRequest &request) +{ + std::string localVarPath = "/v1/{project_id}/asset/storage-mode-type"; + + std::map localVarQueryParams; + std::map localVarHeaderParams; + std::map localVarFormParams; + std::map localVarPathParams; + + + bool isJson = false; + bool isMultiPart = false; + bool isBson = false; + std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson); + localVarHeaderParams["Content-Type"] = contentType; + + + std::string localVarHttpBody; + if (isJson) { + // handle json input + web::json::value localVarJson; + localVarJson = ModelBase::toJson(request.getBody()); + localVarHttpBody = utility::conversions::to_utf8string(localVarJson.serialize()); + } + + std::unique_ptr res = callApi("PUT", localVarPath, localVarPathParams, localVarQueryParams, + localVarHeaderParams, localVarHttpBody, VodMeta::genRequestDefForUpdateStorageModeType()); + + 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 VodClient::updateTemplateGroup(UpdateTemplateGroupRequest &request) { std::string localVarPath = "/v1.0/{project_id}/asset/template_group/transcodings"; diff --git a/vod/src/v1/VodMeta.cpp b/vod/src/v1/VodMeta.cpp index 2bec9b7f5..d7bc9a8d0 100644 --- a/vod/src/v1/VodMeta.cpp +++ b/vod/src/v1/VodMeta.cpp @@ -704,6 +704,11 @@ HttpRequestDef VodMeta::genRequestDefForShowPreheatingAsset() { return reqDefBuilder; } +HttpRequestDef VodMeta::genRequestDefForShowStorageModeType() { + HttpRequestDef reqDefBuilder; + return reqDefBuilder; +} + HttpRequestDef VodMeta::genRequestDefForShowVodRetrieval() { HttpRequestDef reqDefBuilder; reqDefBuilder.withRequestField(FieldDef().withName("StartTime") @@ -830,6 +835,15 @@ HttpRequestDef VodMeta::genRequestDefForUpdateStorageMode() { return reqDefBuilder; } +HttpRequestDef VodMeta::genRequestDefForUpdateStorageModeType() { + HttpRequestDef reqDefBuilder; + FieldDef bodyParam; + reqDefBuilder.withRequestField(bodyParam. + withName("Body"). + withLocationType(Body_)); + return reqDefBuilder; +} + HttpRequestDef VodMeta::genRequestDefForUpdateTemplateGroup() { HttpRequestDef reqDefBuilder; FieldDef headerParamXSdkDate; diff --git a/vod/src/v1/model/ShowStorageModeTypeRequest.cpp b/vod/src/v1/model/ShowStorageModeTypeRequest.cpp new file mode 100644 index 000000000..82a633575 --- /dev/null +++ b/vod/src/v1/model/ShowStorageModeTypeRequest.cpp @@ -0,0 +1,44 @@ + + +#include "huaweicloud/vod/v1/model/ShowStorageModeTypeRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Vod { +namespace V1 { +namespace Model { + + + + +ShowStorageModeTypeRequest::ShowStorageModeTypeRequest() +{ +} + +ShowStorageModeTypeRequest::~ShowStorageModeTypeRequest() = default; + +void ShowStorageModeTypeRequest::validate() +{ +} + +web::json::value ShowStorageModeTypeRequest::toJson() const +{ + web::json::value val = web::json::value::object(); + + + return val; +} +bool ShowStorageModeTypeRequest::fromJson(const web::json::value& val) +{ + bool ok = true; + + return ok; +} + + +} +} +} +} +} + + diff --git a/vod/src/v1/model/ShowStorageModeTypeResponse.cpp b/vod/src/v1/model/ShowStorageModeTypeResponse.cpp new file mode 100644 index 000000000..53672be3a --- /dev/null +++ b/vod/src/v1/model/ShowStorageModeTypeResponse.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/vod/v1/model/ShowStorageModeTypeResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Vod { +namespace V1 { +namespace Model { + + + + +ShowStorageModeTypeResponse::ShowStorageModeTypeResponse() +{ + storageModeType_ = ""; + storageModeTypeIsSet_ = false; +} + +ShowStorageModeTypeResponse::~ShowStorageModeTypeResponse() = default; + +void ShowStorageModeTypeResponse::validate() +{ +} + +web::json::value ShowStorageModeTypeResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(storageModeTypeIsSet_) { + val[utility::conversions::to_string_t("storage_mode_type")] = ModelBase::toJson(storageModeType_); + } + + return val; +} +bool ShowStorageModeTypeResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("storage_mode_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("storage_mode_type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setStorageModeType(refVal); + } + } + return ok; +} + + +std::string ShowStorageModeTypeResponse::getStorageModeType() const +{ + return storageModeType_; +} + +void ShowStorageModeTypeResponse::setStorageModeType(const std::string& value) +{ + storageModeType_ = value; + storageModeTypeIsSet_ = true; +} + +bool ShowStorageModeTypeResponse::storageModeTypeIsSet() const +{ + return storageModeTypeIsSet_; +} + +void ShowStorageModeTypeResponse::unsetstorageModeType() +{ + storageModeTypeIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/vod/src/v1/model/UpdateStorageModeTypeReq.cpp b/vod/src/v1/model/UpdateStorageModeTypeReq.cpp new file mode 100644 index 000000000..720c22629 --- /dev/null +++ b/vod/src/v1/model/UpdateStorageModeTypeReq.cpp @@ -0,0 +1,79 @@ + + +#include "huaweicloud/vod/v1/model/UpdateStorageModeTypeReq.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Vod { +namespace V1 { +namespace Model { + + + + +UpdateStorageModeTypeReq::UpdateStorageModeTypeReq() +{ + storageModeType_ = ""; + storageModeTypeIsSet_ = false; +} + +UpdateStorageModeTypeReq::~UpdateStorageModeTypeReq() = default; + +void UpdateStorageModeTypeReq::validate() +{ +} + +web::json::value UpdateStorageModeTypeReq::toJson() const +{ + web::json::value val = web::json::value::object(); + + if(storageModeTypeIsSet_) { + val[utility::conversions::to_string_t("storage_mode_type")] = ModelBase::toJson(storageModeType_); + } + + return val; +} +bool UpdateStorageModeTypeReq::fromJson(const web::json::value& val) +{ + bool ok = true; + + if(val.has_field(utility::conversions::to_string_t("storage_mode_type"))) { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("storage_mode_type")); + if(!fieldValue.is_null()) + { + std::string refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setStorageModeType(refVal); + } + } + return ok; +} + + +std::string UpdateStorageModeTypeReq::getStorageModeType() const +{ + return storageModeType_; +} + +void UpdateStorageModeTypeReq::setStorageModeType(const std::string& value) +{ + storageModeType_ = value; + storageModeTypeIsSet_ = true; +} + +bool UpdateStorageModeTypeReq::storageModeTypeIsSet() const +{ + return storageModeTypeIsSet_; +} + +void UpdateStorageModeTypeReq::unsetstorageModeType() +{ + storageModeTypeIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/vod/src/v1/model/UpdateStorageModeTypeRequest.cpp b/vod/src/v1/model/UpdateStorageModeTypeRequest.cpp new file mode 100644 index 000000000..0c713fbc4 --- /dev/null +++ b/vod/src/v1/model/UpdateStorageModeTypeRequest.cpp @@ -0,0 +1,78 @@ + + +#include "huaweicloud/vod/v1/model/UpdateStorageModeTypeRequest.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Vod { +namespace V1 { +namespace Model { + + + + +UpdateStorageModeTypeRequest::UpdateStorageModeTypeRequest() +{ + bodyIsSet_ = false; +} + +UpdateStorageModeTypeRequest::~UpdateStorageModeTypeRequest() = default; + +void UpdateStorageModeTypeRequest::validate() +{ +} + +web::json::value UpdateStorageModeTypeRequest::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 UpdateStorageModeTypeRequest::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()) + { + UpdateStorageModeTypeReq refVal; + ok &= ModelBase::fromJson(fieldValue, refVal); + setBody(refVal); + } + } + return ok; +} + + +UpdateStorageModeTypeReq UpdateStorageModeTypeRequest::getBody() const +{ + return body_; +} + +void UpdateStorageModeTypeRequest::setBody(const UpdateStorageModeTypeReq& value) +{ + body_ = value; + bodyIsSet_ = true; +} + +bool UpdateStorageModeTypeRequest::bodyIsSet() const +{ + return bodyIsSet_; +} + +void UpdateStorageModeTypeRequest::unsetbody() +{ + bodyIsSet_ = false; +} + +} +} +} +} +} + + diff --git a/vod/src/v1/model/UpdateStorageModeTypeResponse.cpp b/vod/src/v1/model/UpdateStorageModeTypeResponse.cpp new file mode 100644 index 000000000..baa292a8a --- /dev/null +++ b/vod/src/v1/model/UpdateStorageModeTypeResponse.cpp @@ -0,0 +1,44 @@ + + +#include "huaweicloud/vod/v1/model/UpdateStorageModeTypeResponse.h" +namespace HuaweiCloud { +namespace Sdk { +namespace Vod { +namespace V1 { +namespace Model { + + + + +UpdateStorageModeTypeResponse::UpdateStorageModeTypeResponse() +{ +} + +UpdateStorageModeTypeResponse::~UpdateStorageModeTypeResponse() = default; + +void UpdateStorageModeTypeResponse::validate() +{ +} + +web::json::value UpdateStorageModeTypeResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + + + return val; +} +bool UpdateStorageModeTypeResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + + return ok; +} + + +} +} +} +} +} + +