From 690b621baa6a0e3d4818f0d8b3e9315999cf4068 Mon Sep 17 00:00:00 2001 From: Huaweicloud-SDK Date: Thu, 13 Jun 2024 17:25:04 +0800 Subject: [PATCH] release 3.1.100 source code --- CHANGELOG.md | 532 +++ CHANGELOG_CN.md | 532 +++ VERSION | 2 +- all/pom.xml | 348 +- bundle/pom.xml | 6 +- core-bson/pom.xml | 6 +- core-xml/pom.xml | 6 +- core/pom.xml | 4 +- .../sdk/core/auth/AbstractCredentials.java | 6 + .../huaweicloud/sdk/core/TestCredentials.java | 50 + pom.xml | 2 +- services/aad/pom.xml | 6 +- services/antiddos/pom.xml | 6 +- services/aom/pom.xml | 6 +- services/aos/pom.xml | 6 +- .../sdk/aos/v1/region/AosRegion.java | 12 + services/apig/pom.xml | 6 +- services/apm/pom.xml | 6 +- services/as/pom.xml | 6 +- .../v1/model/CreateScalingPolicyV2Option.java | 44 + .../as/v1/model/IntervalAlarmActionsV2.java | 166 + .../as/v1/model/ScalingAllPolicyDetail.java | 44 + .../sdk/as/v1/model/ScalingPoliciesV2.java | 44 + .../as/v1/model/ScalingV2PolicyDetail.java | 44 + .../v1/model/UpdateScalingV2PolicyOption.java | 44 + services/asm/pom.xml | 6 +- services/bcs/pom.xml | 6 +- services/bms/pom.xml | 6 +- services/bss/pom.xml | 6 +- services/bssintl/pom.xml | 6 +- services/cae/pom.xml | 6 +- .../sdk/cae/v1/CaeAsyncClient.java | 32 + .../com/huaweicloud/sdk/cae/v1/CaeClient.java | 32 + .../com/huaweicloud/sdk/cae/v1/CaeMeta.java | 48 + .../v1/model/CreateComponentRequestBody.java | 25 +- ...eateComponentWithConfigurationRequest.java | 158 + ...ComponentWithConfigurationRequestBody.java | 207 + ...WithConfigurationRequestBodyMetadata.java} | 16 +- ...nentWithConfigurationRequestBodySpec.java} | 25 +- ...ateComponentWithConfigurationResponse.java | 239 ++ ...ntWithConfigurationResponseBodyStatus.java | 73 + services/campusgo/pom.xml | 6 +- services/cbh/pom.xml | 6 +- services/cbr/pom.xml | 6 +- services/cbs/pom.xml | 6 +- services/cc/pom.xml | 6 +- services/cce/pom.xml | 6 +- services/ccm/pom.xml | 6 +- services/cdm/pom.xml | 6 +- .../huaweicloud/sdk/cdm/v1/model/Input.java | 8 +- services/cdn/pom.xml | 6 +- services/ces/pom.xml | 6 +- services/cfw/pom.xml | 6 +- services/cgs/pom.xml | 6 +- services/classroom/pom.xml | 6 +- services/cloudide/pom.xml | 6 +- services/cloudpond/pom.xml | 6 +- services/cloudrtc/pom.xml | 6 +- services/cloudtable/pom.xml | 6 +- services/cloudtest/pom.xml | 6 +- .../cloudtest/v1/CloudtestAsyncClient.java | 1405 +++++++ .../sdk/cloudtest/v1/CloudtestClient.java | 1383 +++++++ .../sdk/cloudtest/v1/CloudtestMeta.java | 1522 +++++++- .../cloudtest/v1/model/AddRelationsInfo.java | 209 ++ .../cloudtest/v1/model/AlarmTemplateInfo.java | 238 ++ .../sdk/cloudtest/v1/model/AlertGroup.java | 167 + .../sdk/cloudtest/v1/model/AlertLevel.java | 179 + .../cloudtest/v1/model/AlertTemplateVo.java | 281 ++ .../sdk/cloudtest/v1/model/ApiError.java | 2 +- .../sdk/cloudtest/v1/model/AttachmentVo.java | 515 +++ .../sdk/cloudtest/v1/model/BasicAwRes.java | 1364 +++++++ .../BatchAddRelationsByOneCaseRequest.java | 105 + .../BatchAddRelationsByOneCaseResponse.java | 106 + .../model/BatchDeleteTestReportRequest.java | 114 + .../model/BatchDeleteTestReportResponse.java | 106 + .../v1/model/CaseAutomationDetailsVo.java | 116 + .../sdk/cloudtest/v1/model/CaseExecuteVo.java | 120 + .../sdk/cloudtest/v1/model/CasePassVo.java | 115 + .../v1/model/CheckPermissionRequest.java | 95 + .../v1/model/CheckPermissionResponse.java | 139 + .../model/CommRequestMindmapPageParamV3.java | 82 + .../v1/model/CommRequestSystemConfig.java | 82 + .../model/CommonResponseErrorOfAPITest.java | 95 + .../CreateRelationsByOneCaseRequest.java | 105 + .../CreateRelationsByOneCaseResponse.java | 106 + .../v1/model/CreateResourceUriRequest.java | 72 + .../v1/model/CreateResourceUriResponse.java | 73 + .../model/DeleteRelationsByOneCaseInfo.java | 161 + .../DeleteRelationsByOneCaseRequest.java | 105 + .../DeleteRelationsByOneCaseResponse.java | 106 + .../model/DetailTestTypeCasePassRateVo.java | 95 + .../sdk/cloudtest/v1/model/DnsMapping.java | 91 + .../cloudtest/v1/model/DnsMappingNode.java | 114 + .../v1/model/GetPublicLibAndAwsResp.java | 271 ++ .../v1/model/IdAndNameAndValueVo.java | 119 + .../v1/model/IssueListFilterInfo.java | 201 + .../v1/model/IssueListPiFilterInfo.java | 114 + .../v1/model/IssuePassDetailsVo.java | 119 + .../ListAlertGroupsByConditionRequest.java | 105 + ...ListAlertGroupsByConditionRequestBody.java | 248 ++ .../ListAlertGroupsByConditionResponse.java | 96 + .../v1/model/ListAlertTemplatesRequest.java | 142 + .../v1/model/ListAlertTemplatesResponse.java | 526 +++ .../v1/model/ListAllBranchesRequest.java | 119 + .../v1/model/ListAllBranchesResponse.java | 106 + .../model/ListAllConfigItemByTypeRequest.java | 105 + .../ListAllConfigItemByTypeRequestBody.java | 114 + .../ListAllConfigItemByTypeResponse.java | 96 + .../v1/model/ListAllIteratorsRequest.java | 72 + .../v1/model/ListAllIteratorsResponse.java | 209 ++ .../v1/model/ListAttachmentsRequest.java | 119 + .../v1/model/ListAttachmentsResponse.java | 92 + .../v1/model/ListBasicAwRequest.java | 95 + .../v1/model/ListBasicAwResponse.java | 186 + .../v1/model/ListIssueTreeRequest.java | 129 + .../v1/model/ListIssueTreeResponse.java | 92 + .../model/ListProjectFieldConfigsRequest.java | 72 + .../ListProjectFieldConfigsResponse.java | 186 + .../ListProjectTestCaseFieldsRequest.java | 72 + .../ListProjectTestCaseFieldsResponse.java | 92 + .../v1/model/ListPublicLibAndAwsRequest.java | 72 + .../v1/model/ListPublicLibAndAwsResponse.java | 195 + .../v1/model/ListReportsRequest.java | 172 + .../v1/model/ListReportsResponse.java | 106 + .../v1/model/ListResourcePoolsRequest.java | 72 + .../v1/model/ListResourcePoolsResponse.java | 162 + .../v1/model/ListTaskTestCasesRequest.java | 105 + .../v1/model/ListTaskTestCasesResponse.java | 172 + .../ListTestReportsByConditionRequest.java | 170 + .../ListTestReportsByConditionResponse.java | 209 ++ .../v1/model/ListTestTypesRequest.java | 72 + .../v1/model/ListTestTypesResponse.java | 92 + .../v1/model/ListUsageInfosRequest.java | 72 + .../v1/model/ListUsageInfosResponse.java | 92 + .../v1/model/ListUserDnsMappingRequest.java | 72 + .../v1/model/ListUserDnsMappingResponse.java | 186 + .../v1/model/ListUserPackageUsageRequest.java | 72 + .../model/ListUserPackageUsageResponse.java | 148 + .../v1/model/ListUserPopupInfoRequest.java | 72 + .../v1/model/ListUserPopupInfoResponse.java | 139 + .../v1/model/ListVariablesRequest.java | 142 + .../v1/model/ListVariablesResponse.java | 186 + .../v1/model/MindmapPageParamV3.java | 414 ++ .../sdk/cloudtest/v1/model/PackageUsage.java | 95 + .../sdk/cloudtest/v1/model/PageResults.java | 185 + .../sdk/cloudtest/v1/model/PiFilterInfo.java | 114 + .../sdk/cloudtest/v1/model/PiInfo.java | 114 + .../sdk/cloudtest/v1/model/PopUpInfo.java | 95 + .../v1/model/ProjectFieldConfigOptionVo.java | 304 ++ .../v1/model/ProjectFieldConfigVo.java | 627 ++++ .../v1/model/ProjectTestCaseFieldVo.java | 443 +++ .../v1/model/QueryIssueTreeInfo.java | 321 ++ .../model/QueryRequirementsOverviewInfo.java | 199 + .../v1/model/QueryTaskTestCasesInfo.java | 232 ++ .../v1/model/QueryTestItemTreeInfo.java | 317 ++ .../v1/model/RelateTaskTestCasesVo.java | 214 ++ .../sdk/cloudtest/v1/model/RelationInfo.java | 214 ++ .../v1/model/RequirementOverviewVo.java | 313 ++ .../v1/model/RequirementsOverviewVo.java | 116 + .../cloudtest/v1/model/ResourcePoolVo.java | 166 + .../ResultValueListCustomReportListVo.java | 208 + .../ResultValueListProjectFieldConfigVo.java | 208 + .../model/ResultValueListResourcePoolVo.java | 208 + .../v1/model/ResultValueListTestItemVo.java | 208 + .../model/ResultValueListTestVersionVo.java | 208 + .../ResultValueRequirementsOverviewVo.java | 199 + .../v1/model/ResultValueStringForOk.java} | 36 +- .../v1/model/SaveTaskSettingRequest.java | 105 + .../v1/model/SaveTaskSettingRequestBody.java | 173 + .../v1/model/SaveTaskSettingResponse.java | 96 + ...ShowAllConfigValueByTypeAndKeyRequest.java | 119 + ...howAllConfigValueByTypeAndKeyResponse.java | 294 ++ .../model/ShowAllFeatureChildrenRequest.java | 105 + .../model/ShowAllFeatureChildrenResponse.java | 186 + .../v1/model/ShowBackgroundInfoRequest.java | 72 + .../v1/model/ShowBackgroundInfoResponse.java | 145 + .../v1/model/ShowDisclaimerRecordRequest.java | 72 + .../model/ShowDisclaimerRecordResponse.java | 73 + .../v1/model/ShowDomainInfoRequest.java | 34 + .../v1/model/ShowDomainInfoResponse.java | 73 + .../v1/model/ShowFeatureChildrenRequest.java | 105 + .../v1/model/ShowFeatureChildrenResponse.java | 186 + .../v1/model/ShowFreeDeclarationRequest.java | 34 + .../v1/model/ShowFreeDeclarationResponse.java | 73 + .../v1/model/ShowIfTaskNameRepeatRequest.java | 119 + .../model/ShowIfTaskNameRepeatResponse.java | 186 + .../v1/model/ShowIfUserNameRepeatRequest.java | 119 + .../model/ShowIfUserNameRepeatResponse.java | 73 + .../v1/model/ShowIteratorByDefectRequest.java | 95 + .../model/ShowIteratorByDefectResponse.java | 1280 +++++++ .../v1/model/ShowMindmapByPageRequest.java | 105 + .../v1/model/ShowMindmapByPageResponse.java | 83 + .../model/ShowMindmapCreatorNameRequest.java | 72 + .../ShowMindmapCreatorNameResponse.java} | 76 +- .../v1/model/ShowProgressRequest.java | 96 + .../v1/model/ShowProgressResponse.java | 560 +++ .../ShowRequirementsOverviewRequest.java | 129 + .../ShowRequirementsOverviewResponse.java | 139 + .../v1/model/ShowSystemConfigsRequest.java | 105 + .../v1/model/ShowSystemConfigsResponse.java | 139 + .../v1/model/ShowTestCaseRequest.java | 189 + .../v1/model/ShowTestCaseResponse.java | 3333 +++++++++++++++++ .../v1/model/ShowUserAccessInfoRequest.java | 72 + .../v1/model/ShowUserAccessInfoResponse.java | 106 + .../sdk/cloudtest/v1/model/SimpleIssueVo.java | 142 + .../sdk/cloudtest/v1/model/SystemConfig.java | 260 ++ .../cloudtest/v1/model/TestCaseStepVo.java | 95 + .../sdk/cloudtest/v1/model/TestItemVo.java | 837 +++++ .../sdk/cloudtest/v1/model/TestReportVo.java | 1099 ++++++ .../sdk/cloudtest/v1/model/TestVersionVo.java | 1279 +++++++ .../sdk/cloudtest/v1/model/UsageInfos.java | 208 + .../sdk/cloudtest/v1/model/VariableRes.java | 813 ++++ .../sdk/cloudtest/v1/model/WorkItemVo.java | 909 +++++ services/cms/pom.xml | 6 +- services/codeartsartifact/pom.xml | 6 +- services/codeartsbuild/pom.xml | 6 +- services/codeartscheck/pom.xml | 6 +- services/codeartsdeploy/pom.xml | 6 +- services/codeartsinspector/pom.xml | 6 +- services/codeartspipeline/pom.xml | 6 +- services/codecraft/pom.xml | 6 +- services/codehub/pom.xml | 6 +- services/config/pom.xml | 6 +- .../sdk/config/v1/ConfigAsyncClient.java | 256 ++ .../sdk/config/v1/ConfigClient.java | 254 ++ .../huaweicloud/sdk/config/v1/ConfigMeta.java | 324 ++ ...tchCreateRemediationExceptionsRequest.java | 106 + ...reateRemediationExceptionsRequestBody.java | 92 + ...chCreateRemediationExceptionsResponse.java | 36 + ...tchDeleteRemediationExceptionsRequest.java | 106 + ...eleteRemediationExceptionsRequestBody.java | 92 + ...chDeleteRemediationExceptionsResponse.java | 36 + .../model/CreateConformancePackRequest.java | 104 +- ...UpdateRemediationConfigurationRequest.java | 106 + ...pdateRemediationConfigurationResponse.java | 382 ++ ...ateOrganizationConformancePackRequest.java | 105 +- ...DeleteRemediationConfigurationRequest.java | 72 + ...eleteRemediationConfigurationResponse.java | 36 + .../ListRemediationExceptionsRequest.java | 168 + .../ListRemediationExceptionsResponse.java | 124 + ...stRemediationExecutionStatusesRequest.java | 168 + ...tRemediationExecutionStatusesResponse.java | 124 + .../RemediationConfigurationRequestBody.java | 449 +++ .../config/v1/model/RemediationException.java | 142 + .../v1/model/RemediationExceptionRequest.java | 95 + .../config/v1/model/RemediationExecution.java | 326 ++ .../model/RemediationResourceParameter.java | 72 + .../v1/model/RemediationRunRequestBody.java | 115 + .../v1/model/RemediationStaticParameter.java | 95 + .../model/RunRemediationExecutionRequest.java | 105 + .../RunRemediationExecutionResponse.java | 36 + .../ShowRemediationConfigurationRequest.java | 72 + .../ShowRemediationConfigurationResponse.java | 379 ++ services/cph/pom.xml | 6 +- services/cpts/pom.xml | 6 +- services/cse/pom.xml | 6 +- services/csms/pom.xml | 6 +- services/css/pom.xml | 6 +- services/cts/pom.xml | 6 +- services/das/pom.xml | 6 +- services/dataartsinsight/pom.xml | 6 +- services/dataartsstudio/pom.xml | 6 +- services/dbss/pom.xml | 6 +- services/dc/pom.xml | 6 +- services/dcs/pom.xml | 6 +- .../sdk/dcs/v2/model/TargetInstanceBody.java | 32 +- services/ddm/pom.xml | 6 +- services/dds/pom.xml | 6 +- services/deh/pom.xml | 6 +- services/devsecurity/pom.xml | 6 +- services/devstar/pom.xml | 6 +- services/dgc/pom.xml | 6 +- .../v1/model/ListScriptResultsRequest.java | 4 +- .../v1/model/ListScriptResultsResponse.java | 68 +- .../huaweicloud/sdk/dgc/v1/model/Result.java | 165 +- services/dis/pom.xml | 6 +- services/dlf/pom.xml | 6 +- services/dli/pom.xml | 6 +- .../sdk/dli/v1/DliAsyncClient.java | 31 + .../com/huaweicloud/sdk/dli/v1/DliClient.java | 31 + .../com/huaweicloud/sdk/dli/v1/DliMeta.java | 26 + .../dli/v1/model/CreateStreamJobRequest.java | 82 + .../v1/model/CreateStreamJobRequestBody.java | 300 ++ .../dli/v1/model/CreateStreamJobResponse.java | 130 + .../sdk/dli/v1/model/FlinkJarParameter.java | 201 + .../sdk/dli/v1/model/FlinkResourceConfig.java | 162 + .../dli/v1/model/FlinkRestoreStrategy.java | 144 + .../sdk/dli/v1/model/FlinkRuntimeConfig.java | 138 + .../sdk/dli/v1/model/FlinkSqlParameter.java | 95 + .../sdk/dli/v1/model/Properties.java | 34 + .../sdk/dli/v1/model/ResourceSpec.java | 95 + .../dli/v1/model/StreamClassLoggerLevel.java | 95 + .../dli/v1/model/StreamEnvironmentConfig.java | 143 + .../sdk/dli/v1/model/StreamJobStatus.java | 119 + .../sdk/dli/v1/model/StreamLoggingConfig.java | 163 + .../sdk/dli/v1/model/StreamRuntimeConfig.java | 171 + services/dns/pom.xml | 6 +- services/dris/pom.xml | 6 +- services/drs/pom.xml | 6 +- services/dsc/pom.xml | 6 +- services/dss/pom.xml | 6 +- services/dwr/pom.xml | 6 +- services/dws/pom.xml | 6 +- .../sdk/dws/v2/region/DwsRegion.java | 3 + services/ec/pom.xml | 6 +- services/ecs/pom.xml | 6 +- .../sdk/ecs/v2/model/ServerDetail.java | 19 +- services/edgesec/pom.xml | 6 +- services/eds/pom.xml | 6 +- services/eg/pom.xml | 6 +- services/eihealth/pom.xml | 6 +- services/eip/pom.xml | 6 +- .../eip/v3/model/PublicipInstanceResp.java | 6 - .../sdk/eip/v3/model/PublicipUpdateResp.java | 6 - .../eip/v3/model/UpdatePublicipOption.java | 12 +- services/elb/pom.xml | 6 +- services/eps/pom.xml | 6 +- .../sdk/eps/v1/region/EpsRegion.java | 4 + services/er/pom.xml | 6 +- services/evs/pom.xml | 6 +- services/expert/pom.xml | 6 +- services/frs/pom.xml | 6 +- services/functiongraph/pom.xml | 6 +- services/ga/pom.xml | 6 +- services/gaussdb/pom.xml | 6 +- .../ShowDedicatedResourceInfoResponse.java | 24 +- services/gaussdbfornosql/pom.xml | 6 +- services/gaussdbforopengauss/pom.xml | 6 +- services/geip/pom.xml | 6 +- services/ges/pom.xml | 6 +- services/gsl/pom.xml | 6 +- services/hilens/pom.xml | 6 +- services/hss/pom.xml | 6 +- services/iam/pom.xml | 6 +- services/iamaccessanalyzer/pom.xml | 6 +- services/identitycenter/pom.xml | 6 +- services/identitycenterstore/pom.xml | 6 +- services/idme/pom.xml | 6 +- services/idmeclassicapi/pom.xml | 6 +- services/iec/pom.xml | 6 +- services/ief/pom.xml | 6 +- services/image/pom.xml | 6 +- services/imagesearch/pom.xml | 6 +- services/ims/pom.xml | 6 +- services/iotanalytics/pom.xml | 6 +- services/iotda/pom.xml | 6 +- services/iotedge/pom.xml | 6 +- .../sdk/iotedge/v2/IoTEdgeAsyncClient.java | 63 + .../sdk/iotedge/v2/IoTEdgeClient.java | 62 + .../sdk/iotedge/v2/IoTEdgeMeta.java | 57 + .../sdk/iotedge/v2/model/HostInfoDTO.java | 272 ++ .../sdk/iotedge/v2/model/NPUDetailsDTO.java | 234 ++ .../sdk/iotedge/v2/model/NpuUsedInfoDTO.java | 123 + .../model/ShowEdgeNodeHostsInfoRequest.java | 72 + .../model/ShowEdgeNodeHostsInfoResponse.java | 92 + .../v2/model/UpdateEdgeNodeRequest.java | 105 + .../v2/model/UpdateEdgeNodeResponse.java | 1043 ++++++ .../iotedge/v2/model/UpdateNodeReqDTO.java | 343 ++ .../model/UpdateOfflineCacheConfigsDTO.java | 74 + services/ivs/pom.xml | 6 +- services/kafka/pom.xml | 6 +- services/kms/pom.xml | 6 +- services/koomap/pom.xml | 6 +- services/koomessage/pom.xml | 6 +- services/koophone/pom.xml | 6 +- services/kps/pom.xml | 6 +- services/kvs/pom.xml | 8 +- .../sdk/kvs/v1/KvsAsyncClient.java | 2 + .../com/huaweicloud/sdk/kvs/v1/KvsClient.java | 2 + .../sdk/kvs/v1/model/BatchWriteKvRequest.java | 2 +- .../sdk/kvs/v1/model/ComposedExpression.java | 4 +- .../sdk/kvs/v1/model/CreateTableRequest.java | 2 +- .../sdk/kvs/v1/model/DeleteKvRequest.java | 2 +- .../kvs/v1/model/DescribeTableRequest.java | 2 +- .../sdk/kvs/v1/model/Expression.java | 72 +- .../sdk/kvs/v1/model/GetKvRequest.java | 2 +- .../v1/model/GlobalSecondaryIndexInfo.java | 2 +- .../sdk/kvs/v1/model/KvOptions.java | 2 +- .../kvs/v1/model/ListStoreRequestBody.java | 4 +- .../sdk/kvs/v1/model/ListStoreResponse.java | 2 +- .../sdk/kvs/v1/model/ListTableRequest.java | 2 +- .../sdk/kvs/v1/model/ListTableResponse.java | 2 +- .../sdk/kvs/v1/model/PutKvRequest.java | 2 +- .../sdk/kvs/v1/model/ScanKvRequest.java | 2 +- .../sdk/kvs/v1/model/ScanKvResponse.java | 2 +- .../sdk/kvs/v1/model/ScanSkeyKvRequest.java | 2 +- .../kvs/v1/model/ScanSkeyKvRequestBody.java | 2 +- .../sdk/kvs/v1/model/ScanSkeyKvResponse.java | 2 +- .../kvs/v1/model/SingleFieldExpression.java | 6 +- .../sdk/kvs/v1/model/UpdateFields.java | 2 +- .../sdk/kvs/v1/model/UpdateKvRequest.java | 2 +- services/lakeformation/pom.xml | 6 +- services/live/pom.xml | 6 +- services/lts/pom.xml | 6 +- services/mapds/pom.xml | 6 +- services/mas/pom.xml | 6 +- services/meeting/pom.xml | 6 +- services/metastudio/pom.xml | 6 +- .../metastudio/v1/MetaStudioAsyncClient.java | 241 +- .../sdk/metastudio/v1/MetaStudioClient.java | 236 +- .../sdk/metastudio/v1/MetaStudioMeta.java | 471 ++- .../v1/model/AssetActionResult.java | 222 ++ .../metastudio/v1/model/AssetFileInfo.java | 10 +- .../v1/model/AssetSharedConfig.java | 219 ++ .../v1/model/BatchAssetActionReq.java | 243 ++ .../model/BatchExecuteAssetActionRequest.java | 156 + .../BatchExecuteAssetActionResponse.java | 117 + .../sdk/metastudio/v1/model/CommitJobReq.java | 78 +- .../model/Create2DDigitalHumanVideoReq.java | 127 +- ... CreateAssetByReplicationInfoRequest.java} | 16 +- ...CreateAssetByReplicationInfoResponse.java} | 8 +- .../v1/model/CreateDigitalAssetRequest.java | 30 +- .../model/CreateDigitalAssetRequestBody.java | 12 +- .../CreateDigitalHumanBusinessCardReq.java | 38 +- .../CreatePhotoDigitalHumanVideoReq.java | 38 +- .../v1/model/CreateProductRequest.java | 182 + .../v1/model/CreateProductRequestBody.java | 273 ++ .../v1/model/CreateProductResponse.java | 98 + .../metastudio/v1/model/CreateRobotReq.java | 25 + .../v1/model/CreateSmartLiveRoomReq.java | 47 +- .../v1/model/CreateTrainingJobReq.java | 78 +- .../v1/model/DeleteProductRequest.java | 172 + .../v1/model/DeleteProductResponse.java | 75 + .../metastudio/v1/model/DigitalAssetInfo.java | 29 +- .../metastudio/v1/model/EmotionConfig.java | 159 - .../v1/model/ExternalVoiceAssetMeta.java | 66 +- .../sdk/metastudio/v1/model/HitCondition.java | 10 +- .../v1/model/HumanModel2DAssetMeta.java | 48 +- .../v1/model/LargeFilesCreateReq.java | 2 +- .../v1/model/ListAssetsRequest.java | 150 +- .../v1/model/ListProductsRequest.java | 376 ++ .../v1/model/ListProductsResponse.java | 143 + .../v1/model/LiveEventCallBackConfig.java | 12 +- .../v1/model/LiveRoomInteractionRuleInfo.java | 340 ++ .../v1/model/OutputAssetConfig.java | 28 +- .../v1/model/ProductAssetReleation.java | 213 ++ .../metastudio/v1/model/ProductBasicInfo.java | 249 ++ .../v1/model/ProductCoverDetailInfo.java | 119 + ...ationConfig.java => ProductCoverInfo.java} | 34 +- .../v1/model/ProductDetailInfo.java | 431 +++ .../v1/model/ProductMediaDetailInfo.java | 319 ++ .../metastudio/v1/model/ProductMediaInfo.java | 202 + .../metastudio/v1/model/ProductTextInfo.java | 95 + .../v1/model/RTCLiveEventCallBackConfig.java | 91 + .../sdk/metastudio/v1/model/RobotInfo.java | 54 +- .../v1/model/SetProductAssetRequest.java | 205 + .../v1/model/SetProductAssetResponse.java | 75 + .../sdk/metastudio/v1/model/ShootScript.java | 82 +- .../v1/model/ShootScriptDetail.java | 83 +- .../v1/model/ShowAssetResponse.java | 29 +- .../v1/model/ShowProductRequest.java | 172 + .../v1/model/ShowProductResponse.java | 467 +++ .../v1/model/ShowRobotResponse.java | 50 + .../v1/model/ShowSmartLiveResponse.java | 34 + .../v1/model/ShowSmartLiveRoomResponse.java | 48 +- .../sdk/metastudio/v1/model/SmartLiveJob.java | 34 + .../v1/model/StartSmartLiveReq.java | 34 + .../metastudio/v1/model/SystemProperty.java | 10 +- .../metastudio/v1/model/TriggerProcess.java | 47 +- .../model/UpdateDigitalAssetRequestBody.java | 12 +- .../v1/model/UpdateDigitalAssetResponse.java | 29 +- .../v1/model/UpdateProductRequest.java | 205 + .../v1/model/UpdateProductRequestBody.java | 348 ++ .../v1/model/UpdateProductResponse.java | 75 + .../metastudio/v1/model/UpdateRobotReq.java | 25 + .../v1/model/UpdateSmartLiveRoomResponse.java | 47 +- .../sdk/metastudio/v1/model/VideoConfig.java | 39 +- .../metastudio/v1/model/VoiceCapability.java | 247 ++ .../v1/model/VoiceModelAssetMeta.java | 67 +- services/moderation/pom.xml | 6 +- services/mpc/pom.xml | 6 +- services/mrs/pom.xml | 6 +- services/msgsms/pom.xml | 6 +- services/mssi/pom.xml | 6 +- services/nat/pom.xml | 6 +- services/nlp/pom.xml | 6 +- services/oa/pom.xml | 6 +- services/obs/pom.xml | 8 +- services/ocr/pom.xml | 6 +- services/oms/pom.xml | 6 +- services/optverse/pom.xml | 6 +- services/organizations/pom.xml | 6 +- services/orgid/pom.xml | 6 +- services/oroas/pom.xml | 6 +- services/osm/pom.xml | 6 +- services/pangulargemodels/pom.xml | 6 +- services/pom.xml | 304 +- services/projectman/pom.xml | 6 +- services/rabbitmq/pom.xml | 6 +- services/ram/pom.xml | 6 +- services/rds/pom.xml | 6 +- .../model/ShowReplayDelayStatusResponse.java | 32 +- services/res/pom.xml | 6 +- services/rgc/pom.xml | 6 +- services/rms/pom.xml | 6 +- services/rocketmq/pom.xml | 6 +- services/roma/pom.xml | 6 +- services/sa/pom.xml | 6 +- services/scm/pom.xml | 6 +- services/sdrs/pom.xml | 6 +- services/secmaster/pom.xml | 6 +- services/servicestage/pom.xml | 6 +- services/sfsturbo/pom.xml | 6 +- .../sfsturbo/v1/region/SFSTurboRegion.java | 8 + services/sis/pom.xml | 6 +- services/smn/pom.xml | 6 +- services/sms/pom.xml | 6 +- .../sdk/sms/v3/region/SmsRegion.java | 4 +- services/sts/pom.xml | 6 +- services/swr/pom.xml | 6 +- services/tics/pom.xml | 6 +- services/tms/pom.xml | 6 +- .../sdk/tms/v1/region/TmsRegion.java | 4 + services/ugo/pom.xml | 6 +- services/vas/pom.xml | 6 +- services/vcm/pom.xml | 6 +- services/vod/pom.xml | 6 +- services/vpc/pom.xml | 6 +- .../sdk/vpc/v2/VpcAsyncClient.java | 232 ++ .../com/huaweicloud/sdk/vpc/v2/VpcClient.java | 227 ++ .../com/huaweicloud/sdk/vpc/v2/VpcMeta.java | 208 + .../BatchCreateSecurityGroupTagsRequest.java | 105 + ...tchCreateSecurityGroupTagsRequestBody.java | 183 + .../BatchCreateSecurityGroupTagsResponse.java | 36 + .../BatchDeleteSecurityGroupTagsRequest.java | 105 + ...tchDeleteSecurityGroupTagsRequestBody.java | 183 + .../BatchDeleteSecurityGroupTagsResponse.java | 36 + .../model/CreateSecurityGroupTagRequest.java | 105 + .../CreateSecurityGroupTagRequestBody.java | 82 + .../model/CreateSecurityGroupTagResponse.java | 36 + .../model/DeleteSecurityGroupTagRequest.java | 95 + .../model/DeleteSecurityGroupTagResponse.java | 36 + .../model/ListSecurityGroupTagsRequest.java | 34 + .../model/ListSecurityGroupTagsResponse.java | 92 + .../ListSecurityGroupsByTagsRequest.java | 82 + .../ListSecurityGroupsByTagsRequestBody.java | 276 ++ .../ListSecurityGroupsByTagsResponse.java | 115 + .../model/ShowSecurityGroupTagsRequest.java | 72 + .../model/ShowSecurityGroupTagsResponse.java | 92 + .../sdk/vpc/v3/VpcAsyncClient.java | 259 ++ .../com/huaweicloud/sdk/vpc/v3/VpcClient.java | 256 ++ .../com/huaweicloud/sdk/vpc/v3/VpcMeta.java | 232 ++ .../model/BatchCreateFirewallTagsRequest.java | 105 + .../BatchCreateFirewallTagsRequestBody.java | 91 + .../BatchCreateFirewallTagsResponse.java | 36 + .../model/BatchDeleteFirewallTagsRequest.java | 105 + .../BatchDeleteFirewallTagsRequestBody.java | 91 + .../BatchDeleteFirewallTagsResponse.java | 36 + .../v3/model/CountFirewallsByTagsRequest.java | 82 + .../CountFirewallsByTagsRequestBody.java | 130 + .../model/CountFirewallsByTagsResponse.java | 96 + .../v3/model/CreateFirewallTagRequest.java | 105 + .../model/CreateFirewallTagRequestBody.java | 82 + .../v3/model/CreateFirewallTagResponse.java | 36 + .../v3/model/DeleteFirewallTagRequest.java | 95 + .../v3/model/DeleteFirewallTagResponse.java | 36 + .../vpc/v3/model/ListFirewallTagsRequest.java | 34 + .../v3/model/ListFirewallTagsResponse.java | 106 + .../v3/model/ListFirewallsByTagsRequest.java | 129 + .../model/ListFirewallsByTagsRequestBody.java | 130 + .../v3/model/ListFirewallsByTagsResponse.java | 139 + .../sdk/vpc/v3/model/ListResourceResp.java | 162 + .../huaweicloud/sdk/vpc/v3/model/ListTag.java | 114 + .../huaweicloud/sdk/vpc/v3/model/Match.java | 95 + .../vpc/v3/model/ShowFirewallTagsRequest.java | 72 + .../v3/model/ShowFirewallTagsResponse.java | 139 + services/vpcep/pom.xml | 6 +- services/vpn/pom.xml | 6 +- services/waf/pom.xml | 6 +- services/workspace/pom.xml | 6 +- services/workspaceapp/pom.xml | 6 +- 571 files changed, 62795 insertions(+), 2019 deletions(-) create mode 100644 core/src/test/java/com/huaweicloud/sdk/core/TestCredentials.java create mode 100644 services/as/src/main/java/com/huaweicloud/sdk/as/v1/model/IntervalAlarmActionsV2.java create mode 100644 services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/CreateComponentWithConfigurationRequest.java create mode 100644 services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/CreateComponentWithConfigurationRequestBody.java rename services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/{CreateComponentRequestBodyMetadata.java => CreateComponentWithConfigurationRequestBodyMetadata.java} (77%) rename services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/{CreateComponentRequestBodySpec.java => CreateComponentWithConfigurationRequestBodySpec.java} (88%) create mode 100644 services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/CreateComponentWithConfigurationResponse.java create mode 100644 services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/CreateComponentWithConfigurationResponseBodyStatus.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/AddRelationsInfo.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/AlarmTemplateInfo.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/AlertGroup.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/AlertLevel.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/AlertTemplateVo.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/AttachmentVo.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/BasicAwRes.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/BatchAddRelationsByOneCaseRequest.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/BatchAddRelationsByOneCaseResponse.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/BatchDeleteTestReportRequest.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/BatchDeleteTestReportResponse.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/CaseAutomationDetailsVo.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/CaseExecuteVo.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/CasePassVo.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/CheckPermissionRequest.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/CheckPermissionResponse.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/CommRequestMindmapPageParamV3.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/CommRequestSystemConfig.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/CommonResponseErrorOfAPITest.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/CreateRelationsByOneCaseRequest.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/CreateRelationsByOneCaseResponse.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/CreateResourceUriRequest.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/CreateResourceUriResponse.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/DeleteRelationsByOneCaseInfo.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/DeleteRelationsByOneCaseRequest.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/DeleteRelationsByOneCaseResponse.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/DetailTestTypeCasePassRateVo.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/DnsMapping.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/DnsMappingNode.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/GetPublicLibAndAwsResp.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/IdAndNameAndValueVo.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/IssueListFilterInfo.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/IssueListPiFilterInfo.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/IssuePassDetailsVo.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAlertGroupsByConditionRequest.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAlertGroupsByConditionRequestBody.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAlertGroupsByConditionResponse.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAlertTemplatesRequest.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAlertTemplatesResponse.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAllBranchesRequest.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAllBranchesResponse.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAllConfigItemByTypeRequest.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAllConfigItemByTypeRequestBody.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAllConfigItemByTypeResponse.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAllIteratorsRequest.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAllIteratorsResponse.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAttachmentsRequest.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAttachmentsResponse.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListBasicAwRequest.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListBasicAwResponse.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListIssueTreeRequest.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListIssueTreeResponse.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListProjectFieldConfigsRequest.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListProjectFieldConfigsResponse.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListProjectTestCaseFieldsRequest.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListProjectTestCaseFieldsResponse.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListPublicLibAndAwsRequest.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListPublicLibAndAwsResponse.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListReportsRequest.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListReportsResponse.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListResourcePoolsRequest.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListResourcePoolsResponse.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListTaskTestCasesRequest.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListTaskTestCasesResponse.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListTestReportsByConditionRequest.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListTestReportsByConditionResponse.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListTestTypesRequest.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListTestTypesResponse.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListUsageInfosRequest.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListUsageInfosResponse.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListUserDnsMappingRequest.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListUserDnsMappingResponse.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListUserPackageUsageRequest.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListUserPackageUsageResponse.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListUserPopupInfoRequest.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListUserPopupInfoResponse.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListVariablesRequest.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListVariablesResponse.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/MindmapPageParamV3.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/PackageUsage.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/PageResults.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/PiFilterInfo.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/PiInfo.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/PopUpInfo.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ProjectFieldConfigOptionVo.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ProjectFieldConfigVo.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ProjectTestCaseFieldVo.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/QueryIssueTreeInfo.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/QueryRequirementsOverviewInfo.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/QueryTaskTestCasesInfo.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/QueryTestItemTreeInfo.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/RelateTaskTestCasesVo.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/RelationInfo.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/RequirementOverviewVo.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/RequirementsOverviewVo.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ResourcePoolVo.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ResultValueListCustomReportListVo.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ResultValueListProjectFieldConfigVo.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ResultValueListResourcePoolVo.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ResultValueListTestItemVo.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ResultValueListTestVersionVo.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ResultValueRequirementsOverviewVo.java rename services/{metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/MobvoiVoiceAssetMeta.java => cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ResultValueStringForOk.java} (56%) create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/SaveTaskSettingRequest.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/SaveTaskSettingRequestBody.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/SaveTaskSettingResponse.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowAllConfigValueByTypeAndKeyRequest.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowAllConfigValueByTypeAndKeyResponse.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowAllFeatureChildrenRequest.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowAllFeatureChildrenResponse.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowBackgroundInfoRequest.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowBackgroundInfoResponse.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowDisclaimerRecordRequest.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowDisclaimerRecordResponse.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowDomainInfoRequest.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowDomainInfoResponse.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowFeatureChildrenRequest.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowFeatureChildrenResponse.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowFreeDeclarationRequest.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowFreeDeclarationResponse.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowIfTaskNameRepeatRequest.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowIfTaskNameRepeatResponse.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowIfUserNameRepeatRequest.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowIfUserNameRepeatResponse.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowIteratorByDefectRequest.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowIteratorByDefectResponse.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowMindmapByPageRequest.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowMindmapByPageResponse.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowMindmapCreatorNameRequest.java rename services/{ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/model/ServerFault.java => cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowMindmapCreatorNameResponse.java} (53%) create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowProgressRequest.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowProgressResponse.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowRequirementsOverviewRequest.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowRequirementsOverviewResponse.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowSystemConfigsRequest.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowSystemConfigsResponse.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowTestCaseRequest.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowTestCaseResponse.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowUserAccessInfoRequest.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowUserAccessInfoResponse.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/SimpleIssueVo.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/SystemConfig.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/TestCaseStepVo.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/TestItemVo.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/TestReportVo.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/TestVersionVo.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/UsageInfos.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/VariableRes.java create mode 100644 services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/WorkItemVo.java create mode 100644 services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/BatchCreateRemediationExceptionsRequest.java create mode 100644 services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/BatchCreateRemediationExceptionsRequestBody.java create mode 100644 services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/BatchCreateRemediationExceptionsResponse.java create mode 100644 services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/BatchDeleteRemediationExceptionsRequest.java create mode 100644 services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/BatchDeleteRemediationExceptionsRequestBody.java create mode 100644 services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/BatchDeleteRemediationExceptionsResponse.java create mode 100644 services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/CreateOrUpdateRemediationConfigurationRequest.java create mode 100644 services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/CreateOrUpdateRemediationConfigurationResponse.java create mode 100644 services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/DeleteRemediationConfigurationRequest.java create mode 100644 services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/DeleteRemediationConfigurationResponse.java create mode 100644 services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ListRemediationExceptionsRequest.java create mode 100644 services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ListRemediationExceptionsResponse.java create mode 100644 services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ListRemediationExecutionStatusesRequest.java create mode 100644 services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ListRemediationExecutionStatusesResponse.java create mode 100644 services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/RemediationConfigurationRequestBody.java create mode 100644 services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/RemediationException.java create mode 100644 services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/RemediationExceptionRequest.java create mode 100644 services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/RemediationExecution.java create mode 100644 services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/RemediationResourceParameter.java create mode 100644 services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/RemediationRunRequestBody.java create mode 100644 services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/RemediationStaticParameter.java create mode 100644 services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/RunRemediationExecutionRequest.java create mode 100644 services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/RunRemediationExecutionResponse.java create mode 100644 services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ShowRemediationConfigurationRequest.java create mode 100644 services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ShowRemediationConfigurationResponse.java create mode 100644 services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/CreateStreamJobRequest.java create mode 100644 services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/CreateStreamJobRequestBody.java create mode 100644 services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/CreateStreamJobResponse.java create mode 100644 services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/FlinkJarParameter.java create mode 100644 services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/FlinkResourceConfig.java create mode 100644 services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/FlinkRestoreStrategy.java create mode 100644 services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/FlinkRuntimeConfig.java create mode 100644 services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/FlinkSqlParameter.java create mode 100644 services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/Properties.java create mode 100644 services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/ResourceSpec.java create mode 100644 services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/StreamClassLoggerLevel.java create mode 100644 services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/StreamEnvironmentConfig.java create mode 100644 services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/StreamJobStatus.java create mode 100644 services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/StreamLoggingConfig.java create mode 100644 services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/StreamRuntimeConfig.java create mode 100644 services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/HostInfoDTO.java create mode 100644 services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/NPUDetailsDTO.java create mode 100644 services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/NpuUsedInfoDTO.java create mode 100644 services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/ShowEdgeNodeHostsInfoRequest.java create mode 100644 services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/ShowEdgeNodeHostsInfoResponse.java create mode 100644 services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/UpdateEdgeNodeRequest.java create mode 100644 services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/UpdateEdgeNodeResponse.java create mode 100644 services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/UpdateNodeReqDTO.java create mode 100644 services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/UpdateOfflineCacheConfigsDTO.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/AssetActionResult.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/AssetSharedConfig.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/BatchAssetActionReq.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/BatchExecuteAssetActionRequest.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/BatchExecuteAssetActionResponse.java rename services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/{CreateAssetbyReplicationInfoRequest.java => CreateAssetByReplicationInfoRequest.java} (88%) rename services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/{CreateAssetbyReplicationInfoResponse.java => CreateAssetByReplicationInfoResponse.java} (85%) create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateProductRequest.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateProductRequestBody.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateProductResponse.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/DeleteProductRequest.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/DeleteProductResponse.java delete mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/EmotionConfig.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ListProductsRequest.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ListProductsResponse.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/LiveRoomInteractionRuleInfo.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ProductAssetReleation.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ProductBasicInfo.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ProductCoverDetailInfo.java rename services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/{AnimationConfig.java => ProductCoverInfo.java} (59%) create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ProductDetailInfo.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ProductMediaDetailInfo.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ProductMediaInfo.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ProductTextInfo.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/RTCLiveEventCallBackConfig.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/SetProductAssetRequest.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/SetProductAssetResponse.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowProductRequest.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowProductResponse.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateProductRequest.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateProductRequestBody.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateProductResponse.java create mode 100644 services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/VoiceCapability.java create mode 100644 services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/BatchCreateSecurityGroupTagsRequest.java create mode 100644 services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/BatchCreateSecurityGroupTagsRequestBody.java create mode 100644 services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/BatchCreateSecurityGroupTagsResponse.java create mode 100644 services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/BatchDeleteSecurityGroupTagsRequest.java create mode 100644 services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/BatchDeleteSecurityGroupTagsRequestBody.java create mode 100644 services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/BatchDeleteSecurityGroupTagsResponse.java create mode 100644 services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/CreateSecurityGroupTagRequest.java create mode 100644 services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/CreateSecurityGroupTagRequestBody.java create mode 100644 services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/CreateSecurityGroupTagResponse.java create mode 100644 services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/DeleteSecurityGroupTagRequest.java create mode 100644 services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/DeleteSecurityGroupTagResponse.java create mode 100644 services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/ListSecurityGroupTagsRequest.java create mode 100644 services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/ListSecurityGroupTagsResponse.java create mode 100644 services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/ListSecurityGroupsByTagsRequest.java create mode 100644 services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/ListSecurityGroupsByTagsRequestBody.java create mode 100644 services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/ListSecurityGroupsByTagsResponse.java create mode 100644 services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/ShowSecurityGroupTagsRequest.java create mode 100644 services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/ShowSecurityGroupTagsResponse.java create mode 100644 services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchCreateFirewallTagsRequest.java create mode 100644 services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchCreateFirewallTagsRequestBody.java create mode 100644 services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchCreateFirewallTagsResponse.java create mode 100644 services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchDeleteFirewallTagsRequest.java create mode 100644 services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchDeleteFirewallTagsRequestBody.java create mode 100644 services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchDeleteFirewallTagsResponse.java create mode 100644 services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/CountFirewallsByTagsRequest.java create mode 100644 services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/CountFirewallsByTagsRequestBody.java create mode 100644 services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/CountFirewallsByTagsResponse.java create mode 100644 services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/CreateFirewallTagRequest.java create mode 100644 services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/CreateFirewallTagRequestBody.java create mode 100644 services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/CreateFirewallTagResponse.java create mode 100644 services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/DeleteFirewallTagRequest.java create mode 100644 services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/DeleteFirewallTagResponse.java create mode 100644 services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ListFirewallTagsRequest.java create mode 100644 services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ListFirewallTagsResponse.java create mode 100644 services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ListFirewallsByTagsRequest.java create mode 100644 services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ListFirewallsByTagsRequestBody.java create mode 100644 services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ListFirewallsByTagsResponse.java create mode 100644 services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ListResourceResp.java create mode 100644 services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ListTag.java create mode 100644 services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/Match.java create mode 100644 services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ShowFirewallTagsRequest.java create mode 100644 services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ShowFirewallTagsResponse.java diff --git a/CHANGELOG.md b/CHANGELOG.md index e9a3ff3df7..9038c14ba1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,535 @@ +# 3.1.100 2024-06-13 + +### HuaweiCloud SDK Core + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - Add non-null check to method withAk/withSk of Credentials. + +### HuaweiCloud SDK AS + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **CreateScalingV2Policy** + - changes of request param + - `+ interval_alarm_actions` + - **ListAllScalingV2Policies** + - changes of response param + - `+ scaling_policies.interval_alarm_actions` + - **UpdateScalingV2Policy** + - changes of request param + - `+ interval_alarm_actions` + - **ShowScalingV2Policy** + - changes of response param + - `+ scaling_policy.interval_alarm_actions` + - **ListScalingV2Policies** + - changes of response param + - `+ scaling_policies.interval_alarm_actions` + +### HuaweiCloud SDK CAE + +- _Features_ + - Support the API `CreateComponentWithConfiguration` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK CDM + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **CreateLink** + - changes of request param + - `* links.link-config-values.configs.inputs.value: string -> object` + - **ShowLink** + - changes of response param + - `* links.link-config-values.configs.inputs.value: string -> object` + - **UpdateLink** + - changes of request param + - `* links.link-config-values.configs.inputs.value: string -> object` + - **ShowJobs** + - changes of response param + - `* jobs.to-config-values.configs.inputs.value: string -> object` + - **UpdateJob** + - changes of request param + - `* jobs.to-config-values.configs.inputs.value: string -> object` + - **CreateAndStartRandomClusterJob** + - changes of request param + - `* jobs.to-config-values.configs.inputs.value: string -> object` + - **CreateJob** + - changes of request param + - `* jobs.to-config-values.configs.inputs.value: string -> object` + +### HuaweiCloud SDK Cloudtest + +- _Features_ + - Support the following APIs: + - `ShowSystemConfigs` + - `ShowMindmapByPage` + - `ShowMindmapCreatorName` + - `CheckPermission` + - `ListUserPopupInfo` + - `ListUserPackageUsage` + - `ListBasicAw` + - `ListPublicLibAndAws` + - `ListUserDnsMapping` + - `ListVariables` + - `ListTaskTestCases` + - `ListResourcePools` + - `ListAttachments` + - `ShowBackgroundInfo` + - `ListUsageInfos` + - `ShowProgress` + - `ListProjectTestCaseFields` + - `ShowFreeDeclaration` + - `ListTestTypes` + - `ShowTestCase` + - `CreateResourceUri` + - `ShowDomainInfo` + - `ShowDisclaimerRecord` + - `ListProjectFieldConfigs` + - `ShowFeatureChildren` + - `ShowAllFeatureChildren` + - `ListAllIterators` + - `ListIssueTree` + - `ShowIteratorByDefect` + - `ListAllBranches` + - `ShowUserAccessInfo` + - `ListReports` + - `ShowRequirementsOverview` + - `BatchDeleteTestReport` + - `CreateRelationsByOneCase` + - `DeleteRelationsByOneCase` + - `BatchAddRelationsByOneCase` + - `ListTestReportsByCondition` + - `SaveTaskSetting` + - `ListAllConfigItemByType` + - `ListAlertGroupsByCondition` + - `ShowIfUserNameRepeat` + - `ListAlertTemplates` + - `ShowIfTaskNameRepeat` + - `ShowAllConfigValueByTypeAndKey` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK Config + +- _Features_ + - Support the following APIs: + - `ShowRemediationConfiguration` + - `CreateOrUpdateRemediationConfiguration` + - `DeleteRemediationConfiguration` + - `BatchCreateRemediationExceptions` + - `BatchDeleteRemediationExceptions` + - `ListRemediationExceptions` + - `RunRemediationExecution` + - `ListRemediationExecutionStatuses` +- _Bug Fix_ + - None +- _Change_ + - **CreateConformancePack** + - changes of request param + - `+ X-Language` + - **CreateOrganizationConformancePack** + - changes of request param + - `+ X-Language` + +### HuaweiCloud SDK DCS + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **CreateMigrationTask** + - changes of request param + - `+ target_instance.task_status` + - **ShowMigrationTask** + - changes of response param + - `+ target_instance.task_status` + - **StopMigrationTask** + - changes of response param + - `+ target_instance.task_status` + +### HuaweiCloud SDK DGC + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ListScriptResults** + - changes of response param + - `+ message` + - `+ results` + - `- result` + +### HuaweiCloud SDK DLI + +- _Features_ + - Support the API `CreateStreamJob` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK ECS + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ShowServer** + - changes of response param + - `- server.fault.code` + - `- server.fault.created` + - `- server.fault.message` + - `- server.fault.details` + - `* server.fault: object -> object` + - **ListServersDetails** + - changes of response param + - `- servers.fault.code` + - `- servers.fault.created` + - `- servers.fault.message` + - `- servers.fault.details` + - `* servers.fault: object -> object` + +### HuaweiCloud SDK EIP + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **DisassociatePublicips** + - changes of response param + - `- publicip.associate_instance_type: enum value [null]` + - **AssociatePublicips** + - changes of response param + - `- publicip.associate_instance_type: enum value [null]` + - **UpdatePublicip** + - changes of request param + - `+ publicip.associate_instance_type: enum value [VPN]` + - `- publicip.associate_instance_type: enum value []` + - changes of response param + - `- publicip.associate_instance_type: enum value [null]` + +### HuaweiCloud SDK GaussDB + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ShowDedicatedResourceInfo** + - changes of response param + - `+ resource_name` + - `- name` + +### HuaweiCloud SDK IoTEdge + +- _Features_ + - Support the APIs `ShowEdgeNodeHostsInfo`, `UpdateEdgeNode` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK KVS + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **PutKv** + - changes of request param + - `- condition_expression.composed_expression.expressions.single_kv_expression` + - `- condition_expression.composed_expression.expressions.multi_field_expression` + - **UpdateKv** + - changes of request param + - `- condition_expression.composed_expression.expressions.single_kv_expression` + - `- condition_expression.composed_expression.expressions.multi_field_expression` + - **DeleteKv** + - changes of request param + - `- condition_expression.composed_expression.expressions.single_kv_expression` + - `- condition_expression.composed_expression.expressions.multi_field_expression` + - **ScanKv** + - changes of request param + - `- filter_expression.composed_expression.expressions.single_kv_expression` + - `- filter_expression.composed_expression.expressions.multi_field_expression` + - **ScanSkeyKv** + - changes of request param + - `- filter_expression.composed_expression.expressions.single_kv_expression` + - `- filter_expression.composed_expression.expressions.multi_field_expression` + +### HuaweiCloud SDK MetaStudio + +- _Features_ + - Support the following APIs: + - `BatchExecuteAssetAction` + - `ListProducts` + - `CreateProduct` + - `ShowProduct` + - `UpdateProduct` + - `DeleteProduct` + - `SetProductAsset` +- _Bug Fix_ + - None +- _Change_ + - **ShowRobot** + - changes of response param + - `+ enable_question_audit` + - `+ enable_hot_words` + - **UpdateRobot** + - changes of request param + - `+ enable_question_audit` + - **CreateTrainingBasicJob** + - changes of request param + - `- language: enum value [CN,EN]` + - **CreateTrainingMiddleJob** + - changes of request param + - `- language: enum value [CN,EN]` + - **CreateTrainingAdvanceJob** + - changes of request param + - `- language: enum value [CN,EN]` + - **CommitVoiceTrainingJob** + - changes of request param + - `- language: enum value [CN,EN]` + - **CreateRobot** + - changes of request param + - `+ enable_question_audit` + - **ListRobot** + - changes of response param + - `+ enable_question_audit` + - `+ enable_hot_words` + - `+ data.enable_hot_words` + - `+ data.enable_question_audit` + - **CreateDigitalHumanBusinessCard** + - changes of request param + - `+ callback_config` + - **UpdateDigitalHumanBusinessCard** + - changes of request param + - `+ callback_config` + - **CreateSmartChatRoom** + - changes of request param + - `+ video_config.is_enable_super_resolution` + - **ShowSmartChatRoom** + - changes of response param + - `+ video_config.is_enable_super_resolution` + - **UpdateSmartChatRoom** + - changes of request param + - `+ video_config.is_enable_super_resolution` + - changes of response param + - `+ video_config.is_enable_super_resolution` + - **ShowSmartLive** + - changes of response param + - `+ rtc_callback_config` + - `+ live_event_callback_config.auth_type: enum value [MSS_A_HEAD]` + - `- live_event_callback_config.auth_type: enum value [RTMP_STREAM_STATE_CHANGE]` + - **ShowAsset** + - changes of response param + - `+ project_id` + - `+ system_properties.key: enum value [LAYER_CONFIG_ENABLE]` + - `+ files.state: enum value [BLOCK]` + - `+ asset_extra_meta.human_model_2d_meta.device_names` + - `+ asset_extra_meta.voice_model_meta.is_realtime_voice` + - `+ asset_extra_meta.voice_model_meta.voice_capability` + - `- asset_extra_meta.voice_model_meta.external_voice_meta.mobvoi_voice_meta` + - `+ asset_extra_meta.voice_model_meta.external_voice_meta.provider: enum value [AUDIOX,SINOVOICE,DATABACK,AISPEECH]` + - **UpdateDigitalAsset** + - changes of request param + - `+ system_properties.key: enum value [LAYER_CONFIG_ENABLE]` + - `- shared_config.shared_state` + - `* shared_config: object -> object` + - `+ asset_extra_meta.human_model_2d_meta.device_names` + - `+ asset_extra_meta.voice_model_meta.is_realtime_voice` + - `+ asset_extra_meta.voice_model_meta.voice_capability` + - `- asset_extra_meta.voice_model_meta.external_voice_meta.mobvoi_voice_meta` + - `+ asset_extra_meta.voice_model_meta.external_voice_meta.provider: enum value [AUDIOX,SINOVOICE,DATABACK,AISPEECH]` + - changes of response param + - `+ project_id` + - `+ system_properties.key: enum value [LAYER_CONFIG_ENABLE]` + - `+ files.state: enum value [BLOCK]` + - `+ asset_extra_meta.human_model_2d_meta.device_names` + - `+ asset_extra_meta.voice_model_meta.is_realtime_voice` + - `+ asset_extra_meta.voice_model_meta.voice_capability` + - `- asset_extra_meta.voice_model_meta.external_voice_meta.mobvoi_voice_meta` + - `+ asset_extra_meta.voice_model_meta.external_voice_meta.provider: enum value [AUDIOX,SINOVOICE,DATABACK,AISPEECH]` + - **CreateSmartLiveRoom** + - changes of request param + - `+ rtc_callback_config` + - `* interaction_rules: list -> list` + - `+ live_event_callback_config.auth_type: enum value [MSS_A_HEAD]` + - `- live_event_callback_config.auth_type: enum value [RTMP_STREAM_STATE_CHANGE]` + - `+ video_config.is_enable_super_resolution` + - **ShowSmartLiveRoom** + - changes of response param + - `+ rtc_callback_config` + - `* interaction_rules: list -> list` + - `+ live_event_callback_config.auth_type: enum value [MSS_A_HEAD]` + - `- live_event_callback_config.auth_type: enum value [RTMP_STREAM_STATE_CHANGE]` + - `+ video_config.is_enable_super_resolution` + - **UpdateSmartLiveRoom** + - changes of request param + - `+ rtc_callback_config` + - `* interaction_rules: list -> list` + - `+ live_event_callback_config.auth_type: enum value [MSS_A_HEAD]` + - `- live_event_callback_config.auth_type: enum value [RTMP_STREAM_STATE_CHANGE]` + - `+ video_config.is_enable_super_resolution` + - changes of response param + - `+ rtc_callback_config` + - `* interaction_rules: list -> list` + - `+ live_event_callback_config.auth_type: enum value [MSS_A_HEAD]` + - `- live_event_callback_config.auth_type: enum value [RTMP_STREAM_STATE_CHANGE]` + - `+ video_config.is_enable_super_resolution` + - **StartSmartLive** + - changes of request param + - `+ rtc_callback_config` + - `+ live_event_callback_config.auth_type: enum value [MSS_A_HEAD]` + - `- live_event_callback_config.auth_type: enum value [RTMP_STREAM_STATE_CHANGE]` + - `+ video_config.is_enable_super_resolution` + - changes of response param + - `+ live_event_callback_config.auth_type: enum value [MSS_A_HEAD]` + - `- live_event_callback_config.auth_type: enum value [RTMP_STREAM_STATE_CHANGE]` + - **ListSmartLive** + - changes of response param + - `+ rtc_callback_config` + - `+ smart_live_jobs.rtc_callback_config` + - `+ smart_live_jobs.live_event_callback_config.auth_type: enum value [MSS_A_HEAD]` + - `- smart_live_jobs.live_event_callback_config.auth_type: enum value [RTMP_STREAM_STATE_CHANGE]` + - **ListSmartLiveJobs** + - changes of response param + - `+ rtc_callback_config` + - `+ smart_live_jobs.rtc_callback_config` + - `+ smart_live_jobs.live_event_callback_config.auth_type: enum value [MSS_A_HEAD]` + - `- smart_live_jobs.live_event_callback_config.auth_type: enum value [RTMP_STREAM_STATE_CHANGE]` + - **CreateDigitalAsset** + - changes of request param + - `+ X-MSS-Authorization` + - `+ system_properties.key: enum value [LAYER_CONFIG_ENABLE]` + - `- shared_config.shared_state` + - `* shared_config: object -> object` + - `+ asset_extra_meta.human_model_2d_meta.device_names` + - `+ asset_extra_meta.voice_model_meta.is_realtime_voice` + - `+ asset_extra_meta.voice_model_meta.voice_capability` + - `- asset_extra_meta.voice_model_meta.external_voice_meta.mobvoi_voice_meta` + - `+ asset_extra_meta.voice_model_meta.external_voice_meta.provider: enum value [AUDIOX,SINOVOICE,DATABACK,AISPEECH]` + - **ListAssets** + - changes of request param + - `+ asset_id` + - `+ is_realtime_voice` + - `+ human_model_2d_version` + - `+ include_device_name` + - `+ exclude_device_name` + - changes of response param + - `+ project_id` + - `+ assets.project_id` + - `+ assets.system_properties.key: enum value [LAYER_CONFIG_ENABLE]` + - `+ assets.files.state: enum value [BLOCK]` + - `+ assets.asset_extra_meta.human_model_2d_meta.device_names` + - `+ assets.asset_extra_meta.voice_model_meta.is_realtime_voice` + - `+ assets.asset_extra_meta.voice_model_meta.voice_capability` + - `- assets.asset_extra_meta.voice_model_meta.external_voice_meta.mobvoi_voice_meta` + - `+ assets.asset_extra_meta.voice_model_meta.external_voice_meta.provider: enum value [AUDIOX,SINOVOICE,DATABACK,AISPEECH]` + - **Create2DDigitalHumanVideo** + - changes of request param + - `- video_making_type` + - `- human_image` + - `- output_asset_config.is_preview_video` + - `+ video_config.is_enable_super_resolution` + - `- shoot_scripts.shoot_script.animation_config` + - `- shoot_scripts.shoot_script.emotion_config` + - **Show2DDigitalHumanVideo** + - changes of response param + - `+ video_config.is_enable_super_resolution` + - `- shoot_scripts.shoot_script.animation_config` + - `- shoot_scripts.shoot_script.emotion_config` + - **CreatePhotoDigitalHumanVideo** + - changes of request param + - `+ callback_config` + - `- output_asset_config.is_preview_video` + - `- shoot_scripts.shoot_script.animation_config` + - `- shoot_scripts.shoot_script.emotion_config` + - **ShowPhotoDigitalHumanVideo** + - changes of response param + - `- shoot_scripts.shoot_script.animation_config` + - `- shoot_scripts.shoot_script.emotion_config` + - **UpdateInteractionRuleGroup** + - changes of request param + - `+ interaction_rules.hit_condition.relation: enum value [RESERVED]` + - `+ interaction_rules.trigger.robot_id` + - `+ interaction_rules.trigger.reply_mode: enum value [INTELLIGENT_REPLY]` + - changes of response param + - `+ interaction_rules.hit_condition.relation: enum value [RESERVED]` + - `+ interaction_rules.trigger.robot_id` + - `+ interaction_rules.trigger.reply_mode: enum value [INTELLIGENT_REPLY]` + - **CreateVideoScripts** + - changes of request param + - `+ video_config.is_enable_super_resolution` + - `- shoot_scripts.shoot_script.animation_config` + - `- shoot_scripts.shoot_script.emotion_config` + - **ShowVideoScript** + - changes of response param + - `+ video_config.is_enable_super_resolution` + - `- shoot_scripts.shoot_script.animation_config` + - `- shoot_scripts.shoot_script.emotion_config` + - **UpdateVideoScript** + - changes of request param + - `+ video_config.is_enable_super_resolution` + - `- shoot_scripts.shoot_script.animation_config` + - `- shoot_scripts.shoot_script.emotion_config` + - **CreateInteractionRuleGroup** + - changes of request param + - `+ interaction_rules.hit_condition.relation: enum value [RESERVED]` + - `+ interaction_rules.trigger.robot_id` + - `+ interaction_rules.trigger.reply_mode: enum value [INTELLIGENT_REPLY]` + - **ListInteractionRuleGroups** + - changes of response param + - `+ interaction_rule_groups.interaction_rules.hit_condition.relation: enum value [RESERVED]` + - `+ interaction_rule_groups.interaction_rules.trigger.robot_id` + - `+ interaction_rule_groups.interaction_rules.trigger.reply_mode: enum value [INTELLIGENT_REPLY]` + +### HuaweiCloud SDK RDS + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ShowReplayDelayStatus** + - changes of response param + - `+ delay_time_value_range` + +### HuaweiCloud SDK VPC + +- _Features_ + - Support the following APIs: + - `ListSecurityGroupsByTags` + - `BatchCreateSecurityGroupTags` + - `BatchDeleteSecurityGroupTags` + - `ShowSecurityGroupTags` + - `CreateSecurityGroupTag` + - `DeleteSecurityGroupTag` + - `ListSecurityGroupTags` +- _Bug Fix_ + - None +- _Change_ + - None + # 3.1.99 2024-06-06 ### HuaweiCloud SDK CAE diff --git a/CHANGELOG_CN.md b/CHANGELOG_CN.md index fd9e3697c5..cbbc667f5d 100644 --- a/CHANGELOG_CN.md +++ b/CHANGELOG_CN.md @@ -1,3 +1,535 @@ +# 3.1.100 2024-06-13 + +### HuaweiCloud SDK Core + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - Credentials的withAk/Sk方法添加非空检查 + +### HuaweiCloud SDK AS + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **CreateScalingV2Policy** + - 请求参数变更 + - `+ interval_alarm_actions` + - **ListAllScalingV2Policies** + - 响应参数变更 + - `+ scaling_policies.interval_alarm_actions` + - **UpdateScalingV2Policy** + - 请求参数变更 + - `+ interval_alarm_actions` + - **ShowScalingV2Policy** + - 响应参数变更 + - `+ scaling_policy.interval_alarm_actions` + - **ListScalingV2Policies** + - 响应参数变更 + - `+ scaling_policies.interval_alarm_actions` + +### HuaweiCloud SDK CAE + +- _新增特性_ + - 支持接口`CreateComponentWithConfiguration` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK CDM + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **CreateLink** + - 请求参数变更 + - `* links.link-config-values.configs.inputs.value: string -> object` + - **ShowLink** + - 响应参数变更 + - `* links.link-config-values.configs.inputs.value: string -> object` + - **UpdateLink** + - 请求参数变更 + - `* links.link-config-values.configs.inputs.value: string -> object` + - **ShowJobs** + - 响应参数变更 + - `* jobs.to-config-values.configs.inputs.value: string -> object` + - **UpdateJob** + - 请求参数变更 + - `* jobs.to-config-values.configs.inputs.value: string -> object` + - **CreateAndStartRandomClusterJob** + - 请求参数变更 + - `* jobs.to-config-values.configs.inputs.value: string -> object` + - **CreateJob** + - 请求参数变更 + - `* jobs.to-config-values.configs.inputs.value: string -> object` + +### HuaweiCloud SDK Cloudtest + +- _新增特性_ + - 支持以下接口: + - `ShowSystemConfigs` + - `ShowMindmapByPage` + - `ShowMindmapCreatorName` + - `CheckPermission` + - `ListUserPopupInfo` + - `ListUserPackageUsage` + - `ListBasicAw` + - `ListPublicLibAndAws` + - `ListUserDnsMapping` + - `ListVariables` + - `ListTaskTestCases` + - `ListResourcePools` + - `ListAttachments` + - `ShowBackgroundInfo` + - `ListUsageInfos` + - `ShowProgress` + - `ListProjectTestCaseFields` + - `ShowFreeDeclaration` + - `ListTestTypes` + - `ShowTestCase` + - `CreateResourceUri` + - `ShowDomainInfo` + - `ShowDisclaimerRecord` + - `ListProjectFieldConfigs` + - `ShowFeatureChildren` + - `ShowAllFeatureChildren` + - `ListAllIterators` + - `ListIssueTree` + - `ShowIteratorByDefect` + - `ListAllBranches` + - `ShowUserAccessInfo` + - `ListReports` + - `ShowRequirementsOverview` + - `BatchDeleteTestReport` + - `CreateRelationsByOneCase` + - `DeleteRelationsByOneCase` + - `BatchAddRelationsByOneCase` + - `ListTestReportsByCondition` + - `SaveTaskSetting` + - `ListAllConfigItemByType` + - `ListAlertGroupsByCondition` + - `ShowIfUserNameRepeat` + - `ListAlertTemplates` + - `ShowIfTaskNameRepeat` + - `ShowAllConfigValueByTypeAndKey` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK Config + +- _新增特性_ + - 支持以下接口: + - `ShowRemediationConfiguration` + - `CreateOrUpdateRemediationConfiguration` + - `DeleteRemediationConfiguration` + - `BatchCreateRemediationExceptions` + - `BatchDeleteRemediationExceptions` + - `ListRemediationExceptions` + - `RunRemediationExecution` + - `ListRemediationExecutionStatuses` +- _解决问题_ + - 无 +- _特性变更_ + - **CreateConformancePack** + - 请求参数变更 + - `+ X-Language` + - **CreateOrganizationConformancePack** + - 请求参数变更 + - `+ X-Language` + +### HuaweiCloud SDK DCS + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **CreateMigrationTask** + - 请求参数变更 + - `+ target_instance.task_status` + - **ShowMigrationTask** + - 响应参数变更 + - `+ target_instance.task_status` + - **StopMigrationTask** + - 响应参数变更 + - `+ target_instance.task_status` + +### HuaweiCloud SDK DGC + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ListScriptResults** + - 响应参数变更 + - `+ message` + - `+ results` + - `- result` + +### HuaweiCloud SDK DLI + +- _新增特性_ + - 支持接口`CreateStreamJob` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK ECS + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ShowServer** + - 响应参数变更 + - `- server.fault.code` + - `- server.fault.created` + - `- server.fault.message` + - `- server.fault.details` + - `* server.fault: object -> object` + - **ListServersDetails** + - 响应参数变更 + - `- servers.fault.code` + - `- servers.fault.created` + - `- servers.fault.message` + - `- servers.fault.details` + - `* servers.fault: object -> object` + +### HuaweiCloud SDK EIP + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **DisassociatePublicips** + - 响应参数变更 + - `- publicip.associate_instance_type: enum value [null]` + - **AssociatePublicips** + - 响应参数变更 + - `- publicip.associate_instance_type: enum value [null]` + - **UpdatePublicip** + - 请求参数变更 + - `+ publicip.associate_instance_type: enum value [VPN]` + - `- publicip.associate_instance_type: enum value []` + - 响应参数变更 + - `- publicip.associate_instance_type: enum value [null]` + +### HuaweiCloud SDK GaussDB + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ShowDedicatedResourceInfo** + - 响应参数变更 + - `+ resource_name` + - `- name` + +### HuaweiCloud SDK IoTEdge + +- _新增特性_ + - 支持接口`ShowEdgeNodeHostsInfo`、`UpdateEdgeNode` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK KVS + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **PutKv** + - 请求参数变更 + - `- condition_expression.composed_expression.expressions.single_kv_expression` + - `- condition_expression.composed_expression.expressions.multi_field_expression` + - **UpdateKv** + - 请求参数变更 + - `- condition_expression.composed_expression.expressions.single_kv_expression` + - `- condition_expression.composed_expression.expressions.multi_field_expression` + - **DeleteKv** + - 请求参数变更 + - `- condition_expression.composed_expression.expressions.single_kv_expression` + - `- condition_expression.composed_expression.expressions.multi_field_expression` + - **ScanKv** + - 请求参数变更 + - `- filter_expression.composed_expression.expressions.single_kv_expression` + - `- filter_expression.composed_expression.expressions.multi_field_expression` + - **ScanSkeyKv** + - 请求参数变更 + - `- filter_expression.composed_expression.expressions.single_kv_expression` + - `- filter_expression.composed_expression.expressions.multi_field_expression` + +### HuaweiCloud SDK MetaStudio + +- _新增特性_ + - 支持以下接口: + - `BatchExecuteAssetAction` + - `ListProducts` + - `CreateProduct` + - `ShowProduct` + - `UpdateProduct` + - `DeleteProduct` + - `SetProductAsset` +- _解决问题_ + - 无 +- _特性变更_ + - **ShowRobot** + - 响应参数变更 + - `+ enable_question_audit` + - `+ enable_hot_words` + - **UpdateRobot** + - 请求参数变更 + - `+ enable_question_audit` + - **CreateTrainingBasicJob** + - 请求参数变更 + - `- language: enum value [CN,EN]` + - **CreateTrainingMiddleJob** + - 请求参数变更 + - `- language: enum value [CN,EN]` + - **CreateTrainingAdvanceJob** + - 请求参数变更 + - `- language: enum value [CN,EN]` + - **CommitVoiceTrainingJob** + - 请求参数变更 + - `- language: enum value [CN,EN]` + - **CreateRobot** + - 请求参数变更 + - `+ enable_question_audit` + - **ListRobot** + - 响应参数变更 + - `+ enable_question_audit` + - `+ enable_hot_words` + - `+ data.enable_hot_words` + - `+ data.enable_question_audit` + - **CreateDigitalHumanBusinessCard** + - 请求参数变更 + - `+ callback_config` + - **UpdateDigitalHumanBusinessCard** + - 请求参数变更 + - `+ callback_config` + - **CreateSmartChatRoom** + - 请求参数变更 + - `+ video_config.is_enable_super_resolution` + - **ShowSmartChatRoom** + - 响应参数变更 + - `+ video_config.is_enable_super_resolution` + - **UpdateSmartChatRoom** + - 请求参数变更 + - `+ video_config.is_enable_super_resolution` + - 响应参数变更 + - `+ video_config.is_enable_super_resolution` + - **ShowSmartLive** + - 响应参数变更 + - `+ rtc_callback_config` + - `+ live_event_callback_config.auth_type: enum value [MSS_A_HEAD]` + - `- live_event_callback_config.auth_type: enum value [RTMP_STREAM_STATE_CHANGE]` + - **ShowAsset** + - 响应参数变更 + - `+ project_id` + - `+ system_properties.key: enum value [LAYER_CONFIG_ENABLE]` + - `+ files.state: enum value [BLOCK]` + - `+ asset_extra_meta.human_model_2d_meta.device_names` + - `+ asset_extra_meta.voice_model_meta.is_realtime_voice` + - `+ asset_extra_meta.voice_model_meta.voice_capability` + - `- asset_extra_meta.voice_model_meta.external_voice_meta.mobvoi_voice_meta` + - `+ asset_extra_meta.voice_model_meta.external_voice_meta.provider: enum value [AUDIOX,SINOVOICE,DATABACK,AISPEECH]` + - **UpdateDigitalAsset** + - 请求参数变更 + - `+ system_properties.key: enum value [LAYER_CONFIG_ENABLE]` + - `- shared_config.shared_state` + - `* shared_config: object -> object` + - `+ asset_extra_meta.human_model_2d_meta.device_names` + - `+ asset_extra_meta.voice_model_meta.is_realtime_voice` + - `+ asset_extra_meta.voice_model_meta.voice_capability` + - `- asset_extra_meta.voice_model_meta.external_voice_meta.mobvoi_voice_meta` + - `+ asset_extra_meta.voice_model_meta.external_voice_meta.provider: enum value [AUDIOX,SINOVOICE,DATABACK,AISPEECH]` + - 响应参数变更 + - `+ project_id` + - `+ system_properties.key: enum value [LAYER_CONFIG_ENABLE]` + - `+ files.state: enum value [BLOCK]` + - `+ asset_extra_meta.human_model_2d_meta.device_names` + - `+ asset_extra_meta.voice_model_meta.is_realtime_voice` + - `+ asset_extra_meta.voice_model_meta.voice_capability` + - `- asset_extra_meta.voice_model_meta.external_voice_meta.mobvoi_voice_meta` + - `+ asset_extra_meta.voice_model_meta.external_voice_meta.provider: enum value [AUDIOX,SINOVOICE,DATABACK,AISPEECH]` + - **CreateSmartLiveRoom** + - 请求参数变更 + - `+ rtc_callback_config` + - `* interaction_rules: list -> list` + - `+ live_event_callback_config.auth_type: enum value [MSS_A_HEAD]` + - `- live_event_callback_config.auth_type: enum value [RTMP_STREAM_STATE_CHANGE]` + - `+ video_config.is_enable_super_resolution` + - **ShowSmartLiveRoom** + - 响应参数变更 + - `+ rtc_callback_config` + - `* interaction_rules: list -> list` + - `+ live_event_callback_config.auth_type: enum value [MSS_A_HEAD]` + - `- live_event_callback_config.auth_type: enum value [RTMP_STREAM_STATE_CHANGE]` + - `+ video_config.is_enable_super_resolution` + - **UpdateSmartLiveRoom** + - 请求参数变更 + - `+ rtc_callback_config` + - `* interaction_rules: list -> list` + - `+ live_event_callback_config.auth_type: enum value [MSS_A_HEAD]` + - `- live_event_callback_config.auth_type: enum value [RTMP_STREAM_STATE_CHANGE]` + - `+ video_config.is_enable_super_resolution` + - 响应参数变更 + - `+ rtc_callback_config` + - `* interaction_rules: list -> list` + - `+ live_event_callback_config.auth_type: enum value [MSS_A_HEAD]` + - `- live_event_callback_config.auth_type: enum value [RTMP_STREAM_STATE_CHANGE]` + - `+ video_config.is_enable_super_resolution` + - **StartSmartLive** + - 请求参数变更 + - `+ rtc_callback_config` + - `+ live_event_callback_config.auth_type: enum value [MSS_A_HEAD]` + - `- live_event_callback_config.auth_type: enum value [RTMP_STREAM_STATE_CHANGE]` + - `+ video_config.is_enable_super_resolution` + - 响应参数变更 + - `+ live_event_callback_config.auth_type: enum value [MSS_A_HEAD]` + - `- live_event_callback_config.auth_type: enum value [RTMP_STREAM_STATE_CHANGE]` + - **ListSmartLive** + - 响应参数变更 + - `+ rtc_callback_config` + - `+ smart_live_jobs.rtc_callback_config` + - `+ smart_live_jobs.live_event_callback_config.auth_type: enum value [MSS_A_HEAD]` + - `- smart_live_jobs.live_event_callback_config.auth_type: enum value [RTMP_STREAM_STATE_CHANGE]` + - **ListSmartLiveJobs** + - 响应参数变更 + - `+ rtc_callback_config` + - `+ smart_live_jobs.rtc_callback_config` + - `+ smart_live_jobs.live_event_callback_config.auth_type: enum value [MSS_A_HEAD]` + - `- smart_live_jobs.live_event_callback_config.auth_type: enum value [RTMP_STREAM_STATE_CHANGE]` + - **CreateDigitalAsset** + - 请求参数变更 + - `+ X-MSS-Authorization` + - `+ system_properties.key: enum value [LAYER_CONFIG_ENABLE]` + - `- shared_config.shared_state` + - `* shared_config: object -> object` + - `+ asset_extra_meta.human_model_2d_meta.device_names` + - `+ asset_extra_meta.voice_model_meta.is_realtime_voice` + - `+ asset_extra_meta.voice_model_meta.voice_capability` + - `- asset_extra_meta.voice_model_meta.external_voice_meta.mobvoi_voice_meta` + - `+ asset_extra_meta.voice_model_meta.external_voice_meta.provider: enum value [AUDIOX,SINOVOICE,DATABACK,AISPEECH]` + - **ListAssets** + - 请求参数变更 + - `+ asset_id` + - `+ is_realtime_voice` + - `+ human_model_2d_version` + - `+ include_device_name` + - `+ exclude_device_name` + - 响应参数变更 + - `+ project_id` + - `+ assets.project_id` + - `+ assets.system_properties.key: enum value [LAYER_CONFIG_ENABLE]` + - `+ assets.files.state: enum value [BLOCK]` + - `+ assets.asset_extra_meta.human_model_2d_meta.device_names` + - `+ assets.asset_extra_meta.voice_model_meta.is_realtime_voice` + - `+ assets.asset_extra_meta.voice_model_meta.voice_capability` + - `- assets.asset_extra_meta.voice_model_meta.external_voice_meta.mobvoi_voice_meta` + - `+ assets.asset_extra_meta.voice_model_meta.external_voice_meta.provider: enum value [AUDIOX,SINOVOICE,DATABACK,AISPEECH]` + - **Create2DDigitalHumanVideo** + - 请求参数变更 + - `- video_making_type` + - `- human_image` + - `- output_asset_config.is_preview_video` + - `+ video_config.is_enable_super_resolution` + - `- shoot_scripts.shoot_script.animation_config` + - `- shoot_scripts.shoot_script.emotion_config` + - **Show2DDigitalHumanVideo** + - 响应参数变更 + - `+ video_config.is_enable_super_resolution` + - `- shoot_scripts.shoot_script.animation_config` + - `- shoot_scripts.shoot_script.emotion_config` + - **CreatePhotoDigitalHumanVideo** + - 请求参数变更 + - `+ callback_config` + - `- output_asset_config.is_preview_video` + - `- shoot_scripts.shoot_script.animation_config` + - `- shoot_scripts.shoot_script.emotion_config` + - **ShowPhotoDigitalHumanVideo** + - 响应参数变更 + - `- shoot_scripts.shoot_script.animation_config` + - `- shoot_scripts.shoot_script.emotion_config` + - **UpdateInteractionRuleGroup** + - 请求参数变更 + - `+ interaction_rules.hit_condition.relation: enum value [RESERVED]` + - `+ interaction_rules.trigger.robot_id` + - `+ interaction_rules.trigger.reply_mode: enum value [INTELLIGENT_REPLY]` + - 响应参数变更 + - `+ interaction_rules.hit_condition.relation: enum value [RESERVED]` + - `+ interaction_rules.trigger.robot_id` + - `+ interaction_rules.trigger.reply_mode: enum value [INTELLIGENT_REPLY]` + - **CreateVideoScripts** + - 请求参数变更 + - `+ video_config.is_enable_super_resolution` + - `- shoot_scripts.shoot_script.animation_config` + - `- shoot_scripts.shoot_script.emotion_config` + - **ShowVideoScript** + - 响应参数变更 + - `+ video_config.is_enable_super_resolution` + - `- shoot_scripts.shoot_script.animation_config` + - `- shoot_scripts.shoot_script.emotion_config` + - **UpdateVideoScript** + - 请求参数变更 + - `+ video_config.is_enable_super_resolution` + - `- shoot_scripts.shoot_script.animation_config` + - `- shoot_scripts.shoot_script.emotion_config` + - **CreateInteractionRuleGroup** + - 请求参数变更 + - `+ interaction_rules.hit_condition.relation: enum value [RESERVED]` + - `+ interaction_rules.trigger.robot_id` + - `+ interaction_rules.trigger.reply_mode: enum value [INTELLIGENT_REPLY]` + - **ListInteractionRuleGroups** + - 响应参数变更 + - `+ interaction_rule_groups.interaction_rules.hit_condition.relation: enum value [RESERVED]` + - `+ interaction_rule_groups.interaction_rules.trigger.robot_id` + - `+ interaction_rule_groups.interaction_rules.trigger.reply_mode: enum value [INTELLIGENT_REPLY]` + +### HuaweiCloud SDK RDS + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ShowReplayDelayStatus** + - 响应参数变更 + - `+ delay_time_value_range` + +### HuaweiCloud SDK VPC + +- _新增特性_ + - 支持以下接口: + - `ListSecurityGroupsByTags` + - `BatchCreateSecurityGroupTags` + - `BatchDeleteSecurityGroupTags` + - `ShowSecurityGroupTags` + - `CreateSecurityGroupTag` + - `DeleteSecurityGroupTag` + - `ListSecurityGroupTags` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + # 3.1.99 2024-06-06 ### HuaweiCloud SDK CAE diff --git a/VERSION b/VERSION index 07c9214ca6..659937d476 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.1.99 +3.1.100 diff --git a/all/pom.xml b/all/pom.xml index 591fc1c9a3..9784e480e0 100644 --- a/all/pom.xml +++ b/all/pom.xml @@ -8,13 +8,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk 4.0.0 huaweicloud-sdk-all - 3.1.99 + 3.1.100 Huawei Cloud SDK for Java Huawei Cloud SDK for Java provides all services https://github.com/huaweicloud/huaweicloud-sdk-java-v3 @@ -23,861 +23,861 @@ com.huaweicloud.sdk huaweicloud-sdk-mssi - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-orgid - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-cfw - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-antiddos - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-oa - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-aom - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-apig - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-as - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-asm - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-bcs - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-bms - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-bss - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-bssintl - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-cbr - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-cce - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-ces - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-classroom - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-cloudrtc - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-cloudide - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-codeartspipeline - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-cloudpond - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-cloudtest - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-codeartscheck - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-cts - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-das - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-dcs - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-ddm - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-dds - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-dis - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-devstar - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-dlf - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-dgc - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-dli - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-dns - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-drs - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-ecs - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-eihealth - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-eip - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-geip - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-elb - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-eps - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-evs - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-dss - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-functiongraph - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-gaussdbfornosql - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-hss - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-cgs - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-iam - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-iec - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-ief - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-image - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-ims - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-iotda - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-iotedge - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-kafka - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-kms - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-kps - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-live - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-meeting - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-moderation - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-mpc - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-mrs - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-nat - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-oms - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-osm - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-projectman - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-rabbitmq - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-rds - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-rms - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-roma - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-sa - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-secmaster - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-scm - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-servicestage - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-smn - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-sms - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-swr - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-tms - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-vpc - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-vpcep - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-cdn - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-ugo - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-ocr - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-waf - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-optverse - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-oroas - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-vod - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-lts - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-gaussdb - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-ccm - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-csms - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-codeartsdeploy - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-frs - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-codecraft - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-imagesearch - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-cbs - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-cpts - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-ivs - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-gsl - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-cdm - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-sdrs - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-dbss - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-dsc - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-codeartsinspector - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-nlp - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-gaussdbforopengauss - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-campusgo - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-codehub - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-vas - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-cbh - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-ges - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-sfsturbo - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-sis - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-cloudtable - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-deh - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-res - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-hilens - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-iotanalytics - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-expert - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-css - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-dws - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-vcm - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-cc - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-cse - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-cae - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-rocketmq - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-apm - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-cph - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-eg - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-er - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-ga - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-workspace - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-workspaceapp - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-codeartsartifact - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-koomessage - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-koophone - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-koomap - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-devsecurity - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-dc - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-aos - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-mas - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-dwr - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-dris - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-mapds - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-codeartsbuild - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-lakeformation - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-dataartsinsight - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-organizations - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-ram - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-idme - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-idmeclassicapi - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-metastudio - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-cms - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-msgsms - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-eds - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-obs - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-dataartsstudio - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-tics - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-config - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-identitycenter - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-identitycenterstore - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-pangulargemodels - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-edgesec - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-ec - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-kvs - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-vpn - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-aad - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-rgc - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-iamaccessanalyzer - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-sts - 3.1.99 + 3.1.100 - ${project.artifactId}-3.1.99 + ${project.artifactId}-3.1.100 maven-dependency-plugin diff --git a/bundle/pom.xml b/bundle/pom.xml index f180560f82..57489fbadd 100644 --- a/bundle/pom.xml +++ b/bundle/pom.xml @@ -8,13 +8,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk 4.0.0 huaweicloud-sdk-bundle - 3.1.99 + 3.1.100 jar Huawei Cloud SDK for Java Bundle A single bundled dependency that includes all service and dependent JARs for Huawei Cloud Java SDK @@ -24,7 +24,7 @@ com.huaweicloud.sdk huaweicloud-sdk-all - 3.1.99 + 3.1.100 diff --git a/core-bson/pom.xml b/core-bson/pom.xml index 1448cf7f16..cdb73b78cb 100644 --- a/core-bson/pom.xml +++ b/core-bson/pom.xml @@ -4,14 +4,14 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk 4.0.0 jar huaweicloud-sdk-core-bson - 3.1.99 + 3.1.100 Huawei Cloud SDK for Java Core Bson Core Bson library for Huawei Cloud Java SDK https://github.com/huaweicloud/huaweicloud-sdk-java-v3 @@ -25,7 +25,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 ch.qos.logback diff --git a/core-xml/pom.xml b/core-xml/pom.xml index 502d0fdf07..e49f39b8d3 100644 --- a/core-xml/pom.xml +++ b/core-xml/pom.xml @@ -4,14 +4,14 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk 4.0.0 jar huaweicloud-sdk-core-xml - 3.1.99 + 3.1.100 Huawei Cloud SDK for Java Core XML Core XML library for Huawei Cloud Java SDK https://github.com/huaweicloud/huaweicloud-sdk-java-v3 @@ -25,7 +25,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 ch.qos.logback diff --git a/core/pom.xml b/core/pom.xml index 49b185724f..c04a080d5d 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -5,14 +5,14 @@ com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk 4.0.0 jar huaweicloud-sdk-core - 3.1.99 + 3.1.100 Huawei Cloud SDK for Java Core Core library for Huawei Cloud Java SDK https://github.com/huaweicloud/huaweicloud-sdk-java-v3 diff --git a/core/src/main/java/com/huaweicloud/sdk/core/auth/AbstractCredentials.java b/core/src/main/java/com/huaweicloud/sdk/core/auth/AbstractCredentials.java index f4e9bbcdbc..6617a1c690 100644 --- a/core/src/main/java/com/huaweicloud/sdk/core/auth/AbstractCredentials.java +++ b/core/src/main/java/com/huaweicloud/sdk/core/auth/AbstractCredentials.java @@ -134,6 +134,9 @@ public void setDerivedPredicate(Function derivedPredicate) * @return DerivedT with ak set */ public T withAk(String ak) { + if (StringUtils.isEmpty(ak)) { + throw new IllegalArgumentException("input ak cannot be null or empty."); + } this.ak = ak; return toDerivedT(); } @@ -143,6 +146,9 @@ public T withAk(String ak) { * @return DerivedT with sk set */ public T withSk(String sk) { + if (StringUtils.isEmpty(sk)) { + throw new IllegalArgumentException("input sk cannot be null or empty."); + } this.sk = sk; return toDerivedT(); } diff --git a/core/src/test/java/com/huaweicloud/sdk/core/TestCredentials.java b/core/src/test/java/com/huaweicloud/sdk/core/TestCredentials.java new file mode 100644 index 0000000000..9d37d7bc7b --- /dev/null +++ b/core/src/test/java/com/huaweicloud/sdk/core/TestCredentials.java @@ -0,0 +1,50 @@ +/* + * Copyright (c) Huawei Technologies Co., Ltd. 2024-2024. All rights reserved. + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package com.huaweicloud.sdk.core; + +import com.huaweicloud.sdk.core.auth.BasicCredentials; +import com.huaweicloud.sdk.core.auth.GlobalCredentials; +import org.junit.Assert; +import org.junit.Test; + +public class TestCredentials { + @Test(expected = IllegalArgumentException.class) + public void testNullAk() { + new BasicCredentials().withAk(null).withSk("sk"); + } + + @Test(expected = IllegalArgumentException.class) + public void testNullSk() { + new GlobalCredentials().withAk("ak").withSk(null); + } + + @Test(expected = IllegalArgumentException.class) + public void testNullAkSk() { + new GlobalCredentials().withAk(null).withSk(null); + } + + @Test + public void testValidAkSk() { + BasicCredentials credentials = new BasicCredentials().withAk("ak").withSk("sk"); + Assert.assertEquals("ak", credentials.getAk()); + Assert.assertEquals("sk", credentials.getSk()); + } +} diff --git a/pom.xml b/pom.xml index 8a951efe3a..c76b8fdb7f 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ pom com.huaweicloud.sdk huaweicloud-sdk - 3.1.99 + 3.1.100 Huawei Cloud SDK for Java Parent Huawei Cloud SDK for Java https://github.com/huaweicloud/huaweicloud-sdk-java-v3 diff --git a/services/aad/pom.xml b/services/aad/pom.xml index ce0b239681..c187d69002 100644 --- a/services/aad/pom.xml +++ b/services/aad/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-aad - 3.1.99 + 3.1.100 Huawei Cloud SDK for AAD 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/antiddos/pom.xml b/services/antiddos/pom.xml index cd9bd58c12..c67b8932c9 100644 --- a/services/antiddos/pom.xml +++ b/services/antiddos/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-antiddos -3.1.99 +3.1.100 Huawei Cloud SDK for ANTIDDOS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/aom/pom.xml b/services/aom/pom.xml index 18a0184380..484484a381 100644 --- a/services/aom/pom.xml +++ b/services/aom/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-aom - 3.1.99 + 3.1.100 Huawei Cloud SDK for AOM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/aos/pom.xml b/services/aos/pom.xml index acd4063ff0..d98e8e4dbf 100644 --- a/services/aos/pom.xml +++ b/services/aos/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-aos - 3.1.99 + 3.1.100 Huawei Cloud SDK for AOS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/region/AosRegion.java b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/region/AosRegion.java index d7c7404a36..79d94df068 100644 --- a/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/region/AosRegion.java +++ b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/region/AosRegion.java @@ -51,6 +51,14 @@ public class AosRegion { public static final Region EU_WEST_101 = new Region("eu-west-101", "https://aos.myhuaweicloud.eu"); + public static final Region NA_MEXICO_1 = new Region("na-mexico-1", "https://rfs.na-mexico-1.myhuaweicloud.com"); + + public static final Region CN_NORTH_11 = new Region("cn-north-11", "https://rfs.cn-north-11.myhuaweicloud.com"); + + public static final Region CN_EAST_5 = new Region("cn-east-5", "https://rfs.cn-east-5.myhuaweicloud.com"); + + public static final Region AF_NORTH_1 = new Region("af-north-1", "https://rfs.af-north-1.myhuaweicloud.com"); + private static final IRegionProvider PROVIDER = RegionProviderChain.getDefaultRegionProviderChain("AOS"); private static final Map STATIC_FIELDS = createStaticFields(); @@ -73,6 +81,10 @@ private static Map createStaticFields() { map.put("la-north-2", LA_NORTH_2); map.put("af-south-1", AF_SOUTH_1); map.put("eu-west-101", EU_WEST_101); + map.put("na-mexico-1", NA_MEXICO_1); + map.put("cn-north-11", CN_NORTH_11); + map.put("cn-east-5", CN_EAST_5); + map.put("af-north-1", AF_NORTH_1); return Collections.unmodifiableMap(map); } diff --git a/services/apig/pom.xml b/services/apig/pom.xml index cb0f7d52aa..eb66580b2d 100644 --- a/services/apig/pom.xml +++ b/services/apig/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-apig - 3.1.99 + 3.1.100 Huawei Cloud SDK for APIG 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/apm/pom.xml b/services/apm/pom.xml index 56d6c9ffb5..7386d76bde 100644 --- a/services/apm/pom.xml +++ b/services/apm/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-apm - 3.1.99 + 3.1.100 Huawei Cloud SDK for APM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/as/pom.xml b/services/as/pom.xml index bc1de6f037..a6a32b7afe 100644 --- a/services/as/pom.xml +++ b/services/as/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-as - 3.1.99 + 3.1.100 Huawei Cloud SDK for AS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/as/src/main/java/com/huaweicloud/sdk/as/v1/model/CreateScalingPolicyV2Option.java b/services/as/src/main/java/com/huaweicloud/sdk/as/v1/model/CreateScalingPolicyV2Option.java index fc6e319cef..10ae45bbef 100644 --- a/services/as/src/main/java/com/huaweicloud/sdk/as/v1/model/CreateScalingPolicyV2Option.java +++ b/services/as/src/main/java/com/huaweicloud/sdk/as/v1/model/CreateScalingPolicyV2Option.java @@ -5,8 +5,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; +import java.util.List; import java.util.Map; import java.util.Objects; import java.util.function.Consumer; @@ -197,6 +199,11 @@ public int hashCode() { private ScalingPolicyActionV2 scalingPolicyAction; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "interval_alarm_actions") + + private List intervalAlarmActions = null; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "cool_down_time") @@ -345,6 +352,40 @@ public void setScalingPolicyAction(ScalingPolicyActionV2 scalingPolicyAction) { this.scalingPolicyAction = scalingPolicyAction; } + public CreateScalingPolicyV2Option withIntervalAlarmActions(List intervalAlarmActions) { + this.intervalAlarmActions = intervalAlarmActions; + return this; + } + + public CreateScalingPolicyV2Option addIntervalAlarmActionsItem(IntervalAlarmActionsV2 intervalAlarmActionsItem) { + if (this.intervalAlarmActions == null) { + this.intervalAlarmActions = new ArrayList<>(); + } + this.intervalAlarmActions.add(intervalAlarmActionsItem); + return this; + } + + public CreateScalingPolicyV2Option withIntervalAlarmActions( + Consumer> intervalAlarmActionsSetter) { + if (this.intervalAlarmActions == null) { + this.intervalAlarmActions = new ArrayList<>(); + } + intervalAlarmActionsSetter.accept(this.intervalAlarmActions); + return this; + } + + /** + * Get intervalAlarmActions + * @return intervalAlarmActions + */ + public List getIntervalAlarmActions() { + return intervalAlarmActions; + } + + public void setIntervalAlarmActions(List intervalAlarmActions) { + this.intervalAlarmActions = intervalAlarmActions; + } + public CreateScalingPolicyV2Option withCoolDownTime(Integer coolDownTime) { this.coolDownTime = coolDownTime; return this; @@ -395,6 +436,7 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.scalingPolicyType, that.scalingPolicyType) && Objects.equals(this.alarmId, that.alarmId) && Objects.equals(this.scheduledPolicy, that.scheduledPolicy) && Objects.equals(this.scalingPolicyAction, that.scalingPolicyAction) + && Objects.equals(this.intervalAlarmActions, that.intervalAlarmActions) && Objects.equals(this.coolDownTime, that.coolDownTime) && Objects.equals(this.description, that.description); } @@ -408,6 +450,7 @@ public int hashCode() { alarmId, scheduledPolicy, scalingPolicyAction, + intervalAlarmActions, coolDownTime, description); } @@ -423,6 +466,7 @@ public String toString() { sb.append(" alarmId: ").append(toIndentedString(alarmId)).append("\n"); sb.append(" scheduledPolicy: ").append(toIndentedString(scheduledPolicy)).append("\n"); sb.append(" scalingPolicyAction: ").append(toIndentedString(scalingPolicyAction)).append("\n"); + sb.append(" intervalAlarmActions: ").append(toIndentedString(intervalAlarmActions)).append("\n"); sb.append(" coolDownTime: ").append(toIndentedString(coolDownTime)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append("}"); diff --git a/services/as/src/main/java/com/huaweicloud/sdk/as/v1/model/IntervalAlarmActionsV2.java b/services/as/src/main/java/com/huaweicloud/sdk/as/v1/model/IntervalAlarmActionsV2.java new file mode 100644 index 0000000000..fef0b80c22 --- /dev/null +++ b/services/as/src/main/java/com/huaweicloud/sdk/as/v1/model/IntervalAlarmActionsV2.java @@ -0,0 +1,166 @@ +package com.huaweicloud.sdk.as.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 操作告警区间 + */ +public class IntervalAlarmActionsV2 { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "operation") + + private String operation; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limits") + + private Integer limits; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "size") + + private Integer size; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "lower_bound") + + private Integer lowerBound; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "upper_bound") + + private Integer upperBound; + + public IntervalAlarmActionsV2 withOperation(String operation) { + this.operation = operation; + return this; + } + + /** + * 操作选项,默认为ADD。 当scaling_resource_type为SCALING_GROUP,支持如下操作: ADD:增加 REMOVE/REDUCE:减少 SET:设置为 当scaling_resource_type为BANDWIDTH,支持如下操作: ADD:增加 REDUCE:减少 + * @return operation + */ + public String getOperation() { + return operation; + } + + public void setOperation(String operation) { + this.operation = operation; + } + + public IntervalAlarmActionsV2 withLimits(Integer limits) { + this.limits = limits; + return this; + } + + /** + * 操作限制。当scaling_resource_type为BANDWIDTH,且operation不为SET时,limits参数生效,单位为Mbit/s。此时,当operation为ADD时,limits表示带宽可调整的上限;当operation为REDUCE时,limits表示带宽可调整的下限。 + * @return limits + */ + public Integer getLimits() { + return limits; + } + + public void setLimits(Integer limits) { + this.limits = limits; + } + + public IntervalAlarmActionsV2 withSize(Integer size) { + this.size = size; + return this; + } + + /** + * 操作大小,取值范围为0到300的整数,默认为1。当scaling_resource_type为SCALING_GROUP时,size为实例个数,取值范围为0-300的整数,默认为1。当scaling_resource_type为BANDWIDTH时,size表示带宽大小,单位为Mbit/s,取值范围为1到300的整数,默认为1。当scaling_resource_type为SCALING_GROUP时,size和percentage参数只能选其中一个进行配置。 + * @return size + */ + public Integer getSize() { + return size; + } + + public void setSize(Integer size) { + this.size = size; + } + + public IntervalAlarmActionsV2 withLowerBound(Integer lowerBound) { + this.lowerBound = lowerBound; + return this; + } + + /** + * Get lowerBound + * @return lowerBound + */ + public Integer getLowerBound() { + return lowerBound; + } + + public void setLowerBound(Integer lowerBound) { + this.lowerBound = lowerBound; + } + + public IntervalAlarmActionsV2 withUpperBound(Integer upperBound) { + this.upperBound = upperBound; + return this; + } + + /** + * Get upperBound + * @return upperBound + */ + public Integer getUpperBound() { + return upperBound; + } + + public void setUpperBound(Integer upperBound) { + this.upperBound = upperBound; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + IntervalAlarmActionsV2 that = (IntervalAlarmActionsV2) obj; + return Objects.equals(this.operation, that.operation) && Objects.equals(this.limits, that.limits) + && Objects.equals(this.size, that.size) && Objects.equals(this.lowerBound, that.lowerBound) + && Objects.equals(this.upperBound, that.upperBound); + } + + @Override + public int hashCode() { + return Objects.hash(operation, limits, size, lowerBound, upperBound); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IntervalAlarmActionsV2 {\n"); + sb.append(" operation: ").append(toIndentedString(operation)).append("\n"); + sb.append(" limits: ").append(toIndentedString(limits)).append("\n"); + sb.append(" size: ").append(toIndentedString(size)).append("\n"); + sb.append(" lowerBound: ").append(toIndentedString(lowerBound)).append("\n"); + sb.append(" upperBound: ").append(toIndentedString(upperBound)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/as/src/main/java/com/huaweicloud/sdk/as/v1/model/ScalingAllPolicyDetail.java b/services/as/src/main/java/com/huaweicloud/sdk/as/v1/model/ScalingAllPolicyDetail.java index ee98b9a0c6..f4455dfacd 100644 --- a/services/as/src/main/java/com/huaweicloud/sdk/as/v1/model/ScalingAllPolicyDetail.java +++ b/services/as/src/main/java/com/huaweicloud/sdk/as/v1/model/ScalingAllPolicyDetail.java @@ -6,8 +6,10 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.time.OffsetDateTime; +import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; +import java.util.List; import java.util.Map; import java.util.Objects; import java.util.function.Consumer; @@ -284,6 +286,11 @@ public int hashCode() { private ScalingPolicyActionV2 scalingPolicyAction; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "interval_alarm_actions") + + private List intervalAlarmActions = null; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "cool_down_time") @@ -475,6 +482,40 @@ public void setScalingPolicyAction(ScalingPolicyActionV2 scalingPolicyAction) { this.scalingPolicyAction = scalingPolicyAction; } + public ScalingAllPolicyDetail withIntervalAlarmActions(List intervalAlarmActions) { + this.intervalAlarmActions = intervalAlarmActions; + return this; + } + + public ScalingAllPolicyDetail addIntervalAlarmActionsItem(IntervalAlarmActionsV2 intervalAlarmActionsItem) { + if (this.intervalAlarmActions == null) { + this.intervalAlarmActions = new ArrayList<>(); + } + this.intervalAlarmActions.add(intervalAlarmActionsItem); + return this; + } + + public ScalingAllPolicyDetail withIntervalAlarmActions( + Consumer> intervalAlarmActionsSetter) { + if (this.intervalAlarmActions == null) { + this.intervalAlarmActions = new ArrayList<>(); + } + intervalAlarmActionsSetter.accept(this.intervalAlarmActions); + return this; + } + + /** + * Get intervalAlarmActions + * @return intervalAlarmActions + */ + public List getIntervalAlarmActions() { + return intervalAlarmActions; + } + + public void setIntervalAlarmActions(List intervalAlarmActions) { + this.intervalAlarmActions = intervalAlarmActions; + } + public ScalingAllPolicyDetail withCoolDownTime(Integer coolDownTime) { this.coolDownTime = coolDownTime; return this; @@ -570,6 +611,7 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.scalingPolicyType, that.scalingPolicyType) && Objects.equals(this.alarmId, that.alarmId) && Objects.equals(this.scheduledPolicy, that.scheduledPolicy) && Objects.equals(this.scalingPolicyAction, that.scalingPolicyAction) + && Objects.equals(this.intervalAlarmActions, that.intervalAlarmActions) && Objects.equals(this.coolDownTime, that.coolDownTime) && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.metaData, that.metaData) && Objects.equals(this.description, that.description); } @@ -585,6 +627,7 @@ public int hashCode() { alarmId, scheduledPolicy, scalingPolicyAction, + intervalAlarmActions, coolDownTime, createTime, metaData, @@ -604,6 +647,7 @@ public String toString() { sb.append(" alarmId: ").append(toIndentedString(alarmId)).append("\n"); sb.append(" scheduledPolicy: ").append(toIndentedString(scheduledPolicy)).append("\n"); sb.append(" scalingPolicyAction: ").append(toIndentedString(scalingPolicyAction)).append("\n"); + sb.append(" intervalAlarmActions: ").append(toIndentedString(intervalAlarmActions)).append("\n"); sb.append(" coolDownTime: ").append(toIndentedString(coolDownTime)).append("\n"); sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); sb.append(" metaData: ").append(toIndentedString(metaData)).append("\n"); diff --git a/services/as/src/main/java/com/huaweicloud/sdk/as/v1/model/ScalingPoliciesV2.java b/services/as/src/main/java/com/huaweicloud/sdk/as/v1/model/ScalingPoliciesV2.java index 4dca8a19f9..e8bb3a0565 100644 --- a/services/as/src/main/java/com/huaweicloud/sdk/as/v1/model/ScalingPoliciesV2.java +++ b/services/as/src/main/java/com/huaweicloud/sdk/as/v1/model/ScalingPoliciesV2.java @@ -6,8 +6,10 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.time.OffsetDateTime; +import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; +import java.util.List; import java.util.Map; import java.util.Objects; import java.util.function.Consumer; @@ -284,6 +286,11 @@ public int hashCode() { private ScalingPolicyActionV2 scalingPolicyAction; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "interval_alarm_actions") + + private List intervalAlarmActions = null; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "cool_down_time") @@ -475,6 +482,40 @@ public void setScalingPolicyAction(ScalingPolicyActionV2 scalingPolicyAction) { this.scalingPolicyAction = scalingPolicyAction; } + public ScalingPoliciesV2 withIntervalAlarmActions(List intervalAlarmActions) { + this.intervalAlarmActions = intervalAlarmActions; + return this; + } + + public ScalingPoliciesV2 addIntervalAlarmActionsItem(IntervalAlarmActionsV2 intervalAlarmActionsItem) { + if (this.intervalAlarmActions == null) { + this.intervalAlarmActions = new ArrayList<>(); + } + this.intervalAlarmActions.add(intervalAlarmActionsItem); + return this; + } + + public ScalingPoliciesV2 withIntervalAlarmActions( + Consumer> intervalAlarmActionsSetter) { + if (this.intervalAlarmActions == null) { + this.intervalAlarmActions = new ArrayList<>(); + } + intervalAlarmActionsSetter.accept(this.intervalAlarmActions); + return this; + } + + /** + * Get intervalAlarmActions + * @return intervalAlarmActions + */ + public List getIntervalAlarmActions() { + return intervalAlarmActions; + } + + public void setIntervalAlarmActions(List intervalAlarmActions) { + this.intervalAlarmActions = intervalAlarmActions; + } + public ScalingPoliciesV2 withCoolDownTime(Integer coolDownTime) { this.coolDownTime = coolDownTime; return this; @@ -570,6 +611,7 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.scalingPolicyType, that.scalingPolicyType) && Objects.equals(this.alarmId, that.alarmId) && Objects.equals(this.scheduledPolicy, that.scheduledPolicy) && Objects.equals(this.scalingPolicyAction, that.scalingPolicyAction) + && Objects.equals(this.intervalAlarmActions, that.intervalAlarmActions) && Objects.equals(this.coolDownTime, that.coolDownTime) && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.metaData, that.metaData) && Objects.equals(this.description, that.description); } @@ -585,6 +627,7 @@ public int hashCode() { alarmId, scheduledPolicy, scalingPolicyAction, + intervalAlarmActions, coolDownTime, createTime, metaData, @@ -604,6 +647,7 @@ public String toString() { sb.append(" alarmId: ").append(toIndentedString(alarmId)).append("\n"); sb.append(" scheduledPolicy: ").append(toIndentedString(scheduledPolicy)).append("\n"); sb.append(" scalingPolicyAction: ").append(toIndentedString(scalingPolicyAction)).append("\n"); + sb.append(" intervalAlarmActions: ").append(toIndentedString(intervalAlarmActions)).append("\n"); sb.append(" coolDownTime: ").append(toIndentedString(coolDownTime)).append("\n"); sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); sb.append(" metaData: ").append(toIndentedString(metaData)).append("\n"); diff --git a/services/as/src/main/java/com/huaweicloud/sdk/as/v1/model/ScalingV2PolicyDetail.java b/services/as/src/main/java/com/huaweicloud/sdk/as/v1/model/ScalingV2PolicyDetail.java index ee9eae9612..f45c16d2de 100644 --- a/services/as/src/main/java/com/huaweicloud/sdk/as/v1/model/ScalingV2PolicyDetail.java +++ b/services/as/src/main/java/com/huaweicloud/sdk/as/v1/model/ScalingV2PolicyDetail.java @@ -6,8 +6,10 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.time.OffsetDateTime; +import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; +import java.util.List; import java.util.Map; import java.util.Objects; import java.util.function.Consumer; @@ -284,6 +286,11 @@ public int hashCode() { private ScalingPolicyActionV2 scalingPolicyAction; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "interval_alarm_actions") + + private List intervalAlarmActions = null; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "cool_down_time") @@ -475,6 +482,40 @@ public void setScalingPolicyAction(ScalingPolicyActionV2 scalingPolicyAction) { this.scalingPolicyAction = scalingPolicyAction; } + public ScalingV2PolicyDetail withIntervalAlarmActions(List intervalAlarmActions) { + this.intervalAlarmActions = intervalAlarmActions; + return this; + } + + public ScalingV2PolicyDetail addIntervalAlarmActionsItem(IntervalAlarmActionsV2 intervalAlarmActionsItem) { + if (this.intervalAlarmActions == null) { + this.intervalAlarmActions = new ArrayList<>(); + } + this.intervalAlarmActions.add(intervalAlarmActionsItem); + return this; + } + + public ScalingV2PolicyDetail withIntervalAlarmActions( + Consumer> intervalAlarmActionsSetter) { + if (this.intervalAlarmActions == null) { + this.intervalAlarmActions = new ArrayList<>(); + } + intervalAlarmActionsSetter.accept(this.intervalAlarmActions); + return this; + } + + /** + * Get intervalAlarmActions + * @return intervalAlarmActions + */ + public List getIntervalAlarmActions() { + return intervalAlarmActions; + } + + public void setIntervalAlarmActions(List intervalAlarmActions) { + this.intervalAlarmActions = intervalAlarmActions; + } + public ScalingV2PolicyDetail withCoolDownTime(Integer coolDownTime) { this.coolDownTime = coolDownTime; return this; @@ -570,6 +611,7 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.scalingPolicyType, that.scalingPolicyType) && Objects.equals(this.alarmId, that.alarmId) && Objects.equals(this.scheduledPolicy, that.scheduledPolicy) && Objects.equals(this.scalingPolicyAction, that.scalingPolicyAction) + && Objects.equals(this.intervalAlarmActions, that.intervalAlarmActions) && Objects.equals(this.coolDownTime, that.coolDownTime) && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.metaData, that.metaData) && Objects.equals(this.description, that.description); } @@ -585,6 +627,7 @@ public int hashCode() { alarmId, scheduledPolicy, scalingPolicyAction, + intervalAlarmActions, coolDownTime, createTime, metaData, @@ -604,6 +647,7 @@ public String toString() { sb.append(" alarmId: ").append(toIndentedString(alarmId)).append("\n"); sb.append(" scheduledPolicy: ").append(toIndentedString(scheduledPolicy)).append("\n"); sb.append(" scalingPolicyAction: ").append(toIndentedString(scalingPolicyAction)).append("\n"); + sb.append(" intervalAlarmActions: ").append(toIndentedString(intervalAlarmActions)).append("\n"); sb.append(" coolDownTime: ").append(toIndentedString(coolDownTime)).append("\n"); sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); sb.append(" metaData: ").append(toIndentedString(metaData)).append("\n"); diff --git a/services/as/src/main/java/com/huaweicloud/sdk/as/v1/model/UpdateScalingV2PolicyOption.java b/services/as/src/main/java/com/huaweicloud/sdk/as/v1/model/UpdateScalingV2PolicyOption.java index e00aec3406..bb481e03ca 100644 --- a/services/as/src/main/java/com/huaweicloud/sdk/as/v1/model/UpdateScalingV2PolicyOption.java +++ b/services/as/src/main/java/com/huaweicloud/sdk/as/v1/model/UpdateScalingV2PolicyOption.java @@ -5,8 +5,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; +import java.util.List; import java.util.Map; import java.util.Objects; import java.util.function.Consumer; @@ -197,6 +199,11 @@ public int hashCode() { private ScalingPolicyActionV2 scalingPolicyAction; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "interval_alarm_actions") + + private List intervalAlarmActions = null; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "cool_down_time") @@ -345,6 +352,40 @@ public void setScalingPolicyAction(ScalingPolicyActionV2 scalingPolicyAction) { this.scalingPolicyAction = scalingPolicyAction; } + public UpdateScalingV2PolicyOption withIntervalAlarmActions(List intervalAlarmActions) { + this.intervalAlarmActions = intervalAlarmActions; + return this; + } + + public UpdateScalingV2PolicyOption addIntervalAlarmActionsItem(IntervalAlarmActionsV2 intervalAlarmActionsItem) { + if (this.intervalAlarmActions == null) { + this.intervalAlarmActions = new ArrayList<>(); + } + this.intervalAlarmActions.add(intervalAlarmActionsItem); + return this; + } + + public UpdateScalingV2PolicyOption withIntervalAlarmActions( + Consumer> intervalAlarmActionsSetter) { + if (this.intervalAlarmActions == null) { + this.intervalAlarmActions = new ArrayList<>(); + } + intervalAlarmActionsSetter.accept(this.intervalAlarmActions); + return this; + } + + /** + * Get intervalAlarmActions + * @return intervalAlarmActions + */ + public List getIntervalAlarmActions() { + return intervalAlarmActions; + } + + public void setIntervalAlarmActions(List intervalAlarmActions) { + this.intervalAlarmActions = intervalAlarmActions; + } + public UpdateScalingV2PolicyOption withCoolDownTime(Integer coolDownTime) { this.coolDownTime = coolDownTime; return this; @@ -395,6 +436,7 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.scalingPolicyType, that.scalingPolicyType) && Objects.equals(this.alarmId, that.alarmId) && Objects.equals(this.scheduledPolicy, that.scheduledPolicy) && Objects.equals(this.scalingPolicyAction, that.scalingPolicyAction) + && Objects.equals(this.intervalAlarmActions, that.intervalAlarmActions) && Objects.equals(this.coolDownTime, that.coolDownTime) && Objects.equals(this.description, that.description); } @@ -408,6 +450,7 @@ public int hashCode() { alarmId, scheduledPolicy, scalingPolicyAction, + intervalAlarmActions, coolDownTime, description); } @@ -423,6 +466,7 @@ public String toString() { sb.append(" alarmId: ").append(toIndentedString(alarmId)).append("\n"); sb.append(" scheduledPolicy: ").append(toIndentedString(scheduledPolicy)).append("\n"); sb.append(" scalingPolicyAction: ").append(toIndentedString(scalingPolicyAction)).append("\n"); + sb.append(" intervalAlarmActions: ").append(toIndentedString(intervalAlarmActions)).append("\n"); sb.append(" coolDownTime: ").append(toIndentedString(coolDownTime)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append("}"); diff --git a/services/asm/pom.xml b/services/asm/pom.xml index a5e0ca7964..7d764d5d16 100644 --- a/services/asm/pom.xml +++ b/services/asm/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-asm - 3.1.99 + 3.1.100 Huawei Cloud SDK for ASM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/bcs/pom.xml b/services/bcs/pom.xml index fb81cc2645..b4bb180b9f 100644 --- a/services/bcs/pom.xml +++ b/services/bcs/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-bcs - 3.1.99 + 3.1.100 Huawei Cloud SDK for BCS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/bms/pom.xml b/services/bms/pom.xml index 098acb70e0..19efcc7b42 100644 --- a/services/bms/pom.xml +++ b/services/bms/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-bms - 3.1.99 + 3.1.100 Huawei Cloud SDK for BMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/bss/pom.xml b/services/bss/pom.xml index 61e8f44146..5549ebf684 100644 --- a/services/bss/pom.xml +++ b/services/bss/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-bss - 3.1.99 + 3.1.100 Huawei Cloud SDK for BSS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/bssintl/pom.xml b/services/bssintl/pom.xml index 66d1c4c3d1..f391b854a3 100644 --- a/services/bssintl/pom.xml +++ b/services/bssintl/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-bssintl - 3.1.99 + 3.1.100 Huawei Cloud SDK for BSSINTL 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/cae/pom.xml b/services/cae/pom.xml index 06d297d68a..0f34512202 100644 --- a/services/cae/pom.xml +++ b/services/cae/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-cae - 3.1.99 + 3.1.100 Huawei Cloud SDK for CAE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/CaeAsyncClient.java b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/CaeAsyncClient.java index 6611f8590e..32efa266dd 100644 --- a/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/CaeAsyncClient.java +++ b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/CaeAsyncClient.java @@ -10,6 +10,8 @@ import com.huaweicloud.sdk.cae.v1.model.CreateComponentConfigurationResponse; import com.huaweicloud.sdk.cae.v1.model.CreateComponentRequest; import com.huaweicloud.sdk.cae.v1.model.CreateComponentResponse; +import com.huaweicloud.sdk.cae.v1.model.CreateComponentWithConfigurationRequest; +import com.huaweicloud.sdk.cae.v1.model.CreateComponentWithConfigurationResponse; import com.huaweicloud.sdk.cae.v1.model.CreateDomainRequest; import com.huaweicloud.sdk.cae.v1.model.CreateDomainResponse; import com.huaweicloud.sdk.cae.v1.model.CreateEnvironmentRequest; @@ -440,6 +442,36 @@ public AsyncInvoker createCompo return new AsyncInvoker<>(request, CaeMeta.createComponent, hcClient); } + /** + * 创建、生效配置并部署组件 + * + * 创建、生效配置并部署组件。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateComponentWithConfigurationRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture createComponentWithConfigurationAsync( + CreateComponentWithConfigurationRequest request) { + return hcClient.asyncInvokeHttp(request, CaeMeta.createComponentWithConfiguration); + } + + /** + * 创建、生效配置并部署组件 + * + * 创建、生效配置并部署组件。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateComponentWithConfigurationRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker createComponentWithConfigurationAsyncInvoker( + CreateComponentWithConfigurationRequest request) { + return new AsyncInvoker<>(request, CaeMeta.createComponentWithConfiguration, hcClient); + } + /** * 删除组件 * diff --git a/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/CaeClient.java b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/CaeClient.java index 8d718a0620..dc3af7642e 100644 --- a/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/CaeClient.java +++ b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/CaeClient.java @@ -10,6 +10,8 @@ import com.huaweicloud.sdk.cae.v1.model.CreateComponentConfigurationResponse; import com.huaweicloud.sdk.cae.v1.model.CreateComponentRequest; import com.huaweicloud.sdk.cae.v1.model.CreateComponentResponse; +import com.huaweicloud.sdk.cae.v1.model.CreateComponentWithConfigurationRequest; +import com.huaweicloud.sdk.cae.v1.model.CreateComponentWithConfigurationResponse; import com.huaweicloud.sdk.cae.v1.model.CreateDomainRequest; import com.huaweicloud.sdk.cae.v1.model.CreateDomainResponse; import com.huaweicloud.sdk.cae.v1.model.CreateEnvironmentRequest; @@ -436,6 +438,36 @@ public SyncInvoker createCompon return new SyncInvoker<>(request, CaeMeta.createComponent, hcClient); } + /** + * 创建、生效配置并部署组件 + * + * 创建、生效配置并部署组件。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateComponentWithConfigurationRequest 请求对象 + * @return CreateComponentWithConfigurationResponse + */ + public CreateComponentWithConfigurationResponse createComponentWithConfiguration( + CreateComponentWithConfigurationRequest request) { + return hcClient.syncInvokeHttp(request, CaeMeta.createComponentWithConfiguration); + } + + /** + * 创建、生效配置并部署组件 + * + * 创建、生效配置并部署组件。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateComponentWithConfigurationRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker createComponentWithConfigurationInvoker( + CreateComponentWithConfigurationRequest request) { + return new SyncInvoker<>(request, CaeMeta.createComponentWithConfiguration, hcClient); + } + /** * 删除组件 * diff --git a/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/CaeMeta.java b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/CaeMeta.java index 094251d89b..c016dad854 100644 --- a/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/CaeMeta.java +++ b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/CaeMeta.java @@ -15,6 +15,9 @@ import com.huaweicloud.sdk.cae.v1.model.CreateComponentRequest; import com.huaweicloud.sdk.cae.v1.model.CreateComponentRequestBody; import com.huaweicloud.sdk.cae.v1.model.CreateComponentResponse; +import com.huaweicloud.sdk.cae.v1.model.CreateComponentWithConfigurationRequest; +import com.huaweicloud.sdk.cae.v1.model.CreateComponentWithConfigurationRequestBody; +import com.huaweicloud.sdk.cae.v1.model.CreateComponentWithConfigurationResponse; import com.huaweicloud.sdk.cae.v1.model.CreateDomainReq; import com.huaweicloud.sdk.cae.v1.model.CreateDomainRequest; import com.huaweicloud.sdk.cae.v1.model.CreateDomainResponse; @@ -486,6 +489,51 @@ private static HttpRequestDef g return builder.build(); } + public static final HttpRequestDef createComponentWithConfiguration = + genForCreateComponentWithConfiguration(); + + private static HttpRequestDef genForCreateComponentWithConfiguration() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.POST, + CreateComponentWithConfigurationRequest.class, + CreateComponentWithConfigurationResponse.class) + .withName("CreateComponentWithConfiguration") + .withUri("/v1/{project_id}/cae/applications/{application_id}/component-with-configurations") + .withContentType("application/json"); + + // requests + builder.withRequestField("application_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateComponentWithConfigurationRequest::getApplicationId, + CreateComponentWithConfigurationRequest::setApplicationId)); + builder.withRequestField("X-Enterprise-Project-ID", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateComponentWithConfigurationRequest::getXEnterpriseProjectID, + CreateComponentWithConfigurationRequest::setXEnterpriseProjectID)); + builder.withRequestField("X-Environment-ID", + LocationType.Header, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateComponentWithConfigurationRequest::getXEnvironmentID, + CreateComponentWithConfigurationRequest::setXEnvironmentID)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(CreateComponentWithConfigurationRequestBody.class), + f -> f.withMarshaller(CreateComponentWithConfigurationRequest::getBody, + CreateComponentWithConfigurationRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef deleteComponent = genForDeleteComponent(); diff --git a/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/CreateComponentRequestBody.java b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/CreateComponentRequestBody.java index e3d6cbb3f4..8206caeab4 100644 --- a/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/CreateComponentRequestBody.java +++ b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/CreateComponentRequestBody.java @@ -24,12 +24,12 @@ public class CreateComponentRequestBody { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "metadata") - private CreateComponentRequestBodyMetadata metadata; + private CreateComponentWithConfigurationRequestBodyMetadata metadata; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "spec") - private CreateComponentRequestBodySpec spec; + private CreateComponentWithConfigurationRequestBodySpec spec; public CreateComponentRequestBody withApiVersion(ApiVersionObj apiVersion) { this.apiVersion = apiVersion; @@ -65,14 +65,15 @@ public void setKind(ComponentKindObj kind) { this.kind = kind; } - public CreateComponentRequestBody withMetadata(CreateComponentRequestBodyMetadata metadata) { + public CreateComponentRequestBody withMetadata(CreateComponentWithConfigurationRequestBodyMetadata metadata) { this.metadata = metadata; return this; } - public CreateComponentRequestBody withMetadata(Consumer metadataSetter) { + public CreateComponentRequestBody withMetadata( + Consumer metadataSetter) { if (this.metadata == null) { - this.metadata = new CreateComponentRequestBodyMetadata(); + this.metadata = new CreateComponentWithConfigurationRequestBodyMetadata(); metadataSetter.accept(this.metadata); } @@ -83,22 +84,22 @@ public CreateComponentRequestBody withMetadata(Consumer specSetter) { + public CreateComponentRequestBody withSpec(Consumer specSetter) { if (this.spec == null) { - this.spec = new CreateComponentRequestBodySpec(); + this.spec = new CreateComponentWithConfigurationRequestBodySpec(); specSetter.accept(this.spec); } @@ -109,11 +110,11 @@ public CreateComponentRequestBody withSpec(Consumer 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。 + * @return xEnterpriseProjectID + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Enterprise-Project-ID") + public String getXEnterpriseProjectID() { + return xEnterpriseProjectID; + } + + public void setXEnterpriseProjectID(String xEnterpriseProjectID) { + this.xEnterpriseProjectID = xEnterpriseProjectID; + } + + public CreateComponentWithConfigurationRequest withXEnvironmentID(String xEnvironmentID) { + this.xEnvironmentID = xEnvironmentID; + return this; + } + + /** + * 环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。 + * @return xEnvironmentID + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Environment-ID") + public String getXEnvironmentID() { + return xEnvironmentID; + } + + public void setXEnvironmentID(String xEnvironmentID) { + this.xEnvironmentID = xEnvironmentID; + } + + public CreateComponentWithConfigurationRequest withBody(CreateComponentWithConfigurationRequestBody body) { + this.body = body; + return this; + } + + public CreateComponentWithConfigurationRequest withBody( + Consumer bodySetter) { + if (this.body == null) { + this.body = new CreateComponentWithConfigurationRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public CreateComponentWithConfigurationRequestBody getBody() { + return body; + } + + public void setBody(CreateComponentWithConfigurationRequestBody body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateComponentWithConfigurationRequest that = (CreateComponentWithConfigurationRequest) obj; + return Objects.equals(this.applicationId, that.applicationId) + && Objects.equals(this.xEnterpriseProjectID, that.xEnterpriseProjectID) + && Objects.equals(this.xEnvironmentID, that.xEnvironmentID) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(applicationId, xEnterpriseProjectID, xEnvironmentID, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateComponentWithConfigurationRequest {\n"); + sb.append(" applicationId: ").append(toIndentedString(applicationId)).append("\n"); + sb.append(" xEnterpriseProjectID: ").append(toIndentedString(xEnterpriseProjectID)).append("\n"); + sb.append(" xEnvironmentID: ").append(toIndentedString(xEnvironmentID)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/CreateComponentWithConfigurationRequestBody.java b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/CreateComponentWithConfigurationRequestBody.java new file mode 100644 index 0000000000..7d66958dff --- /dev/null +++ b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/CreateComponentWithConfigurationRequestBody.java @@ -0,0 +1,207 @@ +package com.huaweicloud.sdk.cae.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * CreateComponentWithConfigurationRequestBody + */ +public class CreateComponentWithConfigurationRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "api_version") + + private ApiVersionObj apiVersion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "kind") + + private ComponentKindObj kind; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "metadata") + + private CreateComponentWithConfigurationRequestBodyMetadata metadata; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "spec") + + private CreateComponentWithConfigurationRequestBodySpec spec; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "configurations") + + private List configurations = null; + + public CreateComponentWithConfigurationRequestBody withApiVersion(ApiVersionObj apiVersion) { + this.apiVersion = apiVersion; + return this; + } + + /** + * Get apiVersion + * @return apiVersion + */ + public ApiVersionObj getApiVersion() { + return apiVersion; + } + + public void setApiVersion(ApiVersionObj apiVersion) { + this.apiVersion = apiVersion; + } + + public CreateComponentWithConfigurationRequestBody withKind(ComponentKindObj kind) { + this.kind = kind; + return this; + } + + /** + * Get kind + * @return kind + */ + public ComponentKindObj getKind() { + return kind; + } + + public void setKind(ComponentKindObj kind) { + this.kind = kind; + } + + public CreateComponentWithConfigurationRequestBody withMetadata( + CreateComponentWithConfigurationRequestBodyMetadata metadata) { + this.metadata = metadata; + return this; + } + + public CreateComponentWithConfigurationRequestBody withMetadata( + Consumer metadataSetter) { + if (this.metadata == null) { + this.metadata = new CreateComponentWithConfigurationRequestBodyMetadata(); + metadataSetter.accept(this.metadata); + } + + return this; + } + + /** + * Get metadata + * @return metadata + */ + public CreateComponentWithConfigurationRequestBodyMetadata getMetadata() { + return metadata; + } + + public void setMetadata(CreateComponentWithConfigurationRequestBodyMetadata metadata) { + this.metadata = metadata; + } + + public CreateComponentWithConfigurationRequestBody withSpec(CreateComponentWithConfigurationRequestBodySpec spec) { + this.spec = spec; + return this; + } + + public CreateComponentWithConfigurationRequestBody withSpec( + Consumer specSetter) { + if (this.spec == null) { + this.spec = new CreateComponentWithConfigurationRequestBodySpec(); + specSetter.accept(this.spec); + } + + return this; + } + + /** + * Get spec + * @return spec + */ + public CreateComponentWithConfigurationRequestBodySpec getSpec() { + return spec; + } + + public void setSpec(CreateComponentWithConfigurationRequestBodySpec spec) { + this.spec = spec; + } + + public CreateComponentWithConfigurationRequestBody withConfigurations(List configurations) { + this.configurations = configurations; + return this; + } + + public CreateComponentWithConfigurationRequestBody addConfigurationsItem(ConfigurationItem configurationsItem) { + if (this.configurations == null) { + this.configurations = new ArrayList<>(); + } + this.configurations.add(configurationsItem); + return this; + } + + public CreateComponentWithConfigurationRequestBody withConfigurations( + Consumer> configurationsSetter) { + if (this.configurations == null) { + this.configurations = new ArrayList<>(); + } + configurationsSetter.accept(this.configurations); + return this; + } + + /** + * 配置项列表。 + * @return configurations + */ + public List getConfigurations() { + return configurations; + } + + public void setConfigurations(List configurations) { + this.configurations = configurations; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateComponentWithConfigurationRequestBody that = (CreateComponentWithConfigurationRequestBody) obj; + return Objects.equals(this.apiVersion, that.apiVersion) && Objects.equals(this.kind, that.kind) + && Objects.equals(this.metadata, that.metadata) && Objects.equals(this.spec, that.spec) + && Objects.equals(this.configurations, that.configurations); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, configurations); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateComponentWithConfigurationRequestBody {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append(" spec: ").append(toIndentedString(spec)).append("\n"); + sb.append(" configurations: ").append(toIndentedString(configurations)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/CreateComponentRequestBodyMetadata.java b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/CreateComponentWithConfigurationRequestBodyMetadata.java similarity index 77% rename from services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/CreateComponentRequestBodyMetadata.java rename to services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/CreateComponentWithConfigurationRequestBodyMetadata.java index 4748c4f899..ce5838119c 100644 --- a/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/CreateComponentRequestBodyMetadata.java +++ b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/CreateComponentWithConfigurationRequestBodyMetadata.java @@ -11,7 +11,7 @@ /** * 请求数据。 */ -public class CreateComponentRequestBodyMetadata { +public class CreateComponentWithConfigurationRequestBodyMetadata { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "name") @@ -23,7 +23,7 @@ public class CreateComponentRequestBodyMetadata { private Map annotations = null; - public CreateComponentRequestBodyMetadata withName(String name) { + public CreateComponentWithConfigurationRequestBodyMetadata withName(String name) { this.name = name; return this; } @@ -40,12 +40,12 @@ public void setName(String name) { this.name = name; } - public CreateComponentRequestBodyMetadata withAnnotations(Map annotations) { + public CreateComponentWithConfigurationRequestBodyMetadata withAnnotations(Map annotations) { this.annotations = annotations; return this; } - public CreateComponentRequestBodyMetadata putAnnotationsItem(String key, String annotationsItem) { + public CreateComponentWithConfigurationRequestBodyMetadata putAnnotationsItem(String key, String annotationsItem) { if (this.annotations == null) { this.annotations = new HashMap<>(); } @@ -53,7 +53,8 @@ public CreateComponentRequestBodyMetadata putAnnotationsItem(String key, String return this; } - public CreateComponentRequestBodyMetadata withAnnotations(Consumer> annotationsSetter) { + public CreateComponentWithConfigurationRequestBodyMetadata withAnnotations( + Consumer> annotationsSetter) { if (this.annotations == null) { this.annotations = new HashMap<>(); } @@ -81,7 +82,8 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - CreateComponentRequestBodyMetadata that = (CreateComponentRequestBodyMetadata) obj; + CreateComponentWithConfigurationRequestBodyMetadata that = + (CreateComponentWithConfigurationRequestBodyMetadata) obj; return Objects.equals(this.name, that.name) && Objects.equals(this.annotations, that.annotations); } @@ -93,7 +95,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class CreateComponentRequestBodyMetadata {\n"); + sb.append("class CreateComponentWithConfigurationRequestBodyMetadata {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" annotations: ").append(toIndentedString(annotations)).append("\n"); sb.append("}"); diff --git a/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/CreateComponentRequestBodySpec.java b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/CreateComponentWithConfigurationRequestBodySpec.java similarity index 88% rename from services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/CreateComponentRequestBodySpec.java rename to services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/CreateComponentWithConfigurationRequestBodySpec.java index 26af160786..67904efd2a 100644 --- a/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/CreateComponentRequestBodySpec.java +++ b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/CreateComponentWithConfigurationRequestBodySpec.java @@ -14,7 +14,7 @@ /** * 组件规格信息。 */ -public class CreateComponentRequestBodySpec { +public class CreateComponentWithConfigurationRequestBodySpec { /** * 语言/运行时。 @@ -170,7 +170,7 @@ public int hashCode() { private String imageUrl; - public CreateComponentRequestBodySpec withRuntime(RuntimeEnum runtime) { + public CreateComponentWithConfigurationRequestBodySpec withRuntime(RuntimeEnum runtime) { this.runtime = runtime; return this; } @@ -187,7 +187,7 @@ public void setRuntime(RuntimeEnum runtime) { this.runtime = runtime; } - public CreateComponentRequestBodySpec withReplica(Integer replica) { + public CreateComponentWithConfigurationRequestBodySpec withReplica(Integer replica) { this.replica = replica; return this; } @@ -204,12 +204,12 @@ public void setReplica(Integer replica) { this.replica = replica; } - public CreateComponentRequestBodySpec withBuild(Build build) { + public CreateComponentWithConfigurationRequestBodySpec withBuild(Build build) { this.build = build; return this; } - public CreateComponentRequestBodySpec withBuild(Consumer buildSetter) { + public CreateComponentWithConfigurationRequestBodySpec withBuild(Consumer buildSetter) { if (this.build == null) { this.build = new Build(); buildSetter.accept(this.build); @@ -230,12 +230,12 @@ public void setBuild(Build build) { this.build = build; } - public CreateComponentRequestBodySpec withSource(Source source) { + public CreateComponentWithConfigurationRequestBodySpec withSource(Source source) { this.source = source; return this; } - public CreateComponentRequestBodySpec withSource(Consumer sourceSetter) { + public CreateComponentWithConfigurationRequestBodySpec withSource(Consumer sourceSetter) { if (this.source == null) { this.source = new Source(); sourceSetter.accept(this.source); @@ -256,12 +256,13 @@ public void setSource(Source source) { this.source = source; } - public CreateComponentRequestBodySpec withResourceLimit(ResourceLimit resourceLimit) { + public CreateComponentWithConfigurationRequestBodySpec withResourceLimit(ResourceLimit resourceLimit) { this.resourceLimit = resourceLimit; return this; } - public CreateComponentRequestBodySpec withResourceLimit(Consumer resourceLimitSetter) { + public CreateComponentWithConfigurationRequestBodySpec withResourceLimit( + Consumer resourceLimitSetter) { if (this.resourceLimit == null) { this.resourceLimit = new ResourceLimit(); resourceLimitSetter.accept(this.resourceLimit); @@ -282,7 +283,7 @@ public void setResourceLimit(ResourceLimit resourceLimit) { this.resourceLimit = resourceLimit; } - public CreateComponentRequestBodySpec withImageUrl(String imageUrl) { + public CreateComponentWithConfigurationRequestBodySpec withImageUrl(String imageUrl) { this.imageUrl = imageUrl; return this; } @@ -307,7 +308,7 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - CreateComponentRequestBodySpec that = (CreateComponentRequestBodySpec) obj; + CreateComponentWithConfigurationRequestBodySpec that = (CreateComponentWithConfigurationRequestBodySpec) obj; return Objects.equals(this.runtime, that.runtime) && Objects.equals(this.replica, that.replica) && Objects.equals(this.build, that.build) && Objects.equals(this.source, that.source) && Objects.equals(this.resourceLimit, that.resourceLimit) && Objects.equals(this.imageUrl, that.imageUrl); @@ -321,7 +322,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class CreateComponentRequestBodySpec {\n"); + sb.append("class CreateComponentWithConfigurationRequestBodySpec {\n"); sb.append(" runtime: ").append(toIndentedString(runtime)).append("\n"); sb.append(" replica: ").append(toIndentedString(replica)).append("\n"); sb.append(" build: ").append(toIndentedString(build)).append("\n"); diff --git a/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/CreateComponentWithConfigurationResponse.java b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/CreateComponentWithConfigurationResponse.java new file mode 100644 index 0000000000..da3f612e80 --- /dev/null +++ b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/CreateComponentWithConfigurationResponse.java @@ -0,0 +1,239 @@ +package com.huaweicloud.sdk.cae.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class CreateComponentWithConfigurationResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "api_version") + + private ApiVersionObj apiVersion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "kind") + + private ComponentKindObj kind; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "metadata") + + private MetadataResponse metadata; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "spec") + + private CreateComponentSpec spec; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "configurations") + + private List configurations = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private CreateComponentWithConfigurationResponseBodyStatus status; + + public CreateComponentWithConfigurationResponse withApiVersion(ApiVersionObj apiVersion) { + this.apiVersion = apiVersion; + return this; + } + + /** + * Get apiVersion + * @return apiVersion + */ + public ApiVersionObj getApiVersion() { + return apiVersion; + } + + public void setApiVersion(ApiVersionObj apiVersion) { + this.apiVersion = apiVersion; + } + + public CreateComponentWithConfigurationResponse withKind(ComponentKindObj kind) { + this.kind = kind; + return this; + } + + /** + * Get kind + * @return kind + */ + public ComponentKindObj getKind() { + return kind; + } + + public void setKind(ComponentKindObj kind) { + this.kind = kind; + } + + public CreateComponentWithConfigurationResponse withMetadata(MetadataResponse metadata) { + this.metadata = metadata; + return this; + } + + public CreateComponentWithConfigurationResponse withMetadata(Consumer metadataSetter) { + if (this.metadata == null) { + this.metadata = new MetadataResponse(); + metadataSetter.accept(this.metadata); + } + + return this; + } + + /** + * Get metadata + * @return metadata + */ + public MetadataResponse getMetadata() { + return metadata; + } + + public void setMetadata(MetadataResponse metadata) { + this.metadata = metadata; + } + + public CreateComponentWithConfigurationResponse withSpec(CreateComponentSpec spec) { + this.spec = spec; + return this; + } + + public CreateComponentWithConfigurationResponse withSpec(Consumer specSetter) { + if (this.spec == null) { + this.spec = new CreateComponentSpec(); + specSetter.accept(this.spec); + } + + return this; + } + + /** + * Get spec + * @return spec + */ + public CreateComponentSpec getSpec() { + return spec; + } + + public void setSpec(CreateComponentSpec spec) { + this.spec = spec; + } + + public CreateComponentWithConfigurationResponse withConfigurations(List configurations) { + this.configurations = configurations; + return this; + } + + public CreateComponentWithConfigurationResponse addConfigurationsItem(ConfigurationItem configurationsItem) { + if (this.configurations == null) { + this.configurations = new ArrayList<>(); + } + this.configurations.add(configurationsItem); + return this; + } + + public CreateComponentWithConfigurationResponse withConfigurations( + Consumer> configurationsSetter) { + if (this.configurations == null) { + this.configurations = new ArrayList<>(); + } + configurationsSetter.accept(this.configurations); + return this; + } + + /** + * 配置项列表。 + * @return configurations + */ + public List getConfigurations() { + return configurations; + } + + public void setConfigurations(List configurations) { + this.configurations = configurations; + } + + public CreateComponentWithConfigurationResponse withStatus( + CreateComponentWithConfigurationResponseBodyStatus status) { + this.status = status; + return this; + } + + public CreateComponentWithConfigurationResponse withStatus( + Consumer statusSetter) { + if (this.status == null) { + this.status = new CreateComponentWithConfigurationResponseBodyStatus(); + statusSetter.accept(this.status); + } + + return this; + } + + /** + * Get status + * @return status + */ + public CreateComponentWithConfigurationResponseBodyStatus getStatus() { + return status; + } + + public void setStatus(CreateComponentWithConfigurationResponseBodyStatus status) { + this.status = status; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateComponentWithConfigurationResponse that = (CreateComponentWithConfigurationResponse) obj; + return Objects.equals(this.apiVersion, that.apiVersion) && Objects.equals(this.kind, that.kind) + && Objects.equals(this.metadata, that.metadata) && Objects.equals(this.spec, that.spec) + && Objects.equals(this.configurations, that.configurations) && Objects.equals(this.status, that.status); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, configurations, status); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateComponentWithConfigurationResponse {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append(" spec: ").append(toIndentedString(spec)).append("\n"); + sb.append(" configurations: ").append(toIndentedString(configurations)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/CreateComponentWithConfigurationResponseBodyStatus.java b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/CreateComponentWithConfigurationResponseBodyStatus.java new file mode 100644 index 0000000000..accfe7e2df --- /dev/null +++ b/services/cae/src/main/java/com/huaweicloud/sdk/cae/v1/model/CreateComponentWithConfigurationResponseBodyStatus.java @@ -0,0 +1,73 @@ +package com.huaweicloud.sdk.cae.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * CreateComponentWithConfigurationResponseBodyStatus + */ +public class CreateComponentWithConfigurationResponseBodyStatus { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_id") + + private String jobId; + + public CreateComponentWithConfigurationResponseBodyStatus withJobId(String jobId) { + this.jobId = jobId; + return this; + } + + /** + * 任务ID。 + * @return jobId + */ + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateComponentWithConfigurationResponseBodyStatus that = + (CreateComponentWithConfigurationResponseBodyStatus) obj; + return Objects.equals(this.jobId, that.jobId); + } + + @Override + public int hashCode() { + return Objects.hash(jobId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateComponentWithConfigurationResponseBodyStatus {\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/campusgo/pom.xml b/services/campusgo/pom.xml index c074cc71a1..010a2531f3 100644 --- a/services/campusgo/pom.xml +++ b/services/campusgo/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-campusgo - 3.1.99 + 3.1.100 Huawei Cloud SDK for CAMPUSGO 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/cbh/pom.xml b/services/cbh/pom.xml index e3a6ae4ad0..5488ae8095 100644 --- a/services/cbh/pom.xml +++ b/services/cbh/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-cbh - 3.1.99 + 3.1.100 Huawei Cloud SDK for CBH 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/cbr/pom.xml b/services/cbr/pom.xml index 00fa248475..5cd95472e8 100644 --- a/services/cbr/pom.xml +++ b/services/cbr/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-cbr - 3.1.99 + 3.1.100 Huawei Cloud SDK for CBR 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/cbs/pom.xml b/services/cbs/pom.xml index b801c525bc..e37b19cdc1 100644 --- a/services/cbs/pom.xml +++ b/services/cbs/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-cbs - 3.1.99 + 3.1.100 Huawei Cloud SDK for CBS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/cc/pom.xml b/services/cc/pom.xml index fd7078f231..f33bf1cded 100644 --- a/services/cc/pom.xml +++ b/services/cc/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-cc - 3.1.99 + 3.1.100 Huawei Cloud SDK for CC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/cce/pom.xml b/services/cce/pom.xml index a528e4bb46..6218b305bf 100644 --- a/services/cce/pom.xml +++ b/services/cce/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-cce - 3.1.99 + 3.1.100 Huawei Cloud SDK for CCE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/ccm/pom.xml b/services/ccm/pom.xml index f0776ae0aa..19923cf27f 100644 --- a/services/ccm/pom.xml +++ b/services/ccm/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-ccm - 3.1.99 + 3.1.100 Huawei Cloud SDK for CCM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/cdm/pom.xml b/services/cdm/pom.xml index 8e55f4bff1..10b279953e 100644 --- a/services/cdm/pom.xml +++ b/services/cdm/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-cdm - 3.1.99 + 3.1.100 Huawei Cloud SDK for CDM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/cdm/src/main/java/com/huaweicloud/sdk/cdm/v1/model/Input.java b/services/cdm/src/main/java/com/huaweicloud/sdk/cdm/v1/model/Input.java index df18b22812..1e5a023488 100644 --- a/services/cdm/src/main/java/com/huaweicloud/sdk/cdm/v1/model/Input.java +++ b/services/cdm/src/main/java/com/huaweicloud/sdk/cdm/v1/model/Input.java @@ -18,7 +18,7 @@ public class Input { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "value") - private String value; + private Object value; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "type") @@ -42,7 +42,7 @@ public void setName(String name) { this.name = name; } - public Input withValue(String value) { + public Input withValue(Object value) { this.value = value; return this; } @@ -51,11 +51,11 @@ public Input withValue(String value) { * 参数值 * @return value */ - public String getValue() { + public Object getValue() { return value; } - public void setValue(String value) { + public void setValue(Object value) { this.value = value; } diff --git a/services/cdn/pom.xml b/services/cdn/pom.xml index ba339fa1bb..a8acea8835 100644 --- a/services/cdn/pom.xml +++ b/services/cdn/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-cdn - 3.1.99 + 3.1.100 Huawei Cloud SDK for CDN 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/ces/pom.xml b/services/ces/pom.xml index c257ec0b98..706ae652ab 100644 --- a/services/ces/pom.xml +++ b/services/ces/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-ces - 3.1.99 + 3.1.100 Huawei Cloud SDK for CES 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/cfw/pom.xml b/services/cfw/pom.xml index 9639ac0181..35a3d4b33c 100644 --- a/services/cfw/pom.xml +++ b/services/cfw/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-cfw - 3.1.99 + 3.1.100 Huawei Cloud SDK for CFW 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/cgs/pom.xml b/services/cgs/pom.xml index 27d2c46f03..1bf017c748 100644 --- a/services/cgs/pom.xml +++ b/services/cgs/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-cgs - 3.1.99 + 3.1.100 Huawei Cloud SDK for CGS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/classroom/pom.xml b/services/classroom/pom.xml index 34f4b6fd07..06de60857b 100644 --- a/services/classroom/pom.xml +++ b/services/classroom/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-classroom - 3.1.99 + 3.1.100 Huawei Cloud SDK for CLASSROOM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/cloudide/pom.xml b/services/cloudide/pom.xml index fcc9fed2e6..d1e9da7693 100644 --- a/services/cloudide/pom.xml +++ b/services/cloudide/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-cloudide - 3.1.99 + 3.1.100 Huawei Cloud SDK for CLOUDIDE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 junit diff --git a/services/cloudpond/pom.xml b/services/cloudpond/pom.xml index f73439f433..5a2b2c1b93 100644 --- a/services/cloudpond/pom.xml +++ b/services/cloudpond/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-cloudpond - 3.1.99 + 3.1.100 Huawei Cloud SDK for CLOUDPOND 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/cloudrtc/pom.xml b/services/cloudrtc/pom.xml index 89eefcc342..00c3d134ab 100644 --- a/services/cloudrtc/pom.xml +++ b/services/cloudrtc/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-cloudrtc - 3.1.99 + 3.1.100 Huawei Cloud SDK for CLOUDRTC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/cloudtable/pom.xml b/services/cloudtable/pom.xml index 31f875af93..9a6648ffe6 100644 --- a/services/cloudtable/pom.xml +++ b/services/cloudtable/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-cloudtable - 3.1.99 + 3.1.100 Huawei Cloud SDK for CLOUDTABLE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/cloudtest/pom.xml b/services/cloudtest/pom.xml index a623d89393..ca5fb8066d 100644 --- a/services/cloudtest/pom.xml +++ b/services/cloudtest/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-cloudtest - 3.1.99 + 3.1.100 Huawei Cloud SDK for CLOUDTEST 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/CloudtestAsyncClient.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/CloudtestAsyncClient.java index 905004a491..529247a2bc 100644 --- a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/CloudtestAsyncClient.java +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/CloudtestAsyncClient.java @@ -1,53 +1,143 @@ package com.huaweicloud.sdk.cloudtest.v1; +import com.huaweicloud.sdk.cloudtest.v1.model.BatchAddRelationsByOneCaseRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.BatchAddRelationsByOneCaseResponse; import com.huaweicloud.sdk.cloudtest.v1.model.BatchDeleteTestCaseRequest; import com.huaweicloud.sdk.cloudtest.v1.model.BatchDeleteTestCaseResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.BatchDeleteTestReportRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.BatchDeleteTestReportResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.CheckPermissionRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.CheckPermissionResponse; import com.huaweicloud.sdk.cloudtest.v1.model.CreateApiTestSuiteByRepoFileRequest; import com.huaweicloud.sdk.cloudtest.v1.model.CreateApiTestSuiteByRepoFileResponse; import com.huaweicloud.sdk.cloudtest.v1.model.CreatePlanRequest; import com.huaweicloud.sdk.cloudtest.v1.model.CreatePlanResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.CreateRelationsByOneCaseRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.CreateRelationsByOneCaseResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.CreateResourceUriRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.CreateResourceUriResponse; import com.huaweicloud.sdk.cloudtest.v1.model.CreateServiceRequest; import com.huaweicloud.sdk.cloudtest.v1.model.CreateServiceResponse; import com.huaweicloud.sdk.cloudtest.v1.model.CreateTestCaseInPlanRequest; import com.huaweicloud.sdk.cloudtest.v1.model.CreateTestCaseInPlanResponse; import com.huaweicloud.sdk.cloudtest.v1.model.CreateTestCaseRequest; import com.huaweicloud.sdk.cloudtest.v1.model.CreateTestCaseResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.DeleteRelationsByOneCaseRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.DeleteRelationsByOneCaseResponse; import com.huaweicloud.sdk.cloudtest.v1.model.DeleteServiceRequest; import com.huaweicloud.sdk.cloudtest.v1.model.DeleteServiceResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListAlertGroupsByConditionRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListAlertGroupsByConditionResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListAlertTemplatesRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListAlertTemplatesResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListAllBranchesRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListAllBranchesResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListAllConfigItemByTypeRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListAllConfigItemByTypeResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListAllIteratorsRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListAllIteratorsResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListAttachmentsRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListAttachmentsResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListBasicAwRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListBasicAwResponse; import com.huaweicloud.sdk.cloudtest.v1.model.ListBranchesRequest; import com.huaweicloud.sdk.cloudtest.v1.model.ListBranchesResponse; import com.huaweicloud.sdk.cloudtest.v1.model.ListEnvironmentsRequest; import com.huaweicloud.sdk.cloudtest.v1.model.ListEnvironmentsResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListIssueTreeRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListIssueTreeResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListProjectFieldConfigsRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListProjectFieldConfigsResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListProjectTestCaseFieldsRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListProjectTestCaseFieldsResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListPublicLibAndAwsRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListPublicLibAndAwsResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListReportsRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListReportsResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListResourcePoolsRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListResourcePoolsResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListTaskTestCasesRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListTaskTestCasesResponse; import com.huaweicloud.sdk.cloudtest.v1.model.ListTestCaseHistoriesRequest; import com.huaweicloud.sdk.cloudtest.v1.model.ListTestCaseHistoriesResponse; import com.huaweicloud.sdk.cloudtest.v1.model.ListTestCasesRequest; import com.huaweicloud.sdk.cloudtest.v1.model.ListTestCasesResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListTestReportsByConditionRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListTestReportsByConditionResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListTestTypesRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListTestTypesResponse; import com.huaweicloud.sdk.cloudtest.v1.model.ListTestcasesByProjectIssuesRelationRequest; import com.huaweicloud.sdk.cloudtest.v1.model.ListTestcasesByProjectIssuesRelationResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListUsageInfosRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListUsageInfosResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListUserDnsMappingRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListUserDnsMappingResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListUserPackageUsageRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListUserPackageUsageResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListUserPopupInfoRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListUserPopupInfoResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListVariablesRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListVariablesResponse; import com.huaweicloud.sdk.cloudtest.v1.model.RunTestCaseRequest; import com.huaweicloud.sdk.cloudtest.v1.model.RunTestCaseResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.SaveTaskSettingRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.SaveTaskSettingResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowAllConfigValueByTypeAndKeyRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowAllConfigValueByTypeAndKeyResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowAllFeatureChildrenRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowAllFeatureChildrenResponse; import com.huaweicloud.sdk.cloudtest.v1.model.ShowApiTestcaseHistoriesRequest; import com.huaweicloud.sdk.cloudtest.v1.model.ShowApiTestcaseHistoriesResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowBackgroundInfoRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowBackgroundInfoResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowDisclaimerRecordRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowDisclaimerRecordResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowDomainInfoRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowDomainInfoResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowFeatureChildrenRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowFeatureChildrenResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowFreeDeclarationRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowFreeDeclarationResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowIfTaskNameRepeatRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowIfTaskNameRepeatResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowIfUserNameRepeatRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowIfUserNameRepeatResponse; import com.huaweicloud.sdk.cloudtest.v1.model.ShowIssuesByPlanIdRequest; import com.huaweicloud.sdk.cloudtest.v1.model.ShowIssuesByPlanIdResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowIteratorByDefectRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowIteratorByDefectResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowMindmapByPageRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowMindmapByPageResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowMindmapCreatorNameRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowMindmapCreatorNameResponse; import com.huaweicloud.sdk.cloudtest.v1.model.ShowPlanJournalsRequest; import com.huaweicloud.sdk.cloudtest.v1.model.ShowPlanJournalsResponse; import com.huaweicloud.sdk.cloudtest.v1.model.ShowPlanListRequest; import com.huaweicloud.sdk.cloudtest.v1.model.ShowPlanListResponse; import com.huaweicloud.sdk.cloudtest.v1.model.ShowPlansRequest; import com.huaweicloud.sdk.cloudtest.v1.model.ShowPlansResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowProgressRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowProgressResponse; import com.huaweicloud.sdk.cloudtest.v1.model.ShowProjectDataDashboardRequest; import com.huaweicloud.sdk.cloudtest.v1.model.ShowProjectDataDashboardResponse; import com.huaweicloud.sdk.cloudtest.v1.model.ShowRegisterServiceRequest; import com.huaweicloud.sdk.cloudtest.v1.model.ShowRegisterServiceResponse; import com.huaweicloud.sdk.cloudtest.v1.model.ShowReportRequest; import com.huaweicloud.sdk.cloudtest.v1.model.ShowReportResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowRequirementsOverviewRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowRequirementsOverviewResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowSystemConfigsRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowSystemConfigsResponse; import com.huaweicloud.sdk.cloudtest.v1.model.ShowTestCaseAndDefectInfoRequest; import com.huaweicloud.sdk.cloudtest.v1.model.ShowTestCaseAndDefectInfoResponse; import com.huaweicloud.sdk.cloudtest.v1.model.ShowTestCaseDetailRequest; import com.huaweicloud.sdk.cloudtest.v1.model.ShowTestCaseDetailResponse; import com.huaweicloud.sdk.cloudtest.v1.model.ShowTestCaseDetailV2Request; import com.huaweicloud.sdk.cloudtest.v1.model.ShowTestCaseDetailV2Response; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowTestCaseRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowTestCaseResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowUserAccessInfoRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowUserAccessInfoResponse; import com.huaweicloud.sdk.cloudtest.v1.model.ShowUserExecuteTestCaseInfoRequest; import com.huaweicloud.sdk.cloudtest.v1.model.ShowUserExecuteTestCaseInfoResponse; import com.huaweicloud.sdk.cloudtest.v1.model.UpdateServiceRequest; @@ -75,6 +165,36 @@ public static ClientBuilder newBuilder() { return clientBuilder; } + /** + * 添加需求/缺陷和多个用例关联关系 + * + * 添加需求/缺陷和多个用例关联关系 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchAddRelationsByOneCaseRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture batchAddRelationsByOneCaseAsync( + BatchAddRelationsByOneCaseRequest request) { + return hcClient.asyncInvokeHttp(request, CloudtestMeta.batchAddRelationsByOneCase); + } + + /** + * 添加需求/缺陷和多个用例关联关系 + * + * 添加需求/缺陷和多个用例关联关系 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchAddRelationsByOneCaseRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker batchAddRelationsByOneCaseAsyncInvoker( + BatchAddRelationsByOneCaseRequest request) { + return new AsyncInvoker<>(request, CloudtestMeta.batchAddRelationsByOneCase, hcClient); + } + /** * 批量删除自定义测试服务类型用例 * @@ -104,6 +224,65 @@ public AsyncInvoker bat return new AsyncInvoker<>(request, CloudtestMeta.batchDeleteTestCase, hcClient); } + /** + * 根据测试报告uri列表,删除测试报告 + * + * 根据测试报告uri列表,删除测试报告 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchDeleteTestReportRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture batchDeleteTestReportAsync( + BatchDeleteTestReportRequest request) { + return hcClient.asyncInvokeHttp(request, CloudtestMeta.batchDeleteTestReport); + } + + /** + * 根据测试报告uri列表,删除测试报告 + * + * 根据测试报告uri列表,删除测试报告 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchDeleteTestReportRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker batchDeleteTestReportAsyncInvoker( + BatchDeleteTestReportRequest request) { + return new AsyncInvoker<>(request, CloudtestMeta.batchDeleteTestReport, hcClient); + } + + /** + * 检查项目权限 + * + * 检查项目权限 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CheckPermissionRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture checkPermissionAsync(CheckPermissionRequest request) { + return hcClient.asyncInvokeHttp(request, CloudtestMeta.checkPermission); + } + + /** + * 检查项目权限 + * + * 检查项目权限 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CheckPermissionRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker checkPermissionAsyncInvoker( + CheckPermissionRequest request) { + return new AsyncInvoker<>(request, CloudtestMeta.checkPermission, hcClient); + } + /** * 项目下创建计划 * @@ -132,6 +311,65 @@ public AsyncInvoker createPlanAsyncInvoke return new AsyncInvoker<>(request, CloudtestMeta.createPlan, hcClient); } + /** + * 添加一个用例和多个需求/缺陷关联关系 + * + * 添加一个用例和多个需求/缺陷关联关系 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateRelationsByOneCaseRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture createRelationsByOneCaseAsync( + CreateRelationsByOneCaseRequest request) { + return hcClient.asyncInvokeHttp(request, CloudtestMeta.createRelationsByOneCase); + } + + /** + * 添加一个用例和多个需求/缺陷关联关系 + * + * 添加一个用例和多个需求/缺陷关联关系 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateRelationsByOneCaseRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker createRelationsByOneCaseAsyncInvoker( + CreateRelationsByOneCaseRequest request) { + return new AsyncInvoker<>(request, CloudtestMeta.createRelationsByOneCase, hcClient); + } + + /** + * 生成资源URI + * + * 生成资源URI + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateResourceUriRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture createResourceUriAsync(CreateResourceUriRequest request) { + return hcClient.asyncInvokeHttp(request, CloudtestMeta.createResourceUri); + } + + /** + * 生成资源URI + * + * 生成资源URI + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateResourceUriRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker createResourceUriAsyncInvoker( + CreateResourceUriRequest request) { + return new AsyncInvoker<>(request, CloudtestMeta.createResourceUri, hcClient); + } + /** * 新测试类型服务注册 * @@ -220,6 +458,36 @@ public AsyncInvoker c return new AsyncInvoker<>(request, CloudtestMeta.createTestCaseInPlan, hcClient); } + /** + * 删除一个用例和多个需求/缺陷关联关系 + * + * 删除一个用例和多个需求/缺陷关联关系 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteRelationsByOneCaseRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture deleteRelationsByOneCaseAsync( + DeleteRelationsByOneCaseRequest request) { + return hcClient.asyncInvokeHttp(request, CloudtestMeta.deleteRelationsByOneCase); + } + + /** + * 删除一个用例和多个需求/缺陷关联关系 + * + * 删除一个用例和多个需求/缺陷关联关系 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteRelationsByOneCaseRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker deleteRelationsByOneCaseAsyncInvoker( + DeleteRelationsByOneCaseRequest request) { + return new AsyncInvoker<>(request, CloudtestMeta.deleteRelationsByOneCase, hcClient); + } + /** * 删除已注册服务 * @@ -249,6 +517,93 @@ public AsyncInvoker deleteServiceAs return new AsyncInvoker<>(request, CloudtestMeta.deleteService, hcClient); } + /** + * 获取分支列表 + * + * 获取分支列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListAllBranchesRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listAllBranchesAsync(ListAllBranchesRequest request) { + return hcClient.asyncInvokeHttp(request, CloudtestMeta.listAllBranches); + } + + /** + * 获取分支列表 + * + * 获取分支列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListAllBranchesRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listAllBranchesAsyncInvoker( + ListAllBranchesRequest request) { + return new AsyncInvoker<>(request, CloudtestMeta.listAllBranches, hcClient); + } + + /** + * 查询项目下所有迭代计划 + * + * 查询项目下所有迭代计划 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListAllIteratorsRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listAllIteratorsAsync(ListAllIteratorsRequest request) { + return hcClient.asyncInvokeHttp(request, CloudtestMeta.listAllIterators); + } + + /** + * 查询项目下所有迭代计划 + * + * 查询项目下所有迭代计划 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListAllIteratorsRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listAllIteratorsAsyncInvoker( + ListAllIteratorsRequest request) { + return new AsyncInvoker<>(request, CloudtestMeta.listAllIterators, hcClient); + } + + /** + * 查询附件列表 + * + * 查询附件列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListAttachmentsRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listAttachmentsAsync(ListAttachmentsRequest request) { + return hcClient.asyncInvokeHttp(request, CloudtestMeta.listAttachments); + } + + /** + * 查询附件列表 + * + * 查询附件列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListAttachmentsRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listAttachmentsAsyncInvoker( + ListAttachmentsRequest request) { + return new AsyncInvoker<>(request, CloudtestMeta.listAttachments, hcClient); + } + /** * 获取分支列表 * @@ -278,6 +633,181 @@ public AsyncInvoker listBranchesAsync return new AsyncInvoker<>(request, CloudtestMeta.listBranches, hcClient); } + /** + * 查询需求树 + * + * 查询需求树 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListIssueTreeRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listIssueTreeAsync(ListIssueTreeRequest request) { + return hcClient.asyncInvokeHttp(request, CloudtestMeta.listIssueTree); + } + + /** + * 查询需求树 + * + * 查询需求树 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListIssueTreeRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listIssueTreeAsyncInvoker( + ListIssueTreeRequest request) { + return new AsyncInvoker<>(request, CloudtestMeta.listIssueTree, hcClient); + } + + /** + * 查询项目字段配置 + * + * 查询项目字段配置 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListProjectFieldConfigsRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listProjectFieldConfigsAsync( + ListProjectFieldConfigsRequest request) { + return hcClient.asyncInvokeHttp(request, CloudtestMeta.listProjectFieldConfigs); + } + + /** + * 查询项目字段配置 + * + * 查询项目字段配置 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListProjectFieldConfigsRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listProjectFieldConfigsAsyncInvoker( + ListProjectFieldConfigsRequest request) { + return new AsyncInvoker<>(request, CloudtestMeta.listProjectFieldConfigs, hcClient); + } + + /** + * 获取项目测试用例自定义字段列表 + * + * 获取项目测试用例自定义字段列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListProjectTestCaseFieldsRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listProjectTestCaseFieldsAsync( + ListProjectTestCaseFieldsRequest request) { + return hcClient.asyncInvokeHttp(request, CloudtestMeta.listProjectTestCaseFields); + } + + /** + * 获取项目测试用例自定义字段列表 + * + * 获取项目测试用例自定义字段列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListProjectTestCaseFieldsRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listProjectTestCaseFieldsAsyncInvoker( + ListProjectTestCaseFieldsRequest request) { + return new AsyncInvoker<>(request, CloudtestMeta.listProjectTestCaseFields, hcClient); + } + + /** + * 页面报表展示 + * + * 页面报表展示 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListReportsRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listReportsAsync(ListReportsRequest request) { + return hcClient.asyncInvokeHttp(request, CloudtestMeta.listReports); + } + + /** + * 页面报表展示 + * + * 页面报表展示 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListReportsRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listReportsAsyncInvoker(ListReportsRequest request) { + return new AsyncInvoker<>(request, CloudtestMeta.listReports, hcClient); + } + + /** + * 获取资源池列表 + * + * 获取资源池列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListResourcePoolsRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listResourcePoolsAsync(ListResourcePoolsRequest request) { + return hcClient.asyncInvokeHttp(request, CloudtestMeta.listResourcePools); + } + + /** + * 获取资源池列表 + * + * 获取资源池列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListResourcePoolsRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listResourcePoolsAsyncInvoker( + ListResourcePoolsRequest request) { + return new AsyncInvoker<>(request, CloudtestMeta.listResourcePools, hcClient); + } + + /** + * 查询用例关联的测试任务列表 + * + * 查询用例关联的测试任务列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListTaskTestCasesRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listTaskTestCasesAsync(ListTaskTestCasesRequest request) { + return hcClient.asyncInvokeHttp(request, CloudtestMeta.listTaskTestCases); + } + + /** + * 查询用例关联的测试任务列表 + * + * 查询用例关联的测试任务列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListTaskTestCasesRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listTaskTestCasesAsyncInvoker( + ListTaskTestCasesRequest request) { + return new AsyncInvoker<>(request, CloudtestMeta.listTaskTestCases, hcClient); + } + /** * 查询用例修改历史记录 * @@ -337,6 +867,65 @@ public AsyncInvoker listTestCasesAs return new AsyncInvoker<>(request, CloudtestMeta.listTestCases, hcClient); } + /** + * 根据查询条件获取测试报告列表 + * + * 根据查询条件获取测试报告列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListTestReportsByConditionRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listTestReportsByConditionAsync( + ListTestReportsByConditionRequest request) { + return hcClient.asyncInvokeHttp(request, CloudtestMeta.listTestReportsByCondition); + } + + /** + * 根据查询条件获取测试报告列表 + * + * 根据查询条件获取测试报告列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListTestReportsByConditionRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listTestReportsByConditionAsyncInvoker( + ListTestReportsByConditionRequest request) { + return new AsyncInvoker<>(request, CloudtestMeta.listTestReportsByCondition, hcClient); + } + + /** + * 获取测试类型列表 + * + * 获取测试类型列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListTestTypesRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listTestTypesAsync(ListTestTypesRequest request) { + return hcClient.asyncInvokeHttp(request, CloudtestMeta.listTestTypes); + } + + /** + * 获取测试类型列表 + * + * 获取测试类型列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListTestTypesRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listTestTypesAsyncInvoker( + ListTestTypesRequest request) { + return new AsyncInvoker<>(request, CloudtestMeta.listTestTypes, hcClient); + } + /** * 查询项目下关联了需求的用例列表 * @@ -367,6 +956,90 @@ public AsyncInvoker(request, CloudtestMeta.listTestcasesByProjectIssuesRelation, hcClient); } + /** + * 获取租户订单已用资源信息 + * + * 获取租户订单已用资源信息 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListUsageInfosRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listUsageInfosAsync(ListUsageInfosRequest request) { + return hcClient.asyncInvokeHttp(request, CloudtestMeta.listUsageInfos); + } + + /** + * 获取租户订单已用资源信息 + * + * 获取租户订单已用资源信息 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListUsageInfosRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listUsageInfosAsyncInvoker( + ListUsageInfosRequest request) { + return new AsyncInvoker<>(request, CloudtestMeta.listUsageInfos, hcClient); + } + + /** + * ListUserPackageUsage + * + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListUserPackageUsageRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listUserPackageUsageAsync( + ListUserPackageUsageRequest request) { + return hcClient.asyncInvokeHttp(request, CloudtestMeta.listUserPackageUsage); + } + + /** + * ListUserPackageUsage + * + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListUserPackageUsageRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listUserPackageUsageAsyncInvoker( + ListUserPackageUsageRequest request) { + return new AsyncInvoker<>(request, CloudtestMeta.listUserPackageUsage, hcClient); + } + + /** + * ListUserPopupInfo + * + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListUserPopupInfoRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listUserPopupInfoAsync(ListUserPopupInfoRequest request) { + return hcClient.asyncInvokeHttp(request, CloudtestMeta.listUserPopupInfo); + } + + /** + * ListUserPopupInfo + * + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListUserPopupInfoRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listUserPopupInfoAsyncInvoker( + ListUserPopupInfoRequest request) { + return new AsyncInvoker<>(request, CloudtestMeta.listUserPopupInfo, hcClient); + } + /** * 批量执行测试用例 * @@ -395,6 +1068,34 @@ public AsyncInvoker runTestCaseAsyncInv return new AsyncInvoker<>(request, CloudtestMeta.runTestCase, hcClient); } + /** + * 获取特性树V5 + * + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowAllFeatureChildrenRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showAllFeatureChildrenAsync( + ShowAllFeatureChildrenRequest request) { + return hcClient.asyncInvokeHttp(request, CloudtestMeta.showAllFeatureChildren); + } + + /** + * 获取特性树V5 + * + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowAllFeatureChildrenRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showAllFeatureChildrenAsyncInvoker( + ShowAllFeatureChildrenRequest request) { + return new AsyncInvoker<>(request, CloudtestMeta.showAllFeatureChildren, hcClient); + } + /** * 获取用例历史执行数据 * @@ -425,6 +1126,152 @@ public AsyncInvoker(request, CloudtestMeta.showApiTestcaseHistories, hcClient); } + /** + * 获取测试报告的模板设置 + * + * 获取测试报告的模板设置 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowBackgroundInfoRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showBackgroundInfoAsync(ShowBackgroundInfoRequest request) { + return hcClient.asyncInvokeHttp(request, CloudtestMeta.showBackgroundInfo); + } + + /** + * 获取测试报告的模板设置 + * + * 获取测试报告的模板设置 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowBackgroundInfoRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showBackgroundInfoAsyncInvoker( + ShowBackgroundInfoRequest request) { + return new AsyncInvoker<>(request, CloudtestMeta.showBackgroundInfo, hcClient); + } + + /** + * 查询用户免责声明 + * + * 查询用户免责声明 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowDisclaimerRecordRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showDisclaimerRecordAsync( + ShowDisclaimerRecordRequest request) { + return hcClient.asyncInvokeHttp(request, CloudtestMeta.showDisclaimerRecord); + } + + /** + * 查询用户免责声明 + * + * 查询用户免责声明 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowDisclaimerRecordRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showDisclaimerRecordAsyncInvoker( + ShowDisclaimerRecordRequest request) { + return new AsyncInvoker<>(request, CloudtestMeta.showDisclaimerRecord, hcClient); + } + + /** + * 根据domainId获取加密的testbirdkey + * + * 根据domainId获取加密的testbirdkey + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowDomainInfoRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showDomainInfoAsync(ShowDomainInfoRequest request) { + return hcClient.asyncInvokeHttp(request, CloudtestMeta.showDomainInfo); + } + + /** + * 根据domainId获取加密的testbirdkey + * + * 根据domainId获取加密的testbirdkey + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowDomainInfoRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showDomainInfoAsyncInvoker( + ShowDomainInfoRequest request) { + return new AsyncInvoker<>(request, CloudtestMeta.showDomainInfo, hcClient); + } + + /** + * 获取目录\\特性树 + * + * 获取目录\\特性树 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowFeatureChildrenRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showFeatureChildrenAsync(ShowFeatureChildrenRequest request) { + return hcClient.asyncInvokeHttp(request, CloudtestMeta.showFeatureChildren); + } + + /** + * 获取目录\\特性树 + * + * 获取目录\\特性树 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowFeatureChildrenRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showFeatureChildrenAsyncInvoker( + ShowFeatureChildrenRequest request) { + return new AsyncInvoker<>(request, CloudtestMeta.showFeatureChildren, hcClient); + } + + /** + * 查询限时免费用户免责声明记录 + * + * 查询限时免费用户免责声明记录 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowFreeDeclarationRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showFreeDeclarationAsync(ShowFreeDeclarationRequest request) { + return hcClient.asyncInvokeHttp(request, CloudtestMeta.showFreeDeclaration); + } + + /** + * 查询限时免费用户免责声明记录 + * + * 查询限时免费用户免责声明记录 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowFreeDeclarationRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showFreeDeclarationAsyncInvoker( + ShowFreeDeclarationRequest request) { + return new AsyncInvoker<>(request, CloudtestMeta.showFreeDeclaration, hcClient); + } + /** * 查询某个测试计划下的需求树 * @@ -454,6 +1301,95 @@ public AsyncInvoker showI return new AsyncInvoker<>(request, CloudtestMeta.showIssuesByPlanId, hcClient); } + /** + * 查询缺陷相关联测试计划 + * + * 查询缺陷相关联测试计划 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowIteratorByDefectRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showIteratorByDefectAsync( + ShowIteratorByDefectRequest request) { + return hcClient.asyncInvokeHttp(request, CloudtestMeta.showIteratorByDefect); + } + + /** + * 查询缺陷相关联测试计划 + * + * 查询缺陷相关联测试计划 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowIteratorByDefectRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showIteratorByDefectAsyncInvoker( + ShowIteratorByDefectRequest request) { + return new AsyncInvoker<>(request, CloudtestMeta.showIteratorByDefect, hcClient); + } + + /** + * 根据条件分页获取脑图对象V3 + * + * 根据条件分页获取脑图对象V3 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowMindmapByPageRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showMindmapByPageAsync(ShowMindmapByPageRequest request) { + return hcClient.asyncInvokeHttp(request, CloudtestMeta.showMindmapByPage); + } + + /** + * 根据条件分页获取脑图对象V3 + * + * 根据条件分页获取脑图对象V3 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowMindmapByPageRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showMindmapByPageAsyncInvoker( + ShowMindmapByPageRequest request) { + return new AsyncInvoker<>(request, CloudtestMeta.showMindmapByPage, hcClient); + } + + /** + * 获取脑图创建人V2 + * + * 获取脑图创建人V2 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowMindmapCreatorNameRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showMindmapCreatorNameAsync( + ShowMindmapCreatorNameRequest request) { + return hcClient.asyncInvokeHttp(request, CloudtestMeta.showMindmapCreatorName); + } + + /** + * 获取脑图创建人V2 + * + * 获取脑图创建人V2 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowMindmapCreatorNameRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showMindmapCreatorNameAsyncInvoker( + ShowMindmapCreatorNameRequest request) { + return new AsyncInvoker<>(request, CloudtestMeta.showMindmapCreatorName, hcClient); + } + /** * 查询某测试计划下的操作历史 * @@ -540,6 +1476,35 @@ public AsyncInvoker showPlansAsyncInvoker(S return new AsyncInvoker<>(request, CloudtestMeta.showPlans, hcClient); } + /** + * 获取异步进度 + * + * 获取异步进度 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowProgressRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showProgressAsync(ShowProgressRequest request) { + return hcClient.asyncInvokeHttp(request, CloudtestMeta.showProgress); + } + + /** + * 获取异步进度 + * + * 获取异步进度 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowProgressRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showProgressAsyncInvoker( + ShowProgressRequest request) { + return new AsyncInvoker<>(request, CloudtestMeta.showProgress, hcClient); + } + /** * 查询质量报告看板统计信息 * @@ -627,6 +1592,94 @@ public AsyncInvoker showReportAsyncInvoke return new AsyncInvoker<>(request, CloudtestMeta.showReport, hcClient); } + /** + * 质量报告需求测试情况统计 + * + * 质量报告需求测试情况统计 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowRequirementsOverviewRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showRequirementsOverviewAsync( + ShowRequirementsOverviewRequest request) { + return hcClient.asyncInvokeHttp(request, CloudtestMeta.showRequirementsOverview); + } + + /** + * 质量报告需求测试情况统计 + * + * 质量报告需求测试情况统计 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowRequirementsOverviewRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showRequirementsOverviewAsyncInvoker( + ShowRequirementsOverviewRequest request) { + return new AsyncInvoker<>(request, CloudtestMeta.showRequirementsOverview, hcClient); + } + + /** + * 根据入参动态查询系统配置中的信息 + * + * 根据入参动态查询系统配置中的信息 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowSystemConfigsRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showSystemConfigsAsync(ShowSystemConfigsRequest request) { + return hcClient.asyncInvokeHttp(request, CloudtestMeta.showSystemConfigs); + } + + /** + * 根据入参动态查询系统配置中的信息 + * + * 根据入参动态查询系统配置中的信息 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowSystemConfigsRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showSystemConfigsAsyncInvoker( + ShowSystemConfigsRequest request) { + return new AsyncInvoker<>(request, CloudtestMeta.showSystemConfigs, hcClient); + } + + /** + * 查询用例详情 + * + * 查询用例详情 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowTestCaseRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showTestCaseAsync(ShowTestCaseRequest request) { + return hcClient.asyncInvokeHttp(request, CloudtestMeta.showTestCase); + } + + /** + * 查询用例详情 + * + * 查询用例详情 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowTestCaseRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showTestCaseAsyncInvoker( + ShowTestCaseRequest request) { + return new AsyncInvoker<>(request, CloudtestMeta.showTestCase, hcClient); + } + /** * 查询用户用例关联缺陷的统计信息 * @@ -716,6 +1769,35 @@ public AsyncInvoker s return new AsyncInvoker<>(request, CloudtestMeta.showTestCaseDetailV2, hcClient); } + /** + * 获取租户订单信息 + * + * 获取租户订单信息 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowUserAccessInfoRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showUserAccessInfoAsync(ShowUserAccessInfoRequest request) { + return hcClient.asyncInvokeHttp(request, CloudtestMeta.showUserAccessInfo); + } + + /** + * 获取租户订单信息 + * + * 获取租户订单信息 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowUserAccessInfoRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showUserAccessInfoAsyncInvoker( + ShowUserAccessInfoRequest request) { + return new AsyncInvoker<>(request, CloudtestMeta.showUserAccessInfo, hcClient); + } + /** * 查询时段内用例的执行情况 * @@ -864,6 +1946,214 @@ public AsyncInvoker(request, CloudtestMeta.createApiTestSuiteByRepoFile, hcClient); } + /** + * 查询告警组列表 + * + * 查询告警组列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListAlertGroupsByConditionRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listAlertGroupsByConditionAsync( + ListAlertGroupsByConditionRequest request) { + return hcClient.asyncInvokeHttp(request, CloudtestMeta.listAlertGroupsByCondition); + } + + /** + * 查询告警组列表 + * + * 查询告警组列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListAlertGroupsByConditionRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listAlertGroupsByConditionAsyncInvoker( + ListAlertGroupsByConditionRequest request) { + return new AsyncInvoker<>(request, CloudtestMeta.listAlertGroupsByCondition, hcClient); + } + + /** + * 查询告警模板 + * + * 查询告警模板 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListAlertTemplatesRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listAlertTemplatesAsync(ListAlertTemplatesRequest request) { + return hcClient.asyncInvokeHttp(request, CloudtestMeta.listAlertTemplates); + } + + /** + * 查询告警模板 + * + * 查询告警模板 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListAlertTemplatesRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listAlertTemplatesAsyncInvoker( + ListAlertTemplatesRequest request) { + return new AsyncInvoker<>(request, CloudtestMeta.listAlertTemplates, hcClient); + } + + /** + * 查询任务告警信息 + * + * 查询任务告警信息 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListAllConfigItemByTypeRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listAllConfigItemByTypeAsync( + ListAllConfigItemByTypeRequest request) { + return hcClient.asyncInvokeHttp(request, CloudtestMeta.listAllConfigItemByType); + } + + /** + * 查询任务告警信息 + * + * 查询任务告警信息 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListAllConfigItemByTypeRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listAllConfigItemByTypeAsyncInvoker( + ListAllConfigItemByTypeRequest request) { + return new AsyncInvoker<>(request, CloudtestMeta.listAllConfigItemByType, hcClient); + } + + /** + * 保存任务配置 + * + * 保存任务配置 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request SaveTaskSettingRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture saveTaskSettingAsync(SaveTaskSettingRequest request) { + return hcClient.asyncInvokeHttp(request, CloudtestMeta.saveTaskSetting); + } + + /** + * 保存任务配置 + * + * 保存任务配置 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request SaveTaskSettingRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker saveTaskSettingAsyncInvoker( + SaveTaskSettingRequest request) { + return new AsyncInvoker<>(request, CloudtestMeta.saveTaskSetting, hcClient); + } + + /** + * 查询任务配置 + * + * 查询任务配置 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowAllConfigValueByTypeAndKeyRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showAllConfigValueByTypeAndKeyAsync( + ShowAllConfigValueByTypeAndKeyRequest request) { + return hcClient.asyncInvokeHttp(request, CloudtestMeta.showAllConfigValueByTypeAndKey); + } + + /** + * 查询任务配置 + * + * 查询任务配置 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowAllConfigValueByTypeAndKeyRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showAllConfigValueByTypeAndKeyAsyncInvoker( + ShowAllConfigValueByTypeAndKeyRequest request) { + return new AsyncInvoker<>(request, CloudtestMeta.showAllConfigValueByTypeAndKey, hcClient); + } + + /** + * 查询告警模板名称是否重复 + * + * 查询告警模板名称是否重复 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowIfTaskNameRepeatRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showIfTaskNameRepeatAsync( + ShowIfTaskNameRepeatRequest request) { + return hcClient.asyncInvokeHttp(request, CloudtestMeta.showIfTaskNameRepeat); + } + + /** + * 查询告警模板名称是否重复 + * + * 查询告警模板名称是否重复 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowIfTaskNameRepeatRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showIfTaskNameRepeatAsyncInvoker( + ShowIfTaskNameRepeatRequest request) { + return new AsyncInvoker<>(request, CloudtestMeta.showIfTaskNameRepeat, hcClient); + } + + /** + * 查询告警组用户名是否重复 + * + * 查询告警组用户名是否重复 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowIfUserNameRepeatRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showIfUserNameRepeatAsync( + ShowIfUserNameRepeatRequest request) { + return hcClient.asyncInvokeHttp(request, CloudtestMeta.showIfUserNameRepeat); + } + + /** + * 查询告警组用户名是否重复 + * + * 查询告警组用户名是否重复 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowIfUserNameRepeatRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showIfUserNameRepeatAsyncInvoker( + ShowIfUserNameRepeatRequest request) { + return new AsyncInvoker<>(request, CloudtestMeta.showIfUserNameRepeat, hcClient); + } + /** * 获取环境参数分组列表 * @@ -893,4 +2183,119 @@ public AsyncInvoker listEnvir return new AsyncInvoker<>(request, CloudtestMeta.listEnvironments, hcClient); } + /** + * 根据id获取单个basicAW信息 + * + * 根据id获取单个basicAW信息 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListBasicAwRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listBasicAwAsync(ListBasicAwRequest request) { + return hcClient.asyncInvokeHttp(request, CloudtestMeta.listBasicAw); + } + + /** + * 根据id获取单个basicAW信息 + * + * 根据id获取单个basicAW信息 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListBasicAwRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listBasicAwAsyncInvoker(ListBasicAwRequest request) { + return new AsyncInvoker<>(request, CloudtestMeta.listBasicAw, hcClient); + } + + /** + * 获取工程关联的公共aw信息和公共aw所属公共aw库信息 + * + * 获取工程关联的公共aw信息和公共aw所属公共aw库信息 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListPublicLibAndAwsRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listPublicLibAndAwsAsync(ListPublicLibAndAwsRequest request) { + return hcClient.asyncInvokeHttp(request, CloudtestMeta.listPublicLibAndAws); + } + + /** + * 获取工程关联的公共aw信息和公共aw所属公共aw库信息 + * + * 获取工程关联的公共aw信息和公共aw所属公共aw库信息 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListPublicLibAndAwsRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listPublicLibAndAwsAsyncInvoker( + ListPublicLibAndAwsRequest request) { + return new AsyncInvoker<>(request, CloudtestMeta.listPublicLibAndAws, hcClient); + } + + /** + * 查询用户DNS映射 + * + * 查询用户DNS映射 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListUserDnsMappingRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listUserDnsMappingAsync(ListUserDnsMappingRequest request) { + return hcClient.asyncInvokeHttp(request, CloudtestMeta.listUserDnsMapping); + } + + /** + * 查询用户DNS映射 + * + * 查询用户DNS映射 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListUserDnsMappingRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listUserDnsMappingAsyncInvoker( + ListUserDnsMappingRequest request) { + return new AsyncInvoker<>(request, CloudtestMeta.listUserDnsMapping, hcClient); + } + + /** + * 查询全局变量参数列表V4 + * + * 查询全局变量参数列表V4 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListVariablesRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listVariablesAsync(ListVariablesRequest request) { + return hcClient.asyncInvokeHttp(request, CloudtestMeta.listVariables); + } + + /** + * 查询全局变量参数列表V4 + * + * 查询全局变量参数列表V4 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListVariablesRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listVariablesAsyncInvoker( + ListVariablesRequest request) { + return new AsyncInvoker<>(request, CloudtestMeta.listVariables, hcClient); + } + } diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/CloudtestClient.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/CloudtestClient.java index c7a4922eaa..61e1c20a70 100644 --- a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/CloudtestClient.java +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/CloudtestClient.java @@ -1,53 +1,143 @@ package com.huaweicloud.sdk.cloudtest.v1; +import com.huaweicloud.sdk.cloudtest.v1.model.BatchAddRelationsByOneCaseRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.BatchAddRelationsByOneCaseResponse; import com.huaweicloud.sdk.cloudtest.v1.model.BatchDeleteTestCaseRequest; import com.huaweicloud.sdk.cloudtest.v1.model.BatchDeleteTestCaseResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.BatchDeleteTestReportRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.BatchDeleteTestReportResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.CheckPermissionRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.CheckPermissionResponse; import com.huaweicloud.sdk.cloudtest.v1.model.CreateApiTestSuiteByRepoFileRequest; import com.huaweicloud.sdk.cloudtest.v1.model.CreateApiTestSuiteByRepoFileResponse; import com.huaweicloud.sdk.cloudtest.v1.model.CreatePlanRequest; import com.huaweicloud.sdk.cloudtest.v1.model.CreatePlanResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.CreateRelationsByOneCaseRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.CreateRelationsByOneCaseResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.CreateResourceUriRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.CreateResourceUriResponse; import com.huaweicloud.sdk.cloudtest.v1.model.CreateServiceRequest; import com.huaweicloud.sdk.cloudtest.v1.model.CreateServiceResponse; import com.huaweicloud.sdk.cloudtest.v1.model.CreateTestCaseInPlanRequest; import com.huaweicloud.sdk.cloudtest.v1.model.CreateTestCaseInPlanResponse; import com.huaweicloud.sdk.cloudtest.v1.model.CreateTestCaseRequest; import com.huaweicloud.sdk.cloudtest.v1.model.CreateTestCaseResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.DeleteRelationsByOneCaseRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.DeleteRelationsByOneCaseResponse; import com.huaweicloud.sdk.cloudtest.v1.model.DeleteServiceRequest; import com.huaweicloud.sdk.cloudtest.v1.model.DeleteServiceResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListAlertGroupsByConditionRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListAlertGroupsByConditionResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListAlertTemplatesRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListAlertTemplatesResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListAllBranchesRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListAllBranchesResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListAllConfigItemByTypeRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListAllConfigItemByTypeResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListAllIteratorsRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListAllIteratorsResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListAttachmentsRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListAttachmentsResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListBasicAwRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListBasicAwResponse; import com.huaweicloud.sdk.cloudtest.v1.model.ListBranchesRequest; import com.huaweicloud.sdk.cloudtest.v1.model.ListBranchesResponse; import com.huaweicloud.sdk.cloudtest.v1.model.ListEnvironmentsRequest; import com.huaweicloud.sdk.cloudtest.v1.model.ListEnvironmentsResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListIssueTreeRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListIssueTreeResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListProjectFieldConfigsRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListProjectFieldConfigsResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListProjectTestCaseFieldsRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListProjectTestCaseFieldsResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListPublicLibAndAwsRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListPublicLibAndAwsResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListReportsRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListReportsResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListResourcePoolsRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListResourcePoolsResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListTaskTestCasesRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListTaskTestCasesResponse; import com.huaweicloud.sdk.cloudtest.v1.model.ListTestCaseHistoriesRequest; import com.huaweicloud.sdk.cloudtest.v1.model.ListTestCaseHistoriesResponse; import com.huaweicloud.sdk.cloudtest.v1.model.ListTestCasesRequest; import com.huaweicloud.sdk.cloudtest.v1.model.ListTestCasesResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListTestReportsByConditionRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListTestReportsByConditionResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListTestTypesRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListTestTypesResponse; import com.huaweicloud.sdk.cloudtest.v1.model.ListTestcasesByProjectIssuesRelationRequest; import com.huaweicloud.sdk.cloudtest.v1.model.ListTestcasesByProjectIssuesRelationResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListUsageInfosRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListUsageInfosResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListUserDnsMappingRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListUserDnsMappingResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListUserPackageUsageRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListUserPackageUsageResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListUserPopupInfoRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListUserPopupInfoResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListVariablesRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListVariablesResponse; import com.huaweicloud.sdk.cloudtest.v1.model.RunTestCaseRequest; import com.huaweicloud.sdk.cloudtest.v1.model.RunTestCaseResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.SaveTaskSettingRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.SaveTaskSettingResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowAllConfigValueByTypeAndKeyRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowAllConfigValueByTypeAndKeyResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowAllFeatureChildrenRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowAllFeatureChildrenResponse; import com.huaweicloud.sdk.cloudtest.v1.model.ShowApiTestcaseHistoriesRequest; import com.huaweicloud.sdk.cloudtest.v1.model.ShowApiTestcaseHistoriesResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowBackgroundInfoRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowBackgroundInfoResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowDisclaimerRecordRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowDisclaimerRecordResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowDomainInfoRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowDomainInfoResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowFeatureChildrenRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowFeatureChildrenResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowFreeDeclarationRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowFreeDeclarationResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowIfTaskNameRepeatRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowIfTaskNameRepeatResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowIfUserNameRepeatRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowIfUserNameRepeatResponse; import com.huaweicloud.sdk.cloudtest.v1.model.ShowIssuesByPlanIdRequest; import com.huaweicloud.sdk.cloudtest.v1.model.ShowIssuesByPlanIdResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowIteratorByDefectRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowIteratorByDefectResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowMindmapByPageRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowMindmapByPageResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowMindmapCreatorNameRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowMindmapCreatorNameResponse; import com.huaweicloud.sdk.cloudtest.v1.model.ShowPlanJournalsRequest; import com.huaweicloud.sdk.cloudtest.v1.model.ShowPlanJournalsResponse; import com.huaweicloud.sdk.cloudtest.v1.model.ShowPlanListRequest; import com.huaweicloud.sdk.cloudtest.v1.model.ShowPlanListResponse; import com.huaweicloud.sdk.cloudtest.v1.model.ShowPlansRequest; import com.huaweicloud.sdk.cloudtest.v1.model.ShowPlansResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowProgressRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowProgressResponse; import com.huaweicloud.sdk.cloudtest.v1.model.ShowProjectDataDashboardRequest; import com.huaweicloud.sdk.cloudtest.v1.model.ShowProjectDataDashboardResponse; import com.huaweicloud.sdk.cloudtest.v1.model.ShowRegisterServiceRequest; import com.huaweicloud.sdk.cloudtest.v1.model.ShowRegisterServiceResponse; import com.huaweicloud.sdk.cloudtest.v1.model.ShowReportRequest; import com.huaweicloud.sdk.cloudtest.v1.model.ShowReportResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowRequirementsOverviewRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowRequirementsOverviewResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowSystemConfigsRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowSystemConfigsResponse; import com.huaweicloud.sdk.cloudtest.v1.model.ShowTestCaseAndDefectInfoRequest; import com.huaweicloud.sdk.cloudtest.v1.model.ShowTestCaseAndDefectInfoResponse; import com.huaweicloud.sdk.cloudtest.v1.model.ShowTestCaseDetailRequest; import com.huaweicloud.sdk.cloudtest.v1.model.ShowTestCaseDetailResponse; import com.huaweicloud.sdk.cloudtest.v1.model.ShowTestCaseDetailV2Request; import com.huaweicloud.sdk.cloudtest.v1.model.ShowTestCaseDetailV2Response; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowTestCaseRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowTestCaseResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowUserAccessInfoRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowUserAccessInfoResponse; import com.huaweicloud.sdk.cloudtest.v1.model.ShowUserExecuteTestCaseInfoRequest; import com.huaweicloud.sdk.cloudtest.v1.model.ShowUserExecuteTestCaseInfoResponse; import com.huaweicloud.sdk.cloudtest.v1.model.UpdateServiceRequest; @@ -73,6 +163,35 @@ public static ClientBuilder newBuilder() { return clientBuilder; } + /** + * 添加需求/缺陷和多个用例关联关系 + * + * 添加需求/缺陷和多个用例关联关系 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchAddRelationsByOneCaseRequest 请求对象 + * @return BatchAddRelationsByOneCaseResponse + */ + public BatchAddRelationsByOneCaseResponse batchAddRelationsByOneCase(BatchAddRelationsByOneCaseRequest request) { + return hcClient.syncInvokeHttp(request, CloudtestMeta.batchAddRelationsByOneCase); + } + + /** + * 添加需求/缺陷和多个用例关联关系 + * + * 添加需求/缺陷和多个用例关联关系 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchAddRelationsByOneCaseRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker batchAddRelationsByOneCaseInvoker( + BatchAddRelationsByOneCaseRequest request) { + return new SyncInvoker<>(request, CloudtestMeta.batchAddRelationsByOneCase, hcClient); + } + /** * 批量删除自定义测试服务类型用例 * @@ -102,6 +221,64 @@ public SyncInvoker batc return new SyncInvoker<>(request, CloudtestMeta.batchDeleteTestCase, hcClient); } + /** + * 根据测试报告uri列表,删除测试报告 + * + * 根据测试报告uri列表,删除测试报告 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchDeleteTestReportRequest 请求对象 + * @return BatchDeleteTestReportResponse + */ + public BatchDeleteTestReportResponse batchDeleteTestReport(BatchDeleteTestReportRequest request) { + return hcClient.syncInvokeHttp(request, CloudtestMeta.batchDeleteTestReport); + } + + /** + * 根据测试报告uri列表,删除测试报告 + * + * 根据测试报告uri列表,删除测试报告 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchDeleteTestReportRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker batchDeleteTestReportInvoker( + BatchDeleteTestReportRequest request) { + return new SyncInvoker<>(request, CloudtestMeta.batchDeleteTestReport, hcClient); + } + + /** + * 检查项目权限 + * + * 检查项目权限 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CheckPermissionRequest 请求对象 + * @return CheckPermissionResponse + */ + public CheckPermissionResponse checkPermission(CheckPermissionRequest request) { + return hcClient.syncInvokeHttp(request, CloudtestMeta.checkPermission); + } + + /** + * 检查项目权限 + * + * 检查项目权限 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CheckPermissionRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker checkPermissionInvoker( + CheckPermissionRequest request) { + return new SyncInvoker<>(request, CloudtestMeta.checkPermission, hcClient); + } + /** * 项目下创建计划 * @@ -130,6 +307,64 @@ public SyncInvoker createPlanInvoker(Crea return new SyncInvoker<>(request, CloudtestMeta.createPlan, hcClient); } + /** + * 添加一个用例和多个需求/缺陷关联关系 + * + * 添加一个用例和多个需求/缺陷关联关系 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateRelationsByOneCaseRequest 请求对象 + * @return CreateRelationsByOneCaseResponse + */ + public CreateRelationsByOneCaseResponse createRelationsByOneCase(CreateRelationsByOneCaseRequest request) { + return hcClient.syncInvokeHttp(request, CloudtestMeta.createRelationsByOneCase); + } + + /** + * 添加一个用例和多个需求/缺陷关联关系 + * + * 添加一个用例和多个需求/缺陷关联关系 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateRelationsByOneCaseRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker createRelationsByOneCaseInvoker( + CreateRelationsByOneCaseRequest request) { + return new SyncInvoker<>(request, CloudtestMeta.createRelationsByOneCase, hcClient); + } + + /** + * 生成资源URI + * + * 生成资源URI + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateResourceUriRequest 请求对象 + * @return CreateResourceUriResponse + */ + public CreateResourceUriResponse createResourceUri(CreateResourceUriRequest request) { + return hcClient.syncInvokeHttp(request, CloudtestMeta.createResourceUri); + } + + /** + * 生成资源URI + * + * 生成资源URI + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateResourceUriRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker createResourceUriInvoker( + CreateResourceUriRequest request) { + return new SyncInvoker<>(request, CloudtestMeta.createResourceUri, hcClient); + } + /** * 新测试类型服务注册 * @@ -216,6 +451,35 @@ public SyncInvoker cr return new SyncInvoker<>(request, CloudtestMeta.createTestCaseInPlan, hcClient); } + /** + * 删除一个用例和多个需求/缺陷关联关系 + * + * 删除一个用例和多个需求/缺陷关联关系 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteRelationsByOneCaseRequest 请求对象 + * @return DeleteRelationsByOneCaseResponse + */ + public DeleteRelationsByOneCaseResponse deleteRelationsByOneCase(DeleteRelationsByOneCaseRequest request) { + return hcClient.syncInvokeHttp(request, CloudtestMeta.deleteRelationsByOneCase); + } + + /** + * 删除一个用例和多个需求/缺陷关联关系 + * + * 删除一个用例和多个需求/缺陷关联关系 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteRelationsByOneCaseRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker deleteRelationsByOneCaseInvoker( + DeleteRelationsByOneCaseRequest request) { + return new SyncInvoker<>(request, CloudtestMeta.deleteRelationsByOneCase, hcClient); + } + /** * 删除已注册服务 * @@ -244,6 +508,93 @@ public SyncInvoker deleteServiceInv return new SyncInvoker<>(request, CloudtestMeta.deleteService, hcClient); } + /** + * 获取分支列表 + * + * 获取分支列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListAllBranchesRequest 请求对象 + * @return ListAllBranchesResponse + */ + public ListAllBranchesResponse listAllBranches(ListAllBranchesRequest request) { + return hcClient.syncInvokeHttp(request, CloudtestMeta.listAllBranches); + } + + /** + * 获取分支列表 + * + * 获取分支列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListAllBranchesRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listAllBranchesInvoker( + ListAllBranchesRequest request) { + return new SyncInvoker<>(request, CloudtestMeta.listAllBranches, hcClient); + } + + /** + * 查询项目下所有迭代计划 + * + * 查询项目下所有迭代计划 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListAllIteratorsRequest 请求对象 + * @return ListAllIteratorsResponse + */ + public ListAllIteratorsResponse listAllIterators(ListAllIteratorsRequest request) { + return hcClient.syncInvokeHttp(request, CloudtestMeta.listAllIterators); + } + + /** + * 查询项目下所有迭代计划 + * + * 查询项目下所有迭代计划 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListAllIteratorsRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listAllIteratorsInvoker( + ListAllIteratorsRequest request) { + return new SyncInvoker<>(request, CloudtestMeta.listAllIterators, hcClient); + } + + /** + * 查询附件列表 + * + * 查询附件列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListAttachmentsRequest 请求对象 + * @return ListAttachmentsResponse + */ + public ListAttachmentsResponse listAttachments(ListAttachmentsRequest request) { + return hcClient.syncInvokeHttp(request, CloudtestMeta.listAttachments); + } + + /** + * 查询附件列表 + * + * 查询附件列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListAttachmentsRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listAttachmentsInvoker( + ListAttachmentsRequest request) { + return new SyncInvoker<>(request, CloudtestMeta.listAttachments, hcClient); + } + /** * 获取分支列表 * @@ -272,6 +623,178 @@ public SyncInvoker listBranchesInvoke return new SyncInvoker<>(request, CloudtestMeta.listBranches, hcClient); } + /** + * 查询需求树 + * + * 查询需求树 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListIssueTreeRequest 请求对象 + * @return ListIssueTreeResponse + */ + public ListIssueTreeResponse listIssueTree(ListIssueTreeRequest request) { + return hcClient.syncInvokeHttp(request, CloudtestMeta.listIssueTree); + } + + /** + * 查询需求树 + * + * 查询需求树 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListIssueTreeRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listIssueTreeInvoker(ListIssueTreeRequest request) { + return new SyncInvoker<>(request, CloudtestMeta.listIssueTree, hcClient); + } + + /** + * 查询项目字段配置 + * + * 查询项目字段配置 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListProjectFieldConfigsRequest 请求对象 + * @return ListProjectFieldConfigsResponse + */ + public ListProjectFieldConfigsResponse listProjectFieldConfigs(ListProjectFieldConfigsRequest request) { + return hcClient.syncInvokeHttp(request, CloudtestMeta.listProjectFieldConfigs); + } + + /** + * 查询项目字段配置 + * + * 查询项目字段配置 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListProjectFieldConfigsRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listProjectFieldConfigsInvoker( + ListProjectFieldConfigsRequest request) { + return new SyncInvoker<>(request, CloudtestMeta.listProjectFieldConfigs, hcClient); + } + + /** + * 获取项目测试用例自定义字段列表 + * + * 获取项目测试用例自定义字段列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListProjectTestCaseFieldsRequest 请求对象 + * @return ListProjectTestCaseFieldsResponse + */ + public ListProjectTestCaseFieldsResponse listProjectTestCaseFields(ListProjectTestCaseFieldsRequest request) { + return hcClient.syncInvokeHttp(request, CloudtestMeta.listProjectTestCaseFields); + } + + /** + * 获取项目测试用例自定义字段列表 + * + * 获取项目测试用例自定义字段列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListProjectTestCaseFieldsRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listProjectTestCaseFieldsInvoker( + ListProjectTestCaseFieldsRequest request) { + return new SyncInvoker<>(request, CloudtestMeta.listProjectTestCaseFields, hcClient); + } + + /** + * 页面报表展示 + * + * 页面报表展示 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListReportsRequest 请求对象 + * @return ListReportsResponse + */ + public ListReportsResponse listReports(ListReportsRequest request) { + return hcClient.syncInvokeHttp(request, CloudtestMeta.listReports); + } + + /** + * 页面报表展示 + * + * 页面报表展示 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListReportsRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listReportsInvoker(ListReportsRequest request) { + return new SyncInvoker<>(request, CloudtestMeta.listReports, hcClient); + } + + /** + * 获取资源池列表 + * + * 获取资源池列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListResourcePoolsRequest 请求对象 + * @return ListResourcePoolsResponse + */ + public ListResourcePoolsResponse listResourcePools(ListResourcePoolsRequest request) { + return hcClient.syncInvokeHttp(request, CloudtestMeta.listResourcePools); + } + + /** + * 获取资源池列表 + * + * 获取资源池列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListResourcePoolsRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listResourcePoolsInvoker( + ListResourcePoolsRequest request) { + return new SyncInvoker<>(request, CloudtestMeta.listResourcePools, hcClient); + } + + /** + * 查询用例关联的测试任务列表 + * + * 查询用例关联的测试任务列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListTaskTestCasesRequest 请求对象 + * @return ListTaskTestCasesResponse + */ + public ListTaskTestCasesResponse listTaskTestCases(ListTaskTestCasesRequest request) { + return hcClient.syncInvokeHttp(request, CloudtestMeta.listTaskTestCases); + } + + /** + * 查询用例关联的测试任务列表 + * + * 查询用例关联的测试任务列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListTaskTestCasesRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listTaskTestCasesInvoker( + ListTaskTestCasesRequest request) { + return new SyncInvoker<>(request, CloudtestMeta.listTaskTestCases, hcClient); + } + /** * 查询用例修改历史记录 * @@ -329,6 +852,63 @@ public SyncInvoker listTestCasesInv return new SyncInvoker<>(request, CloudtestMeta.listTestCases, hcClient); } + /** + * 根据查询条件获取测试报告列表 + * + * 根据查询条件获取测试报告列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListTestReportsByConditionRequest 请求对象 + * @return ListTestReportsByConditionResponse + */ + public ListTestReportsByConditionResponse listTestReportsByCondition(ListTestReportsByConditionRequest request) { + return hcClient.syncInvokeHttp(request, CloudtestMeta.listTestReportsByCondition); + } + + /** + * 根据查询条件获取测试报告列表 + * + * 根据查询条件获取测试报告列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListTestReportsByConditionRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listTestReportsByConditionInvoker( + ListTestReportsByConditionRequest request) { + return new SyncInvoker<>(request, CloudtestMeta.listTestReportsByCondition, hcClient); + } + + /** + * 获取测试类型列表 + * + * 获取测试类型列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListTestTypesRequest 请求对象 + * @return ListTestTypesResponse + */ + public ListTestTypesResponse listTestTypes(ListTestTypesRequest request) { + return hcClient.syncInvokeHttp(request, CloudtestMeta.listTestTypes); + } + + /** + * 获取测试类型列表 + * + * 获取测试类型列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListTestTypesRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listTestTypesInvoker(ListTestTypesRequest request) { + return new SyncInvoker<>(request, CloudtestMeta.listTestTypes, hcClient); + } + /** * 查询项目下关联了需求的用例列表 * @@ -359,6 +939,89 @@ public SyncInvoker(request, CloudtestMeta.listTestcasesByProjectIssuesRelation, hcClient); } + /** + * 获取租户订单已用资源信息 + * + * 获取租户订单已用资源信息 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListUsageInfosRequest 请求对象 + * @return ListUsageInfosResponse + */ + public ListUsageInfosResponse listUsageInfos(ListUsageInfosRequest request) { + return hcClient.syncInvokeHttp(request, CloudtestMeta.listUsageInfos); + } + + /** + * 获取租户订单已用资源信息 + * + * 获取租户订单已用资源信息 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListUsageInfosRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listUsageInfosInvoker( + ListUsageInfosRequest request) { + return new SyncInvoker<>(request, CloudtestMeta.listUsageInfos, hcClient); + } + + /** + * ListUserPackageUsage + * + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListUserPackageUsageRequest 请求对象 + * @return ListUserPackageUsageResponse + */ + public ListUserPackageUsageResponse listUserPackageUsage(ListUserPackageUsageRequest request) { + return hcClient.syncInvokeHttp(request, CloudtestMeta.listUserPackageUsage); + } + + /** + * ListUserPackageUsage + * + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListUserPackageUsageRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listUserPackageUsageInvoker( + ListUserPackageUsageRequest request) { + return new SyncInvoker<>(request, CloudtestMeta.listUserPackageUsage, hcClient); + } + + /** + * ListUserPopupInfo + * + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListUserPopupInfoRequest 请求对象 + * @return ListUserPopupInfoResponse + */ + public ListUserPopupInfoResponse listUserPopupInfo(ListUserPopupInfoRequest request) { + return hcClient.syncInvokeHttp(request, CloudtestMeta.listUserPopupInfo); + } + + /** + * ListUserPopupInfo + * + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListUserPopupInfoRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listUserPopupInfoInvoker( + ListUserPopupInfoRequest request) { + return new SyncInvoker<>(request, CloudtestMeta.listUserPopupInfo, hcClient); + } + /** * 批量执行测试用例 * @@ -387,6 +1050,33 @@ public SyncInvoker runTestCaseInvoker(R return new SyncInvoker<>(request, CloudtestMeta.runTestCase, hcClient); } + /** + * 获取特性树V5 + * + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowAllFeatureChildrenRequest 请求对象 + * @return ShowAllFeatureChildrenResponse + */ + public ShowAllFeatureChildrenResponse showAllFeatureChildren(ShowAllFeatureChildrenRequest request) { + return hcClient.syncInvokeHttp(request, CloudtestMeta.showAllFeatureChildren); + } + + /** + * 获取特性树V5 + * + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowAllFeatureChildrenRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showAllFeatureChildrenInvoker( + ShowAllFeatureChildrenRequest request) { + return new SyncInvoker<>(request, CloudtestMeta.showAllFeatureChildren, hcClient); + } + /** * 获取用例历史执行数据 * @@ -416,6 +1106,151 @@ public SyncInvoker(request, CloudtestMeta.showApiTestcaseHistories, hcClient); } + /** + * 获取测试报告的模板设置 + * + * 获取测试报告的模板设置 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowBackgroundInfoRequest 请求对象 + * @return ShowBackgroundInfoResponse + */ + public ShowBackgroundInfoResponse showBackgroundInfo(ShowBackgroundInfoRequest request) { + return hcClient.syncInvokeHttp(request, CloudtestMeta.showBackgroundInfo); + } + + /** + * 获取测试报告的模板设置 + * + * 获取测试报告的模板设置 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowBackgroundInfoRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showBackgroundInfoInvoker( + ShowBackgroundInfoRequest request) { + return new SyncInvoker<>(request, CloudtestMeta.showBackgroundInfo, hcClient); + } + + /** + * 查询用户免责声明 + * + * 查询用户免责声明 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowDisclaimerRecordRequest 请求对象 + * @return ShowDisclaimerRecordResponse + */ + public ShowDisclaimerRecordResponse showDisclaimerRecord(ShowDisclaimerRecordRequest request) { + return hcClient.syncInvokeHttp(request, CloudtestMeta.showDisclaimerRecord); + } + + /** + * 查询用户免责声明 + * + * 查询用户免责声明 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowDisclaimerRecordRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showDisclaimerRecordInvoker( + ShowDisclaimerRecordRequest request) { + return new SyncInvoker<>(request, CloudtestMeta.showDisclaimerRecord, hcClient); + } + + /** + * 根据domainId获取加密的testbirdkey + * + * 根据domainId获取加密的testbirdkey + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowDomainInfoRequest 请求对象 + * @return ShowDomainInfoResponse + */ + public ShowDomainInfoResponse showDomainInfo(ShowDomainInfoRequest request) { + return hcClient.syncInvokeHttp(request, CloudtestMeta.showDomainInfo); + } + + /** + * 根据domainId获取加密的testbirdkey + * + * 根据domainId获取加密的testbirdkey + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowDomainInfoRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showDomainInfoInvoker( + ShowDomainInfoRequest request) { + return new SyncInvoker<>(request, CloudtestMeta.showDomainInfo, hcClient); + } + + /** + * 获取目录\\特性树 + * + * 获取目录\\特性树 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowFeatureChildrenRequest 请求对象 + * @return ShowFeatureChildrenResponse + */ + public ShowFeatureChildrenResponse showFeatureChildren(ShowFeatureChildrenRequest request) { + return hcClient.syncInvokeHttp(request, CloudtestMeta.showFeatureChildren); + } + + /** + * 获取目录\\特性树 + * + * 获取目录\\特性树 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowFeatureChildrenRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showFeatureChildrenInvoker( + ShowFeatureChildrenRequest request) { + return new SyncInvoker<>(request, CloudtestMeta.showFeatureChildren, hcClient); + } + + /** + * 查询限时免费用户免责声明记录 + * + * 查询限时免费用户免责声明记录 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowFreeDeclarationRequest 请求对象 + * @return ShowFreeDeclarationResponse + */ + public ShowFreeDeclarationResponse showFreeDeclaration(ShowFreeDeclarationRequest request) { + return hcClient.syncInvokeHttp(request, CloudtestMeta.showFreeDeclaration); + } + + /** + * 查询限时免费用户免责声明记录 + * + * 查询限时免费用户免责声明记录 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowFreeDeclarationRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showFreeDeclarationInvoker( + ShowFreeDeclarationRequest request) { + return new SyncInvoker<>(request, CloudtestMeta.showFreeDeclaration, hcClient); + } + /** * 查询某个测试计划下的需求树 * @@ -445,6 +1280,93 @@ public SyncInvoker showIs return new SyncInvoker<>(request, CloudtestMeta.showIssuesByPlanId, hcClient); } + /** + * 查询缺陷相关联测试计划 + * + * 查询缺陷相关联测试计划 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowIteratorByDefectRequest 请求对象 + * @return ShowIteratorByDefectResponse + */ + public ShowIteratorByDefectResponse showIteratorByDefect(ShowIteratorByDefectRequest request) { + return hcClient.syncInvokeHttp(request, CloudtestMeta.showIteratorByDefect); + } + + /** + * 查询缺陷相关联测试计划 + * + * 查询缺陷相关联测试计划 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowIteratorByDefectRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showIteratorByDefectInvoker( + ShowIteratorByDefectRequest request) { + return new SyncInvoker<>(request, CloudtestMeta.showIteratorByDefect, hcClient); + } + + /** + * 根据条件分页获取脑图对象V3 + * + * 根据条件分页获取脑图对象V3 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowMindmapByPageRequest 请求对象 + * @return ShowMindmapByPageResponse + */ + public ShowMindmapByPageResponse showMindmapByPage(ShowMindmapByPageRequest request) { + return hcClient.syncInvokeHttp(request, CloudtestMeta.showMindmapByPage); + } + + /** + * 根据条件分页获取脑图对象V3 + * + * 根据条件分页获取脑图对象V3 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowMindmapByPageRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showMindmapByPageInvoker( + ShowMindmapByPageRequest request) { + return new SyncInvoker<>(request, CloudtestMeta.showMindmapByPage, hcClient); + } + + /** + * 获取脑图创建人V2 + * + * 获取脑图创建人V2 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowMindmapCreatorNameRequest 请求对象 + * @return ShowMindmapCreatorNameResponse + */ + public ShowMindmapCreatorNameResponse showMindmapCreatorName(ShowMindmapCreatorNameRequest request) { + return hcClient.syncInvokeHttp(request, CloudtestMeta.showMindmapCreatorName); + } + + /** + * 获取脑图创建人V2 + * + * 获取脑图创建人V2 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowMindmapCreatorNameRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showMindmapCreatorNameInvoker( + ShowMindmapCreatorNameRequest request) { + return new SyncInvoker<>(request, CloudtestMeta.showMindmapCreatorName, hcClient); + } + /** * 查询某测试计划下的操作历史 * @@ -530,6 +1452,34 @@ public SyncInvoker showPlansInvoker(ShowPla return new SyncInvoker<>(request, CloudtestMeta.showPlans, hcClient); } + /** + * 获取异步进度 + * + * 获取异步进度 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowProgressRequest 请求对象 + * @return ShowProgressResponse + */ + public ShowProgressResponse showProgress(ShowProgressRequest request) { + return hcClient.syncInvokeHttp(request, CloudtestMeta.showProgress); + } + + /** + * 获取异步进度 + * + * 获取异步进度 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowProgressRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showProgressInvoker(ShowProgressRequest request) { + return new SyncInvoker<>(request, CloudtestMeta.showProgress, hcClient); + } + /** * 查询质量报告看板统计信息 * @@ -616,6 +1566,92 @@ public SyncInvoker showReportInvoker(Show return new SyncInvoker<>(request, CloudtestMeta.showReport, hcClient); } + /** + * 质量报告需求测试情况统计 + * + * 质量报告需求测试情况统计 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowRequirementsOverviewRequest 请求对象 + * @return ShowRequirementsOverviewResponse + */ + public ShowRequirementsOverviewResponse showRequirementsOverview(ShowRequirementsOverviewRequest request) { + return hcClient.syncInvokeHttp(request, CloudtestMeta.showRequirementsOverview); + } + + /** + * 质量报告需求测试情况统计 + * + * 质量报告需求测试情况统计 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowRequirementsOverviewRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showRequirementsOverviewInvoker( + ShowRequirementsOverviewRequest request) { + return new SyncInvoker<>(request, CloudtestMeta.showRequirementsOverview, hcClient); + } + + /** + * 根据入参动态查询系统配置中的信息 + * + * 根据入参动态查询系统配置中的信息 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowSystemConfigsRequest 请求对象 + * @return ShowSystemConfigsResponse + */ + public ShowSystemConfigsResponse showSystemConfigs(ShowSystemConfigsRequest request) { + return hcClient.syncInvokeHttp(request, CloudtestMeta.showSystemConfigs); + } + + /** + * 根据入参动态查询系统配置中的信息 + * + * 根据入参动态查询系统配置中的信息 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowSystemConfigsRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showSystemConfigsInvoker( + ShowSystemConfigsRequest request) { + return new SyncInvoker<>(request, CloudtestMeta.showSystemConfigs, hcClient); + } + + /** + * 查询用例详情 + * + * 查询用例详情 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowTestCaseRequest 请求对象 + * @return ShowTestCaseResponse + */ + public ShowTestCaseResponse showTestCase(ShowTestCaseRequest request) { + return hcClient.syncInvokeHttp(request, CloudtestMeta.showTestCase); + } + + /** + * 查询用例详情 + * + * 查询用例详情 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowTestCaseRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showTestCaseInvoker(ShowTestCaseRequest request) { + return new SyncInvoker<>(request, CloudtestMeta.showTestCase, hcClient); + } + /** * 查询用户用例关联缺陷的统计信息 * @@ -703,6 +1739,35 @@ public SyncInvoker sh return new SyncInvoker<>(request, CloudtestMeta.showTestCaseDetailV2, hcClient); } + /** + * 获取租户订单信息 + * + * 获取租户订单信息 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowUserAccessInfoRequest 请求对象 + * @return ShowUserAccessInfoResponse + */ + public ShowUserAccessInfoResponse showUserAccessInfo(ShowUserAccessInfoRequest request) { + return hcClient.syncInvokeHttp(request, CloudtestMeta.showUserAccessInfo); + } + + /** + * 获取租户订单信息 + * + * 获取租户订单信息 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowUserAccessInfoRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showUserAccessInfoInvoker( + ShowUserAccessInfoRequest request) { + return new SyncInvoker<>(request, CloudtestMeta.showUserAccessInfo, hcClient); + } + /** * 查询时段内用例的执行情况 * @@ -848,6 +1913,210 @@ public SyncInvoker(request, CloudtestMeta.createApiTestSuiteByRepoFile, hcClient); } + /** + * 查询告警组列表 + * + * 查询告警组列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListAlertGroupsByConditionRequest 请求对象 + * @return ListAlertGroupsByConditionResponse + */ + public ListAlertGroupsByConditionResponse listAlertGroupsByCondition(ListAlertGroupsByConditionRequest request) { + return hcClient.syncInvokeHttp(request, CloudtestMeta.listAlertGroupsByCondition); + } + + /** + * 查询告警组列表 + * + * 查询告警组列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListAlertGroupsByConditionRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listAlertGroupsByConditionInvoker( + ListAlertGroupsByConditionRequest request) { + return new SyncInvoker<>(request, CloudtestMeta.listAlertGroupsByCondition, hcClient); + } + + /** + * 查询告警模板 + * + * 查询告警模板 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListAlertTemplatesRequest 请求对象 + * @return ListAlertTemplatesResponse + */ + public ListAlertTemplatesResponse listAlertTemplates(ListAlertTemplatesRequest request) { + return hcClient.syncInvokeHttp(request, CloudtestMeta.listAlertTemplates); + } + + /** + * 查询告警模板 + * + * 查询告警模板 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListAlertTemplatesRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listAlertTemplatesInvoker( + ListAlertTemplatesRequest request) { + return new SyncInvoker<>(request, CloudtestMeta.listAlertTemplates, hcClient); + } + + /** + * 查询任务告警信息 + * + * 查询任务告警信息 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListAllConfigItemByTypeRequest 请求对象 + * @return ListAllConfigItemByTypeResponse + */ + public ListAllConfigItemByTypeResponse listAllConfigItemByType(ListAllConfigItemByTypeRequest request) { + return hcClient.syncInvokeHttp(request, CloudtestMeta.listAllConfigItemByType); + } + + /** + * 查询任务告警信息 + * + * 查询任务告警信息 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListAllConfigItemByTypeRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listAllConfigItemByTypeInvoker( + ListAllConfigItemByTypeRequest request) { + return new SyncInvoker<>(request, CloudtestMeta.listAllConfigItemByType, hcClient); + } + + /** + * 保存任务配置 + * + * 保存任务配置 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request SaveTaskSettingRequest 请求对象 + * @return SaveTaskSettingResponse + */ + public SaveTaskSettingResponse saveTaskSetting(SaveTaskSettingRequest request) { + return hcClient.syncInvokeHttp(request, CloudtestMeta.saveTaskSetting); + } + + /** + * 保存任务配置 + * + * 保存任务配置 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request SaveTaskSettingRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker saveTaskSettingInvoker( + SaveTaskSettingRequest request) { + return new SyncInvoker<>(request, CloudtestMeta.saveTaskSetting, hcClient); + } + + /** + * 查询任务配置 + * + * 查询任务配置 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowAllConfigValueByTypeAndKeyRequest 请求对象 + * @return ShowAllConfigValueByTypeAndKeyResponse + */ + public ShowAllConfigValueByTypeAndKeyResponse showAllConfigValueByTypeAndKey( + ShowAllConfigValueByTypeAndKeyRequest request) { + return hcClient.syncInvokeHttp(request, CloudtestMeta.showAllConfigValueByTypeAndKey); + } + + /** + * 查询任务配置 + * + * 查询任务配置 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowAllConfigValueByTypeAndKeyRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showAllConfigValueByTypeAndKeyInvoker( + ShowAllConfigValueByTypeAndKeyRequest request) { + return new SyncInvoker<>(request, CloudtestMeta.showAllConfigValueByTypeAndKey, hcClient); + } + + /** + * 查询告警模板名称是否重复 + * + * 查询告警模板名称是否重复 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowIfTaskNameRepeatRequest 请求对象 + * @return ShowIfTaskNameRepeatResponse + */ + public ShowIfTaskNameRepeatResponse showIfTaskNameRepeat(ShowIfTaskNameRepeatRequest request) { + return hcClient.syncInvokeHttp(request, CloudtestMeta.showIfTaskNameRepeat); + } + + /** + * 查询告警模板名称是否重复 + * + * 查询告警模板名称是否重复 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowIfTaskNameRepeatRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showIfTaskNameRepeatInvoker( + ShowIfTaskNameRepeatRequest request) { + return new SyncInvoker<>(request, CloudtestMeta.showIfTaskNameRepeat, hcClient); + } + + /** + * 查询告警组用户名是否重复 + * + * 查询告警组用户名是否重复 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowIfUserNameRepeatRequest 请求对象 + * @return ShowIfUserNameRepeatResponse + */ + public ShowIfUserNameRepeatResponse showIfUserNameRepeat(ShowIfUserNameRepeatRequest request) { + return hcClient.syncInvokeHttp(request, CloudtestMeta.showIfUserNameRepeat); + } + + /** + * 查询告警组用户名是否重复 + * + * 查询告警组用户名是否重复 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowIfUserNameRepeatRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showIfUserNameRepeatInvoker( + ShowIfUserNameRepeatRequest request) { + return new SyncInvoker<>(request, CloudtestMeta.showIfUserNameRepeat, hcClient); + } + /** * 获取环境参数分组列表 * @@ -877,4 +2146,118 @@ public SyncInvoker listEnviro return new SyncInvoker<>(request, CloudtestMeta.listEnvironments, hcClient); } + /** + * 根据id获取单个basicAW信息 + * + * 根据id获取单个basicAW信息 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListBasicAwRequest 请求对象 + * @return ListBasicAwResponse + */ + public ListBasicAwResponse listBasicAw(ListBasicAwRequest request) { + return hcClient.syncInvokeHttp(request, CloudtestMeta.listBasicAw); + } + + /** + * 根据id获取单个basicAW信息 + * + * 根据id获取单个basicAW信息 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListBasicAwRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listBasicAwInvoker(ListBasicAwRequest request) { + return new SyncInvoker<>(request, CloudtestMeta.listBasicAw, hcClient); + } + + /** + * 获取工程关联的公共aw信息和公共aw所属公共aw库信息 + * + * 获取工程关联的公共aw信息和公共aw所属公共aw库信息 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListPublicLibAndAwsRequest 请求对象 + * @return ListPublicLibAndAwsResponse + */ + public ListPublicLibAndAwsResponse listPublicLibAndAws(ListPublicLibAndAwsRequest request) { + return hcClient.syncInvokeHttp(request, CloudtestMeta.listPublicLibAndAws); + } + + /** + * 获取工程关联的公共aw信息和公共aw所属公共aw库信息 + * + * 获取工程关联的公共aw信息和公共aw所属公共aw库信息 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListPublicLibAndAwsRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listPublicLibAndAwsInvoker( + ListPublicLibAndAwsRequest request) { + return new SyncInvoker<>(request, CloudtestMeta.listPublicLibAndAws, hcClient); + } + + /** + * 查询用户DNS映射 + * + * 查询用户DNS映射 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListUserDnsMappingRequest 请求对象 + * @return ListUserDnsMappingResponse + */ + public ListUserDnsMappingResponse listUserDnsMapping(ListUserDnsMappingRequest request) { + return hcClient.syncInvokeHttp(request, CloudtestMeta.listUserDnsMapping); + } + + /** + * 查询用户DNS映射 + * + * 查询用户DNS映射 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListUserDnsMappingRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listUserDnsMappingInvoker( + ListUserDnsMappingRequest request) { + return new SyncInvoker<>(request, CloudtestMeta.listUserDnsMapping, hcClient); + } + + /** + * 查询全局变量参数列表V4 + * + * 查询全局变量参数列表V4 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListVariablesRequest 请求对象 + * @return ListVariablesResponse + */ + public ListVariablesResponse listVariables(ListVariablesRequest request) { + return hcClient.syncInvokeHttp(request, CloudtestMeta.listVariables); + } + + /** + * 查询全局变量参数列表V4 + * + * 查询全局变量参数列表V4 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListVariablesRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listVariablesInvoker(ListVariablesRequest request) { + return new SyncInvoker<>(request, CloudtestMeta.listVariables, hcClient); + } + } diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/CloudtestMeta.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/CloudtestMeta.java index e2c36faaf4..a8752cc9c1 100644 --- a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/CloudtestMeta.java +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/CloudtestMeta.java @@ -1,13 +1,26 @@ package com.huaweicloud.sdk.cloudtest.v1; +import com.huaweicloud.sdk.cloudtest.v1.model.AddRelationsInfo; +import com.huaweicloud.sdk.cloudtest.v1.model.BatchAddRelationsByOneCaseRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.BatchAddRelationsByOneCaseResponse; import com.huaweicloud.sdk.cloudtest.v1.model.BatchDeleteTestCaseRequest; import com.huaweicloud.sdk.cloudtest.v1.model.BatchDeleteTestCaseRequestBody; import com.huaweicloud.sdk.cloudtest.v1.model.BatchDeleteTestCaseResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.BatchDeleteTestReportRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.BatchDeleteTestReportResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.CheckPermissionRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.CheckPermissionResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.CommRequestMindmapPageParamV3; +import com.huaweicloud.sdk.cloudtest.v1.model.CommRequestSystemConfig; import com.huaweicloud.sdk.cloudtest.v1.model.CreateApiTestSuiteByRepoFileRequest; import com.huaweicloud.sdk.cloudtest.v1.model.CreateApiTestSuiteByRepoFileResponse; import com.huaweicloud.sdk.cloudtest.v1.model.CreatePlanRequest; import com.huaweicloud.sdk.cloudtest.v1.model.CreatePlanRequestBody; import com.huaweicloud.sdk.cloudtest.v1.model.CreatePlanResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.CreateRelationsByOneCaseRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.CreateRelationsByOneCaseResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.CreateResourceUriRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.CreateResourceUriResponse; import com.huaweicloud.sdk.cloudtest.v1.model.CreateServiceRequest; import com.huaweicloud.sdk.cloudtest.v1.model.CreateServiceResponse; import com.huaweicloud.sdk.cloudtest.v1.model.CreateTestCaseInPlanRequest; @@ -17,42 +30,126 @@ import com.huaweicloud.sdk.cloudtest.v1.model.CreateTestCaseRequestBody; import com.huaweicloud.sdk.cloudtest.v1.model.CreateTestCaseResponse; import com.huaweicloud.sdk.cloudtest.v1.model.CreateTestSuitByRepoFileInfo; +import com.huaweicloud.sdk.cloudtest.v1.model.DeleteRelationsByOneCaseInfo; +import com.huaweicloud.sdk.cloudtest.v1.model.DeleteRelationsByOneCaseRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.DeleteRelationsByOneCaseResponse; import com.huaweicloud.sdk.cloudtest.v1.model.DeleteServiceRequest; import com.huaweicloud.sdk.cloudtest.v1.model.DeleteServiceResponse; import com.huaweicloud.sdk.cloudtest.v1.model.GenerateReportInfo; +import com.huaweicloud.sdk.cloudtest.v1.model.ListAlertGroupsByConditionRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListAlertGroupsByConditionRequestBody; +import com.huaweicloud.sdk.cloudtest.v1.model.ListAlertGroupsByConditionResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListAlertTemplatesRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListAlertTemplatesResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListAllBranchesRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListAllBranchesResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListAllConfigItemByTypeRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListAllConfigItemByTypeRequestBody; +import com.huaweicloud.sdk.cloudtest.v1.model.ListAllConfigItemByTypeResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListAllIteratorsRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListAllIteratorsResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListAttachmentsRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListAttachmentsResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListBasicAwRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListBasicAwResponse; import com.huaweicloud.sdk.cloudtest.v1.model.ListBranchesRequest; import com.huaweicloud.sdk.cloudtest.v1.model.ListBranchesResponse; import com.huaweicloud.sdk.cloudtest.v1.model.ListEnvironmentsRequest; import com.huaweicloud.sdk.cloudtest.v1.model.ListEnvironmentsResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListIssueTreeRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListIssueTreeResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListProjectFieldConfigsRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListProjectFieldConfigsResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListProjectTestCaseFieldsRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListProjectTestCaseFieldsResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListPublicLibAndAwsRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListPublicLibAndAwsResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListReportsRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListReportsResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListResourcePoolsRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListResourcePoolsResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListTaskTestCasesRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListTaskTestCasesResponse; import com.huaweicloud.sdk.cloudtest.v1.model.ListTestCaseHistoriesRequest; import com.huaweicloud.sdk.cloudtest.v1.model.ListTestCaseHistoriesRequestBody; import com.huaweicloud.sdk.cloudtest.v1.model.ListTestCaseHistoriesResponse; import com.huaweicloud.sdk.cloudtest.v1.model.ListTestCasesRequest; import com.huaweicloud.sdk.cloudtest.v1.model.ListTestCasesRequestBody; import com.huaweicloud.sdk.cloudtest.v1.model.ListTestCasesResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListTestReportsByConditionRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListTestReportsByConditionResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListTestTypesRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListTestTypesResponse; import com.huaweicloud.sdk.cloudtest.v1.model.ListTestcasesByProjectIssuesRelationRequest; import com.huaweicloud.sdk.cloudtest.v1.model.ListTestcasesByProjectIssuesRelationResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListUsageInfosRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListUsageInfosResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListUserDnsMappingRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListUserDnsMappingResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListUserPackageUsageRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListUserPackageUsageResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListUserPopupInfoRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListUserPopupInfoResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ListVariablesRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ListVariablesResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.QueryIssueTreeInfo; import com.huaweicloud.sdk.cloudtest.v1.model.QueryProjectIssuesRelationTestCasesInfo; +import com.huaweicloud.sdk.cloudtest.v1.model.QueryRequirementsOverviewInfo; +import com.huaweicloud.sdk.cloudtest.v1.model.QueryTaskTestCasesInfo; +import com.huaweicloud.sdk.cloudtest.v1.model.QueryTestItemTreeInfo; import com.huaweicloud.sdk.cloudtest.v1.model.RunTestCaseRequest; import com.huaweicloud.sdk.cloudtest.v1.model.RunTestCaseRequestBody; import com.huaweicloud.sdk.cloudtest.v1.model.RunTestCaseResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.SaveTaskSettingRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.SaveTaskSettingRequestBody; +import com.huaweicloud.sdk.cloudtest.v1.model.SaveTaskSettingResponse; import com.huaweicloud.sdk.cloudtest.v1.model.ServiceRequestBody; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowAllConfigValueByTypeAndKeyRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowAllConfigValueByTypeAndKeyResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowAllFeatureChildrenRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowAllFeatureChildrenResponse; import com.huaweicloud.sdk.cloudtest.v1.model.ShowApiTestcaseHistoriesRequest; import com.huaweicloud.sdk.cloudtest.v1.model.ShowApiTestcaseHistoriesResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowBackgroundInfoRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowBackgroundInfoResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowDisclaimerRecordRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowDisclaimerRecordResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowDomainInfoRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowDomainInfoResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowFeatureChildrenRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowFeatureChildrenResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowFreeDeclarationRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowFreeDeclarationResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowIfTaskNameRepeatRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowIfTaskNameRepeatResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowIfUserNameRepeatRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowIfUserNameRepeatResponse; import com.huaweicloud.sdk.cloudtest.v1.model.ShowIssuesByPlanIdRequest; import com.huaweicloud.sdk.cloudtest.v1.model.ShowIssuesByPlanIdResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowIteratorByDefectRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowIteratorByDefectResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowMindmapByPageRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowMindmapByPageResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowMindmapCreatorNameRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowMindmapCreatorNameResponse; import com.huaweicloud.sdk.cloudtest.v1.model.ShowPlanJournalsRequest; import com.huaweicloud.sdk.cloudtest.v1.model.ShowPlanJournalsResponse; import com.huaweicloud.sdk.cloudtest.v1.model.ShowPlanListRequest; import com.huaweicloud.sdk.cloudtest.v1.model.ShowPlanListResponse; import com.huaweicloud.sdk.cloudtest.v1.model.ShowPlansRequest; import com.huaweicloud.sdk.cloudtest.v1.model.ShowPlansResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowProgressRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowProgressResponse; import com.huaweicloud.sdk.cloudtest.v1.model.ShowProjectDataDashboardRequest; import com.huaweicloud.sdk.cloudtest.v1.model.ShowProjectDataDashboardResponse; import com.huaweicloud.sdk.cloudtest.v1.model.ShowRegisterServiceRequest; import com.huaweicloud.sdk.cloudtest.v1.model.ShowRegisterServiceResponse; import com.huaweicloud.sdk.cloudtest.v1.model.ShowReportRequest; import com.huaweicloud.sdk.cloudtest.v1.model.ShowReportResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowRequirementsOverviewRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowRequirementsOverviewResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowSystemConfigsRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowSystemConfigsResponse; import com.huaweicloud.sdk.cloudtest.v1.model.ShowTestCaseAndDefectInfoRequest; import com.huaweicloud.sdk.cloudtest.v1.model.ShowTestCaseAndDefectInfoRequestBody; import com.huaweicloud.sdk.cloudtest.v1.model.ShowTestCaseAndDefectInfoResponse; @@ -60,6 +157,10 @@ import com.huaweicloud.sdk.cloudtest.v1.model.ShowTestCaseDetailResponse; import com.huaweicloud.sdk.cloudtest.v1.model.ShowTestCaseDetailV2Request; import com.huaweicloud.sdk.cloudtest.v1.model.ShowTestCaseDetailV2Response; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowTestCaseRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowTestCaseResponse; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowUserAccessInfoRequest; +import com.huaweicloud.sdk.cloudtest.v1.model.ShowUserAccessInfoResponse; import com.huaweicloud.sdk.cloudtest.v1.model.ShowUserExecuteTestCaseInfoRequest; import com.huaweicloud.sdk.cloudtest.v1.model.ShowUserExecuteTestCaseInfoRequestBody; import com.huaweicloud.sdk.cloudtest.v1.model.ShowUserExecuteTestCaseInfoResponse; @@ -86,6 +187,39 @@ @SuppressWarnings("unchecked") public class CloudtestMeta { + public static final HttpRequestDef batchAddRelationsByOneCase = + genForBatchAddRelationsByOneCase(); + + private static HttpRequestDef genForBatchAddRelationsByOneCase() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.POST, + BatchAddRelationsByOneCaseRequest.class, + BatchAddRelationsByOneCaseResponse.class) + .withName("BatchAddRelationsByOneCase") + .withUri("/testrelation/v4/workitems/{workitem_id}/relations") + .withContentType("application/json"); + + // requests + builder.withRequestField("workitem_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(BatchAddRelationsByOneCaseRequest::getWorkitemId, + BatchAddRelationsByOneCaseRequest::setWorkitemId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(AddRelationsInfo.class), + f -> f.withMarshaller(BatchAddRelationsByOneCaseRequest::getBody, + BatchAddRelationsByOneCaseRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef batchDeleteTestCase = genForBatchDeleteTestCase(); @@ -114,6 +248,64 @@ private static HttpRequestDef batchDeleteTestReport = + genForBatchDeleteTestReport(); + + private static HttpRequestDef genForBatchDeleteTestReport() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.DELETE, BatchDeleteTestReportRequest.class, BatchDeleteTestReportResponse.class) + .withName("BatchDeleteTestReport") + .withUri("/testreport/v4/{project_id}/test-reports/batch-delete") + .withContentType("application/json"); + + // requests + builder.withRequestField("project_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(BatchDeleteTestReportRequest::getProjectId, + BatchDeleteTestReportRequest::setProjectId)); + builder.>withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(List.class), + f -> f.withMarshaller(BatchDeleteTestReportRequest::getBody, BatchDeleteTestReportRequest::setBody) + .withInnerContainerType(String.class)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef checkPermission = + genForCheckPermission(); + + private static HttpRequestDef genForCheckPermission() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, CheckPermissionRequest.class, CheckPermissionResponse.class) + .withName("CheckPermission") + .withUri("/v1/{project_id}/permission/{id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("project_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CheckPermissionRequest::getProjectId, CheckPermissionRequest::setProjectId)); + builder.withRequestField("id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CheckPermissionRequest::getId, CheckPermissionRequest::setId)); + + // response + + return builder.build(); + } + public static final HttpRequestDef createPlan = genForCreatePlan(); private static HttpRequestDef genForCreatePlan() { @@ -141,6 +333,59 @@ private static HttpRequestDef genForCreat return builder.build(); } + public static final HttpRequestDef createRelationsByOneCase = + genForCreateRelationsByOneCase(); + + private static HttpRequestDef genForCreateRelationsByOneCase() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.POST, CreateRelationsByOneCaseRequest.class, CreateRelationsByOneCaseResponse.class) + .withName("CreateRelationsByOneCase") + .withUri("/testrelation/v4/testcases/{case_id}/relations") + .withContentType("application/json"); + + // requests + builder.withRequestField("case_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateRelationsByOneCaseRequest::getCaseId, + CreateRelationsByOneCaseRequest::setCaseId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(AddRelationsInfo.class), + f -> f.withMarshaller(CreateRelationsByOneCaseRequest::getBody, CreateRelationsByOneCaseRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef createResourceUri = + genForCreateResourceUri(); + + private static HttpRequestDef genForCreateResourceUri() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, CreateResourceUriRequest.class, CreateResourceUriResponse.class) + .withName("CreateResourceUri") + .withUri("/GT3KServer/v4/{project_id}/resource-uri") + .withContentType("application/json"); + + // requests + builder.withRequestField("project_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateResourceUriRequest::getProjectId, CreateResourceUriRequest::setProjectId)); + + // response + + return builder.build(); + } + public static final HttpRequestDef createService = genForCreateService(); @@ -226,6 +471,38 @@ private static HttpRequestDef deleteRelationsByOneCase = + genForDeleteRelationsByOneCase(); + + private static HttpRequestDef genForDeleteRelationsByOneCase() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.DELETE, + DeleteRelationsByOneCaseRequest.class, + DeleteRelationsByOneCaseResponse.class) + .withName("DeleteRelationsByOneCase") + .withUri("/testrelation/v4/testcases/{case_id}/relations") + .withContentType("application/json"); + + // requests + builder.withRequestField("case_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteRelationsByOneCaseRequest::getCaseId, + DeleteRelationsByOneCaseRequest::setCaseId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(DeleteRelationsByOneCaseInfo.class), + f -> f.withMarshaller(DeleteRelationsByOneCaseRequest::getBody, DeleteRelationsByOneCaseRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef deleteService = genForDeleteService(); @@ -249,6 +526,95 @@ private static HttpRequestDef genFo return builder.build(); } + public static final HttpRequestDef listAllBranches = + genForListAllBranches(); + + private static HttpRequestDef genForListAllBranches() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ListAllBranchesRequest.class, ListAllBranchesResponse.class) + .withName("ListAllBranches") + .withUri("/GT3KServer/v4/branches") + .withContentType("application/json"); + + // requests + builder.withRequestField("project_uuid", + LocationType.Query, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListAllBranchesRequest::getProjectUuid, ListAllBranchesRequest::setProjectUuid)); + builder.withRequestField("sort_field", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListAllBranchesRequest::getSortField, ListAllBranchesRequest::setSortField)); + builder.withRequestField("sort_type", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListAllBranchesRequest::getSortType, ListAllBranchesRequest::setSortType)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef listAllIterators = + genForListAllIterators(); + + private static HttpRequestDef genForListAllIterators() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ListAllIteratorsRequest.class, ListAllIteratorsResponse.class) + .withName("ListAllIterators") + .withUri("/GT3KServer/v4/projects/{project_id}/iterator-infos") + .withContentType("application/json"); + + // requests + builder.withRequestField("project_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListAllIteratorsRequest::getProjectId, ListAllIteratorsRequest::setProjectId)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef listAttachments = + genForListAttachments(); + + private static HttpRequestDef genForListAttachments() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ListAttachmentsRequest.class, ListAttachmentsResponse.class) + .withName("ListAttachments") + .withUri("/GT3KServer/v4/{project_id}/resources/{resource_uri}/attachments") + .withContentType("application/json"); + + // requests + builder.withRequestField("project_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListAttachmentsRequest::getProjectId, ListAttachmentsRequest::setProjectId)); + builder.withRequestField("resource_uri", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListAttachmentsRequest::getResourceUri, ListAttachmentsRequest::setResourceUri)); + builder.withRequestField("resource_type", + LocationType.Query, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListAttachmentsRequest::getResourceType, ListAttachmentsRequest::setResourceType)); + + // response + + return builder.build(); + } + public static final HttpRequestDef listBranches = genForListBranches(); private static HttpRequestDef genForListBranches() { @@ -291,6 +657,183 @@ private static HttpRequestDef genForL return builder.build(); } + public static final HttpRequestDef listIssueTree = + genForListIssueTree(); + + private static HttpRequestDef genForListIssueTree() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, ListIssueTreeRequest.class, ListIssueTreeResponse.class) + .withName("ListIssueTree") + .withUri("/GT3KServer/v4/{project_id}/versions/{version_id}/issue-tree") + .withContentType("application/json"); + + // requests + builder.withRequestField("project_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListIssueTreeRequest::getProjectId, ListIssueTreeRequest::setProjectId)); + builder.withRequestField("version_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListIssueTreeRequest::getVersionId, ListIssueTreeRequest::setVersionId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(QueryIssueTreeInfo.class), + f -> f.withMarshaller(ListIssueTreeRequest::getBody, ListIssueTreeRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef listProjectFieldConfigs = + genForListProjectFieldConfigs(); + + private static HttpRequestDef genForListProjectFieldConfigs() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.GET, ListProjectFieldConfigsRequest.class, ListProjectFieldConfigsResponse.class) + .withName("ListProjectFieldConfigs") + .withUri("/GT3KServer/v4/projects/{project_id}/field-configs") + .withContentType("application/json"); + + // requests + builder.withRequestField("project_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListProjectFieldConfigsRequest::getProjectId, + ListProjectFieldConfigsRequest::setProjectId)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef listProjectTestCaseFields = + genForListProjectTestCaseFields(); + + private static HttpRequestDef genForListProjectTestCaseFields() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.GET, + ListProjectTestCaseFieldsRequest.class, + ListProjectTestCaseFieldsResponse.class) + .withName("ListProjectTestCaseFields") + .withUri("/GT3KServer/v4/{project_id}/testcase/field/batch-query") + .withContentType("application/json"); + + // requests + builder.withRequestField("project_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListProjectTestCaseFieldsRequest::getProjectId, + ListProjectTestCaseFieldsRequest::setProjectId)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef listReports = genForListReports(); + + private static HttpRequestDef genForListReports() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ListReportsRequest.class, ListReportsResponse.class) + .withName("ListReports") + .withUri("/testreport/v4/{project_id}/versions/{version_id}/custom-reports") + .withContentType("application/json"); + + // requests + builder.withRequestField("project_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListReportsRequest::getProjectId, ListReportsRequest::setProjectId)); + builder.withRequestField("version_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListReportsRequest::getVersionId, ListReportsRequest::setVersionId)); + builder.withRequestField("page_size", + LocationType.Query, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(Long.class), + f -> f.withMarshaller(ListReportsRequest::getPageSize, ListReportsRequest::setPageSize)); + builder.withRequestField("offset", + LocationType.Query, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(Long.class), + f -> f.withMarshaller(ListReportsRequest::getOffset, ListReportsRequest::setOffset)); + builder.withRequestField("type", + LocationType.Query, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListReportsRequest::getType, ListReportsRequest::setType)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef listResourcePools = + genForListResourcePools(); + + private static HttpRequestDef genForListResourcePools() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ListResourcePoolsRequest.class, ListResourcePoolsResponse.class) + .withName("ListResourcePools") + .withUri("/testexecutor/v4/{project_id}/resource-pools") + .withContentType("application/json"); + + // requests + builder.withRequestField("project_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListResourcePoolsRequest::getProjectId, ListResourcePoolsRequest::setProjectId)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef listTaskTestCases = + genForListTaskTestCases(); + + private static HttpRequestDef genForListTaskTestCases() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, ListTaskTestCasesRequest.class, ListTaskTestCasesResponse.class) + .withName("ListTaskTestCases") + .withUri("/GT3KServer/v4/{project_id}/testcases/tasks/batch-query") + .withContentType("application/json"); + + // requests + builder.withRequestField("project_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListTaskTestCasesRequest::getProjectId, ListTaskTestCasesRequest::setProjectId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(QueryTaskTestCasesInfo.class), + f -> f.withMarshaller(ListTaskTestCasesRequest::getBody, ListTaskTestCasesRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef listTestCaseHistories = genForListTestCaseHistories(); @@ -318,54 +861,205 @@ private static HttpRequestDefwithRequestField("body", LocationType.Body, FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(ListTestCaseHistoriesRequestBody.class), - f -> f.withMarshaller(ListTestCaseHistoriesRequest::getBody, ListTestCaseHistoriesRequest::setBody)); + TypeCasts.uncheckedConversion(ListTestCaseHistoriesRequestBody.class), + f -> f.withMarshaller(ListTestCaseHistoriesRequest::getBody, ListTestCaseHistoriesRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef listTestCases = + genForListTestCases(); + + private static HttpRequestDef genForListTestCases() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, ListTestCasesRequest.class, ListTestCasesResponse.class) + .withName("ListTestCases") + .withUri("/v1/{project_id}/testcases/batch-query") + .withContentType("application/json"); + + // requests + builder.withRequestField("project_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListTestCasesRequest::getProjectId, ListTestCasesRequest::setProjectId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(ListTestCasesRequestBody.class), + f -> f.withMarshaller(ListTestCasesRequest::getBody, ListTestCasesRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef listTestReportsByCondition = + genForListTestReportsByCondition(); + + private static HttpRequestDef genForListTestReportsByCondition() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.GET, + ListTestReportsByConditionRequest.class, + ListTestReportsByConditionResponse.class) + .withName("ListTestReportsByCondition") + .withUri("/testreport/v4/{project_id}/test-reports") + .withContentType("application/json"); + + // requests + builder.withRequestField("project_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListTestReportsByConditionRequest::getProjectId, + ListTestReportsByConditionRequest::setProjectId)); + builder.withRequestField("page_size", + LocationType.Query, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(Long.class), + f -> f.withMarshaller(ListTestReportsByConditionRequest::getPageSize, + ListTestReportsByConditionRequest::setPageSize)); + builder.withRequestField("offset", + LocationType.Query, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(Long.class), + f -> f.withMarshaller(ListTestReportsByConditionRequest::getOffset, + ListTestReportsByConditionRequest::setOffset)); + builder.withRequestField("key_word", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListTestReportsByConditionRequest::getKeyWord, + ListTestReportsByConditionRequest::setKeyWord)); + builder.withRequestField("own", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Boolean.class), + f -> f.withMarshaller(ListTestReportsByConditionRequest::getOwn, + ListTestReportsByConditionRequest::setOwn)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef listTestTypes = + genForListTestTypes(); + + private static HttpRequestDef genForListTestTypes() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ListTestTypesRequest.class, ListTestTypesResponse.class) + .withName("ListTestTypes") + .withUri("/GT3KServer/v4/{project_id}/test-types") + .withContentType("application/json"); + + // requests + builder.withRequestField("project_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListTestTypesRequest::getProjectId, ListTestTypesRequest::setProjectId)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef listTestcasesByProjectIssuesRelation = + genForListTestcasesByProjectIssuesRelation(); + + private static HttpRequestDef genForListTestcasesByProjectIssuesRelation() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.POST, + ListTestcasesByProjectIssuesRelationRequest.class, + ListTestcasesByProjectIssuesRelationResponse.class) + .withName("ListTestcasesByProjectIssuesRelation") + .withUri("/v1/{project_id}/issues/testcases/batch-query") + .withContentType("application/json"); + + // requests + builder.withRequestField("project_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListTestcasesByProjectIssuesRelationRequest::getProjectId, + ListTestcasesByProjectIssuesRelationRequest::setProjectId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(QueryProjectIssuesRelationTestCasesInfo.class), + f -> f.withMarshaller(ListTestcasesByProjectIssuesRelationRequest::getBody, + ListTestcasesByProjectIssuesRelationRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef listUsageInfos = + genForListUsageInfos(); + + private static HttpRequestDef genForListUsageInfos() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ListUsageInfosRequest.class, ListUsageInfosResponse.class) + .withName("ListUsageInfos") + .withUri("/GT3KServer/v4/domain/usage") + .withContentType("application/json"); + + // requests + builder.withRequestField("project_uuid", + LocationType.Query, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListUsageInfosRequest::getProjectUuid, ListUsageInfosRequest::setProjectUuid)); // response return builder.build(); } - public static final HttpRequestDef listTestCases = - genForListTestCases(); + public static final HttpRequestDef listUserPackageUsage = + genForListUserPackageUsage(); - private static HttpRequestDef genForListTestCases() { + private static HttpRequestDef genForListUserPackageUsage() { // basic - HttpRequestDef.Builder builder = - HttpRequestDef.builder(HttpMethod.POST, ListTestCasesRequest.class, ListTestCasesResponse.class) - .withName("ListTestCases") - .withUri("/v1/{project_id}/testcases/batch-query") - .withContentType("application/json"); + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.GET, ListUserPackageUsageRequest.class, ListUserPackageUsageResponse.class) + .withName("ListUserPackageUsage") + .withUri("/v1/projects/{project_id}/package-usage") + .withContentType("application/json"); // requests builder.withRequestField("project_id", LocationType.Path, FieldExistence.NON_NULL_NON_EMPTY, TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ListTestCasesRequest::getProjectId, ListTestCasesRequest::setProjectId)); - builder.withRequestField("body", - LocationType.Body, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(ListTestCasesRequestBody.class), - f -> f.withMarshaller(ListTestCasesRequest::getBody, ListTestCasesRequest::setBody)); + f -> f.withMarshaller(ListUserPackageUsageRequest::getProjectId, + ListUserPackageUsageRequest::setProjectId)); // response return builder.build(); } - public static final HttpRequestDef listTestcasesByProjectIssuesRelation = - genForListTestcasesByProjectIssuesRelation(); + public static final HttpRequestDef listUserPopupInfo = + genForListUserPopupInfo(); - private static HttpRequestDef genForListTestcasesByProjectIssuesRelation() { + private static HttpRequestDef genForListUserPopupInfo() { // basic - HttpRequestDef.Builder builder = - HttpRequestDef - .builder(HttpMethod.POST, - ListTestcasesByProjectIssuesRelationRequest.class, - ListTestcasesByProjectIssuesRelationResponse.class) - .withName("ListTestcasesByProjectIssuesRelation") - .withUri("/v1/{project_id}/issues/testcases/batch-query") + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ListUserPopupInfoRequest.class, ListUserPopupInfoResponse.class) + .withName("ListUserPopupInfo") + .withUri("/v1/projects/{project_id}/package-charge/popup") .withContentType("application/json"); // requests @@ -373,14 +1067,7 @@ private static HttpRequestDef f.withMarshaller(ListTestcasesByProjectIssuesRelationRequest::getProjectId, - ListTestcasesByProjectIssuesRelationRequest::setProjectId)); - builder.withRequestField("body", - LocationType.Body, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(QueryProjectIssuesRelationTestCasesInfo.class), - f -> f.withMarshaller(ListTestcasesByProjectIssuesRelationRequest::getBody, - ListTestcasesByProjectIssuesRelationRequest::setBody)); + f -> f.withMarshaller(ListUserPopupInfoRequest::getProjectId, ListUserPopupInfoRequest::setProjectId)); // response @@ -414,6 +1101,35 @@ private static HttpRequestDef genForRun return builder.build(); } + public static final HttpRequestDef showAllFeatureChildren = + genForShowAllFeatureChildren(); + + private static HttpRequestDef genForShowAllFeatureChildren() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.POST, ShowAllFeatureChildrenRequest.class, ShowAllFeatureChildrenResponse.class) + .withName("ShowAllFeatureChildren") + .withUri("/GT3KServer/v5/features/{feature_id}/children") + .withContentType("application/json"); + + // requests + builder.withRequestField("feature_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowAllFeatureChildrenRequest::getFeatureId, + ShowAllFeatureChildrenRequest::setFeatureId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(QueryTestItemTreeInfo.class), + f -> f.withMarshaller(ShowAllFeatureChildrenRequest::getBody, ShowAllFeatureChildrenRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef showApiTestcaseHistories = genForShowApiTestcaseHistories(); @@ -463,6 +1179,116 @@ private static HttpRequestDef showBackgroundInfo = + genForShowBackgroundInfo(); + + private static HttpRequestDef genForShowBackgroundInfo() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ShowBackgroundInfoRequest.class, ShowBackgroundInfoResponse.class) + .withName("ShowBackgroundInfo") + .withUri("/GT3KServer/v4/{project_id}/background") + .withContentType("application/json"); + + // requests + builder.withRequestField("project_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowBackgroundInfoRequest::getProjectId, ShowBackgroundInfoRequest::setProjectId)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef showDisclaimerRecord = + genForShowDisclaimerRecord(); + + private static HttpRequestDef genForShowDisclaimerRecord() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.GET, ShowDisclaimerRecordRequest.class, ShowDisclaimerRecordResponse.class) + .withName("ShowDisclaimerRecord") + .withUri("/GT3KServer/v4/disclaimer") + .withContentType("application/json"); + + // requests + builder.withRequestField("type", + LocationType.Query, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowDisclaimerRecordRequest::getType, ShowDisclaimerRecordRequest::setType)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef showDomainInfo = + genForShowDomainInfo(); + + private static HttpRequestDef genForShowDomainInfo() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ShowDomainInfoRequest.class, ShowDomainInfoResponse.class) + .withName("ShowDomainInfo") + .withUri("/GT3KServer/v4/user-info/domain") + .withContentType("application/json"); + + // requests + + // response + + return builder.build(); + } + + public static final HttpRequestDef showFeatureChildren = + genForShowFeatureChildren(); + + private static HttpRequestDef genForShowFeatureChildren() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, ShowFeatureChildrenRequest.class, ShowFeatureChildrenResponse.class) + .withName("ShowFeatureChildren") + .withUri("/GT3KServer/v4/features/{feature_id}/children") + .withContentType("application/json"); + + // requests + builder.withRequestField("feature_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowFeatureChildrenRequest::getFeatureId, ShowFeatureChildrenRequest::setFeatureId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(QueryTestItemTreeInfo.class), + f -> f.withMarshaller(ShowFeatureChildrenRequest::getBody, ShowFeatureChildrenRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef showFreeDeclaration = + genForShowFreeDeclaration(); + + private static HttpRequestDef genForShowFreeDeclaration() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ShowFreeDeclarationRequest.class, ShowFreeDeclarationResponse.class) + .withName("ShowFreeDeclaration") + .withUri("/GT3KServer/v4/free-declaration") + .withContentType("application/json"); + + // requests + + // response + + return builder.build(); + } + public static final HttpRequestDef showIssuesByPlanId = genForShowIssuesByPlanId(); @@ -507,6 +1333,87 @@ private static HttpRequestDef showIteratorByDefect = + genForShowIteratorByDefect(); + + private static HttpRequestDef genForShowIteratorByDefect() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.GET, ShowIteratorByDefectRequest.class, ShowIteratorByDefectResponse.class) + .withName("ShowIteratorByDefect") + .withUri("/GT3KServer/v4/{project_id}/defects/{defect_id}/iterators") + .withContentType("application/json"); + + // requests + builder.withRequestField("project_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowIteratorByDefectRequest::getProjectId, + ShowIteratorByDefectRequest::setProjectId)); + builder.withRequestField("defect_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowIteratorByDefectRequest::getDefectId, ShowIteratorByDefectRequest::setDefectId)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef showMindmapByPage = + genForShowMindmapByPage(); + + private static HttpRequestDef genForShowMindmapByPage() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, ShowMindmapByPageRequest.class, ShowMindmapByPageResponse.class) + .withName("ShowMindmapByPage") + .withUri("/v3/{project_id}/mindmaps/page") + .withContentType("application/json"); + + // requests + builder.withRequestField("project_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowMindmapByPageRequest::getProjectId, ShowMindmapByPageRequest::setProjectId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(CommRequestMindmapPageParamV3.class), + f -> f.withMarshaller(ShowMindmapByPageRequest::getBody, ShowMindmapByPageRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef showMindmapCreatorName = + genForShowMindmapCreatorName(); + + private static HttpRequestDef genForShowMindmapCreatorName() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.GET, ShowMindmapCreatorNameRequest.class, ShowMindmapCreatorNameResponse.class) + .withName("ShowMindmapCreatorName") + .withUri("/v2/{project_id}/mindmap-creator-name") + .withContentType("application/json"); + + // requests + builder.withRequestField("project_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowMindmapCreatorNameRequest::getProjectId, + ShowMindmapCreatorNameRequest::setProjectId)); + + // response + + return builder.build(); + } + public static final HttpRequestDef showPlanJournals = genForShowPlanJournals(); @@ -662,6 +1569,33 @@ private static HttpRequestDef genForShowPla return builder.build(); } + public static final HttpRequestDef showProgress = genForShowProgress(); + + private static HttpRequestDef genForShowProgress() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ShowProgressRequest.class, ShowProgressResponse.class) + .withName("ShowProgress") + .withUri("/GT3KServer/v4/progress/{operation_uri}") + .withContentType("application/json"); + + // requests + builder.withRequestField("operation_uri", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowProgressRequest::getOperationUri, ShowProgressRequest::setOperationUri)); + builder.withRequestField("project_uuid", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowProgressRequest::getProjectUuid, ShowProgressRequest::setProjectUuid)); + + // response + + return builder.build(); + } + public static final HttpRequestDef showProjectDataDashboard = genForShowProjectDataDashboard(); @@ -710,32 +1644,143 @@ private static HttpRequestDef showReport = genForShowReport(); + public static final HttpRequestDef showReport = genForShowReport(); + + private static HttpRequestDef genForShowReport() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, ShowReportRequest.class, ShowReportResponse.class) + .withName("ShowReport") + .withUri("/v4/{project_id}/versions/{plan_id}/custom-reports/generate") + .withContentType("application/json"); + + // requests + builder.withRequestField("project_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowReportRequest::getProjectId, ShowReportRequest::setProjectId)); + builder.withRequestField("plan_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowReportRequest::getPlanId, ShowReportRequest::setPlanId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(GenerateReportInfo.class), + f -> f.withMarshaller(ShowReportRequest::getBody, ShowReportRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef showRequirementsOverview = + genForShowRequirementsOverview(); + + private static HttpRequestDef genForShowRequirementsOverview() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.POST, ShowRequirementsOverviewRequest.class, ShowRequirementsOverviewResponse.class) + .withName("ShowRequirementsOverview") + .withUri("/testreport/v4/{project_id}/versions/{version_id}/requirements/overview") + .withContentType("application/json"); + + // requests + builder.withRequestField("project_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowRequirementsOverviewRequest::getProjectId, + ShowRequirementsOverviewRequest::setProjectId)); + builder.withRequestField("version_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowRequirementsOverviewRequest::getVersionId, + ShowRequirementsOverviewRequest::setVersionId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(QueryRequirementsOverviewInfo.class), + f -> f.withMarshaller(ShowRequirementsOverviewRequest::getBody, ShowRequirementsOverviewRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef showSystemConfigs = + genForShowSystemConfigs(); + + private static HttpRequestDef genForShowSystemConfigs() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, ShowSystemConfigsRequest.class, ShowSystemConfigsResponse.class) + .withName("ShowSystemConfigs") + .withUri("/v1/{project_id}/system-config/find-all") + .withContentType("application/json"); + + // requests + builder.withRequestField("project_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowSystemConfigsRequest::getProjectId, ShowSystemConfigsRequest::setProjectId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(CommRequestSystemConfig.class), + f -> f.withMarshaller(ShowSystemConfigsRequest::getBody, ShowSystemConfigsRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef showTestCase = genForShowTestCase(); - private static HttpRequestDef genForShowReport() { + private static HttpRequestDef genForShowTestCase() { // basic - HttpRequestDef.Builder builder = - HttpRequestDef.builder(HttpMethod.POST, ShowReportRequest.class, ShowReportResponse.class) - .withName("ShowReport") - .withUri("/v4/{project_id}/versions/{plan_id}/custom-reports/generate") + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ShowTestCaseRequest.class, ShowTestCaseResponse.class) + .withName("ShowTestCase") + .withUri("/GT3KServer/v4/testcases/{testcase_id}") .withContentType("application/json"); // requests - builder.withRequestField("project_id", + builder.withRequestField("testcase_id", LocationType.Path, FieldExistence.NON_NULL_NON_EMPTY, TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ShowReportRequest::getProjectId, ShowReportRequest::setProjectId)); - builder.withRequestField("plan_id", - LocationType.Path, - FieldExistence.NON_NULL_NON_EMPTY, + f -> f.withMarshaller(ShowTestCaseRequest::getTestcaseId, ShowTestCaseRequest::setTestcaseId)); + builder.withRequestField("version_uri", + LocationType.Query, + FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ShowReportRequest::getPlanId, ShowReportRequest::setPlanId)); - builder.withRequestField("body", - LocationType.Body, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(GenerateReportInfo.class), - f -> f.withMarshaller(ShowReportRequest::getBody, ShowReportRequest::setBody)); + f -> f.withMarshaller(ShowTestCaseRequest::getVersionUri, ShowTestCaseRequest::setVersionUri)); + builder.withRequestField("project_uuid", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowTestCaseRequest::getProjectUuid, ShowTestCaseRequest::setProjectUuid)); + builder.withRequestField("task_uri", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowTestCaseRequest::getTaskUri, ShowTestCaseRequest::setTaskUri)); + builder.withRequestField("refresh", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Boolean.class), + f -> f.withMarshaller(ShowTestCaseRequest::getRefresh, ShowTestCaseRequest::setRefresh)); + builder.withRequestField("is_recycle", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Boolean.class), + f -> f.withMarshaller(ShowTestCaseRequest::getIsRecycle, ShowTestCaseRequest::setIsRecycle)); // response @@ -833,6 +1878,30 @@ private static HttpRequestDef showUserAccessInfo = + genForShowUserAccessInfo(); + + private static HttpRequestDef genForShowUserAccessInfo() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ShowUserAccessInfoRequest.class, ShowUserAccessInfoResponse.class) + .withName("ShowUserAccessInfo") + .withUri("/GT3KServer/v4/domain/info") + .withContentType("application/json"); + + // requests + builder.withRequestField("project_uuid", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowUserAccessInfoRequest::getProjectUuid, + ShowUserAccessInfoRequest::setProjectUuid)); + + // response + + return builder.build(); + } + public static final HttpRequestDef showUserExecuteTestCaseInfo = genForShowUserExecuteTestCaseInfo(); @@ -989,6 +2058,246 @@ private static HttpRequestDef listAlertGroupsByCondition = + genForListAlertGroupsByCondition(); + + private static HttpRequestDef genForListAlertGroupsByCondition() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.POST, + ListAlertGroupsByConditionRequest.class, + ListAlertGroupsByConditionResponse.class) + .withName("ListAlertGroupsByCondition") + .withUri("/v1/projects/{service_id}/alert/group/users") + .withContentType("application/json"); + + // requests + builder.withRequestField("service_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListAlertGroupsByConditionRequest::getServiceId, + ListAlertGroupsByConditionRequest::setServiceId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(ListAlertGroupsByConditionRequestBody.class), + f -> f.withMarshaller(ListAlertGroupsByConditionRequest::getBody, + ListAlertGroupsByConditionRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef listAlertTemplates = + genForListAlertTemplates(); + + private static HttpRequestDef genForListAlertTemplates() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ListAlertTemplatesRequest.class, ListAlertTemplatesResponse.class) + .withName("ListAlertTemplates") + .withUri("/v1/projects/{service_id}/alert-templates") + .withContentType("application/json"); + + // requests + builder.withRequestField("service_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListAlertTemplatesRequest::getServiceId, ListAlertTemplatesRequest::setServiceId)); + builder.withRequestField("name", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListAlertTemplatesRequest::getName, ListAlertTemplatesRequest::setName)); + builder.withRequestField("pageNum", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListAlertTemplatesRequest::getPageNum, ListAlertTemplatesRequest::setPageNum)); + builder.withRequestField("pageSize", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListAlertTemplatesRequest::getPageSize, ListAlertTemplatesRequest::setPageSize)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef listAllConfigItemByType = + genForListAllConfigItemByType(); + + private static HttpRequestDef genForListAllConfigItemByType() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.POST, ListAllConfigItemByTypeRequest.class, ListAllConfigItemByTypeResponse.class) + .withName("ListAllConfigItemByType") + .withUri("/v1/projects/{service_id}/service/configs") + .withContentType("application/json"); + + // requests + builder.withRequestField("service_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListAllConfigItemByTypeRequest::getServiceId, + ListAllConfigItemByTypeRequest::setServiceId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(ListAllConfigItemByTypeRequestBody.class), + f -> f.withMarshaller(ListAllConfigItemByTypeRequest::getBody, ListAllConfigItemByTypeRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef saveTaskSetting = + genForSaveTaskSetting(); + + private static HttpRequestDef genForSaveTaskSetting() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, SaveTaskSettingRequest.class, SaveTaskSettingResponse.class) + .withName("SaveTaskSetting") + .withUri("/v1/projects/{service_id}/task/settings") + .withContentType("application/json"); + + // requests + builder.withRequestField("service_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(SaveTaskSettingRequest::getServiceId, SaveTaskSettingRequest::setServiceId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(SaveTaskSettingRequestBody.class), + f -> f.withMarshaller(SaveTaskSettingRequest::getBody, SaveTaskSettingRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef showAllConfigValueByTypeAndKey = + genForShowAllConfigValueByTypeAndKey(); + + private static HttpRequestDef genForShowAllConfigValueByTypeAndKey() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.GET, + ShowAllConfigValueByTypeAndKeyRequest.class, + ShowAllConfigValueByTypeAndKeyResponse.class) + .withName("ShowAllConfigValueByTypeAndKey") + .withUri("/v1/projects/{service_id}/service/config") + .withContentType("application/json"); + + // requests + builder.withRequestField("service_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowAllConfigValueByTypeAndKeyRequest::getServiceId, + ShowAllConfigValueByTypeAndKeyRequest::setServiceId)); + builder.withRequestField("key", + LocationType.Query, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowAllConfigValueByTypeAndKeyRequest::getKey, + ShowAllConfigValueByTypeAndKeyRequest::setKey)); + builder.withRequestField("type", + LocationType.Query, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowAllConfigValueByTypeAndKeyRequest::getType, + ShowAllConfigValueByTypeAndKeyRequest::setType)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef showIfTaskNameRepeat = + genForShowIfTaskNameRepeat(); + + private static HttpRequestDef genForShowIfTaskNameRepeat() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.GET, ShowIfTaskNameRepeatRequest.class, ShowIfTaskNameRepeatResponse.class) + .withName("ShowIfTaskNameRepeat") + .withUri("/v1/projects/{service_id}/alert-templates/name") + .withContentType("application/json"); + + // requests + builder.withRequestField("service_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowIfTaskNameRepeatRequest::getServiceId, + ShowIfTaskNameRepeatRequest::setServiceId)); + builder.withRequestField("id", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowIfTaskNameRepeatRequest::getId, ShowIfTaskNameRepeatRequest::setId)); + builder.withRequestField("name", + LocationType.Query, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowIfTaskNameRepeatRequest::getName, ShowIfTaskNameRepeatRequest::setName)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef showIfUserNameRepeat = + genForShowIfUserNameRepeat(); + + private static HttpRequestDef genForShowIfUserNameRepeat() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.GET, ShowIfUserNameRepeatRequest.class, ShowIfUserNameRepeatResponse.class) + .withName("ShowIfUserNameRepeat") + .withUri("/v1/projects/{service_id}/alert/user/name") + .withContentType("application/json"); + + // requests + builder.withRequestField("service_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowIfUserNameRepeatRequest::getServiceId, + ShowIfUserNameRepeatRequest::setServiceId)); + builder.withRequestField("userId", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowIfUserNameRepeatRequest::getUserId, ShowIfUserNameRepeatRequest::setUserId)); + builder.withRequestField("userName", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowIfUserNameRepeatRequest::getUserName, ShowIfUserNameRepeatRequest::setUserName)); + + // response + builder.withResponseField("body", + LocationType.Body, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(ShowIfUserNameRepeatResponse::getBody, ShowIfUserNameRepeatResponse::setBody)); + + return builder.build(); + } + public static final HttpRequestDef listEnvironments = genForListEnvironments(); @@ -1022,4 +2331,115 @@ private static HttpRequestDef return builder.build(); } + public static final HttpRequestDef listBasicAw = genForListBasicAw(); + + private static HttpRequestDef genForListBasicAw() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ListBasicAwRequest.class, ListBasicAwResponse.class) + .withName("ListBasicAw") + .withUri("/v3/{project_id}/basic-aw/{aw_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("project_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListBasicAwRequest::getProjectId, ListBasicAwRequest::setProjectId)); + builder.withRequestField("aw_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListBasicAwRequest::getAwId, ListBasicAwRequest::setAwId)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef listPublicLibAndAws = + genForListPublicLibAndAws(); + + private static HttpRequestDef genForListPublicLibAndAws() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ListPublicLibAndAwsRequest.class, ListPublicLibAndAwsResponse.class) + .withName("ListPublicLibAndAws") + .withUri("/v1/project/{project_id}/public_aw_lib_and_aws") + .withContentType("application/json"); + + // requests + builder.withRequestField("project_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListPublicLibAndAwsRequest::getProjectId, ListPublicLibAndAwsRequest::setProjectId)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef listUserDnsMapping = + genForListUserDnsMapping(); + + private static HttpRequestDef genForListUserDnsMapping() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ListUserDnsMappingRequest.class, ListUserDnsMappingResponse.class) + .withName("ListUserDnsMapping") + .withUri("/v1/{project_id}/dns-mapping") + .withContentType("application/json"); + + // requests + builder.withRequestField("project_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListUserDnsMappingRequest::getProjectId, ListUserDnsMappingRequest::setProjectId)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef listVariables = + genForListVariables(); + + private static HttpRequestDef genForListVariables() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ListVariablesRequest.class, ListVariablesResponse.class) + .withName("ListVariables") + .withUri("/v4/{project_id}/variables") + .withContentType("application/json"); + + // requests + builder.withRequestField("project_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListVariablesRequest::getProjectId, ListVariablesRequest::setProjectId)); + builder.withRequestField("group_id", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListVariablesRequest::getGroupId, ListVariablesRequest::setGroupId)); + builder.withRequestField("page_no", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListVariablesRequest::getPageNo, ListVariablesRequest::setPageNo)); + builder.withRequestField("page_size", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListVariablesRequest::getPageSize, ListVariablesRequest::setPageSize)); + + // response + + return builder.build(); + } + } diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/AddRelationsInfo.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/AddRelationsInfo.java new file mode 100644 index 0000000000..32d0a88ed3 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/AddRelationsInfo.java @@ -0,0 +1,209 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * AddRelationsInfo + */ +public class AddRelationsInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "relations") + + private List relations = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tracker_id") + + private String trackerId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "version_uri") + + private String versionUri; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "task_uri") + + private String taskUri; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "add_to_iterator") + + private Boolean addToIterator; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_uuid") + + private String projectUuid; + + public AddRelationsInfo withRelations(List relations) { + this.relations = relations; + return this; + } + + public AddRelationsInfo addRelationsItem(RelationInfo relationsItem) { + if (this.relations == null) { + this.relations = new ArrayList<>(); + } + this.relations.add(relationsItem); + return this; + } + + public AddRelationsInfo withRelations(Consumer> relationsSetter) { + if (this.relations == null) { + this.relations = new ArrayList<>(); + } + relationsSetter.accept(this.relations); + return this; + } + + /** + * Get relations + * @return relations + */ + public List getRelations() { + return relations; + } + + public void setRelations(List relations) { + this.relations = relations; + } + + public AddRelationsInfo withTrackerId(String trackerId) { + this.trackerId = trackerId; + return this; + } + + /** + * 工作项类型id + * @return trackerId + */ + public String getTrackerId() { + return trackerId; + } + + public void setTrackerId(String trackerId) { + this.trackerId = trackerId; + } + + public AddRelationsInfo withVersionUri(String versionUri) { + this.versionUri = versionUri; + return this; + } + + /** + * 版本uri + * @return versionUri + */ + public String getVersionUri() { + return versionUri; + } + + public void setVersionUri(String versionUri) { + this.versionUri = versionUri; + } + + public AddRelationsInfo withTaskUri(String taskUri) { + this.taskUri = taskUri; + return this; + } + + /** + * 测试套id + * @return taskUri + */ + public String getTaskUri() { + return taskUri; + } + + public void setTaskUri(String taskUri) { + this.taskUri = taskUri; + } + + public AddRelationsInfo withAddToIterator(Boolean addToIterator) { + this.addToIterator = addToIterator; + return this; + } + + /** + * 是否将需求添加到迭代 + * @return addToIterator + */ + public Boolean getAddToIterator() { + return addToIterator; + } + + public void setAddToIterator(Boolean addToIterator) { + this.addToIterator = addToIterator; + } + + public AddRelationsInfo withProjectUuid(String projectUuid) { + this.projectUuid = projectUuid; + return this; + } + + /** + * 项目id + * @return projectUuid + */ + public String getProjectUuid() { + return projectUuid; + } + + public void setProjectUuid(String projectUuid) { + this.projectUuid = projectUuid; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + AddRelationsInfo that = (AddRelationsInfo) obj; + return Objects.equals(this.relations, that.relations) && Objects.equals(this.trackerId, that.trackerId) + && Objects.equals(this.versionUri, that.versionUri) && Objects.equals(this.taskUri, that.taskUri) + && Objects.equals(this.addToIterator, that.addToIterator) + && Objects.equals(this.projectUuid, that.projectUuid); + } + + @Override + public int hashCode() { + return Objects.hash(relations, trackerId, versionUri, taskUri, addToIterator, projectUuid); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AddRelationsInfo {\n"); + sb.append(" relations: ").append(toIndentedString(relations)).append("\n"); + sb.append(" trackerId: ").append(toIndentedString(trackerId)).append("\n"); + sb.append(" versionUri: ").append(toIndentedString(versionUri)).append("\n"); + sb.append(" taskUri: ").append(toIndentedString(taskUri)).append("\n"); + sb.append(" addToIterator: ").append(toIndentedString(addToIterator)).append("\n"); + sb.append(" projectUuid: ").append(toIndentedString(projectUuid)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/AlarmTemplateInfo.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/AlarmTemplateInfo.java new file mode 100644 index 0000000000..44aeba0031 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/AlarmTemplateInfo.java @@ -0,0 +1,238 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.time.OffsetDateTime; +import java.util.Objects; + +/** + * AlarmTemplateInfo + */ +public class AlarmTemplateInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "createTime") + + private OffsetDateTime createTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "createUser") + + private String createUser; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "remarks") + + private String remarks; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "testServiceId") + + private String testServiceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "updateTime") + + private OffsetDateTime updateTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "updateUser") + + private String updateUser; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + public AlarmTemplateInfo withCreateTime(OffsetDateTime createTime) { + this.createTime = createTime; + return this; + } + + /** + * 创建时间 + * @return createTime + */ + public OffsetDateTime getCreateTime() { + return createTime; + } + + public void setCreateTime(OffsetDateTime createTime) { + this.createTime = createTime; + } + + public AlarmTemplateInfo withCreateUser(String createUser) { + this.createUser = createUser; + return this; + } + + /** + * 创建者 + * @return createUser + */ + public String getCreateUser() { + return createUser; + } + + public void setCreateUser(String createUser) { + this.createUser = createUser; + } + + public AlarmTemplateInfo withId(String id) { + this.id = id; + return this; + } + + /** + * UUID + * @return id + */ + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public AlarmTemplateInfo withRemarks(String remarks) { + this.remarks = remarks; + return this; + } + + /** + * 备注 + * @return remarks + */ + public String getRemarks() { + return remarks; + } + + public void setRemarks(String remarks) { + this.remarks = remarks; + } + + public AlarmTemplateInfo withTestServiceId(String testServiceId) { + this.testServiceId = testServiceId; + return this; + } + + /** + * 服务id + * @return testServiceId + */ + public String getTestServiceId() { + return testServiceId; + } + + public void setTestServiceId(String testServiceId) { + this.testServiceId = testServiceId; + } + + public AlarmTemplateInfo withUpdateTime(OffsetDateTime updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * 修改时间 + * @return updateTime + */ + public OffsetDateTime getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(OffsetDateTime updateTime) { + this.updateTime = updateTime; + } + + public AlarmTemplateInfo withUpdateUser(String updateUser) { + this.updateUser = updateUser; + return this; + } + + /** + * 修改者 + * @return updateUser + */ + public String getUpdateUser() { + return updateUser; + } + + public void setUpdateUser(String updateUser) { + this.updateUser = updateUser; + } + + public AlarmTemplateInfo withName(String name) { + this.name = name; + return this; + } + + /** + * 模板名称 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + AlarmTemplateInfo that = (AlarmTemplateInfo) obj; + return Objects.equals(this.createTime, that.createTime) && Objects.equals(this.createUser, that.createUser) + && Objects.equals(this.id, that.id) && Objects.equals(this.remarks, that.remarks) + && Objects.equals(this.testServiceId, that.testServiceId) + && Objects.equals(this.updateTime, that.updateTime) && Objects.equals(this.updateUser, that.updateUser) + && Objects.equals(this.name, that.name); + } + + @Override + public int hashCode() { + return Objects.hash(createTime, createUser, id, remarks, testServiceId, updateTime, updateUser, name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AlarmTemplateInfo {\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" createUser: ").append(toIndentedString(createUser)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" remarks: ").append(toIndentedString(remarks)).append("\n"); + sb.append(" testServiceId: ").append(toIndentedString(testServiceId)).append("\n"); + sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); + sb.append(" updateUser: ").append(toIndentedString(updateUser)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/AlertGroup.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/AlertGroup.java new file mode 100644 index 0000000000..95b19b9cce --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/AlertGroup.java @@ -0,0 +1,167 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * AlertGroup + */ +public class AlertGroup { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dingTalkHookUrl") + + private String dingTalkHookUrl; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "group_name") + + private String groupName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "weChatWorkHookUrl") + + private String weChatWorkHookUrl; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "weLinkGroupNo") + + private String weLinkGroupNo; + + public AlertGroup withDingTalkHookUrl(String dingTalkHookUrl) { + this.dingTalkHookUrl = dingTalkHookUrl; + return this; + } + + /** + * Get dingTalkHookUrl + * @return dingTalkHookUrl + */ + public String getDingTalkHookUrl() { + return dingTalkHookUrl; + } + + public void setDingTalkHookUrl(String dingTalkHookUrl) { + this.dingTalkHookUrl = dingTalkHookUrl; + } + + public AlertGroup withGroupName(String groupName) { + this.groupName = groupName; + return this; + } + + /** + * 告警组名称 + * @return groupName + */ + public String getGroupName() { + return groupName; + } + + public void setGroupName(String groupName) { + this.groupName = groupName; + } + + public AlertGroup withId(String id) { + this.id = id; + return this; + } + + /** + * 告警组ID + * @return id + */ + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public AlertGroup withWeChatWorkHookUrl(String weChatWorkHookUrl) { + this.weChatWorkHookUrl = weChatWorkHookUrl; + return this; + } + + /** + * Get weChatWorkHookUrl + * @return weChatWorkHookUrl + */ + public String getWeChatWorkHookUrl() { + return weChatWorkHookUrl; + } + + public void setWeChatWorkHookUrl(String weChatWorkHookUrl) { + this.weChatWorkHookUrl = weChatWorkHookUrl; + } + + public AlertGroup withWeLinkGroupNo(String weLinkGroupNo) { + this.weLinkGroupNo = weLinkGroupNo; + return this; + } + + /** + * Get weLinkGroupNo + * @return weLinkGroupNo + */ + public String getWeLinkGroupNo() { + return weLinkGroupNo; + } + + public void setWeLinkGroupNo(String weLinkGroupNo) { + this.weLinkGroupNo = weLinkGroupNo; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + AlertGroup that = (AlertGroup) obj; + return Objects.equals(this.dingTalkHookUrl, that.dingTalkHookUrl) + && Objects.equals(this.groupName, that.groupName) && Objects.equals(this.id, that.id) + && Objects.equals(this.weChatWorkHookUrl, that.weChatWorkHookUrl) + && Objects.equals(this.weLinkGroupNo, that.weLinkGroupNo); + } + + @Override + public int hashCode() { + return Objects.hash(dingTalkHookUrl, groupName, id, weChatWorkHookUrl, weLinkGroupNo); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AlertGroup {\n"); + sb.append(" dingTalkHookUrl: ").append(toIndentedString(dingTalkHookUrl)).append("\n"); + sb.append(" groupName: ").append(toIndentedString(groupName)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" weChatWorkHookUrl: ").append(toIndentedString(weChatWorkHookUrl)).append("\n"); + sb.append(" weLinkGroupNo: ").append(toIndentedString(weLinkGroupNo)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/AlertLevel.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/AlertLevel.java new file mode 100644 index 0000000000..ff020a7965 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/AlertLevel.java @@ -0,0 +1,179 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * AlertLevel + */ +public class AlertLevel { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "alert_channel") + + private List alertChannel = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "alertGroups") + + private List alertGroups = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "alertTemplateId") + + private String alertTemplateId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "alertTimes") + + private Integer alertTimes; + + public AlertLevel withAlertChannel(List alertChannel) { + this.alertChannel = alertChannel; + return this; + } + + public AlertLevel addAlertChannelItem(String alertChannelItem) { + if (this.alertChannel == null) { + this.alertChannel = new ArrayList<>(); + } + this.alertChannel.add(alertChannelItem); + return this; + } + + public AlertLevel withAlertChannel(Consumer> alertChannelSetter) { + if (this.alertChannel == null) { + this.alertChannel = new ArrayList<>(); + } + alertChannelSetter.accept(this.alertChannel); + return this; + } + + /** + * 告警渠道列表 + * @return alertChannel + */ + public List getAlertChannel() { + return alertChannel; + } + + public void setAlertChannel(List alertChannel) { + this.alertChannel = alertChannel; + } + + public AlertLevel withAlertGroups(List alertGroups) { + this.alertGroups = alertGroups; + return this; + } + + public AlertLevel addAlertGroupsItem(AlertGroup alertGroupsItem) { + if (this.alertGroups == null) { + this.alertGroups = new ArrayList<>(); + } + this.alertGroups.add(alertGroupsItem); + return this; + } + + public AlertLevel withAlertGroups(Consumer> alertGroupsSetter) { + if (this.alertGroups == null) { + this.alertGroups = new ArrayList<>(); + } + alertGroupsSetter.accept(this.alertGroups); + return this; + } + + /** + * 告警组列表 + * @return alertGroups + */ + public List getAlertGroups() { + return alertGroups; + } + + public void setAlertGroups(List alertGroups) { + this.alertGroups = alertGroups; + } + + public AlertLevel withAlertTemplateId(String alertTemplateId) { + this.alertTemplateId = alertTemplateId; + return this; + } + + /** + * 告警模板ID + * @return alertTemplateId + */ + public String getAlertTemplateId() { + return alertTemplateId; + } + + public void setAlertTemplateId(String alertTemplateId) { + this.alertTemplateId = alertTemplateId; + } + + public AlertLevel withAlertTimes(Integer alertTimes) { + this.alertTimes = alertTimes; + return this; + } + + /** + * 告警次数 + * @return alertTimes + */ + public Integer getAlertTimes() { + return alertTimes; + } + + public void setAlertTimes(Integer alertTimes) { + this.alertTimes = alertTimes; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + AlertLevel that = (AlertLevel) obj; + return Objects.equals(this.alertChannel, that.alertChannel) + && Objects.equals(this.alertGroups, that.alertGroups) + && Objects.equals(this.alertTemplateId, that.alertTemplateId) + && Objects.equals(this.alertTimes, that.alertTimes); + } + + @Override + public int hashCode() { + return Objects.hash(alertChannel, alertGroups, alertTemplateId, alertTimes); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AlertLevel {\n"); + sb.append(" alertChannel: ").append(toIndentedString(alertChannel)).append("\n"); + sb.append(" alertGroups: ").append(toIndentedString(alertGroups)).append("\n"); + sb.append(" alertTemplateId: ").append(toIndentedString(alertTemplateId)).append("\n"); + sb.append(" alertTimes: ").append(toIndentedString(alertTimes)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/AlertTemplateVo.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/AlertTemplateVo.java new file mode 100644 index 0000000000..b90ed3e8c8 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/AlertTemplateVo.java @@ -0,0 +1,281 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * AlertTemplateVo + */ +public class AlertTemplateVo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "alertLevels") + + private List alertLevels = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time") + + private OffsetDateTime createTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_user") + + private String createUser; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "remarks") + + private String remarks; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "test_service_id") + + private String testServiceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_time") + + private OffsetDateTime updateTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_user") + + private String updateUser; + + public AlertTemplateVo withAlertLevels(List alertLevels) { + this.alertLevels = alertLevels; + return this; + } + + public AlertTemplateVo addAlertLevelsItem(AlertLevel alertLevelsItem) { + if (this.alertLevels == null) { + this.alertLevels = new ArrayList<>(); + } + this.alertLevels.add(alertLevelsItem); + return this; + } + + public AlertTemplateVo withAlertLevels(Consumer> alertLevelsSetter) { + if (this.alertLevels == null) { + this.alertLevels = new ArrayList<>(); + } + alertLevelsSetter.accept(this.alertLevels); + return this; + } + + /** + * 告警级别列表 + * @return alertLevels + */ + public List getAlertLevels() { + return alertLevels; + } + + public void setAlertLevels(List alertLevels) { + this.alertLevels = alertLevels; + } + + public AlertTemplateVo withCreateTime(OffsetDateTime createTime) { + this.createTime = createTime; + return this; + } + + /** + * 创建时间 + * @return createTime + */ + public OffsetDateTime getCreateTime() { + return createTime; + } + + public void setCreateTime(OffsetDateTime createTime) { + this.createTime = createTime; + } + + public AlertTemplateVo withCreateUser(String createUser) { + this.createUser = createUser; + return this; + } + + /** + * 创建人 + * @return createUser + */ + public String getCreateUser() { + return createUser; + } + + public void setCreateUser(String createUser) { + this.createUser = createUser; + } + + public AlertTemplateVo withId(String id) { + this.id = id; + return this; + } + + /** + * 唯一ID,主键 + * @return id + */ + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public AlertTemplateVo withName(String name) { + this.name = name; + return this; + } + + /** + * 告警模板名称 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public AlertTemplateVo withRemarks(String remarks) { + this.remarks = remarks; + return this; + } + + /** + * 备注 + * @return remarks + */ + public String getRemarks() { + return remarks; + } + + public void setRemarks(String remarks) { + this.remarks = remarks; + } + + public AlertTemplateVo withTestServiceId(String testServiceId) { + this.testServiceId = testServiceId; + return this; + } + + /** + * 服务ID + * @return testServiceId + */ + public String getTestServiceId() { + return testServiceId; + } + + public void setTestServiceId(String testServiceId) { + this.testServiceId = testServiceId; + } + + public AlertTemplateVo withUpdateTime(OffsetDateTime updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * 创建时间 + * @return updateTime + */ + public OffsetDateTime getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(OffsetDateTime updateTime) { + this.updateTime = updateTime; + } + + public AlertTemplateVo withUpdateUser(String updateUser) { + this.updateUser = updateUser; + return this; + } + + /** + * 更新人 + * @return updateUser + */ + public String getUpdateUser() { + return updateUser; + } + + public void setUpdateUser(String updateUser) { + this.updateUser = updateUser; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + AlertTemplateVo that = (AlertTemplateVo) obj; + return Objects.equals(this.alertLevels, that.alertLevels) && Objects.equals(this.createTime, that.createTime) + && Objects.equals(this.createUser, that.createUser) && Objects.equals(this.id, that.id) + && Objects.equals(this.name, that.name) && Objects.equals(this.remarks, that.remarks) + && Objects.equals(this.testServiceId, that.testServiceId) + && Objects.equals(this.updateTime, that.updateTime) && Objects.equals(this.updateUser, that.updateUser); + } + + @Override + public int hashCode() { + return Objects + .hash(alertLevels, createTime, createUser, id, name, remarks, testServiceId, updateTime, updateUser); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AlertTemplateVo {\n"); + sb.append(" alertLevels: ").append(toIndentedString(alertLevels)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" createUser: ").append(toIndentedString(createUser)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" remarks: ").append(toIndentedString(remarks)).append("\n"); + sb.append(" testServiceId: ").append(toIndentedString(testServiceId)).append("\n"); + sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); + sb.append(" updateUser: ").append(toIndentedString(updateUser)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ApiError.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ApiError.java index c05a9b237e..95537d495a 100644 --- a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ApiError.java +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ApiError.java @@ -26,7 +26,7 @@ public ApiError withCode(String code) { } /** - * 只有对外的接口才会返回此内容 + * 业务失败的错误码 * @return code */ public String getCode() { diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/AttachmentVo.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/AttachmentVo.java new file mode 100644 index 0000000000..0899548c69 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/AttachmentVo.java @@ -0,0 +1,515 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.time.OffsetDateTime; +import java.util.Objects; + +/** + * 实际的数据类型:单个对象,集合 或 NULL + */ +public class AttachmentVo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "uri") + + private String uri; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "creator") + + private String creator; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "updator") + + private String updator; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "region") + + private String region; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "doc_id") + + private String docId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "parent_uri") + + private String parentUri; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "parent_type") + + private String parentType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "file_name") + + private String fileName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "store_file_name") + + private String storeFileName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "file_path") + + private String filePath; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "file_size") + + private Integer fileSize; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "file_type") + + private String fileType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "system_type") + + private String systemType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time") + + private OffsetDateTime createTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time_timestamp") + + private Long createTimeTimestamp; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_time") + + private OffsetDateTime updateTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_time_timestamp") + + private Long updateTimeTimestamp; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_uuid") + + private String projectUuid; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "related_type") + + private String relatedType; + + public AttachmentVo withUri(String uri) { + this.uri = uri; + return this; + } + + /** + * 附件Uri + * @return uri + */ + public String getUri() { + return uri; + } + + public void setUri(String uri) { + this.uri = uri; + } + + public AttachmentVo withCreator(String creator) { + this.creator = creator; + return this; + } + + /** + * 创建人 + * @return creator + */ + public String getCreator() { + return creator; + } + + public void setCreator(String creator) { + this.creator = creator; + } + + public AttachmentVo withUpdator(String updator) { + this.updator = updator; + return this; + } + + /** + * 更新人 + * @return updator + */ + public String getUpdator() { + return updator; + } + + public void setUpdator(String updator) { + this.updator = updator; + } + + public AttachmentVo withRegion(String region) { + this.region = region; + return this; + } + + /** + * 逻辑region + * @return region + */ + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public AttachmentVo withDocId(String docId) { + this.docId = docId; + return this; + } + + /** + * 文档id + * @return docId + */ + public String getDocId() { + return docId; + } + + public void setDocId(String docId) { + this.docId = docId; + } + + public AttachmentVo withParentUri(String parentUri) { + this.parentUri = parentUri; + return this; + } + + /** + * 父节点Uri + * @return parentUri + */ + public String getParentUri() { + return parentUri; + } + + public void setParentUri(String parentUri) { + this.parentUri = parentUri; + } + + public AttachmentVo withParentType(String parentType) { + this.parentType = parentType; + return this; + } + + /** + * 父节点类型 + * @return parentType + */ + public String getParentType() { + return parentType; + } + + public void setParentType(String parentType) { + this.parentType = parentType; + } + + public AttachmentVo withFileName(String fileName) { + this.fileName = fileName; + return this; + } + + /** + * 文件名 + * @return fileName + */ + public String getFileName() { + return fileName; + } + + public void setFileName(String fileName) { + this.fileName = fileName; + } + + public AttachmentVo withStoreFileName(String storeFileName) { + this.storeFileName = storeFileName; + return this; + } + + /** + * 保存文件名 + * @return storeFileName + */ + public String getStoreFileName() { + return storeFileName; + } + + public void setStoreFileName(String storeFileName) { + this.storeFileName = storeFileName; + } + + public AttachmentVo withFilePath(String filePath) { + this.filePath = filePath; + return this; + } + + /** + * 文件路径 + * @return filePath + */ + public String getFilePath() { + return filePath; + } + + public void setFilePath(String filePath) { + this.filePath = filePath; + } + + public AttachmentVo withFileSize(Integer fileSize) { + this.fileSize = fileSize; + return this; + } + + /** + * 文件大小 + * @return fileSize + */ + public Integer getFileSize() { + return fileSize; + } + + public void setFileSize(Integer fileSize) { + this.fileSize = fileSize; + } + + public AttachmentVo withFileType(String fileType) { + this.fileType = fileType; + return this; + } + + /** + * 文件类型 + * @return fileType + */ + public String getFileType() { + return fileType; + } + + public void setFileType(String fileType) { + this.fileType = fileType; + } + + public AttachmentVo withSystemType(String systemType) { + this.systemType = systemType; + return this; + } + + /** + * 系统区分:docman或testman + * @return systemType + */ + public String getSystemType() { + return systemType; + } + + public void setSystemType(String systemType) { + this.systemType = systemType; + } + + public AttachmentVo withCreateTime(OffsetDateTime createTime) { + this.createTime = createTime; + return this; + } + + /** + * 创建时间 + * @return createTime + */ + public OffsetDateTime getCreateTime() { + return createTime; + } + + public void setCreateTime(OffsetDateTime createTime) { + this.createTime = createTime; + } + + public AttachmentVo withCreateTimeTimestamp(Long createTimeTimestamp) { + this.createTimeTimestamp = createTimeTimestamp; + return this; + } + + /** + * 创建时间时间戳 + * @return createTimeTimestamp + */ + public Long getCreateTimeTimestamp() { + return createTimeTimestamp; + } + + public void setCreateTimeTimestamp(Long createTimeTimestamp) { + this.createTimeTimestamp = createTimeTimestamp; + } + + public AttachmentVo withUpdateTime(OffsetDateTime updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * 更新时间 + * @return updateTime + */ + public OffsetDateTime getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(OffsetDateTime updateTime) { + this.updateTime = updateTime; + } + + public AttachmentVo withUpdateTimeTimestamp(Long updateTimeTimestamp) { + this.updateTimeTimestamp = updateTimeTimestamp; + return this; + } + + /** + * 更新时间时间戳 + * @return updateTimeTimestamp + */ + public Long getUpdateTimeTimestamp() { + return updateTimeTimestamp; + } + + public void setUpdateTimeTimestamp(Long updateTimeTimestamp) { + this.updateTimeTimestamp = updateTimeTimestamp; + } + + public AttachmentVo withProjectUuid(String projectUuid) { + this.projectUuid = projectUuid; + return this; + } + + /** + * 项目id + * @return projectUuid + */ + public String getProjectUuid() { + return projectUuid; + } + + public void setProjectUuid(String projectUuid) { + this.projectUuid = projectUuid; + } + + public AttachmentVo withRelatedType(String relatedType) { + this.relatedType = relatedType; + return this; + } + + /** + * 附件类型 0 本地上传 other 关联文档 + * @return relatedType + */ + public String getRelatedType() { + return relatedType; + } + + public void setRelatedType(String relatedType) { + this.relatedType = relatedType; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + AttachmentVo that = (AttachmentVo) obj; + return Objects.equals(this.uri, that.uri) && Objects.equals(this.creator, that.creator) + && Objects.equals(this.updator, that.updator) && Objects.equals(this.region, that.region) + && Objects.equals(this.docId, that.docId) && Objects.equals(this.parentUri, that.parentUri) + && Objects.equals(this.parentType, that.parentType) && Objects.equals(this.fileName, that.fileName) + && Objects.equals(this.storeFileName, that.storeFileName) && Objects.equals(this.filePath, that.filePath) + && Objects.equals(this.fileSize, that.fileSize) && Objects.equals(this.fileType, that.fileType) + && Objects.equals(this.systemType, that.systemType) && Objects.equals(this.createTime, that.createTime) + && Objects.equals(this.createTimeTimestamp, that.createTimeTimestamp) + && Objects.equals(this.updateTime, that.updateTime) + && Objects.equals(this.updateTimeTimestamp, that.updateTimeTimestamp) + && Objects.equals(this.projectUuid, that.projectUuid) && Objects.equals(this.relatedType, that.relatedType); + } + + @Override + public int hashCode() { + return Objects.hash(uri, + creator, + updator, + region, + docId, + parentUri, + parentType, + fileName, + storeFileName, + filePath, + fileSize, + fileType, + systemType, + createTime, + createTimeTimestamp, + updateTime, + updateTimeTimestamp, + projectUuid, + relatedType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AttachmentVo {\n"); + sb.append(" uri: ").append(toIndentedString(uri)).append("\n"); + sb.append(" creator: ").append(toIndentedString(creator)).append("\n"); + sb.append(" updator: ").append(toIndentedString(updator)).append("\n"); + sb.append(" region: ").append(toIndentedString(region)).append("\n"); + sb.append(" docId: ").append(toIndentedString(docId)).append("\n"); + sb.append(" parentUri: ").append(toIndentedString(parentUri)).append("\n"); + sb.append(" parentType: ").append(toIndentedString(parentType)).append("\n"); + sb.append(" fileName: ").append(toIndentedString(fileName)).append("\n"); + sb.append(" storeFileName: ").append(toIndentedString(storeFileName)).append("\n"); + sb.append(" filePath: ").append(toIndentedString(filePath)).append("\n"); + sb.append(" fileSize: ").append(toIndentedString(fileSize)).append("\n"); + sb.append(" fileType: ").append(toIndentedString(fileType)).append("\n"); + sb.append(" systemType: ").append(toIndentedString(systemType)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" createTimeTimestamp: ").append(toIndentedString(createTimeTimestamp)).append("\n"); + sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); + sb.append(" updateTimeTimestamp: ").append(toIndentedString(updateTimeTimestamp)).append("\n"); + sb.append(" projectUuid: ").append(toIndentedString(projectUuid)).append("\n"); + sb.append(" relatedType: ").append(toIndentedString(relatedType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/BasicAwRes.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/BasicAwRes.java new file mode 100644 index 0000000000..a1f4962161 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/BasicAwRes.java @@ -0,0 +1,1364 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * BasicAwRes + */ +public class BasicAwRes { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "aw_code") + + private String awCode; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "aw_description") + + private String awDescription; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "aw_mark") + + private Integer awMark; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "aw_operationid") + + private String awOperationid; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "aw_tags") + + private String awTags; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "aw_type") + + private Integer awType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "aw_uniqueid") + + private String awUniqueid; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "by_order") + + private Integer byOrder; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time") + + private String createTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time_stamp") + + private Long createTimeStamp; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time_string") + + private String createTimeString; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_user") + + private String createUser; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_user_id") + + private String createUserId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "delete_time") + + private String deleteTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "delete_user") + + private String deleteUser; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dft_check_point_list") + + private List dftCheckPointList = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dft_custom_header") + + private List dftCustomHeader = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dft_retry_interval") + + private String dftRetryInterval; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dft_retry_times") + + private String dftRetryTimes; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dft_variable_list") + + private List dftVariableList = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "extra_info") + + private Object extraInfo; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "group_name") + + private String groupName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "has_code") + + private Integer hasCode; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "import_package") + + private List importPackage = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "interface_label") + + private String interfaceLabel; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_favorite") + + private Integer isFavorite; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "method") + + private String method; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "nameView") + + private String nameView; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "origin_project") + + private String originProject; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "param_type_and_dft_value") + + private List paramTypeAndDftValue = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_id") + + private String projectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "protocol_type") + + private String protocolType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "public_aw_lib") + + private Object publicAwLib; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "public_aw_lib_id") + + private String publicAwLibId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "region") + + private String region; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "return_type") + + private String returnType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "root_id") + + private String rootId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "source") + + private String source; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "special_type") + + private Integer specialType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tmssCaseNumber") + + private String tmssCaseNumber; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tmss_case_id") + + private String tmssCaseId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_time") + + private String updateTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_time_stamp") + + private Long updateTimeStamp; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_time_string") + + private String updateTimeString; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_user") + + private String updateUser; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "warningMsg") + + private String warningMsg; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "yamlName") + + private String yamlName; + + public BasicAwRes withAwCode(String awCode) { + this.awCode = awCode; + return this; + } + + /** + * Get awCode + * @return awCode + */ + public String getAwCode() { + return awCode; + } + + public void setAwCode(String awCode) { + this.awCode = awCode; + } + + public BasicAwRes withAwDescription(String awDescription) { + this.awDescription = awDescription; + return this; + } + + /** + * Get awDescription + * @return awDescription + */ + public String getAwDescription() { + return awDescription; + } + + public void setAwDescription(String awDescription) { + this.awDescription = awDescription; + } + + public BasicAwRes withAwMark(Integer awMark) { + this.awMark = awMark; + return this; + } + + /** + * Get awMark + * @return awMark + */ + public Integer getAwMark() { + return awMark; + } + + public void setAwMark(Integer awMark) { + this.awMark = awMark; + } + + public BasicAwRes withAwOperationid(String awOperationid) { + this.awOperationid = awOperationid; + return this; + } + + /** + * Get awOperationid + * @return awOperationid + */ + public String getAwOperationid() { + return awOperationid; + } + + public void setAwOperationid(String awOperationid) { + this.awOperationid = awOperationid; + } + + public BasicAwRes withAwTags(String awTags) { + this.awTags = awTags; + return this; + } + + /** + * Get awTags + * @return awTags + */ + public String getAwTags() { + return awTags; + } + + public void setAwTags(String awTags) { + this.awTags = awTags; + } + + public BasicAwRes withAwType(Integer awType) { + this.awType = awType; + return this; + } + + /** + * Get awType + * @return awType + */ + public Integer getAwType() { + return awType; + } + + public void setAwType(Integer awType) { + this.awType = awType; + } + + public BasicAwRes withAwUniqueid(String awUniqueid) { + this.awUniqueid = awUniqueid; + return this; + } + + /** + * Get awUniqueid + * @return awUniqueid + */ + public String getAwUniqueid() { + return awUniqueid; + } + + public void setAwUniqueid(String awUniqueid) { + this.awUniqueid = awUniqueid; + } + + public BasicAwRes withByOrder(Integer byOrder) { + this.byOrder = byOrder; + return this; + } + + /** + * Get byOrder + * @return byOrder + */ + public Integer getByOrder() { + return byOrder; + } + + public void setByOrder(Integer byOrder) { + this.byOrder = byOrder; + } + + public BasicAwRes withCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * 创建时间 + * @return createTime + */ + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public BasicAwRes withCreateTimeStamp(Long createTimeStamp) { + this.createTimeStamp = createTimeStamp; + return this; + } + + /** + * Get createTimeStamp + * @return createTimeStamp + */ + public Long getCreateTimeStamp() { + return createTimeStamp; + } + + public void setCreateTimeStamp(Long createTimeStamp) { + this.createTimeStamp = createTimeStamp; + } + + public BasicAwRes withCreateTimeString(String createTimeString) { + this.createTimeString = createTimeString; + return this; + } + + /** + * Get createTimeString + * @return createTimeString + */ + public String getCreateTimeString() { + return createTimeString; + } + + public void setCreateTimeString(String createTimeString) { + this.createTimeString = createTimeString; + } + + public BasicAwRes withCreateUser(String createUser) { + this.createUser = createUser; + return this; + } + + /** + * 创建人 + * @return createUser + */ + public String getCreateUser() { + return createUser; + } + + public void setCreateUser(String createUser) { + this.createUser = createUser; + } + + public BasicAwRes withCreateUserId(String createUserId) { + this.createUserId = createUserId; + return this; + } + + /** + * Get createUserId + * @return createUserId + */ + public String getCreateUserId() { + return createUserId; + } + + public void setCreateUserId(String createUserId) { + this.createUserId = createUserId; + } + + public BasicAwRes withDeleteTime(String deleteTime) { + this.deleteTime = deleteTime; + return this; + } + + /** + * 更新时间 + * @return deleteTime + */ + public String getDeleteTime() { + return deleteTime; + } + + public void setDeleteTime(String deleteTime) { + this.deleteTime = deleteTime; + } + + public BasicAwRes withDeleteUser(String deleteUser) { + this.deleteUser = deleteUser; + return this; + } + + /** + * 删除人 + * @return deleteUser + */ + public String getDeleteUser() { + return deleteUser; + } + + public void setDeleteUser(String deleteUser) { + this.deleteUser = deleteUser; + } + + public BasicAwRes withDescription(String description) { + this.description = description; + return this; + } + + /** + * Get description + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public BasicAwRes withDftCheckPointList(List dftCheckPointList) { + this.dftCheckPointList = dftCheckPointList; + return this; + } + + public BasicAwRes addDftCheckPointListItem(Object dftCheckPointListItem) { + if (this.dftCheckPointList == null) { + this.dftCheckPointList = new ArrayList<>(); + } + this.dftCheckPointList.add(dftCheckPointListItem); + return this; + } + + public BasicAwRes withDftCheckPointList(Consumer> dftCheckPointListSetter) { + if (this.dftCheckPointList == null) { + this.dftCheckPointList = new ArrayList<>(); + } + dftCheckPointListSetter.accept(this.dftCheckPointList); + return this; + } + + /** + * Get dftCheckPointList + * @return dftCheckPointList + */ + public List getDftCheckPointList() { + return dftCheckPointList; + } + + public void setDftCheckPointList(List dftCheckPointList) { + this.dftCheckPointList = dftCheckPointList; + } + + public BasicAwRes withDftCustomHeader(List dftCustomHeader) { + this.dftCustomHeader = dftCustomHeader; + return this; + } + + public BasicAwRes addDftCustomHeaderItem(Object dftCustomHeaderItem) { + if (this.dftCustomHeader == null) { + this.dftCustomHeader = new ArrayList<>(); + } + this.dftCustomHeader.add(dftCustomHeaderItem); + return this; + } + + public BasicAwRes withDftCustomHeader(Consumer> dftCustomHeaderSetter) { + if (this.dftCustomHeader == null) { + this.dftCustomHeader = new ArrayList<>(); + } + dftCustomHeaderSetter.accept(this.dftCustomHeader); + return this; + } + + /** + * Get dftCustomHeader + * @return dftCustomHeader + */ + public List getDftCustomHeader() { + return dftCustomHeader; + } + + public void setDftCustomHeader(List dftCustomHeader) { + this.dftCustomHeader = dftCustomHeader; + } + + public BasicAwRes withDftRetryInterval(String dftRetryInterval) { + this.dftRetryInterval = dftRetryInterval; + return this; + } + + /** + * Get dftRetryInterval + * @return dftRetryInterval + */ + public String getDftRetryInterval() { + return dftRetryInterval; + } + + public void setDftRetryInterval(String dftRetryInterval) { + this.dftRetryInterval = dftRetryInterval; + } + + public BasicAwRes withDftRetryTimes(String dftRetryTimes) { + this.dftRetryTimes = dftRetryTimes; + return this; + } + + /** + * Get dftRetryTimes + * @return dftRetryTimes + */ + public String getDftRetryTimes() { + return dftRetryTimes; + } + + public void setDftRetryTimes(String dftRetryTimes) { + this.dftRetryTimes = dftRetryTimes; + } + + public BasicAwRes withDftVariableList(List dftVariableList) { + this.dftVariableList = dftVariableList; + return this; + } + + public BasicAwRes addDftVariableListItem(Object dftVariableListItem) { + if (this.dftVariableList == null) { + this.dftVariableList = new ArrayList<>(); + } + this.dftVariableList.add(dftVariableListItem); + return this; + } + + public BasicAwRes withDftVariableList(Consumer> dftVariableListSetter) { + if (this.dftVariableList == null) { + this.dftVariableList = new ArrayList<>(); + } + dftVariableListSetter.accept(this.dftVariableList); + return this; + } + + /** + * Get dftVariableList + * @return dftVariableList + */ + public List getDftVariableList() { + return dftVariableList; + } + + public void setDftVariableList(List dftVariableList) { + this.dftVariableList = dftVariableList; + } + + public BasicAwRes withExtraInfo(Object extraInfo) { + this.extraInfo = extraInfo; + return this; + } + + /** + * Get extraInfo + * @return extraInfo + */ + public Object getExtraInfo() { + return extraInfo; + } + + public void setExtraInfo(Object extraInfo) { + this.extraInfo = extraInfo; + } + + public BasicAwRes withGroupName(String groupName) { + this.groupName = groupName; + return this; + } + + /** + * Get groupName + * @return groupName + */ + public String getGroupName() { + return groupName; + } + + public void setGroupName(String groupName) { + this.groupName = groupName; + } + + public BasicAwRes withHasCode(Integer hasCode) { + this.hasCode = hasCode; + return this; + } + + /** + * Get hasCode + * @return hasCode + */ + public Integer getHasCode() { + return hasCode; + } + + public void setHasCode(Integer hasCode) { + this.hasCode = hasCode; + } + + public BasicAwRes withId(String id) { + this.id = id; + return this; + } + + /** + * id + * @return id + */ + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public BasicAwRes withImportPackage(List importPackage) { + this.importPackage = importPackage; + return this; + } + + public BasicAwRes addImportPackageItem(String importPackageItem) { + if (this.importPackage == null) { + this.importPackage = new ArrayList<>(); + } + this.importPackage.add(importPackageItem); + return this; + } + + public BasicAwRes withImportPackage(Consumer> importPackageSetter) { + if (this.importPackage == null) { + this.importPackage = new ArrayList<>(); + } + importPackageSetter.accept(this.importPackage); + return this; + } + + /** + * Get importPackage + * @return importPackage + */ + public List getImportPackage() { + return importPackage; + } + + public void setImportPackage(List importPackage) { + this.importPackage = importPackage; + } + + public BasicAwRes withInterfaceLabel(String interfaceLabel) { + this.interfaceLabel = interfaceLabel; + return this; + } + + /** + * Get interfaceLabel + * @return interfaceLabel + */ + public String getInterfaceLabel() { + return interfaceLabel; + } + + public void setInterfaceLabel(String interfaceLabel) { + this.interfaceLabel = interfaceLabel; + } + + public BasicAwRes withIsFavorite(Integer isFavorite) { + this.isFavorite = isFavorite; + return this; + } + + /** + * Get isFavorite + * @return isFavorite + */ + public Integer getIsFavorite() { + return isFavorite; + } + + public void setIsFavorite(Integer isFavorite) { + this.isFavorite = isFavorite; + } + + public BasicAwRes withMethod(String method) { + this.method = method; + return this; + } + + /** + * Get method + * @return method + */ + public String getMethod() { + return method; + } + + public void setMethod(String method) { + this.method = method; + } + + public BasicAwRes withName(String name) { + this.name = name; + return this; + } + + /** + * Get name + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public BasicAwRes withNameView(String nameView) { + this.nameView = nameView; + return this; + } + + /** + * Get nameView + * @return nameView + */ + public String getNameView() { + return nameView; + } + + public void setNameView(String nameView) { + this.nameView = nameView; + } + + public BasicAwRes withOriginProject(String originProject) { + this.originProject = originProject; + return this; + } + + /** + * Get originProject + * @return originProject + */ + public String getOriginProject() { + return originProject; + } + + public void setOriginProject(String originProject) { + this.originProject = originProject; + } + + public BasicAwRes withParamTypeAndDftValue(List paramTypeAndDftValue) { + this.paramTypeAndDftValue = paramTypeAndDftValue; + return this; + } + + public BasicAwRes addParamTypeAndDftValueItem(Object paramTypeAndDftValueItem) { + if (this.paramTypeAndDftValue == null) { + this.paramTypeAndDftValue = new ArrayList<>(); + } + this.paramTypeAndDftValue.add(paramTypeAndDftValueItem); + return this; + } + + public BasicAwRes withParamTypeAndDftValue(Consumer> paramTypeAndDftValueSetter) { + if (this.paramTypeAndDftValue == null) { + this.paramTypeAndDftValue = new ArrayList<>(); + } + paramTypeAndDftValueSetter.accept(this.paramTypeAndDftValue); + return this; + } + + /** + * Get paramTypeAndDftValue + * @return paramTypeAndDftValue + */ + public List getParamTypeAndDftValue() { + return paramTypeAndDftValue; + } + + public void setParamTypeAndDftValue(List paramTypeAndDftValue) { + this.paramTypeAndDftValue = paramTypeAndDftValue; + } + + public BasicAwRes withProjectId(String projectId) { + this.projectId = projectId; + return this; + } + + /** + * Get projectId + * @return projectId + */ + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public BasicAwRes withProtocolType(String protocolType) { + this.protocolType = protocolType; + return this; + } + + /** + * Get protocolType + * @return protocolType + */ + public String getProtocolType() { + return protocolType; + } + + public void setProtocolType(String protocolType) { + this.protocolType = protocolType; + } + + public BasicAwRes withPublicAwLib(Object publicAwLib) { + this.publicAwLib = publicAwLib; + return this; + } + + /** + * Get publicAwLib + * @return publicAwLib + */ + public Object getPublicAwLib() { + return publicAwLib; + } + + public void setPublicAwLib(Object publicAwLib) { + this.publicAwLib = publicAwLib; + } + + public BasicAwRes withPublicAwLibId(String publicAwLibId) { + this.publicAwLibId = publicAwLibId; + return this; + } + + /** + * Get publicAwLibId + * @return publicAwLibId + */ + public String getPublicAwLibId() { + return publicAwLibId; + } + + public void setPublicAwLibId(String publicAwLibId) { + this.publicAwLibId = publicAwLibId; + } + + public BasicAwRes withRegion(String region) { + this.region = region; + return this; + } + + /** + * Get region + * @return region + */ + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public BasicAwRes withReturnType(String returnType) { + this.returnType = returnType; + return this; + } + + /** + * Get returnType + * @return returnType + */ + public String getReturnType() { + return returnType; + } + + public void setReturnType(String returnType) { + this.returnType = returnType; + } + + public BasicAwRes withRootId(String rootId) { + this.rootId = rootId; + return this; + } + + /** + * Get rootId + * @return rootId + */ + public String getRootId() { + return rootId; + } + + public void setRootId(String rootId) { + this.rootId = rootId; + } + + public BasicAwRes withSource(String source) { + this.source = source; + return this; + } + + /** + * Get source + * @return source + */ + public String getSource() { + return source; + } + + public void setSource(String source) { + this.source = source; + } + + public BasicAwRes withSpecialType(Integer specialType) { + this.specialType = specialType; + return this; + } + + /** + * Get specialType + * @return specialType + */ + public Integer getSpecialType() { + return specialType; + } + + public void setSpecialType(Integer specialType) { + this.specialType = specialType; + } + + public BasicAwRes withTmssCaseNumber(String tmssCaseNumber) { + this.tmssCaseNumber = tmssCaseNumber; + return this; + } + + /** + * Get tmssCaseNumber + * @return tmssCaseNumber + */ + public String getTmssCaseNumber() { + return tmssCaseNumber; + } + + public void setTmssCaseNumber(String tmssCaseNumber) { + this.tmssCaseNumber = tmssCaseNumber; + } + + public BasicAwRes withTmssCaseId(String tmssCaseId) { + this.tmssCaseId = tmssCaseId; + return this; + } + + /** + * Get tmssCaseId + * @return tmssCaseId + */ + public String getTmssCaseId() { + return tmssCaseId; + } + + public void setTmssCaseId(String tmssCaseId) { + this.tmssCaseId = tmssCaseId; + } + + public BasicAwRes withUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * 更新时间 + * @return updateTime + */ + public String getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(String updateTime) { + this.updateTime = updateTime; + } + + public BasicAwRes withUpdateTimeStamp(Long updateTimeStamp) { + this.updateTimeStamp = updateTimeStamp; + return this; + } + + /** + * Get updateTimeStamp + * @return updateTimeStamp + */ + public Long getUpdateTimeStamp() { + return updateTimeStamp; + } + + public void setUpdateTimeStamp(Long updateTimeStamp) { + this.updateTimeStamp = updateTimeStamp; + } + + public BasicAwRes withUpdateTimeString(String updateTimeString) { + this.updateTimeString = updateTimeString; + return this; + } + + /** + * Get updateTimeString + * @return updateTimeString + */ + public String getUpdateTimeString() { + return updateTimeString; + } + + public void setUpdateTimeString(String updateTimeString) { + this.updateTimeString = updateTimeString; + } + + public BasicAwRes withUpdateUser(String updateUser) { + this.updateUser = updateUser; + return this; + } + + /** + * 更新人 + * @return updateUser + */ + public String getUpdateUser() { + return updateUser; + } + + public void setUpdateUser(String updateUser) { + this.updateUser = updateUser; + } + + public BasicAwRes withWarningMsg(String warningMsg) { + this.warningMsg = warningMsg; + return this; + } + + /** + * Get warningMsg + * @return warningMsg + */ + public String getWarningMsg() { + return warningMsg; + } + + public void setWarningMsg(String warningMsg) { + this.warningMsg = warningMsg; + } + + public BasicAwRes withYamlName(String yamlName) { + this.yamlName = yamlName; + return this; + } + + /** + * Get yamlName + * @return yamlName + */ + public String getYamlName() { + return yamlName; + } + + public void setYamlName(String yamlName) { + this.yamlName = yamlName; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + BasicAwRes that = (BasicAwRes) obj; + return Objects.equals(this.awCode, that.awCode) && Objects.equals(this.awDescription, that.awDescription) + && Objects.equals(this.awMark, that.awMark) && Objects.equals(this.awOperationid, that.awOperationid) + && Objects.equals(this.awTags, that.awTags) && Objects.equals(this.awType, that.awType) + && Objects.equals(this.awUniqueid, that.awUniqueid) && Objects.equals(this.byOrder, that.byOrder) + && Objects.equals(this.createTime, that.createTime) + && Objects.equals(this.createTimeStamp, that.createTimeStamp) + && Objects.equals(this.createTimeString, that.createTimeString) + && Objects.equals(this.createUser, that.createUser) && Objects.equals(this.createUserId, that.createUserId) + && Objects.equals(this.deleteTime, that.deleteTime) && Objects.equals(this.deleteUser, that.deleteUser) + && Objects.equals(this.description, that.description) + && Objects.equals(this.dftCheckPointList, that.dftCheckPointList) + && Objects.equals(this.dftCustomHeader, that.dftCustomHeader) + && Objects.equals(this.dftRetryInterval, that.dftRetryInterval) + && Objects.equals(this.dftRetryTimes, that.dftRetryTimes) + && Objects.equals(this.dftVariableList, that.dftVariableList) + && Objects.equals(this.extraInfo, that.extraInfo) && Objects.equals(this.groupName, that.groupName) + && Objects.equals(this.hasCode, that.hasCode) && Objects.equals(this.id, that.id) + && Objects.equals(this.importPackage, that.importPackage) + && Objects.equals(this.interfaceLabel, that.interfaceLabel) + && Objects.equals(this.isFavorite, that.isFavorite) && Objects.equals(this.method, that.method) + && Objects.equals(this.name, that.name) && Objects.equals(this.nameView, that.nameView) + && Objects.equals(this.originProject, that.originProject) + && Objects.equals(this.paramTypeAndDftValue, that.paramTypeAndDftValue) + && Objects.equals(this.projectId, that.projectId) && Objects.equals(this.protocolType, that.protocolType) + && Objects.equals(this.publicAwLib, that.publicAwLib) + && Objects.equals(this.publicAwLibId, that.publicAwLibId) && Objects.equals(this.region, that.region) + && Objects.equals(this.returnType, that.returnType) && Objects.equals(this.rootId, that.rootId) + && Objects.equals(this.source, that.source) && Objects.equals(this.specialType, that.specialType) + && Objects.equals(this.tmssCaseNumber, that.tmssCaseNumber) + && Objects.equals(this.tmssCaseId, that.tmssCaseId) && Objects.equals(this.updateTime, that.updateTime) + && Objects.equals(this.updateTimeStamp, that.updateTimeStamp) + && Objects.equals(this.updateTimeString, that.updateTimeString) + && Objects.equals(this.updateUser, that.updateUser) && Objects.equals(this.warningMsg, that.warningMsg) + && Objects.equals(this.yamlName, that.yamlName); + } + + @Override + public int hashCode() { + return Objects.hash(awCode, + awDescription, + awMark, + awOperationid, + awTags, + awType, + awUniqueid, + byOrder, + createTime, + createTimeStamp, + createTimeString, + createUser, + createUserId, + deleteTime, + deleteUser, + description, + dftCheckPointList, + dftCustomHeader, + dftRetryInterval, + dftRetryTimes, + dftVariableList, + extraInfo, + groupName, + hasCode, + id, + importPackage, + interfaceLabel, + isFavorite, + method, + name, + nameView, + originProject, + paramTypeAndDftValue, + projectId, + protocolType, + publicAwLib, + publicAwLibId, + region, + returnType, + rootId, + source, + specialType, + tmssCaseNumber, + tmssCaseId, + updateTime, + updateTimeStamp, + updateTimeString, + updateUser, + warningMsg, + yamlName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BasicAwRes {\n"); + sb.append(" awCode: ").append(toIndentedString(awCode)).append("\n"); + sb.append(" awDescription: ").append(toIndentedString(awDescription)).append("\n"); + sb.append(" awMark: ").append(toIndentedString(awMark)).append("\n"); + sb.append(" awOperationid: ").append(toIndentedString(awOperationid)).append("\n"); + sb.append(" awTags: ").append(toIndentedString(awTags)).append("\n"); + sb.append(" awType: ").append(toIndentedString(awType)).append("\n"); + sb.append(" awUniqueid: ").append(toIndentedString(awUniqueid)).append("\n"); + sb.append(" byOrder: ").append(toIndentedString(byOrder)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" createTimeStamp: ").append(toIndentedString(createTimeStamp)).append("\n"); + sb.append(" createTimeString: ").append(toIndentedString(createTimeString)).append("\n"); + sb.append(" createUser: ").append(toIndentedString(createUser)).append("\n"); + sb.append(" createUserId: ").append(toIndentedString(createUserId)).append("\n"); + sb.append(" deleteTime: ").append(toIndentedString(deleteTime)).append("\n"); + sb.append(" deleteUser: ").append(toIndentedString(deleteUser)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" dftCheckPointList: ").append(toIndentedString(dftCheckPointList)).append("\n"); + sb.append(" dftCustomHeader: ").append(toIndentedString(dftCustomHeader)).append("\n"); + sb.append(" dftRetryInterval: ").append(toIndentedString(dftRetryInterval)).append("\n"); + sb.append(" dftRetryTimes: ").append(toIndentedString(dftRetryTimes)).append("\n"); + sb.append(" dftVariableList: ").append(toIndentedString(dftVariableList)).append("\n"); + sb.append(" extraInfo: ").append(toIndentedString(extraInfo)).append("\n"); + sb.append(" groupName: ").append(toIndentedString(groupName)).append("\n"); + sb.append(" hasCode: ").append(toIndentedString(hasCode)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" importPackage: ").append(toIndentedString(importPackage)).append("\n"); + sb.append(" interfaceLabel: ").append(toIndentedString(interfaceLabel)).append("\n"); + sb.append(" isFavorite: ").append(toIndentedString(isFavorite)).append("\n"); + sb.append(" method: ").append(toIndentedString(method)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" nameView: ").append(toIndentedString(nameView)).append("\n"); + sb.append(" originProject: ").append(toIndentedString(originProject)).append("\n"); + sb.append(" paramTypeAndDftValue: ").append(toIndentedString(paramTypeAndDftValue)).append("\n"); + sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); + sb.append(" protocolType: ").append(toIndentedString(protocolType)).append("\n"); + sb.append(" publicAwLib: ").append(toIndentedString(publicAwLib)).append("\n"); + sb.append(" publicAwLibId: ").append(toIndentedString(publicAwLibId)).append("\n"); + sb.append(" region: ").append(toIndentedString(region)).append("\n"); + sb.append(" returnType: ").append(toIndentedString(returnType)).append("\n"); + sb.append(" rootId: ").append(toIndentedString(rootId)).append("\n"); + sb.append(" source: ").append(toIndentedString(source)).append("\n"); + sb.append(" specialType: ").append(toIndentedString(specialType)).append("\n"); + sb.append(" tmssCaseNumber: ").append(toIndentedString(tmssCaseNumber)).append("\n"); + sb.append(" tmssCaseId: ").append(toIndentedString(tmssCaseId)).append("\n"); + sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); + sb.append(" updateTimeStamp: ").append(toIndentedString(updateTimeStamp)).append("\n"); + sb.append(" updateTimeString: ").append(toIndentedString(updateTimeString)).append("\n"); + sb.append(" updateUser: ").append(toIndentedString(updateUser)).append("\n"); + sb.append(" warningMsg: ").append(toIndentedString(warningMsg)).append("\n"); + sb.append(" yamlName: ").append(toIndentedString(yamlName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/BatchAddRelationsByOneCaseRequest.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/BatchAddRelationsByOneCaseRequest.java new file mode 100644 index 0000000000..947536d0c2 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/BatchAddRelationsByOneCaseRequest.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class BatchAddRelationsByOneCaseRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "workitem_id") + + private String workitemId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private AddRelationsInfo body; + + public BatchAddRelationsByOneCaseRequest withWorkitemId(String workitemId) { + this.workitemId = workitemId; + return this; + } + + /** + * 需求/缺陷id + * @return workitemId + */ + public String getWorkitemId() { + return workitemId; + } + + public void setWorkitemId(String workitemId) { + this.workitemId = workitemId; + } + + public BatchAddRelationsByOneCaseRequest withBody(AddRelationsInfo body) { + this.body = body; + return this; + } + + public BatchAddRelationsByOneCaseRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new AddRelationsInfo(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public AddRelationsInfo getBody() { + return body; + } + + public void setBody(AddRelationsInfo body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + BatchAddRelationsByOneCaseRequest that = (BatchAddRelationsByOneCaseRequest) obj; + return Objects.equals(this.workitemId, that.workitemId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(workitemId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchAddRelationsByOneCaseRequest {\n"); + sb.append(" workitemId: ").append(toIndentedString(workitemId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/BatchAddRelationsByOneCaseResponse.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/BatchAddRelationsByOneCaseResponse.java new file mode 100644 index 0000000000..5f1107f9e7 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/BatchAddRelationsByOneCaseResponse.java @@ -0,0 +1,106 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class BatchAddRelationsByOneCaseResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private String status; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "result") + + private ResultValueStringForOk result; + + public BatchAddRelationsByOneCaseResponse withStatus(String status) { + this.status = status; + return this; + } + + /** + * 对外时:success|error; + * @return status + */ + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public BatchAddRelationsByOneCaseResponse withResult(ResultValueStringForOk result) { + this.result = result; + return this; + } + + public BatchAddRelationsByOneCaseResponse withResult(Consumer resultSetter) { + if (this.result == null) { + this.result = new ResultValueStringForOk(); + resultSetter.accept(this.result); + } + + return this; + } + + /** + * Get result + * @return result + */ + public ResultValueStringForOk getResult() { + return result; + } + + public void setResult(ResultValueStringForOk result) { + this.result = result; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + BatchAddRelationsByOneCaseResponse that = (BatchAddRelationsByOneCaseResponse) obj; + return Objects.equals(this.status, that.status) && Objects.equals(this.result, that.result); + } + + @Override + public int hashCode() { + return Objects.hash(status, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchAddRelationsByOneCaseResponse {\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/BatchDeleteTestReportRequest.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/BatchDeleteTestReportRequest.java new file mode 100644 index 0000000000..3fe41166a2 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/BatchDeleteTestReportRequest.java @@ -0,0 +1,114 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class BatchDeleteTestReportRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_id") + + private String projectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private List body = null; + + public BatchDeleteTestReportRequest withProjectId(String projectId) { + this.projectId = projectId; + return this; + } + + /** + * 项目ID,固定长度32位字符(字母和数字)。 + * @return projectId + */ + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public BatchDeleteTestReportRequest withBody(List body) { + this.body = body; + return this; + } + + public BatchDeleteTestReportRequest addBodyItem(String bodyItem) { + if (this.body == null) { + this.body = new ArrayList<>(); + } + this.body.add(bodyItem); + return this; + } + + public BatchDeleteTestReportRequest withBody(Consumer> bodySetter) { + if (this.body == null) { + this.body = new ArrayList<>(); + } + bodySetter.accept(this.body); + return this; + } + + /** + * Get body + * @return body + */ + public List getBody() { + return body; + } + + public void setBody(List body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + BatchDeleteTestReportRequest that = (BatchDeleteTestReportRequest) obj; + return Objects.equals(this.projectId, that.projectId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(projectId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchDeleteTestReportRequest {\n"); + sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/BatchDeleteTestReportResponse.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/BatchDeleteTestReportResponse.java new file mode 100644 index 0000000000..36801d6925 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/BatchDeleteTestReportResponse.java @@ -0,0 +1,106 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class BatchDeleteTestReportResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private String status; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "result") + + private ResultValueStringForOk result; + + public BatchDeleteTestReportResponse withStatus(String status) { + this.status = status; + return this; + } + + /** + * 对外时:success|error; + * @return status + */ + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public BatchDeleteTestReportResponse withResult(ResultValueStringForOk result) { + this.result = result; + return this; + } + + public BatchDeleteTestReportResponse withResult(Consumer resultSetter) { + if (this.result == null) { + this.result = new ResultValueStringForOk(); + resultSetter.accept(this.result); + } + + return this; + } + + /** + * Get result + * @return result + */ + public ResultValueStringForOk getResult() { + return result; + } + + public void setResult(ResultValueStringForOk result) { + this.result = result; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + BatchDeleteTestReportResponse that = (BatchDeleteTestReportResponse) obj; + return Objects.equals(this.status, that.status) && Objects.equals(this.result, that.result); + } + + @Override + public int hashCode() { + return Objects.hash(status, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchDeleteTestReportResponse {\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/CaseAutomationDetailsVo.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/CaseAutomationDetailsVo.java new file mode 100644 index 0000000000..ff12c9ccd0 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/CaseAutomationDetailsVo.java @@ -0,0 +1,116 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 用例自动化率详情 + */ +public class CaseAutomationDetailsVo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "case_automation_rate") + + private String caseAutomationRate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "service_type_number_list") + + private List serviceTypeNumberList = null; + + public CaseAutomationDetailsVo withCaseAutomationRate(String caseAutomationRate) { + this.caseAutomationRate = caseAutomationRate; + return this; + } + + /** + * 用例自动化率 + * @return caseAutomationRate + */ + public String getCaseAutomationRate() { + return caseAutomationRate; + } + + public void setCaseAutomationRate(String caseAutomationRate) { + this.caseAutomationRate = caseAutomationRate; + } + + public CaseAutomationDetailsVo withServiceTypeNumberList(List serviceTypeNumberList) { + this.serviceTypeNumberList = serviceTypeNumberList; + return this; + } + + public CaseAutomationDetailsVo addServiceTypeNumberListItem(NameAndValueVo serviceTypeNumberListItem) { + if (this.serviceTypeNumberList == null) { + this.serviceTypeNumberList = new ArrayList<>(); + } + this.serviceTypeNumberList.add(serviceTypeNumberListItem); + return this; + } + + public CaseAutomationDetailsVo withServiceTypeNumberList( + Consumer> serviceTypeNumberListSetter) { + if (this.serviceTypeNumberList == null) { + this.serviceTypeNumberList = new ArrayList<>(); + } + serviceTypeNumberListSetter.accept(this.serviceTypeNumberList); + return this; + } + + /** + * 服务类型对应的用例数目 + * @return serviceTypeNumberList + */ + public List getServiceTypeNumberList() { + return serviceTypeNumberList; + } + + public void setServiceTypeNumberList(List serviceTypeNumberList) { + this.serviceTypeNumberList = serviceTypeNumberList; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CaseAutomationDetailsVo that = (CaseAutomationDetailsVo) obj; + return Objects.equals(this.caseAutomationRate, that.caseAutomationRate) + && Objects.equals(this.serviceTypeNumberList, that.serviceTypeNumberList); + } + + @Override + public int hashCode() { + return Objects.hash(caseAutomationRate, serviceTypeNumberList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CaseAutomationDetailsVo {\n"); + sb.append(" caseAutomationRate: ").append(toIndentedString(caseAutomationRate)).append("\n"); + sb.append(" serviceTypeNumberList: ").append(toIndentedString(serviceTypeNumberList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/CaseExecuteVo.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/CaseExecuteVo.java new file mode 100644 index 0000000000..fb4249abbd --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/CaseExecuteVo.java @@ -0,0 +1,120 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 需求关联用例执行率情况 + */ +public class CaseExecuteVo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "execute_rate") + + private String executeRate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "executed_number") + + private Integer executedNumber; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "not_executed_number") + + private Integer notExecutedNumber; + + public CaseExecuteVo withExecuteRate(String executeRate) { + this.executeRate = executeRate; + return this; + } + + /** + * 需求关联用例执行率 + * @return executeRate + */ + public String getExecuteRate() { + return executeRate; + } + + public void setExecuteRate(String executeRate) { + this.executeRate = executeRate; + } + + public CaseExecuteVo withExecutedNumber(Integer executedNumber) { + this.executedNumber = executedNumber; + return this; + } + + /** + * 需求关联已执行用例总数 + * @return executedNumber + */ + public Integer getExecutedNumber() { + return executedNumber; + } + + public void setExecutedNumber(Integer executedNumber) { + this.executedNumber = executedNumber; + } + + public CaseExecuteVo withNotExecutedNumber(Integer notExecutedNumber) { + this.notExecutedNumber = notExecutedNumber; + return this; + } + + /** + * 需求关联未执行用例总数 + * @return notExecutedNumber + */ + public Integer getNotExecutedNumber() { + return notExecutedNumber; + } + + public void setNotExecutedNumber(Integer notExecutedNumber) { + this.notExecutedNumber = notExecutedNumber; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CaseExecuteVo that = (CaseExecuteVo) obj; + return Objects.equals(this.executeRate, that.executeRate) + && Objects.equals(this.executedNumber, that.executedNumber) + && Objects.equals(this.notExecutedNumber, that.notExecutedNumber); + } + + @Override + public int hashCode() { + return Objects.hash(executeRate, executedNumber, notExecutedNumber); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CaseExecuteVo {\n"); + sb.append(" executeRate: ").append(toIndentedString(executeRate)).append("\n"); + sb.append(" executedNumber: ").append(toIndentedString(executedNumber)).append("\n"); + sb.append(" notExecutedNumber: ").append(toIndentedString(notExecutedNumber)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/CasePassVo.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/CasePassVo.java new file mode 100644 index 0000000000..a728171694 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/CasePassVo.java @@ -0,0 +1,115 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 需求关联用例通过情况 + */ +public class CasePassVo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "pass_rate") + + private String passRate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "result_number_list") + + private List resultNumberList = null; + + public CasePassVo withPassRate(String passRate) { + this.passRate = passRate; + return this; + } + + /** + * 需求关联用例通过率 + * @return passRate + */ + public String getPassRate() { + return passRate; + } + + public void setPassRate(String passRate) { + this.passRate = passRate; + } + + public CasePassVo withResultNumberList(List resultNumberList) { + this.resultNumberList = resultNumberList; + return this; + } + + public CasePassVo addResultNumberListItem(NameAndValueVo resultNumberListItem) { + if (this.resultNumberList == null) { + this.resultNumberList = new ArrayList<>(); + } + this.resultNumberList.add(resultNumberListItem); + return this; + } + + public CasePassVo withResultNumberList(Consumer> resultNumberListSetter) { + if (this.resultNumberList == null) { + this.resultNumberList = new ArrayList<>(); + } + resultNumberListSetter.accept(this.resultNumberList); + return this; + } + + /** + * 需求关联用例结果与对应的用例数目列表 + * @return resultNumberList + */ + public List getResultNumberList() { + return resultNumberList; + } + + public void setResultNumberList(List resultNumberList) { + this.resultNumberList = resultNumberList; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CasePassVo that = (CasePassVo) obj; + return Objects.equals(this.passRate, that.passRate) + && Objects.equals(this.resultNumberList, that.resultNumberList); + } + + @Override + public int hashCode() { + return Objects.hash(passRate, resultNumberList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CasePassVo {\n"); + sb.append(" passRate: ").append(toIndentedString(passRate)).append("\n"); + sb.append(" resultNumberList: ").append(toIndentedString(resultNumberList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/CheckPermissionRequest.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/CheckPermissionRequest.java new file mode 100644 index 0000000000..5b3c2090a6 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/CheckPermissionRequest.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class CheckPermissionRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_id") + + private String projectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + public CheckPermissionRequest withProjectId(String projectId) { + this.projectId = projectId; + return this; + } + + /** + * 项目ID,固定长度32位字符(字母和数字)。 + * @return projectId + */ + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public CheckPermissionRequest withId(String id) { + this.id = id; + return this; + } + + /** + * 脑图ID + * @return id + */ + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CheckPermissionRequest that = (CheckPermissionRequest) obj; + return Objects.equals(this.projectId, that.projectId) && Objects.equals(this.id, that.id); + } + + @Override + public int hashCode() { + return Objects.hash(projectId, id); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CheckPermissionRequest {\n"); + sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/CheckPermissionResponse.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/CheckPermissionResponse.java new file mode 100644 index 0000000000..20db0a9701 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/CheckPermissionResponse.java @@ -0,0 +1,139 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class CheckPermissionResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "code") + + private String code; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "data") + + private Map data = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "message") + + private String message; + + public CheckPermissionResponse withCode(String code) { + this.code = code; + return this; + } + + /** + * 接口调用失败错误码 + * @return code + */ + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public CheckPermissionResponse withData(Map data) { + this.data = data; + return this; + } + + public CheckPermissionResponse putDataItem(String key, Boolean dataItem) { + if (this.data == null) { + this.data = new HashMap<>(); + } + this.data.put(key, dataItem); + return this; + } + + public CheckPermissionResponse withData(Consumer> dataSetter) { + if (this.data == null) { + this.data = new HashMap<>(); + } + dataSetter.accept(this.data); + return this; + } + + /** + * 当前用户权限 + * @return data + */ + public Map getData() { + return data; + } + + public void setData(Map data) { + this.data = data; + } + + public CheckPermissionResponse withMessage(String message) { + this.message = message; + return this; + } + + /** + * 接口调用错误信息 + * @return message + */ + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CheckPermissionResponse that = (CheckPermissionResponse) obj; + return Objects.equals(this.code, that.code) && Objects.equals(this.data, that.data) + && Objects.equals(this.message, that.message); + } + + @Override + public int hashCode() { + return Objects.hash(code, data, message); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CheckPermissionResponse {\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/CommRequestMindmapPageParamV3.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/CommRequestMindmapPageParamV3.java new file mode 100644 index 0000000000..10f4dc1f0a --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/CommRequestMindmapPageParamV3.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * CommRequestMindmapPageParamV3 + */ +public class CommRequestMindmapPageParamV3 { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "params") + + private MindmapPageParamV3 params; + + public CommRequestMindmapPageParamV3 withParams(MindmapPageParamV3 params) { + this.params = params; + return this; + } + + public CommRequestMindmapPageParamV3 withParams(Consumer paramsSetter) { + if (this.params == null) { + this.params = new MindmapPageParamV3(); + paramsSetter.accept(this.params); + } + + return this; + } + + /** + * Get params + * @return params + */ + public MindmapPageParamV3 getParams() { + return params; + } + + public void setParams(MindmapPageParamV3 params) { + this.params = params; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CommRequestMindmapPageParamV3 that = (CommRequestMindmapPageParamV3) obj; + return Objects.equals(this.params, that.params); + } + + @Override + public int hashCode() { + return Objects.hash(params); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CommRequestMindmapPageParamV3 {\n"); + sb.append(" params: ").append(toIndentedString(params)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/CommRequestSystemConfig.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/CommRequestSystemConfig.java new file mode 100644 index 0000000000..7f5866e687 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/CommRequestSystemConfig.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * CommRequestSystemConfig + */ +public class CommRequestSystemConfig { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "params") + + private SystemConfig params; + + public CommRequestSystemConfig withParams(SystemConfig params) { + this.params = params; + return this; + } + + public CommRequestSystemConfig withParams(Consumer paramsSetter) { + if (this.params == null) { + this.params = new SystemConfig(); + paramsSetter.accept(this.params); + } + + return this; + } + + /** + * Get params + * @return params + */ + public SystemConfig getParams() { + return params; + } + + public void setParams(SystemConfig params) { + this.params = params; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CommRequestSystemConfig that = (CommRequestSystemConfig) obj; + return Objects.equals(this.params, that.params); + } + + @Override + public int hashCode() { + return Objects.hash(params); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CommRequestSystemConfig {\n"); + sb.append(" params: ").append(toIndentedString(params)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/CommonResponseErrorOfAPITest.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/CommonResponseErrorOfAPITest.java new file mode 100644 index 0000000000..93fd9d5a3f --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/CommonResponseErrorOfAPITest.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * CommonResponseErrorOfAPITest + */ +public class CommonResponseErrorOfAPITest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "code") + + private String code; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "reason") + + private String reason; + + public CommonResponseErrorOfAPITest withCode(String code) { + this.code = code; + return this; + } + + /** + * 错误码 + * @return code + */ + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public CommonResponseErrorOfAPITest withReason(String reason) { + this.reason = reason; + return this; + } + + /** + * 错误原因 + * @return reason + */ + public String getReason() { + return reason; + } + + public void setReason(String reason) { + this.reason = reason; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CommonResponseErrorOfAPITest that = (CommonResponseErrorOfAPITest) obj; + return Objects.equals(this.code, that.code) && Objects.equals(this.reason, that.reason); + } + + @Override + public int hashCode() { + return Objects.hash(code, reason); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CommonResponseErrorOfAPITest {\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/CreateRelationsByOneCaseRequest.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/CreateRelationsByOneCaseRequest.java new file mode 100644 index 0000000000..5ea11970dc --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/CreateRelationsByOneCaseRequest.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class CreateRelationsByOneCaseRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "case_id") + + private String caseId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private AddRelationsInfo body; + + public CreateRelationsByOneCaseRequest withCaseId(String caseId) { + this.caseId = caseId; + return this; + } + + /** + * 用例uri + * @return caseId + */ + public String getCaseId() { + return caseId; + } + + public void setCaseId(String caseId) { + this.caseId = caseId; + } + + public CreateRelationsByOneCaseRequest withBody(AddRelationsInfo body) { + this.body = body; + return this; + } + + public CreateRelationsByOneCaseRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new AddRelationsInfo(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public AddRelationsInfo getBody() { + return body; + } + + public void setBody(AddRelationsInfo body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateRelationsByOneCaseRequest that = (CreateRelationsByOneCaseRequest) obj; + return Objects.equals(this.caseId, that.caseId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(caseId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateRelationsByOneCaseRequest {\n"); + sb.append(" caseId: ").append(toIndentedString(caseId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/CreateRelationsByOneCaseResponse.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/CreateRelationsByOneCaseResponse.java new file mode 100644 index 0000000000..95eb72e393 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/CreateRelationsByOneCaseResponse.java @@ -0,0 +1,106 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class CreateRelationsByOneCaseResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private String status; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "result") + + private ResultValueStringForOk result; + + public CreateRelationsByOneCaseResponse withStatus(String status) { + this.status = status; + return this; + } + + /** + * 对外时:success|error; + * @return status + */ + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public CreateRelationsByOneCaseResponse withResult(ResultValueStringForOk result) { + this.result = result; + return this; + } + + public CreateRelationsByOneCaseResponse withResult(Consumer resultSetter) { + if (this.result == null) { + this.result = new ResultValueStringForOk(); + resultSetter.accept(this.result); + } + + return this; + } + + /** + * Get result + * @return result + */ + public ResultValueStringForOk getResult() { + return result; + } + + public void setResult(ResultValueStringForOk result) { + this.result = result; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateRelationsByOneCaseResponse that = (CreateRelationsByOneCaseResponse) obj; + return Objects.equals(this.status, that.status) && Objects.equals(this.result, that.result); + } + + @Override + public int hashCode() { + return Objects.hash(status, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateRelationsByOneCaseResponse {\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/CreateResourceUriRequest.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/CreateResourceUriRequest.java new file mode 100644 index 0000000000..666e9180da --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/CreateResourceUriRequest.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class CreateResourceUriRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_id") + + private String projectId; + + public CreateResourceUriRequest withProjectId(String projectId) { + this.projectId = projectId; + return this; + } + + /** + * 项目ID,固定长度32位字符(字母和数字)。 + * @return projectId + */ + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateResourceUriRequest that = (CreateResourceUriRequest) obj; + return Objects.equals(this.projectId, that.projectId); + } + + @Override + public int hashCode() { + return Objects.hash(projectId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateResourceUriRequest {\n"); + sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/CreateResourceUriResponse.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/CreateResourceUriResponse.java new file mode 100644 index 0000000000..f640fac756 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/CreateResourceUriResponse.java @@ -0,0 +1,73 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class CreateResourceUriResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private String value; + + public CreateResourceUriResponse withValue(String value) { + this.value = value; + return this; + } + + /** + * Get value + * @return value + */ + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateResourceUriResponse that = (CreateResourceUriResponse) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateResourceUriResponse {\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/DeleteRelationsByOneCaseInfo.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/DeleteRelationsByOneCaseInfo.java new file mode 100644 index 0000000000..4010859ef2 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/DeleteRelationsByOneCaseInfo.java @@ -0,0 +1,161 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * DeleteRelationsByOneCaseInfo + */ +public class DeleteRelationsByOneCaseInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "work_item_ids") + + private List workItemIds = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_uuid") + + private String projectUuid; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "version_uri") + + private String versionUri; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "relate_type") + + private String relateType; + + public DeleteRelationsByOneCaseInfo withWorkItemIds(List workItemIds) { + this.workItemIds = workItemIds; + return this; + } + + public DeleteRelationsByOneCaseInfo addWorkItemIdsItem(String workItemIdsItem) { + if (this.workItemIds == null) { + this.workItemIds = new ArrayList<>(); + } + this.workItemIds.add(workItemIdsItem); + return this; + } + + public DeleteRelationsByOneCaseInfo withWorkItemIds(Consumer> workItemIdsSetter) { + if (this.workItemIds == null) { + this.workItemIds = new ArrayList<>(); + } + workItemIdsSetter.accept(this.workItemIds); + return this; + } + + /** + * Get workItemIds + * @return workItemIds + */ + public List getWorkItemIds() { + return workItemIds; + } + + public void setWorkItemIds(List workItemIds) { + this.workItemIds = workItemIds; + } + + public DeleteRelationsByOneCaseInfo withProjectUuid(String projectUuid) { + this.projectUuid = projectUuid; + return this; + } + + /** + * 项目id + * @return projectUuid + */ + public String getProjectUuid() { + return projectUuid; + } + + public void setProjectUuid(String projectUuid) { + this.projectUuid = projectUuid; + } + + public DeleteRelationsByOneCaseInfo withVersionUri(String versionUri) { + this.versionUri = versionUri; + return this; + } + + /** + * 版本uri + * @return versionUri + */ + public String getVersionUri() { + return versionUri; + } + + public void setVersionUri(String versionUri) { + this.versionUri = versionUri; + } + + public DeleteRelationsByOneCaseInfo withRelateType(String relateType) { + this.relateType = relateType; + return this; + } + + /** + * 关联关系类型 + * @return relateType + */ + public String getRelateType() { + return relateType; + } + + public void setRelateType(String relateType) { + this.relateType = relateType; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DeleteRelationsByOneCaseInfo that = (DeleteRelationsByOneCaseInfo) obj; + return Objects.equals(this.workItemIds, that.workItemIds) && Objects.equals(this.projectUuid, that.projectUuid) + && Objects.equals(this.versionUri, that.versionUri) && Objects.equals(this.relateType, that.relateType); + } + + @Override + public int hashCode() { + return Objects.hash(workItemIds, projectUuid, versionUri, relateType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteRelationsByOneCaseInfo {\n"); + sb.append(" workItemIds: ").append(toIndentedString(workItemIds)).append("\n"); + sb.append(" projectUuid: ").append(toIndentedString(projectUuid)).append("\n"); + sb.append(" versionUri: ").append(toIndentedString(versionUri)).append("\n"); + sb.append(" relateType: ").append(toIndentedString(relateType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/DeleteRelationsByOneCaseRequest.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/DeleteRelationsByOneCaseRequest.java new file mode 100644 index 0000000000..f270fc2128 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/DeleteRelationsByOneCaseRequest.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class DeleteRelationsByOneCaseRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "case_id") + + private String caseId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private DeleteRelationsByOneCaseInfo body; + + public DeleteRelationsByOneCaseRequest withCaseId(String caseId) { + this.caseId = caseId; + return this; + } + + /** + * 用例id + * @return caseId + */ + public String getCaseId() { + return caseId; + } + + public void setCaseId(String caseId) { + this.caseId = caseId; + } + + public DeleteRelationsByOneCaseRequest withBody(DeleteRelationsByOneCaseInfo body) { + this.body = body; + return this; + } + + public DeleteRelationsByOneCaseRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new DeleteRelationsByOneCaseInfo(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public DeleteRelationsByOneCaseInfo getBody() { + return body; + } + + public void setBody(DeleteRelationsByOneCaseInfo body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DeleteRelationsByOneCaseRequest that = (DeleteRelationsByOneCaseRequest) obj; + return Objects.equals(this.caseId, that.caseId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(caseId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteRelationsByOneCaseRequest {\n"); + sb.append(" caseId: ").append(toIndentedString(caseId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/DeleteRelationsByOneCaseResponse.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/DeleteRelationsByOneCaseResponse.java new file mode 100644 index 0000000000..5932b8fcf7 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/DeleteRelationsByOneCaseResponse.java @@ -0,0 +1,106 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class DeleteRelationsByOneCaseResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private String status; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "result") + + private ResultValueStringForOk result; + + public DeleteRelationsByOneCaseResponse withStatus(String status) { + this.status = status; + return this; + } + + /** + * 对外时:success|error; + * @return status + */ + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public DeleteRelationsByOneCaseResponse withResult(ResultValueStringForOk result) { + this.result = result; + return this; + } + + public DeleteRelationsByOneCaseResponse withResult(Consumer resultSetter) { + if (this.result == null) { + this.result = new ResultValueStringForOk(); + resultSetter.accept(this.result); + } + + return this; + } + + /** + * Get result + * @return result + */ + public ResultValueStringForOk getResult() { + return result; + } + + public void setResult(ResultValueStringForOk result) { + this.result = result; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DeleteRelationsByOneCaseResponse that = (DeleteRelationsByOneCaseResponse) obj; + return Objects.equals(this.status, that.status) && Objects.equals(this.result, that.result); + } + + @Override + public int hashCode() { + return Objects.hash(status, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteRelationsByOneCaseResponse {\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/DetailTestTypeCasePassRateVo.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/DetailTestTypeCasePassRateVo.java new file mode 100644 index 0000000000..ff9025a058 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/DetailTestTypeCasePassRateVo.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 每个测试类型的用例通过率 + */ +public class DetailTestTypeCasePassRateVo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "test_type") + + private Integer testType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "case_pass_rate") + + private String casePassRate; + + public DetailTestTypeCasePassRateVo withTestType(Integer testType) { + this.testType = testType; + return this; + } + + /** + * 测试类型 + * @return testType + */ + public Integer getTestType() { + return testType; + } + + public void setTestType(Integer testType) { + this.testType = testType; + } + + public DetailTestTypeCasePassRateVo withCasePassRate(String casePassRate) { + this.casePassRate = casePassRate; + return this; + } + + /** + * 用例通过率 + * @return casePassRate + */ + public String getCasePassRate() { + return casePassRate; + } + + public void setCasePassRate(String casePassRate) { + this.casePassRate = casePassRate; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DetailTestTypeCasePassRateVo that = (DetailTestTypeCasePassRateVo) obj; + return Objects.equals(this.testType, that.testType) && Objects.equals(this.casePassRate, that.casePassRate); + } + + @Override + public int hashCode() { + return Objects.hash(testType, casePassRate); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DetailTestTypeCasePassRateVo {\n"); + sb.append(" testType: ").append(toIndentedString(testType)).append("\n"); + sb.append(" casePassRate: ").append(toIndentedString(casePassRate)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/DnsMapping.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/DnsMapping.java new file mode 100644 index 0000000000..6a6a87f14e --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/DnsMapping.java @@ -0,0 +1,91 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * DNS配置结果集 + */ +public class DnsMapping { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dns") + + private List dns = null; + + public DnsMapping withDns(List dns) { + this.dns = dns; + return this; + } + + public DnsMapping addDnsItem(DnsMappingNode dnsItem) { + if (this.dns == null) { + this.dns = new ArrayList<>(); + } + this.dns.add(dnsItem); + return this; + } + + public DnsMapping withDns(Consumer> dnsSetter) { + if (this.dns == null) { + this.dns = new ArrayList<>(); + } + dnsSetter.accept(this.dns); + return this; + } + + /** + * Get dns + * @return dns + */ + public List getDns() { + return dns; + } + + public void setDns(List dns) { + this.dns = dns; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DnsMapping that = (DnsMapping) obj; + return Objects.equals(this.dns, that.dns); + } + + @Override + public int hashCode() { + return Objects.hash(dns); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DnsMapping {\n"); + sb.append(" dns: ").append(toIndentedString(dns)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/DnsMappingNode.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/DnsMappingNode.java new file mode 100644 index 0000000000..3a0f4cfa32 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/DnsMappingNode.java @@ -0,0 +1,114 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * DNS配置 + */ +public class DnsMappingNode { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "domain_name") + + private String domainName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ips") + + private List ips = null; + + public DnsMappingNode withDomainName(String domainName) { + this.domainName = domainName; + return this; + } + + /** + * 域名信息 + * @return domainName + */ + public String getDomainName() { + return domainName; + } + + public void setDomainName(String domainName) { + this.domainName = domainName; + } + + public DnsMappingNode withIps(List ips) { + this.ips = ips; + return this; + } + + public DnsMappingNode addIpsItem(String ipsItem) { + if (this.ips == null) { + this.ips = new ArrayList<>(); + } + this.ips.add(ipsItem); + return this; + } + + public DnsMappingNode withIps(Consumer> ipsSetter) { + if (this.ips == null) { + this.ips = new ArrayList<>(); + } + ipsSetter.accept(this.ips); + return this; + } + + /** + * 域名对应的IP + * @return ips + */ + public List getIps() { + return ips; + } + + public void setIps(List ips) { + this.ips = ips; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DnsMappingNode that = (DnsMappingNode) obj; + return Objects.equals(this.domainName, that.domainName) && Objects.equals(this.ips, that.ips); + } + + @Override + public int hashCode() { + return Objects.hash(domainName, ips); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DnsMappingNode {\n"); + sb.append(" domainName: ").append(toIndentedString(domainName)).append("\n"); + sb.append(" ips: ").append(toIndentedString(ips)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/GetPublicLibAndAwsResp.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/GetPublicLibAndAwsResp.java new file mode 100644 index 0000000000..6df7089953 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/GetPublicLibAndAwsResp.java @@ -0,0 +1,271 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * GetPublicLibAndAwsResp + */ +public class GetPublicLibAndAwsResp { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "aw_tag") + + private String awTag; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "document_link") + + private String documentLink; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_favorite") + + private Integer isFavorite; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "public_aw_description") + + private String publicAwDescription; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "public_aw_id") + + private String publicAwId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "public_aw_lib_id") + + private String publicAwLibId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "public_aw_lib_name") + + private String publicAwLibName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "public_aw_mark") + + private Integer publicAwMark; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "public_aw_name") + + private String publicAwName; + + public GetPublicLibAndAwsResp withAwTag(String awTag) { + this.awTag = awTag; + return this; + } + + /** + * 公共关键字分组信息 + * @return awTag + */ + public String getAwTag() { + return awTag; + } + + public void setAwTag(String awTag) { + this.awTag = awTag; + } + + public GetPublicLibAndAwsResp withDocumentLink(String documentLink) { + this.documentLink = documentLink; + return this; + } + + /** + * 公共关键字帮助文档链接 + * @return documentLink + */ + public String getDocumentLink() { + return documentLink; + } + + public void setDocumentLink(String documentLink) { + this.documentLink = documentLink; + } + + public GetPublicLibAndAwsResp withIsFavorite(Integer isFavorite) { + this.isFavorite = isFavorite; + return this; + } + + /** + * 保留字段 + * @return isFavorite + */ + public Integer getIsFavorite() { + return isFavorite; + } + + public void setIsFavorite(Integer isFavorite) { + this.isFavorite = isFavorite; + } + + public GetPublicLibAndAwsResp withPublicAwDescription(String publicAwDescription) { + this.publicAwDescription = publicAwDescription; + return this; + } + + /** + * 公共关键字描述 + * @return publicAwDescription + */ + public String getPublicAwDescription() { + return publicAwDescription; + } + + public void setPublicAwDescription(String publicAwDescription) { + this.publicAwDescription = publicAwDescription; + } + + public GetPublicLibAndAwsResp withPublicAwId(String publicAwId) { + this.publicAwId = publicAwId; + return this; + } + + /** + * 公共关键字唯一ID + * @return publicAwId + */ + public String getPublicAwId() { + return publicAwId; + } + + public void setPublicAwId(String publicAwId) { + this.publicAwId = publicAwId; + } + + public GetPublicLibAndAwsResp withPublicAwLibId(String publicAwLibId) { + this.publicAwLibId = publicAwLibId; + return this; + } + + /** + * 公共关键库唯一ID + * @return publicAwLibId + */ + public String getPublicAwLibId() { + return publicAwLibId; + } + + public void setPublicAwLibId(String publicAwLibId) { + this.publicAwLibId = publicAwLibId; + } + + public GetPublicLibAndAwsResp withPublicAwLibName(String publicAwLibName) { + this.publicAwLibName = publicAwLibName; + return this; + } + + /** + * 公共关键字库名称 + * @return publicAwLibName + */ + public String getPublicAwLibName() { + return publicAwLibName; + } + + public void setPublicAwLibName(String publicAwLibName) { + this.publicAwLibName = publicAwLibName; + } + + public GetPublicLibAndAwsResp withPublicAwMark(Integer publicAwMark) { + this.publicAwMark = publicAwMark; + return this; + } + + /** + * 保留字段 + * @return publicAwMark + */ + public Integer getPublicAwMark() { + return publicAwMark; + } + + public void setPublicAwMark(Integer publicAwMark) { + this.publicAwMark = publicAwMark; + } + + public GetPublicLibAndAwsResp withPublicAwName(String publicAwName) { + this.publicAwName = publicAwName; + return this; + } + + /** + * 公共关键字名称 + * @return publicAwName + */ + public String getPublicAwName() { + return publicAwName; + } + + public void setPublicAwName(String publicAwName) { + this.publicAwName = publicAwName; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + GetPublicLibAndAwsResp that = (GetPublicLibAndAwsResp) obj; + return Objects.equals(this.awTag, that.awTag) && Objects.equals(this.documentLink, that.documentLink) + && Objects.equals(this.isFavorite, that.isFavorite) + && Objects.equals(this.publicAwDescription, that.publicAwDescription) + && Objects.equals(this.publicAwId, that.publicAwId) + && Objects.equals(this.publicAwLibId, that.publicAwLibId) + && Objects.equals(this.publicAwLibName, that.publicAwLibName) + && Objects.equals(this.publicAwMark, that.publicAwMark) + && Objects.equals(this.publicAwName, that.publicAwName); + } + + @Override + public int hashCode() { + return Objects.hash(awTag, + documentLink, + isFavorite, + publicAwDescription, + publicAwId, + publicAwLibId, + publicAwLibName, + publicAwMark, + publicAwName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetPublicLibAndAwsResp {\n"); + sb.append(" awTag: ").append(toIndentedString(awTag)).append("\n"); + sb.append(" documentLink: ").append(toIndentedString(documentLink)).append("\n"); + sb.append(" isFavorite: ").append(toIndentedString(isFavorite)).append("\n"); + sb.append(" publicAwDescription: ").append(toIndentedString(publicAwDescription)).append("\n"); + sb.append(" publicAwId: ").append(toIndentedString(publicAwId)).append("\n"); + sb.append(" publicAwLibId: ").append(toIndentedString(publicAwLibId)).append("\n"); + sb.append(" publicAwLibName: ").append(toIndentedString(publicAwLibName)).append("\n"); + sb.append(" publicAwMark: ").append(toIndentedString(publicAwMark)).append("\n"); + sb.append(" publicAwName: ").append(toIndentedString(publicAwName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/IdAndNameAndValueVo.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/IdAndNameAndValueVo.java new file mode 100644 index 0000000000..38096ad358 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/IdAndNameAndValueVo.java @@ -0,0 +1,119 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 缺陷按照模块分布情况 + */ +public class IdAndNameAndValueVo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private Integer value; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + public IdAndNameAndValueVo withName(String name) { + this.name = name; + return this; + } + + /** + * 名称 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public IdAndNameAndValueVo withValue(Integer value) { + this.value = value; + return this; + } + + /** + * 值 + * @return value + */ + public Integer getValue() { + return value; + } + + public void setValue(Integer value) { + this.value = value; + } + + public IdAndNameAndValueVo withId(String id) { + this.id = id; + return this; + } + + /** + * id + * @return id + */ + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + IdAndNameAndValueVo that = (IdAndNameAndValueVo) obj; + return Objects.equals(this.name, that.name) && Objects.equals(this.value, that.value) + && Objects.equals(this.id, that.id); + } + + @Override + public int hashCode() { + return Objects.hash(name, value, id); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IdAndNameAndValueVo {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/IssueListFilterInfo.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/IssueListFilterInfo.java new file mode 100644 index 0000000000..7a3955dba4 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/IssueListFilterInfo.java @@ -0,0 +1,201 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 过滤条件 + */ +public class IssueListFilterInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "iteration_ids") + + private List iterationIds = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "pi_sprints") + + private List piSprints = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "subject") + + private String subject; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "module_id") + + private String moduleId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status_id") + + private String statusId; + + public IssueListFilterInfo withIterationIds(List iterationIds) { + this.iterationIds = iterationIds; + return this; + } + + public IssueListFilterInfo addIterationIdsItem(String iterationIdsItem) { + if (this.iterationIds == null) { + this.iterationIds = new ArrayList<>(); + } + this.iterationIds.add(iterationIdsItem); + return this; + } + + public IssueListFilterInfo withIterationIds(Consumer> iterationIdsSetter) { + if (this.iterationIds == null) { + this.iterationIds = new ArrayList<>(); + } + iterationIdsSetter.accept(this.iterationIds); + return this; + } + + /** + * 迭代id列表 + * @return iterationIds + */ + public List getIterationIds() { + return iterationIds; + } + + public void setIterationIds(List iterationIds) { + this.iterationIds = iterationIds; + } + + public IssueListFilterInfo withPiSprints(List piSprints) { + this.piSprints = piSprints; + return this; + } + + public IssueListFilterInfo addPiSprintsItem(IssueListPiFilterInfo piSprintsItem) { + if (this.piSprints == null) { + this.piSprints = new ArrayList<>(); + } + this.piSprints.add(piSprintsItem); + return this; + } + + public IssueListFilterInfo withPiSprints(Consumer> piSprintsSetter) { + if (this.piSprints == null) { + this.piSprints = new ArrayList<>(); + } + piSprintsSetter.accept(this.piSprints); + return this; + } + + /** + * pi过滤条件 + * @return piSprints + */ + public List getPiSprints() { + return piSprints; + } + + public void setPiSprints(List piSprints) { + this.piSprints = piSprints; + } + + public IssueListFilterInfo withSubject(String subject) { + this.subject = subject; + return this; + } + + /** + * 需求名 + * @return subject + */ + public String getSubject() { + return subject; + } + + public void setSubject(String subject) { + this.subject = subject; + } + + public IssueListFilterInfo withModuleId(String moduleId) { + this.moduleId = moduleId; + return this; + } + + /** + * 模块id + * @return moduleId + */ + public String getModuleId() { + return moduleId; + } + + public void setModuleId(String moduleId) { + this.moduleId = moduleId; + } + + public IssueListFilterInfo withStatusId(String statusId) { + this.statusId = statusId; + return this; + } + + /** + * 需求状态id + * @return statusId + */ + public String getStatusId() { + return statusId; + } + + public void setStatusId(String statusId) { + this.statusId = statusId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + IssueListFilterInfo that = (IssueListFilterInfo) obj; + return Objects.equals(this.iterationIds, that.iterationIds) && Objects.equals(this.piSprints, that.piSprints) + && Objects.equals(this.subject, that.subject) && Objects.equals(this.moduleId, that.moduleId) + && Objects.equals(this.statusId, that.statusId); + } + + @Override + public int hashCode() { + return Objects.hash(iterationIds, piSprints, subject, moduleId, statusId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IssueListFilterInfo {\n"); + sb.append(" iterationIds: ").append(toIndentedString(iterationIds)).append("\n"); + sb.append(" piSprints: ").append(toIndentedString(piSprints)).append("\n"); + sb.append(" subject: ").append(toIndentedString(subject)).append("\n"); + sb.append(" moduleId: ").append(toIndentedString(moduleId)).append("\n"); + sb.append(" statusId: ").append(toIndentedString(statusId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/IssueListPiFilterInfo.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/IssueListPiFilterInfo.java new file mode 100644 index 0000000000..dd077c3e0c --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/IssueListPiFilterInfo.java @@ -0,0 +1,114 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * pi过滤条件 + */ +public class IssueListPiFilterInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sprints") + + private List sprints = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "pi_id") + + private String piId; + + public IssueListPiFilterInfo withSprints(List sprints) { + this.sprints = sprints; + return this; + } + + public IssueListPiFilterInfo addSprintsItem(String sprintsItem) { + if (this.sprints == null) { + this.sprints = new ArrayList<>(); + } + this.sprints.add(sprintsItem); + return this; + } + + public IssueListPiFilterInfo withSprints(Consumer> sprintsSetter) { + if (this.sprints == null) { + this.sprints = new ArrayList<>(); + } + sprintsSetter.accept(this.sprints); + return this; + } + + /** + * 迭代列表 + * @return sprints + */ + public List getSprints() { + return sprints; + } + + public void setSprints(List sprints) { + this.sprints = sprints; + } + + public IssueListPiFilterInfo withPiId(String piId) { + this.piId = piId; + return this; + } + + /** + * pi的id,层级关系:pi -> 迭代 -> 需求 + * @return piId + */ + public String getPiId() { + return piId; + } + + public void setPiId(String piId) { + this.piId = piId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + IssueListPiFilterInfo that = (IssueListPiFilterInfo) obj; + return Objects.equals(this.sprints, that.sprints) && Objects.equals(this.piId, that.piId); + } + + @Override + public int hashCode() { + return Objects.hash(sprints, piId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IssueListPiFilterInfo {\n"); + sb.append(" sprints: ").append(toIndentedString(sprints)).append("\n"); + sb.append(" piId: ").append(toIndentedString(piId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/IssuePassDetailsVo.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/IssuePassDetailsVo.java new file mode 100644 index 0000000000..e6163fced8 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/IssuePassDetailsVo.java @@ -0,0 +1,119 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 需求通过情况 + */ +public class IssuePassDetailsVo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "testing") + + private Integer testing; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "finished") + + private Integer finished; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "not_tested") + + private Integer notTested; + + public IssuePassDetailsVo withTesting(Integer testing) { + this.testing = testing; + return this; + } + + /** + * 统计测试中的需求 + * @return testing + */ + public Integer getTesting() { + return testing; + } + + public void setTesting(Integer testing) { + this.testing = testing; + } + + public IssuePassDetailsVo withFinished(Integer finished) { + this.finished = finished; + return this; + } + + /** + * 统计已完成的需求 + * @return finished + */ + public Integer getFinished() { + return finished; + } + + public void setFinished(Integer finished) { + this.finished = finished; + } + + public IssuePassDetailsVo withNotTested(Integer notTested) { + this.notTested = notTested; + return this; + } + + /** + * 统计未完成的需求 + * @return notTested + */ + public Integer getNotTested() { + return notTested; + } + + public void setNotTested(Integer notTested) { + this.notTested = notTested; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + IssuePassDetailsVo that = (IssuePassDetailsVo) obj; + return Objects.equals(this.testing, that.testing) && Objects.equals(this.finished, that.finished) + && Objects.equals(this.notTested, that.notTested); + } + + @Override + public int hashCode() { + return Objects.hash(testing, finished, notTested); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IssuePassDetailsVo {\n"); + sb.append(" testing: ").append(toIndentedString(testing)).append("\n"); + sb.append(" finished: ").append(toIndentedString(finished)).append("\n"); + sb.append(" notTested: ").append(toIndentedString(notTested)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAlertGroupsByConditionRequest.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAlertGroupsByConditionRequest.java new file mode 100644 index 0000000000..091fdaef48 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAlertGroupsByConditionRequest.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class ListAlertGroupsByConditionRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "service_id") + + private String serviceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private ListAlertGroupsByConditionRequestBody body; + + public ListAlertGroupsByConditionRequest withServiceId(String serviceId) { + this.serviceId = serviceId; + return this; + } + + /** + * 服务id + * @return serviceId + */ + public String getServiceId() { + return serviceId; + } + + public void setServiceId(String serviceId) { + this.serviceId = serviceId; + } + + public ListAlertGroupsByConditionRequest withBody(ListAlertGroupsByConditionRequestBody body) { + this.body = body; + return this; + } + + public ListAlertGroupsByConditionRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new ListAlertGroupsByConditionRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public ListAlertGroupsByConditionRequestBody getBody() { + return body; + } + + public void setBody(ListAlertGroupsByConditionRequestBody body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListAlertGroupsByConditionRequest that = (ListAlertGroupsByConditionRequest) obj; + return Objects.equals(this.serviceId, that.serviceId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(serviceId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListAlertGroupsByConditionRequest {\n"); + sb.append(" serviceId: ").append(toIndentedString(serviceId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAlertGroupsByConditionRequestBody.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAlertGroupsByConditionRequestBody.java new file mode 100644 index 0000000000..9ff9896ba3 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAlertGroupsByConditionRequestBody.java @@ -0,0 +1,248 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * ListAlertGroupsByConditionRequestBody + */ +public class ListAlertGroupsByConditionRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "group_id") + + private String groupId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "group_ids") + + private List groupIds = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "page_num") + + private Integer pageNum; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "page_size") + + private Integer pageSize; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "test_service_id") + + private String testServiceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "userIds") + + private List userIds = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "userName") + + private String userName; + + public ListAlertGroupsByConditionRequestBody withGroupId(String groupId) { + this.groupId = groupId; + return this; + } + + /** + * 告警组ID + * @return groupId + */ + public String getGroupId() { + return groupId; + } + + public void setGroupId(String groupId) { + this.groupId = groupId; + } + + public ListAlertGroupsByConditionRequestBody withGroupIds(List groupIds) { + this.groupIds = groupIds; + return this; + } + + public ListAlertGroupsByConditionRequestBody addGroupIdsItem(String groupIdsItem) { + if (this.groupIds == null) { + this.groupIds = new ArrayList<>(); + } + this.groupIds.add(groupIdsItem); + return this; + } + + public ListAlertGroupsByConditionRequestBody withGroupIds(Consumer> groupIdsSetter) { + if (this.groupIds == null) { + this.groupIds = new ArrayList<>(); + } + groupIdsSetter.accept(this.groupIds); + return this; + } + + /** + * 告警组ID列表 + * @return groupIds + */ + public List getGroupIds() { + return groupIds; + } + + public void setGroupIds(List groupIds) { + this.groupIds = groupIds; + } + + public ListAlertGroupsByConditionRequestBody withPageNum(Integer pageNum) { + this.pageNum = pageNum; + return this; + } + + /** + * 当前页数 + * @return pageNum + */ + public Integer getPageNum() { + return pageNum; + } + + public void setPageNum(Integer pageNum) { + this.pageNum = pageNum; + } + + public ListAlertGroupsByConditionRequestBody withPageSize(Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * 每页大小 + * @return pageSize + */ + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public ListAlertGroupsByConditionRequestBody withTestServiceId(String testServiceId) { + this.testServiceId = testServiceId; + return this; + } + + /** + * 服务ID + * @return testServiceId + */ + public String getTestServiceId() { + return testServiceId; + } + + public void setTestServiceId(String testServiceId) { + this.testServiceId = testServiceId; + } + + public ListAlertGroupsByConditionRequestBody withUserIds(List userIds) { + this.userIds = userIds; + return this; + } + + public ListAlertGroupsByConditionRequestBody addUserIdsItem(String userIdsItem) { + if (this.userIds == null) { + this.userIds = new ArrayList<>(); + } + this.userIds.add(userIdsItem); + return this; + } + + public ListAlertGroupsByConditionRequestBody withUserIds(Consumer> userIdsSetter) { + if (this.userIds == null) { + this.userIds = new ArrayList<>(); + } + userIdsSetter.accept(this.userIds); + return this; + } + + /** + * 用户ID列表 + * @return userIds + */ + public List getUserIds() { + return userIds; + } + + public void setUserIds(List userIds) { + this.userIds = userIds; + } + + public ListAlertGroupsByConditionRequestBody withUserName(String userName) { + this.userName = userName; + return this; + } + + /** + * 用户名 + * @return userName + */ + public String getUserName() { + return userName; + } + + public void setUserName(String userName) { + this.userName = userName; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListAlertGroupsByConditionRequestBody that = (ListAlertGroupsByConditionRequestBody) obj; + return Objects.equals(this.groupId, that.groupId) && Objects.equals(this.groupIds, that.groupIds) + && Objects.equals(this.pageNum, that.pageNum) && Objects.equals(this.pageSize, that.pageSize) + && Objects.equals(this.testServiceId, that.testServiceId) && Objects.equals(this.userIds, that.userIds) + && Objects.equals(this.userName, that.userName); + } + + @Override + public int hashCode() { + return Objects.hash(groupId, groupIds, pageNum, pageSize, testServiceId, userIds, userName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListAlertGroupsByConditionRequestBody {\n"); + sb.append(" groupId: ").append(toIndentedString(groupId)).append("\n"); + sb.append(" groupIds: ").append(toIndentedString(groupIds)).append("\n"); + sb.append(" pageNum: ").append(toIndentedString(pageNum)).append("\n"); + sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); + sb.append(" testServiceId: ").append(toIndentedString(testServiceId)).append("\n"); + sb.append(" userIds: ").append(toIndentedString(userIds)).append("\n"); + sb.append(" userName: ").append(toIndentedString(userName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAlertGroupsByConditionResponse.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAlertGroupsByConditionResponse.java new file mode 100644 index 0000000000..798c18594c --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAlertGroupsByConditionResponse.java @@ -0,0 +1,96 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class ListAlertGroupsByConditionResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "error_code") + + private String errorCode; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "error_msg") + + private String errorMsg; + + public ListAlertGroupsByConditionResponse withErrorCode(String errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * 错误编码 + * @return errorCode + */ + public String getErrorCode() { + return errorCode; + } + + public void setErrorCode(String errorCode) { + this.errorCode = errorCode; + } + + public ListAlertGroupsByConditionResponse withErrorMsg(String errorMsg) { + this.errorMsg = errorMsg; + return this; + } + + /** + * 错误原因 + * @return errorMsg + */ + public String getErrorMsg() { + return errorMsg; + } + + public void setErrorMsg(String errorMsg) { + this.errorMsg = errorMsg; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListAlertGroupsByConditionResponse that = (ListAlertGroupsByConditionResponse) obj; + return Objects.equals(this.errorCode, that.errorCode) && Objects.equals(this.errorMsg, that.errorMsg); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, errorMsg); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListAlertGroupsByConditionResponse {\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" errorMsg: ").append(toIndentedString(errorMsg)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAlertTemplatesRequest.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAlertTemplatesRequest.java new file mode 100644 index 0000000000..8594d20d23 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAlertTemplatesRequest.java @@ -0,0 +1,142 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListAlertTemplatesRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "service_id") + + private String serviceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "pageNum") + + private Integer pageNum; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "pageSize") + + private Integer pageSize; + + public ListAlertTemplatesRequest withServiceId(String serviceId) { + this.serviceId = serviceId; + return this; + } + + /** + * 服务id + * @return serviceId + */ + public String getServiceId() { + return serviceId; + } + + public void setServiceId(String serviceId) { + this.serviceId = serviceId; + } + + public ListAlertTemplatesRequest withName(String name) { + this.name = name; + return this; + } + + /** + * 模板名称 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ListAlertTemplatesRequest withPageNum(Integer pageNum) { + this.pageNum = pageNum; + return this; + } + + /** + * 当前页数 + * @return pageNum + */ + public Integer getPageNum() { + return pageNum; + } + + public void setPageNum(Integer pageNum) { + this.pageNum = pageNum; + } + + public ListAlertTemplatesRequest withPageSize(Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * 每页数量 + * @return pageSize + */ + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListAlertTemplatesRequest that = (ListAlertTemplatesRequest) obj; + return Objects.equals(this.serviceId, that.serviceId) && Objects.equals(this.name, that.name) + && Objects.equals(this.pageNum, that.pageNum) && Objects.equals(this.pageSize, that.pageSize); + } + + @Override + public int hashCode() { + return Objects.hash(serviceId, name, pageNum, pageSize); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListAlertTemplatesRequest {\n"); + sb.append(" serviceId: ").append(toIndentedString(serviceId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" pageNum: ").append(toIndentedString(pageNum)).append("\n"); + sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAlertTemplatesResponse.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAlertTemplatesResponse.java new file mode 100644 index 0000000000..00df0bda7a --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAlertTemplatesResponse.java @@ -0,0 +1,526 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListAlertTemplatesResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "end_row") + + private Long endRow; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "has_next_page") + + private Boolean hasNextPage; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "has_previous_page") + + private Boolean hasPreviousPage; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_first_page") + + private Boolean isFirstPage; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_last_page") + + private Boolean isLastPage; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "list") + + private List list = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "navigateFirstPage") + + private Integer navigateFirstPage; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "navigateLastPage") + + private Integer navigateLastPage; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "navigatePages") + + private Integer navigatePages; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "navigatepageNums") + + private List navigatepageNums = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "next_page") + + private Integer nextPage; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "page_num") + + private Integer pageNum; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "page_size") + + private Integer pageSize; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "pages") + + private Integer pages; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "prePage") + + private Integer prePage; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "size") + + private Integer size; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "startRow") + + private Long startRow; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total") + + private Long total; + + public ListAlertTemplatesResponse withEndRow(Long endRow) { + this.endRow = endRow; + return this; + } + + /** + * Get endRow + * @return endRow + */ + public Long getEndRow() { + return endRow; + } + + public void setEndRow(Long endRow) { + this.endRow = endRow; + } + + public ListAlertTemplatesResponse withHasNextPage(Boolean hasNextPage) { + this.hasNextPage = hasNextPage; + return this; + } + + /** + * Get hasNextPage + * @return hasNextPage + */ + public Boolean getHasNextPage() { + return hasNextPage; + } + + public void setHasNextPage(Boolean hasNextPage) { + this.hasNextPage = hasNextPage; + } + + public ListAlertTemplatesResponse withHasPreviousPage(Boolean hasPreviousPage) { + this.hasPreviousPage = hasPreviousPage; + return this; + } + + /** + * Get hasPreviousPage + * @return hasPreviousPage + */ + public Boolean getHasPreviousPage() { + return hasPreviousPage; + } + + public void setHasPreviousPage(Boolean hasPreviousPage) { + this.hasPreviousPage = hasPreviousPage; + } + + public ListAlertTemplatesResponse withIsFirstPage(Boolean isFirstPage) { + this.isFirstPage = isFirstPage; + return this; + } + + /** + * Get isFirstPage + * @return isFirstPage + */ + public Boolean getIsFirstPage() { + return isFirstPage; + } + + public void setIsFirstPage(Boolean isFirstPage) { + this.isFirstPage = isFirstPage; + } + + public ListAlertTemplatesResponse withIsLastPage(Boolean isLastPage) { + this.isLastPage = isLastPage; + return this; + } + + /** + * Get isLastPage + * @return isLastPage + */ + public Boolean getIsLastPage() { + return isLastPage; + } + + public void setIsLastPage(Boolean isLastPage) { + this.isLastPage = isLastPage; + } + + public ListAlertTemplatesResponse withList(List list) { + this.list = list; + return this; + } + + public ListAlertTemplatesResponse addListItem(AlertTemplateVo listItem) { + if (this.list == null) { + this.list = new ArrayList<>(); + } + this.list.add(listItem); + return this; + } + + public ListAlertTemplatesResponse withList(Consumer> listSetter) { + if (this.list == null) { + this.list = new ArrayList<>(); + } + listSetter.accept(this.list); + return this; + } + + /** + * Get list + * @return list + */ + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public ListAlertTemplatesResponse withNavigateFirstPage(Integer navigateFirstPage) { + this.navigateFirstPage = navigateFirstPage; + return this; + } + + /** + * Get navigateFirstPage + * @return navigateFirstPage + */ + public Integer getNavigateFirstPage() { + return navigateFirstPage; + } + + public void setNavigateFirstPage(Integer navigateFirstPage) { + this.navigateFirstPage = navigateFirstPage; + } + + public ListAlertTemplatesResponse withNavigateLastPage(Integer navigateLastPage) { + this.navigateLastPage = navigateLastPage; + return this; + } + + /** + * Get navigateLastPage + * @return navigateLastPage + */ + public Integer getNavigateLastPage() { + return navigateLastPage; + } + + public void setNavigateLastPage(Integer navigateLastPage) { + this.navigateLastPage = navigateLastPage; + } + + public ListAlertTemplatesResponse withNavigatePages(Integer navigatePages) { + this.navigatePages = navigatePages; + return this; + } + + /** + * Get navigatePages + * @return navigatePages + */ + public Integer getNavigatePages() { + return navigatePages; + } + + public void setNavigatePages(Integer navigatePages) { + this.navigatePages = navigatePages; + } + + public ListAlertTemplatesResponse withNavigatepageNums(List navigatepageNums) { + this.navigatepageNums = navigatepageNums; + return this; + } + + public ListAlertTemplatesResponse addNavigatepageNumsItem(Integer navigatepageNumsItem) { + if (this.navigatepageNums == null) { + this.navigatepageNums = new ArrayList<>(); + } + this.navigatepageNums.add(navigatepageNumsItem); + return this; + } + + public ListAlertTemplatesResponse withNavigatepageNums(Consumer> navigatepageNumsSetter) { + if (this.navigatepageNums == null) { + this.navigatepageNums = new ArrayList<>(); + } + navigatepageNumsSetter.accept(this.navigatepageNums); + return this; + } + + /** + * Get navigatepageNums + * @return navigatepageNums + */ + public List getNavigatepageNums() { + return navigatepageNums; + } + + public void setNavigatepageNums(List navigatepageNums) { + this.navigatepageNums = navigatepageNums; + } + + public ListAlertTemplatesResponse withNextPage(Integer nextPage) { + this.nextPage = nextPage; + return this; + } + + /** + * Get nextPage + * @return nextPage + */ + public Integer getNextPage() { + return nextPage; + } + + public void setNextPage(Integer nextPage) { + this.nextPage = nextPage; + } + + public ListAlertTemplatesResponse withPageNum(Integer pageNum) { + this.pageNum = pageNum; + return this; + } + + /** + * Get pageNum + * @return pageNum + */ + public Integer getPageNum() { + return pageNum; + } + + public void setPageNum(Integer pageNum) { + this.pageNum = pageNum; + } + + public ListAlertTemplatesResponse withPageSize(Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Get pageSize + * @return pageSize + */ + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public ListAlertTemplatesResponse withPages(Integer pages) { + this.pages = pages; + return this; + } + + /** + * Get pages + * @return pages + */ + public Integer getPages() { + return pages; + } + + public void setPages(Integer pages) { + this.pages = pages; + } + + public ListAlertTemplatesResponse withPrePage(Integer prePage) { + this.prePage = prePage; + return this; + } + + /** + * Get prePage + * @return prePage + */ + public Integer getPrePage() { + return prePage; + } + + public void setPrePage(Integer prePage) { + this.prePage = prePage; + } + + public ListAlertTemplatesResponse withSize(Integer size) { + this.size = size; + return this; + } + + /** + * Get size + * @return size + */ + public Integer getSize() { + return size; + } + + public void setSize(Integer size) { + this.size = size; + } + + public ListAlertTemplatesResponse withStartRow(Long startRow) { + this.startRow = startRow; + return this; + } + + /** + * Get startRow + * @return startRow + */ + public Long getStartRow() { + return startRow; + } + + public void setStartRow(Long startRow) { + this.startRow = startRow; + } + + public ListAlertTemplatesResponse withTotal(Long total) { + this.total = total; + return this; + } + + /** + * Get total + * @return total + */ + public Long getTotal() { + return total; + } + + public void setTotal(Long total) { + this.total = total; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListAlertTemplatesResponse that = (ListAlertTemplatesResponse) obj; + return Objects.equals(this.endRow, that.endRow) && Objects.equals(this.hasNextPage, that.hasNextPage) + && Objects.equals(this.hasPreviousPage, that.hasPreviousPage) + && Objects.equals(this.isFirstPage, that.isFirstPage) && Objects.equals(this.isLastPage, that.isLastPage) + && Objects.equals(this.list, that.list) && Objects.equals(this.navigateFirstPage, that.navigateFirstPage) + && Objects.equals(this.navigateLastPage, that.navigateLastPage) + && Objects.equals(this.navigatePages, that.navigatePages) + && Objects.equals(this.navigatepageNums, that.navigatepageNums) + && Objects.equals(this.nextPage, that.nextPage) && Objects.equals(this.pageNum, that.pageNum) + && Objects.equals(this.pageSize, that.pageSize) && Objects.equals(this.pages, that.pages) + && Objects.equals(this.prePage, that.prePage) && Objects.equals(this.size, that.size) + && Objects.equals(this.startRow, that.startRow) && Objects.equals(this.total, that.total); + } + + @Override + public int hashCode() { + return Objects.hash(endRow, + hasNextPage, + hasPreviousPage, + isFirstPage, + isLastPage, + list, + navigateFirstPage, + navigateLastPage, + navigatePages, + navigatepageNums, + nextPage, + pageNum, + pageSize, + pages, + prePage, + size, + startRow, + total); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListAlertTemplatesResponse {\n"); + sb.append(" endRow: ").append(toIndentedString(endRow)).append("\n"); + sb.append(" hasNextPage: ").append(toIndentedString(hasNextPage)).append("\n"); + sb.append(" hasPreviousPage: ").append(toIndentedString(hasPreviousPage)).append("\n"); + sb.append(" isFirstPage: ").append(toIndentedString(isFirstPage)).append("\n"); + sb.append(" isLastPage: ").append(toIndentedString(isLastPage)).append("\n"); + sb.append(" list: ").append(toIndentedString(list)).append("\n"); + sb.append(" navigateFirstPage: ").append(toIndentedString(navigateFirstPage)).append("\n"); + sb.append(" navigateLastPage: ").append(toIndentedString(navigateLastPage)).append("\n"); + sb.append(" navigatePages: ").append(toIndentedString(navigatePages)).append("\n"); + sb.append(" navigatepageNums: ").append(toIndentedString(navigatepageNums)).append("\n"); + sb.append(" nextPage: ").append(toIndentedString(nextPage)).append("\n"); + sb.append(" pageNum: ").append(toIndentedString(pageNum)).append("\n"); + sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); + sb.append(" pages: ").append(toIndentedString(pages)).append("\n"); + sb.append(" prePage: ").append(toIndentedString(prePage)).append("\n"); + sb.append(" size: ").append(toIndentedString(size)).append("\n"); + sb.append(" startRow: ").append(toIndentedString(startRow)).append("\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAllBranchesRequest.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAllBranchesRequest.java new file mode 100644 index 0000000000..c107135c6a --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAllBranchesRequest.java @@ -0,0 +1,119 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListAllBranchesRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_uuid") + + private String projectUuid; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sort_field") + + private String sortField; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sort_type") + + private String sortType; + + public ListAllBranchesRequest withProjectUuid(String projectUuid) { + this.projectUuid = projectUuid; + return this; + } + + /** + * 项目ID(云龙场景,传入微服务ID) + * @return projectUuid + */ + public String getProjectUuid() { + return projectUuid; + } + + public void setProjectUuid(String projectUuid) { + this.projectUuid = projectUuid; + } + + public ListAllBranchesRequest withSortField(String sortField) { + this.sortField = sortField; + return this; + } + + /** + * 排序字段 + * @return sortField + */ + public String getSortField() { + return sortField; + } + + public void setSortField(String sortField) { + this.sortField = sortField; + } + + public ListAllBranchesRequest withSortType(String sortType) { + this.sortType = sortType; + return this; + } + + /** + * 排序方式 + * @return sortType + */ + public String getSortType() { + return sortType; + } + + public void setSortType(String sortType) { + this.sortType = sortType; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListAllBranchesRequest that = (ListAllBranchesRequest) obj; + return Objects.equals(this.projectUuid, that.projectUuid) && Objects.equals(this.sortField, that.sortField) + && Objects.equals(this.sortType, that.sortType); + } + + @Override + public int hashCode() { + return Objects.hash(projectUuid, sortField, sortType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListAllBranchesRequest {\n"); + sb.append(" projectUuid: ").append(toIndentedString(projectUuid)).append("\n"); + sb.append(" sortField: ").append(toIndentedString(sortField)).append("\n"); + sb.append(" sortType: ").append(toIndentedString(sortType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAllBranchesResponse.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAllBranchesResponse.java new file mode 100644 index 0000000000..815c124c31 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAllBranchesResponse.java @@ -0,0 +1,106 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListAllBranchesResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private String status; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "result") + + private ResultValueListTestVersionVo result; + + public ListAllBranchesResponse withStatus(String status) { + this.status = status; + return this; + } + + /** + * 对外时:success|error; + * @return status + */ + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public ListAllBranchesResponse withResult(ResultValueListTestVersionVo result) { + this.result = result; + return this; + } + + public ListAllBranchesResponse withResult(Consumer resultSetter) { + if (this.result == null) { + this.result = new ResultValueListTestVersionVo(); + resultSetter.accept(this.result); + } + + return this; + } + + /** + * Get result + * @return result + */ + public ResultValueListTestVersionVo getResult() { + return result; + } + + public void setResult(ResultValueListTestVersionVo result) { + this.result = result; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListAllBranchesResponse that = (ListAllBranchesResponse) obj; + return Objects.equals(this.status, that.status) && Objects.equals(this.result, that.result); + } + + @Override + public int hashCode() { + return Objects.hash(status, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListAllBranchesResponse {\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAllConfigItemByTypeRequest.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAllConfigItemByTypeRequest.java new file mode 100644 index 0000000000..9548f9da6d --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAllConfigItemByTypeRequest.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class ListAllConfigItemByTypeRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "service_id") + + private String serviceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private ListAllConfigItemByTypeRequestBody body; + + public ListAllConfigItemByTypeRequest withServiceId(String serviceId) { + this.serviceId = serviceId; + return this; + } + + /** + * 服务id + * @return serviceId + */ + public String getServiceId() { + return serviceId; + } + + public void setServiceId(String serviceId) { + this.serviceId = serviceId; + } + + public ListAllConfigItemByTypeRequest withBody(ListAllConfigItemByTypeRequestBody body) { + this.body = body; + return this; + } + + public ListAllConfigItemByTypeRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new ListAllConfigItemByTypeRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public ListAllConfigItemByTypeRequestBody getBody() { + return body; + } + + public void setBody(ListAllConfigItemByTypeRequestBody body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListAllConfigItemByTypeRequest that = (ListAllConfigItemByTypeRequest) obj; + return Objects.equals(this.serviceId, that.serviceId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(serviceId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListAllConfigItemByTypeRequest {\n"); + sb.append(" serviceId: ").append(toIndentedString(serviceId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAllConfigItemByTypeRequestBody.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAllConfigItemByTypeRequestBody.java new file mode 100644 index 0000000000..f238edaac2 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAllConfigItemByTypeRequestBody.java @@ -0,0 +1,114 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * ListAllConfigItemByTypeRequestBody + */ +public class ListAllConfigItemByTypeRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "configType") + + private String configType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "types") + + private List types = null; + + public ListAllConfigItemByTypeRequestBody withConfigType(String configType) { + this.configType = configType; + return this; + } + + /** + * 系统配置,服务自己配置{system、service} + * @return configType + */ + public String getConfigType() { + return configType; + } + + public void setConfigType(String configType) { + this.configType = configType; + } + + public ListAllConfigItemByTypeRequestBody withTypes(List types) { + this.types = types; + return this; + } + + public ListAllConfigItemByTypeRequestBody addTypesItem(String typesItem) { + if (this.types == null) { + this.types = new ArrayList<>(); + } + this.types.add(typesItem); + return this; + } + + public ListAllConfigItemByTypeRequestBody withTypes(Consumer> typesSetter) { + if (this.types == null) { + this.types = new ArrayList<>(); + } + typesSetter.accept(this.types); + return this; + } + + /** + * 配置类型集合 + * @return types + */ + public List getTypes() { + return types; + } + + public void setTypes(List types) { + this.types = types; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListAllConfigItemByTypeRequestBody that = (ListAllConfigItemByTypeRequestBody) obj; + return Objects.equals(this.configType, that.configType) && Objects.equals(this.types, that.types); + } + + @Override + public int hashCode() { + return Objects.hash(configType, types); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListAllConfigItemByTypeRequestBody {\n"); + sb.append(" configType: ").append(toIndentedString(configType)).append("\n"); + sb.append(" types: ").append(toIndentedString(types)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAllConfigItemByTypeResponse.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAllConfigItemByTypeResponse.java new file mode 100644 index 0000000000..e659a8537f --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAllConfigItemByTypeResponse.java @@ -0,0 +1,96 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class ListAllConfigItemByTypeResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "error_code") + + private String errorCode; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "error_msg") + + private String errorMsg; + + public ListAllConfigItemByTypeResponse withErrorCode(String errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * 错误编码 + * @return errorCode + */ + public String getErrorCode() { + return errorCode; + } + + public void setErrorCode(String errorCode) { + this.errorCode = errorCode; + } + + public ListAllConfigItemByTypeResponse withErrorMsg(String errorMsg) { + this.errorMsg = errorMsg; + return this; + } + + /** + * 错误原因 + * @return errorMsg + */ + public String getErrorMsg() { + return errorMsg; + } + + public void setErrorMsg(String errorMsg) { + this.errorMsg = errorMsg; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListAllConfigItemByTypeResponse that = (ListAllConfigItemByTypeResponse) obj; + return Objects.equals(this.errorCode, that.errorCode) && Objects.equals(this.errorMsg, that.errorMsg); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, errorMsg); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListAllConfigItemByTypeResponse {\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" errorMsg: ").append(toIndentedString(errorMsg)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAllIteratorsRequest.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAllIteratorsRequest.java new file mode 100644 index 0000000000..1b3901bee1 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAllIteratorsRequest.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListAllIteratorsRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_id") + + private String projectId; + + public ListAllIteratorsRequest withProjectId(String projectId) { + this.projectId = projectId; + return this; + } + + /** + * 项目ID,固定长度32位字符(字母和数字)。 + * @return projectId + */ + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListAllIteratorsRequest that = (ListAllIteratorsRequest) obj; + return Objects.equals(this.projectId, that.projectId); + } + + @Override + public int hashCode() { + return Objects.hash(projectId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListAllIteratorsRequest {\n"); + sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAllIteratorsResponse.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAllIteratorsResponse.java new file mode 100644 index 0000000000..a1a16167cc --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAllIteratorsResponse.java @@ -0,0 +1,209 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListAllIteratorsResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total") + + private Integer total; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private List value = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "reason") + + private String reason; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "page_size") + + private Integer pageSize; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "page_no") + + private Integer pageNo; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "has_more") + + private Boolean hasMore; + + public ListAllIteratorsResponse withTotal(Integer total) { + this.total = total; + return this; + } + + /** + * 起始记录数 大于 实际总条数时, 值为0, 分页请求才有此值 + * @return total + */ + public Integer getTotal() { + return total; + } + + public void setTotal(Integer total) { + this.total = total; + } + + public ListAllIteratorsResponse withValue(List value) { + this.value = value; + return this; + } + + public ListAllIteratorsResponse addValueItem(TestVersionVo valueItem) { + if (this.value == null) { + this.value = new ArrayList<>(); + } + this.value.add(valueItem); + return this; + } + + public ListAllIteratorsResponse withValue(Consumer> valueSetter) { + if (this.value == null) { + this.value = new ArrayList<>(); + } + valueSetter.accept(this.value); + return this; + } + + /** + * 实际的数据类型:单个对象,集合 或 NULL + * @return value + */ + public List getValue() { + return value; + } + + public void setValue(List value) { + this.value = value; + } + + public ListAllIteratorsResponse withReason(String reason) { + this.reason = reason; + return this; + } + + /** + * 业务失败的提示内容,对内接口才有此值 + * @return reason + */ + public String getReason() { + return reason; + } + + public void setReason(String reason) { + this.reason = reason; + } + + public ListAllIteratorsResponse withPageSize(Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Get pageSize + * @return pageSize + */ + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public ListAllIteratorsResponse withPageNo(Integer pageNo) { + this.pageNo = pageNo; + return this; + } + + /** + * Get pageNo + * @return pageNo + */ + public Integer getPageNo() { + return pageNo; + } + + public void setPageNo(Integer pageNo) { + this.pageNo = pageNo; + } + + public ListAllIteratorsResponse withHasMore(Boolean hasMore) { + this.hasMore = hasMore; + return this; + } + + /** + * Get hasMore + * @return hasMore + */ + public Boolean getHasMore() { + return hasMore; + } + + public void setHasMore(Boolean hasMore) { + this.hasMore = hasMore; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListAllIteratorsResponse that = (ListAllIteratorsResponse) obj; + return Objects.equals(this.total, that.total) && Objects.equals(this.value, that.value) + && Objects.equals(this.reason, that.reason) && Objects.equals(this.pageSize, that.pageSize) + && Objects.equals(this.pageNo, that.pageNo) && Objects.equals(this.hasMore, that.hasMore); + } + + @Override + public int hashCode() { + return Objects.hash(total, value, reason, pageSize, pageNo, hasMore); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListAllIteratorsResponse {\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); + sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); + sb.append(" pageNo: ").append(toIndentedString(pageNo)).append("\n"); + sb.append(" hasMore: ").append(toIndentedString(hasMore)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAttachmentsRequest.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAttachmentsRequest.java new file mode 100644 index 0000000000..f8f5b1fd7f --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAttachmentsRequest.java @@ -0,0 +1,119 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListAttachmentsRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_id") + + private String projectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "resource_uri") + + private String resourceUri; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "resource_type") + + private String resourceType; + + public ListAttachmentsRequest withProjectId(String projectId) { + this.projectId = projectId; + return this; + } + + /** + * 项目ID,固定长度32位字符(字母和数字)。 + * @return projectId + */ + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public ListAttachmentsRequest withResourceUri(String resourceUri) { + this.resourceUri = resourceUri; + return this; + } + + /** + * 资源Uri + * @return resourceUri + */ + public String getResourceUri() { + return resourceUri; + } + + public void setResourceUri(String resourceUri) { + this.resourceUri = resourceUri; + } + + public ListAttachmentsRequest withResourceType(String resourceType) { + this.resourceType = resourceType; + return this; + } + + /** + * 资源类型 + * @return resourceType + */ + public String getResourceType() { + return resourceType; + } + + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListAttachmentsRequest that = (ListAttachmentsRequest) obj; + return Objects.equals(this.projectId, that.projectId) && Objects.equals(this.resourceUri, that.resourceUri) + && Objects.equals(this.resourceType, that.resourceType); + } + + @Override + public int hashCode() { + return Objects.hash(projectId, resourceUri, resourceType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListAttachmentsRequest {\n"); + sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); + sb.append(" resourceUri: ").append(toIndentedString(resourceUri)).append("\n"); + sb.append(" resourceType: ").append(toIndentedString(resourceType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAttachmentsResponse.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAttachmentsResponse.java new file mode 100644 index 0000000000..48376d237f --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListAttachmentsResponse.java @@ -0,0 +1,92 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListAttachmentsResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private List value = null; + + public ListAttachmentsResponse withValue(List value) { + this.value = value; + return this; + } + + public ListAttachmentsResponse addValueItem(AttachmentVo valueItem) { + if (this.value == null) { + this.value = new ArrayList<>(); + } + this.value.add(valueItem); + return this; + } + + public ListAttachmentsResponse withValue(Consumer> valueSetter) { + if (this.value == null) { + this.value = new ArrayList<>(); + } + valueSetter.accept(this.value); + return this; + } + + /** + * 实际的数据类型:单个对象,集合 或 NULL + * @return value + */ + public List getValue() { + return value; + } + + public void setValue(List value) { + this.value = value; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListAttachmentsResponse that = (ListAttachmentsResponse) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListAttachmentsResponse {\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListBasicAwRequest.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListBasicAwRequest.java new file mode 100644 index 0000000000..157ae7ee4c --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListBasicAwRequest.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListBasicAwRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_id") + + private String projectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "aw_id") + + private String awId; + + public ListBasicAwRequest withProjectId(String projectId) { + this.projectId = projectId; + return this; + } + + /** + * 项目ID,固定长度32位字符(字母和数字)。 + * @return projectId + */ + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public ListBasicAwRequest withAwId(String awId) { + this.awId = awId; + return this; + } + + /** + * AW ID + * @return awId + */ + public String getAwId() { + return awId; + } + + public void setAwId(String awId) { + this.awId = awId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListBasicAwRequest that = (ListBasicAwRequest) obj; + return Objects.equals(this.projectId, that.projectId) && Objects.equals(this.awId, that.awId); + } + + @Override + public int hashCode() { + return Objects.hash(projectId, awId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListBasicAwRequest {\n"); + sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); + sb.append(" awId: ").append(toIndentedString(awId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListBasicAwResponse.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListBasicAwResponse.java new file mode 100644 index 0000000000..c3a2bc30fc --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListBasicAwResponse.java @@ -0,0 +1,186 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListBasicAwResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "code") + + private String code; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "error") + + private CommonResponseErrorOfAPITest error; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "reason") + + private String reason; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "result") + + private BasicAwRes result; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private String status; + + public ListBasicAwResponse withCode(String code) { + this.code = code; + return this; + } + + /** + * 错误码 + * @return code + */ + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public ListBasicAwResponse withError(CommonResponseErrorOfAPITest error) { + this.error = error; + return this; + } + + public ListBasicAwResponse withError(Consumer errorSetter) { + if (this.error == null) { + this.error = new CommonResponseErrorOfAPITest(); + errorSetter.accept(this.error); + } + + return this; + } + + /** + * Get error + * @return error + */ + public CommonResponseErrorOfAPITest getError() { + return error; + } + + public void setError(CommonResponseErrorOfAPITest error) { + this.error = error; + } + + public ListBasicAwResponse withReason(String reason) { + this.reason = reason; + return this; + } + + /** + * 失败原因 + * @return reason + */ + public String getReason() { + return reason; + } + + public void setReason(String reason) { + this.reason = reason; + } + + public ListBasicAwResponse withResult(BasicAwRes result) { + this.result = result; + return this; + } + + public ListBasicAwResponse withResult(Consumer resultSetter) { + if (this.result == null) { + this.result = new BasicAwRes(); + resultSetter.accept(this.result); + } + + return this; + } + + /** + * Get result + * @return result + */ + public BasicAwRes getResult() { + return result; + } + + public void setResult(BasicAwRes result) { + this.result = result; + } + + public ListBasicAwResponse withStatus(String status) { + this.status = status; + return this; + } + + /** + * 状态 + * @return status + */ + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListBasicAwResponse that = (ListBasicAwResponse) obj; + return Objects.equals(this.code, that.code) && Objects.equals(this.error, that.error) + && Objects.equals(this.reason, that.reason) && Objects.equals(this.result, that.result) + && Objects.equals(this.status, that.status); + } + + @Override + public int hashCode() { + return Objects.hash(code, error, reason, result, status); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListBasicAwResponse {\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListIssueTreeRequest.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListIssueTreeRequest.java new file mode 100644 index 0000000000..d1fc5ee30d --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListIssueTreeRequest.java @@ -0,0 +1,129 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class ListIssueTreeRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_id") + + private String projectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "version_id") + + private String versionId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private QueryIssueTreeInfo body; + + public ListIssueTreeRequest withProjectId(String projectId) { + this.projectId = projectId; + return this; + } + + /** + * 项目ID,固定长度32位字符(字母和数字)。 + * @return projectId + */ + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public ListIssueTreeRequest withVersionId(String versionId) { + this.versionId = versionId; + return this; + } + + /** + * 版本id + * @return versionId + */ + public String getVersionId() { + return versionId; + } + + public void setVersionId(String versionId) { + this.versionId = versionId; + } + + public ListIssueTreeRequest withBody(QueryIssueTreeInfo body) { + this.body = body; + return this; + } + + public ListIssueTreeRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new QueryIssueTreeInfo(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public QueryIssueTreeInfo getBody() { + return body; + } + + public void setBody(QueryIssueTreeInfo body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListIssueTreeRequest that = (ListIssueTreeRequest) obj; + return Objects.equals(this.projectId, that.projectId) && Objects.equals(this.versionId, that.versionId) + && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(projectId, versionId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListIssueTreeRequest {\n"); + sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); + sb.append(" versionId: ").append(toIndentedString(versionId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListIssueTreeResponse.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListIssueTreeResponse.java new file mode 100644 index 0000000000..c6cf43b40f --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListIssueTreeResponse.java @@ -0,0 +1,92 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListIssueTreeResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private List value = null; + + public ListIssueTreeResponse withValue(List value) { + this.value = value; + return this; + } + + public ListIssueTreeResponse addValueItem(WorkItemVo valueItem) { + if (this.value == null) { + this.value = new ArrayList<>(); + } + this.value.add(valueItem); + return this; + } + + public ListIssueTreeResponse withValue(Consumer> valueSetter) { + if (this.value == null) { + this.value = new ArrayList<>(); + } + valueSetter.accept(this.value); + return this; + } + + /** + * 实际的数据类型:单个对象,集合 或 NULL + * @return value + */ + public List getValue() { + return value; + } + + public void setValue(List value) { + this.value = value; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListIssueTreeResponse that = (ListIssueTreeResponse) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListIssueTreeResponse {\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListProjectFieldConfigsRequest.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListProjectFieldConfigsRequest.java new file mode 100644 index 0000000000..adf0a8eb8f --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListProjectFieldConfigsRequest.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListProjectFieldConfigsRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_id") + + private String projectId; + + public ListProjectFieldConfigsRequest withProjectId(String projectId) { + this.projectId = projectId; + return this; + } + + /** + * 项目ID,固定长度32位字符(字母和数字)。 + * @return projectId + */ + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListProjectFieldConfigsRequest that = (ListProjectFieldConfigsRequest) obj; + return Objects.equals(this.projectId, that.projectId); + } + + @Override + public int hashCode() { + return Objects.hash(projectId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListProjectFieldConfigsRequest {\n"); + sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListProjectFieldConfigsResponse.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListProjectFieldConfigsResponse.java new file mode 100644 index 0000000000..fe78d89c69 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListProjectFieldConfigsResponse.java @@ -0,0 +1,186 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListProjectFieldConfigsResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private String status; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "result") + + private ResultValueListProjectFieldConfigVo result; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "error") + + private ApiError error; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "request_id") + + private String requestId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "server_address") + + private String serverAddress; + + public ListProjectFieldConfigsResponse withStatus(String status) { + this.status = status; + return this; + } + + /** + * 对外时:success|error; 对内时:ok|failed + * @return status + */ + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public ListProjectFieldConfigsResponse withResult(ResultValueListProjectFieldConfigVo result) { + this.result = result; + return this; + } + + public ListProjectFieldConfigsResponse withResult(Consumer resultSetter) { + if (this.result == null) { + this.result = new ResultValueListProjectFieldConfigVo(); + resultSetter.accept(this.result); + } + + return this; + } + + /** + * Get result + * @return result + */ + public ResultValueListProjectFieldConfigVo getResult() { + return result; + } + + public void setResult(ResultValueListProjectFieldConfigVo result) { + this.result = result; + } + + public ListProjectFieldConfigsResponse withError(ApiError error) { + this.error = error; + return this; + } + + public ListProjectFieldConfigsResponse withError(Consumer errorSetter) { + if (this.error == null) { + this.error = new ApiError(); + errorSetter.accept(this.error); + } + + return this; + } + + /** + * Get error + * @return error + */ + public ApiError getError() { + return error; + } + + public void setError(ApiError error) { + this.error = error; + } + + public ListProjectFieldConfigsResponse withRequestId(String requestId) { + this.requestId = requestId; + return this; + } + + /** + * 由接口调用方传入,建议使用UUID保证请求的唯一性。 + * @return requestId + */ + public String getRequestId() { + return requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public ListProjectFieldConfigsResponse withServerAddress(String serverAddress) { + this.serverAddress = serverAddress; + return this; + } + + /** + * 对内接口才有此属性 + * @return serverAddress + */ + public String getServerAddress() { + return serverAddress; + } + + public void setServerAddress(String serverAddress) { + this.serverAddress = serverAddress; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListProjectFieldConfigsResponse that = (ListProjectFieldConfigsResponse) obj; + return Objects.equals(this.status, that.status) && Objects.equals(this.result, that.result) + && Objects.equals(this.error, that.error) && Objects.equals(this.requestId, that.requestId) + && Objects.equals(this.serverAddress, that.serverAddress); + } + + @Override + public int hashCode() { + return Objects.hash(status, result, error, requestId, serverAddress); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListProjectFieldConfigsResponse {\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); + sb.append(" serverAddress: ").append(toIndentedString(serverAddress)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListProjectTestCaseFieldsRequest.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListProjectTestCaseFieldsRequest.java new file mode 100644 index 0000000000..60e9dd51f3 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListProjectTestCaseFieldsRequest.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListProjectTestCaseFieldsRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_id") + + private String projectId; + + public ListProjectTestCaseFieldsRequest withProjectId(String projectId) { + this.projectId = projectId; + return this; + } + + /** + * 项目ID,固定长度32位字符(字母和数字)。 + * @return projectId + */ + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListProjectTestCaseFieldsRequest that = (ListProjectTestCaseFieldsRequest) obj; + return Objects.equals(this.projectId, that.projectId); + } + + @Override + public int hashCode() { + return Objects.hash(projectId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListProjectTestCaseFieldsRequest {\n"); + sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListProjectTestCaseFieldsResponse.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListProjectTestCaseFieldsResponse.java new file mode 100644 index 0000000000..6757de02fe --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListProjectTestCaseFieldsResponse.java @@ -0,0 +1,92 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListProjectTestCaseFieldsResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private List value = null; + + public ListProjectTestCaseFieldsResponse withValue(List value) { + this.value = value; + return this; + } + + public ListProjectTestCaseFieldsResponse addValueItem(ProjectTestCaseFieldVo valueItem) { + if (this.value == null) { + this.value = new ArrayList<>(); + } + this.value.add(valueItem); + return this; + } + + public ListProjectTestCaseFieldsResponse withValue(Consumer> valueSetter) { + if (this.value == null) { + this.value = new ArrayList<>(); + } + valueSetter.accept(this.value); + return this; + } + + /** + * Get value + * @return value + */ + public List getValue() { + return value; + } + + public void setValue(List value) { + this.value = value; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListProjectTestCaseFieldsResponse that = (ListProjectTestCaseFieldsResponse) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListProjectTestCaseFieldsResponse {\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListPublicLibAndAwsRequest.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListPublicLibAndAwsRequest.java new file mode 100644 index 0000000000..2e70b2eba5 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListPublicLibAndAwsRequest.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListPublicLibAndAwsRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_id") + + private String projectId; + + public ListPublicLibAndAwsRequest withProjectId(String projectId) { + this.projectId = projectId; + return this; + } + + /** + * 项目ID,固定长度32位字符(字母和数字)。 + * @return projectId + */ + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListPublicLibAndAwsRequest that = (ListPublicLibAndAwsRequest) obj; + return Objects.equals(this.projectId, that.projectId); + } + + @Override + public int hashCode() { + return Objects.hash(projectId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListPublicLibAndAwsRequest {\n"); + sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListPublicLibAndAwsResponse.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListPublicLibAndAwsResponse.java new file mode 100644 index 0000000000..a048f30450 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListPublicLibAndAwsResponse.java @@ -0,0 +1,195 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListPublicLibAndAwsResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "code") + + private String code; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "error") + + private CommonResponseErrorOfAPITest error; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "reason") + + private String reason; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "result") + + private List result = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private String status; + + public ListPublicLibAndAwsResponse withCode(String code) { + this.code = code; + return this; + } + + /** + * 错误码 + * @return code + */ + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public ListPublicLibAndAwsResponse withError(CommonResponseErrorOfAPITest error) { + this.error = error; + return this; + } + + public ListPublicLibAndAwsResponse withError(Consumer errorSetter) { + if (this.error == null) { + this.error = new CommonResponseErrorOfAPITest(); + errorSetter.accept(this.error); + } + + return this; + } + + /** + * Get error + * @return error + */ + public CommonResponseErrorOfAPITest getError() { + return error; + } + + public void setError(CommonResponseErrorOfAPITest error) { + this.error = error; + } + + public ListPublicLibAndAwsResponse withReason(String reason) { + this.reason = reason; + return this; + } + + /** + * 失败原因 + * @return reason + */ + public String getReason() { + return reason; + } + + public void setReason(String reason) { + this.reason = reason; + } + + public ListPublicLibAndAwsResponse withResult(List result) { + this.result = result; + return this; + } + + public ListPublicLibAndAwsResponse addResultItem(GetPublicLibAndAwsResp resultItem) { + if (this.result == null) { + this.result = new ArrayList<>(); + } + this.result.add(resultItem); + return this; + } + + public ListPublicLibAndAwsResponse withResult(Consumer> resultSetter) { + if (this.result == null) { + this.result = new ArrayList<>(); + } + resultSetter.accept(this.result); + return this; + } + + /** + * 公共aw信息 + * @return result + */ + public List getResult() { + return result; + } + + public void setResult(List result) { + this.result = result; + } + + public ListPublicLibAndAwsResponse withStatus(String status) { + this.status = status; + return this; + } + + /** + * 状态 + * @return status + */ + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListPublicLibAndAwsResponse that = (ListPublicLibAndAwsResponse) obj; + return Objects.equals(this.code, that.code) && Objects.equals(this.error, that.error) + && Objects.equals(this.reason, that.reason) && Objects.equals(this.result, that.result) + && Objects.equals(this.status, that.status); + } + + @Override + public int hashCode() { + return Objects.hash(code, error, reason, result, status); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListPublicLibAndAwsResponse {\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListReportsRequest.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListReportsRequest.java new file mode 100644 index 0000000000..b6e016a739 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListReportsRequest.java @@ -0,0 +1,172 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListReportsRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_id") + + private String projectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "page_size") + + private Long pageSize; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "offset") + + private Long offset; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "version_id") + + private String versionId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "type") + + private Integer type; + + public ListReportsRequest withProjectId(String projectId) { + this.projectId = projectId; + return this; + } + + /** + * 项目ID,固定长度32位字符(字母和数字)。 + * @return projectId + */ + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public ListReportsRequest withPageSize(Long pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * 每页显示的条目数量,最大支持200条 + * minimum: 1 + * maximum: 200 + * @return pageSize + */ + public Long getPageSize() { + return pageSize; + } + + public void setPageSize(Long pageSize) { + this.pageSize = pageSize; + } + + public ListReportsRequest withOffset(Long offset) { + this.offset = offset; + return this; + } + + /** + * 页数,page_no大于等于1 + * minimum: 0 + * maximum: 20000 + * @return offset + */ + public Long getOffset() { + return offset; + } + + public void setOffset(Long offset) { + this.offset = offset; + } + + public ListReportsRequest withVersionId(String versionId) { + this.versionId = versionId; + return this; + } + + /** + * 版本id + * @return versionId + */ + public String getVersionId() { + return versionId; + } + + public void setVersionId(String versionId) { + this.versionId = versionId; + } + + public ListReportsRequest withType(Integer type) { + this.type = type; + return this; + } + + /** + * 报表类型 1:首页用例库, 2:质量报告 + * minimum: 1 + * maximum: 2 + * @return type + */ + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListReportsRequest that = (ListReportsRequest) obj; + return Objects.equals(this.projectId, that.projectId) && Objects.equals(this.pageSize, that.pageSize) + && Objects.equals(this.offset, that.offset) && Objects.equals(this.versionId, that.versionId) + && Objects.equals(this.type, that.type); + } + + @Override + public int hashCode() { + return Objects.hash(projectId, pageSize, offset, versionId, type); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListReportsRequest {\n"); + sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); + sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append(" versionId: ").append(toIndentedString(versionId)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListReportsResponse.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListReportsResponse.java new file mode 100644 index 0000000000..7f9d8a11ff --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListReportsResponse.java @@ -0,0 +1,106 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListReportsResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private String status; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "result") + + private ResultValueListCustomReportListVo result; + + public ListReportsResponse withStatus(String status) { + this.status = status; + return this; + } + + /** + * 对外时:success|error; 对内时:ok|failed + * @return status + */ + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public ListReportsResponse withResult(ResultValueListCustomReportListVo result) { + this.result = result; + return this; + } + + public ListReportsResponse withResult(Consumer resultSetter) { + if (this.result == null) { + this.result = new ResultValueListCustomReportListVo(); + resultSetter.accept(this.result); + } + + return this; + } + + /** + * Get result + * @return result + */ + public ResultValueListCustomReportListVo getResult() { + return result; + } + + public void setResult(ResultValueListCustomReportListVo result) { + this.result = result; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListReportsResponse that = (ListReportsResponse) obj; + return Objects.equals(this.status, that.status) && Objects.equals(this.result, that.result); + } + + @Override + public int hashCode() { + return Objects.hash(status, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListReportsResponse {\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListResourcePoolsRequest.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListResourcePoolsRequest.java new file mode 100644 index 0000000000..a951084678 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListResourcePoolsRequest.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListResourcePoolsRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_id") + + private String projectId; + + public ListResourcePoolsRequest withProjectId(String projectId) { + this.projectId = projectId; + return this; + } + + /** + * 项目ID,固定长度32位字符(字母和数字)。 + * @return projectId + */ + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListResourcePoolsRequest that = (ListResourcePoolsRequest) obj; + return Objects.equals(this.projectId, that.projectId); + } + + @Override + public int hashCode() { + return Objects.hash(projectId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListResourcePoolsRequest {\n"); + sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListResourcePoolsResponse.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListResourcePoolsResponse.java new file mode 100644 index 0000000000..a9e1429233 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListResourcePoolsResponse.java @@ -0,0 +1,162 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListResourcePoolsResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private String status; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "result") + + private ResultValueListResourcePoolVo result; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "error") + + private ApiError error; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "request_id") + + private String requestId; + + public ListResourcePoolsResponse withStatus(String status) { + this.status = status; + return this; + } + + /** + * 对外时:success|error; 对内时:ok|failed + * @return status + */ + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public ListResourcePoolsResponse withResult(ResultValueListResourcePoolVo result) { + this.result = result; + return this; + } + + public ListResourcePoolsResponse withResult(Consumer resultSetter) { + if (this.result == null) { + this.result = new ResultValueListResourcePoolVo(); + resultSetter.accept(this.result); + } + + return this; + } + + /** + * Get result + * @return result + */ + public ResultValueListResourcePoolVo getResult() { + return result; + } + + public void setResult(ResultValueListResourcePoolVo result) { + this.result = result; + } + + public ListResourcePoolsResponse withError(ApiError error) { + this.error = error; + return this; + } + + public ListResourcePoolsResponse withError(Consumer errorSetter) { + if (this.error == null) { + this.error = new ApiError(); + errorSetter.accept(this.error); + } + + return this; + } + + /** + * Get error + * @return error + */ + public ApiError getError() { + return error; + } + + public void setError(ApiError error) { + this.error = error; + } + + public ListResourcePoolsResponse withRequestId(String requestId) { + this.requestId = requestId; + return this; + } + + /** + * 由接口调用方传入,建议使用UUID保证请求的唯一性。 + * @return requestId + */ + public String getRequestId() { + return requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListResourcePoolsResponse that = (ListResourcePoolsResponse) obj; + return Objects.equals(this.status, that.status) && Objects.equals(this.result, that.result) + && Objects.equals(this.error, that.error) && Objects.equals(this.requestId, that.requestId); + } + + @Override + public int hashCode() { + return Objects.hash(status, result, error, requestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListResourcePoolsResponse {\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListTaskTestCasesRequest.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListTaskTestCasesRequest.java new file mode 100644 index 0000000000..fc145f44e4 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListTaskTestCasesRequest.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class ListTaskTestCasesRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_id") + + private String projectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private QueryTaskTestCasesInfo body; + + public ListTaskTestCasesRequest withProjectId(String projectId) { + this.projectId = projectId; + return this; + } + + /** + * 项目ID,固定长度32位字符(字母和数字)。 + * @return projectId + */ + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public ListTaskTestCasesRequest withBody(QueryTaskTestCasesInfo body) { + this.body = body; + return this; + } + + public ListTaskTestCasesRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new QueryTaskTestCasesInfo(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public QueryTaskTestCasesInfo getBody() { + return body; + } + + public void setBody(QueryTaskTestCasesInfo body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListTaskTestCasesRequest that = (ListTaskTestCasesRequest) obj; + return Objects.equals(this.projectId, that.projectId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(projectId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListTaskTestCasesRequest {\n"); + sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListTaskTestCasesResponse.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListTaskTestCasesResponse.java new file mode 100644 index 0000000000..ee6b163cc6 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListTaskTestCasesResponse.java @@ -0,0 +1,172 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListTaskTestCasesResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "related_case_uris") + + private List relatedCaseUris = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "not_related_case_uris") + + private List notRelatedCaseUris = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "case_task_info") + + private List caseTaskInfo = null; + + public ListTaskTestCasesResponse withRelatedCaseUris(List relatedCaseUris) { + this.relatedCaseUris = relatedCaseUris; + return this; + } + + public ListTaskTestCasesResponse addRelatedCaseUrisItem(String relatedCaseUrisItem) { + if (this.relatedCaseUris == null) { + this.relatedCaseUris = new ArrayList<>(); + } + this.relatedCaseUris.add(relatedCaseUrisItem); + return this; + } + + public ListTaskTestCasesResponse withRelatedCaseUris(Consumer> relatedCaseUrisSetter) { + if (this.relatedCaseUris == null) { + this.relatedCaseUris = new ArrayList<>(); + } + relatedCaseUrisSetter.accept(this.relatedCaseUris); + return this; + } + + /** + * 关联的用例uris + * @return relatedCaseUris + */ + public List getRelatedCaseUris() { + return relatedCaseUris; + } + + public void setRelatedCaseUris(List relatedCaseUris) { + this.relatedCaseUris = relatedCaseUris; + } + + public ListTaskTestCasesResponse withNotRelatedCaseUris(List notRelatedCaseUris) { + this.notRelatedCaseUris = notRelatedCaseUris; + return this; + } + + public ListTaskTestCasesResponse addNotRelatedCaseUrisItem(String notRelatedCaseUrisItem) { + if (this.notRelatedCaseUris == null) { + this.notRelatedCaseUris = new ArrayList<>(); + } + this.notRelatedCaseUris.add(notRelatedCaseUrisItem); + return this; + } + + public ListTaskTestCasesResponse withNotRelatedCaseUris(Consumer> notRelatedCaseUrisSetter) { + if (this.notRelatedCaseUris == null) { + this.notRelatedCaseUris = new ArrayList<>(); + } + notRelatedCaseUrisSetter.accept(this.notRelatedCaseUris); + return this; + } + + /** + * 未关联的用例uris + * @return notRelatedCaseUris + */ + public List getNotRelatedCaseUris() { + return notRelatedCaseUris; + } + + public void setNotRelatedCaseUris(List notRelatedCaseUris) { + this.notRelatedCaseUris = notRelatedCaseUris; + } + + public ListTaskTestCasesResponse withCaseTaskInfo(List caseTaskInfo) { + this.caseTaskInfo = caseTaskInfo; + return this; + } + + public ListTaskTestCasesResponse addCaseTaskInfoItem(RelateTaskTestCasesVo caseTaskInfoItem) { + if (this.caseTaskInfo == null) { + this.caseTaskInfo = new ArrayList<>(); + } + this.caseTaskInfo.add(caseTaskInfoItem); + return this; + } + + public ListTaskTestCasesResponse withCaseTaskInfo(Consumer> caseTaskInfoSetter) { + if (this.caseTaskInfo == null) { + this.caseTaskInfo = new ArrayList<>(); + } + caseTaskInfoSetter.accept(this.caseTaskInfo); + return this; + } + + /** + * 用例及任务信息 + * @return caseTaskInfo + */ + public List getCaseTaskInfo() { + return caseTaskInfo; + } + + public void setCaseTaskInfo(List caseTaskInfo) { + this.caseTaskInfo = caseTaskInfo; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListTaskTestCasesResponse that = (ListTaskTestCasesResponse) obj; + return Objects.equals(this.relatedCaseUris, that.relatedCaseUris) + && Objects.equals(this.notRelatedCaseUris, that.notRelatedCaseUris) + && Objects.equals(this.caseTaskInfo, that.caseTaskInfo); + } + + @Override + public int hashCode() { + return Objects.hash(relatedCaseUris, notRelatedCaseUris, caseTaskInfo); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListTaskTestCasesResponse {\n"); + sb.append(" relatedCaseUris: ").append(toIndentedString(relatedCaseUris)).append("\n"); + sb.append(" notRelatedCaseUris: ").append(toIndentedString(notRelatedCaseUris)).append("\n"); + sb.append(" caseTaskInfo: ").append(toIndentedString(caseTaskInfo)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListTestReportsByConditionRequest.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListTestReportsByConditionRequest.java new file mode 100644 index 0000000000..43875cf750 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListTestReportsByConditionRequest.java @@ -0,0 +1,170 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListTestReportsByConditionRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_id") + + private String projectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "page_size") + + private Long pageSize; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "offset") + + private Long offset; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "key_word") + + private String keyWord; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "own") + + private Boolean own; + + public ListTestReportsByConditionRequest withProjectId(String projectId) { + this.projectId = projectId; + return this; + } + + /** + * 项目ID,固定长度32位字符(字母和数字)。 + * @return projectId + */ + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public ListTestReportsByConditionRequest withPageSize(Long pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * 每页显示的条目数量,最大支持200条 + * minimum: 1 + * maximum: 200 + * @return pageSize + */ + public Long getPageSize() { + return pageSize; + } + + public void setPageSize(Long pageSize) { + this.pageSize = pageSize; + } + + public ListTestReportsByConditionRequest withOffset(Long offset) { + this.offset = offset; + return this; + } + + /** + * 页数,page_no大于等于1 + * minimum: 0 + * maximum: 20000 + * @return offset + */ + public Long getOffset() { + return offset; + } + + public void setOffset(Long offset) { + this.offset = offset; + } + + public ListTestReportsByConditionRequest withKeyWord(String keyWord) { + this.keyWord = keyWord; + return this; + } + + /** + * 名称关键词 + * @return keyWord + */ + public String getKeyWord() { + return keyWord; + } + + public void setKeyWord(String keyWord) { + this.keyWord = keyWord; + } + + public ListTestReportsByConditionRequest withOwn(Boolean own) { + this.own = own; + return this; + } + + /** + * 是否是我的测试报告 + * @return own + */ + public Boolean getOwn() { + return own; + } + + public void setOwn(Boolean own) { + this.own = own; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListTestReportsByConditionRequest that = (ListTestReportsByConditionRequest) obj; + return Objects.equals(this.projectId, that.projectId) && Objects.equals(this.pageSize, that.pageSize) + && Objects.equals(this.offset, that.offset) && Objects.equals(this.keyWord, that.keyWord) + && Objects.equals(this.own, that.own); + } + + @Override + public int hashCode() { + return Objects.hash(projectId, pageSize, offset, keyWord, own); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListTestReportsByConditionRequest {\n"); + sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); + sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append(" keyWord: ").append(toIndentedString(keyWord)).append("\n"); + sb.append(" own: ").append(toIndentedString(own)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListTestReportsByConditionResponse.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListTestReportsByConditionResponse.java new file mode 100644 index 0000000000..89fea419ed --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListTestReportsByConditionResponse.java @@ -0,0 +1,209 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListTestReportsByConditionResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total") + + private Integer total; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private List value = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "reason") + + private String reason; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "page_size") + + private Integer pageSize; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "page_no") + + private Integer pageNo; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "has_more") + + private Boolean hasMore; + + public ListTestReportsByConditionResponse withTotal(Integer total) { + this.total = total; + return this; + } + + /** + * 起始记录数 大于 实际总条数时, 值为0, 分页请求才有此值 + * @return total + */ + public Integer getTotal() { + return total; + } + + public void setTotal(Integer total) { + this.total = total; + } + + public ListTestReportsByConditionResponse withValue(List value) { + this.value = value; + return this; + } + + public ListTestReportsByConditionResponse addValueItem(TestReportVo valueItem) { + if (this.value == null) { + this.value = new ArrayList<>(); + } + this.value.add(valueItem); + return this; + } + + public ListTestReportsByConditionResponse withValue(Consumer> valueSetter) { + if (this.value == null) { + this.value = new ArrayList<>(); + } + valueSetter.accept(this.value); + return this; + } + + /** + * 实际的数据类型:单个对象,集合 或 NULL + * @return value + */ + public List getValue() { + return value; + } + + public void setValue(List value) { + this.value = value; + } + + public ListTestReportsByConditionResponse withReason(String reason) { + this.reason = reason; + return this; + } + + /** + * 业务失败的提示内容,对内接口才有此值 + * @return reason + */ + public String getReason() { + return reason; + } + + public void setReason(String reason) { + this.reason = reason; + } + + public ListTestReportsByConditionResponse withPageSize(Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Get pageSize + * @return pageSize + */ + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public ListTestReportsByConditionResponse withPageNo(Integer pageNo) { + this.pageNo = pageNo; + return this; + } + + /** + * Get pageNo + * @return pageNo + */ + public Integer getPageNo() { + return pageNo; + } + + public void setPageNo(Integer pageNo) { + this.pageNo = pageNo; + } + + public ListTestReportsByConditionResponse withHasMore(Boolean hasMore) { + this.hasMore = hasMore; + return this; + } + + /** + * Get hasMore + * @return hasMore + */ + public Boolean getHasMore() { + return hasMore; + } + + public void setHasMore(Boolean hasMore) { + this.hasMore = hasMore; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListTestReportsByConditionResponse that = (ListTestReportsByConditionResponse) obj; + return Objects.equals(this.total, that.total) && Objects.equals(this.value, that.value) + && Objects.equals(this.reason, that.reason) && Objects.equals(this.pageSize, that.pageSize) + && Objects.equals(this.pageNo, that.pageNo) && Objects.equals(this.hasMore, that.hasMore); + } + + @Override + public int hashCode() { + return Objects.hash(total, value, reason, pageSize, pageNo, hasMore); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListTestReportsByConditionResponse {\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); + sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); + sb.append(" pageNo: ").append(toIndentedString(pageNo)).append("\n"); + sb.append(" hasMore: ").append(toIndentedString(hasMore)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListTestTypesRequest.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListTestTypesRequest.java new file mode 100644 index 0000000000..7c3c49d575 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListTestTypesRequest.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListTestTypesRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_id") + + private String projectId; + + public ListTestTypesRequest withProjectId(String projectId) { + this.projectId = projectId; + return this; + } + + /** + * 项目ID,固定长度32位字符(字母和数字)。 + * @return projectId + */ + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListTestTypesRequest that = (ListTestTypesRequest) obj; + return Objects.equals(this.projectId, that.projectId); + } + + @Override + public int hashCode() { + return Objects.hash(projectId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListTestTypesRequest {\n"); + sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListTestTypesResponse.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListTestTypesResponse.java new file mode 100644 index 0000000000..bc9ed3e0f8 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListTestTypesResponse.java @@ -0,0 +1,92 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListTestTypesResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private List value = null; + + public ListTestTypesResponse withValue(List value) { + this.value = value; + return this; + } + + public ListTestTypesResponse addValueItem(IntegerIdAndNameVo valueItem) { + if (this.value == null) { + this.value = new ArrayList<>(); + } + this.value.add(valueItem); + return this; + } + + public ListTestTypesResponse withValue(Consumer> valueSetter) { + if (this.value == null) { + this.value = new ArrayList<>(); + } + valueSetter.accept(this.value); + return this; + } + + /** + * Get value + * @return value + */ + public List getValue() { + return value; + } + + public void setValue(List value) { + this.value = value; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListTestTypesResponse that = (ListTestTypesResponse) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListTestTypesResponse {\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListUsageInfosRequest.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListUsageInfosRequest.java new file mode 100644 index 0000000000..250e1d73b1 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListUsageInfosRequest.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListUsageInfosRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_uuid") + + private String projectUuid; + + public ListUsageInfosRequest withProjectUuid(String projectUuid) { + this.projectUuid = projectUuid; + return this; + } + + /** + * 项目ID + * @return projectUuid + */ + public String getProjectUuid() { + return projectUuid; + } + + public void setProjectUuid(String projectUuid) { + this.projectUuid = projectUuid; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListUsageInfosRequest that = (ListUsageInfosRequest) obj; + return Objects.equals(this.projectUuid, that.projectUuid); + } + + @Override + public int hashCode() { + return Objects.hash(projectUuid); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListUsageInfosRequest {\n"); + sb.append(" projectUuid: ").append(toIndentedString(projectUuid)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListUsageInfosResponse.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListUsageInfosResponse.java new file mode 100644 index 0000000000..0da426af2b --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListUsageInfosResponse.java @@ -0,0 +1,92 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListUsageInfosResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private List value = null; + + public ListUsageInfosResponse withValue(List value) { + this.value = value; + return this; + } + + public ListUsageInfosResponse addValueItem(UsageInfos valueItem) { + if (this.value == null) { + this.value = new ArrayList<>(); + } + this.value.add(valueItem); + return this; + } + + public ListUsageInfosResponse withValue(Consumer> valueSetter) { + if (this.value == null) { + this.value = new ArrayList<>(); + } + valueSetter.accept(this.value); + return this; + } + + /** + * Get value + * @return value + */ + public List getValue() { + return value; + } + + public void setValue(List value) { + this.value = value; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListUsageInfosResponse that = (ListUsageInfosResponse) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListUsageInfosResponse {\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListUserDnsMappingRequest.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListUserDnsMappingRequest.java new file mode 100644 index 0000000000..5d34209523 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListUserDnsMappingRequest.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListUserDnsMappingRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_id") + + private String projectId; + + public ListUserDnsMappingRequest withProjectId(String projectId) { + this.projectId = projectId; + return this; + } + + /** + * 工程ID + * @return projectId + */ + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListUserDnsMappingRequest that = (ListUserDnsMappingRequest) obj; + return Objects.equals(this.projectId, that.projectId); + } + + @Override + public int hashCode() { + return Objects.hash(projectId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListUserDnsMappingRequest {\n"); + sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListUserDnsMappingResponse.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListUserDnsMappingResponse.java new file mode 100644 index 0000000000..44b380960e --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListUserDnsMappingResponse.java @@ -0,0 +1,186 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListUserDnsMappingResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "error") + + private CommonResponseErrorOfAPITest error; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "reason") + + private String reason; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "result") + + private DnsMapping result; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private String status; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "code") + + private String code; + + public ListUserDnsMappingResponse withError(CommonResponseErrorOfAPITest error) { + this.error = error; + return this; + } + + public ListUserDnsMappingResponse withError(Consumer errorSetter) { + if (this.error == null) { + this.error = new CommonResponseErrorOfAPITest(); + errorSetter.accept(this.error); + } + + return this; + } + + /** + * Get error + * @return error + */ + public CommonResponseErrorOfAPITest getError() { + return error; + } + + public void setError(CommonResponseErrorOfAPITest error) { + this.error = error; + } + + public ListUserDnsMappingResponse withReason(String reason) { + this.reason = reason; + return this; + } + + /** + * 错误原因 + * @return reason + */ + public String getReason() { + return reason; + } + + public void setReason(String reason) { + this.reason = reason; + } + + public ListUserDnsMappingResponse withResult(DnsMapping result) { + this.result = result; + return this; + } + + public ListUserDnsMappingResponse withResult(Consumer resultSetter) { + if (this.result == null) { + this.result = new DnsMapping(); + resultSetter.accept(this.result); + } + + return this; + } + + /** + * Get result + * @return result + */ + public DnsMapping getResult() { + return result; + } + + public void setResult(DnsMapping result) { + this.result = result; + } + + public ListUserDnsMappingResponse withStatus(String status) { + this.status = status; + return this; + } + + /** + * 状态值,如success、error + * @return status + */ + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public ListUserDnsMappingResponse withCode(String code) { + this.code = code; + return this; + } + + /** + * 错误码 + * @return code + */ + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListUserDnsMappingResponse that = (ListUserDnsMappingResponse) obj; + return Objects.equals(this.error, that.error) && Objects.equals(this.reason, that.reason) + && Objects.equals(this.result, that.result) && Objects.equals(this.status, that.status) + && Objects.equals(this.code, that.code); + } + + @Override + public int hashCode() { + return Objects.hash(error, reason, result, status, code); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListUserDnsMappingResponse {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListUserPackageUsageRequest.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListUserPackageUsageRequest.java new file mode 100644 index 0000000000..499a0b4b74 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListUserPackageUsageRequest.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListUserPackageUsageRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_id") + + private String projectId; + + public ListUserPackageUsageRequest withProjectId(String projectId) { + this.projectId = projectId; + return this; + } + + /** + * 项目ID,固定长度32位字符(字母和数字)。 + * @return projectId + */ + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListUserPackageUsageRequest that = (ListUserPackageUsageRequest) obj; + return Objects.equals(this.projectId, that.projectId); + } + + @Override + public int hashCode() { + return Objects.hash(projectId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListUserPackageUsageRequest {\n"); + sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListUserPackageUsageResponse.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListUserPackageUsageResponse.java new file mode 100644 index 0000000000..e60c5990ea --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListUserPackageUsageResponse.java @@ -0,0 +1,148 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListUserPackageUsageResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private String status; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "result") + + private List result = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "error") + + private CommonResponseErrorOfAPITest error; + + public ListUserPackageUsageResponse withStatus(String status) { + this.status = status; + return this; + } + + /** + * 是否请求成功 + * @return status + */ + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public ListUserPackageUsageResponse withResult(List result) { + this.result = result; + return this; + } + + public ListUserPackageUsageResponse addResultItem(PackageUsage resultItem) { + if (this.result == null) { + this.result = new ArrayList<>(); + } + this.result.add(resultItem); + return this; + } + + public ListUserPackageUsageResponse withResult(Consumer> resultSetter) { + if (this.result == null) { + this.result = new ArrayList<>(); + } + resultSetter.accept(this.result); + return this; + } + + /** + * 套餐用量信息列表 + * @return result + */ + public List getResult() { + return result; + } + + public void setResult(List result) { + this.result = result; + } + + public ListUserPackageUsageResponse withError(CommonResponseErrorOfAPITest error) { + this.error = error; + return this; + } + + public ListUserPackageUsageResponse withError(Consumer errorSetter) { + if (this.error == null) { + this.error = new CommonResponseErrorOfAPITest(); + errorSetter.accept(this.error); + } + + return this; + } + + /** + * Get error + * @return error + */ + public CommonResponseErrorOfAPITest getError() { + return error; + } + + public void setError(CommonResponseErrorOfAPITest error) { + this.error = error; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListUserPackageUsageResponse that = (ListUserPackageUsageResponse) obj; + return Objects.equals(this.status, that.status) && Objects.equals(this.result, that.result) + && Objects.equals(this.error, that.error); + } + + @Override + public int hashCode() { + return Objects.hash(status, result, error); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListUserPackageUsageResponse {\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListUserPopupInfoRequest.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListUserPopupInfoRequest.java new file mode 100644 index 0000000000..05edf30a17 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListUserPopupInfoRequest.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListUserPopupInfoRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_id") + + private String projectId; + + public ListUserPopupInfoRequest withProjectId(String projectId) { + this.projectId = projectId; + return this; + } + + /** + * 项目ID,固定长度32位字符(字母和数字)。 + * @return projectId + */ + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListUserPopupInfoRequest that = (ListUserPopupInfoRequest) obj; + return Objects.equals(this.projectId, that.projectId); + } + + @Override + public int hashCode() { + return Objects.hash(projectId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListUserPopupInfoRequest {\n"); + sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListUserPopupInfoResponse.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListUserPopupInfoResponse.java new file mode 100644 index 0000000000..25e111fa08 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListUserPopupInfoResponse.java @@ -0,0 +1,139 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListUserPopupInfoResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private String status; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "result") + + private PopUpInfo result; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "error") + + private CommonResponseErrorOfAPITest error; + + public ListUserPopupInfoResponse withStatus(String status) { + this.status = status; + return this; + } + + /** + * 是否请求成功 + * @return status + */ + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public ListUserPopupInfoResponse withResult(PopUpInfo result) { + this.result = result; + return this; + } + + public ListUserPopupInfoResponse withResult(Consumer resultSetter) { + if (this.result == null) { + this.result = new PopUpInfo(); + resultSetter.accept(this.result); + } + + return this; + } + + /** + * Get result + * @return result + */ + public PopUpInfo getResult() { + return result; + } + + public void setResult(PopUpInfo result) { + this.result = result; + } + + public ListUserPopupInfoResponse withError(CommonResponseErrorOfAPITest error) { + this.error = error; + return this; + } + + public ListUserPopupInfoResponse withError(Consumer errorSetter) { + if (this.error == null) { + this.error = new CommonResponseErrorOfAPITest(); + errorSetter.accept(this.error); + } + + return this; + } + + /** + * Get error + * @return error + */ + public CommonResponseErrorOfAPITest getError() { + return error; + } + + public void setError(CommonResponseErrorOfAPITest error) { + this.error = error; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListUserPopupInfoResponse that = (ListUserPopupInfoResponse) obj; + return Objects.equals(this.status, that.status) && Objects.equals(this.result, that.result) + && Objects.equals(this.error, that.error); + } + + @Override + public int hashCode() { + return Objects.hash(status, result, error); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListUserPopupInfoResponse {\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListVariablesRequest.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListVariablesRequest.java new file mode 100644 index 0000000000..1b070573cf --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListVariablesRequest.java @@ -0,0 +1,142 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListVariablesRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "group_id") + + private String groupId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "page_no") + + private String pageNo; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "page_size") + + private String pageSize; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_id") + + private String projectId; + + public ListVariablesRequest withGroupId(String groupId) { + this.groupId = groupId; + return this; + } + + /** + * group_id + * @return groupId + */ + public String getGroupId() { + return groupId; + } + + public void setGroupId(String groupId) { + this.groupId = groupId; + } + + public ListVariablesRequest withPageNo(String pageNo) { + this.pageNo = pageNo; + return this; + } + + /** + * 当前页数 + * @return pageNo + */ + public String getPageNo() { + return pageNo; + } + + public void setPageNo(String pageNo) { + this.pageNo = pageNo; + } + + public ListVariablesRequest withPageSize(String pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * 每页多少记录 + * @return pageSize + */ + public String getPageSize() { + return pageSize; + } + + public void setPageSize(String pageSize) { + this.pageSize = pageSize; + } + + public ListVariablesRequest withProjectId(String projectId) { + this.projectId = projectId; + return this; + } + + /** + * 工程id + * @return projectId + */ + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListVariablesRequest that = (ListVariablesRequest) obj; + return Objects.equals(this.groupId, that.groupId) && Objects.equals(this.pageNo, that.pageNo) + && Objects.equals(this.pageSize, that.pageSize) && Objects.equals(this.projectId, that.projectId); + } + + @Override + public int hashCode() { + return Objects.hash(groupId, pageNo, pageSize, projectId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListVariablesRequest {\n"); + sb.append(" groupId: ").append(toIndentedString(groupId)).append("\n"); + sb.append(" pageNo: ").append(toIndentedString(pageNo)).append("\n"); + sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); + sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListVariablesResponse.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListVariablesResponse.java new file mode 100644 index 0000000000..01842bc13f --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ListVariablesResponse.java @@ -0,0 +1,186 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListVariablesResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "code") + + private String code; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "error") + + private CommonResponseErrorOfAPITest error; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "reason") + + private String reason; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "result") + + private PageResults result; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private String status; + + public ListVariablesResponse withCode(String code) { + this.code = code; + return this; + } + + /** + * 错误码 + * @return code + */ + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public ListVariablesResponse withError(CommonResponseErrorOfAPITest error) { + this.error = error; + return this; + } + + public ListVariablesResponse withError(Consumer errorSetter) { + if (this.error == null) { + this.error = new CommonResponseErrorOfAPITest(); + errorSetter.accept(this.error); + } + + return this; + } + + /** + * Get error + * @return error + */ + public CommonResponseErrorOfAPITest getError() { + return error; + } + + public void setError(CommonResponseErrorOfAPITest error) { + this.error = error; + } + + public ListVariablesResponse withReason(String reason) { + this.reason = reason; + return this; + } + + /** + * 失败原因 + * @return reason + */ + public String getReason() { + return reason; + } + + public void setReason(String reason) { + this.reason = reason; + } + + public ListVariablesResponse withResult(PageResults result) { + this.result = result; + return this; + } + + public ListVariablesResponse withResult(Consumer resultSetter) { + if (this.result == null) { + this.result = new PageResults(); + resultSetter.accept(this.result); + } + + return this; + } + + /** + * Get result + * @return result + */ + public PageResults getResult() { + return result; + } + + public void setResult(PageResults result) { + this.result = result; + } + + public ListVariablesResponse withStatus(String status) { + this.status = status; + return this; + } + + /** + * 状态 + * @return status + */ + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListVariablesResponse that = (ListVariablesResponse) obj; + return Objects.equals(this.code, that.code) && Objects.equals(this.error, that.error) + && Objects.equals(this.reason, that.reason) && Objects.equals(this.result, that.result) + && Objects.equals(this.status, that.status); + } + + @Override + public int hashCode() { + return Objects.hash(code, error, reason, result, status); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListVariablesResponse {\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/MindmapPageParamV3.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/MindmapPageParamV3.java new file mode 100644 index 0000000000..26315d2dd7 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/MindmapPageParamV3.java @@ -0,0 +1,414 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * MindmapPageParamV3 + */ +public class MindmapPageParamV3 { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "folder_id_collection") + + private List folderIdCollection = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "creator_num_collection") + + private List creatorNumCollection = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "updater_num_collection") + + private List updaterNumCollection = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "folder_root_id") + + private String folderRootId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id_collection") + + private List idCollection = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "offset") + + private Integer offset; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limit") + + private Integer limit; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_id") + + private String projectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "branch_uri") + + private String branchUri; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_master") + + private Integer isMaster; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "iterator_uri") + + private String iteratorUri; + + public MindmapPageParamV3 withFolderIdCollection(List folderIdCollection) { + this.folderIdCollection = folderIdCollection; + return this; + } + + public MindmapPageParamV3 addFolderIdCollectionItem(String folderIdCollectionItem) { + if (this.folderIdCollection == null) { + this.folderIdCollection = new ArrayList<>(); + } + this.folderIdCollection.add(folderIdCollectionItem); + return this; + } + + public MindmapPageParamV3 withFolderIdCollection(Consumer> folderIdCollectionSetter) { + if (this.folderIdCollection == null) { + this.folderIdCollection = new ArrayList<>(); + } + folderIdCollectionSetter.accept(this.folderIdCollection); + return this; + } + + /** + * 目录ID集合 + * @return folderIdCollection + */ + public List getFolderIdCollection() { + return folderIdCollection; + } + + public void setFolderIdCollection(List folderIdCollection) { + this.folderIdCollection = folderIdCollection; + } + + public MindmapPageParamV3 withCreatorNumCollection(List creatorNumCollection) { + this.creatorNumCollection = creatorNumCollection; + return this; + } + + public MindmapPageParamV3 addCreatorNumCollectionItem(String creatorNumCollectionItem) { + if (this.creatorNumCollection == null) { + this.creatorNumCollection = new ArrayList<>(); + } + this.creatorNumCollection.add(creatorNumCollectionItem); + return this; + } + + public MindmapPageParamV3 withCreatorNumCollection(Consumer> creatorNumCollectionSetter) { + if (this.creatorNumCollection == null) { + this.creatorNumCollection = new ArrayList<>(); + } + creatorNumCollectionSetter.accept(this.creatorNumCollection); + return this; + } + + /** + * 创建者ID集合 + * @return creatorNumCollection + */ + public List getCreatorNumCollection() { + return creatorNumCollection; + } + + public void setCreatorNumCollection(List creatorNumCollection) { + this.creatorNumCollection = creatorNumCollection; + } + + public MindmapPageParamV3 withUpdaterNumCollection(List updaterNumCollection) { + this.updaterNumCollection = updaterNumCollection; + return this; + } + + public MindmapPageParamV3 addUpdaterNumCollectionItem(String updaterNumCollectionItem) { + if (this.updaterNumCollection == null) { + this.updaterNumCollection = new ArrayList<>(); + } + this.updaterNumCollection.add(updaterNumCollectionItem); + return this; + } + + public MindmapPageParamV3 withUpdaterNumCollection(Consumer> updaterNumCollectionSetter) { + if (this.updaterNumCollection == null) { + this.updaterNumCollection = new ArrayList<>(); + } + updaterNumCollectionSetter.accept(this.updaterNumCollection); + return this; + } + + /** + * 更新人ID集合 + * @return updaterNumCollection + */ + public List getUpdaterNumCollection() { + return updaterNumCollection; + } + + public void setUpdaterNumCollection(List updaterNumCollection) { + this.updaterNumCollection = updaterNumCollection; + } + + public MindmapPageParamV3 withFolderRootId(String folderRootId) { + this.folderRootId = folderRootId; + return this; + } + + /** + * 根目录ID + * @return folderRootId + */ + public String getFolderRootId() { + return folderRootId; + } + + public void setFolderRootId(String folderRootId) { + this.folderRootId = folderRootId; + } + + public MindmapPageParamV3 withIdCollection(List idCollection) { + this.idCollection = idCollection; + return this; + } + + public MindmapPageParamV3 addIdCollectionItem(String idCollectionItem) { + if (this.idCollection == null) { + this.idCollection = new ArrayList<>(); + } + this.idCollection.add(idCollectionItem); + return this; + } + + public MindmapPageParamV3 withIdCollection(Consumer> idCollectionSetter) { + if (this.idCollection == null) { + this.idCollection = new ArrayList<>(); + } + idCollectionSetter.accept(this.idCollection); + return this; + } + + /** + * 主键ID集合 + * @return idCollection + */ + public List getIdCollection() { + return idCollection; + } + + public void setIdCollection(List idCollection) { + this.idCollection = idCollection; + } + + public MindmapPageParamV3 withOffset(Integer offset) { + this.offset = offset; + return this; + } + + /** + * 起始偏移量,表示从此偏移量开始查询,offset大于等于0,小于等于100000 + * minimum: 0 + * maximum: 100000 + * @return offset + */ + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public MindmapPageParamV3 withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 每页显示的条目数量,最大支持200条 + * minimum: 1 + * maximum: 200 + * @return limit + */ + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public MindmapPageParamV3 withName(String name) { + this.name = name; + return this; + } + + /** + * 脑图名称 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public MindmapPageParamV3 withProjectId(String projectId) { + this.projectId = projectId; + return this; + } + + /** + * 项目ID + * @return projectId + */ + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public MindmapPageParamV3 withBranchUri(String branchUri) { + this.branchUri = branchUri; + return this; + } + + /** + * 分支uri + * @return branchUri + */ + public String getBranchUri() { + return branchUri; + } + + public void setBranchUri(String branchUri) { + this.branchUri = branchUri; + } + + public MindmapPageParamV3 withIsMaster(Integer isMaster) { + this.isMaster = isMaster; + return this; + } + + /** + * 是否基线 + * @return isMaster + */ + public Integer getIsMaster() { + return isMaster; + } + + public void setIsMaster(Integer isMaster) { + this.isMaster = isMaster; + } + + public MindmapPageParamV3 withIteratorUri(String iteratorUri) { + this.iteratorUri = iteratorUri; + return this; + } + + /** + * 计划uri + * @return iteratorUri + */ + public String getIteratorUri() { + return iteratorUri; + } + + public void setIteratorUri(String iteratorUri) { + this.iteratorUri = iteratorUri; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + MindmapPageParamV3 that = (MindmapPageParamV3) obj; + return Objects.equals(this.folderIdCollection, that.folderIdCollection) + && Objects.equals(this.creatorNumCollection, that.creatorNumCollection) + && Objects.equals(this.updaterNumCollection, that.updaterNumCollection) + && Objects.equals(this.folderRootId, that.folderRootId) + && Objects.equals(this.idCollection, that.idCollection) && Objects.equals(this.offset, that.offset) + && Objects.equals(this.limit, that.limit) && Objects.equals(this.name, that.name) + && Objects.equals(this.projectId, that.projectId) && Objects.equals(this.branchUri, that.branchUri) + && Objects.equals(this.isMaster, that.isMaster) && Objects.equals(this.iteratorUri, that.iteratorUri); + } + + @Override + public int hashCode() { + return Objects.hash(folderIdCollection, + creatorNumCollection, + updaterNumCollection, + folderRootId, + idCollection, + offset, + limit, + name, + projectId, + branchUri, + isMaster, + iteratorUri); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MindmapPageParamV3 {\n"); + sb.append(" folderIdCollection: ").append(toIndentedString(folderIdCollection)).append("\n"); + sb.append(" creatorNumCollection: ").append(toIndentedString(creatorNumCollection)).append("\n"); + sb.append(" updaterNumCollection: ").append(toIndentedString(updaterNumCollection)).append("\n"); + sb.append(" folderRootId: ").append(toIndentedString(folderRootId)).append("\n"); + sb.append(" idCollection: ").append(toIndentedString(idCollection)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); + sb.append(" branchUri: ").append(toIndentedString(branchUri)).append("\n"); + sb.append(" isMaster: ").append(toIndentedString(isMaster)).append("\n"); + sb.append(" iteratorUri: ").append(toIndentedString(iteratorUri)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/PackageUsage.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/PackageUsage.java new file mode 100644 index 0000000000..b8e92a95e3 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/PackageUsage.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 套餐用量信息 + */ +public class PackageUsage { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "used_percent") + + private Integer usedPercent; + + public PackageUsage withName(String name) { + this.name = name; + return this; + } + + /** + * 套餐类型 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public PackageUsage withUsedPercent(Integer usedPercent) { + this.usedPercent = usedPercent; + return this; + } + + /** + * 套餐用量 + * @return usedPercent + */ + public Integer getUsedPercent() { + return usedPercent; + } + + public void setUsedPercent(Integer usedPercent) { + this.usedPercent = usedPercent; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + PackageUsage that = (PackageUsage) obj; + return Objects.equals(this.name, that.name) && Objects.equals(this.usedPercent, that.usedPercent); + } + + @Override + public int hashCode() { + return Objects.hash(name, usedPercent); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PackageUsage {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" usedPercent: ").append(toIndentedString(usedPercent)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/PageResults.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/PageResults.java new file mode 100644 index 0000000000..7fdcf264e0 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/PageResults.java @@ -0,0 +1,185 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * PageResults + */ +public class PageResults { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "page_list") + + private List pageList = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "page_no") + + private Integer pageNo; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "page_size") + + private Integer pageSize; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total_page") + + private Integer totalPage; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total_size") + + private Long totalSize; + + public PageResults withPageList(List pageList) { + this.pageList = pageList; + return this; + } + + public PageResults addPageListItem(VariableRes pageListItem) { + if (this.pageList == null) { + this.pageList = new ArrayList<>(); + } + this.pageList.add(pageListItem); + return this; + } + + public PageResults withPageList(Consumer> pageListSetter) { + if (this.pageList == null) { + this.pageList = new ArrayList<>(); + } + pageListSetter.accept(this.pageList); + return this; + } + + /** + * Get pageList + * @return pageList + */ + public List getPageList() { + return pageList; + } + + public void setPageList(List pageList) { + this.pageList = pageList; + } + + public PageResults withPageNo(Integer pageNo) { + this.pageNo = pageNo; + return this; + } + + /** + * Get pageNo + * @return pageNo + */ + public Integer getPageNo() { + return pageNo; + } + + public void setPageNo(Integer pageNo) { + this.pageNo = pageNo; + } + + public PageResults withPageSize(Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Get pageSize + * @return pageSize + */ + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public PageResults withTotalPage(Integer totalPage) { + this.totalPage = totalPage; + return this; + } + + /** + * Get totalPage + * @return totalPage + */ + public Integer getTotalPage() { + return totalPage; + } + + public void setTotalPage(Integer totalPage) { + this.totalPage = totalPage; + } + + public PageResults withTotalSize(Long totalSize) { + this.totalSize = totalSize; + return this; + } + + /** + * Get totalSize + * @return totalSize + */ + public Long getTotalSize() { + return totalSize; + } + + public void setTotalSize(Long totalSize) { + this.totalSize = totalSize; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + PageResults that = (PageResults) obj; + return Objects.equals(this.pageList, that.pageList) && Objects.equals(this.pageNo, that.pageNo) + && Objects.equals(this.pageSize, that.pageSize) && Objects.equals(this.totalPage, that.totalPage) + && Objects.equals(this.totalSize, that.totalSize); + } + + @Override + public int hashCode() { + return Objects.hash(pageList, pageNo, pageSize, totalPage, totalSize); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PageResults {\n"); + sb.append(" pageList: ").append(toIndentedString(pageList)).append("\n"); + sb.append(" pageNo: ").append(toIndentedString(pageNo)).append("\n"); + sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); + sb.append(" totalPage: ").append(toIndentedString(totalPage)).append("\n"); + sb.append(" totalSize: ").append(toIndentedString(totalSize)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/PiFilterInfo.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/PiFilterInfo.java new file mode 100644 index 0000000000..249b61bf66 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/PiFilterInfo.java @@ -0,0 +1,114 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * pi筛选条件 + */ +public class PiFilterInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "pi_sprints") + + private List piSprints = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "all_pi") + + private Boolean allPi; + + public PiFilterInfo withPiSprints(List piSprints) { + this.piSprints = piSprints; + return this; + } + + public PiFilterInfo addPiSprintsItem(PiInfo piSprintsItem) { + if (this.piSprints == null) { + this.piSprints = new ArrayList<>(); + } + this.piSprints.add(piSprintsItem); + return this; + } + + public PiFilterInfo withPiSprints(Consumer> piSprintsSetter) { + if (this.piSprints == null) { + this.piSprints = new ArrayList<>(); + } + piSprintsSetter.accept(this.piSprints); + return this; + } + + /** + * pi迭代筛选条件 + * @return piSprints + */ + public List getPiSprints() { + return piSprints; + } + + public void setPiSprints(List piSprints) { + this.piSprints = piSprints; + } + + public PiFilterInfo withAllPi(Boolean allPi) { + this.allPi = allPi; + return this; + } + + /** + * pi下拉框全选标识,全选时为true + * @return allPi + */ + public Boolean getAllPi() { + return allPi; + } + + public void setAllPi(Boolean allPi) { + this.allPi = allPi; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + PiFilterInfo that = (PiFilterInfo) obj; + return Objects.equals(this.piSprints, that.piSprints) && Objects.equals(this.allPi, that.allPi); + } + + @Override + public int hashCode() { + return Objects.hash(piSprints, allPi); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PiFilterInfo {\n"); + sb.append(" piSprints: ").append(toIndentedString(piSprints)).append("\n"); + sb.append(" allPi: ").append(toIndentedString(allPi)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/PiInfo.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/PiInfo.java new file mode 100644 index 0000000000..0cb5929731 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/PiInfo.java @@ -0,0 +1,114 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * pi迭代筛选条件 + */ +public class PiInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sprints") + + private List sprints = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "pi_id") + + private String piId; + + public PiInfo withSprints(List sprints) { + this.sprints = sprints; + return this; + } + + public PiInfo addSprintsItem(String sprintsItem) { + if (this.sprints == null) { + this.sprints = new ArrayList<>(); + } + this.sprints.add(sprintsItem); + return this; + } + + public PiInfo withSprints(Consumer> sprintsSetter) { + if (this.sprints == null) { + this.sprints = new ArrayList<>(); + } + sprintsSetter.accept(this.sprints); + return this; + } + + /** + * 迭代列表 + * @return sprints + */ + public List getSprints() { + return sprints; + } + + public void setSprints(List sprints) { + this.sprints = sprints; + } + + public PiInfo withPiId(String piId) { + this.piId = piId; + return this; + } + + /** + * pi的id,层级关系:pi -> 迭代 -> 需求 + * @return piId + */ + public String getPiId() { + return piId; + } + + public void setPiId(String piId) { + this.piId = piId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + PiInfo that = (PiInfo) obj; + return Objects.equals(this.sprints, that.sprints) && Objects.equals(this.piId, that.piId); + } + + @Override + public int hashCode() { + return Objects.hash(sprints, piId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PiInfo {\n"); + sb.append(" sprints: ").append(toIndentedString(sprints)).append("\n"); + sb.append(" piId: ").append(toIndentedString(piId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/PopUpInfo.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/PopUpInfo.java new file mode 100644 index 0000000000..3234567be5 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/PopUpInfo.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * PopUpInfo + */ +public class PopUpInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "popup") + + private Boolean popup; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "time_limit") + + private Object timeLimit; + + public PopUpInfo withPopup(Boolean popup) { + this.popup = popup; + return this; + } + + /** + * 是否弹窗 + * @return popup + */ + public Boolean getPopup() { + return popup; + } + + public void setPopup(Boolean popup) { + this.popup = popup; + } + + public PopUpInfo withTimeLimit(Object timeLimit) { + this.timeLimit = timeLimit; + return this; + } + + /** + * 包周期计费时长上限 + * @return timeLimit + */ + public Object getTimeLimit() { + return timeLimit; + } + + public void setTimeLimit(Object timeLimit) { + this.timeLimit = timeLimit; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + PopUpInfo that = (PopUpInfo) obj; + return Objects.equals(this.popup, that.popup) && Objects.equals(this.timeLimit, that.timeLimit); + } + + @Override + public int hashCode() { + return Objects.hash(popup, timeLimit); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PopUpInfo {\n"); + sb.append(" popup: ").append(toIndentedString(popup)).append("\n"); + sb.append(" timeLimit: ").append(toIndentedString(timeLimit)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ProjectFieldConfigOptionVo.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ProjectFieldConfigOptionVo.java new file mode 100644 index 0000000000..c7a3472dfe --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ProjectFieldConfigOptionVo.java @@ -0,0 +1,304 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 实际的数据类型:单个对象,集合 或 NULL + */ +public class ProjectFieldConfigOptionVo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "uri") + + private String uri; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "code") + + private String code; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "updator") + + private NameAndIdVo updator; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "flag") + + private Integer flag; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sort_numb") + + private Integer sortNumb; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "creator") + + private NameAndIdVo creator; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time_stamp") + + private Long createTimeStamp; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_time_stamp") + + private Long updateTimeStamp; + + public ProjectFieldConfigOptionVo withUri(String uri) { + this.uri = uri; + return this; + } + + /** + * 字段选项URI标识.新增不传,修改、删除使用必传 + * @return uri + */ + public String getUri() { + return uri; + } + + public void setUri(String uri) { + this.uri = uri; + } + + public ProjectFieldConfigOptionVo withName(String name) { + this.name = name; + return this; + } + + /** + * 可选项名称 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ProjectFieldConfigOptionVo withCode(String code) { + this.code = code; + return this; + } + + /** + * 可选项code值 + * @return code + */ + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public ProjectFieldConfigOptionVo withUpdator(NameAndIdVo updator) { + this.updator = updator; + return this; + } + + public ProjectFieldConfigOptionVo withUpdator(Consumer updatorSetter) { + if (this.updator == null) { + this.updator = new NameAndIdVo(); + updatorSetter.accept(this.updator); + } + + return this; + } + + /** + * Get updator + * @return updator + */ + public NameAndIdVo getUpdator() { + return updator; + } + + public void setUpdator(NameAndIdVo updator) { + this.updator = updator; + } + + public ProjectFieldConfigOptionVo withDescription(String description) { + this.description = description; + return this; + } + + /** + * 描述 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public ProjectFieldConfigOptionVo withFlag(Integer flag) { + this.flag = flag; + return this; + } + + /** + * 修改标识,0:不可修改 1:可修改,用于结果和状态的选项值 + * @return flag + */ + public Integer getFlag() { + return flag; + } + + public void setFlag(Integer flag) { + this.flag = flag; + } + + public ProjectFieldConfigOptionVo withSortNumb(Integer sortNumb) { + this.sortNumb = sortNumb; + return this; + } + + /** + * 顺序数值 + * @return sortNumb + */ + public Integer getSortNumb() { + return sortNumb; + } + + public void setSortNumb(Integer sortNumb) { + this.sortNumb = sortNumb; + } + + public ProjectFieldConfigOptionVo withCreator(NameAndIdVo creator) { + this.creator = creator; + return this; + } + + public ProjectFieldConfigOptionVo withCreator(Consumer creatorSetter) { + if (this.creator == null) { + this.creator = new NameAndIdVo(); + creatorSetter.accept(this.creator); + } + + return this; + } + + /** + * Get creator + * @return creator + */ + public NameAndIdVo getCreator() { + return creator; + } + + public void setCreator(NameAndIdVo creator) { + this.creator = creator; + } + + public ProjectFieldConfigOptionVo withCreateTimeStamp(Long createTimeStamp) { + this.createTimeStamp = createTimeStamp; + return this; + } + + /** + * 创建时间时间戳 + * @return createTimeStamp + */ + public Long getCreateTimeStamp() { + return createTimeStamp; + } + + public void setCreateTimeStamp(Long createTimeStamp) { + this.createTimeStamp = createTimeStamp; + } + + public ProjectFieldConfigOptionVo withUpdateTimeStamp(Long updateTimeStamp) { + this.updateTimeStamp = updateTimeStamp; + return this; + } + + /** + * 更新时间时间戳 + * @return updateTimeStamp + */ + public Long getUpdateTimeStamp() { + return updateTimeStamp; + } + + public void setUpdateTimeStamp(Long updateTimeStamp) { + this.updateTimeStamp = updateTimeStamp; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ProjectFieldConfigOptionVo that = (ProjectFieldConfigOptionVo) obj; + return Objects.equals(this.uri, that.uri) && Objects.equals(this.name, that.name) + && Objects.equals(this.code, that.code) && Objects.equals(this.updator, that.updator) + && Objects.equals(this.description, that.description) && Objects.equals(this.flag, that.flag) + && Objects.equals(this.sortNumb, that.sortNumb) && Objects.equals(this.creator, that.creator) + && Objects.equals(this.createTimeStamp, that.createTimeStamp) + && Objects.equals(this.updateTimeStamp, that.updateTimeStamp); + } + + @Override + public int hashCode() { + return Objects + .hash(uri, name, code, updator, description, flag, sortNumb, creator, createTimeStamp, updateTimeStamp); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProjectFieldConfigOptionVo {\n"); + sb.append(" uri: ").append(toIndentedString(uri)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" updator: ").append(toIndentedString(updator)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" flag: ").append(toIndentedString(flag)).append("\n"); + sb.append(" sortNumb: ").append(toIndentedString(sortNumb)).append("\n"); + sb.append(" creator: ").append(toIndentedString(creator)).append("\n"); + sb.append(" createTimeStamp: ").append(toIndentedString(createTimeStamp)).append("\n"); + sb.append(" updateTimeStamp: ").append(toIndentedString(updateTimeStamp)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ProjectFieldConfigVo.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ProjectFieldConfigVo.java new file mode 100644 index 0000000000..2da8d7c389 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ProjectFieldConfigVo.java @@ -0,0 +1,627 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 实际的数据类型:单个对象,集合 或 NULL + */ +public class ProjectFieldConfigVo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "uri") + + private String uri; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "updator") + + private NameAndIdVo updator; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "customName") + + private String customName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "table_field_name") + + private String tableFieldName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value_type") + + private String valueType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value_type_name") + + private String valueTypeName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_system") + + private Integer isSystem; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_display") + + private Integer isDisplay; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_required") + + private Integer isRequired; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sort_numb") + + private Integer sortNumb; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "default_value") + + private String defaultValue; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "custom_field_uri") + + private String customFieldUri; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "resource_type") + + private String resourceType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "creator") + + private NameAndIdVo creator; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time_stamp") + + private Long createTimeStamp; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_time_stamp") + + private Long updateTimeStamp; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_uuid") + + private String projectUuid; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "option_vos") + + private List optionVos = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "custom_field_id") + + private Integer customFieldId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "custom_field_name") + + private String customFieldName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "custom_field_param") + + private String customFieldParam; + + public ProjectFieldConfigVo withUri(String uri) { + this.uri = uri; + return this; + } + + /** + * 字段配置URI标识 + * @return uri + */ + public String getUri() { + return uri; + } + + public void setUri(String uri) { + this.uri = uri; + } + + public ProjectFieldConfigVo withUpdator(NameAndIdVo updator) { + this.updator = updator; + return this; + } + + public ProjectFieldConfigVo withUpdator(Consumer updatorSetter) { + if (this.updator == null) { + this.updator = new NameAndIdVo(); + updatorSetter.accept(this.updator); + } + + return this; + } + + /** + * Get updator + * @return updator + */ + public NameAndIdVo getUpdator() { + return updator; + } + + public void setUpdator(NameAndIdVo updator) { + this.updator = updator; + } + + public ProjectFieldConfigVo withDescription(String description) { + this.description = description; + return this; + } + + /** + * 描述 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public ProjectFieldConfigVo withCustomName(String customName) { + this.customName = customName; + return this; + } + + /** + * 项目用例自定义字段名称 + * @return customName + */ + public String getCustomName() { + return customName; + } + + public void setCustomName(String customName) { + this.customName = customName; + } + + public ProjectFieldConfigVo withTableFieldName(String tableFieldName) { + this.tableFieldName = tableFieldName; + return this; + } + + /** + * 字段名(对应后端参数名) + * @return tableFieldName + */ + public String getTableFieldName() { + return tableFieldName; + } + + public void setTableFieldName(String tableFieldName) { + this.tableFieldName = tableFieldName; + } + + public ProjectFieldConfigVo withValueType(String valueType) { + this.valueType = valueType; + return this; + } + + /** + * 字段类型(单行文本text、多行文本textArea、单选框radio、多选框checkbox、日期date、数字number、用户user)。 + * @return valueType + */ + public String getValueType() { + return valueType; + } + + public void setValueType(String valueType) { + this.valueType = valueType; + } + + public ProjectFieldConfigVo withValueTypeName(String valueTypeName) { + this.valueTypeName = valueTypeName; + return this; + } + + /** + * 字段类型国际化名称 + * @return valueTypeName + */ + public String getValueTypeName() { + return valueTypeName; + } + + public void setValueTypeName(String valueTypeName) { + this.valueTypeName = valueTypeName; + } + + public ProjectFieldConfigVo withIsSystem(Integer isSystem) { + this.isSystem = isSystem; + return this; + } + + /** + * 是否系统字段 + * @return isSystem + */ + public Integer getIsSystem() { + return isSystem; + } + + public void setIsSystem(Integer isSystem) { + this.isSystem = isSystem; + } + + public ProjectFieldConfigVo withIsDisplay(Integer isDisplay) { + this.isDisplay = isDisplay; + return this; + } + + /** + * 是否显示 + * @return isDisplay + */ + public Integer getIsDisplay() { + return isDisplay; + } + + public void setIsDisplay(Integer isDisplay) { + this.isDisplay = isDisplay; + } + + public ProjectFieldConfigVo withIsRequired(Integer isRequired) { + this.isRequired = isRequired; + return this; + } + + /** + * 是否必填 + * @return isRequired + */ + public Integer getIsRequired() { + return isRequired; + } + + public void setIsRequired(Integer isRequired) { + this.isRequired = isRequired; + } + + public ProjectFieldConfigVo withSortNumb(Integer sortNumb) { + this.sortNumb = sortNumb; + return this; + } + + /** + * 顺序数值 + * @return sortNumb + */ + public Integer getSortNumb() { + return sortNumb; + } + + public void setSortNumb(Integer sortNumb) { + this.sortNumb = sortNumb; + } + + public ProjectFieldConfigVo withDefaultValue(String defaultValue) { + this.defaultValue = defaultValue; + return this; + } + + /** + * 默认值 + * @return defaultValue + */ + public String getDefaultValue() { + return defaultValue; + } + + public void setDefaultValue(String defaultValue) { + this.defaultValue = defaultValue; + } + + public ProjectFieldConfigVo withCustomFieldUri(String customFieldUri) { + this.customFieldUri = customFieldUri; + return this; + } + + /** + * 扩展字段uri(用于连表查扩展字段) + * @return customFieldUri + */ + public String getCustomFieldUri() { + return customFieldUri; + } + + public void setCustomFieldUri(String customFieldUri) { + this.customFieldUri = customFieldUri; + } + + public ProjectFieldConfigVo withResourceType(String resourceType) { + this.resourceType = resourceType; + return this; + } + + /** + * 资源类型 + * @return resourceType + */ + public String getResourceType() { + return resourceType; + } + + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + public ProjectFieldConfigVo withCreator(NameAndIdVo creator) { + this.creator = creator; + return this; + } + + public ProjectFieldConfigVo withCreator(Consumer creatorSetter) { + if (this.creator == null) { + this.creator = new NameAndIdVo(); + creatorSetter.accept(this.creator); + } + + return this; + } + + /** + * Get creator + * @return creator + */ + public NameAndIdVo getCreator() { + return creator; + } + + public void setCreator(NameAndIdVo creator) { + this.creator = creator; + } + + public ProjectFieldConfigVo withCreateTimeStamp(Long createTimeStamp) { + this.createTimeStamp = createTimeStamp; + return this; + } + + /** + * 创建时间时间戳 + * @return createTimeStamp + */ + public Long getCreateTimeStamp() { + return createTimeStamp; + } + + public void setCreateTimeStamp(Long createTimeStamp) { + this.createTimeStamp = createTimeStamp; + } + + public ProjectFieldConfigVo withUpdateTimeStamp(Long updateTimeStamp) { + this.updateTimeStamp = updateTimeStamp; + return this; + } + + /** + * 更新时间时间戳 + * @return updateTimeStamp + */ + public Long getUpdateTimeStamp() { + return updateTimeStamp; + } + + public void setUpdateTimeStamp(Long updateTimeStamp) { + this.updateTimeStamp = updateTimeStamp; + } + + public ProjectFieldConfigVo withProjectUuid(String projectUuid) { + this.projectUuid = projectUuid; + return this; + } + + /** + * 项目ID + * @return projectUuid + */ + public String getProjectUuid() { + return projectUuid; + } + + public void setProjectUuid(String projectUuid) { + this.projectUuid = projectUuid; + } + + public ProjectFieldConfigVo withOptionVos(List optionVos) { + this.optionVos = optionVos; + return this; + } + + public ProjectFieldConfigVo addOptionVosItem(ProjectFieldConfigOptionVo optionVosItem) { + if (this.optionVos == null) { + this.optionVos = new ArrayList<>(); + } + this.optionVos.add(optionVosItem); + return this; + } + + public ProjectFieldConfigVo withOptionVos(Consumer> optionVosSetter) { + if (this.optionVos == null) { + this.optionVos = new ArrayList<>(); + } + optionVosSetter.accept(this.optionVos); + return this; + } + + /** + * 可选项 + * @return optionVos + */ + public List getOptionVos() { + return optionVos; + } + + public void setOptionVos(List optionVos) { + this.optionVos = optionVos; + } + + public ProjectFieldConfigVo withCustomFieldId(Integer customFieldId) { + this.customFieldId = customFieldId; + return this; + } + + /** + * 项目用例自定义字段id(1-25数字) + * @return customFieldId + */ + public Integer getCustomFieldId() { + return customFieldId; + } + + public void setCustomFieldId(Integer customFieldId) { + this.customFieldId = customFieldId; + } + + public ProjectFieldConfigVo withCustomFieldName(String customFieldName) { + this.customFieldName = customFieldName; + return this; + } + + /** + * 项目用例自定义字段名称 + * @return customFieldName + */ + public String getCustomFieldName() { + return customFieldName; + } + + public void setCustomFieldName(String customFieldName) { + this.customFieldName = customFieldName; + } + + public ProjectFieldConfigVo withCustomFieldParam(String customFieldParam) { + this.customFieldParam = customFieldParam; + return this; + } + + /** + * 项目用例自定义字段入参或者返回参数名称 + * @return customFieldParam + */ + public String getCustomFieldParam() { + return customFieldParam; + } + + public void setCustomFieldParam(String customFieldParam) { + this.customFieldParam = customFieldParam; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ProjectFieldConfigVo that = (ProjectFieldConfigVo) obj; + return Objects.equals(this.uri, that.uri) && Objects.equals(this.updator, that.updator) + && Objects.equals(this.description, that.description) && Objects.equals(this.customName, that.customName) + && Objects.equals(this.tableFieldName, that.tableFieldName) + && Objects.equals(this.valueType, that.valueType) && Objects.equals(this.valueTypeName, that.valueTypeName) + && Objects.equals(this.isSystem, that.isSystem) && Objects.equals(this.isDisplay, that.isDisplay) + && Objects.equals(this.isRequired, that.isRequired) && Objects.equals(this.sortNumb, that.sortNumb) + && Objects.equals(this.defaultValue, that.defaultValue) + && Objects.equals(this.customFieldUri, that.customFieldUri) + && Objects.equals(this.resourceType, that.resourceType) && Objects.equals(this.creator, that.creator) + && Objects.equals(this.createTimeStamp, that.createTimeStamp) + && Objects.equals(this.updateTimeStamp, that.updateTimeStamp) + && Objects.equals(this.projectUuid, that.projectUuid) && Objects.equals(this.optionVos, that.optionVos) + && Objects.equals(this.customFieldId, that.customFieldId) + && Objects.equals(this.customFieldName, that.customFieldName) + && Objects.equals(this.customFieldParam, that.customFieldParam); + } + + @Override + public int hashCode() { + return Objects.hash(uri, + updator, + description, + customName, + tableFieldName, + valueType, + valueTypeName, + isSystem, + isDisplay, + isRequired, + sortNumb, + defaultValue, + customFieldUri, + resourceType, + creator, + createTimeStamp, + updateTimeStamp, + projectUuid, + optionVos, + customFieldId, + customFieldName, + customFieldParam); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProjectFieldConfigVo {\n"); + sb.append(" uri: ").append(toIndentedString(uri)).append("\n"); + sb.append(" updator: ").append(toIndentedString(updator)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" customName: ").append(toIndentedString(customName)).append("\n"); + sb.append(" tableFieldName: ").append(toIndentedString(tableFieldName)).append("\n"); + sb.append(" valueType: ").append(toIndentedString(valueType)).append("\n"); + sb.append(" valueTypeName: ").append(toIndentedString(valueTypeName)).append("\n"); + sb.append(" isSystem: ").append(toIndentedString(isSystem)).append("\n"); + sb.append(" isDisplay: ").append(toIndentedString(isDisplay)).append("\n"); + sb.append(" isRequired: ").append(toIndentedString(isRequired)).append("\n"); + sb.append(" sortNumb: ").append(toIndentedString(sortNumb)).append("\n"); + sb.append(" defaultValue: ").append(toIndentedString(defaultValue)).append("\n"); + sb.append(" customFieldUri: ").append(toIndentedString(customFieldUri)).append("\n"); + sb.append(" resourceType: ").append(toIndentedString(resourceType)).append("\n"); + sb.append(" creator: ").append(toIndentedString(creator)).append("\n"); + sb.append(" createTimeStamp: ").append(toIndentedString(createTimeStamp)).append("\n"); + sb.append(" updateTimeStamp: ").append(toIndentedString(updateTimeStamp)).append("\n"); + sb.append(" projectUuid: ").append(toIndentedString(projectUuid)).append("\n"); + sb.append(" optionVos: ").append(toIndentedString(optionVos)).append("\n"); + sb.append(" customFieldId: ").append(toIndentedString(customFieldId)).append("\n"); + sb.append(" customFieldName: ").append(toIndentedString(customFieldName)).append("\n"); + sb.append(" customFieldParam: ").append(toIndentedString(customFieldParam)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ProjectTestCaseFieldVo.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ProjectTestCaseFieldVo.java new file mode 100644 index 0000000000..23257bdf89 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ProjectTestCaseFieldVo.java @@ -0,0 +1,443 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.time.OffsetDateTime; +import java.util.Objects; + +/** + * ProjectTestCaseFieldVo + */ +public class ProjectTestCaseFieldVo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "uri") + + private String uri; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "type") + + private String type; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "options") + + private String options; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "creator") + + private String creator; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "updater") + + private String updater; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "custom_field_id") + + private Integer customFieldId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "custom_field_name") + + private String customFieldName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "custom_field_param") + + private String customFieldParam; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "type_name") + + private String typeName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time") + + private OffsetDateTime createTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time_timestamp") + + private Long createTimeTimestamp; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_time") + + private OffsetDateTime updateTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_time_timestamp") + + private Long updateTimeTimestamp; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_uuid") + + private String projectUuid; + + public ProjectTestCaseFieldVo withUri(String uri) { + this.uri = uri; + return this; + } + + /** + * 项目用例自定义字段主键 + * @return uri + */ + public String getUri() { + return uri; + } + + public void setUri(String uri) { + this.uri = uri; + } + + public ProjectTestCaseFieldVo withName(String name) { + this.name = name; + return this; + } + + /** + * 项目用例自定义字段名称 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ProjectTestCaseFieldVo withType(String type) { + this.type = type; + return this; + } + + /** + * 项目用例自定义字段类型(单行文本text、多行文本textArea、单选框radio、多选框checkBox、日期date、数字number、单选用户user) + * @return type + */ + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public ProjectTestCaseFieldVo withOptions(String options) { + this.options = options; + return this; + } + + /** + * 项目用例自定义字段选项(数字类型时,数组两个值,第一个是最小值,第二个是最大值) + * @return options + */ + public String getOptions() { + return options; + } + + public void setOptions(String options) { + this.options = options; + } + + public ProjectTestCaseFieldVo withDescription(String description) { + this.description = description; + return this; + } + + /** + * 项目用例自定义字段描述 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public ProjectTestCaseFieldVo withCreator(String creator) { + this.creator = creator; + return this; + } + + /** + * 项目用例自定义字段创建人 + * @return creator + */ + public String getCreator() { + return creator; + } + + public void setCreator(String creator) { + this.creator = creator; + } + + public ProjectTestCaseFieldVo withUpdater(String updater) { + this.updater = updater; + return this; + } + + /** + * 项目用例自定义字段更新人 + * @return updater + */ + public String getUpdater() { + return updater; + } + + public void setUpdater(String updater) { + this.updater = updater; + } + + public ProjectTestCaseFieldVo withCustomFieldId(Integer customFieldId) { + this.customFieldId = customFieldId; + return this; + } + + /** + * 项目用例自定义字段id(1-25数字) + * @return customFieldId + */ + public Integer getCustomFieldId() { + return customFieldId; + } + + public void setCustomFieldId(Integer customFieldId) { + this.customFieldId = customFieldId; + } + + public ProjectTestCaseFieldVo withCustomFieldName(String customFieldName) { + this.customFieldName = customFieldName; + return this; + } + + /** + * 项目用例自定义字段名称 + * @return customFieldName + */ + public String getCustomFieldName() { + return customFieldName; + } + + public void setCustomFieldName(String customFieldName) { + this.customFieldName = customFieldName; + } + + public ProjectTestCaseFieldVo withCustomFieldParam(String customFieldParam) { + this.customFieldParam = customFieldParam; + return this; + } + + /** + * 项目用例自定义字段入参或者返回参数名称 + * @return customFieldParam + */ + public String getCustomFieldParam() { + return customFieldParam; + } + + public void setCustomFieldParam(String customFieldParam) { + this.customFieldParam = customFieldParam; + } + + public ProjectTestCaseFieldVo withTypeName(String typeName) { + this.typeName = typeName; + return this; + } + + /** + * 项目用例自定义字段类型国际化名称 + * @return typeName + */ + public String getTypeName() { + return typeName; + } + + public void setTypeName(String typeName) { + this.typeName = typeName; + } + + public ProjectTestCaseFieldVo withCreateTime(OffsetDateTime createTime) { + this.createTime = createTime; + return this; + } + + /** + * 项目用例自定义字段创建时间 + * @return createTime + */ + public OffsetDateTime getCreateTime() { + return createTime; + } + + public void setCreateTime(OffsetDateTime createTime) { + this.createTime = createTime; + } + + public ProjectTestCaseFieldVo withCreateTimeTimestamp(Long createTimeTimestamp) { + this.createTimeTimestamp = createTimeTimestamp; + return this; + } + + /** + * 项目用例自定义字段创建时间时间戳 + * @return createTimeTimestamp + */ + public Long getCreateTimeTimestamp() { + return createTimeTimestamp; + } + + public void setCreateTimeTimestamp(Long createTimeTimestamp) { + this.createTimeTimestamp = createTimeTimestamp; + } + + public ProjectTestCaseFieldVo withUpdateTime(OffsetDateTime updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * 项目用例自定义字段更新时间 + * @return updateTime + */ + public OffsetDateTime getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(OffsetDateTime updateTime) { + this.updateTime = updateTime; + } + + public ProjectTestCaseFieldVo withUpdateTimeTimestamp(Long updateTimeTimestamp) { + this.updateTimeTimestamp = updateTimeTimestamp; + return this; + } + + /** + * 项目用例自定义字段更新时间时间戳 + * @return updateTimeTimestamp + */ + public Long getUpdateTimeTimestamp() { + return updateTimeTimestamp; + } + + public void setUpdateTimeTimestamp(Long updateTimeTimestamp) { + this.updateTimeTimestamp = updateTimeTimestamp; + } + + public ProjectTestCaseFieldVo withProjectUuid(String projectUuid) { + this.projectUuid = projectUuid; + return this; + } + + /** + * 项目id + * @return projectUuid + */ + public String getProjectUuid() { + return projectUuid; + } + + public void setProjectUuid(String projectUuid) { + this.projectUuid = projectUuid; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ProjectTestCaseFieldVo that = (ProjectTestCaseFieldVo) obj; + return Objects.equals(this.uri, that.uri) && Objects.equals(this.name, that.name) + && Objects.equals(this.type, that.type) && Objects.equals(this.options, that.options) + && Objects.equals(this.description, that.description) && Objects.equals(this.creator, that.creator) + && Objects.equals(this.updater, that.updater) && Objects.equals(this.customFieldId, that.customFieldId) + && Objects.equals(this.customFieldName, that.customFieldName) + && Objects.equals(this.customFieldParam, that.customFieldParam) + && Objects.equals(this.typeName, that.typeName) && Objects.equals(this.createTime, that.createTime) + && Objects.equals(this.createTimeTimestamp, that.createTimeTimestamp) + && Objects.equals(this.updateTime, that.updateTime) + && Objects.equals(this.updateTimeTimestamp, that.updateTimeTimestamp) + && Objects.equals(this.projectUuid, that.projectUuid); + } + + @Override + public int hashCode() { + return Objects.hash(uri, + name, + type, + options, + description, + creator, + updater, + customFieldId, + customFieldName, + customFieldParam, + typeName, + createTime, + createTimeTimestamp, + updateTime, + updateTimeTimestamp, + projectUuid); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProjectTestCaseFieldVo {\n"); + sb.append(" uri: ").append(toIndentedString(uri)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" options: ").append(toIndentedString(options)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" creator: ").append(toIndentedString(creator)).append("\n"); + sb.append(" updater: ").append(toIndentedString(updater)).append("\n"); + sb.append(" customFieldId: ").append(toIndentedString(customFieldId)).append("\n"); + sb.append(" customFieldName: ").append(toIndentedString(customFieldName)).append("\n"); + sb.append(" customFieldParam: ").append(toIndentedString(customFieldParam)).append("\n"); + sb.append(" typeName: ").append(toIndentedString(typeName)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" createTimeTimestamp: ").append(toIndentedString(createTimeTimestamp)).append("\n"); + sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); + sb.append(" updateTimeTimestamp: ").append(toIndentedString(updateTimeTimestamp)).append("\n"); + sb.append(" projectUuid: ").append(toIndentedString(projectUuid)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/QueryIssueTreeInfo.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/QueryIssueTreeInfo.java new file mode 100644 index 0000000000..ce97f15b44 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/QueryIssueTreeInfo.java @@ -0,0 +1,321 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * QueryIssueTreeInfo + */ +public class QueryIssueTreeInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "service_type") + + private Integer serviceType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "service_types") + + private List serviceTypes = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "parent_id") + + private String parentId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "page_number") + + private Integer pageNumber; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "page_size") + + private Integer pageSize; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "filter") + + private IssueListFilterInfo filter; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tracker_id") + + private String trackerId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "module_id") + + private String moduleId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "task_uri") + + private String taskUri; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "include_sub_issue") + + private Boolean includeSubIssue; + + public QueryIssueTreeInfo withServiceType(Integer serviceType) { + this.serviceType = serviceType; + return this; + } + + /** + * 服务类型 + * @return serviceType + */ + public Integer getServiceType() { + return serviceType; + } + + public void setServiceType(Integer serviceType) { + this.serviceType = serviceType; + } + + public QueryIssueTreeInfo withServiceTypes(List serviceTypes) { + this.serviceTypes = serviceTypes; + return this; + } + + public QueryIssueTreeInfo addServiceTypesItem(Integer serviceTypesItem) { + if (this.serviceTypes == null) { + this.serviceTypes = new ArrayList<>(); + } + this.serviceTypes.add(serviceTypesItem); + return this; + } + + public QueryIssueTreeInfo withServiceTypes(Consumer> serviceTypesSetter) { + if (this.serviceTypes == null) { + this.serviceTypes = new ArrayList<>(); + } + serviceTypesSetter.accept(this.serviceTypes); + return this; + } + + /** + * 服务类型集合 + * @return serviceTypes + */ + public List getServiceTypes() { + return serviceTypes; + } + + public void setServiceTypes(List serviceTypes) { + this.serviceTypes = serviceTypes; + } + + public QueryIssueTreeInfo withParentId(String parentId) { + this.parentId = parentId; + return this; + } + + /** + * 父节点id + * @return parentId + */ + public String getParentId() { + return parentId; + } + + public void setParentId(String parentId) { + this.parentId = parentId; + } + + public QueryIssueTreeInfo withPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + return this; + } + + /** + * 页码 + * @return pageNumber + */ + public Integer getPageNumber() { + return pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public QueryIssueTreeInfo withPageSize(Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * 每页数量 + * @return pageSize + */ + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public QueryIssueTreeInfo withFilter(IssueListFilterInfo filter) { + this.filter = filter; + return this; + } + + public QueryIssueTreeInfo withFilter(Consumer filterSetter) { + if (this.filter == null) { + this.filter = new IssueListFilterInfo(); + filterSetter.accept(this.filter); + } + + return this; + } + + /** + * Get filter + * @return filter + */ + public IssueListFilterInfo getFilter() { + return filter; + } + + public void setFilter(IssueListFilterInfo filter) { + this.filter = filter; + } + + public QueryIssueTreeInfo withTrackerId(String trackerId) { + this.trackerId = trackerId; + return this; + } + + /** + * trackerId + * @return trackerId + */ + public String getTrackerId() { + return trackerId; + } + + public void setTrackerId(String trackerId) { + this.trackerId = trackerId; + } + + public QueryIssueTreeInfo withModuleId(String moduleId) { + this.moduleId = moduleId; + return this; + } + + /** + * 模块id + * @return moduleId + */ + public String getModuleId() { + return moduleId; + } + + public void setModuleId(String moduleId) { + this.moduleId = moduleId; + } + + public QueryIssueTreeInfo withTaskUri(String taskUri) { + this.taskUri = taskUri; + return this; + } + + /** + * 任务udi + * @return taskUri + */ + public String getTaskUri() { + return taskUri; + } + + public void setTaskUri(String taskUri) { + this.taskUri = taskUri; + } + + public QueryIssueTreeInfo withIncludeSubIssue(Boolean includeSubIssue) { + this.includeSubIssue = includeSubIssue; + return this; + } + + /** + * 是否统计子需求的用例数,默认true + * @return includeSubIssue + */ + public Boolean getIncludeSubIssue() { + return includeSubIssue; + } + + public void setIncludeSubIssue(Boolean includeSubIssue) { + this.includeSubIssue = includeSubIssue; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + QueryIssueTreeInfo that = (QueryIssueTreeInfo) obj; + return Objects.equals(this.serviceType, that.serviceType) + && Objects.equals(this.serviceTypes, that.serviceTypes) && Objects.equals(this.parentId, that.parentId) + && Objects.equals(this.pageNumber, that.pageNumber) && Objects.equals(this.pageSize, that.pageSize) + && Objects.equals(this.filter, that.filter) && Objects.equals(this.trackerId, that.trackerId) + && Objects.equals(this.moduleId, that.moduleId) && Objects.equals(this.taskUri, that.taskUri) + && Objects.equals(this.includeSubIssue, that.includeSubIssue); + } + + @Override + public int hashCode() { + return Objects.hash(serviceType, + serviceTypes, + parentId, + pageNumber, + pageSize, + filter, + trackerId, + moduleId, + taskUri, + includeSubIssue); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class QueryIssueTreeInfo {\n"); + sb.append(" serviceType: ").append(toIndentedString(serviceType)).append("\n"); + sb.append(" serviceTypes: ").append(toIndentedString(serviceTypes)).append("\n"); + sb.append(" parentId: ").append(toIndentedString(parentId)).append("\n"); + sb.append(" pageNumber: ").append(toIndentedString(pageNumber)).append("\n"); + sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); + sb.append(" filter: ").append(toIndentedString(filter)).append("\n"); + sb.append(" trackerId: ").append(toIndentedString(trackerId)).append("\n"); + sb.append(" moduleId: ").append(toIndentedString(moduleId)).append("\n"); + sb.append(" taskUri: ").append(toIndentedString(taskUri)).append("\n"); + sb.append(" includeSubIssue: ").append(toIndentedString(includeSubIssue)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/QueryRequirementsOverviewInfo.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/QueryRequirementsOverviewInfo.java new file mode 100644 index 0000000000..189826ce4f --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/QueryRequirementsOverviewInfo.java @@ -0,0 +1,199 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * QueryRequirementsOverviewInfo + */ +public class QueryRequirementsOverviewInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "fixed_version_id") + + private String fixedVersionId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "module_id") + + private String moduleId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "key_word") + + private String keyWord; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "page_size") + + private Integer pageSize; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "page_no") + + private Integer pageNo; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "pi_filter") + + private PiFilterInfo piFilter; + + public QueryRequirementsOverviewInfo withFixedVersionId(String fixedVersionId) { + this.fixedVersionId = fixedVersionId; + return this; + } + + /** + * 筛选迭代ID + * @return fixedVersionId + */ + public String getFixedVersionId() { + return fixedVersionId; + } + + public void setFixedVersionId(String fixedVersionId) { + this.fixedVersionId = fixedVersionId; + } + + public QueryRequirementsOverviewInfo withModuleId(String moduleId) { + this.moduleId = moduleId; + return this; + } + + /** + * 模块ID + * @return moduleId + */ + public String getModuleId() { + return moduleId; + } + + public void setModuleId(String moduleId) { + this.moduleId = moduleId; + } + + public QueryRequirementsOverviewInfo withKeyWord(String keyWord) { + this.keyWord = keyWord; + return this; + } + + /** + * 关键字 + * @return keyWord + */ + public String getKeyWord() { + return keyWord; + } + + public void setKeyWord(String keyWord) { + this.keyWord = keyWord; + } + + public QueryRequirementsOverviewInfo withPageSize(Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * 每页数量 + * @return pageSize + */ + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public QueryRequirementsOverviewInfo withPageNo(Integer pageNo) { + this.pageNo = pageNo; + return this; + } + + /** + * 页码 + * @return pageNo + */ + public Integer getPageNo() { + return pageNo; + } + + public void setPageNo(Integer pageNo) { + this.pageNo = pageNo; + } + + public QueryRequirementsOverviewInfo withPiFilter(PiFilterInfo piFilter) { + this.piFilter = piFilter; + return this; + } + + public QueryRequirementsOverviewInfo withPiFilter(Consumer piFilterSetter) { + if (this.piFilter == null) { + this.piFilter = new PiFilterInfo(); + piFilterSetter.accept(this.piFilter); + } + + return this; + } + + /** + * Get piFilter + * @return piFilter + */ + public PiFilterInfo getPiFilter() { + return piFilter; + } + + public void setPiFilter(PiFilterInfo piFilter) { + this.piFilter = piFilter; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + QueryRequirementsOverviewInfo that = (QueryRequirementsOverviewInfo) obj; + return Objects.equals(this.fixedVersionId, that.fixedVersionId) && Objects.equals(this.moduleId, that.moduleId) + && Objects.equals(this.keyWord, that.keyWord) && Objects.equals(this.pageSize, that.pageSize) + && Objects.equals(this.pageNo, that.pageNo) && Objects.equals(this.piFilter, that.piFilter); + } + + @Override + public int hashCode() { + return Objects.hash(fixedVersionId, moduleId, keyWord, pageSize, pageNo, piFilter); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class QueryRequirementsOverviewInfo {\n"); + sb.append(" fixedVersionId: ").append(toIndentedString(fixedVersionId)).append("\n"); + sb.append(" moduleId: ").append(toIndentedString(moduleId)).append("\n"); + sb.append(" keyWord: ").append(toIndentedString(keyWord)).append("\n"); + sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); + sb.append(" pageNo: ").append(toIndentedString(pageNo)).append("\n"); + sb.append(" piFilter: ").append(toIndentedString(piFilter)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/QueryTaskTestCasesInfo.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/QueryTaskTestCasesInfo.java new file mode 100644 index 0000000000..3ef78b4c7f --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/QueryTaskTestCasesInfo.java @@ -0,0 +1,232 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * QueryTaskTestCasesInfo + */ +public class QueryTaskTestCasesInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "page_no") + + private Integer pageNo; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "page_size") + + private Integer pageSize; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "start_index") + + private Integer startIndex; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "end_index") + + private Integer endIndex; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "key_word") + + private String keyWord; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "test_case_uris") + + private List testCaseUris = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "iterator_uri") + + private String iteratorUri; + + public QueryTaskTestCasesInfo withPageNo(Integer pageNo) { + this.pageNo = pageNo; + return this; + } + + /** + * 页码 + * @return pageNo + */ + public Integer getPageNo() { + return pageNo; + } + + public void setPageNo(Integer pageNo) { + this.pageNo = pageNo; + } + + public QueryTaskTestCasesInfo withPageSize(Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * 每页数量 + * @return pageSize + */ + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public QueryTaskTestCasesInfo withStartIndex(Integer startIndex) { + this.startIndex = startIndex; + return this; + } + + /** + * 起始位 + * @return startIndex + */ + public Integer getStartIndex() { + return startIndex; + } + + public void setStartIndex(Integer startIndex) { + this.startIndex = startIndex; + } + + public QueryTaskTestCasesInfo withEndIndex(Integer endIndex) { + this.endIndex = endIndex; + return this; + } + + /** + * 结束位 + * @return endIndex + */ + public Integer getEndIndex() { + return endIndex; + } + + public void setEndIndex(Integer endIndex) { + this.endIndex = endIndex; + } + + public QueryTaskTestCasesInfo withKeyWord(String keyWord) { + this.keyWord = keyWord; + return this; + } + + /** + * 关键字 + * @return keyWord + */ + public String getKeyWord() { + return keyWord; + } + + public void setKeyWord(String keyWord) { + this.keyWord = keyWord; + } + + public QueryTaskTestCasesInfo withTestCaseUris(List testCaseUris) { + this.testCaseUris = testCaseUris; + return this; + } + + public QueryTaskTestCasesInfo addTestCaseUrisItem(String testCaseUrisItem) { + if (this.testCaseUris == null) { + this.testCaseUris = new ArrayList<>(); + } + this.testCaseUris.add(testCaseUrisItem); + return this; + } + + public QueryTaskTestCasesInfo withTestCaseUris(Consumer> testCaseUrisSetter) { + if (this.testCaseUris == null) { + this.testCaseUris = new ArrayList<>(); + } + testCaseUrisSetter.accept(this.testCaseUris); + return this; + } + + /** + * 用例uri列表 + * @return testCaseUris + */ + public List getTestCaseUris() { + return testCaseUris; + } + + public void setTestCaseUris(List testCaseUris) { + this.testCaseUris = testCaseUris; + } + + public QueryTaskTestCasesInfo withIteratorUri(String iteratorUri) { + this.iteratorUri = iteratorUri; + return this; + } + + /** + * 测试计划uri + * @return iteratorUri + */ + public String getIteratorUri() { + return iteratorUri; + } + + public void setIteratorUri(String iteratorUri) { + this.iteratorUri = iteratorUri; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + QueryTaskTestCasesInfo that = (QueryTaskTestCasesInfo) obj; + return Objects.equals(this.pageNo, that.pageNo) && Objects.equals(this.pageSize, that.pageSize) + && Objects.equals(this.startIndex, that.startIndex) && Objects.equals(this.endIndex, that.endIndex) + && Objects.equals(this.keyWord, that.keyWord) && Objects.equals(this.testCaseUris, that.testCaseUris) + && Objects.equals(this.iteratorUri, that.iteratorUri); + } + + @Override + public int hashCode() { + return Objects.hash(pageNo, pageSize, startIndex, endIndex, keyWord, testCaseUris, iteratorUri); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class QueryTaskTestCasesInfo {\n"); + sb.append(" pageNo: ").append(toIndentedString(pageNo)).append("\n"); + sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); + sb.append(" startIndex: ").append(toIndentedString(startIndex)).append("\n"); + sb.append(" endIndex: ").append(toIndentedString(endIndex)).append("\n"); + sb.append(" keyWord: ").append(toIndentedString(keyWord)).append("\n"); + sb.append(" testCaseUris: ").append(toIndentedString(testCaseUris)).append("\n"); + sb.append(" iteratorUri: ").append(toIndentedString(iteratorUri)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/QueryTestItemTreeInfo.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/QueryTestItemTreeInfo.java new file mode 100644 index 0000000000..d351dbac4e --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/QueryTestItemTreeInfo.java @@ -0,0 +1,317 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * QueryTestItemTreeInfo + */ +public class QueryTestItemTreeInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "owner") + + private String owner; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "stage") + + private String stage; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "activity") + + private String activity; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "version_uri") + + private String versionUri; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "task_uri") + + private String taskUri; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "service_type") + + private String serviceType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "contain_total") + + private Boolean containTotal; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_uuid") + + private String projectUuid; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sort_type") + + private String sortType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "page_number") + + private Integer pageNumber; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "page_size") + + private Integer pageSize; + + public QueryTestItemTreeInfo withOwner(String owner) { + this.owner = owner; + return this; + } + + /** + * 责任人 + * @return owner + */ + public String getOwner() { + return owner; + } + + public void setOwner(String owner) { + this.owner = owner; + } + + public QueryTestItemTreeInfo withStage(String stage) { + this.stage = stage; + return this; + } + + /** + * 阶段 + * @return stage + */ + public String getStage() { + return stage; + } + + public void setStage(String stage) { + this.stage = stage; + } + + public QueryTestItemTreeInfo withActivity(String activity) { + this.activity = activity; + return this; + } + + /** + * 活动 + * @return activity + */ + public String getActivity() { + return activity; + } + + public void setActivity(String activity) { + this.activity = activity; + } + + public QueryTestItemTreeInfo withVersionUri(String versionUri) { + this.versionUri = versionUri; + return this; + } + + /** + * 版本URI + * @return versionUri + */ + public String getVersionUri() { + return versionUri; + } + + public void setVersionUri(String versionUri) { + this.versionUri = versionUri; + } + + public QueryTestItemTreeInfo withTaskUri(String taskUri) { + this.taskUri = taskUri; + return this; + } + + /** + * 任务uri + * @return taskUri + */ + public String getTaskUri() { + return taskUri; + } + + public void setTaskUri(String taskUri) { + this.taskUri = taskUri; + } + + public QueryTestItemTreeInfo withServiceType(String serviceType) { + this.serviceType = serviceType; + return this; + } + + /** + * 用例服务类型 + * @return serviceType + */ + public String getServiceType() { + return serviceType; + } + + public void setServiceType(String serviceType) { + this.serviceType = serviceType; + } + + public QueryTestItemTreeInfo withContainTotal(Boolean containTotal) { + this.containTotal = containTotal; + return this; + } + + /** + * 是否包含用例数 + * @return containTotal + */ + public Boolean getContainTotal() { + return containTotal; + } + + public void setContainTotal(Boolean containTotal) { + this.containTotal = containTotal; + } + + public QueryTestItemTreeInfo withProjectUuid(String projectUuid) { + this.projectUuid = projectUuid; + return this; + } + + /** + * 项目id + * @return projectUuid + */ + public String getProjectUuid() { + return projectUuid; + } + + public void setProjectUuid(String projectUuid) { + this.projectUuid = projectUuid; + } + + public QueryTestItemTreeInfo withSortType(String sortType) { + this.sortType = sortType; + return this; + } + + /** + * 排序类型 + * @return sortType + */ + public String getSortType() { + return sortType; + } + + public void setSortType(String sortType) { + this.sortType = sortType; + } + + public QueryTestItemTreeInfo withPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + return this; + } + + /** + * 页码 + * @return pageNumber + */ + public Integer getPageNumber() { + return pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public QueryTestItemTreeInfo withPageSize(Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * 每页数量 + * @return pageSize + */ + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + QueryTestItemTreeInfo that = (QueryTestItemTreeInfo) obj; + return Objects.equals(this.owner, that.owner) && Objects.equals(this.stage, that.stage) + && Objects.equals(this.activity, that.activity) && Objects.equals(this.versionUri, that.versionUri) + && Objects.equals(this.taskUri, that.taskUri) && Objects.equals(this.serviceType, that.serviceType) + && Objects.equals(this.containTotal, that.containTotal) + && Objects.equals(this.projectUuid, that.projectUuid) && Objects.equals(this.sortType, that.sortType) + && Objects.equals(this.pageNumber, that.pageNumber) && Objects.equals(this.pageSize, that.pageSize); + } + + @Override + public int hashCode() { + return Objects.hash(owner, + stage, + activity, + versionUri, + taskUri, + serviceType, + containTotal, + projectUuid, + sortType, + pageNumber, + pageSize); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class QueryTestItemTreeInfo {\n"); + sb.append(" owner: ").append(toIndentedString(owner)).append("\n"); + sb.append(" stage: ").append(toIndentedString(stage)).append("\n"); + sb.append(" activity: ").append(toIndentedString(activity)).append("\n"); + sb.append(" versionUri: ").append(toIndentedString(versionUri)).append("\n"); + sb.append(" taskUri: ").append(toIndentedString(taskUri)).append("\n"); + sb.append(" serviceType: ").append(toIndentedString(serviceType)).append("\n"); + sb.append(" containTotal: ").append(toIndentedString(containTotal)).append("\n"); + sb.append(" projectUuid: ").append(toIndentedString(projectUuid)).append("\n"); + sb.append(" sortType: ").append(toIndentedString(sortType)).append("\n"); + sb.append(" pageNumber: ").append(toIndentedString(pageNumber)).append("\n"); + sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/RelateTaskTestCasesVo.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/RelateTaskTestCasesVo.java new file mode 100644 index 0000000000..547eef2a1f --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/RelateTaskTestCasesVo.java @@ -0,0 +1,214 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 用例及任务信息 + */ +public class RelateTaskTestCasesVo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "test_case_num") + + private String testCaseNum; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "test_case_name") + + private String testCaseName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "test_case_uri") + + private String testCaseUri; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "task_uri") + + private String taskUri; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "task_name") + + private String taskName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "task_num") + + private String taskNum; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "task_creator") + + private String taskCreator; + + public RelateTaskTestCasesVo withTestCaseNum(String testCaseNum) { + this.testCaseNum = testCaseNum; + return this; + } + + /** + * 用例编号 + * @return testCaseNum + */ + public String getTestCaseNum() { + return testCaseNum; + } + + public void setTestCaseNum(String testCaseNum) { + this.testCaseNum = testCaseNum; + } + + public RelateTaskTestCasesVo withTestCaseName(String testCaseName) { + this.testCaseName = testCaseName; + return this; + } + + /** + * 用例名 + * @return testCaseName + */ + public String getTestCaseName() { + return testCaseName; + } + + public void setTestCaseName(String testCaseName) { + this.testCaseName = testCaseName; + } + + public RelateTaskTestCasesVo withTestCaseUri(String testCaseUri) { + this.testCaseUri = testCaseUri; + return this; + } + + /** + * 用例uri + * @return testCaseUri + */ + public String getTestCaseUri() { + return testCaseUri; + } + + public void setTestCaseUri(String testCaseUri) { + this.testCaseUri = testCaseUri; + } + + public RelateTaskTestCasesVo withTaskUri(String taskUri) { + this.taskUri = taskUri; + return this; + } + + /** + * 任务uri + * @return taskUri + */ + public String getTaskUri() { + return taskUri; + } + + public void setTaskUri(String taskUri) { + this.taskUri = taskUri; + } + + public RelateTaskTestCasesVo withTaskName(String taskName) { + this.taskName = taskName; + return this; + } + + /** + * 任务名 + * @return taskName + */ + public String getTaskName() { + return taskName; + } + + public void setTaskName(String taskName) { + this.taskName = taskName; + } + + public RelateTaskTestCasesVo withTaskNum(String taskNum) { + this.taskNum = taskNum; + return this; + } + + /** + * 任务编号 + * @return taskNum + */ + public String getTaskNum() { + return taskNum; + } + + public void setTaskNum(String taskNum) { + this.taskNum = taskNum; + } + + public RelateTaskTestCasesVo withTaskCreator(String taskCreator) { + this.taskCreator = taskCreator; + return this; + } + + /** + * 任务创建人 + * @return taskCreator + */ + public String getTaskCreator() { + return taskCreator; + } + + public void setTaskCreator(String taskCreator) { + this.taskCreator = taskCreator; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + RelateTaskTestCasesVo that = (RelateTaskTestCasesVo) obj; + return Objects.equals(this.testCaseNum, that.testCaseNum) + && Objects.equals(this.testCaseName, that.testCaseName) + && Objects.equals(this.testCaseUri, that.testCaseUri) && Objects.equals(this.taskUri, that.taskUri) + && Objects.equals(this.taskName, that.taskName) && Objects.equals(this.taskNum, that.taskNum) + && Objects.equals(this.taskCreator, that.taskCreator); + } + + @Override + public int hashCode() { + return Objects.hash(testCaseNum, testCaseName, testCaseUri, taskUri, taskName, taskNum, taskCreator); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RelateTaskTestCasesVo {\n"); + sb.append(" testCaseNum: ").append(toIndentedString(testCaseNum)).append("\n"); + sb.append(" testCaseName: ").append(toIndentedString(testCaseName)).append("\n"); + sb.append(" testCaseUri: ").append(toIndentedString(testCaseUri)).append("\n"); + sb.append(" taskUri: ").append(toIndentedString(taskUri)).append("\n"); + sb.append(" taskName: ").append(toIndentedString(taskName)).append("\n"); + sb.append(" taskNum: ").append(toIndentedString(taskNum)).append("\n"); + sb.append(" taskCreator: ").append(toIndentedString(taskCreator)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/RelationInfo.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/RelationInfo.java new file mode 100644 index 0000000000..e30eab5734 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/RelationInfo.java @@ -0,0 +1,214 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * RelationInfo + */ +public class RelationInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dr_number") + + private String drNumber; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "test_case_uri") + + private String testCaseUri; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "relate_type") + + private String relateType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "resource_type") + + private String resourceType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "source_system") + + private String sourceSystem; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "association_number") + + private String associationNumber; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "region") + + private String region; + + public RelationInfo withDrNumber(String drNumber) { + this.drNumber = drNumber; + return this; + } + + /** + * 需求id + * @return drNumber + */ + public String getDrNumber() { + return drNumber; + } + + public void setDrNumber(String drNumber) { + this.drNumber = drNumber; + } + + public RelationInfo withTestCaseUri(String testCaseUri) { + this.testCaseUri = testCaseUri; + return this; + } + + /** + * 用例uri + * @return testCaseUri + */ + public String getTestCaseUri() { + return testCaseUri; + } + + public void setTestCaseUri(String testCaseUri) { + this.testCaseUri = testCaseUri; + } + + public RelationInfo withRelateType(String relateType) { + this.relateType = relateType; + return this; + } + + /** + * 资源类型 + * @return relateType + */ + public String getRelateType() { + return relateType; + } + + public void setRelateType(String relateType) { + this.relateType = relateType; + } + + public RelationInfo withResourceType(String resourceType) { + this.resourceType = resourceType; + return this; + } + + /** + * 资源类型 + * @return resourceType + */ + public String getResourceType() { + return resourceType; + } + + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + public RelationInfo withSourceSystem(String sourceSystem) { + this.sourceSystem = sourceSystem; + return this; + } + + /** + * 来源系统 + * @return sourceSystem + */ + public String getSourceSystem() { + return sourceSystem; + } + + public void setSourceSystem(String sourceSystem) { + this.sourceSystem = sourceSystem; + } + + public RelationInfo withAssociationNumber(String associationNumber) { + this.associationNumber = associationNumber; + return this; + } + + /** + * 关联资源编号 + * @return associationNumber + */ + public String getAssociationNumber() { + return associationNumber; + } + + public void setAssociationNumber(String associationNumber) { + this.associationNumber = associationNumber; + } + + public RelationInfo withRegion(String region) { + this.region = region; + return this; + } + + /** + * 逻辑region,外部使用公有云实际区域,内部使用默认值 + * @return region + */ + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + RelationInfo that = (RelationInfo) obj; + return Objects.equals(this.drNumber, that.drNumber) && Objects.equals(this.testCaseUri, that.testCaseUri) + && Objects.equals(this.relateType, that.relateType) && Objects.equals(this.resourceType, that.resourceType) + && Objects.equals(this.sourceSystem, that.sourceSystem) + && Objects.equals(this.associationNumber, that.associationNumber) + && Objects.equals(this.region, that.region); + } + + @Override + public int hashCode() { + return Objects.hash(drNumber, testCaseUri, relateType, resourceType, sourceSystem, associationNumber, region); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RelationInfo {\n"); + sb.append(" drNumber: ").append(toIndentedString(drNumber)).append("\n"); + sb.append(" testCaseUri: ").append(toIndentedString(testCaseUri)).append("\n"); + sb.append(" relateType: ").append(toIndentedString(relateType)).append("\n"); + sb.append(" resourceType: ").append(toIndentedString(resourceType)).append("\n"); + sb.append(" sourceSystem: ").append(toIndentedString(sourceSystem)).append("\n"); + sb.append(" associationNumber: ").append(toIndentedString(associationNumber)).append("\n"); + sb.append(" region: ").append(toIndentedString(region)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/RequirementOverviewVo.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/RequirementOverviewVo.java new file mode 100644 index 0000000000..c32d054872 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/RequirementOverviewVo.java @@ -0,0 +1,313 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 质量报告需求测试情况列表 + */ +public class RequirementOverviewVo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "workitem_id") + + private String workitemId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sequence_id") + + private String sequenceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "board_id") + + private String boardId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tracker_id") + + private String trackerId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tracker_name") + + private String trackerName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "relate_case_number") + + private Integer relateCaseNumber; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "case_pass_vo") + + private CasePassVo casePassVo; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "case_execute_vo") + + private CaseExecuteVo caseExecuteVo; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "relate_defect_number") + + private Integer relateDefectNumber; + + public RequirementOverviewVo withName(String name) { + this.name = name; + return this; + } + + /** + * 需求名称 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public RequirementOverviewVo withWorkitemId(String workitemId) { + this.workitemId = workitemId; + return this; + } + + /** + * 需求id + * @return workitemId + */ + public String getWorkitemId() { + return workitemId; + } + + public void setWorkitemId(String workitemId) { + this.workitemId = workitemId; + } + + public RequirementOverviewVo withSequenceId(String sequenceId) { + this.sequenceId = sequenceId; + return this; + } + + /** + * 需求序列编号 + * @return sequenceId + */ + public String getSequenceId() { + return sequenceId; + } + + public void setSequenceId(String sequenceId) { + this.sequenceId = sequenceId; + } + + public RequirementOverviewVo withBoardId(String boardId) { + this.boardId = boardId; + return this; + } + + /** + * 看板需求id + * @return boardId + */ + public String getBoardId() { + return boardId; + } + + public void setBoardId(String boardId) { + this.boardId = boardId; + } + + public RequirementOverviewVo withTrackerId(String trackerId) { + this.trackerId = trackerId; + return this; + } + + /** + * 需求类型id + * @return trackerId + */ + public String getTrackerId() { + return trackerId; + } + + public void setTrackerId(String trackerId) { + this.trackerId = trackerId; + } + + public RequirementOverviewVo withTrackerName(String trackerName) { + this.trackerName = trackerName; + return this; + } + + /** + * 需求类型 + * @return trackerName + */ + public String getTrackerName() { + return trackerName; + } + + public void setTrackerName(String trackerName) { + this.trackerName = trackerName; + } + + public RequirementOverviewVo withRelateCaseNumber(Integer relateCaseNumber) { + this.relateCaseNumber = relateCaseNumber; + return this; + } + + /** + * 需求关联用例总数 + * @return relateCaseNumber + */ + public Integer getRelateCaseNumber() { + return relateCaseNumber; + } + + public void setRelateCaseNumber(Integer relateCaseNumber) { + this.relateCaseNumber = relateCaseNumber; + } + + public RequirementOverviewVo withCasePassVo(CasePassVo casePassVo) { + this.casePassVo = casePassVo; + return this; + } + + public RequirementOverviewVo withCasePassVo(Consumer casePassVoSetter) { + if (this.casePassVo == null) { + this.casePassVo = new CasePassVo(); + casePassVoSetter.accept(this.casePassVo); + } + + return this; + } + + /** + * Get casePassVo + * @return casePassVo + */ + public CasePassVo getCasePassVo() { + return casePassVo; + } + + public void setCasePassVo(CasePassVo casePassVo) { + this.casePassVo = casePassVo; + } + + public RequirementOverviewVo withCaseExecuteVo(CaseExecuteVo caseExecuteVo) { + this.caseExecuteVo = caseExecuteVo; + return this; + } + + public RequirementOverviewVo withCaseExecuteVo(Consumer caseExecuteVoSetter) { + if (this.caseExecuteVo == null) { + this.caseExecuteVo = new CaseExecuteVo(); + caseExecuteVoSetter.accept(this.caseExecuteVo); + } + + return this; + } + + /** + * Get caseExecuteVo + * @return caseExecuteVo + */ + public CaseExecuteVo getCaseExecuteVo() { + return caseExecuteVo; + } + + public void setCaseExecuteVo(CaseExecuteVo caseExecuteVo) { + this.caseExecuteVo = caseExecuteVo; + } + + public RequirementOverviewVo withRelateDefectNumber(Integer relateDefectNumber) { + this.relateDefectNumber = relateDefectNumber; + return this; + } + + /** + * 需求关联缺陷总数 + * @return relateDefectNumber + */ + public Integer getRelateDefectNumber() { + return relateDefectNumber; + } + + public void setRelateDefectNumber(Integer relateDefectNumber) { + this.relateDefectNumber = relateDefectNumber; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + RequirementOverviewVo that = (RequirementOverviewVo) obj; + return Objects.equals(this.name, that.name) && Objects.equals(this.workitemId, that.workitemId) + && Objects.equals(this.sequenceId, that.sequenceId) && Objects.equals(this.boardId, that.boardId) + && Objects.equals(this.trackerId, that.trackerId) && Objects.equals(this.trackerName, that.trackerName) + && Objects.equals(this.relateCaseNumber, that.relateCaseNumber) + && Objects.equals(this.casePassVo, that.casePassVo) + && Objects.equals(this.caseExecuteVo, that.caseExecuteVo) + && Objects.equals(this.relateDefectNumber, that.relateDefectNumber); + } + + @Override + public int hashCode() { + return Objects.hash(name, + workitemId, + sequenceId, + boardId, + trackerId, + trackerName, + relateCaseNumber, + casePassVo, + caseExecuteVo, + relateDefectNumber); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RequirementOverviewVo {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" workitemId: ").append(toIndentedString(workitemId)).append("\n"); + sb.append(" sequenceId: ").append(toIndentedString(sequenceId)).append("\n"); + sb.append(" boardId: ").append(toIndentedString(boardId)).append("\n"); + sb.append(" trackerId: ").append(toIndentedString(trackerId)).append("\n"); + sb.append(" trackerName: ").append(toIndentedString(trackerName)).append("\n"); + sb.append(" relateCaseNumber: ").append(toIndentedString(relateCaseNumber)).append("\n"); + sb.append(" casePassVo: ").append(toIndentedString(casePassVo)).append("\n"); + sb.append(" caseExecuteVo: ").append(toIndentedString(caseExecuteVo)).append("\n"); + sb.append(" relateDefectNumber: ").append(toIndentedString(relateDefectNumber)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/RequirementsOverviewVo.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/RequirementsOverviewVo.java new file mode 100644 index 0000000000..19eb8b108b --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/RequirementsOverviewVo.java @@ -0,0 +1,116 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 实际的数据类型:单个对象,集合 或 NULL + */ +public class RequirementsOverviewVo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total_number") + + private Integer totalNumber; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "requirement_overview_list") + + private List requirementOverviewList = null; + + public RequirementsOverviewVo withTotalNumber(Integer totalNumber) { + this.totalNumber = totalNumber; + return this; + } + + /** + * 质量报告需求测试情况总数 + * @return totalNumber + */ + public Integer getTotalNumber() { + return totalNumber; + } + + public void setTotalNumber(Integer totalNumber) { + this.totalNumber = totalNumber; + } + + public RequirementsOverviewVo withRequirementOverviewList(List requirementOverviewList) { + this.requirementOverviewList = requirementOverviewList; + return this; + } + + public RequirementsOverviewVo addRequirementOverviewListItem(RequirementOverviewVo requirementOverviewListItem) { + if (this.requirementOverviewList == null) { + this.requirementOverviewList = new ArrayList<>(); + } + this.requirementOverviewList.add(requirementOverviewListItem); + return this; + } + + public RequirementsOverviewVo withRequirementOverviewList( + Consumer> requirementOverviewListSetter) { + if (this.requirementOverviewList == null) { + this.requirementOverviewList = new ArrayList<>(); + } + requirementOverviewListSetter.accept(this.requirementOverviewList); + return this; + } + + /** + * 质量报告需求测试情况列表 + * @return requirementOverviewList + */ + public List getRequirementOverviewList() { + return requirementOverviewList; + } + + public void setRequirementOverviewList(List requirementOverviewList) { + this.requirementOverviewList = requirementOverviewList; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + RequirementsOverviewVo that = (RequirementsOverviewVo) obj; + return Objects.equals(this.totalNumber, that.totalNumber) + && Objects.equals(this.requirementOverviewList, that.requirementOverviewList); + } + + @Override + public int hashCode() { + return Objects.hash(totalNumber, requirementOverviewList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RequirementsOverviewVo {\n"); + sb.append(" totalNumber: ").append(toIndentedString(totalNumber)).append("\n"); + sb.append(" requirementOverviewList: ").append(toIndentedString(requirementOverviewList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ResourcePoolVo.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ResourcePoolVo.java new file mode 100644 index 0000000000..849b22eef4 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ResourcePoolVo.java @@ -0,0 +1,166 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 实际的数据类型:单个对象,集合 或 NULL + */ +public class ResourcePoolVo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "type") + + private String type; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "selected") + + private String selected; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "active_state") + + private String activeState; + + public ResourcePoolVo withId(String id) { + this.id = id; + return this; + } + + /** + * 资源池ID + * @return id + */ + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public ResourcePoolVo withName(String name) { + this.name = name; + return this; + } + + /** + * 资源池名称 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ResourcePoolVo withType(String type) { + this.type = type; + return this; + } + + /** + * 资源池类型(VM/DOCKER) + * @return type + */ + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public ResourcePoolVo withSelected(String selected) { + this.selected = selected; + return this; + } + + /** + * 是否选中 + * @return selected + */ + public String getSelected() { + return selected; + } + + public void setSelected(String selected) { + this.selected = selected; + } + + public ResourcePoolVo withActiveState(String activeState) { + this.activeState = activeState; + return this; + } + + /** + * 资源池状态 + * @return activeState + */ + public String getActiveState() { + return activeState; + } + + public void setActiveState(String activeState) { + this.activeState = activeState; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ResourcePoolVo that = (ResourcePoolVo) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.name, that.name) + && Objects.equals(this.type, that.type) && Objects.equals(this.selected, that.selected) + && Objects.equals(this.activeState, that.activeState); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, type, selected, activeState); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResourcePoolVo {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" selected: ").append(toIndentedString(selected)).append("\n"); + sb.append(" activeState: ").append(toIndentedString(activeState)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ResultValueListCustomReportListVo.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ResultValueListCustomReportListVo.java new file mode 100644 index 0000000000..dfbde5fe90 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ResultValueListCustomReportListVo.java @@ -0,0 +1,208 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 请求的返回的数据对象 + */ +public class ResultValueListCustomReportListVo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total") + + private Integer total; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private List value = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "reason") + + private String reason; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "page_size") + + private Integer pageSize; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "page_no") + + private Integer pageNo; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "has_more") + + private Boolean hasMore; + + public ResultValueListCustomReportListVo withTotal(Integer total) { + this.total = total; + return this; + } + + /** + * 起始记录数 大于 实际总条数时, 值为0, 分页请求才有此值 + * @return total + */ + public Integer getTotal() { + return total; + } + + public void setTotal(Integer total) { + this.total = total; + } + + public ResultValueListCustomReportListVo withValue(List value) { + this.value = value; + return this; + } + + public ResultValueListCustomReportListVo addValueItem(CustomReportListVo valueItem) { + if (this.value == null) { + this.value = new ArrayList<>(); + } + this.value.add(valueItem); + return this; + } + + public ResultValueListCustomReportListVo withValue(Consumer> valueSetter) { + if (this.value == null) { + this.value = new ArrayList<>(); + } + valueSetter.accept(this.value); + return this; + } + + /** + * 实际的数据类型:单个对象,集合 或 NULL + * @return value + */ + public List getValue() { + return value; + } + + public void setValue(List value) { + this.value = value; + } + + public ResultValueListCustomReportListVo withReason(String reason) { + this.reason = reason; + return this; + } + + /** + * 业务失败的提示内容,对内接口才有此值 + * @return reason + */ + public String getReason() { + return reason; + } + + public void setReason(String reason) { + this.reason = reason; + } + + public ResultValueListCustomReportListVo withPageSize(Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Get pageSize + * @return pageSize + */ + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public ResultValueListCustomReportListVo withPageNo(Integer pageNo) { + this.pageNo = pageNo; + return this; + } + + /** + * Get pageNo + * @return pageNo + */ + public Integer getPageNo() { + return pageNo; + } + + public void setPageNo(Integer pageNo) { + this.pageNo = pageNo; + } + + public ResultValueListCustomReportListVo withHasMore(Boolean hasMore) { + this.hasMore = hasMore; + return this; + } + + /** + * Get hasMore + * @return hasMore + */ + public Boolean getHasMore() { + return hasMore; + } + + public void setHasMore(Boolean hasMore) { + this.hasMore = hasMore; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ResultValueListCustomReportListVo that = (ResultValueListCustomReportListVo) obj; + return Objects.equals(this.total, that.total) && Objects.equals(this.value, that.value) + && Objects.equals(this.reason, that.reason) && Objects.equals(this.pageSize, that.pageSize) + && Objects.equals(this.pageNo, that.pageNo) && Objects.equals(this.hasMore, that.hasMore); + } + + @Override + public int hashCode() { + return Objects.hash(total, value, reason, pageSize, pageNo, hasMore); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResultValueListCustomReportListVo {\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); + sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); + sb.append(" pageNo: ").append(toIndentedString(pageNo)).append("\n"); + sb.append(" hasMore: ").append(toIndentedString(hasMore)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ResultValueListProjectFieldConfigVo.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ResultValueListProjectFieldConfigVo.java new file mode 100644 index 0000000000..1be7e745ef --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ResultValueListProjectFieldConfigVo.java @@ -0,0 +1,208 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 请求的返回的数据对象 + */ +public class ResultValueListProjectFieldConfigVo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total") + + private Integer total; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private List value = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "reason") + + private String reason; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "page_size") + + private Integer pageSize; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "page_no") + + private Integer pageNo; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "has_more") + + private Boolean hasMore; + + public ResultValueListProjectFieldConfigVo withTotal(Integer total) { + this.total = total; + return this; + } + + /** + * 起始记录数 大于 实际总条数时, 值为0, 分页请求才有此值 + * @return total + */ + public Integer getTotal() { + return total; + } + + public void setTotal(Integer total) { + this.total = total; + } + + public ResultValueListProjectFieldConfigVo withValue(List value) { + this.value = value; + return this; + } + + public ResultValueListProjectFieldConfigVo addValueItem(ProjectFieldConfigVo valueItem) { + if (this.value == null) { + this.value = new ArrayList<>(); + } + this.value.add(valueItem); + return this; + } + + public ResultValueListProjectFieldConfigVo withValue(Consumer> valueSetter) { + if (this.value == null) { + this.value = new ArrayList<>(); + } + valueSetter.accept(this.value); + return this; + } + + /** + * 实际的数据类型:单个对象,集合 或 NULL + * @return value + */ + public List getValue() { + return value; + } + + public void setValue(List value) { + this.value = value; + } + + public ResultValueListProjectFieldConfigVo withReason(String reason) { + this.reason = reason; + return this; + } + + /** + * 业务失败的提示内容,对内接口才有此值 + * @return reason + */ + public String getReason() { + return reason; + } + + public void setReason(String reason) { + this.reason = reason; + } + + public ResultValueListProjectFieldConfigVo withPageSize(Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Get pageSize + * @return pageSize + */ + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public ResultValueListProjectFieldConfigVo withPageNo(Integer pageNo) { + this.pageNo = pageNo; + return this; + } + + /** + * Get pageNo + * @return pageNo + */ + public Integer getPageNo() { + return pageNo; + } + + public void setPageNo(Integer pageNo) { + this.pageNo = pageNo; + } + + public ResultValueListProjectFieldConfigVo withHasMore(Boolean hasMore) { + this.hasMore = hasMore; + return this; + } + + /** + * Get hasMore + * @return hasMore + */ + public Boolean getHasMore() { + return hasMore; + } + + public void setHasMore(Boolean hasMore) { + this.hasMore = hasMore; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ResultValueListProjectFieldConfigVo that = (ResultValueListProjectFieldConfigVo) obj; + return Objects.equals(this.total, that.total) && Objects.equals(this.value, that.value) + && Objects.equals(this.reason, that.reason) && Objects.equals(this.pageSize, that.pageSize) + && Objects.equals(this.pageNo, that.pageNo) && Objects.equals(this.hasMore, that.hasMore); + } + + @Override + public int hashCode() { + return Objects.hash(total, value, reason, pageSize, pageNo, hasMore); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResultValueListProjectFieldConfigVo {\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); + sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); + sb.append(" pageNo: ").append(toIndentedString(pageNo)).append("\n"); + sb.append(" hasMore: ").append(toIndentedString(hasMore)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ResultValueListResourcePoolVo.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ResultValueListResourcePoolVo.java new file mode 100644 index 0000000000..7da8620f44 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ResultValueListResourcePoolVo.java @@ -0,0 +1,208 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 请求的返回的数据对象 + */ +public class ResultValueListResourcePoolVo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total") + + private Integer total; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private List value = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "reason") + + private String reason; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "page_size") + + private Integer pageSize; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "page_no") + + private Integer pageNo; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "has_more") + + private Boolean hasMore; + + public ResultValueListResourcePoolVo withTotal(Integer total) { + this.total = total; + return this; + } + + /** + * 起始记录数 大于 实际总条数时, 值为0, 分页请求才有此值 + * @return total + */ + public Integer getTotal() { + return total; + } + + public void setTotal(Integer total) { + this.total = total; + } + + public ResultValueListResourcePoolVo withValue(List value) { + this.value = value; + return this; + } + + public ResultValueListResourcePoolVo addValueItem(ResourcePoolVo valueItem) { + if (this.value == null) { + this.value = new ArrayList<>(); + } + this.value.add(valueItem); + return this; + } + + public ResultValueListResourcePoolVo withValue(Consumer> valueSetter) { + if (this.value == null) { + this.value = new ArrayList<>(); + } + valueSetter.accept(this.value); + return this; + } + + /** + * 实际的数据类型:单个对象,集合 或 NULL + * @return value + */ + public List getValue() { + return value; + } + + public void setValue(List value) { + this.value = value; + } + + public ResultValueListResourcePoolVo withReason(String reason) { + this.reason = reason; + return this; + } + + /** + * 业务失败的提示内容,对内接口才有此值 + * @return reason + */ + public String getReason() { + return reason; + } + + public void setReason(String reason) { + this.reason = reason; + } + + public ResultValueListResourcePoolVo withPageSize(Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Get pageSize + * @return pageSize + */ + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public ResultValueListResourcePoolVo withPageNo(Integer pageNo) { + this.pageNo = pageNo; + return this; + } + + /** + * Get pageNo + * @return pageNo + */ + public Integer getPageNo() { + return pageNo; + } + + public void setPageNo(Integer pageNo) { + this.pageNo = pageNo; + } + + public ResultValueListResourcePoolVo withHasMore(Boolean hasMore) { + this.hasMore = hasMore; + return this; + } + + /** + * Get hasMore + * @return hasMore + */ + public Boolean getHasMore() { + return hasMore; + } + + public void setHasMore(Boolean hasMore) { + this.hasMore = hasMore; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ResultValueListResourcePoolVo that = (ResultValueListResourcePoolVo) obj; + return Objects.equals(this.total, that.total) && Objects.equals(this.value, that.value) + && Objects.equals(this.reason, that.reason) && Objects.equals(this.pageSize, that.pageSize) + && Objects.equals(this.pageNo, that.pageNo) && Objects.equals(this.hasMore, that.hasMore); + } + + @Override + public int hashCode() { + return Objects.hash(total, value, reason, pageSize, pageNo, hasMore); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResultValueListResourcePoolVo {\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); + sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); + sb.append(" pageNo: ").append(toIndentedString(pageNo)).append("\n"); + sb.append(" hasMore: ").append(toIndentedString(hasMore)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ResultValueListTestItemVo.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ResultValueListTestItemVo.java new file mode 100644 index 0000000000..047bbb520f --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ResultValueListTestItemVo.java @@ -0,0 +1,208 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 请求的返回的数据对象 + */ +public class ResultValueListTestItemVo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total") + + private Integer total; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private List value = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "reason") + + private String reason; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "page_size") + + private Integer pageSize; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "page_no") + + private Integer pageNo; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "has_more") + + private Boolean hasMore; + + public ResultValueListTestItemVo withTotal(Integer total) { + this.total = total; + return this; + } + + /** + * 起始记录数 大于 实际总条数时, 值为0, 分页请求才有此值 + * @return total + */ + public Integer getTotal() { + return total; + } + + public void setTotal(Integer total) { + this.total = total; + } + + public ResultValueListTestItemVo withValue(List value) { + this.value = value; + return this; + } + + public ResultValueListTestItemVo addValueItem(TestItemVo valueItem) { + if (this.value == null) { + this.value = new ArrayList<>(); + } + this.value.add(valueItem); + return this; + } + + public ResultValueListTestItemVo withValue(Consumer> valueSetter) { + if (this.value == null) { + this.value = new ArrayList<>(); + } + valueSetter.accept(this.value); + return this; + } + + /** + * 实际的数据类型:单个对象,集合 或 NULL + * @return value + */ + public List getValue() { + return value; + } + + public void setValue(List value) { + this.value = value; + } + + public ResultValueListTestItemVo withReason(String reason) { + this.reason = reason; + return this; + } + + /** + * 业务失败的提示内容,对内接口才有此值 + * @return reason + */ + public String getReason() { + return reason; + } + + public void setReason(String reason) { + this.reason = reason; + } + + public ResultValueListTestItemVo withPageSize(Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Get pageSize + * @return pageSize + */ + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public ResultValueListTestItemVo withPageNo(Integer pageNo) { + this.pageNo = pageNo; + return this; + } + + /** + * Get pageNo + * @return pageNo + */ + public Integer getPageNo() { + return pageNo; + } + + public void setPageNo(Integer pageNo) { + this.pageNo = pageNo; + } + + public ResultValueListTestItemVo withHasMore(Boolean hasMore) { + this.hasMore = hasMore; + return this; + } + + /** + * Get hasMore + * @return hasMore + */ + public Boolean getHasMore() { + return hasMore; + } + + public void setHasMore(Boolean hasMore) { + this.hasMore = hasMore; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ResultValueListTestItemVo that = (ResultValueListTestItemVo) obj; + return Objects.equals(this.total, that.total) && Objects.equals(this.value, that.value) + && Objects.equals(this.reason, that.reason) && Objects.equals(this.pageSize, that.pageSize) + && Objects.equals(this.pageNo, that.pageNo) && Objects.equals(this.hasMore, that.hasMore); + } + + @Override + public int hashCode() { + return Objects.hash(total, value, reason, pageSize, pageNo, hasMore); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResultValueListTestItemVo {\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); + sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); + sb.append(" pageNo: ").append(toIndentedString(pageNo)).append("\n"); + sb.append(" hasMore: ").append(toIndentedString(hasMore)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ResultValueListTestVersionVo.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ResultValueListTestVersionVo.java new file mode 100644 index 0000000000..b5567fb97d --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ResultValueListTestVersionVo.java @@ -0,0 +1,208 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 请求的返回的数据对象 + */ +public class ResultValueListTestVersionVo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total") + + private Integer total; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private List value = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "reason") + + private String reason; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "page_size") + + private Integer pageSize; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "page_no") + + private Integer pageNo; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "has_more") + + private Boolean hasMore; + + public ResultValueListTestVersionVo withTotal(Integer total) { + this.total = total; + return this; + } + + /** + * 起始记录数 大于 实际总条数时, 值为0, 分页请求才有此值 + * @return total + */ + public Integer getTotal() { + return total; + } + + public void setTotal(Integer total) { + this.total = total; + } + + public ResultValueListTestVersionVo withValue(List value) { + this.value = value; + return this; + } + + public ResultValueListTestVersionVo addValueItem(TestVersionVo valueItem) { + if (this.value == null) { + this.value = new ArrayList<>(); + } + this.value.add(valueItem); + return this; + } + + public ResultValueListTestVersionVo withValue(Consumer> valueSetter) { + if (this.value == null) { + this.value = new ArrayList<>(); + } + valueSetter.accept(this.value); + return this; + } + + /** + * 实际的数据类型:单个对象,集合 或 NULL + * @return value + */ + public List getValue() { + return value; + } + + public void setValue(List value) { + this.value = value; + } + + public ResultValueListTestVersionVo withReason(String reason) { + this.reason = reason; + return this; + } + + /** + * 业务失败的提示内容,对内接口才有此值 + * @return reason + */ + public String getReason() { + return reason; + } + + public void setReason(String reason) { + this.reason = reason; + } + + public ResultValueListTestVersionVo withPageSize(Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Get pageSize + * @return pageSize + */ + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public ResultValueListTestVersionVo withPageNo(Integer pageNo) { + this.pageNo = pageNo; + return this; + } + + /** + * Get pageNo + * @return pageNo + */ + public Integer getPageNo() { + return pageNo; + } + + public void setPageNo(Integer pageNo) { + this.pageNo = pageNo; + } + + public ResultValueListTestVersionVo withHasMore(Boolean hasMore) { + this.hasMore = hasMore; + return this; + } + + /** + * Get hasMore + * @return hasMore + */ + public Boolean getHasMore() { + return hasMore; + } + + public void setHasMore(Boolean hasMore) { + this.hasMore = hasMore; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ResultValueListTestVersionVo that = (ResultValueListTestVersionVo) obj; + return Objects.equals(this.total, that.total) && Objects.equals(this.value, that.value) + && Objects.equals(this.reason, that.reason) && Objects.equals(this.pageSize, that.pageSize) + && Objects.equals(this.pageNo, that.pageNo) && Objects.equals(this.hasMore, that.hasMore); + } + + @Override + public int hashCode() { + return Objects.hash(total, value, reason, pageSize, pageNo, hasMore); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResultValueListTestVersionVo {\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); + sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); + sb.append(" pageNo: ").append(toIndentedString(pageNo)).append("\n"); + sb.append(" hasMore: ").append(toIndentedString(hasMore)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ResultValueRequirementsOverviewVo.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ResultValueRequirementsOverviewVo.java new file mode 100644 index 0000000000..1d14a57a68 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ResultValueRequirementsOverviewVo.java @@ -0,0 +1,199 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 请求的返回的数据对象 + */ +public class ResultValueRequirementsOverviewVo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total") + + private Integer total; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private RequirementsOverviewVo value; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "reason") + + private String reason; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "page_size") + + private Integer pageSize; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "page_no") + + private Integer pageNo; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "has_more") + + private Boolean hasMore; + + public ResultValueRequirementsOverviewVo withTotal(Integer total) { + this.total = total; + return this; + } + + /** + * 起始记录数 大于 实际总条数时, 值为0, 分页请求才有此值 + * @return total + */ + public Integer getTotal() { + return total; + } + + public void setTotal(Integer total) { + this.total = total; + } + + public ResultValueRequirementsOverviewVo withValue(RequirementsOverviewVo value) { + this.value = value; + return this; + } + + public ResultValueRequirementsOverviewVo withValue(Consumer valueSetter) { + if (this.value == null) { + this.value = new RequirementsOverviewVo(); + valueSetter.accept(this.value); + } + + return this; + } + + /** + * Get value + * @return value + */ + public RequirementsOverviewVo getValue() { + return value; + } + + public void setValue(RequirementsOverviewVo value) { + this.value = value; + } + + public ResultValueRequirementsOverviewVo withReason(String reason) { + this.reason = reason; + return this; + } + + /** + * 业务失败的提示内容,对内接口才有此值 + * @return reason + */ + public String getReason() { + return reason; + } + + public void setReason(String reason) { + this.reason = reason; + } + + public ResultValueRequirementsOverviewVo withPageSize(Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Get pageSize + * @return pageSize + */ + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public ResultValueRequirementsOverviewVo withPageNo(Integer pageNo) { + this.pageNo = pageNo; + return this; + } + + /** + * Get pageNo + * @return pageNo + */ + public Integer getPageNo() { + return pageNo; + } + + public void setPageNo(Integer pageNo) { + this.pageNo = pageNo; + } + + public ResultValueRequirementsOverviewVo withHasMore(Boolean hasMore) { + this.hasMore = hasMore; + return this; + } + + /** + * Get hasMore + * @return hasMore + */ + public Boolean getHasMore() { + return hasMore; + } + + public void setHasMore(Boolean hasMore) { + this.hasMore = hasMore; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ResultValueRequirementsOverviewVo that = (ResultValueRequirementsOverviewVo) obj; + return Objects.equals(this.total, that.total) && Objects.equals(this.value, that.value) + && Objects.equals(this.reason, that.reason) && Objects.equals(this.pageSize, that.pageSize) + && Objects.equals(this.pageNo, that.pageNo) && Objects.equals(this.hasMore, that.hasMore); + } + + @Override + public int hashCode() { + return Objects.hash(total, value, reason, pageSize, pageNo, hasMore); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResultValueRequirementsOverviewVo {\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); + sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); + sb.append(" pageNo: ").append(toIndentedString(pageNo)).append("\n"); + sb.append(" hasMore: ").append(toIndentedString(hasMore)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/MobvoiVoiceAssetMeta.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ResultValueStringForOk.java similarity index 56% rename from services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/MobvoiVoiceAssetMeta.java rename to services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ResultValueStringForOk.java index f34c9beba3..4c7d2b611a 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/MobvoiVoiceAssetMeta.java +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ResultValueStringForOk.java @@ -1,4 +1,4 @@ -package com.huaweicloud.sdk.metastudio.v1.model; +package com.huaweicloud.sdk.cloudtest.v1.model; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -6,30 +6,30 @@ import java.util.Objects; /** - * 出门问问TTS音色元数据。 + * ResultValueStringForOk */ -public class MobvoiVoiceAssetMeta { +public class ResultValueStringForOk { @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "speaker") + @JsonProperty(value = "value") - private String speaker; + private String value; - public MobvoiVoiceAssetMeta withSpeaker(String speaker) { - this.speaker = speaker; + public ResultValueStringForOk withValue(String value) { + this.value = value; return this; } /** - * 合成音频指定发音人 - * @return speaker + * ok + * @return value */ - public String getSpeaker() { - return speaker; + public String getValue() { + return value; } - public void setSpeaker(String speaker) { - this.speaker = speaker; + public void setValue(String value) { + this.value = value; } @Override @@ -40,20 +40,20 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - MobvoiVoiceAssetMeta that = (MobvoiVoiceAssetMeta) obj; - return Objects.equals(this.speaker, that.speaker); + ResultValueStringForOk that = (ResultValueStringForOk) obj; + return Objects.equals(this.value, that.value); } @Override public int hashCode() { - return Objects.hash(speaker); + return Objects.hash(value); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class MobvoiVoiceAssetMeta {\n"); - sb.append(" speaker: ").append(toIndentedString(speaker)).append("\n"); + sb.append("class ResultValueStringForOk {\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/SaveTaskSettingRequest.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/SaveTaskSettingRequest.java new file mode 100644 index 0000000000..8be74a4b42 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/SaveTaskSettingRequest.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class SaveTaskSettingRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "service_id") + + private String serviceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private SaveTaskSettingRequestBody body; + + public SaveTaskSettingRequest withServiceId(String serviceId) { + this.serviceId = serviceId; + return this; + } + + /** + * 服务id + * @return serviceId + */ + public String getServiceId() { + return serviceId; + } + + public void setServiceId(String serviceId) { + this.serviceId = serviceId; + } + + public SaveTaskSettingRequest withBody(SaveTaskSettingRequestBody body) { + this.body = body; + return this; + } + + public SaveTaskSettingRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new SaveTaskSettingRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public SaveTaskSettingRequestBody getBody() { + return body; + } + + public void setBody(SaveTaskSettingRequestBody body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + SaveTaskSettingRequest that = (SaveTaskSettingRequest) obj; + return Objects.equals(this.serviceId, that.serviceId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(serviceId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SaveTaskSettingRequest {\n"); + sb.append(" serviceId: ").append(toIndentedString(serviceId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/SaveTaskSettingRequestBody.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/SaveTaskSettingRequestBody.java new file mode 100644 index 0000000000..bf117de9dc --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/SaveTaskSettingRequestBody.java @@ -0,0 +1,173 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** + * SaveTaskSettingRequestBody + */ +public class SaveTaskSettingRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "max_running_time") + + private Integer maxRunningTime; + + /** + * 是否长期运行 + */ + public static final class IsLongRunEnum { + + /** + * Enum _1 for value: "1" + */ + public static final IsLongRunEnum _1 = new IsLongRunEnum("1"); + + /** + * Enum _0 for value: "0" + */ + public static final IsLongRunEnum _0 = new IsLongRunEnum("0"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("1", _1); + map.put("0", _0); + return Collections.unmodifiableMap(map); + } + + private String value; + + IsLongRunEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static IsLongRunEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new IsLongRunEnum(value)); + } + + public static IsLongRunEnum valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof IsLongRunEnum) { + return this.value.equals(((IsLongRunEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_long_run") + + private IsLongRunEnum isLongRun; + + public SaveTaskSettingRequestBody withMaxRunningTime(Integer maxRunningTime) { + this.maxRunningTime = maxRunningTime; + return this; + } + + /** + * 自定义时长 + * minimum: 0 + * maximum: 1000 + * @return maxRunningTime + */ + public Integer getMaxRunningTime() { + return maxRunningTime; + } + + public void setMaxRunningTime(Integer maxRunningTime) { + this.maxRunningTime = maxRunningTime; + } + + public SaveTaskSettingRequestBody withIsLongRun(IsLongRunEnum isLongRun) { + this.isLongRun = isLongRun; + return this; + } + + /** + * 是否长期运行 + * @return isLongRun + */ + public IsLongRunEnum getIsLongRun() { + return isLongRun; + } + + public void setIsLongRun(IsLongRunEnum isLongRun) { + this.isLongRun = isLongRun; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + SaveTaskSettingRequestBody that = (SaveTaskSettingRequestBody) obj; + return Objects.equals(this.maxRunningTime, that.maxRunningTime) + && Objects.equals(this.isLongRun, that.isLongRun); + } + + @Override + public int hashCode() { + return Objects.hash(maxRunningTime, isLongRun); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SaveTaskSettingRequestBody {\n"); + sb.append(" maxRunningTime: ").append(toIndentedString(maxRunningTime)).append("\n"); + sb.append(" isLongRun: ").append(toIndentedString(isLongRun)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/SaveTaskSettingResponse.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/SaveTaskSettingResponse.java new file mode 100644 index 0000000000..4b30c021c2 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/SaveTaskSettingResponse.java @@ -0,0 +1,96 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class SaveTaskSettingResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "error_code") + + private String errorCode; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "error_msg") + + private String errorMsg; + + public SaveTaskSettingResponse withErrorCode(String errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * 错误编码 + * @return errorCode + */ + public String getErrorCode() { + return errorCode; + } + + public void setErrorCode(String errorCode) { + this.errorCode = errorCode; + } + + public SaveTaskSettingResponse withErrorMsg(String errorMsg) { + this.errorMsg = errorMsg; + return this; + } + + /** + * 错误原因 + * @return errorMsg + */ + public String getErrorMsg() { + return errorMsg; + } + + public void setErrorMsg(String errorMsg) { + this.errorMsg = errorMsg; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + SaveTaskSettingResponse that = (SaveTaskSettingResponse) obj; + return Objects.equals(this.errorCode, that.errorCode) && Objects.equals(this.errorMsg, that.errorMsg); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, errorMsg); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SaveTaskSettingResponse {\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" errorMsg: ").append(toIndentedString(errorMsg)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowAllConfigValueByTypeAndKeyRequest.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowAllConfigValueByTypeAndKeyRequest.java new file mode 100644 index 0000000000..87defe727c --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowAllConfigValueByTypeAndKeyRequest.java @@ -0,0 +1,119 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ShowAllConfigValueByTypeAndKeyRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "service_id") + + private String serviceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "key") + + private String key; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "type") + + private String type; + + public ShowAllConfigValueByTypeAndKeyRequest withServiceId(String serviceId) { + this.serviceId = serviceId; + return this; + } + + /** + * 服务id + * @return serviceId + */ + public String getServiceId() { + return serviceId; + } + + public void setServiceId(String serviceId) { + this.serviceId = serviceId; + } + + public ShowAllConfigValueByTypeAndKeyRequest withKey(String key) { + this.key = key; + return this; + } + + /** + * 配置项key + * @return key + */ + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public ShowAllConfigValueByTypeAndKeyRequest withType(String type) { + this.type = type; + return this; + } + + /** + * 配置项类型 + * @return type + */ + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowAllConfigValueByTypeAndKeyRequest that = (ShowAllConfigValueByTypeAndKeyRequest) obj; + return Objects.equals(this.serviceId, that.serviceId) && Objects.equals(this.key, that.key) + && Objects.equals(this.type, that.type); + } + + @Override + public int hashCode() { + return Objects.hash(serviceId, key, type); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowAllConfigValueByTypeAndKeyRequest {\n"); + sb.append(" serviceId: ").append(toIndentedString(serviceId)).append("\n"); + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowAllConfigValueByTypeAndKeyResponse.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowAllConfigValueByTypeAndKeyResponse.java new file mode 100644 index 0000000000..19a25ff269 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowAllConfigValueByTypeAndKeyResponse.java @@ -0,0 +1,294 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.time.OffsetDateTime; +import java.util.Objects; + +/** + * Response Object + */ +public class ShowAllConfigValueByTypeAndKeyResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "comments") + + private String comments; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "config_key") + + private String configKey; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "config_type") + + private String configType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "config_value") + + private String configValue; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time") + + private OffsetDateTime createTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_user") + + private String createUser; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "test_service_id") + + private String testServiceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_time") + + private OffsetDateTime updateTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_user") + + private String updateUser; + + public ShowAllConfigValueByTypeAndKeyResponse withComments(String comments) { + this.comments = comments; + return this; + } + + /** + * 备注 + * @return comments + */ + public String getComments() { + return comments; + } + + public void setComments(String comments) { + this.comments = comments; + } + + public ShowAllConfigValueByTypeAndKeyResponse withConfigKey(String configKey) { + this.configKey = configKey; + return this; + } + + /** + * 配置键 + * @return configKey + */ + public String getConfigKey() { + return configKey; + } + + public void setConfigKey(String configKey) { + this.configKey = configKey; + } + + public ShowAllConfigValueByTypeAndKeyResponse withConfigType(String configType) { + this.configType = configType; + return this; + } + + /** + * 配置类型 + * @return configType + */ + public String getConfigType() { + return configType; + } + + public void setConfigType(String configType) { + this.configType = configType; + } + + public ShowAllConfigValueByTypeAndKeyResponse withConfigValue(String configValue) { + this.configValue = configValue; + return this; + } + + /** + * 配置值 + * @return configValue + */ + public String getConfigValue() { + return configValue; + } + + public void setConfigValue(String configValue) { + this.configValue = configValue; + } + + public ShowAllConfigValueByTypeAndKeyResponse withCreateTime(OffsetDateTime createTime) { + this.createTime = createTime; + return this; + } + + /** + * 创建时间 + * @return createTime + */ + public OffsetDateTime getCreateTime() { + return createTime; + } + + public void setCreateTime(OffsetDateTime createTime) { + this.createTime = createTime; + } + + public ShowAllConfigValueByTypeAndKeyResponse withCreateUser(String createUser) { + this.createUser = createUser; + return this; + } + + /** + * 创建者 + * @return createUser + */ + public String getCreateUser() { + return createUser; + } + + public void setCreateUser(String createUser) { + this.createUser = createUser; + } + + public ShowAllConfigValueByTypeAndKeyResponse withId(String id) { + this.id = id; + return this; + } + + /** + * UUID + * @return id + */ + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public ShowAllConfigValueByTypeAndKeyResponse withTestServiceId(String testServiceId) { + this.testServiceId = testServiceId; + return this; + } + + /** + * 服务id + * @return testServiceId + */ + public String getTestServiceId() { + return testServiceId; + } + + public void setTestServiceId(String testServiceId) { + this.testServiceId = testServiceId; + } + + public ShowAllConfigValueByTypeAndKeyResponse withUpdateTime(OffsetDateTime updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * 修改时间 + * @return updateTime + */ + public OffsetDateTime getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(OffsetDateTime updateTime) { + this.updateTime = updateTime; + } + + public ShowAllConfigValueByTypeAndKeyResponse withUpdateUser(String updateUser) { + this.updateUser = updateUser; + return this; + } + + /** + * 修改者 + * @return updateUser + */ + public String getUpdateUser() { + return updateUser; + } + + public void setUpdateUser(String updateUser) { + this.updateUser = updateUser; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowAllConfigValueByTypeAndKeyResponse that = (ShowAllConfigValueByTypeAndKeyResponse) obj; + return Objects.equals(this.comments, that.comments) && Objects.equals(this.configKey, that.configKey) + && Objects.equals(this.configType, that.configType) && Objects.equals(this.configValue, that.configValue) + && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.createUser, that.createUser) + && Objects.equals(this.id, that.id) && Objects.equals(this.testServiceId, that.testServiceId) + && Objects.equals(this.updateTime, that.updateTime) && Objects.equals(this.updateUser, that.updateUser); + } + + @Override + public int hashCode() { + return Objects.hash(comments, + configKey, + configType, + configValue, + createTime, + createUser, + id, + testServiceId, + updateTime, + updateUser); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowAllConfigValueByTypeAndKeyResponse {\n"); + sb.append(" comments: ").append(toIndentedString(comments)).append("\n"); + sb.append(" configKey: ").append(toIndentedString(configKey)).append("\n"); + sb.append(" configType: ").append(toIndentedString(configType)).append("\n"); + sb.append(" configValue: ").append(toIndentedString(configValue)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" createUser: ").append(toIndentedString(createUser)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" testServiceId: ").append(toIndentedString(testServiceId)).append("\n"); + sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); + sb.append(" updateUser: ").append(toIndentedString(updateUser)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowAllFeatureChildrenRequest.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowAllFeatureChildrenRequest.java new file mode 100644 index 0000000000..7cac101f21 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowAllFeatureChildrenRequest.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class ShowAllFeatureChildrenRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "feature_id") + + private String featureId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private QueryTestItemTreeInfo body; + + public ShowAllFeatureChildrenRequest withFeatureId(String featureId) { + this.featureId = featureId; + return this; + } + + /** + * Get featureId + * @return featureId + */ + public String getFeatureId() { + return featureId; + } + + public void setFeatureId(String featureId) { + this.featureId = featureId; + } + + public ShowAllFeatureChildrenRequest withBody(QueryTestItemTreeInfo body) { + this.body = body; + return this; + } + + public ShowAllFeatureChildrenRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new QueryTestItemTreeInfo(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public QueryTestItemTreeInfo getBody() { + return body; + } + + public void setBody(QueryTestItemTreeInfo body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowAllFeatureChildrenRequest that = (ShowAllFeatureChildrenRequest) obj; + return Objects.equals(this.featureId, that.featureId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(featureId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowAllFeatureChildrenRequest {\n"); + sb.append(" featureId: ").append(toIndentedString(featureId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowAllFeatureChildrenResponse.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowAllFeatureChildrenResponse.java new file mode 100644 index 0000000000..89fa64d49e --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowAllFeatureChildrenResponse.java @@ -0,0 +1,186 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ShowAllFeatureChildrenResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private String status; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "result") + + private ResultValueListTestItemVo result; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "error") + + private ApiError error; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "request_id") + + private String requestId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "server_address") + + private String serverAddress; + + public ShowAllFeatureChildrenResponse withStatus(String status) { + this.status = status; + return this; + } + + /** + * 对外时:success|error; 对内时:ok|failed + * @return status + */ + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public ShowAllFeatureChildrenResponse withResult(ResultValueListTestItemVo result) { + this.result = result; + return this; + } + + public ShowAllFeatureChildrenResponse withResult(Consumer resultSetter) { + if (this.result == null) { + this.result = new ResultValueListTestItemVo(); + resultSetter.accept(this.result); + } + + return this; + } + + /** + * Get result + * @return result + */ + public ResultValueListTestItemVo getResult() { + return result; + } + + public void setResult(ResultValueListTestItemVo result) { + this.result = result; + } + + public ShowAllFeatureChildrenResponse withError(ApiError error) { + this.error = error; + return this; + } + + public ShowAllFeatureChildrenResponse withError(Consumer errorSetter) { + if (this.error == null) { + this.error = new ApiError(); + errorSetter.accept(this.error); + } + + return this; + } + + /** + * Get error + * @return error + */ + public ApiError getError() { + return error; + } + + public void setError(ApiError error) { + this.error = error; + } + + public ShowAllFeatureChildrenResponse withRequestId(String requestId) { + this.requestId = requestId; + return this; + } + + /** + * 由接口调用方传入,建议使用UUID保证请求的唯一性。 + * @return requestId + */ + public String getRequestId() { + return requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public ShowAllFeatureChildrenResponse withServerAddress(String serverAddress) { + this.serverAddress = serverAddress; + return this; + } + + /** + * 对内接口才有此属性 + * @return serverAddress + */ + public String getServerAddress() { + return serverAddress; + } + + public void setServerAddress(String serverAddress) { + this.serverAddress = serverAddress; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowAllFeatureChildrenResponse that = (ShowAllFeatureChildrenResponse) obj; + return Objects.equals(this.status, that.status) && Objects.equals(this.result, that.result) + && Objects.equals(this.error, that.error) && Objects.equals(this.requestId, that.requestId) + && Objects.equals(this.serverAddress, that.serverAddress); + } + + @Override + public int hashCode() { + return Objects.hash(status, result, error, requestId, serverAddress); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowAllFeatureChildrenResponse {\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); + sb.append(" serverAddress: ").append(toIndentedString(serverAddress)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowBackgroundInfoRequest.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowBackgroundInfoRequest.java new file mode 100644 index 0000000000..69f088f633 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowBackgroundInfoRequest.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ShowBackgroundInfoRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_id") + + private String projectId; + + public ShowBackgroundInfoRequest withProjectId(String projectId) { + this.projectId = projectId; + return this; + } + + /** + * 项目ID,固定长度32位字符(字母和数字)。 + * @return projectId + */ + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowBackgroundInfoRequest that = (ShowBackgroundInfoRequest) obj; + return Objects.equals(this.projectId, that.projectId); + } + + @Override + public int hashCode() { + return Objects.hash(projectId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowBackgroundInfoRequest {\n"); + sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowBackgroundInfoResponse.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowBackgroundInfoResponse.java new file mode 100644 index 0000000000..7e0e9174c0 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowBackgroundInfoResponse.java @@ -0,0 +1,145 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class ShowBackgroundInfoResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_uuid") + + private String projectUuid; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "cover_file_name") + + private String coverFileName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "background_file_name") + + private String backgroundFileName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "logo_file_name") + + private String logoFileName; + + public ShowBackgroundInfoResponse withProjectUuid(String projectUuid) { + this.projectUuid = projectUuid; + return this; + } + + /** + * 项目id + * @return projectUuid + */ + public String getProjectUuid() { + return projectUuid; + } + + public void setProjectUuid(String projectUuid) { + this.projectUuid = projectUuid; + } + + public ShowBackgroundInfoResponse withCoverFileName(String coverFileName) { + this.coverFileName = coverFileName; + return this; + } + + /** + * cover文件名称 + * @return coverFileName + */ + public String getCoverFileName() { + return coverFileName; + } + + public void setCoverFileName(String coverFileName) { + this.coverFileName = coverFileName; + } + + public ShowBackgroundInfoResponse withBackgroundFileName(String backgroundFileName) { + this.backgroundFileName = backgroundFileName; + return this; + } + + /** + * 背景文件名称 + * @return backgroundFileName + */ + public String getBackgroundFileName() { + return backgroundFileName; + } + + public void setBackgroundFileName(String backgroundFileName) { + this.backgroundFileName = backgroundFileName; + } + + public ShowBackgroundInfoResponse withLogoFileName(String logoFileName) { + this.logoFileName = logoFileName; + return this; + } + + /** + * logo文件名称 + * @return logoFileName + */ + public String getLogoFileName() { + return logoFileName; + } + + public void setLogoFileName(String logoFileName) { + this.logoFileName = logoFileName; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowBackgroundInfoResponse that = (ShowBackgroundInfoResponse) obj; + return Objects.equals(this.projectUuid, that.projectUuid) + && Objects.equals(this.coverFileName, that.coverFileName) + && Objects.equals(this.backgroundFileName, that.backgroundFileName) + && Objects.equals(this.logoFileName, that.logoFileName); + } + + @Override + public int hashCode() { + return Objects.hash(projectUuid, coverFileName, backgroundFileName, logoFileName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowBackgroundInfoResponse {\n"); + sb.append(" projectUuid: ").append(toIndentedString(projectUuid)).append("\n"); + sb.append(" coverFileName: ").append(toIndentedString(coverFileName)).append("\n"); + sb.append(" backgroundFileName: ").append(toIndentedString(backgroundFileName)).append("\n"); + sb.append(" logoFileName: ").append(toIndentedString(logoFileName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowDisclaimerRecordRequest.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowDisclaimerRecordRequest.java new file mode 100644 index 0000000000..114fcf2e31 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowDisclaimerRecordRequest.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ShowDisclaimerRecordRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "type") + + private String type; + + public ShowDisclaimerRecordRequest withType(String type) { + this.type = type; + return this; + } + + /** + * 类型 + * @return type + */ + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowDisclaimerRecordRequest that = (ShowDisclaimerRecordRequest) obj; + return Objects.equals(this.type, that.type); + } + + @Override + public int hashCode() { + return Objects.hash(type); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowDisclaimerRecordRequest {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowDisclaimerRecordResponse.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowDisclaimerRecordResponse.java new file mode 100644 index 0000000000..12af378461 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowDisclaimerRecordResponse.java @@ -0,0 +1,73 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class ShowDisclaimerRecordResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private Boolean value; + + public ShowDisclaimerRecordResponse withValue(Boolean value) { + this.value = value; + return this; + } + + /** + * 实际的数据类型:单个对象,集合 或 NULL + * @return value + */ + public Boolean getValue() { + return value; + } + + public void setValue(Boolean value) { + this.value = value; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowDisclaimerRecordResponse that = (ShowDisclaimerRecordResponse) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowDisclaimerRecordResponse {\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowDomainInfoRequest.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowDomainInfoRequest.java new file mode 100644 index 0000000000..488ec2b3a8 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowDomainInfoRequest.java @@ -0,0 +1,34 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import java.util.Objects; + +/** + * Request Object + */ +public class ShowDomainInfoRequest { + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowDomainInfoRequest {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowDomainInfoResponse.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowDomainInfoResponse.java new file mode 100644 index 0000000000..bd16669b19 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowDomainInfoResponse.java @@ -0,0 +1,73 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class ShowDomainInfoResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private String value; + + public ShowDomainInfoResponse withValue(String value) { + this.value = value; + return this; + } + + /** + * Get value + * @return value + */ + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowDomainInfoResponse that = (ShowDomainInfoResponse) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowDomainInfoResponse {\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowFeatureChildrenRequest.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowFeatureChildrenRequest.java new file mode 100644 index 0000000000..a576133a10 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowFeatureChildrenRequest.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class ShowFeatureChildrenRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "feature_id") + + private String featureId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private QueryTestItemTreeInfo body; + + public ShowFeatureChildrenRequest withFeatureId(String featureId) { + this.featureId = featureId; + return this; + } + + /** + * Get featureId + * @return featureId + */ + public String getFeatureId() { + return featureId; + } + + public void setFeatureId(String featureId) { + this.featureId = featureId; + } + + public ShowFeatureChildrenRequest withBody(QueryTestItemTreeInfo body) { + this.body = body; + return this; + } + + public ShowFeatureChildrenRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new QueryTestItemTreeInfo(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public QueryTestItemTreeInfo getBody() { + return body; + } + + public void setBody(QueryTestItemTreeInfo body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowFeatureChildrenRequest that = (ShowFeatureChildrenRequest) obj; + return Objects.equals(this.featureId, that.featureId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(featureId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowFeatureChildrenRequest {\n"); + sb.append(" featureId: ").append(toIndentedString(featureId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowFeatureChildrenResponse.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowFeatureChildrenResponse.java new file mode 100644 index 0000000000..8ffd599487 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowFeatureChildrenResponse.java @@ -0,0 +1,186 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ShowFeatureChildrenResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private String status; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "result") + + private ResultValueListTestItemVo result; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "error") + + private ApiError error; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "request_id") + + private String requestId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "server_address") + + private String serverAddress; + + public ShowFeatureChildrenResponse withStatus(String status) { + this.status = status; + return this; + } + + /** + * 对外时:success|error; 对内时:ok|failed + * @return status + */ + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public ShowFeatureChildrenResponse withResult(ResultValueListTestItemVo result) { + this.result = result; + return this; + } + + public ShowFeatureChildrenResponse withResult(Consumer resultSetter) { + if (this.result == null) { + this.result = new ResultValueListTestItemVo(); + resultSetter.accept(this.result); + } + + return this; + } + + /** + * Get result + * @return result + */ + public ResultValueListTestItemVo getResult() { + return result; + } + + public void setResult(ResultValueListTestItemVo result) { + this.result = result; + } + + public ShowFeatureChildrenResponse withError(ApiError error) { + this.error = error; + return this; + } + + public ShowFeatureChildrenResponse withError(Consumer errorSetter) { + if (this.error == null) { + this.error = new ApiError(); + errorSetter.accept(this.error); + } + + return this; + } + + /** + * Get error + * @return error + */ + public ApiError getError() { + return error; + } + + public void setError(ApiError error) { + this.error = error; + } + + public ShowFeatureChildrenResponse withRequestId(String requestId) { + this.requestId = requestId; + return this; + } + + /** + * 由接口调用方传入,建议使用UUID保证请求的唯一性。 + * @return requestId + */ + public String getRequestId() { + return requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public ShowFeatureChildrenResponse withServerAddress(String serverAddress) { + this.serverAddress = serverAddress; + return this; + } + + /** + * 对内接口才有此属性 + * @return serverAddress + */ + public String getServerAddress() { + return serverAddress; + } + + public void setServerAddress(String serverAddress) { + this.serverAddress = serverAddress; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowFeatureChildrenResponse that = (ShowFeatureChildrenResponse) obj; + return Objects.equals(this.status, that.status) && Objects.equals(this.result, that.result) + && Objects.equals(this.error, that.error) && Objects.equals(this.requestId, that.requestId) + && Objects.equals(this.serverAddress, that.serverAddress); + } + + @Override + public int hashCode() { + return Objects.hash(status, result, error, requestId, serverAddress); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowFeatureChildrenResponse {\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); + sb.append(" serverAddress: ").append(toIndentedString(serverAddress)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowFreeDeclarationRequest.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowFreeDeclarationRequest.java new file mode 100644 index 0000000000..dec392a812 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowFreeDeclarationRequest.java @@ -0,0 +1,34 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import java.util.Objects; + +/** + * Request Object + */ +public class ShowFreeDeclarationRequest { + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowFreeDeclarationRequest {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowFreeDeclarationResponse.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowFreeDeclarationResponse.java new file mode 100644 index 0000000000..542446f202 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowFreeDeclarationResponse.java @@ -0,0 +1,73 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class ShowFreeDeclarationResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private Boolean value; + + public ShowFreeDeclarationResponse withValue(Boolean value) { + this.value = value; + return this; + } + + /** + * 实际的数据类型:单个对象,集合 或 NULL + * @return value + */ + public Boolean getValue() { + return value; + } + + public void setValue(Boolean value) { + this.value = value; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowFreeDeclarationResponse that = (ShowFreeDeclarationResponse) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowFreeDeclarationResponse {\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowIfTaskNameRepeatRequest.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowIfTaskNameRepeatRequest.java new file mode 100644 index 0000000000..64583b707c --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowIfTaskNameRepeatRequest.java @@ -0,0 +1,119 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ShowIfTaskNameRepeatRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "service_id") + + private String serviceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + public ShowIfTaskNameRepeatRequest withServiceId(String serviceId) { + this.serviceId = serviceId; + return this; + } + + /** + * 服务id + * @return serviceId + */ + public String getServiceId() { + return serviceId; + } + + public void setServiceId(String serviceId) { + this.serviceId = serviceId; + } + + public ShowIfTaskNameRepeatRequest withId(String id) { + this.id = id; + return this; + } + + /** + * UUID + * @return id + */ + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public ShowIfTaskNameRepeatRequest withName(String name) { + this.name = name; + return this; + } + + /** + * 查询的模板名称 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowIfTaskNameRepeatRequest that = (ShowIfTaskNameRepeatRequest) obj; + return Objects.equals(this.serviceId, that.serviceId) && Objects.equals(this.id, that.id) + && Objects.equals(this.name, that.name); + } + + @Override + public int hashCode() { + return Objects.hash(serviceId, id, name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowIfTaskNameRepeatRequest {\n"); + sb.append(" serviceId: ").append(toIndentedString(serviceId)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowIfTaskNameRepeatResponse.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowIfTaskNameRepeatResponse.java new file mode 100644 index 0000000000..40190b9dae --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowIfTaskNameRepeatResponse.java @@ -0,0 +1,186 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ShowIfTaskNameRepeatResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "pageNo") + + private Integer pageNo; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "pageSize") + + private Integer pageSize; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "totalPage") + + private Integer totalPage; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "totalSize") + + private Integer totalSize; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "pageList") + + private List pageList = null; + + public ShowIfTaskNameRepeatResponse withPageNo(Integer pageNo) { + this.pageNo = pageNo; + return this; + } + + /** + * 当前页 + * @return pageNo + */ + public Integer getPageNo() { + return pageNo; + } + + public void setPageNo(Integer pageNo) { + this.pageNo = pageNo; + } + + public ShowIfTaskNameRepeatResponse withPageSize(Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * 每页大小 + * @return pageSize + */ + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public ShowIfTaskNameRepeatResponse withTotalPage(Integer totalPage) { + this.totalPage = totalPage; + return this; + } + + /** + * 总页数 + * @return totalPage + */ + public Integer getTotalPage() { + return totalPage; + } + + public void setTotalPage(Integer totalPage) { + this.totalPage = totalPage; + } + + public ShowIfTaskNameRepeatResponse withTotalSize(Integer totalSize) { + this.totalSize = totalSize; + return this; + } + + /** + * 总条数 + * @return totalSize + */ + public Integer getTotalSize() { + return totalSize; + } + + public void setTotalSize(Integer totalSize) { + this.totalSize = totalSize; + } + + public ShowIfTaskNameRepeatResponse withPageList(List pageList) { + this.pageList = pageList; + return this; + } + + public ShowIfTaskNameRepeatResponse addPageListItem(AlarmTemplateInfo pageListItem) { + if (this.pageList == null) { + this.pageList = new ArrayList<>(); + } + this.pageList.add(pageListItem); + return this; + } + + public ShowIfTaskNameRepeatResponse withPageList(Consumer> pageListSetter) { + if (this.pageList == null) { + this.pageList = new ArrayList<>(); + } + pageListSetter.accept(this.pageList); + return this; + } + + /** + * 查询到的告警模板 + * @return pageList + */ + public List getPageList() { + return pageList; + } + + public void setPageList(List pageList) { + this.pageList = pageList; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowIfTaskNameRepeatResponse that = (ShowIfTaskNameRepeatResponse) obj; + return Objects.equals(this.pageNo, that.pageNo) && Objects.equals(this.pageSize, that.pageSize) + && Objects.equals(this.totalPage, that.totalPage) && Objects.equals(this.totalSize, that.totalSize) + && Objects.equals(this.pageList, that.pageList); + } + + @Override + public int hashCode() { + return Objects.hash(pageNo, pageSize, totalPage, totalSize, pageList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowIfTaskNameRepeatResponse {\n"); + sb.append(" pageNo: ").append(toIndentedString(pageNo)).append("\n"); + sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); + sb.append(" totalPage: ").append(toIndentedString(totalPage)).append("\n"); + sb.append(" totalSize: ").append(toIndentedString(totalSize)).append("\n"); + sb.append(" pageList: ").append(toIndentedString(pageList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowIfUserNameRepeatRequest.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowIfUserNameRepeatRequest.java new file mode 100644 index 0000000000..cc2f545107 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowIfUserNameRepeatRequest.java @@ -0,0 +1,119 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ShowIfUserNameRepeatRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "service_id") + + private String serviceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "userId") + + private String userId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "userName") + + private String userName; + + public ShowIfUserNameRepeatRequest withServiceId(String serviceId) { + this.serviceId = serviceId; + return this; + } + + /** + * 服务id + * @return serviceId + */ + public String getServiceId() { + return serviceId; + } + + public void setServiceId(String serviceId) { + this.serviceId = serviceId; + } + + public ShowIfUserNameRepeatRequest withUserId(String userId) { + this.userId = userId; + return this; + } + + /** + * 用户ID + * @return userId + */ + public String getUserId() { + return userId; + } + + public void setUserId(String userId) { + this.userId = userId; + } + + public ShowIfUserNameRepeatRequest withUserName(String userName) { + this.userName = userName; + return this; + } + + /** + * 用户名 + * @return userName + */ + public String getUserName() { + return userName; + } + + public void setUserName(String userName) { + this.userName = userName; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowIfUserNameRepeatRequest that = (ShowIfUserNameRepeatRequest) obj; + return Objects.equals(this.serviceId, that.serviceId) && Objects.equals(this.userId, that.userId) + && Objects.equals(this.userName, that.userName); + } + + @Override + public int hashCode() { + return Objects.hash(serviceId, userId, userName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowIfUserNameRepeatRequest {\n"); + sb.append(" serviceId: ").append(toIndentedString(serviceId)).append("\n"); + sb.append(" userId: ").append(toIndentedString(userId)).append("\n"); + sb.append(" userName: ").append(toIndentedString(userName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowIfUserNameRepeatResponse.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowIfUserNameRepeatResponse.java new file mode 100644 index 0000000000..11117161ae --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowIfUserNameRepeatResponse.java @@ -0,0 +1,73 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class ShowIfUserNameRepeatResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private String body; + + public ShowIfUserNameRepeatResponse withBody(String body) { + this.body = body; + return this; + } + + /** + * Get body + * @return body + */ + public String getBody() { + return body; + } + + public void setBody(String body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowIfUserNameRepeatResponse that = (ShowIfUserNameRepeatResponse) obj; + return Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowIfUserNameRepeatResponse {\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowIteratorByDefectRequest.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowIteratorByDefectRequest.java new file mode 100644 index 0000000000..4bac5fcbc0 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowIteratorByDefectRequest.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ShowIteratorByDefectRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_id") + + private String projectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "defect_id") + + private String defectId; + + public ShowIteratorByDefectRequest withProjectId(String projectId) { + this.projectId = projectId; + return this; + } + + /** + * 项目ID,固定长度32位字符(字母和数字)。 + * @return projectId + */ + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public ShowIteratorByDefectRequest withDefectId(String defectId) { + this.defectId = defectId; + return this; + } + + /** + * 缺陷id + * @return defectId + */ + public String getDefectId() { + return defectId; + } + + public void setDefectId(String defectId) { + this.defectId = defectId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowIteratorByDefectRequest that = (ShowIteratorByDefectRequest) obj; + return Objects.equals(this.projectId, that.projectId) && Objects.equals(this.defectId, that.defectId); + } + + @Override + public int hashCode() { + return Objects.hash(projectId, defectId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowIteratorByDefectRequest {\n"); + sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); + sb.append(" defectId: ").append(toIndentedString(defectId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowIteratorByDefectResponse.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowIteratorByDefectResponse.java new file mode 100644 index 0000000000..d535683990 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowIteratorByDefectResponse.java @@ -0,0 +1,1280 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.time.OffsetDateTime; +import java.util.Objects; + +/** + * Response Object + */ +public class ShowIteratorByDefectResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "uri") + + private String uri; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "type") + + private String type; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "author") + + private String author; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "rank") + + private Integer rank; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "version") + + private String version; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "owner") + + private String owner; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "creator") + + private String creator; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "iterations") + + private String iterations; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "region") + + private String region; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "last_modifier") + + private String lastModifier; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "last_modified") + + private OffsetDateTime lastModified; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "last_modified_timestamp") + + private Long lastModifiedTimestamp; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "last_change_time") + + private OffsetDateTime lastChangeTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "version_uri") + + private String versionUri; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "origin_uri") + + private String originUri; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "parent_uri") + + private String parentUri; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "parent_path") + + private String parentPath; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "creation_version_uri") + + private String creationVersionUri; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "creation_date") + + private OffsetDateTime creationDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "creation_date_timestamp") + + private Long creationDateTimestamp; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "author_name") + + private String authorName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "comment") + + private String comment; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "number") + + private String number; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_master") + + private Integer isMaster; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_iterator") + + private Integer isIterator; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "plan_start_date") + + private OffsetDateTime planStartDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "plan_end_date") + + private OffsetDateTime planEndDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "service_id") + + private String serviceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "service_name") + + private String serviceName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "pbi_id") + + private String pbiId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "pbi_name") + + private String pbiName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "plan_id") + + private String planId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "metric_pbi_ids") + + private String metricPbiIds; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "metric_pbi_id_names") + + private String metricPbiIdNames; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "last_syn_date") + + private OffsetDateTime lastSynDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_closed") + + private String isClosed; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "asyn_git") + + private String asynGit; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "schema_no") + + private Integer schemaNo; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "finish_date") + + private OffsetDateTime finishDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "owner_name") + + private String ownerName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "creator_name") + + private String creatorName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "current_stage") + + private String currentStage; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "service_types") + + private String serviceTypes; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "risk_rating") + + private Integer riskRating; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "risk_des") + + private String riskDes; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_uuid") + + private String projectUuid; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "domain_id") + + private String domainId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "pi_id") + + private String piId; + + public ShowIteratorByDefectResponse withUri(String uri) { + this.uri = uri; + return this; + } + + /** + * 资源URI + * @return uri + */ + public String getUri() { + return uri; + } + + public void setUri(String uri) { + this.uri = uri; + } + + public ShowIteratorByDefectResponse withType(String type) { + this.type = type; + return this; + } + + /** + * 资源类型 + * @return type + */ + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public ShowIteratorByDefectResponse withAuthor(String author) { + this.author = author; + return this; + } + + /** + * 创建人 + * @return author + */ + public String getAuthor() { + return author; + } + + public void setAuthor(String author) { + this.author = author; + } + + public ShowIteratorByDefectResponse withName(String name) { + this.name = name; + return this; + } + + /** + * 名称 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ShowIteratorByDefectResponse withRank(Integer rank) { + this.rank = rank; + return this; + } + + /** + * 级别 + * @return rank + */ + public Integer getRank() { + return rank; + } + + public void setRank(Integer rank) { + this.rank = rank; + } + + public ShowIteratorByDefectResponse withVersion(String version) { + this.version = version; + return this; + } + + /** + * 待测版本 + * @return version + */ + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + public ShowIteratorByDefectResponse withOwner(String owner) { + this.owner = owner; + return this; + } + + /** + * 处理者ID + * @return owner + */ + public String getOwner() { + return owner; + } + + public void setOwner(String owner) { + this.owner = owner; + } + + public ShowIteratorByDefectResponse withCreator(String creator) { + this.creator = creator; + return this; + } + + /** + * 创建人ID + * @return creator + */ + public String getCreator() { + return creator; + } + + public void setCreator(String creator) { + this.creator = creator; + } + + public ShowIteratorByDefectResponse withIterations(String iterations) { + this.iterations = iterations; + return this; + } + + /** + * 关联迭代 + * @return iterations + */ + public String getIterations() { + return iterations; + } + + public void setIterations(String iterations) { + this.iterations = iterations; + } + + public ShowIteratorByDefectResponse withDescription(String description) { + this.description = description; + return this; + } + + /** + * 描述 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public ShowIteratorByDefectResponse withRegion(String region) { + this.region = region; + return this; + } + + /** + * 区域 + * @return region + */ + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public ShowIteratorByDefectResponse withLastModifier(String lastModifier) { + this.lastModifier = lastModifier; + return this; + } + + /** + * 最后修改人 + * @return lastModifier + */ + public String getLastModifier() { + return lastModifier; + } + + public void setLastModifier(String lastModifier) { + this.lastModifier = lastModifier; + } + + public ShowIteratorByDefectResponse withLastModified(OffsetDateTime lastModified) { + this.lastModified = lastModified; + return this; + } + + /** + * 最后修改时间 + * @return lastModified + */ + public OffsetDateTime getLastModified() { + return lastModified; + } + + public void setLastModified(OffsetDateTime lastModified) { + this.lastModified = lastModified; + } + + public ShowIteratorByDefectResponse withLastModifiedTimestamp(Long lastModifiedTimestamp) { + this.lastModifiedTimestamp = lastModifiedTimestamp; + return this; + } + + /** + * 修改时间时间戳 + * @return lastModifiedTimestamp + */ + public Long getLastModifiedTimestamp() { + return lastModifiedTimestamp; + } + + public void setLastModifiedTimestamp(Long lastModifiedTimestamp) { + this.lastModifiedTimestamp = lastModifiedTimestamp; + } + + public ShowIteratorByDefectResponse withLastChangeTime(OffsetDateTime lastChangeTime) { + this.lastChangeTime = lastChangeTime; + return this; + } + + /** + * 最后变更时间 + * @return lastChangeTime + */ + public OffsetDateTime getLastChangeTime() { + return lastChangeTime; + } + + public void setLastChangeTime(OffsetDateTime lastChangeTime) { + this.lastChangeTime = lastChangeTime; + } + + public ShowIteratorByDefectResponse withVersionUri(String versionUri) { + this.versionUri = versionUri; + return this; + } + + /** + * 版本URI + * @return versionUri + */ + public String getVersionUri() { + return versionUri; + } + + public void setVersionUri(String versionUri) { + this.versionUri = versionUri; + } + + public ShowIteratorByDefectResponse withOriginUri(String originUri) { + this.originUri = originUri; + return this; + } + + /** + * 源资源URI + * @return originUri + */ + public String getOriginUri() { + return originUri; + } + + public void setOriginUri(String originUri) { + this.originUri = originUri; + } + + public ShowIteratorByDefectResponse withParentUri(String parentUri) { + this.parentUri = parentUri; + return this; + } + + /** + * 父资源URI + * @return parentUri + */ + public String getParentUri() { + return parentUri; + } + + public void setParentUri(String parentUri) { + this.parentUri = parentUri; + } + + public ShowIteratorByDefectResponse withParentPath(String parentPath) { + this.parentPath = parentPath; + return this; + } + + /** + * 父资源路径 + * @return parentPath + */ + public String getParentPath() { + return parentPath; + } + + public void setParentPath(String parentPath) { + this.parentPath = parentPath; + } + + public ShowIteratorByDefectResponse withCreationVersionUri(String creationVersionUri) { + this.creationVersionUri = creationVersionUri; + return this; + } + + /** + * 创建版本URI + * @return creationVersionUri + */ + public String getCreationVersionUri() { + return creationVersionUri; + } + + public void setCreationVersionUri(String creationVersionUri) { + this.creationVersionUri = creationVersionUri; + } + + public ShowIteratorByDefectResponse withCreationDate(OffsetDateTime creationDate) { + this.creationDate = creationDate; + return this; + } + + /** + * 创建时间 + * @return creationDate + */ + public OffsetDateTime getCreationDate() { + return creationDate; + } + + public void setCreationDate(OffsetDateTime creationDate) { + this.creationDate = creationDate; + } + + public ShowIteratorByDefectResponse withCreationDateTimestamp(Long creationDateTimestamp) { + this.creationDateTimestamp = creationDateTimestamp; + return this; + } + + /** + * 创建时间时间戳 + * @return creationDateTimestamp + */ + public Long getCreationDateTimestamp() { + return creationDateTimestamp; + } + + public void setCreationDateTimestamp(Long creationDateTimestamp) { + this.creationDateTimestamp = creationDateTimestamp; + } + + public ShowIteratorByDefectResponse withAuthorName(String authorName) { + this.authorName = authorName; + return this; + } + + /** + * 创建人名称 + * @return authorName + */ + public String getAuthorName() { + return authorName; + } + + public void setAuthorName(String authorName) { + this.authorName = authorName; + } + + public ShowIteratorByDefectResponse withComment(String comment) { + this.comment = comment; + return this; + } + + /** + * 备注 + * @return comment + */ + public String getComment() { + return comment; + } + + public void setComment(String comment) { + this.comment = comment; + } + + public ShowIteratorByDefectResponse withNumber(String number) { + this.number = number; + return this; + } + + /** + * 编号 + * @return number + */ + public String getNumber() { + return number; + } + + public void setNumber(String number) { + this.number = number; + } + + public ShowIteratorByDefectResponse withIsMaster(Integer isMaster) { + this.isMaster = isMaster; + return this; + } + + /** + * 是否为Master分支 + * @return isMaster + */ + public Integer getIsMaster() { + return isMaster; + } + + public void setIsMaster(Integer isMaster) { + this.isMaster = isMaster; + } + + public ShowIteratorByDefectResponse withIsIterator(Integer isIterator) { + this.isIterator = isIterator; + return this; + } + + /** + * 是否为迭代 + * @return isIterator + */ + public Integer getIsIterator() { + return isIterator; + } + + public void setIsIterator(Integer isIterator) { + this.isIterator = isIterator; + } + + public ShowIteratorByDefectResponse withPlanStartDate(OffsetDateTime planStartDate) { + this.planStartDate = planStartDate; + return this; + } + + /** + * 开始时间 + * @return planStartDate + */ + public OffsetDateTime getPlanStartDate() { + return planStartDate; + } + + public void setPlanStartDate(OffsetDateTime planStartDate) { + this.planStartDate = planStartDate; + } + + public ShowIteratorByDefectResponse withPlanEndDate(OffsetDateTime planEndDate) { + this.planEndDate = planEndDate; + return this; + } + + /** + * 结束时间 + * @return planEndDate + */ + public OffsetDateTime getPlanEndDate() { + return planEndDate; + } + + public void setPlanEndDate(OffsetDateTime planEndDate) { + this.planEndDate = planEndDate; + } + + public ShowIteratorByDefectResponse withServiceId(String serviceId) { + this.serviceId = serviceId; + return this; + } + + /** + * 微服务ID + * @return serviceId + */ + public String getServiceId() { + return serviceId; + } + + public void setServiceId(String serviceId) { + this.serviceId = serviceId; + } + + public ShowIteratorByDefectResponse withServiceName(String serviceName) { + this.serviceName = serviceName; + return this; + } + + /** + * 微服务名 + * @return serviceName + */ + public String getServiceName() { + return serviceName; + } + + public void setServiceName(String serviceName) { + this.serviceName = serviceName; + } + + public ShowIteratorByDefectResponse withPbiId(String pbiId) { + this.pbiId = pbiId; + return this; + } + + /** + * PBI ID + * @return pbiId + */ + public String getPbiId() { + return pbiId; + } + + public void setPbiId(String pbiId) { + this.pbiId = pbiId; + } + + public ShowIteratorByDefectResponse withPbiName(String pbiName) { + this.pbiName = pbiName; + return this; + } + + /** + * PBI信息 + * @return pbiName + */ + public String getPbiName() { + return pbiName; + } + + public void setPbiName(String pbiName) { + this.pbiName = pbiName; + } + + public ShowIteratorByDefectResponse withPlanId(String planId) { + this.planId = planId; + return this; + } + + /** + * 计划ID + * @return planId + */ + public String getPlanId() { + return planId; + } + + public void setPlanId(String planId) { + this.planId = planId; + } + + public ShowIteratorByDefectResponse withMetricPbiIds(String metricPbiIds) { + this.metricPbiIds = metricPbiIds; + return this; + } + + /** + * 度量PBI ID + * @return metricPbiIds + */ + public String getMetricPbiIds() { + return metricPbiIds; + } + + public void setMetricPbiIds(String metricPbiIds) { + this.metricPbiIds = metricPbiIds; + } + + public ShowIteratorByDefectResponse withMetricPbiIdNames(String metricPbiIdNames) { + this.metricPbiIdNames = metricPbiIdNames; + return this; + } + + /** + * 度量PBI名称 + * @return metricPbiIdNames + */ + public String getMetricPbiIdNames() { + return metricPbiIdNames; + } + + public void setMetricPbiIdNames(String metricPbiIdNames) { + this.metricPbiIdNames = metricPbiIdNames; + } + + public ShowIteratorByDefectResponse withLastSynDate(OffsetDateTime lastSynDate) { + this.lastSynDate = lastSynDate; + return this; + } + + /** + * 最后同步时间 + * @return lastSynDate + */ + public OffsetDateTime getLastSynDate() { + return lastSynDate; + } + + public void setLastSynDate(OffsetDateTime lastSynDate) { + this.lastSynDate = lastSynDate; + } + + public ShowIteratorByDefectResponse withIsClosed(String isClosed) { + this.isClosed = isClosed; + return this; + } + + /** + * 版本是否关闭 + * @return isClosed + */ + public String getIsClosed() { + return isClosed; + } + + public void setIsClosed(String isClosed) { + this.isClosed = isClosed; + } + + public ShowIteratorByDefectResponse withAsynGit(String asynGit) { + this.asynGit = asynGit; + return this; + } + + /** + * 是否同步git库 + * @return asynGit + */ + public String getAsynGit() { + return asynGit; + } + + public void setAsynGit(String asynGit) { + this.asynGit = asynGit; + } + + public ShowIteratorByDefectResponse withSchemaNo(Integer schemaNo) { + this.schemaNo = schemaNo; + return this; + } + + /** + * schema编号 + * @return schemaNo + */ + public Integer getSchemaNo() { + return schemaNo; + } + + public void setSchemaNo(Integer schemaNo) { + this.schemaNo = schemaNo; + } + + public ShowIteratorByDefectResponse withFinishDate(OffsetDateTime finishDate) { + this.finishDate = finishDate; + return this; + } + + /** + * 迭代实际完成时间 + * @return finishDate + */ + public OffsetDateTime getFinishDate() { + return finishDate; + } + + public void setFinishDate(OffsetDateTime finishDate) { + this.finishDate = finishDate; + } + + public ShowIteratorByDefectResponse withOwnerName(String ownerName) { + this.ownerName = ownerName; + return this; + } + + /** + * 处理者名称 + * @return ownerName + */ + public String getOwnerName() { + return ownerName; + } + + public void setOwnerName(String ownerName) { + this.ownerName = ownerName; + } + + public ShowIteratorByDefectResponse withCreatorName(String creatorName) { + this.creatorName = creatorName; + return this; + } + + /** + * 创建人名称 + * @return creatorName + */ + public String getCreatorName() { + return creatorName; + } + + public void setCreatorName(String creatorName) { + this.creatorName = creatorName; + } + + public ShowIteratorByDefectResponse withCurrentStage(String currentStage) { + this.currentStage = currentStage; + return this; + } + + /** + * 当前所处阶段 + * @return currentStage + */ + public String getCurrentStage() { + return currentStage; + } + + public void setCurrentStage(String currentStage) { + this.currentStage = currentStage; + } + + public ShowIteratorByDefectResponse withServiceTypes(String serviceTypes) { + this.serviceTypes = serviceTypes; + return this; + } + + /** + * 服务类型 + * @return serviceTypes + */ + public String getServiceTypes() { + return serviceTypes; + } + + public void setServiceTypes(String serviceTypes) { + this.serviceTypes = serviceTypes; + } + + public ShowIteratorByDefectResponse withRiskRating(Integer riskRating) { + this.riskRating = riskRating; + return this; + } + + /** + * 风险等级 + * @return riskRating + */ + public Integer getRiskRating() { + return riskRating; + } + + public void setRiskRating(Integer riskRating) { + this.riskRating = riskRating; + } + + public ShowIteratorByDefectResponse withRiskDes(String riskDes) { + this.riskDes = riskDes; + return this; + } + + /** + * 风险描述 + * @return riskDes + */ + public String getRiskDes() { + return riskDes; + } + + public void setRiskDes(String riskDes) { + this.riskDes = riskDes; + } + + public ShowIteratorByDefectResponse withProjectUuid(String projectUuid) { + this.projectUuid = projectUuid; + return this; + } + + /** + * 项目ID + * @return projectUuid + */ + public String getProjectUuid() { + return projectUuid; + } + + public void setProjectUuid(String projectUuid) { + this.projectUuid = projectUuid; + } + + public ShowIteratorByDefectResponse withDomainId(String domainId) { + this.domainId = domainId; + return this; + } + + /** + * 租户ID + * @return domainId + */ + public String getDomainId() { + return domainId; + } + + public void setDomainId(String domainId) { + this.domainId = domainId; + } + + public ShowIteratorByDefectResponse withPiId(String piId) { + this.piId = piId; + return this; + } + + /** + * pi的id + * @return piId + */ + public String getPiId() { + return piId; + } + + public void setPiId(String piId) { + this.piId = piId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowIteratorByDefectResponse that = (ShowIteratorByDefectResponse) obj; + return Objects.equals(this.uri, that.uri) && Objects.equals(this.type, that.type) + && Objects.equals(this.author, that.author) && Objects.equals(this.name, that.name) + && Objects.equals(this.rank, that.rank) && Objects.equals(this.version, that.version) + && Objects.equals(this.owner, that.owner) && Objects.equals(this.creator, that.creator) + && Objects.equals(this.iterations, that.iterations) && Objects.equals(this.description, that.description) + && Objects.equals(this.region, that.region) && Objects.equals(this.lastModifier, that.lastModifier) + && Objects.equals(this.lastModified, that.lastModified) + && Objects.equals(this.lastModifiedTimestamp, that.lastModifiedTimestamp) + && Objects.equals(this.lastChangeTime, that.lastChangeTime) + && Objects.equals(this.versionUri, that.versionUri) && Objects.equals(this.originUri, that.originUri) + && Objects.equals(this.parentUri, that.parentUri) && Objects.equals(this.parentPath, that.parentPath) + && Objects.equals(this.creationVersionUri, that.creationVersionUri) + && Objects.equals(this.creationDate, that.creationDate) + && Objects.equals(this.creationDateTimestamp, that.creationDateTimestamp) + && Objects.equals(this.authorName, that.authorName) && Objects.equals(this.comment, that.comment) + && Objects.equals(this.number, that.number) && Objects.equals(this.isMaster, that.isMaster) + && Objects.equals(this.isIterator, that.isIterator) + && Objects.equals(this.planStartDate, that.planStartDate) + && Objects.equals(this.planEndDate, that.planEndDate) && Objects.equals(this.serviceId, that.serviceId) + && Objects.equals(this.serviceName, that.serviceName) && Objects.equals(this.pbiId, that.pbiId) + && Objects.equals(this.pbiName, that.pbiName) && Objects.equals(this.planId, that.planId) + && Objects.equals(this.metricPbiIds, that.metricPbiIds) + && Objects.equals(this.metricPbiIdNames, that.metricPbiIdNames) + && Objects.equals(this.lastSynDate, that.lastSynDate) && Objects.equals(this.isClosed, that.isClosed) + && Objects.equals(this.asynGit, that.asynGit) && Objects.equals(this.schemaNo, that.schemaNo) + && Objects.equals(this.finishDate, that.finishDate) && Objects.equals(this.ownerName, that.ownerName) + && Objects.equals(this.creatorName, that.creatorName) + && Objects.equals(this.currentStage, that.currentStage) + && Objects.equals(this.serviceTypes, that.serviceTypes) && Objects.equals(this.riskRating, that.riskRating) + && Objects.equals(this.riskDes, that.riskDes) && Objects.equals(this.projectUuid, that.projectUuid) + && Objects.equals(this.domainId, that.domainId) && Objects.equals(this.piId, that.piId); + } + + @Override + public int hashCode() { + return Objects.hash(uri, + type, + author, + name, + rank, + version, + owner, + creator, + iterations, + description, + region, + lastModifier, + lastModified, + lastModifiedTimestamp, + lastChangeTime, + versionUri, + originUri, + parentUri, + parentPath, + creationVersionUri, + creationDate, + creationDateTimestamp, + authorName, + comment, + number, + isMaster, + isIterator, + planStartDate, + planEndDate, + serviceId, + serviceName, + pbiId, + pbiName, + planId, + metricPbiIds, + metricPbiIdNames, + lastSynDate, + isClosed, + asynGit, + schemaNo, + finishDate, + ownerName, + creatorName, + currentStage, + serviceTypes, + riskRating, + riskDes, + projectUuid, + domainId, + piId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowIteratorByDefectResponse {\n"); + sb.append(" uri: ").append(toIndentedString(uri)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" author: ").append(toIndentedString(author)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" rank: ").append(toIndentedString(rank)).append("\n"); + sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" owner: ").append(toIndentedString(owner)).append("\n"); + sb.append(" creator: ").append(toIndentedString(creator)).append("\n"); + sb.append(" iterations: ").append(toIndentedString(iterations)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" region: ").append(toIndentedString(region)).append("\n"); + sb.append(" lastModifier: ").append(toIndentedString(lastModifier)).append("\n"); + sb.append(" lastModified: ").append(toIndentedString(lastModified)).append("\n"); + sb.append(" lastModifiedTimestamp: ").append(toIndentedString(lastModifiedTimestamp)).append("\n"); + sb.append(" lastChangeTime: ").append(toIndentedString(lastChangeTime)).append("\n"); + sb.append(" versionUri: ").append(toIndentedString(versionUri)).append("\n"); + sb.append(" originUri: ").append(toIndentedString(originUri)).append("\n"); + sb.append(" parentUri: ").append(toIndentedString(parentUri)).append("\n"); + sb.append(" parentPath: ").append(toIndentedString(parentPath)).append("\n"); + sb.append(" creationVersionUri: ").append(toIndentedString(creationVersionUri)).append("\n"); + sb.append(" creationDate: ").append(toIndentedString(creationDate)).append("\n"); + sb.append(" creationDateTimestamp: ").append(toIndentedString(creationDateTimestamp)).append("\n"); + sb.append(" authorName: ").append(toIndentedString(authorName)).append("\n"); + sb.append(" comment: ").append(toIndentedString(comment)).append("\n"); + sb.append(" number: ").append(toIndentedString(number)).append("\n"); + sb.append(" isMaster: ").append(toIndentedString(isMaster)).append("\n"); + sb.append(" isIterator: ").append(toIndentedString(isIterator)).append("\n"); + sb.append(" planStartDate: ").append(toIndentedString(planStartDate)).append("\n"); + sb.append(" planEndDate: ").append(toIndentedString(planEndDate)).append("\n"); + sb.append(" serviceId: ").append(toIndentedString(serviceId)).append("\n"); + sb.append(" serviceName: ").append(toIndentedString(serviceName)).append("\n"); + sb.append(" pbiId: ").append(toIndentedString(pbiId)).append("\n"); + sb.append(" pbiName: ").append(toIndentedString(pbiName)).append("\n"); + sb.append(" planId: ").append(toIndentedString(planId)).append("\n"); + sb.append(" metricPbiIds: ").append(toIndentedString(metricPbiIds)).append("\n"); + sb.append(" metricPbiIdNames: ").append(toIndentedString(metricPbiIdNames)).append("\n"); + sb.append(" lastSynDate: ").append(toIndentedString(lastSynDate)).append("\n"); + sb.append(" isClosed: ").append(toIndentedString(isClosed)).append("\n"); + sb.append(" asynGit: ").append(toIndentedString(asynGit)).append("\n"); + sb.append(" schemaNo: ").append(toIndentedString(schemaNo)).append("\n"); + sb.append(" finishDate: ").append(toIndentedString(finishDate)).append("\n"); + sb.append(" ownerName: ").append(toIndentedString(ownerName)).append("\n"); + sb.append(" creatorName: ").append(toIndentedString(creatorName)).append("\n"); + sb.append(" currentStage: ").append(toIndentedString(currentStage)).append("\n"); + sb.append(" serviceTypes: ").append(toIndentedString(serviceTypes)).append("\n"); + sb.append(" riskRating: ").append(toIndentedString(riskRating)).append("\n"); + sb.append(" riskDes: ").append(toIndentedString(riskDes)).append("\n"); + sb.append(" projectUuid: ").append(toIndentedString(projectUuid)).append("\n"); + sb.append(" domainId: ").append(toIndentedString(domainId)).append("\n"); + sb.append(" piId: ").append(toIndentedString(piId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowMindmapByPageRequest.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowMindmapByPageRequest.java new file mode 100644 index 0000000000..c16f236dbf --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowMindmapByPageRequest.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class ShowMindmapByPageRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_id") + + private String projectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private CommRequestMindmapPageParamV3 body; + + public ShowMindmapByPageRequest withProjectId(String projectId) { + this.projectId = projectId; + return this; + } + + /** + * 项目ID,固定长度32位字符(字母和数字)。 + * @return projectId + */ + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public ShowMindmapByPageRequest withBody(CommRequestMindmapPageParamV3 body) { + this.body = body; + return this; + } + + public ShowMindmapByPageRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new CommRequestMindmapPageParamV3(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public CommRequestMindmapPageParamV3 getBody() { + return body; + } + + public void setBody(CommRequestMindmapPageParamV3 body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowMindmapByPageRequest that = (ShowMindmapByPageRequest) obj; + return Objects.equals(this.projectId, that.projectId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(projectId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowMindmapByPageRequest {\n"); + sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowMindmapByPageResponse.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowMindmapByPageResponse.java new file mode 100644 index 0000000000..5526a31706 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowMindmapByPageResponse.java @@ -0,0 +1,83 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ShowMindmapByPageResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "params") + + private MindmapPageParamV3 params; + + public ShowMindmapByPageResponse withParams(MindmapPageParamV3 params) { + this.params = params; + return this; + } + + public ShowMindmapByPageResponse withParams(Consumer paramsSetter) { + if (this.params == null) { + this.params = new MindmapPageParamV3(); + paramsSetter.accept(this.params); + } + + return this; + } + + /** + * Get params + * @return params + */ + public MindmapPageParamV3 getParams() { + return params; + } + + public void setParams(MindmapPageParamV3 params) { + this.params = params; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowMindmapByPageResponse that = (ShowMindmapByPageResponse) obj; + return Objects.equals(this.params, that.params); + } + + @Override + public int hashCode() { + return Objects.hash(params); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowMindmapByPageResponse {\n"); + sb.append(" params: ").append(toIndentedString(params)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowMindmapCreatorNameRequest.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowMindmapCreatorNameRequest.java new file mode 100644 index 0000000000..388daf5bdf --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowMindmapCreatorNameRequest.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ShowMindmapCreatorNameRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_id") + + private String projectId; + + public ShowMindmapCreatorNameRequest withProjectId(String projectId) { + this.projectId = projectId; + return this; + } + + /** + * 项目ID,固定长度32位字符(字母和数字)。 + * @return projectId + */ + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowMindmapCreatorNameRequest that = (ShowMindmapCreatorNameRequest) obj; + return Objects.equals(this.projectId, that.projectId); + } + + @Override + public int hashCode() { + return Objects.hash(projectId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowMindmapCreatorNameRequest {\n"); + sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/model/ServerFault.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowMindmapCreatorNameResponse.java similarity index 53% rename from services/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/model/ServerFault.java rename to services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowMindmapCreatorNameResponse.java index 8c88d9014a..8e5f41cede 100644 --- a/services/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/model/ServerFault.java +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowMindmapCreatorNameResponse.java @@ -1,76 +1,72 @@ -package com.huaweicloud.sdk.ecs.v2.model; +package com.huaweicloud.sdk.cloudtest.v1.model; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; /** - * 弹性云服务器故障信息。 + * Response Object */ -public class ServerFault { +public class ShowMindmapCreatorNameResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "code") - private Integer code; + private String code; @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "created") + @JsonProperty(value = "data") - private String created; + private Object data; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "message") private String message; - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "details") - - private String details; - - public ServerFault withCode(Integer code) { + public ShowMindmapCreatorNameResponse withCode(String code) { this.code = code; return this; } /** - * 错误码。 + * 接口调用错误码 * @return code */ - public Integer getCode() { + public String getCode() { return code; } - public void setCode(Integer code) { + public void setCode(String code) { this.code = code; } - public ServerFault withCreated(String created) { - this.created = created; + public ShowMindmapCreatorNameResponse withData(Object data) { + this.data = data; return this; } /** - * 异常出现的时间。 - * @return created + * 接口调用返回体 + * @return data */ - public String getCreated() { - return created; + public Object getData() { + return data; } - public void setCreated(String created) { - this.created = created; + public void setData(Object data) { + this.data = data; } - public ServerFault withMessage(String message) { + public ShowMindmapCreatorNameResponse withMessage(String message) { this.message = message; return this; } /** - * 异常描述信息。 + * 接口调用错误信息 * @return message */ public String getMessage() { @@ -81,23 +77,6 @@ public void setMessage(String message) { this.message = message; } - public ServerFault withDetails(String details) { - this.details = details; - return this; - } - - /** - * 异常详情信息。 - * @return details - */ - public String getDetails() { - return details; - } - - public void setDetails(String details) { - this.details = details; - } - @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -106,24 +85,23 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - ServerFault that = (ServerFault) obj; - return Objects.equals(this.code, that.code) && Objects.equals(this.created, that.created) - && Objects.equals(this.message, that.message) && Objects.equals(this.details, that.details); + ShowMindmapCreatorNameResponse that = (ShowMindmapCreatorNameResponse) obj; + return Objects.equals(this.code, that.code) && Objects.equals(this.data, that.data) + && Objects.equals(this.message, that.message); } @Override public int hashCode() { - return Objects.hash(code, created, message, details); + return Objects.hash(code, data, message); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ServerFault {\n"); + sb.append("class ShowMindmapCreatorNameResponse {\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" created: ").append(toIndentedString(created)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" details: ").append(toIndentedString(details)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowProgressRequest.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowProgressRequest.java new file mode 100644 index 0000000000..0ec8ac4572 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowProgressRequest.java @@ -0,0 +1,96 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ShowProgressRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_uuid") + + private String projectUuid; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "operation_uri") + + private String operationUri; + + public ShowProgressRequest withProjectUuid(String projectUuid) { + this.projectUuid = projectUuid; + return this; + } + + /** + * 项目ID + * @return projectUuid + */ + public String getProjectUuid() { + return projectUuid; + } + + public void setProjectUuid(String projectUuid) { + this.projectUuid = projectUuid; + } + + public ShowProgressRequest withOperationUri(String operationUri) { + this.operationUri = operationUri; + return this; + } + + /** + * 异步操作uri + * @return operationUri + */ + public String getOperationUri() { + return operationUri; + } + + public void setOperationUri(String operationUri) { + this.operationUri = operationUri; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowProgressRequest that = (ShowProgressRequest) obj; + return Objects.equals(this.projectUuid, that.projectUuid) + && Objects.equals(this.operationUri, that.operationUri); + } + + @Override + public int hashCode() { + return Objects.hash(projectUuid, operationUri); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowProgressRequest {\n"); + sb.append(" projectUuid: ").append(toIndentedString(projectUuid)).append("\n"); + sb.append(" operationUri: ").append(toIndentedString(operationUri)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowProgressResponse.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowProgressResponse.java new file mode 100644 index 0000000000..22e659a8c3 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowProgressResponse.java @@ -0,0 +1,560 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ShowProgressResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "uri") + + private String uri; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total") + + private Integer total; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "completed") + + private Boolean completed; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "cancelled") + + private Boolean cancelled; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "informations") + + private List informations = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "code") + + private String code; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "reason") + + private String reason; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "submitted_time") + + private String submittedTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "begin_time") + + private String beginTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "end_time") + + private String endTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "server_ip") + + private String serverIp; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "last_modified_time") + + private Long lastModifiedTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "finished_count") + + private Integer finishedCount; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "return_value") + + private Object returnValue; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "exception_message") + + private String exceptionMessage; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "line_up_num") + + private Integer lineUpNum; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "asyn_operation_key") + + private String asynOperationKey; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_ended") + + private Boolean isEnded; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "finished_percent") + + private Integer finishedPercent; + + public ShowProgressResponse withUri(String uri) { + this.uri = uri; + return this; + } + + /** + * 进度uri + * @return uri + */ + public String getUri() { + return uri; + } + + public void setUri(String uri) { + this.uri = uri; + } + + public ShowProgressResponse withName(String name) { + this.name = name; + return this; + } + + /** + * 异步进度名称 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ShowProgressResponse withTotal(Integer total) { + this.total = total; + return this; + } + + /** + * 资源总数 + * @return total + */ + public Integer getTotal() { + return total; + } + + public void setTotal(Integer total) { + this.total = total; + } + + public ShowProgressResponse withCompleted(Boolean completed) { + this.completed = completed; + return this; + } + + /** + * 异步操作是否完成 + * @return completed + */ + public Boolean getCompleted() { + return completed; + } + + public void setCompleted(Boolean completed) { + this.completed = completed; + } + + public ShowProgressResponse withCancelled(Boolean cancelled) { + this.cancelled = cancelled; + return this; + } + + /** + * 异步操作是否取消 + * @return cancelled + */ + public Boolean getCancelled() { + return cancelled; + } + + public void setCancelled(Boolean cancelled) { + this.cancelled = cancelled; + } + + public ShowProgressResponse withInformations(List informations) { + this.informations = informations; + return this; + } + + public ShowProgressResponse addInformationsItem(String informationsItem) { + if (this.informations == null) { + this.informations = new ArrayList<>(); + } + this.informations.add(informationsItem); + return this; + } + + public ShowProgressResponse withInformations(Consumer> informationsSetter) { + if (this.informations == null) { + this.informations = new ArrayList<>(); + } + informationsSetter.accept(this.informations); + return this; + } + + /** + * 提示信息列表 + * @return informations + */ + public List getInformations() { + return informations; + } + + public void setInformations(List informations) { + this.informations = informations; + } + + public ShowProgressResponse withCode(String code) { + this.code = code; + return this; + } + + /** + * 错误编码 + * @return code + */ + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public ShowProgressResponse withReason(String reason) { + this.reason = reason; + return this; + } + + /** + * 错误信息 + * @return reason + */ + public String getReason() { + return reason; + } + + public void setReason(String reason) { + this.reason = reason; + } + + public ShowProgressResponse withSubmittedTime(String submittedTime) { + this.submittedTime = submittedTime; + return this; + } + + /** + * 提交时间 + * @return submittedTime + */ + public String getSubmittedTime() { + return submittedTime; + } + + public void setSubmittedTime(String submittedTime) { + this.submittedTime = submittedTime; + } + + public ShowProgressResponse withBeginTime(String beginTime) { + this.beginTime = beginTime; + return this; + } + + /** + * 开始时间 + * @return beginTime + */ + public String getBeginTime() { + return beginTime; + } + + public void setBeginTime(String beginTime) { + this.beginTime = beginTime; + } + + public ShowProgressResponse withEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * 结束时间 + * @return endTime + */ + public String getEndTime() { + return endTime; + } + + public void setEndTime(String endTime) { + this.endTime = endTime; + } + + public ShowProgressResponse withServerIp(String serverIp) { + this.serverIp = serverIp; + return this; + } + + /** + * 服务ip + * @return serverIp + */ + public String getServerIp() { + return serverIp; + } + + public void setServerIp(String serverIp) { + this.serverIp = serverIp; + } + + public ShowProgressResponse withLastModifiedTime(Long lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + return this; + } + + /** + * 最后修改时间 + * @return lastModifiedTime + */ + public Long getLastModifiedTime() { + return lastModifiedTime; + } + + public void setLastModifiedTime(Long lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + } + + public ShowProgressResponse withFinishedCount(Integer finishedCount) { + this.finishedCount = finishedCount; + return this; + } + + /** + * 执行完成总数 + * @return finishedCount + */ + public Integer getFinishedCount() { + return finishedCount; + } + + public void setFinishedCount(Integer finishedCount) { + this.finishedCount = finishedCount; + } + + public ShowProgressResponse withReturnValue(Object returnValue) { + this.returnValue = returnValue; + return this; + } + + /** + * 异步操作返回值 + * @return returnValue + */ + public Object getReturnValue() { + return returnValue; + } + + public void setReturnValue(Object returnValue) { + this.returnValue = returnValue; + } + + public ShowProgressResponse withExceptionMessage(String exceptionMessage) { + this.exceptionMessage = exceptionMessage; + return this; + } + + /** + * 异常信息 + * @return exceptionMessage + */ + public String getExceptionMessage() { + return exceptionMessage; + } + + public void setExceptionMessage(String exceptionMessage) { + this.exceptionMessage = exceptionMessage; + } + + public ShowProgressResponse withLineUpNum(Integer lineUpNum) { + this.lineUpNum = lineUpNum; + return this; + } + + /** + * 行编号 + * @return lineUpNum + */ + public Integer getLineUpNum() { + return lineUpNum; + } + + public void setLineUpNum(Integer lineUpNum) { + this.lineUpNum = lineUpNum; + } + + public ShowProgressResponse withAsynOperationKey(String asynOperationKey) { + this.asynOperationKey = asynOperationKey; + return this; + } + + /** + * 异步操作的key + * @return asynOperationKey + */ + public String getAsynOperationKey() { + return asynOperationKey; + } + + public void setAsynOperationKey(String asynOperationKey) { + this.asynOperationKey = asynOperationKey; + } + + public ShowProgressResponse withIsEnded(Boolean isEnded) { + this.isEnded = isEnded; + return this; + } + + /** + * 是否结束 + * @return isEnded + */ + public Boolean getIsEnded() { + return isEnded; + } + + public void setIsEnded(Boolean isEnded) { + this.isEnded = isEnded; + } + + public ShowProgressResponse withFinishedPercent(Integer finishedPercent) { + this.finishedPercent = finishedPercent; + return this; + } + + /** + * 异步操作完成进度 + * @return finishedPercent + */ + public Integer getFinishedPercent() { + return finishedPercent; + } + + public void setFinishedPercent(Integer finishedPercent) { + this.finishedPercent = finishedPercent; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowProgressResponse that = (ShowProgressResponse) obj; + return Objects.equals(this.uri, that.uri) && Objects.equals(this.name, that.name) + && Objects.equals(this.total, that.total) && Objects.equals(this.completed, that.completed) + && Objects.equals(this.cancelled, that.cancelled) && Objects.equals(this.informations, that.informations) + && Objects.equals(this.code, that.code) && Objects.equals(this.reason, that.reason) + && Objects.equals(this.submittedTime, that.submittedTime) && Objects.equals(this.beginTime, that.beginTime) + && Objects.equals(this.endTime, that.endTime) && Objects.equals(this.serverIp, that.serverIp) + && Objects.equals(this.lastModifiedTime, that.lastModifiedTime) + && Objects.equals(this.finishedCount, that.finishedCount) + && Objects.equals(this.returnValue, that.returnValue) + && Objects.equals(this.exceptionMessage, that.exceptionMessage) + && Objects.equals(this.lineUpNum, that.lineUpNum) + && Objects.equals(this.asynOperationKey, that.asynOperationKey) + && Objects.equals(this.isEnded, that.isEnded) && Objects.equals(this.finishedPercent, that.finishedPercent); + } + + @Override + public int hashCode() { + return Objects.hash(uri, + name, + total, + completed, + cancelled, + informations, + code, + reason, + submittedTime, + beginTime, + endTime, + serverIp, + lastModifiedTime, + finishedCount, + returnValue, + exceptionMessage, + lineUpNum, + asynOperationKey, + isEnded, + finishedPercent); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowProgressResponse {\n"); + sb.append(" uri: ").append(toIndentedString(uri)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" completed: ").append(toIndentedString(completed)).append("\n"); + sb.append(" cancelled: ").append(toIndentedString(cancelled)).append("\n"); + sb.append(" informations: ").append(toIndentedString(informations)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); + sb.append(" submittedTime: ").append(toIndentedString(submittedTime)).append("\n"); + sb.append(" beginTime: ").append(toIndentedString(beginTime)).append("\n"); + sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n"); + sb.append(" serverIp: ").append(toIndentedString(serverIp)).append("\n"); + sb.append(" lastModifiedTime: ").append(toIndentedString(lastModifiedTime)).append("\n"); + sb.append(" finishedCount: ").append(toIndentedString(finishedCount)).append("\n"); + sb.append(" returnValue: ").append(toIndentedString(returnValue)).append("\n"); + sb.append(" exceptionMessage: ").append(toIndentedString(exceptionMessage)).append("\n"); + sb.append(" lineUpNum: ").append(toIndentedString(lineUpNum)).append("\n"); + sb.append(" asynOperationKey: ").append(toIndentedString(asynOperationKey)).append("\n"); + sb.append(" isEnded: ").append(toIndentedString(isEnded)).append("\n"); + sb.append(" finishedPercent: ").append(toIndentedString(finishedPercent)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowRequirementsOverviewRequest.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowRequirementsOverviewRequest.java new file mode 100644 index 0000000000..e567bea684 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowRequirementsOverviewRequest.java @@ -0,0 +1,129 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class ShowRequirementsOverviewRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_id") + + private String projectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "version_id") + + private String versionId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private QueryRequirementsOverviewInfo body; + + public ShowRequirementsOverviewRequest withProjectId(String projectId) { + this.projectId = projectId; + return this; + } + + /** + * 项目ID,固定长度32位字符(字母和数字)。 + * @return projectId + */ + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public ShowRequirementsOverviewRequest withVersionId(String versionId) { + this.versionId = versionId; + return this; + } + + /** + * 版本id + * @return versionId + */ + public String getVersionId() { + return versionId; + } + + public void setVersionId(String versionId) { + this.versionId = versionId; + } + + public ShowRequirementsOverviewRequest withBody(QueryRequirementsOverviewInfo body) { + this.body = body; + return this; + } + + public ShowRequirementsOverviewRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new QueryRequirementsOverviewInfo(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public QueryRequirementsOverviewInfo getBody() { + return body; + } + + public void setBody(QueryRequirementsOverviewInfo body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowRequirementsOverviewRequest that = (ShowRequirementsOverviewRequest) obj; + return Objects.equals(this.projectId, that.projectId) && Objects.equals(this.versionId, that.versionId) + && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(projectId, versionId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowRequirementsOverviewRequest {\n"); + sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); + sb.append(" versionId: ").append(toIndentedString(versionId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowRequirementsOverviewResponse.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowRequirementsOverviewResponse.java new file mode 100644 index 0000000000..b54ce1f983 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowRequirementsOverviewResponse.java @@ -0,0 +1,139 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ShowRequirementsOverviewResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private String status; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "result") + + private ResultValueRequirementsOverviewVo result; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "error") + + private ApiError error; + + public ShowRequirementsOverviewResponse withStatus(String status) { + this.status = status; + return this; + } + + /** + * success|error; + * @return status + */ + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public ShowRequirementsOverviewResponse withResult(ResultValueRequirementsOverviewVo result) { + this.result = result; + return this; + } + + public ShowRequirementsOverviewResponse withResult(Consumer resultSetter) { + if (this.result == null) { + this.result = new ResultValueRequirementsOverviewVo(); + resultSetter.accept(this.result); + } + + return this; + } + + /** + * Get result + * @return result + */ + public ResultValueRequirementsOverviewVo getResult() { + return result; + } + + public void setResult(ResultValueRequirementsOverviewVo result) { + this.result = result; + } + + public ShowRequirementsOverviewResponse withError(ApiError error) { + this.error = error; + return this; + } + + public ShowRequirementsOverviewResponse withError(Consumer errorSetter) { + if (this.error == null) { + this.error = new ApiError(); + errorSetter.accept(this.error); + } + + return this; + } + + /** + * Get error + * @return error + */ + public ApiError getError() { + return error; + } + + public void setError(ApiError error) { + this.error = error; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowRequirementsOverviewResponse that = (ShowRequirementsOverviewResponse) obj; + return Objects.equals(this.status, that.status) && Objects.equals(this.result, that.result) + && Objects.equals(this.error, that.error); + } + + @Override + public int hashCode() { + return Objects.hash(status, result, error); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowRequirementsOverviewResponse {\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowSystemConfigsRequest.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowSystemConfigsRequest.java new file mode 100644 index 0000000000..dc9858f5c9 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowSystemConfigsRequest.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class ShowSystemConfigsRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_id") + + private String projectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private CommRequestSystemConfig body; + + public ShowSystemConfigsRequest withProjectId(String projectId) { + this.projectId = projectId; + return this; + } + + /** + * 项目ID,固定长度32位字符(字母和数字)。 + * @return projectId + */ + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public ShowSystemConfigsRequest withBody(CommRequestSystemConfig body) { + this.body = body; + return this; + } + + public ShowSystemConfigsRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new CommRequestSystemConfig(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public CommRequestSystemConfig getBody() { + return body; + } + + public void setBody(CommRequestSystemConfig body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowSystemConfigsRequest that = (ShowSystemConfigsRequest) obj; + return Objects.equals(this.projectId, that.projectId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(projectId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowSystemConfigsRequest {\n"); + sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowSystemConfigsResponse.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowSystemConfigsResponse.java new file mode 100644 index 0000000000..d8e2b6e39c --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowSystemConfigsResponse.java @@ -0,0 +1,139 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ShowSystemConfigsResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "code") + + private String code; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "data") + + private List data = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "message") + + private String message; + + public ShowSystemConfigsResponse withCode(String code) { + this.code = code; + return this; + } + + /** + * 接口调用失败错误码 + * @return code + */ + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public ShowSystemConfigsResponse withData(List data) { + this.data = data; + return this; + } + + public ShowSystemConfigsResponse addDataItem(SystemConfig dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + public ShowSystemConfigsResponse withData(Consumer> dataSetter) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + dataSetter.accept(this.data); + return this; + } + + /** + * Get data + * @return data + */ + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ShowSystemConfigsResponse withMessage(String message) { + this.message = message; + return this; + } + + /** + * 接口调用错误信息 + * @return message + */ + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowSystemConfigsResponse that = (ShowSystemConfigsResponse) obj; + return Objects.equals(this.code, that.code) && Objects.equals(this.data, that.data) + && Objects.equals(this.message, that.message); + } + + @Override + public int hashCode() { + return Objects.hash(code, data, message); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowSystemConfigsResponse {\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowTestCaseRequest.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowTestCaseRequest.java new file mode 100644 index 0000000000..8bf8e90704 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowTestCaseRequest.java @@ -0,0 +1,189 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ShowTestCaseRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "testcase_id") + + private String testcaseId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "version_uri") + + private String versionUri; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_uuid") + + private String projectUuid; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "task_uri") + + private String taskUri; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "refresh") + + private Boolean refresh; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_recycle") + + private Boolean isRecycle; + + public ShowTestCaseRequest withTestcaseId(String testcaseId) { + this.testcaseId = testcaseId; + return this; + } + + /** + * 用例id + * @return testcaseId + */ + public String getTestcaseId() { + return testcaseId; + } + + public void setTestcaseId(String testcaseId) { + this.testcaseId = testcaseId; + } + + public ShowTestCaseRequest withVersionUri(String versionUri) { + this.versionUri = versionUri; + return this; + } + + /** + * 分支uri + * @return versionUri + */ + public String getVersionUri() { + return versionUri; + } + + public void setVersionUri(String versionUri) { + this.versionUri = versionUri; + } + + public ShowTestCaseRequest withProjectUuid(String projectUuid) { + this.projectUuid = projectUuid; + return this; + } + + /** + * 项目id + * @return projectUuid + */ + public String getProjectUuid() { + return projectUuid; + } + + public void setProjectUuid(String projectUuid) { + this.projectUuid = projectUuid; + } + + public ShowTestCaseRequest withTaskUri(String taskUri) { + this.taskUri = taskUri; + return this; + } + + /** + * 任务 + * @return taskUri + */ + public String getTaskUri() { + return taskUri; + } + + public void setTaskUri(String taskUri) { + this.taskUri = taskUri; + } + + public ShowTestCaseRequest withRefresh(Boolean refresh) { + this.refresh = refresh; + return this; + } + + /** + * 是否刷新缓存 + * @return refresh + */ + public Boolean getRefresh() { + return refresh; + } + + public void setRefresh(Boolean refresh) { + this.refresh = refresh; + } + + public ShowTestCaseRequest withIsRecycle(Boolean isRecycle) { + this.isRecycle = isRecycle; + return this; + } + + /** + * 是否回收站资源 + * @return isRecycle + */ + public Boolean getIsRecycle() { + return isRecycle; + } + + public void setIsRecycle(Boolean isRecycle) { + this.isRecycle = isRecycle; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowTestCaseRequest that = (ShowTestCaseRequest) obj; + return Objects.equals(this.testcaseId, that.testcaseId) && Objects.equals(this.versionUri, that.versionUri) + && Objects.equals(this.projectUuid, that.projectUuid) && Objects.equals(this.taskUri, that.taskUri) + && Objects.equals(this.refresh, that.refresh) && Objects.equals(this.isRecycle, that.isRecycle); + } + + @Override + public int hashCode() { + return Objects.hash(testcaseId, versionUri, projectUuid, taskUri, refresh, isRecycle); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowTestCaseRequest {\n"); + sb.append(" testcaseId: ").append(toIndentedString(testcaseId)).append("\n"); + sb.append(" versionUri: ").append(toIndentedString(versionUri)).append("\n"); + sb.append(" projectUuid: ").append(toIndentedString(projectUuid)).append("\n"); + sb.append(" taskUri: ").append(toIndentedString(taskUri)).append("\n"); + sb.append(" refresh: ").append(toIndentedString(refresh)).append("\n"); + sb.append(" isRecycle: ").append(toIndentedString(isRecycle)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowTestCaseResponse.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowTestCaseResponse.java new file mode 100644 index 0000000000..2672bf1a79 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowTestCaseResponse.java @@ -0,0 +1,3333 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ShowTestCaseResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "uri") + + private String uri; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "type") + + private String type; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "author") + + private String author; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "rank") + + private Integer rank; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "preparation") + + private String preparation; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "remark") + + private String remark; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "stage") + + private String stage; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "activity") + + private String activity; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "keywords") + + private String keywords; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "market") + + private String market; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "designer") + + private String designer; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tags") + + private String tags; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "execute_parameter") + + private String executeParameter; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "region") + + private String region; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "owner") + + private String owner; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "issue") + + private SimpleIssueVo issue; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "last_modifier") + + private String lastModifier; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "last_modified") + + private OffsetDateTime lastModified; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "last_modified_timestamp") + + private Long lastModifiedTimestamp; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "last_change_time") + + private OffsetDateTime lastChangeTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "version_uri") + + private String versionUri; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "origin_uri") + + private String originUri; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "parent_uri") + + private String parentUri; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "parent_path") + + private String parentPath; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "creation_version_uri") + + private String creationVersionUri; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "creation_date") + + private OffsetDateTime creationDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "creation_date_timestamp") + + private Long creationDateTimestamp; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "author_name") + + private String authorName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "comment") + + private String comment; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "number") + + private String number; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "case_type") + + private Integer caseType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "platform_type") + + private Integer platformType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "service_type") + + private Integer serviceType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "service_type_name") + + private String serviceTypeName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "test_type") + + private Integer testType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "test_type_name") + + private String testTypeName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "design_note") + + private String designNote; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "test_step") + + private String testStep; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "expect_output") + + private String expectOutput; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "env_type") + + private String envType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "exe_platform") + + private String exePlatform; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "testcase_project") + + private String testcaseProject; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "svn_script_path") + + private String svnScriptPath; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "map_restrict") + + private String mapRestrict; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "network_script_name") + + private String networkScriptName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "auto_type") + + private Integer autoType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "to_be_auto_exec") + + private Integer toBeAutoExec; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "last_result") + + private String lastResult; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "last_result_uri") + + private String lastResultUri; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "feature_uri") + + private String featureUri; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "feature_name") + + private String featureName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "interface_name") + + private String interfaceName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "snp_no") + + private String snpNo; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dr_relation_id") + + private String drRelationId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "issue_name") + + private String issueName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "test_base_num") + + private String testBaseNum; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "automatically_executed") + + private Integer automaticallyExecuted; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "first_execute_time") + + private OffsetDateTime firstExecuteTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "detect_type") + + private String detectType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "execute_param") + + private String executeParam; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "test_feature") + + private String testFeature; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_contract_testcase") + + private Integer isContractTestcase; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "time_cost") + + private Double timeCost; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "be_auto_type_time") + + private OffsetDateTime beAutoTypeTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "compare_number") + + private String compareNumber; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "scene_flag") + + private String sceneFlag; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "base_flag") + + private String baseFlag; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "para_validator") + + private String paraValidator; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "knet_node_id") + + private String knetNodeId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "last_exe_author") + + private String lastExeAuthor; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "cloud_carrier") + + private String cloudCarrier; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "market_place") + + private String marketPlace; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "test_mind_id") + + private String testMindId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "test_mind_url") + + private String testMindUrl; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "commit_url") + + private String commitUrl; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "test_pattern_number") + + private String testPatternNumber; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "test_factor_number") + + private String testFactorNumber; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status_code") + + private String statusCode; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "result_code") + + private String resultCode; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "release_id") + + private String releaseId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "label_id") + + private String labelId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "labels") + + private String labels; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "module_id") + + private String moduleId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "module_name") + + private String moduleName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "module_path") + + private String modulePath; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "module_path_name") + + private String modulePathName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "execute_latest_time") + + private OffsetDateTime executeLatestTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "execute_duration") + + private String executeDuration; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "execute_times") + + private Integer executeTimes; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_keyword") + + private Integer isKeyword; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "release_dev") + + private String releaseDev; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "new_created") + + private String newCreated; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_uuid") + + private String projectUuid; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "creation_version_name") + + private String creationVersionName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "feature_path") + + private String featurePath; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "testcase_uri") + + private String testcaseUri; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "owner_name") + + private String ownerName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "iterator_case_uri") + + private String iteratorCaseUri; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "script_link") + + private String scriptLink; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "custom_field_1") + + private String customField1; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "custom_field_2") + + private String customField2; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "custom_field_3") + + private String customField3; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "custom_field_4") + + private String customField4; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "custom_field_5") + + private String customField5; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "custom_field_6") + + private String customField6; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "custom_field_7") + + private String customField7; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "custom_field_8") + + private String customField8; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "custom_field_9") + + private String customField9; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "custom_field_10") + + private String customField10; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "custom_field_11") + + private String customField11; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "custom_field_12") + + private String customField12; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "custom_field_13") + + private String customField13; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "custom_field_14") + + private String customField14; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "custom_field_15") + + private String customField15; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "custom_field_16") + + private String customField16; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "custom_field_17") + + private String customField17; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "custom_field_18") + + private String customField18; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "custom_field_19") + + private String customField19; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "custom_field_20") + + private String customField20; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "custom_field_21") + + private String customField21; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "custom_field_22") + + private String customField22; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "custom_field_23") + + private String customField23; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "custom_field_24") + + private String customField24; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "custom_field_25") + + private String customField25; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "last_modifier_name") + + private String lastModifierName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "version_name") + + private String versionName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "steps") + + private List steps = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "associate_defect") + + private Boolean associateDefect; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "associate_issue") + + private Boolean associateIssue; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "defect_list") + + private List defectList = null; + + public ShowTestCaseResponse withUri(String uri) { + this.uri = uri; + return this; + } + + /** + * 资源URI + * @return uri + */ + public String getUri() { + return uri; + } + + public void setUri(String uri) { + this.uri = uri; + } + + public ShowTestCaseResponse withType(String type) { + this.type = type; + return this; + } + + /** + * 资源类型 + * @return type + */ + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public ShowTestCaseResponse withAuthor(String author) { + this.author = author; + return this; + } + + /** + * 创建人 + * @return author + */ + public String getAuthor() { + return author; + } + + public void setAuthor(String author) { + this.author = author; + } + + public ShowTestCaseResponse withName(String name) { + this.name = name; + return this; + } + + /** + * 名称 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ShowTestCaseResponse withRank(Integer rank) { + this.rank = rank; + return this; + } + + /** + * 级别 + * @return rank + */ + public Integer getRank() { + return rank; + } + + public void setRank(Integer rank) { + this.rank = rank; + } + + public ShowTestCaseResponse withPreparation(String preparation) { + this.preparation = preparation; + return this; + } + + /** + * 前置条件 + * @return preparation + */ + public String getPreparation() { + return preparation; + } + + public void setPreparation(String preparation) { + this.preparation = preparation; + } + + public ShowTestCaseResponse withRemark(String remark) { + this.remark = remark; + return this; + } + + /** + * 备注 + * @return remark + */ + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } + + public ShowTestCaseResponse withStage(String stage) { + this.stage = stage; + return this; + } + + /** + * 测试阶段 + * @return stage + */ + public String getStage() { + return stage; + } + + public void setStage(String stage) { + this.stage = stage; + } + + public ShowTestCaseResponse withActivity(String activity) { + this.activity = activity; + return this; + } + + /** + * 测试类型 + * @return activity + */ + public String getActivity() { + return activity; + } + + public void setActivity(String activity) { + this.activity = activity; + } + + public ShowTestCaseResponse withKeywords(String keywords) { + this.keywords = keywords; + return this; + } + + /** + * 关键词 + * @return keywords + */ + public String getKeywords() { + return keywords; + } + + public void setKeywords(String keywords) { + this.keywords = keywords; + } + + public ShowTestCaseResponse withMarket(String market) { + this.market = market; + return this; + } + + /** + * apitest标记是否代码已提交 + * @return market + */ + public String getMarket() { + return market; + } + + public void setMarket(String market) { + this.market = market; + } + + public ShowTestCaseResponse withDesigner(String designer) { + this.designer = designer; + return this; + } + + /** + * 设计者 + * @return designer + */ + public String getDesigner() { + return designer; + } + + public void setDesigner(String designer) { + this.designer = designer; + } + + public ShowTestCaseResponse withTags(String tags) { + this.tags = tags; + return this; + } + + /** + * 标签 + * @return tags + */ + public String getTags() { + return tags; + } + + public void setTags(String tags) { + this.tags = tags; + } + + public ShowTestCaseResponse withExecuteParameter(String executeParameter) { + this.executeParameter = executeParameter; + return this; + } + + /** + * 执行参数 + * @return executeParameter + */ + public String getExecuteParameter() { + return executeParameter; + } + + public void setExecuteParameter(String executeParameter) { + this.executeParameter = executeParameter; + } + + public ShowTestCaseResponse withRegion(String region) { + this.region = region; + return this; + } + + /** + * 逻辑region + * @return region + */ + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public ShowTestCaseResponse withOwner(String owner) { + this.owner = owner; + return this; + } + + /** + * 处理人id,IteratorTestCase字段 + * @return owner + */ + public String getOwner() { + return owner; + } + + public void setOwner(String owner) { + this.owner = owner; + } + + public ShowTestCaseResponse withIssue(SimpleIssueVo issue) { + this.issue = issue; + return this; + } + + public ShowTestCaseResponse withIssue(Consumer issueSetter) { + if (this.issue == null) { + this.issue = new SimpleIssueVo(); + issueSetter.accept(this.issue); + } + + return this; + } + + /** + * Get issue + * @return issue + */ + public SimpleIssueVo getIssue() { + return issue; + } + + public void setIssue(SimpleIssueVo issue) { + this.issue = issue; + } + + public ShowTestCaseResponse withLastModifier(String lastModifier) { + this.lastModifier = lastModifier; + return this; + } + + /** + * 最后修改人 + * @return lastModifier + */ + public String getLastModifier() { + return lastModifier; + } + + public void setLastModifier(String lastModifier) { + this.lastModifier = lastModifier; + } + + public ShowTestCaseResponse withLastModified(OffsetDateTime lastModified) { + this.lastModified = lastModified; + return this; + } + + /** + * 最后修改时间 + * @return lastModified + */ + public OffsetDateTime getLastModified() { + return lastModified; + } + + public void setLastModified(OffsetDateTime lastModified) { + this.lastModified = lastModified; + } + + public ShowTestCaseResponse withLastModifiedTimestamp(Long lastModifiedTimestamp) { + this.lastModifiedTimestamp = lastModifiedTimestamp; + return this; + } + + /** + * 修改时间时间戳 + * @return lastModifiedTimestamp + */ + public Long getLastModifiedTimestamp() { + return lastModifiedTimestamp; + } + + public void setLastModifiedTimestamp(Long lastModifiedTimestamp) { + this.lastModifiedTimestamp = lastModifiedTimestamp; + } + + public ShowTestCaseResponse withLastChangeTime(OffsetDateTime lastChangeTime) { + this.lastChangeTime = lastChangeTime; + return this; + } + + /** + * 最后变更时间 + * @return lastChangeTime + */ + public OffsetDateTime getLastChangeTime() { + return lastChangeTime; + } + + public void setLastChangeTime(OffsetDateTime lastChangeTime) { + this.lastChangeTime = lastChangeTime; + } + + public ShowTestCaseResponse withVersionUri(String versionUri) { + this.versionUri = versionUri; + return this; + } + + /** + * 版本URI + * @return versionUri + */ + public String getVersionUri() { + return versionUri; + } + + public void setVersionUri(String versionUri) { + this.versionUri = versionUri; + } + + public ShowTestCaseResponse withOriginUri(String originUri) { + this.originUri = originUri; + return this; + } + + /** + * 源资源URI + * @return originUri + */ + public String getOriginUri() { + return originUri; + } + + public void setOriginUri(String originUri) { + this.originUri = originUri; + } + + public ShowTestCaseResponse withParentUri(String parentUri) { + this.parentUri = parentUri; + return this; + } + + /** + * 父资源URI + * @return parentUri + */ + public String getParentUri() { + return parentUri; + } + + public void setParentUri(String parentUri) { + this.parentUri = parentUri; + } + + public ShowTestCaseResponse withParentPath(String parentPath) { + this.parentPath = parentPath; + return this; + } + + /** + * 父资源路径 + * @return parentPath + */ + public String getParentPath() { + return parentPath; + } + + public void setParentPath(String parentPath) { + this.parentPath = parentPath; + } + + public ShowTestCaseResponse withCreationVersionUri(String creationVersionUri) { + this.creationVersionUri = creationVersionUri; + return this; + } + + /** + * 创建版本URI + * @return creationVersionUri + */ + public String getCreationVersionUri() { + return creationVersionUri; + } + + public void setCreationVersionUri(String creationVersionUri) { + this.creationVersionUri = creationVersionUri; + } + + public ShowTestCaseResponse withCreationDate(OffsetDateTime creationDate) { + this.creationDate = creationDate; + return this; + } + + /** + * 创建时间 + * @return creationDate + */ + public OffsetDateTime getCreationDate() { + return creationDate; + } + + public void setCreationDate(OffsetDateTime creationDate) { + this.creationDate = creationDate; + } + + public ShowTestCaseResponse withCreationDateTimestamp(Long creationDateTimestamp) { + this.creationDateTimestamp = creationDateTimestamp; + return this; + } + + /** + * 创建时间时间戳 + * @return creationDateTimestamp + */ + public Long getCreationDateTimestamp() { + return creationDateTimestamp; + } + + public void setCreationDateTimestamp(Long creationDateTimestamp) { + this.creationDateTimestamp = creationDateTimestamp; + } + + public ShowTestCaseResponse withAuthorName(String authorName) { + this.authorName = authorName; + return this; + } + + /** + * 创建人名称 + * @return authorName + */ + public String getAuthorName() { + return authorName; + } + + public void setAuthorName(String authorName) { + this.authorName = authorName; + } + + public ShowTestCaseResponse withComment(String comment) { + this.comment = comment; + return this; + } + + /** + * 备注 + * @return comment + */ + public String getComment() { + return comment; + } + + public void setComment(String comment) { + this.comment = comment; + } + + public ShowTestCaseResponse withNumber(String number) { + this.number = number; + return this; + } + + /** + * 编号 + * @return number + */ + public String getNumber() { + return number; + } + + public void setNumber(String number) { + this.number = number; + } + + public ShowTestCaseResponse withCaseType(Integer caseType) { + this.caseType = caseType; + return this; + } + + /** + * 用例类型 + * @return caseType + */ + public Integer getCaseType() { + return caseType; + } + + public void setCaseType(Integer caseType) { + this.caseType = caseType; + } + + public ShowTestCaseResponse withPlatformType(Integer platformType) { + this.platformType = platformType; + return this; + } + + /** + * 执行平台类型 + * @return platformType + */ + public Integer getPlatformType() { + return platformType; + } + + public void setPlatformType(Integer platformType) { + this.platformType = platformType; + } + + public ShowTestCaseResponse withServiceType(Integer serviceType) { + this.serviceType = serviceType; + return this; + } + + /** + * 服务类型 + * @return serviceType + */ + public Integer getServiceType() { + return serviceType; + } + + public void setServiceType(Integer serviceType) { + this.serviceType = serviceType; + } + + public ShowTestCaseResponse withServiceTypeName(String serviceTypeName) { + this.serviceTypeName = serviceTypeName; + return this; + } + + /** + * 服务类型名称 + * @return serviceTypeName + */ + public String getServiceTypeName() { + return serviceTypeName; + } + + public void setServiceTypeName(String serviceTypeName) { + this.serviceTypeName = serviceTypeName; + } + + public ShowTestCaseResponse withTestType(Integer testType) { + this.testType = testType; + return this; + } + + /** + * 测试类型 + * @return testType + */ + public Integer getTestType() { + return testType; + } + + public void setTestType(Integer testType) { + this.testType = testType; + } + + public ShowTestCaseResponse withTestTypeName(String testTypeName) { + this.testTypeName = testTypeName; + return this; + } + + /** + * 测试类型名称 + * @return testTypeName + */ + public String getTestTypeName() { + return testTypeName; + } + + public void setTestTypeName(String testTypeName) { + this.testTypeName = testTypeName; + } + + public ShowTestCaseResponse withDesignNote(String designNote) { + this.designNote = designNote; + return this; + } + + /** + * 设计描述 + * @return designNote + */ + public String getDesignNote() { + return designNote; + } + + public void setDesignNote(String designNote) { + this.designNote = designNote; + } + + public ShowTestCaseResponse withTestStep(String testStep) { + this.testStep = testStep; + return this; + } + + /** + * 测试步骤 + * @return testStep + */ + public String getTestStep() { + return testStep; + } + + public void setTestStep(String testStep) { + this.testStep = testStep; + } + + public ShowTestCaseResponse withExpectOutput(String expectOutput) { + this.expectOutput = expectOutput; + return this; + } + + /** + * 期望结果 + * @return expectOutput + */ + public String getExpectOutput() { + return expectOutput; + } + + public void setExpectOutput(String expectOutput) { + this.expectOutput = expectOutput; + } + + public ShowTestCaseResponse withEnvType(String envType) { + this.envType = envType; + return this; + } + + /** + * 测试环境类型 + * @return envType + */ + public String getEnvType() { + return envType; + } + + public void setEnvType(String envType) { + this.envType = envType; + } + + public ShowTestCaseResponse withExePlatform(String exePlatform) { + this.exePlatform = exePlatform; + return this; + } + + /** + * 执行平台 + * @return exePlatform + */ + public String getExePlatform() { + return exePlatform; + } + + public void setExePlatform(String exePlatform) { + this.exePlatform = exePlatform; + } + + public ShowTestCaseResponse withTestcaseProject(String testcaseProject) { + this.testcaseProject = testcaseProject; + return this; + } + + /** + * 测试工程 + * @return testcaseProject + */ + public String getTestcaseProject() { + return testcaseProject; + } + + public void setTestcaseProject(String testcaseProject) { + this.testcaseProject = testcaseProject; + } + + public ShowTestCaseResponse withSvnScriptPath(String svnScriptPath) { + this.svnScriptPath = svnScriptPath; + return this; + } + + /** + * 脚本路径 + * @return svnScriptPath + */ + public String getSvnScriptPath() { + return svnScriptPath; + } + + public void setSvnScriptPath(String svnScriptPath) { + this.svnScriptPath = svnScriptPath; + } + + public ShowTestCaseResponse withMapRestrict(String mapRestrict) { + this.mapRestrict = mapRestrict; + return this; + } + + /** + * 约束条件 + * @return mapRestrict + */ + public String getMapRestrict() { + return mapRestrict; + } + + public void setMapRestrict(String mapRestrict) { + this.mapRestrict = mapRestrict; + } + + public ShowTestCaseResponse withNetworkScriptName(String networkScriptName) { + this.networkScriptName = networkScriptName; + return this; + } + + /** + * 网络脚本名 + * @return networkScriptName + */ + public String getNetworkScriptName() { + return networkScriptName; + } + + public void setNetworkScriptName(String networkScriptName) { + this.networkScriptName = networkScriptName; + } + + public ShowTestCaseResponse withAutoType(Integer autoType) { + this.autoType = autoType; + return this; + } + + /** + * 自动化类型,非自动化:0, 是自动化:1 + * @return autoType + */ + public Integer getAutoType() { + return autoType; + } + + public void setAutoType(Integer autoType) { + this.autoType = autoType; + } + + public ShowTestCaseResponse withToBeAutoExec(Integer toBeAutoExec) { + this.toBeAutoExec = toBeAutoExec; + return this; + } + + /** + * 被自动化执行 + * @return toBeAutoExec + */ + public Integer getToBeAutoExec() { + return toBeAutoExec; + } + + public void setToBeAutoExec(Integer toBeAutoExec) { + this.toBeAutoExec = toBeAutoExec; + } + + public ShowTestCaseResponse withLastResult(String lastResult) { + this.lastResult = lastResult; + return this; + } + + /** + * 最后一次结果 + * @return lastResult + */ + public String getLastResult() { + return lastResult; + } + + public void setLastResult(String lastResult) { + this.lastResult = lastResult; + } + + public ShowTestCaseResponse withLastResultUri(String lastResultUri) { + this.lastResultUri = lastResultUri; + return this; + } + + /** + * 最后一次结果Uri + * @return lastResultUri + */ + public String getLastResultUri() { + return lastResultUri; + } + + public void setLastResultUri(String lastResultUri) { + this.lastResultUri = lastResultUri; + } + + public ShowTestCaseResponse withFeatureUri(String featureUri) { + this.featureUri = featureUri; + return this; + } + + /** + * 目录Uri + * @return featureUri + */ + public String getFeatureUri() { + return featureUri; + } + + public void setFeatureUri(String featureUri) { + this.featureUri = featureUri; + } + + public ShowTestCaseResponse withFeatureName(String featureName) { + this.featureName = featureName; + return this; + } + + /** + * 目录名称 + * @return featureName + */ + public String getFeatureName() { + return featureName; + } + + public void setFeatureName(String featureName) { + this.featureName = featureName; + } + + public ShowTestCaseResponse withInterfaceName(String interfaceName) { + this.interfaceName = interfaceName; + return this; + } + + /** + * 测试接口名 + * @return interfaceName + */ + public String getInterfaceName() { + return interfaceName; + } + + public void setInterfaceName(String interfaceName) { + this.interfaceName = interfaceName; + } + + public ShowTestCaseResponse withSnpNo(String snpNo) { + this.snpNo = snpNo; + return this; + } + + /** + * 网络问题ID + * @return snpNo + */ + public String getSnpNo() { + return snpNo; + } + + public void setSnpNo(String snpNo) { + this.snpNo = snpNo; + } + + public ShowTestCaseResponse withDrRelationId(String drRelationId) { + this.drRelationId = drRelationId; + return this; + } + + /** + * 关联需求编号 + * @return drRelationId + */ + public String getDrRelationId() { + return drRelationId; + } + + public void setDrRelationId(String drRelationId) { + this.drRelationId = drRelationId; + } + + public ShowTestCaseResponse withIssueName(String issueName) { + this.issueName = issueName; + return this; + } + + /** + * 需求名称 + * @return issueName + */ + public String getIssueName() { + return issueName; + } + + public void setIssueName(String issueName) { + this.issueName = issueName; + } + + public ShowTestCaseResponse withTestBaseNum(String testBaseNum) { + this.testBaseNum = testBaseNum; + return this; + } + + /** + * 测试基数 + * @return testBaseNum + */ + public String getTestBaseNum() { + return testBaseNum; + } + + public void setTestBaseNum(String testBaseNum) { + this.testBaseNum = testBaseNum; + } + + public ShowTestCaseResponse withAutomaticallyExecuted(Integer automaticallyExecuted) { + this.automaticallyExecuted = automaticallyExecuted; + return this; + } + + /** + * 是否被自动化执行 + * @return automaticallyExecuted + */ + public Integer getAutomaticallyExecuted() { + return automaticallyExecuted; + } + + public void setAutomaticallyExecuted(Integer automaticallyExecuted) { + this.automaticallyExecuted = automaticallyExecuted; + } + + public ShowTestCaseResponse withFirstExecuteTime(OffsetDateTime firstExecuteTime) { + this.firstExecuteTime = firstExecuteTime; + return this; + } + + /** + * 第一次执行时间 + * @return firstExecuteTime + */ + public OffsetDateTime getFirstExecuteTime() { + return firstExecuteTime; + } + + public void setFirstExecuteTime(OffsetDateTime firstExecuteTime) { + this.firstExecuteTime = firstExecuteTime; + } + + public ShowTestCaseResponse withDetectType(String detectType) { + this.detectType = detectType; + return this; + } + + /** + * 检测类型 + * @return detectType + */ + public String getDetectType() { + return detectType; + } + + public void setDetectType(String detectType) { + this.detectType = detectType; + } + + public ShowTestCaseResponse withExecuteParam(String executeParam) { + this.executeParam = executeParam; + return this; + } + + /** + * 执行参数 + * @return executeParam + */ + public String getExecuteParam() { + return executeParam; + } + + public void setExecuteParam(String executeParam) { + this.executeParam = executeParam; + } + + public ShowTestCaseResponse withTestFeature(String testFeature) { + this.testFeature = testFeature; + return this; + } + + /** + * 分析领域 + * @return testFeature + */ + public String getTestFeature() { + return testFeature; + } + + public void setTestFeature(String testFeature) { + this.testFeature = testFeature; + } + + public ShowTestCaseResponse withIsContractTestcase(Integer isContractTestcase) { + this.isContractTestcase = isContractTestcase; + return this; + } + + /** + * 是否是契约用例,0:表示非契约用例, 1:表示契约用例 + * @return isContractTestcase + */ + public Integer getIsContractTestcase() { + return isContractTestcase; + } + + public void setIsContractTestcase(Integer isContractTestcase) { + this.isContractTestcase = isContractTestcase; + } + + public ShowTestCaseResponse withTimeCost(Double timeCost) { + this.timeCost = timeCost; + return this; + } + + /** + * 总共耗时 + * @return timeCost + */ + public Double getTimeCost() { + return timeCost; + } + + public void setTimeCost(Double timeCost) { + this.timeCost = timeCost; + } + + public ShowTestCaseResponse withBeAutoTypeTime(OffsetDateTime beAutoTypeTime) { + this.beAutoTypeTime = beAutoTypeTime; + return this; + } + + /** + * 记录用例由非自动化变为自动化类型的时间 + * @return beAutoTypeTime + */ + public OffsetDateTime getBeAutoTypeTime() { + return beAutoTypeTime; + } + + public void setBeAutoTypeTime(OffsetDateTime beAutoTypeTime) { + this.beAutoTypeTime = beAutoTypeTime; + } + + public ShowTestCaseResponse withCompareNumber(String compareNumber) { + this.compareNumber = compareNumber; + return this; + } + + /** + * 配对用例编号 + * @return compareNumber + */ + public String getCompareNumber() { + return compareNumber; + } + + public void setCompareNumber(String compareNumber) { + this.compareNumber = compareNumber; + } + + public ShowTestCaseResponse withSceneFlag(String sceneFlag) { + this.sceneFlag = sceneFlag; + return this; + } + + /** + * 场景标识 + * @return sceneFlag + */ + public String getSceneFlag() { + return sceneFlag; + } + + public void setSceneFlag(String sceneFlag) { + this.sceneFlag = sceneFlag; + } + + public ShowTestCaseResponse withBaseFlag(String baseFlag) { + this.baseFlag = baseFlag; + return this; + } + + /** + * 场景标识 + * @return baseFlag + */ + public String getBaseFlag() { + return baseFlag; + } + + public void setBaseFlag(String baseFlag) { + this.baseFlag = baseFlag; + } + + public ShowTestCaseResponse withParaValidator(String paraValidator) { + this.paraValidator = paraValidator; + return this; + } + + /** + * 区别是否从yaml中生成的用例,默认false + * @return paraValidator + */ + public String getParaValidator() { + return paraValidator; + } + + public void setParaValidator(String paraValidator) { + this.paraValidator = paraValidator; + } + + public ShowTestCaseResponse withKnetNodeId(String knetNodeId) { + this.knetNodeId = knetNodeId; + return this; + } + + /** + * knet节点id + * @return knetNodeId + */ + public String getKnetNodeId() { + return knetNodeId; + } + + public void setKnetNodeId(String knetNodeId) { + this.knetNodeId = knetNodeId; + } + + public ShowTestCaseResponse withLastExeAuthor(String lastExeAuthor) { + this.lastExeAuthor = lastExeAuthor; + return this; + } + + /** + * 最后一次执行用户 + * @return lastExeAuthor + */ + public String getLastExeAuthor() { + return lastExeAuthor; + } + + public void setLastExeAuthor(String lastExeAuthor) { + this.lastExeAuthor = lastExeAuthor; + } + + public ShowTestCaseResponse withCloudCarrier(String cloudCarrier) { + this.cloudCarrier = cloudCarrier; + return this; + } + + /** + * 运营商 + * @return cloudCarrier + */ + public String getCloudCarrier() { + return cloudCarrier; + } + + public void setCloudCarrier(String cloudCarrier) { + this.cloudCarrier = cloudCarrier; + } + + public ShowTestCaseResponse withMarketPlace(String marketPlace) { + this.marketPlace = marketPlace; + return this; + } + + /** + * 应用市场 + * @return marketPlace + */ + public String getMarketPlace() { + return marketPlace; + } + + public void setMarketPlace(String marketPlace) { + this.marketPlace = marketPlace; + } + + public ShowTestCaseResponse withTestMindId(String testMindId) { + this.testMindId = testMindId; + return this; + } + + /** + * 脑图id + * @return testMindId + */ + public String getTestMindId() { + return testMindId; + } + + public void setTestMindId(String testMindId) { + this.testMindId = testMindId; + } + + public ShowTestCaseResponse withTestMindUrl(String testMindUrl) { + this.testMindUrl = testMindUrl; + return this; + } + + /** + * 脑图url + * @return testMindUrl + */ + public String getTestMindUrl() { + return testMindUrl; + } + + public void setTestMindUrl(String testMindUrl) { + this.testMindUrl = testMindUrl; + } + + public ShowTestCaseResponse withCommitUrl(String commitUrl) { + this.commitUrl = commitUrl; + return this; + } + + /** + * git提交url + * @return commitUrl + */ + public String getCommitUrl() { + return commitUrl; + } + + public void setCommitUrl(String commitUrl) { + this.commitUrl = commitUrl; + } + + public ShowTestCaseResponse withTestPatternNumber(String testPatternNumber) { + this.testPatternNumber = testPatternNumber; + return this; + } + + /** + * 测试模式编号 + * @return testPatternNumber + */ + public String getTestPatternNumber() { + return testPatternNumber; + } + + public void setTestPatternNumber(String testPatternNumber) { + this.testPatternNumber = testPatternNumber; + } + + public ShowTestCaseResponse withTestFactorNumber(String testFactorNumber) { + this.testFactorNumber = testFactorNumber; + return this; + } + + /** + * 测试因子编号 + * @return testFactorNumber + */ + public String getTestFactorNumber() { + return testFactorNumber; + } + + public void setTestFactorNumber(String testFactorNumber) { + this.testFactorNumber = testFactorNumber; + } + + public ShowTestCaseResponse withStatusCode(String statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * 状态Code + * @return statusCode + */ + public String getStatusCode() { + return statusCode; + } + + public void setStatusCode(String statusCode) { + this.statusCode = statusCode; + } + + public ShowTestCaseResponse withResultCode(String resultCode) { + this.resultCode = resultCode; + return this; + } + + /** + * 结果Code + * @return resultCode + */ + public String getResultCode() { + return resultCode; + } + + public void setResultCode(String resultCode) { + this.resultCode = resultCode; + } + + public ShowTestCaseResponse withReleaseId(String releaseId) { + this.releaseId = releaseId; + return this; + } + + /** + * 迭代ID + * @return releaseId + */ + public String getReleaseId() { + return releaseId; + } + + public void setReleaseId(String releaseId) { + this.releaseId = releaseId; + } + + public ShowTestCaseResponse withLabelId(String labelId) { + this.labelId = labelId; + return this; + } + + /** + * 标签ID + * @return labelId + */ + public String getLabelId() { + return labelId; + } + + public void setLabelId(String labelId) { + this.labelId = labelId; + } + + public ShowTestCaseResponse withLabels(String labels) { + this.labels = labels; + return this; + } + + /** + * 用例标签名称列表 + * @return labels + */ + public String getLabels() { + return labels; + } + + public void setLabels(String labels) { + this.labels = labels; + } + + public ShowTestCaseResponse withModuleId(String moduleId) { + this.moduleId = moduleId; + return this; + } + + /** + * 模块ID + * @return moduleId + */ + public String getModuleId() { + return moduleId; + } + + public void setModuleId(String moduleId) { + this.moduleId = moduleId; + } + + public ShowTestCaseResponse withModuleName(String moduleName) { + this.moduleName = moduleName; + return this; + } + + /** + * 模块名称 + * @return moduleName + */ + public String getModuleName() { + return moduleName; + } + + public void setModuleName(String moduleName) { + this.moduleName = moduleName; + } + + public ShowTestCaseResponse withModulePath(String modulePath) { + this.modulePath = modulePath; + return this; + } + + /** + * 模块path + * @return modulePath + */ + public String getModulePath() { + return modulePath; + } + + public void setModulePath(String modulePath) { + this.modulePath = modulePath; + } + + public ShowTestCaseResponse withModulePathName(String modulePathName) { + this.modulePathName = modulePathName; + return this; + } + + /** + * 模块路径名称 + * @return modulePathName + */ + public String getModulePathName() { + return modulePathName; + } + + public void setModulePathName(String modulePathName) { + this.modulePathName = modulePathName; + } + + public ShowTestCaseResponse withExecuteLatestTime(OffsetDateTime executeLatestTime) { + this.executeLatestTime = executeLatestTime; + return this; + } + + /** + * 最后执行时间 + * @return executeLatestTime + */ + public OffsetDateTime getExecuteLatestTime() { + return executeLatestTime; + } + + public void setExecuteLatestTime(OffsetDateTime executeLatestTime) { + this.executeLatestTime = executeLatestTime; + } + + public ShowTestCaseResponse withExecuteDuration(String executeDuration) { + this.executeDuration = executeDuration; + return this; + } + + /** + * 执行时长 + * @return executeDuration + */ + public String getExecuteDuration() { + return executeDuration; + } + + public void setExecuteDuration(String executeDuration) { + this.executeDuration = executeDuration; + } + + public ShowTestCaseResponse withExecuteTimes(Integer executeTimes) { + this.executeTimes = executeTimes; + return this; + } + + /** + * 执行次数 + * @return executeTimes + */ + public Integer getExecuteTimes() { + return executeTimes; + } + + public void setExecuteTimes(Integer executeTimes) { + this.executeTimes = executeTimes; + } + + public ShowTestCaseResponse withIsKeyword(Integer isKeyword) { + this.isKeyword = isKeyword; + return this; + } + + /** + * 是否关键用例 + * @return isKeyword + */ + public Integer getIsKeyword() { + return isKeyword; + } + + public void setIsKeyword(Integer isKeyword) { + this.isKeyword = isKeyword; + } + + public ShowTestCaseResponse withReleaseDev(String releaseDev) { + this.releaseDev = releaseDev; + return this; + } + + /** + * 测试版本号 + * @return releaseDev + */ + public String getReleaseDev() { + return releaseDev; + } + + public void setReleaseDev(String releaseDev) { + this.releaseDev = releaseDev; + } + + public ShowTestCaseResponse withNewCreated(String newCreated) { + this.newCreated = newCreated; + return this; + } + + /** + * 是否用户新增用例 + * @return newCreated + */ + public String getNewCreated() { + return newCreated; + } + + public void setNewCreated(String newCreated) { + this.newCreated = newCreated; + } + + public ShowTestCaseResponse withProjectUuid(String projectUuid) { + this.projectUuid = projectUuid; + return this; + } + + /** + * 项目ID + * @return projectUuid + */ + public String getProjectUuid() { + return projectUuid; + } + + public void setProjectUuid(String projectUuid) { + this.projectUuid = projectUuid; + } + + public ShowTestCaseResponse withCreationVersionName(String creationVersionName) { + this.creationVersionName = creationVersionName; + return this; + } + + /** + * 创建版本名称,原逻辑marshall添加字段 + * @return creationVersionName + */ + public String getCreationVersionName() { + return creationVersionName; + } + + public void setCreationVersionName(String creationVersionName) { + this.creationVersionName = creationVersionName; + } + + public ShowTestCaseResponse withFeaturePath(String featurePath) { + this.featurePath = featurePath; + return this; + } + + /** + * 特性路径,原逻辑marshall添加字段 + * @return featurePath + */ + public String getFeaturePath() { + return featurePath; + } + + public void setFeaturePath(String featurePath) { + this.featurePath = featurePath; + } + + public ShowTestCaseResponse withTestcaseUri(String testcaseUri) { + this.testcaseUri = testcaseUri; + return this; + } + + /** + * 实体用例Uri,IteratorTestCase字段 + * @return testcaseUri + */ + public String getTestcaseUri() { + return testcaseUri; + } + + public void setTestcaseUri(String testcaseUri) { + this.testcaseUri = testcaseUri; + } + + public ShowTestCaseResponse withOwnerName(String ownerName) { + this.ownerName = ownerName; + return this; + } + + /** + * 处理人名称 + * @return ownerName + */ + public String getOwnerName() { + return ownerName; + } + + public void setOwnerName(String ownerName) { + this.ownerName = ownerName; + } + + public ShowTestCaseResponse withIteratorCaseUri(String iteratorCaseUri) { + this.iteratorCaseUri = iteratorCaseUri; + return this; + } + + /** + * 迭代用例Uri,IteratorTestCase字段 + * @return iteratorCaseUri + */ + public String getIteratorCaseUri() { + return iteratorCaseUri; + } + + public void setIteratorCaseUri(String iteratorCaseUri) { + this.iteratorCaseUri = iteratorCaseUri; + } + + public ShowTestCaseResponse withScriptLink(String scriptLink) { + this.scriptLink = scriptLink; + return this; + } + + /** + * 脚本链接scriptLink + * @return scriptLink + */ + public String getScriptLink() { + return scriptLink; + } + + public void setScriptLink(String scriptLink) { + this.scriptLink = scriptLink; + } + + public ShowTestCaseResponse withCustomField1(String customField1) { + this.customField1 = customField1; + return this; + } + + /** + * 自定义字段1 + * @return customField1 + */ + public String getCustomField1() { + return customField1; + } + + public void setCustomField1(String customField1) { + this.customField1 = customField1; + } + + public ShowTestCaseResponse withCustomField2(String customField2) { + this.customField2 = customField2; + return this; + } + + /** + * 自定义字段2 + * @return customField2 + */ + public String getCustomField2() { + return customField2; + } + + public void setCustomField2(String customField2) { + this.customField2 = customField2; + } + + public ShowTestCaseResponse withCustomField3(String customField3) { + this.customField3 = customField3; + return this; + } + + /** + * 自定义字段3 + * @return customField3 + */ + public String getCustomField3() { + return customField3; + } + + public void setCustomField3(String customField3) { + this.customField3 = customField3; + } + + public ShowTestCaseResponse withCustomField4(String customField4) { + this.customField4 = customField4; + return this; + } + + /** + * 自定义字段4 + * @return customField4 + */ + public String getCustomField4() { + return customField4; + } + + public void setCustomField4(String customField4) { + this.customField4 = customField4; + } + + public ShowTestCaseResponse withCustomField5(String customField5) { + this.customField5 = customField5; + return this; + } + + /** + * 自定义字段5 + * @return customField5 + */ + public String getCustomField5() { + return customField5; + } + + public void setCustomField5(String customField5) { + this.customField5 = customField5; + } + + public ShowTestCaseResponse withCustomField6(String customField6) { + this.customField6 = customField6; + return this; + } + + /** + * 自定义字段6 + * @return customField6 + */ + public String getCustomField6() { + return customField6; + } + + public void setCustomField6(String customField6) { + this.customField6 = customField6; + } + + public ShowTestCaseResponse withCustomField7(String customField7) { + this.customField7 = customField7; + return this; + } + + /** + * 自定义字段7 + * @return customField7 + */ + public String getCustomField7() { + return customField7; + } + + public void setCustomField7(String customField7) { + this.customField7 = customField7; + } + + public ShowTestCaseResponse withCustomField8(String customField8) { + this.customField8 = customField8; + return this; + } + + /** + * 自定义字段8 + * @return customField8 + */ + public String getCustomField8() { + return customField8; + } + + public void setCustomField8(String customField8) { + this.customField8 = customField8; + } + + public ShowTestCaseResponse withCustomField9(String customField9) { + this.customField9 = customField9; + return this; + } + + /** + * 自定义字段9 + * @return customField9 + */ + public String getCustomField9() { + return customField9; + } + + public void setCustomField9(String customField9) { + this.customField9 = customField9; + } + + public ShowTestCaseResponse withCustomField10(String customField10) { + this.customField10 = customField10; + return this; + } + + /** + * 自定义字段10 + * @return customField10 + */ + public String getCustomField10() { + return customField10; + } + + public void setCustomField10(String customField10) { + this.customField10 = customField10; + } + + public ShowTestCaseResponse withCustomField11(String customField11) { + this.customField11 = customField11; + return this; + } + + /** + * 自定义字段11 + * @return customField11 + */ + public String getCustomField11() { + return customField11; + } + + public void setCustomField11(String customField11) { + this.customField11 = customField11; + } + + public ShowTestCaseResponse withCustomField12(String customField12) { + this.customField12 = customField12; + return this; + } + + /** + * 自定义字段12 + * @return customField12 + */ + public String getCustomField12() { + return customField12; + } + + public void setCustomField12(String customField12) { + this.customField12 = customField12; + } + + public ShowTestCaseResponse withCustomField13(String customField13) { + this.customField13 = customField13; + return this; + } + + /** + * 自定义字段13 + * @return customField13 + */ + public String getCustomField13() { + return customField13; + } + + public void setCustomField13(String customField13) { + this.customField13 = customField13; + } + + public ShowTestCaseResponse withCustomField14(String customField14) { + this.customField14 = customField14; + return this; + } + + /** + * 自定义字段14 + * @return customField14 + */ + public String getCustomField14() { + return customField14; + } + + public void setCustomField14(String customField14) { + this.customField14 = customField14; + } + + public ShowTestCaseResponse withCustomField15(String customField15) { + this.customField15 = customField15; + return this; + } + + /** + * 自定义字段15 + * @return customField15 + */ + public String getCustomField15() { + return customField15; + } + + public void setCustomField15(String customField15) { + this.customField15 = customField15; + } + + public ShowTestCaseResponse withCustomField16(String customField16) { + this.customField16 = customField16; + return this; + } + + /** + * 自定义字段16 + * @return customField16 + */ + public String getCustomField16() { + return customField16; + } + + public void setCustomField16(String customField16) { + this.customField16 = customField16; + } + + public ShowTestCaseResponse withCustomField17(String customField17) { + this.customField17 = customField17; + return this; + } + + /** + * 自定义字段17 + * @return customField17 + */ + public String getCustomField17() { + return customField17; + } + + public void setCustomField17(String customField17) { + this.customField17 = customField17; + } + + public ShowTestCaseResponse withCustomField18(String customField18) { + this.customField18 = customField18; + return this; + } + + /** + * 自定义字段18 + * @return customField18 + */ + public String getCustomField18() { + return customField18; + } + + public void setCustomField18(String customField18) { + this.customField18 = customField18; + } + + public ShowTestCaseResponse withCustomField19(String customField19) { + this.customField19 = customField19; + return this; + } + + /** + * 自定义字段19 + * @return customField19 + */ + public String getCustomField19() { + return customField19; + } + + public void setCustomField19(String customField19) { + this.customField19 = customField19; + } + + public ShowTestCaseResponse withCustomField20(String customField20) { + this.customField20 = customField20; + return this; + } + + /** + * 自定义字段20 + * @return customField20 + */ + public String getCustomField20() { + return customField20; + } + + public void setCustomField20(String customField20) { + this.customField20 = customField20; + } + + public ShowTestCaseResponse withCustomField21(String customField21) { + this.customField21 = customField21; + return this; + } + + /** + * 自定义字段21 + * @return customField21 + */ + public String getCustomField21() { + return customField21; + } + + public void setCustomField21(String customField21) { + this.customField21 = customField21; + } + + public ShowTestCaseResponse withCustomField22(String customField22) { + this.customField22 = customField22; + return this; + } + + /** + * 自定义字段22 + * @return customField22 + */ + public String getCustomField22() { + return customField22; + } + + public void setCustomField22(String customField22) { + this.customField22 = customField22; + } + + public ShowTestCaseResponse withCustomField23(String customField23) { + this.customField23 = customField23; + return this; + } + + /** + * 自定义字段23 + * @return customField23 + */ + public String getCustomField23() { + return customField23; + } + + public void setCustomField23(String customField23) { + this.customField23 = customField23; + } + + public ShowTestCaseResponse withCustomField24(String customField24) { + this.customField24 = customField24; + return this; + } + + /** + * 自定义字段24 + * @return customField24 + */ + public String getCustomField24() { + return customField24; + } + + public void setCustomField24(String customField24) { + this.customField24 = customField24; + } + + public ShowTestCaseResponse withCustomField25(String customField25) { + this.customField25 = customField25; + return this; + } + + /** + * 自定义字段25 + * @return customField25 + */ + public String getCustomField25() { + return customField25; + } + + public void setCustomField25(String customField25) { + this.customField25 = customField25; + } + + public ShowTestCaseResponse withLastModifierName(String lastModifierName) { + this.lastModifierName = lastModifierName; + return this; + } + + /** + * 更新人名称 + * @return lastModifierName + */ + public String getLastModifierName() { + return lastModifierName; + } + + public void setLastModifierName(String lastModifierName) { + this.lastModifierName = lastModifierName; + } + + public ShowTestCaseResponse withVersionName(String versionName) { + this.versionName = versionName; + return this; + } + + /** + * 迭代 + * @return versionName + */ + public String getVersionName() { + return versionName; + } + + public void setVersionName(String versionName) { + this.versionName = versionName; + } + + public ShowTestCaseResponse withSteps(List steps) { + this.steps = steps; + return this; + } + + public ShowTestCaseResponse addStepsItem(TestCaseStepVo stepsItem) { + if (this.steps == null) { + this.steps = new ArrayList<>(); + } + this.steps.add(stepsItem); + return this; + } + + public ShowTestCaseResponse withSteps(Consumer> stepsSetter) { + if (this.steps == null) { + this.steps = new ArrayList<>(); + } + stepsSetter.accept(this.steps); + return this; + } + + /** + * 测试步骤 + * @return steps + */ + public List getSteps() { + return steps; + } + + public void setSteps(List steps) { + this.steps = steps; + } + + public ShowTestCaseResponse withAssociateDefect(Boolean associateDefect) { + this.associateDefect = associateDefect; + return this; + } + + /** + * 是否关联缺陷 + * @return associateDefect + */ + public Boolean getAssociateDefect() { + return associateDefect; + } + + public void setAssociateDefect(Boolean associateDefect) { + this.associateDefect = associateDefect; + } + + public ShowTestCaseResponse withAssociateIssue(Boolean associateIssue) { + this.associateIssue = associateIssue; + return this; + } + + /** + * 是否关联需求 + * @return associateIssue + */ + public Boolean getAssociateIssue() { + return associateIssue; + } + + public void setAssociateIssue(Boolean associateIssue) { + this.associateIssue = associateIssue; + } + + public ShowTestCaseResponse withDefectList(List defectList) { + this.defectList = defectList; + return this; + } + + public ShowTestCaseResponse addDefectListItem(NameAndIdVo defectListItem) { + if (this.defectList == null) { + this.defectList = new ArrayList<>(); + } + this.defectList.add(defectListItem); + return this; + } + + public ShowTestCaseResponse withDefectList(Consumer> defectListSetter) { + if (this.defectList == null) { + this.defectList = new ArrayList<>(); + } + defectListSetter.accept(this.defectList); + return this; + } + + /** + * 缺陷关联信息 + * @return defectList + */ + public List getDefectList() { + return defectList; + } + + public void setDefectList(List defectList) { + this.defectList = defectList; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowTestCaseResponse that = (ShowTestCaseResponse) obj; + return Objects.equals(this.uri, that.uri) && Objects.equals(this.type, that.type) + && Objects.equals(this.author, that.author) && Objects.equals(this.name, that.name) + && Objects.equals(this.rank, that.rank) && Objects.equals(this.preparation, that.preparation) + && Objects.equals(this.remark, that.remark) && Objects.equals(this.stage, that.stage) + && Objects.equals(this.activity, that.activity) && Objects.equals(this.keywords, that.keywords) + && Objects.equals(this.market, that.market) && Objects.equals(this.designer, that.designer) + && Objects.equals(this.tags, that.tags) && Objects.equals(this.executeParameter, that.executeParameter) + && Objects.equals(this.region, that.region) && Objects.equals(this.owner, that.owner) + && Objects.equals(this.issue, that.issue) && Objects.equals(this.lastModifier, that.lastModifier) + && Objects.equals(this.lastModified, that.lastModified) + && Objects.equals(this.lastModifiedTimestamp, that.lastModifiedTimestamp) + && Objects.equals(this.lastChangeTime, that.lastChangeTime) + && Objects.equals(this.versionUri, that.versionUri) && Objects.equals(this.originUri, that.originUri) + && Objects.equals(this.parentUri, that.parentUri) && Objects.equals(this.parentPath, that.parentPath) + && Objects.equals(this.creationVersionUri, that.creationVersionUri) + && Objects.equals(this.creationDate, that.creationDate) + && Objects.equals(this.creationDateTimestamp, that.creationDateTimestamp) + && Objects.equals(this.authorName, that.authorName) && Objects.equals(this.comment, that.comment) + && Objects.equals(this.number, that.number) && Objects.equals(this.caseType, that.caseType) + && Objects.equals(this.platformType, that.platformType) + && Objects.equals(this.serviceType, that.serviceType) + && Objects.equals(this.serviceTypeName, that.serviceTypeName) + && Objects.equals(this.testType, that.testType) && Objects.equals(this.testTypeName, that.testTypeName) + && Objects.equals(this.designNote, that.designNote) && Objects.equals(this.testStep, that.testStep) + && Objects.equals(this.expectOutput, that.expectOutput) && Objects.equals(this.envType, that.envType) + && Objects.equals(this.exePlatform, that.exePlatform) + && Objects.equals(this.testcaseProject, that.testcaseProject) + && Objects.equals(this.svnScriptPath, that.svnScriptPath) + && Objects.equals(this.mapRestrict, that.mapRestrict) + && Objects.equals(this.networkScriptName, that.networkScriptName) + && Objects.equals(this.autoType, that.autoType) && Objects.equals(this.toBeAutoExec, that.toBeAutoExec) + && Objects.equals(this.lastResult, that.lastResult) + && Objects.equals(this.lastResultUri, that.lastResultUri) + && Objects.equals(this.featureUri, that.featureUri) && Objects.equals(this.featureName, that.featureName) + && Objects.equals(this.interfaceName, that.interfaceName) && Objects.equals(this.snpNo, that.snpNo) + && Objects.equals(this.drRelationId, that.drRelationId) && Objects.equals(this.issueName, that.issueName) + && Objects.equals(this.testBaseNum, that.testBaseNum) + && Objects.equals(this.automaticallyExecuted, that.automaticallyExecuted) + && Objects.equals(this.firstExecuteTime, that.firstExecuteTime) + && Objects.equals(this.detectType, that.detectType) && Objects.equals(this.executeParam, that.executeParam) + && Objects.equals(this.testFeature, that.testFeature) + && Objects.equals(this.isContractTestcase, that.isContractTestcase) + && Objects.equals(this.timeCost, that.timeCost) && Objects.equals(this.beAutoTypeTime, that.beAutoTypeTime) + && Objects.equals(this.compareNumber, that.compareNumber) && Objects.equals(this.sceneFlag, that.sceneFlag) + && Objects.equals(this.baseFlag, that.baseFlag) && Objects.equals(this.paraValidator, that.paraValidator) + && Objects.equals(this.knetNodeId, that.knetNodeId) + && Objects.equals(this.lastExeAuthor, that.lastExeAuthor) + && Objects.equals(this.cloudCarrier, that.cloudCarrier) + && Objects.equals(this.marketPlace, that.marketPlace) && Objects.equals(this.testMindId, that.testMindId) + && Objects.equals(this.testMindUrl, that.testMindUrl) && Objects.equals(this.commitUrl, that.commitUrl) + && Objects.equals(this.testPatternNumber, that.testPatternNumber) + && Objects.equals(this.testFactorNumber, that.testFactorNumber) + && Objects.equals(this.statusCode, that.statusCode) && Objects.equals(this.resultCode, that.resultCode) + && Objects.equals(this.releaseId, that.releaseId) && Objects.equals(this.labelId, that.labelId) + && Objects.equals(this.labels, that.labels) && Objects.equals(this.moduleId, that.moduleId) + && Objects.equals(this.moduleName, that.moduleName) && Objects.equals(this.modulePath, that.modulePath) + && Objects.equals(this.modulePathName, that.modulePathName) + && Objects.equals(this.executeLatestTime, that.executeLatestTime) + && Objects.equals(this.executeDuration, that.executeDuration) + && Objects.equals(this.executeTimes, that.executeTimes) && Objects.equals(this.isKeyword, that.isKeyword) + && Objects.equals(this.releaseDev, that.releaseDev) && Objects.equals(this.newCreated, that.newCreated) + && Objects.equals(this.projectUuid, that.projectUuid) + && Objects.equals(this.creationVersionName, that.creationVersionName) + && Objects.equals(this.featurePath, that.featurePath) && Objects.equals(this.testcaseUri, that.testcaseUri) + && Objects.equals(this.ownerName, that.ownerName) + && Objects.equals(this.iteratorCaseUri, that.iteratorCaseUri) + && Objects.equals(this.scriptLink, that.scriptLink) && Objects.equals(this.customField1, that.customField1) + && Objects.equals(this.customField2, that.customField2) + && Objects.equals(this.customField3, that.customField3) + && Objects.equals(this.customField4, that.customField4) + && Objects.equals(this.customField5, that.customField5) + && Objects.equals(this.customField6, that.customField6) + && Objects.equals(this.customField7, that.customField7) + && Objects.equals(this.customField8, that.customField8) + && Objects.equals(this.customField9, that.customField9) + && Objects.equals(this.customField10, that.customField10) + && Objects.equals(this.customField11, that.customField11) + && Objects.equals(this.customField12, that.customField12) + && Objects.equals(this.customField13, that.customField13) + && Objects.equals(this.customField14, that.customField14) + && Objects.equals(this.customField15, that.customField15) + && Objects.equals(this.customField16, that.customField16) + && Objects.equals(this.customField17, that.customField17) + && Objects.equals(this.customField18, that.customField18) + && Objects.equals(this.customField19, that.customField19) + && Objects.equals(this.customField20, that.customField20) + && Objects.equals(this.customField21, that.customField21) + && Objects.equals(this.customField22, that.customField22) + && Objects.equals(this.customField23, that.customField23) + && Objects.equals(this.customField24, that.customField24) + && Objects.equals(this.customField25, that.customField25) + && Objects.equals(this.lastModifierName, that.lastModifierName) + && Objects.equals(this.versionName, that.versionName) && Objects.equals(this.steps, that.steps) + && Objects.equals(this.associateDefect, that.associateDefect) + && Objects.equals(this.associateIssue, that.associateIssue) + && Objects.equals(this.defectList, that.defectList); + } + + @Override + public int hashCode() { + return Objects.hash(uri, + type, + author, + name, + rank, + preparation, + remark, + stage, + activity, + keywords, + market, + designer, + tags, + executeParameter, + region, + owner, + issue, + lastModifier, + lastModified, + lastModifiedTimestamp, + lastChangeTime, + versionUri, + originUri, + parentUri, + parentPath, + creationVersionUri, + creationDate, + creationDateTimestamp, + authorName, + comment, + number, + caseType, + platformType, + serviceType, + serviceTypeName, + testType, + testTypeName, + designNote, + testStep, + expectOutput, + envType, + exePlatform, + testcaseProject, + svnScriptPath, + mapRestrict, + networkScriptName, + autoType, + toBeAutoExec, + lastResult, + lastResultUri, + featureUri, + featureName, + interfaceName, + snpNo, + drRelationId, + issueName, + testBaseNum, + automaticallyExecuted, + firstExecuteTime, + detectType, + executeParam, + testFeature, + isContractTestcase, + timeCost, + beAutoTypeTime, + compareNumber, + sceneFlag, + baseFlag, + paraValidator, + knetNodeId, + lastExeAuthor, + cloudCarrier, + marketPlace, + testMindId, + testMindUrl, + commitUrl, + testPatternNumber, + testFactorNumber, + statusCode, + resultCode, + releaseId, + labelId, + labels, + moduleId, + moduleName, + modulePath, + modulePathName, + executeLatestTime, + executeDuration, + executeTimes, + isKeyword, + releaseDev, + newCreated, + projectUuid, + creationVersionName, + featurePath, + testcaseUri, + ownerName, + iteratorCaseUri, + scriptLink, + customField1, + customField2, + customField3, + customField4, + customField5, + customField6, + customField7, + customField8, + customField9, + customField10, + customField11, + customField12, + customField13, + customField14, + customField15, + customField16, + customField17, + customField18, + customField19, + customField20, + customField21, + customField22, + customField23, + customField24, + customField25, + lastModifierName, + versionName, + steps, + associateDefect, + associateIssue, + defectList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowTestCaseResponse {\n"); + sb.append(" uri: ").append(toIndentedString(uri)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" author: ").append(toIndentedString(author)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" rank: ").append(toIndentedString(rank)).append("\n"); + sb.append(" preparation: ").append(toIndentedString(preparation)).append("\n"); + sb.append(" remark: ").append(toIndentedString(remark)).append("\n"); + sb.append(" stage: ").append(toIndentedString(stage)).append("\n"); + sb.append(" activity: ").append(toIndentedString(activity)).append("\n"); + sb.append(" keywords: ").append(toIndentedString(keywords)).append("\n"); + sb.append(" market: ").append(toIndentedString(market)).append("\n"); + sb.append(" designer: ").append(toIndentedString(designer)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" executeParameter: ").append(toIndentedString(executeParameter)).append("\n"); + sb.append(" region: ").append(toIndentedString(region)).append("\n"); + sb.append(" owner: ").append(toIndentedString(owner)).append("\n"); + sb.append(" issue: ").append(toIndentedString(issue)).append("\n"); + sb.append(" lastModifier: ").append(toIndentedString(lastModifier)).append("\n"); + sb.append(" lastModified: ").append(toIndentedString(lastModified)).append("\n"); + sb.append(" lastModifiedTimestamp: ").append(toIndentedString(lastModifiedTimestamp)).append("\n"); + sb.append(" lastChangeTime: ").append(toIndentedString(lastChangeTime)).append("\n"); + sb.append(" versionUri: ").append(toIndentedString(versionUri)).append("\n"); + sb.append(" originUri: ").append(toIndentedString(originUri)).append("\n"); + sb.append(" parentUri: ").append(toIndentedString(parentUri)).append("\n"); + sb.append(" parentPath: ").append(toIndentedString(parentPath)).append("\n"); + sb.append(" creationVersionUri: ").append(toIndentedString(creationVersionUri)).append("\n"); + sb.append(" creationDate: ").append(toIndentedString(creationDate)).append("\n"); + sb.append(" creationDateTimestamp: ").append(toIndentedString(creationDateTimestamp)).append("\n"); + sb.append(" authorName: ").append(toIndentedString(authorName)).append("\n"); + sb.append(" comment: ").append(toIndentedString(comment)).append("\n"); + sb.append(" number: ").append(toIndentedString(number)).append("\n"); + sb.append(" caseType: ").append(toIndentedString(caseType)).append("\n"); + sb.append(" platformType: ").append(toIndentedString(platformType)).append("\n"); + sb.append(" serviceType: ").append(toIndentedString(serviceType)).append("\n"); + sb.append(" serviceTypeName: ").append(toIndentedString(serviceTypeName)).append("\n"); + sb.append(" testType: ").append(toIndentedString(testType)).append("\n"); + sb.append(" testTypeName: ").append(toIndentedString(testTypeName)).append("\n"); + sb.append(" designNote: ").append(toIndentedString(designNote)).append("\n"); + sb.append(" testStep: ").append(toIndentedString(testStep)).append("\n"); + sb.append(" expectOutput: ").append(toIndentedString(expectOutput)).append("\n"); + sb.append(" envType: ").append(toIndentedString(envType)).append("\n"); + sb.append(" exePlatform: ").append(toIndentedString(exePlatform)).append("\n"); + sb.append(" testcaseProject: ").append(toIndentedString(testcaseProject)).append("\n"); + sb.append(" svnScriptPath: ").append(toIndentedString(svnScriptPath)).append("\n"); + sb.append(" mapRestrict: ").append(toIndentedString(mapRestrict)).append("\n"); + sb.append(" networkScriptName: ").append(toIndentedString(networkScriptName)).append("\n"); + sb.append(" autoType: ").append(toIndentedString(autoType)).append("\n"); + sb.append(" toBeAutoExec: ").append(toIndentedString(toBeAutoExec)).append("\n"); + sb.append(" lastResult: ").append(toIndentedString(lastResult)).append("\n"); + sb.append(" lastResultUri: ").append(toIndentedString(lastResultUri)).append("\n"); + sb.append(" featureUri: ").append(toIndentedString(featureUri)).append("\n"); + sb.append(" featureName: ").append(toIndentedString(featureName)).append("\n"); + sb.append(" interfaceName: ").append(toIndentedString(interfaceName)).append("\n"); + sb.append(" snpNo: ").append(toIndentedString(snpNo)).append("\n"); + sb.append(" drRelationId: ").append(toIndentedString(drRelationId)).append("\n"); + sb.append(" issueName: ").append(toIndentedString(issueName)).append("\n"); + sb.append(" testBaseNum: ").append(toIndentedString(testBaseNum)).append("\n"); + sb.append(" automaticallyExecuted: ").append(toIndentedString(automaticallyExecuted)).append("\n"); + sb.append(" firstExecuteTime: ").append(toIndentedString(firstExecuteTime)).append("\n"); + sb.append(" detectType: ").append(toIndentedString(detectType)).append("\n"); + sb.append(" executeParam: ").append(toIndentedString(executeParam)).append("\n"); + sb.append(" testFeature: ").append(toIndentedString(testFeature)).append("\n"); + sb.append(" isContractTestcase: ").append(toIndentedString(isContractTestcase)).append("\n"); + sb.append(" timeCost: ").append(toIndentedString(timeCost)).append("\n"); + sb.append(" beAutoTypeTime: ").append(toIndentedString(beAutoTypeTime)).append("\n"); + sb.append(" compareNumber: ").append(toIndentedString(compareNumber)).append("\n"); + sb.append(" sceneFlag: ").append(toIndentedString(sceneFlag)).append("\n"); + sb.append(" baseFlag: ").append(toIndentedString(baseFlag)).append("\n"); + sb.append(" paraValidator: ").append(toIndentedString(paraValidator)).append("\n"); + sb.append(" knetNodeId: ").append(toIndentedString(knetNodeId)).append("\n"); + sb.append(" lastExeAuthor: ").append(toIndentedString(lastExeAuthor)).append("\n"); + sb.append(" cloudCarrier: ").append(toIndentedString(cloudCarrier)).append("\n"); + sb.append(" marketPlace: ").append(toIndentedString(marketPlace)).append("\n"); + sb.append(" testMindId: ").append(toIndentedString(testMindId)).append("\n"); + sb.append(" testMindUrl: ").append(toIndentedString(testMindUrl)).append("\n"); + sb.append(" commitUrl: ").append(toIndentedString(commitUrl)).append("\n"); + sb.append(" testPatternNumber: ").append(toIndentedString(testPatternNumber)).append("\n"); + sb.append(" testFactorNumber: ").append(toIndentedString(testFactorNumber)).append("\n"); + sb.append(" statusCode: ").append(toIndentedString(statusCode)).append("\n"); + sb.append(" resultCode: ").append(toIndentedString(resultCode)).append("\n"); + sb.append(" releaseId: ").append(toIndentedString(releaseId)).append("\n"); + sb.append(" labelId: ").append(toIndentedString(labelId)).append("\n"); + sb.append(" labels: ").append(toIndentedString(labels)).append("\n"); + sb.append(" moduleId: ").append(toIndentedString(moduleId)).append("\n"); + sb.append(" moduleName: ").append(toIndentedString(moduleName)).append("\n"); + sb.append(" modulePath: ").append(toIndentedString(modulePath)).append("\n"); + sb.append(" modulePathName: ").append(toIndentedString(modulePathName)).append("\n"); + sb.append(" executeLatestTime: ").append(toIndentedString(executeLatestTime)).append("\n"); + sb.append(" executeDuration: ").append(toIndentedString(executeDuration)).append("\n"); + sb.append(" executeTimes: ").append(toIndentedString(executeTimes)).append("\n"); + sb.append(" isKeyword: ").append(toIndentedString(isKeyword)).append("\n"); + sb.append(" releaseDev: ").append(toIndentedString(releaseDev)).append("\n"); + sb.append(" newCreated: ").append(toIndentedString(newCreated)).append("\n"); + sb.append(" projectUuid: ").append(toIndentedString(projectUuid)).append("\n"); + sb.append(" creationVersionName: ").append(toIndentedString(creationVersionName)).append("\n"); + sb.append(" featurePath: ").append(toIndentedString(featurePath)).append("\n"); + sb.append(" testcaseUri: ").append(toIndentedString(testcaseUri)).append("\n"); + sb.append(" ownerName: ").append(toIndentedString(ownerName)).append("\n"); + sb.append(" iteratorCaseUri: ").append(toIndentedString(iteratorCaseUri)).append("\n"); + sb.append(" scriptLink: ").append(toIndentedString(scriptLink)).append("\n"); + sb.append(" customField1: ").append(toIndentedString(customField1)).append("\n"); + sb.append(" customField2: ").append(toIndentedString(customField2)).append("\n"); + sb.append(" customField3: ").append(toIndentedString(customField3)).append("\n"); + sb.append(" customField4: ").append(toIndentedString(customField4)).append("\n"); + sb.append(" customField5: ").append(toIndentedString(customField5)).append("\n"); + sb.append(" customField6: ").append(toIndentedString(customField6)).append("\n"); + sb.append(" customField7: ").append(toIndentedString(customField7)).append("\n"); + sb.append(" customField8: ").append(toIndentedString(customField8)).append("\n"); + sb.append(" customField9: ").append(toIndentedString(customField9)).append("\n"); + sb.append(" customField10: ").append(toIndentedString(customField10)).append("\n"); + sb.append(" customField11: ").append(toIndentedString(customField11)).append("\n"); + sb.append(" customField12: ").append(toIndentedString(customField12)).append("\n"); + sb.append(" customField13: ").append(toIndentedString(customField13)).append("\n"); + sb.append(" customField14: ").append(toIndentedString(customField14)).append("\n"); + sb.append(" customField15: ").append(toIndentedString(customField15)).append("\n"); + sb.append(" customField16: ").append(toIndentedString(customField16)).append("\n"); + sb.append(" customField17: ").append(toIndentedString(customField17)).append("\n"); + sb.append(" customField18: ").append(toIndentedString(customField18)).append("\n"); + sb.append(" customField19: ").append(toIndentedString(customField19)).append("\n"); + sb.append(" customField20: ").append(toIndentedString(customField20)).append("\n"); + sb.append(" customField21: ").append(toIndentedString(customField21)).append("\n"); + sb.append(" customField22: ").append(toIndentedString(customField22)).append("\n"); + sb.append(" customField23: ").append(toIndentedString(customField23)).append("\n"); + sb.append(" customField24: ").append(toIndentedString(customField24)).append("\n"); + sb.append(" customField25: ").append(toIndentedString(customField25)).append("\n"); + sb.append(" lastModifierName: ").append(toIndentedString(lastModifierName)).append("\n"); + sb.append(" versionName: ").append(toIndentedString(versionName)).append("\n"); + sb.append(" steps: ").append(toIndentedString(steps)).append("\n"); + sb.append(" associateDefect: ").append(toIndentedString(associateDefect)).append("\n"); + sb.append(" associateIssue: ").append(toIndentedString(associateIssue)).append("\n"); + sb.append(" defectList: ").append(toIndentedString(defectList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowUserAccessInfoRequest.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowUserAccessInfoRequest.java new file mode 100644 index 0000000000..bb30bccc37 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowUserAccessInfoRequest.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ShowUserAccessInfoRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_uuid") + + private String projectUuid; + + public ShowUserAccessInfoRequest withProjectUuid(String projectUuid) { + this.projectUuid = projectUuid; + return this; + } + + /** + * 项目ID + * @return projectUuid + */ + public String getProjectUuid() { + return projectUuid; + } + + public void setProjectUuid(String projectUuid) { + this.projectUuid = projectUuid; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowUserAccessInfoRequest that = (ShowUserAccessInfoRequest) obj; + return Objects.equals(this.projectUuid, that.projectUuid); + } + + @Override + public int hashCode() { + return Objects.hash(projectUuid); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowUserAccessInfoRequest {\n"); + sb.append(" projectUuid: ").append(toIndentedString(projectUuid)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowUserAccessInfoResponse.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowUserAccessInfoResponse.java new file mode 100644 index 0000000000..98985afd01 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/ShowUserAccessInfoResponse.java @@ -0,0 +1,106 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ShowUserAccessInfoResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private String status; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "result") + + private ResultValueStringForOk result; + + public ShowUserAccessInfoResponse withStatus(String status) { + this.status = status; + return this; + } + + /** + * 对外时:success|error; + * @return status + */ + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public ShowUserAccessInfoResponse withResult(ResultValueStringForOk result) { + this.result = result; + return this; + } + + public ShowUserAccessInfoResponse withResult(Consumer resultSetter) { + if (this.result == null) { + this.result = new ResultValueStringForOk(); + resultSetter.accept(this.result); + } + + return this; + } + + /** + * Get result + * @return result + */ + public ResultValueStringForOk getResult() { + return result; + } + + public void setResult(ResultValueStringForOk result) { + this.result = result; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowUserAccessInfoResponse that = (ShowUserAccessInfoResponse) obj; + return Objects.equals(this.status, that.status) && Objects.equals(this.result, that.result); + } + + @Override + public int hashCode() { + return Objects.hash(status, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowUserAccessInfoResponse {\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/SimpleIssueVo.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/SimpleIssueVo.java new file mode 100644 index 0000000000..22da3beb45 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/SimpleIssueVo.java @@ -0,0 +1,142 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 需求 + */ +public class SimpleIssueVo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "path") + + private String path; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tracker_name") + + private String trackerName; + + public SimpleIssueVo withId(String id) { + this.id = id; + return this; + } + + /** + * ID + * @return id + */ + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public SimpleIssueVo withName(String name) { + this.name = name; + return this; + } + + /** + * 名称 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public SimpleIssueVo withPath(String path) { + this.path = path; + return this; + } + + /** + * 层级路径 + * @return path + */ + public String getPath() { + return path; + } + + public void setPath(String path) { + this.path = path; + } + + public SimpleIssueVo withTrackerName(String trackerName) { + this.trackerName = trackerName; + return this; + } + + /** + * 类型 + * @return trackerName + */ + public String getTrackerName() { + return trackerName; + } + + public void setTrackerName(String trackerName) { + this.trackerName = trackerName; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + SimpleIssueVo that = (SimpleIssueVo) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.name, that.name) + && Objects.equals(this.path, that.path) && Objects.equals(this.trackerName, that.trackerName); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, path, trackerName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SimpleIssueVo {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" path: ").append(toIndentedString(path)).append("\n"); + sb.append(" trackerName: ").append(toIndentedString(trackerName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/SystemConfig.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/SystemConfig.java new file mode 100644 index 0000000000..6eae205b6f --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/SystemConfig.java @@ -0,0 +1,260 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * SystemConfig + */ +public class SystemConfig { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "key") + + private String key; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private String value; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "remark") + + private String remark; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "region_id") + + private String regionId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_id") + + private String projectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_time") + + private String updateTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_name") + + private String updateName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_num") + + private String updateNum; + + public SystemConfig withId(String id) { + this.id = id; + return this; + } + + /** + * 配置项主键 + * @return id + */ + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public SystemConfig withKey(String key) { + this.key = key; + return this; + } + + /** + * 系统配置名称 + * @return key + */ + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public SystemConfig withValue(String value) { + this.value = value; + return this; + } + + /** + * 系统配置状态 + * @return value + */ + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + public SystemConfig withRemark(String remark) { + this.remark = remark; + return this; + } + + /** + * 描述 + * @return remark + */ + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } + + public SystemConfig withRegionId(String regionId) { + this.regionId = regionId; + return this; + } + + /** + * region_id + * @return regionId + */ + public String getRegionId() { + return regionId; + } + + public void setRegionId(String regionId) { + this.regionId = regionId; + } + + public SystemConfig withProjectId(String projectId) { + this.projectId = projectId; + return this; + } + + /** + * 项目ID + * @return projectId + */ + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public SystemConfig withUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * 更新时间 + * @return updateTime + */ + public String getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(String updateTime) { + this.updateTime = updateTime; + } + + public SystemConfig withUpdateName(String updateName) { + this.updateName = updateName; + return this; + } + + /** + * 更新人名称 + * @return updateName + */ + public String getUpdateName() { + return updateName; + } + + public void setUpdateName(String updateName) { + this.updateName = updateName; + } + + public SystemConfig withUpdateNum(String updateNum) { + this.updateNum = updateNum; + return this; + } + + /** + * 更新人编号 + * @return updateNum + */ + public String getUpdateNum() { + return updateNum; + } + + public void setUpdateNum(String updateNum) { + this.updateNum = updateNum; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + SystemConfig that = (SystemConfig) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.key, that.key) + && Objects.equals(this.value, that.value) && Objects.equals(this.remark, that.remark) + && Objects.equals(this.regionId, that.regionId) && Objects.equals(this.projectId, that.projectId) + && Objects.equals(this.updateTime, that.updateTime) && Objects.equals(this.updateName, that.updateName) + && Objects.equals(this.updateNum, that.updateNum); + } + + @Override + public int hashCode() { + return Objects.hash(id, key, value, remark, regionId, projectId, updateTime, updateName, updateNum); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SystemConfig {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" remark: ").append(toIndentedString(remark)).append("\n"); + sb.append(" regionId: ").append(toIndentedString(regionId)).append("\n"); + sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); + sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); + sb.append(" updateName: ").append(toIndentedString(updateName)).append("\n"); + sb.append(" updateNum: ").append(toIndentedString(updateNum)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/TestCaseStepVo.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/TestCaseStepVo.java new file mode 100644 index 0000000000..13647cffa4 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/TestCaseStepVo.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 用例测试步骤和预期结果 + */ +public class TestCaseStepVo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "test_step") + + private String testStep; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "expect_result") + + private String expectResult; + + public TestCaseStepVo withTestStep(String testStep) { + this.testStep = testStep; + return this; + } + + /** + * 测试步骤 + * @return testStep + */ + public String getTestStep() { + return testStep; + } + + public void setTestStep(String testStep) { + this.testStep = testStep; + } + + public TestCaseStepVo withExpectResult(String expectResult) { + this.expectResult = expectResult; + return this; + } + + /** + * 预期结果 + * @return expectResult + */ + public String getExpectResult() { + return expectResult; + } + + public void setExpectResult(String expectResult) { + this.expectResult = expectResult; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + TestCaseStepVo that = (TestCaseStepVo) obj; + return Objects.equals(this.testStep, that.testStep) && Objects.equals(this.expectResult, that.expectResult); + } + + @Override + public int hashCode() { + return Objects.hash(testStep, expectResult); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TestCaseStepVo {\n"); + sb.append(" testStep: ").append(toIndentedString(testStep)).append("\n"); + sb.append(" expectResult: ").append(toIndentedString(expectResult)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/TestItemVo.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/TestItemVo.java new file mode 100644 index 0000000000..14848fe346 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/TestItemVo.java @@ -0,0 +1,837 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.time.OffsetDateTime; +import java.util.Objects; + +/** + * 实际的数据类型:单个对象,集合 或 NULL + */ +public class TestItemVo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "uri") + + private String uri; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "type") + + private String type; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "author") + + private String author; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "rank") + + private Integer rank; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "owner") + + private String owner; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "frequence") + + private String frequence; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "region") + + private String region; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "last_modifier") + + private String lastModifier; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "last_modified") + + private OffsetDateTime lastModified; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "last_modified_timestamp") + + private Long lastModifiedTimestamp; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "last_change_time") + + private OffsetDateTime lastChangeTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "version_uri") + + private String versionUri; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "origin_uri") + + private String originUri; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "parent_uri") + + private String parentUri; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "parent_path") + + private String parentPath; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "creation_version_uri") + + private String creationVersionUri; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "creation_date") + + private OffsetDateTime creationDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "creation_date_timestamp") + + private Long creationDateTimestamp; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "author_name") + + private String authorName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "comment") + + private String comment; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "number") + + private String number; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_feature") + + private String isFeature; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "relate_htsm") + + private String relateHtsm; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "aw_unique_id") + + private String awUniqueId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "test_mind_id") + + private String testMindId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "test_mind_url") + + private String testMindUrl; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_uuid") + + private String projectUuid; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "case_total") + + private Integer caseTotal; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "execd_total") + + private Integer execdTotal; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_direct_relation") + + private Boolean isDirectRelation; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "has_child") + + private Boolean hasChild; + + public TestItemVo withUri(String uri) { + this.uri = uri; + return this; + } + + /** + * 资源URI + * @return uri + */ + public String getUri() { + return uri; + } + + public void setUri(String uri) { + this.uri = uri; + } + + public TestItemVo withType(String type) { + this.type = type; + return this; + } + + /** + * 资源类型 + * @return type + */ + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public TestItemVo withAuthor(String author) { + this.author = author; + return this; + } + + /** + * 创建人 + * @return author + */ + public String getAuthor() { + return author; + } + + public void setAuthor(String author) { + this.author = author; + } + + public TestItemVo withName(String name) { + this.name = name; + return this; + } + + /** + * 名称 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public TestItemVo withRank(Integer rank) { + this.rank = rank; + return this; + } + + /** + * 级别 + * @return rank + */ + public Integer getRank() { + return rank; + } + + public void setRank(Integer rank) { + this.rank = rank; + } + + public TestItemVo withOwner(String owner) { + this.owner = owner; + return this; + } + + /** + * 责任人 + * @return owner + */ + public String getOwner() { + return owner; + } + + public void setOwner(String owner) { + this.owner = owner; + } + + public TestItemVo withFrequence(String frequence) { + this.frequence = frequence; + return this; + } + + /** + * frequence值 + * @return frequence + */ + public String getFrequence() { + return frequence; + } + + public void setFrequence(String frequence) { + this.frequence = frequence; + } + + public TestItemVo withRegion(String region) { + this.region = region; + return this; + } + + /** + * 区域 + * @return region + */ + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public TestItemVo withLastModifier(String lastModifier) { + this.lastModifier = lastModifier; + return this; + } + + /** + * 最后修改人 + * @return lastModifier + */ + public String getLastModifier() { + return lastModifier; + } + + public void setLastModifier(String lastModifier) { + this.lastModifier = lastModifier; + } + + public TestItemVo withLastModified(OffsetDateTime lastModified) { + this.lastModified = lastModified; + return this; + } + + /** + * 最后修改时间 + * @return lastModified + */ + public OffsetDateTime getLastModified() { + return lastModified; + } + + public void setLastModified(OffsetDateTime lastModified) { + this.lastModified = lastModified; + } + + public TestItemVo withLastModifiedTimestamp(Long lastModifiedTimestamp) { + this.lastModifiedTimestamp = lastModifiedTimestamp; + return this; + } + + /** + * 修改时间时间戳 + * @return lastModifiedTimestamp + */ + public Long getLastModifiedTimestamp() { + return lastModifiedTimestamp; + } + + public void setLastModifiedTimestamp(Long lastModifiedTimestamp) { + this.lastModifiedTimestamp = lastModifiedTimestamp; + } + + public TestItemVo withLastChangeTime(OffsetDateTime lastChangeTime) { + this.lastChangeTime = lastChangeTime; + return this; + } + + /** + * 最后变更时间 + * @return lastChangeTime + */ + public OffsetDateTime getLastChangeTime() { + return lastChangeTime; + } + + public void setLastChangeTime(OffsetDateTime lastChangeTime) { + this.lastChangeTime = lastChangeTime; + } + + public TestItemVo withVersionUri(String versionUri) { + this.versionUri = versionUri; + return this; + } + + /** + * 版本URI + * @return versionUri + */ + public String getVersionUri() { + return versionUri; + } + + public void setVersionUri(String versionUri) { + this.versionUri = versionUri; + } + + public TestItemVo withOriginUri(String originUri) { + this.originUri = originUri; + return this; + } + + /** + * 源资源URI + * @return originUri + */ + public String getOriginUri() { + return originUri; + } + + public void setOriginUri(String originUri) { + this.originUri = originUri; + } + + public TestItemVo withParentUri(String parentUri) { + this.parentUri = parentUri; + return this; + } + + /** + * 父资源URI + * @return parentUri + */ + public String getParentUri() { + return parentUri; + } + + public void setParentUri(String parentUri) { + this.parentUri = parentUri; + } + + public TestItemVo withParentPath(String parentPath) { + this.parentPath = parentPath; + return this; + } + + /** + * 父资源路径 + * @return parentPath + */ + public String getParentPath() { + return parentPath; + } + + public void setParentPath(String parentPath) { + this.parentPath = parentPath; + } + + public TestItemVo withCreationVersionUri(String creationVersionUri) { + this.creationVersionUri = creationVersionUri; + return this; + } + + /** + * 创建版本URI + * @return creationVersionUri + */ + public String getCreationVersionUri() { + return creationVersionUri; + } + + public void setCreationVersionUri(String creationVersionUri) { + this.creationVersionUri = creationVersionUri; + } + + public TestItemVo withCreationDate(OffsetDateTime creationDate) { + this.creationDate = creationDate; + return this; + } + + /** + * 创建时间 + * @return creationDate + */ + public OffsetDateTime getCreationDate() { + return creationDate; + } + + public void setCreationDate(OffsetDateTime creationDate) { + this.creationDate = creationDate; + } + + public TestItemVo withCreationDateTimestamp(Long creationDateTimestamp) { + this.creationDateTimestamp = creationDateTimestamp; + return this; + } + + /** + * 创建时间时间戳 + * @return creationDateTimestamp + */ + public Long getCreationDateTimestamp() { + return creationDateTimestamp; + } + + public void setCreationDateTimestamp(Long creationDateTimestamp) { + this.creationDateTimestamp = creationDateTimestamp; + } + + public TestItemVo withAuthorName(String authorName) { + this.authorName = authorName; + return this; + } + + /** + * 创建人名称 + * @return authorName + */ + public String getAuthorName() { + return authorName; + } + + public void setAuthorName(String authorName) { + this.authorName = authorName; + } + + public TestItemVo withComment(String comment) { + this.comment = comment; + return this; + } + + /** + * 备注 + * @return comment + */ + public String getComment() { + return comment; + } + + public void setComment(String comment) { + this.comment = comment; + } + + public TestItemVo withNumber(String number) { + this.number = number; + return this; + } + + /** + * 编号 + * @return number + */ + public String getNumber() { + return number; + } + + public void setNumber(String number) { + this.number = number; + } + + public TestItemVo withIsFeature(String isFeature) { + this.isFeature = isFeature; + return this; + } + + /** + * 是否特性 + * @return isFeature + */ + public String getIsFeature() { + return isFeature; + } + + public void setIsFeature(String isFeature) { + this.isFeature = isFeature; + } + + public TestItemVo withRelateHtsm(String relateHtsm) { + this.relateHtsm = relateHtsm; + return this; + } + + /** + * 是否关联特性 + * @return relateHtsm + */ + public String getRelateHtsm() { + return relateHtsm; + } + + public void setRelateHtsm(String relateHtsm) { + this.relateHtsm = relateHtsm; + } + + public TestItemVo withAwUniqueId(String awUniqueId) { + this.awUniqueId = awUniqueId; + return this; + } + + /** + * aw id + * @return awUniqueId + */ + public String getAwUniqueId() { + return awUniqueId; + } + + public void setAwUniqueId(String awUniqueId) { + this.awUniqueId = awUniqueId; + } + + public TestItemVo withTestMindId(String testMindId) { + this.testMindId = testMindId; + return this; + } + + /** + * 脑图id + * @return testMindId + */ + public String getTestMindId() { + return testMindId; + } + + public void setTestMindId(String testMindId) { + this.testMindId = testMindId; + } + + public TestItemVo withTestMindUrl(String testMindUrl) { + this.testMindUrl = testMindUrl; + return this; + } + + /** + * 脑图url + * @return testMindUrl + */ + public String getTestMindUrl() { + return testMindUrl; + } + + public void setTestMindUrl(String testMindUrl) { + this.testMindUrl = testMindUrl; + } + + public TestItemVo withProjectUuid(String projectUuid) { + this.projectUuid = projectUuid; + return this; + } + + /** + * 项目id + * @return projectUuid + */ + public String getProjectUuid() { + return projectUuid; + } + + public void setProjectUuid(String projectUuid) { + this.projectUuid = projectUuid; + } + + public TestItemVo withCaseTotal(Integer caseTotal) { + this.caseTotal = caseTotal; + return this; + } + + /** + * 用例总数 + * @return caseTotal + */ + public Integer getCaseTotal() { + return caseTotal; + } + + public void setCaseTotal(Integer caseTotal) { + this.caseTotal = caseTotal; + } + + public TestItemVo withExecdTotal(Integer execdTotal) { + this.execdTotal = execdTotal; + return this; + } + + /** + * 执行总数 + * @return execdTotal + */ + public Integer getExecdTotal() { + return execdTotal; + } + + public void setExecdTotal(Integer execdTotal) { + this.execdTotal = execdTotal; + } + + public TestItemVo withIsDirectRelation(Boolean isDirectRelation) { + this.isDirectRelation = isDirectRelation; + return this; + } + + /** + * is_direct_relation + * @return isDirectRelation + */ + public Boolean getIsDirectRelation() { + return isDirectRelation; + } + + public void setIsDirectRelation(Boolean isDirectRelation) { + this.isDirectRelation = isDirectRelation; + } + + public TestItemVo withHasChild(Boolean hasChild) { + this.hasChild = hasChild; + return this; + } + + /** + * 是否有子特性 + * @return hasChild + */ + public Boolean getHasChild() { + return hasChild; + } + + public void setHasChild(Boolean hasChild) { + this.hasChild = hasChild; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + TestItemVo that = (TestItemVo) obj; + return Objects.equals(this.uri, that.uri) && Objects.equals(this.type, that.type) + && Objects.equals(this.author, that.author) && Objects.equals(this.name, that.name) + && Objects.equals(this.rank, that.rank) && Objects.equals(this.owner, that.owner) + && Objects.equals(this.frequence, that.frequence) && Objects.equals(this.region, that.region) + && Objects.equals(this.lastModifier, that.lastModifier) + && Objects.equals(this.lastModified, that.lastModified) + && Objects.equals(this.lastModifiedTimestamp, that.lastModifiedTimestamp) + && Objects.equals(this.lastChangeTime, that.lastChangeTime) + && Objects.equals(this.versionUri, that.versionUri) && Objects.equals(this.originUri, that.originUri) + && Objects.equals(this.parentUri, that.parentUri) && Objects.equals(this.parentPath, that.parentPath) + && Objects.equals(this.creationVersionUri, that.creationVersionUri) + && Objects.equals(this.creationDate, that.creationDate) + && Objects.equals(this.creationDateTimestamp, that.creationDateTimestamp) + && Objects.equals(this.authorName, that.authorName) && Objects.equals(this.comment, that.comment) + && Objects.equals(this.number, that.number) && Objects.equals(this.isFeature, that.isFeature) + && Objects.equals(this.relateHtsm, that.relateHtsm) && Objects.equals(this.awUniqueId, that.awUniqueId) + && Objects.equals(this.testMindId, that.testMindId) && Objects.equals(this.testMindUrl, that.testMindUrl) + && Objects.equals(this.projectUuid, that.projectUuid) && Objects.equals(this.caseTotal, that.caseTotal) + && Objects.equals(this.execdTotal, that.execdTotal) + && Objects.equals(this.isDirectRelation, that.isDirectRelation) + && Objects.equals(this.hasChild, that.hasChild); + } + + @Override + public int hashCode() { + return Objects.hash(uri, + type, + author, + name, + rank, + owner, + frequence, + region, + lastModifier, + lastModified, + lastModifiedTimestamp, + lastChangeTime, + versionUri, + originUri, + parentUri, + parentPath, + creationVersionUri, + creationDate, + creationDateTimestamp, + authorName, + comment, + number, + isFeature, + relateHtsm, + awUniqueId, + testMindId, + testMindUrl, + projectUuid, + caseTotal, + execdTotal, + isDirectRelation, + hasChild); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TestItemVo {\n"); + sb.append(" uri: ").append(toIndentedString(uri)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" author: ").append(toIndentedString(author)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" rank: ").append(toIndentedString(rank)).append("\n"); + sb.append(" owner: ").append(toIndentedString(owner)).append("\n"); + sb.append(" frequence: ").append(toIndentedString(frequence)).append("\n"); + sb.append(" region: ").append(toIndentedString(region)).append("\n"); + sb.append(" lastModifier: ").append(toIndentedString(lastModifier)).append("\n"); + sb.append(" lastModified: ").append(toIndentedString(lastModified)).append("\n"); + sb.append(" lastModifiedTimestamp: ").append(toIndentedString(lastModifiedTimestamp)).append("\n"); + sb.append(" lastChangeTime: ").append(toIndentedString(lastChangeTime)).append("\n"); + sb.append(" versionUri: ").append(toIndentedString(versionUri)).append("\n"); + sb.append(" originUri: ").append(toIndentedString(originUri)).append("\n"); + sb.append(" parentUri: ").append(toIndentedString(parentUri)).append("\n"); + sb.append(" parentPath: ").append(toIndentedString(parentPath)).append("\n"); + sb.append(" creationVersionUri: ").append(toIndentedString(creationVersionUri)).append("\n"); + sb.append(" creationDate: ").append(toIndentedString(creationDate)).append("\n"); + sb.append(" creationDateTimestamp: ").append(toIndentedString(creationDateTimestamp)).append("\n"); + sb.append(" authorName: ").append(toIndentedString(authorName)).append("\n"); + sb.append(" comment: ").append(toIndentedString(comment)).append("\n"); + sb.append(" number: ").append(toIndentedString(number)).append("\n"); + sb.append(" isFeature: ").append(toIndentedString(isFeature)).append("\n"); + sb.append(" relateHtsm: ").append(toIndentedString(relateHtsm)).append("\n"); + sb.append(" awUniqueId: ").append(toIndentedString(awUniqueId)).append("\n"); + sb.append(" testMindId: ").append(toIndentedString(testMindId)).append("\n"); + sb.append(" testMindUrl: ").append(toIndentedString(testMindUrl)).append("\n"); + sb.append(" projectUuid: ").append(toIndentedString(projectUuid)).append("\n"); + sb.append(" caseTotal: ").append(toIndentedString(caseTotal)).append("\n"); + sb.append(" execdTotal: ").append(toIndentedString(execdTotal)).append("\n"); + sb.append(" isDirectRelation: ").append(toIndentedString(isDirectRelation)).append("\n"); + sb.append(" hasChild: ").append(toIndentedString(hasChild)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/TestReportVo.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/TestReportVo.java new file mode 100644 index 0000000000..11fcfbdd37 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/TestReportVo.java @@ -0,0 +1,1099 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * TestReportVo + */ +public class TestReportVo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "uri") + + private String uri; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "creator") + + private String creator; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "updator") + + private String updator; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "version_uri") + + private String versionUri; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "branch_uri") + + private String branchUri; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "version_name") + + private String versionName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "branch_name") + + private String branchName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "test_conclusion") + + private String testConclusion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "test_conclusion_details") + + private String testConclusionDetails; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "defect_resolution_rate") + + private String defectResolutionRate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "defect_resolution_score") + + private String defectResolutionScore; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "case_execution_rate") + + private String caseExecutionRate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "case_execution_score") + + private String caseExecutionScore; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "case_pass_rate") + + private String casePassRate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "case_pass_score") + + private String casePassScore; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "issue_pass_rate") + + private String issuePassRate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "issue_pass_score") + + private String issuePassScore; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "issue_coverage_rate") + + private String issueCoverageRate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "issue_coverage_score") + + private String issueCoverageScore; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_residual_defect_index") + + private String projectResidualDefectIndex; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "iterator_residual_defect_index") + + private String iteratorResidualDefectIndex; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "case_automation_details") + + private CaseAutomationDetailsVo caseAutomationDetails; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "case_validity_ratio") + + private String caseValidityRatio; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "issue_details") + + private IssuePassDetailsVo issueDetails; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "case_details") + + private List caseDetails = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "defect_details_by_severity") + + private List defectDetailsBySeverity = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "defect_details_by_module") + + private List defectDetailsByModule = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "case_pass_rate_by_test_type") + + private List casePassRateByTestType = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "test_report_custom_report_detail") + + private List testReportCustomReportDetail = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time") + + private OffsetDateTime createTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_timestamp") + + private Long createTimestamp; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "creator_name") + + private String creatorName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_time") + + private OffsetDateTime updateTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_timestamp") + + private Long updateTimestamp; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "updator_name") + + private String updatorName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_uuid") + + private String projectUuid; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "risk_analysis") + + private String riskAnalysis; + + public TestReportVo withUri(String uri) { + this.uri = uri; + return this; + } + + /** + * 测试报告Uri + * @return uri + */ + public String getUri() { + return uri; + } + + public void setUri(String uri) { + this.uri = uri; + } + + public TestReportVo withName(String name) { + this.name = name; + return this; + } + + /** + * 测试报告名称 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public TestReportVo withCreator(String creator) { + this.creator = creator; + return this; + } + + /** + * 创建人ID + * @return creator + */ + public String getCreator() { + return creator; + } + + public void setCreator(String creator) { + this.creator = creator; + } + + public TestReportVo withUpdator(String updator) { + this.updator = updator; + return this; + } + + /** + * 修改人ID + * @return updator + */ + public String getUpdator() { + return updator; + } + + public void setUpdator(String updator) { + this.updator = updator; + } + + public TestReportVo withVersionUri(String versionUri) { + this.versionUri = versionUri; + return this; + } + + /** + * 测试计划Uri + * @return versionUri + */ + public String getVersionUri() { + return versionUri; + } + + public void setVersionUri(String versionUri) { + this.versionUri = versionUri; + } + + public TestReportVo withBranchUri(String branchUri) { + this.branchUri = branchUri; + return this; + } + + /** + * 分支Uri + * @return branchUri + */ + public String getBranchUri() { + return branchUri; + } + + public void setBranchUri(String branchUri) { + this.branchUri = branchUri; + } + + public TestReportVo withVersionName(String versionName) { + this.versionName = versionName; + return this; + } + + /** + * 测试计划名称 + * @return versionName + */ + public String getVersionName() { + return versionName; + } + + public void setVersionName(String versionName) { + this.versionName = versionName; + } + + public TestReportVo withBranchName(String branchName) { + this.branchName = branchName; + return this; + } + + /** + * 分支名称 + * @return branchName + */ + public String getBranchName() { + return branchName; + } + + public void setBranchName(String branchName) { + this.branchName = branchName; + } + + public TestReportVo withTestConclusion(String testConclusion) { + this.testConclusion = testConclusion; + return this; + } + + /** + * 测试结论 + * @return testConclusion + */ + public String getTestConclusion() { + return testConclusion; + } + + public void setTestConclusion(String testConclusion) { + this.testConclusion = testConclusion; + } + + public TestReportVo withTestConclusionDetails(String testConclusionDetails) { + this.testConclusionDetails = testConclusionDetails; + return this; + } + + /** + * 测试结论描述 + * @return testConclusionDetails + */ + public String getTestConclusionDetails() { + return testConclusionDetails; + } + + public void setTestConclusionDetails(String testConclusionDetails) { + this.testConclusionDetails = testConclusionDetails; + } + + public TestReportVo withDefectResolutionRate(String defectResolutionRate) { + this.defectResolutionRate = defectResolutionRate; + return this; + } + + /** + * 缺陷解决率 + * @return defectResolutionRate + */ + public String getDefectResolutionRate() { + return defectResolutionRate; + } + + public void setDefectResolutionRate(String defectResolutionRate) { + this.defectResolutionRate = defectResolutionRate; + } + + public TestReportVo withDefectResolutionScore(String defectResolutionScore) { + this.defectResolutionScore = defectResolutionScore; + return this; + } + + /** + * 缺陷解决分数 + * @return defectResolutionScore + */ + public String getDefectResolutionScore() { + return defectResolutionScore; + } + + public void setDefectResolutionScore(String defectResolutionScore) { + this.defectResolutionScore = defectResolutionScore; + } + + public TestReportVo withCaseExecutionRate(String caseExecutionRate) { + this.caseExecutionRate = caseExecutionRate; + return this; + } + + /** + * 用例执行率 + * @return caseExecutionRate + */ + public String getCaseExecutionRate() { + return caseExecutionRate; + } + + public void setCaseExecutionRate(String caseExecutionRate) { + this.caseExecutionRate = caseExecutionRate; + } + + public TestReportVo withCaseExecutionScore(String caseExecutionScore) { + this.caseExecutionScore = caseExecutionScore; + return this; + } + + /** + * 用例执行分数 + * @return caseExecutionScore + */ + public String getCaseExecutionScore() { + return caseExecutionScore; + } + + public void setCaseExecutionScore(String caseExecutionScore) { + this.caseExecutionScore = caseExecutionScore; + } + + public TestReportVo withCasePassRate(String casePassRate) { + this.casePassRate = casePassRate; + return this; + } + + /** + * 用例通过率 + * @return casePassRate + */ + public String getCasePassRate() { + return casePassRate; + } + + public void setCasePassRate(String casePassRate) { + this.casePassRate = casePassRate; + } + + public TestReportVo withCasePassScore(String casePassScore) { + this.casePassScore = casePassScore; + return this; + } + + /** + * 用例通过分数 + * @return casePassScore + */ + public String getCasePassScore() { + return casePassScore; + } + + public void setCasePassScore(String casePassScore) { + this.casePassScore = casePassScore; + } + + public TestReportVo withIssuePassRate(String issuePassRate) { + this.issuePassRate = issuePassRate; + return this; + } + + /** + * 需求通过率 + * @return issuePassRate + */ + public String getIssuePassRate() { + return issuePassRate; + } + + public void setIssuePassRate(String issuePassRate) { + this.issuePassRate = issuePassRate; + } + + public TestReportVo withIssuePassScore(String issuePassScore) { + this.issuePassScore = issuePassScore; + return this; + } + + /** + * 需求通过分数 + * @return issuePassScore + */ + public String getIssuePassScore() { + return issuePassScore; + } + + public void setIssuePassScore(String issuePassScore) { + this.issuePassScore = issuePassScore; + } + + public TestReportVo withIssueCoverageRate(String issueCoverageRate) { + this.issueCoverageRate = issueCoverageRate; + return this; + } + + /** + * 需求覆盖率 + * @return issueCoverageRate + */ + public String getIssueCoverageRate() { + return issueCoverageRate; + } + + public void setIssueCoverageRate(String issueCoverageRate) { + this.issueCoverageRate = issueCoverageRate; + } + + public TestReportVo withIssueCoverageScore(String issueCoverageScore) { + this.issueCoverageScore = issueCoverageScore; + return this; + } + + /** + * 需求覆盖分数 + * @return issueCoverageScore + */ + public String getIssueCoverageScore() { + return issueCoverageScore; + } + + public void setIssueCoverageScore(String issueCoverageScore) { + this.issueCoverageScore = issueCoverageScore; + } + + public TestReportVo withProjectResidualDefectIndex(String projectResidualDefectIndex) { + this.projectResidualDefectIndex = projectResidualDefectIndex; + return this; + } + + /** + * 项目总遗留DI + * @return projectResidualDefectIndex + */ + public String getProjectResidualDefectIndex() { + return projectResidualDefectIndex; + } + + public void setProjectResidualDefectIndex(String projectResidualDefectIndex) { + this.projectResidualDefectIndex = projectResidualDefectIndex; + } + + public TestReportVo withIteratorResidualDefectIndex(String iteratorResidualDefectIndex) { + this.iteratorResidualDefectIndex = iteratorResidualDefectIndex; + return this; + } + + /** + * 计划新增DI + * @return iteratorResidualDefectIndex + */ + public String getIteratorResidualDefectIndex() { + return iteratorResidualDefectIndex; + } + + public void setIteratorResidualDefectIndex(String iteratorResidualDefectIndex) { + this.iteratorResidualDefectIndex = iteratorResidualDefectIndex; + } + + public TestReportVo withCaseAutomationDetails(CaseAutomationDetailsVo caseAutomationDetails) { + this.caseAutomationDetails = caseAutomationDetails; + return this; + } + + public TestReportVo withCaseAutomationDetails(Consumer caseAutomationDetailsSetter) { + if (this.caseAutomationDetails == null) { + this.caseAutomationDetails = new CaseAutomationDetailsVo(); + caseAutomationDetailsSetter.accept(this.caseAutomationDetails); + } + + return this; + } + + /** + * Get caseAutomationDetails + * @return caseAutomationDetails + */ + public CaseAutomationDetailsVo getCaseAutomationDetails() { + return caseAutomationDetails; + } + + public void setCaseAutomationDetails(CaseAutomationDetailsVo caseAutomationDetails) { + this.caseAutomationDetails = caseAutomationDetails; + } + + public TestReportVo withCaseValidityRatio(String caseValidityRatio) { + this.caseValidityRatio = caseValidityRatio; + return this; + } + + /** + * 用例有效性比例 + * @return caseValidityRatio + */ + public String getCaseValidityRatio() { + return caseValidityRatio; + } + + public void setCaseValidityRatio(String caseValidityRatio) { + this.caseValidityRatio = caseValidityRatio; + } + + public TestReportVo withIssueDetails(IssuePassDetailsVo issueDetails) { + this.issueDetails = issueDetails; + return this; + } + + public TestReportVo withIssueDetails(Consumer issueDetailsSetter) { + if (this.issueDetails == null) { + this.issueDetails = new IssuePassDetailsVo(); + issueDetailsSetter.accept(this.issueDetails); + } + + return this; + } + + /** + * Get issueDetails + * @return issueDetails + */ + public IssuePassDetailsVo getIssueDetails() { + return issueDetails; + } + + public void setIssueDetails(IssuePassDetailsVo issueDetails) { + this.issueDetails = issueDetails; + } + + public TestReportVo withCaseDetails(List caseDetails) { + this.caseDetails = caseDetails; + return this; + } + + public TestReportVo addCaseDetailsItem(NameAndValueVo caseDetailsItem) { + if (this.caseDetails == null) { + this.caseDetails = new ArrayList<>(); + } + this.caseDetails.add(caseDetailsItem); + return this; + } + + public TestReportVo withCaseDetails(Consumer> caseDetailsSetter) { + if (this.caseDetails == null) { + this.caseDetails = new ArrayList<>(); + } + caseDetailsSetter.accept(this.caseDetails); + return this; + } + + /** + * 用例通过情况 + * @return caseDetails + */ + public List getCaseDetails() { + return caseDetails; + } + + public void setCaseDetails(List caseDetails) { + this.caseDetails = caseDetails; + } + + public TestReportVo withDefectDetailsBySeverity(List defectDetailsBySeverity) { + this.defectDetailsBySeverity = defectDetailsBySeverity; + return this; + } + + public TestReportVo addDefectDetailsBySeverityItem(IdAndNameAndValueVo defectDetailsBySeverityItem) { + if (this.defectDetailsBySeverity == null) { + this.defectDetailsBySeverity = new ArrayList<>(); + } + this.defectDetailsBySeverity.add(defectDetailsBySeverityItem); + return this; + } + + public TestReportVo withDefectDetailsBySeverity(Consumer> defectDetailsBySeveritySetter) { + if (this.defectDetailsBySeverity == null) { + this.defectDetailsBySeverity = new ArrayList<>(); + } + defectDetailsBySeveritySetter.accept(this.defectDetailsBySeverity); + return this; + } + + /** + * 缺陷严重程度 + * @return defectDetailsBySeverity + */ + public List getDefectDetailsBySeverity() { + return defectDetailsBySeverity; + } + + public void setDefectDetailsBySeverity(List defectDetailsBySeverity) { + this.defectDetailsBySeverity = defectDetailsBySeverity; + } + + public TestReportVo withDefectDetailsByModule(List defectDetailsByModule) { + this.defectDetailsByModule = defectDetailsByModule; + return this; + } + + public TestReportVo addDefectDetailsByModuleItem(IdAndNameAndValueVo defectDetailsByModuleItem) { + if (this.defectDetailsByModule == null) { + this.defectDetailsByModule = new ArrayList<>(); + } + this.defectDetailsByModule.add(defectDetailsByModuleItem); + return this; + } + + public TestReportVo withDefectDetailsByModule(Consumer> defectDetailsByModuleSetter) { + if (this.defectDetailsByModule == null) { + this.defectDetailsByModule = new ArrayList<>(); + } + defectDetailsByModuleSetter.accept(this.defectDetailsByModule); + return this; + } + + /** + * 缺陷按照模块分布情况 + * @return defectDetailsByModule + */ + public List getDefectDetailsByModule() { + return defectDetailsByModule; + } + + public void setDefectDetailsByModule(List defectDetailsByModule) { + this.defectDetailsByModule = defectDetailsByModule; + } + + public TestReportVo withCasePassRateByTestType(List casePassRateByTestType) { + this.casePassRateByTestType = casePassRateByTestType; + return this; + } + + public TestReportVo addCasePassRateByTestTypeItem(DetailTestTypeCasePassRateVo casePassRateByTestTypeItem) { + if (this.casePassRateByTestType == null) { + this.casePassRateByTestType = new ArrayList<>(); + } + this.casePassRateByTestType.add(casePassRateByTestTypeItem); + return this; + } + + public TestReportVo withCasePassRateByTestType( + Consumer> casePassRateByTestTypeSetter) { + if (this.casePassRateByTestType == null) { + this.casePassRateByTestType = new ArrayList<>(); + } + casePassRateByTestTypeSetter.accept(this.casePassRateByTestType); + return this; + } + + /** + * 每个测试类型的用例通过率 + * @return casePassRateByTestType + */ + public List getCasePassRateByTestType() { + return casePassRateByTestType; + } + + public void setCasePassRateByTestType(List casePassRateByTestType) { + this.casePassRateByTestType = casePassRateByTestType; + } + + public TestReportVo withTestReportCustomReportDetail(List testReportCustomReportDetail) { + this.testReportCustomReportDetail = testReportCustomReportDetail; + return this; + } + + public TestReportVo addTestReportCustomReportDetailItem(CustomReportListVo testReportCustomReportDetailItem) { + if (this.testReportCustomReportDetail == null) { + this.testReportCustomReportDetail = new ArrayList<>(); + } + this.testReportCustomReportDetail.add(testReportCustomReportDetailItem); + return this; + } + + public TestReportVo withTestReportCustomReportDetail( + Consumer> testReportCustomReportDetailSetter) { + if (this.testReportCustomReportDetail == null) { + this.testReportCustomReportDetail = new ArrayList<>(); + } + testReportCustomReportDetailSetter.accept(this.testReportCustomReportDetail); + return this; + } + + /** + * 测试报告自定义报告详情 + * @return testReportCustomReportDetail + */ + public List getTestReportCustomReportDetail() { + return testReportCustomReportDetail; + } + + public void setTestReportCustomReportDetail(List testReportCustomReportDetail) { + this.testReportCustomReportDetail = testReportCustomReportDetail; + } + + public TestReportVo withCreateTime(OffsetDateTime createTime) { + this.createTime = createTime; + return this; + } + + /** + * 创建时间 + * @return createTime + */ + public OffsetDateTime getCreateTime() { + return createTime; + } + + public void setCreateTime(OffsetDateTime createTime) { + this.createTime = createTime; + } + + public TestReportVo withCreateTimestamp(Long createTimestamp) { + this.createTimestamp = createTimestamp; + return this; + } + + /** + * 创建时间戳 + * @return createTimestamp + */ + public Long getCreateTimestamp() { + return createTimestamp; + } + + public void setCreateTimestamp(Long createTimestamp) { + this.createTimestamp = createTimestamp; + } + + public TestReportVo withCreatorName(String creatorName) { + this.creatorName = creatorName; + return this; + } + + /** + * 创建人名 + * @return creatorName + */ + public String getCreatorName() { + return creatorName; + } + + public void setCreatorName(String creatorName) { + this.creatorName = creatorName; + } + + public TestReportVo withUpdateTime(OffsetDateTime updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * 修改时间 + * @return updateTime + */ + public OffsetDateTime getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(OffsetDateTime updateTime) { + this.updateTime = updateTime; + } + + public TestReportVo withUpdateTimestamp(Long updateTimestamp) { + this.updateTimestamp = updateTimestamp; + return this; + } + + /** + * 修改时间戳 + * @return updateTimestamp + */ + public Long getUpdateTimestamp() { + return updateTimestamp; + } + + public void setUpdateTimestamp(Long updateTimestamp) { + this.updateTimestamp = updateTimestamp; + } + + public TestReportVo withUpdatorName(String updatorName) { + this.updatorName = updatorName; + return this; + } + + /** + * 修改人名 + * @return updatorName + */ + public String getUpdatorName() { + return updatorName; + } + + public void setUpdatorName(String updatorName) { + this.updatorName = updatorName; + } + + public TestReportVo withProjectUuid(String projectUuid) { + this.projectUuid = projectUuid; + return this; + } + + /** + * 项目ID + * @return projectUuid + */ + public String getProjectUuid() { + return projectUuid; + } + + public void setProjectUuid(String projectUuid) { + this.projectUuid = projectUuid; + } + + public TestReportVo withRiskAnalysis(String riskAnalysis) { + this.riskAnalysis = riskAnalysis; + return this; + } + + /** + * 风险分析 + * @return riskAnalysis + */ + public String getRiskAnalysis() { + return riskAnalysis; + } + + public void setRiskAnalysis(String riskAnalysis) { + this.riskAnalysis = riskAnalysis; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + TestReportVo that = (TestReportVo) obj; + return Objects.equals(this.uri, that.uri) && Objects.equals(this.name, that.name) + && Objects.equals(this.creator, that.creator) && Objects.equals(this.updator, that.updator) + && Objects.equals(this.versionUri, that.versionUri) && Objects.equals(this.branchUri, that.branchUri) + && Objects.equals(this.versionName, that.versionName) && Objects.equals(this.branchName, that.branchName) + && Objects.equals(this.testConclusion, that.testConclusion) + && Objects.equals(this.testConclusionDetails, that.testConclusionDetails) + && Objects.equals(this.defectResolutionRate, that.defectResolutionRate) + && Objects.equals(this.defectResolutionScore, that.defectResolutionScore) + && Objects.equals(this.caseExecutionRate, that.caseExecutionRate) + && Objects.equals(this.caseExecutionScore, that.caseExecutionScore) + && Objects.equals(this.casePassRate, that.casePassRate) + && Objects.equals(this.casePassScore, that.casePassScore) + && Objects.equals(this.issuePassRate, that.issuePassRate) + && Objects.equals(this.issuePassScore, that.issuePassScore) + && Objects.equals(this.issueCoverageRate, that.issueCoverageRate) + && Objects.equals(this.issueCoverageScore, that.issueCoverageScore) + && Objects.equals(this.projectResidualDefectIndex, that.projectResidualDefectIndex) + && Objects.equals(this.iteratorResidualDefectIndex, that.iteratorResidualDefectIndex) + && Objects.equals(this.caseAutomationDetails, that.caseAutomationDetails) + && Objects.equals(this.caseValidityRatio, that.caseValidityRatio) + && Objects.equals(this.issueDetails, that.issueDetails) + && Objects.equals(this.caseDetails, that.caseDetails) + && Objects.equals(this.defectDetailsBySeverity, that.defectDetailsBySeverity) + && Objects.equals(this.defectDetailsByModule, that.defectDetailsByModule) + && Objects.equals(this.casePassRateByTestType, that.casePassRateByTestType) + && Objects.equals(this.testReportCustomReportDetail, that.testReportCustomReportDetail) + && Objects.equals(this.createTime, that.createTime) + && Objects.equals(this.createTimestamp, that.createTimestamp) + && Objects.equals(this.creatorName, that.creatorName) && Objects.equals(this.updateTime, that.updateTime) + && Objects.equals(this.updateTimestamp, that.updateTimestamp) + && Objects.equals(this.updatorName, that.updatorName) && Objects.equals(this.projectUuid, that.projectUuid) + && Objects.equals(this.riskAnalysis, that.riskAnalysis); + } + + @Override + public int hashCode() { + return Objects.hash(uri, + name, + creator, + updator, + versionUri, + branchUri, + versionName, + branchName, + testConclusion, + testConclusionDetails, + defectResolutionRate, + defectResolutionScore, + caseExecutionRate, + caseExecutionScore, + casePassRate, + casePassScore, + issuePassRate, + issuePassScore, + issueCoverageRate, + issueCoverageScore, + projectResidualDefectIndex, + iteratorResidualDefectIndex, + caseAutomationDetails, + caseValidityRatio, + issueDetails, + caseDetails, + defectDetailsBySeverity, + defectDetailsByModule, + casePassRateByTestType, + testReportCustomReportDetail, + createTime, + createTimestamp, + creatorName, + updateTime, + updateTimestamp, + updatorName, + projectUuid, + riskAnalysis); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TestReportVo {\n"); + sb.append(" uri: ").append(toIndentedString(uri)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" creator: ").append(toIndentedString(creator)).append("\n"); + sb.append(" updator: ").append(toIndentedString(updator)).append("\n"); + sb.append(" versionUri: ").append(toIndentedString(versionUri)).append("\n"); + sb.append(" branchUri: ").append(toIndentedString(branchUri)).append("\n"); + sb.append(" versionName: ").append(toIndentedString(versionName)).append("\n"); + sb.append(" branchName: ").append(toIndentedString(branchName)).append("\n"); + sb.append(" testConclusion: ").append(toIndentedString(testConclusion)).append("\n"); + sb.append(" testConclusionDetails: ").append(toIndentedString(testConclusionDetails)).append("\n"); + sb.append(" defectResolutionRate: ").append(toIndentedString(defectResolutionRate)).append("\n"); + sb.append(" defectResolutionScore: ").append(toIndentedString(defectResolutionScore)).append("\n"); + sb.append(" caseExecutionRate: ").append(toIndentedString(caseExecutionRate)).append("\n"); + sb.append(" caseExecutionScore: ").append(toIndentedString(caseExecutionScore)).append("\n"); + sb.append(" casePassRate: ").append(toIndentedString(casePassRate)).append("\n"); + sb.append(" casePassScore: ").append(toIndentedString(casePassScore)).append("\n"); + sb.append(" issuePassRate: ").append(toIndentedString(issuePassRate)).append("\n"); + sb.append(" issuePassScore: ").append(toIndentedString(issuePassScore)).append("\n"); + sb.append(" issueCoverageRate: ").append(toIndentedString(issueCoverageRate)).append("\n"); + sb.append(" issueCoverageScore: ").append(toIndentedString(issueCoverageScore)).append("\n"); + sb.append(" projectResidualDefectIndex: ").append(toIndentedString(projectResidualDefectIndex)).append("\n"); + sb.append(" iteratorResidualDefectIndex: ") + .append(toIndentedString(iteratorResidualDefectIndex)) + .append("\n"); + sb.append(" caseAutomationDetails: ").append(toIndentedString(caseAutomationDetails)).append("\n"); + sb.append(" caseValidityRatio: ").append(toIndentedString(caseValidityRatio)).append("\n"); + sb.append(" issueDetails: ").append(toIndentedString(issueDetails)).append("\n"); + sb.append(" caseDetails: ").append(toIndentedString(caseDetails)).append("\n"); + sb.append(" defectDetailsBySeverity: ").append(toIndentedString(defectDetailsBySeverity)).append("\n"); + sb.append(" defectDetailsByModule: ").append(toIndentedString(defectDetailsByModule)).append("\n"); + sb.append(" casePassRateByTestType: ").append(toIndentedString(casePassRateByTestType)).append("\n"); + sb.append(" testReportCustomReportDetail: ") + .append(toIndentedString(testReportCustomReportDetail)) + .append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" createTimestamp: ").append(toIndentedString(createTimestamp)).append("\n"); + sb.append(" creatorName: ").append(toIndentedString(creatorName)).append("\n"); + sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); + sb.append(" updateTimestamp: ").append(toIndentedString(updateTimestamp)).append("\n"); + sb.append(" updatorName: ").append(toIndentedString(updatorName)).append("\n"); + sb.append(" projectUuid: ").append(toIndentedString(projectUuid)).append("\n"); + sb.append(" riskAnalysis: ").append(toIndentedString(riskAnalysis)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/TestVersionVo.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/TestVersionVo.java new file mode 100644 index 0000000000..6a6222c40e --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/TestVersionVo.java @@ -0,0 +1,1279 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.time.OffsetDateTime; +import java.util.Objects; + +/** + * 实际的数据类型:单个对象,集合 或 NULL + */ +public class TestVersionVo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "uri") + + private String uri; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "type") + + private String type; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "author") + + private String author; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "rank") + + private Integer rank; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "version") + + private String version; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "owner") + + private String owner; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "creator") + + private String creator; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "iterations") + + private String iterations; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "region") + + private String region; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "last_modifier") + + private String lastModifier; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "last_modified") + + private OffsetDateTime lastModified; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "last_modified_timestamp") + + private Long lastModifiedTimestamp; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "last_change_time") + + private OffsetDateTime lastChangeTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "version_uri") + + private String versionUri; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "origin_uri") + + private String originUri; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "parent_uri") + + private String parentUri; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "parent_path") + + private String parentPath; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "creation_version_uri") + + private String creationVersionUri; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "creation_date") + + private OffsetDateTime creationDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "creation_date_timestamp") + + private Long creationDateTimestamp; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "author_name") + + private String authorName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "comment") + + private String comment; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "number") + + private String number; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_master") + + private Integer isMaster; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_iterator") + + private Integer isIterator; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "plan_start_date") + + private OffsetDateTime planStartDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "plan_end_date") + + private OffsetDateTime planEndDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "service_id") + + private String serviceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "service_name") + + private String serviceName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "pbi_id") + + private String pbiId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "pbi_name") + + private String pbiName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "plan_id") + + private String planId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "metric_pbi_ids") + + private String metricPbiIds; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "metric_pbi_id_names") + + private String metricPbiIdNames; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "last_syn_date") + + private OffsetDateTime lastSynDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_closed") + + private String isClosed; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "asyn_git") + + private String asynGit; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "schema_no") + + private Integer schemaNo; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "finish_date") + + private OffsetDateTime finishDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "owner_name") + + private String ownerName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "creator_name") + + private String creatorName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "current_stage") + + private String currentStage; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "service_types") + + private String serviceTypes; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "risk_rating") + + private Integer riskRating; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "risk_des") + + private String riskDes; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_uuid") + + private String projectUuid; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "domain_id") + + private String domainId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "pi_id") + + private String piId; + + public TestVersionVo withUri(String uri) { + this.uri = uri; + return this; + } + + /** + * 资源URI + * @return uri + */ + public String getUri() { + return uri; + } + + public void setUri(String uri) { + this.uri = uri; + } + + public TestVersionVo withType(String type) { + this.type = type; + return this; + } + + /** + * 资源类型 + * @return type + */ + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public TestVersionVo withAuthor(String author) { + this.author = author; + return this; + } + + /** + * 创建人 + * @return author + */ + public String getAuthor() { + return author; + } + + public void setAuthor(String author) { + this.author = author; + } + + public TestVersionVo withName(String name) { + this.name = name; + return this; + } + + /** + * 名称 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public TestVersionVo withRank(Integer rank) { + this.rank = rank; + return this; + } + + /** + * 级别 + * @return rank + */ + public Integer getRank() { + return rank; + } + + public void setRank(Integer rank) { + this.rank = rank; + } + + public TestVersionVo withVersion(String version) { + this.version = version; + return this; + } + + /** + * 待测版本 + * @return version + */ + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + public TestVersionVo withOwner(String owner) { + this.owner = owner; + return this; + } + + /** + * 处理者ID + * @return owner + */ + public String getOwner() { + return owner; + } + + public void setOwner(String owner) { + this.owner = owner; + } + + public TestVersionVo withCreator(String creator) { + this.creator = creator; + return this; + } + + /** + * 创建人ID + * @return creator + */ + public String getCreator() { + return creator; + } + + public void setCreator(String creator) { + this.creator = creator; + } + + public TestVersionVo withIterations(String iterations) { + this.iterations = iterations; + return this; + } + + /** + * 关联迭代 + * @return iterations + */ + public String getIterations() { + return iterations; + } + + public void setIterations(String iterations) { + this.iterations = iterations; + } + + public TestVersionVo withDescription(String description) { + this.description = description; + return this; + } + + /** + * 描述 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public TestVersionVo withRegion(String region) { + this.region = region; + return this; + } + + /** + * 区域 + * @return region + */ + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public TestVersionVo withLastModifier(String lastModifier) { + this.lastModifier = lastModifier; + return this; + } + + /** + * 最后修改人 + * @return lastModifier + */ + public String getLastModifier() { + return lastModifier; + } + + public void setLastModifier(String lastModifier) { + this.lastModifier = lastModifier; + } + + public TestVersionVo withLastModified(OffsetDateTime lastModified) { + this.lastModified = lastModified; + return this; + } + + /** + * 最后修改时间 + * @return lastModified + */ + public OffsetDateTime getLastModified() { + return lastModified; + } + + public void setLastModified(OffsetDateTime lastModified) { + this.lastModified = lastModified; + } + + public TestVersionVo withLastModifiedTimestamp(Long lastModifiedTimestamp) { + this.lastModifiedTimestamp = lastModifiedTimestamp; + return this; + } + + /** + * 修改时间时间戳 + * @return lastModifiedTimestamp + */ + public Long getLastModifiedTimestamp() { + return lastModifiedTimestamp; + } + + public void setLastModifiedTimestamp(Long lastModifiedTimestamp) { + this.lastModifiedTimestamp = lastModifiedTimestamp; + } + + public TestVersionVo withLastChangeTime(OffsetDateTime lastChangeTime) { + this.lastChangeTime = lastChangeTime; + return this; + } + + /** + * 最后变更时间 + * @return lastChangeTime + */ + public OffsetDateTime getLastChangeTime() { + return lastChangeTime; + } + + public void setLastChangeTime(OffsetDateTime lastChangeTime) { + this.lastChangeTime = lastChangeTime; + } + + public TestVersionVo withVersionUri(String versionUri) { + this.versionUri = versionUri; + return this; + } + + /** + * 版本URI + * @return versionUri + */ + public String getVersionUri() { + return versionUri; + } + + public void setVersionUri(String versionUri) { + this.versionUri = versionUri; + } + + public TestVersionVo withOriginUri(String originUri) { + this.originUri = originUri; + return this; + } + + /** + * 源资源URI + * @return originUri + */ + public String getOriginUri() { + return originUri; + } + + public void setOriginUri(String originUri) { + this.originUri = originUri; + } + + public TestVersionVo withParentUri(String parentUri) { + this.parentUri = parentUri; + return this; + } + + /** + * 父资源URI + * @return parentUri + */ + public String getParentUri() { + return parentUri; + } + + public void setParentUri(String parentUri) { + this.parentUri = parentUri; + } + + public TestVersionVo withParentPath(String parentPath) { + this.parentPath = parentPath; + return this; + } + + /** + * 父资源路径 + * @return parentPath + */ + public String getParentPath() { + return parentPath; + } + + public void setParentPath(String parentPath) { + this.parentPath = parentPath; + } + + public TestVersionVo withCreationVersionUri(String creationVersionUri) { + this.creationVersionUri = creationVersionUri; + return this; + } + + /** + * 创建版本URI + * @return creationVersionUri + */ + public String getCreationVersionUri() { + return creationVersionUri; + } + + public void setCreationVersionUri(String creationVersionUri) { + this.creationVersionUri = creationVersionUri; + } + + public TestVersionVo withCreationDate(OffsetDateTime creationDate) { + this.creationDate = creationDate; + return this; + } + + /** + * 创建时间 + * @return creationDate + */ + public OffsetDateTime getCreationDate() { + return creationDate; + } + + public void setCreationDate(OffsetDateTime creationDate) { + this.creationDate = creationDate; + } + + public TestVersionVo withCreationDateTimestamp(Long creationDateTimestamp) { + this.creationDateTimestamp = creationDateTimestamp; + return this; + } + + /** + * 创建时间时间戳 + * @return creationDateTimestamp + */ + public Long getCreationDateTimestamp() { + return creationDateTimestamp; + } + + public void setCreationDateTimestamp(Long creationDateTimestamp) { + this.creationDateTimestamp = creationDateTimestamp; + } + + public TestVersionVo withAuthorName(String authorName) { + this.authorName = authorName; + return this; + } + + /** + * 创建人名称 + * @return authorName + */ + public String getAuthorName() { + return authorName; + } + + public void setAuthorName(String authorName) { + this.authorName = authorName; + } + + public TestVersionVo withComment(String comment) { + this.comment = comment; + return this; + } + + /** + * 备注 + * @return comment + */ + public String getComment() { + return comment; + } + + public void setComment(String comment) { + this.comment = comment; + } + + public TestVersionVo withNumber(String number) { + this.number = number; + return this; + } + + /** + * 编号 + * @return number + */ + public String getNumber() { + return number; + } + + public void setNumber(String number) { + this.number = number; + } + + public TestVersionVo withIsMaster(Integer isMaster) { + this.isMaster = isMaster; + return this; + } + + /** + * 是否为Master分支 + * @return isMaster + */ + public Integer getIsMaster() { + return isMaster; + } + + public void setIsMaster(Integer isMaster) { + this.isMaster = isMaster; + } + + public TestVersionVo withIsIterator(Integer isIterator) { + this.isIterator = isIterator; + return this; + } + + /** + * 是否为迭代 + * @return isIterator + */ + public Integer getIsIterator() { + return isIterator; + } + + public void setIsIterator(Integer isIterator) { + this.isIterator = isIterator; + } + + public TestVersionVo withPlanStartDate(OffsetDateTime planStartDate) { + this.planStartDate = planStartDate; + return this; + } + + /** + * 开始时间 + * @return planStartDate + */ + public OffsetDateTime getPlanStartDate() { + return planStartDate; + } + + public void setPlanStartDate(OffsetDateTime planStartDate) { + this.planStartDate = planStartDate; + } + + public TestVersionVo withPlanEndDate(OffsetDateTime planEndDate) { + this.planEndDate = planEndDate; + return this; + } + + /** + * 结束时间 + * @return planEndDate + */ + public OffsetDateTime getPlanEndDate() { + return planEndDate; + } + + public void setPlanEndDate(OffsetDateTime planEndDate) { + this.planEndDate = planEndDate; + } + + public TestVersionVo withServiceId(String serviceId) { + this.serviceId = serviceId; + return this; + } + + /** + * 微服务ID + * @return serviceId + */ + public String getServiceId() { + return serviceId; + } + + public void setServiceId(String serviceId) { + this.serviceId = serviceId; + } + + public TestVersionVo withServiceName(String serviceName) { + this.serviceName = serviceName; + return this; + } + + /** + * 微服务名 + * @return serviceName + */ + public String getServiceName() { + return serviceName; + } + + public void setServiceName(String serviceName) { + this.serviceName = serviceName; + } + + public TestVersionVo withPbiId(String pbiId) { + this.pbiId = pbiId; + return this; + } + + /** + * PBI ID + * @return pbiId + */ + public String getPbiId() { + return pbiId; + } + + public void setPbiId(String pbiId) { + this.pbiId = pbiId; + } + + public TestVersionVo withPbiName(String pbiName) { + this.pbiName = pbiName; + return this; + } + + /** + * PBI信息 + * @return pbiName + */ + public String getPbiName() { + return pbiName; + } + + public void setPbiName(String pbiName) { + this.pbiName = pbiName; + } + + public TestVersionVo withPlanId(String planId) { + this.planId = planId; + return this; + } + + /** + * 计划ID + * @return planId + */ + public String getPlanId() { + return planId; + } + + public void setPlanId(String planId) { + this.planId = planId; + } + + public TestVersionVo withMetricPbiIds(String metricPbiIds) { + this.metricPbiIds = metricPbiIds; + return this; + } + + /** + * 度量PBI ID + * @return metricPbiIds + */ + public String getMetricPbiIds() { + return metricPbiIds; + } + + public void setMetricPbiIds(String metricPbiIds) { + this.metricPbiIds = metricPbiIds; + } + + public TestVersionVo withMetricPbiIdNames(String metricPbiIdNames) { + this.metricPbiIdNames = metricPbiIdNames; + return this; + } + + /** + * 度量PBI名称 + * @return metricPbiIdNames + */ + public String getMetricPbiIdNames() { + return metricPbiIdNames; + } + + public void setMetricPbiIdNames(String metricPbiIdNames) { + this.metricPbiIdNames = metricPbiIdNames; + } + + public TestVersionVo withLastSynDate(OffsetDateTime lastSynDate) { + this.lastSynDate = lastSynDate; + return this; + } + + /** + * 最后同步时间 + * @return lastSynDate + */ + public OffsetDateTime getLastSynDate() { + return lastSynDate; + } + + public void setLastSynDate(OffsetDateTime lastSynDate) { + this.lastSynDate = lastSynDate; + } + + public TestVersionVo withIsClosed(String isClosed) { + this.isClosed = isClosed; + return this; + } + + /** + * 版本是否关闭 + * @return isClosed + */ + public String getIsClosed() { + return isClosed; + } + + public void setIsClosed(String isClosed) { + this.isClosed = isClosed; + } + + public TestVersionVo withAsynGit(String asynGit) { + this.asynGit = asynGit; + return this; + } + + /** + * 是否同步git库 + * @return asynGit + */ + public String getAsynGit() { + return asynGit; + } + + public void setAsynGit(String asynGit) { + this.asynGit = asynGit; + } + + public TestVersionVo withSchemaNo(Integer schemaNo) { + this.schemaNo = schemaNo; + return this; + } + + /** + * schema编号 + * @return schemaNo + */ + public Integer getSchemaNo() { + return schemaNo; + } + + public void setSchemaNo(Integer schemaNo) { + this.schemaNo = schemaNo; + } + + public TestVersionVo withFinishDate(OffsetDateTime finishDate) { + this.finishDate = finishDate; + return this; + } + + /** + * 迭代实际完成时间 + * @return finishDate + */ + public OffsetDateTime getFinishDate() { + return finishDate; + } + + public void setFinishDate(OffsetDateTime finishDate) { + this.finishDate = finishDate; + } + + public TestVersionVo withOwnerName(String ownerName) { + this.ownerName = ownerName; + return this; + } + + /** + * 处理者名称 + * @return ownerName + */ + public String getOwnerName() { + return ownerName; + } + + public void setOwnerName(String ownerName) { + this.ownerName = ownerName; + } + + public TestVersionVo withCreatorName(String creatorName) { + this.creatorName = creatorName; + return this; + } + + /** + * 创建人名称 + * @return creatorName + */ + public String getCreatorName() { + return creatorName; + } + + public void setCreatorName(String creatorName) { + this.creatorName = creatorName; + } + + public TestVersionVo withCurrentStage(String currentStage) { + this.currentStage = currentStage; + return this; + } + + /** + * 当前所处阶段 + * @return currentStage + */ + public String getCurrentStage() { + return currentStage; + } + + public void setCurrentStage(String currentStage) { + this.currentStage = currentStage; + } + + public TestVersionVo withServiceTypes(String serviceTypes) { + this.serviceTypes = serviceTypes; + return this; + } + + /** + * 服务类型 + * @return serviceTypes + */ + public String getServiceTypes() { + return serviceTypes; + } + + public void setServiceTypes(String serviceTypes) { + this.serviceTypes = serviceTypes; + } + + public TestVersionVo withRiskRating(Integer riskRating) { + this.riskRating = riskRating; + return this; + } + + /** + * 风险等级 + * @return riskRating + */ + public Integer getRiskRating() { + return riskRating; + } + + public void setRiskRating(Integer riskRating) { + this.riskRating = riskRating; + } + + public TestVersionVo withRiskDes(String riskDes) { + this.riskDes = riskDes; + return this; + } + + /** + * 风险描述 + * @return riskDes + */ + public String getRiskDes() { + return riskDes; + } + + public void setRiskDes(String riskDes) { + this.riskDes = riskDes; + } + + public TestVersionVo withProjectUuid(String projectUuid) { + this.projectUuid = projectUuid; + return this; + } + + /** + * 项目ID + * @return projectUuid + */ + public String getProjectUuid() { + return projectUuid; + } + + public void setProjectUuid(String projectUuid) { + this.projectUuid = projectUuid; + } + + public TestVersionVo withDomainId(String domainId) { + this.domainId = domainId; + return this; + } + + /** + * 租户ID + * @return domainId + */ + public String getDomainId() { + return domainId; + } + + public void setDomainId(String domainId) { + this.domainId = domainId; + } + + public TestVersionVo withPiId(String piId) { + this.piId = piId; + return this; + } + + /** + * pi的id + * @return piId + */ + public String getPiId() { + return piId; + } + + public void setPiId(String piId) { + this.piId = piId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + TestVersionVo that = (TestVersionVo) obj; + return Objects.equals(this.uri, that.uri) && Objects.equals(this.type, that.type) + && Objects.equals(this.author, that.author) && Objects.equals(this.name, that.name) + && Objects.equals(this.rank, that.rank) && Objects.equals(this.version, that.version) + && Objects.equals(this.owner, that.owner) && Objects.equals(this.creator, that.creator) + && Objects.equals(this.iterations, that.iterations) && Objects.equals(this.description, that.description) + && Objects.equals(this.region, that.region) && Objects.equals(this.lastModifier, that.lastModifier) + && Objects.equals(this.lastModified, that.lastModified) + && Objects.equals(this.lastModifiedTimestamp, that.lastModifiedTimestamp) + && Objects.equals(this.lastChangeTime, that.lastChangeTime) + && Objects.equals(this.versionUri, that.versionUri) && Objects.equals(this.originUri, that.originUri) + && Objects.equals(this.parentUri, that.parentUri) && Objects.equals(this.parentPath, that.parentPath) + && Objects.equals(this.creationVersionUri, that.creationVersionUri) + && Objects.equals(this.creationDate, that.creationDate) + && Objects.equals(this.creationDateTimestamp, that.creationDateTimestamp) + && Objects.equals(this.authorName, that.authorName) && Objects.equals(this.comment, that.comment) + && Objects.equals(this.number, that.number) && Objects.equals(this.isMaster, that.isMaster) + && Objects.equals(this.isIterator, that.isIterator) + && Objects.equals(this.planStartDate, that.planStartDate) + && Objects.equals(this.planEndDate, that.planEndDate) && Objects.equals(this.serviceId, that.serviceId) + && Objects.equals(this.serviceName, that.serviceName) && Objects.equals(this.pbiId, that.pbiId) + && Objects.equals(this.pbiName, that.pbiName) && Objects.equals(this.planId, that.planId) + && Objects.equals(this.metricPbiIds, that.metricPbiIds) + && Objects.equals(this.metricPbiIdNames, that.metricPbiIdNames) + && Objects.equals(this.lastSynDate, that.lastSynDate) && Objects.equals(this.isClosed, that.isClosed) + && Objects.equals(this.asynGit, that.asynGit) && Objects.equals(this.schemaNo, that.schemaNo) + && Objects.equals(this.finishDate, that.finishDate) && Objects.equals(this.ownerName, that.ownerName) + && Objects.equals(this.creatorName, that.creatorName) + && Objects.equals(this.currentStage, that.currentStage) + && Objects.equals(this.serviceTypes, that.serviceTypes) && Objects.equals(this.riskRating, that.riskRating) + && Objects.equals(this.riskDes, that.riskDes) && Objects.equals(this.projectUuid, that.projectUuid) + && Objects.equals(this.domainId, that.domainId) && Objects.equals(this.piId, that.piId); + } + + @Override + public int hashCode() { + return Objects.hash(uri, + type, + author, + name, + rank, + version, + owner, + creator, + iterations, + description, + region, + lastModifier, + lastModified, + lastModifiedTimestamp, + lastChangeTime, + versionUri, + originUri, + parentUri, + parentPath, + creationVersionUri, + creationDate, + creationDateTimestamp, + authorName, + comment, + number, + isMaster, + isIterator, + planStartDate, + planEndDate, + serviceId, + serviceName, + pbiId, + pbiName, + planId, + metricPbiIds, + metricPbiIdNames, + lastSynDate, + isClosed, + asynGit, + schemaNo, + finishDate, + ownerName, + creatorName, + currentStage, + serviceTypes, + riskRating, + riskDes, + projectUuid, + domainId, + piId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TestVersionVo {\n"); + sb.append(" uri: ").append(toIndentedString(uri)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" author: ").append(toIndentedString(author)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" rank: ").append(toIndentedString(rank)).append("\n"); + sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" owner: ").append(toIndentedString(owner)).append("\n"); + sb.append(" creator: ").append(toIndentedString(creator)).append("\n"); + sb.append(" iterations: ").append(toIndentedString(iterations)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" region: ").append(toIndentedString(region)).append("\n"); + sb.append(" lastModifier: ").append(toIndentedString(lastModifier)).append("\n"); + sb.append(" lastModified: ").append(toIndentedString(lastModified)).append("\n"); + sb.append(" lastModifiedTimestamp: ").append(toIndentedString(lastModifiedTimestamp)).append("\n"); + sb.append(" lastChangeTime: ").append(toIndentedString(lastChangeTime)).append("\n"); + sb.append(" versionUri: ").append(toIndentedString(versionUri)).append("\n"); + sb.append(" originUri: ").append(toIndentedString(originUri)).append("\n"); + sb.append(" parentUri: ").append(toIndentedString(parentUri)).append("\n"); + sb.append(" parentPath: ").append(toIndentedString(parentPath)).append("\n"); + sb.append(" creationVersionUri: ").append(toIndentedString(creationVersionUri)).append("\n"); + sb.append(" creationDate: ").append(toIndentedString(creationDate)).append("\n"); + sb.append(" creationDateTimestamp: ").append(toIndentedString(creationDateTimestamp)).append("\n"); + sb.append(" authorName: ").append(toIndentedString(authorName)).append("\n"); + sb.append(" comment: ").append(toIndentedString(comment)).append("\n"); + sb.append(" number: ").append(toIndentedString(number)).append("\n"); + sb.append(" isMaster: ").append(toIndentedString(isMaster)).append("\n"); + sb.append(" isIterator: ").append(toIndentedString(isIterator)).append("\n"); + sb.append(" planStartDate: ").append(toIndentedString(planStartDate)).append("\n"); + sb.append(" planEndDate: ").append(toIndentedString(planEndDate)).append("\n"); + sb.append(" serviceId: ").append(toIndentedString(serviceId)).append("\n"); + sb.append(" serviceName: ").append(toIndentedString(serviceName)).append("\n"); + sb.append(" pbiId: ").append(toIndentedString(pbiId)).append("\n"); + sb.append(" pbiName: ").append(toIndentedString(pbiName)).append("\n"); + sb.append(" planId: ").append(toIndentedString(planId)).append("\n"); + sb.append(" metricPbiIds: ").append(toIndentedString(metricPbiIds)).append("\n"); + sb.append(" metricPbiIdNames: ").append(toIndentedString(metricPbiIdNames)).append("\n"); + sb.append(" lastSynDate: ").append(toIndentedString(lastSynDate)).append("\n"); + sb.append(" isClosed: ").append(toIndentedString(isClosed)).append("\n"); + sb.append(" asynGit: ").append(toIndentedString(asynGit)).append("\n"); + sb.append(" schemaNo: ").append(toIndentedString(schemaNo)).append("\n"); + sb.append(" finishDate: ").append(toIndentedString(finishDate)).append("\n"); + sb.append(" ownerName: ").append(toIndentedString(ownerName)).append("\n"); + sb.append(" creatorName: ").append(toIndentedString(creatorName)).append("\n"); + sb.append(" currentStage: ").append(toIndentedString(currentStage)).append("\n"); + sb.append(" serviceTypes: ").append(toIndentedString(serviceTypes)).append("\n"); + sb.append(" riskRating: ").append(toIndentedString(riskRating)).append("\n"); + sb.append(" riskDes: ").append(toIndentedString(riskDes)).append("\n"); + sb.append(" projectUuid: ").append(toIndentedString(projectUuid)).append("\n"); + sb.append(" domainId: ").append(toIndentedString(domainId)).append("\n"); + sb.append(" piId: ").append(toIndentedString(piId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/UsageInfos.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/UsageInfos.java new file mode 100644 index 0000000000..15fa0978b0 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/UsageInfos.java @@ -0,0 +1,208 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 资源已用容量对象 + */ +public class UsageInfos { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "amount") + + private String amount; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "used") + + private String used; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "used_percent") + + private Integer usedPercent; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "usage_info") + + private List usageInfo = null; + + public UsageInfos withName(String name) { + this.name = name; + return this; + } + + /** + * 资源名称 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public UsageInfos withId(String id) { + this.id = id; + return this; + } + + /** + * 资源标识 + * @return id + */ + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public UsageInfos withAmount(String amount) { + this.amount = amount; + return this; + } + + /** + * 资源总量 + * @return amount + */ + public String getAmount() { + return amount; + } + + public void setAmount(String amount) { + this.amount = amount; + } + + public UsageInfos withUsed(String used) { + this.used = used; + return this; + } + + /** + * 已消耗用量 + * @return used + */ + public String getUsed() { + return used; + } + + public void setUsed(String used) { + this.used = used; + } + + public UsageInfos withUsedPercent(Integer usedPercent) { + this.usedPercent = usedPercent; + return this; + } + + /** + * 资源已用容量百分比,例如80% 值为80 + * @return usedPercent + */ + public Integer getUsedPercent() { + return usedPercent; + } + + public void setUsedPercent(Integer usedPercent) { + this.usedPercent = usedPercent; + } + + public UsageInfos withUsageInfo(List usageInfo) { + this.usageInfo = usageInfo; + return this; + } + + public UsageInfos addUsageInfoItem(UsageInfos usageInfoItem) { + if (this.usageInfo == null) { + this.usageInfo = new ArrayList<>(); + } + this.usageInfo.add(usageInfoItem); + return this; + } + + public UsageInfos withUsageInfo(Consumer> usageInfoSetter) { + if (this.usageInfo == null) { + this.usageInfo = new ArrayList<>(); + } + usageInfoSetter.accept(this.usageInfo); + return this; + } + + /** + * 版本超限信息 + * @return usageInfo + */ + public List getUsageInfo() { + return usageInfo; + } + + public void setUsageInfo(List usageInfo) { + this.usageInfo = usageInfo; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UsageInfos that = (UsageInfos) obj; + return Objects.equals(this.name, that.name) && Objects.equals(this.id, that.id) + && Objects.equals(this.amount, that.amount) && Objects.equals(this.used, that.used) + && Objects.equals(this.usedPercent, that.usedPercent) && Objects.equals(this.usageInfo, that.usageInfo); + } + + @Override + public int hashCode() { + return Objects.hash(name, id, amount, used, usedPercent, usageInfo); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UsageInfos {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); + sb.append(" used: ").append(toIndentedString(used)).append("\n"); + sb.append(" usedPercent: ").append(toIndentedString(usedPercent)).append("\n"); + sb.append(" usageInfo: ").append(toIndentedString(usageInfo)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/VariableRes.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/VariableRes.java new file mode 100644 index 0000000000..f28ee88b53 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/VariableRes.java @@ -0,0 +1,813 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * VariableRes + */ +public class VariableRes { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "by_order") + + private Integer byOrder; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "category") + + private String category; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time") + + private String createTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time_stamp") + + private Long createTimeStamp; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time_string") + + private String createTimeString; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_user") + + private String createUser; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "currentPermission") + + private String currentPermission; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dynamicParamFlag") + + private Boolean dynamicParamFlag; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "functionParams") + + private String functionParams; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "groupId") + + private String groupId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "isSensitiveInfo") + + private Boolean isSensitiveInfo; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "isSensitiveModified") + + private Boolean isSensitiveModified; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "locked") + + private Integer locked; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "node_id") + + private String nodeId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "node_type") + + private Integer nodeType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "parent_id") + + private String parentId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "parent_node_id") + + private String parentNodeId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "property") + + private String property; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "region") + + private String region; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sensitiveInfoSetterTime") + + private String sensitiveInfoSetterTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sensitiveInfoSetterUser") + + private String sensitiveInfoSetterUser; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sourceId") + + private String sourceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "type") + + private String type; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_time") + + private String updateTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_time_stamp") + + private Long updateTimeStamp; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_time_string") + + private String updateTimeString; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_user") + + private String updateUser; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "variableType") + + private Integer variableType; + + public VariableRes withByOrder(Integer byOrder) { + this.byOrder = byOrder; + return this; + } + + /** + * Get byOrder + * @return byOrder + */ + public Integer getByOrder() { + return byOrder; + } + + public void setByOrder(Integer byOrder) { + this.byOrder = byOrder; + } + + public VariableRes withCategory(String category) { + this.category = category; + return this; + } + + /** + * Get category + * @return category + */ + public String getCategory() { + return category; + } + + public void setCategory(String category) { + this.category = category; + } + + public VariableRes withCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * 创建时间 + * @return createTime + */ + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public VariableRes withCreateTimeStamp(Long createTimeStamp) { + this.createTimeStamp = createTimeStamp; + return this; + } + + /** + * Get createTimeStamp + * @return createTimeStamp + */ + public Long getCreateTimeStamp() { + return createTimeStamp; + } + + public void setCreateTimeStamp(Long createTimeStamp) { + this.createTimeStamp = createTimeStamp; + } + + public VariableRes withCreateTimeString(String createTimeString) { + this.createTimeString = createTimeString; + return this; + } + + /** + * Get createTimeString + * @return createTimeString + */ + public String getCreateTimeString() { + return createTimeString; + } + + public void setCreateTimeString(String createTimeString) { + this.createTimeString = createTimeString; + } + + public VariableRes withCreateUser(String createUser) { + this.createUser = createUser; + return this; + } + + /** + * 创建人 + * @return createUser + */ + public String getCreateUser() { + return createUser; + } + + public void setCreateUser(String createUser) { + this.createUser = createUser; + } + + public VariableRes withCurrentPermission(String currentPermission) { + this.currentPermission = currentPermission; + return this; + } + + /** + * Get currentPermission + * @return currentPermission + */ + public String getCurrentPermission() { + return currentPermission; + } + + public void setCurrentPermission(String currentPermission) { + this.currentPermission = currentPermission; + } + + public VariableRes withDescription(String description) { + this.description = description; + return this; + } + + /** + * Get description + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public VariableRes withDynamicParamFlag(Boolean dynamicParamFlag) { + this.dynamicParamFlag = dynamicParamFlag; + return this; + } + + /** + * Get dynamicParamFlag + * @return dynamicParamFlag + */ + public Boolean getDynamicParamFlag() { + return dynamicParamFlag; + } + + public void setDynamicParamFlag(Boolean dynamicParamFlag) { + this.dynamicParamFlag = dynamicParamFlag; + } + + public VariableRes withFunctionParams(String functionParams) { + this.functionParams = functionParams; + return this; + } + + /** + * Get functionParams + * @return functionParams + */ + public String getFunctionParams() { + return functionParams; + } + + public void setFunctionParams(String functionParams) { + this.functionParams = functionParams; + } + + public VariableRes withGroupId(String groupId) { + this.groupId = groupId; + return this; + } + + /** + * Get groupId + * @return groupId + */ + public String getGroupId() { + return groupId; + } + + public void setGroupId(String groupId) { + this.groupId = groupId; + } + + public VariableRes withId(String id) { + this.id = id; + return this; + } + + /** + * id + * @return id + */ + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public VariableRes withIsSensitiveInfo(Boolean isSensitiveInfo) { + this.isSensitiveInfo = isSensitiveInfo; + return this; + } + + /** + * Get isSensitiveInfo + * @return isSensitiveInfo + */ + public Boolean getIsSensitiveInfo() { + return isSensitiveInfo; + } + + public void setIsSensitiveInfo(Boolean isSensitiveInfo) { + this.isSensitiveInfo = isSensitiveInfo; + } + + public VariableRes withIsSensitiveModified(Boolean isSensitiveModified) { + this.isSensitiveModified = isSensitiveModified; + return this; + } + + /** + * Get isSensitiveModified + * @return isSensitiveModified + */ + public Boolean getIsSensitiveModified() { + return isSensitiveModified; + } + + public void setIsSensitiveModified(Boolean isSensitiveModified) { + this.isSensitiveModified = isSensitiveModified; + } + + public VariableRes withLocked(Integer locked) { + this.locked = locked; + return this; + } + + /** + * Get locked + * @return locked + */ + public Integer getLocked() { + return locked; + } + + public void setLocked(Integer locked) { + this.locked = locked; + } + + public VariableRes withName(String name) { + this.name = name; + return this; + } + + /** + * Get name + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public VariableRes withNodeId(String nodeId) { + this.nodeId = nodeId; + return this; + } + + /** + * Get nodeId + * @return nodeId + */ + public String getNodeId() { + return nodeId; + } + + public void setNodeId(String nodeId) { + this.nodeId = nodeId; + } + + public VariableRes withNodeType(Integer nodeType) { + this.nodeType = nodeType; + return this; + } + + /** + * Get nodeType + * @return nodeType + */ + public Integer getNodeType() { + return nodeType; + } + + public void setNodeType(Integer nodeType) { + this.nodeType = nodeType; + } + + public VariableRes withParentId(String parentId) { + this.parentId = parentId; + return this; + } + + /** + * Get parentId + * @return parentId + */ + public String getParentId() { + return parentId; + } + + public void setParentId(String parentId) { + this.parentId = parentId; + } + + public VariableRes withParentNodeId(String parentNodeId) { + this.parentNodeId = parentNodeId; + return this; + } + + /** + * Get parentNodeId + * @return parentNodeId + */ + public String getParentNodeId() { + return parentNodeId; + } + + public void setParentNodeId(String parentNodeId) { + this.parentNodeId = parentNodeId; + } + + public VariableRes withProperty(String property) { + this.property = property; + return this; + } + + /** + * Get property + * @return property + */ + public String getProperty() { + return property; + } + + public void setProperty(String property) { + this.property = property; + } + + public VariableRes withRegion(String region) { + this.region = region; + return this; + } + + /** + * Get region + * @return region + */ + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public VariableRes withSensitiveInfoSetterTime(String sensitiveInfoSetterTime) { + this.sensitiveInfoSetterTime = sensitiveInfoSetterTime; + return this; + } + + /** + * Get sensitiveInfoSetterTime + * @return sensitiveInfoSetterTime + */ + public String getSensitiveInfoSetterTime() { + return sensitiveInfoSetterTime; + } + + public void setSensitiveInfoSetterTime(String sensitiveInfoSetterTime) { + this.sensitiveInfoSetterTime = sensitiveInfoSetterTime; + } + + public VariableRes withSensitiveInfoSetterUser(String sensitiveInfoSetterUser) { + this.sensitiveInfoSetterUser = sensitiveInfoSetterUser; + return this; + } + + /** + * Get sensitiveInfoSetterUser + * @return sensitiveInfoSetterUser + */ + public String getSensitiveInfoSetterUser() { + return sensitiveInfoSetterUser; + } + + public void setSensitiveInfoSetterUser(String sensitiveInfoSetterUser) { + this.sensitiveInfoSetterUser = sensitiveInfoSetterUser; + } + + public VariableRes withSourceId(String sourceId) { + this.sourceId = sourceId; + return this; + } + + /** + * Get sourceId + * @return sourceId + */ + public String getSourceId() { + return sourceId; + } + + public void setSourceId(String sourceId) { + this.sourceId = sourceId; + } + + public VariableRes withType(String type) { + this.type = type; + return this; + } + + /** + * Get type + * @return type + */ + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public VariableRes withUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * 更新时间 + * @return updateTime + */ + public String getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(String updateTime) { + this.updateTime = updateTime; + } + + public VariableRes withUpdateTimeStamp(Long updateTimeStamp) { + this.updateTimeStamp = updateTimeStamp; + return this; + } + + /** + * Get updateTimeStamp + * @return updateTimeStamp + */ + public Long getUpdateTimeStamp() { + return updateTimeStamp; + } + + public void setUpdateTimeStamp(Long updateTimeStamp) { + this.updateTimeStamp = updateTimeStamp; + } + + public VariableRes withUpdateTimeString(String updateTimeString) { + this.updateTimeString = updateTimeString; + return this; + } + + /** + * Get updateTimeString + * @return updateTimeString + */ + public String getUpdateTimeString() { + return updateTimeString; + } + + public void setUpdateTimeString(String updateTimeString) { + this.updateTimeString = updateTimeString; + } + + public VariableRes withUpdateUser(String updateUser) { + this.updateUser = updateUser; + return this; + } + + /** + * 更新人 + * @return updateUser + */ + public String getUpdateUser() { + return updateUser; + } + + public void setUpdateUser(String updateUser) { + this.updateUser = updateUser; + } + + public VariableRes withVariableType(Integer variableType) { + this.variableType = variableType; + return this; + } + + /** + * Get variableType + * @return variableType + */ + public Integer getVariableType() { + return variableType; + } + + public void setVariableType(Integer variableType) { + this.variableType = variableType; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + VariableRes that = (VariableRes) obj; + return Objects.equals(this.byOrder, that.byOrder) && Objects.equals(this.category, that.category) + && Objects.equals(this.createTime, that.createTime) + && Objects.equals(this.createTimeStamp, that.createTimeStamp) + && Objects.equals(this.createTimeString, that.createTimeString) + && Objects.equals(this.createUser, that.createUser) + && Objects.equals(this.currentPermission, that.currentPermission) + && Objects.equals(this.description, that.description) + && Objects.equals(this.dynamicParamFlag, that.dynamicParamFlag) + && Objects.equals(this.functionParams, that.functionParams) && Objects.equals(this.groupId, that.groupId) + && Objects.equals(this.id, that.id) && Objects.equals(this.isSensitiveInfo, that.isSensitiveInfo) + && Objects.equals(this.isSensitiveModified, that.isSensitiveModified) + && Objects.equals(this.locked, that.locked) && Objects.equals(this.name, that.name) + && Objects.equals(this.nodeId, that.nodeId) && Objects.equals(this.nodeType, that.nodeType) + && Objects.equals(this.parentId, that.parentId) && Objects.equals(this.parentNodeId, that.parentNodeId) + && Objects.equals(this.property, that.property) && Objects.equals(this.region, that.region) + && Objects.equals(this.sensitiveInfoSetterTime, that.sensitiveInfoSetterTime) + && Objects.equals(this.sensitiveInfoSetterUser, that.sensitiveInfoSetterUser) + && Objects.equals(this.sourceId, that.sourceId) && Objects.equals(this.type, that.type) + && Objects.equals(this.updateTime, that.updateTime) + && Objects.equals(this.updateTimeStamp, that.updateTimeStamp) + && Objects.equals(this.updateTimeString, that.updateTimeString) + && Objects.equals(this.updateUser, that.updateUser) && Objects.equals(this.variableType, that.variableType); + } + + @Override + public int hashCode() { + return Objects.hash(byOrder, + category, + createTime, + createTimeStamp, + createTimeString, + createUser, + currentPermission, + description, + dynamicParamFlag, + functionParams, + groupId, + id, + isSensitiveInfo, + isSensitiveModified, + locked, + name, + nodeId, + nodeType, + parentId, + parentNodeId, + property, + region, + sensitiveInfoSetterTime, + sensitiveInfoSetterUser, + sourceId, + type, + updateTime, + updateTimeStamp, + updateTimeString, + updateUser, + variableType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VariableRes {\n"); + sb.append(" byOrder: ").append(toIndentedString(byOrder)).append("\n"); + sb.append(" category: ").append(toIndentedString(category)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" createTimeStamp: ").append(toIndentedString(createTimeStamp)).append("\n"); + sb.append(" createTimeString: ").append(toIndentedString(createTimeString)).append("\n"); + sb.append(" createUser: ").append(toIndentedString(createUser)).append("\n"); + sb.append(" currentPermission: ").append(toIndentedString(currentPermission)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" dynamicParamFlag: ").append(toIndentedString(dynamicParamFlag)).append("\n"); + sb.append(" functionParams: ").append(toIndentedString(functionParams)).append("\n"); + sb.append(" groupId: ").append(toIndentedString(groupId)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" isSensitiveInfo: ").append(toIndentedString(isSensitiveInfo)).append("\n"); + sb.append(" isSensitiveModified: ").append(toIndentedString(isSensitiveModified)).append("\n"); + sb.append(" locked: ").append(toIndentedString(locked)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" nodeId: ").append(toIndentedString(nodeId)).append("\n"); + sb.append(" nodeType: ").append(toIndentedString(nodeType)).append("\n"); + sb.append(" parentId: ").append(toIndentedString(parentId)).append("\n"); + sb.append(" parentNodeId: ").append(toIndentedString(parentNodeId)).append("\n"); + sb.append(" property: ").append(toIndentedString(property)).append("\n"); + sb.append(" region: ").append(toIndentedString(region)).append("\n"); + sb.append(" sensitiveInfoSetterTime: ").append(toIndentedString(sensitiveInfoSetterTime)).append("\n"); + sb.append(" sensitiveInfoSetterUser: ").append(toIndentedString(sensitiveInfoSetterUser)).append("\n"); + sb.append(" sourceId: ").append(toIndentedString(sourceId)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); + sb.append(" updateTimeStamp: ").append(toIndentedString(updateTimeStamp)).append("\n"); + sb.append(" updateTimeString: ").append(toIndentedString(updateTimeString)).append("\n"); + sb.append(" updateUser: ").append(toIndentedString(updateUser)).append("\n"); + sb.append(" variableType: ").append(toIndentedString(variableType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/WorkItemVo.java b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/WorkItemVo.java new file mode 100644 index 0000000000..f984036163 --- /dev/null +++ b/services/cloudtest/src/main/java/com/huaweicloud/sdk/cloudtest/v1/model/WorkItemVo.java @@ -0,0 +1,909 @@ +package com.huaweicloud.sdk.cloudtest.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.time.OffsetDateTime; +import java.util.Objects; + +/** + * WorkItemVo + */ +public class WorkItemVo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "owner") + + private String owner; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "path") + + private String path; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "start_date") + + private String startDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "due_date") + + private String dueDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "region") + + private String region; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "creator") + + private String creator; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "updator") + + private String updator; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_uuid") + + private String projectUuid; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "work_item_id") + + private String workItemId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status_id") + + private String statusId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status_name") + + private String statusName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tracker_id") + + private String trackerId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tracker_name") + + private String trackerName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "iteration_id") + + private String iterationId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "module_id") + + private String moduleId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "severity_id") + + private String severityId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "severity_name") + + private String severityName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "parent_workitem_id") + + private String parentWorkitemId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "board_id") + + private String boardId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "board_name") + + private String boardName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time") + + private OffsetDateTime createTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_time") + + private OffsetDateTime updateTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "iteration_name") + + private String iterationName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "module_name") + + private String moduleName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "module_path") + + private String modulePath; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "module_path_name") + + private String modulePathName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "owner_name") + + private String ownerName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "have_child_dynamic") + + private Boolean haveChildDynamic; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "has_child") + + private Boolean hasChild; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "issue_dynamic_count") + + private Integer issueDynamicCount; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "case_count") + + private Integer caseCount; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sequence_id") + + private String sequenceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "pi_id") + + private String piId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "pi_name") + + private String piName; + + public WorkItemVo withName(String name) { + this.name = name; + return this; + } + + /** + * 工作项名称 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public WorkItemVo withOwner(String owner) { + this.owner = owner; + return this; + } + + /** + * 处理人 + * @return owner + */ + public String getOwner() { + return owner; + } + + public void setOwner(String owner) { + this.owner = owner; + } + + public WorkItemVo withPath(String path) { + this.path = path; + return this; + } + + /** + * 工作项路径 + * @return path + */ + public String getPath() { + return path; + } + + public void setPath(String path) { + this.path = path; + } + + public WorkItemVo withStartDate(String startDate) { + this.startDate = startDate; + return this; + } + + /** + * 预计开始日期 + * @return startDate + */ + public String getStartDate() { + return startDate; + } + + public void setStartDate(String startDate) { + this.startDate = startDate; + } + + public WorkItemVo withDueDate(String dueDate) { + this.dueDate = dueDate; + return this; + } + + /** + * 预计结束日期 + * @return dueDate + */ + public String getDueDate() { + return dueDate; + } + + public void setDueDate(String dueDate) { + this.dueDate = dueDate; + } + + public WorkItemVo withRegion(String region) { + this.region = region; + return this; + } + + /** + * 逻辑region,外部使用公有云实际区域,内部使用默认值 + * @return region + */ + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public WorkItemVo withCreator(String creator) { + this.creator = creator; + return this; + } + + /** + * 创建人 + * @return creator + */ + public String getCreator() { + return creator; + } + + public void setCreator(String creator) { + this.creator = creator; + } + + public WorkItemVo withUpdator(String updator) { + this.updator = updator; + return this; + } + + /** + * 更新人 + * @return updator + */ + public String getUpdator() { + return updator; + } + + public void setUpdator(String updator) { + this.updator = updator; + } + + public WorkItemVo withProjectUuid(String projectUuid) { + this.projectUuid = projectUuid; + return this; + } + + /** + * 项目ID,外部使用项目ID,内部使用默认值 + * @return projectUuid + */ + public String getProjectUuid() { + return projectUuid; + } + + public void setProjectUuid(String projectUuid) { + this.projectUuid = projectUuid; + } + + public WorkItemVo withWorkItemId(String workItemId) { + this.workItemId = workItemId; + return this; + } + + /** + * 工作项编号 + * @return workItemId + */ + public String getWorkItemId() { + return workItemId; + } + + public void setWorkItemId(String workItemId) { + this.workItemId = workItemId; + } + + public WorkItemVo withStatusId(String statusId) { + this.statusId = statusId; + return this; + } + + /** + * 状态ID + * @return statusId + */ + public String getStatusId() { + return statusId; + } + + public void setStatusId(String statusId) { + this.statusId = statusId; + } + + public WorkItemVo withStatusName(String statusName) { + this.statusName = statusName; + return this; + } + + /** + * 状态 + * @return statusName + */ + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public WorkItemVo withTrackerId(String trackerId) { + this.trackerId = trackerId; + return this; + } + + /** + * 类型ID + * @return trackerId + */ + public String getTrackerId() { + return trackerId; + } + + public void setTrackerId(String trackerId) { + this.trackerId = trackerId; + } + + public WorkItemVo withTrackerName(String trackerName) { + this.trackerName = trackerName; + return this; + } + + /** + * 类型 + * @return trackerName + */ + public String getTrackerName() { + return trackerName; + } + + public void setTrackerName(String trackerName) { + this.trackerName = trackerName; + } + + public WorkItemVo withIterationId(String iterationId) { + this.iterationId = iterationId; + return this; + } + + /** + * 迭代ID + * @return iterationId + */ + public String getIterationId() { + return iterationId; + } + + public void setIterationId(String iterationId) { + this.iterationId = iterationId; + } + + public WorkItemVo withModuleId(String moduleId) { + this.moduleId = moduleId; + return this; + } + + /** + * 模块ID + * @return moduleId + */ + public String getModuleId() { + return moduleId; + } + + public void setModuleId(String moduleId) { + this.moduleId = moduleId; + } + + public WorkItemVo withSeverityId(String severityId) { + this.severityId = severityId; + return this; + } + + /** + * 重要程度ID + * @return severityId + */ + public String getSeverityId() { + return severityId; + } + + public void setSeverityId(String severityId) { + this.severityId = severityId; + } + + public WorkItemVo withSeverityName(String severityName) { + this.severityName = severityName; + return this; + } + + /** + * 重要程度 + * @return severityName + */ + public String getSeverityName() { + return severityName; + } + + public void setSeverityName(String severityName) { + this.severityName = severityName; + } + + public WorkItemVo withParentWorkitemId(String parentWorkitemId) { + this.parentWorkitemId = parentWorkitemId; + return this; + } + + /** + * 父工作项编号 + * @return parentWorkitemId + */ + public String getParentWorkitemId() { + return parentWorkitemId; + } + + public void setParentWorkitemId(String parentWorkitemId) { + this.parentWorkitemId = parentWorkitemId; + } + + public WorkItemVo withBoardId(String boardId) { + this.boardId = boardId; + return this; + } + + /** + * 看板ID + * @return boardId + */ + public String getBoardId() { + return boardId; + } + + public void setBoardId(String boardId) { + this.boardId = boardId; + } + + public WorkItemVo withBoardName(String boardName) { + this.boardName = boardName; + return this; + } + + /** + * 看板 + * @return boardName + */ + public String getBoardName() { + return boardName; + } + + public void setBoardName(String boardName) { + this.boardName = boardName; + } + + public WorkItemVo withCreateTime(OffsetDateTime createTime) { + this.createTime = createTime; + return this; + } + + /** + * 创建时间 + * @return createTime + */ + public OffsetDateTime getCreateTime() { + return createTime; + } + + public void setCreateTime(OffsetDateTime createTime) { + this.createTime = createTime; + } + + public WorkItemVo withUpdateTime(OffsetDateTime updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * 更新时间 + * @return updateTime + */ + public OffsetDateTime getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(OffsetDateTime updateTime) { + this.updateTime = updateTime; + } + + public WorkItemVo withIterationName(String iterationName) { + this.iterationName = iterationName; + return this; + } + + /** + * 迭代名 + * @return iterationName + */ + public String getIterationName() { + return iterationName; + } + + public void setIterationName(String iterationName) { + this.iterationName = iterationName; + } + + public WorkItemVo withModuleName(String moduleName) { + this.moduleName = moduleName; + return this; + } + + /** + * 模块名 + * @return moduleName + */ + public String getModuleName() { + return moduleName; + } + + public void setModuleName(String moduleName) { + this.moduleName = moduleName; + } + + public WorkItemVo withModulePath(String modulePath) { + this.modulePath = modulePath; + return this; + } + + /** + * 模块path + * @return modulePath + */ + public String getModulePath() { + return modulePath; + } + + public void setModulePath(String modulePath) { + this.modulePath = modulePath; + } + + public WorkItemVo withModulePathName(String modulePathName) { + this.modulePathName = modulePathName; + return this; + } + + /** + * 模块路径名称 + * @return modulePathName + */ + public String getModulePathName() { + return modulePathName; + } + + public void setModulePathName(String modulePathName) { + this.modulePathName = modulePathName; + } + + public WorkItemVo withOwnerName(String ownerName) { + this.ownerName = ownerName; + return this; + } + + /** + * 处理人 + * @return ownerName + */ + public String getOwnerName() { + return ownerName; + } + + public void setOwnerName(String ownerName) { + this.ownerName = ownerName; + } + + public WorkItemVo withHaveChildDynamic(Boolean haveChildDynamic) { + this.haveChildDynamic = haveChildDynamic; + return this; + } + + /** + * 父工作项下是否有子工作项包含动态 + * @return haveChildDynamic + */ + public Boolean getHaveChildDynamic() { + return haveChildDynamic; + } + + public void setHaveChildDynamic(Boolean haveChildDynamic) { + this.haveChildDynamic = haveChildDynamic; + } + + public WorkItemVo withHasChild(Boolean hasChild) { + this.hasChild = hasChild; + return this; + } + + /** + * 父工作项下是否有子工作项 + * @return hasChild + */ + public Boolean getHasChild() { + return hasChild; + } + + public void setHasChild(Boolean hasChild) { + this.hasChild = hasChild; + } + + public WorkItemVo withIssueDynamicCount(Integer issueDynamicCount) { + this.issueDynamicCount = issueDynamicCount; + return this; + } + + /** + * 需求动态数量 + * @return issueDynamicCount + */ + public Integer getIssueDynamicCount() { + return issueDynamicCount; + } + + public void setIssueDynamicCount(Integer issueDynamicCount) { + this.issueDynamicCount = issueDynamicCount; + } + + public WorkItemVo withCaseCount(Integer caseCount) { + this.caseCount = caseCount; + return this; + } + + /** + * 用例数量 + * @return caseCount + */ + public Integer getCaseCount() { + return caseCount; + } + + public void setCaseCount(Integer caseCount) { + this.caseCount = caseCount; + } + + public WorkItemVo withSequenceId(String sequenceId) { + this.sequenceId = sequenceId; + return this; + } + + /** + * xBoard项目工作项序列号 + * @return sequenceId + */ + public String getSequenceId() { + return sequenceId; + } + + public void setSequenceId(String sequenceId) { + this.sequenceId = sequenceId; + } + + public WorkItemVo withPiId(String piId) { + this.piId = piId; + return this; + } + + /** + * pi的id,层级关系:pi -> 迭代 -> 需求 + * @return piId + */ + public String getPiId() { + return piId; + } + + public void setPiId(String piId) { + this.piId = piId; + } + + public WorkItemVo withPiName(String piName) { + this.piName = piName; + return this; + } + + /** + * 迭代ID + * @return piName + */ + public String getPiName() { + return piName; + } + + public void setPiName(String piName) { + this.piName = piName; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + WorkItemVo that = (WorkItemVo) obj; + return Objects.equals(this.name, that.name) && Objects.equals(this.owner, that.owner) + && Objects.equals(this.path, that.path) && Objects.equals(this.startDate, that.startDate) + && Objects.equals(this.dueDate, that.dueDate) && Objects.equals(this.region, that.region) + && Objects.equals(this.creator, that.creator) && Objects.equals(this.updator, that.updator) + && Objects.equals(this.projectUuid, that.projectUuid) && Objects.equals(this.workItemId, that.workItemId) + && Objects.equals(this.statusId, that.statusId) && Objects.equals(this.statusName, that.statusName) + && Objects.equals(this.trackerId, that.trackerId) && Objects.equals(this.trackerName, that.trackerName) + && Objects.equals(this.iterationId, that.iterationId) && Objects.equals(this.moduleId, that.moduleId) + && Objects.equals(this.severityId, that.severityId) && Objects.equals(this.severityName, that.severityName) + && Objects.equals(this.parentWorkitemId, that.parentWorkitemId) + && Objects.equals(this.boardId, that.boardId) && Objects.equals(this.boardName, that.boardName) + && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.updateTime, that.updateTime) + && Objects.equals(this.iterationName, that.iterationName) + && Objects.equals(this.moduleName, that.moduleName) && Objects.equals(this.modulePath, that.modulePath) + && Objects.equals(this.modulePathName, that.modulePathName) + && Objects.equals(this.ownerName, that.ownerName) + && Objects.equals(this.haveChildDynamic, that.haveChildDynamic) + && Objects.equals(this.hasChild, that.hasChild) + && Objects.equals(this.issueDynamicCount, that.issueDynamicCount) + && Objects.equals(this.caseCount, that.caseCount) && Objects.equals(this.sequenceId, that.sequenceId) + && Objects.equals(this.piId, that.piId) && Objects.equals(this.piName, that.piName); + } + + @Override + public int hashCode() { + return Objects.hash(name, + owner, + path, + startDate, + dueDate, + region, + creator, + updator, + projectUuid, + workItemId, + statusId, + statusName, + trackerId, + trackerName, + iterationId, + moduleId, + severityId, + severityName, + parentWorkitemId, + boardId, + boardName, + createTime, + updateTime, + iterationName, + moduleName, + modulePath, + modulePathName, + ownerName, + haveChildDynamic, + hasChild, + issueDynamicCount, + caseCount, + sequenceId, + piId, + piName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WorkItemVo {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" owner: ").append(toIndentedString(owner)).append("\n"); + sb.append(" path: ").append(toIndentedString(path)).append("\n"); + sb.append(" startDate: ").append(toIndentedString(startDate)).append("\n"); + sb.append(" dueDate: ").append(toIndentedString(dueDate)).append("\n"); + sb.append(" region: ").append(toIndentedString(region)).append("\n"); + sb.append(" creator: ").append(toIndentedString(creator)).append("\n"); + sb.append(" updator: ").append(toIndentedString(updator)).append("\n"); + sb.append(" projectUuid: ").append(toIndentedString(projectUuid)).append("\n"); + sb.append(" workItemId: ").append(toIndentedString(workItemId)).append("\n"); + sb.append(" statusId: ").append(toIndentedString(statusId)).append("\n"); + sb.append(" statusName: ").append(toIndentedString(statusName)).append("\n"); + sb.append(" trackerId: ").append(toIndentedString(trackerId)).append("\n"); + sb.append(" trackerName: ").append(toIndentedString(trackerName)).append("\n"); + sb.append(" iterationId: ").append(toIndentedString(iterationId)).append("\n"); + sb.append(" moduleId: ").append(toIndentedString(moduleId)).append("\n"); + sb.append(" severityId: ").append(toIndentedString(severityId)).append("\n"); + sb.append(" severityName: ").append(toIndentedString(severityName)).append("\n"); + sb.append(" parentWorkitemId: ").append(toIndentedString(parentWorkitemId)).append("\n"); + sb.append(" boardId: ").append(toIndentedString(boardId)).append("\n"); + sb.append(" boardName: ").append(toIndentedString(boardName)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); + sb.append(" iterationName: ").append(toIndentedString(iterationName)).append("\n"); + sb.append(" moduleName: ").append(toIndentedString(moduleName)).append("\n"); + sb.append(" modulePath: ").append(toIndentedString(modulePath)).append("\n"); + sb.append(" modulePathName: ").append(toIndentedString(modulePathName)).append("\n"); + sb.append(" ownerName: ").append(toIndentedString(ownerName)).append("\n"); + sb.append(" haveChildDynamic: ").append(toIndentedString(haveChildDynamic)).append("\n"); + sb.append(" hasChild: ").append(toIndentedString(hasChild)).append("\n"); + sb.append(" issueDynamicCount: ").append(toIndentedString(issueDynamicCount)).append("\n"); + sb.append(" caseCount: ").append(toIndentedString(caseCount)).append("\n"); + sb.append(" sequenceId: ").append(toIndentedString(sequenceId)).append("\n"); + sb.append(" piId: ").append(toIndentedString(piId)).append("\n"); + sb.append(" piName: ").append(toIndentedString(piName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cms/pom.xml b/services/cms/pom.xml index 987a99fd11..27aab43482 100644 --- a/services/cms/pom.xml +++ b/services/cms/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-cms - 3.1.99 + 3.1.100 Huawei Cloud SDK for CMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/codeartsartifact/pom.xml b/services/codeartsartifact/pom.xml index b76aa743db..71c8d1dfe7 100644 --- a/services/codeartsartifact/pom.xml +++ b/services/codeartsartifact/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-codeartsartifact - 3.1.99 + 3.1.100 Huawei Cloud SDK for CODEARTSARTIFACT 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/codeartsbuild/pom.xml b/services/codeartsbuild/pom.xml index 1006358649..3fd8c67040 100644 --- a/services/codeartsbuild/pom.xml +++ b/services/codeartsbuild/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-codeartsbuild - 3.1.99 + 3.1.100 Huawei Cloud SDK for CODEARTSBUILD 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/codeartscheck/pom.xml b/services/codeartscheck/pom.xml index a6835e7b3a..083982d431 100644 --- a/services/codeartscheck/pom.xml +++ b/services/codeartscheck/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-codeartscheck - 3.1.99 + 3.1.100 Huawei Cloud SDK for CODEARTSCHECK 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/codeartsdeploy/pom.xml b/services/codeartsdeploy/pom.xml index 31291636e2..3da0670a30 100644 --- a/services/codeartsdeploy/pom.xml +++ b/services/codeartsdeploy/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-codeartsdeploy - 3.1.99 + 3.1.100 Huawei Cloud SDK for CODEARTSDEPLOY 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/codeartsinspector/pom.xml b/services/codeartsinspector/pom.xml index d0fdea90a8..4dda4ffef0 100644 --- a/services/codeartsinspector/pom.xml +++ b/services/codeartsinspector/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-codeartsinspector - 3.1.99 + 3.1.100 Huawei Cloud SDK for CODEARTSINSPECTOR 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/codeartspipeline/pom.xml b/services/codeartspipeline/pom.xml index 5e11115cce..6a093984ed 100644 --- a/services/codeartspipeline/pom.xml +++ b/services/codeartspipeline/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-codeartspipeline - 3.1.99 + 3.1.100 Huawei Cloud SDK for CODEARTSPIPELINE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/codecraft/pom.xml b/services/codecraft/pom.xml index e2910da36e..8af5e4ade7 100644 --- a/services/codecraft/pom.xml +++ b/services/codecraft/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-codecraft - 3.1.99 + 3.1.100 Huawei Cloud SDK for CODECRAFT 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/codehub/pom.xml b/services/codehub/pom.xml index bb89fe6071..d98d3dad3f 100644 --- a/services/codehub/pom.xml +++ b/services/codehub/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-codehub - 3.1.99 + 3.1.100 Huawei Cloud SDK for CODEHUB 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/config/pom.xml b/services/config/pom.xml index 47336b51e1..5af71c9479 100644 --- a/services/config/pom.xml +++ b/services/config/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-config - 3.1.99 + 3.1.100 Huawei Cloud SDK for CONFIG 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/ConfigAsyncClient.java b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/ConfigAsyncClient.java index 5e80d9924b..65304c5944 100644 --- a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/ConfigAsyncClient.java +++ b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/ConfigAsyncClient.java @@ -1,5 +1,9 @@ package com.huaweicloud.sdk.config.v1; +import com.huaweicloud.sdk.config.v1.model.BatchCreateRemediationExceptionsRequest; +import com.huaweicloud.sdk.config.v1.model.BatchCreateRemediationExceptionsResponse; +import com.huaweicloud.sdk.config.v1.model.BatchDeleteRemediationExceptionsRequest; +import com.huaweicloud.sdk.config.v1.model.BatchDeleteRemediationExceptionsResponse; import com.huaweicloud.sdk.config.v1.model.CollectAllResourcesSummaryRequest; import com.huaweicloud.sdk.config.v1.model.CollectAllResourcesSummaryResponse; import com.huaweicloud.sdk.config.v1.model.CollectConformancePackComplianceSummaryRequest; @@ -18,6 +22,8 @@ import com.huaweicloud.sdk.config.v1.model.CreateConfigurationAggregatorResponse; import com.huaweicloud.sdk.config.v1.model.CreateConformancePackRequest; import com.huaweicloud.sdk.config.v1.model.CreateConformancePackResponse; +import com.huaweicloud.sdk.config.v1.model.CreateOrUpdateRemediationConfigurationRequest; +import com.huaweicloud.sdk.config.v1.model.CreateOrUpdateRemediationConfigurationResponse; import com.huaweicloud.sdk.config.v1.model.CreateOrganizationConformancePackRequest; import com.huaweicloud.sdk.config.v1.model.CreateOrganizationConformancePackResponse; import com.huaweicloud.sdk.config.v1.model.CreateOrganizationPolicyAssignmentRequest; @@ -42,6 +48,8 @@ import com.huaweicloud.sdk.config.v1.model.DeletePendingAggregationRequestResponse; import com.huaweicloud.sdk.config.v1.model.DeletePolicyAssignmentRequest; import com.huaweicloud.sdk.config.v1.model.DeletePolicyAssignmentResponse; +import com.huaweicloud.sdk.config.v1.model.DeleteRemediationConfigurationRequest; +import com.huaweicloud.sdk.config.v1.model.DeleteRemediationConfigurationResponse; import com.huaweicloud.sdk.config.v1.model.DeleteStoredQueryRequest; import com.huaweicloud.sdk.config.v1.model.DeleteStoredQueryResponse; import com.huaweicloud.sdk.config.v1.model.DeleteTrackerConfigRequest; @@ -94,6 +102,10 @@ import com.huaweicloud.sdk.config.v1.model.ListProvidersResponse; import com.huaweicloud.sdk.config.v1.model.ListRegionsRequest; import com.huaweicloud.sdk.config.v1.model.ListRegionsResponse; +import com.huaweicloud.sdk.config.v1.model.ListRemediationExceptionsRequest; +import com.huaweicloud.sdk.config.v1.model.ListRemediationExceptionsResponse; +import com.huaweicloud.sdk.config.v1.model.ListRemediationExecutionStatusesRequest; +import com.huaweicloud.sdk.config.v1.model.ListRemediationExecutionStatusesResponse; import com.huaweicloud.sdk.config.v1.model.ListResourcesByTagRequest; import com.huaweicloud.sdk.config.v1.model.ListResourcesByTagResponse; import com.huaweicloud.sdk.config.v1.model.ListResourcesRequest; @@ -116,6 +128,8 @@ import com.huaweicloud.sdk.config.v1.model.RunEvaluationByPolicyAssignmentIdResponse; import com.huaweicloud.sdk.config.v1.model.RunQueryRequest; import com.huaweicloud.sdk.config.v1.model.RunQueryResponse; +import com.huaweicloud.sdk.config.v1.model.RunRemediationExecutionRequest; +import com.huaweicloud.sdk.config.v1.model.RunRemediationExecutionResponse; import com.huaweicloud.sdk.config.v1.model.ShowAggregateComplianceDetailsByPolicyAssignmentRequest; import com.huaweicloud.sdk.config.v1.model.ShowAggregateComplianceDetailsByPolicyAssignmentResponse; import com.huaweicloud.sdk.config.v1.model.ShowAggregateDiscoveredResourceCountsRequest; @@ -150,6 +164,8 @@ import com.huaweicloud.sdk.config.v1.model.ShowOrganizationPolicyAssignmentStatusesResponse; import com.huaweicloud.sdk.config.v1.model.ShowPolicyAssignmentRequest; import com.huaweicloud.sdk.config.v1.model.ShowPolicyAssignmentResponse; +import com.huaweicloud.sdk.config.v1.model.ShowRemediationConfigurationRequest; +import com.huaweicloud.sdk.config.v1.model.ShowRemediationConfigurationResponse; import com.huaweicloud.sdk.config.v1.model.ShowResourceByIdRequest; import com.huaweicloud.sdk.config.v1.model.ShowResourceByIdResponse; import com.huaweicloud.sdk.config.v1.model.ShowResourceDetailRequest; @@ -1342,6 +1358,96 @@ public AsyncInvoker sho return new AsyncInvoker<>(request, ConfigMeta.showResourceHistory, hcClient); } + /** + * 批量创建修正例外 + * + * 批量创建合规规则修正例外。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchCreateRemediationExceptionsRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture batchCreateRemediationExceptionsAsync( + BatchCreateRemediationExceptionsRequest request) { + return hcClient.asyncInvokeHttp(request, ConfigMeta.batchCreateRemediationExceptions); + } + + /** + * 批量创建修正例外 + * + * 批量创建合规规则修正例外。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchCreateRemediationExceptionsRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker batchCreateRemediationExceptionsAsyncInvoker( + BatchCreateRemediationExceptionsRequest request) { + return new AsyncInvoker<>(request, ConfigMeta.batchCreateRemediationExceptions, hcClient); + } + + /** + * 批量删除修正例外 + * + * 批量删除合规规则修正例外。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchDeleteRemediationExceptionsRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture batchDeleteRemediationExceptionsAsync( + BatchDeleteRemediationExceptionsRequest request) { + return hcClient.asyncInvokeHttp(request, ConfigMeta.batchDeleteRemediationExceptions); + } + + /** + * 批量删除修正例外 + * + * 批量删除合规规则修正例外。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchDeleteRemediationExceptionsRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker batchDeleteRemediationExceptionsAsyncInvoker( + BatchDeleteRemediationExceptionsRequest request) { + return new AsyncInvoker<>(request, ConfigMeta.batchDeleteRemediationExceptions, hcClient); + } + + /** + * 创建或更新修正配置 + * + * 创建或更新合规规则修正配置。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateOrUpdateRemediationConfigurationRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture createOrUpdateRemediationConfigurationAsync( + CreateOrUpdateRemediationConfigurationRequest request) { + return hcClient.asyncInvokeHttp(request, ConfigMeta.createOrUpdateRemediationConfiguration); + } + + /** + * 创建或更新修正配置 + * + * 创建或更新合规规则修正配置。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateOrUpdateRemediationConfigurationRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker createOrUpdateRemediationConfigurationAsyncInvoker( + CreateOrUpdateRemediationConfigurationRequest request) { + return new AsyncInvoker<>(request, ConfigMeta.createOrUpdateRemediationConfiguration, hcClient); + } + /** * 创建组织合规规则 * @@ -1462,6 +1568,36 @@ public AsyncInvoker(request, ConfigMeta.deletePolicyAssignment, hcClient); } + /** + * 删除修正配置 + * + * 删除合规规则修正配置。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteRemediationConfigurationRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture deleteRemediationConfigurationAsync( + DeleteRemediationConfigurationRequest request) { + return hcClient.asyncInvokeHttp(request, ConfigMeta.deleteRemediationConfiguration); + } + + /** + * 删除修正配置 + * + * 删除合规规则修正配置。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteRemediationConfigurationRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker deleteRemediationConfigurationAsyncInvoker( + DeleteRemediationConfigurationRequest request) { + return new AsyncInvoker<>(request, ConfigMeta.deleteRemediationConfiguration, hcClient); + } + /** * 停用合规规则 * @@ -1702,6 +1838,66 @@ public AsyncInvoker(request, ConfigMeta.listPolicyStatesByResourceId, hcClient); } + /** + * 查询修正例外 + * + * 查询合规规则修正例外。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListRemediationExceptionsRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listRemediationExceptionsAsync( + ListRemediationExceptionsRequest request) { + return hcClient.asyncInvokeHttp(request, ConfigMeta.listRemediationExceptions); + } + + /** + * 查询修正例外 + * + * 查询合规规则修正例外。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListRemediationExceptionsRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listRemediationExceptionsAsyncInvoker( + ListRemediationExceptionsRequest request) { + return new AsyncInvoker<>(request, ConfigMeta.listRemediationExceptions, hcClient); + } + + /** + * 查询修正执行结果 + * + * 查询合规规则修正执行结果详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListRemediationExecutionStatusesRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listRemediationExecutionStatusesAsync( + ListRemediationExecutionStatusesRequest request) { + return hcClient.asyncInvokeHttp(request, ConfigMeta.listRemediationExecutionStatuses); + } + + /** + * 查询修正执行结果 + * + * 查询合规规则修正执行结果详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListRemediationExecutionStatusesRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listRemediationExecutionStatusesAsyncInvoker( + ListRemediationExecutionStatusesRequest request) { + return new AsyncInvoker<>(request, ConfigMeta.listRemediationExecutionStatuses, hcClient); + } + /** * 运行合规评估 * @@ -1732,6 +1928,36 @@ public AsyncInvoker(request, ConfigMeta.runEvaluationByPolicyAssignmentId, hcClient); } + /** + * 运行修正执行 + * + * 手动运行合规规则修正执行。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request RunRemediationExecutionRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture runRemediationExecutionAsync( + RunRemediationExecutionRequest request) { + return hcClient.asyncInvokeHttp(request, ConfigMeta.runRemediationExecution); + } + + /** + * 运行修正执行 + * + * 手动运行合规规则修正执行。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request RunRemediationExecutionRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker runRemediationExecutionAsyncInvoker( + RunRemediationExecutionRequest request) { + return new AsyncInvoker<>(request, ConfigMeta.runRemediationExecution, hcClient); + } + /** * 查询单个内置策略 * @@ -1912,6 +2138,36 @@ public AsyncInvoker s return new AsyncInvoker<>(request, ConfigMeta.showPolicyAssignment, hcClient); } + /** + * 查询修正配置 + * + * 查询合规规则修正配置。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowRemediationConfigurationRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showRemediationConfigurationAsync( + ShowRemediationConfigurationRequest request) { + return hcClient.asyncInvokeHttp(request, ConfigMeta.showRemediationConfiguration); + } + + /** + * 查询修正配置 + * + * 查询合规规则修正配置。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowRemediationConfigurationRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showRemediationConfigurationAsyncInvoker( + ShowRemediationConfigurationRequest request) { + return new AsyncInvoker<>(request, ConfigMeta.showRemediationConfiguration, hcClient); + } + /** * 更新组织合规规则 * diff --git a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/ConfigClient.java b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/ConfigClient.java index e665b024c0..a7a28e4e7f 100644 --- a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/ConfigClient.java +++ b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/ConfigClient.java @@ -1,5 +1,9 @@ package com.huaweicloud.sdk.config.v1; +import com.huaweicloud.sdk.config.v1.model.BatchCreateRemediationExceptionsRequest; +import com.huaweicloud.sdk.config.v1.model.BatchCreateRemediationExceptionsResponse; +import com.huaweicloud.sdk.config.v1.model.BatchDeleteRemediationExceptionsRequest; +import com.huaweicloud.sdk.config.v1.model.BatchDeleteRemediationExceptionsResponse; import com.huaweicloud.sdk.config.v1.model.CollectAllResourcesSummaryRequest; import com.huaweicloud.sdk.config.v1.model.CollectAllResourcesSummaryResponse; import com.huaweicloud.sdk.config.v1.model.CollectConformancePackComplianceSummaryRequest; @@ -18,6 +22,8 @@ import com.huaweicloud.sdk.config.v1.model.CreateConfigurationAggregatorResponse; import com.huaweicloud.sdk.config.v1.model.CreateConformancePackRequest; import com.huaweicloud.sdk.config.v1.model.CreateConformancePackResponse; +import com.huaweicloud.sdk.config.v1.model.CreateOrUpdateRemediationConfigurationRequest; +import com.huaweicloud.sdk.config.v1.model.CreateOrUpdateRemediationConfigurationResponse; import com.huaweicloud.sdk.config.v1.model.CreateOrganizationConformancePackRequest; import com.huaweicloud.sdk.config.v1.model.CreateOrganizationConformancePackResponse; import com.huaweicloud.sdk.config.v1.model.CreateOrganizationPolicyAssignmentRequest; @@ -42,6 +48,8 @@ import com.huaweicloud.sdk.config.v1.model.DeletePendingAggregationRequestResponse; import com.huaweicloud.sdk.config.v1.model.DeletePolicyAssignmentRequest; import com.huaweicloud.sdk.config.v1.model.DeletePolicyAssignmentResponse; +import com.huaweicloud.sdk.config.v1.model.DeleteRemediationConfigurationRequest; +import com.huaweicloud.sdk.config.v1.model.DeleteRemediationConfigurationResponse; import com.huaweicloud.sdk.config.v1.model.DeleteStoredQueryRequest; import com.huaweicloud.sdk.config.v1.model.DeleteStoredQueryResponse; import com.huaweicloud.sdk.config.v1.model.DeleteTrackerConfigRequest; @@ -94,6 +102,10 @@ import com.huaweicloud.sdk.config.v1.model.ListProvidersResponse; import com.huaweicloud.sdk.config.v1.model.ListRegionsRequest; import com.huaweicloud.sdk.config.v1.model.ListRegionsResponse; +import com.huaweicloud.sdk.config.v1.model.ListRemediationExceptionsRequest; +import com.huaweicloud.sdk.config.v1.model.ListRemediationExceptionsResponse; +import com.huaweicloud.sdk.config.v1.model.ListRemediationExecutionStatusesRequest; +import com.huaweicloud.sdk.config.v1.model.ListRemediationExecutionStatusesResponse; import com.huaweicloud.sdk.config.v1.model.ListResourcesByTagRequest; import com.huaweicloud.sdk.config.v1.model.ListResourcesByTagResponse; import com.huaweicloud.sdk.config.v1.model.ListResourcesRequest; @@ -116,6 +128,8 @@ import com.huaweicloud.sdk.config.v1.model.RunEvaluationByPolicyAssignmentIdResponse; import com.huaweicloud.sdk.config.v1.model.RunQueryRequest; import com.huaweicloud.sdk.config.v1.model.RunQueryResponse; +import com.huaweicloud.sdk.config.v1.model.RunRemediationExecutionRequest; +import com.huaweicloud.sdk.config.v1.model.RunRemediationExecutionResponse; import com.huaweicloud.sdk.config.v1.model.ShowAggregateComplianceDetailsByPolicyAssignmentRequest; import com.huaweicloud.sdk.config.v1.model.ShowAggregateComplianceDetailsByPolicyAssignmentResponse; import com.huaweicloud.sdk.config.v1.model.ShowAggregateDiscoveredResourceCountsRequest; @@ -150,6 +164,8 @@ import com.huaweicloud.sdk.config.v1.model.ShowOrganizationPolicyAssignmentStatusesResponse; import com.huaweicloud.sdk.config.v1.model.ShowPolicyAssignmentRequest; import com.huaweicloud.sdk.config.v1.model.ShowPolicyAssignmentResponse; +import com.huaweicloud.sdk.config.v1.model.ShowRemediationConfigurationRequest; +import com.huaweicloud.sdk.config.v1.model.ShowRemediationConfigurationResponse; import com.huaweicloud.sdk.config.v1.model.ShowResourceByIdRequest; import com.huaweicloud.sdk.config.v1.model.ShowResourceByIdResponse; import com.huaweicloud.sdk.config.v1.model.ShowResourceDetailRequest; @@ -1332,6 +1348,96 @@ public SyncInvoker show return new SyncInvoker<>(request, ConfigMeta.showResourceHistory, hcClient); } + /** + * 批量创建修正例外 + * + * 批量创建合规规则修正例外。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchCreateRemediationExceptionsRequest 请求对象 + * @return BatchCreateRemediationExceptionsResponse + */ + public BatchCreateRemediationExceptionsResponse batchCreateRemediationExceptions( + BatchCreateRemediationExceptionsRequest request) { + return hcClient.syncInvokeHttp(request, ConfigMeta.batchCreateRemediationExceptions); + } + + /** + * 批量创建修正例外 + * + * 批量创建合规规则修正例外。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchCreateRemediationExceptionsRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker batchCreateRemediationExceptionsInvoker( + BatchCreateRemediationExceptionsRequest request) { + return new SyncInvoker<>(request, ConfigMeta.batchCreateRemediationExceptions, hcClient); + } + + /** + * 批量删除修正例外 + * + * 批量删除合规规则修正例外。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchDeleteRemediationExceptionsRequest 请求对象 + * @return BatchDeleteRemediationExceptionsResponse + */ + public BatchDeleteRemediationExceptionsResponse batchDeleteRemediationExceptions( + BatchDeleteRemediationExceptionsRequest request) { + return hcClient.syncInvokeHttp(request, ConfigMeta.batchDeleteRemediationExceptions); + } + + /** + * 批量删除修正例外 + * + * 批量删除合规规则修正例外。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchDeleteRemediationExceptionsRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker batchDeleteRemediationExceptionsInvoker( + BatchDeleteRemediationExceptionsRequest request) { + return new SyncInvoker<>(request, ConfigMeta.batchDeleteRemediationExceptions, hcClient); + } + + /** + * 创建或更新修正配置 + * + * 创建或更新合规规则修正配置。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateOrUpdateRemediationConfigurationRequest 请求对象 + * @return CreateOrUpdateRemediationConfigurationResponse + */ + public CreateOrUpdateRemediationConfigurationResponse createOrUpdateRemediationConfiguration( + CreateOrUpdateRemediationConfigurationRequest request) { + return hcClient.syncInvokeHttp(request, ConfigMeta.createOrUpdateRemediationConfiguration); + } + + /** + * 创建或更新修正配置 + * + * 创建或更新合规规则修正配置。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateOrUpdateRemediationConfigurationRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker createOrUpdateRemediationConfigurationInvoker( + CreateOrUpdateRemediationConfigurationRequest request) { + return new SyncInvoker<>(request, ConfigMeta.createOrUpdateRemediationConfiguration, hcClient); + } + /** * 创建组织合规规则 * @@ -1450,6 +1556,36 @@ public SyncInvoker(request, ConfigMeta.deletePolicyAssignment, hcClient); } + /** + * 删除修正配置 + * + * 删除合规规则修正配置。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteRemediationConfigurationRequest 请求对象 + * @return DeleteRemediationConfigurationResponse + */ + public DeleteRemediationConfigurationResponse deleteRemediationConfiguration( + DeleteRemediationConfigurationRequest request) { + return hcClient.syncInvokeHttp(request, ConfigMeta.deleteRemediationConfiguration); + } + + /** + * 删除修正配置 + * + * 删除合规规则修正配置。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteRemediationConfigurationRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker deleteRemediationConfigurationInvoker( + DeleteRemediationConfigurationRequest request) { + return new SyncInvoker<>(request, ConfigMeta.deleteRemediationConfiguration, hcClient); + } + /** * 停用合规规则 * @@ -1686,6 +1822,65 @@ public SyncInvoker(request, ConfigMeta.listPolicyStatesByResourceId, hcClient); } + /** + * 查询修正例外 + * + * 查询合规规则修正例外。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListRemediationExceptionsRequest 请求对象 + * @return ListRemediationExceptionsResponse + */ + public ListRemediationExceptionsResponse listRemediationExceptions(ListRemediationExceptionsRequest request) { + return hcClient.syncInvokeHttp(request, ConfigMeta.listRemediationExceptions); + } + + /** + * 查询修正例外 + * + * 查询合规规则修正例外。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListRemediationExceptionsRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listRemediationExceptionsInvoker( + ListRemediationExceptionsRequest request) { + return new SyncInvoker<>(request, ConfigMeta.listRemediationExceptions, hcClient); + } + + /** + * 查询修正执行结果 + * + * 查询合规规则修正执行结果详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListRemediationExecutionStatusesRequest 请求对象 + * @return ListRemediationExecutionStatusesResponse + */ + public ListRemediationExecutionStatusesResponse listRemediationExecutionStatuses( + ListRemediationExecutionStatusesRequest request) { + return hcClient.syncInvokeHttp(request, ConfigMeta.listRemediationExecutionStatuses); + } + + /** + * 查询修正执行结果 + * + * 查询合规规则修正执行结果详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListRemediationExecutionStatusesRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listRemediationExecutionStatusesInvoker( + ListRemediationExecutionStatusesRequest request) { + return new SyncInvoker<>(request, ConfigMeta.listRemediationExecutionStatuses, hcClient); + } + /** * 运行合规评估 * @@ -1716,6 +1911,35 @@ public SyncInvoker(request, ConfigMeta.runEvaluationByPolicyAssignmentId, hcClient); } + /** + * 运行修正执行 + * + * 手动运行合规规则修正执行。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request RunRemediationExecutionRequest 请求对象 + * @return RunRemediationExecutionResponse + */ + public RunRemediationExecutionResponse runRemediationExecution(RunRemediationExecutionRequest request) { + return hcClient.syncInvokeHttp(request, ConfigMeta.runRemediationExecution); + } + + /** + * 运行修正执行 + * + * 手动运行合规规则修正执行。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request RunRemediationExecutionRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker runRemediationExecutionInvoker( + RunRemediationExecutionRequest request) { + return new SyncInvoker<>(request, ConfigMeta.runRemediationExecution, hcClient); + } + /** * 查询单个内置策略 * @@ -1894,6 +2118,36 @@ public SyncInvoker sh return new SyncInvoker<>(request, ConfigMeta.showPolicyAssignment, hcClient); } + /** + * 查询修正配置 + * + * 查询合规规则修正配置。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowRemediationConfigurationRequest 请求对象 + * @return ShowRemediationConfigurationResponse + */ + public ShowRemediationConfigurationResponse showRemediationConfiguration( + ShowRemediationConfigurationRequest request) { + return hcClient.syncInvokeHttp(request, ConfigMeta.showRemediationConfiguration); + } + + /** + * 查询修正配置 + * + * 查询合规规则修正配置。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowRemediationConfigurationRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showRemediationConfigurationInvoker( + ShowRemediationConfigurationRequest request) { + return new SyncInvoker<>(request, ConfigMeta.showRemediationConfiguration, hcClient); + } + /** * 更新组织合规规则 * diff --git a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/ConfigMeta.java b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/ConfigMeta.java index addd24dc27..2e3af1ed36 100644 --- a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/ConfigMeta.java +++ b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/ConfigMeta.java @@ -8,6 +8,12 @@ import com.huaweicloud.sdk.config.v1.model.AggregatePolicyStatesRequest; import com.huaweicloud.sdk.config.v1.model.AggregateResourceConfigRequest; import com.huaweicloud.sdk.config.v1.model.AggregationAuthorizationRequest; +import com.huaweicloud.sdk.config.v1.model.BatchCreateRemediationExceptionsRequest; +import com.huaweicloud.sdk.config.v1.model.BatchCreateRemediationExceptionsRequestBody; +import com.huaweicloud.sdk.config.v1.model.BatchCreateRemediationExceptionsResponse; +import com.huaweicloud.sdk.config.v1.model.BatchDeleteRemediationExceptionsRequest; +import com.huaweicloud.sdk.config.v1.model.BatchDeleteRemediationExceptionsRequestBody; +import com.huaweicloud.sdk.config.v1.model.BatchDeleteRemediationExceptionsResponse; import com.huaweicloud.sdk.config.v1.model.CollectAllResourcesSummaryRequest; import com.huaweicloud.sdk.config.v1.model.CollectAllResourcesSummaryResponse; import com.huaweicloud.sdk.config.v1.model.CollectConformancePackComplianceSummaryRequest; @@ -28,6 +34,8 @@ import com.huaweicloud.sdk.config.v1.model.CreateConfigurationAggregatorResponse; import com.huaweicloud.sdk.config.v1.model.CreateConformancePackRequest; import com.huaweicloud.sdk.config.v1.model.CreateConformancePackResponse; +import com.huaweicloud.sdk.config.v1.model.CreateOrUpdateRemediationConfigurationRequest; +import com.huaweicloud.sdk.config.v1.model.CreateOrUpdateRemediationConfigurationResponse; import com.huaweicloud.sdk.config.v1.model.CreateOrganizationConformancePackRequest; import com.huaweicloud.sdk.config.v1.model.CreateOrganizationConformancePackResponse; import com.huaweicloud.sdk.config.v1.model.CreateOrganizationPolicyAssignmentRequest; @@ -52,6 +60,8 @@ import com.huaweicloud.sdk.config.v1.model.DeletePendingAggregationRequestResponse; import com.huaweicloud.sdk.config.v1.model.DeletePolicyAssignmentRequest; import com.huaweicloud.sdk.config.v1.model.DeletePolicyAssignmentResponse; +import com.huaweicloud.sdk.config.v1.model.DeleteRemediationConfigurationRequest; +import com.huaweicloud.sdk.config.v1.model.DeleteRemediationConfigurationResponse; import com.huaweicloud.sdk.config.v1.model.DeleteStoredQueryRequest; import com.huaweicloud.sdk.config.v1.model.DeleteStoredQueryResponse; import com.huaweicloud.sdk.config.v1.model.DeleteTrackerConfigRequest; @@ -104,6 +114,10 @@ import com.huaweicloud.sdk.config.v1.model.ListProvidersResponse; import com.huaweicloud.sdk.config.v1.model.ListRegionsRequest; import com.huaweicloud.sdk.config.v1.model.ListRegionsResponse; +import com.huaweicloud.sdk.config.v1.model.ListRemediationExceptionsRequest; +import com.huaweicloud.sdk.config.v1.model.ListRemediationExceptionsResponse; +import com.huaweicloud.sdk.config.v1.model.ListRemediationExecutionStatusesRequest; +import com.huaweicloud.sdk.config.v1.model.ListRemediationExecutionStatusesResponse; import com.huaweicloud.sdk.config.v1.model.ListResourcesByTagRequest; import com.huaweicloud.sdk.config.v1.model.ListResourcesByTagResponse; import com.huaweicloud.sdk.config.v1.model.ListResourcesRequest; @@ -125,6 +139,8 @@ import com.huaweicloud.sdk.config.v1.model.PolicyAssignmentRequestBody; import com.huaweicloud.sdk.config.v1.model.PolicyStateRequestBody; import com.huaweicloud.sdk.config.v1.model.QueryRunRequestBody; +import com.huaweicloud.sdk.config.v1.model.RemediationConfigurationRequestBody; +import com.huaweicloud.sdk.config.v1.model.RemediationRunRequestBody; import com.huaweicloud.sdk.config.v1.model.ResourceInstancesReq; import com.huaweicloud.sdk.config.v1.model.ResourceSummaryResponseItem; import com.huaweicloud.sdk.config.v1.model.RunAggregateResourceQueryRequest; @@ -133,6 +149,8 @@ import com.huaweicloud.sdk.config.v1.model.RunEvaluationByPolicyAssignmentIdResponse; import com.huaweicloud.sdk.config.v1.model.RunQueryRequest; import com.huaweicloud.sdk.config.v1.model.RunQueryResponse; +import com.huaweicloud.sdk.config.v1.model.RunRemediationExecutionRequest; +import com.huaweicloud.sdk.config.v1.model.RunRemediationExecutionResponse; import com.huaweicloud.sdk.config.v1.model.ShowAggregateComplianceDetailsByPolicyAssignmentRequest; import com.huaweicloud.sdk.config.v1.model.ShowAggregateComplianceDetailsByPolicyAssignmentResponse; import com.huaweicloud.sdk.config.v1.model.ShowAggregateDiscoveredResourceCountsRequest; @@ -167,6 +185,8 @@ import com.huaweicloud.sdk.config.v1.model.ShowOrganizationPolicyAssignmentStatusesResponse; import com.huaweicloud.sdk.config.v1.model.ShowPolicyAssignmentRequest; import com.huaweicloud.sdk.config.v1.model.ShowPolicyAssignmentResponse; +import com.huaweicloud.sdk.config.v1.model.ShowRemediationConfigurationRequest; +import com.huaweicloud.sdk.config.v1.model.ShowRemediationConfigurationResponse; import com.huaweicloud.sdk.config.v1.model.ShowResourceByIdRequest; import com.huaweicloud.sdk.config.v1.model.ShowResourceByIdResponse; import com.huaweicloud.sdk.config.v1.model.ShowResourceDetailRequest; @@ -893,6 +913,12 @@ private static HttpRequestDefwithRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(CreateConformancePackRequest.XLanguageEnum.class), + f -> f.withMarshaller(CreateConformancePackRequest::getXLanguage, + CreateConformancePackRequest::setXLanguage)); builder.withRequestField("body", LocationType.Body, FieldExistence.NON_NULL_NON_EMPTY, @@ -925,6 +951,12 @@ private static HttpRequestDef f.withMarshaller(CreateOrganizationConformancePackRequest::getOrganizationId, CreateOrganizationConformancePackRequest::setOrganizationId)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(CreateOrganizationConformancePackRequest.XLanguageEnum.class), + f -> f.withMarshaller(CreateOrganizationConformancePackRequest::getXLanguage, + CreateOrganizationConformancePackRequest::setXLanguage)); builder.withRequestField("body", LocationType.Body, FieldExistence.NON_NULL_NON_EMPTY, @@ -1572,6 +1604,108 @@ private static HttpRequestDef batchCreateRemediationExceptions = + genForBatchCreateRemediationExceptions(); + + private static HttpRequestDef genForBatchCreateRemediationExceptions() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.POST, + BatchCreateRemediationExceptionsRequest.class, + BatchCreateRemediationExceptionsResponse.class) + .withName("BatchCreateRemediationExceptions") + .withUri( + "/v1/resource-manager/domains/{domain_id}/policy-assignments/{policy_assignment_id}/remediation-exception/create") + .withContentType("application/json"); + + // requests + builder.withRequestField("policy_assignment_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(BatchCreateRemediationExceptionsRequest::getPolicyAssignmentId, + BatchCreateRemediationExceptionsRequest::setPolicyAssignmentId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(BatchCreateRemediationExceptionsRequestBody.class), + f -> f.withMarshaller(BatchCreateRemediationExceptionsRequest::getBody, + BatchCreateRemediationExceptionsRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef batchDeleteRemediationExceptions = + genForBatchDeleteRemediationExceptions(); + + private static HttpRequestDef genForBatchDeleteRemediationExceptions() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.POST, + BatchDeleteRemediationExceptionsRequest.class, + BatchDeleteRemediationExceptionsResponse.class) + .withName("BatchDeleteRemediationExceptions") + .withUri( + "/v1/resource-manager/domains/{domain_id}/policy-assignments/{policy_assignment_id}/remediation-exception/delete") + .withContentType("application/json"); + + // requests + builder.withRequestField("policy_assignment_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(BatchDeleteRemediationExceptionsRequest::getPolicyAssignmentId, + BatchDeleteRemediationExceptionsRequest::setPolicyAssignmentId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(BatchDeleteRemediationExceptionsRequestBody.class), + f -> f.withMarshaller(BatchDeleteRemediationExceptionsRequest::getBody, + BatchDeleteRemediationExceptionsRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef createOrUpdateRemediationConfiguration = + genForCreateOrUpdateRemediationConfiguration(); + + private static HttpRequestDef genForCreateOrUpdateRemediationConfiguration() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.PUT, + CreateOrUpdateRemediationConfigurationRequest.class, + CreateOrUpdateRemediationConfigurationResponse.class) + .withName("CreateOrUpdateRemediationConfiguration") + .withUri( + "/v1/resource-manager/domains/{domain_id}/policy-assignments/{policy_assignment_id}/remediation-configuration") + .withContentType("application/json"); + + // requests + builder.withRequestField("policy_assignment_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateOrUpdateRemediationConfigurationRequest::getPolicyAssignmentId, + CreateOrUpdateRemediationConfigurationRequest::setPolicyAssignmentId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(RemediationConfigurationRequestBody.class), + f -> f.withMarshaller(CreateOrUpdateRemediationConfigurationRequest::getBody, + CreateOrUpdateRemediationConfigurationRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef createOrganizationPolicyAssignment = genForCreateOrganizationPolicyAssignment(); @@ -1686,6 +1820,34 @@ private static HttpRequestDef deleteRemediationConfiguration = + genForDeleteRemediationConfiguration(); + + private static HttpRequestDef genForDeleteRemediationConfiguration() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.DELETE, + DeleteRemediationConfigurationRequest.class, + DeleteRemediationConfigurationResponse.class) + .withName("DeleteRemediationConfiguration") + .withUri( + "/v1/resource-manager/domains/{domain_id}/policy-assignments/{policy_assignment_id}/remediation-configuration") + .withContentType("application/json"); + + // requests + builder.withRequestField("policy_assignment_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteRemediationConfigurationRequest::getPolicyAssignmentId, + DeleteRemediationConfigurationRequest::setPolicyAssignmentId)); + + // response + + return builder.build(); + } + public static final HttpRequestDef disablePolicyAssignment = genForDisablePolicyAssignment(); @@ -2000,6 +2162,110 @@ private static HttpRequestDef listRemediationExceptions = + genForListRemediationExceptions(); + + private static HttpRequestDef genForListRemediationExceptions() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.GET, + ListRemediationExceptionsRequest.class, + ListRemediationExceptionsResponse.class) + .withName("ListRemediationExceptions") + .withUri( + "/v1/resource-manager/domains/{domain_id}/policy-assignments/{policy_assignment_id}/remediation-exception") + .withContentType("application/json"); + + // requests + builder.withRequestField("policy_assignment_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListRemediationExceptionsRequest::getPolicyAssignmentId, + ListRemediationExceptionsRequest::setPolicyAssignmentId)); + builder.withRequestField("limit", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListRemediationExceptionsRequest::getLimit, + ListRemediationExceptionsRequest::setLimit)); + builder.withRequestField("marker", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListRemediationExceptionsRequest::getMarker, + ListRemediationExceptionsRequest::setMarker)); + builder.withRequestField("resource_id", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListRemediationExceptionsRequest::getResourceId, + ListRemediationExceptionsRequest::setResourceId)); + builder.withRequestField("resource_name", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListRemediationExceptionsRequest::getResourceName, + ListRemediationExceptionsRequest::setResourceName)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef listRemediationExecutionStatuses = + genForListRemediationExecutionStatuses(); + + private static HttpRequestDef genForListRemediationExecutionStatuses() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.GET, + ListRemediationExecutionStatusesRequest.class, + ListRemediationExecutionStatusesResponse.class) + .withName("ListRemediationExecutionStatuses") + .withUri( + "/v1/resource-manager/domains/{domain_id}/policy-assignments/{policy_assignment_id}/remediation-execution-statuses") + .withContentType("application/json"); + + // requests + builder.withRequestField("policy_assignment_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListRemediationExecutionStatusesRequest::getPolicyAssignmentId, + ListRemediationExecutionStatusesRequest::setPolicyAssignmentId)); + builder.withRequestField("limit", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListRemediationExecutionStatusesRequest::getLimit, + ListRemediationExecutionStatusesRequest::setLimit)); + builder.withRequestField("marker", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListRemediationExecutionStatusesRequest::getMarker, + ListRemediationExecutionStatusesRequest::setMarker)); + builder.withRequestField("resource_id", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListRemediationExecutionStatusesRequest::getResourceId, + ListRemediationExecutionStatusesRequest::setResourceId)); + builder.withRequestField("resource_name", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListRemediationExecutionStatusesRequest::getResourceName, + ListRemediationExecutionStatusesRequest::setResourceName)); + + // response + + return builder.build(); + } + public static final HttpRequestDef runEvaluationByPolicyAssignmentId = genForRunEvaluationByPolicyAssignmentId(); @@ -2028,6 +2294,36 @@ private static HttpRequestDef runRemediationExecution = + genForRunRemediationExecution(); + + private static HttpRequestDef genForRunRemediationExecution() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.POST, RunRemediationExecutionRequest.class, RunRemediationExecutionResponse.class) + .withName("RunRemediationExecution") + .withUri( + "/v1/resource-manager/domains/{domain_id}/policy-assignments/{policy_assignment_id}/remediation-execution") + .withContentType("application/json"); + + // requests + builder.withRequestField("policy_assignment_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(RunRemediationExecutionRequest::getPolicyAssignmentId, + RunRemediationExecutionRequest::setPolicyAssignmentId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(RemediationRunRequestBody.class), + f -> f.withMarshaller(RunRemediationExecutionRequest::getBody, RunRemediationExecutionRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef showBuiltInPolicyDefinition = genForShowBuiltInPolicyDefinition(); @@ -2257,6 +2553,34 @@ private static HttpRequestDef showRemediationConfiguration = + genForShowRemediationConfiguration(); + + private static HttpRequestDef genForShowRemediationConfiguration() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.GET, + ShowRemediationConfigurationRequest.class, + ShowRemediationConfigurationResponse.class) + .withName("ShowRemediationConfiguration") + .withUri( + "/v1/resource-manager/domains/{domain_id}/policy-assignments/{policy_assignment_id}/remediation-configuration") + .withContentType("application/json"); + + // requests + builder.withRequestField("policy_assignment_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowRemediationConfigurationRequest::getPolicyAssignmentId, + ShowRemediationConfigurationRequest::setPolicyAssignmentId)); + + // response + + return builder.build(); + } + public static final HttpRequestDef updateOrganizationPolicyAssignment = genForUpdateOrganizationPolicyAssignment(); diff --git a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/BatchCreateRemediationExceptionsRequest.java b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/BatchCreateRemediationExceptionsRequest.java new file mode 100644 index 0000000000..1eb535f1cb --- /dev/null +++ b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/BatchCreateRemediationExceptionsRequest.java @@ -0,0 +1,106 @@ +package com.huaweicloud.sdk.config.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class BatchCreateRemediationExceptionsRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "policy_assignment_id") + + private String policyAssignmentId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private BatchCreateRemediationExceptionsRequestBody body; + + public BatchCreateRemediationExceptionsRequest withPolicyAssignmentId(String policyAssignmentId) { + this.policyAssignmentId = policyAssignmentId; + return this; + } + + /** + * 规则ID + * @return policyAssignmentId + */ + public String getPolicyAssignmentId() { + return policyAssignmentId; + } + + public void setPolicyAssignmentId(String policyAssignmentId) { + this.policyAssignmentId = policyAssignmentId; + } + + public BatchCreateRemediationExceptionsRequest withBody(BatchCreateRemediationExceptionsRequestBody body) { + this.body = body; + return this; + } + + public BatchCreateRemediationExceptionsRequest withBody( + Consumer bodySetter) { + if (this.body == null) { + this.body = new BatchCreateRemediationExceptionsRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public BatchCreateRemediationExceptionsRequestBody getBody() { + return body; + } + + public void setBody(BatchCreateRemediationExceptionsRequestBody body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + BatchCreateRemediationExceptionsRequest that = (BatchCreateRemediationExceptionsRequest) obj; + return Objects.equals(this.policyAssignmentId, that.policyAssignmentId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(policyAssignmentId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchCreateRemediationExceptionsRequest {\n"); + sb.append(" policyAssignmentId: ").append(toIndentedString(policyAssignmentId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/BatchCreateRemediationExceptionsRequestBody.java b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/BatchCreateRemediationExceptionsRequestBody.java new file mode 100644 index 0000000000..9247034e18 --- /dev/null +++ b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/BatchCreateRemediationExceptionsRequestBody.java @@ -0,0 +1,92 @@ +package com.huaweicloud.sdk.config.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 批量创建合规规则修正例外的详情。 + */ +public class BatchCreateRemediationExceptionsRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "exceptions") + + private List exceptions = null; + + public BatchCreateRemediationExceptionsRequestBody withExceptions(List exceptions) { + this.exceptions = exceptions; + return this; + } + + public BatchCreateRemediationExceptionsRequestBody addExceptionsItem(RemediationExceptionRequest exceptionsItem) { + if (this.exceptions == null) { + this.exceptions = new ArrayList<>(); + } + this.exceptions.add(exceptionsItem); + return this; + } + + public BatchCreateRemediationExceptionsRequestBody withExceptions( + Consumer> exceptionsSetter) { + if (this.exceptions == null) { + this.exceptions = new ArrayList<>(); + } + exceptionsSetter.accept(this.exceptions); + return this; + } + + /** + * 批量创建合规规则修正例外的详情。 + * @return exceptions + */ + public List getExceptions() { + return exceptions; + } + + public void setExceptions(List exceptions) { + this.exceptions = exceptions; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + BatchCreateRemediationExceptionsRequestBody that = (BatchCreateRemediationExceptionsRequestBody) obj; + return Objects.equals(this.exceptions, that.exceptions); + } + + @Override + public int hashCode() { + return Objects.hash(exceptions); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchCreateRemediationExceptionsRequestBody {\n"); + sb.append(" exceptions: ").append(toIndentedString(exceptions)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/BatchCreateRemediationExceptionsResponse.java b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/BatchCreateRemediationExceptionsResponse.java new file mode 100644 index 0000000000..a358fa7734 --- /dev/null +++ b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/BatchCreateRemediationExceptionsResponse.java @@ -0,0 +1,36 @@ +package com.huaweicloud.sdk.config.v1.model; + +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class BatchCreateRemediationExceptionsResponse extends SdkResponse { + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchCreateRemediationExceptionsResponse {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/BatchDeleteRemediationExceptionsRequest.java b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/BatchDeleteRemediationExceptionsRequest.java new file mode 100644 index 0000000000..82f632838a --- /dev/null +++ b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/BatchDeleteRemediationExceptionsRequest.java @@ -0,0 +1,106 @@ +package com.huaweicloud.sdk.config.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class BatchDeleteRemediationExceptionsRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "policy_assignment_id") + + private String policyAssignmentId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private BatchDeleteRemediationExceptionsRequestBody body; + + public BatchDeleteRemediationExceptionsRequest withPolicyAssignmentId(String policyAssignmentId) { + this.policyAssignmentId = policyAssignmentId; + return this; + } + + /** + * 规则ID + * @return policyAssignmentId + */ + public String getPolicyAssignmentId() { + return policyAssignmentId; + } + + public void setPolicyAssignmentId(String policyAssignmentId) { + this.policyAssignmentId = policyAssignmentId; + } + + public BatchDeleteRemediationExceptionsRequest withBody(BatchDeleteRemediationExceptionsRequestBody body) { + this.body = body; + return this; + } + + public BatchDeleteRemediationExceptionsRequest withBody( + Consumer bodySetter) { + if (this.body == null) { + this.body = new BatchDeleteRemediationExceptionsRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public BatchDeleteRemediationExceptionsRequestBody getBody() { + return body; + } + + public void setBody(BatchDeleteRemediationExceptionsRequestBody body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + BatchDeleteRemediationExceptionsRequest that = (BatchDeleteRemediationExceptionsRequest) obj; + return Objects.equals(this.policyAssignmentId, that.policyAssignmentId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(policyAssignmentId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchDeleteRemediationExceptionsRequest {\n"); + sb.append(" policyAssignmentId: ").append(toIndentedString(policyAssignmentId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/BatchDeleteRemediationExceptionsRequestBody.java b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/BatchDeleteRemediationExceptionsRequestBody.java new file mode 100644 index 0000000000..b8dde2daee --- /dev/null +++ b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/BatchDeleteRemediationExceptionsRequestBody.java @@ -0,0 +1,92 @@ +package com.huaweicloud.sdk.config.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 批量删除合规规则修正例外的详情。 + */ +public class BatchDeleteRemediationExceptionsRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "exceptions") + + private List exceptions = null; + + public BatchDeleteRemediationExceptionsRequestBody withExceptions(List exceptions) { + this.exceptions = exceptions; + return this; + } + + public BatchDeleteRemediationExceptionsRequestBody addExceptionsItem(RemediationExceptionRequest exceptionsItem) { + if (this.exceptions == null) { + this.exceptions = new ArrayList<>(); + } + this.exceptions.add(exceptionsItem); + return this; + } + + public BatchDeleteRemediationExceptionsRequestBody withExceptions( + Consumer> exceptionsSetter) { + if (this.exceptions == null) { + this.exceptions = new ArrayList<>(); + } + exceptionsSetter.accept(this.exceptions); + return this; + } + + /** + * 批量删除合规规则修正例外的详情。 + * @return exceptions + */ + public List getExceptions() { + return exceptions; + } + + public void setExceptions(List exceptions) { + this.exceptions = exceptions; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + BatchDeleteRemediationExceptionsRequestBody that = (BatchDeleteRemediationExceptionsRequestBody) obj; + return Objects.equals(this.exceptions, that.exceptions); + } + + @Override + public int hashCode() { + return Objects.hash(exceptions); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchDeleteRemediationExceptionsRequestBody {\n"); + sb.append(" exceptions: ").append(toIndentedString(exceptions)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/BatchDeleteRemediationExceptionsResponse.java b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/BatchDeleteRemediationExceptionsResponse.java new file mode 100644 index 0000000000..3e25bb3d64 --- /dev/null +++ b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/BatchDeleteRemediationExceptionsResponse.java @@ -0,0 +1,36 @@ +package com.huaweicloud.sdk.config.v1.model; + +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class BatchDeleteRemediationExceptionsResponse extends SdkResponse { + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchDeleteRemediationExceptionsResponse {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/CreateConformancePackRequest.java b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/CreateConformancePackRequest.java index 38559daf5c..19104ed872 100644 --- a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/CreateConformancePackRequest.java +++ b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/CreateConformancePackRequest.java @@ -1,8 +1,13 @@ package com.huaweicloud.sdk.config.v1.model; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Consumer; @@ -11,11 +16,105 @@ */ public class CreateConformancePackRequest { + /** + * 合规包信息语言,默认为\"en-us\"英文 + */ + public static final class XLanguageEnum { + + /** + * Enum ZH_CN for value: "zh-cn" + */ + public static final XLanguageEnum ZH_CN = new XLanguageEnum("zh-cn"); + + /** + * Enum EN_US for value: "en-us" + */ + public static final XLanguageEnum EN_US = new XLanguageEnum("en-us"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("zh-cn", ZH_CN); + map.put("en-us", EN_US); + return Collections.unmodifiableMap(map); + } + + private String value; + + XLanguageEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static XLanguageEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new XLanguageEnum(value)); + } + + public static XLanguageEnum valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof XLanguageEnum) { + return this.value.equals(((XLanguageEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + + private XLanguageEnum xLanguage; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "body") private ConformancePackRequestBody body; + public CreateConformancePackRequest withXLanguage(XLanguageEnum xLanguage) { + this.xLanguage = xLanguage; + return this; + } + + /** + * 合规包信息语言,默认为\"en-us\"英文 + * @return xLanguage + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + public XLanguageEnum getXLanguage() { + return xLanguage; + } + + public void setXLanguage(XLanguageEnum xLanguage) { + this.xLanguage = xLanguage; + } + public CreateConformancePackRequest withBody(ConformancePackRequestBody body) { this.body = body; return this; @@ -51,18 +150,19 @@ public boolean equals(java.lang.Object obj) { return false; } CreateConformancePackRequest that = (CreateConformancePackRequest) obj; - return Objects.equals(this.body, that.body); + return Objects.equals(this.xLanguage, that.xLanguage) && Objects.equals(this.body, that.body); } @Override public int hashCode() { - return Objects.hash(body); + return Objects.hash(xLanguage, body); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateConformancePackRequest {\n"); + sb.append(" xLanguage: ").append(toIndentedString(xLanguage)).append("\n"); sb.append(" body: ").append(toIndentedString(body)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/CreateOrUpdateRemediationConfigurationRequest.java b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/CreateOrUpdateRemediationConfigurationRequest.java new file mode 100644 index 0000000000..c3d5567961 --- /dev/null +++ b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/CreateOrUpdateRemediationConfigurationRequest.java @@ -0,0 +1,106 @@ +package com.huaweicloud.sdk.config.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class CreateOrUpdateRemediationConfigurationRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "policy_assignment_id") + + private String policyAssignmentId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private RemediationConfigurationRequestBody body; + + public CreateOrUpdateRemediationConfigurationRequest withPolicyAssignmentId(String policyAssignmentId) { + this.policyAssignmentId = policyAssignmentId; + return this; + } + + /** + * 规则ID + * @return policyAssignmentId + */ + public String getPolicyAssignmentId() { + return policyAssignmentId; + } + + public void setPolicyAssignmentId(String policyAssignmentId) { + this.policyAssignmentId = policyAssignmentId; + } + + public CreateOrUpdateRemediationConfigurationRequest withBody(RemediationConfigurationRequestBody body) { + this.body = body; + return this; + } + + public CreateOrUpdateRemediationConfigurationRequest withBody( + Consumer bodySetter) { + if (this.body == null) { + this.body = new RemediationConfigurationRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public RemediationConfigurationRequestBody getBody() { + return body; + } + + public void setBody(RemediationConfigurationRequestBody body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateOrUpdateRemediationConfigurationRequest that = (CreateOrUpdateRemediationConfigurationRequest) obj; + return Objects.equals(this.policyAssignmentId, that.policyAssignmentId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(policyAssignmentId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateOrUpdateRemediationConfigurationRequest {\n"); + sb.append(" policyAssignmentId: ").append(toIndentedString(policyAssignmentId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/CreateOrUpdateRemediationConfigurationResponse.java b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/CreateOrUpdateRemediationConfigurationResponse.java new file mode 100644 index 0000000000..43a260b7cb --- /dev/null +++ b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/CreateOrUpdateRemediationConfigurationResponse.java @@ -0,0 +1,382 @@ +package com.huaweicloud.sdk.config.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class CreateOrUpdateRemediationConfigurationResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "automatic") + + private Boolean automatic; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "target_type") + + private String targetType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "target_id") + + private String targetId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "static_parameter") + + private List staticParameter = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "resource_parameter") + + private RemediationResourceParameter resourceParameter; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "maximum_attempts") + + private Integer maximumAttempts; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "retry_attempt_seconds") + + private Integer retryAttemptSeconds; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "auth_type") + + private String authType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "auth_value") + + private String authValue; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "created_at") + + private String createdAt; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "updated_at") + + private String updatedAt; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "created_by") + + private String createdBy; + + public CreateOrUpdateRemediationConfigurationResponse withAutomatic(Boolean automatic) { + this.automatic = automatic; + return this; + } + + /** + * 是否为自动修正。 + * @return automatic + */ + public Boolean getAutomatic() { + return automatic; + } + + public void setAutomatic(Boolean automatic) { + this.automatic = automatic; + } + + public CreateOrUpdateRemediationConfigurationResponse withTargetType(String targetType) { + this.targetType = targetType; + return this; + } + + /** + * 合规规则修正执行的方式。 + * @return targetType + */ + public String getTargetType() { + return targetType; + } + + public void setTargetType(String targetType) { + this.targetType = targetType; + } + + public CreateOrUpdateRemediationConfigurationResponse withTargetId(String targetId) { + this.targetId = targetId; + return this; + } + + /** + * 修正执行的目标ID。如果修正方式为fgs,则该值为函数工作流的函数urn;如果修正方式为rfs,则该值为资源编排服务的模板name与版本号,两者以/分割,如果没有指定默认V1。 + * @return targetId + */ + public String getTargetId() { + return targetId; + } + + public void setTargetId(String targetId) { + this.targetId = targetId; + } + + public CreateOrUpdateRemediationConfigurationResponse withStaticParameter( + List staticParameter) { + this.staticParameter = staticParameter; + return this; + } + + public CreateOrUpdateRemediationConfigurationResponse addStaticParameterItem( + RemediationStaticParameter staticParameterItem) { + if (this.staticParameter == null) { + this.staticParameter = new ArrayList<>(); + } + this.staticParameter.add(staticParameterItem); + return this; + } + + public CreateOrUpdateRemediationConfigurationResponse withStaticParameter( + Consumer> staticParameterSetter) { + if (this.staticParameter == null) { + this.staticParameter = new ArrayList<>(); + } + staticParameterSetter.accept(this.staticParameter); + return this; + } + + /** + * 修正执行的参数。 + * @return staticParameter + */ + public List getStaticParameter() { + return staticParameter; + } + + public void setStaticParameter(List staticParameter) { + this.staticParameter = staticParameter; + } + + public CreateOrUpdateRemediationConfigurationResponse withResourceParameter( + RemediationResourceParameter resourceParameter) { + this.resourceParameter = resourceParameter; + return this; + } + + public CreateOrUpdateRemediationConfigurationResponse withResourceParameter( + Consumer resourceParameterSetter) { + if (this.resourceParameter == null) { + this.resourceParameter = new RemediationResourceParameter(); + resourceParameterSetter.accept(this.resourceParameter); + } + + return this; + } + + /** + * Get resourceParameter + * @return resourceParameter + */ + public RemediationResourceParameter getResourceParameter() { + return resourceParameter; + } + + public void setResourceParameter(RemediationResourceParameter resourceParameter) { + this.resourceParameter = resourceParameter; + } + + public CreateOrUpdateRemediationConfigurationResponse withMaximumAttempts(Integer maximumAttempts) { + this.maximumAttempts = maximumAttempts; + return this; + } + + /** + * 指定时间内自动修正的最大尝试次数。 + * minimum: 1 + * maximum: 25 + * @return maximumAttempts + */ + public Integer getMaximumAttempts() { + return maximumAttempts; + } + + public void setMaximumAttempts(Integer maximumAttempts) { + this.maximumAttempts = maximumAttempts; + } + + public CreateOrUpdateRemediationConfigurationResponse withRetryAttemptSeconds(Integer retryAttemptSeconds) { + this.retryAttemptSeconds = retryAttemptSeconds; + return this; + } + + /** + * 用于防止循环修正的时间窗口,如果在指定时间内进行了自动修正的最大尝试次数,则将资源添加至修正例外。 + * minimum: 60 + * maximum: 3600 + * @return retryAttemptSeconds + */ + public Integer getRetryAttemptSeconds() { + return retryAttemptSeconds; + } + + public void setRetryAttemptSeconds(Integer retryAttemptSeconds) { + this.retryAttemptSeconds = retryAttemptSeconds; + } + + public CreateOrUpdateRemediationConfigurationResponse withAuthType(String authType) { + this.authType = authType; + return this; + } + + /** + * 合规规则修正配置的权限方式。 + * @return authType + */ + public String getAuthType() { + return authType; + } + + public void setAuthType(String authType) { + this.authType = authType; + } + + public CreateOrUpdateRemediationConfigurationResponse withAuthValue(String authValue) { + this.authValue = authValue; + return this; + } + + /** + * 合规规则修正配置的权限信息。 + * @return authValue + */ + public String getAuthValue() { + return authValue; + } + + public void setAuthValue(String authValue) { + this.authValue = authValue; + } + + public CreateOrUpdateRemediationConfigurationResponse withCreatedAt(String createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + * 修正配置的创建时间。 + * @return createdAt + */ + public String getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(String createdAt) { + this.createdAt = createdAt; + } + + public CreateOrUpdateRemediationConfigurationResponse withUpdatedAt(String updatedAt) { + this.updatedAt = updatedAt; + return this; + } + + /** + * 修正配置的更新时间。 + * @return updatedAt + */ + public String getUpdatedAt() { + return updatedAt; + } + + public void setUpdatedAt(String updatedAt) { + this.updatedAt = updatedAt; + } + + public CreateOrUpdateRemediationConfigurationResponse withCreatedBy(String createdBy) { + this.createdBy = createdBy; + return this; + } + + /** + * 创建者。 + * @return createdBy + */ + public String getCreatedBy() { + return createdBy; + } + + public void setCreatedBy(String createdBy) { + this.createdBy = createdBy; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateOrUpdateRemediationConfigurationResponse that = (CreateOrUpdateRemediationConfigurationResponse) obj; + return Objects.equals(this.automatic, that.automatic) && Objects.equals(this.targetType, that.targetType) + && Objects.equals(this.targetId, that.targetId) + && Objects.equals(this.staticParameter, that.staticParameter) + && Objects.equals(this.resourceParameter, that.resourceParameter) + && Objects.equals(this.maximumAttempts, that.maximumAttempts) + && Objects.equals(this.retryAttemptSeconds, that.retryAttemptSeconds) + && Objects.equals(this.authType, that.authType) && Objects.equals(this.authValue, that.authValue) + && Objects.equals(this.createdAt, that.createdAt) && Objects.equals(this.updatedAt, that.updatedAt) + && Objects.equals(this.createdBy, that.createdBy); + } + + @Override + public int hashCode() { + return Objects.hash(automatic, + targetType, + targetId, + staticParameter, + resourceParameter, + maximumAttempts, + retryAttemptSeconds, + authType, + authValue, + createdAt, + updatedAt, + createdBy); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateOrUpdateRemediationConfigurationResponse {\n"); + sb.append(" automatic: ").append(toIndentedString(automatic)).append("\n"); + sb.append(" targetType: ").append(toIndentedString(targetType)).append("\n"); + sb.append(" targetId: ").append(toIndentedString(targetId)).append("\n"); + sb.append(" staticParameter: ").append(toIndentedString(staticParameter)).append("\n"); + sb.append(" resourceParameter: ").append(toIndentedString(resourceParameter)).append("\n"); + sb.append(" maximumAttempts: ").append(toIndentedString(maximumAttempts)).append("\n"); + sb.append(" retryAttemptSeconds: ").append(toIndentedString(retryAttemptSeconds)).append("\n"); + sb.append(" authType: ").append(toIndentedString(authType)).append("\n"); + sb.append(" authValue: ").append(toIndentedString(authValue)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append(" createdBy: ").append(toIndentedString(createdBy)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/CreateOrganizationConformancePackRequest.java b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/CreateOrganizationConformancePackRequest.java index 384ab7ef67..8170369079 100644 --- a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/CreateOrganizationConformancePackRequest.java +++ b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/CreateOrganizationConformancePackRequest.java @@ -1,8 +1,13 @@ package com.huaweicloud.sdk.config.v1.model; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; import java.util.Objects; import java.util.function.Consumer; @@ -16,6 +21,81 @@ public class CreateOrganizationConformancePackRequest { private String organizationId; + /** + * 组织合规包信息语言,默认为\"en-us\"英文 + */ + public static final class XLanguageEnum { + + /** + * Enum ZH_CN for value: "zh-cn" + */ + public static final XLanguageEnum ZH_CN = new XLanguageEnum("zh-cn"); + + /** + * Enum EN_US for value: "en-us" + */ + public static final XLanguageEnum EN_US = new XLanguageEnum("en-us"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("zh-cn", ZH_CN); + map.put("en-us", EN_US); + return Collections.unmodifiableMap(map); + } + + private String value; + + XLanguageEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static XLanguageEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new XLanguageEnum(value)); + } + + public static XLanguageEnum valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof XLanguageEnum) { + return this.value.equals(((XLanguageEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + + private XLanguageEnum xLanguage; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "body") @@ -38,6 +118,25 @@ public void setOrganizationId(String organizationId) { this.organizationId = organizationId; } + public CreateOrganizationConformancePackRequest withXLanguage(XLanguageEnum xLanguage) { + this.xLanguage = xLanguage; + return this; + } + + /** + * 组织合规包信息语言,默认为\"en-us\"英文 + * @return xLanguage + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + public XLanguageEnum getXLanguage() { + return xLanguage; + } + + public void setXLanguage(XLanguageEnum xLanguage) { + this.xLanguage = xLanguage; + } + public CreateOrganizationConformancePackRequest withBody(OrgConformancePackRequestBody body) { this.body = body; return this; @@ -73,12 +172,13 @@ public boolean equals(java.lang.Object obj) { return false; } CreateOrganizationConformancePackRequest that = (CreateOrganizationConformancePackRequest) obj; - return Objects.equals(this.organizationId, that.organizationId) && Objects.equals(this.body, that.body); + return Objects.equals(this.organizationId, that.organizationId) + && Objects.equals(this.xLanguage, that.xLanguage) && Objects.equals(this.body, that.body); } @Override public int hashCode() { - return Objects.hash(organizationId, body); + return Objects.hash(organizationId, xLanguage, body); } @Override @@ -86,6 +186,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateOrganizationConformancePackRequest {\n"); sb.append(" organizationId: ").append(toIndentedString(organizationId)).append("\n"); + sb.append(" xLanguage: ").append(toIndentedString(xLanguage)).append("\n"); sb.append(" body: ").append(toIndentedString(body)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/DeleteRemediationConfigurationRequest.java b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/DeleteRemediationConfigurationRequest.java new file mode 100644 index 0000000000..fad1e0c60c --- /dev/null +++ b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/DeleteRemediationConfigurationRequest.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.config.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class DeleteRemediationConfigurationRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "policy_assignment_id") + + private String policyAssignmentId; + + public DeleteRemediationConfigurationRequest withPolicyAssignmentId(String policyAssignmentId) { + this.policyAssignmentId = policyAssignmentId; + return this; + } + + /** + * 规则ID + * @return policyAssignmentId + */ + public String getPolicyAssignmentId() { + return policyAssignmentId; + } + + public void setPolicyAssignmentId(String policyAssignmentId) { + this.policyAssignmentId = policyAssignmentId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DeleteRemediationConfigurationRequest that = (DeleteRemediationConfigurationRequest) obj; + return Objects.equals(this.policyAssignmentId, that.policyAssignmentId); + } + + @Override + public int hashCode() { + return Objects.hash(policyAssignmentId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteRemediationConfigurationRequest {\n"); + sb.append(" policyAssignmentId: ").append(toIndentedString(policyAssignmentId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/DeleteRemediationConfigurationResponse.java b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/DeleteRemediationConfigurationResponse.java new file mode 100644 index 0000000000..894d975b62 --- /dev/null +++ b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/DeleteRemediationConfigurationResponse.java @@ -0,0 +1,36 @@ +package com.huaweicloud.sdk.config.v1.model; + +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class DeleteRemediationConfigurationResponse extends SdkResponse { + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteRemediationConfigurationResponse {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ListRemediationExceptionsRequest.java b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ListRemediationExceptionsRequest.java new file mode 100644 index 0000000000..081ce1663a --- /dev/null +++ b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ListRemediationExceptionsRequest.java @@ -0,0 +1,168 @@ +package com.huaweicloud.sdk.config.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListRemediationExceptionsRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "policy_assignment_id") + + private String policyAssignmentId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limit") + + private Integer limit; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "marker") + + private String marker; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "resource_id") + + private String resourceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "resource_name") + + private String resourceName; + + public ListRemediationExceptionsRequest withPolicyAssignmentId(String policyAssignmentId) { + this.policyAssignmentId = policyAssignmentId; + return this; + } + + /** + * 规则ID + * @return policyAssignmentId + */ + public String getPolicyAssignmentId() { + return policyAssignmentId; + } + + public void setPolicyAssignmentId(String policyAssignmentId) { + this.policyAssignmentId = policyAssignmentId; + } + + public ListRemediationExceptionsRequest withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 最大的返回数量 + * minimum: 1 + * maximum: 200 + * @return limit + */ + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public ListRemediationExceptionsRequest withMarker(String marker) { + this.marker = marker; + return this; + } + + /** + * 分页参数,通过上一个请求中返回的marker信息作为输入,获取当前页 + * @return marker + */ + public String getMarker() { + return marker; + } + + public void setMarker(String marker) { + this.marker = marker; + } + + public ListRemediationExceptionsRequest withResourceId(String resourceId) { + this.resourceId = resourceId; + return this; + } + + /** + * 资源ID + * @return resourceId + */ + public String getResourceId() { + return resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public ListRemediationExceptionsRequest withResourceName(String resourceName) { + this.resourceName = resourceName; + return this; + } + + /** + * 资源名称 + * @return resourceName + */ + public String getResourceName() { + return resourceName; + } + + public void setResourceName(String resourceName) { + this.resourceName = resourceName; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListRemediationExceptionsRequest that = (ListRemediationExceptionsRequest) obj; + return Objects.equals(this.policyAssignmentId, that.policyAssignmentId) + && Objects.equals(this.limit, that.limit) && Objects.equals(this.marker, that.marker) + && Objects.equals(this.resourceId, that.resourceId) && Objects.equals(this.resourceName, that.resourceName); + } + + @Override + public int hashCode() { + return Objects.hash(policyAssignmentId, limit, marker, resourceId, resourceName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListRemediationExceptionsRequest {\n"); + sb.append(" policyAssignmentId: ").append(toIndentedString(policyAssignmentId)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" marker: ").append(toIndentedString(marker)).append("\n"); + sb.append(" resourceId: ").append(toIndentedString(resourceId)).append("\n"); + sb.append(" resourceName: ").append(toIndentedString(resourceName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ListRemediationExceptionsResponse.java b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ListRemediationExceptionsResponse.java new file mode 100644 index 0000000000..18c687ad82 --- /dev/null +++ b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ListRemediationExceptionsResponse.java @@ -0,0 +1,124 @@ +package com.huaweicloud.sdk.config.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListRemediationExceptionsResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private List value = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "page_info") + + private PageInfo pageInfo; + + public ListRemediationExceptionsResponse withValue(List value) { + this.value = value; + return this; + } + + public ListRemediationExceptionsResponse addValueItem(RemediationException valueItem) { + if (this.value == null) { + this.value = new ArrayList<>(); + } + this.value.add(valueItem); + return this; + } + + public ListRemediationExceptionsResponse withValue(Consumer> valueSetter) { + if (this.value == null) { + this.value = new ArrayList<>(); + } + valueSetter.accept(this.value); + return this; + } + + /** + * 合规规则修正例外的详情。 + * @return value + */ + public List getValue() { + return value; + } + + public void setValue(List value) { + this.value = value; + } + + public ListRemediationExceptionsResponse withPageInfo(PageInfo pageInfo) { + this.pageInfo = pageInfo; + return this; + } + + public ListRemediationExceptionsResponse withPageInfo(Consumer pageInfoSetter) { + if (this.pageInfo == null) { + this.pageInfo = new PageInfo(); + pageInfoSetter.accept(this.pageInfo); + } + + return this; + } + + /** + * Get pageInfo + * @return pageInfo + */ + public PageInfo getPageInfo() { + return pageInfo; + } + + public void setPageInfo(PageInfo pageInfo) { + this.pageInfo = pageInfo; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListRemediationExceptionsResponse that = (ListRemediationExceptionsResponse) obj; + return Objects.equals(this.value, that.value) && Objects.equals(this.pageInfo, that.pageInfo); + } + + @Override + public int hashCode() { + return Objects.hash(value, pageInfo); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListRemediationExceptionsResponse {\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" pageInfo: ").append(toIndentedString(pageInfo)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ListRemediationExecutionStatusesRequest.java b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ListRemediationExecutionStatusesRequest.java new file mode 100644 index 0000000000..f53beb003a --- /dev/null +++ b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ListRemediationExecutionStatusesRequest.java @@ -0,0 +1,168 @@ +package com.huaweicloud.sdk.config.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListRemediationExecutionStatusesRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "policy_assignment_id") + + private String policyAssignmentId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limit") + + private Integer limit; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "marker") + + private String marker; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "resource_id") + + private String resourceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "resource_name") + + private String resourceName; + + public ListRemediationExecutionStatusesRequest withPolicyAssignmentId(String policyAssignmentId) { + this.policyAssignmentId = policyAssignmentId; + return this; + } + + /** + * 规则ID + * @return policyAssignmentId + */ + public String getPolicyAssignmentId() { + return policyAssignmentId; + } + + public void setPolicyAssignmentId(String policyAssignmentId) { + this.policyAssignmentId = policyAssignmentId; + } + + public ListRemediationExecutionStatusesRequest withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 最大的返回数量 + * minimum: 1 + * maximum: 200 + * @return limit + */ + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public ListRemediationExecutionStatusesRequest withMarker(String marker) { + this.marker = marker; + return this; + } + + /** + * 分页参数,通过上一个请求中返回的marker信息作为输入,获取当前页 + * @return marker + */ + public String getMarker() { + return marker; + } + + public void setMarker(String marker) { + this.marker = marker; + } + + public ListRemediationExecutionStatusesRequest withResourceId(String resourceId) { + this.resourceId = resourceId; + return this; + } + + /** + * 资源ID + * @return resourceId + */ + public String getResourceId() { + return resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public ListRemediationExecutionStatusesRequest withResourceName(String resourceName) { + this.resourceName = resourceName; + return this; + } + + /** + * 资源名称 + * @return resourceName + */ + public String getResourceName() { + return resourceName; + } + + public void setResourceName(String resourceName) { + this.resourceName = resourceName; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListRemediationExecutionStatusesRequest that = (ListRemediationExecutionStatusesRequest) obj; + return Objects.equals(this.policyAssignmentId, that.policyAssignmentId) + && Objects.equals(this.limit, that.limit) && Objects.equals(this.marker, that.marker) + && Objects.equals(this.resourceId, that.resourceId) && Objects.equals(this.resourceName, that.resourceName); + } + + @Override + public int hashCode() { + return Objects.hash(policyAssignmentId, limit, marker, resourceId, resourceName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListRemediationExecutionStatusesRequest {\n"); + sb.append(" policyAssignmentId: ").append(toIndentedString(policyAssignmentId)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" marker: ").append(toIndentedString(marker)).append("\n"); + sb.append(" resourceId: ").append(toIndentedString(resourceId)).append("\n"); + sb.append(" resourceName: ").append(toIndentedString(resourceName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ListRemediationExecutionStatusesResponse.java b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ListRemediationExecutionStatusesResponse.java new file mode 100644 index 0000000000..e559561c14 --- /dev/null +++ b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ListRemediationExecutionStatusesResponse.java @@ -0,0 +1,124 @@ +package com.huaweicloud.sdk.config.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListRemediationExecutionStatusesResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private List value = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "page_info") + + private PageInfo pageInfo; + + public ListRemediationExecutionStatusesResponse withValue(List value) { + this.value = value; + return this; + } + + public ListRemediationExecutionStatusesResponse addValueItem(RemediationExecution valueItem) { + if (this.value == null) { + this.value = new ArrayList<>(); + } + this.value.add(valueItem); + return this; + } + + public ListRemediationExecutionStatusesResponse withValue(Consumer> valueSetter) { + if (this.value == null) { + this.value = new ArrayList<>(); + } + valueSetter.accept(this.value); + return this; + } + + /** + * 合规规则修正执行结果查询列表。 + * @return value + */ + public List getValue() { + return value; + } + + public void setValue(List value) { + this.value = value; + } + + public ListRemediationExecutionStatusesResponse withPageInfo(PageInfo pageInfo) { + this.pageInfo = pageInfo; + return this; + } + + public ListRemediationExecutionStatusesResponse withPageInfo(Consumer pageInfoSetter) { + if (this.pageInfo == null) { + this.pageInfo = new PageInfo(); + pageInfoSetter.accept(this.pageInfo); + } + + return this; + } + + /** + * Get pageInfo + * @return pageInfo + */ + public PageInfo getPageInfo() { + return pageInfo; + } + + public void setPageInfo(PageInfo pageInfo) { + this.pageInfo = pageInfo; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListRemediationExecutionStatusesResponse that = (ListRemediationExecutionStatusesResponse) obj; + return Objects.equals(this.value, that.value) && Objects.equals(this.pageInfo, that.pageInfo); + } + + @Override + public int hashCode() { + return Objects.hash(value, pageInfo); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListRemediationExecutionStatusesResponse {\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" pageInfo: ").append(toIndentedString(pageInfo)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/RemediationConfigurationRequestBody.java b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/RemediationConfigurationRequestBody.java new file mode 100644 index 0000000000..fb52867157 --- /dev/null +++ b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/RemediationConfigurationRequestBody.java @@ -0,0 +1,449 @@ +package com.huaweicloud.sdk.config.v1.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 合规规则修正配置的请求体。 + */ +public class RemediationConfigurationRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "automatic") + + private Boolean automatic; + + /** + * 合规规则修正执行的方式。 + */ + public static final class TargetTypeEnum { + + /** + * Enum FGS for value: "fgs" + */ + public static final TargetTypeEnum FGS = new TargetTypeEnum("fgs"); + + /** + * Enum RFS for value: "rfs" + */ + public static final TargetTypeEnum RFS = new TargetTypeEnum("rfs"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("fgs", FGS); + map.put("rfs", RFS); + return Collections.unmodifiableMap(map); + } + + private String value; + + TargetTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TargetTypeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new TargetTypeEnum(value)); + } + + public static TargetTypeEnum valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof TargetTypeEnum) { + return this.value.equals(((TargetTypeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "target_type") + + private TargetTypeEnum targetType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "target_id") + + private String targetId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "static_parameter") + + private List staticParameter = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "resource_parameter") + + private RemediationResourceParameter resourceParameter; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "maximum_attempts") + + private Integer maximumAttempts; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "retry_attempt_seconds") + + private Integer retryAttemptSeconds; + + /** + * 合规规则修正配置的权限方式。 + */ + public static final class AuthTypeEnum { + + /** + * Enum AGENCY for value: "agency" + */ + public static final AuthTypeEnum AGENCY = new AuthTypeEnum("agency"); + + /** + * Enum TRUSTAGENCY for value: "trustAgency" + */ + public static final AuthTypeEnum TRUSTAGENCY = new AuthTypeEnum("trustAgency"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("agency", AGENCY); + map.put("trustAgency", TRUSTAGENCY); + return Collections.unmodifiableMap(map); + } + + private String value; + + AuthTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static AuthTypeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new AuthTypeEnum(value)); + } + + public static AuthTypeEnum valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof AuthTypeEnum) { + return this.value.equals(((AuthTypeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "auth_type") + + private AuthTypeEnum authType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "auth_value") + + private String authValue; + + public RemediationConfigurationRequestBody withAutomatic(Boolean automatic) { + this.automatic = automatic; + return this; + } + + /** + * 是否为自动修正。 + * @return automatic + */ + public Boolean getAutomatic() { + return automatic; + } + + public void setAutomatic(Boolean automatic) { + this.automatic = automatic; + } + + public RemediationConfigurationRequestBody withTargetType(TargetTypeEnum targetType) { + this.targetType = targetType; + return this; + } + + /** + * 合规规则修正执行的方式。 + * @return targetType + */ + public TargetTypeEnum getTargetType() { + return targetType; + } + + public void setTargetType(TargetTypeEnum targetType) { + this.targetType = targetType; + } + + public RemediationConfigurationRequestBody withTargetId(String targetId) { + this.targetId = targetId; + return this; + } + + /** + * 修正执行的目标ID。如果修正方式为fgs,则该值为函数工作流的函数urn;如果修正方式为rfs,则该值为资源编排服务的模板name与版本号,两者以/分割,如果没有指定默认V1。 + * @return targetId + */ + public String getTargetId() { + return targetId; + } + + public void setTargetId(String targetId) { + this.targetId = targetId; + } + + public RemediationConfigurationRequestBody withStaticParameter(List staticParameter) { + this.staticParameter = staticParameter; + return this; + } + + public RemediationConfigurationRequestBody addStaticParameterItem(RemediationStaticParameter staticParameterItem) { + if (this.staticParameter == null) { + this.staticParameter = new ArrayList<>(); + } + this.staticParameter.add(staticParameterItem); + return this; + } + + public RemediationConfigurationRequestBody withStaticParameter( + Consumer> staticParameterSetter) { + if (this.staticParameter == null) { + this.staticParameter = new ArrayList<>(); + } + staticParameterSetter.accept(this.staticParameter); + return this; + } + + /** + * 修正执行的静态参数。 + * @return staticParameter + */ + public List getStaticParameter() { + return staticParameter; + } + + public void setStaticParameter(List staticParameter) { + this.staticParameter = staticParameter; + } + + public RemediationConfigurationRequestBody withResourceParameter(RemediationResourceParameter resourceParameter) { + this.resourceParameter = resourceParameter; + return this; + } + + public RemediationConfigurationRequestBody withResourceParameter( + Consumer resourceParameterSetter) { + if (this.resourceParameter == null) { + this.resourceParameter = new RemediationResourceParameter(); + resourceParameterSetter.accept(this.resourceParameter); + } + + return this; + } + + /** + * Get resourceParameter + * @return resourceParameter + */ + public RemediationResourceParameter getResourceParameter() { + return resourceParameter; + } + + public void setResourceParameter(RemediationResourceParameter resourceParameter) { + this.resourceParameter = resourceParameter; + } + + public RemediationConfigurationRequestBody withMaximumAttempts(Integer maximumAttempts) { + this.maximumAttempts = maximumAttempts; + return this; + } + + /** + * 指定时间内自动修正的最大尝试次数。 + * minimum: 1 + * maximum: 25 + * @return maximumAttempts + */ + public Integer getMaximumAttempts() { + return maximumAttempts; + } + + public void setMaximumAttempts(Integer maximumAttempts) { + this.maximumAttempts = maximumAttempts; + } + + public RemediationConfigurationRequestBody withRetryAttemptSeconds(Integer retryAttemptSeconds) { + this.retryAttemptSeconds = retryAttemptSeconds; + return this; + } + + /** + * 用于防止循环修正的时间窗口,如果在指定时间内进行了自动修正的最大尝试次数,则将资源添加至修正例外。 + * minimum: 60 + * maximum: 43200 + * @return retryAttemptSeconds + */ + public Integer getRetryAttemptSeconds() { + return retryAttemptSeconds; + } + + public void setRetryAttemptSeconds(Integer retryAttemptSeconds) { + this.retryAttemptSeconds = retryAttemptSeconds; + } + + public RemediationConfigurationRequestBody withAuthType(AuthTypeEnum authType) { + this.authType = authType; + return this; + } + + /** + * 合规规则修正配置的权限方式。 + * @return authType + */ + public AuthTypeEnum getAuthType() { + return authType; + } + + public void setAuthType(AuthTypeEnum authType) { + this.authType = authType; + } + + public RemediationConfigurationRequestBody withAuthValue(String authValue) { + this.authValue = authValue; + return this; + } + + /** + * 合规规则修正配置的权限信息。 + * @return authValue + */ + public String getAuthValue() { + return authValue; + } + + public void setAuthValue(String authValue) { + this.authValue = authValue; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + RemediationConfigurationRequestBody that = (RemediationConfigurationRequestBody) obj; + return Objects.equals(this.automatic, that.automatic) && Objects.equals(this.targetType, that.targetType) + && Objects.equals(this.targetId, that.targetId) + && Objects.equals(this.staticParameter, that.staticParameter) + && Objects.equals(this.resourceParameter, that.resourceParameter) + && Objects.equals(this.maximumAttempts, that.maximumAttempts) + && Objects.equals(this.retryAttemptSeconds, that.retryAttemptSeconds) + && Objects.equals(this.authType, that.authType) && Objects.equals(this.authValue, that.authValue); + } + + @Override + public int hashCode() { + return Objects.hash(automatic, + targetType, + targetId, + staticParameter, + resourceParameter, + maximumAttempts, + retryAttemptSeconds, + authType, + authValue); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RemediationConfigurationRequestBody {\n"); + sb.append(" automatic: ").append(toIndentedString(automatic)).append("\n"); + sb.append(" targetType: ").append(toIndentedString(targetType)).append("\n"); + sb.append(" targetId: ").append(toIndentedString(targetId)).append("\n"); + sb.append(" staticParameter: ").append(toIndentedString(staticParameter)).append("\n"); + sb.append(" resourceParameter: ").append(toIndentedString(resourceParameter)).append("\n"); + sb.append(" maximumAttempts: ").append(toIndentedString(maximumAttempts)).append("\n"); + sb.append(" retryAttemptSeconds: ").append(toIndentedString(retryAttemptSeconds)).append("\n"); + sb.append(" authType: ").append(toIndentedString(authType)).append("\n"); + sb.append(" authValue: ").append(toIndentedString(authValue)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/RemediationException.java b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/RemediationException.java new file mode 100644 index 0000000000..a63562f424 --- /dev/null +++ b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/RemediationException.java @@ -0,0 +1,142 @@ +package com.huaweicloud.sdk.config.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 合规规则修正例外。 + */ +public class RemediationException { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "resource_id") + + private String resourceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "message") + + private String message; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "joined_at") + + private String joinedAt; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "created_by") + + private String createdBy; + + public RemediationException withResourceId(String resourceId) { + this.resourceId = resourceId; + return this; + } + + /** + * 资源ID。 + * @return resourceId + */ + public String getResourceId() { + return resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public RemediationException withMessage(String message) { + this.message = message; + return this; + } + + /** + * 加入合规规则修正例外的原因。 + * @return message + */ + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public RemediationException withJoinedAt(String joinedAt) { + this.joinedAt = joinedAt; + return this; + } + + /** + * 加入合规规则修正例外的时间。 + * @return joinedAt + */ + public String getJoinedAt() { + return joinedAt; + } + + public void setJoinedAt(String joinedAt) { + this.joinedAt = joinedAt; + } + + public RemediationException withCreatedBy(String createdBy) { + this.createdBy = createdBy; + return this; + } + + /** + * 合规规则修正例外的创建者。 + * @return createdBy + */ + public String getCreatedBy() { + return createdBy; + } + + public void setCreatedBy(String createdBy) { + this.createdBy = createdBy; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + RemediationException that = (RemediationException) obj; + return Objects.equals(this.resourceId, that.resourceId) && Objects.equals(this.message, that.message) + && Objects.equals(this.joinedAt, that.joinedAt) && Objects.equals(this.createdBy, that.createdBy); + } + + @Override + public int hashCode() { + return Objects.hash(resourceId, message, joinedAt, createdBy); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RemediationException {\n"); + sb.append(" resourceId: ").append(toIndentedString(resourceId)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" joinedAt: ").append(toIndentedString(joinedAt)).append("\n"); + sb.append(" createdBy: ").append(toIndentedString(createdBy)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/RemediationExceptionRequest.java b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/RemediationExceptionRequest.java new file mode 100644 index 0000000000..2d7c4a8ac6 --- /dev/null +++ b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/RemediationExceptionRequest.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.config.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 合规规则修正例外。 + */ +public class RemediationExceptionRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "resource_id") + + private String resourceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "message") + + private String message; + + public RemediationExceptionRequest withResourceId(String resourceId) { + this.resourceId = resourceId; + return this; + } + + /** + * 资源ID。 + * @return resourceId + */ + public String getResourceId() { + return resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public RemediationExceptionRequest withMessage(String message) { + this.message = message; + return this; + } + + /** + * 加入合规规则修正例外的原因。 + * @return message + */ + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + RemediationExceptionRequest that = (RemediationExceptionRequest) obj; + return Objects.equals(this.resourceId, that.resourceId) && Objects.equals(this.message, that.message); + } + + @Override + public int hashCode() { + return Objects.hash(resourceId, message); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RemediationExceptionRequest {\n"); + sb.append(" resourceId: ").append(toIndentedString(resourceId)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/RemediationExecution.java b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/RemediationExecution.java new file mode 100644 index 0000000000..87489424cb --- /dev/null +++ b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/RemediationExecution.java @@ -0,0 +1,326 @@ +package com.huaweicloud.sdk.config.v1.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** + * 合规规则修正执行结果的详情。 + */ +public class RemediationExecution { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "automatic") + + private Boolean automatic; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "resource_id") + + private String resourceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "resource_name") + + private String resourceName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "resource_provider") + + private String resourceProvider; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "resource_type") + + private String resourceType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "invocation_time") + + private String invocationTime; + + /** + * 合规规则修正执行的状态。 + */ + public static final class StateEnum { + + /** + * Enum IN_QUEUE for value: "IN_QUEUE" + */ + public static final StateEnum IN_QUEUE = new StateEnum("IN_QUEUE"); + + /** + * Enum IN_PROGRESS for value: "IN_PROGRESS" + */ + public static final StateEnum IN_PROGRESS = new StateEnum("IN_PROGRESS"); + + /** + * Enum SUCCEEDED for value: "SUCCEEDED" + */ + public static final StateEnum SUCCEEDED = new StateEnum("SUCCEEDED"); + + /** + * Enum FAILED for value: "FAILED" + */ + public static final StateEnum FAILED = new StateEnum("FAILED"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("IN_QUEUE", IN_QUEUE); + map.put("IN_PROGRESS", IN_PROGRESS); + map.put("SUCCEEDED", SUCCEEDED); + map.put("FAILED", FAILED); + return Collections.unmodifiableMap(map); + } + + private String value; + + StateEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static StateEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new StateEnum(value)); + } + + public static StateEnum valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof StateEnum) { + return this.value.equals(((StateEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "state") + + private StateEnum state; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "message") + + private String message; + + public RemediationExecution withAutomatic(Boolean automatic) { + this.automatic = automatic; + return this; + } + + /** + * 是否为自动修正。 + * @return automatic + */ + public Boolean getAutomatic() { + return automatic; + } + + public void setAutomatic(Boolean automatic) { + this.automatic = automatic; + } + + public RemediationExecution withResourceId(String resourceId) { + this.resourceId = resourceId; + return this; + } + + /** + * 资源ID。 + * @return resourceId + */ + public String getResourceId() { + return resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public RemediationExecution withResourceName(String resourceName) { + this.resourceName = resourceName; + return this; + } + + /** + * 资源名称。 + * @return resourceName + */ + public String getResourceName() { + return resourceName; + } + + public void setResourceName(String resourceName) { + this.resourceName = resourceName; + } + + public RemediationExecution withResourceProvider(String resourceProvider) { + this.resourceProvider = resourceProvider; + return this; + } + + /** + * 云服务名称。 + * @return resourceProvider + */ + public String getResourceProvider() { + return resourceProvider; + } + + public void setResourceProvider(String resourceProvider) { + this.resourceProvider = resourceProvider; + } + + public RemediationExecution withResourceType(String resourceType) { + this.resourceType = resourceType; + return this; + } + + /** + * 资源类型。 + * @return resourceType + */ + public String getResourceType() { + return resourceType; + } + + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + public RemediationExecution withInvocationTime(String invocationTime) { + this.invocationTime = invocationTime; + return this; + } + + /** + * 补救执行的开始时间。 + * @return invocationTime + */ + public String getInvocationTime() { + return invocationTime; + } + + public void setInvocationTime(String invocationTime) { + this.invocationTime = invocationTime; + } + + public RemediationExecution withState(StateEnum state) { + this.state = state; + return this; + } + + /** + * 合规规则修正执行的状态。 + * @return state + */ + public StateEnum getState() { + return state; + } + + public void setState(StateEnum state) { + this.state = state; + } + + public RemediationExecution withMessage(String message) { + this.message = message; + return this; + } + + /** + * 合规规则修正执行的信息。 + * @return message + */ + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + RemediationExecution that = (RemediationExecution) obj; + return Objects.equals(this.automatic, that.automatic) && Objects.equals(this.resourceId, that.resourceId) + && Objects.equals(this.resourceName, that.resourceName) + && Objects.equals(this.resourceProvider, that.resourceProvider) + && Objects.equals(this.resourceType, that.resourceType) + && Objects.equals(this.invocationTime, that.invocationTime) && Objects.equals(this.state, that.state) + && Objects.equals(this.message, that.message); + } + + @Override + public int hashCode() { + return Objects + .hash(automatic, resourceId, resourceName, resourceProvider, resourceType, invocationTime, state, message); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RemediationExecution {\n"); + sb.append(" automatic: ").append(toIndentedString(automatic)).append("\n"); + sb.append(" resourceId: ").append(toIndentedString(resourceId)).append("\n"); + sb.append(" resourceName: ").append(toIndentedString(resourceName)).append("\n"); + sb.append(" resourceProvider: ").append(toIndentedString(resourceProvider)).append("\n"); + sb.append(" resourceType: ").append(toIndentedString(resourceType)).append("\n"); + sb.append(" invocationTime: ").append(toIndentedString(invocationTime)).append("\n"); + sb.append(" state: ").append(toIndentedString(state)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/RemediationResourceParameter.java b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/RemediationResourceParameter.java new file mode 100644 index 0000000000..fc786b2094 --- /dev/null +++ b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/RemediationResourceParameter.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.config.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 合规规则修正执行的动态参数。 + */ +public class RemediationResourceParameter { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "resource_id") + + private String resourceId; + + public RemediationResourceParameter withResourceId(String resourceId) { + this.resourceId = resourceId; + return this; + } + + /** + * 传入resourceID的参数名称。 + * @return resourceId + */ + public String getResourceId() { + return resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + RemediationResourceParameter that = (RemediationResourceParameter) obj; + return Objects.equals(this.resourceId, that.resourceId); + } + + @Override + public int hashCode() { + return Objects.hash(resourceId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RemediationResourceParameter {\n"); + sb.append(" resourceId: ").append(toIndentedString(resourceId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/RemediationRunRequestBody.java b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/RemediationRunRequestBody.java new file mode 100644 index 0000000000..a6ccc3915b --- /dev/null +++ b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/RemediationRunRequestBody.java @@ -0,0 +1,115 @@ +package com.huaweicloud.sdk.config.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 手动执行修正的范围。 + */ +public class RemediationRunRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "all_supported") + + private Boolean allSupported; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "resource_ids") + + private List resourceIds = null; + + public RemediationRunRequestBody withAllSupported(Boolean allSupported) { + this.allSupported = allSupported; + return this; + } + + /** + * 是否选择对所有不合规资源执行补救。 + * @return allSupported + */ + public Boolean getAllSupported() { + return allSupported; + } + + public void setAllSupported(Boolean allSupported) { + this.allSupported = allSupported; + } + + public RemediationRunRequestBody withResourceIds(List resourceIds) { + this.resourceIds = resourceIds; + return this; + } + + public RemediationRunRequestBody addResourceIdsItem(String resourceIdsItem) { + if (this.resourceIds == null) { + this.resourceIds = new ArrayList<>(); + } + this.resourceIds.add(resourceIdsItem); + return this; + } + + public RemediationRunRequestBody withResourceIds(Consumer> resourceIdsSetter) { + if (this.resourceIds == null) { + this.resourceIds = new ArrayList<>(); + } + resourceIdsSetter.accept(this.resourceIds); + return this; + } + + /** + * Get resourceIds + * @return resourceIds + */ + public List getResourceIds() { + return resourceIds; + } + + public void setResourceIds(List resourceIds) { + this.resourceIds = resourceIds; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + RemediationRunRequestBody that = (RemediationRunRequestBody) obj; + return Objects.equals(this.allSupported, that.allSupported) + && Objects.equals(this.resourceIds, that.resourceIds); + } + + @Override + public int hashCode() { + return Objects.hash(allSupported, resourceIds); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RemediationRunRequestBody {\n"); + sb.append(" allSupported: ").append(toIndentedString(allSupported)).append("\n"); + sb.append(" resourceIds: ").append(toIndentedString(resourceIds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/RemediationStaticParameter.java b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/RemediationStaticParameter.java new file mode 100644 index 0000000000..ca73255c7e --- /dev/null +++ b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/RemediationStaticParameter.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.config.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 合规规则修正执行的静态参数。 + */ +public class RemediationStaticParameter { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "var_key") + + private String varKey; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "var_value") + + private Object varValue; + + public RemediationStaticParameter withVarKey(String varKey) { + this.varKey = varKey; + return this; + } + + /** + * 参数名称。 + * @return varKey + */ + public String getVarKey() { + return varKey; + } + + public void setVarKey(String varKey) { + this.varKey = varKey; + } + + public RemediationStaticParameter withVarValue(Object varValue) { + this.varValue = varValue; + return this; + } + + /** + * 参数的值。 + * @return varValue + */ + public Object getVarValue() { + return varValue; + } + + public void setVarValue(Object varValue) { + this.varValue = varValue; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + RemediationStaticParameter that = (RemediationStaticParameter) obj; + return Objects.equals(this.varKey, that.varKey) && Objects.equals(this.varValue, that.varValue); + } + + @Override + public int hashCode() { + return Objects.hash(varKey, varValue); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RemediationStaticParameter {\n"); + sb.append(" varKey: ").append(toIndentedString(varKey)).append("\n"); + sb.append(" varValue: ").append(toIndentedString(varValue)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/RunRemediationExecutionRequest.java b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/RunRemediationExecutionRequest.java new file mode 100644 index 0000000000..d5c63d8efb --- /dev/null +++ b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/RunRemediationExecutionRequest.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.config.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class RunRemediationExecutionRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "policy_assignment_id") + + private String policyAssignmentId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private RemediationRunRequestBody body; + + public RunRemediationExecutionRequest withPolicyAssignmentId(String policyAssignmentId) { + this.policyAssignmentId = policyAssignmentId; + return this; + } + + /** + * 规则ID + * @return policyAssignmentId + */ + public String getPolicyAssignmentId() { + return policyAssignmentId; + } + + public void setPolicyAssignmentId(String policyAssignmentId) { + this.policyAssignmentId = policyAssignmentId; + } + + public RunRemediationExecutionRequest withBody(RemediationRunRequestBody body) { + this.body = body; + return this; + } + + public RunRemediationExecutionRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new RemediationRunRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public RemediationRunRequestBody getBody() { + return body; + } + + public void setBody(RemediationRunRequestBody body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + RunRemediationExecutionRequest that = (RunRemediationExecutionRequest) obj; + return Objects.equals(this.policyAssignmentId, that.policyAssignmentId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(policyAssignmentId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RunRemediationExecutionRequest {\n"); + sb.append(" policyAssignmentId: ").append(toIndentedString(policyAssignmentId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/RunRemediationExecutionResponse.java b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/RunRemediationExecutionResponse.java new file mode 100644 index 0000000000..74787d8995 --- /dev/null +++ b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/RunRemediationExecutionResponse.java @@ -0,0 +1,36 @@ +package com.huaweicloud.sdk.config.v1.model; + +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class RunRemediationExecutionResponse extends SdkResponse { + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RunRemediationExecutionResponse {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ShowRemediationConfigurationRequest.java b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ShowRemediationConfigurationRequest.java new file mode 100644 index 0000000000..8401c51bed --- /dev/null +++ b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ShowRemediationConfigurationRequest.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.config.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ShowRemediationConfigurationRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "policy_assignment_id") + + private String policyAssignmentId; + + public ShowRemediationConfigurationRequest withPolicyAssignmentId(String policyAssignmentId) { + this.policyAssignmentId = policyAssignmentId; + return this; + } + + /** + * 规则ID + * @return policyAssignmentId + */ + public String getPolicyAssignmentId() { + return policyAssignmentId; + } + + public void setPolicyAssignmentId(String policyAssignmentId) { + this.policyAssignmentId = policyAssignmentId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowRemediationConfigurationRequest that = (ShowRemediationConfigurationRequest) obj; + return Objects.equals(this.policyAssignmentId, that.policyAssignmentId); + } + + @Override + public int hashCode() { + return Objects.hash(policyAssignmentId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowRemediationConfigurationRequest {\n"); + sb.append(" policyAssignmentId: ").append(toIndentedString(policyAssignmentId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ShowRemediationConfigurationResponse.java b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ShowRemediationConfigurationResponse.java new file mode 100644 index 0000000000..2fdd3cb5ea --- /dev/null +++ b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ShowRemediationConfigurationResponse.java @@ -0,0 +1,379 @@ +package com.huaweicloud.sdk.config.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ShowRemediationConfigurationResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "automatic") + + private Boolean automatic; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "target_type") + + private String targetType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "target_id") + + private String targetId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "static_parameter") + + private List staticParameter = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "resource_parameter") + + private RemediationResourceParameter resourceParameter; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "maximum_attempts") + + private Integer maximumAttempts; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "retry_attempt_seconds") + + private Integer retryAttemptSeconds; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "auth_type") + + private String authType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "auth_value") + + private String authValue; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "created_at") + + private String createdAt; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "updated_at") + + private String updatedAt; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "created_by") + + private String createdBy; + + public ShowRemediationConfigurationResponse withAutomatic(Boolean automatic) { + this.automatic = automatic; + return this; + } + + /** + * 是否为自动修正。 + * @return automatic + */ + public Boolean getAutomatic() { + return automatic; + } + + public void setAutomatic(Boolean automatic) { + this.automatic = automatic; + } + + public ShowRemediationConfigurationResponse withTargetType(String targetType) { + this.targetType = targetType; + return this; + } + + /** + * 合规规则修正执行的方式。 + * @return targetType + */ + public String getTargetType() { + return targetType; + } + + public void setTargetType(String targetType) { + this.targetType = targetType; + } + + public ShowRemediationConfigurationResponse withTargetId(String targetId) { + this.targetId = targetId; + return this; + } + + /** + * 修正执行的目标ID。如果修正方式为fgs,则该值为函数工作流的函数urn;如果修正方式为rfs,则该值为资源编排服务的模板name与版本号,两者以/分割,如果没有指定默认V1。 + * @return targetId + */ + public String getTargetId() { + return targetId; + } + + public void setTargetId(String targetId) { + this.targetId = targetId; + } + + public ShowRemediationConfigurationResponse withStaticParameter(List staticParameter) { + this.staticParameter = staticParameter; + return this; + } + + public ShowRemediationConfigurationResponse addStaticParameterItem(RemediationStaticParameter staticParameterItem) { + if (this.staticParameter == null) { + this.staticParameter = new ArrayList<>(); + } + this.staticParameter.add(staticParameterItem); + return this; + } + + public ShowRemediationConfigurationResponse withStaticParameter( + Consumer> staticParameterSetter) { + if (this.staticParameter == null) { + this.staticParameter = new ArrayList<>(); + } + staticParameterSetter.accept(this.staticParameter); + return this; + } + + /** + * 修正执行的参数。 + * @return staticParameter + */ + public List getStaticParameter() { + return staticParameter; + } + + public void setStaticParameter(List staticParameter) { + this.staticParameter = staticParameter; + } + + public ShowRemediationConfigurationResponse withResourceParameter(RemediationResourceParameter resourceParameter) { + this.resourceParameter = resourceParameter; + return this; + } + + public ShowRemediationConfigurationResponse withResourceParameter( + Consumer resourceParameterSetter) { + if (this.resourceParameter == null) { + this.resourceParameter = new RemediationResourceParameter(); + resourceParameterSetter.accept(this.resourceParameter); + } + + return this; + } + + /** + * Get resourceParameter + * @return resourceParameter + */ + public RemediationResourceParameter getResourceParameter() { + return resourceParameter; + } + + public void setResourceParameter(RemediationResourceParameter resourceParameter) { + this.resourceParameter = resourceParameter; + } + + public ShowRemediationConfigurationResponse withMaximumAttempts(Integer maximumAttempts) { + this.maximumAttempts = maximumAttempts; + return this; + } + + /** + * 指定时间内自动修正的最大尝试次数。 + * minimum: 1 + * maximum: 25 + * @return maximumAttempts + */ + public Integer getMaximumAttempts() { + return maximumAttempts; + } + + public void setMaximumAttempts(Integer maximumAttempts) { + this.maximumAttempts = maximumAttempts; + } + + public ShowRemediationConfigurationResponse withRetryAttemptSeconds(Integer retryAttemptSeconds) { + this.retryAttemptSeconds = retryAttemptSeconds; + return this; + } + + /** + * 用于防止循环修正的时间窗口,如果在指定时间内进行了自动修正的最大尝试次数,则将资源添加至修正例外。 + * minimum: 60 + * maximum: 3600 + * @return retryAttemptSeconds + */ + public Integer getRetryAttemptSeconds() { + return retryAttemptSeconds; + } + + public void setRetryAttemptSeconds(Integer retryAttemptSeconds) { + this.retryAttemptSeconds = retryAttemptSeconds; + } + + public ShowRemediationConfigurationResponse withAuthType(String authType) { + this.authType = authType; + return this; + } + + /** + * 合规规则修正配置的权限方式。 + * @return authType + */ + public String getAuthType() { + return authType; + } + + public void setAuthType(String authType) { + this.authType = authType; + } + + public ShowRemediationConfigurationResponse withAuthValue(String authValue) { + this.authValue = authValue; + return this; + } + + /** + * 合规规则修正配置的权限信息。 + * @return authValue + */ + public String getAuthValue() { + return authValue; + } + + public void setAuthValue(String authValue) { + this.authValue = authValue; + } + + public ShowRemediationConfigurationResponse withCreatedAt(String createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + * 修正配置的创建时间。 + * @return createdAt + */ + public String getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(String createdAt) { + this.createdAt = createdAt; + } + + public ShowRemediationConfigurationResponse withUpdatedAt(String updatedAt) { + this.updatedAt = updatedAt; + return this; + } + + /** + * 修正配置的更新时间。 + * @return updatedAt + */ + public String getUpdatedAt() { + return updatedAt; + } + + public void setUpdatedAt(String updatedAt) { + this.updatedAt = updatedAt; + } + + public ShowRemediationConfigurationResponse withCreatedBy(String createdBy) { + this.createdBy = createdBy; + return this; + } + + /** + * 创建者。 + * @return createdBy + */ + public String getCreatedBy() { + return createdBy; + } + + public void setCreatedBy(String createdBy) { + this.createdBy = createdBy; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowRemediationConfigurationResponse that = (ShowRemediationConfigurationResponse) obj; + return Objects.equals(this.automatic, that.automatic) && Objects.equals(this.targetType, that.targetType) + && Objects.equals(this.targetId, that.targetId) + && Objects.equals(this.staticParameter, that.staticParameter) + && Objects.equals(this.resourceParameter, that.resourceParameter) + && Objects.equals(this.maximumAttempts, that.maximumAttempts) + && Objects.equals(this.retryAttemptSeconds, that.retryAttemptSeconds) + && Objects.equals(this.authType, that.authType) && Objects.equals(this.authValue, that.authValue) + && Objects.equals(this.createdAt, that.createdAt) && Objects.equals(this.updatedAt, that.updatedAt) + && Objects.equals(this.createdBy, that.createdBy); + } + + @Override + public int hashCode() { + return Objects.hash(automatic, + targetType, + targetId, + staticParameter, + resourceParameter, + maximumAttempts, + retryAttemptSeconds, + authType, + authValue, + createdAt, + updatedAt, + createdBy); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowRemediationConfigurationResponse {\n"); + sb.append(" automatic: ").append(toIndentedString(automatic)).append("\n"); + sb.append(" targetType: ").append(toIndentedString(targetType)).append("\n"); + sb.append(" targetId: ").append(toIndentedString(targetId)).append("\n"); + sb.append(" staticParameter: ").append(toIndentedString(staticParameter)).append("\n"); + sb.append(" resourceParameter: ").append(toIndentedString(resourceParameter)).append("\n"); + sb.append(" maximumAttempts: ").append(toIndentedString(maximumAttempts)).append("\n"); + sb.append(" retryAttemptSeconds: ").append(toIndentedString(retryAttemptSeconds)).append("\n"); + sb.append(" authType: ").append(toIndentedString(authType)).append("\n"); + sb.append(" authValue: ").append(toIndentedString(authValue)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append(" createdBy: ").append(toIndentedString(createdBy)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/cph/pom.xml b/services/cph/pom.xml index f1e481b24c..075dcc6c71 100644 --- a/services/cph/pom.xml +++ b/services/cph/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-cph - 3.1.99 + 3.1.100 Huawei Cloud SDK for CPH 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/cpts/pom.xml b/services/cpts/pom.xml index d7c3643a70..cd9411289f 100644 --- a/services/cpts/pom.xml +++ b/services/cpts/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-cpts - 3.1.99 + 3.1.100 Huawei Cloud SDK for CPTS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/cse/pom.xml b/services/cse/pom.xml index 678395ae70..cb3ec609b6 100644 --- a/services/cse/pom.xml +++ b/services/cse/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-cse - 3.1.99 + 3.1.100 Huawei Cloud SDK for CSE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/csms/pom.xml b/services/csms/pom.xml index d14c945942..56772308a5 100644 --- a/services/csms/pom.xml +++ b/services/csms/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-csms - 3.1.99 + 3.1.100 Huawei Cloud SDK for CSMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/css/pom.xml b/services/css/pom.xml index 60ac43d9d0..f20bae1686 100644 --- a/services/css/pom.xml +++ b/services/css/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-css - 3.1.99 + 3.1.100 Huawei Cloud SDK for CSS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/cts/pom.xml b/services/cts/pom.xml index 00aacbac4a..fe1789b672 100644 --- a/services/cts/pom.xml +++ b/services/cts/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-cts - 3.1.99 + 3.1.100 Huawei Cloud SDK for CTS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/das/pom.xml b/services/das/pom.xml index 1ac69531d5..277b9a84cb 100644 --- a/services/das/pom.xml +++ b/services/das/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-das - 3.1.99 + 3.1.100 Huawei Cloud SDK for DAS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/dataartsinsight/pom.xml b/services/dataartsinsight/pom.xml index f3836bfb90..8853f39c54 100644 --- a/services/dataartsinsight/pom.xml +++ b/services/dataartsinsight/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-dataartsinsight - 3.1.99 + 3.1.100 Huawei Cloud SDK for DATAARTSINSIGHT 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/dataartsstudio/pom.xml b/services/dataartsstudio/pom.xml index b03937c25f..f7bd6abfed 100644 --- a/services/dataartsstudio/pom.xml +++ b/services/dataartsstudio/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-dataartsstudio - 3.1.99 + 3.1.100 Huawei Cloud SDK for DATAARTSSTUDIO 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/dbss/pom.xml b/services/dbss/pom.xml index cec4f14119..3201706756 100644 --- a/services/dbss/pom.xml +++ b/services/dbss/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-dbss - 3.1.99 + 3.1.100 Huawei Cloud SDK for DBSS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/dc/pom.xml b/services/dc/pom.xml index 30c18d1cdf..0563a88488 100644 --- a/services/dc/pom.xml +++ b/services/dc/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-dc - 3.1.99 + 3.1.100 Huawei Cloud SDK for DC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/dcs/pom.xml b/services/dcs/pom.xml index cc94132a15..86352667bf 100644 --- a/services/dcs/pom.xml +++ b/services/dcs/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-dcs - 3.1.99 + 3.1.100 Huawei Cloud SDK for DCS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/TargetInstanceBody.java b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/TargetInstanceBody.java index 7c1630d6e7..d61bb7d3a4 100644 --- a/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/TargetInstanceBody.java +++ b/services/dcs/src/main/java/com/huaweicloud/sdk/dcs/v2/model/TargetInstanceBody.java @@ -25,6 +25,11 @@ public class TargetInstanceBody { private String password; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "task_status") + + private String taskStatus; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "ip") @@ -101,6 +106,23 @@ public void setPassword(String password) { this.password = password; } + public TargetInstanceBody withTaskStatus(String taskStatus) { + this.taskStatus = taskStatus; + return this; + } + + /** + * 任务状态。 + * @return taskStatus + */ + public String getTaskStatus() { + return taskStatus; + } + + public void setTaskStatus(String taskStatus) { + this.taskStatus = taskStatus; + } + public TargetInstanceBody withIp(String ip) { this.ip = ip; return this; @@ -196,14 +218,15 @@ public boolean equals(java.lang.Object obj) { } TargetInstanceBody that = (TargetInstanceBody) obj; return Objects.equals(this.id, that.id) && Objects.equals(this.name, that.name) - && Objects.equals(this.password, that.password) && Objects.equals(this.ip, that.ip) - && Objects.equals(this.port, that.port) && Objects.equals(this.addrs, that.addrs) - && Objects.equals(this.proxyMultiDb, that.proxyMultiDb) && Objects.equals(this.db, that.db); + && Objects.equals(this.password, that.password) && Objects.equals(this.taskStatus, that.taskStatus) + && Objects.equals(this.ip, that.ip) && Objects.equals(this.port, that.port) + && Objects.equals(this.addrs, that.addrs) && Objects.equals(this.proxyMultiDb, that.proxyMultiDb) + && Objects.equals(this.db, that.db); } @Override public int hashCode() { - return Objects.hash(id, name, password, ip, port, addrs, proxyMultiDb, db); + return Objects.hash(id, name, password, taskStatus, ip, port, addrs, proxyMultiDb, db); } @Override @@ -213,6 +236,7 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append(" taskStatus: ").append(toIndentedString(taskStatus)).append("\n"); sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); sb.append(" port: ").append(toIndentedString(port)).append("\n"); sb.append(" addrs: ").append(toIndentedString(addrs)).append("\n"); diff --git a/services/ddm/pom.xml b/services/ddm/pom.xml index bd90b314be..97aea3bb2c 100644 --- a/services/ddm/pom.xml +++ b/services/ddm/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-ddm - 3.1.99 + 3.1.100 Huawei Cloud SDK for DDM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/dds/pom.xml b/services/dds/pom.xml index fa8f33a99a..111a6fb732 100644 --- a/services/dds/pom.xml +++ b/services/dds/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-dds - 3.1.99 + 3.1.100 Huawei Cloud SDK for DDS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/deh/pom.xml b/services/deh/pom.xml index f1b896f55a..80214576d8 100644 --- a/services/deh/pom.xml +++ b/services/deh/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-deh - 3.1.99 + 3.1.100 Huawei Cloud SDK for DEH 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/devsecurity/pom.xml b/services/devsecurity/pom.xml index 0568b24ca5..66d30d5169 100644 --- a/services/devsecurity/pom.xml +++ b/services/devsecurity/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-devsecurity - 3.1.99 + 3.1.100 Huawei Cloud SDK for DEVSECURITY 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/devstar/pom.xml b/services/devstar/pom.xml index a349649f1d..0fd30dc365 100644 --- a/services/devstar/pom.xml +++ b/services/devstar/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-devstar - 3.1.99 + 3.1.100 Huawei Cloud SDK for DEVSTAR 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/dgc/pom.xml b/services/dgc/pom.xml index 6b5a31ae9f..936ac91126 100644 --- a/services/dgc/pom.xml +++ b/services/dgc/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-dgc - 3.1.99 + 3.1.100 Huawei Cloud SDK for DGC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/dgc/src/main/java/com/huaweicloud/sdk/dgc/v1/model/ListScriptResultsRequest.java b/services/dgc/src/main/java/com/huaweicloud/sdk/dgc/v1/model/ListScriptResultsRequest.java index adbb0a2ee9..a2e29a7bb5 100644 --- a/services/dgc/src/main/java/com/huaweicloud/sdk/dgc/v1/model/ListScriptResultsRequest.java +++ b/services/dgc/src/main/java/com/huaweicloud/sdk/dgc/v1/model/ListScriptResultsRequest.java @@ -48,7 +48,7 @@ public ListScriptResultsRequest withScriptName(String scriptName) { } /** - * Get scriptName + * 脚本名称 * @return scriptName */ public String getScriptName() { @@ -65,7 +65,7 @@ public ListScriptResultsRequest withInstanceId(String instanceId) { } /** - * Get instanceId + * 脚本实例id * @return instanceId */ public String getInstanceId() { diff --git a/services/dgc/src/main/java/com/huaweicloud/sdk/dgc/v1/model/ListScriptResultsResponse.java b/services/dgc/src/main/java/com/huaweicloud/sdk/dgc/v1/model/ListScriptResultsResponse.java index 9fb6b97fde..32376b4579 100644 --- a/services/dgc/src/main/java/com/huaweicloud/sdk/dgc/v1/model/ListScriptResultsResponse.java +++ b/services/dgc/src/main/java/com/huaweicloud/sdk/dgc/v1/model/ListScriptResultsResponse.java @@ -20,9 +20,14 @@ public class ListScriptResultsResponse extends SdkResponse { private String status; @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "result") + @JsonProperty(value = "results") - private List result = null; + private List results = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "message") + + private String message; public ListScriptResultsResponse withStatus(String status) { this.status = status; @@ -30,7 +35,7 @@ public ListScriptResultsResponse withStatus(String status) { } /** - * Get status + * 执行状态。 - LAUNCHING :提交中 - RUNNING : 运行中 - FINISHED:执行成功 - FAILED:执行失败 * @return status */ public String getStatus() { @@ -41,37 +46,54 @@ public void setStatus(String status) { this.status = status; } - public ListScriptResultsResponse withResult(List result) { - this.result = result; + public ListScriptResultsResponse withResults(List results) { + this.results = results; return this; } - public ListScriptResultsResponse addResultItem(Result resultItem) { - if (this.result == null) { - this.result = new ArrayList<>(); + public ListScriptResultsResponse addResultsItem(Result resultsItem) { + if (this.results == null) { + this.results = new ArrayList<>(); } - this.result.add(resultItem); + this.results.add(resultsItem); return this; } - public ListScriptResultsResponse withResult(Consumer> resultSetter) { - if (this.result == null) { - this.result = new ArrayList<>(); + public ListScriptResultsResponse withResults(Consumer> resultsSetter) { + if (this.results == null) { + this.results = new ArrayList<>(); } - resultSetter.accept(this.result); + resultsSetter.accept(this.results); + return this; + } + + /** + * 执行结果 + * @return results + */ + public List getResults() { + return results; + } + + public void setResults(List results) { + this.results = results; + } + + public ListScriptResultsResponse withMessage(String message) { + this.message = message; return this; } /** - * Get result - * @return result + * 执行失败消息 + * @return message */ - public List getResult() { - return result; + public String getMessage() { + return message; } - public void setResult(List result) { - this.result = result; + public void setMessage(String message) { + this.message = message; } @Override @@ -83,12 +105,13 @@ public boolean equals(java.lang.Object obj) { return false; } ListScriptResultsResponse that = (ListScriptResultsResponse) obj; - return Objects.equals(this.status, that.status) && Objects.equals(this.result, that.result); + return Objects.equals(this.status, that.status) && Objects.equals(this.results, that.results) + && Objects.equals(this.message, that.message); } @Override public int hashCode() { - return Objects.hash(status, result); + return Objects.hash(status, results, message); } @Override @@ -96,7 +119,8 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ListScriptResultsResponse {\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" results: ").append(toIndentedString(results)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/dgc/src/main/java/com/huaweicloud/sdk/dgc/v1/model/Result.java b/services/dgc/src/main/java/com/huaweicloud/sdk/dgc/v1/model/Result.java index ec5ea7d2ac..ebaff0b2e0 100644 --- a/services/dgc/src/main/java/com/huaweicloud/sdk/dgc/v1/model/Result.java +++ b/services/dgc/src/main/java/com/huaweicloud/sdk/dgc/v1/model/Result.java @@ -13,89 +13,177 @@ public class Result { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "message") - private String message; + private Object message; @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "rowCount") + @JsonProperty(value = "schema") - private Integer rowCount; + private Object schema; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "rows") - private String rows; + private Object rows; @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "schema") + @JsonProperty(value = "rowCount") + + private Long rowCount; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "inputRowCount") + + private Long inputRowCount; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "resultCount") + + private Long resultCount; - private String schema; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "duration") - public Result withMessage(String message) { + private Float duration; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "rawResult") + + private Object rawResult; + + public Result withMessage(Object message) { this.message = message; return this; } /** - * Get message + * 结果返回信息 * @return message */ - public String getMessage() { + public Object getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(Object message) { this.message = message; } - public Result withRowCount(Integer rowCount) { - this.rowCount = rowCount; + public Result withSchema(Object schema) { + this.schema = schema; return this; } /** - * Get rowCount - * @return rowCount + * 元数据信息 + * @return schema */ - public Integer getRowCount() { - return rowCount; + public Object getSchema() { + return schema; } - public void setRowCount(Integer rowCount) { - this.rowCount = rowCount; + public void setSchema(Object schema) { + this.schema = schema; } - public Result withRows(String rows) { + public Result withRows(Object rows) { this.rows = rows; return this; } /** - * Get rows + * 每条结果的信息 * @return rows */ - public String getRows() { + public Object getRows() { return rows; } - public void setRows(String rows) { + public void setRows(Object rows) { this.rows = rows; } - public Result withSchema(String schema) { - this.schema = schema; + public Result withRowCount(Long rowCount) { + this.rowCount = rowCount; return this; } /** - * Get schema - * @return schema + * 结果行数 + * @return rowCount */ - public String getSchema() { - return schema; + public Long getRowCount() { + return rowCount; } - public void setSchema(String schema) { - this.schema = schema; + public void setRowCount(Long rowCount) { + this.rowCount = rowCount; + } + + public Result withInputRowCount(Long inputRowCount) { + this.inputRowCount = inputRowCount; + return this; + } + + /** + * 输入结果的行数。(dli等脚本执行会执行此结果) + * @return inputRowCount + */ + public Long getInputRowCount() { + return inputRowCount; + } + + public void setInputRowCount(Long inputRowCount) { + this.inputRowCount = inputRowCount; + } + + public Result withResultCount(Long resultCount) { + this.resultCount = resultCount; + return this; + } + + /** + * 结果行数。(dli等脚本执行会执行此结果) + * @return resultCount + */ + public Long getResultCount() { + return resultCount; + } + + public void setResultCount(Long resultCount) { + this.resultCount = resultCount; + } + + public Result withDuration(Float duration) { + this.duration = duration; + return this; + } + + /** + * 脚本运行时间 + * @return duration + */ + public Float getDuration() { + return duration; + } + + public void setDuration(Float duration) { + this.duration = duration; + } + + public Result withRawResult(Object rawResult) { + this.rawResult = rawResult; + return this; + } + + /** + * 脚本结果信息 + * @return rawResult + */ + public Object getRawResult() { + return rawResult; + } + + public void setRawResult(Object rawResult) { + this.rawResult = rawResult; } @Override @@ -107,13 +195,16 @@ public boolean equals(java.lang.Object obj) { return false; } Result that = (Result) obj; - return Objects.equals(this.message, that.message) && Objects.equals(this.rowCount, that.rowCount) - && Objects.equals(this.rows, that.rows) && Objects.equals(this.schema, that.schema); + return Objects.equals(this.message, that.message) && Objects.equals(this.schema, that.schema) + && Objects.equals(this.rows, that.rows) && Objects.equals(this.rowCount, that.rowCount) + && Objects.equals(this.inputRowCount, that.inputRowCount) + && Objects.equals(this.resultCount, that.resultCount) && Objects.equals(this.duration, that.duration) + && Objects.equals(this.rawResult, that.rawResult); } @Override public int hashCode() { - return Objects.hash(message, rowCount, rows, schema); + return Objects.hash(message, schema, rows, rowCount, inputRowCount, resultCount, duration, rawResult); } @Override @@ -121,9 +212,13 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Result {\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" rowCount: ").append(toIndentedString(rowCount)).append("\n"); - sb.append(" rows: ").append(toIndentedString(rows)).append("\n"); sb.append(" schema: ").append(toIndentedString(schema)).append("\n"); + sb.append(" rows: ").append(toIndentedString(rows)).append("\n"); + sb.append(" rowCount: ").append(toIndentedString(rowCount)).append("\n"); + sb.append(" inputRowCount: ").append(toIndentedString(inputRowCount)).append("\n"); + sb.append(" resultCount: ").append(toIndentedString(resultCount)).append("\n"); + sb.append(" duration: ").append(toIndentedString(duration)).append("\n"); + sb.append(" rawResult: ").append(toIndentedString(rawResult)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/dis/pom.xml b/services/dis/pom.xml index 7cbf6c497e..bffcdc2953 100644 --- a/services/dis/pom.xml +++ b/services/dis/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-dis - 3.1.99 + 3.1.100 Huawei Cloud SDK for DIS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/dlf/pom.xml b/services/dlf/pom.xml index 4d87caeb4b..75ecb3791b 100644 --- a/services/dlf/pom.xml +++ b/services/dlf/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-dlf - 3.1.99 + 3.1.100 Huawei Cloud SDK for DLF 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/dli/pom.xml b/services/dli/pom.xml index 784c96639f..fdf4f684da 100644 --- a/services/dli/pom.xml +++ b/services/dli/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-dli - 3.1.99 + 3.1.100 Huawei Cloud SDK for DLI 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/DliAsyncClient.java b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/DliAsyncClient.java index b254124e99..6b6c0d511d 100644 --- a/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/DliAsyncClient.java +++ b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/DliAsyncClient.java @@ -71,6 +71,8 @@ import com.huaweicloud.sdk.dli.v1.model.CreateSqlJobResponse; import com.huaweicloud.sdk.dli.v1.model.CreateSqlJobTemplateRequest; import com.huaweicloud.sdk.dli.v1.model.CreateSqlJobTemplateResponse; +import com.huaweicloud.sdk.dli.v1.model.CreateStreamJobRequest; +import com.huaweicloud.sdk.dli.v1.model.CreateStreamJobResponse; import com.huaweicloud.sdk.dli.v1.model.CreateTableRequest; import com.huaweicloud.sdk.dli.v1.model.CreateTableResponse; import com.huaweicloud.sdk.dli.v1.model.DeleteAuthInfoRequest; @@ -786,6 +788,35 @@ public AsyncInvoker(request, DliMeta.createRouteToEnhancedConnection, hcClient); } + /** + * 提交流作业 + * + * 通过 POST 方式,提交流式作业,请求体为 JSON 格式。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateStreamJobRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture createStreamJobAsync(CreateStreamJobRequest request) { + return hcClient.asyncInvokeHttp(request, DliMeta.createStreamJob); + } + + /** + * 提交流作业 + * + * 通过 POST 方式,提交流式作业,请求体为 JSON 格式。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateStreamJobRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker createStreamJobAsyncInvoker( + CreateStreamJobRequest request) { + return new AsyncInvoker<>(request, DliMeta.createStreamJob, hcClient); + } + /** * 删除跨源认证 * diff --git a/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/DliClient.java b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/DliClient.java index 04a764eb38..9ffbb951ea 100644 --- a/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/DliClient.java +++ b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/DliClient.java @@ -71,6 +71,8 @@ import com.huaweicloud.sdk.dli.v1.model.CreateSqlJobResponse; import com.huaweicloud.sdk.dli.v1.model.CreateSqlJobTemplateRequest; import com.huaweicloud.sdk.dli.v1.model.CreateSqlJobTemplateResponse; +import com.huaweicloud.sdk.dli.v1.model.CreateStreamJobRequest; +import com.huaweicloud.sdk.dli.v1.model.CreateStreamJobResponse; import com.huaweicloud.sdk.dli.v1.model.CreateTableRequest; import com.huaweicloud.sdk.dli.v1.model.CreateTableResponse; import com.huaweicloud.sdk.dli.v1.model.DeleteAuthInfoRequest; @@ -778,6 +780,35 @@ public SyncInvoker(request, DliMeta.createRouteToEnhancedConnection, hcClient); } + /** + * 提交流作业 + * + * 通过 POST 方式,提交流式作业,请求体为 JSON 格式。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateStreamJobRequest 请求对象 + * @return CreateStreamJobResponse + */ + public CreateStreamJobResponse createStreamJob(CreateStreamJobRequest request) { + return hcClient.syncInvokeHttp(request, DliMeta.createStreamJob); + } + + /** + * 提交流作业 + * + * 通过 POST 方式,提交流式作业,请求体为 JSON 格式。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateStreamJobRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker createStreamJobInvoker( + CreateStreamJobRequest request) { + return new SyncInvoker<>(request, DliMeta.createStreamJob, hcClient); + } + /** * 删除跨源认证 * diff --git a/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/DliMeta.java b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/DliMeta.java index adee0495fb..e459205102 100644 --- a/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/DliMeta.java +++ b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/DliMeta.java @@ -104,6 +104,9 @@ import com.huaweicloud.sdk.dli.v1.model.CreateSqlJobTemplateRequest; import com.huaweicloud.sdk.dli.v1.model.CreateSqlJobTemplateRequestBody; import com.huaweicloud.sdk.dli.v1.model.CreateSqlJobTemplateResponse; +import com.huaweicloud.sdk.dli.v1.model.CreateStreamJobRequest; +import com.huaweicloud.sdk.dli.v1.model.CreateStreamJobRequestBody; +import com.huaweicloud.sdk.dli.v1.model.CreateStreamJobResponse; import com.huaweicloud.sdk.dli.v1.model.CreateTableRequest; import com.huaweicloud.sdk.dli.v1.model.CreateTableRequestBody; import com.huaweicloud.sdk.dli.v1.model.CreateTableResponse; @@ -794,6 +797,29 @@ private static HttpRequestDef createStreamJob = + genForCreateStreamJob(); + + private static HttpRequestDef genForCreateStreamJob() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, CreateStreamJobRequest.class, CreateStreamJobResponse.class) + .withName("CreateStreamJob") + .withUri("/v2/{project_id}/streams") + .withContentType("application/json"); + + // requests + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(CreateStreamJobRequestBody.class), + f -> f.withMarshaller(CreateStreamJobRequest::getBody, CreateStreamJobRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef deleteAuthInfo = genForDeleteAuthInfo(); diff --git a/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/CreateStreamJobRequest.java b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/CreateStreamJobRequest.java new file mode 100644 index 0000000000..79bd52672e --- /dev/null +++ b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/CreateStreamJobRequest.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.dli.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class CreateStreamJobRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private CreateStreamJobRequestBody body; + + public CreateStreamJobRequest withBody(CreateStreamJobRequestBody body) { + this.body = body; + return this; + } + + public CreateStreamJobRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new CreateStreamJobRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public CreateStreamJobRequestBody getBody() { + return body; + } + + public void setBody(CreateStreamJobRequestBody body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateStreamJobRequest that = (CreateStreamJobRequest) obj; + return Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateStreamJobRequest {\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/CreateStreamJobRequestBody.java b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/CreateStreamJobRequestBody.java new file mode 100644 index 0000000000..254b207aed --- /dev/null +++ b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/CreateStreamJobRequestBody.java @@ -0,0 +1,300 @@ +package com.huaweicloud.sdk.dli.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 提交流作业的请求参数。 + */ +public class CreateStreamJobRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "transaction_id") + + private String transactionId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_type") + + private String jobType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tags") + + private List tags = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "environment_config") + + private StreamEnvironmentConfig environmentConfig; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "runtime_config") + + private StreamRuntimeConfig runtimeConfig; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "flink_sql_parameter") + + private FlinkSqlParameter flinkSqlParameter; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "flink_jar_parameter") + + private FlinkJarParameter flinkJarParameter; + + public CreateStreamJobRequestBody withTransactionId(String transactionId) { + this.transactionId = transactionId; + return this; + } + + /** + * 流作业事务 ID,防止重复提交。长度限制:0-64个字符。 + * @return transactionId + */ + public String getTransactionId() { + return transactionId; + } + + public void setTransactionId(String transactionId) { + this.transactionId = transactionId; + } + + public CreateStreamJobRequestBody withJobType(String jobType) { + this.jobType = jobType; + return this; + } + + /** + * 作业类型:flink_sql_job或flink_jar_job + * @return jobType + */ + public String getJobType() { + return jobType; + } + + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public CreateStreamJobRequestBody withDescription(String description) { + this.description = description; + return this; + } + + /** + * 流作业描述。长度限制:0-512个字符。 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public CreateStreamJobRequestBody withTags(List tags) { + this.tags = tags; + return this; + } + + public CreateStreamJobRequestBody addTagsItem(Tag tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + this.tags.add(tagsItem); + return this; + } + + public CreateStreamJobRequestBody withTags(Consumer> tagsSetter) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + tagsSetter.accept(this.tags); + return this; + } + + /** + * 标签。 + * @return tags + */ + public List getTags() { + return tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + public CreateStreamJobRequestBody withEnvironmentConfig(StreamEnvironmentConfig environmentConfig) { + this.environmentConfig = environmentConfig; + return this; + } + + public CreateStreamJobRequestBody withEnvironmentConfig(Consumer environmentConfigSetter) { + if (this.environmentConfig == null) { + this.environmentConfig = new StreamEnvironmentConfig(); + environmentConfigSetter.accept(this.environmentConfig); + } + + return this; + } + + /** + * Get environmentConfig + * @return environmentConfig + */ + public StreamEnvironmentConfig getEnvironmentConfig() { + return environmentConfig; + } + + public void setEnvironmentConfig(StreamEnvironmentConfig environmentConfig) { + this.environmentConfig = environmentConfig; + } + + public CreateStreamJobRequestBody withRuntimeConfig(StreamRuntimeConfig runtimeConfig) { + this.runtimeConfig = runtimeConfig; + return this; + } + + public CreateStreamJobRequestBody withRuntimeConfig(Consumer runtimeConfigSetter) { + if (this.runtimeConfig == null) { + this.runtimeConfig = new StreamRuntimeConfig(); + runtimeConfigSetter.accept(this.runtimeConfig); + } + + return this; + } + + /** + * Get runtimeConfig + * @return runtimeConfig + */ + public StreamRuntimeConfig getRuntimeConfig() { + return runtimeConfig; + } + + public void setRuntimeConfig(StreamRuntimeConfig runtimeConfig) { + this.runtimeConfig = runtimeConfig; + } + + public CreateStreamJobRequestBody withFlinkSqlParameter(FlinkSqlParameter flinkSqlParameter) { + this.flinkSqlParameter = flinkSqlParameter; + return this; + } + + public CreateStreamJobRequestBody withFlinkSqlParameter(Consumer flinkSqlParameterSetter) { + if (this.flinkSqlParameter == null) { + this.flinkSqlParameter = new FlinkSqlParameter(); + flinkSqlParameterSetter.accept(this.flinkSqlParameter); + } + + return this; + } + + /** + * Get flinkSqlParameter + * @return flinkSqlParameter + */ + public FlinkSqlParameter getFlinkSqlParameter() { + return flinkSqlParameter; + } + + public void setFlinkSqlParameter(FlinkSqlParameter flinkSqlParameter) { + this.flinkSqlParameter = flinkSqlParameter; + } + + public CreateStreamJobRequestBody withFlinkJarParameter(FlinkJarParameter flinkJarParameter) { + this.flinkJarParameter = flinkJarParameter; + return this; + } + + public CreateStreamJobRequestBody withFlinkJarParameter(Consumer flinkJarParameterSetter) { + if (this.flinkJarParameter == null) { + this.flinkJarParameter = new FlinkJarParameter(); + flinkJarParameterSetter.accept(this.flinkJarParameter); + } + + return this; + } + + /** + * Get flinkJarParameter + * @return flinkJarParameter + */ + public FlinkJarParameter getFlinkJarParameter() { + return flinkJarParameter; + } + + public void setFlinkJarParameter(FlinkJarParameter flinkJarParameter) { + this.flinkJarParameter = flinkJarParameter; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateStreamJobRequestBody that = (CreateStreamJobRequestBody) obj; + return Objects.equals(this.transactionId, that.transactionId) && Objects.equals(this.jobType, that.jobType) + && Objects.equals(this.description, that.description) && Objects.equals(this.tags, that.tags) + && Objects.equals(this.environmentConfig, that.environmentConfig) + && Objects.equals(this.runtimeConfig, that.runtimeConfig) + && Objects.equals(this.flinkSqlParameter, that.flinkSqlParameter) + && Objects.equals(this.flinkJarParameter, that.flinkJarParameter); + } + + @Override + public int hashCode() { + return Objects.hash(transactionId, + jobType, + description, + tags, + environmentConfig, + runtimeConfig, + flinkSqlParameter, + flinkJarParameter); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateStreamJobRequestBody {\n"); + sb.append(" transactionId: ").append(toIndentedString(transactionId)).append("\n"); + sb.append(" jobType: ").append(toIndentedString(jobType)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" environmentConfig: ").append(toIndentedString(environmentConfig)).append("\n"); + sb.append(" runtimeConfig: ").append(toIndentedString(runtimeConfig)).append("\n"); + sb.append(" flinkSqlParameter: ").append(toIndentedString(flinkSqlParameter)).append("\n"); + sb.append(" flinkJarParameter: ").append(toIndentedString(flinkJarParameter)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/CreateStreamJobResponse.java b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/CreateStreamJobResponse.java new file mode 100644 index 0000000000..f0b7138a3b --- /dev/null +++ b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/CreateStreamJobResponse.java @@ -0,0 +1,130 @@ +package com.huaweicloud.sdk.dli.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class CreateStreamJobResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_success") + + private String isSuccess; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "message") + + private String message; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job") + + private StreamJobStatus job; + + public CreateStreamJobResponse withIsSuccess(String isSuccess) { + this.isSuccess = isSuccess; + return this; + } + + /** + * 执行请求是否成功。“true”表示请求执行成功。 + * @return isSuccess + */ + public String getIsSuccess() { + return isSuccess; + } + + public void setIsSuccess(String isSuccess) { + this.isSuccess = isSuccess; + } + + public CreateStreamJobResponse withMessage(String message) { + this.message = message; + return this; + } + + /** + * 消息内容 + * @return message + */ + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public CreateStreamJobResponse withJob(StreamJobStatus job) { + this.job = job; + return this; + } + + public CreateStreamJobResponse withJob(Consumer jobSetter) { + if (this.job == null) { + this.job = new StreamJobStatus(); + jobSetter.accept(this.job); + } + + return this; + } + + /** + * Get job + * @return job + */ + public StreamJobStatus getJob() { + return job; + } + + public void setJob(StreamJobStatus job) { + this.job = job; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateStreamJobResponse that = (CreateStreamJobResponse) obj; + return Objects.equals(this.isSuccess, that.isSuccess) && Objects.equals(this.message, that.message) + && Objects.equals(this.job, that.job); + } + + @Override + public int hashCode() { + return Objects.hash(isSuccess, message, job); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateStreamJobResponse {\n"); + sb.append(" isSuccess: ").append(toIndentedString(isSuccess)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" job: ").append(toIndentedString(job)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/FlinkJarParameter.java b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/FlinkJarParameter.java new file mode 100644 index 0000000000..6525560488 --- /dev/null +++ b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/FlinkJarParameter.java @@ -0,0 +1,201 @@ +package com.huaweicloud.sdk.dli.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Flink Jar 作业参数。 + */ +public class FlinkJarParameter { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "main_class") + + private String mainClass; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "main_args") + + private String mainArgs; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "main_jar") + + private String mainJar; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dependency_jars") + + private List dependencyJars = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dependency_files") + + private List dependencyFiles = null; + + public FlinkJarParameter withMainClass(String mainClass) { + this.mainClass = mainClass; + return this; + } + + /** + * Flink Jar 作业入口类。 + * @return mainClass + */ + public String getMainClass() { + return mainClass; + } + + public void setMainClass(String mainClass) { + this.mainClass = mainClass; + } + + public FlinkJarParameter withMainArgs(String mainArgs) { + this.mainArgs = mainArgs; + return this; + } + + /** + * Flink Jar 作业入口类参数,多个参数之间空格分隔。 + * @return mainArgs + */ + public String getMainArgs() { + return mainArgs; + } + + public void setMainArgs(String mainArgs) { + this.mainArgs = mainArgs; + } + + public FlinkJarParameter withMainJar(String mainJar) { + this.mainJar = mainJar; + return this; + } + + /** + * Flink Jar 作业主类所在 Jar 包的 OBS 路径。 + * @return mainJar + */ + public String getMainJar() { + return mainJar; + } + + public void setMainJar(String mainJar) { + this.mainJar = mainJar; + } + + public FlinkJarParameter withDependencyJars(List dependencyJars) { + this.dependencyJars = dependencyJars; + return this; + } + + public FlinkJarParameter addDependencyJarsItem(String dependencyJarsItem) { + if (this.dependencyJars == null) { + this.dependencyJars = new ArrayList<>(); + } + this.dependencyJars.add(dependencyJarsItem); + return this; + } + + public FlinkJarParameter withDependencyJars(Consumer> dependencyJarsSetter) { + if (this.dependencyJars == null) { + this.dependencyJars = new ArrayList<>(); + } + dependencyJarsSetter.accept(this.dependencyJars); + return this; + } + + /** + * Flink Jar 作业依赖 Jar 包的 OBS 路径数组。示例:[obs://bucket/demo/test1.jar,obs://bucket/demo/test2.jar] + * @return dependencyJars + */ + public List getDependencyJars() { + return dependencyJars; + } + + public void setDependencyJars(List dependencyJars) { + this.dependencyJars = dependencyJars; + } + + public FlinkJarParameter withDependencyFiles(List dependencyFiles) { + this.dependencyFiles = dependencyFiles; + return this; + } + + public FlinkJarParameter addDependencyFilesItem(String dependencyFilesItem) { + if (this.dependencyFiles == null) { + this.dependencyFiles = new ArrayList<>(); + } + this.dependencyFiles.add(dependencyFilesItem); + return this; + } + + public FlinkJarParameter withDependencyFiles(Consumer> dependencyFilesSetter) { + if (this.dependencyFiles == null) { + this.dependencyFiles = new ArrayList<>(); + } + dependencyFilesSetter.accept(this.dependencyFiles); + return this; + } + + /** + * Flink Jar 作业依赖文件的 OBS 路径数组。示例:[obs://bucket/demo/test1.csv,obs://bucket/demo/test2.csv] + * @return dependencyFiles + */ + public List getDependencyFiles() { + return dependencyFiles; + } + + public void setDependencyFiles(List dependencyFiles) { + this.dependencyFiles = dependencyFiles; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + FlinkJarParameter that = (FlinkJarParameter) obj; + return Objects.equals(this.mainClass, that.mainClass) && Objects.equals(this.mainArgs, that.mainArgs) + && Objects.equals(this.mainJar, that.mainJar) && Objects.equals(this.dependencyJars, that.dependencyJars) + && Objects.equals(this.dependencyFiles, that.dependencyFiles); + } + + @Override + public int hashCode() { + return Objects.hash(mainClass, mainArgs, mainJar, dependencyJars, dependencyFiles); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FlinkJarParameter {\n"); + sb.append(" mainClass: ").append(toIndentedString(mainClass)).append("\n"); + sb.append(" mainArgs: ").append(toIndentedString(mainArgs)).append("\n"); + sb.append(" mainJar: ").append(toIndentedString(mainJar)).append("\n"); + sb.append(" dependencyJars: ").append(toIndentedString(dependencyJars)).append("\n"); + sb.append(" dependencyFiles: ").append(toIndentedString(dependencyFiles)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/FlinkResourceConfig.java b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/FlinkResourceConfig.java new file mode 100644 index 0000000000..365753b2a7 --- /dev/null +++ b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/FlinkResourceConfig.java @@ -0,0 +1,162 @@ +package com.huaweicloud.sdk.dli.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Flink 作业的资源配置。 + */ +public class FlinkResourceConfig { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "max_slot") + + private Integer maxSlot; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "parallel_number") + + private Integer parallelNumber; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "jobmanager_resource_spec") + + private ResourceSpec jobmanagerResourceSpec; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "taskmanager_resource_spec") + + private ResourceSpec taskmanagerResourceSpec; + + public FlinkResourceConfig withMaxSlot(Integer maxSlot) { + this.maxSlot = maxSlot; + return this; + } + + /** + * 最大的 slot 数。 + * @return maxSlot + */ + public Integer getMaxSlot() { + return maxSlot; + } + + public void setMaxSlot(Integer maxSlot) { + this.maxSlot = maxSlot; + } + + public FlinkResourceConfig withParallelNumber(Integer parallelNumber) { + this.parallelNumber = parallelNumber; + return this; + } + + /** + * 用户设置的作业并行数目。默认值为1。 + * @return parallelNumber + */ + public Integer getParallelNumber() { + return parallelNumber; + } + + public void setParallelNumber(Integer parallelNumber) { + this.parallelNumber = parallelNumber; + } + + public FlinkResourceConfig withJobmanagerResourceSpec(ResourceSpec jobmanagerResourceSpec) { + this.jobmanagerResourceSpec = jobmanagerResourceSpec; + return this; + } + + public FlinkResourceConfig withJobmanagerResourceSpec(Consumer jobmanagerResourceSpecSetter) { + if (this.jobmanagerResourceSpec == null) { + this.jobmanagerResourceSpec = new ResourceSpec(); + jobmanagerResourceSpecSetter.accept(this.jobmanagerResourceSpec); + } + + return this; + } + + /** + * Get jobmanagerResourceSpec + * @return jobmanagerResourceSpec + */ + public ResourceSpec getJobmanagerResourceSpec() { + return jobmanagerResourceSpec; + } + + public void setJobmanagerResourceSpec(ResourceSpec jobmanagerResourceSpec) { + this.jobmanagerResourceSpec = jobmanagerResourceSpec; + } + + public FlinkResourceConfig withTaskmanagerResourceSpec(ResourceSpec taskmanagerResourceSpec) { + this.taskmanagerResourceSpec = taskmanagerResourceSpec; + return this; + } + + public FlinkResourceConfig withTaskmanagerResourceSpec(Consumer taskmanagerResourceSpecSetter) { + if (this.taskmanagerResourceSpec == null) { + this.taskmanagerResourceSpec = new ResourceSpec(); + taskmanagerResourceSpecSetter.accept(this.taskmanagerResourceSpec); + } + + return this; + } + + /** + * Get taskmanagerResourceSpec + * @return taskmanagerResourceSpec + */ + public ResourceSpec getTaskmanagerResourceSpec() { + return taskmanagerResourceSpec; + } + + public void setTaskmanagerResourceSpec(ResourceSpec taskmanagerResourceSpec) { + this.taskmanagerResourceSpec = taskmanagerResourceSpec; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + FlinkResourceConfig that = (FlinkResourceConfig) obj; + return Objects.equals(this.maxSlot, that.maxSlot) && Objects.equals(this.parallelNumber, that.parallelNumber) + && Objects.equals(this.jobmanagerResourceSpec, that.jobmanagerResourceSpec) + && Objects.equals(this.taskmanagerResourceSpec, that.taskmanagerResourceSpec); + } + + @Override + public int hashCode() { + return Objects.hash(maxSlot, parallelNumber, jobmanagerResourceSpec, taskmanagerResourceSpec); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FlinkResourceConfig {\n"); + sb.append(" maxSlot: ").append(toIndentedString(maxSlot)).append("\n"); + sb.append(" parallelNumber: ").append(toIndentedString(parallelNumber)).append("\n"); + sb.append(" jobmanagerResourceSpec: ").append(toIndentedString(jobmanagerResourceSpec)).append("\n"); + sb.append(" taskmanagerResourceSpec: ").append(toIndentedString(taskmanagerResourceSpec)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/FlinkRestoreStrategy.java b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/FlinkRestoreStrategy.java new file mode 100644 index 0000000000..70e79dabfb --- /dev/null +++ b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/FlinkRestoreStrategy.java @@ -0,0 +1,144 @@ +package com.huaweicloud.sdk.dli.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Flink 作业的启动策略。 + */ +public class FlinkRestoreStrategy { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "restore_type") + + private String restoreType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "allow_non_restored_state") + + private Boolean allowNonRestoredState; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_start_time_in_ms") + + private Integer jobStartTimeInMs; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "savepoint_id") + + private String savepointId; + + public FlinkRestoreStrategy withRestoreType(String restoreType) { + this.restoreType = restoreType; + return this; + } + + /** + * 启动位点类型。 NONE:无状态启动。 LATEST_SAVEPOINT:最新的作业快照启动。 FROM_SAVEPOINT:从指定快照启动。 LATEST_STATE:最新状态启动。 + * @return restoreType + */ + public String getRestoreType() { + return restoreType; + } + + public void setRestoreType(String restoreType) { + this.restoreType = restoreType; + } + + public FlinkRestoreStrategy withAllowNonRestoredState(Boolean allowNonRestoredState) { + this.allowNonRestoredState = allowNonRestoredState; + return this; + } + + /** + * 允许忽略部分算子状态。仅当作业选择有状态恢复时需要设置。 + * @return allowNonRestoredState + */ + public Boolean getAllowNonRestoredState() { + return allowNonRestoredState; + } + + public void setAllowNonRestoredState(Boolean allowNonRestoredState) { + this.allowNonRestoredState = allowNonRestoredState; + } + + public FlinkRestoreStrategy withJobStartTimeInMs(Integer jobStartTimeInMs) { + this.jobStartTimeInMs = jobStartTimeInMs; + return this; + } + + /** + * 无状态启动时间,需输入 13 位时间戳。当选择无状态启动时,可以设置本参数让所有支持 startTime 的源表均从该时刻开始读取数据。 + * @return jobStartTimeInMs + */ + public Integer getJobStartTimeInMs() { + return jobStartTimeInMs; + } + + public void setJobStartTimeInMs(Integer jobStartTimeInMs) { + this.jobStartTimeInMs = jobStartTimeInMs; + } + + public FlinkRestoreStrategy withSavepointId(String savepointId) { + this.savepointId = savepointId; + return this; + } + + /** + * 启动作业快照 ID,启动策略为 FROM_SAVEPOINT 时必填。 + * @return savepointId + */ + public String getSavepointId() { + return savepointId; + } + + public void setSavepointId(String savepointId) { + this.savepointId = savepointId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + FlinkRestoreStrategy that = (FlinkRestoreStrategy) obj; + return Objects.equals(this.restoreType, that.restoreType) + && Objects.equals(this.allowNonRestoredState, that.allowNonRestoredState) + && Objects.equals(this.jobStartTimeInMs, that.jobStartTimeInMs) + && Objects.equals(this.savepointId, that.savepointId); + } + + @Override + public int hashCode() { + return Objects.hash(restoreType, allowNonRestoredState, jobStartTimeInMs, savepointId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FlinkRestoreStrategy {\n"); + sb.append(" restoreType: ").append(toIndentedString(restoreType)).append("\n"); + sb.append(" allowNonRestoredState: ").append(toIndentedString(allowNonRestoredState)).append("\n"); + sb.append(" jobStartTimeInMs: ").append(toIndentedString(jobStartTimeInMs)).append("\n"); + sb.append(" savepointId: ").append(toIndentedString(savepointId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/FlinkRuntimeConfig.java b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/FlinkRuntimeConfig.java new file mode 100644 index 0000000000..c789e2e63c --- /dev/null +++ b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/FlinkRuntimeConfig.java @@ -0,0 +1,138 @@ +package com.huaweicloud.sdk.dli.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Flink 作业运行时配置。 + */ +public class FlinkRuntimeConfig { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "version") + + private String version; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "restore_strategy") + + private FlinkRestoreStrategy restoreStrategy; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "resource_config") + + private FlinkResourceConfig resourceConfig; + + public FlinkRuntimeConfig withVersion(String version) { + this.version = version; + return this; + } + + /** + * Flink 版本。仅支持 Flink 1.15及以上版本。 + * @return version + */ + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + public FlinkRuntimeConfig withRestoreStrategy(FlinkRestoreStrategy restoreStrategy) { + this.restoreStrategy = restoreStrategy; + return this; + } + + public FlinkRuntimeConfig withRestoreStrategy(Consumer restoreStrategySetter) { + if (this.restoreStrategy == null) { + this.restoreStrategy = new FlinkRestoreStrategy(); + restoreStrategySetter.accept(this.restoreStrategy); + } + + return this; + } + + /** + * Get restoreStrategy + * @return restoreStrategy + */ + public FlinkRestoreStrategy getRestoreStrategy() { + return restoreStrategy; + } + + public void setRestoreStrategy(FlinkRestoreStrategy restoreStrategy) { + this.restoreStrategy = restoreStrategy; + } + + public FlinkRuntimeConfig withResourceConfig(FlinkResourceConfig resourceConfig) { + this.resourceConfig = resourceConfig; + return this; + } + + public FlinkRuntimeConfig withResourceConfig(Consumer resourceConfigSetter) { + if (this.resourceConfig == null) { + this.resourceConfig = new FlinkResourceConfig(); + resourceConfigSetter.accept(this.resourceConfig); + } + + return this; + } + + /** + * Get resourceConfig + * @return resourceConfig + */ + public FlinkResourceConfig getResourceConfig() { + return resourceConfig; + } + + public void setResourceConfig(FlinkResourceConfig resourceConfig) { + this.resourceConfig = resourceConfig; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + FlinkRuntimeConfig that = (FlinkRuntimeConfig) obj; + return Objects.equals(this.version, that.version) && Objects.equals(this.restoreStrategy, that.restoreStrategy) + && Objects.equals(this.resourceConfig, that.resourceConfig); + } + + @Override + public int hashCode() { + return Objects.hash(version, restoreStrategy, resourceConfig); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FlinkRuntimeConfig {\n"); + sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" restoreStrategy: ").append(toIndentedString(restoreStrategy)).append("\n"); + sb.append(" resourceConfig: ").append(toIndentedString(resourceConfig)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/FlinkSqlParameter.java b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/FlinkSqlParameter.java new file mode 100644 index 0000000000..62ce96e586 --- /dev/null +++ b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/FlinkSqlParameter.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.dli.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Flink SQL 作业参数。 + */ +public class FlinkSqlParameter { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sql_body") + + private String sqlBody; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dependency_jars") + + private String dependencyJars; + + public FlinkSqlParameter withSqlBody(String sqlBody) { + this.sqlBody = sqlBody; + return this; + } + + /** + * Flink SQL 语句。长度限制:1048576个字符。 + * @return sqlBody + */ + public String getSqlBody() { + return sqlBody; + } + + public void setSqlBody(String sqlBody) { + this.sqlBody = sqlBody; + } + + public FlinkSqlParameter withDependencyJars(String dependencyJars) { + this.dependencyJars = dependencyJars; + return this; + } + + /** + * Flink SQL 作业依赖的 Jar 包所在的 OBS 路径。 + * @return dependencyJars + */ + public String getDependencyJars() { + return dependencyJars; + } + + public void setDependencyJars(String dependencyJars) { + this.dependencyJars = dependencyJars; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + FlinkSqlParameter that = (FlinkSqlParameter) obj; + return Objects.equals(this.sqlBody, that.sqlBody) && Objects.equals(this.dependencyJars, that.dependencyJars); + } + + @Override + public int hashCode() { + return Objects.hash(sqlBody, dependencyJars); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FlinkSqlParameter {\n"); + sb.append(" sqlBody: ").append(toIndentedString(sqlBody)).append("\n"); + sb.append(" dependencyJars: ").append(toIndentedString(dependencyJars)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/Properties.java b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/Properties.java new file mode 100644 index 0000000000..2d19ca3d3d --- /dev/null +++ b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/Properties.java @@ -0,0 +1,34 @@ +package com.huaweicloud.sdk.dli.v1.model; + +import java.util.Objects; + +/** + * Properties + */ +public class Properties { + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Properties {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/ResourceSpec.java b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/ResourceSpec.java new file mode 100644 index 0000000000..efd4e8e599 --- /dev/null +++ b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/ResourceSpec.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.dli.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 表示对作业使用 CPU 和内存资源的包装,依据本数据结构可以生成对 JM/TM 资源的粗粒度的描述。 + */ +public class ResourceSpec { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "cpu") + + private Double cpu; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "memory") + + private String memory; + + public ResourceSpec withCpu(Double cpu) { + this.cpu = cpu; + return this; + } + + /** + * CPU 核数 + * @return cpu + */ + public Double getCpu() { + return cpu; + } + + public void setCpu(Double cpu) { + this.cpu = cpu; + } + + public ResourceSpec withMemory(String memory) { + this.memory = memory; + return this; + } + + /** + * 内存,单位 GiB。 + * @return memory + */ + public String getMemory() { + return memory; + } + + public void setMemory(String memory) { + this.memory = memory; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ResourceSpec that = (ResourceSpec) obj; + return Objects.equals(this.cpu, that.cpu) && Objects.equals(this.memory, that.memory); + } + + @Override + public int hashCode() { + return Objects.hash(cpu, memory); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResourceSpec {\n"); + sb.append(" cpu: ").append(toIndentedString(cpu)).append("\n"); + sb.append(" memory: ").append(toIndentedString(memory)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/StreamClassLoggerLevel.java b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/StreamClassLoggerLevel.java new file mode 100644 index 0000000000..9c9b2338cc --- /dev/null +++ b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/StreamClassLoggerLevel.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.dli.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 输出日志的类名称对应的日志级别配置。 + */ +public class StreamClassLoggerLevel { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "logger_name") + + private String loggerName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "logger_level") + + private String loggerLevel; + + public StreamClassLoggerLevel withLoggerName(String loggerName) { + this.loggerName = loggerName; + return this; + } + + /** + * 输出日志的类的名称。 + * @return loggerName + */ + public String getLoggerName() { + return loggerName; + } + + public void setLoggerName(String loggerName) { + this.loggerName = loggerName; + } + + public StreamClassLoggerLevel withLoggerLevel(String loggerLevel) { + this.loggerLevel = loggerLevel; + return this; + } + + /** + * 输出日志的级别,DEBUG\\TRACE\\WARNNING\\INFO\\ERROR。 + * @return loggerLevel + */ + public String getLoggerLevel() { + return loggerLevel; + } + + public void setLoggerLevel(String loggerLevel) { + this.loggerLevel = loggerLevel; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + StreamClassLoggerLevel that = (StreamClassLoggerLevel) obj; + return Objects.equals(this.loggerName, that.loggerName) && Objects.equals(this.loggerLevel, that.loggerLevel); + } + + @Override + public int hashCode() { + return Objects.hash(loggerName, loggerLevel); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class StreamClassLoggerLevel {\n"); + sb.append(" loggerName: ").append(toIndentedString(loggerName)).append("\n"); + sb.append(" loggerLevel: ").append(toIndentedString(loggerLevel)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/StreamEnvironmentConfig.java b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/StreamEnvironmentConfig.java new file mode 100644 index 0000000000..1dcd451f62 --- /dev/null +++ b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/StreamEnvironmentConfig.java @@ -0,0 +1,143 @@ +package com.huaweicloud.sdk.dli.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 流作业的上下文配置。 + */ +public class StreamEnvironmentConfig { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "execution_agency_urn") + + private String executionAgencyUrn; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "image_feature") + + private String imageFeature; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "image_uri") + + private String imageUri; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "queue_name") + + private String queueName; + + public StreamEnvironmentConfig withExecutionAgencyUrn(String executionAgencyUrn) { + this.executionAgencyUrn = executionAgencyUrn; + return this; + } + + /** + * 自定义委托名,定义作业级访问权限。 + * @return executionAgencyUrn + */ + public String getExecutionAgencyUrn() { + return executionAgencyUrn; + } + + public void setExecutionAgencyUrn(String executionAgencyUrn) { + this.executionAgencyUrn = executionAgencyUrn; + } + + public StreamEnvironmentConfig withImageFeature(String imageFeature) { + this.imageFeature = imageFeature; + return this; + } + + /** + * 表示用户作业使用的镜像类型。basic:表示使用 DLI 提供的基础镜像; custom:表示使用用户自定义的镜像。 + * @return imageFeature + */ + public String getImageFeature() { + return imageFeature; + } + + public void setImageFeature(String imageFeature) { + this.imageFeature = imageFeature; + } + + public StreamEnvironmentConfig withImageUri(String imageUri) { + this.imageUri = imageUri; + return this; + } + + /** + * 自定义镜像。当前只支持 SWR,格式为:组织名/镜像名:镜像版本。当用户设置“image_feature”为“custom”时,该参数生效。用户可通过与“image_feature”参数配合使用,指定作业运行使用自定义的镜像。关于如何使用自定义镜像,请参考《数据湖探索用户指南》。 + * @return imageUri + */ + public String getImageUri() { + return imageUri; + } + + public void setImageUri(String imageUri) { + this.imageUri = imageUri; + } + + public StreamEnvironmentConfig withQueueName(String queueName) { + this.queueName = queueName; + return this; + } + + /** + * 队列名称。长度限制:1-128个字符。 + * @return queueName + */ + public String getQueueName() { + return queueName; + } + + public void setQueueName(String queueName) { + this.queueName = queueName; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + StreamEnvironmentConfig that = (StreamEnvironmentConfig) obj; + return Objects.equals(this.executionAgencyUrn, that.executionAgencyUrn) + && Objects.equals(this.imageFeature, that.imageFeature) && Objects.equals(this.imageUri, that.imageUri) + && Objects.equals(this.queueName, that.queueName); + } + + @Override + public int hashCode() { + return Objects.hash(executionAgencyUrn, imageFeature, imageUri, queueName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class StreamEnvironmentConfig {\n"); + sb.append(" executionAgencyUrn: ").append(toIndentedString(executionAgencyUrn)).append("\n"); + sb.append(" imageFeature: ").append(toIndentedString(imageFeature)).append("\n"); + sb.append(" imageUri: ").append(toIndentedString(imageUri)).append("\n"); + sb.append(" queueName: ").append(toIndentedString(queueName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/StreamJobStatus.java b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/StreamJobStatus.java new file mode 100644 index 0000000000..9b02f55078 --- /dev/null +++ b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/StreamJobStatus.java @@ -0,0 +1,119 @@ +package com.huaweicloud.sdk.dli.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 流作业的job模型。 + */ +public class StreamJobStatus { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "stream_id") + + private Long streamId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status_name") + + private String statusName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status_desc") + + private String statusDesc; + + public StreamJobStatus withStreamId(Long streamId) { + this.streamId = streamId; + return this; + } + + /** + * 流作业Id。 + * @return streamId + */ + public Long getStreamId() { + return streamId; + } + + public void setStreamId(Long streamId) { + this.streamId = streamId; + } + + public StreamJobStatus withStatusName(String statusName) { + this.statusName = statusName; + return this; + } + + /** + * 流作业状态名称。 + * @return statusName + */ + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public StreamJobStatus withStatusDesc(String statusDesc) { + this.statusDesc = statusDesc; + return this; + } + + /** + * 当前状态描述,包含异常状态原因及建议。 + * @return statusDesc + */ + public String getStatusDesc() { + return statusDesc; + } + + public void setStatusDesc(String statusDesc) { + this.statusDesc = statusDesc; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + StreamJobStatus that = (StreamJobStatus) obj; + return Objects.equals(this.streamId, that.streamId) && Objects.equals(this.statusName, that.statusName) + && Objects.equals(this.statusDesc, that.statusDesc); + } + + @Override + public int hashCode() { + return Objects.hash(streamId, statusName, statusDesc); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class StreamJobStatus {\n"); + sb.append(" streamId: ").append(toIndentedString(streamId)).append("\n"); + sb.append(" statusName: ").append(toIndentedString(statusName)).append("\n"); + sb.append(" statusDesc: ").append(toIndentedString(statusDesc)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/StreamLoggingConfig.java b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/StreamLoggingConfig.java new file mode 100644 index 0000000000..661220dbe0 --- /dev/null +++ b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/StreamLoggingConfig.java @@ -0,0 +1,163 @@ +package com.huaweicloud.sdk.dli.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 流日志配置。 + */ +public class StreamLoggingConfig { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "log_enabled") + + private Boolean logEnabled; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "obs_bucket") + + private String obsBucket; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "root_logger_level") + + private String rootLoggerLevel; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "loggers_level_of_class") + + private List loggersLevelOfClass = null; + + public StreamLoggingConfig withLogEnabled(Boolean logEnabled) { + this.logEnabled = logEnabled; + return this; + } + + /** + * 是否开启作业的日志上传到用户的 OBS 功能。默认为 false。 + * @return logEnabled + */ + public Boolean getLogEnabled() { + return logEnabled; + } + + public void setLogEnabled(Boolean logEnabled) { + this.logEnabled = logEnabled; + } + + public StreamLoggingConfig withObsBucket(String obsBucket) { + this.obsBucket = obsBucket; + return this; + } + + /** + * 用户授权保存作业日志的 OBS 桶名。 + * @return obsBucket + */ + public String getObsBucket() { + return obsBucket; + } + + public void setObsBucket(String obsBucket) { + this.obsBucket = obsBucket; + } + + public StreamLoggingConfig withRootLoggerLevel(String rootLoggerLevel) { + this.rootLoggerLevel = rootLoggerLevel; + return this; + } + + /** + * 根目录日志级别配置,DEBUG\\TRACE\\WARNNING\\INFO\\ERROR + * @return rootLoggerLevel + */ + public String getRootLoggerLevel() { + return rootLoggerLevel; + } + + public void setRootLoggerLevel(String rootLoggerLevel) { + this.rootLoggerLevel = rootLoggerLevel; + } + + public StreamLoggingConfig withLoggersLevelOfClass(List loggersLevelOfClass) { + this.loggersLevelOfClass = loggersLevelOfClass; + return this; + } + + public StreamLoggingConfig addLoggersLevelOfClassItem(StreamClassLoggerLevel loggersLevelOfClassItem) { + if (this.loggersLevelOfClass == null) { + this.loggersLevelOfClass = new ArrayList<>(); + } + this.loggersLevelOfClass.add(loggersLevelOfClassItem); + return this; + } + + public StreamLoggingConfig withLoggersLevelOfClass( + Consumer> loggersLevelOfClassSetter) { + if (this.loggersLevelOfClass == null) { + this.loggersLevelOfClass = new ArrayList<>(); + } + loggersLevelOfClassSetter.accept(this.loggersLevelOfClass); + return this; + } + + /** + * 输出日志的类名称对应的日志级别配置。 + * @return loggersLevelOfClass + */ + public List getLoggersLevelOfClass() { + return loggersLevelOfClass; + } + + public void setLoggersLevelOfClass(List loggersLevelOfClass) { + this.loggersLevelOfClass = loggersLevelOfClass; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + StreamLoggingConfig that = (StreamLoggingConfig) obj; + return Objects.equals(this.logEnabled, that.logEnabled) && Objects.equals(this.obsBucket, that.obsBucket) + && Objects.equals(this.rootLoggerLevel, that.rootLoggerLevel) + && Objects.equals(this.loggersLevelOfClass, that.loggersLevelOfClass); + } + + @Override + public int hashCode() { + return Objects.hash(logEnabled, obsBucket, rootLoggerLevel, loggersLevelOfClass); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class StreamLoggingConfig {\n"); + sb.append(" logEnabled: ").append(toIndentedString(logEnabled)).append("\n"); + sb.append(" obsBucket: ").append(toIndentedString(obsBucket)).append("\n"); + sb.append(" rootLoggerLevel: ").append(toIndentedString(rootLoggerLevel)).append("\n"); + sb.append(" loggersLevelOfClass: ").append(toIndentedString(loggersLevelOfClass)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/StreamRuntimeConfig.java b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/StreamRuntimeConfig.java new file mode 100644 index 0000000000..dee2455f3a --- /dev/null +++ b/services/dli/src/main/java/com/huaweicloud/sdk/dli/v1/model/StreamRuntimeConfig.java @@ -0,0 +1,171 @@ +package com.huaweicloud.sdk.dli.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 流作业运行时配置。 + */ +public class StreamRuntimeConfig { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "staging_uri") + + private String stagingUri; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "logging") + + private StreamLoggingConfig logging; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "properties") + + private Properties properties; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "flink_runtime_config") + + private FlinkRuntimeConfig flinkRuntimeConfig; + + public StreamRuntimeConfig withStagingUri(String stagingUri) { + this.stagingUri = stagingUri; + return this; + } + + /** + * 临时文件存储 URI,作业运行时产生的临时文件存储的 OBS 路径。(当前不支持配置) + * @return stagingUri + */ + public String getStagingUri() { + return stagingUri; + } + + public void setStagingUri(String stagingUri) { + this.stagingUri = stagingUri; + } + + public StreamRuntimeConfig withLogging(StreamLoggingConfig logging) { + this.logging = logging; + return this; + } + + public StreamRuntimeConfig withLogging(Consumer loggingSetter) { + if (this.logging == null) { + this.logging = new StreamLoggingConfig(); + loggingSetter.accept(this.logging); + } + + return this; + } + + /** + * Get logging + * @return logging + */ + public StreamLoggingConfig getLogging() { + return logging; + } + + public void setLogging(StreamLoggingConfig logging) { + this.logging = logging; + } + + public StreamRuntimeConfig withProperties(Properties properties) { + this.properties = properties; + return this; + } + + public StreamRuntimeConfig withProperties(Consumer propertiesSetter) { + if (this.properties == null) { + this.properties = new Properties(); + propertiesSetter.accept(this.properties); + } + + return this; + } + + /** + * Get properties + * @return properties + */ + public Properties getProperties() { + return properties; + } + + public void setProperties(Properties properties) { + this.properties = properties; + } + + public StreamRuntimeConfig withFlinkRuntimeConfig(FlinkRuntimeConfig flinkRuntimeConfig) { + this.flinkRuntimeConfig = flinkRuntimeConfig; + return this; + } + + public StreamRuntimeConfig withFlinkRuntimeConfig(Consumer flinkRuntimeConfigSetter) { + if (this.flinkRuntimeConfig == null) { + this.flinkRuntimeConfig = new FlinkRuntimeConfig(); + flinkRuntimeConfigSetter.accept(this.flinkRuntimeConfig); + } + + return this; + } + + /** + * Get flinkRuntimeConfig + * @return flinkRuntimeConfig + */ + public FlinkRuntimeConfig getFlinkRuntimeConfig() { + return flinkRuntimeConfig; + } + + public void setFlinkRuntimeConfig(FlinkRuntimeConfig flinkRuntimeConfig) { + this.flinkRuntimeConfig = flinkRuntimeConfig; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + StreamRuntimeConfig that = (StreamRuntimeConfig) obj; + return Objects.equals(this.stagingUri, that.stagingUri) && Objects.equals(this.logging, that.logging) + && Objects.equals(this.properties, that.properties) + && Objects.equals(this.flinkRuntimeConfig, that.flinkRuntimeConfig); + } + + @Override + public int hashCode() { + return Objects.hash(stagingUri, logging, properties, flinkRuntimeConfig); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class StreamRuntimeConfig {\n"); + sb.append(" stagingUri: ").append(toIndentedString(stagingUri)).append("\n"); + sb.append(" logging: ").append(toIndentedString(logging)).append("\n"); + sb.append(" properties: ").append(toIndentedString(properties)).append("\n"); + sb.append(" flinkRuntimeConfig: ").append(toIndentedString(flinkRuntimeConfig)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/dns/pom.xml b/services/dns/pom.xml index 7e096715df..304d1e31bb 100644 --- a/services/dns/pom.xml +++ b/services/dns/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-dns - 3.1.99 + 3.1.100 Huawei Cloud SDK for DNS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/dris/pom.xml b/services/dris/pom.xml index 13decc0430..1af5118925 100644 --- a/services/dris/pom.xml +++ b/services/dris/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-dris - 3.1.99 + 3.1.100 Huawei Cloud SDK for DRIS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/drs/pom.xml b/services/drs/pom.xml index b55f129a96..a9cd41631f 100644 --- a/services/drs/pom.xml +++ b/services/drs/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-drs - 3.1.99 + 3.1.100 Huawei Cloud SDK for DRS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/dsc/pom.xml b/services/dsc/pom.xml index 45e34eba32..dabd00995c 100644 --- a/services/dsc/pom.xml +++ b/services/dsc/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-dsc - 3.1.99 + 3.1.100 Huawei Cloud SDK for DSC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/dss/pom.xml b/services/dss/pom.xml index 1bf18f905c..7be19f1bb9 100644 --- a/services/dss/pom.xml +++ b/services/dss/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-dss - 3.1.99 + 3.1.100 Huawei Cloud SDK for DSS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/dwr/pom.xml b/services/dwr/pom.xml index 46bde3f4f3..dc1f6431e9 100644 --- a/services/dwr/pom.xml +++ b/services/dwr/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-dwr - 3.1.99 + 3.1.100 Huawei Cloud SDK for DWR 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/dws/pom.xml b/services/dws/pom.xml index 0bef7d293b..51d4aab586 100644 --- a/services/dws/pom.xml +++ b/services/dws/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-dws - 3.1.99 + 3.1.100 Huawei Cloud SDK for DWS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/region/DwsRegion.java b/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/region/DwsRegion.java index f8f447e88e..43eeb7d52e 100644 --- a/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/region/DwsRegion.java +++ b/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/region/DwsRegion.java @@ -57,6 +57,8 @@ public class DwsRegion { public static final Region AP_SOUTHEAST_4 = new Region("ap-southeast-4", "https://dws.ap-southeast-4.myhuaweicloud.cn"); + public static final Region CN_EAST_5 = new Region("cn-east-5", "https://dws.cn-east-5.myhuaweicloud.com"); + private static final IRegionProvider PROVIDER = RegionProviderChain.getDefaultRegionProviderChain("DWS"); private static final Map STATIC_FIELDS = createStaticFields(); @@ -82,6 +84,7 @@ private static Map createStaticFields() { map.put("la-north-2", LA_NORTH_2); map.put("tr-west-1", TR_WEST_1); map.put("ap-southeast-4", AP_SOUTHEAST_4); + map.put("cn-east-5", CN_EAST_5); return Collections.unmodifiableMap(map); } diff --git a/services/ec/pom.xml b/services/ec/pom.xml index b4d9370f6c..34a732a623 100644 --- a/services/ec/pom.xml +++ b/services/ec/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-ec - 3.1.99 + 3.1.100 Huawei Cloud SDK for EC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/ecs/pom.xml b/services/ecs/pom.xml index e3a5d83961..d6884b3dbd 100644 --- a/services/ecs/pom.xml +++ b/services/ecs/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-ecs - 3.1.99 + 3.1.100 Huawei Cloud SDK for ECS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 ch.qos.logback diff --git a/services/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/model/ServerDetail.java b/services/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/model/ServerDetail.java index 07d096a020..cbe107ed47 100644 --- a/services/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/model/ServerDetail.java +++ b/services/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/model/ServerDetail.java @@ -133,7 +133,7 @@ public class ServerDetail { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "fault") - private ServerFault fault; + private Object fault; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "progress") @@ -691,29 +691,20 @@ public void setAccessIPv6(String accessIPv6) { this.accessIPv6 = accessIPv6; } - public ServerDetail withFault(ServerFault fault) { + public ServerDetail withFault(Object fault) { this.fault = fault; return this; } - public ServerDetail withFault(Consumer faultSetter) { - if (this.fault == null) { - this.fault = new ServerFault(); - faultSetter.accept(this.fault); - } - - return this; - } - /** - * Get fault + * 弹性云服务器故障信息。 可选参数,在弹性云服务器状态为ERROR且存在异常的情况下返回。 * @return fault */ - public ServerFault getFault() { + public Object getFault() { return fault; } - public void setFault(ServerFault fault) { + public void setFault(Object fault) { this.fault = fault; } diff --git a/services/edgesec/pom.xml b/services/edgesec/pom.xml index d8edbfa6a3..1a1f2b5a7b 100644 --- a/services/edgesec/pom.xml +++ b/services/edgesec/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-edgesec - 3.1.99 + 3.1.100 Huawei Cloud SDK for EDGESEC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/eds/pom.xml b/services/eds/pom.xml index 65660aa123..7e5c3dee51 100644 --- a/services/eds/pom.xml +++ b/services/eds/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-eds - 3.1.99 + 3.1.100 Huawei Cloud SDK for EDS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/eg/pom.xml b/services/eg/pom.xml index 3d8a000da2..7fe81c07c4 100644 --- a/services/eg/pom.xml +++ b/services/eg/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-eg - 3.1.99 + 3.1.100 Huawei Cloud SDK for EG 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/eihealth/pom.xml b/services/eihealth/pom.xml index 1e5ebc03be..eb9ee46712 100644 --- a/services/eihealth/pom.xml +++ b/services/eihealth/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-eihealth - 3.1.99 + 3.1.100 Huawei Cloud SDK for EIHEALTH 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/eip/pom.xml b/services/eip/pom.xml index b6c05cc038..7c3173ef10 100644 --- a/services/eip/pom.xml +++ b/services/eip/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-eip - 3.1.99 + 3.1.100 Huawei Cloud SDK for EIP 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/eip/src/main/java/com/huaweicloud/sdk/eip/v3/model/PublicipInstanceResp.java b/services/eip/src/main/java/com/huaweicloud/sdk/eip/v3/model/PublicipInstanceResp.java index 792da74b80..e4e478baaa 100644 --- a/services/eip/src/main/java/com/huaweicloud/sdk/eip/v3/model/PublicipInstanceResp.java +++ b/services/eip/src/main/java/com/huaweicloud/sdk/eip/v3/model/PublicipInstanceResp.java @@ -409,11 +409,6 @@ public static final class AssociateInstanceTypeEnum { */ public static final AssociateInstanceTypeEnum VPN = new AssociateInstanceTypeEnum("VPN"); - /** - * Enum NULL for value: "null" - */ - public static final AssociateInstanceTypeEnum NULL = new AssociateInstanceTypeEnum("null"); - private static final Map STATIC_FIELDS = createStaticFields(); private static Map createStaticFields() { @@ -423,7 +418,6 @@ private static Map createStaticFields() { map.put("ELB", ELB); map.put("ELBV1", ELBV1); map.put("VPN", VPN); - map.put("null", NULL); return Collections.unmodifiableMap(map); } diff --git a/services/eip/src/main/java/com/huaweicloud/sdk/eip/v3/model/PublicipUpdateResp.java b/services/eip/src/main/java/com/huaweicloud/sdk/eip/v3/model/PublicipUpdateResp.java index da5c54c099..91cd698717 100644 --- a/services/eip/src/main/java/com/huaweicloud/sdk/eip/v3/model/PublicipUpdateResp.java +++ b/services/eip/src/main/java/com/huaweicloud/sdk/eip/v3/model/PublicipUpdateResp.java @@ -409,11 +409,6 @@ public static final class AssociateInstanceTypeEnum { */ public static final AssociateInstanceTypeEnum VPN = new AssociateInstanceTypeEnum("VPN"); - /** - * Enum NULL for value: "null" - */ - public static final AssociateInstanceTypeEnum NULL = new AssociateInstanceTypeEnum("null"); - private static final Map STATIC_FIELDS = createStaticFields(); private static Map createStaticFields() { @@ -423,7 +418,6 @@ private static Map createStaticFields() { map.put("ELB", ELB); map.put("ELBV1", ELBV1); map.put("VPN", VPN); - map.put("null", NULL); return Collections.unmodifiableMap(map); } diff --git a/services/eip/src/main/java/com/huaweicloud/sdk/eip/v3/model/UpdatePublicipOption.java b/services/eip/src/main/java/com/huaweicloud/sdk/eip/v3/model/UpdatePublicipOption.java index 7b551da75f..df6d21315a 100644 --- a/services/eip/src/main/java/com/huaweicloud/sdk/eip/v3/model/UpdatePublicipOption.java +++ b/services/eip/src/main/java/com/huaweicloud/sdk/eip/v3/model/UpdatePublicipOption.java @@ -26,7 +26,7 @@ public class UpdatePublicipOption { private String description; /** - * 功能说明:端口所属实例类型 取值范围:PORT、NATGW、VPN、ELB、null 约束:associate_instance_type和associate_instance_id都不为空时表示绑定实例; associate_instance_type和associate_instance_id都为null时解绑实例 约束:双栈公网IP不允许修改绑定的实例 + * 功能说明:端口所属实例类型 取值范围:PORT、NATGW、VPN、ELB、null 约束:associate_instance_type和associate_instance_id都不为空时表示绑定实例。 约束:associate_instance_type和associate_instance_id都为null时表示解绑实例,通过APIE调用需要切换为文本输入方式输入null值,可参考解绑请求实例。 约束:双栈公网IP不允许修改绑定的实例。 */ public static final class AssociateInstanceTypeEnum { @@ -46,9 +46,9 @@ public static final class AssociateInstanceTypeEnum { public static final AssociateInstanceTypeEnum ELB = new AssociateInstanceTypeEnum("ELB"); /** - * Enum EMPTY for value: "" + * Enum VPN for value: "VPN" */ - public static final AssociateInstanceTypeEnum EMPTY = new AssociateInstanceTypeEnum(""); + public static final AssociateInstanceTypeEnum VPN = new AssociateInstanceTypeEnum("VPN"); private static final Map STATIC_FIELDS = createStaticFields(); @@ -57,7 +57,7 @@ private static Map createStaticFields() { map.put("PORT", PORT); map.put("NATGW", NATGW); map.put("ELB", ELB); - map.put("", EMPTY); + map.put("VPN", VPN); return Collections.unmodifiableMap(map); } @@ -157,7 +157,7 @@ public UpdatePublicipOption withAssociateInstanceType(AssociateInstanceTypeEnum } /** - * 功能说明:端口所属实例类型 取值范围:PORT、NATGW、VPN、ELB、null 约束:associate_instance_type和associate_instance_id都不为空时表示绑定实例; associate_instance_type和associate_instance_id都为null时解绑实例 约束:双栈公网IP不允许修改绑定的实例 + * 功能说明:端口所属实例类型 取值范围:PORT、NATGW、VPN、ELB、null 约束:associate_instance_type和associate_instance_id都不为空时表示绑定实例。 约束:associate_instance_type和associate_instance_id都为null时表示解绑实例,通过APIE调用需要切换为文本输入方式输入null值,可参考解绑请求实例。 约束:双栈公网IP不允许修改绑定的实例。 * @return associateInstanceType */ public AssociateInstanceTypeEnum getAssociateInstanceType() { @@ -174,7 +174,7 @@ public UpdatePublicipOption withAssociateInstanceId(String associateInstanceId) } /** - * 功能说明:端口所属实例ID,例如RDS实例ID 约束:associate_instance_type和associate_instance_id都不为空时表示绑定实例; associate_instance_type和associate_instance_id都为null时解绑实例 约束:双栈公网IP不允许修改绑定的实例 + * 功能说明:端口所属实例ID,例如RDS实例ID 约束:associate_instance_type和associate_instance_id都不为空时表示绑定实例。 约束:associate_instance_type和associate_instance_id都为null时表示解绑实例,通过APIE调用需要切换为文本输入方式输入null值,可参考解绑请求实例。 约束:双栈公网IP不允许修改绑定的实例。 * @return associateInstanceId */ public String getAssociateInstanceId() { diff --git a/services/elb/pom.xml b/services/elb/pom.xml index 9a07e15e1c..2977944b81 100644 --- a/services/elb/pom.xml +++ b/services/elb/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-elb - 3.1.99 + 3.1.100 Huawei Cloud SDK for ELB 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/eps/pom.xml b/services/eps/pom.xml index 5f36e9f5ad..81522abd3d 100644 --- a/services/eps/pom.xml +++ b/services/eps/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-eps - 3.1.99 + 3.1.100 Huawei Cloud SDK for EPS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/eps/src/main/java/com/huaweicloud/sdk/eps/v1/region/EpsRegion.java b/services/eps/src/main/java/com/huaweicloud/sdk/eps/v1/region/EpsRegion.java index f1fae4834b..d671d6a812 100644 --- a/services/eps/src/main/java/com/huaweicloud/sdk/eps/v1/region/EpsRegion.java +++ b/services/eps/src/main/java/com/huaweicloud/sdk/eps/v1/region/EpsRegion.java @@ -19,6 +19,9 @@ public class EpsRegion { public static final Region EU_WEST_101 = new Region("eu-west-101", "https://eps.eu-west-101.myhuaweicloud.eu"); + public static final Region RU_MOSCOW_1 = new Region("ru-moscow-1", "https://eps.ru-moscow-1.myhuaweicloud.com", + "https://eps.ru-moscow-1.myhuaweicloud.cn"); + private static final IRegionProvider PROVIDER = RegionProviderChain.getDefaultRegionProviderChain("EPS"); private static final Map STATIC_FIELDS = createStaticFields(); @@ -27,6 +30,7 @@ private static Map createStaticFields() { Map map = new HashMap<>(); map.put("cn-north-4", CN_NORTH_4); map.put("eu-west-101", EU_WEST_101); + map.put("ru-moscow-1", RU_MOSCOW_1); return Collections.unmodifiableMap(map); } diff --git a/services/er/pom.xml b/services/er/pom.xml index b256318064..04fc1a75fd 100644 --- a/services/er/pom.xml +++ b/services/er/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-er - 3.1.99 + 3.1.100 Huawei Cloud SDK for ER 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/evs/pom.xml b/services/evs/pom.xml index 2434ea1921..27a3b910bc 100644 --- a/services/evs/pom.xml +++ b/services/evs/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-evs - 3.1.99 + 3.1.100 Huawei Cloud SDK for EVS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/expert/pom.xml b/services/expert/pom.xml index c4da5ceccc..5fd9298d8a 100644 --- a/services/expert/pom.xml +++ b/services/expert/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-expert - 3.1.99 + 3.1.100 Huawei Cloud SDK for EXPERT 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/frs/pom.xml b/services/frs/pom.xml index e8e48258d0..346094ab45 100644 --- a/services/frs/pom.xml +++ b/services/frs/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-frs - 3.1.99 + 3.1.100 Huawei Cloud SDK for FRS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/functiongraph/pom.xml b/services/functiongraph/pom.xml index 3e0556a8ec..9cb71d5f8b 100644 --- a/services/functiongraph/pom.xml +++ b/services/functiongraph/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-functiongraph - 3.1.99 + 3.1.100 Huawei Cloud SDK for FUNCTIONGRAPH 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/ga/pom.xml b/services/ga/pom.xml index 204292bbf9..287f042a81 100644 --- a/services/ga/pom.xml +++ b/services/ga/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-ga - 3.1.99 + 3.1.100 Huawei Cloud SDK for GA 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/gaussdb/pom.xml b/services/gaussdb/pom.xml index ff836c17f7..11dd78a62a 100644 --- a/services/gaussdb/pom.xml +++ b/services/gaussdb/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-gaussdb - 3.1.99 + 3.1.100 Huawei Cloud SDK for GAUSSDB 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ShowDedicatedResourceInfoResponse.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ShowDedicatedResourceInfoResponse.java index 8f075f3919..3068520a28 100644 --- a/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ShowDedicatedResourceInfoResponse.java +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ShowDedicatedResourceInfoResponse.java @@ -20,9 +20,9 @@ public class ShowDedicatedResourceInfoResponse extends SdkResponse { private String id; @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "name") + @JsonProperty(value = "resource_name") - private String name; + private String resourceName; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "engine_name") @@ -71,21 +71,21 @@ public void setId(String id) { this.id = id; } - public ShowDedicatedResourceInfoResponse withName(String name) { - this.name = name; + public ShowDedicatedResourceInfoResponse withResourceName(String resourceName) { + this.resourceName = resourceName; return this; } /** * 专属资源池名称。 - * @return name + * @return resourceName */ - public String getName() { - return name; + public String getResourceName() { + return resourceName; } - public void setName(String name) { - this.name = name; + public void setResourceName(String resourceName) { + this.resourceName = resourceName; } public ShowDedicatedResourceInfoResponse withEngineName(String engineName) { @@ -235,7 +235,7 @@ public boolean equals(java.lang.Object obj) { return false; } ShowDedicatedResourceInfoResponse that = (ShowDedicatedResourceInfoResponse) obj; - return Objects.equals(this.id, that.id) && Objects.equals(this.name, that.name) + return Objects.equals(this.id, that.id) && Objects.equals(this.resourceName, that.resourceName) && Objects.equals(this.engineName, that.engineName) && Objects.equals(this.availabilityZoneIds, that.availabilityZoneIds) && Objects.equals(this.architecture, that.architecture) && Objects.equals(this.status, that.status) @@ -246,7 +246,7 @@ public boolean equals(java.lang.Object obj) { @Override public int hashCode() { return Objects.hash(id, - name, + resourceName, engineName, availabilityZoneIds, architecture, @@ -260,7 +260,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ShowDedicatedResourceInfoResponse {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" resourceName: ").append(toIndentedString(resourceName)).append("\n"); sb.append(" engineName: ").append(toIndentedString(engineName)).append("\n"); sb.append(" availabilityZoneIds: ").append(toIndentedString(availabilityZoneIds)).append("\n"); sb.append(" architecture: ").append(toIndentedString(architecture)).append("\n"); diff --git a/services/gaussdbfornosql/pom.xml b/services/gaussdbfornosql/pom.xml index 78af6eedce..3d1a3cc6f7 100644 --- a/services/gaussdbfornosql/pom.xml +++ b/services/gaussdbfornosql/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-gaussdbfornosql - 3.1.99 + 3.1.100 Huawei Cloud SDK for GAUSSDBFORNOSQL 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/gaussdbforopengauss/pom.xml b/services/gaussdbforopengauss/pom.xml index dab122d6c6..01c8798063 100644 --- a/services/gaussdbforopengauss/pom.xml +++ b/services/gaussdbforopengauss/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-gaussdbforopengauss - 3.1.99 + 3.1.100 Huawei Cloud SDK for GAUSSDBFOROPENGAUSS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/geip/pom.xml b/services/geip/pom.xml index 529f0b6fde..be74b88a66 100644 --- a/services/geip/pom.xml +++ b/services/geip/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-geip - 3.1.99 + 3.1.100 Huawei Cloud SDK for GEIP 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/ges/pom.xml b/services/ges/pom.xml index 1fafcf0864..ec64b67d90 100644 --- a/services/ges/pom.xml +++ b/services/ges/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-ges - 3.1.99 + 3.1.100 Huawei Cloud SDK for GES 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/gsl/pom.xml b/services/gsl/pom.xml index 93258d138b..57e4ff5650 100644 --- a/services/gsl/pom.xml +++ b/services/gsl/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-gsl - 3.1.99 + 3.1.100 Huawei Cloud SDK for GSL 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/hilens/pom.xml b/services/hilens/pom.xml index cea1fa8606..0b1dc7bcd1 100644 --- a/services/hilens/pom.xml +++ b/services/hilens/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-hilens - 3.1.99 + 3.1.100 Huawei Cloud SDK for HILENS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/hss/pom.xml b/services/hss/pom.xml index 3325c2eba6..4611494b5e 100644 --- a/services/hss/pom.xml +++ b/services/hss/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-hss - 3.1.99 + 3.1.100 Huawei Cloud SDK for HSS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/iam/pom.xml b/services/iam/pom.xml index 897acb9495..96617c3ec5 100644 --- a/services/iam/pom.xml +++ b/services/iam/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-iam - 3.1.99 + 3.1.100 Huawei Cloud SDK for IAM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/iamaccessanalyzer/pom.xml b/services/iamaccessanalyzer/pom.xml index 318390d3eb..23f9a7791e 100644 --- a/services/iamaccessanalyzer/pom.xml +++ b/services/iamaccessanalyzer/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-iamaccessanalyzer - 3.1.99 + 3.1.100 Huawei Cloud SDK for IAMACCESSANALYZER 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/identitycenter/pom.xml b/services/identitycenter/pom.xml index d43075007a..3bb54e1a7e 100644 --- a/services/identitycenter/pom.xml +++ b/services/identitycenter/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-identitycenter - 3.1.99 + 3.1.100 Huawei Cloud SDK for IDENTITYCENTER 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/identitycenterstore/pom.xml b/services/identitycenterstore/pom.xml index 1c18323dc9..36b0d90666 100644 --- a/services/identitycenterstore/pom.xml +++ b/services/identitycenterstore/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-identitycenterstore - 3.1.99 + 3.1.100 Huawei Cloud SDK for IDENTITYCENTERSTORE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/idme/pom.xml b/services/idme/pom.xml index 10f6ea9426..44a76cfa2e 100644 --- a/services/idme/pom.xml +++ b/services/idme/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-idme - 3.1.99 + 3.1.100 Huawei Cloud SDK for IDME 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/idmeclassicapi/pom.xml b/services/idmeclassicapi/pom.xml index 0b41d5c4e8..bf9fd16185 100644 --- a/services/idmeclassicapi/pom.xml +++ b/services/idmeclassicapi/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-idmeclassicapi - 3.1.99 + 3.1.100 Huawei Cloud SDK for IDMECLASSICAPI 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/iec/pom.xml b/services/iec/pom.xml index 03748d0537..d509cb3108 100644 --- a/services/iec/pom.xml +++ b/services/iec/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-iec - 3.1.99 + 3.1.100 Huawei Cloud SDK for IEC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/ief/pom.xml b/services/ief/pom.xml index 747802e297..3aad5c28f6 100644 --- a/services/ief/pom.xml +++ b/services/ief/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-ief - 3.1.99 + 3.1.100 Huawei Cloud SDK for IEF 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/image/pom.xml b/services/image/pom.xml index ae3a1bf71f..92654c4f15 100644 --- a/services/image/pom.xml +++ b/services/image/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-image - 3.1.99 + 3.1.100 Huawei Cloud SDK for IMAGE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/imagesearch/pom.xml b/services/imagesearch/pom.xml index 82987b8fa6..30ecf4c5d0 100644 --- a/services/imagesearch/pom.xml +++ b/services/imagesearch/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-imagesearch - 3.1.99 + 3.1.100 Huawei Cloud SDK for IMAGESEARCH 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/ims/pom.xml b/services/ims/pom.xml index eaf155221e..8fc8eb2e75 100644 --- a/services/ims/pom.xml +++ b/services/ims/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-ims - 3.1.99 + 3.1.100 Huawei Cloud SDK for IMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/iotanalytics/pom.xml b/services/iotanalytics/pom.xml index 06c06d4129..ec4263e920 100644 --- a/services/iotanalytics/pom.xml +++ b/services/iotanalytics/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-iotanalytics - 3.1.99 + 3.1.100 Huawei Cloud SDK for IOTANALYTICS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/iotda/pom.xml b/services/iotda/pom.xml index 3bcad41632..e314bc8744 100644 --- a/services/iotda/pom.xml +++ b/services/iotda/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-iotda - 3.1.99 + 3.1.100 Huawei Cloud SDK for IOTDA 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 junit diff --git a/services/iotedge/pom.xml b/services/iotedge/pom.xml index a6c8a7bb3a..511b11e0f3 100644 --- a/services/iotedge/pom.xml +++ b/services/iotedge/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-iotedge - 3.1.99 + 3.1.100 Huawei Cloud SDK for IOTEDGE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/IoTEdgeAsyncClient.java b/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/IoTEdgeAsyncClient.java index 0ec314ffe8..de0d1c49bf 100644 --- a/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/IoTEdgeAsyncClient.java +++ b/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/IoTEdgeAsyncClient.java @@ -111,6 +111,8 @@ import com.huaweicloud.sdk.iotedge.v2.model.ShowEdgeAppResponse; import com.huaweicloud.sdk.iotedge.v2.model.ShowEdgeApplicationVersionRequest; import com.huaweicloud.sdk.iotedge.v2.model.ShowEdgeApplicationVersionResponse; +import com.huaweicloud.sdk.iotedge.v2.model.ShowEdgeNodeHostsInfoRequest; +import com.huaweicloud.sdk.iotedge.v2.model.ShowEdgeNodeHostsInfoResponse; import com.huaweicloud.sdk.iotedge.v2.model.ShowEdgeNodeRequest; import com.huaweicloud.sdk.iotedge.v2.model.ShowEdgeNodeResponse; import com.huaweicloud.sdk.iotedge.v2.model.ShowIaConfigRequest; @@ -141,6 +143,8 @@ import com.huaweicloud.sdk.iotedge.v2.model.UpdateEdgeApplicationVersionResponse; import com.huaweicloud.sdk.iotedge.v2.model.UpdateEdgeApplicationVersionStateRequest; import com.huaweicloud.sdk.iotedge.v2.model.UpdateEdgeApplicationVersionStateResponse; +import com.huaweicloud.sdk.iotedge.v2.model.UpdateEdgeNodeRequest; +import com.huaweicloud.sdk.iotedge.v2.model.UpdateEdgeNodeResponse; import com.huaweicloud.sdk.iotedge.v2.model.UpdateExternalEntityRequest; import com.huaweicloud.sdk.iotedge.v2.model.UpdateExternalEntityResponse; import com.huaweicloud.sdk.iotedge.v2.model.UpdateIaConfigRequest; @@ -318,6 +322,65 @@ public AsyncInvoker showEdgeNodeAsync return new AsyncInvoker<>(request, IoTEdgeMeta.showEdgeNode, hcClient); } + /** + * 查询边缘节点下的主机详情 + * + * 查询边缘节点下的主机详情 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowEdgeNodeHostsInfoRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showEdgeNodeHostsInfoAsync( + ShowEdgeNodeHostsInfoRequest request) { + return hcClient.asyncInvokeHttp(request, IoTEdgeMeta.showEdgeNodeHostsInfo); + } + + /** + * 查询边缘节点下的主机详情 + * + * 查询边缘节点下的主机详情 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowEdgeNodeHostsInfoRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showEdgeNodeHostsInfoAsyncInvoker( + ShowEdgeNodeHostsInfoRequest request) { + return new AsyncInvoker<>(request, IoTEdgeMeta.showEdgeNodeHostsInfo, hcClient); + } + + /** + * 修改边缘节点 + * + * 修改边缘节点 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateEdgeNodeRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture updateEdgeNodeAsync(UpdateEdgeNodeRequest request) { + return hcClient.asyncInvokeHttp(request, IoTEdgeMeta.updateEdgeNode); + } + + /** + * 修改边缘节点 + * + * 修改边缘节点 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateEdgeNodeRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker updateEdgeNodeAsyncInvoker( + UpdateEdgeNodeRequest request) { + return new AsyncInvoker<>(request, IoTEdgeMeta.updateEdgeNode, hcClient); + } + /** * 设备控制释放 * diff --git a/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/IoTEdgeClient.java b/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/IoTEdgeClient.java index 3666eb5744..93b83914b3 100644 --- a/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/IoTEdgeClient.java +++ b/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/IoTEdgeClient.java @@ -111,6 +111,8 @@ import com.huaweicloud.sdk.iotedge.v2.model.ShowEdgeAppResponse; import com.huaweicloud.sdk.iotedge.v2.model.ShowEdgeApplicationVersionRequest; import com.huaweicloud.sdk.iotedge.v2.model.ShowEdgeApplicationVersionResponse; +import com.huaweicloud.sdk.iotedge.v2.model.ShowEdgeNodeHostsInfoRequest; +import com.huaweicloud.sdk.iotedge.v2.model.ShowEdgeNodeHostsInfoResponse; import com.huaweicloud.sdk.iotedge.v2.model.ShowEdgeNodeRequest; import com.huaweicloud.sdk.iotedge.v2.model.ShowEdgeNodeResponse; import com.huaweicloud.sdk.iotedge.v2.model.ShowIaConfigRequest; @@ -141,6 +143,8 @@ import com.huaweicloud.sdk.iotedge.v2.model.UpdateEdgeApplicationVersionResponse; import com.huaweicloud.sdk.iotedge.v2.model.UpdateEdgeApplicationVersionStateRequest; import com.huaweicloud.sdk.iotedge.v2.model.UpdateEdgeApplicationVersionStateResponse; +import com.huaweicloud.sdk.iotedge.v2.model.UpdateEdgeNodeRequest; +import com.huaweicloud.sdk.iotedge.v2.model.UpdateEdgeNodeResponse; import com.huaweicloud.sdk.iotedge.v2.model.UpdateExternalEntityRequest; import com.huaweicloud.sdk.iotedge.v2.model.UpdateExternalEntityResponse; import com.huaweicloud.sdk.iotedge.v2.model.UpdateIaConfigRequest; @@ -314,6 +318,64 @@ public SyncInvoker showEdgeNodeInvoke return new SyncInvoker<>(request, IoTEdgeMeta.showEdgeNode, hcClient); } + /** + * 查询边缘节点下的主机详情 + * + * 查询边缘节点下的主机详情 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowEdgeNodeHostsInfoRequest 请求对象 + * @return ShowEdgeNodeHostsInfoResponse + */ + public ShowEdgeNodeHostsInfoResponse showEdgeNodeHostsInfo(ShowEdgeNodeHostsInfoRequest request) { + return hcClient.syncInvokeHttp(request, IoTEdgeMeta.showEdgeNodeHostsInfo); + } + + /** + * 查询边缘节点下的主机详情 + * + * 查询边缘节点下的主机详情 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowEdgeNodeHostsInfoRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showEdgeNodeHostsInfoInvoker( + ShowEdgeNodeHostsInfoRequest request) { + return new SyncInvoker<>(request, IoTEdgeMeta.showEdgeNodeHostsInfo, hcClient); + } + + /** + * 修改边缘节点 + * + * 修改边缘节点 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateEdgeNodeRequest 请求对象 + * @return UpdateEdgeNodeResponse + */ + public UpdateEdgeNodeResponse updateEdgeNode(UpdateEdgeNodeRequest request) { + return hcClient.syncInvokeHttp(request, IoTEdgeMeta.updateEdgeNode); + } + + /** + * 修改边缘节点 + * + * 修改边缘节点 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateEdgeNodeRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker updateEdgeNodeInvoker( + UpdateEdgeNodeRequest request) { + return new SyncInvoker<>(request, IoTEdgeMeta.updateEdgeNode, hcClient); + } + /** * 设备控制释放 * diff --git a/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/IoTEdgeMeta.java b/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/IoTEdgeMeta.java index f585a22297..1a9a7087c8 100644 --- a/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/IoTEdgeMeta.java +++ b/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/IoTEdgeMeta.java @@ -133,6 +133,8 @@ import com.huaweicloud.sdk.iotedge.v2.model.ShowEdgeAppResponse; import com.huaweicloud.sdk.iotedge.v2.model.ShowEdgeApplicationVersionRequest; import com.huaweicloud.sdk.iotedge.v2.model.ShowEdgeApplicationVersionResponse; +import com.huaweicloud.sdk.iotedge.v2.model.ShowEdgeNodeHostsInfoRequest; +import com.huaweicloud.sdk.iotedge.v2.model.ShowEdgeNodeHostsInfoResponse; import com.huaweicloud.sdk.iotedge.v2.model.ShowEdgeNodeRequest; import com.huaweicloud.sdk.iotedge.v2.model.ShowEdgeNodeResponse; import com.huaweicloud.sdk.iotedge.v2.model.ShowIaConfigRequest; @@ -170,6 +172,8 @@ import com.huaweicloud.sdk.iotedge.v2.model.UpdateEdgeApplicationVersionStateResponse; import com.huaweicloud.sdk.iotedge.v2.model.UpdateEdgeModuleReqDTO; import com.huaweicloud.sdk.iotedge.v2.model.UpdateEdgeModuleStateReqDTO; +import com.huaweicloud.sdk.iotedge.v2.model.UpdateEdgeNodeRequest; +import com.huaweicloud.sdk.iotedge.v2.model.UpdateEdgeNodeResponse; import com.huaweicloud.sdk.iotedge.v2.model.UpdateExternalEntityReqDTO; import com.huaweicloud.sdk.iotedge.v2.model.UpdateExternalEntityRequest; import com.huaweicloud.sdk.iotedge.v2.model.UpdateExternalEntityResponse; @@ -186,6 +190,7 @@ import com.huaweicloud.sdk.iotedge.v2.model.UpdateNaRequest; import com.huaweicloud.sdk.iotedge.v2.model.UpdateNaRequestDTO; import com.huaweicloud.sdk.iotedge.v2.model.UpdateNaResponse; +import com.huaweicloud.sdk.iotedge.v2.model.UpdateNodeReqDTO; import com.huaweicloud.sdk.iotedge.v2.model.UpdateRoutesRequest; import com.huaweicloud.sdk.iotedge.v2.model.UpdateRoutesResponse; import com.huaweicloud.sdk.iotedge.v2.model.UpdateScheduleReqDTO; @@ -367,6 +372,58 @@ private static HttpRequestDef genForS return builder.build(); } + public static final HttpRequestDef showEdgeNodeHostsInfo = + genForShowEdgeNodeHostsInfo(); + + private static HttpRequestDef genForShowEdgeNodeHostsInfo() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.GET, ShowEdgeNodeHostsInfoRequest.class, ShowEdgeNodeHostsInfoResponse.class) + .withName("ShowEdgeNodeHostsInfo") + .withUri("/v2/{project_id}/edge-nodes/{edge_node_id}/hosts") + .withContentType("application/json"); + + // requests + builder.withRequestField("edge_node_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowEdgeNodeHostsInfoRequest::getEdgeNodeId, + ShowEdgeNodeHostsInfoRequest::setEdgeNodeId)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef updateEdgeNode = + genForUpdateEdgeNode(); + + private static HttpRequestDef genForUpdateEdgeNode() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.PUT, UpdateEdgeNodeRequest.class, UpdateEdgeNodeResponse.class) + .withName("UpdateEdgeNode") + .withUri("/v2/{project_id}/edge-nodes/{edge_node_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("edge_node_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateEdgeNodeRequest::getEdgeNodeId, UpdateEdgeNodeRequest::setEdgeNodeId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(UpdateNodeReqDTO.class), + f -> f.withMarshaller(UpdateEdgeNodeRequest::getBody, UpdateEdgeNodeRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef executeDeviceControlsRelease = genForExecuteDeviceControlsRelease(); diff --git a/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/HostInfoDTO.java b/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/HostInfoDTO.java new file mode 100644 index 0000000000..6340746176 --- /dev/null +++ b/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/HostInfoDTO.java @@ -0,0 +1,272 @@ +package com.huaweicloud.sdk.iotedge.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 主机信息 + */ +public class HostInfoDTO { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "host_tag") + + private String hostTag; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "host_status") + + private String hostStatus; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "os_name") + + private String osName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "host_name") + + private String hostName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "container_version") + + private String containerVersion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "nics") + + private List nics = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "specification") + + private String specification; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "npu_details") + + private List npuDetails = null; + + public HostInfoDTO withHostTag(String hostTag) { + this.hostTag = hostTag; + return this; + } + + /** + * 主机标签DEFAULT|MASTER|SLAVE + * @return hostTag + */ + public String getHostTag() { + return hostTag; + } + + public void setHostTag(String hostTag) { + this.hostTag = hostTag; + } + + public HostInfoDTO withHostStatus(String hostStatus) { + this.hostStatus = hostStatus; + return this; + } + + /** + * 主机工作状态(ONLINE|OFFLINE) + * @return hostStatus + */ + public String getHostStatus() { + return hostStatus; + } + + public void setHostStatus(String hostStatus) { + this.hostStatus = hostStatus; + } + + public HostInfoDTO withOsName(String osName) { + this.osName = osName; + return this; + } + + /** + * 边缘节点操作系统。例如:Ubuntu 20.04;CentOS 7.9。不同于os_type边缘节点系统类型。 + * @return osName + */ + public String getOsName() { + return osName; + } + + public void setOsName(String osName) { + this.osName = osName; + } + + public HostInfoDTO withHostName(String hostName) { + this.hostName = hostName; + return this; + } + + /** + * 边缘节点主机名 + * @return hostName + */ + public String getHostName() { + return hostName; + } + + public void setHostName(String hostName) { + this.hostName = hostName; + } + + public HostInfoDTO withContainerVersion(String containerVersion) { + this.containerVersion = containerVersion; + return this; + } + + /** + * 容器运行时版本 + * @return containerVersion + */ + public String getContainerVersion() { + return containerVersion; + } + + public void setContainerVersion(String containerVersion) { + this.containerVersion = containerVersion; + } + + public HostInfoDTO withNics(List nics) { + this.nics = nics; + return this; + } + + public HostInfoDTO addNicsItem(Nic nicsItem) { + if (this.nics == null) { + this.nics = new ArrayList<>(); + } + this.nics.add(nicsItem); + return this; + } + + public HostInfoDTO withNics(Consumer> nicsSetter) { + if (this.nics == null) { + this.nics = new ArrayList<>(); + } + nicsSetter.accept(this.nics); + return this; + } + + /** + * 边缘节点网络网卡信息 + * @return nics + */ + public List getNics() { + return nics; + } + + public void setNics(List nics) { + this.nics = nics; + } + + public HostInfoDTO withSpecification(String specification) { + this.specification = specification; + return this; + } + + /** + * 网络规格,如4 cores | 3867 MB + * @return specification + */ + public String getSpecification() { + return specification; + } + + public void setSpecification(String specification) { + this.specification = specification; + } + + public HostInfoDTO withNpuDetails(List npuDetails) { + this.npuDetails = npuDetails; + return this; + } + + public HostInfoDTO addNpuDetailsItem(NPUDetailsDTO npuDetailsItem) { + if (this.npuDetails == null) { + this.npuDetails = new ArrayList<>(); + } + this.npuDetails.add(npuDetailsItem); + return this; + } + + public HostInfoDTO withNpuDetails(Consumer> npuDetailsSetter) { + if (this.npuDetails == null) { + this.npuDetails = new ArrayList<>(); + } + npuDetailsSetter.accept(this.npuDetails); + return this; + } + + /** + * NPU设备详细信息,包括硬件信息和使用情况。 + * @return npuDetails + */ + public List getNpuDetails() { + return npuDetails; + } + + public void setNpuDetails(List npuDetails) { + this.npuDetails = npuDetails; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + HostInfoDTO that = (HostInfoDTO) obj; + return Objects.equals(this.hostTag, that.hostTag) && Objects.equals(this.hostStatus, that.hostStatus) + && Objects.equals(this.osName, that.osName) && Objects.equals(this.hostName, that.hostName) + && Objects.equals(this.containerVersion, that.containerVersion) && Objects.equals(this.nics, that.nics) + && Objects.equals(this.specification, that.specification) + && Objects.equals(this.npuDetails, that.npuDetails); + } + + @Override + public int hashCode() { + return Objects.hash(hostTag, hostStatus, osName, hostName, containerVersion, nics, specification, npuDetails); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class HostInfoDTO {\n"); + sb.append(" hostTag: ").append(toIndentedString(hostTag)).append("\n"); + sb.append(" hostStatus: ").append(toIndentedString(hostStatus)).append("\n"); + sb.append(" osName: ").append(toIndentedString(osName)).append("\n"); + sb.append(" hostName: ").append(toIndentedString(hostName)).append("\n"); + sb.append(" containerVersion: ").append(toIndentedString(containerVersion)).append("\n"); + sb.append(" nics: ").append(toIndentedString(nics)).append("\n"); + sb.append(" specification: ").append(toIndentedString(specification)).append("\n"); + sb.append(" npuDetails: ").append(toIndentedString(npuDetails)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/NPUDetailsDTO.java b/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/NPUDetailsDTO.java new file mode 100644 index 0000000000..810c3b9aa9 --- /dev/null +++ b/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/NPUDetailsDTO.java @@ -0,0 +1,234 @@ +package com.huaweicloud.sdk.iotedge.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * NPU设备信息 + */ +public class NPUDetailsDTO { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "device_id") + + private String deviceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "npu_type") + + private String npuType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "product_name") + + private String productName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ai_core") + + private Integer aiCore; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "health") + + private String health; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "error_msg") + + private String errorMsg; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "used_info") + + private List usedInfo = null; + + public NPUDetailsDTO withDeviceId(String deviceId) { + this.deviceId = deviceId; + return this; + } + + /** + * 昇腾设备ID + * @return deviceId + */ + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public NPUDetailsDTO withNpuType(String npuType) { + this.npuType = npuType; + return this; + } + + /** + * 华为AI加速卡型号,如D310推理卡、D310P推理卡、D910训练卡。 + * @return npuType + */ + public String getNpuType() { + return npuType; + } + + public void setNpuType(String npuType) { + this.npuType = npuType; + } + + public NPUDetailsDTO withProductName(String productName) { + this.productName = productName; + return this; + } + + /** + * 昇腾设备产品类型 + * @return productName + */ + public String getProductName() { + return productName; + } + + public void setProductName(String productName) { + this.productName = productName; + } + + public NPUDetailsDTO withAiCore(Integer aiCore) { + this.aiCore = aiCore; + return this; + } + + /** + * AI加速卡包含ai核个数 + * minimum: 0 + * maximum: 64 + * @return aiCore + */ + public Integer getAiCore() { + return aiCore; + } + + public void setAiCore(Integer aiCore) { + this.aiCore = aiCore; + } + + public NPUDetailsDTO withHealth(String health) { + this.health = health; + return this; + } + + /** + * 昇腾设备健康状态 + * @return health + */ + public String getHealth() { + return health; + } + + public void setHealth(String health) { + this.health = health; + } + + public NPUDetailsDTO withErrorMsg(String errorMsg) { + this.errorMsg = errorMsg; + return this; + } + + /** + * 昇腾设备故障信息 + * @return errorMsg + */ + public String getErrorMsg() { + return errorMsg; + } + + public void setErrorMsg(String errorMsg) { + this.errorMsg = errorMsg; + } + + public NPUDetailsDTO withUsedInfo(List usedInfo) { + this.usedInfo = usedInfo; + return this; + } + + public NPUDetailsDTO addUsedInfoItem(NpuUsedInfoDTO usedInfoItem) { + if (this.usedInfo == null) { + this.usedInfo = new ArrayList<>(); + } + this.usedInfo.add(usedInfoItem); + return this; + } + + public NPUDetailsDTO withUsedInfo(Consumer> usedInfoSetter) { + if (this.usedInfo == null) { + this.usedInfo = new ArrayList<>(); + } + usedInfoSetter.accept(this.usedInfo); + return this; + } + + /** + * NPU使用信息 + * @return usedInfo + */ + public List getUsedInfo() { + return usedInfo; + } + + public void setUsedInfo(List usedInfo) { + this.usedInfo = usedInfo; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + NPUDetailsDTO that = (NPUDetailsDTO) obj; + return Objects.equals(this.deviceId, that.deviceId) && Objects.equals(this.npuType, that.npuType) + && Objects.equals(this.productName, that.productName) && Objects.equals(this.aiCore, that.aiCore) + && Objects.equals(this.health, that.health) && Objects.equals(this.errorMsg, that.errorMsg) + && Objects.equals(this.usedInfo, that.usedInfo); + } + + @Override + public int hashCode() { + return Objects.hash(deviceId, npuType, productName, aiCore, health, errorMsg, usedInfo); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NPUDetailsDTO {\n"); + sb.append(" deviceId: ").append(toIndentedString(deviceId)).append("\n"); + sb.append(" npuType: ").append(toIndentedString(npuType)).append("\n"); + sb.append(" productName: ").append(toIndentedString(productName)).append("\n"); + sb.append(" aiCore: ").append(toIndentedString(aiCore)).append("\n"); + sb.append(" health: ").append(toIndentedString(health)).append("\n"); + sb.append(" errorMsg: ").append(toIndentedString(errorMsg)).append("\n"); + sb.append(" usedInfo: ").append(toIndentedString(usedInfo)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/NpuUsedInfoDTO.java b/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/NpuUsedInfoDTO.java new file mode 100644 index 0000000000..76197b9e2b --- /dev/null +++ b/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/NpuUsedInfoDTO.java @@ -0,0 +1,123 @@ +package com.huaweicloud.sdk.iotedge.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * NPU设备使用详情 + */ +public class NpuUsedInfoDTO { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "module_id") + + private String moduleId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "used_ai_core_num") + + private Integer usedAiCoreNum; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "used_cpu_core_num") + + private Integer usedCpuCoreNum; + + public NpuUsedInfoDTO withModuleId(String moduleId) { + this.moduleId = moduleId; + return this; + } + + /** + * 模块名称 + * @return moduleId + */ + public String getModuleId() { + return moduleId; + } + + public void setModuleId(String moduleId) { + this.moduleId = moduleId; + } + + public NpuUsedInfoDTO withUsedAiCoreNum(Integer usedAiCoreNum) { + this.usedAiCoreNum = usedAiCoreNum; + return this; + } + + /** + * 模块使用AI核的个数 + * minimum: 1 + * maximum: 64 + * @return usedAiCoreNum + */ + public Integer getUsedAiCoreNum() { + return usedAiCoreNum; + } + + public void setUsedAiCoreNum(Integer usedAiCoreNum) { + this.usedAiCoreNum = usedAiCoreNum; + } + + public NpuUsedInfoDTO withUsedCpuCoreNum(Integer usedCpuCoreNum) { + this.usedCpuCoreNum = usedCpuCoreNum; + return this; + } + + /** + * 模块使用NPU芯片中的cpu核数 + * minimum: 0 + * maximum: 64 + * @return usedCpuCoreNum + */ + public Integer getUsedCpuCoreNum() { + return usedCpuCoreNum; + } + + public void setUsedCpuCoreNum(Integer usedCpuCoreNum) { + this.usedCpuCoreNum = usedCpuCoreNum; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + NpuUsedInfoDTO that = (NpuUsedInfoDTO) obj; + return Objects.equals(this.moduleId, that.moduleId) && Objects.equals(this.usedAiCoreNum, that.usedAiCoreNum) + && Objects.equals(this.usedCpuCoreNum, that.usedCpuCoreNum); + } + + @Override + public int hashCode() { + return Objects.hash(moduleId, usedAiCoreNum, usedCpuCoreNum); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NpuUsedInfoDTO {\n"); + sb.append(" moduleId: ").append(toIndentedString(moduleId)).append("\n"); + sb.append(" usedAiCoreNum: ").append(toIndentedString(usedAiCoreNum)).append("\n"); + sb.append(" usedCpuCoreNum: ").append(toIndentedString(usedCpuCoreNum)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/ShowEdgeNodeHostsInfoRequest.java b/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/ShowEdgeNodeHostsInfoRequest.java new file mode 100644 index 0000000000..4d274b537c --- /dev/null +++ b/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/ShowEdgeNodeHostsInfoRequest.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.iotedge.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ShowEdgeNodeHostsInfoRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "edge_node_id") + + private String edgeNodeId; + + public ShowEdgeNodeHostsInfoRequest withEdgeNodeId(String edgeNodeId) { + this.edgeNodeId = edgeNodeId; + return this; + } + + /** + * 边缘节点ID + * @return edgeNodeId + */ + public String getEdgeNodeId() { + return edgeNodeId; + } + + public void setEdgeNodeId(String edgeNodeId) { + this.edgeNodeId = edgeNodeId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowEdgeNodeHostsInfoRequest that = (ShowEdgeNodeHostsInfoRequest) obj; + return Objects.equals(this.edgeNodeId, that.edgeNodeId); + } + + @Override + public int hashCode() { + return Objects.hash(edgeNodeId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowEdgeNodeHostsInfoRequest {\n"); + sb.append(" edgeNodeId: ").append(toIndentedString(edgeNodeId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/ShowEdgeNodeHostsInfoResponse.java b/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/ShowEdgeNodeHostsInfoResponse.java new file mode 100644 index 0000000000..57d5ace0dd --- /dev/null +++ b/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/ShowEdgeNodeHostsInfoResponse.java @@ -0,0 +1,92 @@ +package com.huaweicloud.sdk.iotedge.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ShowEdgeNodeHostsInfoResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hosts") + + private List hosts = null; + + public ShowEdgeNodeHostsInfoResponse withHosts(List hosts) { + this.hosts = hosts; + return this; + } + + public ShowEdgeNodeHostsInfoResponse addHostsItem(HostInfoDTO hostsItem) { + if (this.hosts == null) { + this.hosts = new ArrayList<>(); + } + this.hosts.add(hostsItem); + return this; + } + + public ShowEdgeNodeHostsInfoResponse withHosts(Consumer> hostsSetter) { + if (this.hosts == null) { + this.hosts = new ArrayList<>(); + } + hostsSetter.accept(this.hosts); + return this; + } + + /** + * 节点主机信息详情 + * @return hosts + */ + public List getHosts() { + return hosts; + } + + public void setHosts(List hosts) { + this.hosts = hosts; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowEdgeNodeHostsInfoResponse that = (ShowEdgeNodeHostsInfoResponse) obj; + return Objects.equals(this.hosts, that.hosts); + } + + @Override + public int hashCode() { + return Objects.hash(hosts); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowEdgeNodeHostsInfoResponse {\n"); + sb.append(" hosts: ").append(toIndentedString(hosts)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/UpdateEdgeNodeRequest.java b/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/UpdateEdgeNodeRequest.java new file mode 100644 index 0000000000..1b0392c96e --- /dev/null +++ b/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/UpdateEdgeNodeRequest.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.iotedge.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class UpdateEdgeNodeRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "edge_node_id") + + private String edgeNodeId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private UpdateNodeReqDTO body; + + public UpdateEdgeNodeRequest withEdgeNodeId(String edgeNodeId) { + this.edgeNodeId = edgeNodeId; + return this; + } + + /** + * 节点id + * @return edgeNodeId + */ + public String getEdgeNodeId() { + return edgeNodeId; + } + + public void setEdgeNodeId(String edgeNodeId) { + this.edgeNodeId = edgeNodeId; + } + + public UpdateEdgeNodeRequest withBody(UpdateNodeReqDTO body) { + this.body = body; + return this; + } + + public UpdateEdgeNodeRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new UpdateNodeReqDTO(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public UpdateNodeReqDTO getBody() { + return body; + } + + public void setBody(UpdateNodeReqDTO body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateEdgeNodeRequest that = (UpdateEdgeNodeRequest) obj; + return Objects.equals(this.edgeNodeId, that.edgeNodeId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(edgeNodeId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateEdgeNodeRequest {\n"); + sb.append(" edgeNodeId: ").append(toIndentedString(edgeNodeId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/UpdateEdgeNodeResponse.java b/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/UpdateEdgeNodeResponse.java new file mode 100644 index 0000000000..eb3944e719 --- /dev/null +++ b/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/UpdateEdgeNodeResponse.java @@ -0,0 +1,1043 @@ +package com.huaweicloud.sdk.iotedge.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class UpdateEdgeNodeResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "log_configs") + + private List logConfigs = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ha_config") + + private HaConfigDTO haConfig; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "edge_node_id") + + private String edgeNodeId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "product_id") + + private String productId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "product_name") + + private String productName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "space_id") + + private String spaceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "resource_spec_types") + + private List resourceSpecTypes = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "resource_ids") + + private List resourceIds = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ips") + + private List ips = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "state") + + private String state; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "software_version") + + private String softwareVersion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time") + + private String createTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_time") + + private String updateTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "os_name") + + private String osName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "arch") + + private String arch; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "host_name") + + private String hostName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "nics") + + private List nics = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "specification") + + private String specification; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ai_card_type") + + private String aiCardType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "npu_library_path") + + private String npuLibraryPath; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "container_version") + + private String containerVersion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "type") + + private String type; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "security_level") + + private String securityLevel; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "reliability_level") + + private String reliabilityLevel; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "storage_period") + + private Integer storagePeriod; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "base_path") + + private BasePathDTO basePath; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hardware_model") + + private String hardwareModel; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "offline_cache_configs") + + private OfflineCacheConfigsDTO offlineCacheConfigs; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "device_auth_info") + + private DeviceAuthInfoDisplayDTO deviceAuthInfo; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "device_data_format") + + private String deviceDataFormat; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "automatic_upgrade") + + private String automaticUpgrade; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "device_data_record") + + private DeviceDataRecord deviceDataRecord; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "metric_report") + + private String metricReport; + + public UpdateEdgeNodeResponse withLogConfigs(List logConfigs) { + this.logConfigs = logConfigs; + return this; + } + + public UpdateEdgeNodeResponse addLogConfigsItem(LogConfigDTO logConfigsItem) { + if (this.logConfigs == null) { + this.logConfigs = new ArrayList<>(); + } + this.logConfigs.add(logConfigsItem); + return this; + } + + public UpdateEdgeNodeResponse withLogConfigs(Consumer> logConfigsSetter) { + if (this.logConfigs == null) { + this.logConfigs = new ArrayList<>(); + } + logConfigsSetter.accept(this.logConfigs); + return this; + } + + /** + * 边缘节点在IEF的日志配置 + * @return logConfigs + */ + public List getLogConfigs() { + return logConfigs; + } + + public void setLogConfigs(List logConfigs) { + this.logConfigs = logConfigs; + } + + public UpdateEdgeNodeResponse withHaConfig(HaConfigDTO haConfig) { + this.haConfig = haConfig; + return this; + } + + public UpdateEdgeNodeResponse withHaConfig(Consumer haConfigSetter) { + if (this.haConfig == null) { + this.haConfig = new HaConfigDTO(); + haConfigSetter.accept(this.haConfig); + } + + return this; + } + + /** + * Get haConfig + * @return haConfig + */ + public HaConfigDTO getHaConfig() { + return haConfig; + } + + public void setHaConfig(HaConfigDTO haConfig) { + this.haConfig = haConfig; + } + + public UpdateEdgeNodeResponse withEdgeNodeId(String edgeNodeId) { + this.edgeNodeId = edgeNodeId; + return this; + } + + /** + * 边缘节点Id + * @return edgeNodeId + */ + public String getEdgeNodeId() { + return edgeNodeId; + } + + public void setEdgeNodeId(String edgeNodeId) { + this.edgeNodeId = edgeNodeId; + } + + public UpdateEdgeNodeResponse withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 实例ID。物理多租下各实例的唯一标识,一般华为云租户无需携带该参数,仅在物理多租场景下从管理面访问API时需要携带该参数。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public UpdateEdgeNodeResponse withProductId(String productId) { + this.productId = productId; + return this; + } + + /** + * 边缘节点关联的产品ID,用于唯一标识一个产品模型。 + * @return productId + */ + public String getProductId() { + return productId; + } + + public void setProductId(String productId) { + this.productId = productId; + } + + public UpdateEdgeNodeResponse withProductName(String productName) { + this.productName = productName; + return this; + } + + /** + * 边缘节点关联的产品名称。 + * @return productName + */ + public String getProductName() { + return productName; + } + + public void setProductName(String productName) { + this.productName = productName; + } + + public UpdateEdgeNodeResponse withSpaceId(String spaceId) { + this.spaceId = spaceId; + return this; + } + + /** + * 资源空间id,对应IOTDA云服务接口参数中的app_id。 + * @return spaceId + */ + public String getSpaceId() { + return spaceId; + } + + public void setSpaceId(String spaceId) { + this.spaceId = spaceId; + } + + public UpdateEdgeNodeResponse withResourceSpecTypes(List resourceSpecTypes) { + this.resourceSpecTypes = resourceSpecTypes; + return this; + } + + public UpdateEdgeNodeResponse addResourceSpecTypesItem(String resourceSpecTypesItem) { + if (this.resourceSpecTypes == null) { + this.resourceSpecTypes = new ArrayList<>(); + } + this.resourceSpecTypes.add(resourceSpecTypesItem); + return this; + } + + public UpdateEdgeNodeResponse withResourceSpecTypes(Consumer> resourceSpecTypesSetter) { + if (this.resourceSpecTypes == null) { + this.resourceSpecTypes = new ArrayList<>(); + } + resourceSpecTypesSetter.accept(this.resourceSpecTypes); + return this; + } + + /** + * 节点所购买的资源类型的列表 + * @return resourceSpecTypes + */ + public List getResourceSpecTypes() { + return resourceSpecTypes; + } + + public void setResourceSpecTypes(List resourceSpecTypes) { + this.resourceSpecTypes = resourceSpecTypes; + } + + public UpdateEdgeNodeResponse withResourceIds(List resourceIds) { + this.resourceIds = resourceIds; + return this; + } + + public UpdateEdgeNodeResponse addResourceIdsItem(String resourceIdsItem) { + if (this.resourceIds == null) { + this.resourceIds = new ArrayList<>(); + } + this.resourceIds.add(resourceIdsItem); + return this; + } + + public UpdateEdgeNodeResponse withResourceIds(Consumer> resourceIdsSetter) { + if (this.resourceIds == null) { + this.resourceIds = new ArrayList<>(); + } + resourceIdsSetter.accept(this.resourceIds); + return this; + } + + /** + * 资源id列表,创建节点时需绑定已购买的资源包,可以叠加节点功能。 + * @return resourceIds + */ + public List getResourceIds() { + return resourceIds; + } + + public void setResourceIds(List resourceIds) { + this.resourceIds = resourceIds; + } + + public UpdateEdgeNodeResponse withIps(List ips) { + this.ips = ips; + return this; + } + + public UpdateEdgeNodeResponse addIpsItem(String ipsItem) { + if (this.ips == null) { + this.ips = new ArrayList<>(); + } + this.ips.add(ipsItem); + return this; + } + + public UpdateEdgeNodeResponse withIps(Consumer> ipsSetter) { + if (this.ips == null) { + this.ips = new ArrayList<>(); + } + ipsSetter.accept(this.ips); + return this; + } + + /** + * 边缘节点主机ip + * @return ips + */ + public List getIps() { + return ips; + } + + public void setIps(List ips) { + this.ips = ips; + } + + public UpdateEdgeNodeResponse withName(String name) { + this.name = name; + return this; + } + + /** + * 边缘节点名称 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public UpdateEdgeNodeResponse withState(String state) { + this.state = state; + return this; + } + + /** + * 边缘节点状态 + * @return state + */ + public String getState() { + return state; + } + + public void setState(String state) { + this.state = state; + } + + public UpdateEdgeNodeResponse withSoftwareVersion(String softwareVersion) { + this.softwareVersion = softwareVersion; + return this; + } + + /** + * 边缘应用id,只允许数字、英文小写、中划线,切必须以字母或数字结尾 + * @return softwareVersion + */ + public String getSoftwareVersion() { + return softwareVersion; + } + + public void setSoftwareVersion(String softwareVersion) { + this.softwareVersion = softwareVersion; + } + + public UpdateEdgeNodeResponse withCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * 边缘节点创建时间 + * @return createTime + */ + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public UpdateEdgeNodeResponse withUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * 边缘节点更新时间 + * @return updateTime + */ + public String getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(String updateTime) { + this.updateTime = updateTime; + } + + public UpdateEdgeNodeResponse withOsName(String osName) { + this.osName = osName; + return this; + } + + /** + * 边缘节点操作系统名称 + * @return osName + */ + public String getOsName() { + return osName; + } + + public void setOsName(String osName) { + this.osName = osName; + } + + public UpdateEdgeNodeResponse withArch(String arch) { + this.arch = arch; + return this; + } + + /** + * 边缘节点操作系统架构 + * @return arch + */ + public String getArch() { + return arch; + } + + public void setArch(String arch) { + this.arch = arch; + } + + public UpdateEdgeNodeResponse withHostName(String hostName) { + this.hostName = hostName; + return this; + } + + /** + * 边缘节点主机名 + * @return hostName + */ + public String getHostName() { + return hostName; + } + + public void setHostName(String hostName) { + this.hostName = hostName; + } + + public UpdateEdgeNodeResponse withNics(List nics) { + this.nics = nics; + return this; + } + + public UpdateEdgeNodeResponse addNicsItem(Nic nicsItem) { + if (this.nics == null) { + this.nics = new ArrayList<>(); + } + this.nics.add(nicsItem); + return this; + } + + public UpdateEdgeNodeResponse withNics(Consumer> nicsSetter) { + if (this.nics == null) { + this.nics = new ArrayList<>(); + } + nicsSetter.accept(this.nics); + return this; + } + + /** + * 边缘节点网络网卡信息 + * @return nics + */ + public List getNics() { + return nics; + } + + public void setNics(List nics) { + this.nics = nics; + } + + public UpdateEdgeNodeResponse withSpecification(String specification) { + this.specification = specification; + return this; + } + + /** + * 网络规格,如4 cores | 3867 MB + * @return specification + */ + public String getSpecification() { + return specification; + } + + public void setSpecification(String specification) { + this.specification = specification; + } + + public UpdateEdgeNodeResponse withAiCardType(String aiCardType) { + this.aiCardType = aiCardType; + return this; + } + + /** + * AI加速卡类型,如华为昇腾AI加速卡NPU、图像处理加速卡GPU。 + * @return aiCardType + */ + public String getAiCardType() { + return aiCardType; + } + + public void setAiCardType(String aiCardType) { + this.aiCardType = aiCardType; + } + + public UpdateEdgeNodeResponse withNpuLibraryPath(String npuLibraryPath) { + this.npuLibraryPath = npuLibraryPath; + return this; + } + + /** + * npu驱动动态库路径 + * @return npuLibraryPath + */ + public String getNpuLibraryPath() { + return npuLibraryPath; + } + + public void setNpuLibraryPath(String npuLibraryPath) { + this.npuLibraryPath = npuLibraryPath; + } + + public UpdateEdgeNodeResponse withContainerVersion(String containerVersion) { + this.containerVersion = containerVersion; + return this; + } + + /** + * 容器运行时版本 + * @return containerVersion + */ + public String getContainerVersion() { + return containerVersion; + } + + public void setContainerVersion(String containerVersion) { + this.containerVersion = containerVersion; + } + + public UpdateEdgeNodeResponse withType(String type) { + this.type = type; + return this; + } + + /** + * 节点所属资源类型:advanced|standard + * @return type + */ + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public UpdateEdgeNodeResponse withSecurityLevel(String securityLevel) { + this.securityLevel = securityLevel; + return this; + } + + /** + * 节点的安全等级,MEDIUM边缘节数据上报不进行加密,HIGH对数据上报进行加密。 + * @return securityLevel + */ + public String getSecurityLevel() { + return securityLevel; + } + + public void setSecurityLevel(String securityLevel) { + this.securityLevel = securityLevel; + } + + public UpdateEdgeNodeResponse withReliabilityLevel(String reliabilityLevel) { + this.reliabilityLevel = reliabilityLevel; + return this; + } + + /** + * 节点的可靠性等级。 + * @return reliabilityLevel + */ + public String getReliabilityLevel() { + return reliabilityLevel; + } + + public void setReliabilityLevel(String reliabilityLevel) { + this.reliabilityLevel = reliabilityLevel; + } + + public UpdateEdgeNodeResponse withStoragePeriod(Integer storagePeriod) { + this.storagePeriod = storagePeriod; + return this; + } + + /** + * 节点的存储周期,默认0天,取值范围0~7天,0天则不存储。 + * minimum: 0 + * maximum: 7 + * @return storagePeriod + */ + public Integer getStoragePeriod() { + return storagePeriod; + } + + public void setStoragePeriod(Integer storagePeriod) { + this.storagePeriod = storagePeriod; + } + + public UpdateEdgeNodeResponse withBasePath(BasePathDTO basePath) { + this.basePath = basePath; + return this; + } + + public UpdateEdgeNodeResponse withBasePath(Consumer basePathSetter) { + if (this.basePath == null) { + this.basePath = new BasePathDTO(); + basePathSetter.accept(this.basePath); + } + + return this; + } + + /** + * Get basePath + * @return basePath + */ + public BasePathDTO getBasePath() { + return basePath; + } + + public void setBasePath(BasePathDTO basePath) { + this.basePath = basePath; + } + + public UpdateEdgeNodeResponse withHardwareModel(String hardwareModel) { + this.hardwareModel = hardwareModel; + return this; + } + + /** + * 注册节点网关配置 + * @return hardwareModel + */ + public String getHardwareModel() { + return hardwareModel; + } + + public void setHardwareModel(String hardwareModel) { + this.hardwareModel = hardwareModel; + } + + public UpdateEdgeNodeResponse withOfflineCacheConfigs(OfflineCacheConfigsDTO offlineCacheConfigs) { + this.offlineCacheConfigs = offlineCacheConfigs; + return this; + } + + public UpdateEdgeNodeResponse withOfflineCacheConfigs(Consumer offlineCacheConfigsSetter) { + if (this.offlineCacheConfigs == null) { + this.offlineCacheConfigs = new OfflineCacheConfigsDTO(); + offlineCacheConfigsSetter.accept(this.offlineCacheConfigs); + } + + return this; + } + + /** + * Get offlineCacheConfigs + * @return offlineCacheConfigs + */ + public OfflineCacheConfigsDTO getOfflineCacheConfigs() { + return offlineCacheConfigs; + } + + public void setOfflineCacheConfigs(OfflineCacheConfigsDTO offlineCacheConfigs) { + this.offlineCacheConfigs = offlineCacheConfigs; + } + + public UpdateEdgeNodeResponse withDeviceAuthInfo(DeviceAuthInfoDisplayDTO deviceAuthInfo) { + this.deviceAuthInfo = deviceAuthInfo; + return this; + } + + public UpdateEdgeNodeResponse withDeviceAuthInfo(Consumer deviceAuthInfoSetter) { + if (this.deviceAuthInfo == null) { + this.deviceAuthInfo = new DeviceAuthInfoDisplayDTO(); + deviceAuthInfoSetter.accept(this.deviceAuthInfo); + } + + return this; + } + + /** + * Get deviceAuthInfo + * @return deviceAuthInfo + */ + public DeviceAuthInfoDisplayDTO getDeviceAuthInfo() { + return deviceAuthInfo; + } + + public void setDeviceAuthInfo(DeviceAuthInfoDisplayDTO deviceAuthInfo) { + this.deviceAuthInfo = deviceAuthInfo; + } + + public UpdateEdgeNodeResponse withDeviceDataFormat(String deviceDataFormat) { + this.deviceDataFormat = deviceDataFormat; + return this; + } + + /** + * 节点使用的数据格式,默认为iotda物模型1.0格式,可以选择属性平铺数据格式flat_json + * @return deviceDataFormat + */ + public String getDeviceDataFormat() { + return deviceDataFormat; + } + + public void setDeviceDataFormat(String deviceDataFormat) { + this.deviceDataFormat = deviceDataFormat; + } + + public UpdateEdgeNodeResponse withAutomaticUpgrade(String automaticUpgrade) { + this.automaticUpgrade = automaticUpgrade; + return this; + } + + /** + * 自动升级系统应用的节点开关,默认为关闭:OFF,IMMEDIATE表示节点开关打开 + * @return automaticUpgrade + */ + public String getAutomaticUpgrade() { + return automaticUpgrade; + } + + public void setAutomaticUpgrade(String automaticUpgrade) { + this.automaticUpgrade = automaticUpgrade; + } + + public UpdateEdgeNodeResponse withDeviceDataRecord(DeviceDataRecord deviceDataRecord) { + this.deviceDataRecord = deviceDataRecord; + return this; + } + + public UpdateEdgeNodeResponse withDeviceDataRecord(Consumer deviceDataRecordSetter) { + if (this.deviceDataRecord == null) { + this.deviceDataRecord = new DeviceDataRecord(); + deviceDataRecordSetter.accept(this.deviceDataRecord); + } + + return this; + } + + /** + * Get deviceDataRecord + * @return deviceDataRecord + */ + public DeviceDataRecord getDeviceDataRecord() { + return deviceDataRecord; + } + + public void setDeviceDataRecord(DeviceDataRecord deviceDataRecord) { + this.deviceDataRecord = deviceDataRecord; + } + + public UpdateEdgeNodeResponse withMetricReport(String metricReport) { + this.metricReport = metricReport; + return this; + } + + /** + * omagent监控运维工具是否上报指标 + * @return metricReport + */ + public String getMetricReport() { + return metricReport; + } + + public void setMetricReport(String metricReport) { + this.metricReport = metricReport; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateEdgeNodeResponse that = (UpdateEdgeNodeResponse) obj; + return Objects.equals(this.logConfigs, that.logConfigs) && Objects.equals(this.haConfig, that.haConfig) + && Objects.equals(this.edgeNodeId, that.edgeNodeId) && Objects.equals(this.instanceId, that.instanceId) + && Objects.equals(this.productId, that.productId) && Objects.equals(this.productName, that.productName) + && Objects.equals(this.spaceId, that.spaceId) + && Objects.equals(this.resourceSpecTypes, that.resourceSpecTypes) + && Objects.equals(this.resourceIds, that.resourceIds) && Objects.equals(this.ips, that.ips) + && Objects.equals(this.name, that.name) && Objects.equals(this.state, that.state) + && Objects.equals(this.softwareVersion, that.softwareVersion) + && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.updateTime, that.updateTime) + && Objects.equals(this.osName, that.osName) && Objects.equals(this.arch, that.arch) + && Objects.equals(this.hostName, that.hostName) && Objects.equals(this.nics, that.nics) + && Objects.equals(this.specification, that.specification) + && Objects.equals(this.aiCardType, that.aiCardType) + && Objects.equals(this.npuLibraryPath, that.npuLibraryPath) + && Objects.equals(this.containerVersion, that.containerVersion) && Objects.equals(this.type, that.type) + && Objects.equals(this.securityLevel, that.securityLevel) + && Objects.equals(this.reliabilityLevel, that.reliabilityLevel) + && Objects.equals(this.storagePeriod, that.storagePeriod) && Objects.equals(this.basePath, that.basePath) + && Objects.equals(this.hardwareModel, that.hardwareModel) + && Objects.equals(this.offlineCacheConfigs, that.offlineCacheConfigs) + && Objects.equals(this.deviceAuthInfo, that.deviceAuthInfo) + && Objects.equals(this.deviceDataFormat, that.deviceDataFormat) + && Objects.equals(this.automaticUpgrade, that.automaticUpgrade) + && Objects.equals(this.deviceDataRecord, that.deviceDataRecord) + && Objects.equals(this.metricReport, that.metricReport); + } + + @Override + public int hashCode() { + return Objects.hash(logConfigs, + haConfig, + edgeNodeId, + instanceId, + productId, + productName, + spaceId, + resourceSpecTypes, + resourceIds, + ips, + name, + state, + softwareVersion, + createTime, + updateTime, + osName, + arch, + hostName, + nics, + specification, + aiCardType, + npuLibraryPath, + containerVersion, + type, + securityLevel, + reliabilityLevel, + storagePeriod, + basePath, + hardwareModel, + offlineCacheConfigs, + deviceAuthInfo, + deviceDataFormat, + automaticUpgrade, + deviceDataRecord, + metricReport); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateEdgeNodeResponse {\n"); + sb.append(" logConfigs: ").append(toIndentedString(logConfigs)).append("\n"); + sb.append(" haConfig: ").append(toIndentedString(haConfig)).append("\n"); + sb.append(" edgeNodeId: ").append(toIndentedString(edgeNodeId)).append("\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" productId: ").append(toIndentedString(productId)).append("\n"); + sb.append(" productName: ").append(toIndentedString(productName)).append("\n"); + sb.append(" spaceId: ").append(toIndentedString(spaceId)).append("\n"); + sb.append(" resourceSpecTypes: ").append(toIndentedString(resourceSpecTypes)).append("\n"); + sb.append(" resourceIds: ").append(toIndentedString(resourceIds)).append("\n"); + sb.append(" ips: ").append(toIndentedString(ips)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" state: ").append(toIndentedString(state)).append("\n"); + sb.append(" softwareVersion: ").append(toIndentedString(softwareVersion)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); + sb.append(" osName: ").append(toIndentedString(osName)).append("\n"); + sb.append(" arch: ").append(toIndentedString(arch)).append("\n"); + sb.append(" hostName: ").append(toIndentedString(hostName)).append("\n"); + sb.append(" nics: ").append(toIndentedString(nics)).append("\n"); + sb.append(" specification: ").append(toIndentedString(specification)).append("\n"); + sb.append(" aiCardType: ").append(toIndentedString(aiCardType)).append("\n"); + sb.append(" npuLibraryPath: ").append(toIndentedString(npuLibraryPath)).append("\n"); + sb.append(" containerVersion: ").append(toIndentedString(containerVersion)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" securityLevel: ").append(toIndentedString(securityLevel)).append("\n"); + sb.append(" reliabilityLevel: ").append(toIndentedString(reliabilityLevel)).append("\n"); + sb.append(" storagePeriod: ").append(toIndentedString(storagePeriod)).append("\n"); + sb.append(" basePath: ").append(toIndentedString(basePath)).append("\n"); + sb.append(" hardwareModel: ").append(toIndentedString(hardwareModel)).append("\n"); + sb.append(" offlineCacheConfigs: ").append(toIndentedString(offlineCacheConfigs)).append("\n"); + sb.append(" deviceAuthInfo: ").append(toIndentedString(deviceAuthInfo)).append("\n"); + sb.append(" deviceDataFormat: ").append(toIndentedString(deviceDataFormat)).append("\n"); + sb.append(" automaticUpgrade: ").append(toIndentedString(automaticUpgrade)).append("\n"); + sb.append(" deviceDataRecord: ").append(toIndentedString(deviceDataRecord)).append("\n"); + sb.append(" metricReport: ").append(toIndentedString(metricReport)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/UpdateNodeReqDTO.java b/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/UpdateNodeReqDTO.java new file mode 100644 index 0000000000..bf1dff8bb8 --- /dev/null +++ b/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/UpdateNodeReqDTO.java @@ -0,0 +1,343 @@ +package com.huaweicloud.sdk.iotedge.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 修改边缘节点请求结构体。 + */ +public class UpdateNodeReqDTO { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "storage_period") + + private Integer storagePeriod; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "log_configs") + + private List logConfigs = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ha_config") + + private HaConfigDTO haConfig; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hardware_model") + + private String hardwareModel; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "npu_library_path") + + private String npuLibraryPath; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "automatic_upgrade") + + private String automaticUpgrade; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "device_data_record") + + private DeviceDataRecord deviceDataRecord; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "metric_report") + + private String metricReport; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "offline_cache_configs") + + private UpdateOfflineCacheConfigsDTO offlineCacheConfigs; + + public UpdateNodeReqDTO withName(String name) { + this.name = name; + return this; + } + + /** + * 边缘节点名称,只允许中、数字、英文大小写、中划线、下划线 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public UpdateNodeReqDTO withStoragePeriod(Integer storagePeriod) { + this.storagePeriod = storagePeriod; + return this; + } + + /** + * 节点的存储周期,默认0天,取值范围0~7天,0天则不存储。 + * minimum: 0 + * maximum: 7 + * @return storagePeriod + */ + public Integer getStoragePeriod() { + return storagePeriod; + } + + public void setStoragePeriod(Integer storagePeriod) { + this.storagePeriod = storagePeriod; + } + + public UpdateNodeReqDTO withLogConfigs(List logConfigs) { + this.logConfigs = logConfigs; + return this; + } + + public UpdateNodeReqDTO addLogConfigsItem(LogConfigDTO logConfigsItem) { + if (this.logConfigs == null) { + this.logConfigs = new ArrayList<>(); + } + this.logConfigs.add(logConfigsItem); + return this; + } + + public UpdateNodeReqDTO withLogConfigs(Consumer> logConfigsSetter) { + if (this.logConfigs == null) { + this.logConfigs = new ArrayList<>(); + } + logConfigsSetter.accept(this.logConfigs); + return this; + } + + /** + * 边缘节点在IEF日志配置参数 + * @return logConfigs + */ + public List getLogConfigs() { + return logConfigs; + } + + public void setLogConfigs(List logConfigs) { + this.logConfigs = logConfigs; + } + + public UpdateNodeReqDTO withHaConfig(HaConfigDTO haConfig) { + this.haConfig = haConfig; + return this; + } + + public UpdateNodeReqDTO withHaConfig(Consumer haConfigSetter) { + if (this.haConfig == null) { + this.haConfig = new HaConfigDTO(); + haConfigSetter.accept(this.haConfig); + } + + return this; + } + + /** + * Get haConfig + * @return haConfig + */ + public HaConfigDTO getHaConfig() { + return haConfig; + } + + public void setHaConfig(HaConfigDTO haConfig) { + this.haConfig = haConfig; + } + + public UpdateNodeReqDTO withHardwareModel(String hardwareModel) { + this.hardwareModel = hardwareModel; + return this; + } + + /** + * 网关型号 + * @return hardwareModel + */ + public String getHardwareModel() { + return hardwareModel; + } + + public void setHardwareModel(String hardwareModel) { + this.hardwareModel = hardwareModel; + } + + public UpdateNodeReqDTO withNpuLibraryPath(String npuLibraryPath) { + this.npuLibraryPath = npuLibraryPath; + return this; + } + + /** + * npu驱动动态库路径 + * @return npuLibraryPath + */ + public String getNpuLibraryPath() { + return npuLibraryPath; + } + + public void setNpuLibraryPath(String npuLibraryPath) { + this.npuLibraryPath = npuLibraryPath; + } + + public UpdateNodeReqDTO withAutomaticUpgrade(String automaticUpgrade) { + this.automaticUpgrade = automaticUpgrade; + return this; + } + + /** + * 自动升级系统应用的节点开关,默认为关闭:OFF,IMMEDIATE表示节点开关打开 + * @return automaticUpgrade + */ + public String getAutomaticUpgrade() { + return automaticUpgrade; + } + + public void setAutomaticUpgrade(String automaticUpgrade) { + this.automaticUpgrade = automaticUpgrade; + } + + public UpdateNodeReqDTO withDeviceDataRecord(DeviceDataRecord deviceDataRecord) { + this.deviceDataRecord = deviceDataRecord; + return this; + } + + public UpdateNodeReqDTO withDeviceDataRecord(Consumer deviceDataRecordSetter) { + if (this.deviceDataRecord == null) { + this.deviceDataRecord = new DeviceDataRecord(); + deviceDataRecordSetter.accept(this.deviceDataRecord); + } + + return this; + } + + /** + * Get deviceDataRecord + * @return deviceDataRecord + */ + public DeviceDataRecord getDeviceDataRecord() { + return deviceDataRecord; + } + + public void setDeviceDataRecord(DeviceDataRecord deviceDataRecord) { + this.deviceDataRecord = deviceDataRecord; + } + + public UpdateNodeReqDTO withMetricReport(String metricReport) { + this.metricReport = metricReport; + return this; + } + + /** + * omagent监控运维工具是否上报指标 + * @return metricReport + */ + public String getMetricReport() { + return metricReport; + } + + public void setMetricReport(String metricReport) { + this.metricReport = metricReport; + } + + public UpdateNodeReqDTO withOfflineCacheConfigs(UpdateOfflineCacheConfigsDTO offlineCacheConfigs) { + this.offlineCacheConfigs = offlineCacheConfigs; + return this; + } + + public UpdateNodeReqDTO withOfflineCacheConfigs(Consumer offlineCacheConfigsSetter) { + if (this.offlineCacheConfigs == null) { + this.offlineCacheConfigs = new UpdateOfflineCacheConfigsDTO(); + offlineCacheConfigsSetter.accept(this.offlineCacheConfigs); + } + + return this; + } + + /** + * Get offlineCacheConfigs + * @return offlineCacheConfigs + */ + public UpdateOfflineCacheConfigsDTO getOfflineCacheConfigs() { + return offlineCacheConfigs; + } + + public void setOfflineCacheConfigs(UpdateOfflineCacheConfigsDTO offlineCacheConfigs) { + this.offlineCacheConfigs = offlineCacheConfigs; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateNodeReqDTO that = (UpdateNodeReqDTO) obj; + return Objects.equals(this.name, that.name) && Objects.equals(this.storagePeriod, that.storagePeriod) + && Objects.equals(this.logConfigs, that.logConfigs) && Objects.equals(this.haConfig, that.haConfig) + && Objects.equals(this.hardwareModel, that.hardwareModel) + && Objects.equals(this.npuLibraryPath, that.npuLibraryPath) + && Objects.equals(this.automaticUpgrade, that.automaticUpgrade) + && Objects.equals(this.deviceDataRecord, that.deviceDataRecord) + && Objects.equals(this.metricReport, that.metricReport) + && Objects.equals(this.offlineCacheConfigs, that.offlineCacheConfigs); + } + + @Override + public int hashCode() { + return Objects.hash(name, + storagePeriod, + logConfigs, + haConfig, + hardwareModel, + npuLibraryPath, + automaticUpgrade, + deviceDataRecord, + metricReport, + offlineCacheConfigs); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateNodeReqDTO {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" storagePeriod: ").append(toIndentedString(storagePeriod)).append("\n"); + sb.append(" logConfigs: ").append(toIndentedString(logConfigs)).append("\n"); + sb.append(" haConfig: ").append(toIndentedString(haConfig)).append("\n"); + sb.append(" hardwareModel: ").append(toIndentedString(hardwareModel)).append("\n"); + sb.append(" npuLibraryPath: ").append(toIndentedString(npuLibraryPath)).append("\n"); + sb.append(" automaticUpgrade: ").append(toIndentedString(automaticUpgrade)).append("\n"); + sb.append(" deviceDataRecord: ").append(toIndentedString(deviceDataRecord)).append("\n"); + sb.append(" metricReport: ").append(toIndentedString(metricReport)).append("\n"); + sb.append(" offlineCacheConfigs: ").append(toIndentedString(offlineCacheConfigs)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/UpdateOfflineCacheConfigsDTO.java b/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/UpdateOfflineCacheConfigsDTO.java new file mode 100644 index 0000000000..56d787a74f --- /dev/null +++ b/services/iotedge/src/main/java/com/huaweicloud/sdk/iotedge/v2/model/UpdateOfflineCacheConfigsDTO.java @@ -0,0 +1,74 @@ +package com.huaweicloud.sdk.iotedge.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 节点离线缓存配置 + */ +public class UpdateOfflineCacheConfigsDTO { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "capacity") + + private Integer capacity; + + public UpdateOfflineCacheConfigsDTO withCapacity(Integer capacity) { + this.capacity = capacity; + return this; + } + + /** + * 节点离线缓存容量,单位MB,默认2048,取值范围500-65536 + * minimum: 500 + * maximum: 65536 + * @return capacity + */ + public Integer getCapacity() { + return capacity; + } + + public void setCapacity(Integer capacity) { + this.capacity = capacity; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateOfflineCacheConfigsDTO that = (UpdateOfflineCacheConfigsDTO) obj; + return Objects.equals(this.capacity, that.capacity); + } + + @Override + public int hashCode() { + return Objects.hash(capacity); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateOfflineCacheConfigsDTO {\n"); + sb.append(" capacity: ").append(toIndentedString(capacity)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/ivs/pom.xml b/services/ivs/pom.xml index eaf4454438..cb0b95a8ca 100644 --- a/services/ivs/pom.xml +++ b/services/ivs/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-ivs - 3.1.99 + 3.1.100 Huawei Cloud SDK for IVS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/kafka/pom.xml b/services/kafka/pom.xml index ab32ef613b..f9f0aaa196 100644 --- a/services/kafka/pom.xml +++ b/services/kafka/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-kafka - 3.1.99 + 3.1.100 Huawei Cloud SDK for KAFKA 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/kms/pom.xml b/services/kms/pom.xml index 48e1218080..a48a84af61 100644 --- a/services/kms/pom.xml +++ b/services/kms/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-kms - 3.1.99 + 3.1.100 Huawei Cloud SDK for KMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/koomap/pom.xml b/services/koomap/pom.xml index 2c05a0fe74..73295da815 100644 --- a/services/koomap/pom.xml +++ b/services/koomap/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-koomap - 3.1.99 + 3.1.100 Huawei Cloud SDK for KOOMAP 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/koomessage/pom.xml b/services/koomessage/pom.xml index 777beec9b8..a98bc793c2 100644 --- a/services/koomessage/pom.xml +++ b/services/koomessage/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-koomessage - 3.1.99 + 3.1.100 Huawei Cloud SDK for KOOMESSAGE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/koophone/pom.xml b/services/koophone/pom.xml index 813cba208e..18e492a783 100644 --- a/services/koophone/pom.xml +++ b/services/koophone/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-koophone - 3.1.99 + 3.1.100 Huawei Cloud SDK for KOOPHONE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/kps/pom.xml b/services/kps/pom.xml index fbab13de2f..59da98fd8f 100644 --- a/services/kps/pom.xml +++ b/services/kps/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-kps - 3.1.99 + 3.1.100 Huawei Cloud SDK for KPS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/kvs/pom.xml b/services/kvs/pom.xml index 3a6f012502..d0138fc952 100644 --- a/services/kvs/pom.xml +++ b/services/kvs/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-kvs - 3.1.99 + 3.1.100 Huawei Cloud SDK for KVS 4.0.0 @@ -17,12 +17,12 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-core-bson - 3.1.99 + 3.1.100 diff --git a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/KvsAsyncClient.java b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/KvsAsyncClient.java index 84f288083a..13461190eb 100644 --- a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/KvsAsyncClient.java +++ b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/KvsAsyncClient.java @@ -109,6 +109,7 @@ public AsyncInvoker describeTableAs /** * 列举仓 * + * 一个账户下可能存在多个仓,每个账户下的store数量有限制,响应中一次性返回所有仓名称。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -122,6 +123,7 @@ public CompletableFuture listStoreAsync(ListStoreRequest requ /** * 列举仓 * + * 一个账户下可能存在多个仓,每个账户下的store数量有限制,响应中一次性返回所有仓名称。 * * Please refer to HUAWEI cloud API Explorer for details. * diff --git a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/KvsClient.java b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/KvsClient.java index d5a914b0db..437fb206bc 100644 --- a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/KvsClient.java +++ b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/KvsClient.java @@ -106,6 +106,7 @@ public SyncInvoker describeTableInv /** * 列举仓 * + * 一个账户下可能存在多个仓,每个账户下的store数量有限制,响应中一次性返回所有仓名称。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -119,6 +120,7 @@ public ListStoreResponse listStore(ListStoreRequest request) { /** * 列举仓 * + * 一个账户下可能存在多个仓,每个账户下的store数量有限制,响应中一次性返回所有仓名称。 * * Please refer to HUAWEI cloud API Explorer for details. * diff --git a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/BatchWriteKvRequest.java b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/BatchWriteKvRequest.java index 61e35ee409..8ae9507127 100644 --- a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/BatchWriteKvRequest.java +++ b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/BatchWriteKvRequest.java @@ -35,7 +35,7 @@ public BatchWriteKvRequest withStoreName(String storeName) { } /** - * 仓名 + * 仓名,全域唯一,不同租户的仓名不能相同。 - 格式:${prefix}-${region-code}-${account-id},其中prefix为自定义前缀,region-code为kvs集群所在的区域代码,account-id为用户的账户id - 取值字符限制:[a-z0-9-]+ - 长度:[16,52] > \"-\"不能出现在名字头部或尾部 * @return storeName */ public String getStoreName() { diff --git a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ComposedExpression.java b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ComposedExpression.java index cdfe17ac0f..4652b592b1 100644 --- a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ComposedExpression.java +++ b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ComposedExpression.java @@ -33,7 +33,7 @@ public ComposedExpression withLogic(String logic) { } /** - * 逻辑关系,取值如\"$and\", \"$or\", \"$nor\" + * 逻辑关系,取值如\"$and\", \"$or\", \"$nor\"。 * @return logic */ public String getLogic() { @@ -66,7 +66,7 @@ public ComposedExpression withExpressions(Consumer> expressions } /** - * 多个相同优先级且相同逻辑的单字段或多字段条件 + * 多个相同优先级且相同逻辑的单字段或多字段条件。 * @return expressions */ public List getExpressions() { diff --git a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/CreateTableRequest.java b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/CreateTableRequest.java index 76dcb42e3a..bafa6cf6d7 100644 --- a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/CreateTableRequest.java +++ b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/CreateTableRequest.java @@ -35,7 +35,7 @@ public CreateTableRequest withStoreName(String storeName) { } /** - * 仓名 + * 仓名,全域唯一,不同租户的仓名不能相同。 - 格式:${prefix}-${region-code}-${account-id},其中prefix为自定义前缀,region-code为kvs集群所在的区域代码,account-id为用户的账户id - 取值字符限制:[a-z0-9-]+ - 长度:[16,52] > \"-\"不能出现在名字头部或尾部 * @return storeName */ public String getStoreName() { diff --git a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/DeleteKvRequest.java b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/DeleteKvRequest.java index bcf5c36cf3..9bce029081 100644 --- a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/DeleteKvRequest.java +++ b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/DeleteKvRequest.java @@ -35,7 +35,7 @@ public DeleteKvRequest withStoreName(String storeName) { } /** - * 仓名 + * 仓名,全域唯一,不同租户的仓名不能相同。 - 格式:${prefix}-${region-code}-${account-id},其中prefix为自定义前缀,region-code为kvs集群所在的区域代码,account-id为用户的账户id - 取值字符限制:[a-z0-9-]+ - 长度:[16,52] > \"-\"不能出现在名字头部或尾部 * @return storeName */ public String getStoreName() { diff --git a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/DescribeTableRequest.java b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/DescribeTableRequest.java index cb411ca524..4342a85149 100644 --- a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/DescribeTableRequest.java +++ b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/DescribeTableRequest.java @@ -35,7 +35,7 @@ public DescribeTableRequest withStoreName(String storeName) { } /** - * 仓名 + * 仓名,全域唯一,不同租户的仓名不能相同。 - 格式:${prefix}-${region-code}-${account-id},其中prefix为自定义前缀,region-code为kvs集群所在的区域代码,account-id为用户的账户id - 取值字符限制:[a-z0-9-]+ - 长度:[16,52] > \"-\"不能出现在名字头部或尾部 * @return storeName */ public String getStoreName() { diff --git a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/Expression.java b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/Expression.java index d39c59e2f9..346a0e4b56 100644 --- a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/Expression.java +++ b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/Expression.java @@ -13,50 +13,12 @@ */ public class Expression { - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "single_kv_expression") - @BsonProperty(value = "single_kv_expression") - - private SingleKvExpression singleKvExpression; - @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "single_field_expression") @BsonProperty(value = "single_field_expression") private SingleFieldExpression singleFieldExpression; - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "multi_field_expression") - @BsonProperty(value = "multi_field_expression") - - private MultiFieldExpression multiFieldExpression; - - public Expression withSingleKvExpression(SingleKvExpression singleKvExpression) { - this.singleKvExpression = singleKvExpression; - return this; - } - - public Expression withSingleKvExpression(Consumer singleKvExpressionSetter) { - if (this.singleKvExpression == null) { - this.singleKvExpression = new SingleKvExpression(); - singleKvExpressionSetter.accept(this.singleKvExpression); - } - - return this; - } - - /** - * Get singleKvExpression - * @return singleKvExpression - */ - public SingleKvExpression getSingleKvExpression() { - return singleKvExpression; - } - - public void setSingleKvExpression(SingleKvExpression singleKvExpression) { - this.singleKvExpression = singleKvExpression; - } - public Expression withSingleFieldExpression(SingleFieldExpression singleFieldExpression) { this.singleFieldExpression = singleFieldExpression; return this; @@ -83,32 +45,6 @@ public void setSingleFieldExpression(SingleFieldExpression singleFieldExpression this.singleFieldExpression = singleFieldExpression; } - public Expression withMultiFieldExpression(MultiFieldExpression multiFieldExpression) { - this.multiFieldExpression = multiFieldExpression; - return this; - } - - public Expression withMultiFieldExpression(Consumer multiFieldExpressionSetter) { - if (this.multiFieldExpression == null) { - this.multiFieldExpression = new MultiFieldExpression(); - multiFieldExpressionSetter.accept(this.multiFieldExpression); - } - - return this; - } - - /** - * Get multiFieldExpression - * @return multiFieldExpression - */ - public MultiFieldExpression getMultiFieldExpression() { - return multiFieldExpression; - } - - public void setMultiFieldExpression(MultiFieldExpression multiFieldExpression) { - this.multiFieldExpression = multiFieldExpression; - } - @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -118,23 +54,19 @@ public boolean equals(java.lang.Object obj) { return false; } Expression that = (Expression) obj; - return Objects.equals(this.singleKvExpression, that.singleKvExpression) - && Objects.equals(this.singleFieldExpression, that.singleFieldExpression) - && Objects.equals(this.multiFieldExpression, that.multiFieldExpression); + return Objects.equals(this.singleFieldExpression, that.singleFieldExpression); } @Override public int hashCode() { - return Objects.hash(singleKvExpression, singleFieldExpression, multiFieldExpression); + return Objects.hash(singleFieldExpression); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Expression {\n"); - sb.append(" singleKvExpression: ").append(toIndentedString(singleKvExpression)).append("\n"); sb.append(" singleFieldExpression: ").append(toIndentedString(singleFieldExpression)).append("\n"); - sb.append(" multiFieldExpression: ").append(toIndentedString(multiFieldExpression)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/GetKvRequest.java b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/GetKvRequest.java index 0462885c51..12b808bbc4 100644 --- a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/GetKvRequest.java +++ b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/GetKvRequest.java @@ -35,7 +35,7 @@ public GetKvRequest withStoreName(String storeName) { } /** - * 仓名 + * 仓名,全域唯一,不同租户的仓名不能相同。 - 格式:${prefix}-${region-code}-${account-id},其中prefix为自定义前缀,region-code为kvs集群所在的区域代码,account-id为用户的账户id - 取值字符限制:[a-z0-9-]+ - 长度:[16,52] > \"-\"不能出现在名字头部或尾部 * @return storeName */ public String getStoreName() { diff --git a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/GlobalSecondaryIndexInfo.java b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/GlobalSecondaryIndexInfo.java index df16c5281b..ff5ea56e0e 100644 --- a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/GlobalSecondaryIndexInfo.java +++ b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/GlobalSecondaryIndexInfo.java @@ -30,7 +30,7 @@ public GlobalSecondaryIndexInfo withIndexName(String indexName) { } /** - * 二级索引名称 + * 二级索引名称。 * @return indexName */ public String getIndexName() { diff --git a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/KvOptions.java b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/KvOptions.java index a50be8f692..3579521fd6 100644 --- a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/KvOptions.java +++ b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/KvOptions.java @@ -24,7 +24,7 @@ public KvOptions withReturnHint(Boolean returnHint) { } /** - * - true:返回操作执行前的内容,默认true - false:返回操作执行后的内容 + * - true:返回操作执行前的内容,默认true。 - false:返回操作执行后的内容。 * @return returnHint */ public Boolean getReturnHint() { diff --git a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ListStoreRequestBody.java b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ListStoreRequestBody.java index 7cf3d217e3..131c224e11 100644 --- a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ListStoreRequestBody.java +++ b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ListStoreRequestBody.java @@ -30,7 +30,7 @@ public ListStoreRequestBody withCursorName(String cursorName) { } /** - * 上次返回的游标位置,本次响应包含该仓名。 - 长度:[3,255] - 取值字符限制:[a-zA-Z0-9_.-]+ > 如果为空,表示后面无更多。 + * 上次返回的游标位置,本次响应包含该仓名。 - 长度:[16,52] - 取值字符限制:[a-z0-9-]+ * @return cursorName */ public String getCursorName() { @@ -47,7 +47,7 @@ public ListStoreRequestBody withLimit(Integer limit) { } /** - * Get limit + * 响应返回的仓个数。 * @return limit */ public Integer getLimit() { diff --git a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ListStoreResponse.java b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ListStoreResponse.java index 5d32d9ca14..874198f97f 100644 --- a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ListStoreResponse.java +++ b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ListStoreResponse.java @@ -37,7 +37,7 @@ public ListStoreResponse withCursorName(String cursorName) { } /** - * 本次响应后的游标位置,下次请求时携带。 - 长度:[3,255] - 取值字符限制:[a-zA-Z0-9_.-]+ > 如果为空,表示后面无更多。 + * 本次响应后的游标位置,下次请求时携带。 - 长度:[16,52] - 取值字符限制:[a-z0-9-]+ > 如果为空,表示后面无更多仓名。 * @return cursorName */ public String getCursorName() { diff --git a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ListTableRequest.java b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ListTableRequest.java index af3ce78fd1..f5c07b86aa 100644 --- a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ListTableRequest.java +++ b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ListTableRequest.java @@ -35,7 +35,7 @@ public ListTableRequest withStoreName(String storeName) { } /** - * 仓名 + * 仓名,全域唯一,不同租户的仓名不能相同。 - 格式:${prefix}-${region-code}-${account-id},其中prefix为自定义前缀,region-code为kvs集群所在的区域代码,account-id为用户的账户id - 取值字符限制:[a-z0-9-]+ - 长度:[16,52] > \"-\"不能出现在名字头部或尾部 * @return storeName */ public String getStoreName() { diff --git a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ListTableResponse.java b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ListTableResponse.java index c8f2e355e6..027a414a9f 100644 --- a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ListTableResponse.java +++ b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ListTableResponse.java @@ -37,7 +37,7 @@ public ListTableResponse withCursorName(String cursorName) { } /** - * 本次响应后的游标位置,下次请求时携带,如果为空,表示后面无更多 - 长度:[3, 63] - 取值字符限制:[a-z0-9_-]+ > 如果为空,表示后面无更多。 + * 本次响应后的游标位置,下次请求时携带,如果为空,表示后面无更多。 - 长度:[3, 63] - 取值字符限制:[a-z0-9_-]+ > 如果为空,表示后面无更多。 * @return cursorName */ public String getCursorName() { diff --git a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/PutKvRequest.java b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/PutKvRequest.java index 5515dae548..6b129b91f5 100644 --- a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/PutKvRequest.java +++ b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/PutKvRequest.java @@ -35,7 +35,7 @@ public PutKvRequest withStoreName(String storeName) { } /** - * 仓名 + * 仓名,全域唯一,不同租户的仓名不能相同。 - 格式:${prefix}-${region-code}-${account-id},其中prefix为自定义前缀,region-code为kvs集群所在的区域代码,account-id为用户的账户id - 取值字符限制:[a-z0-9-]+ - 长度:[16,52] > \"-\"不能出现在名字头部或尾部 * @return storeName */ public String getStoreName() { diff --git a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ScanKvRequest.java b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ScanKvRequest.java index c889c76f97..5f7dea6f48 100644 --- a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ScanKvRequest.java +++ b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ScanKvRequest.java @@ -35,7 +35,7 @@ public ScanKvRequest withStoreName(String storeName) { } /** - * 仓名 + * 仓名,全域唯一,不同租户的仓名不能相同。 - 格式:${prefix}-${region-code}-${account-id},其中prefix为自定义前缀,region-code为kvs集群所在的区域代码,account-id为用户的账户id - 取值字符限制:[a-z0-9-]+ - 长度:[16,52] > \"-\"不能出现在名字头部或尾部 * @return storeName */ public String getStoreName() { diff --git a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ScanKvResponse.java b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ScanKvResponse.java index 2b3fd51b91..4016938cb0 100644 --- a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ScanKvResponse.java +++ b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ScanKvResponse.java @@ -50,7 +50,7 @@ public ScanKvResponse withReturnedCount(Integer returnedCount) { } /** - * 返回的文档数量,为0不表示结束, > 如果filtered_count超过500仍无匹配,则返回0 + * 返回的文档数量,为0不表示结束。 > 如果filtered_count超过500仍无匹配,则返回0。 * @return returnedCount */ public Integer getReturnedCount() { diff --git a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ScanSkeyKvRequest.java b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ScanSkeyKvRequest.java index 76d1e8cc2f..e5f601cc85 100644 --- a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ScanSkeyKvRequest.java +++ b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ScanSkeyKvRequest.java @@ -35,7 +35,7 @@ public ScanSkeyKvRequest withStoreName(String storeName) { } /** - * 仓名 + * 仓名,全域唯一,不同租户的仓名不能相同。 - 格式:${prefix}-${region-code}-${account-id},其中prefix为自定义前缀,region-code为kvs集群所在的区域代码,account-id为用户的账户id - 取值字符限制:[a-z0-9-]+ - 长度:[16,52] > \"-\"不能出现在名字头部或尾部 * @return storeName */ public String getStoreName() { diff --git a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ScanSkeyKvRequestBody.java b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ScanSkeyKvRequestBody.java index 9b1a93887d..c1df4955a8 100644 --- a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ScanSkeyKvRequestBody.java +++ b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ScanSkeyKvRequestBody.java @@ -96,7 +96,7 @@ public ScanSkeyKvRequestBody withLimit(Integer limit) { } /** - * 数据量不超过1mb时,返回的文档个数,最大100个,默认1mb或者100个文档。 + * 数据量不超过1MB时,返回的文档个数,最大100个,默认1MB或者100个文档。 * maximum: 100 * @return limit */ diff --git a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ScanSkeyKvResponse.java b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ScanSkeyKvResponse.java index 6de8087bc8..13f1c31295 100644 --- a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ScanSkeyKvResponse.java +++ b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ScanSkeyKvResponse.java @@ -67,7 +67,7 @@ public ScanSkeyKvResponse withFilteredCount(Integer filteredCount) { } /** - * 被过滤掉的文档数量 - 长度:4 + * 被过滤掉的文档数量。 - 长度:4 * @return filteredCount */ public Integer getFilteredCount() { diff --git a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/SingleFieldExpression.java b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/SingleFieldExpression.java index 4bde56285b..36a8ea3b88 100644 --- a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/SingleFieldExpression.java +++ b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/SingleFieldExpression.java @@ -63,7 +63,7 @@ public SingleFieldExpression withFunc(String func) { } /** - * 条件函数,取值如\"$gt\", $lt\",\"$gte\", $lte\" \"$eq\", \"$ne\", \"$prefix\", \"$in\",\"$nin\", \"$exists\" + * 条件函数,取值如\"$gt\", $lt\",\"$gte\", $lte\" \"$eq\", \"$ne\", \"$prefix\", \"$exists\"。 * @return func */ public String getFunc() { @@ -80,7 +80,7 @@ public SingleFieldExpression withValue(Document value) { } /** - * value和value_array二选一。 - value条件值,适用于除\"$in\", \"$nin\"外的func - 字段名无意义,可以传空,也可以传字段名。 - $exists值为true/false > $prefix操作只适用于string和binary类型。 + * value和value_array二选一。 - value条件值,适用于除\"$in\", \"$nin\"外的func。 - 字段名无意义,可以传空,也可以传字段名。 - $exists值为true/false。 > $prefix操作只适用于string和binary类型。 * @return value */ public Document getValue() { @@ -113,7 +113,7 @@ public SingleFieldExpression withValueArray(Consumer> valueArrayS } /** - * \"value\"和\"value_array\"二选一。 - \"value_array\" 条件值列表, 值用于\"$in\", \"$nin\" + * \"value\"和\"value_array\"二选一。 - \"value_array\" 条件值列表, 值用于\"$in\", \"$nin\"。 * @return valueArray */ public List getValueArray() { diff --git a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/UpdateFields.java b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/UpdateFields.java index 9688149663..75437ce051 100644 --- a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/UpdateFields.java +++ b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/UpdateFields.java @@ -90,7 +90,7 @@ public UpdateFields withRmv(Consumer> rmvSetter) { } /** - * Get rmv + * 删除1个或多个字段。 - 数组元素为待删除字段名。 * @return rmv */ public List getRmv() { diff --git a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/UpdateKvRequest.java b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/UpdateKvRequest.java index 07b78137ad..9bfad204c1 100644 --- a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/UpdateKvRequest.java +++ b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/UpdateKvRequest.java @@ -35,7 +35,7 @@ public UpdateKvRequest withStoreName(String storeName) { } /** - * 仓名 + * 仓名,全域唯一,不同租户的仓名不能相同。 - 格式:${prefix}-${region-code}-${account-id},其中prefix为自定义前缀,region-code为kvs集群所在的区域代码,account-id为用户的账户id - 取值字符限制:[a-z0-9-]+ - 长度:[16,52] > \"-\"不能出现在名字头部或尾部 * @return storeName */ public String getStoreName() { diff --git a/services/lakeformation/pom.xml b/services/lakeformation/pom.xml index dd3fbed345..02ad85a1bf 100644 --- a/services/lakeformation/pom.xml +++ b/services/lakeformation/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-lakeformation - 3.1.99 + 3.1.100 Huawei Cloud SDK for LAKEFORMATION 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/live/pom.xml b/services/live/pom.xml index 1dd5fe2836..2e0068109d 100644 --- a/services/live/pom.xml +++ b/services/live/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-live - 3.1.99 + 3.1.100 Huawei Cloud SDK for LIVE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/lts/pom.xml b/services/lts/pom.xml index 7f531307c4..5d8bcd5c13 100644 --- a/services/lts/pom.xml +++ b/services/lts/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-lts - 3.1.99 + 3.1.100 Huawei Cloud SDK for LTS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/mapds/pom.xml b/services/mapds/pom.xml index e546ac58d6..f680b5b237 100644 --- a/services/mapds/pom.xml +++ b/services/mapds/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-mapds - 3.1.99 + 3.1.100 Huawei Cloud SDK for MAPDS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/mas/pom.xml b/services/mas/pom.xml index cc4c0a8576..a283735d13 100644 --- a/services/mas/pom.xml +++ b/services/mas/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-mas - 3.1.99 + 3.1.100 Huawei Cloud SDK for MAS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/meeting/pom.xml b/services/meeting/pom.xml index 36a73f7b74..3c0784fe4b 100644 --- a/services/meeting/pom.xml +++ b/services/meeting/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-meeting - 3.1.99 + 3.1.100 Huawei Cloud SDK for MEETING 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/metastudio/pom.xml b/services/metastudio/pom.xml index e4829144ee..51895016d3 100644 --- a/services/metastudio/pom.xml +++ b/services/metastudio/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-metastudio - 3.1.99 + 3.1.100 Huawei Cloud SDK for METASTUDIO 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/MetaStudioAsyncClient.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/MetaStudioAsyncClient.java index e272a8a53c..6d8c4230b8 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/MetaStudioAsyncClient.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/MetaStudioAsyncClient.java @@ -3,6 +3,8 @@ import com.huaweicloud.sdk.core.ClientBuilder; import com.huaweicloud.sdk.core.HcClient; import com.huaweicloud.sdk.core.invoker.AsyncInvoker; +import com.huaweicloud.sdk.metastudio.v1.model.BatchExecuteAssetActionRequest; +import com.huaweicloud.sdk.metastudio.v1.model.BatchExecuteAssetActionResponse; import com.huaweicloud.sdk.metastudio.v1.model.Cancel2DDigitalHumanVideoRequest; import com.huaweicloud.sdk.metastudio.v1.model.Cancel2DDigitalHumanVideoResponse; import com.huaweicloud.sdk.metastudio.v1.model.CancelPhotoDigitalHumanVideoRequest; @@ -23,8 +25,8 @@ import com.huaweicloud.sdk.metastudio.v1.model.CreateActiveCodeResponse; import com.huaweicloud.sdk.metastudio.v1.model.CreateAgencyWithRoleTypeRequest; import com.huaweicloud.sdk.metastudio.v1.model.CreateAgencyWithRoleTypeResponse; -import com.huaweicloud.sdk.metastudio.v1.model.CreateAssetbyReplicationInfoRequest; -import com.huaweicloud.sdk.metastudio.v1.model.CreateAssetbyReplicationInfoResponse; +import com.huaweicloud.sdk.metastudio.v1.model.CreateAssetByReplicationInfoRequest; +import com.huaweicloud.sdk.metastudio.v1.model.CreateAssetByReplicationInfoResponse; import com.huaweicloud.sdk.metastudio.v1.model.CreateBatchKnowledgeQuestionRequest; import com.huaweicloud.sdk.metastudio.v1.model.CreateBatchKnowledgeQuestionResponse; import com.huaweicloud.sdk.metastudio.v1.model.CreateDialogUrlRequest; @@ -63,6 +65,8 @@ import com.huaweicloud.sdk.metastudio.v1.model.CreatePictureModelingByUrlJobResponse; import com.huaweicloud.sdk.metastudio.v1.model.CreatePictureModelingJobRequest; import com.huaweicloud.sdk.metastudio.v1.model.CreatePictureModelingJobResponse; +import com.huaweicloud.sdk.metastudio.v1.model.CreateProductRequest; +import com.huaweicloud.sdk.metastudio.v1.model.CreateProductResponse; import com.huaweicloud.sdk.metastudio.v1.model.CreateRobotRequest; import com.huaweicloud.sdk.metastudio.v1.model.CreateRobotResponse; import com.huaweicloud.sdk.metastudio.v1.model.CreateSmartChatRoomRequest; @@ -109,6 +113,8 @@ import com.huaweicloud.sdk.metastudio.v1.model.DeleteKnowledgeQuestionResponse; import com.huaweicloud.sdk.metastudio.v1.model.DeleteKnowledgeSkillRequest; import com.huaweicloud.sdk.metastudio.v1.model.DeleteKnowledgeSkillResponse; +import com.huaweicloud.sdk.metastudio.v1.model.DeleteProductRequest; +import com.huaweicloud.sdk.metastudio.v1.model.DeleteProductResponse; import com.huaweicloud.sdk.metastudio.v1.model.DeleteRobotRequest; import com.huaweicloud.sdk.metastudio.v1.model.DeleteRobotResponse; import com.huaweicloud.sdk.metastudio.v1.model.DeleteSmartChatRoomRequest; @@ -157,6 +163,8 @@ import com.huaweicloud.sdk.metastudio.v1.model.ListKnowledgeSkillResponse; import com.huaweicloud.sdk.metastudio.v1.model.ListPictureModelingJobsRequest; import com.huaweicloud.sdk.metastudio.v1.model.ListPictureModelingJobsResponse; +import com.huaweicloud.sdk.metastudio.v1.model.ListProductsRequest; +import com.huaweicloud.sdk.metastudio.v1.model.ListProductsResponse; import com.huaweicloud.sdk.metastudio.v1.model.ListRobotRequest; import com.huaweicloud.sdk.metastudio.v1.model.ListRobotResponse; import com.huaweicloud.sdk.metastudio.v1.model.ListSmartChatRoomsRequest; @@ -187,6 +195,8 @@ import com.huaweicloud.sdk.metastudio.v1.model.ResetActiveCodeResponse; import com.huaweicloud.sdk.metastudio.v1.model.RestoreAssetRequest; import com.huaweicloud.sdk.metastudio.v1.model.RestoreAssetResponse; +import com.huaweicloud.sdk.metastudio.v1.model.SetProductAssetRequest; +import com.huaweicloud.sdk.metastudio.v1.model.SetProductAssetResponse; import com.huaweicloud.sdk.metastudio.v1.model.Show2DDigitalHumanVideoRequest; import com.huaweicloud.sdk.metastudio.v1.model.Show2DDigitalHumanVideoResponse; import com.huaweicloud.sdk.metastudio.v1.model.Show2dModelTrainingJobRequest; @@ -223,6 +233,8 @@ import com.huaweicloud.sdk.metastudio.v1.model.ShowPhotoDigitalHumanVideoResponse; import com.huaweicloud.sdk.metastudio.v1.model.ShowPictureModelingJobRequest; import com.huaweicloud.sdk.metastudio.v1.model.ShowPictureModelingJobResponse; +import com.huaweicloud.sdk.metastudio.v1.model.ShowProductRequest; +import com.huaweicloud.sdk.metastudio.v1.model.ShowProductResponse; import com.huaweicloud.sdk.metastudio.v1.model.ShowRobotRequest; import com.huaweicloud.sdk.metastudio.v1.model.ShowRobotResponse; import com.huaweicloud.sdk.metastudio.v1.model.ShowSmartChatJobRequest; @@ -281,6 +293,8 @@ import com.huaweicloud.sdk.metastudio.v1.model.UpdateKnowledgeQuestionResponse; import com.huaweicloud.sdk.metastudio.v1.model.UpdateKnowledgeSkillRequest; import com.huaweicloud.sdk.metastudio.v1.model.UpdateKnowledgeSkillResponse; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateProductRequest; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateProductResponse; import com.huaweicloud.sdk.metastudio.v1.model.UpdateRobotRequest; import com.huaweicloud.sdk.metastudio.v1.model.UpdateRobotResponse; import com.huaweicloud.sdk.metastudio.v1.model.UpdateSmartChatRoomRequest; @@ -687,6 +701,36 @@ public AsyncInvoker stopSmart return new AsyncInvoker<>(request, MetaStudioMeta.stopSmartChatJob, hcClient); } + /** + * 批量资产操作 + * + * 该接口用批量资产操作。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchExecuteAssetActionRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture batchExecuteAssetActionAsync( + BatchExecuteAssetActionRequest request) { + return hcClient.asyncInvokeHttp(request, MetaStudioMeta.batchExecuteAssetAction); + } + + /** + * 批量资产操作 + * + * 该接口用批量资产操作。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchExecuteAssetActionRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker batchExecuteAssetActionAsyncInvoker( + BatchExecuteAssetActionRequest request) { + return new AsyncInvoker<>(request, MetaStudioMeta.batchExecuteAssetAction, hcClient); + } + /** * 复制资产 * @@ -694,12 +738,12 @@ public AsyncInvoker stopSmart * * Please refer to HUAWEI cloud API Explorer for details. * - * @param request CreateAssetbyReplicationInfoRequest 请求对象 - * @return CompletableFuture + * @param request CreateAssetByReplicationInfoRequest 请求对象 + * @return CompletableFuture */ - public CompletableFuture createAssetbyReplicationInfoAsync( - CreateAssetbyReplicationInfoRequest request) { - return hcClient.asyncInvokeHttp(request, MetaStudioMeta.createAssetbyReplicationInfo); + public CompletableFuture createAssetByReplicationInfoAsync( + CreateAssetByReplicationInfoRequest request) { + return hcClient.asyncInvokeHttp(request, MetaStudioMeta.createAssetByReplicationInfo); } /** @@ -709,12 +753,12 @@ public CompletableFuture createAssetbyRepl * * Please refer to HUAWEI cloud API Explorer for details. * - * @param request CreateAssetbyReplicationInfoRequest 请求对象 - * @return AsyncInvoker + * @param request CreateAssetByReplicationInfoRequest 请求对象 + * @return AsyncInvoker */ - public AsyncInvoker createAssetbyReplicationInfoAsyncInvoker( - CreateAssetbyReplicationInfoRequest request) { - return new AsyncInvoker<>(request, MetaStudioMeta.createAssetbyReplicationInfo, hcClient); + public AsyncInvoker createAssetByReplicationInfoAsyncInvoker( + CreateAssetByReplicationInfoRequest request) { + return new AsyncInvoker<>(request, MetaStudioMeta.createAssetByReplicationInfo, hcClient); } /** @@ -2552,6 +2596,179 @@ public AsyncInvoker(request, MetaStudioMeta.showPictureModelingJob, hcClient); } + /** + * 创建商品 + * + * Create product + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateProductRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture createProductAsync(CreateProductRequest request) { + return hcClient.asyncInvokeHttp(request, MetaStudioMeta.createProduct); + } + + /** + * 创建商品 + * + * Create product + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateProductRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker createProductAsyncInvoker( + CreateProductRequest request) { + return new AsyncInvoker<>(request, MetaStudioMeta.createProduct, hcClient); + } + + /** + * 删除商品 + * + * 删除商品 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteProductRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture deleteProductAsync(DeleteProductRequest request) { + return hcClient.asyncInvokeHttp(request, MetaStudioMeta.deleteProduct); + } + + /** + * 删除商品 + * + * 删除商品 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteProductRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker deleteProductAsyncInvoker( + DeleteProductRequest request) { + return new AsyncInvoker<>(request, MetaStudioMeta.deleteProduct, hcClient); + } + + /** + * 查询商品列表 + * + * 查询商品列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListProductsRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listProductsAsync(ListProductsRequest request) { + return hcClient.asyncInvokeHttp(request, MetaStudioMeta.listProducts); + } + + /** + * 查询商品列表 + * + * 查询商品列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListProductsRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listProductsAsyncInvoker( + ListProductsRequest request) { + return new AsyncInvoker<>(request, MetaStudioMeta.listProducts, hcClient); + } + + /** + * 商品资产组合配置 + * + * 商品资产组合配置 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request SetProductAssetRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture setProductAssetAsync(SetProductAssetRequest request) { + return hcClient.asyncInvokeHttp(request, MetaStudioMeta.setProductAsset); + } + + /** + * 商品资产组合配置 + * + * 商品资产组合配置 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request SetProductAssetRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker setProductAssetAsyncInvoker( + SetProductAssetRequest request) { + return new AsyncInvoker<>(request, MetaStudioMeta.setProductAsset, hcClient); + } + + /** + * 查询商品详情 + * + * Show product + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowProductRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showProductAsync(ShowProductRequest request) { + return hcClient.asyncInvokeHttp(request, MetaStudioMeta.showProduct); + } + + /** + * 查询商品详情 + * + * Show product + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowProductRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showProductAsyncInvoker(ShowProductRequest request) { + return new AsyncInvoker<>(request, MetaStudioMeta.showProduct, hcClient); + } + + /** + * 更新商品 + * + * Update product + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateProductRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture updateProductAsync(UpdateProductRequest request) { + return hcClient.asyncInvokeHttp(request, MetaStudioMeta.updateProduct); + } + + /** + * 更新商品 + * + * Update product + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateProductRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker updateProductAsyncInvoker( + UpdateProductRequest request) { + return new AsyncInvoker<>(request, MetaStudioMeta.updateProduct, hcClient); + } + /** * 创建应用 * diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/MetaStudioClient.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/MetaStudioClient.java index 66f51cf771..630ff815ea 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/MetaStudioClient.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/MetaStudioClient.java @@ -3,6 +3,8 @@ import com.huaweicloud.sdk.core.ClientBuilder; import com.huaweicloud.sdk.core.HcClient; import com.huaweicloud.sdk.core.invoker.SyncInvoker; +import com.huaweicloud.sdk.metastudio.v1.model.BatchExecuteAssetActionRequest; +import com.huaweicloud.sdk.metastudio.v1.model.BatchExecuteAssetActionResponse; import com.huaweicloud.sdk.metastudio.v1.model.Cancel2DDigitalHumanVideoRequest; import com.huaweicloud.sdk.metastudio.v1.model.Cancel2DDigitalHumanVideoResponse; import com.huaweicloud.sdk.metastudio.v1.model.CancelPhotoDigitalHumanVideoRequest; @@ -23,8 +25,8 @@ import com.huaweicloud.sdk.metastudio.v1.model.CreateActiveCodeResponse; import com.huaweicloud.sdk.metastudio.v1.model.CreateAgencyWithRoleTypeRequest; import com.huaweicloud.sdk.metastudio.v1.model.CreateAgencyWithRoleTypeResponse; -import com.huaweicloud.sdk.metastudio.v1.model.CreateAssetbyReplicationInfoRequest; -import com.huaweicloud.sdk.metastudio.v1.model.CreateAssetbyReplicationInfoResponse; +import com.huaweicloud.sdk.metastudio.v1.model.CreateAssetByReplicationInfoRequest; +import com.huaweicloud.sdk.metastudio.v1.model.CreateAssetByReplicationInfoResponse; import com.huaweicloud.sdk.metastudio.v1.model.CreateBatchKnowledgeQuestionRequest; import com.huaweicloud.sdk.metastudio.v1.model.CreateBatchKnowledgeQuestionResponse; import com.huaweicloud.sdk.metastudio.v1.model.CreateDialogUrlRequest; @@ -63,6 +65,8 @@ import com.huaweicloud.sdk.metastudio.v1.model.CreatePictureModelingByUrlJobResponse; import com.huaweicloud.sdk.metastudio.v1.model.CreatePictureModelingJobRequest; import com.huaweicloud.sdk.metastudio.v1.model.CreatePictureModelingJobResponse; +import com.huaweicloud.sdk.metastudio.v1.model.CreateProductRequest; +import com.huaweicloud.sdk.metastudio.v1.model.CreateProductResponse; import com.huaweicloud.sdk.metastudio.v1.model.CreateRobotRequest; import com.huaweicloud.sdk.metastudio.v1.model.CreateRobotResponse; import com.huaweicloud.sdk.metastudio.v1.model.CreateSmartChatRoomRequest; @@ -109,6 +113,8 @@ import com.huaweicloud.sdk.metastudio.v1.model.DeleteKnowledgeQuestionResponse; import com.huaweicloud.sdk.metastudio.v1.model.DeleteKnowledgeSkillRequest; import com.huaweicloud.sdk.metastudio.v1.model.DeleteKnowledgeSkillResponse; +import com.huaweicloud.sdk.metastudio.v1.model.DeleteProductRequest; +import com.huaweicloud.sdk.metastudio.v1.model.DeleteProductResponse; import com.huaweicloud.sdk.metastudio.v1.model.DeleteRobotRequest; import com.huaweicloud.sdk.metastudio.v1.model.DeleteRobotResponse; import com.huaweicloud.sdk.metastudio.v1.model.DeleteSmartChatRoomRequest; @@ -157,6 +163,8 @@ import com.huaweicloud.sdk.metastudio.v1.model.ListKnowledgeSkillResponse; import com.huaweicloud.sdk.metastudio.v1.model.ListPictureModelingJobsRequest; import com.huaweicloud.sdk.metastudio.v1.model.ListPictureModelingJobsResponse; +import com.huaweicloud.sdk.metastudio.v1.model.ListProductsRequest; +import com.huaweicloud.sdk.metastudio.v1.model.ListProductsResponse; import com.huaweicloud.sdk.metastudio.v1.model.ListRobotRequest; import com.huaweicloud.sdk.metastudio.v1.model.ListRobotResponse; import com.huaweicloud.sdk.metastudio.v1.model.ListSmartChatRoomsRequest; @@ -187,6 +195,8 @@ import com.huaweicloud.sdk.metastudio.v1.model.ResetActiveCodeResponse; import com.huaweicloud.sdk.metastudio.v1.model.RestoreAssetRequest; import com.huaweicloud.sdk.metastudio.v1.model.RestoreAssetResponse; +import com.huaweicloud.sdk.metastudio.v1.model.SetProductAssetRequest; +import com.huaweicloud.sdk.metastudio.v1.model.SetProductAssetResponse; import com.huaweicloud.sdk.metastudio.v1.model.Show2DDigitalHumanVideoRequest; import com.huaweicloud.sdk.metastudio.v1.model.Show2DDigitalHumanVideoResponse; import com.huaweicloud.sdk.metastudio.v1.model.Show2dModelTrainingJobRequest; @@ -223,6 +233,8 @@ import com.huaweicloud.sdk.metastudio.v1.model.ShowPhotoDigitalHumanVideoResponse; import com.huaweicloud.sdk.metastudio.v1.model.ShowPictureModelingJobRequest; import com.huaweicloud.sdk.metastudio.v1.model.ShowPictureModelingJobResponse; +import com.huaweicloud.sdk.metastudio.v1.model.ShowProductRequest; +import com.huaweicloud.sdk.metastudio.v1.model.ShowProductResponse; import com.huaweicloud.sdk.metastudio.v1.model.ShowRobotRequest; import com.huaweicloud.sdk.metastudio.v1.model.ShowRobotResponse; import com.huaweicloud.sdk.metastudio.v1.model.ShowSmartChatJobRequest; @@ -281,6 +293,8 @@ import com.huaweicloud.sdk.metastudio.v1.model.UpdateKnowledgeQuestionResponse; import com.huaweicloud.sdk.metastudio.v1.model.UpdateKnowledgeSkillRequest; import com.huaweicloud.sdk.metastudio.v1.model.UpdateKnowledgeSkillResponse; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateProductRequest; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateProductResponse; import com.huaweicloud.sdk.metastudio.v1.model.UpdateRobotRequest; import com.huaweicloud.sdk.metastudio.v1.model.UpdateRobotResponse; import com.huaweicloud.sdk.metastudio.v1.model.UpdateSmartChatRoomRequest; @@ -683,6 +697,35 @@ public SyncInvoker stopSmartC return new SyncInvoker<>(request, MetaStudioMeta.stopSmartChatJob, hcClient); } + /** + * 批量资产操作 + * + * 该接口用批量资产操作。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchExecuteAssetActionRequest 请求对象 + * @return BatchExecuteAssetActionResponse + */ + public BatchExecuteAssetActionResponse batchExecuteAssetAction(BatchExecuteAssetActionRequest request) { + return hcClient.syncInvokeHttp(request, MetaStudioMeta.batchExecuteAssetAction); + } + + /** + * 批量资产操作 + * + * 该接口用批量资产操作。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchExecuteAssetActionRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker batchExecuteAssetActionInvoker( + BatchExecuteAssetActionRequest request) { + return new SyncInvoker<>(request, MetaStudioMeta.batchExecuteAssetAction, hcClient); + } + /** * 复制资产 * @@ -690,12 +733,12 @@ public SyncInvoker stopSmartC * * Please refer to HUAWEI cloud API Explorer for details. * - * @param request CreateAssetbyReplicationInfoRequest 请求对象 - * @return CreateAssetbyReplicationInfoResponse + * @param request CreateAssetByReplicationInfoRequest 请求对象 + * @return CreateAssetByReplicationInfoResponse */ - public CreateAssetbyReplicationInfoResponse createAssetbyReplicationInfo( - CreateAssetbyReplicationInfoRequest request) { - return hcClient.syncInvokeHttp(request, MetaStudioMeta.createAssetbyReplicationInfo); + public CreateAssetByReplicationInfoResponse createAssetByReplicationInfo( + CreateAssetByReplicationInfoRequest request) { + return hcClient.syncInvokeHttp(request, MetaStudioMeta.createAssetByReplicationInfo); } /** @@ -705,12 +748,12 @@ public CreateAssetbyReplicationInfoResponse createAssetbyReplicationInfo( * * Please refer to HUAWEI cloud API Explorer for details. * - * @param request CreateAssetbyReplicationInfoRequest 请求对象 - * @return SyncInvoker + * @param request CreateAssetByReplicationInfoRequest 请求对象 + * @return SyncInvoker */ - public SyncInvoker createAssetbyReplicationInfoInvoker( - CreateAssetbyReplicationInfoRequest request) { - return new SyncInvoker<>(request, MetaStudioMeta.createAssetbyReplicationInfo, hcClient); + public SyncInvoker createAssetByReplicationInfoInvoker( + CreateAssetByReplicationInfoRequest request) { + return new SyncInvoker<>(request, MetaStudioMeta.createAssetByReplicationInfo, hcClient); } /** @@ -2521,6 +2564,175 @@ public SyncInvoker(request, MetaStudioMeta.showPictureModelingJob, hcClient); } + /** + * 创建商品 + * + * Create product + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateProductRequest 请求对象 + * @return CreateProductResponse + */ + public CreateProductResponse createProduct(CreateProductRequest request) { + return hcClient.syncInvokeHttp(request, MetaStudioMeta.createProduct); + } + + /** + * 创建商品 + * + * Create product + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateProductRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker createProductInvoker(CreateProductRequest request) { + return new SyncInvoker<>(request, MetaStudioMeta.createProduct, hcClient); + } + + /** + * 删除商品 + * + * 删除商品 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteProductRequest 请求对象 + * @return DeleteProductResponse + */ + public DeleteProductResponse deleteProduct(DeleteProductRequest request) { + return hcClient.syncInvokeHttp(request, MetaStudioMeta.deleteProduct); + } + + /** + * 删除商品 + * + * 删除商品 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteProductRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker deleteProductInvoker(DeleteProductRequest request) { + return new SyncInvoker<>(request, MetaStudioMeta.deleteProduct, hcClient); + } + + /** + * 查询商品列表 + * + * 查询商品列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListProductsRequest 请求对象 + * @return ListProductsResponse + */ + public ListProductsResponse listProducts(ListProductsRequest request) { + return hcClient.syncInvokeHttp(request, MetaStudioMeta.listProducts); + } + + /** + * 查询商品列表 + * + * 查询商品列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListProductsRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listProductsInvoker(ListProductsRequest request) { + return new SyncInvoker<>(request, MetaStudioMeta.listProducts, hcClient); + } + + /** + * 商品资产组合配置 + * + * 商品资产组合配置 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request SetProductAssetRequest 请求对象 + * @return SetProductAssetResponse + */ + public SetProductAssetResponse setProductAsset(SetProductAssetRequest request) { + return hcClient.syncInvokeHttp(request, MetaStudioMeta.setProductAsset); + } + + /** + * 商品资产组合配置 + * + * 商品资产组合配置 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request SetProductAssetRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker setProductAssetInvoker( + SetProductAssetRequest request) { + return new SyncInvoker<>(request, MetaStudioMeta.setProductAsset, hcClient); + } + + /** + * 查询商品详情 + * + * Show product + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowProductRequest 请求对象 + * @return ShowProductResponse + */ + public ShowProductResponse showProduct(ShowProductRequest request) { + return hcClient.syncInvokeHttp(request, MetaStudioMeta.showProduct); + } + + /** + * 查询商品详情 + * + * Show product + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowProductRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showProductInvoker(ShowProductRequest request) { + return new SyncInvoker<>(request, MetaStudioMeta.showProduct, hcClient); + } + + /** + * 更新商品 + * + * Update product + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateProductRequest 请求对象 + * @return UpdateProductResponse + */ + public UpdateProductResponse updateProduct(UpdateProductRequest request) { + return hcClient.syncInvokeHttp(request, MetaStudioMeta.updateProduct); + } + + /** + * 更新商品 + * + * Update product + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateProductRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker updateProductInvoker(UpdateProductRequest request) { + return new SyncInvoker<>(request, MetaStudioMeta.updateProduct, hcClient); + } + /** * 创建应用 * diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/MetaStudioMeta.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/MetaStudioMeta.java index 2095c6dbf5..70682d58a1 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/MetaStudioMeta.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/MetaStudioMeta.java @@ -5,6 +5,9 @@ import com.huaweicloud.sdk.core.http.HttpMethod; import com.huaweicloud.sdk.core.http.HttpRequestDef; import com.huaweicloud.sdk.core.http.LocationType; +import com.huaweicloud.sdk.metastudio.v1.model.BatchAssetActionReq; +import com.huaweicloud.sdk.metastudio.v1.model.BatchExecuteAssetActionRequest; +import com.huaweicloud.sdk.metastudio.v1.model.BatchExecuteAssetActionResponse; import com.huaweicloud.sdk.metastudio.v1.model.Cancel2DDigitalHumanVideoRequest; import com.huaweicloud.sdk.metastudio.v1.model.Cancel2DDigitalHumanVideoResponse; import com.huaweicloud.sdk.metastudio.v1.model.CancelPhotoDigitalHumanVideoRequest; @@ -32,8 +35,8 @@ import com.huaweicloud.sdk.metastudio.v1.model.CreateActiveCodeResponse; import com.huaweicloud.sdk.metastudio.v1.model.CreateAgencyWithRoleTypeRequest; import com.huaweicloud.sdk.metastudio.v1.model.CreateAgencyWithRoleTypeResponse; -import com.huaweicloud.sdk.metastudio.v1.model.CreateAssetbyReplicationInfoRequest; -import com.huaweicloud.sdk.metastudio.v1.model.CreateAssetbyReplicationInfoResponse; +import com.huaweicloud.sdk.metastudio.v1.model.CreateAssetByReplicationInfoRequest; +import com.huaweicloud.sdk.metastudio.v1.model.CreateAssetByReplicationInfoResponse; import com.huaweicloud.sdk.metastudio.v1.model.CreateBatchKnowledgeQuestionReq; import com.huaweicloud.sdk.metastudio.v1.model.CreateBatchKnowledgeQuestionRequest; import com.huaweicloud.sdk.metastudio.v1.model.CreateBatchKnowledgeQuestionResponse; @@ -86,6 +89,9 @@ import com.huaweicloud.sdk.metastudio.v1.model.CreatePictureModelingJobRequest; import com.huaweicloud.sdk.metastudio.v1.model.CreatePictureModelingJobRequestBody; import com.huaweicloud.sdk.metastudio.v1.model.CreatePictureModelingJobResponse; +import com.huaweicloud.sdk.metastudio.v1.model.CreateProductRequest; +import com.huaweicloud.sdk.metastudio.v1.model.CreateProductRequestBody; +import com.huaweicloud.sdk.metastudio.v1.model.CreateProductResponse; import com.huaweicloud.sdk.metastudio.v1.model.CreateRobotReq; import com.huaweicloud.sdk.metastudio.v1.model.CreateRobotRequest; import com.huaweicloud.sdk.metastudio.v1.model.CreateRobotResponse; @@ -140,6 +146,8 @@ import com.huaweicloud.sdk.metastudio.v1.model.DeleteKnowledgeQuestionResponse; import com.huaweicloud.sdk.metastudio.v1.model.DeleteKnowledgeSkillRequest; import com.huaweicloud.sdk.metastudio.v1.model.DeleteKnowledgeSkillResponse; +import com.huaweicloud.sdk.metastudio.v1.model.DeleteProductRequest; +import com.huaweicloud.sdk.metastudio.v1.model.DeleteProductResponse; import com.huaweicloud.sdk.metastudio.v1.model.DeleteRobotRequest; import com.huaweicloud.sdk.metastudio.v1.model.DeleteRobotResponse; import com.huaweicloud.sdk.metastudio.v1.model.DeleteSmartChatRoomRequest; @@ -193,6 +201,8 @@ import com.huaweicloud.sdk.metastudio.v1.model.ListKnowledgeSkillResponse; import com.huaweicloud.sdk.metastudio.v1.model.ListPictureModelingJobsRequest; import com.huaweicloud.sdk.metastudio.v1.model.ListPictureModelingJobsResponse; +import com.huaweicloud.sdk.metastudio.v1.model.ListProductsRequest; +import com.huaweicloud.sdk.metastudio.v1.model.ListProductsResponse; import com.huaweicloud.sdk.metastudio.v1.model.ListRobotRequest; import com.huaweicloud.sdk.metastudio.v1.model.ListRobotResponse; import com.huaweicloud.sdk.metastudio.v1.model.ListSmartChatRoomsRequest; @@ -220,12 +230,15 @@ import com.huaweicloud.sdk.metastudio.v1.model.LiveEventReportRequest; import com.huaweicloud.sdk.metastudio.v1.model.LiveEventReportResponse; import com.huaweicloud.sdk.metastudio.v1.model.PictureModelingByUrlReq; +import com.huaweicloud.sdk.metastudio.v1.model.ProductAssetReleation; import com.huaweicloud.sdk.metastudio.v1.model.ReplicationAssetInfo; import com.huaweicloud.sdk.metastudio.v1.model.ReportLiveEventReq; import com.huaweicloud.sdk.metastudio.v1.model.ResetActiveCodeRequest; import com.huaweicloud.sdk.metastudio.v1.model.ResetActiveCodeResponse; import com.huaweicloud.sdk.metastudio.v1.model.RestoreAssetRequest; import com.huaweicloud.sdk.metastudio.v1.model.RestoreAssetResponse; +import com.huaweicloud.sdk.metastudio.v1.model.SetProductAssetRequest; +import com.huaweicloud.sdk.metastudio.v1.model.SetProductAssetResponse; import com.huaweicloud.sdk.metastudio.v1.model.Show2DDigitalHumanVideoRequest; import com.huaweicloud.sdk.metastudio.v1.model.Show2DDigitalHumanVideoResponse; import com.huaweicloud.sdk.metastudio.v1.model.Show2dModelTrainingJobRequest; @@ -262,6 +275,8 @@ import com.huaweicloud.sdk.metastudio.v1.model.ShowPhotoDigitalHumanVideoResponse; import com.huaweicloud.sdk.metastudio.v1.model.ShowPictureModelingJobRequest; import com.huaweicloud.sdk.metastudio.v1.model.ShowPictureModelingJobResponse; +import com.huaweicloud.sdk.metastudio.v1.model.ShowProductRequest; +import com.huaweicloud.sdk.metastudio.v1.model.ShowProductResponse; import com.huaweicloud.sdk.metastudio.v1.model.ShowRobotRequest; import com.huaweicloud.sdk.metastudio.v1.model.ShowRobotResponse; import com.huaweicloud.sdk.metastudio.v1.model.ShowSmartChatJobRequest; @@ -331,6 +346,9 @@ import com.huaweicloud.sdk.metastudio.v1.model.UpdateKnowledgeSkillReq; import com.huaweicloud.sdk.metastudio.v1.model.UpdateKnowledgeSkillRequest; import com.huaweicloud.sdk.metastudio.v1.model.UpdateKnowledgeSkillResponse; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateProductRequest; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateProductRequestBody; +import com.huaweicloud.sdk.metastudio.v1.model.UpdateProductResponse; import com.huaweicloud.sdk.metastudio.v1.model.UpdateRobotReq; import com.huaweicloud.sdk.metastudio.v1.model.UpdateRobotRequest; import com.huaweicloud.sdk.metastudio.v1.model.UpdateRobotResponse; @@ -963,17 +981,64 @@ private static HttpRequestDef return builder.build(); } - public static final HttpRequestDef createAssetbyReplicationInfo = - genForCreateAssetbyReplicationInfo(); + public static final HttpRequestDef batchExecuteAssetAction = + genForBatchExecuteAssetAction(); - private static HttpRequestDef genForCreateAssetbyReplicationInfo() { + private static HttpRequestDef genForBatchExecuteAssetAction() { // basic - HttpRequestDef.Builder builder = + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.POST, BatchExecuteAssetActionRequest.class, BatchExecuteAssetActionResponse.class) + .withName("BatchExecuteAssetAction") + .withUri("/v1/{project_id}/digital-assets/batch-action") + .withContentType("application/json"); + + // requests + builder.withRequestField("Authorization", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(BatchExecuteAssetActionRequest::getAuthorization, + BatchExecuteAssetActionRequest::setAuthorization)); + builder.withRequestField("X-Sdk-Date", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(BatchExecuteAssetActionRequest::getXSdkDate, + BatchExecuteAssetActionRequest::setXSdkDate)); + builder.withRequestField("X-App-UserId", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(BatchExecuteAssetActionRequest::getXAppUserId, + BatchExecuteAssetActionRequest::setXAppUserId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(BatchAssetActionReq.class), + f -> f.withMarshaller(BatchExecuteAssetActionRequest::getBody, BatchExecuteAssetActionRequest::setBody)); + + // response + + builder.withResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(BatchExecuteAssetActionResponse::getXRequestId, + BatchExecuteAssetActionResponse::setXRequestId)); + return builder.build(); + } + + public static final HttpRequestDef createAssetByReplicationInfo = + genForCreateAssetByReplicationInfo(); + + private static HttpRequestDef genForCreateAssetByReplicationInfo() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef .builder(HttpMethod.POST, - CreateAssetbyReplicationInfoRequest.class, - CreateAssetbyReplicationInfoResponse.class) - .withName("CreateAssetbyReplicationInfo") + CreateAssetByReplicationInfoRequest.class, + CreateAssetByReplicationInfoResponse.class) + .withName("CreateAssetByReplicationInfo") .withUri("/v1/{project_id}/digital-assets-by-replication-info") .withContentType("application/json"); @@ -982,26 +1047,26 @@ private static HttpRequestDef f.withMarshaller(CreateAssetbyReplicationInfoRequest::getAuthorization, - CreateAssetbyReplicationInfoRequest::setAuthorization)); + f -> f.withMarshaller(CreateAssetByReplicationInfoRequest::getAuthorization, + CreateAssetByReplicationInfoRequest::setAuthorization)); builder.withRequestField("X-Sdk-Date", LocationType.Header, FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(CreateAssetbyReplicationInfoRequest::getXSdkDate, - CreateAssetbyReplicationInfoRequest::setXSdkDate)); + f -> f.withMarshaller(CreateAssetByReplicationInfoRequest::getXSdkDate, + CreateAssetByReplicationInfoRequest::setXSdkDate)); builder.withRequestField("X-App-UserId", LocationType.Header, FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(CreateAssetbyReplicationInfoRequest::getXAppUserId, - CreateAssetbyReplicationInfoRequest::setXAppUserId)); + f -> f.withMarshaller(CreateAssetByReplicationInfoRequest::getXAppUserId, + CreateAssetByReplicationInfoRequest::setXAppUserId)); builder.withRequestField("body", LocationType.Body, FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(ReplicationAssetInfo.class), - f -> f.withMarshaller(CreateAssetbyReplicationInfoRequest::getBody, - CreateAssetbyReplicationInfoRequest::setBody)); + f -> f.withMarshaller(CreateAssetByReplicationInfoRequest::getBody, + CreateAssetByReplicationInfoRequest::setBody)); // response @@ -1009,8 +1074,8 @@ private static HttpRequestDef f.withMarshaller(CreateAssetbyReplicationInfoResponse::getXRequestId, - CreateAssetbyReplicationInfoResponse::setXRequestId)); + f -> f.withMarshaller(CreateAssetByReplicationInfoResponse::getXRequestId, + CreateAssetByReplicationInfoResponse::setXRequestId)); return builder.build(); } @@ -1042,6 +1107,12 @@ private static HttpRequestDef f.withMarshaller(CreateDigitalAssetRequest::getXAppUserId, CreateDigitalAssetRequest::setXAppUserId)); + builder.withRequestField("X-MSS-Authorization", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateDigitalAssetRequest::getXMSSAuthorization, + CreateDigitalAssetRequest::setXMSSAuthorization)); builder.withRequestField("body", LocationType.Body, FieldExistence.NON_NULL_NON_EMPTY, @@ -1221,6 +1292,11 @@ private static HttpRequestDef genForListA FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(String.class), f -> f.withMarshaller(ListAssetsRequest::getRenderEngine, ListAssetsRequest::setRenderEngine)); + builder.>withRequestField("asset_id", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(List.class), + f -> f.withMarshaller(ListAssetsRequest::getAssetId, ListAssetsRequest::setAssetId)); builder.withRequestField("sex", LocationType.Query, FieldExistence.NULL_IGNORE, @@ -1256,6 +1332,27 @@ private static HttpRequestDef genForListA FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(ListAssetsRequest.RoleEnum.class), f -> f.withMarshaller(ListAssetsRequest::getRole, ListAssetsRequest::setRole)); + builder.withRequestField("is_realtime_voice", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Boolean.class), + f -> f.withMarshaller(ListAssetsRequest::getIsRealtimeVoice, ListAssetsRequest::setIsRealtimeVoice)); + builder.withRequestField("human_model_2d_version", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListAssetsRequest::getHumanModel2dVersion, + ListAssetsRequest::setHumanModel2dVersion)); + builder.withRequestField("include_device_name", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListAssetsRequest::getIncludeDeviceName, ListAssetsRequest::setIncludeDeviceName)); + builder.withRequestField("exclude_device_name", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListAssetsRequest::getExcludeDeviceName, ListAssetsRequest::setExcludeDeviceName)); builder.withRequestField("Authorization", LocationType.Header, FieldExistence.NULL_IGNORE, @@ -4514,6 +4611,342 @@ private static HttpRequestDef createProduct = + genForCreateProduct(); + + private static HttpRequestDef genForCreateProduct() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, CreateProductRequest.class, CreateProductResponse.class) + .withName("CreateProduct") + .withUri("/v1/{project_id}/products") + .withContentType("application/json"); + + // requests + builder.withRequestField("Authorization", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateProductRequest::getAuthorization, CreateProductRequest::setAuthorization)); + builder.withRequestField("X-Sdk-Date", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateProductRequest::getXSdkDate, CreateProductRequest::setXSdkDate)); + builder.withRequestField("X-Project-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateProductRequest::getXProjectId, CreateProductRequest::setXProjectId)); + builder.withRequestField("X-App-UserId", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateProductRequest::getXAppUserId, CreateProductRequest::setXAppUserId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(CreateProductRequestBody.class), + f -> f.withMarshaller(CreateProductRequest::getBody, CreateProductRequest::setBody)); + + // response + + builder.withResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(CreateProductResponse::getXRequestId, CreateProductResponse::setXRequestId)); + return builder.build(); + } + + public static final HttpRequestDef deleteProduct = + genForDeleteProduct(); + + private static HttpRequestDef genForDeleteProduct() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.DELETE, DeleteProductRequest.class, DeleteProductResponse.class) + .withName("DeleteProduct") + .withUri("/v1/{project_id}/products/{product_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("product_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteProductRequest::getProductId, DeleteProductRequest::setProductId)); + builder.withRequestField("Authorization", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteProductRequest::getAuthorization, DeleteProductRequest::setAuthorization)); + builder.withRequestField("X-Sdk-Date", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteProductRequest::getXSdkDate, DeleteProductRequest::setXSdkDate)); + builder.withRequestField("X-Project-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteProductRequest::getXProjectId, DeleteProductRequest::setXProjectId)); + builder.withRequestField("X-App-UserId", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteProductRequest::getXAppUserId, DeleteProductRequest::setXAppUserId)); + + // response + + builder.withResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(DeleteProductResponse::getXRequestId, DeleteProductResponse::setXRequestId)); + return builder.build(); + } + + public static final HttpRequestDef listProducts = genForListProducts(); + + private static HttpRequestDef genForListProducts() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ListProductsRequest.class, ListProductsResponse.class) + .withName("ListProducts") + .withUri("/v1/{project_id}/products") + .withContentType("application/json"); + + // requests + builder.withRequestField("offset", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListProductsRequest::getOffset, ListProductsRequest::setOffset)); + builder.withRequestField("limit", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListProductsRequest::getLimit, ListProductsRequest::setLimit)); + builder.withRequestField("sort_key", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListProductsRequest::getSortKey, ListProductsRequest::setSortKey)); + builder.withRequestField("sort_dir", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListProductsRequest::getSortDir, ListProductsRequest::setSortDir)); + builder.withRequestField("create_until", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListProductsRequest::getCreateUntil, ListProductsRequest::setCreateUntil)); + builder.withRequestField("create_since", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListProductsRequest::getCreateSince, ListProductsRequest::setCreateSince)); + builder.withRequestField("name", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListProductsRequest::getName, ListProductsRequest::setName)); + builder.withRequestField("tag", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListProductsRequest::getTag, ListProductsRequest::setTag)); + builder.withRequestField("state", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListProductsRequest::getState, ListProductsRequest::setState)); + builder.withRequestField("Authorization", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListProductsRequest::getAuthorization, ListProductsRequest::setAuthorization)); + builder.withRequestField("X-Sdk-Date", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListProductsRequest::getXSdkDate, ListProductsRequest::setXSdkDate)); + builder.withRequestField("X-Project-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListProductsRequest::getXProjectId, ListProductsRequest::setXProjectId)); + builder.withRequestField("X-App-UserId", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListProductsRequest::getXAppUserId, ListProductsRequest::setXAppUserId)); + + // response + + builder.withResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(ListProductsResponse::getXRequestId, ListProductsResponse::setXRequestId)); + return builder.build(); + } + + public static final HttpRequestDef setProductAsset = + genForSetProductAsset(); + + private static HttpRequestDef genForSetProductAsset() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, SetProductAssetRequest.class, SetProductAssetResponse.class) + .withName("SetProductAsset") + .withUri("/v1/{project_id}/products/{product_id}/assets") + .withContentType("application/json"); + + // requests + builder.withRequestField("product_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(SetProductAssetRequest::getProductId, SetProductAssetRequest::setProductId)); + builder.withRequestField("Authorization", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(SetProductAssetRequest::getAuthorization, SetProductAssetRequest::setAuthorization)); + builder.withRequestField("X-Sdk-Date", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(SetProductAssetRequest::getXSdkDate, SetProductAssetRequest::setXSdkDate)); + builder.withRequestField("X-Project-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(SetProductAssetRequest::getXProjectId, SetProductAssetRequest::setXProjectId)); + builder.withRequestField("X-App-UserId", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(SetProductAssetRequest::getXAppUserId, SetProductAssetRequest::setXAppUserId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(ProductAssetReleation.class), + f -> f.withMarshaller(SetProductAssetRequest::getBody, SetProductAssetRequest::setBody)); + + // response + + builder.withResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(SetProductAssetResponse::getXRequestId, SetProductAssetResponse::setXRequestId)); + return builder.build(); + } + + public static final HttpRequestDef showProduct = genForShowProduct(); + + private static HttpRequestDef genForShowProduct() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ShowProductRequest.class, ShowProductResponse.class) + .withName("ShowProduct") + .withUri("/v1/{project_id}/products/{product_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("product_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowProductRequest::getProductId, ShowProductRequest::setProductId)); + builder.withRequestField("Authorization", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowProductRequest::getAuthorization, ShowProductRequest::setAuthorization)); + builder.withRequestField("X-Sdk-Date", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowProductRequest::getXSdkDate, ShowProductRequest::setXSdkDate)); + builder.withRequestField("X-Project-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowProductRequest::getXProjectId, ShowProductRequest::setXProjectId)); + builder.withRequestField("X-App-UserId", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowProductRequest::getXAppUserId, ShowProductRequest::setXAppUserId)); + + // response + + builder.withResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(ShowProductResponse::getXRequestId, ShowProductResponse::setXRequestId)); + return builder.build(); + } + + public static final HttpRequestDef updateProduct = + genForUpdateProduct(); + + private static HttpRequestDef genForUpdateProduct() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.PUT, UpdateProductRequest.class, UpdateProductResponse.class) + .withName("UpdateProduct") + .withUri("/v1/{project_id}/products/{product_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("product_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateProductRequest::getProductId, UpdateProductRequest::setProductId)); + builder.withRequestField("Authorization", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateProductRequest::getAuthorization, UpdateProductRequest::setAuthorization)); + builder.withRequestField("X-Sdk-Date", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateProductRequest::getXSdkDate, UpdateProductRequest::setXSdkDate)); + builder.withRequestField("X-Project-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateProductRequest::getXProjectId, UpdateProductRequest::setXProjectId)); + builder.withRequestField("X-App-UserId", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateProductRequest::getXAppUserId, UpdateProductRequest::setXAppUserId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(UpdateProductRequestBody.class), + f -> f.withMarshaller(UpdateProductRequest::getBody, UpdateProductRequest::setBody)); + + // response + + builder.withResponseField("X-Request-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(UpdateProductResponse::getXRequestId, UpdateProductResponse::setXRequestId)); + return builder.build(); + } + public static final HttpRequestDef createRobot = genForCreateRobot(); private static HttpRequestDef genForCreateRobot() { diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/AssetActionResult.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/AssetActionResult.java new file mode 100644 index 0000000000..2c0dbd9259 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/AssetActionResult.java @@ -0,0 +1,222 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 资产操作结果 + */ +public class AssetActionResult { + + /** + * 处理状态。 * SUCCESS:成功 * FAILED:失败 + */ + public static final class RetStatusEnum { + + /** + * Enum SUCCESS for value: "SUCCESS" + */ + public static final RetStatusEnum SUCCESS = new RetStatusEnum("SUCCESS"); + + /** + * Enum FAILED for value: "FAILED" + */ + public static final RetStatusEnum FAILED = new RetStatusEnum("FAILED"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("SUCCESS", SUCCESS); + map.put("FAILED", FAILED); + return Collections.unmodifiableMap(map); + } + + private String value; + + RetStatusEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static RetStatusEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new RetStatusEnum(value)); + } + + public static RetStatusEnum valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof RetStatusEnum) { + return this.value.equals(((RetStatusEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ret_status") + + private RetStatusEnum retStatus; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "asset_ids") + + private List assetIds = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "error_info") + + private ErrorResponse errorInfo; + + public AssetActionResult withRetStatus(RetStatusEnum retStatus) { + this.retStatus = retStatus; + return this; + } + + /** + * 处理状态。 * SUCCESS:成功 * FAILED:失败 + * @return retStatus + */ + public RetStatusEnum getRetStatus() { + return retStatus; + } + + public void setRetStatus(RetStatusEnum retStatus) { + this.retStatus = retStatus; + } + + public AssetActionResult withAssetIds(List assetIds) { + this.assetIds = assetIds; + return this; + } + + public AssetActionResult addAssetIdsItem(String assetIdsItem) { + if (this.assetIds == null) { + this.assetIds = new ArrayList<>(); + } + this.assetIds.add(assetIdsItem); + return this; + } + + public AssetActionResult withAssetIds(Consumer> assetIdsSetter) { + if (this.assetIds == null) { + this.assetIds = new ArrayList<>(); + } + assetIdsSetter.accept(this.assetIds); + return this; + } + + /** + * 资产ID列表 + * @return assetIds + */ + public List getAssetIds() { + return assetIds; + } + + public void setAssetIds(List assetIds) { + this.assetIds = assetIds; + } + + public AssetActionResult withErrorInfo(ErrorResponse errorInfo) { + this.errorInfo = errorInfo; + return this; + } + + public AssetActionResult withErrorInfo(Consumer errorInfoSetter) { + if (this.errorInfo == null) { + this.errorInfo = new ErrorResponse(); + errorInfoSetter.accept(this.errorInfo); + } + + return this; + } + + /** + * Get errorInfo + * @return errorInfo + */ + public ErrorResponse getErrorInfo() { + return errorInfo; + } + + public void setErrorInfo(ErrorResponse errorInfo) { + this.errorInfo = errorInfo; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + AssetActionResult that = (AssetActionResult) obj; + return Objects.equals(this.retStatus, that.retStatus) && Objects.equals(this.assetIds, that.assetIds) + && Objects.equals(this.errorInfo, that.errorInfo); + } + + @Override + public int hashCode() { + return Objects.hash(retStatus, assetIds, errorInfo); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AssetActionResult {\n"); + sb.append(" retStatus: ").append(toIndentedString(retStatus)).append("\n"); + sb.append(" assetIds: ").append(toIndentedString(assetIds)).append("\n"); + sb.append(" errorInfo: ").append(toIndentedString(errorInfo)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/AssetFileInfo.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/AssetFileInfo.java index 0b74e06c8c..699308e4ac 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/AssetFileInfo.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/AssetFileInfo.java @@ -51,7 +51,7 @@ public class AssetFileInfo { private String downloadUrl; /** - * 文件状态枚举: * CREATING:文件上传中 * CREATED:文件已上传(自动审核通过) * FAILED:文件上传失败 * CANCELLED:文件上传已取消 * DELETING:文件删除中 * DELETED:文件已删除 * UPLOADED:文件已上传(尚未审核) * REVIEW:人工审核(文件已上传) + * 文件状态枚举: * CREATING:文件上传中 * CREATED:文件已上传(自动审核通过) * FAILED:文件上传失败 * CANCELLED:文件上传已取消 * DELETING:文件删除中 * DELETED:文件已删除 * UPLOADED:文件已上传(尚未审核) * REVIEW:人工审核(文件已上传) * BLOCK:冻结 */ public static final class StateEnum { @@ -95,6 +95,11 @@ public static final class StateEnum { */ public static final StateEnum REVIEW = new StateEnum("REVIEW"); + /** + * Enum BLOCK for value: "BLOCK" + */ + public static final StateEnum BLOCK = new StateEnum("BLOCK"); + private static final Map STATIC_FIELDS = createStaticFields(); private static Map createStaticFields() { @@ -107,6 +112,7 @@ private static Map createStaticFields() { map.put("DELETED", DELETED); map.put("UPLOADED", UPLOADED); map.put("REVIEW", REVIEW); + map.put("BLOCK", BLOCK); return Collections.unmodifiableMap(map); } @@ -293,7 +299,7 @@ public AssetFileInfo withState(StateEnum state) { } /** - * 文件状态枚举: * CREATING:文件上传中 * CREATED:文件已上传(自动审核通过) * FAILED:文件上传失败 * CANCELLED:文件上传已取消 * DELETING:文件删除中 * DELETED:文件已删除 * UPLOADED:文件已上传(尚未审核) * REVIEW:人工审核(文件已上传) + * 文件状态枚举: * CREATING:文件上传中 * CREATED:文件已上传(自动审核通过) * FAILED:文件上传失败 * CANCELLED:文件上传已取消 * DELETING:文件删除中 * DELETED:文件已删除 * UPLOADED:文件已上传(尚未审核) * REVIEW:人工审核(文件已上传) * BLOCK:冻结 * @return state */ public StateEnum getState() { diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/AssetSharedConfig.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/AssetSharedConfig.java new file mode 100644 index 0000000000..4d188bfdae --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/AssetSharedConfig.java @@ -0,0 +1,219 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 共享配置 + */ +public class AssetSharedConfig { + + /** + * 共享类型。 * PRIVATE: 私有,仅本租户可访问。 * PUBLIC: 公开,所有租户可访问。当前仅提供系统资产可公开访问。 * SHARED:共享,指定租户可访问。拥有者指定租户可访问。 + */ + public static final class SharedTypeEnum { + + /** + * Enum PRIVATE for value: "PRIVATE" + */ + public static final SharedTypeEnum PRIVATE = new SharedTypeEnum("PRIVATE"); + + /** + * Enum PUBLIC for value: "PUBLIC" + */ + public static final SharedTypeEnum PUBLIC = new SharedTypeEnum("PUBLIC"); + + /** + * Enum SHARED for value: "SHARED" + */ + public static final SharedTypeEnum SHARED = new SharedTypeEnum("SHARED"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("PRIVATE", PRIVATE); + map.put("PUBLIC", PUBLIC); + map.put("SHARED", SHARED); + return Collections.unmodifiableMap(map); + } + + private String value; + + SharedTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static SharedTypeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new SharedTypeEnum(value)); + } + + public static SharedTypeEnum valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof SharedTypeEnum) { + return this.value.equals(((SharedTypeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "shared_type") + + private SharedTypeEnum sharedType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "expire_time") + + private String expireTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "allowed_project_ids") + + private List allowedProjectIds = null; + + public AssetSharedConfig withSharedType(SharedTypeEnum sharedType) { + this.sharedType = sharedType; + return this; + } + + /** + * 共享类型。 * PRIVATE: 私有,仅本租户可访问。 * PUBLIC: 公开,所有租户可访问。当前仅提供系统资产可公开访问。 * SHARED:共享,指定租户可访问。拥有者指定租户可访问。 + * @return sharedType + */ + public SharedTypeEnum getSharedType() { + return sharedType; + } + + public void setSharedType(SharedTypeEnum sharedType) { + this.sharedType = sharedType; + } + + public AssetSharedConfig withExpireTime(String expireTime) { + this.expireTime = expireTime; + return this; + } + + /** + * 共享过期时间。默认过期时间为30天,即共享当天+30的23:59:59。 + * @return expireTime + */ + public String getExpireTime() { + return expireTime; + } + + public void setExpireTime(String expireTime) { + this.expireTime = expireTime; + } + + public AssetSharedConfig withAllowedProjectIds(List allowedProjectIds) { + this.allowedProjectIds = allowedProjectIds; + return this; + } + + public AssetSharedConfig addAllowedProjectIdsItem(String allowedProjectIdsItem) { + if (this.allowedProjectIds == null) { + this.allowedProjectIds = new ArrayList<>(); + } + this.allowedProjectIds.add(allowedProjectIdsItem); + return this; + } + + public AssetSharedConfig withAllowedProjectIds(Consumer> allowedProjectIdsSetter) { + if (this.allowedProjectIds == null) { + this.allowedProjectIds = new ArrayList<>(); + } + allowedProjectIdsSetter.accept(this.allowedProjectIds); + return this; + } + + /** + * 允许访问本资产的租户列表。 + * @return allowedProjectIds + */ + public List getAllowedProjectIds() { + return allowedProjectIds; + } + + public void setAllowedProjectIds(List allowedProjectIds) { + this.allowedProjectIds = allowedProjectIds; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + AssetSharedConfig that = (AssetSharedConfig) obj; + return Objects.equals(this.sharedType, that.sharedType) && Objects.equals(this.expireTime, that.expireTime) + && Objects.equals(this.allowedProjectIds, that.allowedProjectIds); + } + + @Override + public int hashCode() { + return Objects.hash(sharedType, expireTime, allowedProjectIds); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AssetSharedConfig {\n"); + sb.append(" sharedType: ").append(toIndentedString(sharedType)).append("\n"); + sb.append(" expireTime: ").append(toIndentedString(expireTime)).append("\n"); + sb.append(" allowedProjectIds: ").append(toIndentedString(allowedProjectIds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/BatchAssetActionReq.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/BatchAssetActionReq.java new file mode 100644 index 0000000000..8fb6ecad50 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/BatchAssetActionReq.java @@ -0,0 +1,243 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 批量操作请求体 + */ +public class BatchAssetActionReq { + + /** + * 批量操作命令. * DELETE:删除 * DELETE_FORCE:强制删除,该模式会立即删除资产 * RESTORE:恢复 * UNACTIVE:取消激活 * ACTIVE:激活 * SHARE:共享 * UNSHARE:取消共享 + */ + public static final class ActionEnum { + + /** + * Enum DELETE for value: "DELETE" + */ + public static final ActionEnum DELETE = new ActionEnum("DELETE"); + + /** + * Enum DELETE_FORCE for value: "DELETE_FORCE" + */ + public static final ActionEnum DELETE_FORCE = new ActionEnum("DELETE_FORCE"); + + /** + * Enum RESTORE for value: "RESTORE" + */ + public static final ActionEnum RESTORE = new ActionEnum("RESTORE"); + + /** + * Enum UNACTIVE for value: "UNACTIVE" + */ + public static final ActionEnum UNACTIVE = new ActionEnum("UNACTIVE"); + + /** + * Enum ACTIVE for value: "ACTIVE" + */ + public static final ActionEnum ACTIVE = new ActionEnum("ACTIVE"); + + /** + * Enum SHARE for value: "SHARE" + */ + public static final ActionEnum SHARE = new ActionEnum("SHARE"); + + /** + * Enum UNSHARE for value: "UNSHARE" + */ + public static final ActionEnum UNSHARE = new ActionEnum("UNSHARE"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("DELETE", DELETE); + map.put("DELETE_FORCE", DELETE_FORCE); + map.put("RESTORE", RESTORE); + map.put("UNACTIVE", UNACTIVE); + map.put("ACTIVE", ACTIVE); + map.put("SHARE", SHARE); + map.put("UNSHARE", UNSHARE); + return Collections.unmodifiableMap(map); + } + + private String value; + + ActionEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ActionEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new ActionEnum(value)); + } + + public static ActionEnum valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof ActionEnum) { + return this.value.equals(((ActionEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "action") + + private ActionEnum action; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "asset_ids") + + private List assetIds = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "params") + + private String params; + + public BatchAssetActionReq withAction(ActionEnum action) { + this.action = action; + return this; + } + + /** + * 批量操作命令. * DELETE:删除 * DELETE_FORCE:强制删除,该模式会立即删除资产 * RESTORE:恢复 * UNACTIVE:取消激活 * ACTIVE:激活 * SHARE:共享 * UNSHARE:取消共享 + * @return action + */ + public ActionEnum getAction() { + return action; + } + + public void setAction(ActionEnum action) { + this.action = action; + } + + public BatchAssetActionReq withAssetIds(List assetIds) { + this.assetIds = assetIds; + return this; + } + + public BatchAssetActionReq addAssetIdsItem(String assetIdsItem) { + if (this.assetIds == null) { + this.assetIds = new ArrayList<>(); + } + this.assetIds.add(assetIdsItem); + return this; + } + + public BatchAssetActionReq withAssetIds(Consumer> assetIdsSetter) { + if (this.assetIds == null) { + this.assetIds = new ArrayList<>(); + } + assetIdsSetter.accept(this.assetIds); + return this; + } + + /** + * 资产ID列表 + * @return assetIds + */ + public List getAssetIds() { + return assetIds; + } + + public void setAssetIds(List assetIds) { + this.assetIds = assetIds; + } + + public BatchAssetActionReq withParams(String params) { + this.params = params; + return this; + } + + /** + * 操作参数 + * @return params + */ + public String getParams() { + return params; + } + + public void setParams(String params) { + this.params = params; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + BatchAssetActionReq that = (BatchAssetActionReq) obj; + return Objects.equals(this.action, that.action) && Objects.equals(this.assetIds, that.assetIds) + && Objects.equals(this.params, that.params); + } + + @Override + public int hashCode() { + return Objects.hash(action, assetIds, params); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchAssetActionReq {\n"); + sb.append(" action: ").append(toIndentedString(action)).append("\n"); + sb.append(" assetIds: ").append(toIndentedString(assetIds)).append("\n"); + sb.append(" params: ").append(toIndentedString(params)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/BatchExecuteAssetActionRequest.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/BatchExecuteAssetActionRequest.java new file mode 100644 index 0000000000..cff05504f2 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/BatchExecuteAssetActionRequest.java @@ -0,0 +1,156 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class BatchExecuteAssetActionRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Authorization") + + private String authorization; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + + private String xSdkDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + + private String xAppUserId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private BatchAssetActionReq body; + + public BatchExecuteAssetActionRequest withAuthorization(String authorization) { + this.authorization = authorization; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @return authorization + */ + public String getAuthorization() { + return authorization; + } + + public void setAuthorization(String authorization) { + this.authorization = authorization; + } + + public BatchExecuteAssetActionRequest withXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + return this; + } + + /** + * 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD'T'HHMMSS'Z')。 + * @return xSdkDate + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + public String getXSdkDate() { + return xSdkDate; + } + + public void setXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + } + + public BatchExecuteAssetActionRequest withXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + return this; + } + + /** + * 第三方用户ID。不允许输入中文。 + * @return xAppUserId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + public String getXAppUserId() { + return xAppUserId; + } + + public void setXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + } + + public BatchExecuteAssetActionRequest withBody(BatchAssetActionReq body) { + this.body = body; + return this; + } + + public BatchExecuteAssetActionRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new BatchAssetActionReq(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public BatchAssetActionReq getBody() { + return body; + } + + public void setBody(BatchAssetActionReq body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + BatchExecuteAssetActionRequest that = (BatchExecuteAssetActionRequest) obj; + return Objects.equals(this.authorization, that.authorization) && Objects.equals(this.xSdkDate, that.xSdkDate) + && Objects.equals(this.xAppUserId, that.xAppUserId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(authorization, xSdkDate, xAppUserId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchExecuteAssetActionRequest {\n"); + sb.append(" authorization: ").append(toIndentedString(authorization)).append("\n"); + sb.append(" xSdkDate: ").append(toIndentedString(xSdkDate)).append("\n"); + sb.append(" xAppUserId: ").append(toIndentedString(xAppUserId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/BatchExecuteAssetActionResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/BatchExecuteAssetActionResponse.java new file mode 100644 index 0000000000..d1d88172e8 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/BatchExecuteAssetActionResponse.java @@ -0,0 +1,117 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class BatchExecuteAssetActionResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "results") + + private List results = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + + public BatchExecuteAssetActionResponse withResults(List results) { + this.results = results; + return this; + } + + public BatchExecuteAssetActionResponse addResultsItem(AssetActionResult resultsItem) { + if (this.results == null) { + this.results = new ArrayList<>(); + } + this.results.add(resultsItem); + return this; + } + + public BatchExecuteAssetActionResponse withResults(Consumer> resultsSetter) { + if (this.results == null) { + this.results = new ArrayList<>(); + } + resultsSetter.accept(this.results); + return this; + } + + /** + * 批量操作结果 + * @return results + */ + public List getResults() { + return results; + } + + public void setResults(List results) { + this.results = results; + } + + public BatchExecuteAssetActionResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + BatchExecuteAssetActionResponse that = (BatchExecuteAssetActionResponse) obj; + return Objects.equals(this.results, that.results) && Objects.equals(this.xRequestId, that.xRequestId); + } + + @Override + public int hashCode() { + return Objects.hash(results, xRequestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchExecuteAssetActionResponse {\n"); + sb.append(" results: ").append(toIndentedString(results)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CommitJobReq.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CommitJobReq.java index 40bda84c63..47c2d1217d 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CommitJobReq.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CommitJobReq.java @@ -105,80 +105,10 @@ public int hashCode() { private String voiceName; - /** - * 训练语言,当前仅支持中文。 * CN: 中文 * EN: 英文 - */ - public static final class LanguageEnum { - - /** - * Enum CN for value: "CN" - */ - public static final LanguageEnum CN = new LanguageEnum("CN"); - - /** - * Enum EN for value: "EN" - */ - public static final LanguageEnum EN = new LanguageEnum("EN"); - - private static final Map STATIC_FIELDS = createStaticFields(); - - private static Map createStaticFields() { - Map map = new HashMap<>(); - map.put("CN", CN); - map.put("EN", EN); - return Collections.unmodifiableMap(map); - } - - private String value; - - LanguageEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static LanguageEnum fromValue(String value) { - if (value == null) { - return null; - } - return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new LanguageEnum(value)); - } - - public static LanguageEnum valueOf(String value) { - if (value == null) { - return null; - } - return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) - .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); - } - - @Override - public boolean equals(Object obj) { - if (obj instanceof LanguageEnum) { - return this.value.equals(((LanguageEnum) obj).value); - } - return false; - } - - @Override - public int hashCode() { - return this.value.hashCode(); - } - } - @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "language") - private LanguageEnum language; + private String language; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "phone") @@ -258,7 +188,7 @@ public void setVoiceName(String voiceName) { this.voiceName = voiceName; } - public CommitJobReq withLanguage(LanguageEnum language) { + public CommitJobReq withLanguage(String language) { this.language = language; return this; } @@ -267,11 +197,11 @@ public CommitJobReq withLanguage(LanguageEnum language) { * 训练语言,当前仅支持中文。 * CN: 中文 * EN: 英文 * @return language */ - public LanguageEnum getLanguage() { + public String getLanguage() { return language; } - public void setLanguage(LanguageEnum language) { + public void setLanguage(String language) { this.language = language; } diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/Create2DDigitalHumanVideoReq.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/Create2DDigitalHumanVideoReq.java index 9caa131958..1d315ea400 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/Create2DDigitalHumanVideoReq.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/Create2DDigitalHumanVideoReq.java @@ -1,15 +1,10 @@ package com.huaweicloud.sdk.metastudio.v1.model; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; -import java.util.Collections; -import java.util.HashMap; import java.util.List; -import java.util.Map; import java.util.Objects; import java.util.function.Consumer; @@ -23,91 +18,11 @@ public class Create2DDigitalHumanVideoReq { private String scriptId; - /** - * 视频生成类型。该参数取值是MODEL时,model_asset_id必填;取值是PICTURE时,human_image必填。 * MODEL:通过分身数字人模型生成视频 * PICTURE: 通过单张照片生成视频 > * 该参数已废弃,照片数字人视频制作使用“创建照片分身数字人视频制作任务”接口。 - */ - public static final class VideoMakingTypeEnum { - - /** - * Enum MODEL for value: "MODEL" - */ - public static final VideoMakingTypeEnum MODEL = new VideoMakingTypeEnum("MODEL"); - - /** - * Enum PICTURE for value: "PICTURE" - */ - public static final VideoMakingTypeEnum PICTURE = new VideoMakingTypeEnum("PICTURE"); - - private static final Map STATIC_FIELDS = createStaticFields(); - - private static Map createStaticFields() { - Map map = new HashMap<>(); - map.put("MODEL", MODEL); - map.put("PICTURE", PICTURE); - return Collections.unmodifiableMap(map); - } - - private String value; - - VideoMakingTypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static VideoMakingTypeEnum fromValue(String value) { - if (value == null) { - return null; - } - return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new VideoMakingTypeEnum(value)); - } - - public static VideoMakingTypeEnum valueOf(String value) { - if (value == null) { - return null; - } - return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) - .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); - } - - @Override - public boolean equals(Object obj) { - if (obj instanceof VideoMakingTypeEnum) { - return this.value.equals(((VideoMakingTypeEnum) obj).value); - } - return false; - } - - @Override - public int hashCode() { - return this.value.hashCode(); - } - } - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "video_making_type") - - private VideoMakingTypeEnum videoMakingType; - @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "model_asset_id") private String modelAssetId; - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "human_image") - - private String humanImage; - @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "voice_config") @@ -160,23 +75,6 @@ public void setScriptId(String scriptId) { this.scriptId = scriptId; } - public Create2DDigitalHumanVideoReq withVideoMakingType(VideoMakingTypeEnum videoMakingType) { - this.videoMakingType = videoMakingType; - return this; - } - - /** - * 视频生成类型。该参数取值是MODEL时,model_asset_id必填;取值是PICTURE时,human_image必填。 * MODEL:通过分身数字人模型生成视频 * PICTURE: 通过单张照片生成视频 > * 该参数已废弃,照片数字人视频制作使用“创建照片分身数字人视频制作任务”接口。 - * @return videoMakingType - */ - public VideoMakingTypeEnum getVideoMakingType() { - return videoMakingType; - } - - public void setVideoMakingType(VideoMakingTypeEnum videoMakingType) { - this.videoMakingType = videoMakingType; - } - public Create2DDigitalHumanVideoReq withModelAssetId(String modelAssetId) { this.modelAssetId = modelAssetId; return this; @@ -194,23 +92,6 @@ public void setModelAssetId(String modelAssetId) { this.modelAssetId = modelAssetId; } - public Create2DDigitalHumanVideoReq withHumanImage(String humanImage) { - this.humanImage = humanImage; - return this; - } - - /** - * 人物照片,需要Base64编码。照片分辨率不超过1080P。 > * 该参数已废弃,照片数字人视频制作使用“创建照片分身数字人视频制作任务”接口。 - * @return humanImage - */ - public String getHumanImage() { - return humanImage; - } - - public void setHumanImage(String humanImage) { - this.humanImage = humanImage; - } - public Create2DDigitalHumanVideoReq withVoiceConfig(VoiceConfig voiceConfig) { this.voiceConfig = voiceConfig; return this; @@ -410,9 +291,7 @@ public boolean equals(java.lang.Object obj) { return false; } Create2DDigitalHumanVideoReq that = (Create2DDigitalHumanVideoReq) obj; - return Objects.equals(this.scriptId, that.scriptId) - && Objects.equals(this.videoMakingType, that.videoMakingType) - && Objects.equals(this.modelAssetId, that.modelAssetId) && Objects.equals(this.humanImage, that.humanImage) + return Objects.equals(this.scriptId, that.scriptId) && Objects.equals(this.modelAssetId, that.modelAssetId) && Objects.equals(this.voiceConfig, that.voiceConfig) && Objects.equals(this.videoConfig, that.videoConfig) && Objects.equals(this.shootScripts, that.shootScripts) && Objects.equals(this.outputAssetConfig, that.outputAssetConfig) @@ -424,9 +303,7 @@ public boolean equals(java.lang.Object obj) { @Override public int hashCode() { return Objects.hash(scriptId, - videoMakingType, modelAssetId, - humanImage, voiceConfig, videoConfig, shootScripts, @@ -441,9 +318,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Create2DDigitalHumanVideoReq {\n"); sb.append(" scriptId: ").append(toIndentedString(scriptId)).append("\n"); - sb.append(" videoMakingType: ").append(toIndentedString(videoMakingType)).append("\n"); sb.append(" modelAssetId: ").append(toIndentedString(modelAssetId)).append("\n"); - sb.append(" humanImage: ").append(toIndentedString(humanImage)).append("\n"); sb.append(" voiceConfig: ").append(toIndentedString(voiceConfig)).append("\n"); sb.append(" videoConfig: ").append(toIndentedString(videoConfig)).append("\n"); sb.append(" shootScripts: ").append(toIndentedString(shootScripts)).append("\n"); diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateAssetbyReplicationInfoRequest.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateAssetByReplicationInfoRequest.java similarity index 88% rename from services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateAssetbyReplicationInfoRequest.java rename to services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateAssetByReplicationInfoRequest.java index 38dcf96311..8053ca1c0e 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateAssetbyReplicationInfoRequest.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateAssetByReplicationInfoRequest.java @@ -9,7 +9,7 @@ /** * Request Object */ -public class CreateAssetbyReplicationInfoRequest { +public class CreateAssetByReplicationInfoRequest { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "Authorization") @@ -31,7 +31,7 @@ public class CreateAssetbyReplicationInfoRequest { private ReplicationAssetInfo body; - public CreateAssetbyReplicationInfoRequest withAuthorization(String authorization) { + public CreateAssetByReplicationInfoRequest withAuthorization(String authorization) { this.authorization = authorization; return this; } @@ -48,7 +48,7 @@ public void setAuthorization(String authorization) { this.authorization = authorization; } - public CreateAssetbyReplicationInfoRequest withXSdkDate(String xSdkDate) { + public CreateAssetByReplicationInfoRequest withXSdkDate(String xSdkDate) { this.xSdkDate = xSdkDate; return this; } @@ -67,7 +67,7 @@ public void setXSdkDate(String xSdkDate) { this.xSdkDate = xSdkDate; } - public CreateAssetbyReplicationInfoRequest withXAppUserId(String xAppUserId) { + public CreateAssetByReplicationInfoRequest withXAppUserId(String xAppUserId) { this.xAppUserId = xAppUserId; return this; } @@ -86,12 +86,12 @@ public void setXAppUserId(String xAppUserId) { this.xAppUserId = xAppUserId; } - public CreateAssetbyReplicationInfoRequest withBody(ReplicationAssetInfo body) { + public CreateAssetByReplicationInfoRequest withBody(ReplicationAssetInfo body) { this.body = body; return this; } - public CreateAssetbyReplicationInfoRequest withBody(Consumer bodySetter) { + public CreateAssetByReplicationInfoRequest withBody(Consumer bodySetter) { if (this.body == null) { this.body = new ReplicationAssetInfo(); bodySetter.accept(this.body); @@ -120,7 +120,7 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - CreateAssetbyReplicationInfoRequest that = (CreateAssetbyReplicationInfoRequest) obj; + CreateAssetByReplicationInfoRequest that = (CreateAssetByReplicationInfoRequest) obj; return Objects.equals(this.authorization, that.authorization) && Objects.equals(this.xSdkDate, that.xSdkDate) && Objects.equals(this.xAppUserId, that.xAppUserId) && Objects.equals(this.body, that.body); } @@ -133,7 +133,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class CreateAssetbyReplicationInfoRequest {\n"); + sb.append("class CreateAssetByReplicationInfoRequest {\n"); sb.append(" authorization: ").append(toIndentedString(authorization)).append("\n"); sb.append(" xSdkDate: ").append(toIndentedString(xSdkDate)).append("\n"); sb.append(" xAppUserId: ").append(toIndentedString(xAppUserId)).append("\n"); diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateAssetbyReplicationInfoResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateAssetByReplicationInfoResponse.java similarity index 85% rename from services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateAssetbyReplicationInfoResponse.java rename to services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateAssetByReplicationInfoResponse.java index 99842ab97e..cf6bdc6d64 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateAssetbyReplicationInfoResponse.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateAssetByReplicationInfoResponse.java @@ -9,14 +9,14 @@ /** * Response Object */ -public class CreateAssetbyReplicationInfoResponse extends SdkResponse { +public class CreateAssetByReplicationInfoResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "X-Request-Id") private String xRequestId; - public CreateAssetbyReplicationInfoResponse withXRequestId(String xRequestId) { + public CreateAssetByReplicationInfoResponse withXRequestId(String xRequestId) { this.xRequestId = xRequestId; return this; } @@ -43,7 +43,7 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - CreateAssetbyReplicationInfoResponse that = (CreateAssetbyReplicationInfoResponse) obj; + CreateAssetByReplicationInfoResponse that = (CreateAssetByReplicationInfoResponse) obj; return Objects.equals(this.xRequestId, that.xRequestId); } @@ -55,7 +55,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class CreateAssetbyReplicationInfoResponse {\n"); + sb.append("class CreateAssetByReplicationInfoResponse {\n"); sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateDigitalAssetRequest.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateDigitalAssetRequest.java index 95033094aa..75282ded64 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateDigitalAssetRequest.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateDigitalAssetRequest.java @@ -26,6 +26,11 @@ public class CreateDigitalAssetRequest { private String xAppUserId; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-MSS-Authorization") + + private String xMSSAuthorization; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "body") @@ -86,6 +91,25 @@ public void setXAppUserId(String xAppUserId) { this.xAppUserId = xAppUserId; } + public CreateDigitalAssetRequest withXMSSAuthorization(String xMSSAuthorization) { + this.xMSSAuthorization = xMSSAuthorization; + return this; + } + + /** + * 数字人内部token + * @return xMSSAuthorization + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-MSS-Authorization") + public String getXMSSAuthorization() { + return xMSSAuthorization; + } + + public void setXMSSAuthorization(String xMSSAuthorization) { + this.xMSSAuthorization = xMSSAuthorization; + } + public CreateDigitalAssetRequest withBody(CreateDigitalAssetRequestBody body) { this.body = body; return this; @@ -122,12 +146,13 @@ public boolean equals(java.lang.Object obj) { } CreateDigitalAssetRequest that = (CreateDigitalAssetRequest) obj; return Objects.equals(this.authorization, that.authorization) && Objects.equals(this.xSdkDate, that.xSdkDate) - && Objects.equals(this.xAppUserId, that.xAppUserId) && Objects.equals(this.body, that.body); + && Objects.equals(this.xAppUserId, that.xAppUserId) + && Objects.equals(this.xMSSAuthorization, that.xMSSAuthorization) && Objects.equals(this.body, that.body); } @Override public int hashCode() { - return Objects.hash(authorization, xSdkDate, xAppUserId, body); + return Objects.hash(authorization, xSdkDate, xAppUserId, xMSSAuthorization, body); } @Override @@ -137,6 +162,7 @@ public String toString() { sb.append(" authorization: ").append(toIndentedString(authorization)).append("\n"); sb.append(" xSdkDate: ").append(toIndentedString(xSdkDate)).append("\n"); sb.append(" xAppUserId: ").append(toIndentedString(xAppUserId)).append("\n"); + sb.append(" xMSSAuthorization: ").append(toIndentedString(xMSSAuthorization)).append("\n"); sb.append(" body: ").append(toIndentedString(body)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateDigitalAssetRequestBody.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateDigitalAssetRequestBody.java index 5978913403..1922db98ec 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateDigitalAssetRequestBody.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateDigitalAssetRequestBody.java @@ -203,7 +203,7 @@ public int hashCode() { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "shared_config") - private SharedConfig sharedConfig; + private AssetSharedConfig sharedConfig; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "is_need_generate_cover") @@ -396,14 +396,14 @@ public void setSystemProperties(List systemProperties) { this.systemProperties = systemProperties; } - public CreateDigitalAssetRequestBody withSharedConfig(SharedConfig sharedConfig) { + public CreateDigitalAssetRequestBody withSharedConfig(AssetSharedConfig sharedConfig) { this.sharedConfig = sharedConfig; return this; } - public CreateDigitalAssetRequestBody withSharedConfig(Consumer sharedConfigSetter) { + public CreateDigitalAssetRequestBody withSharedConfig(Consumer sharedConfigSetter) { if (this.sharedConfig == null) { - this.sharedConfig = new SharedConfig(); + this.sharedConfig = new AssetSharedConfig(); sharedConfigSetter.accept(this.sharedConfig); } @@ -414,11 +414,11 @@ public CreateDigitalAssetRequestBody withSharedConfig(Consumer sha * Get sharedConfig * @return sharedConfig */ - public SharedConfig getSharedConfig() { + public AssetSharedConfig getSharedConfig() { return sharedConfig; } - public void setSharedConfig(SharedConfig sharedConfig) { + public void setSharedConfig(AssetSharedConfig sharedConfig) { this.sharedConfig = sharedConfig; } diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateDigitalHumanBusinessCardReq.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateDigitalHumanBusinessCardReq.java index c247299edc..ddb8f530ff 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateDigitalHumanBusinessCardReq.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateDigitalHumanBusinessCardReq.java @@ -276,6 +276,11 @@ public int hashCode() { private ReviewConfig reviewConfig; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "callback_config") + + private CallBackConfig callbackConfig; + public CreateDigitalHumanBusinessCardReq withBusinessCardType(BusinessCardTypeEnum businessCardType) { this.businessCardType = businessCardType; return this; @@ -491,6 +496,32 @@ public void setReviewConfig(ReviewConfig reviewConfig) { this.reviewConfig = reviewConfig; } + public CreateDigitalHumanBusinessCardReq withCallbackConfig(CallBackConfig callbackConfig) { + this.callbackConfig = callbackConfig; + return this; + } + + public CreateDigitalHumanBusinessCardReq withCallbackConfig(Consumer callbackConfigSetter) { + if (this.callbackConfig == null) { + this.callbackConfig = new CallBackConfig(); + callbackConfigSetter.accept(this.callbackConfig); + } + + return this; + } + + /** + * Get callbackConfig + * @return callbackConfig + */ + public CallBackConfig getCallbackConfig() { + return callbackConfig; + } + + public void setCallbackConfig(CallBackConfig callbackConfig) { + this.callbackConfig = callbackConfig; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -509,7 +540,8 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.voiceAssetId, that.voiceAssetId) && Objects.equals(this.introductionAudioAssetId, that.introductionAudioAssetId) && Objects.equals(this.videoAssetName, that.videoAssetName) && Objects.equals(this.gender, that.gender) - && Objects.equals(this.reviewConfig, that.reviewConfig); + && Objects.equals(this.reviewConfig, that.reviewConfig) + && Objects.equals(this.callbackConfig, that.callbackConfig); } @Override @@ -524,7 +556,8 @@ public int hashCode() { introductionAudioAssetId, videoAssetName, gender, - reviewConfig); + reviewConfig, + callbackConfig); } @Override @@ -542,6 +575,7 @@ public String toString() { sb.append(" videoAssetName: ").append(toIndentedString(videoAssetName)).append("\n"); sb.append(" gender: ").append(toIndentedString(gender)).append("\n"); sb.append(" reviewConfig: ").append(toIndentedString(reviewConfig)).append("\n"); + sb.append(" callbackConfig: ").append(toIndentedString(callbackConfig)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreatePhotoDigitalHumanVideoReq.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreatePhotoDigitalHumanVideoReq.java index 2eb762d6aa..ee069ddcbf 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreatePhotoDigitalHumanVideoReq.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreatePhotoDigitalHumanVideoReq.java @@ -53,6 +53,11 @@ public class CreatePhotoDigitalHumanVideoReq { private ReviewConfig reviewConfig; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "callback_config") + + private CallBackConfig callbackConfig; + public CreatePhotoDigitalHumanVideoReq withScriptId(String scriptId) { this.scriptId = scriptId; return this; @@ -251,6 +256,32 @@ public void setReviewConfig(ReviewConfig reviewConfig) { this.reviewConfig = reviewConfig; } + public CreatePhotoDigitalHumanVideoReq withCallbackConfig(CallBackConfig callbackConfig) { + this.callbackConfig = callbackConfig; + return this; + } + + public CreatePhotoDigitalHumanVideoReq withCallbackConfig(Consumer callbackConfigSetter) { + if (this.callbackConfig == null) { + this.callbackConfig = new CallBackConfig(); + callbackConfigSetter.accept(this.callbackConfig); + } + + return this; + } + + /** + * Get callbackConfig + * @return callbackConfig + */ + public CallBackConfig getCallbackConfig() { + return callbackConfig; + } + + public void setCallbackConfig(CallBackConfig callbackConfig) { + this.callbackConfig = callbackConfig; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -265,7 +296,8 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.shootScripts, that.shootScripts) && Objects.equals(this.outputAssetConfig, that.outputAssetConfig) && Objects.equals(this.backgroundMusicConfig, that.backgroundMusicConfig) - && Objects.equals(this.reviewConfig, that.reviewConfig); + && Objects.equals(this.reviewConfig, that.reviewConfig) + && Objects.equals(this.callbackConfig, that.callbackConfig); } @Override @@ -277,7 +309,8 @@ public int hashCode() { shootScripts, outputAssetConfig, backgroundMusicConfig, - reviewConfig); + reviewConfig, + callbackConfig); } @Override @@ -292,6 +325,7 @@ public String toString() { sb.append(" outputAssetConfig: ").append(toIndentedString(outputAssetConfig)).append("\n"); sb.append(" backgroundMusicConfig: ").append(toIndentedString(backgroundMusicConfig)).append("\n"); sb.append(" reviewConfig: ").append(toIndentedString(reviewConfig)).append("\n"); + sb.append(" callbackConfig: ").append(toIndentedString(callbackConfig)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateProductRequest.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateProductRequest.java new file mode 100644 index 0000000000..79d8bac32c --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateProductRequest.java @@ -0,0 +1,182 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class CreateProductRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Authorization") + + private String authorization; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + + private String xSdkDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + + private String xProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + + private String xAppUserId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private CreateProductRequestBody body; + + public CreateProductRequest withAuthorization(String authorization) { + this.authorization = authorization; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @return authorization + */ + public String getAuthorization() { + return authorization; + } + + public void setAuthorization(String authorization) { + this.authorization = authorization; + } + + public CreateProductRequest withXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + return this; + } + + /** + * 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD'T'HHMMSS'Z')。 + * @return xSdkDate + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + public String getXSdkDate() { + return xSdkDate; + } + + public void setXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + } + + public CreateProductRequest withXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带项目ID信息。 + * @return xProjectId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + public String getXProjectId() { + return xProjectId; + } + + public void setXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + } + + public CreateProductRequest withXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + return this; + } + + /** + * 第三方用户ID。不允许输入中文。 + * @return xAppUserId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + public String getXAppUserId() { + return xAppUserId; + } + + public void setXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + } + + public CreateProductRequest withBody(CreateProductRequestBody body) { + this.body = body; + return this; + } + + public CreateProductRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new CreateProductRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public CreateProductRequestBody getBody() { + return body; + } + + public void setBody(CreateProductRequestBody body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateProductRequest that = (CreateProductRequest) obj; + return Objects.equals(this.authorization, that.authorization) && Objects.equals(this.xSdkDate, that.xSdkDate) + && Objects.equals(this.xProjectId, that.xProjectId) && Objects.equals(this.xAppUserId, that.xAppUserId) + && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(authorization, xSdkDate, xProjectId, xAppUserId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateProductRequest {\n"); + sb.append(" authorization: ").append(toIndentedString(authorization)).append("\n"); + sb.append(" xSdkDate: ").append(toIndentedString(xSdkDate)).append("\n"); + sb.append(" xProjectId: ").append(toIndentedString(xProjectId)).append("\n"); + sb.append(" xAppUserId: ").append(toIndentedString(xAppUserId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateProductRequestBody.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateProductRequestBody.java new file mode 100644 index 0000000000..e693013249 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateProductRequestBody.java @@ -0,0 +1,273 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 服务开通请求 + */ +public class CreateProductRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tags") + + private List tags = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "cover") + + private ProductCoverInfo cover; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "text_list") + + private List textList = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "asset_list") + + private List assetList = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "auto_active") + + private Boolean autoActive; + + public CreateProductRequestBody withName(String name) { + this.name = name; + return this; + } + + /** + * 商品名称 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public CreateProductRequestBody withDescription(String description) { + this.description = description; + return this; + } + + /** + * 商品描述 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public CreateProductRequestBody withTags(List tags) { + this.tags = tags; + return this; + } + + public CreateProductRequestBody addTagsItem(String tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + this.tags.add(tagsItem); + return this; + } + + public CreateProductRequestBody withTags(Consumer> tagsSetter) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + tagsSetter.accept(this.tags); + return this; + } + + /** + * 标签。单个标签16字节,多个用逗号分隔,最多50个。 + * @return tags + */ + public List getTags() { + return tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + public CreateProductRequestBody withCover(ProductCoverInfo cover) { + this.cover = cover; + return this; + } + + public CreateProductRequestBody withCover(Consumer coverSetter) { + if (this.cover == null) { + this.cover = new ProductCoverInfo(); + coverSetter.accept(this.cover); + } + + return this; + } + + /** + * Get cover + * @return cover + */ + public ProductCoverInfo getCover() { + return cover; + } + + public void setCover(ProductCoverInfo cover) { + this.cover = cover; + } + + public CreateProductRequestBody withTextList(List textList) { + this.textList = textList; + return this; + } + + public CreateProductRequestBody addTextListItem(ProductTextInfo textListItem) { + if (this.textList == null) { + this.textList = new ArrayList<>(); + } + this.textList.add(textListItem); + return this; + } + + public CreateProductRequestBody withTextList(Consumer> textListSetter) { + if (this.textList == null) { + this.textList = new ArrayList<>(); + } + textListSetter.accept(this.textList); + return this; + } + + /** + * 文本列表 + * @return textList + */ + public List getTextList() { + return textList; + } + + public void setTextList(List textList) { + this.textList = textList; + } + + public CreateProductRequestBody withAssetList(List assetList) { + this.assetList = assetList; + return this; + } + + public CreateProductRequestBody addAssetListItem(ProductMediaInfo assetListItem) { + if (this.assetList == null) { + this.assetList = new ArrayList<>(); + } + this.assetList.add(assetListItem); + return this; + } + + public CreateProductRequestBody withAssetList(Consumer> assetListSetter) { + if (this.assetList == null) { + this.assetList = new ArrayList<>(); + } + assetListSetter.accept(this.assetList); + return this; + } + + /** + * 素材资产列表 + * @return assetList + */ + public List getAssetList() { + return assetList; + } + + public void setAssetList(List assetList) { + this.assetList = assetList; + } + + public CreateProductRequestBody withAutoActive(Boolean autoActive) { + this.autoActive = autoActive; + return this; + } + + /** + * 自动激活商品 + * @return autoActive + */ + public Boolean getAutoActive() { + return autoActive; + } + + public void setAutoActive(Boolean autoActive) { + this.autoActive = autoActive; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateProductRequestBody that = (CreateProductRequestBody) obj; + return Objects.equals(this.name, that.name) && Objects.equals(this.description, that.description) + && Objects.equals(this.tags, that.tags) && Objects.equals(this.cover, that.cover) + && Objects.equals(this.textList, that.textList) && Objects.equals(this.assetList, that.assetList) + && Objects.equals(this.autoActive, that.autoActive); + } + + @Override + public int hashCode() { + return Objects.hash(name, description, tags, cover, textList, assetList, autoActive); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateProductRequestBody {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" cover: ").append(toIndentedString(cover)).append("\n"); + sb.append(" textList: ").append(toIndentedString(textList)).append("\n"); + sb.append(" assetList: ").append(toIndentedString(assetList)).append("\n"); + sb.append(" autoActive: ").append(toIndentedString(autoActive)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateProductResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateProductResponse.java new file mode 100644 index 0000000000..24c8a9c0bb --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateProductResponse.java @@ -0,0 +1,98 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class CreateProductResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "product_id") + + private String productId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + + public CreateProductResponse withProductId(String productId) { + this.productId = productId; + return this; + } + + /** + * 商品ID + * @return productId + */ + public String getProductId() { + return productId; + } + + public void setProductId(String productId) { + this.productId = productId; + } + + public CreateProductResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateProductResponse that = (CreateProductResponse) obj; + return Objects.equals(this.productId, that.productId) && Objects.equals(this.xRequestId, that.xRequestId); + } + + @Override + public int hashCode() { + return Objects.hash(productId, xRequestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateProductResponse {\n"); + sb.append(" productId: ").append(toIndentedString(productId)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateRobotReq.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateRobotReq.java index 3d791d7cf5..ac5c985aa5 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateRobotReq.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateRobotReq.java @@ -36,6 +36,11 @@ public class CreateRobotReq { private Integer tailSilenceTime; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enable_question_audit") + + private Boolean enableQuestionAudit; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "huawei_ei_cbs") @@ -150,6 +155,23 @@ public void setTailSilenceTime(Integer tailSilenceTime) { this.tailSilenceTime = tailSilenceTime; } + public CreateRobotReq withEnableQuestionAudit(Boolean enableQuestionAudit) { + this.enableQuestionAudit = enableQuestionAudit; + return this; + } + + /** + * 提问文本审核开关 + * @return enableQuestionAudit + */ + public Boolean getEnableQuestionAudit() { + return enableQuestionAudit; + } + + public void setEnableQuestionAudit(Boolean enableQuestionAudit) { + this.enableQuestionAudit = enableQuestionAudit; + } + public CreateRobotReq withHuaweiEiCbs(HuaweiEiCbs huaweiEiCbs) { this.huaweiEiCbs = huaweiEiCbs; return this; @@ -292,6 +314,7 @@ public boolean equals(java.lang.Object obj) { return Objects.equals(this.name, that.name) && Objects.equals(this.appType, that.appType) && Objects.equals(this.roomId, that.roomId) && Objects.equals(this.language, that.language) && Objects.equals(this.tailSilenceTime, that.tailSilenceTime) + && Objects.equals(this.enableQuestionAudit, that.enableQuestionAudit) && Objects.equals(this.huaweiEiCbs, that.huaweiEiCbs) && Objects.equals(this.iflytekAiuiConfig, that.iflytekAiuiConfig) && Objects.equals(this.iflytekSpark, that.iflytekSpark) @@ -306,6 +329,7 @@ public int hashCode() { roomId, language, tailSilenceTime, + enableQuestionAudit, huaweiEiCbs, iflytekAiuiConfig, iflytekSpark, @@ -322,6 +346,7 @@ public String toString() { sb.append(" roomId: ").append(toIndentedString(roomId)).append("\n"); sb.append(" language: ").append(toIndentedString(language)).append("\n"); sb.append(" tailSilenceTime: ").append(toIndentedString(tailSilenceTime)).append("\n"); + sb.append(" enableQuestionAudit: ").append(toIndentedString(enableQuestionAudit)).append("\n"); sb.append(" huaweiEiCbs: ").append(toIndentedString(huaweiEiCbs)).append("\n"); sb.append(" iflytekAiuiConfig: ").append(toIndentedString(iflytekAiuiConfig)).append("\n"); sb.append(" iflytekSpark: ").append(toIndentedString(iflytekSpark)).append("\n"); diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateSmartLiveRoomReq.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateSmartLiveRoomReq.java index 12a245bc28..5cbcdb6764 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateSmartLiveRoomReq.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateSmartLiveRoomReq.java @@ -117,7 +117,7 @@ public int hashCode() { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "interaction_rules") - private List interactionRules = null; + private List interactionRules = null; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "play_policy") @@ -149,6 +149,11 @@ public int hashCode() { private LiveEventCallBackConfig liveEventCallbackConfig; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "rtc_callback_config") + + private RTCLiveEventCallBackConfig rtcCallbackConfig; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "review_config") @@ -323,12 +328,12 @@ public void setSceneScripts(List sceneScripts) { this.sceneScripts = sceneScripts; } - public CreateSmartLiveRoomReq withInteractionRules(List interactionRules) { + public CreateSmartLiveRoomReq withInteractionRules(List interactionRules) { this.interactionRules = interactionRules; return this; } - public CreateSmartLiveRoomReq addInteractionRulesItem(InteractionRuleInfo interactionRulesItem) { + public CreateSmartLiveRoomReq addInteractionRulesItem(LiveRoomInteractionRuleInfo interactionRulesItem) { if (this.interactionRules == null) { this.interactionRules = new ArrayList<>(); } @@ -336,7 +341,8 @@ public CreateSmartLiveRoomReq addInteractionRulesItem(InteractionRuleInfo intera return this; } - public CreateSmartLiveRoomReq withInteractionRules(Consumer> interactionRulesSetter) { + public CreateSmartLiveRoomReq withInteractionRules( + Consumer> interactionRulesSetter) { if (this.interactionRules == null) { this.interactionRules = new ArrayList<>(); } @@ -348,11 +354,11 @@ public CreateSmartLiveRoomReq withInteractionRules(Consumer getInteractionRules() { + public List getInteractionRules() { return interactionRules; } - public void setInteractionRules(List interactionRules) { + public void setInteractionRules(List interactionRules) { this.interactionRules = interactionRules; } @@ -534,6 +540,32 @@ public void setLiveEventCallbackConfig(LiveEventCallBackConfig liveEventCallback this.liveEventCallbackConfig = liveEventCallbackConfig; } + public CreateSmartLiveRoomReq withRtcCallbackConfig(RTCLiveEventCallBackConfig rtcCallbackConfig) { + this.rtcCallbackConfig = rtcCallbackConfig; + return this; + } + + public CreateSmartLiveRoomReq withRtcCallbackConfig(Consumer rtcCallbackConfigSetter) { + if (this.rtcCallbackConfig == null) { + this.rtcCallbackConfig = new RTCLiveEventCallBackConfig(); + rtcCallbackConfigSetter.accept(this.rtcCallbackConfig); + } + + return this; + } + + /** + * Get rtcCallbackConfig + * @return rtcCallbackConfig + */ + public RTCLiveEventCallBackConfig getRtcCallbackConfig() { + return rtcCallbackConfig; + } + + public void setRtcCallbackConfig(RTCLiveEventCallBackConfig rtcCallbackConfig) { + this.rtcCallbackConfig = rtcCallbackConfig; + } + public CreateSmartLiveRoomReq withReviewConfig(ReviewConfig reviewConfig) { this.reviewConfig = reviewConfig; return this; @@ -646,6 +678,7 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.outputUrls, that.outputUrls) && Objects.equals(this.streamKeys, that.streamKeys) && Objects.equals(this.backupModelAssetIds, that.backupModelAssetIds) && Objects.equals(this.liveEventCallbackConfig, that.liveEventCallbackConfig) + && Objects.equals(this.rtcCallbackConfig, that.rtcCallbackConfig) && Objects.equals(this.reviewConfig, that.reviewConfig) && Objects.equals(this.sharedConfig, that.sharedConfig) && Objects.equals(this.viewMode, that.viewMode) && Objects.equals(this.coStreamerConfig, that.coStreamerConfig); @@ -664,6 +697,7 @@ public int hashCode() { streamKeys, backupModelAssetIds, liveEventCallbackConfig, + rtcCallbackConfig, reviewConfig, sharedConfig, viewMode, @@ -685,6 +719,7 @@ public String toString() { sb.append(" streamKeys: ").append(toIndentedString(streamKeys)).append("\n"); sb.append(" backupModelAssetIds: ").append(toIndentedString(backupModelAssetIds)).append("\n"); sb.append(" liveEventCallbackConfig: ").append(toIndentedString(liveEventCallbackConfig)).append("\n"); + sb.append(" rtcCallbackConfig: ").append(toIndentedString(rtcCallbackConfig)).append("\n"); sb.append(" reviewConfig: ").append(toIndentedString(reviewConfig)).append("\n"); sb.append(" sharedConfig: ").append(toIndentedString(sharedConfig)).append("\n"); sb.append(" viewMode: ").append(toIndentedString(viewMode)).append("\n"); diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateTrainingJobReq.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateTrainingJobReq.java index e30d967d55..82d0480b87 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateTrainingJobReq.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/CreateTrainingJobReq.java @@ -105,80 +105,10 @@ public int hashCode() { private String voiceName; - /** - * 训练语言,当前仅支持中文。 * CN: 中文 * EN: 英文 - */ - public static final class LanguageEnum { - - /** - * Enum CN for value: "CN" - */ - public static final LanguageEnum CN = new LanguageEnum("CN"); - - /** - * Enum EN for value: "EN" - */ - public static final LanguageEnum EN = new LanguageEnum("EN"); - - private static final Map STATIC_FIELDS = createStaticFields(); - - private static Map createStaticFields() { - Map map = new HashMap<>(); - map.put("CN", CN); - map.put("EN", EN); - return Collections.unmodifiableMap(map); - } - - private String value; - - LanguageEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static LanguageEnum fromValue(String value) { - if (value == null) { - return null; - } - return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new LanguageEnum(value)); - } - - public static LanguageEnum valueOf(String value) { - if (value == null) { - return null; - } - return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) - .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); - } - - @Override - public boolean equals(Object obj) { - if (obj instanceof LanguageEnum) { - return this.value.equals(((LanguageEnum) obj).value); - } - return false; - } - - @Override - public int hashCode() { - return this.value.hashCode(); - } - } - @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "language") - private LanguageEnum language; + private String language; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "create_type") @@ -258,7 +188,7 @@ public void setVoiceName(String voiceName) { this.voiceName = voiceName; } - public CreateTrainingJobReq withLanguage(LanguageEnum language) { + public CreateTrainingJobReq withLanguage(String language) { this.language = language; return this; } @@ -267,11 +197,11 @@ public CreateTrainingJobReq withLanguage(LanguageEnum language) { * 训练语言,当前仅支持中文。 * CN: 中文 * EN: 英文 * @return language */ - public LanguageEnum getLanguage() { + public String getLanguage() { return language; } - public void setLanguage(LanguageEnum language) { + public void setLanguage(String language) { this.language = language; } diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/DeleteProductRequest.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/DeleteProductRequest.java new file mode 100644 index 0000000000..14f44613da --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/DeleteProductRequest.java @@ -0,0 +1,172 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class DeleteProductRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Authorization") + + private String authorization; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + + private String xSdkDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + + private String xProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + + private String xAppUserId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "product_id") + + private String productId; + + public DeleteProductRequest withAuthorization(String authorization) { + this.authorization = authorization; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @return authorization + */ + public String getAuthorization() { + return authorization; + } + + public void setAuthorization(String authorization) { + this.authorization = authorization; + } + + public DeleteProductRequest withXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + return this; + } + + /** + * 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD'T'HHMMSS'Z')。 + * @return xSdkDate + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + public String getXSdkDate() { + return xSdkDate; + } + + public void setXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + } + + public DeleteProductRequest withXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带项目ID信息。 + * @return xProjectId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + public String getXProjectId() { + return xProjectId; + } + + public void setXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + } + + public DeleteProductRequest withXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + return this; + } + + /** + * 第三方用户ID。不允许输入中文。 + * @return xAppUserId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + public String getXAppUserId() { + return xAppUserId; + } + + public void setXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + } + + public DeleteProductRequest withProductId(String productId) { + this.productId = productId; + return this; + } + + /** + * 商品ID。 + * @return productId + */ + public String getProductId() { + return productId; + } + + public void setProductId(String productId) { + this.productId = productId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DeleteProductRequest that = (DeleteProductRequest) obj; + return Objects.equals(this.authorization, that.authorization) && Objects.equals(this.xSdkDate, that.xSdkDate) + && Objects.equals(this.xProjectId, that.xProjectId) && Objects.equals(this.xAppUserId, that.xAppUserId) + && Objects.equals(this.productId, that.productId); + } + + @Override + public int hashCode() { + return Objects.hash(authorization, xSdkDate, xProjectId, xAppUserId, productId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteProductRequest {\n"); + sb.append(" authorization: ").append(toIndentedString(authorization)).append("\n"); + sb.append(" xSdkDate: ").append(toIndentedString(xSdkDate)).append("\n"); + sb.append(" xProjectId: ").append(toIndentedString(xProjectId)).append("\n"); + sb.append(" xAppUserId: ").append(toIndentedString(xAppUserId)).append("\n"); + sb.append(" productId: ").append(toIndentedString(productId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/DeleteProductResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/DeleteProductResponse.java new file mode 100644 index 0000000000..f87a67cff2 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/DeleteProductResponse.java @@ -0,0 +1,75 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class DeleteProductResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + + public DeleteProductResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DeleteProductResponse that = (DeleteProductResponse) obj; + return Objects.equals(this.xRequestId, that.xRequestId); + } + + @Override + public int hashCode() { + return Objects.hash(xRequestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteProductResponse {\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/DigitalAssetInfo.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/DigitalAssetInfo.java index e76b93d3b0..637d9a8240 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/DigitalAssetInfo.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/DigitalAssetInfo.java @@ -18,6 +18,11 @@ */ public class DigitalAssetInfo { + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_id") + + private String projectId; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "asset_id") @@ -400,6 +405,23 @@ public int hashCode() { private List files = null; + public DigitalAssetInfo withProjectId(String projectId) { + this.projectId = projectId; + return this; + } + + /** + * 租户id + * @return projectId + */ + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + public DigitalAssetInfo withAssetId(String assetId) { this.assetId = assetId; return this; @@ -704,7 +726,8 @@ public boolean equals(java.lang.Object obj) { return false; } DigitalAssetInfo that = (DigitalAssetInfo) obj; - return Objects.equals(this.assetId, that.assetId) && Objects.equals(this.assetName, that.assetName) + return Objects.equals(this.projectId, that.projectId) && Objects.equals(this.assetId, that.assetId) + && Objects.equals(this.assetName, that.assetName) && Objects.equals(this.assetDescription, that.assetDescription) && Objects.equals(this.appUserId, that.appUserId) && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.updateTime, that.updateTime) && Objects.equals(this.assetType, that.assetType) @@ -716,7 +739,8 @@ public boolean equals(java.lang.Object obj) { @Override public int hashCode() { - return Objects.hash(assetId, + return Objects.hash(projectId, + assetId, assetName, assetDescription, appUserId, @@ -736,6 +760,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DigitalAssetInfo {\n"); + sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); sb.append(" assetId: ").append(toIndentedString(assetId)).append("\n"); sb.append(" assetName: ").append(toIndentedString(assetName)).append("\n"); sb.append(" assetDescription: ").append(toIndentedString(assetDescription)).append("\n"); diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/EmotionConfig.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/EmotionConfig.java deleted file mode 100644 index e4fcca69a2..0000000000 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/EmotionConfig.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.huaweicloud.sdk.metastudio.v1.model; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonValue; - -import java.util.Collections; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** - * 情感标签配置。 - */ -public class EmotionConfig { - - /** - * 情感标签配置。 * HAPPY:开心 * SAD:悲伤 * CALM:平静 * ANGER:愤怒 默认HAPPY。 - */ - public static final class EmotionEnum { - - /** - * Enum HAPPY for value: "HAPPY" - */ - public static final EmotionEnum HAPPY = new EmotionEnum("HAPPY"); - - /** - * Enum SAD for value: "SAD" - */ - public static final EmotionEnum SAD = new EmotionEnum("SAD"); - - /** - * Enum CALM for value: "CALM" - */ - public static final EmotionEnum CALM = new EmotionEnum("CALM"); - - /** - * Enum ANGER for value: "ANGER" - */ - public static final EmotionEnum ANGER = new EmotionEnum("ANGER"); - - private static final Map STATIC_FIELDS = createStaticFields(); - - private static Map createStaticFields() { - Map map = new HashMap<>(); - map.put("HAPPY", HAPPY); - map.put("SAD", SAD); - map.put("CALM", CALM); - map.put("ANGER", ANGER); - return Collections.unmodifiableMap(map); - } - - private String value; - - EmotionEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static EmotionEnum fromValue(String value) { - if (value == null) { - return null; - } - return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new EmotionEnum(value)); - } - - public static EmotionEnum valueOf(String value) { - if (value == null) { - return null; - } - return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) - .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); - } - - @Override - public boolean equals(Object obj) { - if (obj instanceof EmotionEnum) { - return this.value.equals(((EmotionEnum) obj).value); - } - return false; - } - - @Override - public int hashCode() { - return this.value.hashCode(); - } - } - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "emotion") - - private EmotionEnum emotion; - - public EmotionConfig withEmotion(EmotionEnum emotion) { - this.emotion = emotion; - return this; - } - - /** - * 情感标签配置。 * HAPPY:开心 * SAD:悲伤 * CALM:平静 * ANGER:愤怒 默认HAPPY。 - * @return emotion - */ - public EmotionEnum getEmotion() { - return emotion; - } - - public void setEmotion(EmotionEnum emotion) { - this.emotion = emotion; - } - - @Override - public boolean equals(java.lang.Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - EmotionConfig that = (EmotionConfig) obj; - return Objects.equals(this.emotion, that.emotion); - } - - @Override - public int hashCode() { - return Objects.hash(emotion); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class EmotionConfig {\n"); - sb.append(" emotion: ").append(toIndentedString(emotion)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ExternalVoiceAssetMeta.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ExternalVoiceAssetMeta.java index 780c5e0176..e4855b7c5e 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ExternalVoiceAssetMeta.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ExternalVoiceAssetMeta.java @@ -9,7 +9,6 @@ import java.util.HashMap; import java.util.Map; import java.util.Objects; -import java.util.function.Consumer; /** * 第三方TTS音色元数据。 @@ -17,7 +16,7 @@ public class ExternalVoiceAssetMeta { /** - * 第三方TTS供应商类型。 * XIMALAYA:喜马拉雅TTS * HUAWEI_EI:EI TTS * MOBVOI:出门问问TTS + * 第三方TTS供应商类型。 * XIMALAYA:喜马拉雅TTS * HUAWEI_EI: 华为云EI TTS * MOBVOI: 出门问问 TTSS * AUDIOX: 逻辑智能 TTSS * SINOVOICE: 捷通华声 TTSS * DATABACK: 标贝 TTSS * AISPEECH: 思必驰 TTSS */ public static final class ProviderEnum { @@ -36,6 +35,26 @@ public static final class ProviderEnum { */ public static final ProviderEnum MOBVOI = new ProviderEnum("MOBVOI"); + /** + * Enum AUDIOX for value: "AUDIOX" + */ + public static final ProviderEnum AUDIOX = new ProviderEnum("AUDIOX"); + + /** + * Enum SINOVOICE for value: "SINOVOICE" + */ + public static final ProviderEnum SINOVOICE = new ProviderEnum("SINOVOICE"); + + /** + * Enum DATABACK for value: "DATABACK" + */ + public static final ProviderEnum DATABACK = new ProviderEnum("DATABACK"); + + /** + * Enum AISPEECH for value: "AISPEECH" + */ + public static final ProviderEnum AISPEECH = new ProviderEnum("AISPEECH"); + private static final Map STATIC_FIELDS = createStaticFields(); private static Map createStaticFields() { @@ -43,6 +62,10 @@ private static Map createStaticFields() { map.put("XIMALAYA", XIMALAYA); map.put("HUAWEI_EI", HUAWEI_EI); map.put("MOBVOI", MOBVOI); + map.put("AUDIOX", AUDIOX); + map.put("SINOVOICE", SINOVOICE); + map.put("DATABACK", DATABACK); + map.put("AISPEECH", AISPEECH); return Collections.unmodifiableMap(map); } @@ -97,18 +120,13 @@ public int hashCode() { private ProviderEnum provider; - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "mobvoi_voice_meta") - - private MobvoiVoiceAssetMeta mobvoiVoiceMeta; - public ExternalVoiceAssetMeta withProvider(ProviderEnum provider) { this.provider = provider; return this; } /** - * 第三方TTS供应商类型。 * XIMALAYA:喜马拉雅TTS * HUAWEI_EI:EI TTS * MOBVOI:出门问问TTS + * 第三方TTS供应商类型。 * XIMALAYA:喜马拉雅TTS * HUAWEI_EI: 华为云EI TTS * MOBVOI: 出门问问 TTSS * AUDIOX: 逻辑智能 TTSS * SINOVOICE: 捷通华声 TTSS * DATABACK: 标贝 TTSS * AISPEECH: 思必驰 TTSS * @return provider */ public ProviderEnum getProvider() { @@ -119,32 +137,6 @@ public void setProvider(ProviderEnum provider) { this.provider = provider; } - public ExternalVoiceAssetMeta withMobvoiVoiceMeta(MobvoiVoiceAssetMeta mobvoiVoiceMeta) { - this.mobvoiVoiceMeta = mobvoiVoiceMeta; - return this; - } - - public ExternalVoiceAssetMeta withMobvoiVoiceMeta(Consumer mobvoiVoiceMetaSetter) { - if (this.mobvoiVoiceMeta == null) { - this.mobvoiVoiceMeta = new MobvoiVoiceAssetMeta(); - mobvoiVoiceMetaSetter.accept(this.mobvoiVoiceMeta); - } - - return this; - } - - /** - * Get mobvoiVoiceMeta - * @return mobvoiVoiceMeta - */ - public MobvoiVoiceAssetMeta getMobvoiVoiceMeta() { - return mobvoiVoiceMeta; - } - - public void setMobvoiVoiceMeta(MobvoiVoiceAssetMeta mobvoiVoiceMeta) { - this.mobvoiVoiceMeta = mobvoiVoiceMeta; - } - @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -154,13 +146,12 @@ public boolean equals(java.lang.Object obj) { return false; } ExternalVoiceAssetMeta that = (ExternalVoiceAssetMeta) obj; - return Objects.equals(this.provider, that.provider) - && Objects.equals(this.mobvoiVoiceMeta, that.mobvoiVoiceMeta); + return Objects.equals(this.provider, that.provider); } @Override public int hashCode() { - return Objects.hash(provider, mobvoiVoiceMeta); + return Objects.hash(provider); } @Override @@ -168,7 +159,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ExternalVoiceAssetMeta {\n"); sb.append(" provider: ").append(toIndentedString(provider)).append("\n"); - sb.append(" mobvoiVoiceMeta: ").append(toIndentedString(mobvoiVoiceMeta)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/HitCondition.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/HitCondition.java index dedc6c1ffd..3ad7994a7a 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/HitCondition.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/HitCondition.java @@ -19,7 +19,7 @@ public class HitCondition { /** - * 条件关系;取值And或者Or + * 条件关系;取值And或者Or RESERVED 为兜底回复不会去判断其他命中条件 */ public static final class RelationEnum { @@ -33,12 +33,18 @@ public static final class RelationEnum { */ public static final RelationEnum OR = new RelationEnum("OR"); + /** + * Enum RESERVED for value: "RESERVED" + */ + public static final RelationEnum RESERVED = new RelationEnum("RESERVED"); + private static final Map STATIC_FIELDS = createStaticFields(); private static Map createStaticFields() { Map map = new HashMap<>(); map.put("AND", AND); map.put("OR", OR); + map.put("RESERVED", RESERVED); return Collections.unmodifiableMap(map); } @@ -109,7 +115,7 @@ public HitCondition withRelation(RelationEnum relation) { } /** - * 条件关系;取值And或者Or + * 条件关系;取值And或者Or RESERVED 为兜底回复不会去判断其他命中条件 * @return relation */ public RelationEnum getRelation() { diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/HumanModel2DAssetMeta.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/HumanModel2DAssetMeta.java index 3b99507ed0..71ed6cc9b8 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/HumanModel2DAssetMeta.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/HumanModel2DAssetMeta.java @@ -5,10 +5,13 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; +import java.util.List; import java.util.Map; import java.util.Objects; +import java.util.function.Consumer; /** * 分身模型元数据 @@ -116,6 +119,11 @@ public int hashCode() { private String modelResolution; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "device_names") + + private List deviceNames = null; + public HumanModel2DAssetMeta withIsActionEditable(Boolean isActionEditable) { this.isActionEditable = isActionEditable; return this; @@ -201,6 +209,39 @@ public void setModelResolution(String modelResolution) { this.modelResolution = modelResolution; } + public HumanModel2DAssetMeta withDeviceNames(List deviceNames) { + this.deviceNames = deviceNames; + return this; + } + + public HumanModel2DAssetMeta addDeviceNamesItem(String deviceNamesItem) { + if (this.deviceNames == null) { + this.deviceNames = new ArrayList<>(); + } + this.deviceNames.add(deviceNamesItem); + return this; + } + + public HumanModel2DAssetMeta withDeviceNames(Consumer> deviceNamesSetter) { + if (this.deviceNames == null) { + this.deviceNames = new ArrayList<>(); + } + deviceNamesSetter.accept(this.deviceNames); + return this; + } + + /** + * 已执行编译任务 + * @return deviceNames + */ + public List getDeviceNames() { + return deviceNames; + } + + public void setDeviceNames(List deviceNames) { + this.deviceNames = deviceNames; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -214,12 +255,14 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.isRealBackground, that.isRealBackground) && Objects.equals(this.supportLive, that.supportLive) && Objects.equals(this.modelVersion, that.modelVersion) - && Objects.equals(this.modelResolution, that.modelResolution); + && Objects.equals(this.modelResolution, that.modelResolution) + && Objects.equals(this.deviceNames, that.deviceNames); } @Override public int hashCode() { - return Objects.hash(isActionEditable, isRealBackground, supportLive, modelVersion, modelResolution); + return Objects + .hash(isActionEditable, isRealBackground, supportLive, modelVersion, modelResolution, deviceNames); } @Override @@ -231,6 +274,7 @@ public String toString() { sb.append(" supportLive: ").append(toIndentedString(supportLive)).append("\n"); sb.append(" modelVersion: ").append(toIndentedString(modelVersion)).append("\n"); sb.append(" modelResolution: ").append(toIndentedString(modelResolution)).append("\n"); + sb.append(" deviceNames: ").append(toIndentedString(deviceNames)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/LargeFilesCreateReq.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/LargeFilesCreateReq.java index bd7c5b526a..80a5a4a828 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/LargeFilesCreateReq.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/LargeFilesCreateReq.java @@ -65,7 +65,7 @@ public LargeFilesCreateReq withFileSize(Long fileSize) { /** * 文件总的大小,最小1,最大5368709120。 * minimum: 1 - * maximum: 5368709120 + * maximum: 536870912000 * @return fileSize */ public Long getFileSize() { diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ListAssetsRequest.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ListAssetsRequest.java index fb8d082c26..16dab35a31 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ListAssetsRequest.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ListAssetsRequest.java @@ -5,10 +5,13 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; +import java.util.List; import java.util.Map; import java.util.Objects; +import java.util.function.Consumer; /** * Request Object @@ -171,6 +174,11 @@ public int hashCode() { private String renderEngine; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "asset_id") + + private List assetId = null; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "sex") @@ -276,6 +284,26 @@ public int hashCode() { private RoleEnum role; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_realtime_voice") + + private Boolean isRealtimeVoice; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "human_model_2d_version") + + private String humanModel2dVersion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "include_device_name") + + private String includeDeviceName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "exclude_device_name") + + private String excludeDeviceName; + public ListAssetsRequest withAuthorization(String authorization) { this.authorization = authorization; return this; @@ -556,6 +584,39 @@ public void setRenderEngine(String renderEngine) { this.renderEngine = renderEngine; } + public ListAssetsRequest withAssetId(List assetId) { + this.assetId = assetId; + return this; + } + + public ListAssetsRequest addAssetIdItem(String assetIdItem) { + if (this.assetId == null) { + this.assetId = new ArrayList<>(); + } + this.assetId.add(assetIdItem); + return this; + } + + public ListAssetsRequest withAssetId(Consumer> assetIdSetter) { + if (this.assetId == null) { + this.assetId = new ArrayList<>(); + } + assetIdSetter.accept(this.assetId); + return this; + } + + /** + * 资产id + * @return assetId + */ + public List getAssetId() { + return assetId; + } + + public void setAssetId(List assetId) { + this.assetId = assetId; + } + public ListAssetsRequest withSex(String sex) { this.sex = sex; return this; @@ -675,6 +736,74 @@ public void setRole(RoleEnum role) { this.role = role; } + public ListAssetsRequest withIsRealtimeVoice(Boolean isRealtimeVoice) { + this.isRealtimeVoice = isRealtimeVoice; + return this; + } + + /** + * 音色是否支持实时合成。仅在音色查询时有效。 > * 支持实时合成的音色,可以用于直播和智能交互场景。否则只能用于视频制作。 + * @return isRealtimeVoice + */ + public Boolean getIsRealtimeVoice() { + return isRealtimeVoice; + } + + public void setIsRealtimeVoice(Boolean isRealtimeVoice) { + this.isRealtimeVoice = isRealtimeVoice; + } + + public ListAssetsRequest withHumanModel2dVersion(String humanModel2dVersion) { + this.humanModel2dVersion = humanModel2dVersion; + return this; + } + + /** + * 模型版本 + * @return humanModel2dVersion + */ + public String getHumanModel2dVersion() { + return humanModel2dVersion; + } + + public void setHumanModel2dVersion(String humanModel2dVersion) { + this.humanModel2dVersion = humanModel2dVersion; + } + + public ListAssetsRequest withIncludeDeviceName(String includeDeviceName) { + this.includeDeviceName = includeDeviceName; + return this; + } + + /** + * 资产已执行的任务名称 + * @return includeDeviceName + */ + public String getIncludeDeviceName() { + return includeDeviceName; + } + + public void setIncludeDeviceName(String includeDeviceName) { + this.includeDeviceName = includeDeviceName; + } + + public ListAssetsRequest withExcludeDeviceName(String excludeDeviceName) { + this.excludeDeviceName = excludeDeviceName; + return this; + } + + /** + * 资产已执行的任务名称 + * @return excludeDeviceName + */ + public String getExcludeDeviceName() { + return excludeDeviceName; + } + + public void setExcludeDeviceName(String excludeDeviceName) { + this.excludeDeviceName = excludeDeviceName; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -692,11 +821,14 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.sortKey, that.sortKey) && Objects.equals(this.sortDir, that.sortDir) && Objects.equals(this.assetSource, that.assetSource) && Objects.equals(this.assetState, that.assetState) && Objects.equals(this.styleId, that.styleId) && Objects.equals(this.renderEngine, that.renderEngine) - && Objects.equals(this.sex, that.sex) && Objects.equals(this.language, that.language) - && Objects.equals(this.systemProperty, that.systemProperty) + && Objects.equals(this.assetId, that.assetId) && Objects.equals(this.sex, that.sex) + && Objects.equals(this.language, that.language) && Objects.equals(this.systemProperty, that.systemProperty) && Objects.equals(this.actionEditable, that.actionEditable) && Objects.equals(this.isMovable, that.isMovable) && Objects.equals(this.voiceProvider, that.voiceProvider) - && Objects.equals(this.role, that.role); + && Objects.equals(this.role, that.role) && Objects.equals(this.isRealtimeVoice, that.isRealtimeVoice) + && Objects.equals(this.humanModel2dVersion, that.humanModel2dVersion) + && Objects.equals(this.includeDeviceName, that.includeDeviceName) + && Objects.equals(this.excludeDeviceName, that.excludeDeviceName); } @Override @@ -717,13 +849,18 @@ public int hashCode() { assetState, styleId, renderEngine, + assetId, sex, language, systemProperty, actionEditable, isMovable, voiceProvider, - role); + role, + isRealtimeVoice, + humanModel2dVersion, + includeDeviceName, + excludeDeviceName); } @Override @@ -746,6 +883,7 @@ public String toString() { sb.append(" assetState: ").append(toIndentedString(assetState)).append("\n"); sb.append(" styleId: ").append(toIndentedString(styleId)).append("\n"); sb.append(" renderEngine: ").append(toIndentedString(renderEngine)).append("\n"); + sb.append(" assetId: ").append(toIndentedString(assetId)).append("\n"); sb.append(" sex: ").append(toIndentedString(sex)).append("\n"); sb.append(" language: ").append(toIndentedString(language)).append("\n"); sb.append(" systemProperty: ").append(toIndentedString(systemProperty)).append("\n"); @@ -753,6 +891,10 @@ public String toString() { sb.append(" isMovable: ").append(toIndentedString(isMovable)).append("\n"); sb.append(" voiceProvider: ").append(toIndentedString(voiceProvider)).append("\n"); sb.append(" role: ").append(toIndentedString(role)).append("\n"); + sb.append(" isRealtimeVoice: ").append(toIndentedString(isRealtimeVoice)).append("\n"); + sb.append(" humanModel2dVersion: ").append(toIndentedString(humanModel2dVersion)).append("\n"); + sb.append(" includeDeviceName: ").append(toIndentedString(includeDeviceName)).append("\n"); + sb.append(" excludeDeviceName: ").append(toIndentedString(excludeDeviceName)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ListProductsRequest.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ListProductsRequest.java new file mode 100644 index 0000000000..aec7c5bddc --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ListProductsRequest.java @@ -0,0 +1,376 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListProductsRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Authorization") + + private String authorization; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + + private String xSdkDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + + private String xProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + + private String xAppUserId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "offset") + + private Integer offset; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limit") + + private Integer limit; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sort_key") + + private String sortKey; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sort_dir") + + private String sortDir; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_until") + + private String createUntil; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_since") + + private String createSince; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tag") + + private String tag; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "state") + + private String state; + + public ListProductsRequest withAuthorization(String authorization) { + this.authorization = authorization; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @return authorization + */ + public String getAuthorization() { + return authorization; + } + + public void setAuthorization(String authorization) { + this.authorization = authorization; + } + + public ListProductsRequest withXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + return this; + } + + /** + * 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD'T'HHMMSS'Z')。 + * @return xSdkDate + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + public String getXSdkDate() { + return xSdkDate; + } + + public void setXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + } + + public ListProductsRequest withXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带项目ID信息。 + * @return xProjectId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + public String getXProjectId() { + return xProjectId; + } + + public void setXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + } + + public ListProductsRequest withXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + return this; + } + + /** + * 第三方用户ID。不允许输入中文。 + * @return xAppUserId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + public String getXAppUserId() { + return xAppUserId; + } + + public void setXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + } + + public ListProductsRequest withOffset(Integer offset) { + this.offset = offset; + return this; + } + + /** + * 偏移量,表示从此偏移量开始查询。 + * minimum: 0 + * maximum: 2147483647 + * @return offset + */ + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public ListProductsRequest withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 每页显示的条目数量。 + * minimum: 1 + * maximum: 100 + * @return limit + */ + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public ListProductsRequest withSortKey(String sortKey) { + this.sortKey = sortKey; + return this; + } + + /** + * 排序字段,目前只支持create_time。 + * @return sortKey + */ + public String getSortKey() { + return sortKey; + } + + public void setSortKey(String sortKey) { + this.sortKey = sortKey; + } + + public ListProductsRequest withSortDir(String sortDir) { + this.sortDir = sortDir; + return this; + } + + /** + * 排序方式。 * asc:升序 * desc:降序 默认asc升序。 + * @return sortDir + */ + public String getSortDir() { + return sortDir; + } + + public void setSortDir(String sortDir) { + this.sortDir = sortDir; + } + + public ListProductsRequest withCreateUntil(String createUntil) { + this.createUntil = createUntil; + return this; + } + + /** + * 过滤创建时间<=输入时间的记录。 + * @return createUntil + */ + public String getCreateUntil() { + return createUntil; + } + + public void setCreateUntil(String createUntil) { + this.createUntil = createUntil; + } + + public ListProductsRequest withCreateSince(String createSince) { + this.createSince = createSince; + return this; + } + + /** + * 过滤创建时间>=输入时间的记录。 + * @return createSince + */ + public String getCreateSince() { + return createSince; + } + + public void setCreateSince(String createSince) { + this.createSince = createSince; + } + + public ListProductsRequest withName(String name) { + this.name = name; + return this; + } + + /** + * 按名称模糊查询。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ListProductsRequest withTag(String tag) { + this.tag = tag; + return this; + } + + /** + * 按标签模糊查询。 + * @return tag + */ + public String getTag() { + return tag; + } + + public void setTag(String tag) { + this.tag = tag; + } + + public ListProductsRequest withState(String state) { + this.state = state; + return this; + } + + /** + * 按状态查询,多状态使用英文逗号分割。 + * @return state + */ + public String getState() { + return state; + } + + public void setState(String state) { + this.state = state; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListProductsRequest that = (ListProductsRequest) obj; + return Objects.equals(this.authorization, that.authorization) && Objects.equals(this.xSdkDate, that.xSdkDate) + && Objects.equals(this.xProjectId, that.xProjectId) && Objects.equals(this.xAppUserId, that.xAppUserId) + && Objects.equals(this.offset, that.offset) && Objects.equals(this.limit, that.limit) + && Objects.equals(this.sortKey, that.sortKey) && Objects.equals(this.sortDir, that.sortDir) + && Objects.equals(this.createUntil, that.createUntil) && Objects.equals(this.createSince, that.createSince) + && Objects.equals(this.name, that.name) && Objects.equals(this.tag, that.tag) + && Objects.equals(this.state, that.state); + } + + @Override + public int hashCode() { + return Objects.hash(authorization, + xSdkDate, + xProjectId, + xAppUserId, + offset, + limit, + sortKey, + sortDir, + createUntil, + createSince, + name, + tag, + state); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListProductsRequest {\n"); + sb.append(" authorization: ").append(toIndentedString(authorization)).append("\n"); + sb.append(" xSdkDate: ").append(toIndentedString(xSdkDate)).append("\n"); + sb.append(" xProjectId: ").append(toIndentedString(xProjectId)).append("\n"); + sb.append(" xAppUserId: ").append(toIndentedString(xAppUserId)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" sortKey: ").append(toIndentedString(sortKey)).append("\n"); + sb.append(" sortDir: ").append(toIndentedString(sortDir)).append("\n"); + sb.append(" createUntil: ").append(toIndentedString(createUntil)).append("\n"); + sb.append(" createSince: ").append(toIndentedString(createSince)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" tag: ").append(toIndentedString(tag)).append("\n"); + sb.append(" state: ").append(toIndentedString(state)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ListProductsResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ListProductsResponse.java new file mode 100644 index 0000000000..9197b1cb89 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ListProductsResponse.java @@ -0,0 +1,143 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListProductsResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "count") + + private Integer count; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "products") + + private List products = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + + public ListProductsResponse withCount(Integer count) { + this.count = count; + return this; + } + + /** + * 商品信息总数 + * minimum: 0 + * maximum: 2147483647 + * @return count + */ + public Integer getCount() { + return count; + } + + public void setCount(Integer count) { + this.count = count; + } + + public ListProductsResponse withProducts(List products) { + this.products = products; + return this; + } + + public ListProductsResponse addProductsItem(ProductDetailInfo productsItem) { + if (this.products == null) { + this.products = new ArrayList<>(); + } + this.products.add(productsItem); + return this; + } + + public ListProductsResponse withProducts(Consumer> productsSetter) { + if (this.products == null) { + this.products = new ArrayList<>(); + } + productsSetter.accept(this.products); + return this; + } + + /** + * 商品信息列表 + * @return products + */ + public List getProducts() { + return products; + } + + public void setProducts(List products) { + this.products = products; + } + + public ListProductsResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListProductsResponse that = (ListProductsResponse) obj; + return Objects.equals(this.count, that.count) && Objects.equals(this.products, that.products) + && Objects.equals(this.xRequestId, that.xRequestId); + } + + @Override + public int hashCode() { + return Objects.hash(count, products, xRequestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListProductsResponse {\n"); + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" products: ").append(toIndentedString(products)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/LiveEventCallBackConfig.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/LiveEventCallBackConfig.java index d47f72f290..55af7dfbb1 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/LiveEventCallBackConfig.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/LiveEventCallBackConfig.java @@ -24,7 +24,7 @@ public class LiveEventCallBackConfig { private String liveEventTypeCallbackUrl; /** - * 认证类型。 * NONE。URL中自带认证。 * MSS_A。HMACSHA256签名模式,在URL中追加参数:hwSecret,hwTime。取值方式:hwSecret=hmac_sha256(Key, URI(live_event_callback_url)+ hwTime)&hwTime=hex(timestamp) * RTMP_STREAM_STATE_CHANGE。 RTMP链接发生变化回调事件 * MEITUAN_DEFAULT。仅用于美团平台调用回调使用。 + * 认证类型。 * NONE。URL中自带认证。 * MSS_A。HMACSHA256签名模式,在URL中追加参数:hwSecret,hwTime。取值方式:hwSecret=hmac_sha256(Key, URI(live_event_callback_url)+ hwTime)&hwTime=hex(timestamp) * MSS_A_HEAD。HMACSHA256签名模式,参数hwSecret,hwTime放置在Head中。 取值方式:x-hw-mss-secret=hmac_sha256(Key, URI(live_event_callback_url)+ hwTime) x-hw-mss-time=hex(timestamp) * MEITUAN_DEFAULT。仅用于美团平台调用回调使用。 */ public static final class AuthTypeEnum { @@ -39,9 +39,9 @@ public static final class AuthTypeEnum { public static final AuthTypeEnum MSS_A = new AuthTypeEnum("MSS_A"); /** - * Enum RTMP_STREAM_STATE_CHANGE for value: "RTMP_STREAM_STATE_CHANGE" + * Enum MSS_A_HEAD for value: "MSS_A_HEAD" */ - public static final AuthTypeEnum RTMP_STREAM_STATE_CHANGE = new AuthTypeEnum("RTMP_STREAM_STATE_CHANGE"); + public static final AuthTypeEnum MSS_A_HEAD = new AuthTypeEnum("MSS_A_HEAD"); /** * Enum MEITUAN_DEFAULT for value: "MEITUAN_DEFAULT" @@ -54,7 +54,7 @@ private static Map createStaticFields() { Map map = new HashMap<>(); map.put("NONE", NONE); map.put("MSS_A", MSS_A); - map.put("RTMP_STREAM_STATE_CHANGE", RTMP_STREAM_STATE_CHANGE); + map.put("MSS_A_HEAD", MSS_A_HEAD); map.put("MEITUAN_DEFAULT", MEITUAN_DEFAULT); return Collections.unmodifiableMap(map); } @@ -143,7 +143,7 @@ public LiveEventCallBackConfig withAuthType(AuthTypeEnum authType) { } /** - * 认证类型。 * NONE。URL中自带认证。 * MSS_A。HMACSHA256签名模式,在URL中追加参数:hwSecret,hwTime。取值方式:hwSecret=hmac_sha256(Key, URI(live_event_callback_url)+ hwTime)&hwTime=hex(timestamp) * RTMP_STREAM_STATE_CHANGE。 RTMP链接发生变化回调事件 * MEITUAN_DEFAULT。仅用于美团平台调用回调使用。 + * 认证类型。 * NONE。URL中自带认证。 * MSS_A。HMACSHA256签名模式,在URL中追加参数:hwSecret,hwTime。取值方式:hwSecret=hmac_sha256(Key, URI(live_event_callback_url)+ hwTime)&hwTime=hex(timestamp) * MSS_A_HEAD。HMACSHA256签名模式,参数hwSecret,hwTime放置在Head中。 取值方式:x-hw-mss-secret=hmac_sha256(Key, URI(live_event_callback_url)+ hwTime) x-hw-mss-time=hex(timestamp) * MEITUAN_DEFAULT。仅用于美团平台调用回调使用。 * @return authType */ public AuthTypeEnum getAuthType() { @@ -193,7 +193,7 @@ public LiveEventCallBackConfig withCallbackEventType(Consumer> call } /** - * 回调的直播事件类型列表。 当前仅支持取值: SHOOT_SCRIPT_SWITCH,剧本段落切换事件。 RTMP_STREAM_STATE_CHANGE, RTMP链接发生变化回调事件。 回调事件结构体定义: * event_type: 事件类型。 * message: 事件描述。 SHOOT_SCRIPT_SWITCH事件回调定义如下: ```json { \"event_type\": \"SHOOT_SCRIPT_SWITCH\", \"message\":\"{\\\"room_id\\\":\\\"26f065244f754b3aa853b649a21aaf66\\\",\\\"job_id\\\":\\\"e87104f76d7546ce8a46ac6b04c49c3c\\\",\\\"scene_script_name\\\":\\\"商品1\\\",\\\"shoot_script_sequence_no\\\":\\\"2\\\",\\\"shoot_script_title\\\":\\\"段落2\\\"}\" } ``` RTMP_STREAM_STATE_CHANGE回调定义如下: ```json { \"event_type\": \"RTMP_STREAM_STATE_CHANGE\", \"message\":\"{\\\"room_id\\\":\\\"26f065244f754b3aa853b649a21aaf66\\\",\\\"job_id\\\":\\\"e87104f76d7546ce8a46ac6b04c49c3c\\\",\\\"output_url\\\":\\\"rtmp://xxx/xx/xx\\\",\\\"stream_key\\\":\\\"xxxxx\\\",\\\"state\\\":\\\"CONNECTED\\\"}\" } ``` 其中state取值: CONNECTING 链路连接中, CONNECTED 链路已连接,DISCONNECTED 链路已断开,RECONNECTING 链路重连中, END 联络不再重连,链路已结束 + * 回调的直播事件类型列表。 当前仅支持取值: SHOOT_SCRIPT_SWITCH,剧本段落切换事件。 RTMP_STREAM_STATE_CHANGE,RTMP链接发生变化回调事件。 REPLY_COMMAND_FINISH,回复播放完成通知 回调事件结构体定义: * event_type: 事件类型。 * message: 事件描述。 SHOOT_SCRIPT_SWITCH事件回调定义如下: ```json { \"event_type\": \"SHOOT_SCRIPT_SWITCH\", \"message\":\"{\\\"room_id\\\":\\\"26f065244f754b3aa853b649a21aaf66\\\",\\\"job_id\\\":\\\"e87104f76d7546ce8a46ac6b04c49c3c\\\",\\\"scene_script_name\\\":\\\"商品1\\\",\\\"shoot_script_sequence_no\\\":\\\"2\\\",\\\"shoot_script_title\\\":\\\"段落2\\\"}\" } ``` RTMP_STREAM_STATE_CHANGE回调定义如下: ```json { \"event_type\": \"RTMP_STREAM_STATE_CHANGE\", \"message\":\"{\\\"room_id\\\":\\\"26f065244f754b3aa853b649a21aaf66\\\",\\\"job_id\\\":\\\"e87104f76d7546ce8a46ac6b04c49c3c\\\",\\\"output_url\\\":\\\"rtmp://xxx/xx/xx\\\",\\\"stream_key\\\":\\\"xxxxx\\\",\\\"state\\\":\\\"CONNECTED\\\"}\" } ``` 其中state取值: CONNECTING 链路连接中, CONNECTED 链路已连接,DISCONNECTED 链路已断开,RECONNECTING 链路重连中, END 联络不再重连,链路已结束 REPLY_COMMAND_FINISH回调定义如下: ```json { \"event_type\": \"REPLY_COMMAND_FINISH\", \"message\":\"{\\\"room_id\\\":\\\"26f065244f754b3aa853b649a21aaf66\\\",\\\"job_id\\\":\\\"e87104f76d7546ce8a46ac6b04c49c3c\\\",\\\"reply_id\\\":\\\"e87104f76d7546ce8a46ac6b04c49c3c\"}\" } * @return callbackEventType */ public List getCallbackEventType() { diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/LiveRoomInteractionRuleInfo.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/LiveRoomInteractionRuleInfo.java new file mode 100644 index 0000000000..173239e5ad --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/LiveRoomInteractionRuleInfo.java @@ -0,0 +1,340 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 直播使用互动规则配置信息 + */ +public class LiveRoomInteractionRuleInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "rule_index") + + private String ruleIndex; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "rule_name") + + private String ruleName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enabled") + + private Boolean enabled; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "event_type") + + private Integer eventType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hit_condition") + + private HitCondition hitCondition; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "trigger") + + private TriggerProcess trigger; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "review_config") + + private ReviewConfig reviewConfig; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "group_id") + + private String groupId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "group_name") + + private String groupName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enabled_scenes") + + private List enabledScenes = null; + + public LiveRoomInteractionRuleInfo withRuleIndex(String ruleIndex) { + this.ruleIndex = ruleIndex; + return this; + } + + /** + * 规则索引 + * @return ruleIndex + */ + public String getRuleIndex() { + return ruleIndex; + } + + public void setRuleIndex(String ruleIndex) { + this.ruleIndex = ruleIndex; + } + + public LiveRoomInteractionRuleInfo withRuleName(String ruleName) { + this.ruleName = ruleName; + return this; + } + + /** + * 规则名称 + * @return ruleName + */ + public String getRuleName() { + return ruleName; + } + + public void setRuleName(String ruleName) { + this.ruleName = ruleName; + } + + public LiveRoomInteractionRuleInfo withEnabled(Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * 是否启用 + * @return enabled + */ + public Boolean getEnabled() { + return enabled; + } + + public void setEnabled(Boolean enabled) { + this.enabled = enabled; + } + + public LiveRoomInteractionRuleInfo withEventType(Integer eventType) { + this.eventType = eventType; + return this; + } + + /** + * 事件类型。 * 1:弹幕事件 * 2:用户入场事件 * 3:用户点赞事件 * 4:用户送礼事件 * 10: 预置话术事件 + * minimum: 0 + * maximum: 100 + * @return eventType + */ + public Integer getEventType() { + return eventType; + } + + public void setEventType(Integer eventType) { + this.eventType = eventType; + } + + public LiveRoomInteractionRuleInfo withHitCondition(HitCondition hitCondition) { + this.hitCondition = hitCondition; + return this; + } + + public LiveRoomInteractionRuleInfo withHitCondition(Consumer hitConditionSetter) { + if (this.hitCondition == null) { + this.hitCondition = new HitCondition(); + hitConditionSetter.accept(this.hitCondition); + } + + return this; + } + + /** + * Get hitCondition + * @return hitCondition + */ + public HitCondition getHitCondition() { + return hitCondition; + } + + public void setHitCondition(HitCondition hitCondition) { + this.hitCondition = hitCondition; + } + + public LiveRoomInteractionRuleInfo withTrigger(TriggerProcess trigger) { + this.trigger = trigger; + return this; + } + + public LiveRoomInteractionRuleInfo withTrigger(Consumer triggerSetter) { + if (this.trigger == null) { + this.trigger = new TriggerProcess(); + triggerSetter.accept(this.trigger); + } + + return this; + } + + /** + * Get trigger + * @return trigger + */ + public TriggerProcess getTrigger() { + return trigger; + } + + public void setTrigger(TriggerProcess trigger) { + this.trigger = trigger; + } + + public LiveRoomInteractionRuleInfo withReviewConfig(ReviewConfig reviewConfig) { + this.reviewConfig = reviewConfig; + return this; + } + + public LiveRoomInteractionRuleInfo withReviewConfig(Consumer reviewConfigSetter) { + if (this.reviewConfig == null) { + this.reviewConfig = new ReviewConfig(); + reviewConfigSetter.accept(this.reviewConfig); + } + + return this; + } + + /** + * Get reviewConfig + * @return reviewConfig + */ + public ReviewConfig getReviewConfig() { + return reviewConfig; + } + + public void setReviewConfig(ReviewConfig reviewConfig) { + this.reviewConfig = reviewConfig; + } + + public LiveRoomInteractionRuleInfo withGroupId(String groupId) { + this.groupId = groupId; + return this; + } + + /** + * 互动规则库ID。从互动库导入时携带互动库ID。 + * @return groupId + */ + public String getGroupId() { + return groupId; + } + + public void setGroupId(String groupId) { + this.groupId = groupId; + } + + public LiveRoomInteractionRuleInfo withGroupName(String groupName) { + this.groupName = groupName; + return this; + } + + /** + * 互动规则库名称。从互动库导入时携带互动库名称。 + * @return groupName + */ + public String getGroupName() { + return groupName; + } + + public void setGroupName(String groupName) { + this.groupName = groupName; + } + + public LiveRoomInteractionRuleInfo withEnabledScenes(List enabledScenes) { + this.enabledScenes = enabledScenes; + return this; + } + + public LiveRoomInteractionRuleInfo addEnabledScenesItem(String enabledScenesItem) { + if (this.enabledScenes == null) { + this.enabledScenes = new ArrayList<>(); + } + this.enabledScenes.add(enabledScenesItem); + return this; + } + + public LiveRoomInteractionRuleInfo withEnabledScenes(Consumer> enabledScenesSetter) { + if (this.enabledScenes == null) { + this.enabledScenes = new ArrayList<>(); + } + enabledScenesSetter.accept(this.enabledScenes); + return this; + } + + /** + * 规则启用场景。部分场景启用时填写。不填写为全部。 + * @return enabledScenes + */ + public List getEnabledScenes() { + return enabledScenes; + } + + public void setEnabledScenes(List enabledScenes) { + this.enabledScenes = enabledScenes; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + LiveRoomInteractionRuleInfo that = (LiveRoomInteractionRuleInfo) obj; + return Objects.equals(this.ruleIndex, that.ruleIndex) && Objects.equals(this.ruleName, that.ruleName) + && Objects.equals(this.enabled, that.enabled) && Objects.equals(this.eventType, that.eventType) + && Objects.equals(this.hitCondition, that.hitCondition) && Objects.equals(this.trigger, that.trigger) + && Objects.equals(this.reviewConfig, that.reviewConfig) && Objects.equals(this.groupId, that.groupId) + && Objects.equals(this.groupName, that.groupName) && Objects.equals(this.enabledScenes, that.enabledScenes); + } + + @Override + public int hashCode() { + return Objects.hash(ruleIndex, + ruleName, + enabled, + eventType, + hitCondition, + trigger, + reviewConfig, + groupId, + groupName, + enabledScenes); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LiveRoomInteractionRuleInfo {\n"); + sb.append(" ruleIndex: ").append(toIndentedString(ruleIndex)).append("\n"); + sb.append(" ruleName: ").append(toIndentedString(ruleName)).append("\n"); + sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n"); + sb.append(" eventType: ").append(toIndentedString(eventType)).append("\n"); + sb.append(" hitCondition: ").append(toIndentedString(hitCondition)).append("\n"); + sb.append(" trigger: ").append(toIndentedString(trigger)).append("\n"); + sb.append(" reviewConfig: ").append(toIndentedString(reviewConfig)).append("\n"); + sb.append(" groupId: ").append(toIndentedString(groupId)).append("\n"); + sb.append(" groupName: ").append(toIndentedString(groupName)).append("\n"); + sb.append(" enabledScenes: ").append(toIndentedString(enabledScenes)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/OutputAssetConfig.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/OutputAssetConfig.java index 0e8d24c81e..dcf6bfb0cb 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/OutputAssetConfig.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/OutputAssetConfig.java @@ -15,11 +15,6 @@ public class OutputAssetConfig { private String assetName; - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "is_preview_video") - - private Boolean isPreviewVideo; - public OutputAssetConfig withAssetName(String assetName) { this.assetName = assetName; return this; @@ -37,23 +32,6 @@ public void setAssetName(String assetName) { this.assetName = assetName; } - public OutputAssetConfig withIsPreviewVideo(Boolean isPreviewVideo) { - this.isPreviewVideo = isPreviewVideo; - return this; - } - - /** - * 是否是预览视频。如果是预览视频不存资产库。 > * 分身数字人视频制作不支持预览。 - * @return isPreviewVideo - */ - public Boolean getIsPreviewVideo() { - return isPreviewVideo; - } - - public void setIsPreviewVideo(Boolean isPreviewVideo) { - this.isPreviewVideo = isPreviewVideo; - } - @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -63,13 +41,12 @@ public boolean equals(java.lang.Object obj) { return false; } OutputAssetConfig that = (OutputAssetConfig) obj; - return Objects.equals(this.assetName, that.assetName) - && Objects.equals(this.isPreviewVideo, that.isPreviewVideo); + return Objects.equals(this.assetName, that.assetName); } @Override public int hashCode() { - return Objects.hash(assetName, isPreviewVideo); + return Objects.hash(assetName); } @Override @@ -77,7 +54,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class OutputAssetConfig {\n"); sb.append(" assetName: ").append(toIndentedString(assetName)).append("\n"); - sb.append(" isPreviewVideo: ").append(toIndentedString(isPreviewVideo)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ProductAssetReleation.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ProductAssetReleation.java new file mode 100644 index 0000000000..d241f37f9c --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ProductAssetReleation.java @@ -0,0 +1,213 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 更新资产组合 + */ +public class ProductAssetReleation { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "asset_item") + + private ProductMediaInfo assetItem; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "text_item") + + private ProductTextInfo textItem; + + /** + * 添加或删除资产关联 - LINK :将资产纳入管理 - UNLINK :将资产移除管理 + */ + public static final class ActionEnum { + + /** + * Enum LINK for value: "LINK" + */ + public static final ActionEnum LINK = new ActionEnum("LINK"); + + /** + * Enum UNLINK for value: "UNLINK" + */ + public static final ActionEnum UNLINK = new ActionEnum("UNLINK"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("LINK", LINK); + map.put("UNLINK", UNLINK); + return Collections.unmodifiableMap(map); + } + + private String value; + + ActionEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ActionEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new ActionEnum(value)); + } + + public static ActionEnum valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof ActionEnum) { + return this.value.equals(((ActionEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "action") + + private ActionEnum action; + + public ProductAssetReleation withAssetItem(ProductMediaInfo assetItem) { + this.assetItem = assetItem; + return this; + } + + public ProductAssetReleation withAssetItem(Consumer assetItemSetter) { + if (this.assetItem == null) { + this.assetItem = new ProductMediaInfo(); + assetItemSetter.accept(this.assetItem); + } + + return this; + } + + /** + * Get assetItem + * @return assetItem + */ + public ProductMediaInfo getAssetItem() { + return assetItem; + } + + public void setAssetItem(ProductMediaInfo assetItem) { + this.assetItem = assetItem; + } + + public ProductAssetReleation withTextItem(ProductTextInfo textItem) { + this.textItem = textItem; + return this; + } + + public ProductAssetReleation withTextItem(Consumer textItemSetter) { + if (this.textItem == null) { + this.textItem = new ProductTextInfo(); + textItemSetter.accept(this.textItem); + } + + return this; + } + + /** + * Get textItem + * @return textItem + */ + public ProductTextInfo getTextItem() { + return textItem; + } + + public void setTextItem(ProductTextInfo textItem) { + this.textItem = textItem; + } + + public ProductAssetReleation withAction(ActionEnum action) { + this.action = action; + return this; + } + + /** + * 添加或删除资产关联 - LINK :将资产纳入管理 - UNLINK :将资产移除管理 + * @return action + */ + public ActionEnum getAction() { + return action; + } + + public void setAction(ActionEnum action) { + this.action = action; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ProductAssetReleation that = (ProductAssetReleation) obj; + return Objects.equals(this.assetItem, that.assetItem) && Objects.equals(this.textItem, that.textItem) + && Objects.equals(this.action, that.action); + } + + @Override + public int hashCode() { + return Objects.hash(assetItem, textItem, action); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProductAssetReleation {\n"); + sb.append(" assetItem: ").append(toIndentedString(assetItem)).append("\n"); + sb.append(" textItem: ").append(toIndentedString(textItem)).append("\n"); + sb.append(" action: ").append(toIndentedString(action)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ProductBasicInfo.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ProductBasicInfo.java new file mode 100644 index 0000000000..1d77e10759 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ProductBasicInfo.java @@ -0,0 +1,249 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 商品基本信息 + */ +public class ProductBasicInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tags") + + private List tags = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "cover") + + private ProductCoverInfo cover; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "text_list") + + private List textList = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "asset_list") + + private List assetList = null; + + public ProductBasicInfo withName(String name) { + this.name = name; + return this; + } + + /** + * 商品名称 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ProductBasicInfo withDescription(String description) { + this.description = description; + return this; + } + + /** + * 商品描述 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public ProductBasicInfo withTags(List tags) { + this.tags = tags; + return this; + } + + public ProductBasicInfo addTagsItem(String tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + this.tags.add(tagsItem); + return this; + } + + public ProductBasicInfo withTags(Consumer> tagsSetter) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + tagsSetter.accept(this.tags); + return this; + } + + /** + * 标签。单个标签16字节,多个用逗号分隔,最多50个。 + * @return tags + */ + public List getTags() { + return tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + public ProductBasicInfo withCover(ProductCoverInfo cover) { + this.cover = cover; + return this; + } + + public ProductBasicInfo withCover(Consumer coverSetter) { + if (this.cover == null) { + this.cover = new ProductCoverInfo(); + coverSetter.accept(this.cover); + } + + return this; + } + + /** + * Get cover + * @return cover + */ + public ProductCoverInfo getCover() { + return cover; + } + + public void setCover(ProductCoverInfo cover) { + this.cover = cover; + } + + public ProductBasicInfo withTextList(List textList) { + this.textList = textList; + return this; + } + + public ProductBasicInfo addTextListItem(ProductTextInfo textListItem) { + if (this.textList == null) { + this.textList = new ArrayList<>(); + } + this.textList.add(textListItem); + return this; + } + + public ProductBasicInfo withTextList(Consumer> textListSetter) { + if (this.textList == null) { + this.textList = new ArrayList<>(); + } + textListSetter.accept(this.textList); + return this; + } + + /** + * 文本列表 + * @return textList + */ + public List getTextList() { + return textList; + } + + public void setTextList(List textList) { + this.textList = textList; + } + + public ProductBasicInfo withAssetList(List assetList) { + this.assetList = assetList; + return this; + } + + public ProductBasicInfo addAssetListItem(ProductMediaInfo assetListItem) { + if (this.assetList == null) { + this.assetList = new ArrayList<>(); + } + this.assetList.add(assetListItem); + return this; + } + + public ProductBasicInfo withAssetList(Consumer> assetListSetter) { + if (this.assetList == null) { + this.assetList = new ArrayList<>(); + } + assetListSetter.accept(this.assetList); + return this; + } + + /** + * 素材资产列表 + * @return assetList + */ + public List getAssetList() { + return assetList; + } + + public void setAssetList(List assetList) { + this.assetList = assetList; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ProductBasicInfo that = (ProductBasicInfo) obj; + return Objects.equals(this.name, that.name) && Objects.equals(this.description, that.description) + && Objects.equals(this.tags, that.tags) && Objects.equals(this.cover, that.cover) + && Objects.equals(this.textList, that.textList) && Objects.equals(this.assetList, that.assetList); + } + + @Override + public int hashCode() { + return Objects.hash(name, description, tags, cover, textList, assetList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProductBasicInfo {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" cover: ").append(toIndentedString(cover)).append("\n"); + sb.append(" textList: ").append(toIndentedString(textList)).append("\n"); + sb.append(" assetList: ").append(toIndentedString(assetList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ProductCoverDetailInfo.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ProductCoverDetailInfo.java new file mode 100644 index 0000000000..c06378b7b8 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ProductCoverDetailInfo.java @@ -0,0 +1,119 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 商品封面信息 + */ +public class ProductCoverDetailInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "asset_id") + + private String assetId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "cover_url") + + private String coverUrl; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "thumbnail_url") + + private String thumbnailUrl; + + public ProductCoverDetailInfo withAssetId(String assetId) { + this.assetId = assetId; + return this; + } + + /** + * 资产ID + * @return assetId + */ + public String getAssetId() { + return assetId; + } + + public void setAssetId(String assetId) { + this.assetId = assetId; + } + + public ProductCoverDetailInfo withCoverUrl(String coverUrl) { + this.coverUrl = coverUrl; + return this; + } + + /** + * 封面图片路径。 + * @return coverUrl + */ + public String getCoverUrl() { + return coverUrl; + } + + public void setCoverUrl(String coverUrl) { + this.coverUrl = coverUrl; + } + + public ProductCoverDetailInfo withThumbnailUrl(String thumbnailUrl) { + this.thumbnailUrl = thumbnailUrl; + return this; + } + + /** + * 缩略图路径。 + * @return thumbnailUrl + */ + public String getThumbnailUrl() { + return thumbnailUrl; + } + + public void setThumbnailUrl(String thumbnailUrl) { + this.thumbnailUrl = thumbnailUrl; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ProductCoverDetailInfo that = (ProductCoverDetailInfo) obj; + return Objects.equals(this.assetId, that.assetId) && Objects.equals(this.coverUrl, that.coverUrl) + && Objects.equals(this.thumbnailUrl, that.thumbnailUrl); + } + + @Override + public int hashCode() { + return Objects.hash(assetId, coverUrl, thumbnailUrl); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProductCoverDetailInfo {\n"); + sb.append(" assetId: ").append(toIndentedString(assetId)).append("\n"); + sb.append(" coverUrl: ").append(toIndentedString(coverUrl)).append("\n"); + sb.append(" thumbnailUrl: ").append(toIndentedString(thumbnailUrl)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/AnimationConfig.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ProductCoverInfo.java similarity index 59% rename from services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/AnimationConfig.java rename to services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ProductCoverInfo.java index 63161b6e01..75c84c1544 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/AnimationConfig.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ProductCoverInfo.java @@ -6,30 +6,30 @@ import java.util.Objects; /** - * 动作参数配置。 + * 商品封面信息 */ -public class AnimationConfig { +public class ProductCoverInfo { @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "animation") + @JsonProperty(value = "asset_id") - private String animation; + private String assetId; - public AnimationConfig withAnimation(String animation) { - this.animation = animation; + public ProductCoverInfo withAssetId(String assetId) { + this.assetId = assetId; return this; } /** - * 动作资产ID。 - * @return animation + * 资产ID + * @return assetId */ - public String getAnimation() { - return animation; + public String getAssetId() { + return assetId; } - public void setAnimation(String animation) { - this.animation = animation; + public void setAssetId(String assetId) { + this.assetId = assetId; } @Override @@ -40,20 +40,20 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - AnimationConfig that = (AnimationConfig) obj; - return Objects.equals(this.animation, that.animation); + ProductCoverInfo that = (ProductCoverInfo) obj; + return Objects.equals(this.assetId, that.assetId); } @Override public int hashCode() { - return Objects.hash(animation); + return Objects.hash(assetId); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class AnimationConfig {\n"); - sb.append(" animation: ").append(toIndentedString(animation)).append("\n"); + sb.append("class ProductCoverInfo {\n"); + sb.append(" assetId: ").append(toIndentedString(assetId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ProductDetailInfo.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ProductDetailInfo.java new file mode 100644 index 0000000000..af6860d14d --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ProductDetailInfo.java @@ -0,0 +1,431 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 商品详细信息 + */ +public class ProductDetailInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "product_id") + + private String productId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tags") + + private List tags = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "cover") + + private ProductCoverDetailInfo cover; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "text_list") + + private List textList = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "asset_list") + + private List assetList = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time") + + private String createTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_time") + + private String updateTime; + + /** + * 商品状态枚举 * ACTIVED:已激活 * UNACTIVED:未激活 * BLOCK: 被冻结,商品不可用 * DELETED:已删除 + */ + public static final class StateEnum { + + /** + * Enum ACTIVED for value: "ACTIVED" + */ + public static final StateEnum ACTIVED = new StateEnum("ACTIVED"); + + /** + * Enum UNACTIVED for value: "UNACTIVED" + */ + public static final StateEnum UNACTIVED = new StateEnum("UNACTIVED"); + + /** + * Enum BLOCK for value: "BLOCK" + */ + public static final StateEnum BLOCK = new StateEnum("BLOCK"); + + /** + * Enum DELETED for value: "DELETED" + */ + public static final StateEnum DELETED = new StateEnum("DELETED"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("ACTIVED", ACTIVED); + map.put("UNACTIVED", UNACTIVED); + map.put("BLOCK", BLOCK); + map.put("DELETED", DELETED); + return Collections.unmodifiableMap(map); + } + + private String value; + + StateEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static StateEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new StateEnum(value)); + } + + public static StateEnum valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof StateEnum) { + return this.value.equals(((StateEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "state") + + private StateEnum state; + + public ProductDetailInfo withProductId(String productId) { + this.productId = productId; + return this; + } + + /** + * 商品ID + * @return productId + */ + public String getProductId() { + return productId; + } + + public void setProductId(String productId) { + this.productId = productId; + } + + public ProductDetailInfo withName(String name) { + this.name = name; + return this; + } + + /** + * 商品名称 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ProductDetailInfo withDescription(String description) { + this.description = description; + return this; + } + + /** + * 商品描述 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public ProductDetailInfo withTags(List tags) { + this.tags = tags; + return this; + } + + public ProductDetailInfo addTagsItem(String tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + this.tags.add(tagsItem); + return this; + } + + public ProductDetailInfo withTags(Consumer> tagsSetter) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + tagsSetter.accept(this.tags); + return this; + } + + /** + * 标签。单个标签16字节,多个用逗号分隔,最多50个。 + * @return tags + */ + public List getTags() { + return tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + public ProductDetailInfo withCover(ProductCoverDetailInfo cover) { + this.cover = cover; + return this; + } + + public ProductDetailInfo withCover(Consumer coverSetter) { + if (this.cover == null) { + this.cover = new ProductCoverDetailInfo(); + coverSetter.accept(this.cover); + } + + return this; + } + + /** + * Get cover + * @return cover + */ + public ProductCoverDetailInfo getCover() { + return cover; + } + + public void setCover(ProductCoverDetailInfo cover) { + this.cover = cover; + } + + public ProductDetailInfo withTextList(List textList) { + this.textList = textList; + return this; + } + + public ProductDetailInfo addTextListItem(ProductTextInfo textListItem) { + if (this.textList == null) { + this.textList = new ArrayList<>(); + } + this.textList.add(textListItem); + return this; + } + + public ProductDetailInfo withTextList(Consumer> textListSetter) { + if (this.textList == null) { + this.textList = new ArrayList<>(); + } + textListSetter.accept(this.textList); + return this; + } + + /** + * 文本列表 + * @return textList + */ + public List getTextList() { + return textList; + } + + public void setTextList(List textList) { + this.textList = textList; + } + + public ProductDetailInfo withAssetList(List assetList) { + this.assetList = assetList; + return this; + } + + public ProductDetailInfo addAssetListItem(ProductMediaDetailInfo assetListItem) { + if (this.assetList == null) { + this.assetList = new ArrayList<>(); + } + this.assetList.add(assetListItem); + return this; + } + + public ProductDetailInfo withAssetList(Consumer> assetListSetter) { + if (this.assetList == null) { + this.assetList = new ArrayList<>(); + } + assetListSetter.accept(this.assetList); + return this; + } + + /** + * 素材资产列表 + * @return assetList + */ + public List getAssetList() { + return assetList; + } + + public void setAssetList(List assetList) { + this.assetList = assetList; + } + + public ProductDetailInfo withCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * 商品创建时间,格式遵循:RFC 3339。 例 “2020-07-30T10:43:17Z”。 + * @return createTime + */ + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public ProductDetailInfo withUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * 商品更新时间,格式遵循:RFC 3339。 例 “2020-07-30T10:43:17Z”。 + * @return updateTime + */ + public String getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(String updateTime) { + this.updateTime = updateTime; + } + + public ProductDetailInfo withState(StateEnum state) { + this.state = state; + return this; + } + + /** + * 商品状态枚举 * ACTIVED:已激活 * UNACTIVED:未激活 * BLOCK: 被冻结,商品不可用 * DELETED:已删除 + * @return state + */ + public StateEnum getState() { + return state; + } + + public void setState(StateEnum state) { + this.state = state; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ProductDetailInfo that = (ProductDetailInfo) obj; + return Objects.equals(this.productId, that.productId) && Objects.equals(this.name, that.name) + && Objects.equals(this.description, that.description) && Objects.equals(this.tags, that.tags) + && Objects.equals(this.cover, that.cover) && Objects.equals(this.textList, that.textList) + && Objects.equals(this.assetList, that.assetList) && Objects.equals(this.createTime, that.createTime) + && Objects.equals(this.updateTime, that.updateTime) && Objects.equals(this.state, that.state); + } + + @Override + public int hashCode() { + return Objects + .hash(productId, name, description, tags, cover, textList, assetList, createTime, updateTime, state); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProductDetailInfo {\n"); + sb.append(" productId: ").append(toIndentedString(productId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" cover: ").append(toIndentedString(cover)).append("\n"); + sb.append(" textList: ").append(toIndentedString(textList)).append("\n"); + sb.append(" assetList: ").append(toIndentedString(assetList)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); + sb.append(" state: ").append(toIndentedString(state)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ProductMediaDetailInfo.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ProductMediaDetailInfo.java new file mode 100644 index 0000000000..99b024e71c --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ProductMediaDetailInfo.java @@ -0,0 +1,319 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** + * ProductMediaDetailInfo + */ +public class ProductMediaDetailInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "asset_id") + + private String assetId; + + /** + * 资产类型 * IMAGE:图片 * VIDEO:视频 * AUDIO:音频 + */ + public static final class AssetTypeEnum { + + /** + * Enum IMAGE for value: "IMAGE" + */ + public static final AssetTypeEnum IMAGE = new AssetTypeEnum("IMAGE"); + + /** + * Enum VIDEO for value: "VIDEO" + */ + public static final AssetTypeEnum VIDEO = new AssetTypeEnum("VIDEO"); + + /** + * Enum AUDIO for value: "AUDIO" + */ + public static final AssetTypeEnum AUDIO = new AssetTypeEnum("AUDIO"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("IMAGE", IMAGE); + map.put("VIDEO", VIDEO); + map.put("AUDIO", AUDIO); + return Collections.unmodifiableMap(map); + } + + private String value; + + AssetTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static AssetTypeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new AssetTypeEnum(value)); + } + + public static AssetTypeEnum valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof AssetTypeEnum) { + return this.value.equals(((AssetTypeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "asset_type") + + private AssetTypeEnum assetType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "order") + + private Integer order; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "asset_name") + + private String assetName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "asset_state") + + private String assetState; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "cover_url") + + private String coverUrl; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "thumbnail_url") + + private String thumbnailUrl; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "main_url") + + private String mainUrl; + + public ProductMediaDetailInfo withAssetId(String assetId) { + this.assetId = assetId; + return this; + } + + /** + * 资产ID + * @return assetId + */ + public String getAssetId() { + return assetId; + } + + public void setAssetId(String assetId) { + this.assetId = assetId; + } + + public ProductMediaDetailInfo withAssetType(AssetTypeEnum assetType) { + this.assetType = assetType; + return this; + } + + /** + * 资产类型 * IMAGE:图片 * VIDEO:视频 * AUDIO:音频 + * @return assetType + */ + public AssetTypeEnum getAssetType() { + return assetType; + } + + public void setAssetType(AssetTypeEnum assetType) { + this.assetType = assetType; + } + + public ProductMediaDetailInfo withOrder(Integer order) { + this.order = order; + return this; + } + + /** + * 资产次序。不设置或者0表示按照加入时间先后排序。业务上将次序最靠前的图片设置为商品封面。 + * minimum: 0 + * maximum: 300 + * @return order + */ + public Integer getOrder() { + return order; + } + + public void setOrder(Integer order) { + this.order = order; + } + + public ProductMediaDetailInfo withAssetName(String assetName) { + this.assetName = assetName; + return this; + } + + /** + * 资产名称。 + * @return assetName + */ + public String getAssetName() { + return assetName; + } + + public void setAssetName(String assetName) { + this.assetName = assetName; + } + + public ProductMediaDetailInfo withAssetState(String assetState) { + this.assetState = assetState; + return this; + } + + /** + * 资产状态。 + * @return assetState + */ + public String getAssetState() { + return assetState; + } + + public void setAssetState(String assetState) { + this.assetState = assetState; + } + + public ProductMediaDetailInfo withCoverUrl(String coverUrl) { + this.coverUrl = coverUrl; + return this; + } + + /** + * 封面图片路径。 + * @return coverUrl + */ + public String getCoverUrl() { + return coverUrl; + } + + public void setCoverUrl(String coverUrl) { + this.coverUrl = coverUrl; + } + + public ProductMediaDetailInfo withThumbnailUrl(String thumbnailUrl) { + this.thumbnailUrl = thumbnailUrl; + return this; + } + + /** + * 缩略图路径。 + * @return thumbnailUrl + */ + public String getThumbnailUrl() { + return thumbnailUrl; + } + + public void setThumbnailUrl(String thumbnailUrl) { + this.thumbnailUrl = thumbnailUrl; + } + + public ProductMediaDetailInfo withMainUrl(String mainUrl) { + this.mainUrl = mainUrl; + return this; + } + + /** + * 缩略图路径。 + * @return mainUrl + */ + public String getMainUrl() { + return mainUrl; + } + + public void setMainUrl(String mainUrl) { + this.mainUrl = mainUrl; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ProductMediaDetailInfo that = (ProductMediaDetailInfo) obj; + return Objects.equals(this.assetId, that.assetId) && Objects.equals(this.assetType, that.assetType) + && Objects.equals(this.order, that.order) && Objects.equals(this.assetName, that.assetName) + && Objects.equals(this.assetState, that.assetState) && Objects.equals(this.coverUrl, that.coverUrl) + && Objects.equals(this.thumbnailUrl, that.thumbnailUrl) && Objects.equals(this.mainUrl, that.mainUrl); + } + + @Override + public int hashCode() { + return Objects.hash(assetId, assetType, order, assetName, assetState, coverUrl, thumbnailUrl, mainUrl); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProductMediaDetailInfo {\n"); + sb.append(" assetId: ").append(toIndentedString(assetId)).append("\n"); + sb.append(" assetType: ").append(toIndentedString(assetType)).append("\n"); + sb.append(" order: ").append(toIndentedString(order)).append("\n"); + sb.append(" assetName: ").append(toIndentedString(assetName)).append("\n"); + sb.append(" assetState: ").append(toIndentedString(assetState)).append("\n"); + sb.append(" coverUrl: ").append(toIndentedString(coverUrl)).append("\n"); + sb.append(" thumbnailUrl: ").append(toIndentedString(thumbnailUrl)).append("\n"); + sb.append(" mainUrl: ").append(toIndentedString(mainUrl)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ProductMediaInfo.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ProductMediaInfo.java new file mode 100644 index 0000000000..011e7a8065 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ProductMediaInfo.java @@ -0,0 +1,202 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** + * 商品素材信息 + */ +public class ProductMediaInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "asset_id") + + private String assetId; + + /** + * 资产类型 * IMAGE:图片 * VIDEO:视频 * AUDIO:音频 + */ + public static final class AssetTypeEnum { + + /** + * Enum IMAGE for value: "IMAGE" + */ + public static final AssetTypeEnum IMAGE = new AssetTypeEnum("IMAGE"); + + /** + * Enum VIDEO for value: "VIDEO" + */ + public static final AssetTypeEnum VIDEO = new AssetTypeEnum("VIDEO"); + + /** + * Enum AUDIO for value: "AUDIO" + */ + public static final AssetTypeEnum AUDIO = new AssetTypeEnum("AUDIO"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("IMAGE", IMAGE); + map.put("VIDEO", VIDEO); + map.put("AUDIO", AUDIO); + return Collections.unmodifiableMap(map); + } + + private String value; + + AssetTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static AssetTypeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new AssetTypeEnum(value)); + } + + public static AssetTypeEnum valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof AssetTypeEnum) { + return this.value.equals(((AssetTypeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "asset_type") + + private AssetTypeEnum assetType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "order") + + private Integer order; + + public ProductMediaInfo withAssetId(String assetId) { + this.assetId = assetId; + return this; + } + + /** + * 资产ID + * @return assetId + */ + public String getAssetId() { + return assetId; + } + + public void setAssetId(String assetId) { + this.assetId = assetId; + } + + public ProductMediaInfo withAssetType(AssetTypeEnum assetType) { + this.assetType = assetType; + return this; + } + + /** + * 资产类型 * IMAGE:图片 * VIDEO:视频 * AUDIO:音频 + * @return assetType + */ + public AssetTypeEnum getAssetType() { + return assetType; + } + + public void setAssetType(AssetTypeEnum assetType) { + this.assetType = assetType; + } + + public ProductMediaInfo withOrder(Integer order) { + this.order = order; + return this; + } + + /** + * 资产次序。不设置或者0表示按照加入时间先后排序。业务上将次序最靠前的图片设置为商品封面。 + * minimum: 0 + * maximum: 300 + * @return order + */ + public Integer getOrder() { + return order; + } + + public void setOrder(Integer order) { + this.order = order; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ProductMediaInfo that = (ProductMediaInfo) obj; + return Objects.equals(this.assetId, that.assetId) && Objects.equals(this.assetType, that.assetType) + && Objects.equals(this.order, that.order); + } + + @Override + public int hashCode() { + return Objects.hash(assetId, assetType, order); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProductMediaInfo {\n"); + sb.append(" assetId: ").append(toIndentedString(assetId)).append("\n"); + sb.append(" assetType: ").append(toIndentedString(assetType)).append("\n"); + sb.append(" order: ").append(toIndentedString(order)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ProductTextInfo.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ProductTextInfo.java new file mode 100644 index 0000000000..9e83334749 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ProductTextInfo.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 商品文本信息 + */ +public class ProductTextInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "title") + + private String title; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "text") + + private String text; + + public ProductTextInfo withTitle(String title) { + this.title = title; + return this; + } + + /** + * 文本标题 + * @return title + */ + public String getTitle() { + return title; + } + + public void setTitle(String title) { + this.title = title; + } + + public ProductTextInfo withText(String text) { + this.text = text; + return this; + } + + /** + * 文本 + * @return text + */ + public String getText() { + return text; + } + + public void setText(String text) { + this.text = text; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ProductTextInfo that = (ProductTextInfo) obj; + return Objects.equals(this.title, that.title) && Objects.equals(this.text, that.text); + } + + @Override + public int hashCode() { + return Objects.hash(title, text); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProductTextInfo {\n"); + sb.append(" title: ").append(toIndentedString(title)).append("\n"); + sb.append(" text: ").append(toIndentedString(text)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/RTCLiveEventCallBackConfig.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/RTCLiveEventCallBackConfig.java new file mode 100644 index 0000000000..db66c7b410 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/RTCLiveEventCallBackConfig.java @@ -0,0 +1,91 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * RTC回调事件配置。兼容处理,未携带配置则默认订阅LIVE_PROGRESS + */ +public class RTCLiveEventCallBackConfig { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "rtc_callback_event_type") + + private List rtcCallbackEventType = null; + + public RTCLiveEventCallBackConfig withRtcCallbackEventType(List rtcCallbackEventType) { + this.rtcCallbackEventType = rtcCallbackEventType; + return this; + } + + public RTCLiveEventCallBackConfig addRtcCallbackEventTypeItem(String rtcCallbackEventTypeItem) { + if (this.rtcCallbackEventType == null) { + this.rtcCallbackEventType = new ArrayList<>(); + } + this.rtcCallbackEventType.add(rtcCallbackEventTypeItem); + return this; + } + + public RTCLiveEventCallBackConfig withRtcCallbackEventType(Consumer> rtcCallbackEventTypeSetter) { + if (this.rtcCallbackEventType == null) { + this.rtcCallbackEventType = new ArrayList<>(); + } + rtcCallbackEventTypeSetter.accept(this.rtcCallbackEventType); + return this; + } + + /** + * RTC回调的直播事件类型列表。 当前仅支持取值: LIVE_PROGRESS,直播剧本进度通知。 REPLY_COMMAND_FINISH,回复播放完成通知。 回调事件结构体定义: * message_type: 消息类型。 * data: 消息描述。 LIVE_PROGRESS事件回调定义如下: ```json { \"message_type\": \"live_progress_notify\", \"data\": { \"script_name\": \"场景一\", \"shoot_script_sequence_no\": 2, \"shoot_script_title\": \"引导语\", \"offset\": \"247\", \"reply_id\": \"e87104f76d7546ce8a46ac6b04c49c3c\" } } ``` REPLY_COMMAND_FINISH回调定义如下: ```json { \"message_type\": \"reply_command_finish_notify\", \"data\":\"{ \"reply_id\":\"e87104f76d7546ce8a46ac6b04c49c3c\" }\" } ``` + * @return rtcCallbackEventType + */ + public List getRtcCallbackEventType() { + return rtcCallbackEventType; + } + + public void setRtcCallbackEventType(List rtcCallbackEventType) { + this.rtcCallbackEventType = rtcCallbackEventType; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + RTCLiveEventCallBackConfig that = (RTCLiveEventCallBackConfig) obj; + return Objects.equals(this.rtcCallbackEventType, that.rtcCallbackEventType); + } + + @Override + public int hashCode() { + return Objects.hash(rtcCallbackEventType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RTCLiveEventCallBackConfig {\n"); + sb.append(" rtcCallbackEventType: ").append(toIndentedString(rtcCallbackEventType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/RobotInfo.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/RobotInfo.java index a4e9dec73b..646cfbe9a7 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/RobotInfo.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/RobotInfo.java @@ -105,6 +105,16 @@ public class RobotInfo { private String sisProjectId; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enable_hot_words") + + private Boolean enableHotWords; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enable_question_audit") + + private Boolean enableQuestionAudit; + public RobotInfo withRobotId(String robotId) { this.robotId = robotId; return this; @@ -438,6 +448,40 @@ public void setSisProjectId(String sisProjectId) { this.sisProjectId = sisProjectId; } + public RobotInfo withEnableHotWords(Boolean enableHotWords) { + this.enableHotWords = enableHotWords; + return this; + } + + /** + * 是否开启热词 + * @return enableHotWords + */ + public Boolean getEnableHotWords() { + return enableHotWords; + } + + public void setEnableHotWords(Boolean enableHotWords) { + this.enableHotWords = enableHotWords; + } + + public RobotInfo withEnableQuestionAudit(Boolean enableQuestionAudit) { + this.enableQuestionAudit = enableQuestionAudit; + return this; + } + + /** + * 是否开启提问文本审核开关 + * @return enableQuestionAudit + */ + public Boolean getEnableQuestionAudit() { + return enableQuestionAudit; + } + + public void setEnableQuestionAudit(Boolean enableQuestionAudit) { + this.enableQuestionAudit = enableQuestionAudit; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -456,7 +500,9 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.isStream, that.isStream) && Objects.equals(this.chatRounds, that.chatRounds) && Objects.equals(this.isIflyProduction, that.isIflyProduction) && Objects.equals(this.tailSilenceTime, that.tailSilenceTime) && Objects.equals(this.roleId, that.roleId) - && Objects.equals(this.sisRegion, that.sisRegion) && Objects.equals(this.sisProjectId, that.sisProjectId); + && Objects.equals(this.sisRegion, that.sisRegion) && Objects.equals(this.sisProjectId, that.sisProjectId) + && Objects.equals(this.enableHotWords, that.enableHotWords) + && Objects.equals(this.enableQuestionAudit, that.enableQuestionAudit); } @Override @@ -479,7 +525,9 @@ public int hashCode() { tailSilenceTime, roleId, sisRegion, - sisProjectId); + sisProjectId, + enableHotWords, + enableQuestionAudit); } @Override @@ -505,6 +553,8 @@ public String toString() { sb.append(" roleId: ").append(toIndentedString(roleId)).append("\n"); sb.append(" sisRegion: ").append(toIndentedString(sisRegion)).append("\n"); sb.append(" sisProjectId: ").append(toIndentedString(sisProjectId)).append("\n"); + sb.append(" enableHotWords: ").append(toIndentedString(enableHotWords)).append("\n"); + sb.append(" enableQuestionAudit: ").append(toIndentedString(enableQuestionAudit)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/SetProductAssetRequest.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/SetProductAssetRequest.java new file mode 100644 index 0000000000..cf29f1f09b --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/SetProductAssetRequest.java @@ -0,0 +1,205 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class SetProductAssetRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Authorization") + + private String authorization; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + + private String xSdkDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + + private String xProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + + private String xAppUserId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "product_id") + + private String productId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private ProductAssetReleation body; + + public SetProductAssetRequest withAuthorization(String authorization) { + this.authorization = authorization; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @return authorization + */ + public String getAuthorization() { + return authorization; + } + + public void setAuthorization(String authorization) { + this.authorization = authorization; + } + + public SetProductAssetRequest withXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + return this; + } + + /** + * 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD'T'HHMMSS'Z')。 + * @return xSdkDate + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + public String getXSdkDate() { + return xSdkDate; + } + + public void setXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + } + + public SetProductAssetRequest withXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带项目ID信息。 + * @return xProjectId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + public String getXProjectId() { + return xProjectId; + } + + public void setXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + } + + public SetProductAssetRequest withXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + return this; + } + + /** + * 第三方用户ID。不允许输入中文。 + * @return xAppUserId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + public String getXAppUserId() { + return xAppUserId; + } + + public void setXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + } + + public SetProductAssetRequest withProductId(String productId) { + this.productId = productId; + return this; + } + + /** + * 商品ID。 + * @return productId + */ + public String getProductId() { + return productId; + } + + public void setProductId(String productId) { + this.productId = productId; + } + + public SetProductAssetRequest withBody(ProductAssetReleation body) { + this.body = body; + return this; + } + + public SetProductAssetRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new ProductAssetReleation(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public ProductAssetReleation getBody() { + return body; + } + + public void setBody(ProductAssetReleation body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + SetProductAssetRequest that = (SetProductAssetRequest) obj; + return Objects.equals(this.authorization, that.authorization) && Objects.equals(this.xSdkDate, that.xSdkDate) + && Objects.equals(this.xProjectId, that.xProjectId) && Objects.equals(this.xAppUserId, that.xAppUserId) + && Objects.equals(this.productId, that.productId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(authorization, xSdkDate, xProjectId, xAppUserId, productId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SetProductAssetRequest {\n"); + sb.append(" authorization: ").append(toIndentedString(authorization)).append("\n"); + sb.append(" xSdkDate: ").append(toIndentedString(xSdkDate)).append("\n"); + sb.append(" xProjectId: ").append(toIndentedString(xProjectId)).append("\n"); + sb.append(" xAppUserId: ").append(toIndentedString(xAppUserId)).append("\n"); + sb.append(" productId: ").append(toIndentedString(productId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/SetProductAssetResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/SetProductAssetResponse.java new file mode 100644 index 0000000000..348bc782e5 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/SetProductAssetResponse.java @@ -0,0 +1,75 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class SetProductAssetResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + + public SetProductAssetResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + SetProductAssetResponse that = (SetProductAssetResponse) obj; + return Objects.equals(this.xRequestId, that.xRequestId); + } + + @Override + public int hashCode() { + return Objects.hash(xRequestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SetProductAssetResponse {\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShootScript.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShootScript.java index 3a37d3709a..ddeaf267c8 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShootScript.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShootScript.java @@ -98,21 +98,11 @@ public int hashCode() { private TextConfig textConfig; - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "animation_config") - - private List animationConfig = null; - @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "background_config") private List backgroundConfig = null; - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "emotion_config") - - private List emotionConfig = null; - @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "layer_config") @@ -161,39 +151,6 @@ public void setTextConfig(TextConfig textConfig) { this.textConfig = textConfig; } - public ShootScript withAnimationConfig(List animationConfig) { - this.animationConfig = animationConfig; - return this; - } - - public ShootScript addAnimationConfigItem(AnimationConfig animationConfigItem) { - if (this.animationConfig == null) { - this.animationConfig = new ArrayList<>(); - } - this.animationConfig.add(animationConfigItem); - return this; - } - - public ShootScript withAnimationConfig(Consumer> animationConfigSetter) { - if (this.animationConfig == null) { - this.animationConfig = new ArrayList<>(); - } - animationConfigSetter.accept(this.animationConfig); - return this; - } - - /** - * 动作配置。 > * 推荐使用text_config中插入动作标签,不配置animation_config。 > * 使用animation_config方式配置动作,在整个讲解过程中动作循环播放。 > * 分身数字人视频制作时此参数不生效。 - * @return animationConfig - */ - public List getAnimationConfig() { - return animationConfig; - } - - public void setAnimationConfig(List animationConfig) { - this.animationConfig = animationConfig; - } - public ShootScript withBackgroundConfig(List backgroundConfig) { this.backgroundConfig = backgroundConfig; return this; @@ -227,39 +184,6 @@ public void setBackgroundConfig(List backgroundConfig) { this.backgroundConfig = backgroundConfig; } - public ShootScript withEmotionConfig(List emotionConfig) { - this.emotionConfig = emotionConfig; - return this; - } - - public ShootScript addEmotionConfigItem(EmotionConfig emotionConfigItem) { - if (this.emotionConfig == null) { - this.emotionConfig = new ArrayList<>(); - } - this.emotionConfig.add(emotionConfigItem); - return this; - } - - public ShootScript withEmotionConfig(Consumer> emotionConfigSetter) { - if (this.emotionConfig == null) { - this.emotionConfig = new ArrayList<>(); - } - emotionConfigSetter.accept(this.emotionConfig); - return this; - } - - /** - * 情感标签配置。 > * 分身数字人视频制作时此参数不生效。 > * 推荐在text_config中插入情感标签,此参数将被废弃。 - * @return emotionConfig - */ - public List getEmotionConfig() { - return emotionConfig; - } - - public void setEmotionConfig(List emotionConfig) { - this.emotionConfig = emotionConfig; - } - public ShootScript withLayerConfig(List layerConfig) { this.layerConfig = layerConfig; return this; @@ -303,15 +227,13 @@ public boolean equals(java.lang.Object obj) { } ShootScript that = (ShootScript) obj; return Objects.equals(this.scriptType, that.scriptType) && Objects.equals(this.textConfig, that.textConfig) - && Objects.equals(this.animationConfig, that.animationConfig) && Objects.equals(this.backgroundConfig, that.backgroundConfig) - && Objects.equals(this.emotionConfig, that.emotionConfig) && Objects.equals(this.layerConfig, that.layerConfig); } @Override public int hashCode() { - return Objects.hash(scriptType, textConfig, animationConfig, backgroundConfig, emotionConfig, layerConfig); + return Objects.hash(scriptType, textConfig, backgroundConfig, layerConfig); } @Override @@ -320,9 +242,7 @@ public String toString() { sb.append("class ShootScript {\n"); sb.append(" scriptType: ").append(toIndentedString(scriptType)).append("\n"); sb.append(" textConfig: ").append(toIndentedString(textConfig)).append("\n"); - sb.append(" animationConfig: ").append(toIndentedString(animationConfig)).append("\n"); sb.append(" backgroundConfig: ").append(toIndentedString(backgroundConfig)).append("\n"); - sb.append(" emotionConfig: ").append(toIndentedString(emotionConfig)).append("\n"); sb.append(" layerConfig: ").append(toIndentedString(layerConfig)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShootScriptDetail.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShootScriptDetail.java index 798007dee8..f9427de23b 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShootScriptDetail.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShootScriptDetail.java @@ -98,21 +98,11 @@ public int hashCode() { private TextConfig textConfig; - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "animation_config") - - private List animationConfig = null; - @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "background_config") private List backgroundConfig = null; - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "emotion_config") - - private List emotionConfig = null; - @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "layer_config") @@ -166,39 +156,6 @@ public void setTextConfig(TextConfig textConfig) { this.textConfig = textConfig; } - public ShootScriptDetail withAnimationConfig(List animationConfig) { - this.animationConfig = animationConfig; - return this; - } - - public ShootScriptDetail addAnimationConfigItem(AnimationConfig animationConfigItem) { - if (this.animationConfig == null) { - this.animationConfig = new ArrayList<>(); - } - this.animationConfig.add(animationConfigItem); - return this; - } - - public ShootScriptDetail withAnimationConfig(Consumer> animationConfigSetter) { - if (this.animationConfig == null) { - this.animationConfig = new ArrayList<>(); - } - animationConfigSetter.accept(this.animationConfig); - return this; - } - - /** - * 动作配置。 > * 推荐使用text_config中插入动作标签,不配置animation_config。 > * 使用animation_config方式配置动作,在整个讲解过程中动作循环播放。 > * 分身数字人视频制作时此参数不生效。 - * @return animationConfig - */ - public List getAnimationConfig() { - return animationConfig; - } - - public void setAnimationConfig(List animationConfig) { - this.animationConfig = animationConfig; - } - public ShootScriptDetail withBackgroundConfig(List backgroundConfig) { this.backgroundConfig = backgroundConfig; return this; @@ -232,39 +189,6 @@ public void setBackgroundConfig(List backgroundConfig) { this.backgroundConfig = backgroundConfig; } - public ShootScriptDetail withEmotionConfig(List emotionConfig) { - this.emotionConfig = emotionConfig; - return this; - } - - public ShootScriptDetail addEmotionConfigItem(EmotionConfig emotionConfigItem) { - if (this.emotionConfig == null) { - this.emotionConfig = new ArrayList<>(); - } - this.emotionConfig.add(emotionConfigItem); - return this; - } - - public ShootScriptDetail withEmotionConfig(Consumer> emotionConfigSetter) { - if (this.emotionConfig == null) { - this.emotionConfig = new ArrayList<>(); - } - emotionConfigSetter.accept(this.emotionConfig); - return this; - } - - /** - * 情感标签配置。 > * 分身数字人视频制作时此参数不生效。 > * 推荐在text_config中插入情感标签,此参数将被废弃。 - * @return emotionConfig - */ - public List getEmotionConfig() { - return emotionConfig; - } - - public void setEmotionConfig(List emotionConfig) { - this.emotionConfig = emotionConfig; - } - public ShootScriptDetail withLayerConfig(List layerConfig) { this.layerConfig = layerConfig; return this; @@ -325,17 +249,14 @@ public boolean equals(java.lang.Object obj) { } ShootScriptDetail that = (ShootScriptDetail) obj; return Objects.equals(this.scriptType, that.scriptType) && Objects.equals(this.textConfig, that.textConfig) - && Objects.equals(this.animationConfig, that.animationConfig) && Objects.equals(this.backgroundConfig, that.backgroundConfig) - && Objects.equals(this.emotionConfig, that.emotionConfig) && Objects.equals(this.layerConfig, that.layerConfig) && Objects.equals(this.thumbnailUrl, that.thumbnailUrl); } @Override public int hashCode() { - return Objects - .hash(scriptType, textConfig, animationConfig, backgroundConfig, emotionConfig, layerConfig, thumbnailUrl); + return Objects.hash(scriptType, textConfig, backgroundConfig, layerConfig, thumbnailUrl); } @Override @@ -344,9 +265,7 @@ public String toString() { sb.append("class ShootScriptDetail {\n"); sb.append(" scriptType: ").append(toIndentedString(scriptType)).append("\n"); sb.append(" textConfig: ").append(toIndentedString(textConfig)).append("\n"); - sb.append(" animationConfig: ").append(toIndentedString(animationConfig)).append("\n"); sb.append(" backgroundConfig: ").append(toIndentedString(backgroundConfig)).append("\n"); - sb.append(" emotionConfig: ").append(toIndentedString(emotionConfig)).append("\n"); sb.append(" layerConfig: ").append(toIndentedString(layerConfig)).append("\n"); sb.append(" thumbnailUrl: ").append(toIndentedString(thumbnailUrl)).append("\n"); sb.append("}"); diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowAssetResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowAssetResponse.java index d6fc9ab8fe..5f79296b81 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowAssetResponse.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowAssetResponse.java @@ -19,6 +19,11 @@ */ public class ShowAssetResponse extends SdkResponse { + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_id") + + private String projectId; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "asset_id") @@ -406,6 +411,23 @@ public int hashCode() { private String xRequestId; + public ShowAssetResponse withProjectId(String projectId) { + this.projectId = projectId; + return this; + } + + /** + * 租户id + * @return projectId + */ + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + public ShowAssetResponse withAssetId(String assetId) { this.assetId = assetId; return this; @@ -729,7 +751,8 @@ public boolean equals(java.lang.Object obj) { return false; } ShowAssetResponse that = (ShowAssetResponse) obj; - return Objects.equals(this.assetId, that.assetId) && Objects.equals(this.assetName, that.assetName) + return Objects.equals(this.projectId, that.projectId) && Objects.equals(this.assetId, that.assetId) + && Objects.equals(this.assetName, that.assetName) && Objects.equals(this.assetDescription, that.assetDescription) && Objects.equals(this.appUserId, that.appUserId) && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.updateTime, that.updateTime) && Objects.equals(this.assetType, that.assetType) @@ -742,7 +765,8 @@ public boolean equals(java.lang.Object obj) { @Override public int hashCode() { - return Objects.hash(assetId, + return Objects.hash(projectId, + assetId, assetName, assetDescription, appUserId, @@ -763,6 +787,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ShowAssetResponse {\n"); + sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); sb.append(" assetId: ").append(toIndentedString(assetId)).append("\n"); sb.append(" assetName: ").append(toIndentedString(assetName)).append("\n"); sb.append(" assetDescription: ").append(toIndentedString(assetDescription)).append("\n"); diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowProductRequest.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowProductRequest.java new file mode 100644 index 0000000000..43d238bb78 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowProductRequest.java @@ -0,0 +1,172 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ShowProductRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Authorization") + + private String authorization; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + + private String xSdkDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + + private String xProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + + private String xAppUserId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "product_id") + + private String productId; + + public ShowProductRequest withAuthorization(String authorization) { + this.authorization = authorization; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @return authorization + */ + public String getAuthorization() { + return authorization; + } + + public void setAuthorization(String authorization) { + this.authorization = authorization; + } + + public ShowProductRequest withXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + return this; + } + + /** + * 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD'T'HHMMSS'Z')。 + * @return xSdkDate + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + public String getXSdkDate() { + return xSdkDate; + } + + public void setXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + } + + public ShowProductRequest withXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带项目ID信息。 + * @return xProjectId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + public String getXProjectId() { + return xProjectId; + } + + public void setXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + } + + public ShowProductRequest withXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + return this; + } + + /** + * 第三方用户ID。不允许输入中文。 + * @return xAppUserId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + public String getXAppUserId() { + return xAppUserId; + } + + public void setXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + } + + public ShowProductRequest withProductId(String productId) { + this.productId = productId; + return this; + } + + /** + * 商品ID。 + * @return productId + */ + public String getProductId() { + return productId; + } + + public void setProductId(String productId) { + this.productId = productId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowProductRequest that = (ShowProductRequest) obj; + return Objects.equals(this.authorization, that.authorization) && Objects.equals(this.xSdkDate, that.xSdkDate) + && Objects.equals(this.xProjectId, that.xProjectId) && Objects.equals(this.xAppUserId, that.xAppUserId) + && Objects.equals(this.productId, that.productId); + } + + @Override + public int hashCode() { + return Objects.hash(authorization, xSdkDate, xProjectId, xAppUserId, productId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowProductRequest {\n"); + sb.append(" authorization: ").append(toIndentedString(authorization)).append("\n"); + sb.append(" xSdkDate: ").append(toIndentedString(xSdkDate)).append("\n"); + sb.append(" xProjectId: ").append(toIndentedString(xProjectId)).append("\n"); + sb.append(" xAppUserId: ").append(toIndentedString(xAppUserId)).append("\n"); + sb.append(" productId: ").append(toIndentedString(productId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowProductResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowProductResponse.java new file mode 100644 index 0000000000..09a8919c07 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowProductResponse.java @@ -0,0 +1,467 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ShowProductResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "product_id") + + private String productId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tags") + + private List tags = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "cover") + + private ProductCoverDetailInfo cover; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "text_list") + + private List textList = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "asset_list") + + private List assetList = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time") + + private String createTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_time") + + private String updateTime; + + /** + * 商品状态枚举 * ACTIVED:已激活 * UNACTIVED:未激活 * BLOCK: 被冻结,商品不可用 * DELETED:已删除 + */ + public static final class StateEnum { + + /** + * Enum ACTIVED for value: "ACTIVED" + */ + public static final StateEnum ACTIVED = new StateEnum("ACTIVED"); + + /** + * Enum UNACTIVED for value: "UNACTIVED" + */ + public static final StateEnum UNACTIVED = new StateEnum("UNACTIVED"); + + /** + * Enum BLOCK for value: "BLOCK" + */ + public static final StateEnum BLOCK = new StateEnum("BLOCK"); + + /** + * Enum DELETED for value: "DELETED" + */ + public static final StateEnum DELETED = new StateEnum("DELETED"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("ACTIVED", ACTIVED); + map.put("UNACTIVED", UNACTIVED); + map.put("BLOCK", BLOCK); + map.put("DELETED", DELETED); + return Collections.unmodifiableMap(map); + } + + private String value; + + StateEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static StateEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new StateEnum(value)); + } + + public static StateEnum valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof StateEnum) { + return this.value.equals(((StateEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "state") + + private StateEnum state; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + + public ShowProductResponse withProductId(String productId) { + this.productId = productId; + return this; + } + + /** + * 商品ID + * @return productId + */ + public String getProductId() { + return productId; + } + + public void setProductId(String productId) { + this.productId = productId; + } + + public ShowProductResponse withName(String name) { + this.name = name; + return this; + } + + /** + * 商品名称 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ShowProductResponse withDescription(String description) { + this.description = description; + return this; + } + + /** + * 商品描述 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public ShowProductResponse withTags(List tags) { + this.tags = tags; + return this; + } + + public ShowProductResponse addTagsItem(String tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + this.tags.add(tagsItem); + return this; + } + + public ShowProductResponse withTags(Consumer> tagsSetter) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + tagsSetter.accept(this.tags); + return this; + } + + /** + * 标签。单个标签16字节,多个用逗号分隔,最多50个。 + * @return tags + */ + public List getTags() { + return tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + public ShowProductResponse withCover(ProductCoverDetailInfo cover) { + this.cover = cover; + return this; + } + + public ShowProductResponse withCover(Consumer coverSetter) { + if (this.cover == null) { + this.cover = new ProductCoverDetailInfo(); + coverSetter.accept(this.cover); + } + + return this; + } + + /** + * Get cover + * @return cover + */ + public ProductCoverDetailInfo getCover() { + return cover; + } + + public void setCover(ProductCoverDetailInfo cover) { + this.cover = cover; + } + + public ShowProductResponse withTextList(List textList) { + this.textList = textList; + return this; + } + + public ShowProductResponse addTextListItem(ProductTextInfo textListItem) { + if (this.textList == null) { + this.textList = new ArrayList<>(); + } + this.textList.add(textListItem); + return this; + } + + public ShowProductResponse withTextList(Consumer> textListSetter) { + if (this.textList == null) { + this.textList = new ArrayList<>(); + } + textListSetter.accept(this.textList); + return this; + } + + /** + * 文本列表 + * @return textList + */ + public List getTextList() { + return textList; + } + + public void setTextList(List textList) { + this.textList = textList; + } + + public ShowProductResponse withAssetList(List assetList) { + this.assetList = assetList; + return this; + } + + public ShowProductResponse addAssetListItem(ProductMediaDetailInfo assetListItem) { + if (this.assetList == null) { + this.assetList = new ArrayList<>(); + } + this.assetList.add(assetListItem); + return this; + } + + public ShowProductResponse withAssetList(Consumer> assetListSetter) { + if (this.assetList == null) { + this.assetList = new ArrayList<>(); + } + assetListSetter.accept(this.assetList); + return this; + } + + /** + * 素材资产列表 + * @return assetList + */ + public List getAssetList() { + return assetList; + } + + public void setAssetList(List assetList) { + this.assetList = assetList; + } + + public ShowProductResponse withCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * 商品创建时间,格式遵循:RFC 3339。 例 “2020-07-30T10:43:17Z”。 + * @return createTime + */ + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public ShowProductResponse withUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * 商品更新时间,格式遵循:RFC 3339。 例 “2020-07-30T10:43:17Z”。 + * @return updateTime + */ + public String getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(String updateTime) { + this.updateTime = updateTime; + } + + public ShowProductResponse withState(StateEnum state) { + this.state = state; + return this; + } + + /** + * 商品状态枚举 * ACTIVED:已激活 * UNACTIVED:未激活 * BLOCK: 被冻结,商品不可用 * DELETED:已删除 + * @return state + */ + public StateEnum getState() { + return state; + } + + public void setState(StateEnum state) { + this.state = state; + } + + public ShowProductResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowProductResponse that = (ShowProductResponse) obj; + return Objects.equals(this.productId, that.productId) && Objects.equals(this.name, that.name) + && Objects.equals(this.description, that.description) && Objects.equals(this.tags, that.tags) + && Objects.equals(this.cover, that.cover) && Objects.equals(this.textList, that.textList) + && Objects.equals(this.assetList, that.assetList) && Objects.equals(this.createTime, that.createTime) + && Objects.equals(this.updateTime, that.updateTime) && Objects.equals(this.state, that.state) + && Objects.equals(this.xRequestId, that.xRequestId); + } + + @Override + public int hashCode() { + return Objects.hash(productId, + name, + description, + tags, + cover, + textList, + assetList, + createTime, + updateTime, + state, + xRequestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowProductResponse {\n"); + sb.append(" productId: ").append(toIndentedString(productId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" cover: ").append(toIndentedString(cover)).append("\n"); + sb.append(" textList: ").append(toIndentedString(textList)).append("\n"); + sb.append(" assetList: ").append(toIndentedString(assetList)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); + sb.append(" state: ").append(toIndentedString(state)).append("\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowRobotResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowRobotResponse.java index 285a724040..3f0a425d61 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowRobotResponse.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowRobotResponse.java @@ -106,6 +106,16 @@ public class ShowRobotResponse extends SdkResponse { private String sisProjectId; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enable_hot_words") + + private Boolean enableHotWords; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enable_question_audit") + + private Boolean enableQuestionAudit; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "X-Request-Id") @@ -444,6 +454,40 @@ public void setSisProjectId(String sisProjectId) { this.sisProjectId = sisProjectId; } + public ShowRobotResponse withEnableHotWords(Boolean enableHotWords) { + this.enableHotWords = enableHotWords; + return this; + } + + /** + * 是否开启热词 + * @return enableHotWords + */ + public Boolean getEnableHotWords() { + return enableHotWords; + } + + public void setEnableHotWords(Boolean enableHotWords) { + this.enableHotWords = enableHotWords; + } + + public ShowRobotResponse withEnableQuestionAudit(Boolean enableQuestionAudit) { + this.enableQuestionAudit = enableQuestionAudit; + return this; + } + + /** + * 是否开启提问文本审核开关 + * @return enableQuestionAudit + */ + public Boolean getEnableQuestionAudit() { + return enableQuestionAudit; + } + + public void setEnableQuestionAudit(Boolean enableQuestionAudit) { + this.enableQuestionAudit = enableQuestionAudit; + } + public ShowRobotResponse withXRequestId(String xRequestId) { this.xRequestId = xRequestId; return this; @@ -482,6 +526,8 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.isIflyProduction, that.isIflyProduction) && Objects.equals(this.tailSilenceTime, that.tailSilenceTime) && Objects.equals(this.roleId, that.roleId) && Objects.equals(this.sisRegion, that.sisRegion) && Objects.equals(this.sisProjectId, that.sisProjectId) + && Objects.equals(this.enableHotWords, that.enableHotWords) + && Objects.equals(this.enableQuestionAudit, that.enableQuestionAudit) && Objects.equals(this.xRequestId, that.xRequestId); } @@ -506,6 +552,8 @@ public int hashCode() { roleId, sisRegion, sisProjectId, + enableHotWords, + enableQuestionAudit, xRequestId); } @@ -532,6 +580,8 @@ public String toString() { sb.append(" roleId: ").append(toIndentedString(roleId)).append("\n"); sb.append(" sisRegion: ").append(toIndentedString(sisRegion)).append("\n"); sb.append(" sisProjectId: ").append(toIndentedString(sisProjectId)).append("\n"); + sb.append(" enableHotWords: ").append(toIndentedString(enableHotWords)).append("\n"); + sb.append(" enableQuestionAudit: ").append(toIndentedString(enableQuestionAudit)).append("\n"); sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowSmartLiveResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowSmartLiveResponse.java index 626b044595..c650d29673 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowSmartLiveResponse.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowSmartLiveResponse.java @@ -170,6 +170,11 @@ public int hashCode() { private LiveEventCallBackConfig liveEventCallbackConfig; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "rtc_callback_config") + + private RTCLiveEventCallBackConfig rtcCallbackConfig; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "stream_duration") @@ -451,6 +456,32 @@ public void setLiveEventCallbackConfig(LiveEventCallBackConfig liveEventCallback this.liveEventCallbackConfig = liveEventCallbackConfig; } + public ShowSmartLiveResponse withRtcCallbackConfig(RTCLiveEventCallBackConfig rtcCallbackConfig) { + this.rtcCallbackConfig = rtcCallbackConfig; + return this; + } + + public ShowSmartLiveResponse withRtcCallbackConfig(Consumer rtcCallbackConfigSetter) { + if (this.rtcCallbackConfig == null) { + this.rtcCallbackConfig = new RTCLiveEventCallBackConfig(); + rtcCallbackConfigSetter.accept(this.rtcCallbackConfig); + } + + return this; + } + + /** + * Get rtcCallbackConfig + * @return rtcCallbackConfig + */ + public RTCLiveEventCallBackConfig getRtcCallbackConfig() { + return rtcCallbackConfig; + } + + public void setRtcCallbackConfig(RTCLiveEventCallBackConfig rtcCallbackConfig) { + this.rtcCallbackConfig = rtcCallbackConfig; + } + public ShowSmartLiveResponse withStreamDuration(Float streamDuration) { this.streamDuration = streamDuration; return this; @@ -593,6 +624,7 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.rtcRoomInfo, that.rtcRoomInfo) && Objects.equals(this.liveEventReportUrl, that.liveEventReportUrl) && Objects.equals(this.liveEventCallbackConfig, that.liveEventCallbackConfig) + && Objects.equals(this.rtcCallbackConfig, that.rtcCallbackConfig) && Objects.equals(this.streamDuration, that.streamDuration) && Objects.equals(this.blockReason, that.blockReason) && Objects.equals(this.coverUrl, that.coverUrl) && Objects.equals(this.coStreamerConfig, that.coStreamerConfig) @@ -614,6 +646,7 @@ public int hashCode() { rtcRoomInfo, liveEventReportUrl, liveEventCallbackConfig, + rtcCallbackConfig, streamDuration, blockReason, coverUrl, @@ -639,6 +672,7 @@ public String toString() { sb.append(" rtcRoomInfo: ").append(toIndentedString(rtcRoomInfo)).append("\n"); sb.append(" liveEventReportUrl: ").append(toIndentedString(liveEventReportUrl)).append("\n"); sb.append(" liveEventCallbackConfig: ").append(toIndentedString(liveEventCallbackConfig)).append("\n"); + sb.append(" rtcCallbackConfig: ").append(toIndentedString(rtcCallbackConfig)).append("\n"); sb.append(" streamDuration: ").append(toIndentedString(streamDuration)).append("\n"); sb.append(" blockReason: ").append(toIndentedString(blockReason)).append("\n"); sb.append(" coverUrl: ").append(toIndentedString(coverUrl)).append("\n"); diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowSmartLiveRoomResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowSmartLiveRoomResponse.java index 3bbc950058..1b3ab891ca 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowSmartLiveRoomResponse.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/ShowSmartLiveRoomResponse.java @@ -118,7 +118,7 @@ public int hashCode() { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "interaction_rules") - private List interactionRules = null; + private List interactionRules = null; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "play_policy") @@ -150,6 +150,11 @@ public int hashCode() { private LiveEventCallBackConfig liveEventCallbackConfig; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "rtc_callback_config") + + private RTCLiveEventCallBackConfig rtcCallbackConfig; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "review_config") @@ -440,12 +445,12 @@ public void setSceneScripts(List sceneScripts) { this.sceneScripts = sceneScripts; } - public ShowSmartLiveRoomResponse withInteractionRules(List interactionRules) { + public ShowSmartLiveRoomResponse withInteractionRules(List interactionRules) { this.interactionRules = interactionRules; return this; } - public ShowSmartLiveRoomResponse addInteractionRulesItem(InteractionRuleInfo interactionRulesItem) { + public ShowSmartLiveRoomResponse addInteractionRulesItem(LiveRoomInteractionRuleInfo interactionRulesItem) { if (this.interactionRules == null) { this.interactionRules = new ArrayList<>(); } @@ -453,7 +458,8 @@ public ShowSmartLiveRoomResponse addInteractionRulesItem(InteractionRuleInfo int return this; } - public ShowSmartLiveRoomResponse withInteractionRules(Consumer> interactionRulesSetter) { + public ShowSmartLiveRoomResponse withInteractionRules( + Consumer> interactionRulesSetter) { if (this.interactionRules == null) { this.interactionRules = new ArrayList<>(); } @@ -465,11 +471,11 @@ public ShowSmartLiveRoomResponse withInteractionRules(Consumer getInteractionRules() { + public List getInteractionRules() { return interactionRules; } - public void setInteractionRules(List interactionRules) { + public void setInteractionRules(List interactionRules) { this.interactionRules = interactionRules; } @@ -651,6 +657,33 @@ public void setLiveEventCallbackConfig(LiveEventCallBackConfig liveEventCallback this.liveEventCallbackConfig = liveEventCallbackConfig; } + public ShowSmartLiveRoomResponse withRtcCallbackConfig(RTCLiveEventCallBackConfig rtcCallbackConfig) { + this.rtcCallbackConfig = rtcCallbackConfig; + return this; + } + + public ShowSmartLiveRoomResponse withRtcCallbackConfig( + Consumer rtcCallbackConfigSetter) { + if (this.rtcCallbackConfig == null) { + this.rtcCallbackConfig = new RTCLiveEventCallBackConfig(); + rtcCallbackConfigSetter.accept(this.rtcCallbackConfig); + } + + return this; + } + + /** + * Get rtcCallbackConfig + * @return rtcCallbackConfig + */ + public RTCLiveEventCallBackConfig getRtcCallbackConfig() { + return rtcCallbackConfig; + } + + public void setRtcCallbackConfig(RTCLiveEventCallBackConfig rtcCallbackConfig) { + this.rtcCallbackConfig = rtcCallbackConfig; + } + public ShowSmartLiveRoomResponse withReviewConfig(ReviewConfig reviewConfig) { this.reviewConfig = reviewConfig; return this; @@ -910,6 +943,7 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.outputUrls, that.outputUrls) && Objects.equals(this.streamKeys, that.streamKeys) && Objects.equals(this.backupModelAssetIds, that.backupModelAssetIds) && Objects.equals(this.liveEventCallbackConfig, that.liveEventCallbackConfig) + && Objects.equals(this.rtcCallbackConfig, that.rtcCallbackConfig) && Objects.equals(this.reviewConfig, that.reviewConfig) && Objects.equals(this.sharedConfig, that.sharedConfig) && Objects.equals(this.viewMode, that.viewMode) && Objects.equals(this.coStreamerConfig, that.coStreamerConfig) && Objects.equals(this.roomId, that.roomId) @@ -932,6 +966,7 @@ public int hashCode() { streamKeys, backupModelAssetIds, liveEventCallbackConfig, + rtcCallbackConfig, reviewConfig, sharedConfig, viewMode, @@ -961,6 +996,7 @@ public String toString() { sb.append(" streamKeys: ").append(toIndentedString(streamKeys)).append("\n"); sb.append(" backupModelAssetIds: ").append(toIndentedString(backupModelAssetIds)).append("\n"); sb.append(" liveEventCallbackConfig: ").append(toIndentedString(liveEventCallbackConfig)).append("\n"); + sb.append(" rtcCallbackConfig: ").append(toIndentedString(rtcCallbackConfig)).append("\n"); sb.append(" reviewConfig: ").append(toIndentedString(reviewConfig)).append("\n"); sb.append(" sharedConfig: ").append(toIndentedString(sharedConfig)).append("\n"); sb.append(" viewMode: ").append(toIndentedString(viewMode)).append("\n"); diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/SmartLiveJob.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/SmartLiveJob.java index ae6d509316..0b811a99bc 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/SmartLiveJob.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/SmartLiveJob.java @@ -169,6 +169,11 @@ public int hashCode() { private LiveEventCallBackConfig liveEventCallbackConfig; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "rtc_callback_config") + + private RTCLiveEventCallBackConfig rtcCallbackConfig; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "stream_duration") @@ -444,6 +449,32 @@ public void setLiveEventCallbackConfig(LiveEventCallBackConfig liveEventCallback this.liveEventCallbackConfig = liveEventCallbackConfig; } + public SmartLiveJob withRtcCallbackConfig(RTCLiveEventCallBackConfig rtcCallbackConfig) { + this.rtcCallbackConfig = rtcCallbackConfig; + return this; + } + + public SmartLiveJob withRtcCallbackConfig(Consumer rtcCallbackConfigSetter) { + if (this.rtcCallbackConfig == null) { + this.rtcCallbackConfig = new RTCLiveEventCallBackConfig(); + rtcCallbackConfigSetter.accept(this.rtcCallbackConfig); + } + + return this; + } + + /** + * Get rtcCallbackConfig + * @return rtcCallbackConfig + */ + public RTCLiveEventCallBackConfig getRtcCallbackConfig() { + return rtcCallbackConfig; + } + + public void setRtcCallbackConfig(RTCLiveEventCallBackConfig rtcCallbackConfig) { + this.rtcCallbackConfig = rtcCallbackConfig; + } + public SmartLiveJob withStreamDuration(Float streamDuration) { this.streamDuration = streamDuration; return this; @@ -567,6 +598,7 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.rtcRoomInfo, that.rtcRoomInfo) && Objects.equals(this.liveEventReportUrl, that.liveEventReportUrl) && Objects.equals(this.liveEventCallbackConfig, that.liveEventCallbackConfig) + && Objects.equals(this.rtcCallbackConfig, that.rtcCallbackConfig) && Objects.equals(this.streamDuration, that.streamDuration) && Objects.equals(this.blockReason, that.blockReason) && Objects.equals(this.coverUrl, that.coverUrl) && Objects.equals(this.coStreamerConfig, that.coStreamerConfig) @@ -588,6 +620,7 @@ public int hashCode() { rtcRoomInfo, liveEventReportUrl, liveEventCallbackConfig, + rtcCallbackConfig, streamDuration, blockReason, coverUrl, @@ -612,6 +645,7 @@ public String toString() { sb.append(" rtcRoomInfo: ").append(toIndentedString(rtcRoomInfo)).append("\n"); sb.append(" liveEventReportUrl: ").append(toIndentedString(liveEventReportUrl)).append("\n"); sb.append(" liveEventCallbackConfig: ").append(toIndentedString(liveEventCallbackConfig)).append("\n"); + sb.append(" rtcCallbackConfig: ").append(toIndentedString(rtcCallbackConfig)).append("\n"); sb.append(" streamDuration: ").append(toIndentedString(streamDuration)).append("\n"); sb.append(" blockReason: ").append(toIndentedString(blockReason)).append("\n"); sb.append(" coverUrl: ").append(toIndentedString(coverUrl)).append("\n"); diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/StartSmartLiveReq.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/StartSmartLiveReq.java index 519a10570d..24f626d3f4 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/StartSmartLiveReq.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/StartSmartLiveReq.java @@ -48,6 +48,11 @@ public class StartSmartLiveReq { private LiveEventCallBackConfig liveEventCallbackConfig; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "rtc_callback_config") + + private RTCLiveEventCallBackConfig rtcCallbackConfig; + /** * 横竖屏类型。默认值为:VERTICAL。 * LANDSCAPE:横屏。 * VERTICAL: 竖屏。 */ @@ -290,6 +295,32 @@ public void setLiveEventCallbackConfig(LiveEventCallBackConfig liveEventCallback this.liveEventCallbackConfig = liveEventCallbackConfig; } + public StartSmartLiveReq withRtcCallbackConfig(RTCLiveEventCallBackConfig rtcCallbackConfig) { + this.rtcCallbackConfig = rtcCallbackConfig; + return this; + } + + public StartSmartLiveReq withRtcCallbackConfig(Consumer rtcCallbackConfigSetter) { + if (this.rtcCallbackConfig == null) { + this.rtcCallbackConfig = new RTCLiveEventCallBackConfig(); + rtcCallbackConfigSetter.accept(this.rtcCallbackConfig); + } + + return this; + } + + /** + * Get rtcCallbackConfig + * @return rtcCallbackConfig + */ + public RTCLiveEventCallBackConfig getRtcCallbackConfig() { + return rtcCallbackConfig; + } + + public void setRtcCallbackConfig(RTCLiveEventCallBackConfig rtcCallbackConfig) { + this.rtcCallbackConfig = rtcCallbackConfig; + } + public StartSmartLiveReq withViewMode(ViewModeEnum viewMode) { this.viewMode = viewMode; return this; @@ -346,6 +377,7 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.outputUrls, that.outputUrls) && Objects.equals(this.streamKeys, that.streamKeys) && Objects.equals(this.interactionCallbackUrl, that.interactionCallbackUrl) && Objects.equals(this.liveEventCallbackConfig, that.liveEventCallbackConfig) + && Objects.equals(this.rtcCallbackConfig, that.rtcCallbackConfig) && Objects.equals(this.viewMode, that.viewMode) && Objects.equals(this.coStreamerConfig, that.coStreamerConfig); } @@ -358,6 +390,7 @@ public int hashCode() { streamKeys, interactionCallbackUrl, liveEventCallbackConfig, + rtcCallbackConfig, viewMode, coStreamerConfig); } @@ -372,6 +405,7 @@ public String toString() { sb.append(" streamKeys: ").append(toIndentedString(streamKeys)).append("\n"); sb.append(" interactionCallbackUrl: ").append(toIndentedString(interactionCallbackUrl)).append("\n"); sb.append(" liveEventCallbackConfig: ").append(toIndentedString(liveEventCallbackConfig)).append("\n"); + sb.append(" rtcCallbackConfig: ").append(toIndentedString(rtcCallbackConfig)).append("\n"); sb.append(" viewMode: ").append(toIndentedString(viewMode)).append("\n"); sb.append(" coStreamerConfig: ").append(toIndentedString(coStreamerConfig)).append("\n"); sb.append("}"); diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/SystemProperty.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/SystemProperty.java index 213351122a..a8d6733bb4 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/SystemProperty.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/SystemProperty.java @@ -91,7 +91,7 @@ public int hashCode() { private ActionEnum action; /** - * 系统属性。 公共资产属性: * BACKGROUND_IMG:视频制作的背景图片。value设置成Yes * CREATED_BY_PLATFORM: 是否平台生成。 分身数字人资产属性: * MATERIAL_IMG:素材图片,用作前景。value设置成Yes。 * MATERIAL_VIDEO:素材视频,用作前景。value设置成Yes。 * BUSSINESS_CARD_VIDEO:名片视频。 * TO_BE_TRANSLATED_VIDEO: 视频翻译的源视频。可取值Yes。 3D数字人资产属性: * STYLE_ID:风格Id。 * DH_ID:数字人ID(尚未启用)。 * PLATFORM_AVAILABLE:是否平台可用(尚未启用)。 * RENDER_ENGINE:引擎类型。value可选UE或MetaEngine。 * BACKGROUND_SCENE:视频制作的2D背景场景。value可选Horizontal(横屏)或者Vertical(竖屏)。 + * 系统属性。 公共资产属性: * BACKGROUND_IMG:视频制作的背景图片。value设置成Yes * CREATED_BY_PLATFORM: 是否平台生成。 分身数字人资产属性: * MATERIAL_IMG:素材图片,用作前景。value设置成Yes。 * MATERIAL_VIDEO:素材视频,用作前景。value设置成Yes。 * BUSSINESS_CARD_VIDEO:名片视频。 * TO_BE_TRANSLATED_VIDEO: 视频翻译的源视频。可取值Yes。 3D数字人资产属性: * STYLE_ID:风格Id。 * DH_ID:数字人ID(尚未启用)。 * PLATFORM_AVAILABLE:是否平台可用(尚未启用)。 * RENDER_ENGINE:引擎类型。value可选UE或MetaEngine。 * BACKGROUND_SCENE:视频制作的2D背景场景。value可选Horizontal(横屏)或者Vertical(竖屏)。 * LAYER_CONFIG_ENABLE: 可用前景图层配置 */ public static final class KeyEnum { @@ -150,6 +150,11 @@ public static final class KeyEnum { */ public static final KeyEnum TO_BE_TRANSLATED_VIDEO = new KeyEnum("TO_BE_TRANSLATED_VIDEO"); + /** + * Enum LAYER_CONFIG_ENABLE for value: "LAYER_CONFIG_ENABLE" + */ + public static final KeyEnum LAYER_CONFIG_ENABLE = new KeyEnum("LAYER_CONFIG_ENABLE"); + private static final Map STATIC_FIELDS = createStaticFields(); private static Map createStaticFields() { @@ -165,6 +170,7 @@ private static Map createStaticFields() { map.put("MATERIAL_VIDEO", MATERIAL_VIDEO); map.put("BUSSINESS_CARD_VIDEO", BUSSINESS_CARD_VIDEO); map.put("TO_BE_TRANSLATED_VIDEO", TO_BE_TRANSLATED_VIDEO); + map.put("LAYER_CONFIG_ENABLE", LAYER_CONFIG_ENABLE); return Collections.unmodifiableMap(map); } @@ -247,7 +253,7 @@ public SystemProperty withKey(KeyEnum key) { } /** - * 系统属性。 公共资产属性: * BACKGROUND_IMG:视频制作的背景图片。value设置成Yes * CREATED_BY_PLATFORM: 是否平台生成。 分身数字人资产属性: * MATERIAL_IMG:素材图片,用作前景。value设置成Yes。 * MATERIAL_VIDEO:素材视频,用作前景。value设置成Yes。 * BUSSINESS_CARD_VIDEO:名片视频。 * TO_BE_TRANSLATED_VIDEO: 视频翻译的源视频。可取值Yes。 3D数字人资产属性: * STYLE_ID:风格Id。 * DH_ID:数字人ID(尚未启用)。 * PLATFORM_AVAILABLE:是否平台可用(尚未启用)。 * RENDER_ENGINE:引擎类型。value可选UE或MetaEngine。 * BACKGROUND_SCENE:视频制作的2D背景场景。value可选Horizontal(横屏)或者Vertical(竖屏)。 + * 系统属性。 公共资产属性: * BACKGROUND_IMG:视频制作的背景图片。value设置成Yes * CREATED_BY_PLATFORM: 是否平台生成。 分身数字人资产属性: * MATERIAL_IMG:素材图片,用作前景。value设置成Yes。 * MATERIAL_VIDEO:素材视频,用作前景。value设置成Yes。 * BUSSINESS_CARD_VIDEO:名片视频。 * TO_BE_TRANSLATED_VIDEO: 视频翻译的源视频。可取值Yes。 3D数字人资产属性: * STYLE_ID:风格Id。 * DH_ID:数字人ID(尚未启用)。 * PLATFORM_AVAILABLE:是否平台可用(尚未启用)。 * RENDER_ENGINE:引擎类型。value可选UE或MetaEngine。 * BACKGROUND_SCENE:视频制作的2D背景场景。value可选Horizontal(横屏)或者Vertical(竖屏)。 * LAYER_CONFIG_ENABLE: 可用前景图层配置 * @return key */ public KeyEnum getKey() { diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/TriggerProcess.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/TriggerProcess.java index da6d5d9255..9f10b948f8 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/TriggerProcess.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/TriggerProcess.java @@ -24,7 +24,7 @@ public class TriggerProcess { private Integer timeWindow; /** - * 回复类型。 * SYSTEM_REPLY:系统自动回复设置的话术。 * CALLBACK:回调给其他服务,携带设置的话术。 * SHOW_LAYER: 显示叠加图层,不影响话术。 + * 回复类型。 * SYSTEM_REPLY:系统自动回复设置的话术。 * CALLBACK:回调给其他服务,携带设置的话术。 * SHOW_LAYER: 显示叠加图层,不影响话术。 * INTELLIGENT_REPLY: 智能交互回复话术。 */ public static final class ReplyModeEnum { @@ -43,6 +43,11 @@ public static final class ReplyModeEnum { */ public static final ReplyModeEnum SHOW_LAYER = new ReplyModeEnum("SHOW_LAYER"); + /** + * Enum INTELLIGENT_REPLY for value: "INTELLIGENT_REPLY" + */ + public static final ReplyModeEnum INTELLIGENT_REPLY = new ReplyModeEnum("INTELLIGENT_REPLY"); + private static final Map STATIC_FIELDS = createStaticFields(); private static Map createStaticFields() { @@ -50,6 +55,7 @@ private static Map createStaticFields() { map.put("SYSTEM_REPLY", SYSTEM_REPLY); map.put("CALLBACK", CALLBACK); map.put("SHOW_LAYER", SHOW_LAYER); + map.put("INTELLIGENT_REPLY", INTELLIGENT_REPLY); return Collections.unmodifiableMap(map); } @@ -274,6 +280,11 @@ public int hashCode() { private ReplyRoleEnum replyRole; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "robot_id") + + private String robotId; + public TriggerProcess withTimeWindow(Integer timeWindow) { this.timeWindow = timeWindow; return this; @@ -299,7 +310,7 @@ public TriggerProcess withReplyMode(ReplyModeEnum replyMode) { } /** - * 回复类型。 * SYSTEM_REPLY:系统自动回复设置的话术。 * CALLBACK:回调给其他服务,携带设置的话术。 * SHOW_LAYER: 显示叠加图层,不影响话术。 + * 回复类型。 * SYSTEM_REPLY:系统自动回复设置的话术。 * CALLBACK:回调给其他服务,携带设置的话术。 * SHOW_LAYER: 显示叠加图层,不影响话术。 * INTELLIGENT_REPLY: 智能交互回复话术。 * @return replyMode */ public ReplyModeEnum getReplyMode() { @@ -462,6 +473,23 @@ public void setReplyRole(ReplyRoleEnum replyRole) { this.replyRole = replyRole; } + public TriggerProcess withRobotId(String robotId) { + this.robotId = robotId; + return this; + } + + /** + * 机器人ID。 + * @return robotId + */ + public String getRobotId() { + return robotId; + } + + public void setRobotId(String robotId) { + this.robotId = robotId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -475,13 +503,21 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.layerConfig, that.layerConfig) && Objects.equals(this.extraLayerConfig, that.extraLayerConfig) && Objects.equals(this.replyTexts, that.replyTexts) && Objects.equals(this.replyAudios, that.replyAudios) - && Objects.equals(this.replyOrder, that.replyOrder) && Objects.equals(this.replyRole, that.replyRole); + && Objects.equals(this.replyOrder, that.replyOrder) && Objects.equals(this.replyRole, that.replyRole) + && Objects.equals(this.robotId, that.robotId); } @Override public int hashCode() { - return Objects - .hash(timeWindow, replyMode, layerConfig, extraLayerConfig, replyTexts, replyAudios, replyOrder, replyRole); + return Objects.hash(timeWindow, + replyMode, + layerConfig, + extraLayerConfig, + replyTexts, + replyAudios, + replyOrder, + replyRole, + robotId); } @Override @@ -496,6 +532,7 @@ public String toString() { sb.append(" replyAudios: ").append(toIndentedString(replyAudios)).append("\n"); sb.append(" replyOrder: ").append(toIndentedString(replyOrder)).append("\n"); sb.append(" replyRole: ").append(toIndentedString(replyRole)).append("\n"); + sb.append(" robotId: ").append(toIndentedString(robotId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateDigitalAssetRequestBody.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateDigitalAssetRequestBody.java index bdfb991e94..64608cbf17 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateDigitalAssetRequestBody.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateDigitalAssetRequestBody.java @@ -278,7 +278,7 @@ public int hashCode() { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "shared_config") - private SharedConfig sharedConfig; + private AssetSharedConfig sharedConfig; public UpdateDigitalAssetRequestBody withAssetName(String assetName) { this.assetName = assetName; @@ -483,14 +483,14 @@ public void setSystemProperties(List systemProperties) { this.systemProperties = systemProperties; } - public UpdateDigitalAssetRequestBody withSharedConfig(SharedConfig sharedConfig) { + public UpdateDigitalAssetRequestBody withSharedConfig(AssetSharedConfig sharedConfig) { this.sharedConfig = sharedConfig; return this; } - public UpdateDigitalAssetRequestBody withSharedConfig(Consumer sharedConfigSetter) { + public UpdateDigitalAssetRequestBody withSharedConfig(Consumer sharedConfigSetter) { if (this.sharedConfig == null) { - this.sharedConfig = new SharedConfig(); + this.sharedConfig = new AssetSharedConfig(); sharedConfigSetter.accept(this.sharedConfig); } @@ -501,11 +501,11 @@ public UpdateDigitalAssetRequestBody withSharedConfig(Consumer sha * Get sharedConfig * @return sharedConfig */ - public SharedConfig getSharedConfig() { + public AssetSharedConfig getSharedConfig() { return sharedConfig; } - public void setSharedConfig(SharedConfig sharedConfig) { + public void setSharedConfig(AssetSharedConfig sharedConfig) { this.sharedConfig = sharedConfig; } diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateDigitalAssetResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateDigitalAssetResponse.java index bd1ad347f5..444150ec06 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateDigitalAssetResponse.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateDigitalAssetResponse.java @@ -19,6 +19,11 @@ */ public class UpdateDigitalAssetResponse extends SdkResponse { + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_id") + + private String projectId; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "asset_id") @@ -406,6 +411,23 @@ public int hashCode() { private String xRequestId; + public UpdateDigitalAssetResponse withProjectId(String projectId) { + this.projectId = projectId; + return this; + } + + /** + * 租户id + * @return projectId + */ + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + public UpdateDigitalAssetResponse withAssetId(String assetId) { this.assetId = assetId; return this; @@ -729,7 +751,8 @@ public boolean equals(java.lang.Object obj) { return false; } UpdateDigitalAssetResponse that = (UpdateDigitalAssetResponse) obj; - return Objects.equals(this.assetId, that.assetId) && Objects.equals(this.assetName, that.assetName) + return Objects.equals(this.projectId, that.projectId) && Objects.equals(this.assetId, that.assetId) + && Objects.equals(this.assetName, that.assetName) && Objects.equals(this.assetDescription, that.assetDescription) && Objects.equals(this.appUserId, that.appUserId) && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.updateTime, that.updateTime) && Objects.equals(this.assetType, that.assetType) @@ -742,7 +765,8 @@ public boolean equals(java.lang.Object obj) { @Override public int hashCode() { - return Objects.hash(assetId, + return Objects.hash(projectId, + assetId, assetName, assetDescription, appUserId, @@ -763,6 +787,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UpdateDigitalAssetResponse {\n"); + sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); sb.append(" assetId: ").append(toIndentedString(assetId)).append("\n"); sb.append(" assetName: ").append(toIndentedString(assetName)).append("\n"); sb.append(" assetDescription: ").append(toIndentedString(assetDescription)).append("\n"); diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateProductRequest.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateProductRequest.java new file mode 100644 index 0000000000..ba19e034c5 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateProductRequest.java @@ -0,0 +1,205 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class UpdateProductRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Authorization") + + private String authorization; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + + private String xSdkDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + + private String xProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + + private String xAppUserId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "product_id") + + private String productId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private UpdateProductRequestBody body; + + public UpdateProductRequest withAuthorization(String authorization) { + this.authorization = authorization; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @return authorization + */ + public String getAuthorization() { + return authorization; + } + + public void setAuthorization(String authorization) { + this.authorization = authorization; + } + + public UpdateProductRequest withXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + return this; + } + + /** + * 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD'T'HHMMSS'Z')。 + * @return xSdkDate + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Sdk-Date") + public String getXSdkDate() { + return xSdkDate; + } + + public void setXSdkDate(String xSdkDate) { + this.xSdkDate = xSdkDate; + } + + public UpdateProductRequest withXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + return this; + } + + /** + * 使用AK/SK方式认证时必选,携带项目ID信息。 + * @return xProjectId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Project-Id") + public String getXProjectId() { + return xProjectId; + } + + public void setXProjectId(String xProjectId) { + this.xProjectId = xProjectId; + } + + public UpdateProductRequest withXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + return this; + } + + /** + * 第三方用户ID。不允许输入中文。 + * @return xAppUserId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-App-UserId") + public String getXAppUserId() { + return xAppUserId; + } + + public void setXAppUserId(String xAppUserId) { + this.xAppUserId = xAppUserId; + } + + public UpdateProductRequest withProductId(String productId) { + this.productId = productId; + return this; + } + + /** + * 商品ID。 + * @return productId + */ + public String getProductId() { + return productId; + } + + public void setProductId(String productId) { + this.productId = productId; + } + + public UpdateProductRequest withBody(UpdateProductRequestBody body) { + this.body = body; + return this; + } + + public UpdateProductRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new UpdateProductRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public UpdateProductRequestBody getBody() { + return body; + } + + public void setBody(UpdateProductRequestBody body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateProductRequest that = (UpdateProductRequest) obj; + return Objects.equals(this.authorization, that.authorization) && Objects.equals(this.xSdkDate, that.xSdkDate) + && Objects.equals(this.xProjectId, that.xProjectId) && Objects.equals(this.xAppUserId, that.xAppUserId) + && Objects.equals(this.productId, that.productId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(authorization, xSdkDate, xProjectId, xAppUserId, productId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateProductRequest {\n"); + sb.append(" authorization: ").append(toIndentedString(authorization)).append("\n"); + sb.append(" xSdkDate: ").append(toIndentedString(xSdkDate)).append("\n"); + sb.append(" xProjectId: ").append(toIndentedString(xProjectId)).append("\n"); + sb.append(" xAppUserId: ").append(toIndentedString(xAppUserId)).append("\n"); + sb.append(" productId: ").append(toIndentedString(productId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateProductRequestBody.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateProductRequestBody.java new file mode 100644 index 0000000000..95c6862054 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateProductRequestBody.java @@ -0,0 +1,348 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 服务开通请求 + */ +public class UpdateProductRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tags") + + private List tags = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "cover") + + private ProductCoverInfo cover; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "text_list") + + private List textList = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "asset_list") + + private List assetList = null; + + /** + * 商品状态枚举 * ACTIVED:已激活 * UNACTIVED:未激活 + */ + public static final class StateEnum { + + /** + * Enum ACTIVED for value: "ACTIVED" + */ + public static final StateEnum ACTIVED = new StateEnum("ACTIVED"); + + /** + * Enum UNACTIVED for value: "UNACTIVED" + */ + public static final StateEnum UNACTIVED = new StateEnum("UNACTIVED"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("ACTIVED", ACTIVED); + map.put("UNACTIVED", UNACTIVED); + return Collections.unmodifiableMap(map); + } + + private String value; + + StateEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static StateEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new StateEnum(value)); + } + + public static StateEnum valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof StateEnum) { + return this.value.equals(((StateEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "state") + + private StateEnum state; + + public UpdateProductRequestBody withName(String name) { + this.name = name; + return this; + } + + /** + * 商品名称 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public UpdateProductRequestBody withDescription(String description) { + this.description = description; + return this; + } + + /** + * 商品描述 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public UpdateProductRequestBody withTags(List tags) { + this.tags = tags; + return this; + } + + public UpdateProductRequestBody addTagsItem(String tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + this.tags.add(tagsItem); + return this; + } + + public UpdateProductRequestBody withTags(Consumer> tagsSetter) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + tagsSetter.accept(this.tags); + return this; + } + + /** + * 标签。单个标签16字节,多个用逗号分隔,最多50个。 + * @return tags + */ + public List getTags() { + return tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + public UpdateProductRequestBody withCover(ProductCoverInfo cover) { + this.cover = cover; + return this; + } + + public UpdateProductRequestBody withCover(Consumer coverSetter) { + if (this.cover == null) { + this.cover = new ProductCoverInfo(); + coverSetter.accept(this.cover); + } + + return this; + } + + /** + * Get cover + * @return cover + */ + public ProductCoverInfo getCover() { + return cover; + } + + public void setCover(ProductCoverInfo cover) { + this.cover = cover; + } + + public UpdateProductRequestBody withTextList(List textList) { + this.textList = textList; + return this; + } + + public UpdateProductRequestBody addTextListItem(ProductTextInfo textListItem) { + if (this.textList == null) { + this.textList = new ArrayList<>(); + } + this.textList.add(textListItem); + return this; + } + + public UpdateProductRequestBody withTextList(Consumer> textListSetter) { + if (this.textList == null) { + this.textList = new ArrayList<>(); + } + textListSetter.accept(this.textList); + return this; + } + + /** + * 文本列表 + * @return textList + */ + public List getTextList() { + return textList; + } + + public void setTextList(List textList) { + this.textList = textList; + } + + public UpdateProductRequestBody withAssetList(List assetList) { + this.assetList = assetList; + return this; + } + + public UpdateProductRequestBody addAssetListItem(ProductMediaInfo assetListItem) { + if (this.assetList == null) { + this.assetList = new ArrayList<>(); + } + this.assetList.add(assetListItem); + return this; + } + + public UpdateProductRequestBody withAssetList(Consumer> assetListSetter) { + if (this.assetList == null) { + this.assetList = new ArrayList<>(); + } + assetListSetter.accept(this.assetList); + return this; + } + + /** + * 素材资产列表 + * @return assetList + */ + public List getAssetList() { + return assetList; + } + + public void setAssetList(List assetList) { + this.assetList = assetList; + } + + public UpdateProductRequestBody withState(StateEnum state) { + this.state = state; + return this; + } + + /** + * 商品状态枚举 * ACTIVED:已激活 * UNACTIVED:未激活 + * @return state + */ + public StateEnum getState() { + return state; + } + + public void setState(StateEnum state) { + this.state = state; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateProductRequestBody that = (UpdateProductRequestBody) obj; + return Objects.equals(this.name, that.name) && Objects.equals(this.description, that.description) + && Objects.equals(this.tags, that.tags) && Objects.equals(this.cover, that.cover) + && Objects.equals(this.textList, that.textList) && Objects.equals(this.assetList, that.assetList) + && Objects.equals(this.state, that.state); + } + + @Override + public int hashCode() { + return Objects.hash(name, description, tags, cover, textList, assetList, state); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateProductRequestBody {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" cover: ").append(toIndentedString(cover)).append("\n"); + sb.append(" textList: ").append(toIndentedString(textList)).append("\n"); + sb.append(" assetList: ").append(toIndentedString(assetList)).append("\n"); + sb.append(" state: ").append(toIndentedString(state)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateProductResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateProductResponse.java new file mode 100644 index 0000000000..8f6cc3f4d1 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateProductResponse.java @@ -0,0 +1,75 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class UpdateProductResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + + private String xRequestId; + + public UpdateProductResponse withXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + return this; + } + + /** + * Get xRequestId + * @return xRequestId + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Request-Id") + public String getXRequestId() { + return xRequestId; + } + + public void setXRequestId(String xRequestId) { + this.xRequestId = xRequestId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateProductResponse that = (UpdateProductResponse) obj; + return Objects.equals(this.xRequestId, that.xRequestId); + } + + @Override + public int hashCode() { + return Objects.hash(xRequestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateProductResponse {\n"); + sb.append(" xRequestId: ").append(toIndentedString(xRequestId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateRobotReq.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateRobotReq.java index a78853d003..179e7538b4 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateRobotReq.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateRobotReq.java @@ -36,6 +36,11 @@ public class UpdateRobotReq { private Integer tailSilenceTime; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enable_question_audit") + + private Boolean enableQuestionAudit; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "huawei_ei_cbs") @@ -150,6 +155,23 @@ public void setTailSilenceTime(Integer tailSilenceTime) { this.tailSilenceTime = tailSilenceTime; } + public UpdateRobotReq withEnableQuestionAudit(Boolean enableQuestionAudit) { + this.enableQuestionAudit = enableQuestionAudit; + return this; + } + + /** + * 提问文本审核开关 + * @return enableQuestionAudit + */ + public Boolean getEnableQuestionAudit() { + return enableQuestionAudit; + } + + public void setEnableQuestionAudit(Boolean enableQuestionAudit) { + this.enableQuestionAudit = enableQuestionAudit; + } + public UpdateRobotReq withHuaweiEiCbs(HuaweiEiCbs huaweiEiCbs) { this.huaweiEiCbs = huaweiEiCbs; return this; @@ -292,6 +314,7 @@ public boolean equals(java.lang.Object obj) { return Objects.equals(this.name, that.name) && Objects.equals(this.appType, that.appType) && Objects.equals(this.roomId, that.roomId) && Objects.equals(this.language, that.language) && Objects.equals(this.tailSilenceTime, that.tailSilenceTime) + && Objects.equals(this.enableQuestionAudit, that.enableQuestionAudit) && Objects.equals(this.huaweiEiCbs, that.huaweiEiCbs) && Objects.equals(this.iflytekAiuiConfig, that.iflytekAiuiConfig) && Objects.equals(this.iflytekSpark, that.iflytekSpark) @@ -306,6 +329,7 @@ public int hashCode() { roomId, language, tailSilenceTime, + enableQuestionAudit, huaweiEiCbs, iflytekAiuiConfig, iflytekSpark, @@ -322,6 +346,7 @@ public String toString() { sb.append(" roomId: ").append(toIndentedString(roomId)).append("\n"); sb.append(" language: ").append(toIndentedString(language)).append("\n"); sb.append(" tailSilenceTime: ").append(toIndentedString(tailSilenceTime)).append("\n"); + sb.append(" enableQuestionAudit: ").append(toIndentedString(enableQuestionAudit)).append("\n"); sb.append(" huaweiEiCbs: ").append(toIndentedString(huaweiEiCbs)).append("\n"); sb.append(" iflytekAiuiConfig: ").append(toIndentedString(iflytekAiuiConfig)).append("\n"); sb.append(" iflytekSpark: ").append(toIndentedString(iflytekSpark)).append("\n"); diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateSmartLiveRoomResponse.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateSmartLiveRoomResponse.java index 62f81636d4..75ca72fcfa 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateSmartLiveRoomResponse.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/UpdateSmartLiveRoomResponse.java @@ -118,7 +118,7 @@ public int hashCode() { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "interaction_rules") - private List interactionRules = null; + private List interactionRules = null; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "play_policy") @@ -150,6 +150,11 @@ public int hashCode() { private LiveEventCallBackConfig liveEventCallbackConfig; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "rtc_callback_config") + + private RTCLiveEventCallBackConfig rtcCallbackConfig; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "review_config") @@ -440,12 +445,12 @@ public void setSceneScripts(List sceneScripts) { this.sceneScripts = sceneScripts; } - public UpdateSmartLiveRoomResponse withInteractionRules(List interactionRules) { + public UpdateSmartLiveRoomResponse withInteractionRules(List interactionRules) { this.interactionRules = interactionRules; return this; } - public UpdateSmartLiveRoomResponse addInteractionRulesItem(InteractionRuleInfo interactionRulesItem) { + public UpdateSmartLiveRoomResponse addInteractionRulesItem(LiveRoomInteractionRuleInfo interactionRulesItem) { if (this.interactionRules == null) { this.interactionRules = new ArrayList<>(); } @@ -454,7 +459,7 @@ public UpdateSmartLiveRoomResponse addInteractionRulesItem(InteractionRuleInfo i } public UpdateSmartLiveRoomResponse withInteractionRules( - Consumer> interactionRulesSetter) { + Consumer> interactionRulesSetter) { if (this.interactionRules == null) { this.interactionRules = new ArrayList<>(); } @@ -466,11 +471,11 @@ public UpdateSmartLiveRoomResponse withInteractionRules( * 互动规则列表 * @return interactionRules */ - public List getInteractionRules() { + public List getInteractionRules() { return interactionRules; } - public void setInteractionRules(List interactionRules) { + public void setInteractionRules(List interactionRules) { this.interactionRules = interactionRules; } @@ -652,6 +657,33 @@ public void setLiveEventCallbackConfig(LiveEventCallBackConfig liveEventCallback this.liveEventCallbackConfig = liveEventCallbackConfig; } + public UpdateSmartLiveRoomResponse withRtcCallbackConfig(RTCLiveEventCallBackConfig rtcCallbackConfig) { + this.rtcCallbackConfig = rtcCallbackConfig; + return this; + } + + public UpdateSmartLiveRoomResponse withRtcCallbackConfig( + Consumer rtcCallbackConfigSetter) { + if (this.rtcCallbackConfig == null) { + this.rtcCallbackConfig = new RTCLiveEventCallBackConfig(); + rtcCallbackConfigSetter.accept(this.rtcCallbackConfig); + } + + return this; + } + + /** + * Get rtcCallbackConfig + * @return rtcCallbackConfig + */ + public RTCLiveEventCallBackConfig getRtcCallbackConfig() { + return rtcCallbackConfig; + } + + public void setRtcCallbackConfig(RTCLiveEventCallBackConfig rtcCallbackConfig) { + this.rtcCallbackConfig = rtcCallbackConfig; + } + public UpdateSmartLiveRoomResponse withReviewConfig(ReviewConfig reviewConfig) { this.reviewConfig = reviewConfig; return this; @@ -911,6 +943,7 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.outputUrls, that.outputUrls) && Objects.equals(this.streamKeys, that.streamKeys) && Objects.equals(this.backupModelAssetIds, that.backupModelAssetIds) && Objects.equals(this.liveEventCallbackConfig, that.liveEventCallbackConfig) + && Objects.equals(this.rtcCallbackConfig, that.rtcCallbackConfig) && Objects.equals(this.reviewConfig, that.reviewConfig) && Objects.equals(this.sharedConfig, that.sharedConfig) && Objects.equals(this.viewMode, that.viewMode) && Objects.equals(this.coStreamerConfig, that.coStreamerConfig) && Objects.equals(this.roomId, that.roomId) @@ -933,6 +966,7 @@ public int hashCode() { streamKeys, backupModelAssetIds, liveEventCallbackConfig, + rtcCallbackConfig, reviewConfig, sharedConfig, viewMode, @@ -962,6 +996,7 @@ public String toString() { sb.append(" streamKeys: ").append(toIndentedString(streamKeys)).append("\n"); sb.append(" backupModelAssetIds: ").append(toIndentedString(backupModelAssetIds)).append("\n"); sb.append(" liveEventCallbackConfig: ").append(toIndentedString(liveEventCallbackConfig)).append("\n"); + sb.append(" rtcCallbackConfig: ").append(toIndentedString(rtcCallbackConfig)).append("\n"); sb.append(" reviewConfig: ").append(toIndentedString(reviewConfig)).append("\n"); sb.append(" sharedConfig: ").append(toIndentedString(sharedConfig)).append("\n"); sb.append(" viewMode: ").append(toIndentedString(viewMode)).append("\n"); diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/VideoConfig.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/VideoConfig.java index 3e40e6df44..def5e27a9a 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/VideoConfig.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/VideoConfig.java @@ -288,6 +288,11 @@ public int hashCode() { private Integer dy; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_enable_super_resolution") + + private Boolean isEnableSuperResolution; + public VideoConfig withClipMode(ClipModeEnum clipMode) { this.clipMode = clipMode; return this; @@ -477,6 +482,23 @@ public void setDy(Integer dy) { this.dy = dy; } + public VideoConfig withIsEnableSuperResolution(Boolean isEnableSuperResolution) { + this.isEnableSuperResolution = isEnableSuperResolution; + return this; + } + + /** + * 视频是否开启超分。 > true: 开启 > false: 不开启 + * @return isEnableSuperResolution + */ + public Boolean getIsEnableSuperResolution() { + return isEnableSuperResolution; + } + + public void setIsEnableSuperResolution(Boolean isEnableSuperResolution) { + this.isEnableSuperResolution = isEnableSuperResolution; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -491,13 +513,23 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.height, that.height) && Objects.equals(this.frameRate, that.frameRate) && Objects.equals(this.isSubtitleEnable, that.isSubtitleEnable) && Objects.equals(this.subtitleConfig, that.subtitleConfig) && Objects.equals(this.dx, that.dx) - && Objects.equals(this.dy, that.dy); + && Objects.equals(this.dy, that.dy) + && Objects.equals(this.isEnableSuperResolution, that.isEnableSuperResolution); } @Override public int hashCode() { - return Objects - .hash(clipMode, codec, bitrate, width, height, frameRate, isSubtitleEnable, subtitleConfig, dx, dy); + return Objects.hash(clipMode, + codec, + bitrate, + width, + height, + frameRate, + isSubtitleEnable, + subtitleConfig, + dx, + dy, + isEnableSuperResolution); } @Override @@ -514,6 +546,7 @@ public String toString() { sb.append(" subtitleConfig: ").append(toIndentedString(subtitleConfig)).append("\n"); sb.append(" dx: ").append(toIndentedString(dx)).append("\n"); sb.append(" dy: ").append(toIndentedString(dy)).append("\n"); + sb.append(" isEnableSuperResolution: ").append(toIndentedString(isEnableSuperResolution)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/VoiceCapability.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/VoiceCapability.java new file mode 100644 index 0000000000..0c2cdaf356 --- /dev/null +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/VoiceCapability.java @@ -0,0 +1,247 @@ +package com.huaweicloud.sdk.metastudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 音色资产支持的能力集。 > 音色能力集只允许查询,不允许设置 + */ +public class VoiceCapability { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_support_phoneme") + + private Boolean isSupportPhoneme; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_support_break_time") + + private Boolean isSupportBreakTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_support_break_strength") + + private Boolean isSupportBreakStrength; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_support_speed") + + private Boolean isSupportSpeed; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_support_prosody") + + private Boolean isSupportProsody; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_support_ssml_say_as") + + private Boolean isSupportSsmlSayAs; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_support_ssml_sub") + + private Boolean isSupportSsmlSub; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_support_word") + + private Boolean isSupportWord; + + public VoiceCapability withIsSupportPhoneme(Boolean isSupportPhoneme) { + this.isSupportPhoneme = isSupportPhoneme; + return this; + } + + /** + * 是否支持多音字。 + * @return isSupportPhoneme + */ + public Boolean getIsSupportPhoneme() { + return isSupportPhoneme; + } + + public void setIsSupportPhoneme(Boolean isSupportPhoneme) { + this.isSupportPhoneme = isSupportPhoneme; + } + + public VoiceCapability withIsSupportBreakTime(Boolean isSupportBreakTime) { + this.isSupportBreakTime = isSupportBreakTime; + return this; + } + + /** + * 是否支持停顿。 + * @return isSupportBreakTime + */ + public Boolean getIsSupportBreakTime() { + return isSupportBreakTime; + } + + public void setIsSupportBreakTime(Boolean isSupportBreakTime) { + this.isSupportBreakTime = isSupportBreakTime; + } + + public VoiceCapability withIsSupportBreakStrength(Boolean isSupportBreakStrength) { + this.isSupportBreakStrength = isSupportBreakStrength; + return this; + } + + /** + * 是否支持韵律。 + * @return isSupportBreakStrength + */ + public Boolean getIsSupportBreakStrength() { + return isSupportBreakStrength; + } + + public void setIsSupportBreakStrength(Boolean isSupportBreakStrength) { + this.isSupportBreakStrength = isSupportBreakStrength; + } + + public VoiceCapability withIsSupportSpeed(Boolean isSupportSpeed) { + this.isSupportSpeed = isSupportSpeed; + return this; + } + + /** + * 是否支持全局语速。 + * @return isSupportSpeed + */ + public Boolean getIsSupportSpeed() { + return isSupportSpeed; + } + + public void setIsSupportSpeed(Boolean isSupportSpeed) { + this.isSupportSpeed = isSupportSpeed; + } + + public VoiceCapability withIsSupportProsody(Boolean isSupportProsody) { + this.isSupportProsody = isSupportProsody; + return this; + } + + /** + * 是否支持局部语速。 + * @return isSupportProsody + */ + public Boolean getIsSupportProsody() { + return isSupportProsody; + } + + public void setIsSupportProsody(Boolean isSupportProsody) { + this.isSupportProsody = isSupportProsody; + } + + public VoiceCapability withIsSupportSsmlSayAs(Boolean isSupportSsmlSayAs) { + this.isSupportSsmlSayAs = isSupportSsmlSayAs; + return this; + } + + /** + * 是否支持SSML的say-as标签。 + * @return isSupportSsmlSayAs + */ + public Boolean getIsSupportSsmlSayAs() { + return isSupportSsmlSayAs; + } + + public void setIsSupportSsmlSayAs(Boolean isSupportSsmlSayAs) { + this.isSupportSsmlSayAs = isSupportSsmlSayAs; + } + + public VoiceCapability withIsSupportSsmlSub(Boolean isSupportSsmlSub) { + this.isSupportSsmlSub = isSupportSsmlSub; + return this; + } + + /** + * 是否支持SSML的sub标签。 + * @return isSupportSsmlSub + */ + public Boolean getIsSupportSsmlSub() { + return isSupportSsmlSub; + } + + public void setIsSupportSsmlSub(Boolean isSupportSsmlSub) { + this.isSupportSsmlSub = isSupportSsmlSub; + } + + public VoiceCapability withIsSupportWord(Boolean isSupportWord) { + this.isSupportWord = isSupportWord; + return this; + } + + /** + * 是否支持连读。 + * @return isSupportWord + */ + public Boolean getIsSupportWord() { + return isSupportWord; + } + + public void setIsSupportWord(Boolean isSupportWord) { + this.isSupportWord = isSupportWord; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + VoiceCapability that = (VoiceCapability) obj; + return Objects.equals(this.isSupportPhoneme, that.isSupportPhoneme) + && Objects.equals(this.isSupportBreakTime, that.isSupportBreakTime) + && Objects.equals(this.isSupportBreakStrength, that.isSupportBreakStrength) + && Objects.equals(this.isSupportSpeed, that.isSupportSpeed) + && Objects.equals(this.isSupportProsody, that.isSupportProsody) + && Objects.equals(this.isSupportSsmlSayAs, that.isSupportSsmlSayAs) + && Objects.equals(this.isSupportSsmlSub, that.isSupportSsmlSub) + && Objects.equals(this.isSupportWord, that.isSupportWord); + } + + @Override + public int hashCode() { + return Objects.hash(isSupportPhoneme, + isSupportBreakTime, + isSupportBreakStrength, + isSupportSpeed, + isSupportProsody, + isSupportSsmlSayAs, + isSupportSsmlSub, + isSupportWord); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VoiceCapability {\n"); + sb.append(" isSupportPhoneme: ").append(toIndentedString(isSupportPhoneme)).append("\n"); + sb.append(" isSupportBreakTime: ").append(toIndentedString(isSupportBreakTime)).append("\n"); + sb.append(" isSupportBreakStrength: ").append(toIndentedString(isSupportBreakStrength)).append("\n"); + sb.append(" isSupportSpeed: ").append(toIndentedString(isSupportSpeed)).append("\n"); + sb.append(" isSupportProsody: ").append(toIndentedString(isSupportProsody)).append("\n"); + sb.append(" isSupportSsmlSayAs: ").append(toIndentedString(isSupportSsmlSayAs)).append("\n"); + sb.append(" isSupportSsmlSub: ").append(toIndentedString(isSupportSsmlSub)).append("\n"); + sb.append(" isSupportWord: ").append(toIndentedString(isSupportWord)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/VoiceModelAssetMeta.java b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/VoiceModelAssetMeta.java index 7ccb517bc1..8a6598b268 100644 --- a/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/VoiceModelAssetMeta.java +++ b/services/metastudio/src/main/java/com/huaweicloud/sdk/metastudio/v1/model/VoiceModelAssetMeta.java @@ -412,6 +412,16 @@ public int hashCode() { private Float volumeRatio; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_realtime_voice") + + private Boolean isRealtimeVoice; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "voice_capability") + + private VoiceCapability voiceCapability; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "external_voice_meta") @@ -525,6 +535,49 @@ public void setVolumeRatio(Float volumeRatio) { this.volumeRatio = volumeRatio; } + public VoiceModelAssetMeta withIsRealtimeVoice(Boolean isRealtimeVoice) { + this.isRealtimeVoice = isRealtimeVoice; + return this; + } + + /** + * 该音色是否支持实时合成,默认是true。 > * 支持实时合成的音色,可以用于直播和智能交互场景。否则只能用于视频制作。 + * @return isRealtimeVoice + */ + public Boolean getIsRealtimeVoice() { + return isRealtimeVoice; + } + + public void setIsRealtimeVoice(Boolean isRealtimeVoice) { + this.isRealtimeVoice = isRealtimeVoice; + } + + public VoiceModelAssetMeta withVoiceCapability(VoiceCapability voiceCapability) { + this.voiceCapability = voiceCapability; + return this; + } + + public VoiceModelAssetMeta withVoiceCapability(Consumer voiceCapabilitySetter) { + if (this.voiceCapability == null) { + this.voiceCapability = new VoiceCapability(); + voiceCapabilitySetter.accept(this.voiceCapability); + } + + return this; + } + + /** + * Get voiceCapability + * @return voiceCapability + */ + public VoiceCapability getVoiceCapability() { + return voiceCapability; + } + + public void setVoiceCapability(VoiceCapability voiceCapability) { + this.voiceCapability = voiceCapability; + } + public VoiceModelAssetMeta withExternalVoiceMeta(ExternalVoiceAssetMeta externalVoiceMeta) { this.externalVoiceMeta = externalVoiceMeta; return this; @@ -563,12 +616,22 @@ public boolean equals(java.lang.Object obj) { return Objects.equals(this.order, that.order) && Objects.equals(this.modelType, that.modelType) && Objects.equals(this.sex, that.sex) && Objects.equals(this.language, that.language) && Objects.equals(this.speedRatio, that.speedRatio) && Objects.equals(this.volumeRatio, that.volumeRatio) + && Objects.equals(this.isRealtimeVoice, that.isRealtimeVoice) + && Objects.equals(this.voiceCapability, that.voiceCapability) && Objects.equals(this.externalVoiceMeta, that.externalVoiceMeta); } @Override public int hashCode() { - return Objects.hash(order, modelType, sex, language, speedRatio, volumeRatio, externalVoiceMeta); + return Objects.hash(order, + modelType, + sex, + language, + speedRatio, + volumeRatio, + isRealtimeVoice, + voiceCapability, + externalVoiceMeta); } @Override @@ -581,6 +644,8 @@ public String toString() { sb.append(" language: ").append(toIndentedString(language)).append("\n"); sb.append(" speedRatio: ").append(toIndentedString(speedRatio)).append("\n"); sb.append(" volumeRatio: ").append(toIndentedString(volumeRatio)).append("\n"); + sb.append(" isRealtimeVoice: ").append(toIndentedString(isRealtimeVoice)).append("\n"); + sb.append(" voiceCapability: ").append(toIndentedString(voiceCapability)).append("\n"); sb.append(" externalVoiceMeta: ").append(toIndentedString(externalVoiceMeta)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/services/moderation/pom.xml b/services/moderation/pom.xml index cceddf08db..3715c8ab9b 100644 --- a/services/moderation/pom.xml +++ b/services/moderation/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-moderation - 3.1.99 + 3.1.100 Huawei Cloud SDK for MODERATION 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/mpc/pom.xml b/services/mpc/pom.xml index 346213fae9..07389a2fe0 100644 --- a/services/mpc/pom.xml +++ b/services/mpc/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-mpc - 3.1.99 + 3.1.100 Huawei Cloud SDK for MPC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/mrs/pom.xml b/services/mrs/pom.xml index 9353db3b6f..ce35acb7f8 100644 --- a/services/mrs/pom.xml +++ b/services/mrs/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-mrs - 3.1.99 + 3.1.100 Huawei Cloud SDK for MRS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/msgsms/pom.xml b/services/msgsms/pom.xml index 0a408b0282..eade61163f 100644 --- a/services/msgsms/pom.xml +++ b/services/msgsms/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-msgsms - 3.1.99 + 3.1.100 Huawei Cloud SDK for MSGSMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/mssi/pom.xml b/services/mssi/pom.xml index 688adf9d8b..41c4180516 100644 --- a/services/mssi/pom.xml +++ b/services/mssi/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-mssi - 3.1.99 + 3.1.100 Huawei Cloud SDK for MSSI 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/nat/pom.xml b/services/nat/pom.xml index 69c368b267..3872dd77e1 100644 --- a/services/nat/pom.xml +++ b/services/nat/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-nat - 3.1.99 + 3.1.100 Huawei Cloud SDK for NAT 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/nlp/pom.xml b/services/nlp/pom.xml index 46b239e252..b23d05e85b 100644 --- a/services/nlp/pom.xml +++ b/services/nlp/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-nlp - 3.1.99 + 3.1.100 Huawei Cloud SDK for NLP 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/oa/pom.xml b/services/oa/pom.xml index 5e4b2b8a9c..bebf9ab8f8 100644 --- a/services/oa/pom.xml +++ b/services/oa/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-oa - 3.1.99 + 3.1.100 Huawei Cloud SDK for OA 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/obs/pom.xml b/services/obs/pom.xml index 46545aa6de..b97c5264e7 100644 --- a/services/obs/pom.xml +++ b/services/obs/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-obs - 3.1.99 + 3.1.100 Huawei Cloud SDK for OBS 4.0.0 @@ -17,12 +17,12 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 com.huaweicloud.sdk huaweicloud-sdk-core-xml - 3.1.99 + 3.1.100 diff --git a/services/ocr/pom.xml b/services/ocr/pom.xml index 79e3091988..a5584e2388 100644 --- a/services/ocr/pom.xml +++ b/services/ocr/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-ocr - 3.1.99 + 3.1.100 Huawei Cloud SDK for OCR 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/oms/pom.xml b/services/oms/pom.xml index 98623b914e..8576aa64dc 100644 --- a/services/oms/pom.xml +++ b/services/oms/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-oms - 3.1.99 + 3.1.100 Huawei Cloud SDK for OMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/optverse/pom.xml b/services/optverse/pom.xml index c9bab767be..d694988cb7 100644 --- a/services/optverse/pom.xml +++ b/services/optverse/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-optverse - 3.1.99 + 3.1.100 Huawei Cloud SDK for OPTVERSE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/organizations/pom.xml b/services/organizations/pom.xml index 0b136bf357..3b68e59057 100644 --- a/services/organizations/pom.xml +++ b/services/organizations/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-organizations - 3.1.99 + 3.1.100 Huawei Cloud SDK for ORGANIZATIONS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/orgid/pom.xml b/services/orgid/pom.xml index d5a86dc5cc..ba03040712 100644 --- a/services/orgid/pom.xml +++ b/services/orgid/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-orgid - 3.1.99 + 3.1.100 Huawei Cloud SDK for ORGID 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/oroas/pom.xml b/services/oroas/pom.xml index f0bf344619..47650fda55 100644 --- a/services/oroas/pom.xml +++ b/services/oroas/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-oroas - 3.1.99 + 3.1.100 Huawei Cloud SDK for OROAS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/osm/pom.xml b/services/osm/pom.xml index 89e2e5beb9..bd783ddb12 100644 --- a/services/osm/pom.xml +++ b/services/osm/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-osm - 3.1.99 + 3.1.100 Huawei Cloud SDK for OSM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/pangulargemodels/pom.xml b/services/pangulargemodels/pom.xml index d7d1455342..fdde42c2f0 100644 --- a/services/pangulargemodels/pom.xml +++ b/services/pangulargemodels/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-pangulargemodels - 3.1.99 + 3.1.100 Huawei Cloud SDK for PANGULARGEMODELS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 org.springframework.boot diff --git a/services/pom.xml b/services/pom.xml index 657fb71b2e..50e8a3eeba 100644 --- a/services/pom.xml +++ b/services/pom.xml @@ -6,187 +6,187 @@ com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk com.huaweicloud.sdk huaweicloud-sdk-services - 3.1.99 + 3.1.100 pom Huawei Cloud SDK for Java Services Services code for Huawei Cloud SDK for Java https://github.com/huaweicloud/huaweicloud-sdk-java-v3 - koomap - cloudrtc - cbr - devstar - organizations - idme - csms - mpc - gaussdbfornosql - codecraft - dds - dc evs - cbs - ocr - cloudide - iec + dns + codeartsartifact + codeartspipeline koomessage - workspaceapp - roma - codehub - ram - dgc - msgsms - orgid - sdrs - dbss - bcs - dis - dataartsinsight - rms - hilens - sa + expert + nat + oms + ocr + kvs + ges + vpc + classroom + rocketmq + smn + eg css + codeartsinspector + ec + kms + mpc + gaussdb + sts cc - das - codeartsartifact - elb - rabbitmq - ces - eg - idmeclassicapi + orgid bms - campusgo - live - cpts - ddm - rgc - metastudio - cdm - cloudtable - devsecurity - koophone - dli - mrs cph - drs - dws - workspace - iam - ccm - cbh - smn - mas - ugo - gaussdbforopengauss - bss - iotda - expert - sts - asm - cts - ief - vpn - iamaccessanalyzer - lakeformation - identitycenterstore - scm - sms - eps - servicestage - sis - ges - geip - kms - mssi sfsturbo - codeartscheck - hss - vod + devstar + asm + codeartsbuild + bssintl + cbr + mrs nlp - imagesearch + frs aos - secmaster - ivs - classroom - dris - meeting - antiddos - oroas - ims - identitycenter - cgs - eip - image + cms + lts + cloudtable + drs + eihealth + codecraft + lakeformation + rabbitmq + optverse + cpts + sis cloudtest - config - cloudpond - projectman - codeartsinspector - pangulargemodels - cdn - dss - eds - dns - cse - dataartsstudio - rds - rocketmq - deh - vcm - dwr + cbh + dataartsinsight swr - oa - ec - cfw - apig - kps - apm - res - ga iotedge - vas - codeartsdeploy - mapds - dsc - gaussdb - eihealth - gsl - edgesec - aom - kvs - as - codeartspipeline - lts - cms - vpc - vpcep - oms - optverse osm - er dlf + kps iotanalytics - tms - frs + servicestage + functiongraph + aom + roma + cloudpond cae - moderation - waf + dris + ief + geip + codeartsdeploy + dwr + dc + dss + mas + vpcep + ims + ugo + cbs + dis + iam + elb + identitycenterstore + cfw + koomap obs - functiongraph - ecs - bssintl + oa + cdn + sdrs + idmeclassicapi + vpn + vcm + dli dcs - kafka + hilens + imagesearch + dsc + iec + as + devsecurity + identitycenter + organizations + bcs + cts + cloudide + dbss + eps + live tics - aad - nat + ddm + codehub + metastudio + er + iamaccessanalyzer + workspace cce - codeartsbuild + csms + waf + campusgo + idme + dws + vod + edgesec + eip + kafka + koophone + apm + ecs + gaussdbforopengauss + msgsms + cdm + dataartsstudio + dds + gsl + ivs + mapds + res + aad + cse + cgs + vas + sms + eds + moderation + rgc + ccm + antiddos + dgc + rds + config + das + hss + mssi + rms + deh + secmaster + ram + scm + ga + pangulargemodels + codeartscheck + apig + gaussdbfornosql + bss + oroas + cloudrtc + ces + tms + image + iotda + meeting + projectman + sa + workspaceapp diff --git a/services/projectman/pom.xml b/services/projectman/pom.xml index 402a9e9d66..ad7bbf2831 100644 --- a/services/projectman/pom.xml +++ b/services/projectman/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-projectman - 3.1.99 + 3.1.100 Huawei Cloud SDK for PROJECTMAN 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/rabbitmq/pom.xml b/services/rabbitmq/pom.xml index a8f5d3de9c..997b980386 100644 --- a/services/rabbitmq/pom.xml +++ b/services/rabbitmq/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-rabbitmq - 3.1.99 + 3.1.100 Huawei Cloud SDK for RABBITMQ 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/ram/pom.xml b/services/ram/pom.xml index 3989e949b2..2c06e9acee 100644 --- a/services/ram/pom.xml +++ b/services/ram/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-ram - 3.1.99 + 3.1.100 Huawei Cloud SDK for RAM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/rds/pom.xml b/services/rds/pom.xml index 454bf84b50..999fe9064d 100644 --- a/services/rds/pom.xml +++ b/services/rds/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-rds - 3.1.99 + 3.1.100 Huawei Cloud SDK for RDS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/rds/src/main/java/com/huaweicloud/sdk/rds/v3/model/ShowReplayDelayStatusResponse.java b/services/rds/src/main/java/com/huaweicloud/sdk/rds/v3/model/ShowReplayDelayStatusResponse.java index 9f975f5ba6..ab4a8aa9c6 100644 --- a/services/rds/src/main/java/com/huaweicloud/sdk/rds/v3/model/ShowReplayDelayStatusResponse.java +++ b/services/rds/src/main/java/com/huaweicloud/sdk/rds/v3/model/ShowReplayDelayStatusResponse.java @@ -16,6 +16,11 @@ public class ShowReplayDelayStatusResponse extends SdkResponse { private Integer curDelayTimeMills; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "delay_time_value_range") + + private String delayTimeValueRange; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "real_delay_time_mills") @@ -53,6 +58,23 @@ public void setCurDelayTimeMills(Integer curDelayTimeMills) { this.curDelayTimeMills = curDelayTimeMills; } + public ShowReplayDelayStatusResponse withDelayTimeValueRange(String delayTimeValueRange) { + this.delayTimeValueRange = delayTimeValueRange; + return this; + } + + /** + * 延迟时间参数取值范围 + * @return delayTimeValueRange + */ + public String getDelayTimeValueRange() { + return delayTimeValueRange; + } + + public void setDelayTimeValueRange(String delayTimeValueRange) { + this.delayTimeValueRange = delayTimeValueRange; + } + public ShowReplayDelayStatusResponse withRealDelayTimeMills(Integer realDelayTimeMills) { this.realDelayTimeMills = realDelayTimeMills; return this; @@ -131,6 +153,7 @@ public boolean equals(java.lang.Object obj) { } ShowReplayDelayStatusResponse that = (ShowReplayDelayStatusResponse) obj; return Objects.equals(this.curDelayTimeMills, that.curDelayTimeMills) + && Objects.equals(this.delayTimeValueRange, that.delayTimeValueRange) && Objects.equals(this.realDelayTimeMills, that.realDelayTimeMills) && Objects.equals(this.curLogReplayPaused, that.curLogReplayPaused) && Objects.equals(this.latestReceiveLog, that.latestReceiveLog) @@ -139,8 +162,12 @@ public boolean equals(java.lang.Object obj) { @Override public int hashCode() { - return Objects - .hash(curDelayTimeMills, realDelayTimeMills, curLogReplayPaused, latestReceiveLog, latestReplayLog); + return Objects.hash(curDelayTimeMills, + delayTimeValueRange, + realDelayTimeMills, + curLogReplayPaused, + latestReceiveLog, + latestReplayLog); } @Override @@ -148,6 +175,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ShowReplayDelayStatusResponse {\n"); sb.append(" curDelayTimeMills: ").append(toIndentedString(curDelayTimeMills)).append("\n"); + sb.append(" delayTimeValueRange: ").append(toIndentedString(delayTimeValueRange)).append("\n"); sb.append(" realDelayTimeMills: ").append(toIndentedString(realDelayTimeMills)).append("\n"); sb.append(" curLogReplayPaused: ").append(toIndentedString(curLogReplayPaused)).append("\n"); sb.append(" latestReceiveLog: ").append(toIndentedString(latestReceiveLog)).append("\n"); diff --git a/services/res/pom.xml b/services/res/pom.xml index e02e422d2e..04229a947e 100644 --- a/services/res/pom.xml +++ b/services/res/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-res - 3.1.99 + 3.1.100 Huawei Cloud SDK for RES 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/rgc/pom.xml b/services/rgc/pom.xml index d2848160bf..28440966a5 100644 --- a/services/rgc/pom.xml +++ b/services/rgc/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-rgc - 3.1.99 + 3.1.100 Huawei Cloud SDK for RGC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/rms/pom.xml b/services/rms/pom.xml index 72c8c7d0cb..5e01f72082 100644 --- a/services/rms/pom.xml +++ b/services/rms/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-rms - 3.1.99 + 3.1.100 Huawei Cloud SDK for RMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/rocketmq/pom.xml b/services/rocketmq/pom.xml index 1fd9c4af86..c258b95fe1 100644 --- a/services/rocketmq/pom.xml +++ b/services/rocketmq/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-rocketmq - 3.1.99 + 3.1.100 Huawei Cloud SDK for ROCKETMQ 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/roma/pom.xml b/services/roma/pom.xml index aeeece96b9..8d352061ad 100644 --- a/services/roma/pom.xml +++ b/services/roma/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-roma - 3.1.99 + 3.1.100 Huawei Cloud SDK for ROMA 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/sa/pom.xml b/services/sa/pom.xml index 28baebc209..b0043489a4 100644 --- a/services/sa/pom.xml +++ b/services/sa/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-sa - 3.1.99 + 3.1.100 Huawei Cloud SDK for SA 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/scm/pom.xml b/services/scm/pom.xml index f4666dc6fa..5cb4e04055 100644 --- a/services/scm/pom.xml +++ b/services/scm/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-scm - 3.1.99 + 3.1.100 Huawei Cloud SDK for SCM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/sdrs/pom.xml b/services/sdrs/pom.xml index 47bd99972e..7e44ccbdf3 100644 --- a/services/sdrs/pom.xml +++ b/services/sdrs/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-sdrs - 3.1.99 + 3.1.100 Huawei Cloud SDK for SDRS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/secmaster/pom.xml b/services/secmaster/pom.xml index a4e8a132dd..09e21a3f3d 100644 --- a/services/secmaster/pom.xml +++ b/services/secmaster/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-secmaster - 3.1.99 + 3.1.100 Huawei Cloud SDK for SECMASTER 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/servicestage/pom.xml b/services/servicestage/pom.xml index e8ea35e80e..87ffebd970 100644 --- a/services/servicestage/pom.xml +++ b/services/servicestage/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-servicestage - 3.1.99 + 3.1.100 Huawei Cloud SDK for SERVICESTAGE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/sfsturbo/pom.xml b/services/sfsturbo/pom.xml index 0376646bd0..e54261b2bb 100644 --- a/services/sfsturbo/pom.xml +++ b/services/sfsturbo/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-sfsturbo - 3.1.99 + 3.1.100 Huawei Cloud SDK for SFSTURBO 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/region/SFSTurboRegion.java b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/region/SFSTurboRegion.java index cae474ae10..2ea31ff091 100644 --- a/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/region/SFSTurboRegion.java +++ b/services/sfsturbo/src/main/java/com/huaweicloud/sdk/sfsturbo/v1/region/SFSTurboRegion.java @@ -68,6 +68,12 @@ public class SFSTurboRegion { public static final Region CN_SOUTH_4 = new Region("cn-south-4", "https://sfs-turbo.cn-south-4.myhuaweicloud.com"); + public static final Region RU_MOSCOW_1 = + new Region("ru-moscow-1", "https://sfs-turbo.ru-moscow-1.myhuaweicloud.com"); + + public static final Region MY_KUALALUMPUR_1 = + new Region("my-kualalumpur-1", "https://sfs-turbo.my-kualalumpur-1.myhuaweicloud.com"); + private static final IRegionProvider PROVIDER = RegionProviderChain.getDefaultRegionProviderChain("SFSTURBO"); private static final Map STATIC_FIELDS = createStaticFields(); @@ -97,6 +103,8 @@ private static Map createStaticFields() { map.put("me-east-1", ME_EAST_1); map.put("cn-east-5", CN_EAST_5); map.put("cn-south-4", CN_SOUTH_4); + map.put("ru-moscow-1", RU_MOSCOW_1); + map.put("my-kualalumpur-1", MY_KUALALUMPUR_1); return Collections.unmodifiableMap(map); } diff --git a/services/sis/pom.xml b/services/sis/pom.xml index 8032f1d9b3..2043615d5c 100644 --- a/services/sis/pom.xml +++ b/services/sis/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-sis - 3.1.99 + 3.1.100 Huawei Cloud SDK for SIS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/smn/pom.xml b/services/smn/pom.xml index 7f5ba1c588..e5f33efe34 100644 --- a/services/smn/pom.xml +++ b/services/smn/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-smn - 3.1.99 + 3.1.100 Huawei Cloud SDK for SMN 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/sms/pom.xml b/services/sms/pom.xml index 04423469ed..76a35fda44 100644 --- a/services/sms/pom.xml +++ b/services/sms/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-sms - 3.1.99 + 3.1.100 Huawei Cloud SDK for SMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/sms/src/main/java/com/huaweicloud/sdk/sms/v3/region/SmsRegion.java b/services/sms/src/main/java/com/huaweicloud/sdk/sms/v3/region/SmsRegion.java index 2ad68c676f..0f5f6426c7 100644 --- a/services/sms/src/main/java/com/huaweicloud/sdk/sms/v3/region/SmsRegion.java +++ b/services/sms/src/main/java/com/huaweicloud/sdk/sms/v3/region/SmsRegion.java @@ -23,7 +23,7 @@ public class SmsRegion { public static final Region MY_KUALALUMPUR_1 = new Region("my-kualalumpur-1", "https://sms.my-kualalumpur-1.myhuaweicloud.com"); - public static final Region EU_WEST_101 = new Region("eu-west-101", "https://sms.eu-west-101.myhuaweicloud.eu"); + public static final Region RU_MOSCOW_1 = new Region("ru-moscow-1", "https://sms-api.ru-moscow-1.myhuaweicloud.com"); private static final IRegionProvider PROVIDER = RegionProviderChain.getDefaultRegionProviderChain("SMS"); @@ -34,7 +34,7 @@ private static Map createStaticFields() { map.put("ap-southeast-1", AP_SOUTHEAST_1); map.put("ap-southeast-3", AP_SOUTHEAST_3); map.put("my-kualalumpur-1", MY_KUALALUMPUR_1); - map.put("eu-west-101", EU_WEST_101); + map.put("ru-moscow-1", RU_MOSCOW_1); return Collections.unmodifiableMap(map); } diff --git a/services/sts/pom.xml b/services/sts/pom.xml index c0d81eb138..ee22c3177f 100644 --- a/services/sts/pom.xml +++ b/services/sts/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-sts - 3.1.99 + 3.1.100 Huawei Cloud SDK for STS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/swr/pom.xml b/services/swr/pom.xml index 14bf60e429..841ec27869 100644 --- a/services/swr/pom.xml +++ b/services/swr/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-swr - 3.1.99 + 3.1.100 Huawei Cloud SDK for SWR 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/tics/pom.xml b/services/tics/pom.xml index a6185452f5..9093d8c16c 100644 --- a/services/tics/pom.xml +++ b/services/tics/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-tics - 3.1.99 + 3.1.100 Huawei Cloud SDK for TICS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/tms/pom.xml b/services/tms/pom.xml index ee60b8c526..336a3bcf29 100644 --- a/services/tms/pom.xml +++ b/services/tms/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-tms - 3.1.99 + 3.1.100 Huawei Cloud SDK for TMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/tms/src/main/java/com/huaweicloud/sdk/tms/v1/region/TmsRegion.java b/services/tms/src/main/java/com/huaweicloud/sdk/tms/v1/region/TmsRegion.java index b1782ff57c..7c0d8fba09 100644 --- a/services/tms/src/main/java/com/huaweicloud/sdk/tms/v1/region/TmsRegion.java +++ b/services/tms/src/main/java/com/huaweicloud/sdk/tms/v1/region/TmsRegion.java @@ -22,6 +22,9 @@ public class TmsRegion { public static final Region EU_WEST_101 = new Region("eu-west-101", "https://tms.eu-west-101.myhuaweicloud.eu"); + public static final Region RU_MOSCOW_1 = new Region("ru-moscow-1", "https://tms.ru-moscow-1.myhuaweicloud.com", + "https://tms.ru-moscow-1.myhuaweicloud.cn"); + private static final IRegionProvider PROVIDER = RegionProviderChain.getDefaultRegionProviderChain("TMS"); private static final Map STATIC_FIELDS = createStaticFields(); @@ -31,6 +34,7 @@ private static Map createStaticFields() { map.put("cn-north-4", CN_NORTH_4); map.put("ap-southeast-1", AP_SOUTHEAST_1); map.put("eu-west-101", EU_WEST_101); + map.put("ru-moscow-1", RU_MOSCOW_1); return Collections.unmodifiableMap(map); } diff --git a/services/ugo/pom.xml b/services/ugo/pom.xml index 774bf5e9c8..737e75bb21 100644 --- a/services/ugo/pom.xml +++ b/services/ugo/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-ugo - 3.1.99 + 3.1.100 Huawei Cloud SDK for UGO 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/vas/pom.xml b/services/vas/pom.xml index 4af75ce0b2..ff4714f5f1 100644 --- a/services/vas/pom.xml +++ b/services/vas/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-vas - 3.1.99 + 3.1.100 Huawei Cloud SDK for VAS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/vcm/pom.xml b/services/vcm/pom.xml index 1c8cf4dbc3..4c3323117b 100644 --- a/services/vcm/pom.xml +++ b/services/vcm/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-vcm - 3.1.99 + 3.1.100 Huawei Cloud SDK for VCM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/vod/pom.xml b/services/vod/pom.xml index 18fe2e3a2b..3b2fa82cad 100644 --- a/services/vod/pom.xml +++ b/services/vod/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-vod - 3.1.99 + 3.1.100 Huawei Cloud SDK for VOD 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/vpc/pom.xml b/services/vpc/pom.xml index 43375c8bda..af7caf62fb 100644 --- a/services/vpc/pom.xml +++ b/services/vpc/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-vpc - 3.1.99 + 3.1.100 Huawei Cloud SDK for VPC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/VpcAsyncClient.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/VpcAsyncClient.java index bdb7c795c2..a95287b7ad 100644 --- a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/VpcAsyncClient.java +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/VpcAsyncClient.java @@ -7,10 +7,14 @@ import com.huaweicloud.sdk.vpc.v2.model.AcceptVpcPeeringResponse; import com.huaweicloud.sdk.vpc.v2.model.AssociateRouteTableRequest; import com.huaweicloud.sdk.vpc.v2.model.AssociateRouteTableResponse; +import com.huaweicloud.sdk.vpc.v2.model.BatchCreateSecurityGroupTagsRequest; +import com.huaweicloud.sdk.vpc.v2.model.BatchCreateSecurityGroupTagsResponse; import com.huaweicloud.sdk.vpc.v2.model.BatchCreateSubnetTagsRequest; import com.huaweicloud.sdk.vpc.v2.model.BatchCreateSubnetTagsResponse; import com.huaweicloud.sdk.vpc.v2.model.BatchCreateVpcTagsRequest; import com.huaweicloud.sdk.vpc.v2.model.BatchCreateVpcTagsResponse; +import com.huaweicloud.sdk.vpc.v2.model.BatchDeleteSecurityGroupTagsRequest; +import com.huaweicloud.sdk.vpc.v2.model.BatchDeleteSecurityGroupTagsResponse; import com.huaweicloud.sdk.vpc.v2.model.BatchDeleteSubnetTagsRequest; import com.huaweicloud.sdk.vpc.v2.model.BatchDeleteSubnetTagsResponse; import com.huaweicloud.sdk.vpc.v2.model.BatchDeleteVpcTagsRequest; @@ -27,6 +31,8 @@ import com.huaweicloud.sdk.vpc.v2.model.CreateSecurityGroupResponse; import com.huaweicloud.sdk.vpc.v2.model.CreateSecurityGroupRuleRequest; import com.huaweicloud.sdk.vpc.v2.model.CreateSecurityGroupRuleResponse; +import com.huaweicloud.sdk.vpc.v2.model.CreateSecurityGroupTagRequest; +import com.huaweicloud.sdk.vpc.v2.model.CreateSecurityGroupTagResponse; import com.huaweicloud.sdk.vpc.v2.model.CreateSubnetRequest; import com.huaweicloud.sdk.vpc.v2.model.CreateSubnetResponse; import com.huaweicloud.sdk.vpc.v2.model.CreateSubnetTagRequest; @@ -51,6 +57,8 @@ import com.huaweicloud.sdk.vpc.v2.model.DeleteSecurityGroupResponse; import com.huaweicloud.sdk.vpc.v2.model.DeleteSecurityGroupRuleRequest; import com.huaweicloud.sdk.vpc.v2.model.DeleteSecurityGroupRuleResponse; +import com.huaweicloud.sdk.vpc.v2.model.DeleteSecurityGroupTagRequest; +import com.huaweicloud.sdk.vpc.v2.model.DeleteSecurityGroupTagResponse; import com.huaweicloud.sdk.vpc.v2.model.DeleteSubnetRequest; import com.huaweicloud.sdk.vpc.v2.model.DeleteSubnetResponse; import com.huaweicloud.sdk.vpc.v2.model.DeleteSubnetTagRequest; @@ -77,6 +85,10 @@ import com.huaweicloud.sdk.vpc.v2.model.ListRouteTablesResponse; import com.huaweicloud.sdk.vpc.v2.model.ListSecurityGroupRulesRequest; import com.huaweicloud.sdk.vpc.v2.model.ListSecurityGroupRulesResponse; +import com.huaweicloud.sdk.vpc.v2.model.ListSecurityGroupTagsRequest; +import com.huaweicloud.sdk.vpc.v2.model.ListSecurityGroupTagsResponse; +import com.huaweicloud.sdk.vpc.v2.model.ListSecurityGroupsByTagsRequest; +import com.huaweicloud.sdk.vpc.v2.model.ListSecurityGroupsByTagsResponse; import com.huaweicloud.sdk.vpc.v2.model.ListSecurityGroupsRequest; import com.huaweicloud.sdk.vpc.v2.model.ListSecurityGroupsResponse; import com.huaweicloud.sdk.vpc.v2.model.ListSubnetTagsRequest; @@ -209,6 +221,8 @@ import com.huaweicloud.sdk.vpc.v2.model.ShowSecurityGroupResponse; import com.huaweicloud.sdk.vpc.v2.model.ShowSecurityGroupRuleRequest; import com.huaweicloud.sdk.vpc.v2.model.ShowSecurityGroupRuleResponse; +import com.huaweicloud.sdk.vpc.v2.model.ShowSecurityGroupTagsRequest; +import com.huaweicloud.sdk.vpc.v2.model.ShowSecurityGroupTagsResponse; import com.huaweicloud.sdk.vpc.v2.model.ShowSubnetRequest; import com.huaweicloud.sdk.vpc.v2.model.ShowSubnetResponse; import com.huaweicloud.sdk.vpc.v2.model.ShowSubnetTagsRequest; @@ -307,6 +321,38 @@ public AsyncInvoker ass return new AsyncInvoker<>(request, VpcMeta.associateRouteTable, hcClient); } + /** + * 批量创建安全组资源标签 + * + * 为指定的安全组资源实例批量添加标签。 + * 此接口为幂等接口:创建时如果请求体中存在重复key则报错。创建时,不允许设置重复key数据,如果数据库已存在该key,就覆盖value的值。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchCreateSecurityGroupTagsRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture batchCreateSecurityGroupTagsAsync( + BatchCreateSecurityGroupTagsRequest request) { + return hcClient.asyncInvokeHttp(request, VpcMeta.batchCreateSecurityGroupTags); + } + + /** + * 批量创建安全组资源标签 + * + * 为指定的安全组资源实例批量添加标签。 + * 此接口为幂等接口:创建时如果请求体中存在重复key则报错。创建时,不允许设置重复key数据,如果数据库已存在该key,就覆盖value的值。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchCreateSecurityGroupTagsRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker batchCreateSecurityGroupTagsAsyncInvoker( + BatchCreateSecurityGroupTagsRequest request) { + return new AsyncInvoker<>(request, VpcMeta.batchCreateSecurityGroupTags, hcClient); + } + /** * 批量创建子网资源标签 * @@ -339,6 +385,38 @@ public AsyncInvoker return new AsyncInvoker<>(request, VpcMeta.batchCreateSubnetTags, hcClient); } + /** + * 批量删除安全组资源标签 + * + * 为指定的安全组资源实例批量删除标签 + * 此接口为幂等接口:删除时,如果删除的标签不存在,默认处理成功;删除时不对标签字符集范围做校验。删除时tags结构体不能缺失,key不能为空,或者空字符串。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchDeleteSecurityGroupTagsRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture batchDeleteSecurityGroupTagsAsync( + BatchDeleteSecurityGroupTagsRequest request) { + return hcClient.asyncInvokeHttp(request, VpcMeta.batchDeleteSecurityGroupTags); + } + + /** + * 批量删除安全组资源标签 + * + * 为指定的安全组资源实例批量删除标签 + * 此接口为幂等接口:删除时,如果删除的标签不存在,默认处理成功;删除时不对标签字符集范围做校验。删除时tags结构体不能缺失,key不能为空,或者空字符串。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchDeleteSecurityGroupTagsRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker batchDeleteSecurityGroupTagsAsyncInvoker( + BatchDeleteSecurityGroupTagsRequest request) { + return new AsyncInvoker<>(request, VpcMeta.batchDeleteSecurityGroupTags, hcClient); + } + /** * 批量删除子网资源标签 * @@ -520,6 +598,38 @@ public AsyncInvoker(request, VpcMeta.createSecurityGroupRule, hcClient); } + /** + * 创建安全组资源标签 + * + * 给指定安全组资源实例增加标签信息。 + * 此接口为幂等接口:创建时,如果创建的标签已经存在(key相同),则覆盖。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateSecurityGroupTagRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture createSecurityGroupTagAsync( + CreateSecurityGroupTagRequest request) { + return hcClient.asyncInvokeHttp(request, VpcMeta.createSecurityGroupTag); + } + + /** + * 创建安全组资源标签 + * + * 给指定安全组资源实例增加标签信息。 + * 此接口为幂等接口:创建时,如果创建的标签已经存在(key相同),则覆盖。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateSecurityGroupTagRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker createSecurityGroupTagAsyncInvoker( + CreateSecurityGroupTagRequest request) { + return new AsyncInvoker<>(request, VpcMeta.createSecurityGroupTag, hcClient); + } + /** * 创建子网 * @@ -754,6 +864,38 @@ public AsyncInvoker(request, VpcMeta.deleteSecurityGroupRule, hcClient); } + /** + * 删除安全组资源标签 + * + * 删除指定安全组资源实例的标签信息。 + * 该接口为幂等接口:删除的key不存在报404,Key不能为空或者空字符串 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteSecurityGroupTagRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture deleteSecurityGroupTagAsync( + DeleteSecurityGroupTagRequest request) { + return hcClient.asyncInvokeHttp(request, VpcMeta.deleteSecurityGroupTag); + } + + /** + * 删除安全组资源标签 + * + * 删除指定安全组资源实例的标签信息。 + * 该接口为幂等接口:删除的key不存在报404,Key不能为空或者空字符串 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteSecurityGroupTagRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker deleteSecurityGroupTagAsyncInvoker( + DeleteSecurityGroupTagRequest request) { + return new AsyncInvoker<>(request, VpcMeta.deleteSecurityGroupTag, hcClient); + } + /** * 删除子网 * @@ -991,6 +1133,36 @@ public AsyncInvoker(request, VpcMeta.listSecurityGroupRules, hcClient); } + /** + * 查询安全组项目标签 + * + * 查询租户在指定区域和实例类型的所有标签集合 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListSecurityGroupTagsRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listSecurityGroupTagsAsync( + ListSecurityGroupTagsRequest request) { + return hcClient.asyncInvokeHttp(request, VpcMeta.listSecurityGroupTags); + } + + /** + * 查询安全组项目标签 + * + * 查询租户在指定区域和实例类型的所有标签集合 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListSecurityGroupTagsRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listSecurityGroupTagsAsyncInvoker( + ListSecurityGroupTagsRequest request) { + return new AsyncInvoker<>(request, VpcMeta.listSecurityGroupTags, hcClient); + } + /** * 查询安全组列表 * @@ -1020,6 +1192,36 @@ public AsyncInvoker listS return new AsyncInvoker<>(request, VpcMeta.listSecurityGroups, hcClient); } + /** + * 查询安全组资源实例 + * + * 使用标签过滤实例 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListSecurityGroupsByTagsRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listSecurityGroupsByTagsAsync( + ListSecurityGroupsByTagsRequest request) { + return hcClient.asyncInvokeHttp(request, VpcMeta.listSecurityGroupsByTags); + } + + /** + * 查询安全组资源实例 + * + * 使用标签过滤实例 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListSecurityGroupsByTagsRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listSecurityGroupsByTagsAsyncInvoker( + ListSecurityGroupsByTagsRequest request) { + return new AsyncInvoker<>(request, VpcMeta.listSecurityGroupsByTags, hcClient); + } + /** * 查询子网项目标签 * @@ -1336,6 +1538,36 @@ public AsyncInvoker return new AsyncInvoker<>(request, VpcMeta.showSecurityGroupRule, hcClient); } + /** + * 查询安全组资源标签 + * + * 查询指定安全组实例的标签信息。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowSecurityGroupTagsRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showSecurityGroupTagsAsync( + ShowSecurityGroupTagsRequest request) { + return hcClient.asyncInvokeHttp(request, VpcMeta.showSecurityGroupTags); + } + + /** + * 查询安全组资源标签 + * + * 查询指定安全组实例的标签信息。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowSecurityGroupTagsRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showSecurityGroupTagsAsyncInvoker( + ShowSecurityGroupTagsRequest request) { + return new AsyncInvoker<>(request, VpcMeta.showSecurityGroupTags, hcClient); + } + /** * 查询子网 * diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/VpcClient.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/VpcClient.java index 932749cc33..4a9d55e57b 100644 --- a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/VpcClient.java +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/VpcClient.java @@ -7,10 +7,14 @@ import com.huaweicloud.sdk.vpc.v2.model.AcceptVpcPeeringResponse; import com.huaweicloud.sdk.vpc.v2.model.AssociateRouteTableRequest; import com.huaweicloud.sdk.vpc.v2.model.AssociateRouteTableResponse; +import com.huaweicloud.sdk.vpc.v2.model.BatchCreateSecurityGroupTagsRequest; +import com.huaweicloud.sdk.vpc.v2.model.BatchCreateSecurityGroupTagsResponse; import com.huaweicloud.sdk.vpc.v2.model.BatchCreateSubnetTagsRequest; import com.huaweicloud.sdk.vpc.v2.model.BatchCreateSubnetTagsResponse; import com.huaweicloud.sdk.vpc.v2.model.BatchCreateVpcTagsRequest; import com.huaweicloud.sdk.vpc.v2.model.BatchCreateVpcTagsResponse; +import com.huaweicloud.sdk.vpc.v2.model.BatchDeleteSecurityGroupTagsRequest; +import com.huaweicloud.sdk.vpc.v2.model.BatchDeleteSecurityGroupTagsResponse; import com.huaweicloud.sdk.vpc.v2.model.BatchDeleteSubnetTagsRequest; import com.huaweicloud.sdk.vpc.v2.model.BatchDeleteSubnetTagsResponse; import com.huaweicloud.sdk.vpc.v2.model.BatchDeleteVpcTagsRequest; @@ -27,6 +31,8 @@ import com.huaweicloud.sdk.vpc.v2.model.CreateSecurityGroupResponse; import com.huaweicloud.sdk.vpc.v2.model.CreateSecurityGroupRuleRequest; import com.huaweicloud.sdk.vpc.v2.model.CreateSecurityGroupRuleResponse; +import com.huaweicloud.sdk.vpc.v2.model.CreateSecurityGroupTagRequest; +import com.huaweicloud.sdk.vpc.v2.model.CreateSecurityGroupTagResponse; import com.huaweicloud.sdk.vpc.v2.model.CreateSubnetRequest; import com.huaweicloud.sdk.vpc.v2.model.CreateSubnetResponse; import com.huaweicloud.sdk.vpc.v2.model.CreateSubnetTagRequest; @@ -51,6 +57,8 @@ import com.huaweicloud.sdk.vpc.v2.model.DeleteSecurityGroupResponse; import com.huaweicloud.sdk.vpc.v2.model.DeleteSecurityGroupRuleRequest; import com.huaweicloud.sdk.vpc.v2.model.DeleteSecurityGroupRuleResponse; +import com.huaweicloud.sdk.vpc.v2.model.DeleteSecurityGroupTagRequest; +import com.huaweicloud.sdk.vpc.v2.model.DeleteSecurityGroupTagResponse; import com.huaweicloud.sdk.vpc.v2.model.DeleteSubnetRequest; import com.huaweicloud.sdk.vpc.v2.model.DeleteSubnetResponse; import com.huaweicloud.sdk.vpc.v2.model.DeleteSubnetTagRequest; @@ -77,6 +85,10 @@ import com.huaweicloud.sdk.vpc.v2.model.ListRouteTablesResponse; import com.huaweicloud.sdk.vpc.v2.model.ListSecurityGroupRulesRequest; import com.huaweicloud.sdk.vpc.v2.model.ListSecurityGroupRulesResponse; +import com.huaweicloud.sdk.vpc.v2.model.ListSecurityGroupTagsRequest; +import com.huaweicloud.sdk.vpc.v2.model.ListSecurityGroupTagsResponse; +import com.huaweicloud.sdk.vpc.v2.model.ListSecurityGroupsByTagsRequest; +import com.huaweicloud.sdk.vpc.v2.model.ListSecurityGroupsByTagsResponse; import com.huaweicloud.sdk.vpc.v2.model.ListSecurityGroupsRequest; import com.huaweicloud.sdk.vpc.v2.model.ListSecurityGroupsResponse; import com.huaweicloud.sdk.vpc.v2.model.ListSubnetTagsRequest; @@ -209,6 +221,8 @@ import com.huaweicloud.sdk.vpc.v2.model.ShowSecurityGroupResponse; import com.huaweicloud.sdk.vpc.v2.model.ShowSecurityGroupRuleRequest; import com.huaweicloud.sdk.vpc.v2.model.ShowSecurityGroupRuleResponse; +import com.huaweicloud.sdk.vpc.v2.model.ShowSecurityGroupTagsRequest; +import com.huaweicloud.sdk.vpc.v2.model.ShowSecurityGroupTagsResponse; import com.huaweicloud.sdk.vpc.v2.model.ShowSubnetRequest; import com.huaweicloud.sdk.vpc.v2.model.ShowSubnetResponse; import com.huaweicloud.sdk.vpc.v2.model.ShowSubnetTagsRequest; @@ -305,6 +319,38 @@ public SyncInvoker asso return new SyncInvoker<>(request, VpcMeta.associateRouteTable, hcClient); } + /** + * 批量创建安全组资源标签 + * + * 为指定的安全组资源实例批量添加标签。 + * 此接口为幂等接口:创建时如果请求体中存在重复key则报错。创建时,不允许设置重复key数据,如果数据库已存在该key,就覆盖value的值。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchCreateSecurityGroupTagsRequest 请求对象 + * @return BatchCreateSecurityGroupTagsResponse + */ + public BatchCreateSecurityGroupTagsResponse batchCreateSecurityGroupTags( + BatchCreateSecurityGroupTagsRequest request) { + return hcClient.syncInvokeHttp(request, VpcMeta.batchCreateSecurityGroupTags); + } + + /** + * 批量创建安全组资源标签 + * + * 为指定的安全组资源实例批量添加标签。 + * 此接口为幂等接口:创建时如果请求体中存在重复key则报错。创建时,不允许设置重复key数据,如果数据库已存在该key,就覆盖value的值。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchCreateSecurityGroupTagsRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker batchCreateSecurityGroupTagsInvoker( + BatchCreateSecurityGroupTagsRequest request) { + return new SyncInvoker<>(request, VpcMeta.batchCreateSecurityGroupTags, hcClient); + } + /** * 批量创建子网资源标签 * @@ -336,6 +382,38 @@ public SyncInvoker return new SyncInvoker<>(request, VpcMeta.batchCreateSubnetTags, hcClient); } + /** + * 批量删除安全组资源标签 + * + * 为指定的安全组资源实例批量删除标签 + * 此接口为幂等接口:删除时,如果删除的标签不存在,默认处理成功;删除时不对标签字符集范围做校验。删除时tags结构体不能缺失,key不能为空,或者空字符串。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchDeleteSecurityGroupTagsRequest 请求对象 + * @return BatchDeleteSecurityGroupTagsResponse + */ + public BatchDeleteSecurityGroupTagsResponse batchDeleteSecurityGroupTags( + BatchDeleteSecurityGroupTagsRequest request) { + return hcClient.syncInvokeHttp(request, VpcMeta.batchDeleteSecurityGroupTags); + } + + /** + * 批量删除安全组资源标签 + * + * 为指定的安全组资源实例批量删除标签 + * 此接口为幂等接口:删除时,如果删除的标签不存在,默认处理成功;删除时不对标签字符集范围做校验。删除时tags结构体不能缺失,key不能为空,或者空字符串。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchDeleteSecurityGroupTagsRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker batchDeleteSecurityGroupTagsInvoker( + BatchDeleteSecurityGroupTagsRequest request) { + return new SyncInvoker<>(request, VpcMeta.batchDeleteSecurityGroupTags, hcClient); + } + /** * 批量删除子网资源标签 * @@ -514,6 +592,37 @@ public SyncInvoker(request, VpcMeta.createSecurityGroupRule, hcClient); } + /** + * 创建安全组资源标签 + * + * 给指定安全组资源实例增加标签信息。 + * 此接口为幂等接口:创建时,如果创建的标签已经存在(key相同),则覆盖。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateSecurityGroupTagRequest 请求对象 + * @return CreateSecurityGroupTagResponse + */ + public CreateSecurityGroupTagResponse createSecurityGroupTag(CreateSecurityGroupTagRequest request) { + return hcClient.syncInvokeHttp(request, VpcMeta.createSecurityGroupTag); + } + + /** + * 创建安全组资源标签 + * + * 给指定安全组资源实例增加标签信息。 + * 此接口为幂等接口:创建时,如果创建的标签已经存在(key相同),则覆盖。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateSecurityGroupTagRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker createSecurityGroupTagInvoker( + CreateSecurityGroupTagRequest request) { + return new SyncInvoker<>(request, VpcMeta.createSecurityGroupTag, hcClient); + } + /** * 创建子网 * @@ -745,6 +854,37 @@ public SyncInvoker(request, VpcMeta.deleteSecurityGroupRule, hcClient); } + /** + * 删除安全组资源标签 + * + * 删除指定安全组资源实例的标签信息。 + * 该接口为幂等接口:删除的key不存在报404,Key不能为空或者空字符串 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteSecurityGroupTagRequest 请求对象 + * @return DeleteSecurityGroupTagResponse + */ + public DeleteSecurityGroupTagResponse deleteSecurityGroupTag(DeleteSecurityGroupTagRequest request) { + return hcClient.syncInvokeHttp(request, VpcMeta.deleteSecurityGroupTag); + } + + /** + * 删除安全组资源标签 + * + * 删除指定安全组资源实例的标签信息。 + * 该接口为幂等接口:删除的key不存在报404,Key不能为空或者空字符串 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteSecurityGroupTagRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker deleteSecurityGroupTagInvoker( + DeleteSecurityGroupTagRequest request) { + return new SyncInvoker<>(request, VpcMeta.deleteSecurityGroupTag, hcClient); + } + /** * 删除子网 * @@ -978,6 +1118,35 @@ public SyncInvoker(request, VpcMeta.listSecurityGroupRules, hcClient); } + /** + * 查询安全组项目标签 + * + * 查询租户在指定区域和实例类型的所有标签集合 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListSecurityGroupTagsRequest 请求对象 + * @return ListSecurityGroupTagsResponse + */ + public ListSecurityGroupTagsResponse listSecurityGroupTags(ListSecurityGroupTagsRequest request) { + return hcClient.syncInvokeHttp(request, VpcMeta.listSecurityGroupTags); + } + + /** + * 查询安全组项目标签 + * + * 查询租户在指定区域和实例类型的所有标签集合 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListSecurityGroupTagsRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listSecurityGroupTagsInvoker( + ListSecurityGroupTagsRequest request) { + return new SyncInvoker<>(request, VpcMeta.listSecurityGroupTags, hcClient); + } + /** * 查询安全组列表 * @@ -1007,6 +1176,35 @@ public SyncInvoker listSe return new SyncInvoker<>(request, VpcMeta.listSecurityGroups, hcClient); } + /** + * 查询安全组资源实例 + * + * 使用标签过滤实例 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListSecurityGroupsByTagsRequest 请求对象 + * @return ListSecurityGroupsByTagsResponse + */ + public ListSecurityGroupsByTagsResponse listSecurityGroupsByTags(ListSecurityGroupsByTagsRequest request) { + return hcClient.syncInvokeHttp(request, VpcMeta.listSecurityGroupsByTags); + } + + /** + * 查询安全组资源实例 + * + * 使用标签过滤实例 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListSecurityGroupsByTagsRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listSecurityGroupsByTagsInvoker( + ListSecurityGroupsByTagsRequest request) { + return new SyncInvoker<>(request, VpcMeta.listSecurityGroupsByTags, hcClient); + } + /** * 查询子网项目标签 * @@ -1322,6 +1520,35 @@ public SyncInvoker return new SyncInvoker<>(request, VpcMeta.showSecurityGroupRule, hcClient); } + /** + * 查询安全组资源标签 + * + * 查询指定安全组实例的标签信息。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowSecurityGroupTagsRequest 请求对象 + * @return ShowSecurityGroupTagsResponse + */ + public ShowSecurityGroupTagsResponse showSecurityGroupTags(ShowSecurityGroupTagsRequest request) { + return hcClient.syncInvokeHttp(request, VpcMeta.showSecurityGroupTags); + } + + /** + * 查询安全组资源标签 + * + * 查询指定安全组实例的标签信息。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowSecurityGroupTagsRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showSecurityGroupTagsInvoker( + ShowSecurityGroupTagsRequest request) { + return new SyncInvoker<>(request, VpcMeta.showSecurityGroupTags, hcClient); + } + /** * 查询子网 * diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/VpcMeta.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/VpcMeta.java index 7082022d19..99b5597dcc 100644 --- a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/VpcMeta.java +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/VpcMeta.java @@ -9,12 +9,18 @@ import com.huaweicloud.sdk.vpc.v2.model.AcceptVpcPeeringResponse; import com.huaweicloud.sdk.vpc.v2.model.AssociateRouteTableRequest; import com.huaweicloud.sdk.vpc.v2.model.AssociateRouteTableResponse; +import com.huaweicloud.sdk.vpc.v2.model.BatchCreateSecurityGroupTagsRequest; +import com.huaweicloud.sdk.vpc.v2.model.BatchCreateSecurityGroupTagsRequestBody; +import com.huaweicloud.sdk.vpc.v2.model.BatchCreateSecurityGroupTagsResponse; import com.huaweicloud.sdk.vpc.v2.model.BatchCreateSubnetTagsRequest; import com.huaweicloud.sdk.vpc.v2.model.BatchCreateSubnetTagsRequestBody; import com.huaweicloud.sdk.vpc.v2.model.BatchCreateSubnetTagsResponse; import com.huaweicloud.sdk.vpc.v2.model.BatchCreateVpcTagsRequest; import com.huaweicloud.sdk.vpc.v2.model.BatchCreateVpcTagsRequestBody; import com.huaweicloud.sdk.vpc.v2.model.BatchCreateVpcTagsResponse; +import com.huaweicloud.sdk.vpc.v2.model.BatchDeleteSecurityGroupTagsRequest; +import com.huaweicloud.sdk.vpc.v2.model.BatchDeleteSecurityGroupTagsRequestBody; +import com.huaweicloud.sdk.vpc.v2.model.BatchDeleteSecurityGroupTagsResponse; import com.huaweicloud.sdk.vpc.v2.model.BatchDeleteSubnetTagsRequest; import com.huaweicloud.sdk.vpc.v2.model.BatchDeleteSubnetTagsRequestBody; import com.huaweicloud.sdk.vpc.v2.model.BatchDeleteSubnetTagsResponse; @@ -39,6 +45,9 @@ import com.huaweicloud.sdk.vpc.v2.model.CreateSecurityGroupRuleRequest; import com.huaweicloud.sdk.vpc.v2.model.CreateSecurityGroupRuleRequestBody; import com.huaweicloud.sdk.vpc.v2.model.CreateSecurityGroupRuleResponse; +import com.huaweicloud.sdk.vpc.v2.model.CreateSecurityGroupTagRequest; +import com.huaweicloud.sdk.vpc.v2.model.CreateSecurityGroupTagRequestBody; +import com.huaweicloud.sdk.vpc.v2.model.CreateSecurityGroupTagResponse; import com.huaweicloud.sdk.vpc.v2.model.CreateSubnetRequest; import com.huaweicloud.sdk.vpc.v2.model.CreateSubnetRequestBody; import com.huaweicloud.sdk.vpc.v2.model.CreateSubnetResponse; @@ -69,6 +78,8 @@ import com.huaweicloud.sdk.vpc.v2.model.DeleteSecurityGroupResponse; import com.huaweicloud.sdk.vpc.v2.model.DeleteSecurityGroupRuleRequest; import com.huaweicloud.sdk.vpc.v2.model.DeleteSecurityGroupRuleResponse; +import com.huaweicloud.sdk.vpc.v2.model.DeleteSecurityGroupTagRequest; +import com.huaweicloud.sdk.vpc.v2.model.DeleteSecurityGroupTagResponse; import com.huaweicloud.sdk.vpc.v2.model.DeleteSubnetRequest; import com.huaweicloud.sdk.vpc.v2.model.DeleteSubnetResponse; import com.huaweicloud.sdk.vpc.v2.model.DeleteSubnetTagRequest; @@ -95,6 +106,11 @@ import com.huaweicloud.sdk.vpc.v2.model.ListRouteTablesResponse; import com.huaweicloud.sdk.vpc.v2.model.ListSecurityGroupRulesRequest; import com.huaweicloud.sdk.vpc.v2.model.ListSecurityGroupRulesResponse; +import com.huaweicloud.sdk.vpc.v2.model.ListSecurityGroupTagsRequest; +import com.huaweicloud.sdk.vpc.v2.model.ListSecurityGroupTagsResponse; +import com.huaweicloud.sdk.vpc.v2.model.ListSecurityGroupsByTagsRequest; +import com.huaweicloud.sdk.vpc.v2.model.ListSecurityGroupsByTagsRequestBody; +import com.huaweicloud.sdk.vpc.v2.model.ListSecurityGroupsByTagsResponse; import com.huaweicloud.sdk.vpc.v2.model.ListSecurityGroupsRequest; import com.huaweicloud.sdk.vpc.v2.model.ListSecurityGroupsResponse; import com.huaweicloud.sdk.vpc.v2.model.ListSubnetTagsRequest; @@ -250,6 +266,8 @@ import com.huaweicloud.sdk.vpc.v2.model.ShowSecurityGroupResponse; import com.huaweicloud.sdk.vpc.v2.model.ShowSecurityGroupRuleRequest; import com.huaweicloud.sdk.vpc.v2.model.ShowSecurityGroupRuleResponse; +import com.huaweicloud.sdk.vpc.v2.model.ShowSecurityGroupTagsRequest; +import com.huaweicloud.sdk.vpc.v2.model.ShowSecurityGroupTagsResponse; import com.huaweicloud.sdk.vpc.v2.model.ShowSubnetRequest; import com.huaweicloud.sdk.vpc.v2.model.ShowSubnetResponse; import com.huaweicloud.sdk.vpc.v2.model.ShowSubnetTagsRequest; @@ -338,6 +356,39 @@ private static HttpRequestDef batchCreateSecurityGroupTags = + genForBatchCreateSecurityGroupTags(); + + private static HttpRequestDef genForBatchCreateSecurityGroupTags() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.POST, + BatchCreateSecurityGroupTagsRequest.class, + BatchCreateSecurityGroupTagsResponse.class) + .withName("BatchCreateSecurityGroupTags") + .withUri("/v2.0/{project_id}/security-groups/{security_group_id}/tags/action") + .withContentType("application/json;charset=UTF-8"); + + // requests + builder.withRequestField("security_group_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(BatchCreateSecurityGroupTagsRequest::getSecurityGroupId, + BatchCreateSecurityGroupTagsRequest::setSecurityGroupId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(BatchCreateSecurityGroupTagsRequestBody.class), + f -> f.withMarshaller(BatchCreateSecurityGroupTagsRequest::getBody, + BatchCreateSecurityGroupTagsRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef batchCreateSubnetTags = genForBatchCreateSubnetTags(); @@ -367,6 +418,39 @@ private static HttpRequestDef batchDeleteSecurityGroupTags = + genForBatchDeleteSecurityGroupTags(); + + private static HttpRequestDef genForBatchDeleteSecurityGroupTags() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.POST, + BatchDeleteSecurityGroupTagsRequest.class, + BatchDeleteSecurityGroupTagsResponse.class) + .withName("BatchDeleteSecurityGroupTags") + .withUri("/v2.0/{project_id}/security-groups/{security_group_id}/tags/action") + .withContentType("application/json;charset=UTF-8"); + + // requests + builder.withRequestField("security_group_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(BatchDeleteSecurityGroupTagsRequest::getSecurityGroupId, + BatchDeleteSecurityGroupTagsRequest::setSecurityGroupId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(BatchDeleteSecurityGroupTagsRequestBody.class), + f -> f.withMarshaller(BatchDeleteSecurityGroupTagsRequest::getBody, + BatchDeleteSecurityGroupTagsRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef batchDeleteSubnetTags = genForBatchDeleteSubnetTags(); @@ -510,6 +594,35 @@ private static HttpRequestDef createSecurityGroupTag = + genForCreateSecurityGroupTag(); + + private static HttpRequestDef genForCreateSecurityGroupTag() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.POST, CreateSecurityGroupTagRequest.class, CreateSecurityGroupTagResponse.class) + .withName("CreateSecurityGroupTag") + .withUri("/v2.0/{project_id}/security-groups/{security_group_id}/tags") + .withContentType("application/json;charset=UTF-8"); + + // requests + builder.withRequestField("security_group_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateSecurityGroupTagRequest::getSecurityGroupId, + CreateSecurityGroupTagRequest::setSecurityGroupId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(CreateSecurityGroupTagRequestBody.class), + f -> f.withMarshaller(CreateSecurityGroupTagRequest::getBody, CreateSecurityGroupTagRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef createSubnet = genForCreateSubnet(); private static HttpRequestDef genForCreateSubnet() { @@ -699,6 +812,35 @@ private static HttpRequestDef deleteSecurityGroupTag = + genForDeleteSecurityGroupTag(); + + private static HttpRequestDef genForDeleteSecurityGroupTag() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.DELETE, DeleteSecurityGroupTagRequest.class, DeleteSecurityGroupTagResponse.class) + .withName("DeleteSecurityGroupTag") + .withUri("/v2.0/{project_id}/security-groups/{security_group_id}/tags/{key}") + .withContentType("application/json"); + + // requests + builder.withRequestField("key", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteSecurityGroupTagRequest::getKey, DeleteSecurityGroupTagRequest::setKey)); + builder.withRequestField("security_group_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteSecurityGroupTagRequest::getSecurityGroupId, + DeleteSecurityGroupTagRequest::setSecurityGroupId)); + + // response + + return builder.build(); + } + public static final HttpRequestDef deleteSubnet = genForDeleteSubnet(); private static HttpRequestDef genForDeleteSubnet() { @@ -1058,6 +1200,24 @@ private static HttpRequestDef listSecurityGroupTags = + genForListSecurityGroupTags(); + + private static HttpRequestDef genForListSecurityGroupTags() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.GET, ListSecurityGroupTagsRequest.class, ListSecurityGroupTagsResponse.class) + .withName("ListSecurityGroupTags") + .withUri("/v2.0/{project_id}/security-groups/tags") + .withContentType("application/json"); + + // requests + + // response + + return builder.build(); + } + public static final HttpRequestDef listSecurityGroups = genForListSecurityGroups(); @@ -1097,6 +1257,30 @@ private static HttpRequestDef listSecurityGroupsByTags = + genForListSecurityGroupsByTags(); + + private static HttpRequestDef genForListSecurityGroupsByTags() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.POST, ListSecurityGroupsByTagsRequest.class, ListSecurityGroupsByTagsResponse.class) + .withName("ListSecurityGroupsByTags") + .withUri("/v2.0/{project_id}/security-groups/resource_instances/action") + .withContentType("application/json;charset=UTF-8"); + + // requests + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(ListSecurityGroupsByTagsRequestBody.class), + f -> f.withMarshaller(ListSecurityGroupsByTagsRequest::getBody, ListSecurityGroupsByTagsRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef listSubnetTags = genForListSubnetTags(); @@ -1383,6 +1567,30 @@ private static HttpRequestDef showSecurityGroupTags = + genForShowSecurityGroupTags(); + + private static HttpRequestDef genForShowSecurityGroupTags() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.GET, ShowSecurityGroupTagsRequest.class, ShowSecurityGroupTagsResponse.class) + .withName("ShowSecurityGroupTags") + .withUri("/v2.0/{project_id}/security-groups/{security_group_id}/tags") + .withContentType("application/json"); + + // requests + builder.withRequestField("security_group_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowSecurityGroupTagsRequest::getSecurityGroupId, + ShowSecurityGroupTagsRequest::setSecurityGroupId)); + + // response + + return builder.build(); + } + public static final HttpRequestDef showSubnet = genForShowSubnet(); private static HttpRequestDef genForShowSubnet() { diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/BatchCreateSecurityGroupTagsRequest.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/BatchCreateSecurityGroupTagsRequest.java new file mode 100644 index 0000000000..b015f950a8 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/BatchCreateSecurityGroupTagsRequest.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.vpc.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class BatchCreateSecurityGroupTagsRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "security_group_id") + + private String securityGroupId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private BatchCreateSecurityGroupTagsRequestBody body; + + public BatchCreateSecurityGroupTagsRequest withSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + return this; + } + + /** + * 安全组资源ID + * @return securityGroupId + */ + public String getSecurityGroupId() { + return securityGroupId; + } + + public void setSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + } + + public BatchCreateSecurityGroupTagsRequest withBody(BatchCreateSecurityGroupTagsRequestBody body) { + this.body = body; + return this; + } + + public BatchCreateSecurityGroupTagsRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new BatchCreateSecurityGroupTagsRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public BatchCreateSecurityGroupTagsRequestBody getBody() { + return body; + } + + public void setBody(BatchCreateSecurityGroupTagsRequestBody body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + BatchCreateSecurityGroupTagsRequest that = (BatchCreateSecurityGroupTagsRequest) obj; + return Objects.equals(this.securityGroupId, that.securityGroupId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(securityGroupId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchCreateSecurityGroupTagsRequest {\n"); + sb.append(" securityGroupId: ").append(toIndentedString(securityGroupId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/BatchCreateSecurityGroupTagsRequestBody.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/BatchCreateSecurityGroupTagsRequestBody.java new file mode 100644 index 0000000000..aa1b4bf2e7 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/BatchCreateSecurityGroupTagsRequestBody.java @@ -0,0 +1,183 @@ +package com.huaweicloud.sdk.vpc.v2.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * This is a auto create Body Object + */ +public class BatchCreateSecurityGroupTagsRequestBody { + + /** + * 操作标识 + */ + public static final class ActionEnum { + + /** + * Enum CREATE for value: "create" + */ + public static final ActionEnum CREATE = new ActionEnum("create"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("create", CREATE); + return Collections.unmodifiableMap(map); + } + + private String value; + + ActionEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ActionEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new ActionEnum(value)); + } + + public static ActionEnum valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof ActionEnum) { + return this.value.equals(((ActionEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "action") + + private ActionEnum action; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tags") + + private List tags = null; + + public BatchCreateSecurityGroupTagsRequestBody withAction(ActionEnum action) { + this.action = action; + return this; + } + + /** + * 操作标识 + * @return action + */ + public ActionEnum getAction() { + return action; + } + + public void setAction(ActionEnum action) { + this.action = action; + } + + public BatchCreateSecurityGroupTagsRequestBody withTags(List tags) { + this.tags = tags; + return this; + } + + public BatchCreateSecurityGroupTagsRequestBody addTagsItem(ResourceTag tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + this.tags.add(tagsItem); + return this; + } + + public BatchCreateSecurityGroupTagsRequestBody withTags(Consumer> tagsSetter) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + tagsSetter.accept(this.tags); + return this; + } + + /** + * 标签列表 + * @return tags + */ + public List getTags() { + return tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + BatchCreateSecurityGroupTagsRequestBody that = (BatchCreateSecurityGroupTagsRequestBody) obj; + return Objects.equals(this.action, that.action) && Objects.equals(this.tags, that.tags); + } + + @Override + public int hashCode() { + return Objects.hash(action, tags); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchCreateSecurityGroupTagsRequestBody {\n"); + sb.append(" action: ").append(toIndentedString(action)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/BatchCreateSecurityGroupTagsResponse.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/BatchCreateSecurityGroupTagsResponse.java new file mode 100644 index 0000000000..5b35cbbf8e --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/BatchCreateSecurityGroupTagsResponse.java @@ -0,0 +1,36 @@ +package com.huaweicloud.sdk.vpc.v2.model; + +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class BatchCreateSecurityGroupTagsResponse extends SdkResponse { + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchCreateSecurityGroupTagsResponse {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/BatchDeleteSecurityGroupTagsRequest.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/BatchDeleteSecurityGroupTagsRequest.java new file mode 100644 index 0000000000..33bfbecc6f --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/BatchDeleteSecurityGroupTagsRequest.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.vpc.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class BatchDeleteSecurityGroupTagsRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "security_group_id") + + private String securityGroupId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private BatchDeleteSecurityGroupTagsRequestBody body; + + public BatchDeleteSecurityGroupTagsRequest withSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + return this; + } + + /** + * 安全组资源ID + * @return securityGroupId + */ + public String getSecurityGroupId() { + return securityGroupId; + } + + public void setSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + } + + public BatchDeleteSecurityGroupTagsRequest withBody(BatchDeleteSecurityGroupTagsRequestBody body) { + this.body = body; + return this; + } + + public BatchDeleteSecurityGroupTagsRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new BatchDeleteSecurityGroupTagsRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public BatchDeleteSecurityGroupTagsRequestBody getBody() { + return body; + } + + public void setBody(BatchDeleteSecurityGroupTagsRequestBody body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + BatchDeleteSecurityGroupTagsRequest that = (BatchDeleteSecurityGroupTagsRequest) obj; + return Objects.equals(this.securityGroupId, that.securityGroupId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(securityGroupId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchDeleteSecurityGroupTagsRequest {\n"); + sb.append(" securityGroupId: ").append(toIndentedString(securityGroupId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/BatchDeleteSecurityGroupTagsRequestBody.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/BatchDeleteSecurityGroupTagsRequestBody.java new file mode 100644 index 0000000000..321645d46d --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/BatchDeleteSecurityGroupTagsRequestBody.java @@ -0,0 +1,183 @@ +package com.huaweicloud.sdk.vpc.v2.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * This is a auto create Body Object + */ +public class BatchDeleteSecurityGroupTagsRequestBody { + + /** + * 功能说明:操作标识 取值范围:delete + */ + public static final class ActionEnum { + + /** + * Enum DELETE for value: "delete" + */ + public static final ActionEnum DELETE = new ActionEnum("delete"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("delete", DELETE); + return Collections.unmodifiableMap(map); + } + + private String value; + + ActionEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ActionEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new ActionEnum(value)); + } + + public static ActionEnum valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof ActionEnum) { + return this.value.equals(((ActionEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "action") + + private ActionEnum action; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tags") + + private List tags = null; + + public BatchDeleteSecurityGroupTagsRequestBody withAction(ActionEnum action) { + this.action = action; + return this; + } + + /** + * 功能说明:操作标识 取值范围:delete + * @return action + */ + public ActionEnum getAction() { + return action; + } + + public void setAction(ActionEnum action) { + this.action = action; + } + + public BatchDeleteSecurityGroupTagsRequestBody withTags(List tags) { + this.tags = tags; + return this; + } + + public BatchDeleteSecurityGroupTagsRequestBody addTagsItem(ResourceTag tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + this.tags.add(tagsItem); + return this; + } + + public BatchDeleteSecurityGroupTagsRequestBody withTags(Consumer> tagsSetter) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + tagsSetter.accept(this.tags); + return this; + } + + /** + * 标签列表 + * @return tags + */ + public List getTags() { + return tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + BatchDeleteSecurityGroupTagsRequestBody that = (BatchDeleteSecurityGroupTagsRequestBody) obj; + return Objects.equals(this.action, that.action) && Objects.equals(this.tags, that.tags); + } + + @Override + public int hashCode() { + return Objects.hash(action, tags); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchDeleteSecurityGroupTagsRequestBody {\n"); + sb.append(" action: ").append(toIndentedString(action)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/BatchDeleteSecurityGroupTagsResponse.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/BatchDeleteSecurityGroupTagsResponse.java new file mode 100644 index 0000000000..3765441b88 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/BatchDeleteSecurityGroupTagsResponse.java @@ -0,0 +1,36 @@ +package com.huaweicloud.sdk.vpc.v2.model; + +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class BatchDeleteSecurityGroupTagsResponse extends SdkResponse { + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchDeleteSecurityGroupTagsResponse {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/CreateSecurityGroupTagRequest.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/CreateSecurityGroupTagRequest.java new file mode 100644 index 0000000000..5a63d8df3c --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/CreateSecurityGroupTagRequest.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.vpc.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class CreateSecurityGroupTagRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "security_group_id") + + private String securityGroupId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private CreateSecurityGroupTagRequestBody body; + + public CreateSecurityGroupTagRequest withSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + return this; + } + + /** + * 安全组资源ID + * @return securityGroupId + */ + public String getSecurityGroupId() { + return securityGroupId; + } + + public void setSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + } + + public CreateSecurityGroupTagRequest withBody(CreateSecurityGroupTagRequestBody body) { + this.body = body; + return this; + } + + public CreateSecurityGroupTagRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new CreateSecurityGroupTagRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public CreateSecurityGroupTagRequestBody getBody() { + return body; + } + + public void setBody(CreateSecurityGroupTagRequestBody body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateSecurityGroupTagRequest that = (CreateSecurityGroupTagRequest) obj; + return Objects.equals(this.securityGroupId, that.securityGroupId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(securityGroupId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateSecurityGroupTagRequest {\n"); + sb.append(" securityGroupId: ").append(toIndentedString(securityGroupId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/CreateSecurityGroupTagRequestBody.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/CreateSecurityGroupTagRequestBody.java new file mode 100644 index 0000000000..6961f570f5 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/CreateSecurityGroupTagRequestBody.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.vpc.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * This is a auto create Body Object + */ +public class CreateSecurityGroupTagRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tag") + + private ResourceTag tag; + + public CreateSecurityGroupTagRequestBody withTag(ResourceTag tag) { + this.tag = tag; + return this; + } + + public CreateSecurityGroupTagRequestBody withTag(Consumer tagSetter) { + if (this.tag == null) { + this.tag = new ResourceTag(); + tagSetter.accept(this.tag); + } + + return this; + } + + /** + * Get tag + * @return tag + */ + public ResourceTag getTag() { + return tag; + } + + public void setTag(ResourceTag tag) { + this.tag = tag; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateSecurityGroupTagRequestBody that = (CreateSecurityGroupTagRequestBody) obj; + return Objects.equals(this.tag, that.tag); + } + + @Override + public int hashCode() { + return Objects.hash(tag); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateSecurityGroupTagRequestBody {\n"); + sb.append(" tag: ").append(toIndentedString(tag)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/CreateSecurityGroupTagResponse.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/CreateSecurityGroupTagResponse.java new file mode 100644 index 0000000000..e68ee8a685 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/CreateSecurityGroupTagResponse.java @@ -0,0 +1,36 @@ +package com.huaweicloud.sdk.vpc.v2.model; + +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class CreateSecurityGroupTagResponse extends SdkResponse { + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateSecurityGroupTagResponse {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/DeleteSecurityGroupTagRequest.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/DeleteSecurityGroupTagRequest.java new file mode 100644 index 0000000000..8f0afea5d0 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/DeleteSecurityGroupTagRequest.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.vpc.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class DeleteSecurityGroupTagRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "key") + + private String key; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "security_group_id") + + private String securityGroupId; + + public DeleteSecurityGroupTagRequest withKey(String key) { + this.key = key; + return this; + } + + /** + * 功能说明:键值 + * @return key + */ + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public DeleteSecurityGroupTagRequest withSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + return this; + } + + /** + * 安全组资源ID + * @return securityGroupId + */ + public String getSecurityGroupId() { + return securityGroupId; + } + + public void setSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DeleteSecurityGroupTagRequest that = (DeleteSecurityGroupTagRequest) obj; + return Objects.equals(this.key, that.key) && Objects.equals(this.securityGroupId, that.securityGroupId); + } + + @Override + public int hashCode() { + return Objects.hash(key, securityGroupId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteSecurityGroupTagRequest {\n"); + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" securityGroupId: ").append(toIndentedString(securityGroupId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/DeleteSecurityGroupTagResponse.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/DeleteSecurityGroupTagResponse.java new file mode 100644 index 0000000000..d7bbeb3c83 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/DeleteSecurityGroupTagResponse.java @@ -0,0 +1,36 @@ +package com.huaweicloud.sdk.vpc.v2.model; + +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class DeleteSecurityGroupTagResponse extends SdkResponse { + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteSecurityGroupTagResponse {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/ListSecurityGroupTagsRequest.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/ListSecurityGroupTagsRequest.java new file mode 100644 index 0000000000..35c4a75b12 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/ListSecurityGroupTagsRequest.java @@ -0,0 +1,34 @@ +package com.huaweicloud.sdk.vpc.v2.model; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListSecurityGroupTagsRequest { + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListSecurityGroupTagsRequest {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/ListSecurityGroupTagsResponse.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/ListSecurityGroupTagsResponse.java new file mode 100644 index 0000000000..25d0bcddc8 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/ListSecurityGroupTagsResponse.java @@ -0,0 +1,92 @@ +package com.huaweicloud.sdk.vpc.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListSecurityGroupTagsResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tags") + + private List tags = null; + + public ListSecurityGroupTagsResponse withTags(List tags) { + this.tags = tags; + return this; + } + + public ListSecurityGroupTagsResponse addTagsItem(ListTag tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + this.tags.add(tagsItem); + return this; + } + + public ListSecurityGroupTagsResponse withTags(Consumer> tagsSetter) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + tagsSetter.accept(this.tags); + return this; + } + + /** + * tag对象列表 + * @return tags + */ + public List getTags() { + return tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListSecurityGroupTagsResponse that = (ListSecurityGroupTagsResponse) obj; + return Objects.equals(this.tags, that.tags); + } + + @Override + public int hashCode() { + return Objects.hash(tags); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListSecurityGroupTagsResponse {\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/ListSecurityGroupsByTagsRequest.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/ListSecurityGroupsByTagsRequest.java new file mode 100644 index 0000000000..86f31a5121 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/ListSecurityGroupsByTagsRequest.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.vpc.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class ListSecurityGroupsByTagsRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private ListSecurityGroupsByTagsRequestBody body; + + public ListSecurityGroupsByTagsRequest withBody(ListSecurityGroupsByTagsRequestBody body) { + this.body = body; + return this; + } + + public ListSecurityGroupsByTagsRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new ListSecurityGroupsByTagsRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public ListSecurityGroupsByTagsRequestBody getBody() { + return body; + } + + public void setBody(ListSecurityGroupsByTagsRequestBody body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListSecurityGroupsByTagsRequest that = (ListSecurityGroupsByTagsRequest) obj; + return Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListSecurityGroupsByTagsRequest {\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/ListSecurityGroupsByTagsRequestBody.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/ListSecurityGroupsByTagsRequestBody.java new file mode 100644 index 0000000000..9d7f7ad316 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/ListSecurityGroupsByTagsRequestBody.java @@ -0,0 +1,276 @@ +package com.huaweicloud.sdk.vpc.v2.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * This is a auto create Body Object + */ +public class ListSecurityGroupsByTagsRequestBody { + + /** + * 功能说明:操作标识 取值范围:filter(过滤),count(查询总条数) + */ + public static final class ActionEnum { + + /** + * Enum FILTER for value: "filter" + */ + public static final ActionEnum FILTER = new ActionEnum("filter"); + + /** + * Enum COUNT for value: "count" + */ + public static final ActionEnum COUNT = new ActionEnum("count"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("filter", FILTER); + map.put("count", COUNT); + return Collections.unmodifiableMap(map); + } + + private String value; + + ActionEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ActionEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new ActionEnum(value)); + } + + public static ActionEnum valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof ActionEnum) { + return this.value.equals(((ActionEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "action") + + private ActionEnum action; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limit") + + private Integer limit; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "offset") + + private Integer offset; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "matches") + + private List matches = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tags") + + private List tags = null; + + public ListSecurityGroupsByTagsRequestBody withAction(ActionEnum action) { + this.action = action; + return this; + } + + /** + * 功能说明:操作标识 取值范围:filter(过滤),count(查询总条数) + * @return action + */ + public ActionEnum getAction() { + return action; + } + + public void setAction(ActionEnum action) { + this.action = action; + } + + public ListSecurityGroupsByTagsRequestBody withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 功能说明:查询记录数 取值范围:1-1000 约束:action为count时此参数不生效;action为filter时默认为1000 + * @return limit + */ + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public ListSecurityGroupsByTagsRequestBody withOffset(Integer offset) { + this.offset = offset; + return this; + } + + /** + * 功能说明:索引位置, 从offset指定的下一条数据开始查询。 查询第一页数据时,不需要传入此参数,查询后续页码数据时,将查询前一页数据时响应体中的值带入此参数 约束:action为count时无此参数;action为filter时默认为0;必须为数字,不能为负数 + * @return offset + */ + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public ListSecurityGroupsByTagsRequestBody withMatches(List matches) { + this.matches = matches; + return this; + } + + public ListSecurityGroupsByTagsRequestBody addMatchesItem(Match matchesItem) { + if (this.matches == null) { + this.matches = new ArrayList<>(); + } + this.matches.add(matchesItem); + return this; + } + + public ListSecurityGroupsByTagsRequestBody withMatches(Consumer> matchesSetter) { + if (this.matches == null) { + this.matches = new ArrayList<>(); + } + matchesSetter.accept(this.matches); + return this; + } + + /** + * 功能说明:搜索字段,key为要匹配的字段,value为匹配的值 约束:当前仅支持resource_name + * @return matches + */ + public List getMatches() { + return matches; + } + + public void setMatches(List matches) { + this.matches = matches; + } + + public ListSecurityGroupsByTagsRequestBody withTags(List tags) { + this.tags = tags; + return this; + } + + public ListSecurityGroupsByTagsRequestBody addTagsItem(ListTag tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + this.tags.add(tagsItem); + return this; + } + + public ListSecurityGroupsByTagsRequestBody withTags(Consumer> tagsSetter) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + tagsSetter.accept(this.tags); + return this; + } + + /** + * 包含标签,最多包含10个key,每个key下面的value最多10个,结构体不能缺失,key不能为空或者空字符串。Key不能重复,同一个key中values不能重复 + * @return tags + */ + public List getTags() { + return tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListSecurityGroupsByTagsRequestBody that = (ListSecurityGroupsByTagsRequestBody) obj; + return Objects.equals(this.action, that.action) && Objects.equals(this.limit, that.limit) + && Objects.equals(this.offset, that.offset) && Objects.equals(this.matches, that.matches) + && Objects.equals(this.tags, that.tags); + } + + @Override + public int hashCode() { + return Objects.hash(action, limit, offset, matches, tags); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListSecurityGroupsByTagsRequestBody {\n"); + sb.append(" action: ").append(toIndentedString(action)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append(" matches: ").append(toIndentedString(matches)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/ListSecurityGroupsByTagsResponse.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/ListSecurityGroupsByTagsResponse.java new file mode 100644 index 0000000000..b0640e8892 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/ListSecurityGroupsByTagsResponse.java @@ -0,0 +1,115 @@ +package com.huaweicloud.sdk.vpc.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListSecurityGroupsByTagsResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "resources") + + private List resources = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total_count") + + private Integer totalCount; + + public ListSecurityGroupsByTagsResponse withResources(List resources) { + this.resources = resources; + return this; + } + + public ListSecurityGroupsByTagsResponse addResourcesItem(ListResourceResp resourcesItem) { + if (this.resources == null) { + this.resources = new ArrayList<>(); + } + this.resources.add(resourcesItem); + return this; + } + + public ListSecurityGroupsByTagsResponse withResources(Consumer> resourcesSetter) { + if (this.resources == null) { + this.resources = new ArrayList<>(); + } + resourcesSetter.accept(this.resources); + return this; + } + + /** + * 资源列表 + * @return resources + */ + public List getResources() { + return resources; + } + + public void setResources(List resources) { + this.resources = resources; + } + + public ListSecurityGroupsByTagsResponse withTotalCount(Integer totalCount) { + this.totalCount = totalCount; + return this; + } + + /** + * 资源数量 + * @return totalCount + */ + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListSecurityGroupsByTagsResponse that = (ListSecurityGroupsByTagsResponse) obj; + return Objects.equals(this.resources, that.resources) && Objects.equals(this.totalCount, that.totalCount); + } + + @Override + public int hashCode() { + return Objects.hash(resources, totalCount); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListSecurityGroupsByTagsResponse {\n"); + sb.append(" resources: ").append(toIndentedString(resources)).append("\n"); + sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/ShowSecurityGroupTagsRequest.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/ShowSecurityGroupTagsRequest.java new file mode 100644 index 0000000000..9acf65add2 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/ShowSecurityGroupTagsRequest.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.vpc.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ShowSecurityGroupTagsRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "security_group_id") + + private String securityGroupId; + + public ShowSecurityGroupTagsRequest withSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + return this; + } + + /** + * 安全组资源ID + * @return securityGroupId + */ + public String getSecurityGroupId() { + return securityGroupId; + } + + public void setSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowSecurityGroupTagsRequest that = (ShowSecurityGroupTagsRequest) obj; + return Objects.equals(this.securityGroupId, that.securityGroupId); + } + + @Override + public int hashCode() { + return Objects.hash(securityGroupId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowSecurityGroupTagsRequest {\n"); + sb.append(" securityGroupId: ").append(toIndentedString(securityGroupId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/ShowSecurityGroupTagsResponse.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/ShowSecurityGroupTagsResponse.java new file mode 100644 index 0000000000..57c6dcea3e --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v2/model/ShowSecurityGroupTagsResponse.java @@ -0,0 +1,92 @@ +package com.huaweicloud.sdk.vpc.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ShowSecurityGroupTagsResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tags") + + private List tags = null; + + public ShowSecurityGroupTagsResponse withTags(List tags) { + this.tags = tags; + return this; + } + + public ShowSecurityGroupTagsResponse addTagsItem(ResourceTag tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + this.tags.add(tagsItem); + return this; + } + + public ShowSecurityGroupTagsResponse withTags(Consumer> tagsSetter) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + tagsSetter.accept(this.tags); + return this; + } + + /** + * tag对象列表 + * @return tags + */ + public List getTags() { + return tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowSecurityGroupTagsResponse that = (ShowSecurityGroupTagsResponse) obj; + return Objects.equals(this.tags, that.tags); + } + + @Override + public int hashCode() { + return Objects.hash(tags); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowSecurityGroupTagsResponse {\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/VpcAsyncClient.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/VpcAsyncClient.java index 805a134e08..885eb7c364 100644 --- a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/VpcAsyncClient.java +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/VpcAsyncClient.java @@ -17,18 +17,26 @@ import com.huaweicloud.sdk.vpc.v3.model.AssociateSubnetFirewallResponse; import com.huaweicloud.sdk.vpc.v3.model.BatchCreateClouddcnSubnetsTagsRequest; import com.huaweicloud.sdk.vpc.v3.model.BatchCreateClouddcnSubnetsTagsResponse; +import com.huaweicloud.sdk.vpc.v3.model.BatchCreateFirewallTagsRequest; +import com.huaweicloud.sdk.vpc.v3.model.BatchCreateFirewallTagsResponse; import com.huaweicloud.sdk.vpc.v3.model.BatchCreateSecurityGroupRulesRequest; import com.huaweicloud.sdk.vpc.v3.model.BatchCreateSecurityGroupRulesResponse; import com.huaweicloud.sdk.vpc.v3.model.BatchCreateSubNetworkInterfaceRequest; import com.huaweicloud.sdk.vpc.v3.model.BatchCreateSubNetworkInterfaceResponse; import com.huaweicloud.sdk.vpc.v3.model.BatchDeleteClouddcnSubnetsTagsRequest; import com.huaweicloud.sdk.vpc.v3.model.BatchDeleteClouddcnSubnetsTagsResponse; +import com.huaweicloud.sdk.vpc.v3.model.BatchDeleteFirewallTagsRequest; +import com.huaweicloud.sdk.vpc.v3.model.BatchDeleteFirewallTagsResponse; +import com.huaweicloud.sdk.vpc.v3.model.CountFirewallsByTagsRequest; +import com.huaweicloud.sdk.vpc.v3.model.CountFirewallsByTagsResponse; import com.huaweicloud.sdk.vpc.v3.model.CreateAddressGroupRequest; import com.huaweicloud.sdk.vpc.v3.model.CreateAddressGroupResponse; import com.huaweicloud.sdk.vpc.v3.model.CreateClouddcnSubnetRequest; import com.huaweicloud.sdk.vpc.v3.model.CreateClouddcnSubnetResponse; import com.huaweicloud.sdk.vpc.v3.model.CreateFirewallRequest; import com.huaweicloud.sdk.vpc.v3.model.CreateFirewallResponse; +import com.huaweicloud.sdk.vpc.v3.model.CreateFirewallTagRequest; +import com.huaweicloud.sdk.vpc.v3.model.CreateFirewallTagResponse; import com.huaweicloud.sdk.vpc.v3.model.CreateSecurityGroupRequest; import com.huaweicloud.sdk.vpc.v3.model.CreateSecurityGroupResponse; import com.huaweicloud.sdk.vpc.v3.model.CreateSecurityGroupRuleRequest; @@ -51,6 +59,8 @@ import com.huaweicloud.sdk.vpc.v3.model.DeleteClouddcnSubnetsTagResponse; import com.huaweicloud.sdk.vpc.v3.model.DeleteFirewallRequest; import com.huaweicloud.sdk.vpc.v3.model.DeleteFirewallResponse; +import com.huaweicloud.sdk.vpc.v3.model.DeleteFirewallTagRequest; +import com.huaweicloud.sdk.vpc.v3.model.DeleteFirewallTagResponse; import com.huaweicloud.sdk.vpc.v3.model.DeleteIpAddressGroupForceRequest; import com.huaweicloud.sdk.vpc.v3.model.DeleteIpAddressGroupForceResponse; import com.huaweicloud.sdk.vpc.v3.model.DeleteSecurityGroupRequest; @@ -81,6 +91,10 @@ import com.huaweicloud.sdk.vpc.v3.model.ListClouddcnSubnetsTagsResponse; import com.huaweicloud.sdk.vpc.v3.model.ListFirewallRequest; import com.huaweicloud.sdk.vpc.v3.model.ListFirewallResponse; +import com.huaweicloud.sdk.vpc.v3.model.ListFirewallTagsRequest; +import com.huaweicloud.sdk.vpc.v3.model.ListFirewallTagsResponse; +import com.huaweicloud.sdk.vpc.v3.model.ListFirewallsByTagsRequest; +import com.huaweicloud.sdk.vpc.v3.model.ListFirewallsByTagsResponse; import com.huaweicloud.sdk.vpc.v3.model.ListSecurityGroupRulesRequest; import com.huaweicloud.sdk.vpc.v3.model.ListSecurityGroupRulesResponse; import com.huaweicloud.sdk.vpc.v3.model.ListSecurityGroupsRequest; @@ -113,6 +127,8 @@ import com.huaweicloud.sdk.vpc.v3.model.ShowClouddcnSubnetsTagsResponse; import com.huaweicloud.sdk.vpc.v3.model.ShowFirewallRequest; import com.huaweicloud.sdk.vpc.v3.model.ShowFirewallResponse; +import com.huaweicloud.sdk.vpc.v3.model.ShowFirewallTagsRequest; +import com.huaweicloud.sdk.vpc.v3.model.ShowFirewallTagsResponse; import com.huaweicloud.sdk.vpc.v3.model.ShowSecurityGroupRequest; import com.huaweicloud.sdk.vpc.v3.model.ShowSecurityGroupResponse; import com.huaweicloud.sdk.vpc.v3.model.ShowSecurityGroupRuleRequest; @@ -1328,6 +1344,100 @@ public AsyncInvoker(request, VpcMeta.associateSubnetFirewall, hcClient); } + /** + * 批量添加ACL资源标签 + * + * 为指定的IP地址组资源实例批量添加标签。 + * 此接口为幂等接口:创建时如果请求体中存在重复key则报错。创建时,不允许设置重复key数据,如果数据库已存在该key,就覆盖value的值。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchCreateFirewallTagsRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture batchCreateFirewallTagsAsync( + BatchCreateFirewallTagsRequest request) { + return hcClient.asyncInvokeHttp(request, VpcMeta.batchCreateFirewallTags); + } + + /** + * 批量添加ACL资源标签 + * + * 为指定的IP地址组资源实例批量添加标签。 + * 此接口为幂等接口:创建时如果请求体中存在重复key则报错。创建时,不允许设置重复key数据,如果数据库已存在该key,就覆盖value的值。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchCreateFirewallTagsRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker batchCreateFirewallTagsAsyncInvoker( + BatchCreateFirewallTagsRequest request) { + return new AsyncInvoker<>(request, VpcMeta.batchCreateFirewallTags, hcClient); + } + + /** + * 批量删除ACL资源标签 + * + * 为指定的IP地址组资源实例批量删除标签。 + * 此接口为幂等接口:删除时,如果删除的标签不存在,默认处理成功;删除时不对标签字符集范围做校验。删除时tags结构体不能缺失,key不能为空,或者空字符串。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchDeleteFirewallTagsRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture batchDeleteFirewallTagsAsync( + BatchDeleteFirewallTagsRequest request) { + return hcClient.asyncInvokeHttp(request, VpcMeta.batchDeleteFirewallTags); + } + + /** + * 批量删除ACL资源标签 + * + * 为指定的IP地址组资源实例批量删除标签。 + * 此接口为幂等接口:删除时,如果删除的标签不存在,默认处理成功;删除时不对标签字符集范围做校验。删除时tags结构体不能缺失,key不能为空,或者空字符串。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchDeleteFirewallTagsRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker batchDeleteFirewallTagsAsyncInvoker( + BatchDeleteFirewallTagsRequest request) { + return new AsyncInvoker<>(request, VpcMeta.batchDeleteFirewallTags, hcClient); + } + + /** + * 查询ACL资源实例数量 + * + * 使用标签过滤查询ACL实例数量。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CountFirewallsByTagsRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture countFirewallsByTagsAsync( + CountFirewallsByTagsRequest request) { + return hcClient.asyncInvokeHttp(request, VpcMeta.countFirewallsByTags); + } + + /** + * 查询ACL资源实例数量 + * + * 使用标签过滤查询ACL实例数量。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CountFirewallsByTagsRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker countFirewallsByTagsAsyncInvoker( + CountFirewallsByTagsRequest request) { + return new AsyncInvoker<>(request, VpcMeta.countFirewallsByTags, hcClient); + } + /** * 创建网络ACL * @@ -1357,6 +1467,37 @@ public AsyncInvoker createFirewal return new AsyncInvoker<>(request, VpcMeta.createFirewall, hcClient); } + /** + * 添加ACL资源标签 + * + * 给指定IP地址组资源实例增加标签信息 + * 此接口为幂等接口:创建时,如果创建的标签已经存在(key相同),则覆盖。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateFirewallTagRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture createFirewallTagAsync(CreateFirewallTagRequest request) { + return hcClient.asyncInvokeHttp(request, VpcMeta.createFirewallTag); + } + + /** + * 添加ACL资源标签 + * + * 给指定IP地址组资源实例增加标签信息 + * 此接口为幂等接口:创建时,如果创建的标签已经存在(key相同),则覆盖。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateFirewallTagRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker createFirewallTagAsyncInvoker( + CreateFirewallTagRequest request) { + return new AsyncInvoker<>(request, VpcMeta.createFirewallTag, hcClient); + } + /** * 删除网络ACL * @@ -1386,6 +1527,37 @@ public AsyncInvoker deleteFirewal return new AsyncInvoker<>(request, VpcMeta.deleteFirewall, hcClient); } + /** + * 删除ACL资源标签 + * + * 删除指定IP地址组资源实例的标签信息 + * 该接口为幂等接口:删除的key不存在报404,key不能为空或者空字符串 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteFirewallTagRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture deleteFirewallTagAsync(DeleteFirewallTagRequest request) { + return hcClient.asyncInvokeHttp(request, VpcMeta.deleteFirewallTag); + } + + /** + * 删除ACL资源标签 + * + * 删除指定IP地址组资源实例的标签信息 + * 该接口为幂等接口:删除的key不存在报404,key不能为空或者空字符串 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteFirewallTagRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker deleteFirewallTagAsyncInvoker( + DeleteFirewallTagRequest request) { + return new AsyncInvoker<>(request, VpcMeta.deleteFirewallTag, hcClient); + } + /** * 网络ACL解绑子网 * @@ -1445,6 +1617,64 @@ public AsyncInvoker listFirewallAsync return new AsyncInvoker<>(request, VpcMeta.listFirewall, hcClient); } + /** + * 查询ACL项目标签 + * + * 查询租户在指定Project中实例类型的所有资源标签集合 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListFirewallTagsRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listFirewallTagsAsync(ListFirewallTagsRequest request) { + return hcClient.asyncInvokeHttp(request, VpcMeta.listFirewallTags); + } + + /** + * 查询ACL项目标签 + * + * 查询租户在指定Project中实例类型的所有资源标签集合 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListFirewallTagsRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listFirewallTagsAsyncInvoker( + ListFirewallTagsRequest request) { + return new AsyncInvoker<>(request, VpcMeta.listFirewallTags, hcClient); + } + + /** + * 查询ACL资源实例列表 + * + * 使用标签过滤查询ACL实例。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListFirewallsByTagsRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listFirewallsByTagsAsync(ListFirewallsByTagsRequest request) { + return hcClient.asyncInvokeHttp(request, VpcMeta.listFirewallsByTags); + } + + /** + * 查询ACL资源实例列表 + * + * 使用标签过滤查询ACL实例。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListFirewallsByTagsRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listFirewallsByTagsAsyncInvoker( + ListFirewallsByTagsRequest request) { + return new AsyncInvoker<>(request, VpcMeta.listFirewallsByTags, hcClient); + } + /** * 网络ACL移除规则 * @@ -1503,6 +1733,35 @@ public AsyncInvoker showFirewallAsync return new AsyncInvoker<>(request, VpcMeta.showFirewall, hcClient); } + /** + * 查询ACL资源标签 + * + * 查询指定ACL实例的标签信息 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowFirewallTagsRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showFirewallTagsAsync(ShowFirewallTagsRequest request) { + return hcClient.asyncInvokeHttp(request, VpcMeta.showFirewallTags); + } + + /** + * 查询ACL资源标签 + * + * 查询指定ACL实例的标签信息 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowFirewallTagsRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showFirewallTagsAsyncInvoker( + ShowFirewallTagsRequest request) { + return new AsyncInvoker<>(request, VpcMeta.showFirewallTags, hcClient); + } + /** * 更新网络ACL * diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/VpcClient.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/VpcClient.java index 558ceb741e..f4a5b70120 100644 --- a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/VpcClient.java +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/VpcClient.java @@ -17,18 +17,26 @@ import com.huaweicloud.sdk.vpc.v3.model.AssociateSubnetFirewallResponse; import com.huaweicloud.sdk.vpc.v3.model.BatchCreateClouddcnSubnetsTagsRequest; import com.huaweicloud.sdk.vpc.v3.model.BatchCreateClouddcnSubnetsTagsResponse; +import com.huaweicloud.sdk.vpc.v3.model.BatchCreateFirewallTagsRequest; +import com.huaweicloud.sdk.vpc.v3.model.BatchCreateFirewallTagsResponse; import com.huaweicloud.sdk.vpc.v3.model.BatchCreateSecurityGroupRulesRequest; import com.huaweicloud.sdk.vpc.v3.model.BatchCreateSecurityGroupRulesResponse; import com.huaweicloud.sdk.vpc.v3.model.BatchCreateSubNetworkInterfaceRequest; import com.huaweicloud.sdk.vpc.v3.model.BatchCreateSubNetworkInterfaceResponse; import com.huaweicloud.sdk.vpc.v3.model.BatchDeleteClouddcnSubnetsTagsRequest; import com.huaweicloud.sdk.vpc.v3.model.BatchDeleteClouddcnSubnetsTagsResponse; +import com.huaweicloud.sdk.vpc.v3.model.BatchDeleteFirewallTagsRequest; +import com.huaweicloud.sdk.vpc.v3.model.BatchDeleteFirewallTagsResponse; +import com.huaweicloud.sdk.vpc.v3.model.CountFirewallsByTagsRequest; +import com.huaweicloud.sdk.vpc.v3.model.CountFirewallsByTagsResponse; import com.huaweicloud.sdk.vpc.v3.model.CreateAddressGroupRequest; import com.huaweicloud.sdk.vpc.v3.model.CreateAddressGroupResponse; import com.huaweicloud.sdk.vpc.v3.model.CreateClouddcnSubnetRequest; import com.huaweicloud.sdk.vpc.v3.model.CreateClouddcnSubnetResponse; import com.huaweicloud.sdk.vpc.v3.model.CreateFirewallRequest; import com.huaweicloud.sdk.vpc.v3.model.CreateFirewallResponse; +import com.huaweicloud.sdk.vpc.v3.model.CreateFirewallTagRequest; +import com.huaweicloud.sdk.vpc.v3.model.CreateFirewallTagResponse; import com.huaweicloud.sdk.vpc.v3.model.CreateSecurityGroupRequest; import com.huaweicloud.sdk.vpc.v3.model.CreateSecurityGroupResponse; import com.huaweicloud.sdk.vpc.v3.model.CreateSecurityGroupRuleRequest; @@ -51,6 +59,8 @@ import com.huaweicloud.sdk.vpc.v3.model.DeleteClouddcnSubnetsTagResponse; import com.huaweicloud.sdk.vpc.v3.model.DeleteFirewallRequest; import com.huaweicloud.sdk.vpc.v3.model.DeleteFirewallResponse; +import com.huaweicloud.sdk.vpc.v3.model.DeleteFirewallTagRequest; +import com.huaweicloud.sdk.vpc.v3.model.DeleteFirewallTagResponse; import com.huaweicloud.sdk.vpc.v3.model.DeleteIpAddressGroupForceRequest; import com.huaweicloud.sdk.vpc.v3.model.DeleteIpAddressGroupForceResponse; import com.huaweicloud.sdk.vpc.v3.model.DeleteSecurityGroupRequest; @@ -81,6 +91,10 @@ import com.huaweicloud.sdk.vpc.v3.model.ListClouddcnSubnetsTagsResponse; import com.huaweicloud.sdk.vpc.v3.model.ListFirewallRequest; import com.huaweicloud.sdk.vpc.v3.model.ListFirewallResponse; +import com.huaweicloud.sdk.vpc.v3.model.ListFirewallTagsRequest; +import com.huaweicloud.sdk.vpc.v3.model.ListFirewallTagsResponse; +import com.huaweicloud.sdk.vpc.v3.model.ListFirewallsByTagsRequest; +import com.huaweicloud.sdk.vpc.v3.model.ListFirewallsByTagsResponse; import com.huaweicloud.sdk.vpc.v3.model.ListSecurityGroupRulesRequest; import com.huaweicloud.sdk.vpc.v3.model.ListSecurityGroupRulesResponse; import com.huaweicloud.sdk.vpc.v3.model.ListSecurityGroupsRequest; @@ -113,6 +127,8 @@ import com.huaweicloud.sdk.vpc.v3.model.ShowClouddcnSubnetsTagsResponse; import com.huaweicloud.sdk.vpc.v3.model.ShowFirewallRequest; import com.huaweicloud.sdk.vpc.v3.model.ShowFirewallResponse; +import com.huaweicloud.sdk.vpc.v3.model.ShowFirewallTagsRequest; +import com.huaweicloud.sdk.vpc.v3.model.ShowFirewallTagsResponse; import com.huaweicloud.sdk.vpc.v3.model.ShowSecurityGroupRequest; import com.huaweicloud.sdk.vpc.v3.model.ShowSecurityGroupResponse; import com.huaweicloud.sdk.vpc.v3.model.ShowSecurityGroupRuleRequest; @@ -1303,6 +1319,97 @@ public SyncInvoker(request, VpcMeta.associateSubnetFirewall, hcClient); } + /** + * 批量添加ACL资源标签 + * + * 为指定的IP地址组资源实例批量添加标签。 + * 此接口为幂等接口:创建时如果请求体中存在重复key则报错。创建时,不允许设置重复key数据,如果数据库已存在该key,就覆盖value的值。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchCreateFirewallTagsRequest 请求对象 + * @return BatchCreateFirewallTagsResponse + */ + public BatchCreateFirewallTagsResponse batchCreateFirewallTags(BatchCreateFirewallTagsRequest request) { + return hcClient.syncInvokeHttp(request, VpcMeta.batchCreateFirewallTags); + } + + /** + * 批量添加ACL资源标签 + * + * 为指定的IP地址组资源实例批量添加标签。 + * 此接口为幂等接口:创建时如果请求体中存在重复key则报错。创建时,不允许设置重复key数据,如果数据库已存在该key,就覆盖value的值。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchCreateFirewallTagsRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker batchCreateFirewallTagsInvoker( + BatchCreateFirewallTagsRequest request) { + return new SyncInvoker<>(request, VpcMeta.batchCreateFirewallTags, hcClient); + } + + /** + * 批量删除ACL资源标签 + * + * 为指定的IP地址组资源实例批量删除标签。 + * 此接口为幂等接口:删除时,如果删除的标签不存在,默认处理成功;删除时不对标签字符集范围做校验。删除时tags结构体不能缺失,key不能为空,或者空字符串。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchDeleteFirewallTagsRequest 请求对象 + * @return BatchDeleteFirewallTagsResponse + */ + public BatchDeleteFirewallTagsResponse batchDeleteFirewallTags(BatchDeleteFirewallTagsRequest request) { + return hcClient.syncInvokeHttp(request, VpcMeta.batchDeleteFirewallTags); + } + + /** + * 批量删除ACL资源标签 + * + * 为指定的IP地址组资源实例批量删除标签。 + * 此接口为幂等接口:删除时,如果删除的标签不存在,默认处理成功;删除时不对标签字符集范围做校验。删除时tags结构体不能缺失,key不能为空,或者空字符串。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchDeleteFirewallTagsRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker batchDeleteFirewallTagsInvoker( + BatchDeleteFirewallTagsRequest request) { + return new SyncInvoker<>(request, VpcMeta.batchDeleteFirewallTags, hcClient); + } + + /** + * 查询ACL资源实例数量 + * + * 使用标签过滤查询ACL实例数量。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CountFirewallsByTagsRequest 请求对象 + * @return CountFirewallsByTagsResponse + */ + public CountFirewallsByTagsResponse countFirewallsByTags(CountFirewallsByTagsRequest request) { + return hcClient.syncInvokeHttp(request, VpcMeta.countFirewallsByTags); + } + + /** + * 查询ACL资源实例数量 + * + * 使用标签过滤查询ACL实例数量。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CountFirewallsByTagsRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker countFirewallsByTagsInvoker( + CountFirewallsByTagsRequest request) { + return new SyncInvoker<>(request, VpcMeta.countFirewallsByTags, hcClient); + } + /** * 创建网络ACL * @@ -1332,6 +1439,37 @@ public SyncInvoker createFirewall return new SyncInvoker<>(request, VpcMeta.createFirewall, hcClient); } + /** + * 添加ACL资源标签 + * + * 给指定IP地址组资源实例增加标签信息 + * 此接口为幂等接口:创建时,如果创建的标签已经存在(key相同),则覆盖。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateFirewallTagRequest 请求对象 + * @return CreateFirewallTagResponse + */ + public CreateFirewallTagResponse createFirewallTag(CreateFirewallTagRequest request) { + return hcClient.syncInvokeHttp(request, VpcMeta.createFirewallTag); + } + + /** + * 添加ACL资源标签 + * + * 给指定IP地址组资源实例增加标签信息 + * 此接口为幂等接口:创建时,如果创建的标签已经存在(key相同),则覆盖。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateFirewallTagRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker createFirewallTagInvoker( + CreateFirewallTagRequest request) { + return new SyncInvoker<>(request, VpcMeta.createFirewallTag, hcClient); + } + /** * 删除网络ACL * @@ -1361,6 +1499,37 @@ public SyncInvoker deleteFirewall return new SyncInvoker<>(request, VpcMeta.deleteFirewall, hcClient); } + /** + * 删除ACL资源标签 + * + * 删除指定IP地址组资源实例的标签信息 + * 该接口为幂等接口:删除的key不存在报404,key不能为空或者空字符串 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteFirewallTagRequest 请求对象 + * @return DeleteFirewallTagResponse + */ + public DeleteFirewallTagResponse deleteFirewallTag(DeleteFirewallTagRequest request) { + return hcClient.syncInvokeHttp(request, VpcMeta.deleteFirewallTag); + } + + /** + * 删除ACL资源标签 + * + * 删除指定IP地址组资源实例的标签信息 + * 该接口为幂等接口:删除的key不存在报404,key不能为空或者空字符串 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteFirewallTagRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker deleteFirewallTagInvoker( + DeleteFirewallTagRequest request) { + return new SyncInvoker<>(request, VpcMeta.deleteFirewallTag, hcClient); + } + /** * 网络ACL解绑子网 * @@ -1418,6 +1587,64 @@ public SyncInvoker listFirewallInvoke return new SyncInvoker<>(request, VpcMeta.listFirewall, hcClient); } + /** + * 查询ACL项目标签 + * + * 查询租户在指定Project中实例类型的所有资源标签集合 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListFirewallTagsRequest 请求对象 + * @return ListFirewallTagsResponse + */ + public ListFirewallTagsResponse listFirewallTags(ListFirewallTagsRequest request) { + return hcClient.syncInvokeHttp(request, VpcMeta.listFirewallTags); + } + + /** + * 查询ACL项目标签 + * + * 查询租户在指定Project中实例类型的所有资源标签集合 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListFirewallTagsRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listFirewallTagsInvoker( + ListFirewallTagsRequest request) { + return new SyncInvoker<>(request, VpcMeta.listFirewallTags, hcClient); + } + + /** + * 查询ACL资源实例列表 + * + * 使用标签过滤查询ACL实例。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListFirewallsByTagsRequest 请求对象 + * @return ListFirewallsByTagsResponse + */ + public ListFirewallsByTagsResponse listFirewallsByTags(ListFirewallsByTagsRequest request) { + return hcClient.syncInvokeHttp(request, VpcMeta.listFirewallsByTags); + } + + /** + * 查询ACL资源实例列表 + * + * 使用标签过滤查询ACL实例。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListFirewallsByTagsRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listFirewallsByTagsInvoker( + ListFirewallsByTagsRequest request) { + return new SyncInvoker<>(request, VpcMeta.listFirewallsByTags, hcClient); + } + /** * 网络ACL移除规则 * @@ -1475,6 +1702,35 @@ public SyncInvoker showFirewallInvoke return new SyncInvoker<>(request, VpcMeta.showFirewall, hcClient); } + /** + * 查询ACL资源标签 + * + * 查询指定ACL实例的标签信息 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowFirewallTagsRequest 请求对象 + * @return ShowFirewallTagsResponse + */ + public ShowFirewallTagsResponse showFirewallTags(ShowFirewallTagsRequest request) { + return hcClient.syncInvokeHttp(request, VpcMeta.showFirewallTags); + } + + /** + * 查询ACL资源标签 + * + * 查询指定ACL实例的标签信息 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowFirewallTagsRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showFirewallTagsInvoker( + ShowFirewallTagsRequest request) { + return new SyncInvoker<>(request, VpcMeta.showFirewallTags, hcClient); + } + /** * 更新网络ACL * diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/VpcMeta.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/VpcMeta.java index 1741765221..3dc644b1c6 100644 --- a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/VpcMeta.java +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/VpcMeta.java @@ -25,6 +25,9 @@ import com.huaweicloud.sdk.vpc.v3.model.AssociateSubnetFirewallResponse; import com.huaweicloud.sdk.vpc.v3.model.BatchCreateClouddcnSubnetsTagsRequest; import com.huaweicloud.sdk.vpc.v3.model.BatchCreateClouddcnSubnetsTagsResponse; +import com.huaweicloud.sdk.vpc.v3.model.BatchCreateFirewallTagsRequest; +import com.huaweicloud.sdk.vpc.v3.model.BatchCreateFirewallTagsRequestBody; +import com.huaweicloud.sdk.vpc.v3.model.BatchCreateFirewallTagsResponse; import com.huaweicloud.sdk.vpc.v3.model.BatchCreateRequestBody; import com.huaweicloud.sdk.vpc.v3.model.BatchCreateSecurityGroupRulesRequest; import com.huaweicloud.sdk.vpc.v3.model.BatchCreateSecurityGroupRulesRequestBody; @@ -34,7 +37,13 @@ import com.huaweicloud.sdk.vpc.v3.model.BatchCreateSubNetworkInterfaceResponse; import com.huaweicloud.sdk.vpc.v3.model.BatchDeleteClouddcnSubnetsTagsRequest; import com.huaweicloud.sdk.vpc.v3.model.BatchDeleteClouddcnSubnetsTagsResponse; +import com.huaweicloud.sdk.vpc.v3.model.BatchDeleteFirewallTagsRequest; +import com.huaweicloud.sdk.vpc.v3.model.BatchDeleteFirewallTagsRequestBody; +import com.huaweicloud.sdk.vpc.v3.model.BatchDeleteFirewallTagsResponse; import com.huaweicloud.sdk.vpc.v3.model.BatchDeleteRequestBody; +import com.huaweicloud.sdk.vpc.v3.model.CountFirewallsByTagsRequest; +import com.huaweicloud.sdk.vpc.v3.model.CountFirewallsByTagsRequestBody; +import com.huaweicloud.sdk.vpc.v3.model.CountFirewallsByTagsResponse; import com.huaweicloud.sdk.vpc.v3.model.CreateAddressGroupRequest; import com.huaweicloud.sdk.vpc.v3.model.CreateAddressGroupRequestBody; import com.huaweicloud.sdk.vpc.v3.model.CreateAddressGroupResponse; @@ -44,6 +53,9 @@ import com.huaweicloud.sdk.vpc.v3.model.CreateFirewallRequest; import com.huaweicloud.sdk.vpc.v3.model.CreateFirewallRequestBody; import com.huaweicloud.sdk.vpc.v3.model.CreateFirewallResponse; +import com.huaweicloud.sdk.vpc.v3.model.CreateFirewallTagRequest; +import com.huaweicloud.sdk.vpc.v3.model.CreateFirewallTagRequestBody; +import com.huaweicloud.sdk.vpc.v3.model.CreateFirewallTagResponse; import com.huaweicloud.sdk.vpc.v3.model.CreateSecurityGroupRequest; import com.huaweicloud.sdk.vpc.v3.model.CreateSecurityGroupRequestBody; import com.huaweicloud.sdk.vpc.v3.model.CreateSecurityGroupResponse; @@ -73,6 +85,8 @@ import com.huaweicloud.sdk.vpc.v3.model.DeleteClouddcnSubnetsTagResponse; import com.huaweicloud.sdk.vpc.v3.model.DeleteFirewallRequest; import com.huaweicloud.sdk.vpc.v3.model.DeleteFirewallResponse; +import com.huaweicloud.sdk.vpc.v3.model.DeleteFirewallTagRequest; +import com.huaweicloud.sdk.vpc.v3.model.DeleteFirewallTagResponse; import com.huaweicloud.sdk.vpc.v3.model.DeleteIpAddressGroupForceRequest; import com.huaweicloud.sdk.vpc.v3.model.DeleteIpAddressGroupForceResponse; import com.huaweicloud.sdk.vpc.v3.model.DeleteSecurityGroupRequest; @@ -104,6 +118,11 @@ import com.huaweicloud.sdk.vpc.v3.model.ListClouddcnSubnetsTagsResponse; import com.huaweicloud.sdk.vpc.v3.model.ListFirewallRequest; import com.huaweicloud.sdk.vpc.v3.model.ListFirewallResponse; +import com.huaweicloud.sdk.vpc.v3.model.ListFirewallTagsRequest; +import com.huaweicloud.sdk.vpc.v3.model.ListFirewallTagsResponse; +import com.huaweicloud.sdk.vpc.v3.model.ListFirewallsByTagsRequest; +import com.huaweicloud.sdk.vpc.v3.model.ListFirewallsByTagsRequestBody; +import com.huaweicloud.sdk.vpc.v3.model.ListFirewallsByTagsResponse; import com.huaweicloud.sdk.vpc.v3.model.ListResourcesByTagsRequestBody; import com.huaweicloud.sdk.vpc.v3.model.ListSecurityGroupRulesRequest; import com.huaweicloud.sdk.vpc.v3.model.ListSecurityGroupRulesResponse; @@ -142,6 +161,8 @@ import com.huaweicloud.sdk.vpc.v3.model.ShowClouddcnSubnetsTagsResponse; import com.huaweicloud.sdk.vpc.v3.model.ShowFirewallRequest; import com.huaweicloud.sdk.vpc.v3.model.ShowFirewallResponse; +import com.huaweicloud.sdk.vpc.v3.model.ShowFirewallTagsRequest; +import com.huaweicloud.sdk.vpc.v3.model.ShowFirewallTagsResponse; import com.huaweicloud.sdk.vpc.v3.model.ShowSecurityGroupRequest; import com.huaweicloud.sdk.vpc.v3.model.ShowSecurityGroupResponse; import com.huaweicloud.sdk.vpc.v3.model.ShowSecurityGroupRuleRequest; @@ -1564,6 +1585,87 @@ private static HttpRequestDef batchCreateFirewallTags = + genForBatchCreateFirewallTags(); + + private static HttpRequestDef genForBatchCreateFirewallTags() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.POST, BatchCreateFirewallTagsRequest.class, BatchCreateFirewallTagsResponse.class) + .withName("BatchCreateFirewallTags") + .withUri("/v3/{project_id}/firewalls/{firewall_id}/tags/create") + .withContentType("application/json"); + + // requests + builder.withRequestField("firewall_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(BatchCreateFirewallTagsRequest::getFirewallId, + BatchCreateFirewallTagsRequest::setFirewallId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(BatchCreateFirewallTagsRequestBody.class), + f -> f.withMarshaller(BatchCreateFirewallTagsRequest::getBody, BatchCreateFirewallTagsRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef batchDeleteFirewallTags = + genForBatchDeleteFirewallTags(); + + private static HttpRequestDef genForBatchDeleteFirewallTags() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.POST, BatchDeleteFirewallTagsRequest.class, BatchDeleteFirewallTagsResponse.class) + .withName("BatchDeleteFirewallTags") + .withUri("/v3/{project_id}/firewalls/{firewall_id}/tags/delete") + .withContentType("application/json"); + + // requests + builder.withRequestField("firewall_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(BatchDeleteFirewallTagsRequest::getFirewallId, + BatchDeleteFirewallTagsRequest::setFirewallId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(BatchDeleteFirewallTagsRequestBody.class), + f -> f.withMarshaller(BatchDeleteFirewallTagsRequest::getBody, BatchDeleteFirewallTagsRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef countFirewallsByTags = + genForCountFirewallsByTags(); + + private static HttpRequestDef genForCountFirewallsByTags() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.POST, CountFirewallsByTagsRequest.class, CountFirewallsByTagsResponse.class) + .withName("CountFirewallsByTags") + .withUri("/v3/{project_id}/firewalls/resource-instances/count") + .withContentType("application/json"); + + // requests + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(CountFirewallsByTagsRequestBody.class), + f -> f.withMarshaller(CountFirewallsByTagsRequest::getBody, CountFirewallsByTagsRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef createFirewall = genForCreateFirewall(); @@ -1587,6 +1689,34 @@ private static HttpRequestDef gen return builder.build(); } + public static final HttpRequestDef createFirewallTag = + genForCreateFirewallTag(); + + private static HttpRequestDef genForCreateFirewallTag() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, CreateFirewallTagRequest.class, CreateFirewallTagResponse.class) + .withName("CreateFirewallTag") + .withUri("/v3/{project_id}/firewalls/{firewall_id}/tags") + .withContentType("application/json"); + + // requests + builder.withRequestField("firewall_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateFirewallTagRequest::getFirewallId, CreateFirewallTagRequest::setFirewallId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(CreateFirewallTagRequestBody.class), + f -> f.withMarshaller(CreateFirewallTagRequest::getBody, CreateFirewallTagRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef deleteFirewall = genForDeleteFirewall(); @@ -1610,6 +1740,34 @@ private static HttpRequestDef gen return builder.build(); } + public static final HttpRequestDef deleteFirewallTag = + genForDeleteFirewallTag(); + + private static HttpRequestDef genForDeleteFirewallTag() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.DELETE, DeleteFirewallTagRequest.class, DeleteFirewallTagResponse.class) + .withName("DeleteFirewallTag") + .withUri("/v3/{project_id}/firewalls/{firewall_id}/tags/{tag_key}") + .withContentType("application/json"); + + // requests + builder.withRequestField("firewall_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteFirewallTagRequest::getFirewallId, DeleteFirewallTagRequest::setFirewallId)); + builder.withRequestField("tag_key", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteFirewallTagRequest::getTagKey, DeleteFirewallTagRequest::setTagKey)); + + // response + + return builder.build(); + } + public static final HttpRequestDef disassociateSubnetFirewall = genForDisassociateSubnetFirewall(); @@ -1696,6 +1854,57 @@ private static HttpRequestDef genForL return builder.build(); } + public static final HttpRequestDef listFirewallTags = + genForListFirewallTags(); + + private static HttpRequestDef genForListFirewallTags() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ListFirewallTagsRequest.class, ListFirewallTagsResponse.class) + .withName("ListFirewallTags") + .withUri("/v3/{project_id}/firewalls/tags") + .withContentType("application/json"); + + // requests + + // response + + return builder.build(); + } + + public static final HttpRequestDef listFirewallsByTags = + genForListFirewallsByTags(); + + private static HttpRequestDef genForListFirewallsByTags() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, ListFirewallsByTagsRequest.class, ListFirewallsByTagsResponse.class) + .withName("ListFirewallsByTags") + .withUri("/v3/{project_id}/firewalls/resource-instances/filter") + .withContentType("application/json"); + + // requests + builder.withRequestField("limit", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListFirewallsByTagsRequest::getLimit, ListFirewallsByTagsRequest::setLimit)); + builder.withRequestField("offset", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListFirewallsByTagsRequest::getOffset, ListFirewallsByTagsRequest::setOffset)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(ListFirewallsByTagsRequestBody.class), + f -> f.withMarshaller(ListFirewallsByTagsRequest::getBody, ListFirewallsByTagsRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef removeFirewallRules = genForRemoveFirewallRules(); @@ -1747,6 +1956,29 @@ private static HttpRequestDef genForS return builder.build(); } + public static final HttpRequestDef showFirewallTags = + genForShowFirewallTags(); + + private static HttpRequestDef genForShowFirewallTags() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ShowFirewallTagsRequest.class, ShowFirewallTagsResponse.class) + .withName("ShowFirewallTags") + .withUri("/v3/{project_id}/firewalls/{firewall_id}/tags") + .withContentType("application/json"); + + // requests + builder.withRequestField("firewall_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowFirewallTagsRequest::getFirewallId, ShowFirewallTagsRequest::setFirewallId)); + + // response + + return builder.build(); + } + public static final HttpRequestDef updateFirewall = genForUpdateFirewall(); diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchCreateFirewallTagsRequest.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchCreateFirewallTagsRequest.java new file mode 100644 index 0000000000..bda335e7c1 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchCreateFirewallTagsRequest.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.vpc.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class BatchCreateFirewallTagsRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "firewall_id") + + private String firewallId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private BatchCreateFirewallTagsRequestBody body; + + public BatchCreateFirewallTagsRequest withFirewallId(String firewallId) { + this.firewallId = firewallId; + return this; + } + + /** + * 功能说明:ACL唯一标识 取值范围:合法UUID 约束:ID对应的ACL必须存在 + * @return firewallId + */ + public String getFirewallId() { + return firewallId; + } + + public void setFirewallId(String firewallId) { + this.firewallId = firewallId; + } + + public BatchCreateFirewallTagsRequest withBody(BatchCreateFirewallTagsRequestBody body) { + this.body = body; + return this; + } + + public BatchCreateFirewallTagsRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new BatchCreateFirewallTagsRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public BatchCreateFirewallTagsRequestBody getBody() { + return body; + } + + public void setBody(BatchCreateFirewallTagsRequestBody body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + BatchCreateFirewallTagsRequest that = (BatchCreateFirewallTagsRequest) obj; + return Objects.equals(this.firewallId, that.firewallId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(firewallId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchCreateFirewallTagsRequest {\n"); + sb.append(" firewallId: ").append(toIndentedString(firewallId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchCreateFirewallTagsRequestBody.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchCreateFirewallTagsRequestBody.java new file mode 100644 index 0000000000..e0dd084eef --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchCreateFirewallTagsRequestBody.java @@ -0,0 +1,91 @@ +package com.huaweicloud.sdk.vpc.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * This is a auto create Body Object + */ +public class BatchCreateFirewallTagsRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tags") + + private List tags = null; + + public BatchCreateFirewallTagsRequestBody withTags(List tags) { + this.tags = tags; + return this; + } + + public BatchCreateFirewallTagsRequestBody addTagsItem(ResourceTag tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + this.tags.add(tagsItem); + return this; + } + + public BatchCreateFirewallTagsRequestBody withTags(Consumer> tagsSetter) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + tagsSetter.accept(this.tags); + return this; + } + + /** + * 标签列表 + * @return tags + */ + public List getTags() { + return tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + BatchCreateFirewallTagsRequestBody that = (BatchCreateFirewallTagsRequestBody) obj; + return Objects.equals(this.tags, that.tags); + } + + @Override + public int hashCode() { + return Objects.hash(tags); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchCreateFirewallTagsRequestBody {\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchCreateFirewallTagsResponse.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchCreateFirewallTagsResponse.java new file mode 100644 index 0000000000..8e12a69254 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchCreateFirewallTagsResponse.java @@ -0,0 +1,36 @@ +package com.huaweicloud.sdk.vpc.v3.model; + +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class BatchCreateFirewallTagsResponse extends SdkResponse { + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchCreateFirewallTagsResponse {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchDeleteFirewallTagsRequest.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchDeleteFirewallTagsRequest.java new file mode 100644 index 0000000000..d4ae40dffb --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchDeleteFirewallTagsRequest.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.vpc.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class BatchDeleteFirewallTagsRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "firewall_id") + + private String firewallId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private BatchDeleteFirewallTagsRequestBody body; + + public BatchDeleteFirewallTagsRequest withFirewallId(String firewallId) { + this.firewallId = firewallId; + return this; + } + + /** + * 功能说明:ACL唯一标识 取值范围:合法UUID 约束:ID对应的ACL必须存在 + * @return firewallId + */ + public String getFirewallId() { + return firewallId; + } + + public void setFirewallId(String firewallId) { + this.firewallId = firewallId; + } + + public BatchDeleteFirewallTagsRequest withBody(BatchDeleteFirewallTagsRequestBody body) { + this.body = body; + return this; + } + + public BatchDeleteFirewallTagsRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new BatchDeleteFirewallTagsRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public BatchDeleteFirewallTagsRequestBody getBody() { + return body; + } + + public void setBody(BatchDeleteFirewallTagsRequestBody body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + BatchDeleteFirewallTagsRequest that = (BatchDeleteFirewallTagsRequest) obj; + return Objects.equals(this.firewallId, that.firewallId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(firewallId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchDeleteFirewallTagsRequest {\n"); + sb.append(" firewallId: ").append(toIndentedString(firewallId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchDeleteFirewallTagsRequestBody.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchDeleteFirewallTagsRequestBody.java new file mode 100644 index 0000000000..f64bc2eb2e --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchDeleteFirewallTagsRequestBody.java @@ -0,0 +1,91 @@ +package com.huaweicloud.sdk.vpc.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * This is a auto create Body Object + */ +public class BatchDeleteFirewallTagsRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tags") + + private List tags = null; + + public BatchDeleteFirewallTagsRequestBody withTags(List tags) { + this.tags = tags; + return this; + } + + public BatchDeleteFirewallTagsRequestBody addTagsItem(ResourceTag tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + this.tags.add(tagsItem); + return this; + } + + public BatchDeleteFirewallTagsRequestBody withTags(Consumer> tagsSetter) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + tagsSetter.accept(this.tags); + return this; + } + + /** + * 标签列表 + * @return tags + */ + public List getTags() { + return tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + BatchDeleteFirewallTagsRequestBody that = (BatchDeleteFirewallTagsRequestBody) obj; + return Objects.equals(this.tags, that.tags); + } + + @Override + public int hashCode() { + return Objects.hash(tags); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchDeleteFirewallTagsRequestBody {\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchDeleteFirewallTagsResponse.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchDeleteFirewallTagsResponse.java new file mode 100644 index 0000000000..ed5099518a --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchDeleteFirewallTagsResponse.java @@ -0,0 +1,36 @@ +package com.huaweicloud.sdk.vpc.v3.model; + +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class BatchDeleteFirewallTagsResponse extends SdkResponse { + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchDeleteFirewallTagsResponse {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/CountFirewallsByTagsRequest.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/CountFirewallsByTagsRequest.java new file mode 100644 index 0000000000..413683795b --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/CountFirewallsByTagsRequest.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.vpc.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class CountFirewallsByTagsRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private CountFirewallsByTagsRequestBody body; + + public CountFirewallsByTagsRequest withBody(CountFirewallsByTagsRequestBody body) { + this.body = body; + return this; + } + + public CountFirewallsByTagsRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new CountFirewallsByTagsRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public CountFirewallsByTagsRequestBody getBody() { + return body; + } + + public void setBody(CountFirewallsByTagsRequestBody body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CountFirewallsByTagsRequest that = (CountFirewallsByTagsRequest) obj; + return Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CountFirewallsByTagsRequest {\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/CountFirewallsByTagsRequestBody.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/CountFirewallsByTagsRequestBody.java new file mode 100644 index 0000000000..4e0af871c1 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/CountFirewallsByTagsRequestBody.java @@ -0,0 +1,130 @@ +package com.huaweicloud.sdk.vpc.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * This is a auto create Body Object + */ +public class CountFirewallsByTagsRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "matches") + + private List matches = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tags") + + private List tags = null; + + public CountFirewallsByTagsRequestBody withMatches(List matches) { + this.matches = matches; + return this; + } + + public CountFirewallsByTagsRequestBody addMatchesItem(Match matchesItem) { + if (this.matches == null) { + this.matches = new ArrayList<>(); + } + this.matches.add(matchesItem); + return this; + } + + public CountFirewallsByTagsRequestBody withMatches(Consumer> matchesSetter) { + if (this.matches == null) { + this.matches = new ArrayList<>(); + } + matchesSetter.accept(this.matches); + return this; + } + + /** + * 功能说明:搜索字段,key为要匹配的字段,value为匹配的值 约束:key为固定字典值,不能包含重复的key或不支持的key,当前key仅支持resource_name + * @return matches + */ + public List getMatches() { + return matches; + } + + public void setMatches(List matches) { + this.matches = matches; + } + + public CountFirewallsByTagsRequestBody withTags(List tags) { + this.tags = tags; + return this; + } + + public CountFirewallsByTagsRequestBody addTagsItem(ListTag tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + this.tags.add(tagsItem); + return this; + } + + public CountFirewallsByTagsRequestBody withTags(Consumer> tagsSetter) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + tagsSetter.accept(this.tags); + return this; + } + + /** + * 包含标签,最多包含50个key,每个key下面的value最多10个,每个key对应的value可以为空数组但结构体不能缺失 。 Key不能重复,同一个key中values不能重复。 结果返回包含所有标签的资源列表,key之间是与的关系,key-value结构中value是或的关系。无tag过滤条件时返回全量数据。 + * @return tags + */ + public List getTags() { + return tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CountFirewallsByTagsRequestBody that = (CountFirewallsByTagsRequestBody) obj; + return Objects.equals(this.matches, that.matches) && Objects.equals(this.tags, that.tags); + } + + @Override + public int hashCode() { + return Objects.hash(matches, tags); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CountFirewallsByTagsRequestBody {\n"); + sb.append(" matches: ").append(toIndentedString(matches)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/CountFirewallsByTagsResponse.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/CountFirewallsByTagsResponse.java new file mode 100644 index 0000000000..df49177f54 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/CountFirewallsByTagsResponse.java @@ -0,0 +1,96 @@ +package com.huaweicloud.sdk.vpc.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class CountFirewallsByTagsResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "request_id") + + private String requestId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total_count") + + private Integer totalCount; + + public CountFirewallsByTagsResponse withRequestId(String requestId) { + this.requestId = requestId; + return this; + } + + /** + * 请求ID + * @return requestId + */ + public String getRequestId() { + return requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public CountFirewallsByTagsResponse withTotalCount(Integer totalCount) { + this.totalCount = totalCount; + return this; + } + + /** + * 资源数量 + * @return totalCount + */ + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CountFirewallsByTagsResponse that = (CountFirewallsByTagsResponse) obj; + return Objects.equals(this.requestId, that.requestId) && Objects.equals(this.totalCount, that.totalCount); + } + + @Override + public int hashCode() { + return Objects.hash(requestId, totalCount); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CountFirewallsByTagsResponse {\n"); + sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); + sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/CreateFirewallTagRequest.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/CreateFirewallTagRequest.java new file mode 100644 index 0000000000..4d1c3a9476 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/CreateFirewallTagRequest.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.vpc.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class CreateFirewallTagRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "firewall_id") + + private String firewallId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private CreateFirewallTagRequestBody body; + + public CreateFirewallTagRequest withFirewallId(String firewallId) { + this.firewallId = firewallId; + return this; + } + + /** + * 功能说明:ACL唯一标识 取值范围:合法UUID 约束:ID对应的ACL必须存在 + * @return firewallId + */ + public String getFirewallId() { + return firewallId; + } + + public void setFirewallId(String firewallId) { + this.firewallId = firewallId; + } + + public CreateFirewallTagRequest withBody(CreateFirewallTagRequestBody body) { + this.body = body; + return this; + } + + public CreateFirewallTagRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new CreateFirewallTagRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public CreateFirewallTagRequestBody getBody() { + return body; + } + + public void setBody(CreateFirewallTagRequestBody body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateFirewallTagRequest that = (CreateFirewallTagRequest) obj; + return Objects.equals(this.firewallId, that.firewallId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(firewallId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateFirewallTagRequest {\n"); + sb.append(" firewallId: ").append(toIndentedString(firewallId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/CreateFirewallTagRequestBody.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/CreateFirewallTagRequestBody.java new file mode 100644 index 0000000000..aeffd8b909 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/CreateFirewallTagRequestBody.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.vpc.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * This is a auto create Body Object + */ +public class CreateFirewallTagRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tag") + + private ResourceTag tag; + + public CreateFirewallTagRequestBody withTag(ResourceTag tag) { + this.tag = tag; + return this; + } + + public CreateFirewallTagRequestBody withTag(Consumer tagSetter) { + if (this.tag == null) { + this.tag = new ResourceTag(); + tagSetter.accept(this.tag); + } + + return this; + } + + /** + * Get tag + * @return tag + */ + public ResourceTag getTag() { + return tag; + } + + public void setTag(ResourceTag tag) { + this.tag = tag; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateFirewallTagRequestBody that = (CreateFirewallTagRequestBody) obj; + return Objects.equals(this.tag, that.tag); + } + + @Override + public int hashCode() { + return Objects.hash(tag); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateFirewallTagRequestBody {\n"); + sb.append(" tag: ").append(toIndentedString(tag)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/CreateFirewallTagResponse.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/CreateFirewallTagResponse.java new file mode 100644 index 0000000000..91d0874676 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/CreateFirewallTagResponse.java @@ -0,0 +1,36 @@ +package com.huaweicloud.sdk.vpc.v3.model; + +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class CreateFirewallTagResponse extends SdkResponse { + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateFirewallTagResponse {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/DeleteFirewallTagRequest.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/DeleteFirewallTagRequest.java new file mode 100644 index 0000000000..27e1755302 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/DeleteFirewallTagRequest.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.vpc.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class DeleteFirewallTagRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "firewall_id") + + private String firewallId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tag_key") + + private String tagKey; + + public DeleteFirewallTagRequest withFirewallId(String firewallId) { + this.firewallId = firewallId; + return this; + } + + /** + * 功能说明:ACL唯一标识 取值范围:合法UUID 约束:ID对应的ACL必须存在 + * @return firewallId + */ + public String getFirewallId() { + return firewallId; + } + + public void setFirewallId(String firewallId) { + this.firewallId = firewallId; + } + + public DeleteFirewallTagRequest withTagKey(String tagKey) { + this.tagKey = tagKey; + return this; + } + + /** + * 功能说明:标签键 + * @return tagKey + */ + public String getTagKey() { + return tagKey; + } + + public void setTagKey(String tagKey) { + this.tagKey = tagKey; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DeleteFirewallTagRequest that = (DeleteFirewallTagRequest) obj; + return Objects.equals(this.firewallId, that.firewallId) && Objects.equals(this.tagKey, that.tagKey); + } + + @Override + public int hashCode() { + return Objects.hash(firewallId, tagKey); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteFirewallTagRequest {\n"); + sb.append(" firewallId: ").append(toIndentedString(firewallId)).append("\n"); + sb.append(" tagKey: ").append(toIndentedString(tagKey)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/DeleteFirewallTagResponse.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/DeleteFirewallTagResponse.java new file mode 100644 index 0000000000..7fafbb3209 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/DeleteFirewallTagResponse.java @@ -0,0 +1,36 @@ +package com.huaweicloud.sdk.vpc.v3.model; + +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class DeleteFirewallTagResponse extends SdkResponse { + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteFirewallTagResponse {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ListFirewallTagsRequest.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ListFirewallTagsRequest.java new file mode 100644 index 0000000000..f416a365ac --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ListFirewallTagsRequest.java @@ -0,0 +1,34 @@ +package com.huaweicloud.sdk.vpc.v3.model; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListFirewallTagsRequest { + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListFirewallTagsRequest {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ListFirewallTagsResponse.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ListFirewallTagsResponse.java new file mode 100644 index 0000000000..2f731ecbbf --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ListFirewallTagsResponse.java @@ -0,0 +1,106 @@ +package com.huaweicloud.sdk.vpc.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListFirewallTagsResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tags") + + private ListTag tags; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "request_id") + + private String requestId; + + public ListFirewallTagsResponse withTags(ListTag tags) { + this.tags = tags; + return this; + } + + public ListFirewallTagsResponse withTags(Consumer tagsSetter) { + if (this.tags == null) { + this.tags = new ListTag(); + tagsSetter.accept(this.tags); + } + + return this; + } + + /** + * Get tags + * @return tags + */ + public ListTag getTags() { + return tags; + } + + public void setTags(ListTag tags) { + this.tags = tags; + } + + public ListFirewallTagsResponse withRequestId(String requestId) { + this.requestId = requestId; + return this; + } + + /** + * 请求ID + * @return requestId + */ + public String getRequestId() { + return requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListFirewallTagsResponse that = (ListFirewallTagsResponse) obj; + return Objects.equals(this.tags, that.tags) && Objects.equals(this.requestId, that.requestId); + } + + @Override + public int hashCode() { + return Objects.hash(tags, requestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListFirewallTagsResponse {\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ListFirewallsByTagsRequest.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ListFirewallsByTagsRequest.java new file mode 100644 index 0000000000..7227f534fa --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ListFirewallsByTagsRequest.java @@ -0,0 +1,129 @@ +package com.huaweicloud.sdk.vpc.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class ListFirewallsByTagsRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limit") + + private Integer limit; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "offset") + + private Integer offset; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private ListFirewallsByTagsRequestBody body; + + public ListFirewallsByTagsRequest withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 功能说明:查询记录数 取值范围:1-1000 约束:默认为1000 + * @return limit + */ + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public ListFirewallsByTagsRequest withOffset(Integer offset) { + this.offset = offset; + return this; + } + + /** + * 功能说明:索引位置, 从第一条数据偏移offset条数据后开始查询 约束:默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数 + * @return offset + */ + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public ListFirewallsByTagsRequest withBody(ListFirewallsByTagsRequestBody body) { + this.body = body; + return this; + } + + public ListFirewallsByTagsRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new ListFirewallsByTagsRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public ListFirewallsByTagsRequestBody getBody() { + return body; + } + + public void setBody(ListFirewallsByTagsRequestBody body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListFirewallsByTagsRequest that = (ListFirewallsByTagsRequest) obj; + return Objects.equals(this.limit, that.limit) && Objects.equals(this.offset, that.offset) + && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(limit, offset, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListFirewallsByTagsRequest {\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ListFirewallsByTagsRequestBody.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ListFirewallsByTagsRequestBody.java new file mode 100644 index 0000000000..891e1c304f --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ListFirewallsByTagsRequestBody.java @@ -0,0 +1,130 @@ +package com.huaweicloud.sdk.vpc.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * This is a auto create Body Object + */ +public class ListFirewallsByTagsRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "matches") + + private List matches = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tags") + + private List tags = null; + + public ListFirewallsByTagsRequestBody withMatches(List matches) { + this.matches = matches; + return this; + } + + public ListFirewallsByTagsRequestBody addMatchesItem(Match matchesItem) { + if (this.matches == null) { + this.matches = new ArrayList<>(); + } + this.matches.add(matchesItem); + return this; + } + + public ListFirewallsByTagsRequestBody withMatches(Consumer> matchesSetter) { + if (this.matches == null) { + this.matches = new ArrayList<>(); + } + matchesSetter.accept(this.matches); + return this; + } + + /** + * 功能说明:搜索字段,key为要匹配的字段,value为匹配的值 约束:key为固定字典值,不能包含重复的key或不支持的key,当前key仅支持resource_name + * @return matches + */ + public List getMatches() { + return matches; + } + + public void setMatches(List matches) { + this.matches = matches; + } + + public ListFirewallsByTagsRequestBody withTags(List tags) { + this.tags = tags; + return this; + } + + public ListFirewallsByTagsRequestBody addTagsItem(ListTag tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + this.tags.add(tagsItem); + return this; + } + + public ListFirewallsByTagsRequestBody withTags(Consumer> tagsSetter) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + tagsSetter.accept(this.tags); + return this; + } + + /** + * 包含标签,最多包含50个key,每个key下面的value最多10个,每个key对应的value可以为空数组但结构体不能缺失 。 Key不能重复,同一个key中values不能重复。 结果返回包含所有标签的资源列表,key之间是与的关系,key-value结构中value是或的关系。无tag过滤条件时返回全量数据。 + * @return tags + */ + public List getTags() { + return tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListFirewallsByTagsRequestBody that = (ListFirewallsByTagsRequestBody) obj; + return Objects.equals(this.matches, that.matches) && Objects.equals(this.tags, that.tags); + } + + @Override + public int hashCode() { + return Objects.hash(matches, tags); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListFirewallsByTagsRequestBody {\n"); + sb.append(" matches: ").append(toIndentedString(matches)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ListFirewallsByTagsResponse.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ListFirewallsByTagsResponse.java new file mode 100644 index 0000000000..7cf5c36452 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ListFirewallsByTagsResponse.java @@ -0,0 +1,139 @@ +package com.huaweicloud.sdk.vpc.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListFirewallsByTagsResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "resources") + + private List resources = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total_count") + + private Integer totalCount; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "request_id") + + private String requestId; + + public ListFirewallsByTagsResponse withResources(List resources) { + this.resources = resources; + return this; + } + + public ListFirewallsByTagsResponse addResourcesItem(ListResourceResp resourcesItem) { + if (this.resources == null) { + this.resources = new ArrayList<>(); + } + this.resources.add(resourcesItem); + return this; + } + + public ListFirewallsByTagsResponse withResources(Consumer> resourcesSetter) { + if (this.resources == null) { + this.resources = new ArrayList<>(); + } + resourcesSetter.accept(this.resources); + return this; + } + + /** + * 资源列表 + * @return resources + */ + public List getResources() { + return resources; + } + + public void setResources(List resources) { + this.resources = resources; + } + + public ListFirewallsByTagsResponse withTotalCount(Integer totalCount) { + this.totalCount = totalCount; + return this; + } + + /** + * 资源数量 + * @return totalCount + */ + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public ListFirewallsByTagsResponse withRequestId(String requestId) { + this.requestId = requestId; + return this; + } + + /** + * 请求ID + * @return requestId + */ + public String getRequestId() { + return requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListFirewallsByTagsResponse that = (ListFirewallsByTagsResponse) obj; + return Objects.equals(this.resources, that.resources) && Objects.equals(this.totalCount, that.totalCount) + && Objects.equals(this.requestId, that.requestId); + } + + @Override + public int hashCode() { + return Objects.hash(resources, totalCount, requestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListFirewallsByTagsResponse {\n"); + sb.append(" resources: ").append(toIndentedString(resources)).append("\n"); + sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n"); + sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ListResourceResp.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ListResourceResp.java new file mode 100644 index 0000000000..e516997605 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ListResourceResp.java @@ -0,0 +1,162 @@ +package com.huaweicloud.sdk.vpc.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * + */ +public class ListResourceResp { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "resource_id") + + private String resourceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "resource_detail") + + private Object resourceDetail; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "resource_name") + + private String resourceName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tags") + + private List tags = null; + + public ListResourceResp withResourceId(String resourceId) { + this.resourceId = resourceId; + return this; + } + + /** + * 资源ID + * @return resourceId + */ + public String getResourceId() { + return resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public ListResourceResp withResourceDetail(Object resourceDetail) { + this.resourceDetail = resourceDetail; + return this; + } + + /** + * 资源详情。 资源对象,用于扩展。默认为空 + * @return resourceDetail + */ + public Object getResourceDetail() { + return resourceDetail; + } + + public void setResourceDetail(Object resourceDetail) { + this.resourceDetail = resourceDetail; + } + + public ListResourceResp withResourceName(String resourceName) { + this.resourceName = resourceName; + return this; + } + + /** + * 资源名称,资源没有名称时默认为空字符串. + * @return resourceName + */ + public String getResourceName() { + return resourceName; + } + + public void setResourceName(String resourceName) { + this.resourceName = resourceName; + } + + public ListResourceResp withTags(List tags) { + this.tags = tags; + return this; + } + + public ListResourceResp addTagsItem(ResourceTag tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + this.tags.add(tagsItem); + return this; + } + + public ListResourceResp withTags(Consumer> tagsSetter) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + tagsSetter.accept(this.tags); + return this; + } + + /** + * 标签列表,没有标签默认为空数组 + * @return tags + */ + public List getTags() { + return tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListResourceResp that = (ListResourceResp) obj; + return Objects.equals(this.resourceId, that.resourceId) + && Objects.equals(this.resourceDetail, that.resourceDetail) + && Objects.equals(this.resourceName, that.resourceName) && Objects.equals(this.tags, that.tags); + } + + @Override + public int hashCode() { + return Objects.hash(resourceId, resourceDetail, resourceName, tags); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListResourceResp {\n"); + sb.append(" resourceId: ").append(toIndentedString(resourceId)).append("\n"); + sb.append(" resourceDetail: ").append(toIndentedString(resourceDetail)).append("\n"); + sb.append(" resourceName: ").append(toIndentedString(resourceName)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ListTag.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ListTag.java new file mode 100644 index 0000000000..8ade0d59b2 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ListTag.java @@ -0,0 +1,114 @@ +package com.huaweicloud.sdk.vpc.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * + */ +public class ListTag { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "key") + + private String key; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "values") + + private List values = null; + + public ListTag withKey(String key) { + this.key = key; + return this; + } + + /** + * 功能说明:标签键 约束:key不能为空 + * @return key + */ + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public ListTag withValues(List values) { + this.values = values; + return this; + } + + public ListTag addValuesItem(String valuesItem) { + if (this.values == null) { + this.values = new ArrayList<>(); + } + this.values.add(valuesItem); + return this; + } + + public ListTag withValues(Consumer> valuesSetter) { + if (this.values == null) { + this.values = new ArrayList<>(); + } + valuesSetter.accept(this.values); + return this; + } + + /** + * 功能描述:标签值列表。 如果values为空列表,则表示any_value(查询任意value)。value之间为或的关系。 + * @return values + */ + public List getValues() { + return values; + } + + public void setValues(List values) { + this.values = values; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListTag that = (ListTag) obj; + return Objects.equals(this.key, that.key) && Objects.equals(this.values, that.values); + } + + @Override + public int hashCode() { + return Objects.hash(key, values); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListTag {\n"); + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" values: ").append(toIndentedString(values)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/Match.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/Match.java new file mode 100644 index 0000000000..6604fc8b32 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/Match.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.vpc.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * + */ +public class Match { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "key") + + private String key; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private String value; + + public Match withKey(String key) { + this.key = key; + return this; + } + + /** + * 键。当前仅限定为resource_name + * @return key + */ + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public Match withValue(String value) { + this.value = value; + return this; + } + + /** + * 值。每个值最大长度255个unicode字符. + * @return value + */ + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + Match that = (Match) obj; + return Objects.equals(this.key, that.key) && Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(key, value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Match {\n"); + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ShowFirewallTagsRequest.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ShowFirewallTagsRequest.java new file mode 100644 index 0000000000..462a76ef48 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ShowFirewallTagsRequest.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.vpc.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ShowFirewallTagsRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "firewall_id") + + private String firewallId; + + public ShowFirewallTagsRequest withFirewallId(String firewallId) { + this.firewallId = firewallId; + return this; + } + + /** + * 功能说明:ACL唯一标识 取值范围:合法UUID 约束:ID对应的ACL必须存在 + * @return firewallId + */ + public String getFirewallId() { + return firewallId; + } + + public void setFirewallId(String firewallId) { + this.firewallId = firewallId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowFirewallTagsRequest that = (ShowFirewallTagsRequest) obj; + return Objects.equals(this.firewallId, that.firewallId); + } + + @Override + public int hashCode() { + return Objects.hash(firewallId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowFirewallTagsRequest {\n"); + sb.append(" firewallId: ").append(toIndentedString(firewallId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ShowFirewallTagsResponse.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ShowFirewallTagsResponse.java new file mode 100644 index 0000000000..4c2453230e --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ShowFirewallTagsResponse.java @@ -0,0 +1,139 @@ +package com.huaweicloud.sdk.vpc.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ShowFirewallTagsResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tags") + + private ResourceTag tags; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "request_id") + + private String requestId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sys_tags") + + private ResourceTag sysTags; + + public ShowFirewallTagsResponse withTags(ResourceTag tags) { + this.tags = tags; + return this; + } + + public ShowFirewallTagsResponse withTags(Consumer tagsSetter) { + if (this.tags == null) { + this.tags = new ResourceTag(); + tagsSetter.accept(this.tags); + } + + return this; + } + + /** + * Get tags + * @return tags + */ + public ResourceTag getTags() { + return tags; + } + + public void setTags(ResourceTag tags) { + this.tags = tags; + } + + public ShowFirewallTagsResponse withRequestId(String requestId) { + this.requestId = requestId; + return this; + } + + /** + * 请求ID + * @return requestId + */ + public String getRequestId() { + return requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public ShowFirewallTagsResponse withSysTags(ResourceTag sysTags) { + this.sysTags = sysTags; + return this; + } + + public ShowFirewallTagsResponse withSysTags(Consumer sysTagsSetter) { + if (this.sysTags == null) { + this.sysTags = new ResourceTag(); + sysTagsSetter.accept(this.sysTags); + } + + return this; + } + + /** + * Get sysTags + * @return sysTags + */ + public ResourceTag getSysTags() { + return sysTags; + } + + public void setSysTags(ResourceTag sysTags) { + this.sysTags = sysTags; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowFirewallTagsResponse that = (ShowFirewallTagsResponse) obj; + return Objects.equals(this.tags, that.tags) && Objects.equals(this.requestId, that.requestId) + && Objects.equals(this.sysTags, that.sysTags); + } + + @Override + public int hashCode() { + return Objects.hash(tags, requestId, sysTags); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowFirewallTagsResponse {\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); + sb.append(" sysTags: ").append(toIndentedString(sysTags)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/vpcep/pom.xml b/services/vpcep/pom.xml index b5e29c07c3..8feb2953fe 100644 --- a/services/vpcep/pom.xml +++ b/services/vpcep/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-vpcep - 3.1.99 + 3.1.100 Huawei Cloud SDK for VPCEP 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/vpn/pom.xml b/services/vpn/pom.xml index 86414f2d47..d73b05db79 100644 --- a/services/vpn/pom.xml +++ b/services/vpn/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-vpn - 3.1.99 + 3.1.100 Huawei Cloud SDK for VPN 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/waf/pom.xml b/services/waf/pom.xml index 51f79a1eed..2995ac21e7 100644 --- a/services/waf/pom.xml +++ b/services/waf/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-waf - 3.1.99 + 3.1.100 Huawei Cloud SDK for WAF 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/workspace/pom.xml b/services/workspace/pom.xml index dd2a05a415..a1a69f64f0 100644 --- a/services/workspace/pom.xml +++ b/services/workspace/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-workspace - 3.1.99 + 3.1.100 Huawei Cloud SDK for WORKSPACE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100 diff --git a/services/workspaceapp/pom.xml b/services/workspaceapp/pom.xml index 61e642fb91..e3d01fb6e4 100644 --- a/services/workspaceapp/pom.xml +++ b/services/workspaceapp/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.99 + 3.1.100 huaweicloud-sdk-services .. huaweicloud-sdk-workspaceapp - 3.1.99 + 3.1.100 Huawei Cloud SDK for WORKSPACEAPP 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.99 + 3.1.100